├── .gitignore ├── LICENSE ├── README.md ├── bootstrap ├── bootstrap.sh ├── firstlogon.ps1 ├── firstlogon_header.tpl ├── init └── unattend.tpl ├── utils ├── find_cfg_placeholder.py ├── mk_cfg_placeholder.py ├── mk_initrd.py ├── mkdisk.sh └── pack_config.py └── webapp ├── .gitignore ├── dist ├── index.html └── ovf.tpl ├── package-lock.json ├── package.json ├── src ├── app.js ├── form.json └── style.css └── webpack.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | etc/ 2 | build/ 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2023 Philip Huppert 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Bootloader Crimes 2 | ## A web-based utility for building disposable Windows VMs 3 | 4 | [Demo Instance](https://bootloader-crimes.de) - [Talk at CCCamp23](https://media.ccc.de/v/camp2023-57222-bootloader_crimes) 5 | 6 | This utility allows you to configure a Windows VM using a web UI, then download a tiny disk image which contains a 7 | Linux-based stager and your configuration. If run, it will bootstrap an OS installation according to the configuration. 8 | It will deploy Windows 11 on a MBR partition with BIOS boot, which is somewhat cursed but functional and easy to use in hypervisors. 9 | 10 | This repo contains both the frontend code for the web application, as well as the scripts that make up the bootstrap disk image. 11 | 12 | ### Building 13 | 14 | The disk image(s) are built by the `./utils/mkdisk.sh` script. 15 | Besides some usual command line utilities, this script requires `guestfish`, `syslinux` and `qemu-img`. 16 | Once finished, images are output to `./build/images`. 17 | 18 | The web UI is kept in `./webapp` and can be built by installing dependencies with 19 | `npm i` and then running webpack with `npm run pack`. 20 | When deploying on a server, make sure to also add the vmdk image and its manifest to the webroot. 21 | -------------------------------------------------------------------------------- /bootstrap/bootstrap.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo hello from bootstrap 4 | 5 | if [ ! -f /root/bootstrap.sh ] ; then 6 | cp "$0" /root/bootstrap.sh 7 | chmod +x /root/bootstrap.sh 8 | exec /root/bootstrap.sh 9 | exit 0 10 | fi 11 | 12 | [ -f /root/.bootstrap_ran ] && exit 1 13 | touch /root/.bootstrap_ran 14 | 15 | 16 | announce() { 17 | >&2 echo "${1}..." 18 | } 19 | 20 | chk_fail() { 21 | if [[ $1 -ne 0 ]]; then 22 | type __hook_pre_fail &>/dev/null && __hook_pre_fail 23 | >&2 echo "FAIL!" 24 | exit $1 25 | else 26 | >&2 echo "OK!" 27 | fi 28 | } 29 | 30 | 31 | CFG_FILE=/mnt/bootstrap/usercfg 32 | TMP_CFG=$(mktemp) 33 | 34 | announce "Locating user configuration" 35 | test $(cat $CFG_FILE | head -n1) = "cfg" 36 | chk_fail $? 37 | 38 | announce "Reading user configuration" 39 | dd \ 40 | if=$CFG_FILE of=$TMP_CFG bs=1 \ 41 | skip=$(cat $CFG_FILE | head -n2 | tail -n1) \ 42 | count=$(cat $CFG_FILE | head -n3 | tail -n1) 43 | chk_fail $? 44 | 45 | announce "Verifying user configuration" 46 | CFG_SHA=$(cat $CFG_FILE | head -n4 | tail -n1) 47 | echo "$CFG_SHA $TMP_CFG" | sha256sum -c - 48 | chk_fail $? 49 | 50 | announce "Decompressing user configuration" 51 | cat $TMP_CFG | gunzip - > /tmp/usercfg_final 52 | chk_fail $? 53 | 54 | announce "Sourcing user configuration" 55 | . /tmp/usercfg_final 56 | chk_fail $? 57 | 58 | 59 | announce "Downloading ISO" 60 | curl -L "$ISO_URL" --output /mnt/scratch/win.iso 61 | chk_fail $? 62 | 63 | announce "Verifying ISO" 64 | echo "$ISO_HASH /mnt/scratch/win.iso" | sha256sum -c - 65 | chk_fail $? 66 | 67 | announce "Mounting ISO" 68 | mkdir /mnt/iso && mount -t udf /mnt/scratch/win.iso /mnt/iso 69 | chk_fail $? 70 | 71 | announce "Extracting PE files from ISO" 72 | cp \ 73 | /mnt/iso/boot/bcd \ 74 | /mnt/iso/boot/boot.sdi \ 75 | /mnt/iso/sources/boot.wim \ 76 | /mnt/bootstrap 77 | chk_fail $? 78 | 79 | announce "Extracting install.wim from ISO" 80 | cp /mnt/iso/sources/install.wim /mnt/scratch 81 | chk_fail $? 82 | 83 | 84 | WIMBOOT_URL=https://github.com/ipxe/wimboot/releases/download/v2.7.5/wimboot 85 | WIMBOOT_HASH=7083f2ea6bb8f7f0801d52d38e6ba25d6e46b0e5b2fb668e65dd0720bf33f7bd 86 | 87 | announce "Downloading wimboot" 88 | curl -L "$WIMBOOT_URL" --output /mnt/bootstrap/wimboot 89 | chk_fail $? 90 | 91 | announce "Verifying wimboot" 92 | echo "$WIMBOOT_HASH /mnt/bootstrap/wimboot" | sha256sum -c - 93 | chk_fail $? 94 | 95 | 96 | announce "Installing firstboot scripts" 97 | sh /mnt/bootstrap/unattend.tpl > /mnt/scratch/unattend.xml && \ 98 | sh /mnt/bootstrap/firstlogon_header.tpl > /mnt/scratch/firstlogon.ps1 && \ 99 | cat /mnt/bootstrap/firstlogon.ps1 >> /mnt/scratch/firstlogon.ps1 100 | chk_fail $? 101 | 102 | announce "Installing PE scripts" 103 | cat << EOF > /mnt/bootstrap/winpeshl.ini 104 | [LaunchApps] 105 | "install.bat" 106 | EOF 107 | 108 | cat << EOF > /mnt/bootstrap/install.bat 109 | wpeinit 110 | 111 | > diskpart.script ( 112 | echo.select disk 0 113 | echo.select part 1 114 | echo.delete part 115 | echo.create part primary 116 | echo.format fs=ntfs label=Windows quick 117 | echo.active 118 | echo.assign letter=W 119 | echo.select part 2 120 | echo.assign letter=U 121 | ) 122 | diskpart /s diskpart.script 123 | 124 | dism /Apply-Image /ImageFile:U:\\install.wim /Index:${WIM_INDEX} /ApplyDir:W:\\ 125 | copy U:\\unattend.xml W:\\Windows\\System32\\sysprep\\unattend.xml 126 | copy U:\\firstlogon.ps1 W:\\firstlogon.ps1 127 | 128 | > diskpart.script ( 129 | echo.select disk 0 130 | echo.select part 2 131 | echo.delete part 132 | echo.select vol 1 133 | echo.extend 134 | ) 135 | diskpart /s diskpart.script 136 | 137 | W:\\Windows\\System32\\bcdboot W:\\Windows /s W: 138 | bootsect /nt60 W: /mbr 139 | EOF 140 | 141 | announce "Re-configuring bootloader" 142 | cat << EOF > /mnt/bootstrap/syslinux/syslinux.cfg 143 | DEFAULT winpe 144 | LABEL winpe 145 | COM32 linux.c32 146 | APPEND /wimboot initrdfile=/bcd,/boot.sdi,/boot.wim,/winpeshl.ini,/install.bat 147 | EOF 148 | 149 | 150 | type __hook_pre_umount &>/dev/null && __hook_pre_umount 151 | 152 | announce "Unmounting and deleting ISO" 153 | umount /mnt/iso && rmdir /mnt/iso && rm /mnt/scratch/win.iso 154 | chk_fail $? 155 | 156 | announce "Unmounting disk" 157 | umount /mnt/scratch /mnt/bootstrap && sync 158 | chk_fail $? 159 | 160 | 161 | type __hook_pre_reboot &>/dev/null && __hook_pre_reboot 162 | 163 | announce "Reboot" 164 | reboot 165 | -------------------------------------------------------------------------------- /bootstrap/firstlogon.ps1: -------------------------------------------------------------------------------- 1 | Set-ExecutionPolicy Bypass -Scope Process -Force 2 | 3 | [Flags()] enum UsabilityFlags { 4 | ShowFileExtensions = 1 5 | ShowHiddenFiles = 2 6 | ShowSuperHiddenFiles = 4 7 | LeftAlignTaskbar = 8 8 | 9 | DisableLogonBackground = 32 10 | DisablePowerTimeouts = 64 11 | DisableHibernation = 128 12 | ShowPathInExplorerTitle = 256 13 | CompactExplorerView = 512 14 | DisablePasswordExpiration = 1024 15 | FullContextMenus = 2048 16 | } 17 | $ps_usability = [UsabilityFlags] $ps_usability 18 | 19 | [Flags()] enum PrivacyFlags { 20 | TelemetryLowestLevel = 1 21 | DisableAppTelemetry = 2 22 | DisableAdvertisingID = 4 23 | 24 | DisableTailoredExperiences = 16 25 | DisableInputDataCollection = 32 26 | DisableSpeechRecognition = 64 27 | DisableLocationServices = 128 28 | DisableDefenderTelemetry = 256 29 | 30 | DisableErrorReporting = 1024 31 | DisableAppLaunchTracking = 2048 32 | DisableContentDeliveryManager = 4096 33 | DisableFeedback = 8192 34 | DisableOnlineSearch = 16384 35 | 36 | } 37 | $ps_privacy = [PrivacyFlags] $ps_privacy 38 | 39 | [Flags()] enum HardeningFlags { 40 | InstallUpdates = 1 41 | DisableSMB1 = 2 42 | DisableLLMNR = 4 43 | DisableNetBios = 8 44 | DisableWPAD = 16 45 | } 46 | $ps_hardening = [HardeningFlags] $ps_hardening 47 | 48 | [Flags()] enum BloatFlags { 49 | DisableOneDrive = 1 50 | DisableP2PDownloads = 2 51 | DisableCortana = 4 52 | DisableXbox = 8 53 | DisableWidgets = 16 54 | DisableTeamsIcon = 32 55 | } 56 | $ps_bloat = [BloatFlags] $ps_bloat 57 | 58 | function Set-Dword { 59 | param ($path, $value) 60 | $tmp = $path.split("\") 61 | $path = $tmp[0..($tmp.Length-2)] -join "\" 62 | $name = $tmp[-1] 63 | if (!(Test-Path -Path $path)) { 64 | New-Item -Path $path 65 | } 66 | Set-ItemProperty -Path $path -Name $name -Value $value -Type DWord 67 | } 68 | 69 | $username = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name 70 | $username_short = $username.Split("\")[1] 71 | 72 | 73 | if ($ps_usability.HasFlag([UsabilityFlags]::ShowFileExtensions)) { 74 | Set-Dword "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt" 0 75 | } 76 | if ($ps_usability.HasFlag([UsabilityFlags]::ShowHiddenFiles)) { 77 | Set-Dword "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden" 1 78 | } 79 | if ($ps_usability.HasFlag([UsabilityFlags]::ShowSuperHiddenFiles)) { 80 | Set-Dword "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowSuperHidden" 1 81 | } 82 | if ($ps_usability.HasFlag([UsabilityFlags]::ShowPathInExplorerTitle)) { 83 | Set-Dword "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState\FullPath" 1 84 | } 85 | if ($ps_usability.HasFlag([UsabilityFlags]::CompactExplorerView)) { 86 | Set-Dword "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\UseCompactMode" 1 87 | } 88 | if ($ps_usability.HasFlag([UsabilityFlags]::LeftAlignTaskbar)) { 89 | Set-Dword "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TaskbarAl" 0 90 | } 91 | if ($ps_usability.HasFlag([UsabilityFlags]::DisableLogonBackground)) { 92 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows\System\DisableLogonBackgroundImage" 1 93 | } 94 | if ($ps_usability.HasFlag([UsabilityFlags]::DisablePowerTimeouts)) { 95 | & "powercfg.exe" @("-x", "-monitor-timeout-ac", "0") 96 | & "powercfg.exe" @("-x", "-monitor-timeout-dc", "0") 97 | } 98 | if ($ps_usability.HasFlag([UsabilityFlags]::DisableHibernation)) { 99 | Set-Dword "HKLM:\SYSTEM\CurrentControlSet\Control\Power\HiberFileSizePercent" 0 100 | Set-Dword -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Power\HibernateEnabled" 0 101 | } 102 | if ($ps_usability.HasFlag([UsabilityFlags]::DisablePasswordExpiration)) { 103 | Set-LocalUser -Name $username_short -PasswordNeverExpires:$true 104 | } 105 | if ($ps_usability.HasFlag([UsabilityFlags]::FullContextMenus)) { 106 | New-Item -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" 107 | Set-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" -Name "(default)" -Value "" -Type String 108 | } 109 | 110 | if ($ps_privacy.HasFlag([PrivacyFlags]::TelemetryLowestLevel)) { 111 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows\DataCollection\AllowTelemetry" 0 112 | } 113 | if ($ps_privacy.HasFlag([PrivacyFlags]::DisableAppTelemetry)) { 114 | # TODO check if still relevant in W11 115 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows\AppCompat\AITEnable" 0 116 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows\AppCompat\DisableUAR" 1 117 | } 118 | if ($ps_privacy.HasFlag([PrivacyFlags]::DisableAdvertisingID)) { 119 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows\AdvertisingInfo\DisabledByGroupPolicy" 1 120 | } 121 | if ($ps_privacy.HasFlag([PrivacyFlags]::DisableTailoredExperiences)) { 122 | Set-Dword "HKCU:\Software\Policies\Microsoft\Windows\CloudContent\DisableTailoredExperiencesWithDiagnosticData" 1 123 | } 124 | if ($ps_privacy.HasFlag([PrivacyFlags]::DisableInputDataCollection)) { 125 | Set-Dword "HKCU:\Software\Microsoft\Windows\CurrentVersion\CPSS\Store\InkingAndTypingPersonalization" 0 126 | Set-Dword "HKCU:\Software\Microsoft\Personalization\Settings\AcceptedPrivacyPolicy" 0 127 | Set-Dword "HKCU:\Software\Microsoft\InputPersonalization\RestrictImplicitInkCollection" 1 128 | Set-Dword "HKCU:\Software\Microsoft\InputPersonalization\RestrictImplicitTextCollection" 1 129 | 130 | # TODO needed? 131 | Set-Dword "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\TextInput\AllowLinguisticDataCollection" 0 132 | Set-Dword "HKCU:\Software\Microsoft\InputPersonalization\TrainedDataStore\HarvestContacts" 0 133 | } 134 | if ($ps_privacy.HasFlag([PrivacyFlags]::DisableFeedback)) { 135 | # TODO validate in W11 136 | Set-Dword "HKCU:\Software\Microsoft\Siuf\Rules\NumberOfSIUFInPeriod" 0 137 | Set-Dword "HKCU:\Software\Microsoft\Siuf\Rules\PeriodInNanoSeconds" 0 138 | } 139 | if ($ps_privacy.HasFlag([PrivacyFlags]::DisableOnlineSearch)) { 140 | Set-Dword "HKCU:\Software\Policies\Microsoft\Windows\Explorer\DisableSearchBoxSuggestions" 1 141 | } 142 | if ($ps_privacy.HasFlag([PrivacyFlags]::DisableSpeechRecognition)) { 143 | Set-Dword "HKLM:\Software\Policies\Microsoft\InputPersonalization\AllowInputPersonalization" 0 144 | } 145 | if ($ps_privacy.HasFlag([PrivacyFlags]::DisableLocationServices)) { 146 | Set-Dword "HKLM:\Software\Policies\Microsoft\FindMyDevice" 0 147 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows\LocationAndSensors\DisableLocation" 1 148 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows\LocationAndSensors\DisableSensors" 1 149 | } 150 | if ($ps_privacy.HasFlag([PrivacyFlags]::DisableDefenderTelemetry)) { 151 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows Defender\Spynet\SpynetReporting" 0 152 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows Defender\Spynet\DisableBlockAtFirstSeen" 0 153 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows Defender\Spynet\SubmitSamplesConsent" 2 154 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows Defender\Reporting\DisableGenericRePorts" 1 155 | } 156 | if ($ps_privacy.HasFlag([PrivacyFlags]::DisableErrorReporting)) { 157 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows\Windows Error Reporting\Disabled" 1 158 | } 159 | if ($ps_privacy.HasFlag([PrivacyFlags]::DisableAppLaunchTracking)) { 160 | Set-Dword "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_TrackProgs" 0 161 | } 162 | if ($ps_privacy.HasFlag([PrivacyFlags]::DisableContentDeliveryManager)) { 163 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\ContentDeliveryAllowed" 0 164 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\FeatureManagementEnabled" 0 165 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\OemPreInstalledAppsEnabled" 0 166 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\PreInstalledAppsEnabled" 0 167 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\PreInstalledAppsEverEnabled" 0 168 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\RotatingLockScreenEnabled" 0 169 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\RotatingLockScreenOverlayEnabled" 0 170 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\SlideshowEnabled" 0 171 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\SilentInstalledAppsEnabled" 0 172 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\SoftLandingEnabled" 0 173 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\SystemPaneSuggestionsEnabled" 0 174 | } 175 | 176 | if ($ps_bloat.HasFlag([BloatFlags]::DisableOneDrive)) { 177 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows\OneDrive\DisableFileSyncNGSC" 1 178 | } 179 | if ($ps_bloat.HasFlag([BloatFlags]::DisableP2PDownloads)) { 180 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows\DeliveryOptimization\DODownloadMode" 0 181 | } 182 | if ($ps_bloat.HasFlag([BloatFlags]::DisableCortana)) { 183 | Get-AppxPackage -AllUsers Microsoft.549981C3F5F10 | Remove-AppPackage 184 | } 185 | if ($ps_bloat.HasFlag([BloatFlags]::DisableXbox)) { 186 | Get-AppxPackage -AllUsers Microsoft.Xbox* | Remove-AppPackage 187 | } 188 | if ($ps_bloat.HasFlag([BloatFlags]::DisableWidgets)) { 189 | Set-Dword "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TaskbarDa" 0 190 | } 191 | if ($ps_bloat.HasFlag([BloatFlags]::DisableTeamsIcon)) { 192 | Set-Dword "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TaskbarMn" 0 193 | } 194 | 195 | if ($ps_hardening.HasFlag([HardeningFlags]::DisableSMB1)) { 196 | Set-SmbServerConfiguration -EnableSMB1Protocol $false -Force 197 | Disable-WindowsOptionalFeature -NoRestart -Online -FeatureName smb1protocol 198 | } 199 | if ($ps_hardening.HasFlag([HardeningFlags]::DisableLLMNR)) { 200 | Set-Dword "HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient\EnableMulticast" 0 201 | } 202 | if ($ps_hardening.HasFlag([HardeningFlags]::DisableNetBios)) { 203 | (gwmi win32_networkadapterconfiguration) | %{ $_.settcpipnetbios(2) } 204 | } 205 | if ($ps_hardening.HasFlag([HardeningFlags]::DisableWPAD)) { 206 | Add-Content -Path "$env:SystemRoot\System32\drivers\etc\hosts" -Value "\n255.255.255.255 wpad\n255.255.255.255 wpad.\n" 207 | } 208 | 209 | 210 | $ps_choco = $ps_choco.Split("|") 211 | if ($ps_choco.length -gt 0) { 212 | [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 213 | iex ((New-Object System.Net.WebClient).DownloadString("https://community.chocolatey.org/install.ps1")) 214 | 215 | for ($i = 0; $i -lt $ps_choco.length; $i += 2) { 216 | $pkg = $ps_choco[$i] 217 | $ver = $ps_choco[$i+1] 218 | if ($ver -ne "") { 219 | choco install $pkg --version $ver -y 220 | } else { 221 | choco install $pkg -y 222 | } 223 | } 224 | } 225 | 226 | 227 | if ($ps_hardening.HasFlag([HardeningFlags]::InstallUpdates)) { 228 | Install-PackageProvider -Name NuGet -Force 229 | Install-Module -Name PSWindowsUpdate -Force 230 | 231 | $action = New-ScheduledTaskAction -Execute "powershell" -Argument "-NoLogo -ExecutionPolicy RemoteSigned c:\upd.ps1" 232 | $trigger = New-ScheduledTaskTrigger -AtLogon 233 | $principal = New-ScheduledTaskPrincipal -UserID $username -LogonType Interactive -RunLevel Highest 234 | $settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries 235 | $task = New-ScheduledTask -Action $action -Principal $principal -Trigger $trigger -Settings $settings 236 | Register-ScheduledTask -TaskName "mywinupd" -InputObject $task | Out-Null 237 | 238 | @' 239 | Import-Module PSWindowsUpdate 240 | if ($(Get-WindowsUpdate).Count -eq 0) { 241 | Unregister-ScheduledTask -TaskName "mywinupd" -Confirm:$false 242 | Remove-Item -Path $MyInvocation.MyCommand.Source 243 | exit 0 244 | } 245 | Install-WindowsUpdate -AcceptAll -IgnoreReboot 246 | shutdown -r -t 5 247 | '@ > C:\upd.ps1 248 | } 249 | 250 | 251 | Remove-Item -Path "$env:SystemRoot\System32\Sysprep\unattend.xml" 252 | Remove-Item -Path $MyInvocation.MyCommand.Source 253 | shutdown -r -t 5 254 | -------------------------------------------------------------------------------- /bootstrap/firstlogon_header.tpl: -------------------------------------------------------------------------------- 1 | cat < /dev/kmsg 21 | 22 | # setup networking 23 | hostname localhost 24 | ip link set lo up 25 | ip link set eth0 up 26 | udhcpc -i eth0 -f -q 27 | 28 | # setup autologin 29 | mkdir -p /etc /root 30 | touch /etc/inittab 31 | echo tty1::respawn:/sbin/getty -n -l /bin/autologin 0 tty1 linux >> /etc/inittab 32 | #echo ttyS0::respawn:/sbin/getty -l /bin/autologin -n 115200 ttyS0 linux >> /etc/inittab 33 | echo ttyS0::respawn:/sbin/getty -n 115200 ttyS0 linux >> /etc/inittab 34 | 35 | cat < /bin/autologin 36 | #!/bin/sh 37 | exec /bin/login -f root 38 | EOF 39 | chmod +x /bin/autologin 40 | 41 | echo root::0:0:root:/root:/bin/sh > /etc/passwd 42 | echo '[ -e /mnt/bootstrap/bootstrap.sh ] && sh /mnt/bootstrap/bootstrap.sh' > /etc/profile 43 | 44 | # mount partitions 45 | mkdir -p /mnt/bootstrap /mnt/scratch 46 | mount /dev/sda1 /mnt/bootstrap 47 | mount /dev/sda2 /mnt/scratch 48 | 49 | # decrease kernel log verbosity 50 | echo 5 > /proc/sys/kernel/printk 51 | 52 | # run busybox init, triggering autologin and bootstrap process 53 | exec /bin/busybox init 54 | -------------------------------------------------------------------------------- /bootstrap/unattend.tpl: -------------------------------------------------------------------------------- 1 | cat < 3 | 4 | 5 | 6 | ${UA_INPUT_LOCALE} 7 | ${UA_SYSTEM_LOCALE} 8 | ${UA_UI_LANGUAGE} 9 | ${UA_USER_LOCALE} 10 | 11 | 12 | 13 | 14 | ${UA_PASSWORD} 15 | true</PlainText> 16 | </Password> 17 | <Username>${UA_USERNAME}</Username> 18 | <Enabled>${UA_AUTOLOGON}</Enabled> 19 | </AutoLogon> 20 | <FirstLogonCommands> 21 | <SynchronousCommand wcm:action="add"> 22 | <CommandLine>powershell -NoLogo -ExecutionPolicy RemoteSigned -File c:\firstlogon.ps1</CommandLine> 23 | <Description>Run first logon command</Description> 24 | <Order>1</Order> 25 | <RequiresUserInput>true</RequiresUserInput> 26 | </SynchronousCommand> 27 | </FirstLogonCommands> 28 | <OOBE> 29 | <HideEULAPage>true</HideEULAPage> 30 | <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> 31 | <HideOnlineAccountScreens>true</HideOnlineAccountScreens> 32 | <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen> 33 | <HideLocalAccountScreen>true</HideLocalAccountScreen> 34 | <NetworkLocation>Other</NetworkLocation> 35 | <ProtectYourPC>1</ProtectYourPC> 36 | </OOBE> 37 | <UserAccounts> 38 | <LocalAccounts> 39 | <LocalAccount wcm:action="add"> 40 | <Password> 41 | <Value>${UA_PASSWORD}</Value> 42 | <PlainText>true</PlainText> 43 | </Password> 44 | <Description>VM User</Description> 45 | <DisplayName>${UA_USERNAME}</DisplayName> 46 | <Group>Administrators</Group> 47 | <Name>${UA_USERNAME}</Name> 48 | </LocalAccount> 49 | </LocalAccounts> 50 | </UserAccounts> 51 | </component> 52 | </settings> 53 | <settings pass="specialize"> 54 | <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 55 | <ComputerName>${UA_HOSTNAME}</ComputerName> 56 | <RegisteredOrganization>Contonso</RegisteredOrganization> 57 | <TimeZone>${UA_TIMEZONE}</TimeZone> 58 | </component> 59 | <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 60 | <SkipAutoActivation>true</SkipAutoActivation> 61 | </component> 62 | </settings> 63 | </unattend> 64 | EOF 65 | -------------------------------------------------------------------------------- /utils/find_cfg_placeholder.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import struct 4 | import sys 5 | 6 | 7 | start_offset = None 8 | end_offset = None 9 | 10 | with open(sys.argv[1], "rb") as fh: 11 | while True: 12 | tmp = fh.read(16) 13 | if len(tmp) != 16: 14 | break 15 | a, b, c, d = struct.unpack(">4I", tmp) 16 | has_static_pattern = b == 0xdeadbeef and c == 0xdeadb11f and d == 0xdeadb22f 17 | if start_offset is None and has_static_pattern and a == 0: 18 | start_offset = fh.tell() - 16 19 | if start_offset is not None and has_static_pattern: 20 | end_offset = fh.tell() 21 | assert end_offset - start_offset == (a+1) * 16 22 | if start_offset is not None and not has_static_pattern: 23 | break 24 | 25 | assert start_offset is not None and end_offset is not None and end_offset - start_offset >= (1 << 14) 26 | print(f"{start_offset} {end_offset-start_offset}") 27 | -------------------------------------------------------------------------------- /utils/mk_cfg_placeholder.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import struct 4 | import sys 5 | 6 | fsize = int(sys.argv[1]) if len(sys.argv) >= 2 else 1 7 | for i in range((fsize << 20) >> 4): 8 | sys.stdout.buffer.write(struct.pack(">4I", i, 0xdeadbeef, 0xdeadb11f, 0xdeadb22f)) 9 | -------------------------------------------------------------------------------- /utils/mk_initrd.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import sys 4 | import os 5 | import shutil 6 | import re 7 | import glob 8 | 9 | 10 | src_dir = os.path.abspath(sys.argv[1]) 11 | tgt_dir = os.path.abspath(sys.argv[2]) 12 | kmod_ctr = 0 13 | 14 | # read paths to process 15 | for file in sys.stdin.readlines(): 16 | file = file.strip() 17 | if not file.startswith("./"): 18 | continue 19 | 20 | # expand globs, if any 21 | if "*" in file: 22 | r = glob.glob(file, root_dir=src_dir) 23 | assert len(r) == 1 24 | file = r[0] 25 | 26 | src_fpath = os.path.abspath(os.path.join(src_dir, file)) 27 | src_dirname = os.path.dirname(src_fpath) 28 | src_filename = os.path.basename(src_fpath) 29 | 30 | tgt_fpath = os.path.abspath(os.path.join(tgt_dir, file)) 31 | tgt_link = None 32 | # special handling for modules 33 | if src_filename.endswith(".ko.gz"): 34 | tgt_fpath = os.path.abspath(os.path.join(tgt_dir, "lib/modules", src_filename)) 35 | kmod_ctr += 1 36 | tgt_link = os.path.abspath(os.path.join(tgt_dir, "lib/modules", f"ko_{kmod_ctr:02d}")) 37 | 38 | # create links for libraries 39 | if re.match(r"^.+\.so\.\d+\.\d+\.\d+$", src_filename): 40 | # only keep first version number 41 | tmp = src_filename.split(".") 42 | tmp = ".".join(tmp[:-2]) 43 | tgt_link = os.path.abspath(os.path.join(os.path.dirname(tgt_fpath), tmp)) 44 | 45 | # copy file to target directory 46 | os.makedirs(os.path.dirname(tgt_fpath), exist_ok=True) 47 | shutil.copy(src_fpath, tgt_fpath) 48 | 49 | # create symlink, if any 50 | if tgt_link is not None: 51 | os.symlink(src_filename, tgt_link) 52 | -------------------------------------------------------------------------------- /utils/mkdisk.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | IMAGE_SIZE_G=100 4 | BOOTSTRAP_SIZE_G=2 5 | SCRATCH_SIZE_G=20 6 | 7 | BUILD_DIR=./build 8 | IMAGE_DIR=./build/images 9 | SRC_DIR=./bootstrap 10 | 11 | MK_INITRD_BIN=./utils/mk_initrd.py 12 | MK_PLACEHOLDER_BIN=./utils/mk_cfg_placeholder.py 13 | FIND_PLACEHOLDER_BIN=./utils/find_cfg_placeholder.py 14 | 15 | rm -rf "${BUILD_DIR}" 16 | 17 | # TODO run all of this in an (alpine) docker, to make things easier/portable 18 | 19 | # configure apk 20 | ROOTFS_DIR="${BUILD_DIR}/rootfs" 21 | mkdir -p "${ROOTFS_DIR}/etc/apk" 22 | echo x86_64 > "${ROOTFS_DIR}/etc/apk/arch" 23 | cat <<EOF > "${ROOTFS_DIR}/etc/apk/repositories" 24 | http://dl-cdn.alpinelinux.org/alpine/v3.18/main 25 | http://dl-cdn.alpinelinux.org/alpine/v3.18/community 26 | EOF 27 | 28 | # download alpine signing keys 29 | ALPINE_KEYS_APK="${BUILD_DIR}/alpine-keys.apk" 30 | curl "https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/alpine-keys-2.4-r1.apk" > "${ALPINE_KEYS_APK}" 31 | echo "880983a4ba0e6403db432e7b2687af976e023567ab11d1428c758351011263e9 ${ALPINE_KEYS_APK}" 32 | tar -C "${ROOTFS_DIR}" -xf "${ALPINE_KEYS_APK}" etc/apk/keys 33 | 34 | # download apk 35 | APK_TOOLS_APK="${BUILD_DIR}/apk-tools-static.apk" 36 | APK_BIN="${BUILD_DIR}/apk" 37 | curl "https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/apk-tools-static-2.14.0-r2.apk" > "${APK_TOOLS_APK}" 38 | echo "c8465a56bac138677d3fb025f7e13a30d18210ef327880673314ad63d59c1977 ${APK_TOOLS_APK}" 39 | tar -xvf "${APK_TOOLS_APK}" sbin/apk.static -O > "${APK_BIN}" 40 | chmod +x "${APK_BIN}" 41 | 42 | # install needed packages 43 | "${APK_BIN}" add \ 44 | --root "${ROOTFS_DIR}" \ 45 | --no-scripts \ 46 | --no-chown \ 47 | --initdb \ 48 | linux-virt syslinux curl 49 | 50 | # select files for ramdisk 51 | INITRD_DIR="${BUILD_DIR}/initrd" 52 | mkdir -p "${INITRD_DIR}" 53 | "${MK_INITRD_BIN}" "${ROOTFS_DIR}" "${INITRD_DIR}" <<EOF 54 | ./bin/busybox 55 | ./usr/bin/curl 56 | 57 | ./etc/ssl/certs/ca-certificates.crt 58 | ./usr/share/udhcpc/default.script 59 | 60 | ./lib/ld-musl-x86_64.so.1 61 | ./lib/libcrypto.so.3 62 | ./lib/libz.so.1.* 63 | ./lib/libc.musl-x86_64.so.1 64 | 65 | ./usr/lib/libbrotlidec.so.1.* 66 | ./usr/lib/libbrotlicommon.so.1.* 67 | ./usr/lib/libcurl.so.4.* 68 | ./usr/lib/liblzma.so.5.* 69 | ./usr/lib/libssl.so.3 70 | ./usr/lib/libzstd.so.1.* 71 | ./usr/lib/libnghttp2.so.14.* 72 | ./usr/lib/libidn2.so.0.* 73 | ./usr/lib/libunistring.so.5.* 74 | 75 | ./lib/modules/*/kernel/lib/crc64.ko.gz 76 | ./lib/modules/*/kernel/lib/crc64-rocksoft.ko.gz 77 | ./lib/modules/*/kernel/block/t10-pi.ko.gz 78 | ./lib/modules/*/kernel/drivers/scsi/sd_mod.ko.gz 79 | 80 | ./lib/modules/*/kernel/drivers/ata/ata_generic.ko.gz 81 | ./lib/modules/*/kernel/drivers/block/loop.ko.gz 82 | 83 | ./lib/modules/*/kernel/drivers/cdrom/cdrom.ko.gz 84 | ./lib/modules/*/kernel/lib/crc-itu-t.ko.gz 85 | ./lib/modules/*/kernel/fs/udf/udf.ko.gz 86 | 87 | ./lib/modules/*/kernel/crypto/crc32_generic.ko.gz 88 | ./lib/modules/*/kernel/crypto/crc32c_generic.ko.gz 89 | ./lib/modules/*/kernel/lib/crc16.ko.gz 90 | ./lib/modules/*/kernel/fs/jbd2/jbd2.ko.gz 91 | ./lib/modules/*/kernel/fs/mbcache.ko.gz 92 | ./lib/modules/*/kernel/fs/ext4/ext4.ko.gz 93 | 94 | ./lib/modules/*/kernel/fs/ntfs3/ntfs3.ko.gz 95 | 96 | ./lib/modules/*/kernel/net/packet/af_packet.ko.gz 97 | ./lib/modules/*/kernel/drivers/net/ethernet/intel/e1000/e1000.ko.gz 98 | ./lib/modules/*/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko.gz 99 | EOF 100 | 101 | # install init script 102 | cp "${SRC_DIR}/init" "${INITRD_DIR}/" 103 | 104 | # start to assemble bootstrap filesystem 105 | FS_DIR="${BUILD_DIR}/fs" 106 | mkdir -p "${FS_DIR}" 107 | 108 | # build initramfs 109 | INITRD_IMG="${FS_DIR}/initramfs.img" 110 | _INITRD_IMG=$(realpath "${INITRD_IMG}") 111 | pushd "${INITRD_DIR}" 112 | find . | sort | cpio -o -H newc -R 0:0 | gzip --best > "${_INITRD_IMG}" 113 | popd 114 | 115 | # install kernel 116 | cp "${ROOTFS_DIR}/boot/vmlinuz-virt" "${FS_DIR}/kernel" 117 | 118 | # install bootstrap scripts 119 | cp "${SRC_DIR}/bootstrap.sh" \ 120 | "${SRC_DIR}/firstlogon_header.tpl" \ 121 | "${SRC_DIR}/firstlogon.ps1" \ 122 | "${SRC_DIR}/unattend.tpl" \ 123 | "${FS_DIR}/" 124 | 125 | # install and configure bootloader 126 | mkdir -p "${FS_DIR}/syslinux" 127 | cp "${ROOTFS_DIR}/usr/share/syslinux/mbr.bin" "${FS_DIR}/syslinux/" 128 | # TODO can't use these as they might not be compatible with the host's guestfish installing syslinux 129 | #cp ./root3/usr/share/syslinux/linux.c32 . 130 | #cp ./root3/usr/share/syslinux/libcom32.c32 . 131 | cp /usr/lib/syslinux/bios/linux.c32 "${FS_DIR}/syslinux/" 132 | cp /usr/lib/syslinux/bios/libcom32.c32 "${FS_DIR}/syslinux/" 133 | 134 | cat <<EOF > "${FS_DIR}/syslinux/syslinux.cfg" 135 | DEFAULT linux 136 | LABEL linux 137 | KERNEL /kernel 138 | APPEND initrd=/initramfs.img 139 | EOF 140 | 141 | # insert placeholder for user configuration 142 | ${MK_PLACEHOLDER_BIN} > "${FS_DIR}/usercfg" 143 | #cat ./example.cfg | ./utils/pack_config.py > "${FS_DIR}/usercfg" 144 | 145 | FS_TAR="${BUILD_DIR}/fs.tar" 146 | tar -cf "${FS_TAR}" -C "${FS_DIR}" . 147 | 148 | # build final disk image 149 | IMAGE_FILE="${BUILD_DIR}/disk.img" 150 | guestfish <<EOF 151 | disk-create ${IMAGE_FILE} raw ${IMAGE_SIZE_G}G preallocation:sparse 152 | add-drive ${IMAGE_FILE} 153 | run 154 | 155 | # partition disk 156 | part-init /dev/sda mbr 157 | part-add /dev/sda p 2048 $((2048 + ($BOOTSTRAP_SIZE_G << (30-9)))) 158 | part-add /dev/sda p $((($IMAGE_SIZE_G - $SCRATCH_SIZE_G) << (30-9))) -1 159 | part-set-bootable /dev/sda 1 true 160 | part-set-mbr-id /dev/sda 1 0x83 161 | part-set-mbr-id /dev/sda 2 0x7 162 | 163 | # create file systems 164 | mkfs ext4 /dev/sda1 165 | mkfs ntfs /dev/sda2 166 | 167 | # populate bootstrap partition 168 | mkmountpoint /boot 169 | mount /dev/sda1 /boot 170 | tar-in ${FS_TAR} /boot 171 | 172 | # install bootloader 173 | copy-file-to-device /boot/syslinux/mbr.bin /dev/sda size:440 174 | rm /boot/syslinux/mbr.bin 175 | extlinux /boot 176 | 177 | umount-all 178 | shutdown 179 | exit 180 | EOF 181 | 182 | # convert to various image formats 183 | mkdir -p "${IMAGE_DIR}" 184 | for IMAGE_FORMAT in qcow2 vmdk vdi ; do 185 | CONVERTED_IMAGE="${IMAGE_DIR}/disk.${IMAGE_FORMAT}" 186 | IMAGE_MANIFEST="${CONVERTED_IMAGE}.manifest" 187 | # convert image format 188 | qemu-img convert -f raw -O ${IMAGE_FORMAT} "${IMAGE_FILE}" "${CONVERTED_IMAGE}" 189 | 190 | # generate manifest 191 | echo "m1" >> "${IMAGE_MANIFEST}" 192 | # hash of image 193 | sha256sum "${CONVERTED_IMAGE}" | awk '{ print $1 }' >> "${IMAGE_MANIFEST}" 194 | # location and length of config file 195 | ${FIND_PLACEHOLDER_BIN} "${CONVERTED_IMAGE}" >> "${IMAGE_MANIFEST}" 196 | 197 | # compress image 198 | gzip -f -9 "${CONVERTED_IMAGE}" 199 | done 200 | -------------------------------------------------------------------------------- /utils/pack_config.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import sys 4 | import gzip 5 | import hashlib 6 | 7 | cfg = sys.stdin.buffer.read() 8 | cfg = gzip.compress(cfg) 9 | 10 | header = [ 11 | "cfg", 12 | "128", 13 | str(len(cfg)), 14 | hashlib.sha256(cfg).hexdigest(), 15 | "" 16 | ] 17 | header = "\n".join(header) 18 | header = header.encode("utf-8") 19 | 20 | final = b"" 21 | final += header 22 | final += b"\0" * (128 - len(header)) 23 | final += cfg 24 | pad = 16 - (len(final) % 16) 25 | pad = 16 if pad == 0 else pad 26 | final += b"\0" * pad 27 | 28 | sys.stdout.buffer.write(final) 29 | -------------------------------------------------------------------------------- /webapp/.gitignore: -------------------------------------------------------------------------------- 1 | dist/bundle.js* 2 | dist/disk.vmdk* 3 | node_modules/ 4 | -------------------------------------------------------------------------------- /webapp/dist/index.html: -------------------------------------------------------------------------------- 1 | <!DOCTYPE html> 2 | <html> 3 | <head> 4 | <meta charset="UTF-8"> 5 | <title>Bootloader Crimes - Disposable Windows VM Builder</title> 6 | </head> 7 | <body> 8 | <header> 9 | <h1>Bootloader Crimes</h1> 10 | <h2>Disposable Windows VM Builder</h2> 11 | </header> 12 | 13 | <main> 14 | <p> 15 | Configure a disposable Windows VM right in your browser. 16 | You will receive a tiny, self-bootstrapping image. 17 | Check out the <a href="https://media.ccc.de/v/camp2023-57222-bootloader_crimes">presentation</a> to see how this works behind the scenes, 18 | or <a href="https://github.com/Phaeilo/bootloader-crimes">hack on the code</a> yourself! 19 | </p> 20 | <p> 21 | This UI is still a bit rough in places, but it will produce usable images. 22 | I'd be happy to receive any feedback, bug reports or other suggestions either on <a href="https://github.com/Phaeilo/bootloader-crimes">GitHub</a> 23 | or via other <a href="https://philip-huppert.de">channels</a>. 24 | </p> 25 | <noscript> 26 | <p>Please enable JavaScript to build images!</p> 27 | </noscript> 28 | </main> 29 | 30 | <footer> 31 | <p> 32 | <a href="https://github.com/Phaeilo/bootloader-crimes">source code</a> 33 | <a href="https://philip-huppert.de">contact</a> 34 | </p> 35 | </footer> 36 | 37 | <script src="bundle.js"></script> 38 | </body> 39 | </html> 40 | -------------------------------------------------------------------------------- /webapp/dist/ovf.tpl: -------------------------------------------------------------------------------- 1 | <?xml version="1.0"?> 2 | <Envelope ovf:version="2.0" xml:lang="en-US" xmlns="http://schemas.dmtf.org/ovf/envelope/2" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/2" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:epasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_EthernetPortAllocationSettingData.xsd" xmlns:sasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_StorageAllocationSettingData.xsd"> 3 | <References> 4 | <File ovf:id="file1" ovf:href="disk.vmdk"/> 5 | </References> 6 | <DiskSection> 7 | <Info>List of the virtual disks used in the package</Info> 8 | <Disk ovf:capacity="107374182400" ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized"/> 9 | </DiskSection> 10 | <NetworkSection> 11 | <Info>Logical networks used in the package</Info> 12 | <Network ovf:name="NAT"> 13 | <Description>Logical network used by this appliance.</Description> 14 | </Network> 15 | </NetworkSection> 16 | <VirtualSystem ovf:id="winvm"> 17 | <Info>A virtual machine</Info> 18 | <ProductSection> 19 | <Info>Meta-information about the installed software</Info> 20 | <Product>The Product</Product> 21 | <Vendor>The Vendorr</Vendor> 22 | <Version>0.0.1337</Version> 23 | <ProductUrl>https://example.com/product-url</ProductUrl> 24 | <VendorUrl>https://example.com/vendor-url</VendorUrl> 25 | </ProductSection> 26 | <AnnotationSection> 27 | <Info>A human-readable annotation</Info> 28 | <Annotation>Hello World!</Annotation> 29 | </AnnotationSection> 30 | <EulaSection> 31 | <Info>License agreement for the virtual system</Info> 32 | <License>TODO</License> 33 | </EulaSection> 34 | <OperatingSystemSection ovf:id="102"> 35 | <Info>The kind of installed guest operating system</Info> 36 | <Description>Other_64</Description> 37 | </OperatingSystemSection> 38 | <VirtualHardwareSection> 39 | <Info>Virtual hardware requirements for a virtual machine</Info> 40 | <System> 41 | <vssd:ElementName>Virtual Hardware Family</vssd:ElementName> 42 | <vssd:InstanceID>0</vssd:InstanceID> 43 | <vssd:VirtualSystemIdentifier>winvm</vssd:VirtualSystemIdentifier> 44 | <vssd:VirtualSystemType>virtualbox-2.2</vssd:VirtualSystemType> 45 | </System> 46 | <Item> 47 | <rasd:Caption>${VM_CORES} virtual CPU</rasd:Caption> 48 | <rasd:Description>Number of virtual CPUs</rasd:Description> 49 | <rasd:InstanceID>1</rasd:InstanceID> 50 | <rasd:ResourceType>3</rasd:ResourceType> 51 | <rasd:VirtualQuantity>${VM_CORES}</rasd:VirtualQuantity> 52 | </Item> 53 | <Item> 54 | <rasd:AllocationUnits>MegaBytes</rasd:AllocationUnits> 55 | <rasd:Caption>${VM_RAM} MB of memory</rasd:Caption> 56 | <rasd:Description>Memory Size</rasd:Description> 57 | <rasd:InstanceID>2</rasd:InstanceID> 58 | <rasd:ResourceType>4</rasd:ResourceType> 59 | <rasd:VirtualQuantity>${VM_RAM}</rasd:VirtualQuantity> 60 | </Item> 61 | <Item> 62 | <rasd:Address>0</rasd:Address> 63 | <rasd:Caption>ideController0</rasd:Caption> 64 | <rasd:Description>IDE Controller</rasd:Description> 65 | <rasd:InstanceID>3</rasd:InstanceID> 66 | <rasd:ResourceSubType>PIIX4</rasd:ResourceSubType> 67 | <rasd:ResourceType>5</rasd:ResourceType> 68 | </Item> 69 | <Item> 70 | <rasd:Address>1</rasd:Address> 71 | <rasd:Caption>ideController1</rasd:Caption> 72 | <rasd:Description>IDE Controller</rasd:Description> 73 | <rasd:InstanceID>4</rasd:InstanceID> 74 | <rasd:ResourceSubType>PIIX4</rasd:ResourceSubType> 75 | <rasd:ResourceType>5</rasd:ResourceType> 76 | </Item> 77 | <Item> 78 | <rasd:Address>0</rasd:Address> 79 | <rasd:Caption>usb</rasd:Caption> 80 | <rasd:Description>USB Controller</rasd:Description> 81 | <rasd:InstanceID>5</rasd:InstanceID> 82 | <rasd:ResourceType>23</rasd:ResourceType> 83 | </Item> 84 | <Item> 85 | <rasd:AddressOnParent>3</rasd:AddressOnParent> 86 | <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation> 87 | <rasd:Caption>sound</rasd:Caption> 88 | <rasd:Description>Sound Card</rasd:Description> 89 | <rasd:InstanceID>6</rasd:InstanceID> 90 | <rasd:ResourceSubType>ensoniq1371</rasd:ResourceSubType> 91 | <rasd:ResourceType>35</rasd:ResourceType> 92 | </Item> 93 | <StorageItem> 94 | <sasd:AddressOnParent>0</sasd:AddressOnParent> 95 | <sasd:Caption>disk1</sasd:Caption> 96 | <sasd:Description>Disk Image</sasd:Description> 97 | <sasd:HostResource>/disk/vmdisk1</sasd:HostResource> 98 | <sasd:InstanceID>7</sasd:InstanceID> 99 | <sasd:Parent>3</sasd:Parent> 100 | <sasd:ResourceType>17</sasd:ResourceType> 101 | </StorageItem> 102 | <EthernetPortItem> 103 | <epasd:AutomaticAllocation>true</epasd:AutomaticAllocation> 104 | <epasd:Caption>Ethernet adapter on 'NAT'</epasd:Caption> 105 | <epasd:Connection>NAT</epasd:Connection> 106 | <epasd:InstanceID>8</epasd:InstanceID> 107 | <epasd:ResourceSubType>E1000</epasd:ResourceSubType> 108 | <epasd:ResourceType>10</epasd:ResourceType> 109 | </EthernetPortItem> 110 | </VirtualHardwareSection> 111 | </VirtualSystem> 112 | </Envelope> 113 | -------------------------------------------------------------------------------- /webapp/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "webapp", 3 | "lockfileVersion": 3, 4 | "requires": true, 5 | "packages": { 6 | "": { 7 | "dependencies": { 8 | "gzip-js": "^0.3.2", 9 | "js-sha256": "^0.9.0", 10 | "simpledotcss": "^2.2.1", 11 | "tar-js": "^0.3.0", 12 | "webpack": "^5.74.0", 13 | "webpack-cli": "^4.10.0" 14 | }, 15 | "devDependencies": { 16 | "css-loader": "^6.8.1", 17 | "style-loader": "^3.3.3" 18 | } 19 | }, 20 | "node_modules/@discoveryjs/json-ext": { 21 | "version": "0.5.7", 22 | "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", 23 | "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", 24 | "engines": { 25 | "node": ">=10.0.0" 26 | } 27 | }, 28 | "node_modules/@jridgewell/gen-mapping": { 29 | "version": "0.3.3", 30 | "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", 31 | "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", 32 | "dependencies": { 33 | "@jridgewell/set-array": "^1.0.1", 34 | "@jridgewell/sourcemap-codec": "^1.4.10", 35 | "@jridgewell/trace-mapping": "^0.3.9" 36 | }, 37 | "engines": { 38 | "node": ">=6.0.0" 39 | } 40 | }, 41 | "node_modules/@jridgewell/resolve-uri": { 42 | "version": "3.1.1", 43 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", 44 | "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", 45 | "engines": { 46 | "node": ">=6.0.0" 47 | } 48 | }, 49 | "node_modules/@jridgewell/set-array": { 50 | "version": "1.1.2", 51 | "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", 52 | "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", 53 | "engines": { 54 | "node": ">=6.0.0" 55 | } 56 | }, 57 | "node_modules/@jridgewell/source-map": { 58 | "version": "0.3.5", 59 | "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.5.tgz", 60 | "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==", 61 | "dependencies": { 62 | "@jridgewell/gen-mapping": "^0.3.0", 63 | "@jridgewell/trace-mapping": "^0.3.9" 64 | } 65 | }, 66 | "node_modules/@jridgewell/sourcemap-codec": { 67 | "version": "1.4.15", 68 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", 69 | "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" 70 | }, 71 | "node_modules/@jridgewell/trace-mapping": { 72 | "version": "0.3.19", 73 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz", 74 | "integrity": "sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==", 75 | "dependencies": { 76 | "@jridgewell/resolve-uri": "^3.1.0", 77 | "@jridgewell/sourcemap-codec": "^1.4.14" 78 | } 79 | }, 80 | "node_modules/@types/eslint": { 81 | "version": "8.44.2", 82 | "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.44.2.tgz", 83 | "integrity": "sha512-sdPRb9K6iL5XZOmBubg8yiFp5yS/JdUDQsq5e6h95km91MCYMuvp7mh1fjPEYUhvHepKpZOjnEaMBR4PxjWDzg==", 84 | "dependencies": { 85 | "@types/estree": "*", 86 | "@types/json-schema": "*" 87 | } 88 | }, 89 | "node_modules/@types/eslint-scope": { 90 | "version": "3.7.4", 91 | "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", 92 | "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", 93 | "dependencies": { 94 | "@types/eslint": "*", 95 | "@types/estree": "*" 96 | } 97 | }, 98 | "node_modules/@types/estree": { 99 | "version": "1.0.1", 100 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", 101 | "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==" 102 | }, 103 | "node_modules/@types/json-schema": { 104 | "version": "7.0.12", 105 | "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", 106 | "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==" 107 | }, 108 | "node_modules/@types/node": { 109 | "version": "20.5.4", 110 | "resolved": "https://registry.npmjs.org/@types/node/-/node-20.5.4.tgz", 111 | "integrity": "sha512-Y9vbIAoM31djQZrPYjpTLo0XlaSwOIsrlfE3LpulZeRblttsLQRFRlBAppW0LOxyT3ALj2M5vU1ucQQayQH3jA==" 112 | }, 113 | "node_modules/@webassemblyjs/ast": { 114 | "version": "1.11.6", 115 | "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", 116 | "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", 117 | "dependencies": { 118 | "@webassemblyjs/helper-numbers": "1.11.6", 119 | "@webassemblyjs/helper-wasm-bytecode": "1.11.6" 120 | } 121 | }, 122 | "node_modules/@webassemblyjs/floating-point-hex-parser": { 123 | "version": "1.11.6", 124 | "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", 125 | "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==" 126 | }, 127 | "node_modules/@webassemblyjs/helper-api-error": { 128 | "version": "1.11.6", 129 | "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", 130 | "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==" 131 | }, 132 | "node_modules/@webassemblyjs/helper-buffer": { 133 | "version": "1.11.6", 134 | "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", 135 | "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==" 136 | }, 137 | "node_modules/@webassemblyjs/helper-numbers": { 138 | "version": "1.11.6", 139 | "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", 140 | "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", 141 | "dependencies": { 142 | "@webassemblyjs/floating-point-hex-parser": "1.11.6", 143 | "@webassemblyjs/helper-api-error": "1.11.6", 144 | "@xtuc/long": "4.2.2" 145 | } 146 | }, 147 | "node_modules/@webassemblyjs/helper-wasm-bytecode": { 148 | "version": "1.11.6", 149 | "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", 150 | "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==" 151 | }, 152 | "node_modules/@webassemblyjs/helper-wasm-section": { 153 | "version": "1.11.6", 154 | "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", 155 | "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", 156 | "dependencies": { 157 | "@webassemblyjs/ast": "1.11.6", 158 | "@webassemblyjs/helper-buffer": "1.11.6", 159 | "@webassemblyjs/helper-wasm-bytecode": "1.11.6", 160 | "@webassemblyjs/wasm-gen": "1.11.6" 161 | } 162 | }, 163 | "node_modules/@webassemblyjs/ieee754": { 164 | "version": "1.11.6", 165 | "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", 166 | "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", 167 | "dependencies": { 168 | "@xtuc/ieee754": "^1.2.0" 169 | } 170 | }, 171 | "node_modules/@webassemblyjs/leb128": { 172 | "version": "1.11.6", 173 | "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", 174 | "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", 175 | "dependencies": { 176 | "@xtuc/long": "4.2.2" 177 | } 178 | }, 179 | "node_modules/@webassemblyjs/utf8": { 180 | "version": "1.11.6", 181 | "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", 182 | "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==" 183 | }, 184 | "node_modules/@webassemblyjs/wasm-edit": { 185 | "version": "1.11.6", 186 | "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", 187 | "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", 188 | "dependencies": { 189 | "@webassemblyjs/ast": "1.11.6", 190 | "@webassemblyjs/helper-buffer": "1.11.6", 191 | "@webassemblyjs/helper-wasm-bytecode": "1.11.6", 192 | "@webassemblyjs/helper-wasm-section": "1.11.6", 193 | "@webassemblyjs/wasm-gen": "1.11.6", 194 | "@webassemblyjs/wasm-opt": "1.11.6", 195 | "@webassemblyjs/wasm-parser": "1.11.6", 196 | "@webassemblyjs/wast-printer": "1.11.6" 197 | } 198 | }, 199 | "node_modules/@webassemblyjs/wasm-gen": { 200 | "version": "1.11.6", 201 | "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", 202 | "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", 203 | "dependencies": { 204 | "@webassemblyjs/ast": "1.11.6", 205 | "@webassemblyjs/helper-wasm-bytecode": "1.11.6", 206 | "@webassemblyjs/ieee754": "1.11.6", 207 | "@webassemblyjs/leb128": "1.11.6", 208 | "@webassemblyjs/utf8": "1.11.6" 209 | } 210 | }, 211 | "node_modules/@webassemblyjs/wasm-opt": { 212 | "version": "1.11.6", 213 | "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", 214 | "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", 215 | "dependencies": { 216 | "@webassemblyjs/ast": "1.11.6", 217 | "@webassemblyjs/helper-buffer": "1.11.6", 218 | "@webassemblyjs/wasm-gen": "1.11.6", 219 | "@webassemblyjs/wasm-parser": "1.11.6" 220 | } 221 | }, 222 | "node_modules/@webassemblyjs/wasm-parser": { 223 | "version": "1.11.6", 224 | "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", 225 | "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", 226 | "dependencies": { 227 | "@webassemblyjs/ast": "1.11.6", 228 | "@webassemblyjs/helper-api-error": "1.11.6", 229 | "@webassemblyjs/helper-wasm-bytecode": "1.11.6", 230 | "@webassemblyjs/ieee754": "1.11.6", 231 | "@webassemblyjs/leb128": "1.11.6", 232 | "@webassemblyjs/utf8": "1.11.6" 233 | } 234 | }, 235 | "node_modules/@webassemblyjs/wast-printer": { 236 | "version": "1.11.6", 237 | "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", 238 | "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", 239 | "dependencies": { 240 | "@webassemblyjs/ast": "1.11.6", 241 | "@xtuc/long": "4.2.2" 242 | } 243 | }, 244 | "node_modules/@webpack-cli/configtest": { 245 | "version": "1.2.0", 246 | "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.2.0.tgz", 247 | "integrity": "sha512-4FB8Tj6xyVkyqjj1OaTqCjXYULB9FMkqQ8yGrZjRDrYh0nOE+7Lhs45WioWQQMV+ceFlE368Ukhe6xdvJM9Egg==", 248 | "peerDependencies": { 249 | "webpack": "4.x.x || 5.x.x", 250 | "webpack-cli": "4.x.x" 251 | } 252 | }, 253 | "node_modules/@webpack-cli/info": { 254 | "version": "1.5.0", 255 | "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.5.0.tgz", 256 | "integrity": "sha512-e8tSXZpw2hPl2uMJY6fsMswaok5FdlGNRTktvFk2sD8RjH0hE2+XistawJx1vmKteh4NmGmNUrp+Tb2w+udPcQ==", 257 | "dependencies": { 258 | "envinfo": "^7.7.3" 259 | }, 260 | "peerDependencies": { 261 | "webpack-cli": "4.x.x" 262 | } 263 | }, 264 | "node_modules/@webpack-cli/serve": { 265 | "version": "1.7.0", 266 | "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.7.0.tgz", 267 | "integrity": "sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q==", 268 | "peerDependencies": { 269 | "webpack-cli": "4.x.x" 270 | }, 271 | "peerDependenciesMeta": { 272 | "webpack-dev-server": { 273 | "optional": true 274 | } 275 | } 276 | }, 277 | "node_modules/@xtuc/ieee754": { 278 | "version": "1.2.0", 279 | "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", 280 | "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==" 281 | }, 282 | "node_modules/@xtuc/long": { 283 | "version": "4.2.2", 284 | "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", 285 | "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==" 286 | }, 287 | "node_modules/acorn": { 288 | "version": "8.10.0", 289 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", 290 | "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", 291 | "bin": { 292 | "acorn": "bin/acorn" 293 | }, 294 | "engines": { 295 | "node": ">=0.4.0" 296 | } 297 | }, 298 | "node_modules/acorn-import-assertions": { 299 | "version": "1.9.0", 300 | "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", 301 | "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", 302 | "peerDependencies": { 303 | "acorn": "^8" 304 | } 305 | }, 306 | "node_modules/ajv": { 307 | "version": "6.12.6", 308 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 309 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 310 | "dependencies": { 311 | "fast-deep-equal": "^3.1.1", 312 | "fast-json-stable-stringify": "^2.0.0", 313 | "json-schema-traverse": "^0.4.1", 314 | "uri-js": "^4.2.2" 315 | }, 316 | "funding": { 317 | "type": "github", 318 | "url": "https://github.com/sponsors/epoberezkin" 319 | } 320 | }, 321 | "node_modules/ajv-keywords": { 322 | "version": "3.5.2", 323 | "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", 324 | "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", 325 | "peerDependencies": { 326 | "ajv": "^6.9.1" 327 | } 328 | }, 329 | "node_modules/browserslist": { 330 | "version": "4.21.10", 331 | "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.10.tgz", 332 | "integrity": "sha512-bipEBdZfVH5/pwrvqc+Ub0kUPVfGUhlKxbvfD+z1BDnPEO/X98ruXGA1WP5ASpAFKan7Qr6j736IacbZQuAlKQ==", 333 | "funding": [ 334 | { 335 | "type": "opencollective", 336 | "url": "https://opencollective.com/browserslist" 337 | }, 338 | { 339 | "type": "tidelift", 340 | "url": "https://tidelift.com/funding/github/npm/browserslist" 341 | }, 342 | { 343 | "type": "github", 344 | "url": "https://github.com/sponsors/ai" 345 | } 346 | ], 347 | "dependencies": { 348 | "caniuse-lite": "^1.0.30001517", 349 | "electron-to-chromium": "^1.4.477", 350 | "node-releases": "^2.0.13", 351 | "update-browserslist-db": "^1.0.11" 352 | }, 353 | "bin": { 354 | "browserslist": "cli.js" 355 | }, 356 | "engines": { 357 | "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" 358 | } 359 | }, 360 | "node_modules/buffer-from": { 361 | "version": "1.1.2", 362 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", 363 | "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" 364 | }, 365 | "node_modules/caniuse-lite": { 366 | "version": "1.0.30001522", 367 | "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001522.tgz", 368 | "integrity": "sha512-TKiyTVZxJGhsTszLuzb+6vUZSjVOAhClszBr2Ta2k9IwtNBT/4dzmL6aywt0HCgEZlmwJzXJd8yNiob6HgwTRg==", 369 | "funding": [ 370 | { 371 | "type": "opencollective", 372 | "url": "https://opencollective.com/browserslist" 373 | }, 374 | { 375 | "type": "tidelift", 376 | "url": "https://tidelift.com/funding/github/npm/caniuse-lite" 377 | }, 378 | { 379 | "type": "github", 380 | "url": "https://github.com/sponsors/ai" 381 | } 382 | ] 383 | }, 384 | "node_modules/chrome-trace-event": { 385 | "version": "1.0.3", 386 | "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", 387 | "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", 388 | "engines": { 389 | "node": ">=6.0" 390 | } 391 | }, 392 | "node_modules/clone-deep": { 393 | "version": "4.0.1", 394 | "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", 395 | "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", 396 | "dependencies": { 397 | "is-plain-object": "^2.0.4", 398 | "kind-of": "^6.0.2", 399 | "shallow-clone": "^3.0.0" 400 | }, 401 | "engines": { 402 | "node": ">=6" 403 | } 404 | }, 405 | "node_modules/colorette": { 406 | "version": "2.0.20", 407 | "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", 408 | "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==" 409 | }, 410 | "node_modules/commander": { 411 | "version": "2.20.3", 412 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", 413 | "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" 414 | }, 415 | "node_modules/crc32": { 416 | "version": "0.2.2", 417 | "resolved": "https://registry.npmjs.org/crc32/-/crc32-0.2.2.tgz", 418 | "integrity": "sha512-PFZEGbDUeoNbL2GHIEpJRQGheXReDody/9axKTxhXtQqIL443wnNigtVZO9iuCIMPApKZRv7k2xr8euXHqNxQQ==", 419 | "bin": { 420 | "crc32": "bin/runner.js" 421 | }, 422 | "engines": { 423 | "node": ">= 0.4.0" 424 | } 425 | }, 426 | "node_modules/cross-spawn": { 427 | "version": "7.0.3", 428 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", 429 | "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", 430 | "dependencies": { 431 | "path-key": "^3.1.0", 432 | "shebang-command": "^2.0.0", 433 | "which": "^2.0.1" 434 | }, 435 | "engines": { 436 | "node": ">= 8" 437 | } 438 | }, 439 | "node_modules/css-loader": { 440 | "version": "6.8.1", 441 | "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.8.1.tgz", 442 | "integrity": "sha512-xDAXtEVGlD0gJ07iclwWVkLoZOpEvAWaSyf6W18S2pOC//K8+qUDIx8IIT3D+HjnmkJPQeesOPv5aiUaJsCM2g==", 443 | "dev": true, 444 | "dependencies": { 445 | "icss-utils": "^5.1.0", 446 | "postcss": "^8.4.21", 447 | "postcss-modules-extract-imports": "^3.0.0", 448 | "postcss-modules-local-by-default": "^4.0.3", 449 | "postcss-modules-scope": "^3.0.0", 450 | "postcss-modules-values": "^4.0.0", 451 | "postcss-value-parser": "^4.2.0", 452 | "semver": "^7.3.8" 453 | }, 454 | "engines": { 455 | "node": ">= 12.13.0" 456 | }, 457 | "funding": { 458 | "type": "opencollective", 459 | "url": "https://opencollective.com/webpack" 460 | }, 461 | "peerDependencies": { 462 | "webpack": "^5.0.0" 463 | } 464 | }, 465 | "node_modules/cssesc": { 466 | "version": "3.0.0", 467 | "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", 468 | "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", 469 | "dev": true, 470 | "bin": { 471 | "cssesc": "bin/cssesc" 472 | }, 473 | "engines": { 474 | "node": ">=4" 475 | } 476 | }, 477 | "node_modules/deflate-js": { 478 | "version": "0.2.3", 479 | "resolved": "https://registry.npmjs.org/deflate-js/-/deflate-js-0.2.3.tgz", 480 | "integrity": "sha512-r5KgHJ/yTiWQs23nVeQz5dSL/kmW0MBszsssNyEqDCjjFDj4XG/c6QUN/I0JtY3ZHwwcaNBtGE8s+oV33acTfQ==", 481 | "bin": { 482 | "deflate-js": "bin/deflate.js", 483 | "inflate-js": "bin/inflate.js" 484 | }, 485 | "engines": { 486 | "node": ">= 0.4.0" 487 | } 488 | }, 489 | "node_modules/electron-to-chromium": { 490 | "version": "1.4.501", 491 | "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.501.tgz", 492 | "integrity": "sha512-NCF5hZUg73MEP0guvIM+BjPs9W07UeAuc5XCNqRZZTKJxLjE0ZS/Zo5UsV8bbs2y/jeKRPFPzdWdBfOGEZTXKg==" 493 | }, 494 | "node_modules/enhanced-resolve": { 495 | "version": "5.15.0", 496 | "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", 497 | "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", 498 | "dependencies": { 499 | "graceful-fs": "^4.2.4", 500 | "tapable": "^2.2.0" 501 | }, 502 | "engines": { 503 | "node": ">=10.13.0" 504 | } 505 | }, 506 | "node_modules/envinfo": { 507 | "version": "7.10.0", 508 | "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.10.0.tgz", 509 | "integrity": "sha512-ZtUjZO6l5mwTHvc1L9+1q5p/R3wTopcfqMW8r5t8SJSKqeVI/LtajORwRFEKpEFuekjD0VBjwu1HMxL4UalIRw==", 510 | "bin": { 511 | "envinfo": "dist/cli.js" 512 | }, 513 | "engines": { 514 | "node": ">=4" 515 | } 516 | }, 517 | "node_modules/es-module-lexer": { 518 | "version": "1.3.0", 519 | "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.3.0.tgz", 520 | "integrity": "sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA==" 521 | }, 522 | "node_modules/escalade": { 523 | "version": "3.1.1", 524 | "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", 525 | "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", 526 | "engines": { 527 | "node": ">=6" 528 | } 529 | }, 530 | "node_modules/eslint-scope": { 531 | "version": "5.1.1", 532 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", 533 | "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", 534 | "dependencies": { 535 | "esrecurse": "^4.3.0", 536 | "estraverse": "^4.1.1" 537 | }, 538 | "engines": { 539 | "node": ">=8.0.0" 540 | } 541 | }, 542 | "node_modules/esrecurse": { 543 | "version": "4.3.0", 544 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", 545 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", 546 | "dependencies": { 547 | "estraverse": "^5.2.0" 548 | }, 549 | "engines": { 550 | "node": ">=4.0" 551 | } 552 | }, 553 | "node_modules/esrecurse/node_modules/estraverse": { 554 | "version": "5.3.0", 555 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 556 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 557 | "engines": { 558 | "node": ">=4.0" 559 | } 560 | }, 561 | "node_modules/estraverse": { 562 | "version": "4.3.0", 563 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", 564 | "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", 565 | "engines": { 566 | "node": ">=4.0" 567 | } 568 | }, 569 | "node_modules/events": { 570 | "version": "3.3.0", 571 | "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", 572 | "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", 573 | "engines": { 574 | "node": ">=0.8.x" 575 | } 576 | }, 577 | "node_modules/fast-deep-equal": { 578 | "version": "3.1.3", 579 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 580 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" 581 | }, 582 | "node_modules/fast-json-stable-stringify": { 583 | "version": "2.1.0", 584 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 585 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" 586 | }, 587 | "node_modules/fastest-levenshtein": { 588 | "version": "1.0.16", 589 | "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", 590 | "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", 591 | "engines": { 592 | "node": ">= 4.9.1" 593 | } 594 | }, 595 | "node_modules/find-up": { 596 | "version": "4.1.0", 597 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", 598 | "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", 599 | "dependencies": { 600 | "locate-path": "^5.0.0", 601 | "path-exists": "^4.0.0" 602 | }, 603 | "engines": { 604 | "node": ">=8" 605 | } 606 | }, 607 | "node_modules/function-bind": { 608 | "version": "1.1.1", 609 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 610 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" 611 | }, 612 | "node_modules/glob-to-regexp": { 613 | "version": "0.4.1", 614 | "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", 615 | "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" 616 | }, 617 | "node_modules/graceful-fs": { 618 | "version": "4.2.11", 619 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", 620 | "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" 621 | }, 622 | "node_modules/gzip-js": { 623 | "version": "0.3.2", 624 | "resolved": "https://registry.npmjs.org/gzip-js/-/gzip-js-0.3.2.tgz", 625 | "integrity": "sha512-BFTiwtEN12koJsnhVo77SzW+u6VANzhaK0HEtdwFwgFzFOq1WQJ8eSPEyGAueUfs1C/WqdgtuYnUwCRuRm1A5Q==", 626 | "dependencies": { 627 | "crc32": ">= 0.2.2", 628 | "deflate-js": ">= 0.2.2" 629 | }, 630 | "bin": { 631 | "gunzip-js": "bin/gunzip.js", 632 | "gzip-js": "bin/gzip.js" 633 | }, 634 | "engines": { 635 | "node": ">= 0.4.0" 636 | } 637 | }, 638 | "node_modules/has": { 639 | "version": "1.0.3", 640 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 641 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 642 | "dependencies": { 643 | "function-bind": "^1.1.1" 644 | }, 645 | "engines": { 646 | "node": ">= 0.4.0" 647 | } 648 | }, 649 | "node_modules/has-flag": { 650 | "version": "4.0.0", 651 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 652 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 653 | "engines": { 654 | "node": ">=8" 655 | } 656 | }, 657 | "node_modules/icss-utils": { 658 | "version": "5.1.0", 659 | "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", 660 | "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", 661 | "dev": true, 662 | "engines": { 663 | "node": "^10 || ^12 || >= 14" 664 | }, 665 | "peerDependencies": { 666 | "postcss": "^8.1.0" 667 | } 668 | }, 669 | "node_modules/import-local": { 670 | "version": "3.1.0", 671 | "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", 672 | "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", 673 | "dependencies": { 674 | "pkg-dir": "^4.2.0", 675 | "resolve-cwd": "^3.0.0" 676 | }, 677 | "bin": { 678 | "import-local-fixture": "fixtures/cli.js" 679 | }, 680 | "engines": { 681 | "node": ">=8" 682 | }, 683 | "funding": { 684 | "url": "https://github.com/sponsors/sindresorhus" 685 | } 686 | }, 687 | "node_modules/interpret": { 688 | "version": "2.2.0", 689 | "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", 690 | "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", 691 | "engines": { 692 | "node": ">= 0.10" 693 | } 694 | }, 695 | "node_modules/is-core-module": { 696 | "version": "2.13.0", 697 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", 698 | "integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==", 699 | "dependencies": { 700 | "has": "^1.0.3" 701 | }, 702 | "funding": { 703 | "url": "https://github.com/sponsors/ljharb" 704 | } 705 | }, 706 | "node_modules/is-plain-object": { 707 | "version": "2.0.4", 708 | "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", 709 | "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", 710 | "dependencies": { 711 | "isobject": "^3.0.1" 712 | }, 713 | "engines": { 714 | "node": ">=0.10.0" 715 | } 716 | }, 717 | "node_modules/isexe": { 718 | "version": "2.0.0", 719 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 720 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" 721 | }, 722 | "node_modules/isobject": { 723 | "version": "3.0.1", 724 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", 725 | "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", 726 | "engines": { 727 | "node": ">=0.10.0" 728 | } 729 | }, 730 | "node_modules/jest-worker": { 731 | "version": "27.5.1", 732 | "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", 733 | "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", 734 | "dependencies": { 735 | "@types/node": "*", 736 | "merge-stream": "^2.0.0", 737 | "supports-color": "^8.0.0" 738 | }, 739 | "engines": { 740 | "node": ">= 10.13.0" 741 | } 742 | }, 743 | "node_modules/js-sha256": { 744 | "version": "0.9.0", 745 | "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", 746 | "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" 747 | }, 748 | "node_modules/json-parse-even-better-errors": { 749 | "version": "2.3.1", 750 | "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", 751 | "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" 752 | }, 753 | "node_modules/json-schema-traverse": { 754 | "version": "0.4.1", 755 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 756 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" 757 | }, 758 | "node_modules/kind-of": { 759 | "version": "6.0.3", 760 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", 761 | "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", 762 | "engines": { 763 | "node": ">=0.10.0" 764 | } 765 | }, 766 | "node_modules/loader-runner": { 767 | "version": "4.3.0", 768 | "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", 769 | "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", 770 | "engines": { 771 | "node": ">=6.11.5" 772 | } 773 | }, 774 | "node_modules/locate-path": { 775 | "version": "5.0.0", 776 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", 777 | "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", 778 | "dependencies": { 779 | "p-locate": "^4.1.0" 780 | }, 781 | "engines": { 782 | "node": ">=8" 783 | } 784 | }, 785 | "node_modules/lru-cache": { 786 | "version": "6.0.0", 787 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 788 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 789 | "dev": true, 790 | "dependencies": { 791 | "yallist": "^4.0.0" 792 | }, 793 | "engines": { 794 | "node": ">=10" 795 | } 796 | }, 797 | "node_modules/merge-stream": { 798 | "version": "2.0.0", 799 | "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", 800 | "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" 801 | }, 802 | "node_modules/mime-db": { 803 | "version": "1.52.0", 804 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 805 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", 806 | "engines": { 807 | "node": ">= 0.6" 808 | } 809 | }, 810 | "node_modules/mime-types": { 811 | "version": "2.1.35", 812 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 813 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 814 | "dependencies": { 815 | "mime-db": "1.52.0" 816 | }, 817 | "engines": { 818 | "node": ">= 0.6" 819 | } 820 | }, 821 | "node_modules/nanoid": { 822 | "version": "3.3.6", 823 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", 824 | "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", 825 | "dev": true, 826 | "funding": [ 827 | { 828 | "type": "github", 829 | "url": "https://github.com/sponsors/ai" 830 | } 831 | ], 832 | "bin": { 833 | "nanoid": "bin/nanoid.cjs" 834 | }, 835 | "engines": { 836 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 837 | } 838 | }, 839 | "node_modules/neo-async": { 840 | "version": "2.6.2", 841 | "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", 842 | "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" 843 | }, 844 | "node_modules/node-releases": { 845 | "version": "2.0.13", 846 | "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", 847 | "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==" 848 | }, 849 | "node_modules/p-limit": { 850 | "version": "2.3.0", 851 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", 852 | "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", 853 | "dependencies": { 854 | "p-try": "^2.0.0" 855 | }, 856 | "engines": { 857 | "node": ">=6" 858 | }, 859 | "funding": { 860 | "url": "https://github.com/sponsors/sindresorhus" 861 | } 862 | }, 863 | "node_modules/p-locate": { 864 | "version": "4.1.0", 865 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", 866 | "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", 867 | "dependencies": { 868 | "p-limit": "^2.2.0" 869 | }, 870 | "engines": { 871 | "node": ">=8" 872 | } 873 | }, 874 | "node_modules/p-try": { 875 | "version": "2.2.0", 876 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", 877 | "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", 878 | "engines": { 879 | "node": ">=6" 880 | } 881 | }, 882 | "node_modules/path-exists": { 883 | "version": "4.0.0", 884 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 885 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 886 | "engines": { 887 | "node": ">=8" 888 | } 889 | }, 890 | "node_modules/path-key": { 891 | "version": "3.1.1", 892 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 893 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 894 | "engines": { 895 | "node": ">=8" 896 | } 897 | }, 898 | "node_modules/path-parse": { 899 | "version": "1.0.7", 900 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 901 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" 902 | }, 903 | "node_modules/picocolors": { 904 | "version": "1.0.0", 905 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", 906 | "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" 907 | }, 908 | "node_modules/pkg-dir": { 909 | "version": "4.2.0", 910 | "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", 911 | "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", 912 | "dependencies": { 913 | "find-up": "^4.0.0" 914 | }, 915 | "engines": { 916 | "node": ">=8" 917 | } 918 | }, 919 | "node_modules/postcss": { 920 | "version": "8.4.28", 921 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.28.tgz", 922 | "integrity": "sha512-Z7V5j0cq8oEKyejIKfpD8b4eBy9cwW2JWPk0+fB1HOAMsfHbnAXLLS+PfVWlzMSLQaWttKDt607I0XHmpE67Vw==", 923 | "dev": true, 924 | "funding": [ 925 | { 926 | "type": "opencollective", 927 | "url": "https://opencollective.com/postcss/" 928 | }, 929 | { 930 | "type": "tidelift", 931 | "url": "https://tidelift.com/funding/github/npm/postcss" 932 | }, 933 | { 934 | "type": "github", 935 | "url": "https://github.com/sponsors/ai" 936 | } 937 | ], 938 | "dependencies": { 939 | "nanoid": "^3.3.6", 940 | "picocolors": "^1.0.0", 941 | "source-map-js": "^1.0.2" 942 | }, 943 | "engines": { 944 | "node": "^10 || ^12 || >=14" 945 | } 946 | }, 947 | "node_modules/postcss-modules-extract-imports": { 948 | "version": "3.0.0", 949 | "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", 950 | "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", 951 | "dev": true, 952 | "engines": { 953 | "node": "^10 || ^12 || >= 14" 954 | }, 955 | "peerDependencies": { 956 | "postcss": "^8.1.0" 957 | } 958 | }, 959 | "node_modules/postcss-modules-local-by-default": { 960 | "version": "4.0.3", 961 | "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.3.tgz", 962 | "integrity": "sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==", 963 | "dev": true, 964 | "dependencies": { 965 | "icss-utils": "^5.0.0", 966 | "postcss-selector-parser": "^6.0.2", 967 | "postcss-value-parser": "^4.1.0" 968 | }, 969 | "engines": { 970 | "node": "^10 || ^12 || >= 14" 971 | }, 972 | "peerDependencies": { 973 | "postcss": "^8.1.0" 974 | } 975 | }, 976 | "node_modules/postcss-modules-scope": { 977 | "version": "3.0.0", 978 | "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz", 979 | "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==", 980 | "dev": true, 981 | "dependencies": { 982 | "postcss-selector-parser": "^6.0.4" 983 | }, 984 | "engines": { 985 | "node": "^10 || ^12 || >= 14" 986 | }, 987 | "peerDependencies": { 988 | "postcss": "^8.1.0" 989 | } 990 | }, 991 | "node_modules/postcss-modules-values": { 992 | "version": "4.0.0", 993 | "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz", 994 | "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==", 995 | "dev": true, 996 | "dependencies": { 997 | "icss-utils": "^5.0.0" 998 | }, 999 | "engines": { 1000 | "node": "^10 || ^12 || >= 14" 1001 | }, 1002 | "peerDependencies": { 1003 | "postcss": "^8.1.0" 1004 | } 1005 | }, 1006 | "node_modules/postcss-selector-parser": { 1007 | "version": "6.0.13", 1008 | "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", 1009 | "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", 1010 | "dev": true, 1011 | "dependencies": { 1012 | "cssesc": "^3.0.0", 1013 | "util-deprecate": "^1.0.2" 1014 | }, 1015 | "engines": { 1016 | "node": ">=4" 1017 | } 1018 | }, 1019 | "node_modules/postcss-value-parser": { 1020 | "version": "4.2.0", 1021 | "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", 1022 | "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", 1023 | "dev": true 1024 | }, 1025 | "node_modules/punycode": { 1026 | "version": "2.3.0", 1027 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", 1028 | "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", 1029 | "engines": { 1030 | "node": ">=6" 1031 | } 1032 | }, 1033 | "node_modules/randombytes": { 1034 | "version": "2.1.0", 1035 | "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", 1036 | "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", 1037 | "dependencies": { 1038 | "safe-buffer": "^5.1.0" 1039 | } 1040 | }, 1041 | "node_modules/rechoir": { 1042 | "version": "0.7.1", 1043 | "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", 1044 | "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", 1045 | "dependencies": { 1046 | "resolve": "^1.9.0" 1047 | }, 1048 | "engines": { 1049 | "node": ">= 0.10" 1050 | } 1051 | }, 1052 | "node_modules/resolve": { 1053 | "version": "1.22.4", 1054 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.4.tgz", 1055 | "integrity": "sha512-PXNdCiPqDqeUou+w1C2eTQbNfxKSuMxqTCuvlmmMsk1NWHL5fRrhY6Pl0qEYYc6+QqGClco1Qj8XnjPego4wfg==", 1056 | "dependencies": { 1057 | "is-core-module": "^2.13.0", 1058 | "path-parse": "^1.0.7", 1059 | "supports-preserve-symlinks-flag": "^1.0.0" 1060 | }, 1061 | "bin": { 1062 | "resolve": "bin/resolve" 1063 | }, 1064 | "funding": { 1065 | "url": "https://github.com/sponsors/ljharb" 1066 | } 1067 | }, 1068 | "node_modules/resolve-cwd": { 1069 | "version": "3.0.0", 1070 | "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", 1071 | "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", 1072 | "dependencies": { 1073 | "resolve-from": "^5.0.0" 1074 | }, 1075 | "engines": { 1076 | "node": ">=8" 1077 | } 1078 | }, 1079 | "node_modules/resolve-from": { 1080 | "version": "5.0.0", 1081 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", 1082 | "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", 1083 | "engines": { 1084 | "node": ">=8" 1085 | } 1086 | }, 1087 | "node_modules/safe-buffer": { 1088 | "version": "5.2.1", 1089 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 1090 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 1091 | "funding": [ 1092 | { 1093 | "type": "github", 1094 | "url": "https://github.com/sponsors/feross" 1095 | }, 1096 | { 1097 | "type": "patreon", 1098 | "url": "https://www.patreon.com/feross" 1099 | }, 1100 | { 1101 | "type": "consulting", 1102 | "url": "https://feross.org/support" 1103 | } 1104 | ] 1105 | }, 1106 | "node_modules/schema-utils": { 1107 | "version": "3.3.0", 1108 | "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", 1109 | "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", 1110 | "dependencies": { 1111 | "@types/json-schema": "^7.0.8", 1112 | "ajv": "^6.12.5", 1113 | "ajv-keywords": "^3.5.2" 1114 | }, 1115 | "engines": { 1116 | "node": ">= 10.13.0" 1117 | }, 1118 | "funding": { 1119 | "type": "opencollective", 1120 | "url": "https://opencollective.com/webpack" 1121 | } 1122 | }, 1123 | "node_modules/semver": { 1124 | "version": "7.5.4", 1125 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", 1126 | "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", 1127 | "dev": true, 1128 | "dependencies": { 1129 | "lru-cache": "^6.0.0" 1130 | }, 1131 | "bin": { 1132 | "semver": "bin/semver.js" 1133 | }, 1134 | "engines": { 1135 | "node": ">=10" 1136 | } 1137 | }, 1138 | "node_modules/serialize-javascript": { 1139 | "version": "6.0.1", 1140 | "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", 1141 | "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", 1142 | "dependencies": { 1143 | "randombytes": "^2.1.0" 1144 | } 1145 | }, 1146 | "node_modules/shallow-clone": { 1147 | "version": "3.0.1", 1148 | "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", 1149 | "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", 1150 | "dependencies": { 1151 | "kind-of": "^6.0.2" 1152 | }, 1153 | "engines": { 1154 | "node": ">=8" 1155 | } 1156 | }, 1157 | "node_modules/shebang-command": { 1158 | "version": "2.0.0", 1159 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 1160 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 1161 | "dependencies": { 1162 | "shebang-regex": "^3.0.0" 1163 | }, 1164 | "engines": { 1165 | "node": ">=8" 1166 | } 1167 | }, 1168 | "node_modules/shebang-regex": { 1169 | "version": "3.0.0", 1170 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 1171 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 1172 | "engines": { 1173 | "node": ">=8" 1174 | } 1175 | }, 1176 | "node_modules/simpledotcss": { 1177 | "version": "2.2.1", 1178 | "resolved": "https://registry.npmjs.org/simpledotcss/-/simpledotcss-2.2.1.tgz", 1179 | "integrity": "sha512-bEuU6rLmL8Lu6gBcn6HlslEEoHk4v8ldW3K4DOCT33e4L0Y3ExMT9DuITQ7KhRBKlKFDJ3DgAwxoGrN+0B9Jiw==" 1180 | }, 1181 | "node_modules/source-map": { 1182 | "version": "0.6.1", 1183 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 1184 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", 1185 | "engines": { 1186 | "node": ">=0.10.0" 1187 | } 1188 | }, 1189 | "node_modules/source-map-js": { 1190 | "version": "1.0.2", 1191 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", 1192 | "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", 1193 | "dev": true, 1194 | "engines": { 1195 | "node": ">=0.10.0" 1196 | } 1197 | }, 1198 | "node_modules/source-map-support": { 1199 | "version": "0.5.21", 1200 | "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", 1201 | "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", 1202 | "dependencies": { 1203 | "buffer-from": "^1.0.0", 1204 | "source-map": "^0.6.0" 1205 | } 1206 | }, 1207 | "node_modules/style-loader": { 1208 | "version": "3.3.3", 1209 | "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-3.3.3.tgz", 1210 | "integrity": "sha512-53BiGLXAcll9maCYtZi2RCQZKa8NQQai5C4horqKyRmHj9H7QmcUyucrH+4KW/gBQbXM2AsB0axoEcFZPlfPcw==", 1211 | "dev": true, 1212 | "engines": { 1213 | "node": ">= 12.13.0" 1214 | }, 1215 | "funding": { 1216 | "type": "opencollective", 1217 | "url": "https://opencollective.com/webpack" 1218 | }, 1219 | "peerDependencies": { 1220 | "webpack": "^5.0.0" 1221 | } 1222 | }, 1223 | "node_modules/supports-color": { 1224 | "version": "8.1.1", 1225 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", 1226 | "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", 1227 | "dependencies": { 1228 | "has-flag": "^4.0.0" 1229 | }, 1230 | "engines": { 1231 | "node": ">=10" 1232 | }, 1233 | "funding": { 1234 | "url": "https://github.com/chalk/supports-color?sponsor=1" 1235 | } 1236 | }, 1237 | "node_modules/supports-preserve-symlinks-flag": { 1238 | "version": "1.0.0", 1239 | "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", 1240 | "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", 1241 | "engines": { 1242 | "node": ">= 0.4" 1243 | }, 1244 | "funding": { 1245 | "url": "https://github.com/sponsors/ljharb" 1246 | } 1247 | }, 1248 | "node_modules/tapable": { 1249 | "version": "2.2.1", 1250 | "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", 1251 | "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", 1252 | "engines": { 1253 | "node": ">=6" 1254 | } 1255 | }, 1256 | "node_modules/tar-js": { 1257 | "version": "0.3.0", 1258 | "resolved": "https://registry.npmjs.org/tar-js/-/tar-js-0.3.0.tgz", 1259 | "integrity": "sha512-9uqP2hJUZNKRkwPDe5nXxXdzo6w+BFBPq9x/tyi5/U/DneuSesO/HMb0y5TeWpfcv49YDJTs7SrrZeeu8ZHWDA==", 1260 | "engines": { 1261 | "node": "*" 1262 | } 1263 | }, 1264 | "node_modules/terser": { 1265 | "version": "5.19.2", 1266 | "resolved": "https://registry.npmjs.org/terser/-/terser-5.19.2.tgz", 1267 | "integrity": "sha512-qC5+dmecKJA4cpYxRa5aVkKehYsQKc+AHeKl0Oe62aYjBL8ZA33tTljktDHJSaxxMnbI5ZYw+o/S2DxxLu8OfA==", 1268 | "dependencies": { 1269 | "@jridgewell/source-map": "^0.3.3", 1270 | "acorn": "^8.8.2", 1271 | "commander": "^2.20.0", 1272 | "source-map-support": "~0.5.20" 1273 | }, 1274 | "bin": { 1275 | "terser": "bin/terser" 1276 | }, 1277 | "engines": { 1278 | "node": ">=10" 1279 | } 1280 | }, 1281 | "node_modules/terser-webpack-plugin": { 1282 | "version": "5.3.9", 1283 | "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", 1284 | "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", 1285 | "dependencies": { 1286 | "@jridgewell/trace-mapping": "^0.3.17", 1287 | "jest-worker": "^27.4.5", 1288 | "schema-utils": "^3.1.1", 1289 | "serialize-javascript": "^6.0.1", 1290 | "terser": "^5.16.8" 1291 | }, 1292 | "engines": { 1293 | "node": ">= 10.13.0" 1294 | }, 1295 | "funding": { 1296 | "type": "opencollective", 1297 | "url": "https://opencollective.com/webpack" 1298 | }, 1299 | "peerDependencies": { 1300 | "webpack": "^5.1.0" 1301 | }, 1302 | "peerDependenciesMeta": { 1303 | "@swc/core": { 1304 | "optional": true 1305 | }, 1306 | "esbuild": { 1307 | "optional": true 1308 | }, 1309 | "uglify-js": { 1310 | "optional": true 1311 | } 1312 | } 1313 | }, 1314 | "node_modules/update-browserslist-db": { 1315 | "version": "1.0.11", 1316 | "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", 1317 | "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", 1318 | "funding": [ 1319 | { 1320 | "type": "opencollective", 1321 | "url": "https://opencollective.com/browserslist" 1322 | }, 1323 | { 1324 | "type": "tidelift", 1325 | "url": "https://tidelift.com/funding/github/npm/browserslist" 1326 | }, 1327 | { 1328 | "type": "github", 1329 | "url": "https://github.com/sponsors/ai" 1330 | } 1331 | ], 1332 | "dependencies": { 1333 | "escalade": "^3.1.1", 1334 | "picocolors": "^1.0.0" 1335 | }, 1336 | "bin": { 1337 | "update-browserslist-db": "cli.js" 1338 | }, 1339 | "peerDependencies": { 1340 | "browserslist": ">= 4.21.0" 1341 | } 1342 | }, 1343 | "node_modules/uri-js": { 1344 | "version": "4.4.1", 1345 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 1346 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 1347 | "dependencies": { 1348 | "punycode": "^2.1.0" 1349 | } 1350 | }, 1351 | "node_modules/util-deprecate": { 1352 | "version": "1.0.2", 1353 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 1354 | "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", 1355 | "dev": true 1356 | }, 1357 | "node_modules/watchpack": { 1358 | "version": "2.4.0", 1359 | "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", 1360 | "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", 1361 | "dependencies": { 1362 | "glob-to-regexp": "^0.4.1", 1363 | "graceful-fs": "^4.1.2" 1364 | }, 1365 | "engines": { 1366 | "node": ">=10.13.0" 1367 | } 1368 | }, 1369 | "node_modules/webpack": { 1370 | "version": "5.88.2", 1371 | "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.88.2.tgz", 1372 | "integrity": "sha512-JmcgNZ1iKj+aiR0OvTYtWQqJwq37Pf683dY9bVORwVbUrDhLhdn/PlO2sHsFHPkj7sHNQF3JwaAkp49V+Sq1tQ==", 1373 | "dependencies": { 1374 | "@types/eslint-scope": "^3.7.3", 1375 | "@types/estree": "^1.0.0", 1376 | "@webassemblyjs/ast": "^1.11.5", 1377 | "@webassemblyjs/wasm-edit": "^1.11.5", 1378 | "@webassemblyjs/wasm-parser": "^1.11.5", 1379 | "acorn": "^8.7.1", 1380 | "acorn-import-assertions": "^1.9.0", 1381 | "browserslist": "^4.14.5", 1382 | "chrome-trace-event": "^1.0.2", 1383 | "enhanced-resolve": "^5.15.0", 1384 | "es-module-lexer": "^1.2.1", 1385 | "eslint-scope": "5.1.1", 1386 | "events": "^3.2.0", 1387 | "glob-to-regexp": "^0.4.1", 1388 | "graceful-fs": "^4.2.9", 1389 | "json-parse-even-better-errors": "^2.3.1", 1390 | "loader-runner": "^4.2.0", 1391 | "mime-types": "^2.1.27", 1392 | "neo-async": "^2.6.2", 1393 | "schema-utils": "^3.2.0", 1394 | "tapable": "^2.1.1", 1395 | "terser-webpack-plugin": "^5.3.7", 1396 | "watchpack": "^2.4.0", 1397 | "webpack-sources": "^3.2.3" 1398 | }, 1399 | "bin": { 1400 | "webpack": "bin/webpack.js" 1401 | }, 1402 | "engines": { 1403 | "node": ">=10.13.0" 1404 | }, 1405 | "funding": { 1406 | "type": "opencollective", 1407 | "url": "https://opencollective.com/webpack" 1408 | }, 1409 | "peerDependenciesMeta": { 1410 | "webpack-cli": { 1411 | "optional": true 1412 | } 1413 | } 1414 | }, 1415 | "node_modules/webpack-cli": { 1416 | "version": "4.10.0", 1417 | "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.10.0.tgz", 1418 | "integrity": "sha512-NLhDfH/h4O6UOy+0LSso42xvYypClINuMNBVVzX4vX98TmTaTUxwRbXdhucbFMd2qLaCTcLq/PdYrvi8onw90w==", 1419 | "dependencies": { 1420 | "@discoveryjs/json-ext": "^0.5.0", 1421 | "@webpack-cli/configtest": "^1.2.0", 1422 | "@webpack-cli/info": "^1.5.0", 1423 | "@webpack-cli/serve": "^1.7.0", 1424 | "colorette": "^2.0.14", 1425 | "commander": "^7.0.0", 1426 | "cross-spawn": "^7.0.3", 1427 | "fastest-levenshtein": "^1.0.12", 1428 | "import-local": "^3.0.2", 1429 | "interpret": "^2.2.0", 1430 | "rechoir": "^0.7.0", 1431 | "webpack-merge": "^5.7.3" 1432 | }, 1433 | "bin": { 1434 | "webpack-cli": "bin/cli.js" 1435 | }, 1436 | "engines": { 1437 | "node": ">=10.13.0" 1438 | }, 1439 | "funding": { 1440 | "type": "opencollective", 1441 | "url": "https://opencollective.com/webpack" 1442 | }, 1443 | "peerDependencies": { 1444 | "webpack": "4.x.x || 5.x.x" 1445 | }, 1446 | "peerDependenciesMeta": { 1447 | "@webpack-cli/generators": { 1448 | "optional": true 1449 | }, 1450 | "@webpack-cli/migrate": { 1451 | "optional": true 1452 | }, 1453 | "webpack-bundle-analyzer": { 1454 | "optional": true 1455 | }, 1456 | "webpack-dev-server": { 1457 | "optional": true 1458 | } 1459 | } 1460 | }, 1461 | "node_modules/webpack-cli/node_modules/commander": { 1462 | "version": "7.2.0", 1463 | "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", 1464 | "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", 1465 | "engines": { 1466 | "node": ">= 10" 1467 | } 1468 | }, 1469 | "node_modules/webpack-merge": { 1470 | "version": "5.9.0", 1471 | "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.9.0.tgz", 1472 | "integrity": "sha512-6NbRQw4+Sy50vYNTw7EyOn41OZItPiXB8GNv3INSoe3PSFaHJEz3SHTrYVaRm2LilNGnFUzh0FAwqPEmU/CwDg==", 1473 | "dependencies": { 1474 | "clone-deep": "^4.0.1", 1475 | "wildcard": "^2.0.0" 1476 | }, 1477 | "engines": { 1478 | "node": ">=10.0.0" 1479 | } 1480 | }, 1481 | "node_modules/webpack-sources": { 1482 | "version": "3.2.3", 1483 | "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", 1484 | "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", 1485 | "engines": { 1486 | "node": ">=10.13.0" 1487 | } 1488 | }, 1489 | "node_modules/which": { 1490 | "version": "2.0.2", 1491 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 1492 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 1493 | "dependencies": { 1494 | "isexe": "^2.0.0" 1495 | }, 1496 | "bin": { 1497 | "node-which": "bin/node-which" 1498 | }, 1499 | "engines": { 1500 | "node": ">= 8" 1501 | } 1502 | }, 1503 | "node_modules/wildcard": { 1504 | "version": "2.0.1", 1505 | "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", 1506 | "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==" 1507 | }, 1508 | "node_modules/yallist": { 1509 | "version": "4.0.0", 1510 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 1511 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", 1512 | "dev": true 1513 | } 1514 | } 1515 | } 1516 | -------------------------------------------------------------------------------- /webapp/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "gzip-js": "^0.3.2", 4 | "js-sha256": "^0.9.0", 5 | "simpledotcss": "^2.2.1", 6 | "tar-js": "^0.3.0", 7 | "webpack": "^5.74.0", 8 | "webpack-cli": "^4.10.0" 9 | }, 10 | "scripts": { 11 | "pack": "webpack --mode production" 12 | }, 13 | "devDependencies": { 14 | "css-loader": "^6.8.1", 15 | "style-loader": "^3.3.3" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /webapp/src/app.js: -------------------------------------------------------------------------------- 1 | const sha256 = require("js-sha256"); 2 | const gzip = require("gzip-js"); 3 | const Tar = require("tar-js"); 4 | 5 | import formSpec from "./form.json"; 6 | import "./style.css"; 7 | 8 | // utility function to create DOM nodes 9 | function mknod({ 10 | name, 11 | text, 12 | attrs, 13 | children 14 | }={}){ 15 | const n = document.createElement(name); 16 | if (text) { 17 | n.appendChild(document.createTextNode(text)); 18 | } 19 | if (attrs) { 20 | for (const k in attrs) { 21 | let v = attrs[k]; 22 | if (v) { 23 | n.setAttribute(k, v); 24 | } 25 | } 26 | } 27 | if (children) { 28 | for (const child of children) { 29 | n.appendChild(child); 30 | } 31 | } 32 | return n; 33 | } 34 | 35 | // function to build form based on JSON 36 | function createForm() { 37 | const formNode = mknod({name: "form"}); 38 | 39 | for (const group of formSpec.formgroups) { 40 | // groups of fields 41 | const fieldsetNode = mknod({ 42 | name: "fieldset", 43 | children: [ 44 | mknod({ 45 | name: "legend", 46 | text: group.label, 47 | }) 48 | ] 49 | }); 50 | formNode.appendChild(fieldsetNode); 51 | 52 | for (const input of group.inputs) { 53 | if (input.type == "CHOCO") { 54 | // insert software selector 55 | // TODO make this dynamically expanding 56 | for (let i = 0; i < 8; i++) { 57 | fieldsetNode.appendChild(mknod({ 58 | name: "p", 59 | children: [ 60 | mknod({ 61 | name: "input", 62 | attrs: { 63 | type: "text", 64 | name: "choco_pkg[]", 65 | placeholder: "Package Name" 66 | } 67 | }), 68 | mknod({ 69 | name: "input", 70 | attrs: { 71 | type: "text", 72 | name: "choco_version[]", 73 | placeholder: "Package Version" 74 | } 75 | }) 76 | ] 77 | })); 78 | } 79 | continue; 80 | } 81 | 82 | // individual inputs 83 | const pNode = mknod({name: "p"}); 84 | fieldsetNode.appendChild(pNode); 85 | 86 | const labelNode = mknod({ 87 | name: "label", 88 | text: input.label, 89 | attrs: { 90 | "for": input.name 91 | } 92 | }); 93 | 94 | if (input.type != "checkbox") { 95 | pNode.appendChild(labelNode); 96 | } 97 | 98 | if (!input.type || input.type == "text") { 99 | // text input 100 | pNode.appendChild(mknod({ 101 | name: "input", 102 | attrs: { 103 | name: input.name, 104 | id: input.name, 105 | type: "text", 106 | value: input.default ? input.default : "" 107 | } 108 | })); 109 | 110 | } else if (input.type == "checkbox") { 111 | // checkbox 112 | pNode.appendChild(mknod({ 113 | name: "input", 114 | attrs: { 115 | name: input.name, 116 | id: input.name, 117 | type: "checkbox", 118 | value: input.value, 119 | checked: input.default !== false 120 | } 121 | })); 122 | labelNode.classList.add("checkbox"); 123 | pNode.appendChild(labelNode); 124 | 125 | } else if (input.type == "select") { 126 | // dropdown 127 | const selectNode = mknod({ 128 | name: "select", 129 | attrs: { 130 | name: input.name, 131 | id: input.name 132 | } 133 | }); 134 | pNode.appendChild(selectNode); 135 | 136 | let options = []; 137 | if (input.options == "TIMEZONE") { 138 | options = formSpec.timezones; 139 | } else if (input.options == "LOCALE") { 140 | options = formSpec.locales; 141 | } 142 | 143 | for (const option of options) { 144 | selectNode.appendChild(mknod({ 145 | name: "option", 146 | text: option, 147 | attrs: { 148 | selected: option === input.default 149 | } 150 | })); 151 | } 152 | } 153 | } 154 | } 155 | 156 | const downloadButtonNode = mknod({ 157 | name: "input", 158 | attrs: { 159 | type: "button", 160 | value: "Download", 161 | } 162 | }); 163 | downloadButtonNode.addEventListener("click", build) 164 | formNode.appendChild(downloadButtonNode); 165 | 166 | document.querySelector("main").appendChild(formNode); 167 | } 168 | 169 | async function loadFiles() { 170 | window.ovf_tpl = await (await (await fetch("./ovf.tpl")).blob()).arrayBuffer(); 171 | window.vmdk_tpl = await (await new Response( 172 | (await (await fetch("./disk.vmdk.gz")).blob()) 173 | .stream() 174 | .pipeThrough(new DecompressionStream("gzip")) 175 | ).blob()).arrayBuffer(); 176 | 177 | let vmdk_manifest = new TextDecoder("utf-8").decode(await (await (await fetch("./disk.vmdk.manifest")).blob()).arrayBuffer()); 178 | window.vmdk_tpl_offset = parseInt(vmdk_manifest.split("\n")[2].split(" ")[0]); 179 | } 180 | 181 | window.addEventListener("DOMContentLoaded", async () => { 182 | createForm(); 183 | await loadFiles(); 184 | }); 185 | 186 | // function to read the form and build the image 187 | function build() { 188 | var cfg = {}; 189 | cfg["PS_PRIVACY"] = 0; 190 | cfg["PS_USABILITY"] = 0; 191 | cfg["PS_HARDENING"] = 0; 192 | cfg["PS_BLOAT"] = 0; 193 | 194 | var vm = {}; 195 | var choco_pkgs = []; 196 | var choco_vers = []; 197 | var choco = []; 198 | 199 | document.querySelectorAll("form input, form select").forEach(n => { 200 | if(!n.name) { 201 | return; 202 | } 203 | if(n.name.startsWith("vm_")) { 204 | vm[n.name.toUpperCase()] = n.value; 205 | } 206 | if(n.name.startsWith("iso_")) { 207 | if(n.name == "iso_wim_index") { 208 | cfg["WIM_INDEX"] = n.value; 209 | } else { 210 | cfg[n.name.toUpperCase()] = n.value; 211 | } 212 | } 213 | if(n.name.startsWith("ua_")) { 214 | if(n.type == "checkbox") { 215 | cfg[n.name.toUpperCase()] = n.checked ? "true" : "false"; 216 | } else { 217 | cfg[n.name.toUpperCase()] = n.value; 218 | } 219 | } 220 | if(n.name.startsWith("usab_") && n.checked) { 221 | cfg["PS_USABILITY"] |= parseInt(n.value); 222 | } 223 | if(n.name.startsWith("priv_") && n.checked) { 224 | cfg["PS_PRIVACY"] |= parseInt(n.value); 225 | } 226 | if(n.name.startsWith("bloat_") && n.checked) { 227 | cfg["PS_BLOAT"] |= parseInt(n.value); 228 | } 229 | if(n.name.startsWith("hard_") && n.checked) { 230 | cfg["PS_HARDENING"] |= parseInt(n.value); 231 | } 232 | if(n.name.startsWith("choco_pkg")) { 233 | choco_pkgs.push(n.value); 234 | } 235 | if(n.name.startsWith("choco_version")) { 236 | choco_vers.push(n.value); 237 | } 238 | }); 239 | 240 | for(var i = 0; i < choco_pkgs.length; i++) { 241 | if(choco_pkgs[i].trim()) { 242 | choco.push(choco_pkgs[i].trim()); 243 | choco.push(choco_vers[i].trim()); 244 | } 245 | } 246 | cfg["PS_CHOCO"] = choco.join("|"); 247 | 248 | var cfg_lines = []; 249 | cfg_lines.push("#!/bin/sh"); 250 | Object.entries(cfg).forEach(([k, v]) => { 251 | cfg_lines.push("export " + k + "=" + JSON.stringify(v)); 252 | }); 253 | cfg_lines = cfg_lines.join("\n"); 254 | console.log(cfg_lines); 255 | 256 | // TODO replace with browser gzip implementation 257 | var cfg_gz = gzip.zip(cfg_lines); 258 | 259 | var cfg_packed = new Uint8Array(128 + cfg_gz.length + 16); 260 | cfg_packed.set( 261 | new TextEncoder().encode( 262 | [ 263 | "cfg", 264 | "128", 265 | cfg_gz.length.toString(), 266 | sha256(cfg_gz), 267 | "" 268 | ] 269 | .join("\n") 270 | ), 271 | 0 272 | ); 273 | cfg_packed.set(cfg_gz, 128); 274 | 275 | var vmdk = new Uint8Array(window.vmdk_tpl.byteLength); 276 | vmdk.set(new Uint8Array(window.vmdk_tpl)); 277 | vmdk.set(cfg_packed, window.vmdk_tpl_offset); 278 | 279 | var ovf = new TextDecoder("utf-8").decode(window.ovf_tpl); 280 | Object.entries(vm).forEach(([k, v]) => { 281 | ovf = ovf.replaceAll("${" + k + "}", v); 282 | }); 283 | 284 | var tape = new Tar(); 285 | tape.append("winvm.ovf", ovf); 286 | var ova = tape.append("disk.vmdk", vmdk); 287 | 288 | var a; 289 | a = document.createElement("a"); 290 | var url = window.URL.createObjectURL(new Blob([ova], {type: "application/octet-stream"})); 291 | a.href = url; 292 | a.download = "winvm.ova"; 293 | a.style.display = "none"; 294 | document.body.appendChild(a); 295 | a.click(); 296 | a.remove(); 297 | setTimeout(() => { window.URL.revokeObjectURL(url); }, 1000); 298 | } 299 | -------------------------------------------------------------------------------- /webapp/src/form.json: -------------------------------------------------------------------------------- 1 | { 2 | "formgroups": [ 3 | { 4 | "label": "Machine Settings", 5 | "inputs": [ 6 | { 7 | "name": "vm_name", 8 | "label": "VM Name", 9 | "default": "winvm" 10 | }, 11 | { 12 | "name": "vm_ram", 13 | "label": "RAM Size (MB)", 14 | "default": "4096" 15 | }, 16 | { 17 | "name": "vm_cores", 18 | "label": "CPU Cores", 19 | "default": "4" 20 | } 21 | ] 22 | }, 23 | 24 | { 25 | "label": "Install Media", 26 | "inputs": [ 27 | { 28 | "name": "iso_url", 29 | "label": "ISO URL", 30 | "default": "https://go.microsoft.com/fwlink/p/?LinkID=2206317&clcid=0x409&culture=en-us&country=US" 31 | }, 32 | { 33 | "name": "iso_hash", 34 | "label": "ISO SHA256", 35 | "default": "ebbc79106715f44f5020f77bd90721b17c5a877cbc15a3535b99155493a1bb3f" 36 | }, 37 | { 38 | "name": "iso_wim_index", 39 | "label": "WIM Index", 40 | "default": "1" 41 | } 42 | ] 43 | }, 44 | 45 | { 46 | "label": "System Settings", 47 | "inputs": [ 48 | { 49 | "name": "ua_hostname", 50 | "label": "Hostname", 51 | "default": "winvm" 52 | }, 53 | { 54 | "name": "ua_username", 55 | "label": "Username", 56 | "default": "vmuser" 57 | }, 58 | { 59 | "name": "ua_password", 60 | "label": "Password", 61 | "default": "vmuser" 62 | }, 63 | { 64 | "name": "ua_autologon", 65 | "label": "Auto-logon", 66 | "type": "checkbox" 67 | }, 68 | { 69 | "name": "ua_timezone", 70 | "label": "Timezone", 71 | "type": "select", 72 | "options": "TIMEZONE", 73 | "default": "UTC" 74 | }, 75 | { 76 | "name": "ua_input_locale", 77 | "label": "Keyboard Layout", 78 | "type": "select", 79 | "options": "LOCALE", 80 | "default": "en-US" 81 | }, 82 | { 83 | "name": "ua_system_locale", 84 | "label": "System Locale", 85 | "type": "select", 86 | "options": "LOCALE", 87 | "default": "en-US" 88 | }, 89 | { 90 | "name": "ua_user_locale", 91 | "label": "User Locale", 92 | "type": "select", 93 | "options": "LOCALE", 94 | "default": "en-US" 95 | }, 96 | { 97 | "name": "ua_system_language", 98 | "label": "System Language", 99 | "type": "select", 100 | "options": "LOCALE", 101 | "default": "en-US" 102 | } 103 | ] 104 | }, 105 | 106 | { 107 | "label": "Usability Settings", 108 | "inputs": [ 109 | { 110 | "name": "usab_ShowFileExtensions", 111 | "label": "ShowFileExtensions", 112 | "value": "1", 113 | "type": "checkbox" 114 | }, 115 | { 116 | "name": "usab_ShowHiddenFiles", 117 | "label": "ShowHiddenFiles", 118 | "value": "2", 119 | "type": "checkbox" 120 | }, 121 | { 122 | "name": "usab_ShowSuperHiddenFiles", 123 | "label": "ShowSuperHiddenFiles", 124 | "value": "4", 125 | "type": "checkbox" 126 | }, 127 | { 128 | "name": "usab_LeftAlignTaskbar", 129 | "label": "LeftAlignTaskbar", 130 | "value": "8", 131 | "type": "checkbox" 132 | }, 133 | { 134 | "name": "usab_DisableLogonBackground", 135 | "label": "DisableLogonBackground", 136 | "value": "32", 137 | "type": "checkbox" 138 | }, 139 | { 140 | "name": "usab_DisablePowerTimeouts", 141 | "label": "DisablePowerTimeouts", 142 | "value": "64", 143 | "type": "checkbox" 144 | }, 145 | { 146 | "name": "usab_DisableHibernation", 147 | "label": "DisableHibernation", 148 | "value": "128", 149 | "type": "checkbox" 150 | }, 151 | { 152 | "name": "usab_ShowPathInExplorerTitle", 153 | "label": "ShowPathInExplorerTitle", 154 | "value": "256", 155 | "type": "checkbox" 156 | }, 157 | { 158 | "name": "usab_CompactExplorerView", 159 | "label": "CompactExplorerView", 160 | "value": "512", 161 | "type": "checkbox" 162 | }, 163 | { 164 | "name": "usab_DisablePasswordExpiration", 165 | "label": "DisablePasswordExpiration", 166 | "value": "1024", 167 | "type": "checkbox" 168 | }, 169 | { 170 | "name": "usab_FullContextMenus", 171 | "label": "FullContextMenus", 172 | "value": "2048", 173 | "type": "checkbox" 174 | } 175 | ] 176 | }, 177 | 178 | { 179 | "label": "Privacy Settings", 180 | "inputs": [ 181 | { 182 | "name": "priv_TelemetryLowestLevel", 183 | "label": "TelemetryLowestLevel", 184 | "value": "1", 185 | "type": "checkbox" 186 | }, 187 | { 188 | "name": "priv_DisableAppTelemetry", 189 | "label": "DisableAppTelemetry", 190 | "value": "2", 191 | "type": "checkbox" 192 | }, 193 | { 194 | "name": "priv_DisableAdvertisingID", 195 | "label": "DisableAdvertisingID", 196 | "value": "4", 197 | "type": "checkbox" 198 | }, 199 | { 200 | "name": "priv_DisableTailoredExperiences", 201 | "label": "DisableTailoredExperiences", 202 | "value": "16", 203 | "type": "checkbox" 204 | }, 205 | { 206 | "name": "priv_DisableInputDataCollection", 207 | "label": "DisableInputDataCollection", 208 | "value": "32", 209 | "type": "checkbox" 210 | }, 211 | { 212 | "name": "priv_DisableSpeechRecognition", 213 | "label": "DisableSpeechRecognition", 214 | "value": "64", 215 | "type": "checkbox" 216 | }, 217 | { 218 | "name": "priv_DisableLocationServices", 219 | "label": "DisableLocationServices", 220 | "value": "128", 221 | "type": "checkbox" 222 | }, 223 | { 224 | "name": "priv_DisableDefenderTelemetry", 225 | "label": "DisableDefenderTelemetry", 226 | "value": "256", 227 | "type": "checkbox" 228 | }, 229 | { 230 | "name": "priv_DisableErrorReporting", 231 | "label": "DisableErrorReporting", 232 | "value": "1024", 233 | "type": "checkbox" 234 | }, 235 | { 236 | "name": "priv_DisableAppLaunchTracking", 237 | "label": "DisableAppLaunchTracking", 238 | "value": "2048", 239 | "type": "checkbox" 240 | }, 241 | { 242 | "name": "priv_DisableContentDeliveryManager", 243 | "label": "DisableContentDeliveryManager", 244 | "value": "4096", 245 | "type": "checkbox" 246 | }, 247 | { 248 | "name": "priv_DisableFeedback", 249 | "label": "DisableFeedback", 250 | "value": "8192", 251 | "type": "checkbox" 252 | }, 253 | { 254 | "name": "priv_DisableOnlineSearch", 255 | "label": "DisableOnlineSearch", 256 | "value": "16384", 257 | "type": "checkbox" 258 | } 259 | ] 260 | }, 261 | 262 | { 263 | "label": "De-Bloat", 264 | "inputs": [ 265 | { 266 | "name": "bloat_DisableOneDrive", 267 | "label": "DisableOneDrive", 268 | "value": "1", 269 | "type": "checkbox" 270 | }, 271 | { 272 | "name": "bloat_DisableP2PDownloads", 273 | "label": "DisableP2PDownloads", 274 | "value": "2", 275 | "type": "checkbox" 276 | }, 277 | { 278 | "name": "bloat_DisableCortana", 279 | "label": "DisableCortana", 280 | "value": "4", 281 | "type": "checkbox" 282 | }, 283 | { 284 | "name": "bloat_DisableXbox", 285 | "label": "DisableXbox", 286 | "value": "8", 287 | "type": "checkbox" 288 | }, 289 | { 290 | "name": "bloat_DisableWidgets", 291 | "label": "DisableWidgets", 292 | "value": "16", 293 | "type": "checkbox" 294 | }, 295 | { 296 | "name": "bloat_DisableTeamsIcon", 297 | "label": "DisableTeamsIcon", 298 | "value": "32", 299 | "type": "checkbox" 300 | } 301 | ] 302 | }, 303 | 304 | { 305 | "label": "Hardening", 306 | "inputs": [ 307 | { 308 | "name": "hard_InstallUpdates", 309 | "label": "InstallUpdates", 310 | "value": "1", 311 | "type": "checkbox", 312 | "default": false 313 | }, 314 | { 315 | "name": "hard_DisableSMB1", 316 | "label": "DisableSMB1", 317 | "value": "2", 318 | "type": "checkbox", 319 | "default": false 320 | }, 321 | { 322 | "name": "hard_DisableLLMNR", 323 | "label": "DisableLLMNR", 324 | "value": "4", 325 | "type": "checkbox", 326 | "default": false 327 | }, 328 | { 329 | "name": "hard_DisableNetBios", 330 | "label": "DisableNetBios", 331 | "value": "8", 332 | "type": "checkbox", 333 | "default": false 334 | }, 335 | { 336 | "name": "hard_DisableWPAD", 337 | "label": "DisableWPAD", 338 | "value": "16", 339 | "type": "checkbox", 340 | "default": false 341 | } 342 | ] 343 | }, 344 | { 345 | "label": "Chocolatey Packages", 346 | "inputs": [ 347 | { 348 | "type": "CHOCO" 349 | } 350 | ] 351 | } 352 | ], 353 | 354 | "timezones": [ 355 | "AUS Eastern Standard Time", 356 | "Afghanistan Standard Time", 357 | "Arab Standard Time", 358 | "Arabian Standard Time", 359 | "Arabic Standard Time", 360 | "Argentina Standard Time", 361 | "Atlantic Standard Time", 362 | "Azerbaijan Standard Time", 363 | "Bangladesh Standard Time", 364 | "Belarus Standard Time", 365 | "Cape Verde Standard Time", 366 | "Caucasus Standard Time", 367 | "Central America Standard Time", 368 | "Central Asia Standard Time", 369 | "Central Europe Standard Time", 370 | "Central European Standard Time", 371 | "Central Pacific Standard Time", 372 | "Central Standard Time (Mexico)", 373 | "China Standard Time", 374 | "E. Africa Standard Time", 375 | "E. Europe Standard Time", 376 | "E. South America Standard Time", 377 | "Eastern Standard Time", 378 | "Egypt Standard Time", 379 | "FLE Standard Time", 380 | "Fiji Standard Time", 381 | "GMT Standard Time", 382 | "GTB Standard Time", 383 | "Georgian Standard Time", 384 | "Greenland Standard Time", 385 | "Greenwich Standard Time", 386 | "Hawaiian Standard Time", 387 | "India Standard Time", 388 | "Iran Standard Time", 389 | "Israel Standard Time", 390 | "Jordan Standard Time", 391 | "Korea Standard Time", 392 | "Mauritius Standard Time", 393 | "Middle East Standard Time", 394 | "Montevideo Standard Time", 395 | "Morocco Standard Time", 396 | "Mountain Standard Time", 397 | "Myanmar Standard Time", 398 | "Namibia Standard Time", 399 | "Nepal Standard Time", 400 | "New Zealand Standard Time", 401 | "Pacific SA Standard Time", 402 | "Pacific Standard Time", 403 | "Pakistan Standard Time", 404 | "Paraguay Standard Time", 405 | "Romance Standard Time", 406 | "Russian Standard Time", 407 | "SA Eastern Standard Time", 408 | "SA Pacific Standard Time", 409 | "SA Western Standard Time", 410 | "SE Asia Standard Time", 411 | "Samoa Standard Time", 412 | "Singapore Standard Time", 413 | "South Africa Standard Time", 414 | "Sri Lanka Standard Time", 415 | "Syria Standard Time", 416 | "Taipei Standard Time", 417 | "Tokyo Standard Time", 418 | "Tonga Standard Time", 419 | "Turkey Standard Time", 420 | "UTC", 421 | "UTC+12", 422 | "UTC-02", 423 | "UTC-11", 424 | "Ulaanbaatar Standard Time", 425 | "Venezuela Standard Time", 426 | "W. Central Africa Standard Time", 427 | "W. Europe Standard Time", 428 | "West Asia Standard Time", 429 | "West Pacific Standard Time" 430 | ], 431 | 432 | "locales": [ 433 | "aa", 434 | "aa-DJ", 435 | "aa-ER", 436 | "aa-ET", 437 | "af", 438 | "af-NA", 439 | "af-ZA", 440 | "agq", 441 | "agq-CM", 442 | "ak", 443 | "ak-GH", 444 | "am", 445 | "am-ET", 446 | "ar", 447 | "ar-001", 448 | "ar-AE", 449 | "ar-BH", 450 | "ar-DJ", 451 | "ar-DZ", 452 | "ar-EG", 453 | "ar-ER", 454 | "ar-IL", 455 | "ar-IQ", 456 | "ar-JO", 457 | "ar-KM", 458 | "ar-KW", 459 | "ar-LB", 460 | "ar-LY", 461 | "ar-MA", 462 | "ar-MR", 463 | "ar-OM", 464 | "ar-PS", 465 | "ar-QA", 466 | "ar-SA", 467 | "ar-SD", 468 | "ar-SO", 469 | "ar-SS", 470 | "ar-SY", 471 | "ar-TD", 472 | "ar-TN", 473 | "ar-YE", 474 | "arn", 475 | "arn-CL", 476 | "as", 477 | "as-IN", 478 | "asa", 479 | "asa-TZ", 480 | "ast", 481 | "ast-ES", 482 | "az", 483 | "az-Cyrl", 484 | "az-Cyrl-AZ", 485 | "az-Latn", 486 | "az-Latn-AZ", 487 | "ba", 488 | "ba-RU", 489 | "bas", 490 | "bas-CM", 491 | "be", 492 | "be-BY", 493 | "bem", 494 | "bem-ZM", 495 | "bez", 496 | "bez-TZ", 497 | "bg", 498 | "bg-BG", 499 | "bm", 500 | "bm-Latn-ML", 501 | "bn", 502 | "bn-BD", 503 | "bn-IN", 504 | "bo", 505 | "bo-CN", 506 | "bo-IN", 507 | "br", 508 | "br-FR", 509 | "brx", 510 | "brx-IN", 511 | "bs", 512 | "bs-Cyrl", 513 | "bs-Cyrl-BA", 514 | "bs-Latn", 515 | "bs-Latn-BA", 516 | "byn", 517 | "byn-ER", 518 | "ca", 519 | "ca-AD", 520 | "ca-ES", 521 | "ca-ES-valencia", 522 | "ca-FR", 523 | "ca-IT", 524 | "ccp", 525 | "ccp-Cakm", 526 | "ccp-Cakm-BD", 527 | "ccp-Cakm-IN", 528 | "ce-RU", 529 | "ceb", 530 | "ceb-Latn", 531 | "ceb-Latn-PH", 532 | "cgg", 533 | "cgg-UG", 534 | "chr", 535 | "chr-Cher", 536 | "chr-Cher-US", 537 | "co", 538 | "co-FR", 539 | "cs", 540 | "cs-CZ", 541 | "cu-RU", 542 | "cy", 543 | "cy-GB", 544 | "da", 545 | "da-DK", 546 | "da-GL", 547 | "dav", 548 | "dav-KE", 549 | "de", 550 | "de-AT", 551 | "de-BE", 552 | "de-CH", 553 | "de-DE", 554 | "de-IT", 555 | "de-LI", 556 | "de-LU", 557 | "dje", 558 | "dje-NE", 559 | "dsb", 560 | "dsb-DE", 561 | "dua", 562 | "dua-CM", 563 | "dv", 564 | "dv-MV", 565 | "dyo", 566 | "dyo-SN", 567 | "dz", 568 | "dz-BT", 569 | "ebu", 570 | "ebu-KE", 571 | "ee", 572 | "ee-GH", 573 | "ee-TG", 574 | "el", 575 | "el-CY", 576 | "el-GR", 577 | "en", 578 | "en-001", 579 | "en-029", 580 | "en-150", 581 | "en-AE", 582 | "en-AG", 583 | "en-AI", 584 | "en-AS", 585 | "en-AT", 586 | "en-AU", 587 | "en-BB", 588 | "en-BE", 589 | "en-BI", 590 | "en-BM", 591 | "en-BS", 592 | "en-BW", 593 | "en-BZ", 594 | "en-CA", 595 | "en-CC", 596 | "en-CH", 597 | "en-CK", 598 | "en-CM", 599 | "en-CX", 600 | "en-CY", 601 | "en-DE", 602 | "en-DK", 603 | "en-DM", 604 | "en-ER", 605 | "en-FI", 606 | "en-FJ", 607 | "en-FK", 608 | "en-FM", 609 | "en-GB", 610 | "en-GD", 611 | "en-GG", 612 | "en-GH", 613 | "en-GI", 614 | "en-GM", 615 | "en-GU", 616 | "en-GY", 617 | "en-HK", 618 | "en-IE", 619 | "en-IL", 620 | "en-IM", 621 | "en-IN", 622 | "en-IO", 623 | "en-JE", 624 | "en-JM", 625 | "en-KE", 626 | "en-KI", 627 | "en-KN", 628 | "en-KY", 629 | "en-LC", 630 | "en-LR", 631 | "en-LS", 632 | "en-MG", 633 | "en-MH", 634 | "en-MO", 635 | "en-MP", 636 | "en-MS", 637 | "en-MT", 638 | "en-MU", 639 | "en-MW", 640 | "en-MY", 641 | "en-NA", 642 | "en-NF", 643 | "en-NG", 644 | "en-NL", 645 | "en-NR", 646 | "en-NU", 647 | "en-NZ", 648 | "en-PG", 649 | "en-PH", 650 | "en-PK", 651 | "en-PN", 652 | "en-PR", 653 | "en-PW", 654 | "en-RW", 655 | "en-SB", 656 | "en-SC", 657 | "en-SD", 658 | "en-SE", 659 | "en-SG", 660 | "en-SH", 661 | "en-SI", 662 | "en-SL", 663 | "en-SS", 664 | "en-SX", 665 | "en-SZ", 666 | "en-TC", 667 | "en-TK", 668 | "en-TO", 669 | "en-TT", 670 | "en-TV", 671 | "en-TZ", 672 | "en-UG", 673 | "en-UM", 674 | "en-US", 675 | "en-VC", 676 | "en-VG", 677 | "en-VI", 678 | "en-VU", 679 | "en-WS", 680 | "en-ZA", 681 | "en-ZM", 682 | "en-ZW", 683 | "eo", 684 | "eo-001", 685 | "es", 686 | "es-419", 687 | "es-AR", 688 | "es-BO", 689 | "es-BR", 690 | "es-BZ", 691 | "es-CL", 692 | "es-CO", 693 | "es-CR", 694 | "es-CU", 695 | "es-DO", 696 | "es-EC", 697 | "es-ES", 698 | "es-ES_tradnl", 699 | "es-GQ", 700 | "es-GT", 701 | "es-HN", 702 | "es-MX", 703 | "es-NI", 704 | "es-PA", 705 | "es-PE", 706 | "es-PH", 707 | "es-PR", 708 | "es-PY", 709 | "es-SV", 710 | "es-US", 711 | "es-UY", 712 | "es-VE", 713 | "et", 714 | "et-EE", 715 | "eu", 716 | "eu-ES", 717 | "ewo", 718 | "ewo-CM", 719 | "fa", 720 | "fa-AF", 721 | "fa-IR", 722 | "ff", 723 | "ff-CM", 724 | "ff-GN", 725 | "ff-Latn", 726 | "ff-Latn-BF", 727 | "ff-Latn-CM", 728 | "ff-Latn-GH", 729 | "ff-Latn-GM", 730 | "ff-Latn-GN", 731 | "ff-Latn-GW", 732 | "ff-Latn-LR", 733 | "ff-Latn-MR", 734 | "ff-Latn-NE", 735 | "ff-Latn-NG", 736 | "ff-Latn-SL", 737 | "ff-Latn-SN", 738 | "ff-MR", 739 | "ff-NG", 740 | "fi", 741 | "fi-FI", 742 | "fil", 743 | "fil-PH", 744 | "fo", 745 | "fo-DK", 746 | "fo-FO", 747 | "fr", 748 | "fr-029", 749 | "fr-BE", 750 | "fr-BF", 751 | "fr-BI", 752 | "fr-BJ", 753 | "fr-BL", 754 | "fr-CA", 755 | "fr-CD", 756 | "fr-CF", 757 | "fr-CG", 758 | "fr-CH", 759 | "fr-CI", 760 | "fr-CM", 761 | "fr-DJ", 762 | "fr-DZ", 763 | "fr-FR", 764 | "fr-GA", 765 | "fr-GF", 766 | "fr-GN", 767 | "fr-GP", 768 | "fr-GQ", 769 | "fr-HT", 770 | "fr-KM", 771 | "fr-LU", 772 | "fr-MA", 773 | "fr-MC", 774 | "fr-MF", 775 | "fr-MG", 776 | "fr-ML", 777 | "fr-MQ", 778 | "fr-MR", 779 | "fr-MU", 780 | "fr-NC", 781 | "fr-NE", 782 | "fr-PF", 783 | "fr-PM", 784 | "fr-RE", 785 | "fr-RW", 786 | "fr-SC", 787 | "fr-SN", 788 | "fr-SY", 789 | "fr-TD", 790 | "fr-TG", 791 | "fr-TN", 792 | "fr-VU", 793 | "fr-WF", 794 | "fr-YT", 795 | "fur", 796 | "fur-IT", 797 | "fy", 798 | "fy-NL", 799 | "ga", 800 | "ga-IE", 801 | "gd", 802 | "gd-GB", 803 | "gl", 804 | "gl-ES", 805 | "gn", 806 | "gn-PY", 807 | "gsw", 808 | "gsw-CH", 809 | "gsw-FR", 810 | "gsw-LI", 811 | "gu", 812 | "gu-IN", 813 | "guz", 814 | "guz-KE", 815 | "gv", 816 | "gv-IM", 817 | "ha", 818 | "ha-Latn", 819 | "ha-Latn-GH", 820 | "ha-Latn-NE", 821 | "ha-Latn-NG", 822 | "haw", 823 | "haw-US", 824 | "he", 825 | "he-IL", 826 | "hi", 827 | "hi-IN", 828 | "hr", 829 | "hr-BA", 830 | "hr-HR", 831 | "hsb", 832 | "hsb-DE", 833 | "hu", 834 | "hu-HU", 835 | "hy", 836 | "hy-AM", 837 | "ia", 838 | "ia-001", 839 | "ia-FR", 840 | "id", 841 | "id-ID", 842 | "ig", 843 | "ig-NG", 844 | "ii", 845 | "ii-CN", 846 | "is", 847 | "is-IS", 848 | "it", 849 | "it-CH", 850 | "it-IT", 851 | "it-SM", 852 | "it-VA", 853 | "iu", 854 | "iu-Cans", 855 | "iu-Cans-CA", 856 | "iu-Latn", 857 | "iu-Latn-CA", 858 | "ja", 859 | "ja-JP", 860 | "jgo", 861 | "jgo-CM", 862 | "jmc", 863 | "jmc-TZ", 864 | "jv", 865 | "jv-Latn", 866 | "jv-Latn-ID", 867 | "ka", 868 | "ka-GE", 869 | "kab", 870 | "kab-DZ", 871 | "kam", 872 | "kam-KE", 873 | "kde", 874 | "kde-TZ", 875 | "kea", 876 | "kea-CV", 877 | "khq", 878 | "khq-ML", 879 | "ki", 880 | "ki-KE", 881 | "kk", 882 | "kk-KZ", 883 | "kkj", 884 | "kkj-CM", 885 | "kl", 886 | "kl-GL", 887 | "kln", 888 | "kln-KE", 889 | "km", 890 | "km-KH", 891 | "kn", 892 | "kn-IN", 893 | "ko", 894 | "ko-KP", 895 | "ko-KR", 896 | "kok", 897 | "kok-IN", 898 | "kr-Latn-NG", 899 | "ks", 900 | "ks-Arab", 901 | "ks-Arab-IN", 902 | "ks-Deva-IN", 903 | "ksb", 904 | "ksb-TZ", 905 | "ksf", 906 | "ksf-CM", 907 | "ksh", 908 | "ksh-DE", 909 | "ku", 910 | "ku-Arab", 911 | "ku-Arab-IQ", 912 | "ku-Arab-IR", 913 | "kw", 914 | "kw-GB", 915 | "ky", 916 | "ky-KG", 917 | "la-VA", 918 | "lag", 919 | "lag-TZ", 920 | "lb", 921 | "lb-LU", 922 | "lg", 923 | "lg-UG", 924 | "lkt", 925 | "lkt-US", 926 | "ln", 927 | "ln-AO", 928 | "ln-CD", 929 | "ln-CF", 930 | "ln-CG", 931 | "lo", 932 | "lo-LA", 933 | "lrc-IQ", 934 | "lrc-IR", 935 | "lt", 936 | "lt-LT", 937 | "lu", 938 | "lu-CD", 939 | "luo", 940 | "luo-KE", 941 | "luy", 942 | "luy-KE", 943 | "lv", 944 | "lv-LV", 945 | "mas", 946 | "mas-KE", 947 | "mas-TZ", 948 | "mer", 949 | "mer-KE", 950 | "mfe", 951 | "mfe-MU", 952 | "mg", 953 | "mg-MG", 954 | "mgh", 955 | "mgh-MZ", 956 | "mgo", 957 | "mgo-CM", 958 | "mi", 959 | "mi-NZ", 960 | "mk", 961 | "mk-MK", 962 | "ml", 963 | "ml-IN", 964 | "mn", 965 | "mn-Cyrl", 966 | "mn-MN", 967 | "mn-Mong", 968 | "mn-Mong-CN", 969 | "mn-Mong-MN", 970 | "moh", 971 | "moh-CA", 972 | "mr", 973 | "mr-IN", 974 | "ms", 975 | "ms-BN", 976 | "ms-MY", 977 | "mt", 978 | "mt-MT", 979 | "mua", 980 | "mua-CM", 981 | "my", 982 | "my-MM", 983 | "mzn-IR", 984 | "naq", 985 | "naq-NA", 986 | "nb", 987 | "nb-NO", 988 | "nb-SJ", 989 | "nd", 990 | "nd-ZW", 991 | "nds", 992 | "nds-DE", 993 | "nds-NL", 994 | "ne", 995 | "ne-IN", 996 | "ne-NP", 997 | "nl", 998 | "nl-AW", 999 | "nl-BE", 1000 | "nl-BQ", 1001 | "nl-CW", 1002 | "nl-NL", 1003 | "nl-SR", 1004 | "nl-SX", 1005 | "nmg", 1006 | "nmg-CM", 1007 | "nn", 1008 | "nn-NO", 1009 | "nnh", 1010 | "nnh-CM", 1011 | "no", 1012 | "nqo", 1013 | "nqo-GN", 1014 | "nr", 1015 | "nr-ZA", 1016 | "nso", 1017 | "nso-ZA", 1018 | "nus", 1019 | "nus-SD", 1020 | "nus-SS", 1021 | "nyn", 1022 | "nyn-UG", 1023 | "oc", 1024 | "oc-FR", 1025 | "om", 1026 | "om-ET", 1027 | "om-KE", 1028 | "or", 1029 | "or-IN", 1030 | "os", 1031 | "os-GE", 1032 | "os-RU", 1033 | "pa", 1034 | "pa-Arab", 1035 | "pa-Arab-PK", 1036 | "pa-IN", 1037 | "pl", 1038 | "pl-PL", 1039 | "prg-001", 1040 | "prs", 1041 | "prs-AF", 1042 | "ps", 1043 | "ps-AF", 1044 | "ps-PK", 1045 | "pt", 1046 | "pt-AO", 1047 | "pt-BR", 1048 | "pt-CH", 1049 | "pt-CV", 1050 | "pt-GQ", 1051 | "pt-GW", 1052 | "pt-LU", 1053 | "pt-MO", 1054 | "pt-MZ", 1055 | "pt-PT", 1056 | "pt-ST", 1057 | "pt-TL", 1058 | "qps-ploc", 1059 | "qps-ploca", 1060 | "qps-plocm", 1061 | "quc", 1062 | "quc-Latn-GT", 1063 | "quz", 1064 | "quz-BO", 1065 | "quz-EC", 1066 | "quz-PE", 1067 | "rm", 1068 | "rm-CH", 1069 | "rn", 1070 | "rn-BI", 1071 | "ro", 1072 | "ro-MD", 1073 | "ro-RO", 1074 | "rof", 1075 | "rof-TZ", 1076 | "ru", 1077 | "ru-BY", 1078 | "ru-KG", 1079 | "ru-KZ", 1080 | "ru-MD", 1081 | "ru-RU", 1082 | "ru-UA", 1083 | "rw", 1084 | "rw-RW", 1085 | "rwk", 1086 | "rwk-TZ", 1087 | "sa", 1088 | "sa-IN", 1089 | "sah", 1090 | "sah-RU", 1091 | "saq", 1092 | "saq-KE", 1093 | "sbp", 1094 | "sbp-TZ", 1095 | "sd", 1096 | "sd-Arab", 1097 | "sd-Arab-PK", 1098 | "se", 1099 | "se-FI", 1100 | "se-NO", 1101 | "se-SE", 1102 | "seh", 1103 | "seh-MZ", 1104 | "ses", 1105 | "ses-ML", 1106 | "sg", 1107 | "sg-CF", 1108 | "shi", 1109 | "shi-Latn", 1110 | "shi-Latn-MA", 1111 | "shi-Tfng", 1112 | "shi-Tfng-MA", 1113 | "si", 1114 | "si-LK", 1115 | "sk", 1116 | "sk-SK", 1117 | "sl", 1118 | "sl-SI", 1119 | "sma", 1120 | "sma-NO", 1121 | "sma-SE", 1122 | "smj", 1123 | "smj-NO", 1124 | "smj-SE", 1125 | "smn", 1126 | "smn-FI", 1127 | "sms", 1128 | "sms-FI", 1129 | "sn", 1130 | "sn-Latn", 1131 | "sn-Latn-ZW", 1132 | "so", 1133 | "so-DJ", 1134 | "so-ET", 1135 | "so-KE", 1136 | "so-SO", 1137 | "sq", 1138 | "sq-AL", 1139 | "sq-MK", 1140 | "sr", 1141 | "sr-Cyrl", 1142 | "sr-Cyrl-BA", 1143 | "sr-Cyrl-CS", 1144 | "sr-Cyrl-ME", 1145 | "sr-Cyrl-RS", 1146 | "sr-Latn", 1147 | "sr-Latn-BA", 1148 | "sr-Latn-CS", 1149 | "sr-Latn-ME", 1150 | "sr-Latn-RS", 1151 | "ss", 1152 | "ss-SZ", 1153 | "ss-ZA", 1154 | "ssy", 1155 | "ssy-ER", 1156 | "st", 1157 | "st-LS", 1158 | "st-ZA", 1159 | "sv", 1160 | "sv-AX", 1161 | "sv-FI", 1162 | "sv-SE", 1163 | "sw", 1164 | "sw-KE", 1165 | "sw-TZ", 1166 | "sw-UG", 1167 | "swc", 1168 | "swc-CD", 1169 | "syr", 1170 | "syr-SY", 1171 | "ta", 1172 | "ta-IN", 1173 | "ta-LK", 1174 | "ta-MY", 1175 | "ta-SG", 1176 | "te", 1177 | "te-IN", 1178 | "teo", 1179 | "teo-KE", 1180 | "teo-UG", 1181 | "tg", 1182 | "tg-Cyrl", 1183 | "tg-Cyrl-TJ", 1184 | "th", 1185 | "th-TH", 1186 | "ti", 1187 | "ti-ER", 1188 | "ti-ET", 1189 | "tig", 1190 | "tig-ER", 1191 | "tk", 1192 | "tk-TM", 1193 | "tn", 1194 | "tn-BW", 1195 | "tn-ZA", 1196 | "to", 1197 | "to-TO", 1198 | "tr", 1199 | "tr-CY", 1200 | "tr-TR", 1201 | "ts", 1202 | "ts-ZA", 1203 | "tt", 1204 | "tt-RU", 1205 | "twq", 1206 | "twq-NE", 1207 | "tzm", 1208 | "tzm-Arab-MA", 1209 | "tzm-Latn", 1210 | "tzm-Latn-DZ", 1211 | "tzm-Latn-MA", 1212 | "ug", 1213 | "ug-CN", 1214 | "uk", 1215 | "uk-UA", 1216 | "ur", 1217 | "ur-IN", 1218 | "ur-PK", 1219 | "uz", 1220 | "uz-Arab", 1221 | "uz-Arab-AF", 1222 | "uz-Cyrl", 1223 | "uz-Cyrl-UZ", 1224 | "uz-Latn", 1225 | "uz-Latn-UZ", 1226 | "vai", 1227 | "vai-Latn", 1228 | "vai-Latn-LR", 1229 | "vai-Vaii", 1230 | "vai-Vaii-LR", 1231 | "ve", 1232 | "ve-ZA", 1233 | "vi", 1234 | "vi-VN", 1235 | "vo", 1236 | "vo-001", 1237 | "vun", 1238 | "vun-TZ", 1239 | "wae", 1240 | "wae-CH", 1241 | "wal", 1242 | "wal-ET", 1243 | "wo", 1244 | "wo-SN", 1245 | "xh", 1246 | "xh-ZA", 1247 | "xog", 1248 | "xog-UG", 1249 | "yav", 1250 | "yav-CM", 1251 | "yi-001", 1252 | "yo", 1253 | "yo-BJ", 1254 | "yo-NG", 1255 | "zgh", 1256 | "zgh-Tfng", 1257 | "zgh-Tfng-MA", 1258 | "zh", 1259 | "zh-CN", 1260 | "zh-HK", 1261 | "zh-Hans", 1262 | "zh-Hant", 1263 | "zh-MO", 1264 | "zh-SG", 1265 | "zh-TW", 1266 | "zu", 1267 | "zu-ZA" 1268 | ] 1269 | } 1270 | -------------------------------------------------------------------------------- /webapp/src/style.css: -------------------------------------------------------------------------------- 1 | @import url('~simpledotcss/simple.min.css'); 2 | label.checkbox { display: inline; } 3 | -------------------------------------------------------------------------------- /webapp/webpack.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | 3 | module.exports = { 4 | entry: './src/app.js', 5 | output: { 6 | path: path.resolve(__dirname, 'dist'), 7 | filename: 'bundle.js' 8 | }, 9 | module: { 10 | rules: [ 11 | { 12 | test: /\.css$/, 13 | use: [ 14 | 'style-loader', 15 | 'css-loader' 16 | ] 17 | } 18 | ] 19 | } 20 | }; 21 | --------------------------------------------------------------------------------