@nsis/dent 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -52,7 +52,7 @@ Returns `null` if the file is already formatted, otherwise the formatted string.
52
52
 
53
53
  ### Options
54
54
 
55
- #### `options.endOfLines`
55
+ #### `options.endOfLine`
56
56
 
57
57
  Type: `"crlf" | "lf"`
58
58
  Default: `"crlf"` (Windows), `"lf"` (Linux, macOS)
package/dist/dent.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  //#region src/dent.d.ts
2
2
  type DentOptions = {
3
- endOfLines?: 'crlf' | 'lf';
3
+ endOfLine?: 'crlf' | 'lf';
4
4
  indentSize?: number;
5
5
  printWidth?: number;
6
6
  trimEmptyLines?: boolean;
package/dist/dent.mjs CHANGED
@@ -13,7 +13,7 @@ import{platform as e}from"node:os";import{detectNewline as t}from"detect-newline
13
13
  `,!1),he=q([`
14
14
  `,`\r`],!1,!1,!1);function ge(e){return e.flat()}function _e(){return{type:`blank`}}function ve(e,t){return{type:`comment`,style:e===`#`?`hash`:`semicolon`,value:t.trimStart()}}function ye(e){return{type:`comment`,style:`block`,value:e}}function be(e,t){return{type:`label`,name:e,comment:t??void 0}}function xe(e,t,n,r){return[{type:`label`,name:e},{type:`instruction`,keyword:t,args:n,...r?{comment:r}:{}}]}function Se(e,t,n){let r={type:`instruction`,keyword:e,args:t};return n&&(r.comment=n),r}function Ce(e){return n.has(e.toLowerCase())}function we(e){return e}function Te(e){return r.has(e.toLowerCase())}function Ee(e){return e}function De(e){return e}function Oe(e,t){return{style:e===`#`?`hash`:`semicolon`,value:t.trimStart()}}let B=t.peg$currPos|0,V=[{line:1,column:1}],H=B,U=t.peg$maxFailExpected||[],W=t.peg$silentFails|0,G;if(t.startRule){if(!(t.startRule in s))throw Error(`Can't start parsing from rule "`+t.startRule+`".`);c=s[t.startRule]}function ke(t=B){let n=e.codePointAt(t);return n===void 0?``:String.fromCodePoint(n)}function K(e,t){return{type:`literal`,text:e,ignoreCase:t}}function q(e,t,n,r){return{type:`class`,parts:e,inverted:t,ignoreCase:n,unicode:r}}function Ae(){return{type:`any`}}function je(){return{type:`end`}}function J(e){return{type:`other`,description:e}}function Me(t){let n=V[t],r;if(n)return n;if(t>=V.length)r=V.length-1;else for(r=t;!V[--r];);for(n=V[r],n={line:n.line,column:n.column};r<t;)e.charCodeAt(r)===10?(n.line++,n.column=1):n.column++,r++;return V[t]=n,n}function Ne(e,t,n){let r=Me(e),i=Me(t),a={source:o,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:i.line,column:i.column}};return n&&o&&typeof o.offset==`function`&&(a.start=o.offset(a.start),a.end=o.offset(a.end)),a}function Y(e){B<H||(B>H&&(H=B,U=[]),U.push(e))}function Pe(e,t,n){return new i(i.buildMessage(e,t),e,t,n)}function Fe(){let e,t,n;for(e=B,t=[],n=Ie();n!==a;)t.push(n),n=Ie();return t=ge(t),e=t,e}function Ie(){let e;return e=ze(),e===a&&(e=Le(),e===a&&(e=Re(),e===a&&(e=Ve(),e===a&&(e=Be(),e===a&&(e=He()))))),e}function Le(){let e,t;return e=B,Z(),t=Qe(),t===a?(B=e,e=a):e=_e(),e}function Re(){let t,n,r,i,o;if(t=B,Z(),n=e.charAt(B),l.test(n)?B++:(n=a,W===0&&Y(C)),n!==a){for(r=B,i=[],o=e.charAt(B),u.test(o)?B++:(o=a,W===0&&Y(w));o!==a;)i.push(o),o=e.charAt(B),u.test(o)?B++:(o=a,W===0&&Y(w));r=e.substring(r,B),i=Q(),i===a?(B=t,t=a):t=ve(n,r)}else B=t,t=a;return t}function ze(){let t,n,r,i,o,s,c;if(t=B,Z(),e.substr(B,2)===`/*`?(n=`/*`,B+=2):(n=a,W===0&&Y(T)),n!==a){for(r=B,i=[],o=B,s=B,W++,e.substr(B,2)===`*/`?(c=`*/`,B+=2):(c=a,W===0&&Y(E)),W--,c===a?s=void 0:(B=s,s=a),s===a?(B=o,o=a):(e.length>B?(c=e.charAt(B),B++):(c=a,W===0&&Y(D)),c===a&&(c=e.charAt(B),d.test(c)?B++:(c=a,W===0&&Y(O))),c===a?(B=o,o=a):(s=[s,c],o=s));o!==a;)i.push(o),o=B,s=B,W++,e.substr(B,2)===`*/`?(c=`*/`,B+=2):(c=a,W===0&&Y(E)),W--,c===a?s=void 0:(B=s,s=a),s===a?(B=o,o=a):(e.length>B?(c=e.charAt(B),B++):(c=a,W===0&&Y(D)),c===a&&(c=e.charAt(B),d.test(c)?B++:(c=a,W===0&&Y(O))),c===a?(B=o,o=a):(s=[s,c],o=s));r=e.substring(r,B),e.substr(B,2)===`*/`?(i=`*/`,B+=2):(i=a,W===0&&Y(E)),i===a?(B=t,t=a):(o=Z(),s=Q(),s===a&&(s=null),t=ye(r))}else B=t,t=a;return t}function Be(){let t,n,r,i,o,s,c;if(t=B,Z(),n=B,r=B,i=e.charAt(B),f.test(i)?B++:(i=a,W===0&&Y(k)),i!==a){for(o=[],s=e.charAt(B),p.test(s)?B++:(s=a,W===0&&Y(A));s!==a;)o.push(s),s=e.charAt(B),p.test(s)?B++:(s=a,W===0&&Y(A));i=[i,o],r=i}else B=r,r=a;return n=r===a?r:e.substring(n,B),n===a?(B=t,t=a):(e.charCodeAt(B)===58?(r=`:`,B++):(r=a,W===0&&Y(j)),r===a?(B=t,t=a):(i=B,W++,e.charCodeAt(B)===58?(o=`:`,B++):(o=a,W===0&&Y(j)),W--,o===a?i=void 0:(B=i,i=a),i===a?(B=t,t=a):(o=X(),o===a&&(o=null),s=Z(),c=Q(),c===a?(B=t,t=a):t=be(n,o)))),t}function Ve(){let t,n,r,i,o,s,c,l,u;if(t=B,Z(),n=B,r=B,i=e.charAt(B),f.test(i)?B++:(i=a,W===0&&Y(k)),i!==a){for(o=[],s=e.charAt(B),p.test(s)?B++:(s=a,W===0&&Y(A));s!==a;)o.push(s),s=e.charAt(B),p.test(s)?B++:(s=a,W===0&&Y(A));i=[i,o],r=i}else B=r,r=a;return n=r===a?r:e.substring(n,B),n===a?(B=t,t=a):(e.charCodeAt(B)===58?(r=`:`,B++):(r=a,W===0&&Y(j)),r===a?(B=t,t=a):(i=B,W++,e.charCodeAt(B)===58?(o=`:`,B++):(o=a,W===0&&Y(j)),W--,o===a?i=void 0:(B=i,i=a),i===a?(B=t,t=a):(o=Z(),s=Ue(),s===a?(B=t,t=a):(c=Je(),l=X(),l===a&&(l=null),Z(),u=Q(),u===a?(B=t,t=a):t=xe(n,s,c,l))))),t}function He(){let e,t,n,r,i;return e=B,Z(),t=Ue(),t===a?(B=e,e=a):(n=Je(),r=X(),r===a&&(r=null),Z(),i=Q(),i===a?(B=e,e=a):e=Se(t,n,r)),e}function Ue(){let e;return W++,e=We(),e===a&&(e=Ge(),e===a&&(e=Ke(),e===a&&(e=qe()))),W--,e===a&&W===0&&Y(M),e}function We(){let t,n,r,i,o,s;if(t=B,n=B,r=B,e.charCodeAt(B)===33?(i=`!`,B++):(i=a,W===0&&Y(N)),i!==a){if(o=[],s=e.charAt(B),m.test(s)?B++:(s=a,W===0&&Y(P)),s!==a)for(;s!==a;)o.push(s),s=e.charAt(B),m.test(s)?B++:(s=a,W===0&&Y(P));else o=a;o===a?(B=r,r=a):(i=[i,o],r=i)}else B=r,r=a;return n=r===a?r:e.substring(n,B),n===a?(B=t,t=a):(r=Ce(n),r=r?void 0:a,r===a?(B=t,t=a):t=we(n)),t}function Ge(){let t,n,r,i,o,s;if(t=B,n=B,e.substr(B,2)==="${"?(r="${",B+=2):(r=a,W===0&&Y(te)),r!==a)if(i=e.charAt(B),h.test(i)?B++:(i=a,W===0&&Y(ne)),i!==a){for(o=[],s=e.charAt(B),p.test(s)?B++:(s=a,W===0&&Y(A));s!==a;)o.push(s),s=e.charAt(B),p.test(s)?B++:(s=a,W===0&&Y(A));e.charCodeAt(B)===125?(s=`}`,B++):(s=a,W===0&&Y(re)),s===a?(B=n,n=a):(r=[r,i,o,s],n=r)}else B=n,n=a;else B=n,n=a;return t=n===a?n:e.substring(t,B),t}function Ke(){let t,n,r,i,o,s,c,l;if(t=B,n=B,r=e.charAt(B),m.test(r)?B++:(r=a,W===0&&Y(P)),r!==a){for(i=[],o=e.charAt(B),g.test(o)?B++:(o=a,W===0&&Y(F));o!==a;)i.push(o),o=e.charAt(B),g.test(o)?B++:(o=a,W===0&&Y(F));if(e.substr(B,2)===`::`?(o=`::`,B+=2):(o=a,W===0&&Y(ie)),o!==a)if(s=e.charAt(B),m.test(s)?B++:(s=a,W===0&&Y(P)),s!==a){for(c=[],l=e.charAt(B),g.test(l)?B++:(l=a,W===0&&Y(F));l!==a;)c.push(l),l=e.charAt(B),g.test(l)?B++:(l=a,W===0&&Y(F));r=[r,i,o,s,c],n=r}else B=n,n=a;else B=n,n=a}else B=n,n=a;return t=n===a?n:e.substring(t,B),t}function qe(){let t,n,r,i,o,s;if(t=B,n=B,r=B,i=e.charAt(B),m.test(i)?B++:(i=a,W===0&&Y(P)),i!==a){for(o=[],s=e.charAt(B),_.test(s)?B++:(s=a,W===0&&Y(ae));s!==a;)o.push(s),s=e.charAt(B),_.test(s)?B++:(s=a,W===0&&Y(ae));i=[i,o],r=i}else B=r,r=a;return n=r===a?r:e.substring(n,B),n===a?(B=t,t=a):(r=Te(n),r=r?void 0:a,r===a?(B=t,t=a):t=Ee(n)),t}function Je(){let e,t,n,r;for(e=B,t=[],n=B,Z(),r=Ye(),r===a?(B=n,n=a):n=r;n!==a;)t.push(n),n=B,Z(),r=Ye(),r===a?(B=n,n=a):n=r;return t=De(t),e=t,e}function Ye(){let e;return W++,e=Xe(),e===a&&(e=Ze()),W--,e===a&&W===0&&Y(oe),e}function Xe(){let t,n,r,i,o;if(t=B,n=B,e.charCodeAt(B)===34?(r=`"`,B++):(r=a,W===0&&Y(I)),r!==a){for(i=[],e.substr(B,2)===`""`?(o=`""`,B+=2):(o=a,W===0&&Y(se)),o===a&&(e.substr(B,3)===`$\\"`?(o=`$\\"`,B+=3):(o=a,W===0&&Y(L)),o===a&&(o=e.charAt(B),v.test(o)?B++:(o=a,W===0&&Y(ce))));o!==a;)i.push(o),e.substr(B,2)===`""`?(o=`""`,B+=2):(o=a,W===0&&Y(se)),o===a&&(e.substr(B,3)===`$\\"`?(o=`$\\"`,B+=3):(o=a,W===0&&Y(L)),o===a&&(o=e.charAt(B),v.test(o)?B++:(o=a,W===0&&Y(ce))));e.charCodeAt(B)===34?(o=`"`,B++):(o=a,W===0&&Y(I)),o===a?(B=n,n=a):(r=[r,i,o],n=r)}else B=n,n=a;if(t=n===a?n:e.substring(t,B),t===a){if(t=B,n=B,e.charCodeAt(B)===39?(r=`'`,B++):(r=a,W===0&&Y(R)),r!==a){for(i=[],o=e.charAt(B),y.test(o)?B++:(o=a,W===0&&Y(z));o!==a;)i.push(o),o=e.charAt(B),y.test(o)?B++:(o=a,W===0&&Y(z));e.charCodeAt(B)===39?(o=`'`,B++):(o=a,W===0&&Y(R)),o===a?(B=n,n=a):(r=[r,i,o],n=r)}else B=n,n=a;if(t=n===a?n:e.substring(t,B),t===a){if(t=B,n=B,e.charCodeAt(B)===96?(r="`",B++):(r=a,W===0&&Y(le)),r!==a){for(i=[],o=e.charAt(B),b.test(o)?B++:(o=a,W===0&&Y(ue));o!==a;)i.push(o),o=e.charAt(B),b.test(o)?B++:(o=a,W===0&&Y(ue));e.charCodeAt(B)===96?(o="`",B++):(o=a,W===0&&Y(le)),o===a?(B=n,n=a):(r=[r,i,o],n=r)}else B=n,n=a;t=n===a?n:e.substring(t,B)}}return t}function Ze(){let t,n,r;if(t=B,n=[],r=e.charAt(B),x.test(r)?B++:(r=a,W===0&&Y(de)),r!==a)for(;r!==a;)n.push(r),r=e.charAt(B),x.test(r)?B++:(r=a,W===0&&Y(de));else n=a;return t=n===a?n:e.substring(t,B),t}function X(){let t,n,r,i,o;if(t=B,Z(),n=e.charAt(B),l.test(n)?B++:(n=a,W===0&&Y(C)),n!==a){for(r=B,i=[],o=e.charAt(B),u.test(o)?B++:(o=a,W===0&&Y(w));o!==a;)i.push(o),o=e.charAt(B),u.test(o)?B++:(o=a,W===0&&Y(w));r=e.substring(r,B),t=Oe(n,r)}else B=t,t=a;return t}function Z(){let t,n;for(W++,t=[],n=e.charAt(B),S.test(n)?B++:(n=a,W===0&&Y(fe));n!==a;)t.push(n),n=e.charAt(B),S.test(n)?B++:(n=a,W===0&&Y(fe));return W--,t}function Qe(){let t;return W++,e.substr(B,2)===`\r
15
15
  `?(t=`\r
16
- `,B+=2):(t=a,W===0&&Y(me)),t===a&&(t=e.charAt(B),ee.test(t)?B++:(t=a,W===0&&Y(he))),W--,t===a&&W===0&&Y(pe),t}function Q(){let e;return e=Qe(),e===a&&(e=$e()),e}function $e(){let t,n;return t=B,W++,e.length>B?(n=e.charAt(B),B++):(n=a,W===0&&Y(D)),W--,n===a?t=void 0:(B=t,t=a),t}G=c();let $=G!==a&&B===e.length;function et(){throw G!==a&&B<e.length&&Y(je()),Pe(U,H<e.length?ke(H):null,H<e.length?Ne(H,H+1):Ne(H,H))}if(t.peg$library)return{peg$result:G,peg$currPos:B,peg$FAILED:a,peg$maxFailExpected:U,peg$maxFailPos:H,peg$success:$,peg$throw:$?void 0:et};if($)return G;et()}function o(e){return a(e.replace(/^\uFEFF/,``).replace(/\\\r?\n[ \t]*/g,` `))}const s=new Map([[`!addincludedir`,`!addincludedir`],[`!addplugindir`,`!addplugindir`],[`!appendfile`,`!appendfile`],[`!appendmemfile`,`!appendmemfile`],[`!assert`,`!assert`],[`!cd`,`!cd`],[`!define`,`!define`],[`!delfile`,`!delfile`],[`!echo`,`!echo`],[`!else`,`!else`],[`!endif`,`!endif`],[`!error`,`!error`],[`!execute`,`!execute`],[`!finalize`,`!finalize`],[`!getdllversion`,`!getdllversion`],[`!gettlbversion`,`!gettlbversion`],[`!if`,`!if`],[`!ifdef`,`!ifdef`],[`!ifmacrodef`,`!ifmacrodef`],[`!ifmacrondef`,`!ifmacrondef`],[`!ifndef`,`!ifndef`],[`!include`,`!include`],[`!insertmacro`,`!insertmacro`],[`!macro`,`!macro`],[`!macroend`,`!macroend`],[`!macroundef`,`!macroundef`],[`!makensis`,`!makensis`],[`!packhdr`,`!packhdr`],[`!pragma`,`!pragma`],[`!searchparse`,`!searchparse`],[`!searchreplace`,`!searchreplace`],[`!system`,`!system`],[`!tempfile`,`!tempfile`],[`!undef`,`!undef`],[`!uninstfinalize`,`!uninstfinalize`],[`!verbose`,`!verbose`],[`!warning`,`!warning`],[`abort`,`Abort`],[`addbrandingimage`,`AddBrandingImage`],[`addsize`,`AddSize`],[`allowrootdirinstall`,`AllowRootDirInstall`],[`allowskipfiles`,`AllowSkipFiles`],[`autoclosewindow`,`AutoCloseWindow`],[`bgfont`,`BGFont`],[`bggradient`,`BGGradient`],[`brandingtext`,`BrandingText`],[`bringtofront`,`BringToFront`],[`call`,`Call`],[`callinstdll`,`CallInstDLL`],[`caption`,`Caption`],[`changeui`,`ChangeUI`],[`checkbitmap`,`CheckBitmap`],[`clearerrors`,`ClearErrors`],[`completedtext`,`CompletedText`],[`componenttext`,`ComponentText`],[`copyfiles`,`CopyFiles`],[`cpu`,`CPU`],[`crccheck`,`CRCCheck`],[`createdirectory`,`CreateDirectory`],[`createfont`,`CreateFont`],[`createshortcut`,`CreateShortcut`],[`delete`,`Delete`],[`deleteinisec`,`DeleteINISec`],[`deleteinistr`,`DeleteINIStr`],[`deleteregkey`,`DeleteRegKey`],[`deleteregvalue`,`DeleteRegValue`],[`detailprint`,`DetailPrint`],[`detailsbuttontext`,`DetailsButtonText`],[`dirshow`,`DirShow`],[`dirtext`,`DirText`],[`dirvar`,`DirVar`],[`dirverify`,`DirVerify`],[`enablewindow`,`EnableWindow`],[`enumregkey`,`EnumRegKey`],[`enumregvalue`,`EnumRegValue`],[`exch`,`Exch`],[`exec`,`Exec`],[`execshell`,`ExecShell`],[`execshellwait`,`ExecShellWait`],[`execwait`,`ExecWait`],[`expandenvstrings`,`ExpandEnvStrings`],[`file`,`File`],[`filebufsize`,`FileBufSize`],[`fileclose`,`FileClose`],[`fileerrortext`,`FileErrorText`],[`fileopen`,`FileOpen`],[`fileread`,`FileRead`],[`filereadbyte`,`FileReadByte`],[`filereadutf16le`,`FileReadUTF16LE`],[`filereadword`,`FileReadWord`],[`fileseek`,`FileSeek`],[`filewrite`,`FileWrite`],[`filewritebyte`,`FileWriteByte`],[`filewriteutf16le`,`FileWriteUTF16LE`],[`filewriteword`,`FileWriteWord`],[`findclose`,`FindClose`],[`findfirst`,`FindFirst`],[`findnext`,`FindNext`],[`findwindow`,`FindWindow`],[`flushini`,`FlushINI`],[`function`,`Function`],[`functionend`,`FunctionEnd`],[`getcurinsttype`,`GetCurInstType`],[`getcurrentaddress`,`GetCurrentAddress`],[`getdlgitem`,`GetDlgItem`],[`getdllversion`,`GetDLLVersion`],[`getdllversionlocal`,`GetDLLVersionLocal`],[`geterrorlevel`,`GetErrorLevel`],[`getfiletime`,`GetFileTime`],[`getfiletimelocal`,`GetFileTimeLocal`],[`getfullpathname`,`GetFullPathName`],[`getfunctionaddress`,`GetFunctionAddress`],[`getinstdirerror`,`GetInstDirError`],[`getknownfolderpath`,`GetKnownFolderPath`],[`getlabeladdress`,`GetLabelAddress`],[`getregview`,`GetRegView`],[`getshellvarcontext`,`GetShellVarContext`],[`gettempfilename`,`GetTempFileName`],[`getwinver`,`GetWinVer`],[`goto`,`Goto`],[`hidewindow`,`HideWindow`],[`icon`,`Icon`],[`ifabort`,`IfAbort`],[`ifaltregview`,`IfAltRegView`],[`iferrors`,`IfErrors`],[`iffileexists`,`IfFileExists`],[`ifrebootflag`,`IfRebootFlag`],[`ifrtllanguage`,`IfRtlLanguage`],[`ifshellvarcontextall`,`IfShellVarContextAll`],[`ifsilent`,`IfSilent`],[`initpluginsdir`,`InitPluginsDir`],[`installbuttontext`,`InstallButtonText`],[`installcolors`,`InstallColors`],[`installdir`,`InstallDir`],[`installdirregkey`,`InstallDirRegKey`],[`instprogressflags`,`InstProgressFlags`],[`insttype`,`InstType`],[`insttypegettext`,`InstTypeGetText`],[`insttypesettext`,`InstTypeSetText`],[`int64cmp`,`Int64Cmp`],[`int64cmpu`,`Int64CmpU`],[`int64fmt`,`Int64Fmt`],[`intcmp`,`IntCmp`],[`intcmpu`,`IntCmpU`],[`intfmt`,`IntFmt`],[`intop`,`IntOp`],[`intptrcmp`,`IntPtrCmp`],[`intptrcmpu`,`IntPtrCmpU`],[`intptrop`,`IntPtrOp`],[`iswindow`,`IsWindow`],[`langstring`,`LangString`],[`langstringup`,`LangStringUP`],[`licensebkcolor`,`LicenseBkColor`],[`licensedata`,`LicenseData`],[`licenseforceselection`,`LicenseForceSelection`],[`licenselangstring`,`LicenseLangString`],[`licensetext`,`LicenseText`],[`loadandsetimage`,`LoadAndSetImage`],[`loadlanguagefile`,`LoadLanguageFile`],[`lockwindow`,`LockWindow`],[`logset`,`LogSet`],[`logtext`,`LogText`],[`manifestappendcustomstring`,`ManifestAppendCustomString`],[`manifestdisablewindowfiltering`,`ManifestDisableWindowFiltering`],[`manifestdpiaware`,`ManifestDPIAware`],[`manifestdpiawareness`,`ManifestDPIAwareness`],[`manifestgdiscaling`,`ManifestGdiScaling`],[`manifestlongpathaware`,`ManifestLongPathAware`],[`manifestmaxversiontested`,`ManifestMaxVersionTested`],[`manifestsupportedos`,`ManifestSupportedOS`],[`messagebox`,`MessageBox`],[`miscbuttontext`,`MiscButtonText`],[`name`,`Name`],[`nop`,`Nop`],[`outfile`,`OutFile`],[`page`,`Page`],[`pagecallbacks`,`PageCallbacks`],[`pageex`,`PageEx`],[`pageexend`,`PageExEnd`],[`peaddresource`,`PEAddResource`],[`pedllcharacteristics`,`PEDllCharacteristics`],[`peremoveresource`,`PERemoveResource`],[`pesubsysver`,`PESubsysVer`],[`pop`,`Pop`],[`push`,`Push`],[`quit`,`Quit`],[`readenvstr`,`ReadEnvStr`],[`readinistr`,`ReadINIStr`],[`readmemory`,`ReadMemory`],[`readregdword`,`ReadRegDWORD`],[`readregstr`,`ReadRegStr`],[`reboot`,`Reboot`],[`regdll`,`RegDLL`],[`rename`,`Rename`],[`requestexecutionlevel`,`RequestExecutionLevel`],[`reservefile`,`ReserveFile`],[`return`,`Return`],[`rmdir`,`RMDir`],[`searchpath`,`SearchPath`],[`section`,`Section`],[`sectionend`,`SectionEnd`],[`sectiongetflags`,`SectionGetFlags`],[`sectiongetinsttypes`,`SectionGetInstTypes`],[`sectiongetsize`,`SectionGetSize`],[`sectiongettext`,`SectionGetText`],[`sectiongroup`,`SectionGroup`],[`sectiongroupend`,`SectionGroupEnd`],[`sectionin`,`SectionIn`],[`sectioninsttype`,`SectionInstType`],[`sectionsetflags`,`SectionSetFlags`],[`sectionsetinsttypes`,`SectionSetInstTypes`],[`sectionsetsize`,`SectionSetSize`],[`sectionsettext`,`SectionSetText`],[`sendmessage`,`SendMessage`],[`setautoclose`,`SetAutoClose`],[`setbrandingimage`,`SetBrandingImage`],[`setcompress`,`SetCompress`],[`setcompressionlevel`,`SetCompressionLevel`],[`setcompressor`,`SetCompressor`],[`setcompressordictsize`,`SetCompressorDictSize`],[`setctlcolors`,`SetCtlColors`],[`setcurinsttype`,`SetCurInstType`],[`setdatablockoptimize`,`SetDatablockOptimize`],[`setdatesave`,`SetDateSave`],[`setdetailsprint`,`SetDetailsPrint`],[`setdetailsview`,`SetDetailsView`],[`seterrorlevel`,`SetErrorLevel`],[`seterrors`,`SetErrors`],[`setfileattributes`,`SetFileAttributes`],[`setfont`,`SetFont`],[`setoutpath`,`SetOutPath`],[`setoverwrite`,`SetOverwrite`],[`setpluginunload`,`SetPluginUnload`],[`setrebootflag`,`SetRebootFlag`],[`setregview`,`SetRegView`],[`setshellvarcontext`,`SetShellVarContext`],[`setsilent`,`SetSilent`],[`showinstdetails`,`ShowInstDetails`],[`showuninstdetails`,`ShowUninstDetails`],[`showwindow`,`ShowWindow`],[`silentinstall`,`SilentInstall`],[`silentuninstall`,`SilentUnInstall`],[`sleep`,`Sleep`],[`spacetexts`,`SpaceTexts`],[`strcmp`,`StrCmp`],[`strcmps`,`StrCmpS`],[`strcpy`,`StrCpy`],[`strlen`,`StrLen`],[`subcaption`,`SubCaption`],[`subsection`,`SubSection`],[`subsectionend`,`SubSectionEnd`],[`target`,`Target`],[`unicode`,`Unicode`],[`uninstallbuttontext`,`UninstallButtonText`],[`uninstallcaption`,`UninstallCaption`],[`uninstallexename`,`UninstallExeName`],[`uninstallicon`,`UninstallIcon`],[`uninstallsubcaption`,`UninstallSubCaption`],[`uninstalltext`,`UninstallText`],[`uninstpage`,`UninstPage`],[`unregdll`,`UnRegDLL`],[`unsafestrcpy`,`UnsafeStrCpy`],[`var`,`Var`],[`viaddversionkey`,`VIAddVersionKey`],[`vifileversion`,`VIFileVersion`],[`viproductversion`,`VIProductVersion`],[`windowicon`,`WindowIcon`],[`writeinistr`,`WriteINIStr`],[`writeregbin`,`WriteRegBin`],[`writeregdword`,`WriteRegDWORD`],[`writeregexpandstr`,`WriteRegExpandStr`],[`writeregmultistr`,`WriteRegMultiStr`],[`writeregnone`,`WriteRegNone`],[`writeregstr`,`WriteRegStr`],[`writeuninstaller`,`WriteUninstaller`],[`xpstyle`,`XPStyle`]]),c=new Map([["${bannertrimpath}","${BannerTrimPath}"],["${dirstate}","${DirState}"],["${drivespace}","${DriveSpace}"],["${getbasename}","${GetBaseName}"],["${getdrives}","${GetDrives}"],["${getexename}","${GetExeName}"],["${getexepath}","${GetExePath}"],["${getfileattributes}","${GetFileAttributes}"],["${getfileext}","${GetFileExt}"],["${getfilename}","${GetFileName}"],["${getfileversion}","${GetFileVersion}"],["${getoptions}","${GetOptions}"],["${getoptionss}","${GetOptionsS}"],["${getparameters}","${GetParameters}"],["${getparent}","${GetParent}"],["${getroot}","${GetRoot}"],["${getsize}","${GetSize}"],["${gettime}","${GetTime}"],["${locate}","${Locate}"],["${refreshshellicons}","${RefreshShellIcons}"],["${andif}","${AndIf}"],["${andifnot}","${AndIfNot}"],["${andunless}","${AndUnless}"],["${break}","${Break}"],["${case}","${Case}"],["${caseelse}","${CaseElse}"],["${continue}","${Continue}"],["${default}","${Default}"],["${do}","${Do}"],["${dountil}","${DoUntil}"],["${dowhile}","${DoWhile}"],["${else}","${Else}"],["${elseif}","${ElseIf}"],["${elseifnot}","${ElseIfNot}"],["${elseunless}","${ElseUnless}"],["${endif}","${EndIf}"],["${endselect}","${EndSelect}"],["${endswitch}","${EndSwitch}"],["${exitdo}","${ExitDo}"],["${exitfor}","${ExitFor}"],["${exitwhile}","${ExitWhile}"],["${for}","${For}"],["${foreach}","${ForEach}"],["${if}","${If}"],["${ifcmd}","${IfCmd}"],["${ifnot}","${IfNot}"],["${ifnotthen}","${IfNotThen}"],["${ifthen}","${IfThen}"],["${loop}","${Loop}"],["${loopuntil}","${LoopUntil}"],["${loopwhile}","${LoopWhile}"],["${orif}","${OrIf}"],["${orifnot}","${OrIfNot}"],["${orunless}","${OrUnless}"],["${select}","${Select}"],["${switch}","${Switch}"],["${unless}","${Unless}"],["${while}","${While}"],["${mementosection}","${MementoSection}"],["${mementosectiondone}","${MementoSectionDone}"],["${mementosectionend}","${MementoSectionEnd}"],["${mementosectionrestore}","${MementoSectionRestore}"],["${mementosectionsave}","${MementoSectionSave}"],["${mementounselectedsection}","${MementoUnselectedSection}"],["${strcase}","${StrCase}"],["${strclb}","${StrClb}"],["${striotonsis}","${StrIOToNSIS}"],["${strloc}","${StrLoc}"],["${strnsistoio}","${StrNSISToIO}"],["${strrep}","${StrRep}"],["${strsort}","${StrSort}"],["${strstr}","${StrStr}"],["${strstradv}","${StrStrAdv}"],["${strtok}","${StrTok}"],["${strtrimnewlines}","${StrTrimNewLines}"],["${configread}","${ConfigRead}"],["${configreads}","${ConfigReadS}"],["${configwrite}","${ConfigWrite}"],["${configwrites}","${ConfigWriteS}"],["${filejoin}","${FileJoin}"],["${filereadfromend}","${FileReadFromEnd}"],["${filerecode}","${FileRecode}"],["${linefind}","${LineFind}"],["${lineread}","${LineRead}"],["${linesum}","${LineSum}"],["${textcompare}","${TextCompare}"],["${textcompares}","${TextCompareS}"],["${trimnewlines}","${TrimNewLines}"],["${atleastservicepack}","${AtLeastServicePack}"],["${atleastwin10}","${AtLeastWin10}"],["${atleastwin11}","${AtLeastWin11}"],["${atleastwin2000}","${AtLeastWin2000}"],["${atleastwin2003}","${AtLeastWin2003}"],["${atleastwin2008}","${AtLeastWin2008}"],["${atleastwin2008r2}","${AtLeastWin2008R2}"],["${atleastwin7}","${AtLeastWin7}"],["${atleastwin8}","${AtLeastWin8}"],["${atleastwin8.1}","${AtLeastWin8.1}"],["${atleastwin95}","${AtLeastWin95}"],["${atleastwin98}","${AtLeastWin98}"],["${atleastwinme}","${AtLeastWinME}"],["${atleastwinnt4}","${AtLeastWinNT4}"],["${atleastwinvista}","${AtLeastWinVista}"],["${atleastwinxp}","${AtLeastWinXP}"],["${atmostservicepack}","${AtMostServicePack}"],["${atmostwin10}","${AtMostWin10}"],["${atmostwin11}","${AtMostWin11}"],["${atmostwin2000}","${AtMostWin2000}"],["${atmostwin2003}","${AtMostWin2003}"],["${atmostwin2008}","${AtMostWin2008}"],["${atmostwin2008r2}","${AtMostWin2008R2}"],["${atmostwin2012}","${AtMostWin2012}"],["${atmostwin2012r2}","${AtMostWin2012R2}"],["${atmostwin7}","${AtMostWin7}"],["${atmostwin8}","${AtMostWin8}"],["${atmostwin8.1}","${AtMostWin8.1}"],["${atmostwin95}","${AtMostWin95}"],["${atmostwin98}","${AtMostWin98}"],["${atmostwinme}","${AtMostWinME}"],["${atmostwinnt4}","${AtMostWinNT4}"],["${atmostwinvista}","${AtMostWinVista}"],["${atmostwinxp}","${AtMostWinXP}"],["${isdomaincontroller}","${IsDomainController}"],["${isnt}","${IsNT}"],["${isserveros}","${IsServerOS}"],["${isservicepack}","${IsServicePack}"],["${iswin10}","${IsWin10}"],["${iswin11}","${IsWin11}"],["${iswin2000}","${IsWin2000}"],["${iswin2003}","${IsWin2003}"],["${iswin2008}","${IsWin2008}"],["${iswin2008r2}","${IsWin2008R2}"],["${iswin2012}","${IsWin2012}"],["${iswin2012r2}","${IsWin2012R2}"],["${iswin7}","${IsWin7}"],["${iswin8}","${IsWin8}"],["${iswin8.1}","${IsWin8.1}"],["${iswin95}","${IsWin95}"],["${iswin98}","${IsWin98}"],["${iswinme}","${IsWinME}"],["${iswinnt4}","${IsWinNT4}"],["${iswinvista}","${IsWinVista}"],["${iswinxp}","${IsWinXP}"],["${strfilter}","${StrFilter}"],["${strfilters}","${StrFilterS}"],["${versioncompare}","${VersionCompare}"],["${versionconvert}","${VersionConvert}"],["${wordadd}","${WordAdd}"],["${wordadds}","${WordAddS}"],["${wordfind}","${WordFind}"],["${wordfind2x}","${WordFind2X}"],["${wordfind2xs}","${WordFind2XS}"],["${wordfind3x}","${WordFind3X}"],["${wordfind3xs}","${WordFind3XS}"],["${wordfinds}","${WordFindS}"],["${wordinsert}","${WordInsert}"],["${wordinserts}","${WordInsertS}"],["${wordreplace}","${WordReplace}"],["${wordreplaces}","${WordReplaceS}"],["${disablex64fsredirection}","${DisableX64FSRedirection}"],["${enablex64fsredirection}","${EnableX64FSRedirection}"],["${iswow64}","${IsWow64}"],["${runningx64}","${RunningX64}"]]),l=new Map([[`/silent`,`/SILENT`],[`/filesonly`,`/FILESONLY`],[`/rebootok`,`/REBOOTOK`],[`/short`,`/SHORT`],[`/sd`,`/SD`],[`/branding`,`/BRANDING`],[`/final`,`/FINAL`],[`/solid`,`/SOLID`],[`/global`,`/GLOBAL`],[`/bom`,`/BOM`],[`/italic`,`/ITALIC`],[`/underline`,`/UNDERLINE`],[`/strike`,`/STRIKE`],[`/enablecancel`,`/ENABLECANCEL`],[`/overwrite`,`/OVERWRITE`],[`/replace`,`/REPLACE`],[`/noerrors`,`/NOERRORS`],[`/regedit5`,`/REGEDIT5`],[`/exeresource`,`/EXERESOURCE`],[`/stringid`,`/STRINGID`],[`/resizetofit`,`/RESIZETOFIT`],[`/resizetofitwidth`,`/RESIZETOFITWIDTH`],[`/resizetofitheight`,`/RESIZETOFITHEIGHT`],[`/trimleft`,`/TRIMLEFT`],[`/trimright`,`/TRIMRIGHT`],[`/trimcenter`,`/TRIMCENTER`],[`/windows`,`/windows`],[`/nonfatal`,`/NONFATAL`],[`/nocustom`,`/NOCUSTOM`],[`/uninstnocustom`,`/UNINSTNOCUSTOM`],[`/componentsonlyoncustom`,`/COMPONENTSONLYONCUSTOM`],[`/uninstcomponentsonlyoncustom`,`/UNINSTCOMPONENTSONLYONCUSTOM`],[`/fileexists`,`/FILEEXISTS`],[`/rawnl`,`/RAWNL`],[`/productversion`,`/ProductVersion`],[`/noworkingdir`,`/NoWorkingDir`],[`/r`,`/r`],[`/a`,`/a`],[`/e`,`/e`],[`/o`,`/o`],[`/x`,`/x`],[`/ifempty`,`/ifempty`],[`/ifnosubkeys`,`/ifnosubkeys`],[`/ifnovalues`,`/ifnovalues`],[`/nounload`,`/nounload`],[`/plugin`,`/plugin`],[`/ifndef`,`/ifndef`],[`/redef`,`/redef`],[`/date`,`/date`],[`/utcdate`,`/utcdate`],[`/file`,`/file`],[`/intfmt`,`/intfmt`],[`/math`,`/math`],[`/ignorecase`,`/ignorecase`],[`/packed`,`/packed`],[`/target`,`/target`]]),u=new Map([[`/lang=`,`/LANG=`],[`/timeout=`,`/TIMEOUT=`],[`/charset=`,`/CHARSET=`],[`/imgid=`,`/IMGID=`],[`/customstring=`,`/CUSTOMSTRING=`],[`/uninstcustomstring=`,`/UNINSTCUSTOMSTRING=`],[`/oname=`,`/oname=`]]),d=new Map;function f(e,t){for(let n of e){let e=n.toLowerCase(),r=d.get(e);r||(r=new Map,d.set(e,r));for(let[e,n]of t)r.set(e,n)}}f([`AllowRootDirInstall`,`AllowSkipFiles`,`AutoCloseWindow`,`CRCCheck`,`ManifestDPIAware`,`ManifestDisableWindowFiltering`,`ManifestGdiScaling`,`ManifestLongPathAware`,`SetAutoClose`,`SetDatablockOptimize`,`SetDateSave`,`SetPluginUnload`,`Unicode`,`WindowIcon`],[[`true`,`true`],[`false`,`false`]]),f([`CRCCheck`,`LogSet`,`LockWindow`,`SetCompress`,`SetDateSave`,`SetDatablockOptimize`,`SetOverwrite`,`WindowIcon`,`XPStyle`,`LicenseForceSelection`],[[`on`,`on`],[`off`,`off`]]),f([`FileOpen`],[[`r`,`r`],[`w`,`w`],[`a`,`a`]]),f([`SetCompressor`],[[`zlib`,`zlib`],[`bzip2`,`bzip2`],[`lzma`,`lzma`]]),f([`Target`],[[`x86`,`x86`],[`amd64`,`amd64`]]),f([`SetOverwrite`],[[`try`,`try`],[`ifnewer`,`ifnewer`],[`ifdiff`,`ifdiff`],[`lastused`,`lastused`]]),f([`SetCompress`],[[`auto`,`auto`],[`force`,`force`]]),f([`SilentInstall`],[[`normal`,`normal`],[`silent`,`silent`],[`silentlog`,`silentlog`]]),f([`SilentUnInstall`,`SetSilent`],[[`normal`,`normal`],[`silent`,`silent`]]),f([`ShowInstDetails`,`ShowUninstDetails`],[[`hide`,`hide`],[`show`,`show`],[`nevershow`,`nevershow`]]),f([`SetDetailsView`,`DirShow`],[[`show`,`show`],[`hide`,`hide`]]),f([`SetDetailsPrint`],[[`listonly`,`listonly`],[`textonly`,`textonly`],[`both`,`both`],[`none`,`none`],[`lastused`,`lastused`]]),f([`RequestExecutionLevel`],[[`none`,`none`],[`user`,`user`],[`highest`,`highest`],[`admin`,`admin`]]),f([`AddBrandingImage`],[[`top`,`top`],[`left`,`left`],[`bottom`,`bottom`],[`right`,`right`]]),f([`InstProgressFlags`],[[`smooth`,`smooth`],[`colored`,`colored`]]),f([`LicenseForceSelection`],[[`checkbox`,`checkbox`],[`radiobuttons`,`radiobuttons`]]),f([`SetShellVarContext`],[[`all`,`all`],[`current`,`current`]]),f([`DirVerify`],[[`auto`,`auto`],[`leave`,`leave`]]),f([`ExecShell`,`ExecShellWait`],[[`open`,`open`],[`print`,`print`]]),f([`Page`,`UninstPage`],[[`custom`,`custom`],[`license`,`license`],[`components`,`components`],[`directory`,`directory`],[`instfiles`,`instfiles`],[`uninstconfirm`,`uninstConfirm`]]),f([`SetCtlColors`],[[`transparent`,`transparent`]]),f([`LockWindow`],[[`on`,`on`],[`off`,`off`]]),f([`SetRegView`],[[`default`,`default`]]),f([`DeleteRegKey`,`DeleteRegValue`,`EnumRegKey`,`EnumRegValue`,`InstallDirRegKey`,`ReadRegDWORD`,`ReadRegStr`,`WriteRegBin`,`WriteRegDWORD`,`WriteRegExpandStr`,`WriteRegMultiStr`,`WriteRegNone`,`WriteRegStr`],[[`hkcr`,`HKCR`],[`hkcr32`,`HKCR32`],[`hkcr64`,`HKCR64`],[`hklm`,`HKLM`],[`hklm32`,`HKLM32`],[`hklm64`,`HKLM64`],[`hkcu`,`HKCU`],[`hkcu32`,`HKCU32`],[`hkcu64`,`HKCU64`],[`hku`,`HKU`],[`hkcc`,`HKCC`],[`hkdd`,`HKDD`],[`hkpd`,`HKPD`],[`shctx`,`SHCTX`]]),f([`MessageBox`],[[`mb_ok`,`MB_OK`],[`mb_okcancel`,`MB_OKCANCEL`],[`mb_abortretryignore`,`MB_ABORTRETRYIGNORE`],[`mb_retrycancel`,`MB_RETRYCANCEL`],[`mb_yesno`,`MB_YESNO`],[`mb_yesnocancel`,`MB_YESNOCANCEL`],[`mb_iconexclamation`,`MB_ICONEXCLAMATION`],[`mb_iconinformation`,`MB_ICONINFORMATION`],[`mb_iconquestion`,`MB_ICONQUESTION`],[`mb_iconstop`,`MB_ICONSTOP`],[`mb_usericon`,`MB_USERICON`],[`mb_topmost`,`MB_TOPMOST`],[`mb_setforeground`,`MB_SETFOREGROUND`],[`mb_right`,`MB_RIGHT`],[`mb_defbutton1`,`MB_DEFBUTTON1`],[`mb_defbutton2`,`MB_DEFBUTTON2`],[`mb_defbutton3`,`MB_DEFBUTTON3`],[`mb_defbutton4`,`MB_DEFBUTTON4`],[`idok`,`IDOK`],[`idcancel`,`IDCANCEL`],[`idyes`,`IDYES`],[`idno`,`IDNO`],[`idabort`,`IDABORT`],[`idretry`,`IDRETRY`],[`idignore`,`IDIGNORE`]]),f([`CreateShortcut`,`ShowWindow`],[[`sw_shownormal`,`SW_SHOWNORMAL`],[`sw_showmaximized`,`SW_SHOWMAXIMIZED`],[`sw_showminimized`,`SW_SHOWMINIMIZED`],[`sw_hide`,`SW_HIDE`],[`sw_show`,`SW_SHOW`]]),f([`CreateShortcut`],[[`alt`,`ALT`],[`control`,`CONTROL`],[`ext`,`EXT`],[`shift`,`SHIFT`]]),f([`SetFileAttributes`],[[`archive`,`ARCHIVE`],[`hidden`,`HIDDEN`],[`offline`,`OFFLINE`],[`readonly`,`READONLY`],[`system`,`SYSTEM`],[`temporary`,`TEMPORARY`]]),f([`FileSeek`],[[`set`,`SET`],[`cur`,`CUR`],[`end`,`END`]]),f([`GetWinVer`],[[`major`,`MAJOR`],[`minor`,`MINOR`],[`build`,`BUILD`],[`servicepack`,`SERVICEPACK`]]),f([`ManifestSupportedOS`],[[`winvista`,`WinVista`],[`win7`,`Win7`],[`win8`,`Win8`],[`win8.1`,`Win8.1`],[`win10`,`Win10`]]),f([`ChangeUI`],[[`dlg_id`,`dlg_id`]]);const p=d;function m(e){return new Set(e.map(e=>e.toLowerCase()))}const h={open:m([`!if`,`!ifdef`,`!ifmacrodef`,`!ifmacrondef`,`!ifndef`,`!macro`,"${Do}","${DoUntil}","${DoWhile}","${For}","${ForEach}","${If}","${IfNot}","${MementoSection}","${MementoUnselectedSection}","${Select}","${Switch}","${Unless}",`Function`,`PageEx`,`Section`,`SectionGroup`]),case:m(["${Case}","${Case2}","${Case3}","${Case4}","${Case5}","${CaseElse}","${Default}"]),close:m([`!endif`,`!macroend`,"${EndIf}","${EndSelect}","${EndSwitch}","${EndWhile}","${Loop}","${LoopUntil}","${LoopWhile}","${MementoSectionEnd}","${Next}","${While}",`FunctionEnd`,`PageExEnd`,`SectionEnd`,`SectionGroupEnd`]),mid:m([`!else`,`!elseif`,"${Else}","${ElseIf}","${ElseIfNot}","${ElseUnless}","${AndIf}","${AndIfNot}","${AndUnless}","${OrIf}","${OrIfNot}","${OrUnless}"]),closeAfter:m(["${Break}"])};function g(e,t){let n=0,r=[],i=[],a=N(e);t.trimEmptyLines&&(a=P(a));for(let e of a)switch(e.type){case`blank`:i.push(``);break;case`comment`:i.push(v(e,n,t));break;case`label`:i.push(y(e,n,t));break;case`instruction`:{let a=e.keyword.toLowerCase();if(h.open.has(a))i.push(O(e,n,t)),r.push(n),n++;else if(h.case.has(a)){let a=(r.length>0?r[r.length-1]:0)+1;i.push(O(e,a,t)),n=a+1}else if(h.close.has(a))n=r.length>0?r.pop():0,i.push(O(e,n,t));else if(h.mid.has(a)){let n=r.length>0?r[r.length-1]:0;i.push(O(e,n,t))}else h.closeAfter.has(a)?(i.push(O(e,n,t)),n=(r.length>0?r[r.length-1]:0)+1):i.push(O(e,n,t));break}}return i.join(t.eol)+t.eol}function _(e,t){return(t.useTabs?` `:` `.repeat(t.indentSize)).repeat(e)}function v(e,t,n){let r=_(t,n);if(e.style===`block`){let t=e.value.split(/\r?\n/);return t.length===1?`${r}/*${e.value}*/`:t.map((e,n)=>{if(n===0)return`${r}/*${e}`;let i=e.trimStart();return n===t.length-1?`${r} ${i}*/`:`${r} ${i}`}).join(n.eol)}return`${r}${e.style===`hash`?`#`:`;`} ${e.value}`}function y(e,t,n){let r=`${_(t,n)}${e.name}:`;return e.comment&&(r+=` ${k(e.comment)}`),r}function b(e,t){if(e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||e.startsWith(`$`))return e;let n=e.toLowerCase(),r=t?.get(n)??l.get(n);if(r!==void 0)return r;let i=e.indexOf(`=`);if(i>0){let t=`${n.slice(0,i+1)}`,r=u.get(t);if(r!==void 0)return`${r}${e.slice(i+1)}`}return e}function x(e){return e.flatMap(e=>e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||!e.includes(`|`)||e===`|`?[e]:S(e,`|`))}function S(e,t){let n=[],r=``,i=0;for(;i<e.length;){if(e[i]===`$`&&e[i+1]===`{`){let t=e.indexOf(`}`,i+2);if(t!==-1){r+=e.slice(i,t+1),i=t+1;continue}}if(e[i]===t){r&&n.push(r),r=``,n.push(t),i++;continue}r+=e[i],i++}return r&&n.push(r),n}const ee=new Set([`intop`,`intptrop`]);function C(e){return e.flatMap(e=>e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||w.has(e)?[e]:E(e))}const w=new Set([`>>>`,`||`,`&&`,`<<`,`>>`,`+`,`-`,`*`,`/`,`%`,`|`,`&`,`^`,`~`,`!`]),T=new Set([`+`,`-`,`*`,`/`,`%`,`|`,`&`,`^`,`~`,`!`]);function E(e){let t=[],n=``,r=!0,i=0;for(;i<e.length;){if(e[i]===`$`&&e[i+1]===`{`){let t=e.indexOf(`}`,i+2);if(t!==-1){n+=e.slice(i,t+1),i=t+1,r=!1;continue}}if(i+2<e.length){let a=e.slice(i,i+3);if(w.has(a)){n&&=(t.push(n),``),t.push(a),r=!0,i+=3;continue}}if(i+1<e.length){let a=e.slice(i,i+2);if(w.has(a)){n&&=(t.push(n),``),t.push(a),r=!0,i+=2;continue}}let a=e[i];if(T.has(a)){if(a===`-`&&r){n+=a,i++;continue}n&&=(t.push(n),``),t.push(a),r=!0,i++;continue}n+=a,r=!1,i++}return n&&t.push(n),t.length>0?t:[e]}function D(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];r===`|`?t+=`|`:(n>0&&e[n-1]===`|`||t&&(t+=` `),t+=r)}return t}function O(e,t,n){let r=e.keyword.toLowerCase(),i=s.get(r)??c.get(r)??e.keyword,a=p.get(r),o=ee.has(r),l=(o?C(e.args):x(e.args)).map(e=>b(e,a)),u=_(t,n);if(n.printWidth>0&&l.length>0)return A(i,l,e.comment?k(e.comment):void 0,u,o,n);let d=o?l.join(` `):D(l),f=`${u}${l.length>0?`${i} ${d}`:i}`;return e.comment&&(f+=` ${k(e.comment)}`),f}function k(e){return`${e.style===`hash`?`#`:`;`} ${e.value}`}function A(e,t,n,r,i,a){let o=(e=>i?e.join(` `):D(e))(t),s=t.length>0?`${r}${e} ${o}`:`${r}${e}`,c=n?`${s} ${n}`:s;if(c.length<=a.printWidth)return c;let l=[],u=`${r}${e}`;for(let e of t){let t=`${u} ${e}`;t.length+2>a.printWidth&&u.length>r.length?(l.push(`${u} \\`),u=`${r}${e}`):u=t}return n&&(u=`${u} ${n}`),l.push(u),l.join(a.eol)}function j(e){if(e.type!==`instruction`)return!1;let t=e.keyword.toLowerCase();return h.open.has(t)||h.case.has(t)}function M(e){return e.type===`instruction`&&h.close.has(e.keyword.toLowerCase())}function N(e){let t=[],n;for(let r=0;r<e.length;r++){let i=e[r],a=t.length>0&&t[t.length-1].type===`blank`;if(n&&!a&&i.type!==`blank`)if(j(i)&&!j(n)&&n.type!==`comment`)t.push({type:`blank`});else if(i.type===`comment`&&!j(n)&&n.type!==`comment`){let n=r+1;for(;n<e.length&&(e[n].type===`blank`||e[n].type===`comment`);)n++;n<e.length&&j(e[n])&&t.push({type:`blank`})}else M(n)&&!M(i)&&!j(i)&&t.push({type:`blank`});t.push(i),i.type!==`blank`&&(n=i)}return t}function P(e){let t=0;for(;t<e.length&&e[t].type===`blank`;)t++;let n=e.length-1;for(;n>=t&&e[n].type===`blank`;)n--;let r=[],i=!1;for(let a=t;a<=n;a++){let t=e[a];t.type===`blank`?i||=(r.push(t),!0):(r.push(t),i=!1)}return r}function te(n={}){let r={indentSize:2,printWidth:120,trimEmptyLines:!0,useTabs:!0,...n};if(r.useTabs===!1&&(!r.indentSize||Number.isNaN(r.indentSize)||r.indentSize<=0))throw Error(`The indentSize option expects a positive integer`);function i(e){let t=o(e),n=s(e);return g(t,{useTabs:r.useTabs??!0,indentSize:r.indentSize??2,printWidth:r.printWidth??120,trimEmptyLines:r.trimEmptyLines??!0,eol:n})}function a(e){let t=i(e);return t===e?null:t}function s(n){return r.endOfLines?r.endOfLines===`crlf`?`\r
16
+ `,B+=2):(t=a,W===0&&Y(me)),t===a&&(t=e.charAt(B),ee.test(t)?B++:(t=a,W===0&&Y(he))),W--,t===a&&W===0&&Y(pe),t}function Q(){let e;return e=Qe(),e===a&&(e=$e()),e}function $e(){let t,n;return t=B,W++,e.length>B?(n=e.charAt(B),B++):(n=a,W===0&&Y(D)),W--,n===a?t=void 0:(B=t,t=a),t}G=c();let $=G!==a&&B===e.length;function et(){throw G!==a&&B<e.length&&Y(je()),Pe(U,H<e.length?ke(H):null,H<e.length?Ne(H,H+1):Ne(H,H))}if(t.peg$library)return{peg$result:G,peg$currPos:B,peg$FAILED:a,peg$maxFailExpected:U,peg$maxFailPos:H,peg$success:$,peg$throw:$?void 0:et};if($)return G;et()}function o(e){return a(e.replace(/^\uFEFF/,``).replace(/\\\r?\n[ \t]*/g,` `))}const s=new Map([[`!addincludedir`,`!addincludedir`],[`!addplugindir`,`!addplugindir`],[`!appendfile`,`!appendfile`],[`!appendmemfile`,`!appendmemfile`],[`!assert`,`!assert`],[`!cd`,`!cd`],[`!define`,`!define`],[`!delfile`,`!delfile`],[`!echo`,`!echo`],[`!else`,`!else`],[`!endif`,`!endif`],[`!error`,`!error`],[`!execute`,`!execute`],[`!finalize`,`!finalize`],[`!getdllversion`,`!getdllversion`],[`!gettlbversion`,`!gettlbversion`],[`!if`,`!if`],[`!ifdef`,`!ifdef`],[`!ifmacrodef`,`!ifmacrodef`],[`!ifmacrondef`,`!ifmacrondef`],[`!ifndef`,`!ifndef`],[`!include`,`!include`],[`!insertmacro`,`!insertmacro`],[`!macro`,`!macro`],[`!macroend`,`!macroend`],[`!macroundef`,`!macroundef`],[`!makensis`,`!makensis`],[`!packhdr`,`!packhdr`],[`!pragma`,`!pragma`],[`!searchparse`,`!searchparse`],[`!searchreplace`,`!searchreplace`],[`!system`,`!system`],[`!tempfile`,`!tempfile`],[`!undef`,`!undef`],[`!uninstfinalize`,`!uninstfinalize`],[`!verbose`,`!verbose`],[`!warning`,`!warning`],[`abort`,`Abort`],[`addbrandingimage`,`AddBrandingImage`],[`addsize`,`AddSize`],[`allowrootdirinstall`,`AllowRootDirInstall`],[`allowskipfiles`,`AllowSkipFiles`],[`autoclosewindow`,`AutoCloseWindow`],[`bgfont`,`BGFont`],[`bggradient`,`BGGradient`],[`brandingtext`,`BrandingText`],[`bringtofront`,`BringToFront`],[`call`,`Call`],[`callinstdll`,`CallInstDLL`],[`caption`,`Caption`],[`changeui`,`ChangeUI`],[`checkbitmap`,`CheckBitmap`],[`clearerrors`,`ClearErrors`],[`completedtext`,`CompletedText`],[`componenttext`,`ComponentText`],[`copyfiles`,`CopyFiles`],[`cpu`,`CPU`],[`crccheck`,`CRCCheck`],[`createdirectory`,`CreateDirectory`],[`createfont`,`CreateFont`],[`createshortcut`,`CreateShortcut`],[`delete`,`Delete`],[`deleteinisec`,`DeleteINISec`],[`deleteinistr`,`DeleteINIStr`],[`deleteregkey`,`DeleteRegKey`],[`deleteregvalue`,`DeleteRegValue`],[`detailprint`,`DetailPrint`],[`detailsbuttontext`,`DetailsButtonText`],[`dirshow`,`DirShow`],[`dirtext`,`DirText`],[`dirvar`,`DirVar`],[`dirverify`,`DirVerify`],[`enablewindow`,`EnableWindow`],[`enumregkey`,`EnumRegKey`],[`enumregvalue`,`EnumRegValue`],[`exch`,`Exch`],[`exec`,`Exec`],[`execshell`,`ExecShell`],[`execshellwait`,`ExecShellWait`],[`execwait`,`ExecWait`],[`expandenvstrings`,`ExpandEnvStrings`],[`file`,`File`],[`filebufsize`,`FileBufSize`],[`fileclose`,`FileClose`],[`fileerrortext`,`FileErrorText`],[`fileopen`,`FileOpen`],[`fileread`,`FileRead`],[`filereadbyte`,`FileReadByte`],[`filereadutf16le`,`FileReadUTF16LE`],[`filereadword`,`FileReadWord`],[`fileseek`,`FileSeek`],[`filewrite`,`FileWrite`],[`filewritebyte`,`FileWriteByte`],[`filewriteutf16le`,`FileWriteUTF16LE`],[`filewriteword`,`FileWriteWord`],[`findclose`,`FindClose`],[`findfirst`,`FindFirst`],[`findnext`,`FindNext`],[`findwindow`,`FindWindow`],[`flushini`,`FlushINI`],[`function`,`Function`],[`functionend`,`FunctionEnd`],[`getcurinsttype`,`GetCurInstType`],[`getcurrentaddress`,`GetCurrentAddress`],[`getdlgitem`,`GetDlgItem`],[`getdllversion`,`GetDLLVersion`],[`getdllversionlocal`,`GetDLLVersionLocal`],[`geterrorlevel`,`GetErrorLevel`],[`getfiletime`,`GetFileTime`],[`getfiletimelocal`,`GetFileTimeLocal`],[`getfullpathname`,`GetFullPathName`],[`getfunctionaddress`,`GetFunctionAddress`],[`getinstdirerror`,`GetInstDirError`],[`getknownfolderpath`,`GetKnownFolderPath`],[`getlabeladdress`,`GetLabelAddress`],[`getregview`,`GetRegView`],[`getshellvarcontext`,`GetShellVarContext`],[`gettempfilename`,`GetTempFileName`],[`getwinver`,`GetWinVer`],[`goto`,`Goto`],[`hidewindow`,`HideWindow`],[`icon`,`Icon`],[`ifabort`,`IfAbort`],[`ifaltregview`,`IfAltRegView`],[`iferrors`,`IfErrors`],[`iffileexists`,`IfFileExists`],[`ifrebootflag`,`IfRebootFlag`],[`ifrtllanguage`,`IfRtlLanguage`],[`ifshellvarcontextall`,`IfShellVarContextAll`],[`ifsilent`,`IfSilent`],[`initpluginsdir`,`InitPluginsDir`],[`installbuttontext`,`InstallButtonText`],[`installcolors`,`InstallColors`],[`installdir`,`InstallDir`],[`installdirregkey`,`InstallDirRegKey`],[`instprogressflags`,`InstProgressFlags`],[`insttype`,`InstType`],[`insttypegettext`,`InstTypeGetText`],[`insttypesettext`,`InstTypeSetText`],[`int64cmp`,`Int64Cmp`],[`int64cmpu`,`Int64CmpU`],[`int64fmt`,`Int64Fmt`],[`intcmp`,`IntCmp`],[`intcmpu`,`IntCmpU`],[`intfmt`,`IntFmt`],[`intop`,`IntOp`],[`intptrcmp`,`IntPtrCmp`],[`intptrcmpu`,`IntPtrCmpU`],[`intptrop`,`IntPtrOp`],[`iswindow`,`IsWindow`],[`langstring`,`LangString`],[`langstringup`,`LangStringUP`],[`licensebkcolor`,`LicenseBkColor`],[`licensedata`,`LicenseData`],[`licenseforceselection`,`LicenseForceSelection`],[`licenselangstring`,`LicenseLangString`],[`licensetext`,`LicenseText`],[`loadandsetimage`,`LoadAndSetImage`],[`loadlanguagefile`,`LoadLanguageFile`],[`lockwindow`,`LockWindow`],[`logset`,`LogSet`],[`logtext`,`LogText`],[`manifestappendcustomstring`,`ManifestAppendCustomString`],[`manifestdisablewindowfiltering`,`ManifestDisableWindowFiltering`],[`manifestdpiaware`,`ManifestDPIAware`],[`manifestdpiawareness`,`ManifestDPIAwareness`],[`manifestgdiscaling`,`ManifestGdiScaling`],[`manifestlongpathaware`,`ManifestLongPathAware`],[`manifestmaxversiontested`,`ManifestMaxVersionTested`],[`manifestsupportedos`,`ManifestSupportedOS`],[`messagebox`,`MessageBox`],[`miscbuttontext`,`MiscButtonText`],[`name`,`Name`],[`nop`,`Nop`],[`outfile`,`OutFile`],[`page`,`Page`],[`pagecallbacks`,`PageCallbacks`],[`pageex`,`PageEx`],[`pageexend`,`PageExEnd`],[`peaddresource`,`PEAddResource`],[`pedllcharacteristics`,`PEDllCharacteristics`],[`peremoveresource`,`PERemoveResource`],[`pesubsysver`,`PESubsysVer`],[`pop`,`Pop`],[`push`,`Push`],[`quit`,`Quit`],[`readenvstr`,`ReadEnvStr`],[`readinistr`,`ReadINIStr`],[`readmemory`,`ReadMemory`],[`readregdword`,`ReadRegDWORD`],[`readregstr`,`ReadRegStr`],[`reboot`,`Reboot`],[`regdll`,`RegDLL`],[`rename`,`Rename`],[`requestexecutionlevel`,`RequestExecutionLevel`],[`reservefile`,`ReserveFile`],[`return`,`Return`],[`rmdir`,`RMDir`],[`searchpath`,`SearchPath`],[`section`,`Section`],[`sectionend`,`SectionEnd`],[`sectiongetflags`,`SectionGetFlags`],[`sectiongetinsttypes`,`SectionGetInstTypes`],[`sectiongetsize`,`SectionGetSize`],[`sectiongettext`,`SectionGetText`],[`sectiongroup`,`SectionGroup`],[`sectiongroupend`,`SectionGroupEnd`],[`sectionin`,`SectionIn`],[`sectioninsttype`,`SectionInstType`],[`sectionsetflags`,`SectionSetFlags`],[`sectionsetinsttypes`,`SectionSetInstTypes`],[`sectionsetsize`,`SectionSetSize`],[`sectionsettext`,`SectionSetText`],[`sendmessage`,`SendMessage`],[`setautoclose`,`SetAutoClose`],[`setbrandingimage`,`SetBrandingImage`],[`setcompress`,`SetCompress`],[`setcompressionlevel`,`SetCompressionLevel`],[`setcompressor`,`SetCompressor`],[`setcompressordictsize`,`SetCompressorDictSize`],[`setctlcolors`,`SetCtlColors`],[`setcurinsttype`,`SetCurInstType`],[`setdatablockoptimize`,`SetDatablockOptimize`],[`setdatesave`,`SetDateSave`],[`setdetailsprint`,`SetDetailsPrint`],[`setdetailsview`,`SetDetailsView`],[`seterrorlevel`,`SetErrorLevel`],[`seterrors`,`SetErrors`],[`setfileattributes`,`SetFileAttributes`],[`setfont`,`SetFont`],[`setoutpath`,`SetOutPath`],[`setoverwrite`,`SetOverwrite`],[`setpluginunload`,`SetPluginUnload`],[`setrebootflag`,`SetRebootFlag`],[`setregview`,`SetRegView`],[`setshellvarcontext`,`SetShellVarContext`],[`setsilent`,`SetSilent`],[`showinstdetails`,`ShowInstDetails`],[`showuninstdetails`,`ShowUninstDetails`],[`showwindow`,`ShowWindow`],[`silentinstall`,`SilentInstall`],[`silentuninstall`,`SilentUnInstall`],[`sleep`,`Sleep`],[`spacetexts`,`SpaceTexts`],[`strcmp`,`StrCmp`],[`strcmps`,`StrCmpS`],[`strcpy`,`StrCpy`],[`strlen`,`StrLen`],[`subcaption`,`SubCaption`],[`subsection`,`SubSection`],[`subsectionend`,`SubSectionEnd`],[`target`,`Target`],[`unicode`,`Unicode`],[`uninstallbuttontext`,`UninstallButtonText`],[`uninstallcaption`,`UninstallCaption`],[`uninstallexename`,`UninstallExeName`],[`uninstallicon`,`UninstallIcon`],[`uninstallsubcaption`,`UninstallSubCaption`],[`uninstalltext`,`UninstallText`],[`uninstpage`,`UninstPage`],[`unregdll`,`UnRegDLL`],[`unsafestrcpy`,`UnsafeStrCpy`],[`var`,`Var`],[`viaddversionkey`,`VIAddVersionKey`],[`vifileversion`,`VIFileVersion`],[`viproductversion`,`VIProductVersion`],[`windowicon`,`WindowIcon`],[`writeinistr`,`WriteINIStr`],[`writeregbin`,`WriteRegBin`],[`writeregdword`,`WriteRegDWORD`],[`writeregexpandstr`,`WriteRegExpandStr`],[`writeregmultistr`,`WriteRegMultiStr`],[`writeregnone`,`WriteRegNone`],[`writeregstr`,`WriteRegStr`],[`writeuninstaller`,`WriteUninstaller`],[`xpstyle`,`XPStyle`]]),c=new Map([["${bannertrimpath}","${BannerTrimPath}"],["${dirstate}","${DirState}"],["${drivespace}","${DriveSpace}"],["${getbasename}","${GetBaseName}"],["${getdrives}","${GetDrives}"],["${getexename}","${GetExeName}"],["${getexepath}","${GetExePath}"],["${getfileattributes}","${GetFileAttributes}"],["${getfileext}","${GetFileExt}"],["${getfilename}","${GetFileName}"],["${getfileversion}","${GetFileVersion}"],["${getoptions}","${GetOptions}"],["${getoptionss}","${GetOptionsS}"],["${getparameters}","${GetParameters}"],["${getparent}","${GetParent}"],["${getroot}","${GetRoot}"],["${getsize}","${GetSize}"],["${gettime}","${GetTime}"],["${locate}","${Locate}"],["${refreshshellicons}","${RefreshShellIcons}"],["${andif}","${AndIf}"],["${andifnot}","${AndIfNot}"],["${andunless}","${AndUnless}"],["${break}","${Break}"],["${case}","${Case}"],["${caseelse}","${CaseElse}"],["${continue}","${Continue}"],["${default}","${Default}"],["${do}","${Do}"],["${dountil}","${DoUntil}"],["${dowhile}","${DoWhile}"],["${else}","${Else}"],["${elseif}","${ElseIf}"],["${elseifnot}","${ElseIfNot}"],["${elseunless}","${ElseUnless}"],["${endif}","${EndIf}"],["${endselect}","${EndSelect}"],["${endswitch}","${EndSwitch}"],["${exitdo}","${ExitDo}"],["${exitfor}","${ExitFor}"],["${exitwhile}","${ExitWhile}"],["${for}","${For}"],["${foreach}","${ForEach}"],["${if}","${If}"],["${ifcmd}","${IfCmd}"],["${ifnot}","${IfNot}"],["${ifnotthen}","${IfNotThen}"],["${ifthen}","${IfThen}"],["${loop}","${Loop}"],["${loopuntil}","${LoopUntil}"],["${loopwhile}","${LoopWhile}"],["${orif}","${OrIf}"],["${orifnot}","${OrIfNot}"],["${orunless}","${OrUnless}"],["${select}","${Select}"],["${switch}","${Switch}"],["${unless}","${Unless}"],["${while}","${While}"],["${mementosection}","${MementoSection}"],["${mementosectiondone}","${MementoSectionDone}"],["${mementosectionend}","${MementoSectionEnd}"],["${mementosectionrestore}","${MementoSectionRestore}"],["${mementosectionsave}","${MementoSectionSave}"],["${mementounselectedsection}","${MementoUnselectedSection}"],["${strcase}","${StrCase}"],["${strclb}","${StrClb}"],["${striotonsis}","${StrIOToNSIS}"],["${strloc}","${StrLoc}"],["${strnsistoio}","${StrNSISToIO}"],["${strrep}","${StrRep}"],["${strsort}","${StrSort}"],["${strstr}","${StrStr}"],["${strstradv}","${StrStrAdv}"],["${strtok}","${StrTok}"],["${strtrimnewlines}","${StrTrimNewLines}"],["${configread}","${ConfigRead}"],["${configreads}","${ConfigReadS}"],["${configwrite}","${ConfigWrite}"],["${configwrites}","${ConfigWriteS}"],["${filejoin}","${FileJoin}"],["${filereadfromend}","${FileReadFromEnd}"],["${filerecode}","${FileRecode}"],["${linefind}","${LineFind}"],["${lineread}","${LineRead}"],["${linesum}","${LineSum}"],["${textcompare}","${TextCompare}"],["${textcompares}","${TextCompareS}"],["${trimnewlines}","${TrimNewLines}"],["${atleastservicepack}","${AtLeastServicePack}"],["${atleastwin10}","${AtLeastWin10}"],["${atleastwin11}","${AtLeastWin11}"],["${atleastwin2000}","${AtLeastWin2000}"],["${atleastwin2003}","${AtLeastWin2003}"],["${atleastwin2008}","${AtLeastWin2008}"],["${atleastwin2008r2}","${AtLeastWin2008R2}"],["${atleastwin7}","${AtLeastWin7}"],["${atleastwin8}","${AtLeastWin8}"],["${atleastwin8.1}","${AtLeastWin8.1}"],["${atleastwin95}","${AtLeastWin95}"],["${atleastwin98}","${AtLeastWin98}"],["${atleastwinme}","${AtLeastWinME}"],["${atleastwinnt4}","${AtLeastWinNT4}"],["${atleastwinvista}","${AtLeastWinVista}"],["${atleastwinxp}","${AtLeastWinXP}"],["${atmostservicepack}","${AtMostServicePack}"],["${atmostwin10}","${AtMostWin10}"],["${atmostwin11}","${AtMostWin11}"],["${atmostwin2000}","${AtMostWin2000}"],["${atmostwin2003}","${AtMostWin2003}"],["${atmostwin2008}","${AtMostWin2008}"],["${atmostwin2008r2}","${AtMostWin2008R2}"],["${atmostwin2012}","${AtMostWin2012}"],["${atmostwin2012r2}","${AtMostWin2012R2}"],["${atmostwin7}","${AtMostWin7}"],["${atmostwin8}","${AtMostWin8}"],["${atmostwin8.1}","${AtMostWin8.1}"],["${atmostwin95}","${AtMostWin95}"],["${atmostwin98}","${AtMostWin98}"],["${atmostwinme}","${AtMostWinME}"],["${atmostwinnt4}","${AtMostWinNT4}"],["${atmostwinvista}","${AtMostWinVista}"],["${atmostwinxp}","${AtMostWinXP}"],["${isdomaincontroller}","${IsDomainController}"],["${isnt}","${IsNT}"],["${isserveros}","${IsServerOS}"],["${isservicepack}","${IsServicePack}"],["${iswin10}","${IsWin10}"],["${iswin11}","${IsWin11}"],["${iswin2000}","${IsWin2000}"],["${iswin2003}","${IsWin2003}"],["${iswin2008}","${IsWin2008}"],["${iswin2008r2}","${IsWin2008R2}"],["${iswin2012}","${IsWin2012}"],["${iswin2012r2}","${IsWin2012R2}"],["${iswin7}","${IsWin7}"],["${iswin8}","${IsWin8}"],["${iswin8.1}","${IsWin8.1}"],["${iswin95}","${IsWin95}"],["${iswin98}","${IsWin98}"],["${iswinme}","${IsWinME}"],["${iswinnt4}","${IsWinNT4}"],["${iswinvista}","${IsWinVista}"],["${iswinxp}","${IsWinXP}"],["${strfilter}","${StrFilter}"],["${strfilters}","${StrFilterS}"],["${versioncompare}","${VersionCompare}"],["${versionconvert}","${VersionConvert}"],["${wordadd}","${WordAdd}"],["${wordadds}","${WordAddS}"],["${wordfind}","${WordFind}"],["${wordfind2x}","${WordFind2X}"],["${wordfind2xs}","${WordFind2XS}"],["${wordfind3x}","${WordFind3X}"],["${wordfind3xs}","${WordFind3XS}"],["${wordfinds}","${WordFindS}"],["${wordinsert}","${WordInsert}"],["${wordinserts}","${WordInsertS}"],["${wordreplace}","${WordReplace}"],["${wordreplaces}","${WordReplaceS}"],["${disablex64fsredirection}","${DisableX64FSRedirection}"],["${enablex64fsredirection}","${EnableX64FSRedirection}"],["${iswow64}","${IsWow64}"],["${runningx64}","${RunningX64}"]]),l=new Map([[`/silent`,`/SILENT`],[`/filesonly`,`/FILESONLY`],[`/rebootok`,`/REBOOTOK`],[`/short`,`/SHORT`],[`/sd`,`/SD`],[`/branding`,`/BRANDING`],[`/final`,`/FINAL`],[`/solid`,`/SOLID`],[`/global`,`/GLOBAL`],[`/bom`,`/BOM`],[`/italic`,`/ITALIC`],[`/underline`,`/UNDERLINE`],[`/strike`,`/STRIKE`],[`/enablecancel`,`/ENABLECANCEL`],[`/overwrite`,`/OVERWRITE`],[`/replace`,`/REPLACE`],[`/noerrors`,`/NOERRORS`],[`/regedit5`,`/REGEDIT5`],[`/exeresource`,`/EXERESOURCE`],[`/stringid`,`/STRINGID`],[`/resizetofit`,`/RESIZETOFIT`],[`/resizetofitwidth`,`/RESIZETOFITWIDTH`],[`/resizetofitheight`,`/RESIZETOFITHEIGHT`],[`/trimleft`,`/TRIMLEFT`],[`/trimright`,`/TRIMRIGHT`],[`/trimcenter`,`/TRIMCENTER`],[`/windows`,`/windows`],[`/nonfatal`,`/NONFATAL`],[`/nocustom`,`/NOCUSTOM`],[`/uninstnocustom`,`/UNINSTNOCUSTOM`],[`/componentsonlyoncustom`,`/COMPONENTSONLYONCUSTOM`],[`/uninstcomponentsonlyoncustom`,`/UNINSTCOMPONENTSONLYONCUSTOM`],[`/fileexists`,`/FILEEXISTS`],[`/rawnl`,`/RAWNL`],[`/productversion`,`/ProductVersion`],[`/noworkingdir`,`/NoWorkingDir`],[`/r`,`/r`],[`/a`,`/a`],[`/e`,`/e`],[`/o`,`/o`],[`/x`,`/x`],[`/ifempty`,`/ifempty`],[`/ifnosubkeys`,`/ifnosubkeys`],[`/ifnovalues`,`/ifnovalues`],[`/nounload`,`/nounload`],[`/plugin`,`/plugin`],[`/ifndef`,`/ifndef`],[`/redef`,`/redef`],[`/date`,`/date`],[`/utcdate`,`/utcdate`],[`/file`,`/file`],[`/intfmt`,`/intfmt`],[`/math`,`/math`],[`/ignorecase`,`/ignorecase`],[`/packed`,`/packed`],[`/target`,`/target`]]),u=new Map([[`/lang=`,`/LANG=`],[`/timeout=`,`/TIMEOUT=`],[`/charset=`,`/CHARSET=`],[`/imgid=`,`/IMGID=`],[`/customstring=`,`/CUSTOMSTRING=`],[`/uninstcustomstring=`,`/UNINSTCUSTOMSTRING=`],[`/oname=`,`/oname=`]]),d=new Map;function f(e,t){for(let n of e){let e=n.toLowerCase(),r=d.get(e);r||(r=new Map,d.set(e,r));for(let[e,n]of t)r.set(e,n)}}f([`AllowRootDirInstall`,`AllowSkipFiles`,`AutoCloseWindow`,`CRCCheck`,`ManifestDPIAware`,`ManifestDisableWindowFiltering`,`ManifestGdiScaling`,`ManifestLongPathAware`,`SetAutoClose`,`SetDatablockOptimize`,`SetDateSave`,`SetPluginUnload`,`Unicode`,`WindowIcon`],[[`true`,`true`],[`false`,`false`]]),f([`CRCCheck`,`LogSet`,`LockWindow`,`SetCompress`,`SetDateSave`,`SetDatablockOptimize`,`SetOverwrite`,`WindowIcon`,`XPStyle`,`LicenseForceSelection`],[[`on`,`on`],[`off`,`off`]]),f([`FileOpen`],[[`r`,`r`],[`w`,`w`],[`a`,`a`]]),f([`SetCompressor`],[[`zlib`,`zlib`],[`bzip2`,`bzip2`],[`lzma`,`lzma`]]),f([`Target`],[[`x86`,`x86`],[`amd64`,`amd64`]]),f([`SetOverwrite`],[[`try`,`try`],[`ifnewer`,`ifnewer`],[`ifdiff`,`ifdiff`],[`lastused`,`lastused`]]),f([`SetCompress`],[[`auto`,`auto`],[`force`,`force`]]),f([`SilentInstall`],[[`normal`,`normal`],[`silent`,`silent`],[`silentlog`,`silentlog`]]),f([`SilentUnInstall`,`SetSilent`],[[`normal`,`normal`],[`silent`,`silent`]]),f([`ShowInstDetails`,`ShowUninstDetails`],[[`hide`,`hide`],[`show`,`show`],[`nevershow`,`nevershow`]]),f([`SetDetailsView`,`DirShow`],[[`show`,`show`],[`hide`,`hide`]]),f([`SetDetailsPrint`],[[`listonly`,`listonly`],[`textonly`,`textonly`],[`both`,`both`],[`none`,`none`],[`lastused`,`lastused`]]),f([`RequestExecutionLevel`],[[`none`,`none`],[`user`,`user`],[`highest`,`highest`],[`admin`,`admin`]]),f([`AddBrandingImage`],[[`top`,`top`],[`left`,`left`],[`bottom`,`bottom`],[`right`,`right`]]),f([`InstProgressFlags`],[[`smooth`,`smooth`],[`colored`,`colored`]]),f([`LicenseForceSelection`],[[`checkbox`,`checkbox`],[`radiobuttons`,`radiobuttons`]]),f([`SetShellVarContext`],[[`all`,`all`],[`current`,`current`]]),f([`DirVerify`],[[`auto`,`auto`],[`leave`,`leave`]]),f([`ExecShell`,`ExecShellWait`],[[`open`,`open`],[`print`,`print`]]),f([`Page`,`UninstPage`],[[`custom`,`custom`],[`license`,`license`],[`components`,`components`],[`directory`,`directory`],[`instfiles`,`instfiles`],[`uninstconfirm`,`uninstConfirm`]]),f([`SetCtlColors`],[[`transparent`,`transparent`]]),f([`LockWindow`],[[`on`,`on`],[`off`,`off`]]),f([`SetRegView`],[[`default`,`default`]]),f([`DeleteRegKey`,`DeleteRegValue`,`EnumRegKey`,`EnumRegValue`,`InstallDirRegKey`,`ReadRegDWORD`,`ReadRegStr`,`WriteRegBin`,`WriteRegDWORD`,`WriteRegExpandStr`,`WriteRegMultiStr`,`WriteRegNone`,`WriteRegStr`],[[`hkcr`,`HKCR`],[`hkcr32`,`HKCR32`],[`hkcr64`,`HKCR64`],[`hklm`,`HKLM`],[`hklm32`,`HKLM32`],[`hklm64`,`HKLM64`],[`hkcu`,`HKCU`],[`hkcu32`,`HKCU32`],[`hkcu64`,`HKCU64`],[`hku`,`HKU`],[`hkcc`,`HKCC`],[`hkdd`,`HKDD`],[`hkpd`,`HKPD`],[`shctx`,`SHCTX`]]),f([`MessageBox`],[[`mb_ok`,`MB_OK`],[`mb_okcancel`,`MB_OKCANCEL`],[`mb_abortretryignore`,`MB_ABORTRETRYIGNORE`],[`mb_retrycancel`,`MB_RETRYCANCEL`],[`mb_yesno`,`MB_YESNO`],[`mb_yesnocancel`,`MB_YESNOCANCEL`],[`mb_iconexclamation`,`MB_ICONEXCLAMATION`],[`mb_iconinformation`,`MB_ICONINFORMATION`],[`mb_iconquestion`,`MB_ICONQUESTION`],[`mb_iconstop`,`MB_ICONSTOP`],[`mb_usericon`,`MB_USERICON`],[`mb_topmost`,`MB_TOPMOST`],[`mb_setforeground`,`MB_SETFOREGROUND`],[`mb_right`,`MB_RIGHT`],[`mb_defbutton1`,`MB_DEFBUTTON1`],[`mb_defbutton2`,`MB_DEFBUTTON2`],[`mb_defbutton3`,`MB_DEFBUTTON3`],[`mb_defbutton4`,`MB_DEFBUTTON4`],[`idok`,`IDOK`],[`idcancel`,`IDCANCEL`],[`idyes`,`IDYES`],[`idno`,`IDNO`],[`idabort`,`IDABORT`],[`idretry`,`IDRETRY`],[`idignore`,`IDIGNORE`]]),f([`CreateShortcut`,`ShowWindow`],[[`sw_shownormal`,`SW_SHOWNORMAL`],[`sw_showmaximized`,`SW_SHOWMAXIMIZED`],[`sw_showminimized`,`SW_SHOWMINIMIZED`],[`sw_hide`,`SW_HIDE`],[`sw_show`,`SW_SHOW`]]),f([`CreateShortcut`],[[`alt`,`ALT`],[`control`,`CONTROL`],[`ext`,`EXT`],[`shift`,`SHIFT`]]),f([`SetFileAttributes`],[[`archive`,`ARCHIVE`],[`hidden`,`HIDDEN`],[`offline`,`OFFLINE`],[`readonly`,`READONLY`],[`system`,`SYSTEM`],[`temporary`,`TEMPORARY`]]),f([`FileSeek`],[[`set`,`SET`],[`cur`,`CUR`],[`end`,`END`]]),f([`GetWinVer`],[[`major`,`MAJOR`],[`minor`,`MINOR`],[`build`,`BUILD`],[`servicepack`,`SERVICEPACK`]]),f([`ManifestSupportedOS`],[[`winvista`,`WinVista`],[`win7`,`Win7`],[`win8`,`Win8`],[`win8.1`,`Win8.1`],[`win10`,`Win10`]]),f([`ChangeUI`],[[`dlg_id`,`dlg_id`]]);const p=d;function m(e){return new Set(e.map(e=>e.toLowerCase()))}const h={open:m([`!if`,`!ifdef`,`!ifmacrodef`,`!ifmacrondef`,`!ifndef`,`!macro`,"${Do}","${DoUntil}","${DoWhile}","${For}","${ForEach}","${If}","${IfNot}","${MementoSection}","${MementoUnselectedSection}","${Select}","${Switch}","${Unless}",`Function`,`PageEx`,`Section`,`SectionGroup`]),case:m(["${Case}","${Case2}","${Case3}","${Case4}","${Case5}","${CaseElse}","${Default}"]),close:m([`!endif`,`!macroend`,"${EndIf}","${EndSelect}","${EndSwitch}","${EndWhile}","${Loop}","${LoopUntil}","${LoopWhile}","${MementoSectionEnd}","${Next}","${While}",`FunctionEnd`,`PageExEnd`,`SectionEnd`,`SectionGroupEnd`]),mid:m([`!else`,`!elseif`,"${Else}","${ElseIf}","${ElseIfNot}","${ElseUnless}","${AndIf}","${AndIfNot}","${AndUnless}","${OrIf}","${OrIfNot}","${OrUnless}"]),closeAfter:m(["${Break}"])};function g(e,t){let n=0,r=[],i=[],a=N(e);t.trimEmptyLines&&(a=P(a));for(let e of a)switch(e.type){case`blank`:i.push(``);break;case`comment`:i.push(v(e,n,t));break;case`label`:i.push(y(e,n,t));break;case`instruction`:{let a=e.keyword.toLowerCase();if(h.open.has(a))i.push(O(e,n,t)),r.push(n),n++;else if(h.case.has(a)){let a=(r.length>0?r[r.length-1]:0)+1;i.push(O(e,a,t)),n=a+1}else if(h.close.has(a))n=r.length>0?r.pop():0,i.push(O(e,n,t));else if(h.mid.has(a)){let n=r.length>0?r[r.length-1]:0;i.push(O(e,n,t))}else h.closeAfter.has(a)?(i.push(O(e,n,t)),n=(r.length>0?r[r.length-1]:0)+1):i.push(O(e,n,t));break}}return i.join(t.eol)+t.eol}function _(e,t){return(t.useTabs?` `:` `.repeat(t.indentSize)).repeat(e)}function v(e,t,n){let r=_(t,n);if(e.style===`block`){let t=e.value.split(/\r?\n/);return t.length===1?`${r}/*${e.value}*/`:t.map((e,n)=>{if(n===0)return`${r}/*${e}`;let i=e.trimStart();return n===t.length-1?`${r} ${i}*/`:`${r} ${i}`}).join(n.eol)}return`${r}${e.style===`hash`?`#`:`;`} ${e.value}`}function y(e,t,n){let r=`${_(t,n)}${e.name}:`;return e.comment&&(r+=` ${k(e.comment)}`),r}function b(e,t){if(e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||e.startsWith(`$`))return e;let n=e.toLowerCase(),r=t?.get(n)??l.get(n);if(r!==void 0)return r;let i=e.indexOf(`=`);if(i>0){let t=`${n.slice(0,i+1)}`,r=u.get(t);if(r!==void 0)return`${r}${e.slice(i+1)}`}return e}function x(e){return e.flatMap(e=>e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||!e.includes(`|`)||e===`|`?[e]:S(e,`|`))}function S(e,t){let n=[],r=``,i=0;for(;i<e.length;){if(e[i]===`$`&&e[i+1]===`{`){let t=e.indexOf(`}`,i+2);if(t!==-1){r+=e.slice(i,t+1),i=t+1;continue}}if(e[i]===t){r&&n.push(r),r=``,n.push(t),i++;continue}r+=e[i],i++}return r&&n.push(r),n}const ee=new Set([`intop`,`intptrop`]);function C(e){return e.flatMap(e=>e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`")||w.has(e)?[e]:E(e))}const w=new Set([`>>>`,`||`,`&&`,`<<`,`>>`,`+`,`-`,`*`,`/`,`%`,`|`,`&`,`^`,`~`,`!`]),T=new Set([`+`,`-`,`*`,`/`,`%`,`|`,`&`,`^`,`~`,`!`]);function E(e){let t=[],n=``,r=!0,i=0;for(;i<e.length;){if(e[i]===`$`&&e[i+1]===`{`){let t=e.indexOf(`}`,i+2);if(t!==-1){n+=e.slice(i,t+1),i=t+1,r=!1;continue}}if(i+2<e.length){let a=e.slice(i,i+3);if(w.has(a)){n&&=(t.push(n),``),t.push(a),r=!0,i+=3;continue}}if(i+1<e.length){let a=e.slice(i,i+2);if(w.has(a)){n&&=(t.push(n),``),t.push(a),r=!0,i+=2;continue}}let a=e[i];if(T.has(a)){if(a===`-`&&r){n+=a,i++;continue}n&&=(t.push(n),``),t.push(a),r=!0,i++;continue}n+=a,r=!1,i++}return n&&t.push(n),t.length>0?t:[e]}function D(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];r===`|`?t+=`|`:(n>0&&e[n-1]===`|`||t&&(t+=` `),t+=r)}return t}function O(e,t,n){let r=e.keyword.toLowerCase(),i=s.get(r)??c.get(r)??e.keyword,a=p.get(r),o=ee.has(r),l=(o?C(e.args):x(e.args)).map(e=>b(e,a)),u=_(t,n);if(n.printWidth>0&&l.length>0)return A(i,l,e.comment?k(e.comment):void 0,u,o,n);let d=o?l.join(` `):D(l),f=`${u}${l.length>0?`${i} ${d}`:i}`;return e.comment&&(f+=` ${k(e.comment)}`),f}function k(e){return`${e.style===`hash`?`#`:`;`} ${e.value}`}function A(e,t,n,r,i,a){let o=(e=>i?e.join(` `):D(e))(t),s=t.length>0?`${r}${e} ${o}`:`${r}${e}`,c=n?`${s} ${n}`:s;if(c.length<=a.printWidth)return c;let l=[],u=`${r}${e}`;for(let e of t){let t=`${u} ${e}`;t.length+2>a.printWidth&&u.length>r.length?(l.push(`${u} \\`),u=`${r}${e}`):u=t}return n&&(u=`${u} ${n}`),l.push(u),l.join(a.eol)}function j(e){if(e.type!==`instruction`)return!1;let t=e.keyword.toLowerCase();return h.open.has(t)||h.case.has(t)}function M(e){return e.type===`instruction`&&h.close.has(e.keyword.toLowerCase())}function N(e){let t=[],n;for(let r=0;r<e.length;r++){let i=e[r],a=t.length>0&&t[t.length-1].type===`blank`;if(n&&!a&&i.type!==`blank`)if(j(i)&&!j(n)&&n.type!==`comment`)t.push({type:`blank`});else if(i.type===`comment`&&!j(n)&&n.type!==`comment`){let n=r+1;for(;n<e.length&&(e[n].type===`blank`||e[n].type===`comment`);)n++;n<e.length&&j(e[n])&&t.push({type:`blank`})}else M(n)&&!M(i)&&!j(i)&&t.push({type:`blank`});t.push(i),i.type!==`blank`&&(n=i)}return t}function P(e){let t=0;for(;t<e.length&&e[t].type===`blank`;)t++;let n=e.length-1;for(;n>=t&&e[n].type===`blank`;)n--;let r=[],i=!1;for(let a=t;a<=n;a++){let t=e[a];t.type===`blank`?i||=(r.push(t),!0):(r.push(t),i=!1)}return r}function te(n={}){let r={indentSize:2,printWidth:120,trimEmptyLines:!0,useTabs:!0,...n};if(r.useTabs===!1&&(!r.indentSize||Number.isNaN(r.indentSize)||r.indentSize<=0))throw Error(`The indentSize option expects a positive integer`);function i(e){let t=o(e),n=s(e);return g(t,{useTabs:r.useTabs??!0,indentSize:r.indentSize??2,printWidth:r.printWidth??120,trimEmptyLines:r.trimEmptyLines??!0,eol:n})}function a(e){let t=i(e);return t===e?null:t}function s(n){return r.endOfLine?r.endOfLine===`crlf`?`\r
17
17
  `:`
18
18
  `:t(n)??(e()===`win32`?`\r
19
19
  `:`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nsis/dent",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "An opinionated code formatter for NSIS scripts",
5
5
  "license": "MIT",
6
6
  "scripts": {