@hot-updater/console 1.2.0-rc.30 → 1.2.0-rc.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (286) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/-native-builds-search-BvCftqF2.js +1 -0
  3. package/.output/public/assets/{BundleIdDisplay-CTBdtFQ8.js → BundleIdDisplay-D8oR8mcP.js} +1 -1
  4. package/.output/public/assets/{ChannelBadge-CEabmopB.js → ChannelBadge-Do-lWsLM.js} +1 -1
  5. package/.output/public/assets/{CompositeItem-KUM5yQVr.js → CompositeItem-Ci-Dvjc7.js} +1 -1
  6. package/.output/public/assets/{ConsoleFeatureUnavailable-Be-0iTww.js → ConsoleFeatureUnavailable-C0iDIboF.js} +1 -1
  7. package/.output/public/assets/{EventDetails-bDOYte1z.js → EventDetails-DglqzK6l.js} +1 -1
  8. package/.output/public/assets/{HashValueDisplay-D2f0HmyU.js → HashValueDisplay-DKziWjEg.js} +1 -1
  9. package/.output/public/assets/{InsightsPageHeader-Cj2ROSQO.js → InsightsPageHeader-DLH1MntM.js} +1 -1
  10. package/.output/public/assets/IosInstall-2R2o1IXd.js +1 -0
  11. package/.output/public/assets/NativeBuildsNav-BgeUSMqw.js +1 -0
  12. package/.output/public/assets/{NotFoundPage-CVBtl68B.js → NotFoundPage-CijSy63W.js} +1 -1
  13. package/.output/public/assets/{PlatformIcon-DVnzzGqM.js → PlatformIcon-Kq3q98tU.js} +1 -1
  14. package/.output/public/assets/QrCode-D3-Vuudy.js +1 -0
  15. package/.output/public/assets/RelativeTime-CP7nosYx.js +1 -0
  16. package/.output/public/assets/{RolloutPercentageBadge-D_I0Raj2.js → RolloutPercentageBadge-DnmU8XbU.js} +1 -1
  17. package/.output/public/assets/{RowReason-B7VM1ztc.js → RowReason-D7TZ2xwW.js} +1 -1
  18. package/.output/public/assets/SandboxBadge-BPf2uve4.js +1 -0
  19. package/.output/public/assets/TargetDisplay-DzSkf5yP.js +1 -0
  20. package/.output/public/assets/alert-dialog-Dihztkem.js +1 -0
  21. package/.output/public/assets/{api-C1OPeiG1.js → api-B1z_XXrQ.js} +1 -1
  22. package/.output/public/assets/api-keys-DL9HeC8e.js +1 -0
  23. package/.output/public/assets/api-keys-DPuPM7ag.js +1 -0
  24. package/.output/public/assets/arrow-left-CxxDwBQs.js +1 -0
  25. package/.output/public/assets/arrow-right-jHG0fJt7.js +1 -0
  26. package/.output/public/assets/arrow-up-right-BPRe5soE.js +1 -0
  27. package/.output/public/assets/{badge-FZMD5vvS.js → badge-D4Tiwei-.js} +1 -1
  28. package/.output/public/assets/{card-CyHYmHue.js → card-BfeRlTvj.js} +1 -1
  29. package/.output/public/assets/check-Dz_5aNwx.js +1 -0
  30. package/.output/public/assets/chevron-right-CuYrscDY.js +1 -0
  31. package/.output/public/assets/{circle-off-BCkZpskJ.js → circle-off-BZFOMb8J.js} +1 -1
  32. package/.output/public/assets/{clipboard-DZrZK5gR.js → clipboard-D8uvj6FN.js} +1 -1
  33. package/.output/public/assets/{console-features-api-BO5V64P3.js → console-features-api-De6tXQnd.js} +1 -1
  34. package/.output/public/assets/{copy-CH1__JAW.js → copy-BxI24-g-.js} +1 -1
  35. package/.output/public/assets/dialog-e9AF5T6h.js +1 -0
  36. package/.output/public/assets/{dist-DAM__Tdz.js → dist-BEIz5ojx.js} +1 -1
  37. package/.output/public/assets/{download-B2GjTySo.js → download-ekENI2Sw.js} +1 -1
  38. package/.output/public/assets/{empty--YaE5Z4p.js → empty-DpSPWLc2.js} +1 -1
  39. package/.output/public/assets/{field-CdhSgWhI.js → field-PkdRPD3A.js} +1 -1
  40. package/.output/public/assets/{git-branch-DG1VDaKq.js → git-branch-BWrvONjc.js} +1 -1
  41. package/.output/public/assets/{history-C0wv4htz.js → history-DwdBLzJP.js} +1 -1
  42. package/.output/public/assets/index-DZdzmvWS.js +10 -0
  43. package/.output/public/assets/input-group-DNfVeeYZ.js +1 -0
  44. package/.output/public/assets/{insights-_j_ieOyh.js → insights-6d-iISFa.js} +2 -2
  45. package/.output/public/assets/insights-DotP9eJn.js +2 -0
  46. package/.output/public/assets/insights-MQrx_wbP.js +1 -0
  47. package/.output/public/assets/{insights-api-B6Gj74n5.js → insights-api-CXXCRZhF.js} +1 -1
  48. package/.output/public/assets/{insights-search-Bgvg6wSP.js → insights-search-CtEcj6lz.js} +1 -1
  49. package/.output/public/assets/{insights-usage-rpc-BUCinjSN.js → insights-usage-rpc-DdmD1Nuy.js} +1 -1
  50. package/.output/public/assets/{insights_.distribution-CRkGNelG.js → insights_.distribution-DATeWpQS.js} +1 -1
  51. package/.output/public/assets/insights_.distribution-DYgsR7-7.js +2 -0
  52. package/.output/public/assets/insights_.distribution-REbBAqgL.js +1 -0
  53. package/.output/public/assets/installations-Di02gX_V.js +1 -0
  54. package/.output/public/assets/{installations-CYTzndfP.js → installations-Ds-MhfsQ.js} +1 -1
  55. package/.output/public/assets/{installations-BsD6LgNc.js → installations-Lm8TxrcB.js} +2 -2
  56. package/.output/public/assets/{key-round-D7UgdXyA.js → key-round-B-vaAsR7.js} +1 -1
  57. package/.output/public/assets/{link-CN3iHC4A.js → link-D95E0fwF.js} +1 -1
  58. package/.output/public/assets/{list-Bm-CfN5g.js → list-Dq40Mmoj.js} +1 -1
  59. package/.output/public/assets/loader-circle-C26cZDSM.js +1 -0
  60. package/.output/public/assets/native-builds-BOSmoLed.js +1 -0
  61. package/.output/public/assets/native-builds-Bs_JroPG.js +2 -0
  62. package/.output/public/assets/native-builds-Chv-kXaS.js +1 -0
  63. package/.output/public/assets/native-builds_._buildId-Bj24bG99.js +2 -0
  64. package/.output/public/assets/native-builds_._buildId-Somk3u9R.js +1 -0
  65. package/.output/public/assets/native-builds_.devices-afOLyzux.js +1 -0
  66. package/.output/public/assets/native-builds_.devices-o6LsPF9Y.js +2 -0
  67. package/.output/public/assets/plus-Bp6IqwOH.js +1 -0
  68. package/.output/public/assets/{preload-helper-CRQjUQaZ.js → preload-helper-52zhjEsw.js} +1 -1
  69. package/.output/public/assets/{refresh-cw-BHhBYjS8.js → refresh-cw-CpCxPYma.js} +1 -1
  70. package/.output/public/assets/{relativeTime-BYRt19mj.js → relativeTime-D_aYJRc7.js} +1 -1
  71. package/.output/public/assets/remote-config-Buy_12p7.js +1 -0
  72. package/.output/public/assets/remote-config-Dmuqm9xx.js +1 -0
  73. package/.output/public/assets/remote-config-g05054op.js +6 -0
  74. package/.output/public/assets/{rotate-cw-Ba-slJea.js → rotate-cw-Bn3fIWmY.js} +1 -1
  75. package/.output/public/assets/routes-5mt1iab-.js +2 -0
  76. package/.output/public/assets/routes-BxJfMpil.js +1 -0
  77. package/.output/public/assets/search-DeKSyo9Q.js +1 -0
  78. package/.output/public/assets/{select-CA8r-UUe.js → select-BAd2hAoW.js} +1 -1
  79. package/.output/public/assets/{sidebar-yC7KdImc.js → sidebar-UnsNYOry.js} +1 -1
  80. package/.output/public/assets/smartphone-lSZWrqxx.js +1 -0
  81. package/.output/public/assets/styles-CN7c7MGr.css +2 -0
  82. package/.output/public/assets/{switch-BsV3d4km.js → switch-C_s67MO4.js} +1 -1
  83. package/.output/public/assets/{table-D8YjT_ht.js → table-r_sYqKTQ.js} +1 -1
  84. package/.output/public/assets/{tabs-RdhEl9sE.js → tabs-B95QcXeT.js} +1 -1
  85. package/.output/public/assets/{trash-2-B5KIvrXy.js → trash-2-BPH7ydek.js} +1 -1
  86. package/.output/public/assets/{undo-2-CFcU9dIB.js → undo-2-CGeTBZjC.js} +1 -1
  87. package/.output/public/assets/{useCompositeListItem-lAmUsXcc.js → useCompositeListItem-B9ONn9qn.js} +1 -1
  88. package/.output/public/assets/{useMutation-w3qYaU2L.js → useMutation-BWX97JX2.js} +1 -1
  89. package/.output/server/{__23tanstack-start-server-fn-resolver-q4YFIDyr.mjs → __23tanstack-start-server-fn-resolver-ET1Ypyyk.mjs} +61 -61
  90. package/.output/server/_libs/_.mjs +1 -1
  91. package/.output/server/_ssr/{-native-builds-search-Mm_AZoRU.mjs → -native-builds-search-OJ8XmaBa.mjs} +2 -2
  92. package/.output/server/_ssr/{BundleIdDisplay-DvzlYWq8.mjs → BundleIdDisplay-CpaKbEYb.mjs} +2 -2
  93. package/.output/server/_ssr/{ChannelBadge-qF_Pc5Ud.mjs → ChannelBadge-dVXs-bYV.mjs} +3 -3
  94. package/.output/server/_ssr/{ConsoleFeatureUnavailable-DKUgr0N_.mjs → ConsoleFeatureUnavailable-DWuWwY4L.mjs} +6 -6
  95. package/.output/server/_ssr/{EventDetails-T1XtYEDD.mjs → EventDetails-CcuGyU26.mjs} +7 -7
  96. package/.output/server/_ssr/{HashValueDisplay-Cas_zjIS.mjs → HashValueDisplay-ClkGq5_0.mjs} +2 -2
  97. package/.output/server/_ssr/{InsightsPageHeader-BrllhUl2.mjs → InsightsPageHeader-Bw6RVpdS.mjs} +7 -7
  98. package/.output/server/_ssr/{IosInstall-CEHI8F2M.mjs → IosInstall-DEceeAVT.mjs} +180 -87
  99. package/.output/server/_ssr/{NativeBuildsNav-2xSHyA1a.mjs → NativeBuildsNav-ChqRZH4E.mjs} +5 -5
  100. package/.output/server/_ssr/{NotFoundPage-D6H9vxj_.mjs → NotFoundPage-aZrAWo5n.mjs} +2 -2
  101. package/.output/server/_ssr/{PlatformIcon-BpGOEXjU.mjs → PlatformIcon-X18AN8Yp.mjs} +1 -1
  102. package/.output/server/_ssr/QrCode-pEaOdaRS.mjs +50 -0
  103. package/.output/server/_ssr/{RelativeTime-DpEVzDP9.mjs → RelativeTime-CFIJbj_r.mjs} +10 -5
  104. package/.output/server/_ssr/{RolloutPercentageBadge-DW8-_w30.mjs → RolloutPercentageBadge-BEqOJXly.mjs} +4 -4
  105. package/.output/server/_ssr/{RowReason-C-PjIxzq.mjs → RowReason-DXbU_Nml.mjs} +4 -4
  106. package/.output/server/_ssr/{SandboxBadge-CDdNew0R.mjs → SandboxBadge-CP76AVxN.mjs} +2 -2
  107. package/.output/server/_ssr/{TargetDisplay-BBsP7IaZ.mjs → TargetDisplay-csC-slf3.mjs} +37 -15
  108. package/.output/server/_ssr/{alert-dialog-Bd4E9xdw.mjs → alert-dialog-Dn5l3Bob.mjs} +3 -3
  109. package/.output/server/_ssr/{api-BT7aA8UM.mjs → api-W0WerUfm.mjs} +6 -6
  110. package/.output/server/_ssr/{api-keys-D2NvcQZv.mjs → api-keys-Btu37Irf.mjs} +2 -2
  111. package/.output/server/_ssr/{api-keys-DjWpM20P.mjs → api-keys-D7kmFdhY.mjs} +10 -9
  112. package/.output/server/_ssr/{api-keys-rpc-nM5H7V7f.mjs → api-keys-rpc-9o4CyzUZ.mjs} +3 -3
  113. package/.output/server/_ssr/{api-rpc-DX4HynbW.mjs → api-rpc-B1HnUZMu.mjs} +19 -19
  114. package/.output/server/_ssr/{auth-rpc-LCxTtYz2.mjs → auth-rpc-BBy2L4Ah.mjs} +4 -4
  115. package/.output/server/_ssr/{auth.server-CERo_xef.mjs → auth.server-ajvR-m99.mjs} +28 -14
  116. package/.output/server/_ssr/{badge-Dpp4q7sD.mjs → badge-DlEpe8yC.mjs} +1 -1
  117. package/.output/server/_ssr/{bundleActivity-BP40zYSt.mjs → bundleActivity-a-pEDiqu.mjs} +1 -1
  118. package/.output/server/_ssr/{card-CFCftDfI.mjs → card-AK7Ms1Oa.mjs} +1 -1
  119. package/.output/server/_ssr/{config.server-5W5WD8x2.mjs → config.server-DswyWSgG.mjs} +4 -4
  120. package/.output/server/_ssr/{console-access-B0S5YFUa.mjs → console-access-DM56j3dM.mjs} +2 -2
  121. package/.output/server/_ssr/{console-features-xaGDhRC9.mjs → console-features-DTYyXrWO.mjs} +1 -1
  122. package/.output/server/_ssr/{console-features-api-CV_EReEj.mjs → console-features-api-g5s9V5sz.mjs} +4 -4
  123. package/.output/server/_ssr/{console-features-rpc-D3xlQsuy.mjs → console-features-rpc-Cnmhvmsk.mjs} +3 -3
  124. package/.output/server/_ssr/{databaseConfig-XAvDetmn.mjs → databaseConfig-B56IJxlu.mjs} +1 -1
  125. package/.output/server/_ssr/{databaseRows-BtRVBD0C.mjs → databaseRows-BZMFl5QV.mjs} +2 -2
  126. package/.output/server/_ssr/{deviceProfileToken-CwWb1lPq.mjs → deviceProfileToken-xzDLfE0T.mjs} +21 -5
  127. package/.output/server/_ssr/{dialog-DQR_QI_X.mjs → dialog-0oBrR9Cj.mjs} +4 -4
  128. package/.output/server/_ssr/dist-CiOq3ygH.mjs +148 -0
  129. package/.output/server/_ssr/{downloadBundle-DnoYpi36.mjs → downloadBundle-C1KOnpiF.mjs} +1 -1
  130. package/.output/server/_ssr/{empty-C7PFnkCH.mjs → empty-tasgkoU9.mjs} +2 -2
  131. package/.output/server/_ssr/{failureReports-BA2eg11O.mjs → failureReports-BVufgM3l.mjs} +3 -3
  132. package/.output/server/_ssr/{field-BqYN8sZT.mjs → field-phtuBLMh.mjs} +2 -2
  133. package/.output/server/_ssr/{foldedPage-CqpVk31Q.mjs → foldedPage-CUjJqtlF.mjs} +1 -1
  134. package/.output/server/_ssr/{getBundleChildren-CdqFonhl.mjs → getBundleChildren-CnOf4Frp.mjs} +2 -2
  135. package/.output/server/_ssr/{input-group-Brv0mmyp.mjs → input-group-BTEoUANX.mjs} +2 -2
  136. package/.output/server/_ssr/{insights-CD1e3EnW.mjs → insights-BBzyKO95.mjs} +2 -2
  137. package/.output/server/_ssr/{insights--xI3A0KI.mjs → insights-CPDtpuXg.mjs} +5 -5
  138. package/.output/server/_ssr/{insights-Dd0VdO-1.mjs → insights-D4le8l6s.mjs} +31 -26
  139. package/.output/server/_ssr/{insights-api-Bt2XVa4Y.mjs → insights-api-D6J2HVtY.mjs} +5 -5
  140. package/.output/server/_ssr/{insights-errors-CXHg1lLV.mjs → insights-errors-DwUaDs0Z.mjs} +2 -2
  141. package/.output/server/_ssr/{insights-failures-7zH97WOO.mjs → insights-failures-DGO2_3Vx.mjs} +2 -2
  142. package/.output/server/_ssr/{insights-failures-rpc-DBGzXP5A.mjs → insights-failures-rpc-ChwlB9sg.mjs} +10 -10
  143. package/.output/server/_ssr/{insights-recovery-BhOg6kz2.mjs → insights-recovery-Cdg3Msrj.mjs} +1 -1
  144. package/.output/server/_ssr/{insights-recovery-rpc-C6fAh-i_.mjs → insights-recovery-rpc-B6_GT-_U.mjs} +6 -6
  145. package/.output/server/_ssr/{insights-rpc-pThKC9oj.mjs → insights-rpc-DG0GxsIL.mjs} +3 -3
  146. package/.output/server/_ssr/{insights-search-iFN4UaUv.mjs → insights-search-LKeSNr4M.mjs} +4 -4
  147. package/.output/server/_ssr/{insights-usage-h8fipPTv.mjs → insights-usage-BVm7CDw9.mjs} +1 -1
  148. package/.output/server/_ssr/{insights-usage-rpc-CGHZQ9jq.mjs → insights-usage-rpc-I0Eh5Z89.mjs} +6 -6
  149. package/.output/server/_ssr/{insights-usage-rpc-B-RLvdLZ.mjs → insights-usage-rpc-qnQWkNn2.mjs} +4 -4
  150. package/.output/server/_ssr/{insightsUsage-BjSiV_X_.mjs → insightsUsage-lPKyRC2o.mjs} +3 -3
  151. package/.output/server/_ssr/{insights_.distribution-xHmfwwa5.mjs → insights_.distribution-BF99IaZu.mjs} +5 -5
  152. package/.output/server/_ssr/{insights_.distribution-E6Ns2aN7.mjs → insights_.distribution-D2dZwvqQ.mjs} +2 -2
  153. package/.output/server/_ssr/{insights_.distribution-C6iXJ93Y.mjs → insights_.distribution-Dgv-_T7g.mjs} +14 -14
  154. package/.output/server/_ssr/{installations-D6Upc9Rt.mjs → installations-BHjU8FUI.mjs} +2 -2
  155. package/.output/server/_ssr/{installations-CZnN6slr.mjs → installations-C7TindNY.mjs} +4 -4
  156. package/.output/server/_ssr/{installations-7V-Xyui8.mjs → installations-DVTUpBGI.mjs} +11 -11
  157. package/.output/server/_ssr/{ios-devices-rpc-CXuHk24G.mjs → ios-devices-rpc-KtosHTCC.mjs} +18 -20
  158. package/.output/server/_ssr/iosDeviceCookie-B-8c7lMJ.mjs +155 -0
  159. package/.output/server/_ssr/{iosDeviceProfile-BESi_onx.mjs → iosDeviceProfile-CIEuY_kV.mjs} +13 -13
  160. package/.output/server/_ssr/{iosDevices-BmvvvZRo.mjs → iosDevices-CkLgS8_U.mjs} +4 -20
  161. package/.output/server/_ssr/{listReleases-DYYA5alS.mjs → listReleases-QF91GLE7.mjs} +3 -3
  162. package/.output/server/_ssr/native-artifact-BRNP_q-y.mjs +1532 -0
  163. package/.output/server/_ssr/{native-builds-BhDCE89P.mjs → native-builds-3WEAnb93.mjs} +22 -20
  164. package/.output/server/_ssr/{native-builds-BUojmVWC.mjs → native-builds-B6rWkcHL.mjs} +3 -3
  165. package/.output/server/_ssr/{native-builds-BXBkklfA.mjs → native-builds-nRuXKypG.mjs} +68 -6
  166. package/.output/server/_ssr/{native-builds_._buildId-DRiCNDdO.mjs → native-builds_._buildId-BaykQRJl.mjs} +3 -3
  167. package/.output/server/_ssr/{native-builds_._buildId-DkMpG-OB.mjs → native-builds_._buildId-RFJXyul0.mjs} +21 -27
  168. package/.output/server/_ssr/{native-builds_.devices-DsOx1R36.mjs → native-builds_.devices-BzkeAX0K.mjs} +213 -93
  169. package/.output/server/_ssr/{native-builds_.devices-DSideebA.mjs → native-builds_.devices-D9EGVV1N.mjs} +3 -3
  170. package/.output/server/_ssr/{nativeBuildDownloadLink-DDAUVU8q.mjs → nativeBuildDownloadLink-A1aWZBDw.mjs} +2 -2
  171. package/.output/server/_ssr/{nativeBuildInstall-CcBrfTsc.mjs → nativeBuildInstall-XzMDX9iY.mjs} +8 -6
  172. package/.output/server/_ssr/{nativeBuilds-Cub0EUGN.mjs → nativeBuilds-DaF-TcfO.mjs} +4 -4
  173. package/.output/server/_ssr/plistText-DkzlCfPI.mjs +15 -0
  174. package/.output/server/_ssr/{plugins-CX7wutet.mjs → plugins-D9CCkDjn.mjs} +6 -5
  175. package/.output/server/_ssr/publicConsoleBase-wTKw3_iB.mjs +15 -0
  176. package/.output/server/_ssr/{release-adoption-DeICczY7.mjs → release-adoption-gfhE5tz5.mjs} +2 -2
  177. package/.output/server/_ssr/{release-adoption-rpc-BjMXMi9A.mjs → release-adoption-rpc-DoDlwfWB.mjs} +8 -8
  178. package/.output/server/_ssr/{releaseAdoption-kHZo8P90.mjs → releaseAdoption-DfEYq7I4.mjs} +4 -4
  179. package/.output/server/_ssr/{releaseCatalogCompiler-D9dAMI17.mjs → releaseCatalogCompiler-CJ2Shida.mjs} +4 -3
  180. package/.output/server/_ssr/{releaseManagement-EPhok_Py.mjs → releaseManagement-CqIc-SDE.mjs} +1 -1
  181. package/.output/server/_ssr/{releaseReachability-DaZ7ifUF.mjs → releaseReachability-Ch1JpJkY.mjs} +2 -2
  182. package/.output/server/_ssr/{remote-config-C_DprbJz.mjs → remote-config-6lhdA4DB.mjs} +18 -18
  183. package/.output/server/_ssr/{remote-config-B1iZuZOF.mjs → remote-config-BMg2UurZ.mjs} +2 -2
  184. package/.output/server/_ssr/{remote-config-rpc-BFTPcMfZ.mjs → remote-config-rpc-Ddg8dyxw.mjs} +4 -4
  185. package/.output/server/_ssr/{remote-config-C_q6FBE4.mjs → remote-config-u_T4AXyi.mjs} +2 -2
  186. package/.output/server/_ssr/{router-BDXPwfwl.mjs → router-CovCAswJ.mjs} +101 -61
  187. package/.output/server/_ssr/{routes-BJeztqpQ.mjs → routes-CTUvEVa6.mjs} +37 -33
  188. package/.output/server/_ssr/{routes-DpapxHLc.mjs → routes-DtkONaBi.mjs} +12 -11
  189. package/.output/server/_ssr/{runtime.server-CkSbWaZm.mjs → runtime.server-BUbb281Z.mjs} +4 -4
  190. package/.output/server/_ssr/{schema-3oDJJFWa.mjs → schema-CaIuQCXb.mjs} +1 -1
  191. package/.output/server/_ssr/{schema-migration-rpc-a4bLEdaP.mjs → schema-migration-rpc-DvmruDB6.mjs} +3 -3
  192. package/.output/server/_ssr/{select-C9HpIZxd.mjs → select-DJLTQgmc.mjs} +1 -1
  193. package/.output/server/_ssr/{server-C8ZmMWnn.mjs → server-BfWxoIjf.mjs} +4 -4
  194. package/.output/server/_ssr/{sidebar-BrVL3L7R.mjs → sidebar-Bsfqid7Q.mjs} +6 -6
  195. package/.output/server/_ssr/ssr.mjs +1 -1
  196. package/.output/server/_ssr/{start-D3noqqOK.mjs → start-BaUpXI0L.mjs} +1 -1
  197. package/.output/server/_ssr/{switch-DtnsoZHO.mjs → switch-DckZkZBS.mjs} +3 -3
  198. package/.output/server/_ssr/{table-Bg7nCnct.mjs → table-DG8aRQBO.mjs} +1 -1
  199. package/.output/server/_ssr/{tabs-BEIoGLTL.mjs → tabs-Dblh3lL2.mjs} +2 -2
  200. package/.output/server/_ssr/{updateFailures-D0bP_Ume.mjs → updateFailures-BwDwIoNu.mjs} +3 -3
  201. package/.output/server/_ssr/{dist-B6-irDRA.mjs → uuid-kZvLA0Ly-DNL0qBSj.mjs} +2 -147
  202. package/.output/server/_ssr/{uuidv7-CmHbryZT.mjs → uuidv7-C0jNe2Om.mjs} +2 -2
  203. package/.output/server/_ssr/{version-CQ98ZBpL-NmbU0MD2.mjs → version-CQ98ZBpL-zW2fpHOZ.mjs} +1 -1
  204. package/.output/server/_tanstack-start-manifest_v-CfDH9vVq.mjs +225 -0
  205. package/.output/server/index.mjs +430 -430
  206. package/package.json +7 -7
  207. package/src/components/AppSidebar.tsx +11 -2
  208. package/src/components/DataTable.tsx +18 -2
  209. package/src/components/TargetDisplay.tsx +33 -7
  210. package/src/components/features/api-keys/ApiKeysPage.tsx +1 -1
  211. package/src/components/features/bundles/BundleMetadata.tsx +1 -1
  212. package/src/components/features/bundles/RolloutCohortsDialog.tsx +8 -1
  213. package/src/components/features/channels/ChannelManagementDialog.tsx +6 -2
  214. package/src/components/features/insights/FailureReports.tsx +1 -0
  215. package/src/components/features/insights/InsightsOverview.tsx +7 -1
  216. package/src/components/features/insights/ReleaseActivity.tsx +5 -1
  217. package/src/components/features/insights/UpdateFailures.tsx +1 -0
  218. package/src/components/features/native-builds/BuiltInBundleCard.tsx +1 -0
  219. package/src/components/features/native-builds/IosDevicesPage.tsx +187 -38
  220. package/src/components/features/native-builds/IosInstall.tsx +122 -58
  221. package/src/components/features/native-builds/NativeBuildDetailPage.tsx +1 -2
  222. package/src/components/features/native-builds/NativeBuildsNav.tsx +2 -2
  223. package/src/components/features/native-builds/NativeBuildsTable.tsx +5 -1
  224. package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +1 -1
  225. package/src/components/features/releases/ReleaseEditorSheet.tsx +6 -5
  226. package/src/components/ui/alert-dialog.tsx +2 -2
  227. package/src/components/ui/dialog.tsx +3 -3
  228. package/src/components/ui/input.tsx +1 -1
  229. package/src/components/ui/sheet.tsx +1 -1
  230. package/src/components/ui/sidebar.tsx +2 -2
  231. package/src/components/ui/slider.tsx +1 -1
  232. package/src/components/ui/switch.tsx +1 -1
  233. package/src/components/ui/textarea.tsx +1 -1
  234. package/src/lib/ios-devices-api.ts +148 -5
  235. package/src/lib/ios-devices-rpc.ts +17 -12
  236. package/src/lib/native-builds.ts +97 -4
  237. package/src/lib/server/deviceProfileToken.ts +37 -3
  238. package/src/lib/server/iosDeviceCookie.ts +239 -0
  239. package/src/lib/server/iosDeviceProfile.ts +4 -2
  240. package/src/lib/server/iosDevices.ts +0 -30
  241. package/src/routeTree.gen.ts +44 -0
  242. package/src/routes/[_]hot-updater/devices/receipt.ts +28 -0
  243. package/src/routes/[_]hot-updater/devices/request.ts +28 -0
  244. package/.output/public/assets/-native-builds-search-DdHwfe4q.js +0 -1
  245. package/.output/public/assets/IosInstall-CHI2C4Yd.js +0 -1
  246. package/.output/public/assets/NativeBuildsNav-DaqxQPnG.js +0 -1
  247. package/.output/public/assets/RelativeTime-B4PK8qDw.js +0 -1
  248. package/.output/public/assets/SandboxBadge-BVxHg_HF.js +0 -1
  249. package/.output/public/assets/TargetDisplay-KU7JhIWG.js +0 -1
  250. package/.output/public/assets/alert-dialog-Ch0QxRsa.js +0 -1
  251. package/.output/public/assets/api-keys-DLC8jjaM.js +0 -1
  252. package/.output/public/assets/api-keys-eDnzgFAf.js +0 -1
  253. package/.output/public/assets/arrow-left-DQjHJAnT.js +0 -1
  254. package/.output/public/assets/arrow-right-CXp_K3xK.js +0 -1
  255. package/.output/public/assets/arrow-up-right-BFafIOrq.js +0 -1
  256. package/.output/public/assets/check-CqWNyG93.js +0 -1
  257. package/.output/public/assets/chevron-right-DNbYTBX1.js +0 -1
  258. package/.output/public/assets/dialog-BLj71-Nf.js +0 -1
  259. package/.output/public/assets/index-CgwVUC2n.js +0 -10
  260. package/.output/public/assets/input-group-XKLcUGoa.js +0 -1
  261. package/.output/public/assets/insights-C94CdeAA.js +0 -1
  262. package/.output/public/assets/insights-DILMVpk8.js +0 -2
  263. package/.output/public/assets/insights_.distribution-Bb6_S-hD.js +0 -2
  264. package/.output/public/assets/insights_.distribution-CyAu3RN3.js +0 -1
  265. package/.output/public/assets/installations-BA01mqJE.js +0 -1
  266. package/.output/public/assets/loader-circle-iMqC-8ZE.js +0 -1
  267. package/.output/public/assets/native-builds-BMbws1g5.js +0 -2
  268. package/.output/public/assets/native-builds-xgHiHQML.js +0 -1
  269. package/.output/public/assets/native-builds_._buildId-B04z9yfk.js +0 -1
  270. package/.output/public/assets/native-builds_._buildId-DaMmTcHo.js +0 -2
  271. package/.output/public/assets/native-builds_.devices-CTzpCVsb.js +0 -1
  272. package/.output/public/assets/native-builds_.devices-D_kl2-bc.js +0 -2
  273. package/.output/public/assets/package-BmfoZ5Zj.js +0 -1
  274. package/.output/public/assets/plus-Db0KxLZp.js +0 -1
  275. package/.output/public/assets/remote-config-Cxkr7_BP.js +0 -1
  276. package/.output/public/assets/remote-config-DAOyn5xL.js +0 -1
  277. package/.output/public/assets/remote-config-DXv25LX1.js +0 -6
  278. package/.output/public/assets/routes-DM3TyTLW.js +0 -2
  279. package/.output/public/assets/routes-Des97uK_.js +0 -1
  280. package/.output/public/assets/search-dJG2BYmx.js +0 -1
  281. package/.output/public/assets/send-DuMOCzbD.js +0 -1
  282. package/.output/public/assets/smartphone-D1C6BRd_.js +0 -1
  283. package/.output/public/assets/styles-BHLI87EH.css +0 -2
  284. package/.output/server/_ssr/publicConsoleBase-f67NLLXZ.mjs +0 -610
  285. package/.output/server/_tanstack-start-manifest_v-C_TPyfFP.mjs +0 -225
  286. /package/.output/public/assets/{uuidv7-DAoOOpz9.js → uuidv7-DgXZ1zRR.js} +0 -0
@@ -1,610 +0,0 @@
1
- //#region node_modules/.nitro/vite/services/ssr/assets/publicConsoleBase-f67NLLXZ.js
2
- /** Why an artifact can't be read, or can't serve as a native build. */
3
- var NativeArtifactError = class extends Error {
4
- code;
5
- name = "NativeArtifactError";
6
- constructor(code, message) {
7
- super(message);
8
- this.code = code;
9
- }
10
- };
11
- new TextDecoder();
12
- /** How deep a plist nests: an Info.plist nests a few levels. */
13
- var MAX_DEPTH = 64;
14
- var corrupt = () => new NativeArtifactError("UNREADABLE", "The app's Info.plist is corrupt.");
15
- var view$2 = (bytes) => new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
16
- /** A big-endian unsigned integer of `size` bytes. */
17
- var uintAt = (bytes, offset, size) => {
18
- let value = 0;
19
- for (let i = 0; i < size; i += 1) value = value * 256 + bytes[offset + i];
20
- return value;
21
- };
22
- /** A binary property list (`bplist00`), as Xcode writes an app's Info.plist. */
23
- var parseBinaryPlist = (bytes) => {
24
- if (bytes.byteLength < 40) throw corrupt();
25
- const trailer = bytes.byteLength - 32;
26
- const offsetSize = bytes[trailer + 6];
27
- const refSize = bytes[trailer + 7];
28
- const objectCount = uintAt(bytes, trailer + 8, 8);
29
- const top = uintAt(bytes, trailer + 16, 8);
30
- const tableOffset = uintAt(bytes, trailer + 24, 8);
31
- if (offsetSize < 1 || offsetSize > 8 || refSize < 1 || refSize > 8 || objectCount < 1 || top >= objectCount || tableOffset < 8 || tableOffset + objectCount * offsetSize > trailer) throw corrupt();
32
- const data = view$2(bytes);
33
- const seen = /* @__PURE__ */ new Set();
34
- const parsed = /* @__PURE__ */ new Map();
35
- let budget = 2 * bytes.byteLength + 4096;
36
- const spend = (units) => {
37
- budget -= units;
38
- if (budget < 0) throw corrupt();
39
- };
40
- const parse = (ref) => {
41
- if (ref >= objectCount) throw corrupt();
42
- const offset = uintAt(bytes, tableOffset + ref * offsetSize, offsetSize);
43
- if (offset < 8 || offset >= tableOffset) throw corrupt();
44
- const done = parsed.get(offset);
45
- if (done !== void 0) return done;
46
- if (seen.has(offset) || seen.size > MAX_DEPTH) throw corrupt();
47
- const value = parseObject(offset);
48
- parsed.set(offset, value);
49
- return value;
50
- };
51
- const parseObject = (offset) => {
52
- const marker = bytes[offset];
53
- const kind = marker >> 4;
54
- const info = marker & 15;
55
- /** `count` units of `unit` bytes from `start`, which must fit the objects. */
56
- const fits = (start, count, unit) => {
57
- if (start + count * unit > tableOffset) throw corrupt();
58
- };
59
- /**
60
- * A length in the marker, or in the integer object after it, and where
61
- * its `unit`-byte items start, all of which must fit the objects.
62
- */
63
- const lengthAt = (unit) => {
64
- let length = info;
65
- let start = offset + 1;
66
- if (info === 15) {
67
- const sizeMarker = bytes[offset + 1];
68
- if (sizeMarker >> 4 !== 1 || (sizeMarker & 15) > 3) throw corrupt();
69
- const size = 1 << (sizeMarker & 15);
70
- fits(offset + 2, size, 1);
71
- length = uintAt(bytes, offset + 2, size);
72
- start = offset + 2 + size;
73
- }
74
- fits(start, length, unit);
75
- spend(length + 1);
76
- return [length, start];
77
- };
78
- switch (kind) {
79
- case 0: return info === 9 ? true : info === 8 ? false : null;
80
- case 1: {
81
- if (info > 3) throw corrupt();
82
- const size = 1 << info;
83
- fits(offset + 1, size, 1);
84
- return size === 8 ? Number(data.getBigInt64(offset + 1, false)) : uintAt(bytes, offset + 1, size);
85
- }
86
- case 2:
87
- if (info !== 2 && info !== 3) throw corrupt();
88
- fits(offset + 1, 1 << info, 1);
89
- return info === 2 ? data.getFloat32(offset + 1, false) : data.getFloat64(offset + 1, false);
90
- case 3:
91
- fits(offset + 1, 8, 1);
92
- return data.getFloat64(offset + 1, false);
93
- case 4: {
94
- const [length, start] = lengthAt(1);
95
- return bytes.slice(start, start + length);
96
- }
97
- case 5: {
98
- const [length, start] = lengthAt(1);
99
- return new TextDecoder("latin1").decode(bytes.subarray(start, start + length));
100
- }
101
- case 6: {
102
- const [length, start] = lengthAt(2);
103
- let text = "";
104
- for (let i = 0; i < length; i += 1) text += String.fromCharCode(data.getUint16(start + i * 2, false));
105
- return text;
106
- }
107
- case 8:
108
- if (info > 7) throw corrupt();
109
- fits(offset + 1, info + 1, 1);
110
- return uintAt(bytes, offset + 1, info + 1);
111
- case 10:
112
- case 12: {
113
- const [length, start] = lengthAt(refSize);
114
- seen.add(offset);
115
- const items = [];
116
- for (let i = 0; i < length; i += 1) items.push(parse(uintAt(bytes, start + i * refSize, refSize)));
117
- seen.delete(offset);
118
- return items;
119
- }
120
- case 13: {
121
- const [length, start] = lengthAt(2 * refSize);
122
- seen.add(offset);
123
- const dict = Object.create(null);
124
- for (let i = 0; i < length; i += 1) {
125
- const key = parse(uintAt(bytes, start + i * refSize, refSize));
126
- const value = parse(uintAt(bytes, start + (length + i) * refSize, refSize));
127
- if (typeof key !== "string") throw corrupt();
128
- dict[key] = value;
129
- }
130
- seen.delete(offset);
131
- return dict;
132
- }
133
- default: throw corrupt();
134
- }
135
- };
136
- return parse(top);
137
- };
138
- var ENTITIES = {
139
- amp: "&",
140
- lt: "<",
141
- gt: ">",
142
- quot: "\"",
143
- apos: "'"
144
- };
145
- var decodeEntities = (text) => text.replace(/&(#x[0-9a-f]+|#\d+|\w+);/giu, (whole, entity) => {
146
- if (entity[0] === "#") {
147
- const code = entity[1] === "x" || entity[1] === "X" ? Number.parseInt(entity.slice(2), 16) : Number.parseInt(entity.slice(1), 10);
148
- if (code > 1114111) throw corrupt();
149
- return String.fromCodePoint(code);
150
- }
151
- return ENTITIES[entity] ?? whole;
152
- });
153
- /**
154
- * `text` without each `open`, what follows it, and its `close`. A scan, because
155
- * a regular expression retries from every `open` that never closes, which on a
156
- * crafted file takes minutes.
157
- */
158
- var withoutSpans = (text, open, close) => {
159
- let kept = "";
160
- let position = 0;
161
- for (;;) {
162
- const start = text.indexOf(open, position);
163
- const end = start === -1 ? -1 : text.indexOf(close, start + open.length);
164
- if (end === -1) return kept + text.slice(position);
165
- kept += text.slice(position, start);
166
- position = end + close.length;
167
- }
168
- };
169
- /** An XML property list, as a provisioning profile holds one. */
170
- var parseXmlPlist = (text) => {
171
- const tokens = withoutSpans(withoutSpans(text, "<!--", "-->"), "<?", "?>").replace(/<!DOCTYPE[^<>]*>/giu, "").split(/(<[^<>]+>)/u);
172
- let i = 0;
173
- const nextTag = () => {
174
- while (i < tokens.length) {
175
- const token = tokens[i++];
176
- if (token.startsWith("<")) return token;
177
- if (token.trim() !== "") throw corrupt();
178
- }
179
- throw corrupt();
180
- };
181
- const textUntil = (close) => {
182
- let value = "";
183
- while (i < tokens.length && tokens[i] !== close) value += tokens[i++];
184
- if (tokens[i++] !== close) throw corrupt();
185
- return decodeEntities(value);
186
- };
187
- let depth = 0;
188
- const parseValue = (tag) => {
189
- if (depth > MAX_DEPTH) throw corrupt();
190
- const name = /^<\s*([\w]+)/u.exec(tag)?.[1];
191
- const empty = tag.endsWith("/>");
192
- switch (name) {
193
- case "string": return empty ? "" : textUntil("</string>");
194
- case "integer": return Number(textUntil("</integer>"));
195
- case "real": return Number(textUntil("</real>"));
196
- case "true": return true;
197
- case "false": return false;
198
- case "date": return textUntil("</date>");
199
- case "data": return textUntil("</data>").replace(/\s+/gu, "");
200
- case "array": {
201
- const items = [];
202
- if (empty) return items;
203
- depth += 1;
204
- for (let next = nextTag(); next !== "</array>"; next = nextTag()) items.push(parseValue(next));
205
- depth -= 1;
206
- return items;
207
- }
208
- case "dict": {
209
- const dict = Object.create(null);
210
- if (empty) return dict;
211
- depth += 1;
212
- for (let next = nextTag(); next !== "</dict>"; next = nextTag()) {
213
- if (next !== "<key>") throw corrupt();
214
- const key = textUntil("</key>");
215
- dict[key] = parseValue(nextTag());
216
- }
217
- depth -= 1;
218
- return dict;
219
- }
220
- default: throw corrupt();
221
- }
222
- };
223
- let tag = nextTag();
224
- if (/^<plist\b/u.test(tag)) tag = nextTag();
225
- return parseValue(tag);
226
- };
227
- /** A property list, binary or XML, as a JavaScript value. */
228
- var parsePlist = (bytes) => {
229
- if (new TextDecoder().decode(bytes.subarray(0, 8)) === "bplist00") return parseBinaryPlist(bytes);
230
- return parseXmlPlist(new TextDecoder().decode(bytes));
231
- };
232
- var EOCD_SIGNATURE = 101010256;
233
- var ZIP64_EOCD_LOCATOR_SIGNATURE = 117853008;
234
- var ZIP64_EOCD_SIGNATURE = 101075792;
235
- var CENTRAL_HEADER_SIGNATURE = 33639248;
236
- var LOCAL_HEADER_SIGNATURE = 67324752;
237
- var ZIP64_EXTRA_ID = 1;
238
- var UINT32_MAX = 4294967295;
239
- /** The end-of-central-directory record and the longest comment after it. */
240
- var EOCD_SEARCH_LENGTH = 65557;
241
- /** How much compressed data one read takes. */
242
- var READ_CHUNK = 1048576;
243
- var MiB$2 = 1048576;
244
- /**
245
- * What an archive may hold before it is refused as no artifact: an upload is
246
- * untrusted, so a crafted directory or entry (a zip bomb) stops here, not
247
- * after filling memory.
248
- */
249
- var ZIP_LIMITS = {
250
- directoryBytes: 64 * MiB$2,
251
- entries: 5e5,
252
- entryBytes: 1024 * MiB$2
253
- };
254
- var UNIX_HOST = 3;
255
- var S_IFMT = 61440;
256
- var S_IFLNK = 40960;
257
- var view = (bytes) => new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
258
- var notZip = () => new NativeArtifactError("UNREADABLE", "The file is not a zip archive, as an .ipa, .aab or .apk is.");
259
- var u64 = (data, offset) => Number(data.getBigUint64(offset, true));
260
- /** The central directory's offset and size, from its end record (ZIP64 too). */
261
- var centralDirectoryOf = async (source) => {
262
- const start = Math.max(0, source.size - EOCD_SEARCH_LENGTH);
263
- const tail = await source.read(start, source.size - start);
264
- const data = view(tail);
265
- for (let i = tail.length - 22; i >= 0; i -= 1) {
266
- if (data.getUint32(i, true) !== EOCD_SIGNATURE) continue;
267
- let size = data.getUint32(i + 12, true);
268
- let offset = data.getUint32(i + 16, true);
269
- if (offset === UINT32_MAX || size === UINT32_MAX) {
270
- const locator = i - 20;
271
- if (locator < 0 || data.getUint32(locator, true) !== ZIP64_EOCD_LOCATOR_SIGNATURE) throw notZip();
272
- const record = view(await source.read(u64(data, locator + 8), 56));
273
- if (record.byteLength < 56 || record.getUint32(0, true) !== ZIP64_EOCD_SIGNATURE) throw notZip();
274
- size = u64(record, 40);
275
- offset = u64(record, 48);
276
- }
277
- if (offset + size > source.size) throw notZip();
278
- return {
279
- offset,
280
- size
281
- };
282
- }
283
- throw notZip();
284
- };
285
- /** Every entry of a zip archive, reading only its central directory. */
286
- var readZipDirectory = async (source) => {
287
- const { offset, size } = await centralDirectoryOf(source);
288
- if (size > ZIP_LIMITS.directoryBytes) throw new NativeArtifactError("UNREADABLE", "The archive's directory is larger than any artifact's.");
289
- const directory = await source.read(offset, size);
290
- const data = view(directory);
291
- const decoder = new TextDecoder();
292
- const entries = [];
293
- for (let i = 0; i + 46 <= directory.length;) {
294
- if (data.getUint32(i, true) !== CENTRAL_HEADER_SIGNATURE) break;
295
- if (entries.length >= ZIP_LIMITS.entries) throw new NativeArtifactError("UNREADABLE", "The archive holds more entries than any artifact.");
296
- const madeBy = data.getUint16(i + 4, true);
297
- const externalAttributes = data.getUint32(i + 38, true);
298
- const method = data.getUint16(i + 10, true);
299
- let compressedSize = data.getUint32(i + 20, true);
300
- let uncompressedSize = data.getUint32(i + 24, true);
301
- const nameLength = data.getUint16(i + 28, true);
302
- const extraLength = data.getUint16(i + 30, true);
303
- const commentLength = data.getUint16(i + 32, true);
304
- let localHeaderOffset = data.getUint32(i + 42, true);
305
- const nameStart = i + 46;
306
- const name = decoder.decode(directory.subarray(nameStart, nameStart + nameLength));
307
- const extraStart = nameStart + nameLength;
308
- for (let j = extraStart; j + 4 <= extraStart + extraLength;) {
309
- const id = data.getUint16(j, true);
310
- const length = data.getUint16(j + 2, true);
311
- if (id === ZIP64_EXTRA_ID) {
312
- let k = j + 4;
313
- if (uncompressedSize === UINT32_MAX) {
314
- uncompressedSize = u64(data, k);
315
- k += 8;
316
- }
317
- if (compressedSize === UINT32_MAX) {
318
- compressedSize = u64(data, k);
319
- k += 8;
320
- }
321
- if (localHeaderOffset === UINT32_MAX) localHeaderOffset = u64(data, k);
322
- }
323
- j += 4 + length;
324
- }
325
- const segments = name.split("/");
326
- entries.push({
327
- name,
328
- unsafe: name.startsWith("/") || /^[A-Za-z]:/u.test(name) || name.includes("\\") || name.includes("\0") || segments.includes(".."),
329
- symlink: madeBy >> 8 === UNIX_HOST && (externalAttributes >>> 16 & S_IFMT) === S_IFLNK,
330
- method,
331
- compressedSize,
332
- uncompressedSize,
333
- localHeaderOffset
334
- });
335
- i = extraStart + extraLength + commentLength;
336
- }
337
- return entries;
338
- };
339
- /**
340
- * The one entry an artifact's reader takes by `name`: a symbolic link, or a
341
- * name the archive holds twice, which could hand the reader other bytes
342
- * than an installer reads, is refused. Unsafe names match nothing.
343
- */
344
- var findZipEntry = (entries, match) => {
345
- const test = typeof match === "string" ? (name) => name === match : match;
346
- const found = entries.filter(({ name, unsafe }) => !unsafe && test(name));
347
- for (const entry of found) assertReadable(entry);
348
- if (typeof match === "string" && found.length > 1) throw new NativeArtifactError("UNREADABLE", `The archive holds ${match} more than once.`);
349
- return found[0];
350
- };
351
- /** Every safe entry `match` takes, each a file the reader may read. */
352
- var filterZipEntries = (entries, match) => {
353
- const found = entries.filter(({ name, unsafe }) => !unsafe && match(name));
354
- for (const entry of found) assertReadable(entry);
355
- return found;
356
- };
357
- var assertReadable = (entry) => {
358
- if (entry.symlink) throw new NativeArtifactError("UNREADABLE", `The archive's ${entry.name} is a symbolic link, not a file.`);
359
- };
360
- var tooLarge = (entry, limit) => new NativeArtifactError("UNREADABLE", `The archive's ${entry.name} is larger than ${Math.round(limit / MiB$2)} MB, more than any artifact's.`);
361
- /** Where an entry's data starts, past its local header. */
362
- var dataOffsetOf = async (source, entry) => {
363
- const local = view(await source.read(entry.localHeaderOffset, 30));
364
- if (local.byteLength < 30 || local.getUint32(0, true) !== LOCAL_HEADER_SIGNATURE) throw new NativeArtifactError("UNREADABLE", `The archive's ${entry.name} is corrupt.`);
365
- return entry.localHeaderOffset + 30 + local.getUint16(26, true) + local.getUint16(28, true);
366
- };
367
- /**
368
- * An entry's uncompressed bytes as a stream, read from the source a chunk at
369
- * a time, so a large entry is never held whole.
370
- */
371
- var openZipEntry = async (source, entry, { maxBytes = ZIP_LIMITS.entryBytes } = {}) => {
372
- assertReadable(entry);
373
- if (entry.unsafe) throw new NativeArtifactError("UNREADABLE", `The archive's entry ${JSON.stringify(entry.name)} has a name no artifact holds.`);
374
- if (entry.uncompressedSize > maxBytes) throw tooLarge(entry, maxBytes);
375
- if (entry.method !== 0 && entry.method !== 8) throw new NativeArtifactError("UNREADABLE", `The archive stores ${entry.name} with an unsupported compression method (${entry.method}).`);
376
- const start = await dataOffsetOf(source, entry);
377
- const end = start + entry.compressedSize;
378
- let position = start;
379
- const compressed = new ReadableStream({ async pull(controller) {
380
- if (position >= end) {
381
- controller.close();
382
- return;
383
- }
384
- const chunk = await source.read(position, Math.min(READ_CHUNK, end - position));
385
- if (chunk.byteLength === 0) {
386
- controller.error(new NativeArtifactError("UNREADABLE", `The archive ends inside ${entry.name}.`));
387
- return;
388
- }
389
- position += chunk.byteLength;
390
- controller.enqueue(chunk);
391
- } });
392
- const inflated = entry.method === 0 ? compressed : compressed.pipeThrough(new DecompressionStream("deflate-raw"));
393
- const limit = Math.min(entry.uncompressedSize, maxBytes);
394
- let produced = 0;
395
- return inflated.pipeThrough(new TransformStream({ transform(chunk, controller) {
396
- produced += chunk.byteLength;
397
- if (produced > limit) {
398
- controller.error(new NativeArtifactError("UNREADABLE", `The archive's ${entry.name} inflates past the size it declares.`));
399
- return;
400
- }
401
- controller.enqueue(chunk);
402
- } }));
403
- };
404
- /**
405
- * The uncompressed bytes in `[start, end)` of an entry, which stops
406
- * inflating once it has them: a Mach-O header without the rest of the
407
- * binary.
408
- */
409
- var readZipEntryRange = async (source, entry, start, end, budget) => {
410
- const length = Math.max(0, Math.min(end, entry.uncompressedSize) - start);
411
- if (budget !== void 0 && start + length > budget.remaining) throw new NativeArtifactError("UNREADABLE", "The artifact inflates to more than any artifact's.");
412
- const out = new Uint8Array(length);
413
- if (length === 0) return out;
414
- const reader = (await openZipEntry(source, entry)).getReader();
415
- let position = 0;
416
- let written = 0;
417
- try {
418
- while (written < length) {
419
- if (budget !== void 0 && Date.now() > budget.deadline) throw new NativeArtifactError("UNREADABLE", "Reading the artifact took too long.");
420
- const { done, value } = await reader.read();
421
- if (done) break;
422
- if (budget !== void 0) budget.remaining -= value.byteLength;
423
- const from = Math.max(start - position, 0);
424
- const to = Math.min(start + length - position, value.byteLength);
425
- if (from < to) {
426
- out.set(value.subarray(from, to), position + from - start);
427
- written += to - from;
428
- }
429
- position += value.byteLength;
430
- }
431
- } catch (error) {
432
- throw error instanceof NativeArtifactError ? error : new NativeArtifactError("UNREADABLE", `The archive's ${entry.name} can't be decompressed: ${error instanceof Error ? error.message : String(error)}.`);
433
- } finally {
434
- await reader.cancel().catch(() => {});
435
- }
436
- return written === length ? out : out.subarray(0, written);
437
- };
438
- /** An entry's uncompressed bytes, refused past `maxBytes`. */
439
- var readZipEntry = (source, entry, maxBytes, budget) => {
440
- if (entry.uncompressedSize > maxBytes) throw tooLarge(entry, maxBytes);
441
- return readZipEntryRange(source, entry, 0, entry.uncompressedSize, budget);
442
- };
443
- var MiB$1 = 1048576;
444
- 16 * MiB$1;
445
- 256 * MiB$1;
446
- 2048 * MiB$1;
447
- var MiB = 1048576;
448
- /** The most an app's Info.plist or a provisioning profile holds here. */
449
- var METADATA_BYTES = 1 * MiB;
450
- /** The most reading what an install needs inflates, across every entry. */
451
- var READ_BUDGET_BYTES = 8 * MiB;
452
- /** How long reading what an install needs may take. */
453
- var READ_TIMEOUT_MS = 3e4;
454
- /** The extensions an app may carry, each with a profile to read. */
455
- var MAX_NESTED_PROFILES = 16;
456
- var APP_INFO_PLIST = /^Payload\/[^/]+\.app\/Info\.plist$/u;
457
- /**
458
- * What installs with the app and must list the device too: not a Watch app's
459
- * profile, which lists watches and installs on one.
460
- */
461
- var NESTED_PROFILE = /^Payload\/[^/]+\.app\/(?:PlugIns|Extensions|AppClips)\/[^/]+\.(?:appex|app)\/embedded\.mobileprovision$/u;
462
- /** A device's UDID: 40 hex digits, or 8 and 16 joined by a hyphen. */
463
- var UDID = /^(?:[0-9a-f]{40}|[0-9a-f]{8}-[0-9a-f]{16})$/iu;
464
- /**
465
- * The form two UDIDs compare in, or null for text that isn't one. Apple writes
466
- * them in either case, and App Store Connect takes the device's own.
467
- */
468
- var normalizeIosUdid = (value) => {
469
- const trimmed = value.trim();
470
- return UDID.test(trimmed) ? trimmed.toLowerCase() : null;
471
- };
472
- /**
473
- * The bytes from `<?xml` through `</plist>`, or null without both: a CMS
474
- * message, as a provisioning profile and a Profile Service answer are, holds
475
- * its plist as plain text among binary bytes.
476
- */
477
- var sliceEmbeddedPlist = (bytes) => {
478
- const text = new TextDecoder("latin1").decode(bytes);
479
- const start = text.indexOf("<?xml");
480
- if (start === -1) return null;
481
- const end = text.indexOf("</plist>", start);
482
- return end === -1 ? null : bytes.subarray(start, end + 8);
483
- };
484
- /**
485
- * The UDID in a Profile Service answer's body, or null when it has no one
486
- * well-formed UDID. It only finds the text: nothing here verifies the signature
487
- * around it, so nothing automated may trust the result.
488
- */
489
- var readProfileServiceUdid = (body) => {
490
- const plist = sliceEmbeddedPlist(body);
491
- if (plist === null) return null;
492
- const matches = [...new TextDecoder().decode(plist).matchAll(/<key>\s*UDID\s*<\/key>\s*<string>([^<]*)<\/string>/gu)];
493
- if (matches.length !== 1) return null;
494
- const udid = matches[0][1].trim();
495
- return normalizeIosUdid(udid) === null ? null : udid;
496
- };
497
- var unreadable = (message) => new NativeArtifactError("UNREADABLE", message);
498
- var isDict = (value) => typeof value === "object" && value !== null && !Array.isArray(value) && !(value instanceof Uint8Array);
499
- var readProfile = (bytes, name) => {
500
- const plistBytes = sliceEmbeddedPlist(bytes);
501
- if (plistBytes === null) throw unreadable(`The archive's ${name} holds no property list.`);
502
- const plist = parsePlist(plistBytes);
503
- if (!isDict(plist)) throw unreadable(`The archive's ${name} is corrupt.`);
504
- const listed = plist["ProvisionedDevices"];
505
- if (listed !== void 0 && !Array.isArray(listed)) throw unreadable(`The archive's ${name} is corrupt.`);
506
- const devices = listed?.map((device) => {
507
- if (typeof device !== "string") throw unreadable(`The archive's ${name} is corrupt.`);
508
- return device.trim().toLowerCase();
509
- });
510
- const expiration = plist["ExpirationDate"];
511
- const expiresAtMs = typeof expiration === "string" ? Date.parse(expiration) : null;
512
- if (expiresAtMs !== null && Number.isNaN(expiresAtMs)) throw unreadable(`The archive's ${name} is corrupt.`);
513
- const entitlements = plist["Entitlements"];
514
- const applicationId = isDict(entitlements) ? entitlements["application-identifier"] : void 0;
515
- const bundleId = typeof applicationId === "string" ? applicationId.slice(applicationId.indexOf(".") + 1) : null;
516
- const teams = plist["TeamIdentifier"];
517
- const team = Array.isArray(teams) ? teams[0] : void 0;
518
- const uuid = plist["UUID"];
519
- return {
520
- allDevices: plist["ProvisionsAllDevices"] === true,
521
- devices: devices === void 0 ? null : new Set(devices),
522
- getTaskAllow: isDict(entitlements) && entitlements["get-task-allow"] === true,
523
- expiresAtMs,
524
- bundleId: bundleId === null || bundleId.includes("*") ? null : bundleId,
525
- applicationIdentifier: typeof applicationId === "string" ? applicationId : null,
526
- teamId: typeof team === "string" && team !== "" ? team : null,
527
- xcodeManaged: plist["IsXcodeManaged"] === true,
528
- uuid: typeof uuid === "string" && uuid !== "" ? uuid : null
529
- };
530
- };
531
- var distributionOf = (profile) => {
532
- if (profile === null) return "store";
533
- if (profile.allDevices) return "enterprise";
534
- if (profile.devices === null) return "store";
535
- return profile.getTaskAllow ? "development" : "ad-hoc";
536
- };
537
- /**
538
- * What an `.ipa` installs as, reading only its directory, its app's Info.plist
539
- * and its provisioning profiles: a few requests of a remote file, whatever its
540
- * size. The `.ipa` is untrusted, and each part is bounded before it is read.
541
- * Throws `NativeArtifactError` for one it can't read.
542
- */
543
- var readIpaInstallInfo = async (source) => {
544
- const entries = await readZipDirectory(source);
545
- const infoPlists = filterZipEntries(entries, (name) => APP_INFO_PLIST.test(name));
546
- const infoEntry = infoPlists[0];
547
- if (infoEntry === void 0 || infoPlists.length > 1) throw unreadable("The .ipa has no one Payload/<App>.app/Info.plist.");
548
- const budget = {
549
- remaining: READ_BUDGET_BYTES,
550
- deadline: Date.now() + READ_TIMEOUT_MS
551
- };
552
- const read = (entry) => readZipEntry(source, entry, METADATA_BYTES, budget);
553
- const info = parsePlist(await read(infoEntry));
554
- if (!isDict(info)) throw unreadable("The app's Info.plist is corrupt.");
555
- const bundleId = info["CFBundleIdentifier"];
556
- const bundleVersion = info["CFBundleVersion"];
557
- if (typeof bundleId !== "string" || bundleId === "") throw unreadable("The app's Info.plist has no CFBundleIdentifier.");
558
- if (typeof bundleVersion !== "string" || bundleVersion === "") throw unreadable("The app's Info.plist has no CFBundleVersion.");
559
- const displayName = info["CFBundleDisplayName"];
560
- const bundleName = info["CFBundleName"];
561
- const title = typeof displayName === "string" && displayName !== "" ? displayName : typeof bundleName === "string" && bundleName !== "" ? bundleName : bundleId;
562
- const appDirectory = infoEntry.name.slice(0, -10);
563
- const profileEntry = findZipEntry(entries, `${appDirectory}embedded.mobileprovision`);
564
- const nestedEntries = filterZipEntries(entries, (name) => name.startsWith(appDirectory) && NESTED_PROFILE.test(name));
565
- if (nestedEntries.length > MAX_NESTED_PROFILES) throw unreadable(`The app has more than ${MAX_NESTED_PROFILES} extensions with profiles.`);
566
- const profile = profileEntry === void 0 ? null : readProfile(await read(profileEntry), profileEntry.name);
567
- const nested = [];
568
- for (const entry of nestedEntries) nested.push(readProfile(await read(entry), entry.name));
569
- const distribution = distributionOf(profile);
570
- const profiles = profile === null ? nested : [profile, ...nested];
571
- const listDevices = distribution === "ad-hoc" || distribution === "development";
572
- const lists = profiles.flatMap(({ allDevices, devices }) => allDevices ? [] : [devices ?? /* @__PURE__ */ new Set()]);
573
- const expiries = profiles.flatMap(({ expiresAtMs }) => expiresAtMs === null ? [] : [expiresAtMs]);
574
- return {
575
- bundleId,
576
- bundleVersion,
577
- title,
578
- distribution,
579
- devices: listDevices ? [...lists[0] ?? []].filter((udid) => lists.every((list) => list.has(udid))).sort() : [],
580
- expiresAtMs: expiries.length === 0 ? null : Math.min(...expiries),
581
- profileBundleIds: [.../* @__PURE__ */ new Set([bundleId, ...profiles.flatMap((item) => item.bundleId ?? [])])],
582
- teamId: profile?.teamId ?? null
583
- };
584
- };
585
- var ESCAPES = {
586
- "&": "&amp;",
587
- "<": "&lt;",
588
- ">": "&gt;",
589
- "\"": "&quot;",
590
- "'": "&apos;"
591
- };
592
- /**
593
- * Text as an XML plist's `<string>` holds it. Control characters have no XML
594
- * form at all, even escaped, so they go.
595
- */
596
- var escapePlistText = (text) => [...text].filter((character) => character >= " " || " \n\r".includes(character)).map((character) => ESCAPES[character] ?? character).join("");
597
- /**
598
- * The console's address and path as a phone reached it, without a trailing
599
- * slash, from a request to `routePath` under it. A proxy that ends TLS says so
600
- * in `x-forwarded-proto`, which only upgrades the scheme: the answer goes back
601
- * to whoever sent the header, and is never cached.
602
- */
603
- var publicConsoleBase = (request, routePath) => {
604
- const url = new URL(request.url);
605
- const forwarded = request.headers.get("x-forwarded-proto")?.split(",")[0]?.trim();
606
- const base = url.pathname.endsWith(routePath) ? url.pathname.slice(0, -routePath.length) : "";
607
- return `${forwarded === "https" ? "https:" : url.protocol}//${url.host}${base}`;
608
- };
609
- //#endregion
610
- export { readProfileServiceUdid as a, readIpaInstallInfo as i, normalizeIosUdid as n, publicConsoleBase as r, escapePlistText as t };