@dxyl/utils 1.3.2 → 1.3.6

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 (432) hide show
  1. package/dist/index.es.js +6590 -6259
  2. package/dist/index.umd.js +20 -71
  3. package/lib/glslang/glslang.d.ts +14 -14
  4. package/lib/glslang/glslang.js +112 -112
  5. package/lib/twgsl/twgsl.js +53 -53
  6. package/package.json +51 -51
  7. package/types/color/blend/helpers.d.ts +32 -0
  8. package/types/color/blend/index.d.ts +129 -0
  9. package/types/color/blend/non-separable-blend.d.ts +9 -0
  10. package/types/color/blend/non-separable-modes.d.ts +33 -0
  11. package/types/color/blend/separable-blend.d.ts +9 -0
  12. package/types/color/blend/separable-modes.d.ts +100 -0
  13. package/types/color/blend/types.d.ts +38 -0
  14. package/types/color/blend/unit.d.ts +129 -0
  15. package/types/color/composite/composite-core.d.ts +34 -0
  16. package/types/color/composite/composite-types.d.ts +10 -0
  17. package/types/color/composite/image-data-compositor.d.ts +5 -0
  18. package/types/color/composite/webgl-compositor.d.ts +10 -0
  19. package/types/color/composite/webgpu-compositor.d.ts +10 -0
  20. package/types/data/immer.d.ts +262 -262
  21. package/types/data/immutable.d.ts +5127 -5127
  22. package/types/data/mobx.d.ts +2 -2
  23. package/types/events/event_emiter.d.ts +43 -43
  24. package/types/fast-deep-equal.d.ts +1 -1
  25. package/types/index.d.ts +3 -0
  26. package/types/lodash/add.d.ts +1 -2
  27. package/types/lodash/after.d.ts +1 -2
  28. package/types/lodash/array.d.ts +1 -3
  29. package/types/lodash/array.default.d.ts +68 -70
  30. package/types/lodash/ary.d.ts +1 -2
  31. package/types/lodash/assign.d.ts +1 -2
  32. package/types/lodash/assignIn.d.ts +1 -2
  33. package/types/lodash/assignInWith.d.ts +1 -2
  34. package/types/lodash/assignWith.d.ts +1 -2
  35. package/types/lodash/at.d.ts +1 -2
  36. package/types/lodash/attempt.d.ts +1 -2
  37. package/types/lodash/augment.d.ts +2 -2
  38. package/types/lodash/before.d.ts +1 -2
  39. package/types/lodash/bind.d.ts +1 -2
  40. package/types/lodash/bindAll.d.ts +1 -2
  41. package/types/lodash/bindKey.d.ts +1 -2
  42. package/types/lodash/cache.d.ts +14 -14
  43. package/types/lodash/camelCase.d.ts +1 -2
  44. package/types/lodash/capitalize.d.ts +1 -2
  45. package/types/lodash/castArray.d.ts +1 -2
  46. package/types/lodash/ceil.d.ts +1 -2
  47. package/types/lodash/chain.d.ts +1 -2
  48. package/types/lodash/chunk.d.ts +1 -2
  49. package/types/lodash/clamp.d.ts +1 -2
  50. package/types/lodash/clear-animation-frame.d.ts +1 -1
  51. package/types/lodash/clone.d.ts +1 -2
  52. package/types/lodash/cloneDeep.d.ts +1 -2
  53. package/types/lodash/cloneDeepWith.d.ts +1 -2
  54. package/types/lodash/cloneWith.d.ts +1 -2
  55. package/types/lodash/collection.d.ts +1 -3
  56. package/types/lodash/collection.default.d.ts +31 -33
  57. package/types/lodash/compact.d.ts +1 -2
  58. package/types/lodash/concat.d.ts +1 -2
  59. package/types/lodash/cond.d.ts +1 -2
  60. package/types/lodash/conforms.d.ts +1 -2
  61. package/types/lodash/conformsTo.d.ts +1 -2
  62. package/types/lodash/constant.d.ts +1 -2
  63. package/types/lodash/contains.d.ts +2 -2
  64. package/types/lodash/countBy.d.ts +1 -2
  65. package/types/lodash/create.d.ts +1 -2
  66. package/types/lodash/curry.d.ts +1 -2
  67. package/types/lodash/curryRight.d.ts +1 -2
  68. package/types/lodash/date.d.ts +1 -3
  69. package/types/lodash/date.default.d.ts +4 -6
  70. package/types/lodash/debounce.d.ts +2 -4
  71. package/types/lodash/deburr.d.ts +1 -2
  72. package/types/lodash/deep-mix.d.ts +2 -2
  73. package/types/lodash/defaultTo.d.ts +1 -2
  74. package/types/lodash/defaults.d.ts +1 -2
  75. package/types/lodash/defaultsDeep.d.ts +1 -2
  76. package/types/lodash/defer.d.ts +1 -2
  77. package/types/lodash/delay.d.ts +1 -2
  78. package/types/lodash/difference.d.ts +1 -2
  79. package/types/lodash/differenceBy.d.ts +1 -2
  80. package/types/lodash/differenceWith.d.ts +1 -2
  81. package/types/lodash/divide.d.ts +1 -2
  82. package/types/lodash/drop.d.ts +1 -2
  83. package/types/lodash/dropRight.d.ts +1 -2
  84. package/types/lodash/dropRightWhile.d.ts +1 -2
  85. package/types/lodash/dropWhile.d.ts +1 -2
  86. package/types/lodash/each.d.ts +1 -2
  87. package/types/lodash/eachRight.d.ts +1 -2
  88. package/types/lodash/ends-with.d.ts +3 -3
  89. package/types/lodash/endsWith.d.ts +1 -2
  90. package/types/lodash/entries.d.ts +1 -2
  91. package/types/lodash/entriesIn.d.ts +1 -2
  92. package/types/lodash/eq.d.ts +1 -2
  93. package/types/lodash/escape.d.ts +1 -2
  94. package/types/lodash/escapeRegExp.d.ts +1 -2
  95. package/types/lodash/every.d.ts +1 -2
  96. package/types/lodash/extend.d.ts +1 -2
  97. package/types/lodash/extendWith.d.ts +1 -2
  98. package/types/lodash/fill.d.ts +1 -2
  99. package/types/lodash/filter.d.ts +1 -2
  100. package/types/lodash/find-index.d.ts +2 -2
  101. package/types/lodash/find.d.ts +1 -2
  102. package/types/lodash/findIndex.d.ts +1 -2
  103. package/types/lodash/findKey.d.ts +1 -2
  104. package/types/lodash/findLast.d.ts +1 -2
  105. package/types/lodash/findLastIndex.d.ts +1 -2
  106. package/types/lodash/findLastKey.d.ts +1 -2
  107. package/types/lodash/first-value.d.ts +2 -2
  108. package/types/lodash/first.d.ts +1 -2
  109. package/types/lodash/fixed-base.d.ts +2 -2
  110. package/types/lodash/flatMap.d.ts +1 -2
  111. package/types/lodash/flatMapDeep.d.ts +1 -2
  112. package/types/lodash/flatMapDepth.d.ts +1 -2
  113. package/types/lodash/flatten-deep.d.ts +12 -12
  114. package/types/lodash/flatten.d.ts +1 -2
  115. package/types/lodash/flattenDeep.d.ts +1 -2
  116. package/types/lodash/flattenDepth.d.ts +1 -2
  117. package/types/lodash/flip.d.ts +1 -2
  118. package/types/lodash/floor.d.ts +1 -2
  119. package/types/lodash/flow.d.ts +1 -2
  120. package/types/lodash/flowRight.d.ts +1 -2
  121. package/types/lodash/for-in.d.ts +2 -2
  122. package/types/lodash/forEach.d.ts +1 -2
  123. package/types/lodash/forEachRight.d.ts +1 -2
  124. package/types/lodash/forIn.d.ts +1 -2
  125. package/types/lodash/forInRight.d.ts +1 -2
  126. package/types/lodash/forOwn.d.ts +1 -2
  127. package/types/lodash/forOwnRight.d.ts +1 -2
  128. package/types/lodash/fromPairs.d.ts +1 -2
  129. package/types/lodash/function.d.ts +1 -3
  130. package/types/lodash/function.default.d.ts +26 -28
  131. package/types/lodash/functions.d.ts +1 -2
  132. package/types/lodash/functionsIn.d.ts +1 -2
  133. package/types/lodash/get-range.d.ts +6 -6
  134. package/types/lodash/get-type.d.ts +2 -2
  135. package/types/lodash/get-wrap-behavior.d.ts +9 -9
  136. package/types/lodash/get.d.ts +1 -2
  137. package/types/lodash/group-by.d.ts +6 -6
  138. package/types/lodash/group-to-map.d.ts +8 -8
  139. package/types/lodash/group.d.ts +2 -2
  140. package/types/lodash/groupBy.d.ts +1 -2
  141. package/types/lodash/gt.d.ts +1 -2
  142. package/types/lodash/gte.d.ts +1 -2
  143. package/types/lodash/has-key.d.ts +2 -2
  144. package/types/lodash/has-value.d.ts +2 -2
  145. package/types/lodash/has.d.ts +1 -2
  146. package/types/lodash/hasIn.d.ts +1 -2
  147. package/types/lodash/head.d.ts +1 -2
  148. package/types/lodash/identity.d.ts +1 -2
  149. package/types/lodash/inRange.d.ts +1 -2
  150. package/types/lodash/includes.d.ts +1 -2
  151. package/types/lodash/index-of.d.ts +2 -2
  152. package/types/lodash/index.d.ts +304 -304
  153. package/types/lodash/indexOf.d.ts +1 -2
  154. package/types/lodash/initial.d.ts +1 -2
  155. package/types/lodash/intersection.d.ts +1 -2
  156. package/types/lodash/intersectionBy.d.ts +1 -2
  157. package/types/lodash/intersectionWith.d.ts +1 -2
  158. package/types/lodash/invert.d.ts +1 -2
  159. package/types/lodash/invertBy.d.ts +1 -2
  160. package/types/lodash/invoke.d.ts +1 -2
  161. package/types/lodash/invokeMap.d.ts +1 -2
  162. package/types/lodash/is-arguments.d.ts +2 -2
  163. package/types/lodash/is-array-like.d.ts +2 -2
  164. package/types/lodash/is-array.d.ts +2 -2
  165. package/types/lodash/is-boolean.d.ts +2 -2
  166. package/types/lodash/is-date.d.ts +2 -2
  167. package/types/lodash/is-decimal.d.ts +2 -2
  168. package/types/lodash/is-element.d.ts +6 -6
  169. package/types/lodash/is-empty.d.ts +2 -2
  170. package/types/lodash/is-equal-with.d.ts +24 -24
  171. package/types/lodash/is-equal.d.ts +2 -2
  172. package/types/lodash/is-error.d.ts +2 -2
  173. package/types/lodash/is-even.d.ts +2 -2
  174. package/types/lodash/is-finite.d.ts +1 -1
  175. package/types/lodash/is-function.d.ts +2 -2
  176. package/types/lodash/is-integer.d.ts +2 -2
  177. package/types/lodash/is-match.d.ts +2 -2
  178. package/types/lodash/is-negative.d.ts +2 -2
  179. package/types/lodash/is-nil.d.ts +2 -2
  180. package/types/lodash/is-null.d.ts +2 -2
  181. package/types/lodash/is-number-equal.d.ts +1 -1
  182. package/types/lodash/is-number.d.ts +2 -2
  183. package/types/lodash/is-object-like.d.ts +2 -2
  184. package/types/lodash/is-object.d.ts +2 -2
  185. package/types/lodash/is-odd.d.ts +2 -2
  186. package/types/lodash/is-plain-object.d.ts +2 -2
  187. package/types/lodash/is-positive.d.ts +2 -2
  188. package/types/lodash/is-prototype.d.ts +2 -2
  189. package/types/lodash/is-reg-exp.d.ts +2 -2
  190. package/types/lodash/is-segment-equal.d.ts +2 -2
  191. package/types/lodash/is-string.d.ts +2 -2
  192. package/types/lodash/is-type.d.ts +2 -2
  193. package/types/lodash/is-undefined.d.ts +2 -2
  194. package/types/lodash/isArguments.d.ts +1 -2
  195. package/types/lodash/isArray.d.ts +1 -2
  196. package/types/lodash/isArrayBuffer.d.ts +1 -2
  197. package/types/lodash/isArrayLike.d.ts +1 -2
  198. package/types/lodash/isArrayLikeObject.d.ts +1 -2
  199. package/types/lodash/isBoolean.d.ts +1 -2
  200. package/types/lodash/isBuffer.d.ts +1 -2
  201. package/types/lodash/isDate.d.ts +1 -2
  202. package/types/lodash/isElement.d.ts +1 -2
  203. package/types/lodash/isEmpty.d.ts +1 -2
  204. package/types/lodash/isEqual.d.ts +1 -2
  205. package/types/lodash/isEqualWith.d.ts +1 -2
  206. package/types/lodash/isError.d.ts +1 -2
  207. package/types/lodash/isFinite.d.ts +1 -2
  208. package/types/lodash/isFunction.d.ts +1 -2
  209. package/types/lodash/isInteger.d.ts +1 -2
  210. package/types/lodash/isLength.d.ts +1 -2
  211. package/types/lodash/isMap.d.ts +1 -2
  212. package/types/lodash/isMatch.d.ts +1 -2
  213. package/types/lodash/isMatchWith.d.ts +1 -2
  214. package/types/lodash/isNaN.d.ts +1 -2
  215. package/types/lodash/isNative.d.ts +1 -2
  216. package/types/lodash/isNil.d.ts +1 -2
  217. package/types/lodash/isNull.d.ts +1 -2
  218. package/types/lodash/isNumber.d.ts +1 -2
  219. package/types/lodash/isObject.d.ts +1 -2
  220. package/types/lodash/isObjectLike.d.ts +1 -2
  221. package/types/lodash/isPlainObject.d.ts +1 -2
  222. package/types/lodash/isRegExp.d.ts +1 -2
  223. package/types/lodash/isSafeInteger.d.ts +1 -2
  224. package/types/lodash/isSet.d.ts +1 -2
  225. package/types/lodash/isString.d.ts +1 -2
  226. package/types/lodash/isSymbol.d.ts +1 -2
  227. package/types/lodash/isTypedArray.d.ts +1 -2
  228. package/types/lodash/isUndefined.d.ts +1 -2
  229. package/types/lodash/isWeakMap.d.ts +1 -2
  230. package/types/lodash/isWeakSet.d.ts +1 -2
  231. package/types/lodash/iteratee.d.ts +1 -2
  232. package/types/lodash/join.d.ts +1 -2
  233. package/types/lodash/kebabCase.d.ts +1 -2
  234. package/types/lodash/keyBy.d.ts +1 -2
  235. package/types/lodash/keys.d.ts +1 -2
  236. package/types/lodash/keysIn.d.ts +1 -2
  237. package/types/lodash/lang.d.ts +1 -3
  238. package/types/lodash/lang.default.d.ts +59 -61
  239. package/types/lodash/last.d.ts +1 -2
  240. package/types/lodash/lastIndexOf.d.ts +1 -2
  241. package/types/lodash/lower-case.d.ts +2 -2
  242. package/types/lodash/lower-first.d.ts +2 -2
  243. package/types/lodash/lowerCase.d.ts +1 -2
  244. package/types/lodash/lowerFirst.d.ts +1 -2
  245. package/types/lodash/lt.d.ts +1 -2
  246. package/types/lodash/lte.d.ts +1 -2
  247. package/types/lodash/map-values.d.ts +6 -6
  248. package/types/lodash/map.d.ts +1 -2
  249. package/types/lodash/mapKeys.d.ts +1 -2
  250. package/types/lodash/mapValues.d.ts +1 -2
  251. package/types/lodash/matches.d.ts +1 -2
  252. package/types/lodash/matchesProperty.d.ts +1 -2
  253. package/types/lodash/math.d.ts +1 -3
  254. package/types/lodash/math.default.d.ts +18 -20
  255. package/types/lodash/max-by.d.ts +16 -16
  256. package/types/lodash/max.d.ts +1 -2
  257. package/types/lodash/maxBy.d.ts +1 -2
  258. package/types/lodash/mean.d.ts +1 -2
  259. package/types/lodash/meanBy.d.ts +1 -2
  260. package/types/lodash/memoize.d.ts +1 -2
  261. package/types/lodash/merge.d.ts +1 -2
  262. package/types/lodash/mergeWith.d.ts +1 -2
  263. package/types/lodash/method.d.ts +1 -2
  264. package/types/lodash/methodOf.d.ts +1 -2
  265. package/types/lodash/min-by.d.ts +16 -16
  266. package/types/lodash/min.d.ts +1 -2
  267. package/types/lodash/minBy.d.ts +1 -2
  268. package/types/lodash/mix.d.ts +1 -1
  269. package/types/lodash/mixin.d.ts +1 -2
  270. package/types/lodash/mod.d.ts +2 -2
  271. package/types/lodash/multiply.d.ts +1 -2
  272. package/types/lodash/negate.d.ts +1 -2
  273. package/types/lodash/noop.d.ts +1 -2
  274. package/types/lodash/now.d.ts +1 -2
  275. package/types/lodash/nth.d.ts +1 -2
  276. package/types/lodash/nthArg.d.ts +1 -2
  277. package/types/lodash/number.d.ts +1 -3
  278. package/types/lodash/number.default.d.ts +6 -8
  279. package/types/lodash/number2color.d.ts +2 -2
  280. package/types/lodash/object.d.ts +1 -3
  281. package/types/lodash/object.default.d.ts +50 -52
  282. package/types/lodash/omit.d.ts +1 -2
  283. package/types/lodash/omitBy.d.ts +1 -2
  284. package/types/lodash/once.d.ts +1 -2
  285. package/types/lodash/orderBy.d.ts +1 -2
  286. package/types/lodash/over.d.ts +1 -2
  287. package/types/lodash/overArgs.d.ts +1 -2
  288. package/types/lodash/overEvery.d.ts +1 -2
  289. package/types/lodash/overSome.d.ts +1 -2
  290. package/types/lodash/pad.d.ts +1 -2
  291. package/types/lodash/padEnd.d.ts +1 -2
  292. package/types/lodash/padStart.d.ts +1 -2
  293. package/types/lodash/parse-radius.d.ts +9 -9
  294. package/types/lodash/parseInt.d.ts +1 -2
  295. package/types/lodash/partial.d.ts +1 -2
  296. package/types/lodash/partialRight.d.ts +1 -2
  297. package/types/lodash/partition.d.ts +1 -2
  298. package/types/lodash/pick.d.ts +1 -2
  299. package/types/lodash/pickBy.d.ts +1 -2
  300. package/types/lodash/property.d.ts +2 -4
  301. package/types/lodash/propertyOf.d.ts +1 -2
  302. package/types/lodash/pull-at.d.ts +2 -2
  303. package/types/lodash/pull.d.ts +1 -2
  304. package/types/lodash/pullAll.d.ts +1 -2
  305. package/types/lodash/pullAllBy.d.ts +1 -2
  306. package/types/lodash/pullAllWith.d.ts +1 -2
  307. package/types/lodash/pullAt.d.ts +1 -2
  308. package/types/lodash/random.d.ts +1 -2
  309. package/types/lodash/range.d.ts +1 -2
  310. package/types/lodash/rangeRight.d.ts +1 -2
  311. package/types/lodash/rearg.d.ts +1 -2
  312. package/types/lodash/reduce.d.ts +1 -2
  313. package/types/lodash/reduceRight.d.ts +1 -2
  314. package/types/lodash/reject.d.ts +1 -2
  315. package/types/lodash/remove.d.ts +1 -2
  316. package/types/lodash/repeat.d.ts +1 -2
  317. package/types/lodash/replace.d.ts +1 -2
  318. package/types/lodash/request-animation-frame.d.ts +1 -1
  319. package/types/lodash/rest.d.ts +1 -2
  320. package/types/lodash/result.d.ts +1 -2
  321. package/types/lodash/reverse.d.ts +1 -2
  322. package/types/lodash/round.d.ts +1 -2
  323. package/types/lodash/sample.d.ts +1 -2
  324. package/types/lodash/sampleSize.d.ts +1 -2
  325. package/types/lodash/set.d.ts +1 -2
  326. package/types/lodash/setWith.d.ts +1 -2
  327. package/types/lodash/shuffle.d.ts +1 -2
  328. package/types/lodash/size.d.ts +1 -2
  329. package/types/lodash/slice.d.ts +1 -2
  330. package/types/lodash/snakeCase.d.ts +1 -2
  331. package/types/lodash/some.d.ts +1 -2
  332. package/types/lodash/sort-by.d.ts +7 -7
  333. package/types/lodash/sortBy.d.ts +1 -2
  334. package/types/lodash/sortedIndex.d.ts +1 -2
  335. package/types/lodash/sortedIndexBy.d.ts +1 -2
  336. package/types/lodash/sortedIndexOf.d.ts +1 -2
  337. package/types/lodash/sortedLastIndex.d.ts +1 -2
  338. package/types/lodash/sortedLastIndexBy.d.ts +1 -2
  339. package/types/lodash/sortedLastIndexOf.d.ts +1 -2
  340. package/types/lodash/sortedUniq.d.ts +1 -2
  341. package/types/lodash/sortedUniqBy.d.ts +1 -2
  342. package/types/lodash/split.d.ts +1 -2
  343. package/types/lodash/spread.d.ts +1 -2
  344. package/types/lodash/startCase.d.ts +1 -2
  345. package/types/lodash/starts-with.d.ts +3 -3
  346. package/types/lodash/startsWith.d.ts +1 -2
  347. package/types/lodash/string.d.ts +1 -3
  348. package/types/lodash/string.default.d.ts +34 -36
  349. package/types/lodash/stubArray.d.ts +1 -2
  350. package/types/lodash/stubFalse.d.ts +1 -2
  351. package/types/lodash/stubObject.d.ts +1 -2
  352. package/types/lodash/stubString.d.ts +1 -2
  353. package/types/lodash/stubTrue.d.ts +1 -2
  354. package/types/lodash/substitute.d.ts +5 -5
  355. package/types/lodash/subtract.d.ts +1 -2
  356. package/types/lodash/sum.d.ts +1 -2
  357. package/types/lodash/sumBy.d.ts +1 -2
  358. package/types/lodash/tail.d.ts +1 -2
  359. package/types/lodash/take.d.ts +1 -2
  360. package/types/lodash/takeRight.d.ts +1 -2
  361. package/types/lodash/takeRightWhile.d.ts +1 -2
  362. package/types/lodash/takeWhile.d.ts +1 -2
  363. package/types/lodash/tap.d.ts +1 -2
  364. package/types/lodash/template.d.ts +1 -2
  365. package/types/lodash/templateSettings.d.ts +1 -2
  366. package/types/lodash/throttle.d.ts +2 -4
  367. package/types/lodash/thru.d.ts +1 -2
  368. package/types/lodash/times.d.ts +1 -2
  369. package/types/lodash/to-array.d.ts +2 -2
  370. package/types/lodash/to-degree.d.ts +2 -2
  371. package/types/lodash/to-integer.d.ts +1 -1
  372. package/types/lodash/to-radian.d.ts +2 -2
  373. package/types/lodash/to-string.d.ts +2 -2
  374. package/types/lodash/toArray.d.ts +1 -2
  375. package/types/lodash/toFinite.d.ts +1 -2
  376. package/types/lodash/toInteger.d.ts +1 -2
  377. package/types/lodash/toLength.d.ts +1 -2
  378. package/types/lodash/toLower.d.ts +1 -2
  379. package/types/lodash/toNumber.d.ts +1 -2
  380. package/types/lodash/toPairs.d.ts +1 -2
  381. package/types/lodash/toPairsIn.d.ts +1 -2
  382. package/types/lodash/toPath.d.ts +1 -2
  383. package/types/lodash/toPlainObject.d.ts +1 -2
  384. package/types/lodash/toSafeInteger.d.ts +1 -2
  385. package/types/lodash/toString.d.ts +1 -2
  386. package/types/lodash/toUpper.d.ts +1 -2
  387. package/types/lodash/transform.d.ts +1 -2
  388. package/types/lodash/trim.d.ts +1 -2
  389. package/types/lodash/trimEnd.d.ts +1 -2
  390. package/types/lodash/trimStart.d.ts +1 -2
  391. package/types/lodash/truncate.d.ts +1 -2
  392. package/types/lodash/types/index.d.ts +3 -3
  393. package/types/lodash/unary.d.ts +1 -2
  394. package/types/lodash/unescape.d.ts +1 -2
  395. package/types/lodash/union.d.ts +1 -2
  396. package/types/lodash/unionBy.d.ts +1 -2
  397. package/types/lodash/unionWith.d.ts +1 -2
  398. package/types/lodash/uniq.d.ts +1 -2
  399. package/types/lodash/uniqBy.d.ts +1 -2
  400. package/types/lodash/uniqWith.d.ts +1 -2
  401. package/types/lodash/unique-id.d.ts +2 -2
  402. package/types/lodash/uniqueId.d.ts +1 -2
  403. package/types/lodash/unset.d.ts +1 -2
  404. package/types/lodash/unzip.d.ts +1 -2
  405. package/types/lodash/unzipWith.d.ts +1 -2
  406. package/types/lodash/update.d.ts +1 -2
  407. package/types/lodash/updateWith.d.ts +1 -2
  408. package/types/lodash/upper-case.d.ts +2 -2
  409. package/types/lodash/upper-first.d.ts +2 -2
  410. package/types/lodash/upperCase.d.ts +1 -2
  411. package/types/lodash/upperFirst.d.ts +1 -2
  412. package/types/lodash/util.d.ts +1 -3
  413. package/types/lodash/util.default.d.ts +35 -37
  414. package/types/lodash/values-of-key.d.ts +2 -2
  415. package/types/lodash/values.d.ts +1 -2
  416. package/types/lodash/valuesIn.d.ts +1 -2
  417. package/types/lodash/without.d.ts +1 -2
  418. package/types/lodash/words.d.ts +1 -2
  419. package/types/lodash/wrap-behavior.d.ts +9 -9
  420. package/types/lodash/wrap.d.ts +1 -2
  421. package/types/lodash/xor.d.ts +1 -2
  422. package/types/lodash/xorBy.d.ts +1 -2
  423. package/types/lodash/xorWith.d.ts +1 -2
  424. package/types/lodash/zip.d.ts +1 -2
  425. package/types/lodash/zipObject.d.ts +1 -2
  426. package/types/lodash/zipObjectDeep.d.ts +1 -2
  427. package/types/lodash/zipWith.d.ts +1 -2
  428. package/types/scheduler.d.ts +46 -0
  429. package/types/state/StateMachine.d.ts +149 -0
  430. package/types/state/StateMachinePlus.d.ts +40 -0
  431. package/types/stats.module.d.ts +3 -3
  432. package/types/utils/token.d.ts +1 -0
@@ -1,14 +1,14 @@
1
- declare type ShaderStage = 'vertex' | 'fragment' | 'compute';
2
- declare type SpirvVersion = '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5';
3
-
4
- declare interface ResultZeroCopy {
5
- readonly data: Uint32Array;
6
- free(): void;
7
- }
8
-
9
- declare interface Glslang {
10
- compileGLSLZeroCopy(glsl: string, shader_stage: ShaderStage, gen_debug: boolean, spirv_version?: SpirvVersion): ResultZeroCopy;
11
- compileGLSL(glsl: string, shader_type: ShaderStage, gen_debug: boolean, spirv_version?: SpirvVersion): Uint32Array;
12
- }
13
-
14
- export default function(): Promise<Glslang>;
1
+ declare type ShaderStage = 'vertex' | 'fragment' | 'compute';
2
+ declare type SpirvVersion = '1.0' | '1.1' | '1.2' | '1.3' | '1.4' | '1.5';
3
+
4
+ declare interface ResultZeroCopy {
5
+ readonly data: Uint32Array;
6
+ free(): void;
7
+ }
8
+
9
+ declare interface Glslang {
10
+ compileGLSLZeroCopy(glsl: string, shader_stage: ShaderStage, gen_debug: boolean, spirv_version?: SpirvVersion): ResultZeroCopy;
11
+ compileGLSL(glsl: string, shader_type: ShaderStage, gen_debug: boolean, spirv_version?: SpirvVersion): Uint32Array;
12
+ }
13
+
14
+ export default function(): Promise<Glslang>;
@@ -1,113 +1,113 @@
1
-
2
- var Module = (function() {
3
- var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
4
-
5
- return (
6
- function(Module) {
7
- Module = Module || {};
8
-
9
- var c;c||(c=typeof Module !== 'undefined' ? Module : {});
10
- c.compileGLSLZeroCopy=function(a,b,d,e){d=!!d;switch(b){case "vertex":var g=0;break;case "fragment":g=4;break;case "compute":g=5;break;default:throw Error("shader_stage must be 'vertex', 'fragment', or 'compute'.");}switch(e||"1.0"){case "1.0":var f=65536;break;case "1.1":f=65792;break;case "1.2":f=66048;break;case "1.3":f=66304;break;case "1.4":f=66560;break;case "1.5":f=66816;break;default:throw Error("spirv_version must be '1.0' ~ '1.5'.");}e=c._malloc(4);b=c._malloc(4);var h=aa([a,g,d,f,e,b]);
11
- d=k(e);a=k(b);c._free(e);c._free(b);if(0===h)throw Error("GLSL compilation failed");e={};d/=4;e.data=c.HEAPU32.subarray(d,d+a);e.free=function(){c._destroy_output_buffer(h)};return e};c.compileGLSL=function(a,b,d,e){a=c.compileGLSLZeroCopy(a,b,d,e);b=a.data.slice();a.free();return b};var p={},q;for(q in c)c.hasOwnProperty(q)&&(p[q]=c[q]);var r="./this.program",t=!1,u=!1;t="object"===typeof window;u="function"===typeof importScripts;var v="",w;
12
- if(t||u)u?v=self.location.href:document.currentScript&&(v=document.currentScript.src),_scriptDir&&(v=_scriptDir),0!==v.indexOf("blob:")?v=v.substr(0,v.lastIndexOf("/")+1):v="",u&&(w=function(a){var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)});var x=c.print||console.log.bind(console),y=c.printErr||console.warn.bind(console);for(q in p)p.hasOwnProperty(q)&&(c[q]=p[q]);p=null;c.thisProgram&&(r=c.thisProgram);var A;
13
- c.wasmBinary&&(A=c.wasmBinary);"object"!==typeof WebAssembly&&y("no native wasm support detected");function k(a){var b="i32";"*"===b.charAt(b.length-1)&&(b="i32");switch(b){case "i1":return B[a>>0];case "i8":return B[a>>0];case "i16":return ba[a>>1];case "i32":return C[a>>2];case "i64":return C[a>>2];case "float":return ca[a>>2];case "double":return da[a>>3];default:D("invalid type for getValue: "+b)}return null}var E,ea=new WebAssembly.Table({initial:859,maximum:859,element:"anyfunc"}),fa=!1;
14
- function ha(){var a=c._convert_glsl_to_spirv;a||D("Assertion failed: Cannot call unknown function convert_glsl_to_spirv, make sure it is exported");return a}
15
- function aa(a){var b="string number boolean number number number".split(" "),d={string:function(a){var b=0;if(null!==a&&void 0!==a&&0!==a){var d=(a.length<<2)+1;b=G(d);ia(a,H,b,d)}return b},array:function(a){var b=G(a.length);B.set(a,b);return b}},e=ha(),g=[],f=0;if(a)for(var h=0;h<a.length;h++){var n=d[b[h]];n?(0===f&&(f=ja()),g[h]=n(a[h])):g[h]=a[h]}a=e.apply(null,g);0!==f&&ka(f);return a}var la="undefined"!==typeof TextDecoder?new TextDecoder("utf8"):void 0;
16
- function I(a,b,d){var e=b+d;for(d=b;a[d]&&!(d>=e);)++d;if(16<d-b&&a.subarray&&la)return la.decode(a.subarray(b,d));for(e="";b<d;){var g=a[b++];if(g&128){var f=a[b++]&63;if(192==(g&224))e+=String.fromCharCode((g&31)<<6|f);else{var h=a[b++]&63;g=224==(g&240)?(g&15)<<12|f<<6|h:(g&7)<<18|f<<12|h<<6|a[b++]&63;65536>g?e+=String.fromCharCode(g):(g-=65536,e+=String.fromCharCode(55296|g>>10,56320|g&1023))}}else e+=String.fromCharCode(g)}return e}
17
- function ia(a,b,d,e){if(0<e){e=d+e-1;for(var g=0;g<a.length;++g){var f=a.charCodeAt(g);if(55296<=f&&57343>=f){var h=a.charCodeAt(++g);f=65536+((f&1023)<<10)|h&1023}if(127>=f){if(d>=e)break;b[d++]=f}else{if(2047>=f){if(d+1>=e)break;b[d++]=192|f>>6}else{if(65535>=f){if(d+2>=e)break;b[d++]=224|f>>12}else{if(d+3>=e)break;b[d++]=240|f>>18;b[d++]=128|f>>12&63}b[d++]=128|f>>6&63}b[d++]=128|f&63}}b[d]=0}}"undefined"!==typeof TextDecoder&&new TextDecoder("utf-16le");var J,B,H,ba,C,ca,da;
18
- function ma(a){J=a;c.HEAP8=B=new Int8Array(a);c.HEAP16=ba=new Int16Array(a);c.HEAP32=C=new Int32Array(a);c.HEAPU8=H=new Uint8Array(a);c.HEAPU16=new Uint16Array(a);c.HEAPU32=new Uint32Array(a);c.HEAPF32=ca=new Float32Array(a);c.HEAPF64=da=new Float64Array(a)}var na=c.TOTAL_MEMORY||16777216;c.wasmMemory?E=c.wasmMemory:E=new WebAssembly.Memory({initial:na/65536});E&&(J=E.buffer);na=J.byteLength;ma(J);C[84916]=5582704;
19
- function K(a){for(;0<a.length;){var b=a.shift();if("function"==typeof b)b();else{var d=b.J;"number"===typeof d?void 0===b.H?c.dynCall_v(d):c.dynCall_vi(d,b.H):d(void 0===b.H?null:b.H)}}}var oa=[],pa=[],qa=[],ra=[];function sa(){var a=c.preRun.shift();oa.unshift(a)}var L=0,M=null,N=null;c.preloadedImages={};c.preloadedAudios={};function D(a){if(c.onAbort)c.onAbort(a);x(a);y(a);fa=!0;throw new WebAssembly.RuntimeError("abort("+a+"). Build with -s ASSERTIONS=1 for more info.");}
20
- function ta(){var a=O;return String.prototype.startsWith?a.startsWith("data:application/octet-stream;base64,"):0===a.indexOf("data:application/octet-stream;base64,")}var O="glslang.wasm";if(!ta()){var ua=O;O=c.locateFile?c.locateFile(ua,v):v+ua}function wa(){try{if(A)return new Uint8Array(A);if(w)return w(O);throw"both async and sync fetching of the wasm failed";}catch(a){D(a)}}
21
- function xa(){return A||!t&&!u||"function"!==typeof fetch?new Promise(function(a){a(wa())}):fetch(O,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+O+"'";return a.arrayBuffer()}).catch(function(){return wa()})}pa.push({J:function(){ya()}});var za=[null,[],[]],P=0;function Aa(){P+=4;return C[P-4>>2]}var Q={},Ba={};
22
- function Ca(){if(!R){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"===typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:r},b;for(b in Ba)a[b]=Ba[b];var d=[];for(b in a)d.push(b+"="+a[b]);R=d}return R}var R;function S(a){return 0===a%4&&(0!==a%100||0===a%400)}function T(a,b){for(var d=0,e=0;e<=b;d+=a[e++]);return d}var U=[31,29,31,30,31,30,31,31,30,31,30,31],W=[31,28,31,30,31,30,31,31,30,31,30,31];
23
- function X(a,b){for(a=new Date(a.getTime());0<b;){var d=a.getMonth(),e=(S(a.getFullYear())?U:W)[d];if(b>e-a.getDate())b-=e-a.getDate()+1,a.setDate(1),11>d?a.setMonth(d+1):(a.setMonth(0),a.setFullYear(a.getFullYear()+1));else{a.setDate(a.getDate()+b);break}}return a}
24
- function Da(a,b,d,e){function g(a,b,d){for(a="number"===typeof a?a.toString():a||"";a.length<b;)a=d[0]+a;return a}function f(a,b){return g(a,b,"0")}function h(a,b){function V(a){return 0>a?-1:0<a?1:0}var d;0===(d=V(a.getFullYear()-b.getFullYear()))&&0===(d=V(a.getMonth()-b.getMonth()))&&(d=V(a.getDate()-b.getDate()));return d}function n(a){switch(a.getDay()){case 0:return new Date(a.getFullYear()-1,11,29);case 1:return a;case 2:return new Date(a.getFullYear(),0,3);case 3:return new Date(a.getFullYear(),
25
- 0,2);case 4:return new Date(a.getFullYear(),0,1);case 5:return new Date(a.getFullYear()-1,11,31);case 6:return new Date(a.getFullYear()-1,11,30)}}function z(a){a=X(new Date(a.A+1900,0,1),a.G);var b=n(new Date(a.getFullYear()+1,0,4));return 0>=h(n(new Date(a.getFullYear(),0,4)),a)?0>=h(b,a)?a.getFullYear()+1:a.getFullYear():a.getFullYear()-1}var m=C[e+40>>2];e={N:C[e>>2],M:C[e+4>>2],D:C[e+8>>2],C:C[e+12>>2],B:C[e+16>>2],A:C[e+20>>2],F:C[e+24>>2],G:C[e+28>>2],X:C[e+32>>2],L:C[e+36>>2],O:m?m?I(H,m,void 0):
26
- "":""};d=d?I(H,d,void 0):"";m={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var l in m)d=d.replace(new RegExp(l,"g"),m[l]);var F="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
27
- va="January February March April May June July August September October November December".split(" ");m={"%a":function(a){return F[a.F].substring(0,3)},"%A":function(a){return F[a.F]},"%b":function(a){return va[a.B].substring(0,3)},"%B":function(a){return va[a.B]},"%C":function(a){return f((a.A+1900)/100|0,2)},"%d":function(a){return f(a.C,2)},"%e":function(a){return g(a.C,2," ")},"%g":function(a){return z(a).toString().substring(2)},"%G":function(a){return z(a)},"%H":function(a){return f(a.D,2)},
28
- "%I":function(a){a=a.D;0==a?a=12:12<a&&(a-=12);return f(a,2)},"%j":function(a){return f(a.C+T(S(a.A+1900)?U:W,a.B-1),3)},"%m":function(a){return f(a.B+1,2)},"%M":function(a){return f(a.M,2)},"%n":function(){return"\n"},"%p":function(a){return 0<=a.D&&12>a.D?"AM":"PM"},"%S":function(a){return f(a.N,2)},"%t":function(){return"\t"},"%u":function(a){return a.F||7},"%U":function(a){var b=new Date(a.A+1900,0,1),d=0===b.getDay()?b:X(b,7-b.getDay());a=new Date(a.A+1900,a.B,a.C);return 0>h(d,a)?f(Math.ceil((31-
29
- d.getDate()+(T(S(a.getFullYear())?U:W,a.getMonth()-1)-31)+a.getDate())/7),2):0===h(d,b)?"01":"00"},"%V":function(a){var b=n(new Date(a.A+1900,0,4)),d=n(new Date(a.A+1901,0,4)),e=X(new Date(a.A+1900,0,1),a.G);return 0>h(e,b)?"53":0>=h(d,e)?"01":f(Math.ceil((b.getFullYear()<a.A+1900?a.G+32-b.getDate():a.G+1-b.getDate())/7),2)},"%w":function(a){return a.F},"%W":function(a){var b=new Date(a.A,0,1),d=1===b.getDay()?b:X(b,0===b.getDay()?1:7-b.getDay()+1);a=new Date(a.A+1900,a.B,a.C);return 0>h(d,a)?f(Math.ceil((31-
30
- d.getDate()+(T(S(a.getFullYear())?U:W,a.getMonth()-1)-31)+a.getDate())/7),2):0===h(d,b)?"01":"00"},"%y":function(a){return(a.A+1900).toString().substring(2)},"%Y":function(a){return a.A+1900},"%z":function(a){a=a.L;var b=0<=a;a=Math.abs(a)/60;return(b?"+":"-")+String("0000"+(a/60*100+a%60)).slice(-4)},"%Z":function(a){return a.O},"%%":function(){return"%"}};for(l in m)0<=d.indexOf(l)&&(d=d.replace(new RegExp(l,"g"),m[l](e)));l=Ea(d);if(l.length>b)return 0;B.set(l,a);return l.length-1}
31
- function Ea(a){for(var b=0,d=0;d<a.length;++d){var e=a.charCodeAt(d);55296<=e&&57343>=e&&(e=65536+((e&1023)<<10)|a.charCodeAt(++d)&1023);127>=e?++b:b=2047>=e?b+2:65535>=e?b+3:b+4}b=Array(b+1);ia(a,b,0,b.length);return b}
32
- var Ga={f:function(){},c:function(){c.___errno_location&&(C[c.___errno_location()>>2]=63);return-1},n:function(a,b){P=b;try{var d=Aa();var e=Aa();if(-1===d||0===e)var g=-28;else{var f=Q.K[d];if(f&&e===f.U){var h=(void 0).T(f.S);Q.R(d,h,e,f.flags,f.offset);(void 0).W(h);Q.K[d]=null;f.P&&Fa(f.V)}g=0}return g}catch(n){return D(n),-n.I}},a:function(){},b:function(){D()},k:function(a,b,d){H.set(H.subarray(b,b+d),a)},l:function(a){var b=B.length;if(2147418112<a)return!1;for(var d=1;4>=d;d*=2){var e=b*(1+
33
- .2/d);e=Math.min(e,a+100663296);e=Math.max(16777216,a,e);0<e%65536&&(e+=65536-e%65536);a:{try{E.grow(Math.min(2147418112,e)-J.byteLength+65535>>16);ma(E.buffer);var g=1;break a}catch(f){}g=void 0}if(g)return!0}return!1},d:function(a,b){var d=0;Ca().forEach(function(e,g){var f=b+d;g=C[a+4*g>>2]=f;for(f=0;f<e.length;++f)B[g++>>0]=e.charCodeAt(f);B[g>>0]=0;d+=e.length+1});return 0},e:function(a,b){var d=Ca();C[a>>2]=d.length;var e=0;d.forEach(function(a){e+=a.length+1});C[b>>2]=e;return 0},h:function(){return 0},
34
- j:function(){return 0},g:function(a,b,d,e){try{for(var g=0,f=0;f<d;f++){for(var h=C[b+8*f>>2],n=C[b+(8*f+4)>>2],z=0;z<n;z++){var m=H[h+z],l=za[a];0===m||10===m?((1===a?x:y)(I(l,0)),l.length=0):l.push(m)}g+=n}C[e>>2]=g;return 0}catch(F){return D(F),F.I}},memory:E,o:function(){},i:function(){},m:function(a,b,d,e){return Da(a,b,d,e)},table:ea},Ha=function(){function a(a){c.asm=a.exports;L--;c.monitorRunDependencies&&c.monitorRunDependencies(L);0==L&&(null!==M&&(clearInterval(M),M=null),N&&(a=N,N=null,
35
- a()))}function b(b){a(b.instance)}function d(a){return xa().then(function(a){return WebAssembly.instantiate(a,e)}).then(a,function(a){y("failed to asynchronously prepare wasm: "+a);D(a)})}var e={env:Ga,wasi_snapshot_preview1:Ga};L++;c.monitorRunDependencies&&c.monitorRunDependencies(L);if(c.instantiateWasm)try{return c.instantiateWasm(e,a)}catch(g){return y("Module.instantiateWasm callback failed with error: "+g),!1}(function(){if(A||"function"!==typeof WebAssembly.instantiateStreaming||ta()||"function"!==
36
- typeof fetch)return d(b);fetch(O,{credentials:"same-origin"}).then(function(a){return WebAssembly.instantiateStreaming(a,e).then(b,function(a){y("wasm streaming compile failed: "+a);y("falling back to ArrayBuffer instantiation");d(b)})})})();return{}}();c.asm=Ha;var ya=c.___wasm_call_ctors=function(){return(ya=c.___wasm_call_ctors=c.asm.p).apply(null,arguments)};c._convert_glsl_to_spirv=function(){return(c._convert_glsl_to_spirv=c.asm.q).apply(null,arguments)};
37
- c._destroy_output_buffer=function(){return(c._destroy_output_buffer=c.asm.r).apply(null,arguments)};c._malloc=function(){return(c._malloc=c.asm.s).apply(null,arguments)};var Fa=c._free=function(){return(Fa=c._free=c.asm.t).apply(null,arguments)},ja=c.stackSave=function(){return(ja=c.stackSave=c.asm.u).apply(null,arguments)},G=c.stackAlloc=function(){return(G=c.stackAlloc=c.asm.v).apply(null,arguments)},ka=c.stackRestore=function(){return(ka=c.stackRestore=c.asm.w).apply(null,arguments)};
38
- c.dynCall_vi=function(){return(c.dynCall_vi=c.asm.x).apply(null,arguments)};c.dynCall_v=function(){return(c.dynCall_v=c.asm.y).apply(null,arguments)};c.asm=Ha;var Y;c.then=function(a){if(Y)a(c);else{var b=c.onRuntimeInitialized;c.onRuntimeInitialized=function(){b&&b();a(c)}}return c};N=function Ia(){Y||Z();Y||(N=Ia)};
39
- function Z(){function a(){if(!Y&&(Y=!0,!fa)){K(pa);K(qa);if(c.onRuntimeInitialized)c.onRuntimeInitialized();if(c.postRun)for("function"==typeof c.postRun&&(c.postRun=[c.postRun]);c.postRun.length;){var a=c.postRun.shift();ra.unshift(a)}K(ra)}}if(!(0<L)){if(c.preRun)for("function"==typeof c.preRun&&(c.preRun=[c.preRun]);c.preRun.length;)sa();K(oa);0<L||(c.setStatus?(c.setStatus("Running..."),setTimeout(function(){setTimeout(function(){c.setStatus("")},1);a()},1)):a())}}c.run=Z;
40
- if(c.preInit)for("function"==typeof c.preInit&&(c.preInit=[c.preInit]);0<c.preInit.length;)c.preInit.pop()();Z();
41
-
42
-
43
- return Module
44
- }
45
- );
46
- })();
47
- // if (typeof exports === 'object' && typeof module === 'object')
48
- // module.exports = Module;
49
- // else if (typeof define === 'function' && define['amd'])
50
- // define([], function() { return Module; });
51
- // else if (typeof exports === 'object')
52
- // exports["Module"] = Module;
53
- // export default (() => {
54
- // const initialize = () => {
55
- // return new Promise(resolve => {
56
- // Module({
57
- // locateFile() {
58
- // const i = import.meta.url.lastIndexOf('/')
59
- // return import.meta.url.substring(0, i) + '/glslang.wasm';
60
- // },
61
- // onRuntimeInitialized() {
62
- // resolve({
63
- // compileGLSLZeroCopy: this.compileGLSLZeroCopy,
64
- // compileGLSL: this.compileGLSL,
65
- // });
66
- // },
67
- // });
68
- // });
69
- // };
70
-
71
- // let instance;
72
- // return () => {
73
- // if (!instance) {
74
- // instance = initialize();
75
- // }
76
- // return instance;
77
- // };
78
- // })();
79
- (function tryToExport(root, factory) {
80
- if (typeof exports === 'object' && typeof module === 'object')
81
- module.exports = factory();
82
- else if (typeof define === 'function' && define.amd)
83
- define("glslang", [], factory);
84
- else if (typeof exports === 'object')
85
- exports["glslang"] = factory();
86
- else
87
- root["glslang"] = factory();
88
- })(typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : this, () => {
89
- const initialize = (wasmPath) => {
90
- wasmPath = wasmPath || 'glslang.wasm'
91
- return new Promise(resolve => {
92
- Module({
93
- locateFile() {
94
- return wasmPath;
95
- },
96
- onRuntimeInitialized() {
97
- resolve({
98
- compileGLSLZeroCopy: this.compileGLSLZeroCopy,
99
- compileGLSL: this.compileGLSL,
100
- });
101
- },
102
- });
103
- });
104
- };
105
-
106
- let instance;
107
- return (wasmPath) => {
108
- if (!instance) {
109
- instance = initialize(wasmPath);
110
- }
111
- return instance;
112
- };
1
+
2
+ var Module = (function() {
3
+ var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
4
+
5
+ return (
6
+ function(Module) {
7
+ Module = Module || {};
8
+
9
+ var c;c||(c=typeof Module !== 'undefined' ? Module : {});
10
+ c.compileGLSLZeroCopy=function(a,b,d,e){d=!!d;switch(b){case "vertex":var g=0;break;case "fragment":g=4;break;case "compute":g=5;break;default:throw Error("shader_stage must be 'vertex', 'fragment', or 'compute'.");}switch(e||"1.0"){case "1.0":var f=65536;break;case "1.1":f=65792;break;case "1.2":f=66048;break;case "1.3":f=66304;break;case "1.4":f=66560;break;case "1.5":f=66816;break;default:throw Error("spirv_version must be '1.0' ~ '1.5'.");}e=c._malloc(4);b=c._malloc(4);var h=aa([a,g,d,f,e,b]);
11
+ d=k(e);a=k(b);c._free(e);c._free(b);if(0===h)throw Error("GLSL compilation failed");e={};d/=4;e.data=c.HEAPU32.subarray(d,d+a);e.free=function(){c._destroy_output_buffer(h)};return e};c.compileGLSL=function(a,b,d,e){a=c.compileGLSLZeroCopy(a,b,d,e);b=a.data.slice();a.free();return b};var p={},q;for(q in c)c.hasOwnProperty(q)&&(p[q]=c[q]);var r="./this.program",t=!1,u=!1;t="object"===typeof window;u="function"===typeof importScripts;var v="",w;
12
+ if(t||u)u?v=self.location.href:document.currentScript&&(v=document.currentScript.src),_scriptDir&&(v=_scriptDir),0!==v.indexOf("blob:")?v=v.substr(0,v.lastIndexOf("/")+1):v="",u&&(w=function(a){var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)});var x=c.print||console.log.bind(console),y=c.printErr||console.warn.bind(console);for(q in p)p.hasOwnProperty(q)&&(c[q]=p[q]);p=null;c.thisProgram&&(r=c.thisProgram);var A;
13
+ c.wasmBinary&&(A=c.wasmBinary);"object"!==typeof WebAssembly&&y("no native wasm support detected");function k(a){var b="i32";"*"===b.charAt(b.length-1)&&(b="i32");switch(b){case "i1":return B[a>>0];case "i8":return B[a>>0];case "i16":return ba[a>>1];case "i32":return C[a>>2];case "i64":return C[a>>2];case "float":return ca[a>>2];case "double":return da[a>>3];default:D("invalid type for getValue: "+b)}return null}var E,ea=new WebAssembly.Table({initial:859,maximum:859,element:"anyfunc"}),fa=!1;
14
+ function ha(){var a=c._convert_glsl_to_spirv;a||D("Assertion failed: Cannot call unknown function convert_glsl_to_spirv, make sure it is exported");return a}
15
+ function aa(a){var b="string number boolean number number number".split(" "),d={string:function(a){var b=0;if(null!==a&&void 0!==a&&0!==a){var d=(a.length<<2)+1;b=G(d);ia(a,H,b,d)}return b},array:function(a){var b=G(a.length);B.set(a,b);return b}},e=ha(),g=[],f=0;if(a)for(var h=0;h<a.length;h++){var n=d[b[h]];n?(0===f&&(f=ja()),g[h]=n(a[h])):g[h]=a[h]}a=e.apply(null,g);0!==f&&ka(f);return a}var la="undefined"!==typeof TextDecoder?new TextDecoder("utf8"):void 0;
16
+ function I(a,b,d){var e=b+d;for(d=b;a[d]&&!(d>=e);)++d;if(16<d-b&&a.subarray&&la)return la.decode(a.subarray(b,d));for(e="";b<d;){var g=a[b++];if(g&128){var f=a[b++]&63;if(192==(g&224))e+=String.fromCharCode((g&31)<<6|f);else{var h=a[b++]&63;g=224==(g&240)?(g&15)<<12|f<<6|h:(g&7)<<18|f<<12|h<<6|a[b++]&63;65536>g?e+=String.fromCharCode(g):(g-=65536,e+=String.fromCharCode(55296|g>>10,56320|g&1023))}}else e+=String.fromCharCode(g)}return e}
17
+ function ia(a,b,d,e){if(0<e){e=d+e-1;for(var g=0;g<a.length;++g){var f=a.charCodeAt(g);if(55296<=f&&57343>=f){var h=a.charCodeAt(++g);f=65536+((f&1023)<<10)|h&1023}if(127>=f){if(d>=e)break;b[d++]=f}else{if(2047>=f){if(d+1>=e)break;b[d++]=192|f>>6}else{if(65535>=f){if(d+2>=e)break;b[d++]=224|f>>12}else{if(d+3>=e)break;b[d++]=240|f>>18;b[d++]=128|f>>12&63}b[d++]=128|f>>6&63}b[d++]=128|f&63}}b[d]=0}}"undefined"!==typeof TextDecoder&&new TextDecoder("utf-16le");var J,B,H,ba,C,ca,da;
18
+ function ma(a){J=a;c.HEAP8=B=new Int8Array(a);c.HEAP16=ba=new Int16Array(a);c.HEAP32=C=new Int32Array(a);c.HEAPU8=H=new Uint8Array(a);c.HEAPU16=new Uint16Array(a);c.HEAPU32=new Uint32Array(a);c.HEAPF32=ca=new Float32Array(a);c.HEAPF64=da=new Float64Array(a)}var na=c.TOTAL_MEMORY||16777216;c.wasmMemory?E=c.wasmMemory:E=new WebAssembly.Memory({initial:na/65536});E&&(J=E.buffer);na=J.byteLength;ma(J);C[84916]=5582704;
19
+ function K(a){for(;0<a.length;){var b=a.shift();if("function"==typeof b)b();else{var d=b.J;"number"===typeof d?void 0===b.H?c.dynCall_v(d):c.dynCall_vi(d,b.H):d(void 0===b.H?null:b.H)}}}var oa=[],pa=[],qa=[],ra=[];function sa(){var a=c.preRun.shift();oa.unshift(a)}var L=0,M=null,N=null;c.preloadedImages={};c.preloadedAudios={};function D(a){if(c.onAbort)c.onAbort(a);x(a);y(a);fa=!0;throw new WebAssembly.RuntimeError("abort("+a+"). Build with -s ASSERTIONS=1 for more info.");}
20
+ function ta(){var a=O;return String.prototype.startsWith?a.startsWith("data:application/octet-stream;base64,"):0===a.indexOf("data:application/octet-stream;base64,")}var O="glslang.wasm";if(!ta()){var ua=O;O=c.locateFile?c.locateFile(ua,v):v+ua}function wa(){try{if(A)return new Uint8Array(A);if(w)return w(O);throw"both async and sync fetching of the wasm failed";}catch(a){D(a)}}
21
+ function xa(){return A||!t&&!u||"function"!==typeof fetch?new Promise(function(a){a(wa())}):fetch(O,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+O+"'";return a.arrayBuffer()}).catch(function(){return wa()})}pa.push({J:function(){ya()}});var za=[null,[],[]],P=0;function Aa(){P+=4;return C[P-4>>2]}var Q={},Ba={};
22
+ function Ca(){if(!R){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"===typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:r},b;for(b in Ba)a[b]=Ba[b];var d=[];for(b in a)d.push(b+"="+a[b]);R=d}return R}var R;function S(a){return 0===a%4&&(0!==a%100||0===a%400)}function T(a,b){for(var d=0,e=0;e<=b;d+=a[e++]);return d}var U=[31,29,31,30,31,30,31,31,30,31,30,31],W=[31,28,31,30,31,30,31,31,30,31,30,31];
23
+ function X(a,b){for(a=new Date(a.getTime());0<b;){var d=a.getMonth(),e=(S(a.getFullYear())?U:W)[d];if(b>e-a.getDate())b-=e-a.getDate()+1,a.setDate(1),11>d?a.setMonth(d+1):(a.setMonth(0),a.setFullYear(a.getFullYear()+1));else{a.setDate(a.getDate()+b);break}}return a}
24
+ function Da(a,b,d,e){function g(a,b,d){for(a="number"===typeof a?a.toString():a||"";a.length<b;)a=d[0]+a;return a}function f(a,b){return g(a,b,"0")}function h(a,b){function V(a){return 0>a?-1:0<a?1:0}var d;0===(d=V(a.getFullYear()-b.getFullYear()))&&0===(d=V(a.getMonth()-b.getMonth()))&&(d=V(a.getDate()-b.getDate()));return d}function n(a){switch(a.getDay()){case 0:return new Date(a.getFullYear()-1,11,29);case 1:return a;case 2:return new Date(a.getFullYear(),0,3);case 3:return new Date(a.getFullYear(),
25
+ 0,2);case 4:return new Date(a.getFullYear(),0,1);case 5:return new Date(a.getFullYear()-1,11,31);case 6:return new Date(a.getFullYear()-1,11,30)}}function z(a){a=X(new Date(a.A+1900,0,1),a.G);var b=n(new Date(a.getFullYear()+1,0,4));return 0>=h(n(new Date(a.getFullYear(),0,4)),a)?0>=h(b,a)?a.getFullYear()+1:a.getFullYear():a.getFullYear()-1}var m=C[e+40>>2];e={N:C[e>>2],M:C[e+4>>2],D:C[e+8>>2],C:C[e+12>>2],B:C[e+16>>2],A:C[e+20>>2],F:C[e+24>>2],G:C[e+28>>2],X:C[e+32>>2],L:C[e+36>>2],O:m?m?I(H,m,void 0):
26
+ "":""};d=d?I(H,d,void 0):"";m={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var l in m)d=d.replace(new RegExp(l,"g"),m[l]);var F="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
27
+ va="January February March April May June July August September October November December".split(" ");m={"%a":function(a){return F[a.F].substring(0,3)},"%A":function(a){return F[a.F]},"%b":function(a){return va[a.B].substring(0,3)},"%B":function(a){return va[a.B]},"%C":function(a){return f((a.A+1900)/100|0,2)},"%d":function(a){return f(a.C,2)},"%e":function(a){return g(a.C,2," ")},"%g":function(a){return z(a).toString().substring(2)},"%G":function(a){return z(a)},"%H":function(a){return f(a.D,2)},
28
+ "%I":function(a){a=a.D;0==a?a=12:12<a&&(a-=12);return f(a,2)},"%j":function(a){return f(a.C+T(S(a.A+1900)?U:W,a.B-1),3)},"%m":function(a){return f(a.B+1,2)},"%M":function(a){return f(a.M,2)},"%n":function(){return"\n"},"%p":function(a){return 0<=a.D&&12>a.D?"AM":"PM"},"%S":function(a){return f(a.N,2)},"%t":function(){return"\t"},"%u":function(a){return a.F||7},"%U":function(a){var b=new Date(a.A+1900,0,1),d=0===b.getDay()?b:X(b,7-b.getDay());a=new Date(a.A+1900,a.B,a.C);return 0>h(d,a)?f(Math.ceil((31-
29
+ d.getDate()+(T(S(a.getFullYear())?U:W,a.getMonth()-1)-31)+a.getDate())/7),2):0===h(d,b)?"01":"00"},"%V":function(a){var b=n(new Date(a.A+1900,0,4)),d=n(new Date(a.A+1901,0,4)),e=X(new Date(a.A+1900,0,1),a.G);return 0>h(e,b)?"53":0>=h(d,e)?"01":f(Math.ceil((b.getFullYear()<a.A+1900?a.G+32-b.getDate():a.G+1-b.getDate())/7),2)},"%w":function(a){return a.F},"%W":function(a){var b=new Date(a.A,0,1),d=1===b.getDay()?b:X(b,0===b.getDay()?1:7-b.getDay()+1);a=new Date(a.A+1900,a.B,a.C);return 0>h(d,a)?f(Math.ceil((31-
30
+ d.getDate()+(T(S(a.getFullYear())?U:W,a.getMonth()-1)-31)+a.getDate())/7),2):0===h(d,b)?"01":"00"},"%y":function(a){return(a.A+1900).toString().substring(2)},"%Y":function(a){return a.A+1900},"%z":function(a){a=a.L;var b=0<=a;a=Math.abs(a)/60;return(b?"+":"-")+String("0000"+(a/60*100+a%60)).slice(-4)},"%Z":function(a){return a.O},"%%":function(){return"%"}};for(l in m)0<=d.indexOf(l)&&(d=d.replace(new RegExp(l,"g"),m[l](e)));l=Ea(d);if(l.length>b)return 0;B.set(l,a);return l.length-1}
31
+ function Ea(a){for(var b=0,d=0;d<a.length;++d){var e=a.charCodeAt(d);55296<=e&&57343>=e&&(e=65536+((e&1023)<<10)|a.charCodeAt(++d)&1023);127>=e?++b:b=2047>=e?b+2:65535>=e?b+3:b+4}b=Array(b+1);ia(a,b,0,b.length);return b}
32
+ var Ga={f:function(){},c:function(){c.___errno_location&&(C[c.___errno_location()>>2]=63);return-1},n:function(a,b){P=b;try{var d=Aa();var e=Aa();if(-1===d||0===e)var g=-28;else{var f=Q.K[d];if(f&&e===f.U){var h=(void 0).T(f.S);Q.R(d,h,e,f.flags,f.offset);(void 0).W(h);Q.K[d]=null;f.P&&Fa(f.V)}g=0}return g}catch(n){return D(n),-n.I}},a:function(){},b:function(){D()},k:function(a,b,d){H.set(H.subarray(b,b+d),a)},l:function(a){var b=B.length;if(2147418112<a)return!1;for(var d=1;4>=d;d*=2){var e=b*(1+
33
+ .2/d);e=Math.min(e,a+100663296);e=Math.max(16777216,a,e);0<e%65536&&(e+=65536-e%65536);a:{try{E.grow(Math.min(2147418112,e)-J.byteLength+65535>>16);ma(E.buffer);var g=1;break a}catch(f){}g=void 0}if(g)return!0}return!1},d:function(a,b){var d=0;Ca().forEach(function(e,g){var f=b+d;g=C[a+4*g>>2]=f;for(f=0;f<e.length;++f)B[g++>>0]=e.charCodeAt(f);B[g>>0]=0;d+=e.length+1});return 0},e:function(a,b){var d=Ca();C[a>>2]=d.length;var e=0;d.forEach(function(a){e+=a.length+1});C[b>>2]=e;return 0},h:function(){return 0},
34
+ j:function(){return 0},g:function(a,b,d,e){try{for(var g=0,f=0;f<d;f++){for(var h=C[b+8*f>>2],n=C[b+(8*f+4)>>2],z=0;z<n;z++){var m=H[h+z],l=za[a];0===m||10===m?((1===a?x:y)(I(l,0)),l.length=0):l.push(m)}g+=n}C[e>>2]=g;return 0}catch(F){return D(F),F.I}},memory:E,o:function(){},i:function(){},m:function(a,b,d,e){return Da(a,b,d,e)},table:ea},Ha=function(){function a(a){c.asm=a.exports;L--;c.monitorRunDependencies&&c.monitorRunDependencies(L);0==L&&(null!==M&&(clearInterval(M),M=null),N&&(a=N,N=null,
35
+ a()))}function b(b){a(b.instance)}function d(a){return xa().then(function(a){return WebAssembly.instantiate(a,e)}).then(a,function(a){y("failed to asynchronously prepare wasm: "+a);D(a)})}var e={env:Ga,wasi_snapshot_preview1:Ga};L++;c.monitorRunDependencies&&c.monitorRunDependencies(L);if(c.instantiateWasm)try{return c.instantiateWasm(e,a)}catch(g){return y("Module.instantiateWasm callback failed with error: "+g),!1}(function(){if(A||"function"!==typeof WebAssembly.instantiateStreaming||ta()||"function"!==
36
+ typeof fetch)return d(b);fetch(O,{credentials:"same-origin"}).then(function(a){return WebAssembly.instantiateStreaming(a,e).then(b,function(a){y("wasm streaming compile failed: "+a);y("falling back to ArrayBuffer instantiation");d(b)})})})();return{}}();c.asm=Ha;var ya=c.___wasm_call_ctors=function(){return(ya=c.___wasm_call_ctors=c.asm.p).apply(null,arguments)};c._convert_glsl_to_spirv=function(){return(c._convert_glsl_to_spirv=c.asm.q).apply(null,arguments)};
37
+ c._destroy_output_buffer=function(){return(c._destroy_output_buffer=c.asm.r).apply(null,arguments)};c._malloc=function(){return(c._malloc=c.asm.s).apply(null,arguments)};var Fa=c._free=function(){return(Fa=c._free=c.asm.t).apply(null,arguments)},ja=c.stackSave=function(){return(ja=c.stackSave=c.asm.u).apply(null,arguments)},G=c.stackAlloc=function(){return(G=c.stackAlloc=c.asm.v).apply(null,arguments)},ka=c.stackRestore=function(){return(ka=c.stackRestore=c.asm.w).apply(null,arguments)};
38
+ c.dynCall_vi=function(){return(c.dynCall_vi=c.asm.x).apply(null,arguments)};c.dynCall_v=function(){return(c.dynCall_v=c.asm.y).apply(null,arguments)};c.asm=Ha;var Y;c.then=function(a){if(Y)a(c);else{var b=c.onRuntimeInitialized;c.onRuntimeInitialized=function(){b&&b();a(c)}}return c};N=function Ia(){Y||Z();Y||(N=Ia)};
39
+ function Z(){function a(){if(!Y&&(Y=!0,!fa)){K(pa);K(qa);if(c.onRuntimeInitialized)c.onRuntimeInitialized();if(c.postRun)for("function"==typeof c.postRun&&(c.postRun=[c.postRun]);c.postRun.length;){var a=c.postRun.shift();ra.unshift(a)}K(ra)}}if(!(0<L)){if(c.preRun)for("function"==typeof c.preRun&&(c.preRun=[c.preRun]);c.preRun.length;)sa();K(oa);0<L||(c.setStatus?(c.setStatus("Running..."),setTimeout(function(){setTimeout(function(){c.setStatus("")},1);a()},1)):a())}}c.run=Z;
40
+ if(c.preInit)for("function"==typeof c.preInit&&(c.preInit=[c.preInit]);0<c.preInit.length;)c.preInit.pop()();Z();
41
+
42
+
43
+ return Module
44
+ }
45
+ );
46
+ })();
47
+ // if (typeof exports === 'object' && typeof module === 'object')
48
+ // module.exports = Module;
49
+ // else if (typeof define === 'function' && define['amd'])
50
+ // define([], function() { return Module; });
51
+ // else if (typeof exports === 'object')
52
+ // exports["Module"] = Module;
53
+ // export default (() => {
54
+ // const initialize = () => {
55
+ // return new Promise(resolve => {
56
+ // Module({
57
+ // locateFile() {
58
+ // const i = import.meta.url.lastIndexOf('/')
59
+ // return import.meta.url.substring(0, i) + '/glslang.wasm';
60
+ // },
61
+ // onRuntimeInitialized() {
62
+ // resolve({
63
+ // compileGLSLZeroCopy: this.compileGLSLZeroCopy,
64
+ // compileGLSL: this.compileGLSL,
65
+ // });
66
+ // },
67
+ // });
68
+ // });
69
+ // };
70
+
71
+ // let instance;
72
+ // return () => {
73
+ // if (!instance) {
74
+ // instance = initialize();
75
+ // }
76
+ // return instance;
77
+ // };
78
+ // })();
79
+ (function tryToExport(root, factory) {
80
+ if (typeof exports === 'object' && typeof module === 'object')
81
+ module.exports = factory();
82
+ else if (typeof define === 'function' && define.amd)
83
+ define("glslang", [], factory);
84
+ else if (typeof exports === 'object')
85
+ exports["glslang"] = factory();
86
+ else
87
+ root["glslang"] = factory();
88
+ })(typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : this, () => {
89
+ const initialize = (wasmPath) => {
90
+ wasmPath = wasmPath || 'glslang.wasm'
91
+ return new Promise(resolve => {
92
+ Module({
93
+ locateFile() {
94
+ return wasmPath;
95
+ },
96
+ onRuntimeInitialized() {
97
+ resolve({
98
+ compileGLSLZeroCopy: this.compileGLSLZeroCopy,
99
+ compileGLSL: this.compileGLSL,
100
+ });
101
+ },
102
+ });
103
+ });
104
+ };
105
+
106
+ let instance;
107
+ return (wasmPath) => {
108
+ if (!instance) {
109
+ instance = initialize(wasmPath);
110
+ }
111
+ return instance;
112
+ };
113
113
  });