@nubjs/nub-linux-x64 0.0.7 → 0.0.8

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 (387) hide show
  1. package/bin/nub +0 -0
  2. package/package.json +1 -1
  3. package/runtime/addons/nub-native.node +0 -0
  4. package/runtime/node_modules/@js-temporal/polyfill/CHANGELOG.md +453 -0
  5. package/runtime/node_modules/@js-temporal/polyfill/LICENSE +13 -0
  6. package/runtime/node_modules/@js-temporal/polyfill/README.md +90 -0
  7. package/runtime/node_modules/@js-temporal/polyfill/dist/index.cjs +2 -0
  8. package/runtime/node_modules/@js-temporal/polyfill/dist/index.cjs.map +1 -0
  9. package/runtime/node_modules/@js-temporal/polyfill/dist/index.esm.js +2 -0
  10. package/runtime/node_modules/@js-temporal/polyfill/dist/index.esm.js.map +1 -0
  11. package/runtime/node_modules/@js-temporal/polyfill/dist/index.umd.js +2 -0
  12. package/runtime/node_modules/@js-temporal/polyfill/dist/index.umd.js.map +1 -0
  13. package/runtime/node_modules/@js-temporal/polyfill/index.d.cts +1215 -0
  14. package/runtime/node_modules/@js-temporal/polyfill/index.d.ts +1215 -0
  15. package/runtime/node_modules/@js-temporal/polyfill/lib/assert.ts +8 -0
  16. package/runtime/node_modules/@js-temporal/polyfill/lib/bigintmath.ts +39 -0
  17. package/runtime/node_modules/@js-temporal/polyfill/lib/calendar.ts +2424 -0
  18. package/runtime/node_modules/@js-temporal/polyfill/lib/debug.ts +7 -0
  19. package/runtime/node_modules/@js-temporal/polyfill/lib/duration.ts +438 -0
  20. package/runtime/node_modules/@js-temporal/polyfill/lib/durationformat.d.ts +93 -0
  21. package/runtime/node_modules/@js-temporal/polyfill/lib/ecmascript.ts +4973 -0
  22. package/runtime/node_modules/@js-temporal/polyfill/lib/index.ts +34 -0
  23. package/runtime/node_modules/@js-temporal/polyfill/lib/init.ts +43 -0
  24. package/runtime/node_modules/@js-temporal/polyfill/lib/instant.ts +138 -0
  25. package/runtime/node_modules/@js-temporal/polyfill/lib/internaltypes.d.ts +242 -0
  26. package/runtime/node_modules/@js-temporal/polyfill/lib/intl.ts +758 -0
  27. package/runtime/node_modules/@js-temporal/polyfill/lib/intrinsicclass.ts +162 -0
  28. package/runtime/node_modules/@js-temporal/polyfill/lib/legacydate.ts +17 -0
  29. package/runtime/node_modules/@js-temporal/polyfill/lib/math.ts +96 -0
  30. package/runtime/node_modules/@js-temporal/polyfill/lib/now.ts +48 -0
  31. package/runtime/node_modules/@js-temporal/polyfill/lib/plaindate.ts +212 -0
  32. package/runtime/node_modules/@js-temporal/polyfill/lib/plaindatetime.ts +274 -0
  33. package/runtime/node_modules/@js-temporal/polyfill/lib/plainmonthday.ts +110 -0
  34. package/runtime/node_modules/@js-temporal/polyfill/lib/plaintime.ts +154 -0
  35. package/runtime/node_modules/@js-temporal/polyfill/lib/plainyearmonth.ts +157 -0
  36. package/runtime/node_modules/@js-temporal/polyfill/lib/regex.ts +59 -0
  37. package/runtime/node_modules/@js-temporal/polyfill/lib/slots.ts +341 -0
  38. package/runtime/node_modules/@js-temporal/polyfill/lib/temporal.ts +10 -0
  39. package/runtime/node_modules/@js-temporal/polyfill/lib/timeduration.ts +149 -0
  40. package/runtime/node_modules/@js-temporal/polyfill/lib/zoneddatetime.ts +492 -0
  41. package/runtime/node_modules/@js-temporal/polyfill/package.json +143 -0
  42. package/runtime/node_modules/@oxc-project/runtime/CHANGELOG.md +88 -0
  43. package/runtime/node_modules/@oxc-project/runtime/LICENSE +22 -0
  44. package/runtime/node_modules/@oxc-project/runtime/README.md +5 -0
  45. package/runtime/node_modules/@oxc-project/runtime/package.json +1066 -0
  46. package/runtime/node_modules/@oxc-project/runtime/src/helpers/AwaitValue.js +4 -0
  47. package/runtime/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js +4 -0
  48. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecoratedDescriptor.js +9 -0
  49. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs.js +236 -0
  50. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2203.js +184 -0
  51. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2203R.js +191 -0
  52. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2301.js +222 -0
  53. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2305.js +133 -0
  54. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2311.js +124 -0
  55. package/runtime/node_modules/@oxc-project/runtime/src/helpers/arrayLikeToArray.js +6 -0
  56. package/runtime/node_modules/@oxc-project/runtime/src/helpers/arrayWithHoles.js +4 -0
  57. package/runtime/node_modules/@oxc-project/runtime/src/helpers/arrayWithoutHoles.js +5 -0
  58. package/runtime/node_modules/@oxc-project/runtime/src/helpers/assertClassBrand.js +5 -0
  59. package/runtime/node_modules/@oxc-project/runtime/src/helpers/assertThisInitialized.js +5 -0
  60. package/runtime/node_modules/@oxc-project/runtime/src/helpers/asyncGeneratorDelegate.js +24 -0
  61. package/runtime/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js +45 -0
  62. package/runtime/node_modules/@oxc-project/runtime/src/helpers/asyncToGenerator.js +26 -0
  63. package/runtime/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js +5 -0
  64. package/runtime/node_modules/@oxc-project/runtime/src/helpers/callSuper.js +7 -0
  65. package/runtime/node_modules/@oxc-project/runtime/src/helpers/checkInRHS.js +6 -0
  66. package/runtime/node_modules/@oxc-project/runtime/src/helpers/checkPrivateRedeclaration.js +4 -0
  67. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classApplyDescriptorDestructureSet.js +10 -0
  68. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classApplyDescriptorGet.js +4 -0
  69. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classApplyDescriptorSet.js +7 -0
  70. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classCallCheck.js +4 -0
  71. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classCheckPrivateStaticAccess.js +5 -0
  72. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classCheckPrivateStaticFieldDescriptor.js +4 -0
  73. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classExtractFieldDescriptor.js +5 -0
  74. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classNameTDZError.js +4 -0
  75. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldDestructureSet.js +7 -0
  76. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldGet.js +7 -0
  77. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldGet2.js +5 -0
  78. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldInitSpec.js +5 -0
  79. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldLooseBase.js +5 -0
  80. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldLooseKey.js +5 -0
  81. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldSet.js +7 -0
  82. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldSet2.js +5 -0
  83. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateGetter.js +5 -0
  84. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateMethodGet.js +5 -0
  85. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateMethodInitSpec.js +5 -0
  86. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateMethodSet.js +4 -0
  87. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateSetter.js +5 -0
  88. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateFieldDestructureSet.js +7 -0
  89. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateFieldSpecGet.js +7 -0
  90. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateFieldSpecSet.js +7 -0
  91. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateMethodGet.js +5 -0
  92. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateMethodSet.js +4 -0
  93. package/runtime/node_modules/@oxc-project/runtime/src/helpers/construct.js +10 -0
  94. package/runtime/node_modules/@oxc-project/runtime/src/helpers/createClass.js +13 -0
  95. package/runtime/node_modules/@oxc-project/runtime/src/helpers/createForOfIteratorHelper.js +50 -0
  96. package/runtime/node_modules/@oxc-project/runtime/src/helpers/createForOfIteratorHelperLoose.js +19 -0
  97. package/runtime/node_modules/@oxc-project/runtime/src/helpers/createSuper.js +16 -0
  98. package/runtime/node_modules/@oxc-project/runtime/src/helpers/decorate.js +23 -0
  99. package/runtime/node_modules/@oxc-project/runtime/src/helpers/decorateMetadata.js +9 -0
  100. package/runtime/node_modules/@oxc-project/runtime/src/helpers/decorateParam.js +11 -0
  101. package/runtime/node_modules/@oxc-project/runtime/src/helpers/defaults.js +9 -0
  102. package/runtime/node_modules/@oxc-project/runtime/src/helpers/defineAccessor.js +8 -0
  103. package/runtime/node_modules/@oxc-project/runtime/src/helpers/defineEnumerableProperties.js +12 -0
  104. package/runtime/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js +10 -0
  105. package/runtime/node_modules/@oxc-project/runtime/src/helpers/dispose.js +28 -0
  106. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/AwaitValue.js +4 -0
  107. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/OverloadYield.js +4 -0
  108. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecoratedDescriptor.js +9 -0
  109. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs.js +236 -0
  110. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2203.js +184 -0
  111. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2203R.js +191 -0
  112. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2301.js +222 -0
  113. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2305.js +133 -0
  114. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2311.js +124 -0
  115. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/arrayLikeToArray.js +6 -0
  116. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/arrayWithHoles.js +4 -0
  117. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/arrayWithoutHoles.js +5 -0
  118. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/assertClassBrand.js +5 -0
  119. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/assertThisInitialized.js +5 -0
  120. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/asyncGeneratorDelegate.js +24 -0
  121. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/asyncIterator.js +45 -0
  122. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/asyncToGenerator.js +26 -0
  123. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/awaitAsyncGenerator.js +5 -0
  124. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/callSuper.js +7 -0
  125. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/checkInRHS.js +6 -0
  126. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/checkPrivateRedeclaration.js +4 -0
  127. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classApplyDescriptorDestructureSet.js +10 -0
  128. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classApplyDescriptorGet.js +4 -0
  129. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classApplyDescriptorSet.js +7 -0
  130. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classCallCheck.js +4 -0
  131. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classCheckPrivateStaticAccess.js +5 -0
  132. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +4 -0
  133. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classExtractFieldDescriptor.js +5 -0
  134. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classNameTDZError.js +4 -0
  135. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldDestructureSet.js +7 -0
  136. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldGet.js +7 -0
  137. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldGet2.js +5 -0
  138. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldInitSpec.js +5 -0
  139. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldLooseBase.js +5 -0
  140. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldLooseKey.js +5 -0
  141. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldSet.js +7 -0
  142. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldSet2.js +5 -0
  143. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateGetter.js +5 -0
  144. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateMethodGet.js +5 -0
  145. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateMethodInitSpec.js +5 -0
  146. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateMethodSet.js +4 -0
  147. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateSetter.js +5 -0
  148. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateFieldDestructureSet.js +7 -0
  149. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateFieldSpecGet.js +7 -0
  150. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateFieldSpecSet.js +7 -0
  151. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateMethodGet.js +5 -0
  152. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateMethodSet.js +4 -0
  153. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/construct.js +10 -0
  154. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createClass.js +13 -0
  155. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createForOfIteratorHelper.js +50 -0
  156. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createForOfIteratorHelperLoose.js +19 -0
  157. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createSuper.js +16 -0
  158. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/decorate.js +21 -0
  159. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/decorateMetadata.js +7 -0
  160. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/decorateParam.js +9 -0
  161. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defaults.js +9 -0
  162. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defineAccessor.js +8 -0
  163. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defineEnumerableProperties.js +12 -0
  164. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defineProperty.js +10 -0
  165. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/dispose.js +28 -0
  166. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/extends.js +10 -0
  167. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/get.js +11 -0
  168. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/getPrototypeOf.js +6 -0
  169. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/identity.js +4 -0
  170. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/importDeferProxy.js +27 -0
  171. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/inherits.js +14 -0
  172. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/inheritsLoose.js +5 -0
  173. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/initializerDefineProperty.js +9 -0
  174. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/initializerWarningHelper.js +4 -0
  175. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/instanceof.js +4 -0
  176. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/interopRequireDefault.js +6 -0
  177. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/interopRequireWildcard.js +27 -0
  178. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/isNativeFunction.js +8 -0
  179. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/isNativeReflectConstruct.js +9 -0
  180. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/iterableToArray.js +4 -0
  181. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/iterableToArrayLimit.js +28 -0
  182. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/jsx.js +22 -0
  183. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/maybeArrayLike.js +9 -0
  184. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/newArrowCheck.js +4 -0
  185. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/nonIterableRest.js +4 -0
  186. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/nonIterableSpread.js +4 -0
  187. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/nullishReceiverError.js +4 -0
  188. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectDestructuringEmpty.js +4 -0
  189. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectSpread.js +14 -0
  190. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectSpread2.js +23 -0
  191. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectWithoutProperties.js +13 -0
  192. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectWithoutPropertiesLoose.js +10 -0
  193. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/package.json +3 -0
  194. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/possibleConstructorReturn.js +8 -0
  195. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/readOnlyError.js +4 -0
  196. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/regeneratorRuntime.js +304 -0
  197. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/set.js +22 -0
  198. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/setFunctionName.js +12 -0
  199. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/setPrototypeOf.js +6 -0
  200. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/skipFirstGeneratorNext.js +7 -0
  201. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/slicedToArray.js +8 -0
  202. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/superPropBase.js +6 -0
  203. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/superPropGet.js +9 -0
  204. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/superPropSet.js +6 -0
  205. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/taggedTemplateLiteral.js +8 -0
  206. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/taggedTemplateLiteralLoose.js +4 -0
  207. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/tdz.js +4 -0
  208. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/temporalRef.js +6 -0
  209. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/temporalUndefined.js +2 -0
  210. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toArray.js +8 -0
  211. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toConsumableArray.js +8 -0
  212. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toPrimitive.js +12 -0
  213. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toPropertyKey.js +7 -0
  214. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toSetter.js +10 -0
  215. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/typeof.js +10 -0
  216. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/unsupportedIterableToArray.js +9 -0
  217. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/using.js +12 -0
  218. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/usingCtx.js +59 -0
  219. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/wrapAsyncGenerator.js +69 -0
  220. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/wrapNativeSuper.js +27 -0
  221. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/wrapRegExp.js +51 -0
  222. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/writeOnlyError.js +4 -0
  223. package/runtime/node_modules/@oxc-project/runtime/src/helpers/extends.js +10 -0
  224. package/runtime/node_modules/@oxc-project/runtime/src/helpers/get.js +11 -0
  225. package/runtime/node_modules/@oxc-project/runtime/src/helpers/getPrototypeOf.js +6 -0
  226. package/runtime/node_modules/@oxc-project/runtime/src/helpers/identity.js +4 -0
  227. package/runtime/node_modules/@oxc-project/runtime/src/helpers/importDeferProxy.js +27 -0
  228. package/runtime/node_modules/@oxc-project/runtime/src/helpers/inherits.js +14 -0
  229. package/runtime/node_modules/@oxc-project/runtime/src/helpers/inheritsLoose.js +5 -0
  230. package/runtime/node_modules/@oxc-project/runtime/src/helpers/initializerDefineProperty.js +9 -0
  231. package/runtime/node_modules/@oxc-project/runtime/src/helpers/initializerWarningHelper.js +4 -0
  232. package/runtime/node_modules/@oxc-project/runtime/src/helpers/instanceof.js +4 -0
  233. package/runtime/node_modules/@oxc-project/runtime/src/helpers/interopRequireDefault.js +6 -0
  234. package/runtime/node_modules/@oxc-project/runtime/src/helpers/interopRequireWildcard.js +27 -0
  235. package/runtime/node_modules/@oxc-project/runtime/src/helpers/isNativeFunction.js +8 -0
  236. package/runtime/node_modules/@oxc-project/runtime/src/helpers/isNativeReflectConstruct.js +9 -0
  237. package/runtime/node_modules/@oxc-project/runtime/src/helpers/iterableToArray.js +4 -0
  238. package/runtime/node_modules/@oxc-project/runtime/src/helpers/iterableToArrayLimit.js +28 -0
  239. package/runtime/node_modules/@oxc-project/runtime/src/helpers/jsx.js +22 -0
  240. package/runtime/node_modules/@oxc-project/runtime/src/helpers/maybeArrayLike.js +9 -0
  241. package/runtime/node_modules/@oxc-project/runtime/src/helpers/newArrowCheck.js +4 -0
  242. package/runtime/node_modules/@oxc-project/runtime/src/helpers/nonIterableRest.js +4 -0
  243. package/runtime/node_modules/@oxc-project/runtime/src/helpers/nonIterableSpread.js +4 -0
  244. package/runtime/node_modules/@oxc-project/runtime/src/helpers/nullishReceiverError.js +4 -0
  245. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectDestructuringEmpty.js +4 -0
  246. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectSpread.js +14 -0
  247. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js +23 -0
  248. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js +13 -0
  249. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js +10 -0
  250. package/runtime/node_modules/@oxc-project/runtime/src/helpers/possibleConstructorReturn.js +8 -0
  251. package/runtime/node_modules/@oxc-project/runtime/src/helpers/readOnlyError.js +4 -0
  252. package/runtime/node_modules/@oxc-project/runtime/src/helpers/regeneratorRuntime.js +304 -0
  253. package/runtime/node_modules/@oxc-project/runtime/src/helpers/set.js +22 -0
  254. package/runtime/node_modules/@oxc-project/runtime/src/helpers/setFunctionName.js +12 -0
  255. package/runtime/node_modules/@oxc-project/runtime/src/helpers/setPrototypeOf.js +6 -0
  256. package/runtime/node_modules/@oxc-project/runtime/src/helpers/skipFirstGeneratorNext.js +7 -0
  257. package/runtime/node_modules/@oxc-project/runtime/src/helpers/slicedToArray.js +8 -0
  258. package/runtime/node_modules/@oxc-project/runtime/src/helpers/superPropBase.js +6 -0
  259. package/runtime/node_modules/@oxc-project/runtime/src/helpers/superPropGet.js +9 -0
  260. package/runtime/node_modules/@oxc-project/runtime/src/helpers/superPropSet.js +6 -0
  261. package/runtime/node_modules/@oxc-project/runtime/src/helpers/taggedTemplateLiteral.js +8 -0
  262. package/runtime/node_modules/@oxc-project/runtime/src/helpers/taggedTemplateLiteralLoose.js +4 -0
  263. package/runtime/node_modules/@oxc-project/runtime/src/helpers/tdz.js +4 -0
  264. package/runtime/node_modules/@oxc-project/runtime/src/helpers/temporalRef.js +6 -0
  265. package/runtime/node_modules/@oxc-project/runtime/src/helpers/temporalUndefined.js +2 -0
  266. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toArray.js +8 -0
  267. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toConsumableArray.js +8 -0
  268. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js +12 -0
  269. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js +7 -0
  270. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toSetter.js +10 -0
  271. package/runtime/node_modules/@oxc-project/runtime/src/helpers/typeof.js +10 -0
  272. package/runtime/node_modules/@oxc-project/runtime/src/helpers/unsupportedIterableToArray.js +9 -0
  273. package/runtime/node_modules/@oxc-project/runtime/src/helpers/using.js +12 -0
  274. package/runtime/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js +59 -0
  275. package/runtime/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js +69 -0
  276. package/runtime/node_modules/@oxc-project/runtime/src/helpers/wrapNativeSuper.js +27 -0
  277. package/runtime/node_modules/@oxc-project/runtime/src/helpers/wrapRegExp.js +51 -0
  278. package/runtime/node_modules/@oxc-project/runtime/src/helpers/writeOnlyError.js +4 -0
  279. package/runtime/node_modules/@oxc-project/types/LICENSE +22 -0
  280. package/runtime/node_modules/@oxc-project/types/README.md +3 -0
  281. package/runtime/node_modules/@oxc-project/types/package.json +26 -0
  282. package/runtime/node_modules/@oxc-project/types/types.d.ts +1912 -0
  283. package/runtime/node_modules/@petamoriken/float16/LICENSE +21 -0
  284. package/runtime/node_modules/@petamoriken/float16/README.md +413 -0
  285. package/runtime/node_modules/@petamoriken/float16/browser/float16.js +1340 -0
  286. package/runtime/node_modules/@petamoriken/float16/browser/float16.mjs +1325 -0
  287. package/runtime/node_modules/@petamoriken/float16/index.d.ts +546 -0
  288. package/runtime/node_modules/@petamoriken/float16/index.v5.6.d.ts +546 -0
  289. package/runtime/node_modules/@petamoriken/float16/index.v5.7.d.ts +555 -0
  290. package/runtime/node_modules/@petamoriken/float16/inspect/node.cjs +25 -0
  291. package/runtime/node_modules/@petamoriken/float16/inspect/node.mjs +23 -0
  292. package/runtime/node_modules/@petamoriken/float16/lib/DataView.cjs +16 -0
  293. package/runtime/node_modules/@petamoriken/float16/lib/Float16Array.cjs +690 -0
  294. package/runtime/node_modules/@petamoriken/float16/lib/_util/arrayIterator.cjs +52 -0
  295. package/runtime/node_modules/@petamoriken/float16/lib/_util/brand.cjs +27 -0
  296. package/runtime/node_modules/@petamoriken/float16/lib/_util/converter.cjs +111 -0
  297. package/runtime/node_modules/@petamoriken/float16/lib/_util/is.cjs +78 -0
  298. package/runtime/node_modules/@petamoriken/float16/lib/_util/messages.cjs +18 -0
  299. package/runtime/node_modules/@petamoriken/float16/lib/_util/primordials.cjs +150 -0
  300. package/runtime/node_modules/@petamoriken/float16/lib/_util/spec.cjs +84 -0
  301. package/runtime/node_modules/@petamoriken/float16/lib/f16round.cjs +10 -0
  302. package/runtime/node_modules/@petamoriken/float16/lib/index.cjs +16 -0
  303. package/runtime/node_modules/@petamoriken/float16/lib/isTypedArray.cjs +11 -0
  304. package/runtime/node_modules/@petamoriken/float16/package.json +115 -0
  305. package/runtime/node_modules/@petamoriken/float16/src/DataView.mjs +35 -0
  306. package/runtime/node_modules/@petamoriken/float16/src/Float16Array.mjs +1194 -0
  307. package/runtime/node_modules/@petamoriken/float16/src/_util/arrayIterator.mjs +86 -0
  308. package/runtime/node_modules/@petamoriken/float16/src/_util/brand.mjs +31 -0
  309. package/runtime/node_modules/@petamoriken/float16/src/_util/converter.mjs +173 -0
  310. package/runtime/node_modules/@petamoriken/float16/src/_util/is.mjs +151 -0
  311. package/runtime/node_modules/@petamoriken/float16/src/_util/messages.mjs +22 -0
  312. package/runtime/node_modules/@petamoriken/float16/src/_util/primordials.mjs +254 -0
  313. package/runtime/node_modules/@petamoriken/float16/src/_util/spec.mjs +137 -0
  314. package/runtime/node_modules/@petamoriken/float16/src/f16round.mjs +10 -0
  315. package/runtime/node_modules/@petamoriken/float16/src/index.mjs +7 -0
  316. package/runtime/node_modules/@petamoriken/float16/src/isTypedArray.mjs +10 -0
  317. package/runtime/node_modules/get-tsconfig/LICENSE +21 -0
  318. package/runtime/node_modules/get-tsconfig/README.md +268 -0
  319. package/runtime/node_modules/get-tsconfig/dist/index.cjs +7 -0
  320. package/runtime/node_modules/get-tsconfig/dist/index.d.cts +2116 -0
  321. package/runtime/node_modules/get-tsconfig/dist/index.d.mts +2116 -0
  322. package/runtime/node_modules/get-tsconfig/dist/index.mjs +7 -0
  323. package/runtime/node_modules/get-tsconfig/package.json +46 -0
  324. package/runtime/node_modules/jsbi/LICENSE +176 -0
  325. package/runtime/node_modules/jsbi/README.md +173 -0
  326. package/runtime/node_modules/jsbi/dist/jsbi-cjs.js +2 -0
  327. package/runtime/node_modules/jsbi/dist/jsbi-cjs.js.map +1 -0
  328. package/runtime/node_modules/jsbi/dist/jsbi-umd.js +2 -0
  329. package/runtime/node_modules/jsbi/dist/jsbi-umd.js.map +1 -0
  330. package/runtime/node_modules/jsbi/dist/jsbi.mjs +2 -0
  331. package/runtime/node_modules/jsbi/dist/jsbi.mjs.map +1 -0
  332. package/runtime/node_modules/jsbi/jsbi.d.ts +43 -0
  333. package/runtime/node_modules/jsbi/package.json +35 -0
  334. package/runtime/node_modules/oxc-parser/LICENSE +22 -0
  335. package/runtime/node_modules/oxc-parser/README.md +167 -0
  336. package/runtime/node_modules/oxc-parser/package.json +153 -0
  337. package/runtime/node_modules/oxc-parser/src-js/bindings.js +601 -0
  338. package/runtime/node_modules/oxc-parser/src-js/generated/constants.js +105 -0
  339. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/js.js +5862 -0
  340. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/js_range.js +6403 -0
  341. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/ts.js +6154 -0
  342. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/ts_range.js +6723 -0
  343. package/runtime/node_modules/oxc-parser/src-js/generated/lazy/constructors.js +13875 -0
  344. package/runtime/node_modules/oxc-parser/src-js/generated/lazy/type_ids.js +191 -0
  345. package/runtime/node_modules/oxc-parser/src-js/generated/lazy/walk.js +5810 -0
  346. package/runtime/node_modules/oxc-parser/src-js/generated/visit/keys.js +220 -0
  347. package/runtime/node_modules/oxc-parser/src-js/generated/visit/type_ids.js +177 -0
  348. package/runtime/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts +387 -0
  349. package/runtime/node_modules/oxc-parser/src-js/generated/visit/walk.js +2455 -0
  350. package/runtime/node_modules/oxc-parser/src-js/index.d.ts +312 -0
  351. package/runtime/node_modules/oxc-parser/src-js/index.js +108 -0
  352. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/common.js +301 -0
  353. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/eager.js +255 -0
  354. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/lazy-common.js +11 -0
  355. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/lazy.js +162 -0
  356. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/node-array.js +365 -0
  357. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/supported.js +52 -0
  358. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/visitor.js +127 -0
  359. package/runtime/node_modules/oxc-parser/src-js/visit/index.js +41 -0
  360. package/runtime/node_modules/oxc-parser/src-js/visit/visitor.js +405 -0
  361. package/runtime/node_modules/oxc-parser/src-js/wasm.js +13 -0
  362. package/runtime/node_modules/oxc-parser/src-js/webcontainer-fallback.cjs +21 -0
  363. package/runtime/node_modules/oxc-parser/src-js/wrap.js +57 -0
  364. package/runtime/node_modules/oxc-transform/LICENSE +22 -0
  365. package/runtime/node_modules/oxc-transform/README.md +84 -0
  366. package/runtime/node_modules/oxc-transform/browser.js +1 -0
  367. package/runtime/node_modules/oxc-transform/index.d.ts +658 -0
  368. package/runtime/node_modules/oxc-transform/index.js +598 -0
  369. package/runtime/node_modules/oxc-transform/package.json +114 -0
  370. package/runtime/node_modules/oxc-transform/webcontainer-fallback.cjs +21 -0
  371. package/runtime/node_modules/resolve-pkg-maps/LICENSE +21 -0
  372. package/runtime/node_modules/resolve-pkg-maps/README.md +216 -0
  373. package/runtime/node_modules/resolve-pkg-maps/dist/index.cjs +1 -0
  374. package/runtime/node_modules/resolve-pkg-maps/dist/index.d.cts +11 -0
  375. package/runtime/node_modules/resolve-pkg-maps/dist/index.d.mts +11 -0
  376. package/runtime/node_modules/resolve-pkg-maps/dist/index.mjs +1 -0
  377. package/runtime/node_modules/resolve-pkg-maps/package.json +42 -0
  378. package/runtime/node_modules/urlpattern-polyfill/LICENSE +19 -0
  379. package/runtime/node_modules/urlpattern-polyfill/README.md +242 -0
  380. package/runtime/node_modules/urlpattern-polyfill/dist/index.d.ts +9 -0
  381. package/runtime/node_modules/urlpattern-polyfill/dist/types.d.ts +49 -0
  382. package/runtime/node_modules/urlpattern-polyfill/dist/urlpattern.cjs +1 -0
  383. package/runtime/node_modules/urlpattern-polyfill/dist/urlpattern.js +1 -0
  384. package/runtime/node_modules/urlpattern-polyfill/index.cjs +7 -0
  385. package/runtime/node_modules/urlpattern-polyfill/index.js +7 -0
  386. package/runtime/node_modules/urlpattern-polyfill/package.json +149 -0
  387. package/runtime/version.mjs +1 -1
@@ -0,0 +1,254 @@
1
+ /* eslint-disable no-restricted-globals, no-restricted-syntax */
2
+ /* global SharedArrayBuffer */
3
+
4
+ import { CANNOT_CONVERT_UNDEFINED_OR_NULL_TO_OBJECT } from "./messages.mjs";
5
+
6
+ /** @type {<T extends (...args: any) => any>(target: T) => (thisArg: ThisType<T>, ...args: any[]) => any} */
7
+ function uncurryThis(target) {
8
+ return (thisArg, ...args) => {
9
+ return ReflectApply(target, thisArg, args);
10
+ };
11
+ }
12
+
13
+ /** @type {(target: any, key: string | symbol) => (thisArg: any, ...args: any[]) => any} */
14
+ function uncurryThisGetter(target, key) {
15
+ return uncurryThis(
16
+ ReflectGetOwnPropertyDescriptor(
17
+ target,
18
+ key
19
+ ).get
20
+ );
21
+ }
22
+
23
+ // Reflect
24
+ export const {
25
+ apply: ReflectApply,
26
+ construct: ReflectConstruct,
27
+ defineProperty: ReflectDefineProperty,
28
+ get: ReflectGet,
29
+ getOwnPropertyDescriptor: ReflectGetOwnPropertyDescriptor,
30
+ getPrototypeOf: ReflectGetPrototypeOf,
31
+ has: ReflectHas,
32
+ ownKeys: ReflectOwnKeys,
33
+ set: ReflectSet,
34
+ setPrototypeOf: ReflectSetPrototypeOf,
35
+ } = Reflect;
36
+
37
+ // Proxy
38
+ export const NativeProxy = Proxy;
39
+
40
+ // Number
41
+ export const {
42
+ EPSILON,
43
+ MAX_SAFE_INTEGER,
44
+ isFinite: NumberIsFinite,
45
+ isNaN: NumberIsNaN,
46
+ } = Number;
47
+
48
+ // Symbol
49
+ export const {
50
+ iterator: SymbolIterator,
51
+ species: SymbolSpecies,
52
+ toStringTag: SymbolToStringTag,
53
+ for: SymbolFor,
54
+ } = Symbol;
55
+
56
+ // Object
57
+ export const NativeObject = Object;
58
+ export const {
59
+ create: ObjectCreate,
60
+ defineProperty: ObjectDefineProperty,
61
+ freeze: ObjectFreeze,
62
+ is: ObjectIs,
63
+ } = NativeObject;
64
+ const ObjectPrototype = NativeObject.prototype;
65
+ /** @type {(object: object, key: PropertyKey) => Function | undefined} */
66
+ export const ObjectPrototype__lookupGetter__ = /** @type {any} */ (ObjectPrototype).__lookupGetter__
67
+ ? uncurryThis(/** @type {any} */ (ObjectPrototype).__lookupGetter__)
68
+ : (object, key) => {
69
+ if (object == null) {
70
+ throw NativeTypeError(
71
+ CANNOT_CONVERT_UNDEFINED_OR_NULL_TO_OBJECT
72
+ );
73
+ }
74
+
75
+ let target = NativeObject(object);
76
+ do {
77
+ const descriptor = ReflectGetOwnPropertyDescriptor(target, key);
78
+ if (descriptor !== undefined) {
79
+ if (ObjectHasOwn(descriptor, "get")) {
80
+ return descriptor.get;
81
+ }
82
+
83
+ return;
84
+ }
85
+ } while ((target = ReflectGetPrototypeOf(target)) !== null);
86
+ };
87
+ /** @type {(object: object, key: PropertyKey) => boolean} */
88
+ export const ObjectHasOwn = /** @type {any} */ (NativeObject).hasOwn ||
89
+ uncurryThis(ObjectPrototype.hasOwnProperty);
90
+
91
+ // Array
92
+ const NativeArray = Array;
93
+ export const ArrayIsArray = NativeArray.isArray;
94
+ const ArrayPrototype = NativeArray.prototype;
95
+ /** @type {(array: ArrayLike<unknown>, separator?: string) => string} */
96
+ export const ArrayPrototypeJoin = uncurryThis(ArrayPrototype.join);
97
+ /** @type {<T>(array: T[], ...items: T[]) => number} */
98
+ export const ArrayPrototypePush = uncurryThis(ArrayPrototype.push);
99
+ /** @type {(array: ArrayLike<unknown>, ...opts: any[]) => string} */
100
+ export const ArrayPrototypeToLocaleString = uncurryThis(
101
+ ArrayPrototype.toLocaleString
102
+ );
103
+ export const NativeArrayPrototypeSymbolIterator = ArrayPrototype[SymbolIterator];
104
+ /** @type {<T>(array: T[]) => IterableIterator<T>} */
105
+ export const ArrayPrototypeSymbolIterator = uncurryThis(NativeArrayPrototypeSymbolIterator);
106
+
107
+ // Math
108
+ export const {
109
+ abs: MathAbs,
110
+ trunc: MathTrunc,
111
+ } = Math;
112
+
113
+ // ArrayBuffer
114
+ export const NativeArrayBuffer = ArrayBuffer;
115
+ export const ArrayBufferIsView = NativeArrayBuffer.isView;
116
+ const ArrayBufferPrototype = NativeArrayBuffer.prototype;
117
+ /** @type {(buffer: ArrayBuffer, begin?: number, end?: number) => number} */
118
+ export const ArrayBufferPrototypeSlice = uncurryThis(ArrayBufferPrototype.slice);
119
+ /** @type {(buffer: ArrayBuffer) => ArrayBuffer} */
120
+ export const ArrayBufferPrototypeGetByteLength = uncurryThisGetter(ArrayBufferPrototype, "byteLength");
121
+
122
+ // SharedArrayBuffer
123
+ export const NativeSharedArrayBuffer = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : null;
124
+ /** @type {(buffer: SharedArrayBuffer) => SharedArrayBuffer} */
125
+ export const SharedArrayBufferPrototypeGetByteLength = NativeSharedArrayBuffer
126
+ && uncurryThisGetter(NativeSharedArrayBuffer.prototype, "byteLength");
127
+
128
+ // TypedArray
129
+ /** @typedef {Uint8Array|Uint8ClampedArray|Uint16Array|Uint32Array|Int8Array|Int16Array|Int32Array|Float32Array|Float64Array|BigUint64Array|BigInt64Array} TypedArray */
130
+ /** @type {any} */
131
+ export const TypedArray = ReflectGetPrototypeOf(Uint8Array);
132
+ const TypedArrayFrom = TypedArray.from;
133
+ export const TypedArrayPrototype = TypedArray.prototype;
134
+ export const NativeTypedArrayPrototypeSymbolIterator = TypedArrayPrototype[SymbolIterator];
135
+ /** @type {(typedArray: TypedArray) => IterableIterator<number>} */
136
+ export const TypedArrayPrototypeKeys = uncurryThis(TypedArrayPrototype.keys);
137
+ /** @type {(typedArray: TypedArray) => IterableIterator<number>} */
138
+ export const TypedArrayPrototypeValues = uncurryThis(
139
+ TypedArrayPrototype.values
140
+ );
141
+ /** @type {(typedArray: TypedArray) => IterableIterator<[number, number]>} */
142
+ export const TypedArrayPrototypeEntries = uncurryThis(
143
+ TypedArrayPrototype.entries
144
+ );
145
+ /** @type {(typedArray: TypedArray, array: ArrayLike<number>, offset?: number) => void} */
146
+ export const TypedArrayPrototypeSet = uncurryThis(TypedArrayPrototype.set);
147
+ /** @type {<T extends TypedArray>(typedArray: T) => T} */
148
+ export const TypedArrayPrototypeReverse = uncurryThis(
149
+ TypedArrayPrototype.reverse
150
+ );
151
+ /** @type {<T extends TypedArray>(typedArray: T, value: number, start?: number, end?: number) => T} */
152
+ export const TypedArrayPrototypeFill = uncurryThis(TypedArrayPrototype.fill);
153
+ /** @type {<T extends TypedArray>(typedArray: T, target: number, start: number, end?: number) => T} */
154
+ export const TypedArrayPrototypeCopyWithin = uncurryThis(
155
+ TypedArrayPrototype.copyWithin
156
+ );
157
+ /** @type {<T extends TypedArray>(typedArray: T, compareFn?: (a: number, b: number) => number) => T} */
158
+ export const TypedArrayPrototypeSort = uncurryThis(TypedArrayPrototype.sort);
159
+ /** @type {<T extends TypedArray>(typedArray: T, start?: number, end?: number) => T} */
160
+ export const TypedArrayPrototypeSlice = uncurryThis(TypedArrayPrototype.slice);
161
+ /** @type {<T extends TypedArray>(typedArray: T, start?: number, end?: number) => T} */
162
+ export const TypedArrayPrototypeSubarray = uncurryThis(
163
+ TypedArrayPrototype.subarray
164
+ );
165
+ /** @type {((typedArray: TypedArray) => ArrayBuffer)} */
166
+ export const TypedArrayPrototypeGetBuffer = uncurryThisGetter(
167
+ TypedArrayPrototype,
168
+ "buffer"
169
+ );
170
+ /** @type {((typedArray: TypedArray) => number)} */
171
+ export const TypedArrayPrototypeGetByteOffset = uncurryThisGetter(
172
+ TypedArrayPrototype,
173
+ "byteOffset"
174
+ );
175
+ /** @type {((typedArray: TypedArray) => number)} */
176
+ export const TypedArrayPrototypeGetLength = uncurryThisGetter(
177
+ TypedArrayPrototype,
178
+ "length"
179
+ );
180
+ /** @type {(target: unknown) => string} */
181
+ export const TypedArrayPrototypeGetSymbolToStringTag = uncurryThisGetter(
182
+ TypedArrayPrototype,
183
+ SymbolToStringTag
184
+ );
185
+
186
+ // Uint8Array
187
+ export const NativeUint8Array = Uint8Array;
188
+
189
+ // Uint16Array
190
+ export const NativeUint16Array = Uint16Array;
191
+ /** @type {Uint16ArrayConstructor["from"]} */
192
+ export const Uint16ArrayFrom = (...args) => {
193
+ return ReflectApply(TypedArrayFrom, NativeUint16Array, args);
194
+ };
195
+
196
+ // Uint32Array
197
+ export const NativeUint32Array = Uint32Array;
198
+
199
+ // Float32Array
200
+ export const NativeFloat32Array = Float32Array;
201
+
202
+ // ArrayIterator
203
+ /** @type {any} */
204
+ export const ArrayIteratorPrototype = ReflectGetPrototypeOf([][SymbolIterator]());
205
+ /** @type {<T>(arrayIterator: IterableIterator<T>) => IteratorResult<T>} */
206
+ export const ArrayIteratorPrototypeNext = uncurryThis(ArrayIteratorPrototype.next);
207
+
208
+ // Generator
209
+ /** @type {<T = unknown, TReturn = any, TNext = unknown>(generator: Generator<T, TReturn, TNext>, value?: TNext) => T} */
210
+ export const GeneratorPrototypeNext = uncurryThis((function* () {})().next);
211
+
212
+ // Iterator
213
+ export const IteratorPrototype = ReflectGetPrototypeOf(ArrayIteratorPrototype);
214
+
215
+ // DataView
216
+ const DataViewPrototype = DataView.prototype;
217
+ /** @type {(dataView: DataView, byteOffset: number, littleEndian?: boolean) => number} */
218
+ export const DataViewPrototypeGetUint16 = uncurryThis(
219
+ DataViewPrototype.getUint16
220
+ );
221
+ /** @type {(dataView: DataView, byteOffset: number, value: number, littleEndian?: boolean) => void} */
222
+ export const DataViewPrototypeSetUint16 = uncurryThis(
223
+ DataViewPrototype.setUint16
224
+ );
225
+
226
+ // Error
227
+ export const NativeTypeError = TypeError;
228
+ export const NativeRangeError = RangeError;
229
+
230
+ // WeakSet
231
+ /**
232
+ * Do not construct with arguments to avoid calling the "add" method
233
+ * @type {{new <T extends {}>(): WeakSet<T>}}
234
+ */
235
+ export const NativeWeakSet = WeakSet;
236
+ const WeakSetPrototype = NativeWeakSet.prototype;
237
+ /** @type {<T extends {}>(set: WeakSet<T>, value: T) => Set<T>} */
238
+ export const WeakSetPrototypeAdd = uncurryThis(WeakSetPrototype.add);
239
+ /** @type {<T extends {}>(set: WeakSet<T>, value: T) => boolean} */
240
+ export const WeakSetPrototypeHas = uncurryThis(WeakSetPrototype.has);
241
+
242
+ // WeakMap
243
+ /**
244
+ * Do not construct with arguments to avoid calling the "set" method
245
+ * @type {{new <K extends {}, V>(): WeakMap<K, V>}}
246
+ */
247
+ export const NativeWeakMap = WeakMap;
248
+ const WeakMapPrototype = NativeWeakMap.prototype;
249
+ /** @type {<K extends {}, V>(weakMap: WeakMap<K, V>, key: K) => V} */
250
+ export const WeakMapPrototypeGet = uncurryThis(WeakMapPrototype.get);
251
+ /** @type {<K extends {}, V>(weakMap: WeakMap<K, V>, key: K) => boolean} */
252
+ export const WeakMapPrototypeHas = uncurryThis(WeakMapPrototype.has);
253
+ /** @type {<K extends {}, V>(weakMap: WeakMap<K, V>, key: K, value: V) => WeakMap} */
254
+ export const WeakMapPrototypeSet = uncurryThis(WeakMapPrototype.set);
@@ -0,0 +1,137 @@
1
+ import { isObject, isSharedArrayBuffer } from "./is.mjs";
2
+ import {
3
+ THE_CONSTRUCTOR_PROPERTY_VALUE_IS_NOT_AN_OBJECT,
4
+ THIS_IS_NOT_AN_OBJECT,
5
+ } from "./messages.mjs";
6
+ import {
7
+ ArrayBufferPrototypeSlice,
8
+ MAX_SAFE_INTEGER,
9
+ MathTrunc,
10
+ NativeTypeError,
11
+ NumberIsNaN,
12
+ ObjectIs,
13
+ SymbolSpecies,
14
+ } from "./primordials.mjs";
15
+
16
+ /**
17
+ * @see https://tc39.es/ecma262/#sec-tointegerorinfinity
18
+ * @param {unknown} target
19
+ * @returns {number}
20
+ */
21
+ export function ToIntegerOrInfinity(target) {
22
+ const number = +target;
23
+
24
+ if (NumberIsNaN(number) || number === 0) {
25
+ return 0;
26
+ }
27
+
28
+ return MathTrunc(number);
29
+ }
30
+
31
+ /**
32
+ * @see https://tc39.es/ecma262/#sec-tolength
33
+ * @param {unknown} target
34
+ * @returns {number}
35
+ */
36
+ export function ToLength(target) {
37
+ const length = ToIntegerOrInfinity(target);
38
+ if (length < 0) {
39
+ return 0;
40
+ }
41
+
42
+ return length < MAX_SAFE_INTEGER
43
+ ? length
44
+ : MAX_SAFE_INTEGER;
45
+ }
46
+
47
+ /**
48
+ * @see https://tc39.es/ecma262/#sec-speciesconstructor
49
+ * @param {object} target
50
+ * @param {{ new(...args: any[]): any; }} defaultConstructor
51
+ * @returns {{ new(...args: any[]): any; }}
52
+ */
53
+ export function SpeciesConstructor(target, defaultConstructor) {
54
+ if (!isObject(target)) {
55
+ throw NativeTypeError(THIS_IS_NOT_AN_OBJECT);
56
+ }
57
+
58
+ const constructor = target.constructor;
59
+ if (constructor === undefined) {
60
+ return defaultConstructor;
61
+ }
62
+ if (!isObject(constructor)) {
63
+ throw NativeTypeError(THE_CONSTRUCTOR_PROPERTY_VALUE_IS_NOT_AN_OBJECT);
64
+ }
65
+
66
+ const species = constructor[SymbolSpecies];
67
+ if (species == null) {
68
+ return defaultConstructor;
69
+ }
70
+
71
+ return species;
72
+ }
73
+
74
+ /**
75
+ * @see https://tc39.es/ecma262/#sec-isdetachedbuffer
76
+ * @param {ArrayBufferLike} buffer
77
+ * @returns {boolean}
78
+ */
79
+ export function IsDetachedBuffer(buffer) {
80
+ if (isSharedArrayBuffer(buffer)) {
81
+ return false;
82
+ }
83
+
84
+ try {
85
+ ArrayBufferPrototypeSlice(buffer, 0, 0);
86
+ return false;
87
+ } catch (e) {/* empty */}
88
+
89
+ return true;
90
+ }
91
+
92
+ /**
93
+ * bigint comparisons are not supported
94
+ * @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.sort
95
+ * @param {number} x
96
+ * @param {number} y
97
+ * @returns {-1 | 0 | 1}
98
+ */
99
+ export function defaultCompare(x, y) {
100
+ const isXNaN = NumberIsNaN(x);
101
+ const isYNaN = NumberIsNaN(y);
102
+
103
+ if (isXNaN && isYNaN) {
104
+ return 0;
105
+ }
106
+
107
+ if (isXNaN) {
108
+ return 1;
109
+ }
110
+
111
+ if (isYNaN) {
112
+ return -1;
113
+ }
114
+
115
+ if (x < y) {
116
+ return -1;
117
+ }
118
+
119
+ if (x > y) {
120
+ return 1;
121
+ }
122
+
123
+ if (x === 0 && y === 0) {
124
+ const isXPlusZero = ObjectIs(x, 0);
125
+ const isYPlusZero = ObjectIs(y, 0);
126
+
127
+ if (!isXPlusZero && isYPlusZero) {
128
+ return -1;
129
+ }
130
+
131
+ if (isXPlusZero && !isYPlusZero) {
132
+ return 1;
133
+ }
134
+ }
135
+
136
+ return 0;
137
+ }
@@ -0,0 +1,10 @@
1
+ import { roundToFloat16 } from "./_util/converter.mjs";
2
+
3
+ /**
4
+ * returns the nearest half-precision float representation of a number
5
+ * @param {number} x
6
+ * @returns {number}
7
+ */
8
+ export function f16round(x) {
9
+ return roundToFloat16(x);
10
+ }
@@ -0,0 +1,7 @@
1
+ /* ignore unused exports */
2
+ // @ts-self-types="../index.v5.7.d.ts"
3
+
4
+ export { Float16Array, isFloat16Array } from "./Float16Array.mjs";
5
+ export { isTypedArray } from "./isTypedArray.mjs";
6
+ export { getFloat16, setFloat16 } from "./DataView.mjs";
7
+ export { f16round, f16round as hfround } from "./f16round.mjs";
@@ -0,0 +1,10 @@
1
+ import { isFloat16Array } from "./Float16Array.mjs";
2
+ import { isNativeTypedArray } from "./_util/is.mjs";
3
+
4
+ /**
5
+ * @param {unknown} target
6
+ * @returns {value is Uint8Array|Uint8ClampedArray|Uint16Array|Uint32Array|Int8Array|Int16Array|Int32Array|Float16Array|Float32Array|Float64Array|BigUint64Array|BigInt64Array}
7
+ */
8
+ export function isTypedArray(target) {
9
+ return isNativeTypedArray(target) || isFloat16Array(target);
10
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Hiroki Osame <hiroki.osame@gmail.com>
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.