@pie-element/explicit-constructed-response 11.1.2-next.0 → 11.1.2-next.1

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 (227) hide show
  1. package/dist/author/alternateResponses.js +36 -39
  2. package/dist/author/alternateSection.d.ts +1 -1
  3. package/dist/author/alternateSection.js +55 -57
  4. package/dist/author/index.js +18 -19
  5. package/dist/author/main.d.ts +1 -1
  6. package/dist/author/main.js +139 -142
  7. package/dist/author/markupUtils.js +1 -1
  8. package/dist/browser/author/index.js +743 -863
  9. package/dist/browser/author/index.js.map +1 -1
  10. package/dist/browser/browser-BC3WygxE.js +360 -0
  11. package/dist/browser/browser-BC3WygxE.js.map +1 -0
  12. package/dist/browser/controller/index.js +63 -94
  13. package/dist/browser/controller/index.js.map +1 -1
  14. package/dist/browser/delivery/index.js +2 -2
  15. package/dist/browser/{dist-DnL6t4VO.js → dist-D5D48-XD.js} +10101 -10580
  16. package/dist/browser/dist-D5D48-XD.js.map +1 -0
  17. package/dist/browser/{main-V_e6PRBN.js → main-B4lD1zyg.js} +253 -235
  18. package/dist/browser/main-B4lD1zyg.js.map +1 -0
  19. package/dist/browser/print/index.js +5 -5
  20. package/dist/browser/print/index.js.map +1 -1
  21. package/dist/controller/index.d.ts +2 -2
  22. package/dist/controller/index.js +38 -41
  23. package/dist/delivery/main.js +28 -30
  24. package/dist/index.iife.js +100 -100
  25. package/dist/print/index.js +10 -10
  26. package/dist/runtime-support.d.ts +12 -0
  27. package/dist/runtime-support.js +12 -0
  28. package/package.json +14 -10
  29. package/dist/browser/browser-DbR93LB7.js +0 -950
  30. package/dist/browser/browser-DbR93LB7.js.map +0 -1
  31. package/dist/browser/dist-DnL6t4VO.js.map +0 -1
  32. package/dist/browser/main-V_e6PRBN.js.map +0 -1
  33. package/dist/browser/reduce-Bqz7DMQ0.js +0 -172
  34. package/dist/browser/reduce-Bqz7DMQ0.js.map +0 -1
  35. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
  36. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +0 -16
  37. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +0 -16
  38. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
  39. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +0 -16
  40. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
  41. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
  42. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +0 -11
  43. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +0 -14
  44. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
  45. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +0 -5
  46. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
  47. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +0 -12
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +0 -7
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +0 -10
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +0 -7
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +0 -7
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayReduce.js +0 -8
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +0 -7
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +0 -10
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +0 -8
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +0 -8
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +0 -8
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +0 -12
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +0 -57
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +0 -14
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseEach.js +0 -6
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseExtremum.js +0 -11
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +0 -7
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js +0 -13
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js +0 -5
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseForOwn.js +0 -8
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js +0 -10
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGt.js +0 -6
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js +0 -6
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +0 -8
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +0 -30
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +0 -9
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js +0 -26
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +0 -9
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js +0 -11
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +0 -12
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMap.js +0 -11
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js +0 -12
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js +0 -17
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePick.js +0 -10
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js +0 -13
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js +0 -8
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js +0 -9
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyOf.js +0 -8
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseReduce.js +0 -8
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +0 -9
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +0 -22
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +0 -14
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +0 -15
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +0 -8
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +0 -6
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +0 -10
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +0 -10
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +0 -8
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +0 -8
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +0 -8
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +0 -8
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +0 -8
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +0 -14
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +0 -8
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +0 -8
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseEach.js +0 -12
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js +0 -12
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createFind.js +0 -19
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +0 -35
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +0 -35
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +0 -32
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_escapeHtmlChar.js +0 -11
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.js +0 -9
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +0 -9
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +0 -9
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +0 -8
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js +0 -16
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +0 -5
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +0 -10
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +0 -11
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +0 -23
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js +0 -18
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +0 -7
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +0 -7
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +0 -13
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +0 -9
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +0 -9
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +0 -8
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +0 -33
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +0 -9
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js +0 -10
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +0 -12
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +0 -11
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +0 -7
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js +0 -7
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +0 -6
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +0 -9
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +0 -8
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +0 -7
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +0 -8
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +0 -13
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +0 -7
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +0 -7
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +0 -8
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +0 -9
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js +0 -8
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +0 -11
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +0 -5
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +0 -5
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +0 -13
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +0 -7
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +0 -6
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +0 -9
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +0 -6
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +0 -14
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +0 -7
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +0 -7
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +0 -6
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +0 -6
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +0 -16
  182. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +0 -10
  183. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +0 -10
  184. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
  185. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +0 -8
  186. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +0 -8
  187. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +0 -8
  188. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js +0 -50
  189. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js +0 -16
  190. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
  191. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/escape.js +0 -9
  192. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/find.js +0 -6
  193. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/findIndex.js +0 -13
  194. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/flatten.js +0 -7
  195. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/get.js +0 -8
  196. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js +0 -8
  197. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +0 -6
  198. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
  199. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
  200. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
  201. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
  202. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +0 -21
  203. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +0 -7
  204. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
  205. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
  206. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +0 -7
  207. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
  208. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
  209. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +0 -7
  210. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +0 -9
  211. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
  212. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +0 -9
  213. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
  214. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/map.js +0 -10
  215. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/max.js +0 -9
  216. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +0 -16
  217. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/now.js +0 -7
  218. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/pick.js +0 -8
  219. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js +0 -10
  220. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/reduce.js +0 -12
  221. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +0 -6
  222. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
  223. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/throttle.js +0 -15
  224. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toFinite.js +0 -8
  225. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toInteger.js +0 -8
  226. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +0 -19
  227. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +0 -7
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main-B4lD1zyg.js","names":["t","t","t","n","t","t","n","t","t","n","t","t","s","i","a","o","n","r","t","n","t","t","t","t","l","a","i","r","o","s","c","t","r","n","t","a","t","n","r","i"],"sources":["../../../../lib-react/correct-answer-toggle/dist/expander.js","../../../../lib-react/icons/dist/correct-response-icon.js","../../../../lib-react/correct-answer-toggle/dist/index.js","../../../../lib-react/mask-markup/dist/componentize.js","../../../../lib-react/mask-markup/dist/_virtual/_rolldown/runtime.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixProperties.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/cssUnitless.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/toUpperFirst.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixInfo.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/hyphenRe.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/camelize.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/separate.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/hyphenate.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/toLowerFirst.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixer.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/cssPrefix.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/hasOwn.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isObject.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isFunction.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleObject.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleString.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/index.js","../../../../lib-react/mask-markup/dist/serialization.js","../../../../lib-react/mask-markup/dist/mask.js","../../../../lib-react/mask-markup/dist/with-mask.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js","../../../../lib-react/mask-markup/dist/constructed-response.js","../../src/delivery/main.tsx"],"sourcesContent":["import { styled as e } from \"@mui/material/styles\";\nimport { CSSTransition as t } from \"react-transition-group\";\nimport { jsx as n } from \"react/jsx-runtime\";\nimport { useRef as r } from \"react\";\nimport i from \"prop-types\";\n//#region src/expander.tsx\nvar a = \"height ease-in 300ms, opacity ease-in 300ms\", o = e(\"div\")(() => ({\n\tposition: \"relative\",\n\theight: 0,\n\toverflow: \"hidden\",\n\tdisplay: \"flex\",\n\tvisibility: \"hidden\",\n\twidth: 0,\n\t\"&.enter\": {\n\t\ttransition: a,\n\t\topacity: 1,\n\t\theight: \"auto\",\n\t\twidth: \"auto\",\n\t\tvisibility: \"visible\",\n\t\tminHeight: \"25px\"\n\t},\n\t\"&.enter-done\": {\n\t\theight: \"auto\",\n\t\tvisibility: \"visible\",\n\t\twidth: \"auto\",\n\t\tminHeight: \"25px\"\n\t},\n\t\"&.exit\": {\n\t\ttransition: a,\n\t\topacity: 0,\n\t\theight: 0,\n\t\tvisibility: \"visible\",\n\t\twidth: 0\n\t},\n\t\"&.exit-done\": {\n\t\topacity: 0,\n\t\tvisibility: \"hidden\",\n\t\theight: 0,\n\t\twidth: 0\n\t}\n})), s = (e) => {\n\tlet { show: i, children: a, className: s } = e, c = r(null);\n\treturn /* @__PURE__ */ n(t, {\n\t\tnodeRef: c,\n\t\tin: i,\n\t\tappear: !0,\n\t\tmountOnEnter: !1,\n\t\ttimeout: 300,\n\t\tclassNames: {\n\t\t\tenter: \"enter\",\n\t\t\tenterDone: \"enter-done\",\n\t\t\texit: \"exit\",\n\t\t\texitDone: \"exit-done\"\n\t\t},\n\t\tchildren: /* @__PURE__ */ n(o, {\n\t\t\tref: c,\n\t\t\tclassName: s,\n\t\t\tchildren: a\n\t\t})\n\t});\n};\ns.propTypes = {\n\tshow: i.bool.isRequired,\n\tclassName: i.string,\n\tchildren: i.oneOfType([i.arrayOf(i.node), i.node]).isRequired\n};\n//#endregion\nexport { s as default };\n","import \"react\";\nimport e from \"prop-types\";\nimport { jsx as t, jsxs as n } from \"react/jsx-runtime\";\nimport { styled as r } from \"@mui/material/styles\";\n//#region src/correct-response-icon.tsx\nvar i = ({ bgFill: e, fgFill: r }) => /* @__PURE__ */ n(\"svg\", {\n\tpreserveAspectRatio: \"xMinYMin meet\",\n\tversion: \"1.1\",\n\tviewBox: \"-283 359 34 35\",\n\tstyle: { enableBackground: \"new -283 359 34 35\" },\n\tchildren: [\n\t\t/* @__PURE__ */ t(\"circle\", {\n\t\t\tcx: \"-266\",\n\t\t\tcy: \"375.9\",\n\t\t\tr: \"14\",\n\t\t\tfill: e\n\t\t}),\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\td: \"M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z\\n M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z\",\n\t\t\tfill: e\n\t\t}),\n\t\t/* @__PURE__ */ t(\"polygon\", {\n\t\t\tpoints: \"-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6\",\n\t\t\tfill: r\n\t\t})\n\t]\n});\ni.propTypes = {\n\tbgFill: e.string.isRequired,\n\tfgFill: e.string.isRequired\n};\nvar a = ({ bgFill: e, fgFill: r, borderFill: i }) => /* @__PURE__ */ n(\"svg\", {\n\tpreserveAspectRatio: \"xMinYMin meet\",\n\tversion: \"1.1\",\n\tviewBox: \"-129.5 127 34 35\",\n\tstyle: { enableBackground: \"new -129.5 127 34 35\" },\n\tchildren: [\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\tstyle: {\n\t\t\t\tfill: \"#D0CAC5\",\n\t\t\t\tstroke: \"#E6E3E0\",\n\t\t\t\tstrokeWidth: .75,\n\t\t\t\tstrokeMiterlimit: 10\n\t\t\t},\n\t\t\td: \"M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5\\n C-97.4,153.5-104.3,160.4-112.9,160.4z\"\n\t\t}),\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\tstyle: {\n\t\t\t\tfill: \"#B3ABA4\",\n\t\t\t\tstroke: \"#CDC7C2\",\n\t\t\t\tstrokeWidth: .5,\n\t\t\t\tstrokeMiterlimit: 10\n\t\t\t},\n\t\t\td: \"M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z\"\n\t\t}),\n\t\t/* @__PURE__ */ t(\"circle\", {\n\t\t\tcx: \"-114.2\",\n\t\t\tcy: \"143.5\",\n\t\t\tr: \"14\",\n\t\t\tfill: e\n\t\t}),\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\td: \"M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z\\n M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z\",\n\t\t\tfill: i\n\t\t}),\n\t\t/* @__PURE__ */ t(\"polygon\", {\n\t\t\tpoints: \"-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2\",\n\t\t\tfill: r\n\t\t})\n\t]\n});\na.propTypes = {\n\tbgFill: e.string.isRequired,\n\tfgFill: e.string.isRequired,\n\tborderFill: e.string.isRequired\n};\nvar o = r(\"div\")(({ size: e }) => ({\n\twidth: e || \"25px\",\n\theight: e || \"25px\"\n})), s = ({ open: e, size: n }) => /* @__PURE__ */ t(o, {\n\tsize: n,\n\tchildren: e ? /* @__PURE__ */ t(i, {\n\t\tbgFill: \"#bce2ff\",\n\t\tfgFill: \"#1a9cff\"\n\t}) : /* @__PURE__ */ t(a, {\n\t\tbgFill: \"white\",\n\t\tfgFill: \"#1a9cff\",\n\t\tborderFill: \"#bce2ff\"\n\t})\n});\ns.propTypes = {\n\topen: e.bool,\n\tsize: e.string\n}, s.defaultProps = { open: !1 };\n//#endregion\nexport { s as default };\n","import e from \"./expander.js\";\nimport { styled as t } from \"@mui/material/styles\";\nimport { CSSTransition as n } from \"react-transition-group\";\nimport { CorrectResponse as r } from \"@pie-lib/icons\";\nimport * as i from \"@pie-lib/render-ui\";\nimport { Readable as a, color as o } from \"@pie-lib/render-ui\";\nimport { jsx as s, jsxs as c } from \"react/jsx-runtime\";\nimport l from \"react\";\nimport u from \"prop-types\";\nimport d from \"@pie-lib/translator\";\n//#region src/index.tsx\nfunction f(e) {\n\treturn typeof e == \"function\" || typeof e == \"object\" && !!e && typeof e.$$typeof == \"symbol\";\n}\nfunction p(e, t) {\n\treturn !e || f(e) ? e : f(e.default) ? e.default : t && f(e[t]) ? e[t] : t && f(e[t]?.default) ? e[t].default : e;\n}\nvar m = p(a, \"Readable\") || p(_.Readable, \"Readable\"), h = i, g = h.default, _ = g && typeof g == \"object\" ? g : h, { translator: v } = d, y = {\n\tWebkitTouchCallout: \"none\",\n\tWebkitUserSelect: \"none\",\n\tKhtmlUserSelect: \"none\",\n\tMozUserSelect: \"none\",\n\tmsUserSelect: \"none\",\n\tuserSelect: \"none\"\n}, b = t(\"div\")(() => ({\n\twidth: \"100%\",\n\tcursor: \"pointer\"\n})), x = t(\"div\")(() => ({\n\tmargin: \"0 auto\",\n\ttextAlign: \"center\",\n\tdisplay: \"flex\"\n})), S = t(\"div\")(() => ({\n\twidth: \"fit-content\",\n\tminWidth: \"140px\",\n\talignSelf: \"center\",\n\tverticalAlign: \"middle\",\n\tcolor: `var(--correct-answer-toggle-label-color, ${o.text()})`,\n\tfontWeight: \"normal\",\n\t...y\n})), C = t(\"div\")(() => ({\n\tposition: \"absolute\",\n\twidth: \"25px\",\n\t\"&.enter\": { opacity: \"0\" },\n\t\"&.enter-active\": {\n\t\topacity: \"1\",\n\t\ttransition: \"opacity 0.3s ease-in\"\n\t},\n\t\"&.exit\": { opacity: \"1\" },\n\t\"&.exit-active\": {\n\t\topacity: \"0\",\n\t\ttransition: \"opacity 0.3s ease-in\"\n\t}\n})), w = t(\"div\")(() => ({\n\twidth: \"25px\",\n\tmarginRight: \"5px\",\n\tdisplay: \"flex\",\n\talignItems: \"center\"\n})), T = class t extends l.Component {\n\tstatic propTypes = {\n\t\tonToggle: u.func,\n\t\ttoggled: u.bool,\n\t\tshow: u.bool,\n\t\thideMessage: u.string,\n\t\tshowMessage: u.string,\n\t\tclassName: u.string,\n\t\tlanguage: u.string\n\t};\n\tstatic defaultProps = {\n\t\tshowMessage: \"Show correct answer\",\n\t\thideMessage: \"Hide correct answer\",\n\t\tshow: !1,\n\t\ttoggled: !1\n\t};\n\tconstructor(e) {\n\t\tsuper(e), this.state = { show: e.show }, this.openIconRef = l.createRef(), this.closedIconRef = l.createRef(), t.defaultProps = {\n\t\t\t...t.defaultProps,\n\t\t\tshowMessage: v.t(\"common:showCorrectAnswer\", { lng: e.language }),\n\t\t\thideMessage: v.t(\"common:hideCorrectAnswer\", { lng: e.language })\n\t\t};\n\t}\n\tonClick() {\n\t\tthis.props.onToggle(!this.props.toggled);\n\t}\n\tonTouch(e) {\n\t\te.preventDefault(), this.props.onToggle(!this.props.toggled);\n\t}\n\tUNSAFE_componentWillReceiveProps(e) {\n\t\tthis.setState({ show: e.show }), e.language !== this.props?.language && (t.defaultProps = {\n\t\t\t...t.defaultProps,\n\t\t\tshowMessage: v.t(\"common:showCorrectAnswer\", { lng: e.language }),\n\t\t\thideMessage: v.t(\"common:hideCorrectAnswer\", { lng: e.language })\n\t\t});\n\t}\n\trender() {\n\t\tlet { className: t, toggled: i, hideMessage: a, showMessage: o } = this.props;\n\t\treturn /* @__PURE__ */ s(b, {\n\t\t\tclassName: t,\n\t\t\tchildren: /* @__PURE__ */ s(e, {\n\t\t\t\tshow: this.state.show,\n\t\t\t\tchildren: /* @__PURE__ */ c(x, {\n\t\t\t\t\tonClick: this.onClick.bind(this),\n\t\t\t\t\tonTouchEnd: this.onTouch.bind(this),\n\t\t\t\t\tchildren: [/* @__PURE__ */ c(w, { children: [/* @__PURE__ */ s(n, {\n\t\t\t\t\t\tnodeRef: this.openIconRef,\n\t\t\t\t\t\ttimeout: 400,\n\t\t\t\t\t\tin: i,\n\t\t\t\t\t\texit: !i,\n\t\t\t\t\t\tclassNames: {\n\t\t\t\t\t\t\tenter: \"enter\",\n\t\t\t\t\t\t\tenterActive: \"enter-active\",\n\t\t\t\t\t\t\texit: \"exit\",\n\t\t\t\t\t\t\texitActive: \"exit-active\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: /* @__PURE__ */ s(C, {\n\t\t\t\t\t\t\tref: this.openIconRef,\n\t\t\t\t\t\t\tchildren: /* @__PURE__ */ s(r, { open: i }, \"correct-open\")\n\t\t\t\t\t\t})\n\t\t\t\t\t}), /* @__PURE__ */ s(n, {\n\t\t\t\t\t\tnodeRef: this.closedIconRef,\n\t\t\t\t\t\ttimeout: 5e3,\n\t\t\t\t\t\tin: !i,\n\t\t\t\t\t\texit: i,\n\t\t\t\t\t\tclassNames: {\n\t\t\t\t\t\t\tenter: \"enter\",\n\t\t\t\t\t\t\tenterActive: \"enter-active\",\n\t\t\t\t\t\t\texit: \"exit\",\n\t\t\t\t\t\t\texitActive: \"exit-active\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: /* @__PURE__ */ s(C, {\n\t\t\t\t\t\t\tref: this.closedIconRef,\n\t\t\t\t\t\t\tchildren: /* @__PURE__ */ s(r, { open: i }, \"correct-closed\")\n\t\t\t\t\t\t})\n\t\t\t\t\t})] }), /* @__PURE__ */ s(m, {\n\t\t\t\t\t\tfalse: !0,\n\t\t\t\t\t\tchildren: /* @__PURE__ */ s(S, {\n\t\t\t\t\t\t\t\"aria-hidden\": !this.state.show,\n\t\t\t\t\t\t\tchildren: i ? a : o\n\t\t\t\t\t\t})\n\t\t\t\t\t})]\n\t\t\t\t})\n\t\t\t})\n\t\t});\n\t}\n};\n//#endregion\nexport { T as CorrectAnswerToggle, T as default };\n","//#region src/componentize.tsx\nvar e = /\\{\\{(\\d+)\\}\\}/g, t = (t, n) => t ? { markup: t.replace(e, (e, t) => `<span data-component=\"${n}\" data-id=\"${t}\"></span>`) } : { markup: \"\" };\n//#endregion\nexport { t as default };\n","//#region \\0rolldown/runtime.js\nvar e = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports);\n//#endregion\nexport { e as __commonJSMin };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixProperties.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tt.exports = {\n\t\t\"border-radius\": 1,\n\t\t\"border-top-left-radius\": 1,\n\t\t\"border-top-right-radius\": 1,\n\t\t\"border-bottom-left-radius\": 1,\n\t\t\"border-bottom-right-radius\": 1,\n\t\t\"box-shadow\": 1,\n\t\torder: 1,\n\t\tflex: function(e, t) {\n\t\t\treturn [t + \"box-flex\"];\n\t\t},\n\t\t\"box-flex\": 1,\n\t\t\"box-align\": 1,\n\t\tanimation: 1,\n\t\t\"animation-duration\": 1,\n\t\t\"animation-name\": 1,\n\t\ttransition: 1,\n\t\t\"transition-duration\": 1,\n\t\ttransform: 1,\n\t\t\"transform-style\": 1,\n\t\t\"transform-origin\": 1,\n\t\t\"backface-visibility\": 1,\n\t\tperspective: 1,\n\t\t\"box-pack\": 1\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_prefixProperties };\n","\"use exports\";\nimport { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/cssUnitless.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tt.exports = {\n\t\tanimation: 1,\n\t\t\"column-count\": 1,\n\t\tcolumns: 1,\n\t\t\"font-weight\": 1,\n\t\topacity: 1,\n\t\t\"order \": 1,\n\t\t\"z-index\": 1,\n\t\tzoom: 1,\n\t\tflex: 1,\n\t\t\"box-flex\": 1,\n\t\ttransform: 1,\n\t\tperspective: 1,\n\t\t\"box-pack\": 1,\n\t\t\"box-align\": 1,\n\t\tcolspan: 1,\n\t\trowspan: 1\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_cssUnitless };\n","import { __commonJSMin as e } from \"../../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/toUpperFirst.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tt.exports = function(e) {\n\t\treturn e.length ? e.charAt(0).toUpperCase() + e.substring(1) : e;\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_toUpperFirst };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_toUpperFirst as t } from \"./stringUtils/toUpperFirst.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixInfo.js\nvar n = /* @__PURE__ */ e(((e, n) => {\n\tvar r = t(), i = /^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/, a = typeof document > \"u\" ? {} : document.documentElement.style;\n\tn.exports = (function() {\n\t\tvar e = (function() {\n\t\t\tfor (var e in a) if (i.test(e)) return e.match(i)[0];\n\t\t\treturn \"WebkitOpacity\" in a ? \"Webkit\" : \"KhtmlOpacity\" in a ? \"Khtml\" : \"\";\n\t\t})();\n\t\treturn {\n\t\t\tstyle: e,\n\t\t\tcss: \"-\" + e.toLowerCase() + \"-\",\n\t\t\tdom: {\n\t\t\t\tWebkit: \"WebKit\",\n\t\t\t\tms: \"MS\",\n\t\t\t\to: \"WebKit\"\n\t\t\t}[e] || r(e)\n\t\t};\n\t})();\n}));\n//#endregion\nexport default n();\nexport { n as require_prefixInfo };\n","import { __commonJSMin as e } from \"../../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/hyphenRe.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tt.exports = /[-\\s]+(.)?/g;\n}));\n//#endregion\nexport default t();\nexport { t as require_hyphenRe };\n","import { __commonJSMin as e } from \"../../../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_hyphenRe as t } from \"./hyphenRe.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/camelize.js\nvar n = /* @__PURE__ */ e(((e, n) => {\n\tvar r = function(e, t) {\n\t\treturn t ? t.toUpperCase() : \"\";\n\t}, i = t();\n\tn.exports = function(e) {\n\t\treturn e ? e.replace(i, r) : \"\";\n\t};\n}));\n//#endregion\nexport default n();\nexport { n as require_camelize };\n","import { __commonJSMin as e } from \"../../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/separate.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tvar n = /::/g, r = /([A-Z]+)([A-Z][a-z])/g, i = /([a-z\\d])([A-Z])/g, a = /_/g;\n\tt.exports = function(e, t) {\n\t\treturn e ? e.replace(n, \"/\").replace(r, \"$1_$2\").replace(i, \"$1_$2\").replace(a, t || \"-\") : \"\";\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_separate };\n","import { __commonJSMin as e } from \"../../../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_separate as t } from \"./separate.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/hyphenate.js\nvar n = /* @__PURE__ */ e(((e, n) => {\n\tvar r = t();\n\tn.exports = function(e) {\n\t\treturn r(e).toLowerCase();\n\t};\n}));\n//#endregion\nexport default n();\nexport { n as require_hyphenate };\n","import { __commonJSMin as e } from \"../../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/toLowerFirst.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tt.exports = function(e) {\n\t\treturn e.length ? e.charAt(0).toLowerCase() + e.substring(1) : e;\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_toLowerFirst };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_prefixProperties as t } from \"./prefixProperties.js\";\nimport { require_toUpperFirst as n } from \"./stringUtils/toUpperFirst.js\";\nimport { require_prefixInfo as r } from \"./prefixInfo.js\";\nimport { require_camelize as i } from \"./stringUtils/camelize.js\";\nimport { require_hyphenate as a } from \"./stringUtils/hyphenate.js\";\nimport { require_toLowerFirst as o } from \"./stringUtils/toLowerFirst.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixer.js\nvar s = /* @__PURE__ */ e(((e, s) => {\n\tvar c = i(), l = a(), u = o(), d = n(), f = r(), p = t(), m = typeof document > \"u\" ? {} : document.documentElement.style;\n\ts.exports = function(e) {\n\t\treturn function(t, n) {\n\t\t\tn ||= {};\n\t\t\tvar r = u(c(t)), i = l(t), a = e ? r : i, o = f.style ? e ? f.style : f.css : \"\";\n\t\t\tif (r in m) return n.asString ? a : [a];\n\t\t\tvar s = a, h = p[i], g = [];\n\t\t\tif (e && (s = d(a)), typeof h == \"function\") {\n\t\t\t\tvar _ = h(a, o) || [];\n\t\t\t\t_ && !Array.isArray(_) && (_ = [_]), _.length && (_ = _.map(function(t) {\n\t\t\t\t\treturn e ? u(c(t)) : l(t);\n\t\t\t\t})), g = g.concat(_);\n\t\t\t}\n\t\t\treturn o && g.push(o + s), g.push(a), n.asString || g.length == 1 ? g[0] : g;\n\t\t};\n\t};\n}));\n//#endregion\nexport default s();\nexport { s as require_prefixer };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_prefixer as t } from \"./prefixer.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/cssPrefix.js\nvar n = /* @__PURE__ */ e(((e, n) => {\n\tn.exports = t()();\n}));\n//#endregion\nexport default n();\nexport { n as require_cssPrefix };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/hasOwn.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tvar n = Object.prototype.hasOwnProperty;\n\tt.exports = function(e, t) {\n\t\treturn n.call(e, t);\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_hasOwn };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isObject.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tvar n = Object.prototype.toString;\n\tt.exports = function(e) {\n\t\treturn !!e && n.call(e) === \"[object Object]\";\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_isObject };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isFunction.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tvar n = Object.prototype.toString;\n\tt.exports = function(e) {\n\t\treturn n.apply(e) === \"[object Function]\";\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_isFunction };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_cssUnitless as t } from \"./cssUnitless.js\";\nimport { require_prefixInfo as n } from \"./prefixInfo.js\";\nimport { require_camelize as r } from \"./stringUtils/camelize.js\";\nimport { require_hyphenate as i } from \"./stringUtils/hyphenate.js\";\nimport { require_cssPrefix as a } from \"./cssPrefix.js\";\nimport { require_hasOwn as o } from \"./hasOwn.js\";\nimport { require_isObject as s } from \"./isObject.js\";\nimport { require_isFunction as c } from \"./isFunction.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleObject.js\nvar l = /* @__PURE__ */ e(((e, l) => {\n\tn();\n\tvar u = a(), d = i(), f = r(), p = o(), m = s(), h = c(), g = function(e, t, n, r) {\n\t\tu(t).forEach(function(t) {\n\t\t\te[r ? r(t) : t] = n;\n\t\t});\n\t}, _ = function(e) {\n\t\te = (e || \"\").split(\";\");\n\t\tvar t = {};\n\t\treturn e.forEach(function(e) {\n\t\t\tvar n = e.split(\":\");\n\t\t\tn.length == 2 && (t[n[0].trim()] = n[1].trim());\n\t\t}), t;\n\t}, v = { cssUnitless: t() }, y = function(e, t, n, r) {\n\t\ttypeof e == \"string\" && (e = _(e)), t ||= v, t.cssUnitless = t.cssUnitless || v.cssUnitless, r ||= {};\n\t\tvar i = t.scope || {}, a = t.addUnits == null ? i && i.addUnits != null ? i.addUnits : !0 : t.addUnits, o = (t.cssUnitless == null ? i ? i.cssUnitless : null : t.cssUnitless) || {}, s = (t.cssUnit || i ? i.cssUnit : null) || \"px\", c = t.prefixProperties || (i ? i.prefixProperties : null) || {}, l = t.camelize ? f : d, u, b, x, S, C, w, T, E;\n\t\tfor (x in e) if (p(e, x)) {\n\t\t\tif (S = e[x], b = d(n ? n + x : x), u = !1, E = !1, h(S) && (T = S.call(i || e, S, x, b, e), m(T) && T.value != null ? (S = T.value, E = T.prefix, b = T.name ? d(T.name) : b) : S = T), C = typeof S, w = C == \"number\" || C == \"string\" && S != \"\" && S * 1 == S, S == null || b == null || b === \"\") continue;\n\t\t\tif ((w || C == \"string\") && (u = !0), !u && S.value != null && S.prefix && (u = !0, E = S.prefix, S = S.value), u) {\n\t\t\t\tif (E ||= !!c[b], w && (S = a && !(b in o) ? S + s : S + \"\"), (b == \"border\" || !b.indexOf(\"border\") && !~b.indexOf(\"radius\") && !~b.indexOf(\"width\")) && w && (b += \"-width\"), !b.indexOf(\"border-radius-\") && (b.replace(/border(-radius)(-(.*))/, function(e, t, n) {\n\t\t\t\t\tvar r = {\n\t\t\t\t\t\t\"-top\": [\"-top-left\", \"-top-right\"],\n\t\t\t\t\t\t\"-left\": [\"-top-left\", \"-bottom-left\"],\n\t\t\t\t\t\t\"-right\": [\"-top-right\", \"-bottom-right\"],\n\t\t\t\t\t\t\"-bottom\": [\"-bottom-left\", \"-bottom-right\"]\n\t\t\t\t\t};\n\t\t\t\t\tn in r ? (b = [], r[n].forEach(function(e) {\n\t\t\t\t\t\tb.push(\"border\" + e + t);\n\t\t\t\t\t})) : b = \"border\" + n + t;\n\t\t\t\t}), Array.isArray(b))) {\n\t\t\t\t\tb.forEach(function(e) {\n\t\t\t\t\t\tE ? g(r, e, S, l) : r[l(e)] = S;\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tE ? g(r, b, S, l) : r[l(b)] = S;\n\t\t\t} else y(S, t, b + \"-\", r);\n\t\t}\n\t\treturn r;\n\t};\n\tl.exports = y;\n}));\n//#endregion\nexport default l();\nexport { l as require_toStyleObject };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_hasOwn as t } from \"./hasOwn.js\";\nimport { require_toStyleObject as n } from \"./toStyleObject.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleString.js\nvar r = /* @__PURE__ */ e(((e, r) => {\n\tvar i = n(), a = t();\n\tr.exports = function(e, t) {\n\t\te = i(e, t);\n\t\tvar n = [], r;\n\t\tfor (r in e) a(e, r) && n.push(r + \": \" + e[r]);\n\t\treturn n.join(\"; \");\n\t};\n}));\n//#endregion\nexport default r();\nexport { r as require_toStyleString };\n","import { __commonJSMin as e } from \"../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_prefixProperties as t } from \"./src/prefixProperties.js\";\nimport { require_cssUnitless as n } from \"./src/cssUnitless.js\";\nimport { require_toStyleObject as r } from \"./src/toStyleObject.js\";\nimport { require_toStyleString as i } from \"./src/toStyleString.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/index.js\nvar a = /* @__PURE__ */ e(((e, a) => {\n\ta.exports = {\n\t\tprefixProperties: t(),\n\t\tcssUnitless: n(),\n\t\tobject: r(),\n\t\tstring: i()\n\t};\n}));\n//#endregion\nexport default a();\nexport { a as require_to_style };\n","import { require_to_style as e } from \"./node_modules/.bun/to-style@1.3.3/node_modules/to-style/index.js\";\nimport t from \"debug\";\n//#region src/serialization.ts\nvar n = e(), r = t(\"@pie-lib:mask-markup:serialization\"), i = [\"span\"], a = [\n\t\"em\",\n\t\"strong\",\n\t\"u\"\n], o = 3, s = 8, c = 1, l = (e) => {\n\tif (!e.attributes || e.attributes.length <= 0) return;\n\tlet t = {}, n;\n\tfor (n = 0; n < e.attributes.length; n++) {\n\t\tlet r = e.attributes[n];\n\t\tt[r.name] = r.value;\n\t}\n\treturn t;\n}, u = (e) => i.includes(e) ? \"inline\" : a.includes(e) ? \"mark\" : \"block\", d = (e) => {\n\tlet t = /([\\w-]*)\\s*:\\s*([^;]*)/g, n, r = {};\n\tfor (; n = t.exec(e);) r[n[1]] = n[2].trim();\n\treturn r;\n}, f = (e) => (0, n.object)(e, {\n\tcamelize: !0,\n\taddUnits: !1\n}), p = (e, t) => f(d(e.getAttribute(t))), m = (e, t, n) => {\n\tlet r = e.getAttribute(n);\n\treturn delete t.class, r;\n}, h = (e) => (t, n) => {\n\tif (!e.getAttribute) return t;\n\tif (e.getAttribute(n)) switch (n) {\n\t\tcase \"style\":\n\t\t\tt.style = p(e, n);\n\t\t\tbreak;\n\t\tcase \"class\":\n\t\t\tt.className = m(e, t, n);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tt[n] = e.getAttribute(n);\n\t\t\tbreak;\n\t}\n\treturn t;\n}, g = [\n\t\"border\",\n\t\"class\",\n\t\"style\"\n], _ = {\n\tb: \"bold\",\n\tem: \"italic\",\n\tu: \"underline\",\n\ts: \"strikethrough\",\n\tcode: \"code\",\n\tstrong: \"strong\"\n}, v = (e, t = []) => {\n\tif (e.nodeType === s) return null;\n\tif (e.nodeType === o) {\n\t\tlet n = { text: e.textContent };\n\t\treturn t.length > 0 && (n.marks = t.map((e) => ({\n\t\t\ttype: e,\n\t\t\tdata: void 0\n\t\t}))), {\n\t\t\tobject: \"text\",\n\t\t\tleaves: [n]\n\t\t};\n\t}\n\tif (e.nodeType === c) {\n\t\tlet n = e.tagName.toLowerCase(), i = _[n];\n\t\tif (i) return r(\"[deserialize] mark: \", i), {\n\t\t\t_flatten: !0,\n\t\t\tnodes: y(e.childNodes, [...t, i])\n\t\t};\n\t\tif (n === \"math\") return {\n\t\t\tisMath: !0,\n\t\t\tnodes: [e]\n\t\t};\n\t\tlet a = l(e) || {};\n\t\tn === \"audio\" && a.controls === \"\" && (a.controls = !0);\n\t\tlet o = g.reduce(h(e), { ...a }), s = u(n), c = y(e.childNodes, t);\n\t\treturn {\n\t\t\tobject: s,\n\t\t\ttype: n,\n\t\t\tdata: {\n\t\t\t\tdataset: { ...e.dataset },\n\t\t\t\tattributes: { ...o }\n\t\t\t},\n\t\t\tnodes: c\n\t\t};\n\t}\n\treturn null;\n}, y = (e, t = []) => {\n\tlet n = [];\n\tfor (let r = 0; r < e.length; r++) {\n\t\tlet i = v(e[r], t);\n\t\ti !== null && (i._flatten && i.nodes ? n.push(...i.nodes) : n.push(i));\n\t}\n\treturn n;\n}, b = (e) => {\n\tif (!e || !e.trim()) return {\n\t\tobject: \"value\",\n\t\tdocument: {\n\t\t\tobject: \"document\",\n\t\t\tdata: {},\n\t\t\tnodes: [{\n\t\t\t\tobject: \"block\",\n\t\t\t\ttype: \"span\",\n\t\t\t\tdata: {},\n\t\t\t\tisVoid: !1,\n\t\t\t\tnodes: []\n\t\t\t}]\n\t\t}\n\t};\n\tlet t = y(new DOMParser().parseFromString(e, \"text/html\").body.childNodes);\n\treturn !t.some((e) => e.object === \"block\" || e.object === \"inline\") && t.length > 0 && (t = [{\n\t\tobject: \"block\",\n\t\ttype: \"span\",\n\t\tdata: {},\n\t\tisVoid: !1,\n\t\tnodes: t\n\t}]), t.length === 0 && (t = [{\n\t\tobject: \"block\",\n\t\ttype: \"span\",\n\t\tdata: {},\n\t\tisVoid: !1,\n\t\tnodes: []\n\t}]), {\n\t\tobject: \"value\",\n\t\tdocument: {\n\t\t\tobject: \"document\",\n\t\t\tdata: {},\n\t\t\tnodes: t\n\t\t}\n\t};\n};\n//#endregion\nexport { _ as MARK_TAGS, b as deserialize };\n","import { MARK_TAGS as e } from \"./serialization.js\";\nimport t from \"react\";\nimport n from \"prop-types\";\nimport { get as r } from \"@pie-element/shared-lodash\";\nimport { styled as i } from \"@mui/material/styles\";\nimport { renderMath as a } from \"@pie-element/shared-math-rendering-mathjax\";\nimport { jsx as o } from \"react/jsx-runtime\";\n//#region src/mask.tsx\nvar s = i(\"div\")(({ theme: e }) => ({\n\tpaddingTop: e.spacing(.5),\n\tpaddingBottom: e.spacing(.5)\n})), c = i(\"span\")(() => ({\n\tdisplay: \"inline-block\",\n\twidth: \".75em\"\n})), l = [\"tbody\", \"tr\"], u = (e, t) => {\n\tlet n = t.trim() === \"\", r = e && e.type;\n\tif (!(n && l.includes(r))) return t;\n}, d = (e) => {\n\tlet t = e.leaves.find((e) => r(e, \"marks\", []).length);\n\treturn t ? t.marks[0] : null;\n}, f = (t, n, r, i, a, l) => {\n\tif (!n) return null;\n\tlet p = [];\n\treturn (t.nodes || []).forEach((t, m) => {\n\t\tlet h = t.type ? `${t.type}-${m}` : `${m}`;\n\t\tif (t.isMath) return p.push(/* @__PURE__ */ o(\"span\", { dangerouslySetInnerHTML: { __html: `<math displaystyle=\"true\">${t.nodes[0].innerHTML}</math>` } })), p;\n\t\tif (i) {\n\t\t\tlet e = i(t, n, r);\n\t\t\tif (e) {\n\t\t\t\tlet n = t.data?.dataset?.component === \"blank\";\n\t\t\t\tn && p.push(/* @__PURE__ */ o(c, {}, `spacer-${m}`)), p.push(e), n && p.push(/* @__PURE__ */ o(c, {}, `spacer-${m}`));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (t.object === \"text\") {\n\t\t\tlet n = t.leaves.reduce((e, t) => {\n\t\t\t\tlet n = t.text, r = u(a, n);\n\t\t\t\treturn r ? e + r : e;\n\t\t\t}, \"\"), r = d(t);\n\t\t\tif (r) {\n\t\t\t\tlet t;\n\t\t\t\tfor (t in e) if (e[t] === r.type) {\n\t\t\t\t\tlet e = t;\n\t\t\t\t\tp.push(/* @__PURE__ */ o(e, { children: n }, h));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else n.length > 0 && p.push(n);\n\t\t} else {\n\t\t\tlet e = f(t, n, r, i, t, l);\n\t\t\tif (t.type === \"p\" || t.type === \"paragraph\") p.push(/* @__PURE__ */ o(s, { children: e }, h));\n\t\t\telse {\n\t\t\t\tlet n = t.type;\n\t\t\t\tt.nodes && t.nodes.length > 0 ? p.push(/* @__PURE__ */ o(n, {\n\t\t\t\t\t...t.data.attributes,\n\t\t\t\t\tchildren: e\n\t\t\t\t}, h)) : p.push(/* @__PURE__ */ o(n, { ...t.data.attributes }, h));\n\t\t\t}\n\t\t}\n\t}), p;\n}, p = i(\"div\")(() => ({\n\tdisplay: \"initial\",\n\t\"&:not(.MathJax) table\": { borderCollapse: \"collapse\" },\n\t\"&:not(.MathJax) table td, &:not(.MathJax) table th\": {\n\t\tpadding: \"8px 12px\",\n\t\ttextAlign: \"left\"\n\t}\n})), m = class extends t.Component {\n\tconstructor(e) {\n\t\tsuper(e), this.internalContainerRef = t.createRef();\n\t}\n\tstatic propTypes = {\n\t\trenderChildren: n.func,\n\t\tlayout: n.object,\n\t\tvalue: n.object,\n\t\tonChange: n.func,\n\t\telementType: n.string,\n\t\tcontainerRef: n.oneOfType([n.func, n.shape({ current: n.instanceOf(Element) })])\n\t};\n\tcomponentDidMount() {\n\t\tlet e = this.props.containerRef || this.internalContainerRef;\n\t\te.current && typeof a == \"function\" && a(e.current);\n\t}\n\thandleChange = (e, t) => {\n\t\tlet n = {\n\t\t\t...this.props.value,\n\t\t\t[e]: t\n\t\t};\n\t\tthis.props.onChange(n);\n\t};\n\trender() {\n\t\tlet { value: e, layout: t, elementType: n, containerRef: r } = this.props, i = f(t, e, this.handleChange, this.props.renderChildren, null, n);\n\t\treturn /* @__PURE__ */ o(p, {\n\t\t\tref: r || this.internalContainerRef,\n\t\t\tchildren: i\n\t\t});\n\t}\n};\n//#endregion\nexport { m as default };\n","import { deserialize as e } from \"./serialization.js\";\nimport t from \"./mask.js\";\nimport n from \"./componentize.js\";\nimport r from \"react\";\nimport i from \"prop-types\";\nimport { jsx as a } from \"react/jsx-runtime\";\n//#region src/with-mask.tsx\nvar o = (t, r) => {\n\tlet { markup: i } = n(t, r);\n\treturn e(i).document;\n}, s = (e, n) => class extends r.Component {\n\tstatic propTypes = {\n\t\tmarkup: i.string,\n\t\tlayout: i.object,\n\t\tvalue: i.object,\n\t\tonChange: i.func,\n\t\tcustomMarkMarkupComponent: i.func,\n\t\telementType: i.string\n\t};\n\tconstructor(e) {\n\t\tsuper(e), this.containerRef = r.createRef();\n\t}\n\tcomponentDidUpdate(e) {\n\t\tif (this.props.markup !== e.markup) {\n\t\t\tlet e = this.containerRef.current;\n\t\t\t(e && e.querySelectorAll(\"[data-latex][data-math-handled=\\\"true\\\"]\") || []).forEach((e) => {\n\t\t\t\tlet t = e.querySelector(\"mjx-container\");\n\t\t\t\tt && e.removeChild(t), e.innerHTML = e.getAttribute(\"data-raw\"), e.removeAttribute(\"data-math-handled\");\n\t\t\t});\n\t\t}\n\t}\n\trender() {\n\t\tlet { markup: r, layout: i, value: s, onChange: c, elementType: l } = this.props, u = i || o(r, e);\n\t\treturn /* @__PURE__ */ a(t, {\n\t\t\tcontainerRef: this.containerRef,\n\t\t\telementType: l,\n\t\t\tlayout: u,\n\t\t\tvalue: s,\n\t\t\tonChange: c,\n\t\t\trenderChildren: n(this.props)\n\t\t});\n\t}\n};\n//#endregion\nexport { o as buildLayoutFromMarkup, s as withMask };\n","//#region ../../../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs\nfunction e(t) {\n\tvar n, r, i = \"\";\n\tif (typeof t == \"string\" || typeof t == \"number\") i += t;\n\telse if (typeof t == \"object\") if (Array.isArray(t)) {\n\t\tvar a = t.length;\n\t\tfor (n = 0; n < a; n++) t[n] && (r = e(t[n])) && (i && (i += \" \"), i += r);\n\t} else for (r in t) t[r] && (i && (i += \" \"), i += r);\n\treturn i;\n}\nfunction t() {\n\tfor (var t, n, r = 0, i = \"\", a = arguments.length; r < a; r++) (t = arguments[r]) && (n = e(t)) && (i && (i += \" \"), i += n);\n\treturn i;\n}\n//#endregion\nexport { t as default };\n","import { withMask as e } from \"./with-mask.js\";\nimport t from \"./node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js\";\nimport \"react\";\nimport { styled as n } from \"@mui/material/styles\";\nimport { jsx as r } from \"react/jsx-runtime\";\nimport { color as i } from \"@pie-lib/render-ui\";\nimport a from \"@pie-lib/editable-html-tip-tap\";\n//#region src/constructed-response.tsx\nvar o = n(a)(() => ({\n\tdisplay: \"inline-block\",\n\tverticalAlign: \"middle\",\n\tmargin: \"4px\",\n\tborderRadius: \"4px\",\n\tborder: `1px solid ${i.black()}`,\n\t\"&.correct\": { border: `1px solid ${i.correct()}` },\n\t\"&.incorrect\": { border: `1px solid ${i.incorrect()}` }\n})), s = e(\"input\", (e) => (n, i) => {\n\tlet { adjustedLimit: a, disabled: s, feedback: c, showCorrectAnswer: l, maxLength: u, spellCheck: d, pluginProps: f, onChange: p } = e, m = n.data?.dataset || {};\n\tif (m.component === \"input\") {\n\t\tlet h = (e.choices && m && e.choices[m.id] || [])[0], g = l ? h && h.label : i[m.id] || \"\", _ = u && u[m.id], v = c && c[m.id], y = l || v === \"correct\", b = !l && v === \"incorrect\";\n\t\treturn /* @__PURE__ */ r(o, {\n\t\t\tid: m.id,\n\t\t\tdisabled: l || s,\n\t\t\tdisableUnderline: !0,\n\t\t\tonChange: (e) => {\n\t\t\t\tp({\n\t\t\t\t\t...i,\n\t\t\t\t\t[m.id]: e\n\t\t\t\t});\n\t\t\t},\n\t\t\tmarkup: g || \"\",\n\t\t\tcharactersLimit: a ? _ : 25,\n\t\t\tactivePlugins: [\"languageCharacters\"],\n\t\t\tpluginProps: f,\n\t\t\tlanguageCharactersProps: [{ language: \"spanish\" }],\n\t\t\tspellCheck: d,\n\t\t\tadjustWidthForLimit: !0,\n\t\t\tonKeyDown: (e) => {\n\t\t\t\tif (e.key === \"Enter\" || e.keyCode === 13) return !0;\n\t\t\t},\n\t\t\tautoWidthToolbar: !0,\n\t\t\ttoolbarOpts: {\n\t\t\t\tminWidth: \"auto\",\n\t\t\t\tnoBorder: !0,\n\t\t\t\tisHidden: !!f?.characters?.disabled\n\t\t\t},\n\t\t\tclassName: t({\n\t\t\t\tcorrect: y,\n\t\t\t\tincorrect: b\n\t\t\t})\n\t\t}, `${n.type}-input-${m.id}`);\n\t}\n});\n//#endregion\nexport { s as default };\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/explicit-constructed-response/src/main.jsx\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { isEmpty, isEqual, debounce } from '@pie-element/shared-lodash';\nimport CorrectAnswerToggle from '@pie-lib/correct-answer-toggle';\nimport { ConstructedResponse } from '@pie-lib/mask-markup';\nimport { color, Collapsible as CollapsibleImport, hasText, hasMedia, PreviewPrompt as PreviewPromptImport, UiLayout as UiLayoutImport } from '@pie-lib/render-ui';\n\nfunction isRenderableReactInteropType(value: any) {\n return (\n typeof value === 'function' ||\n (typeof value === 'object' && value !== null && typeof value.$$typeof === 'symbol')\n );\n}\n\nfunction unwrapReactInteropSymbol(maybeSymbol: any, namedExport?: string) {\n if (!maybeSymbol) return maybeSymbol;\n if (isRenderableReactInteropType(maybeSymbol)) return maybeSymbol;\n if (isRenderableReactInteropType(maybeSymbol.default)) return maybeSymbol.default;\n if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport])) {\n return maybeSymbol[namedExport];\n }\n if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport]?.default)) {\n return maybeSymbol[namedExport].default;\n }\n return maybeSymbol;\n}\nconst UiLayout = unwrapReactInteropSymbol(UiLayoutImport, 'UiLayout') || unwrapReactInteropSymbol(renderUi.UiLayout, 'UiLayout');\nconst PreviewPrompt = unwrapReactInteropSymbol(PreviewPromptImport, 'PreviewPrompt') || unwrapReactInteropSymbol(renderUi.PreviewPrompt, 'PreviewPrompt');\nconst Collapsible = unwrapReactInteropSymbol(CollapsibleImport, 'Collapsible') || unwrapReactInteropSymbol(renderUi.Collapsible, 'Collapsible');\nimport * as RenderUiNamespace from '@pie-lib/render-ui';\nconst renderUiNamespaceAny = RenderUiNamespace as any;\nconst renderUiDefaultMaybe = renderUiNamespaceAny['default'];\nconst renderUi =\n renderUiDefaultMaybe && typeof renderUiDefaultMaybe === 'object'\n ? renderUiDefaultMaybe\n : renderUiNamespaceAny;\nimport { styled } from '@mui/material/styles';\nimport Translator from '@pie-lib/translator';\n\nconst { translator } = Translator;\n\nconst MainContainer: any = styled(UiLayout)(({ alwaysShowCorrect }) => ({\n color: color.text(),\n backgroundColor: color.background(),\n ...(alwaysShowCorrect && {\n '& *': {\n borderColor: `${color.text()} !important`,\n },\n }),\n}));\n\nconst NoteContainer: any = styled('div')(({ theme }) => ({\n marginBottom: theme.spacing(2),\n}));\n\nconst CollapsibleContainer: any = styled('div')(({ theme }) => ({\n marginBottom: theme.spacing(2),\n}));\n\nconst SrOnly: any = styled('h2')({\n position: 'absolute',\n left: '-10000px',\n top: 'auto',\n width: '1px',\n height: '1px',\n overflow: 'hidden',\n});\n\nexport class Main extends React.Component {\n static propTypes = {\n alwaysShowCorrect: PropTypes.bool,\n animationsDisabled: PropTypes.bool,\n disabled: PropTypes.bool,\n displayType: PropTypes.string,\n feedback: PropTypes.object,\n language: PropTypes.string,\n markup: PropTypes.string,\n maxLengthPerChoice: PropTypes.array,\n maxLengthPerChoiceEnabled: PropTypes.bool,\n mode: PropTypes.string,\n note: PropTypes.string,\n onChange: PropTypes.func,\n playerSpellCheckEnabled: PropTypes.bool,\n prompt: PropTypes.string,\n rationale: PropTypes.string,\n role: PropTypes.string,\n showNote: PropTypes.bool,\n teacherInstructions: PropTypes.string,\n value: PropTypes.object,\n responseAreaInputConfiguration: PropTypes.object,\n model: PropTypes.object.isRequired,\n };\n\n static defaultProps = {\n value: {},\n };\n\n state = {\n showCorrectAnswer: this.props.alwaysShowCorrect || false,\n };\n\n // if for all responses max length is 1, call onChange for each keystroke\n getChangeSession = (maxLengthPerChoice) =>\n maxLengthPerChoice && maxLengthPerChoice.every((val, _i, arr) => val === arr[0] && val === 1)\n ? this.props.onChange\n : debounce(this.props.onChange, 200, { maxWait: 200 });\n\n UNSAFE_componentWillReceiveProps(nextProps) {\n const { maxLengthPerChoice, language } = this.props;\n let { note } = this.props;\n\n if (isEmpty(nextProps.feedback)) {\n this.setState({ showCorrectAnswer: false });\n }\n\n if (nextProps.alwaysShowCorrect) {\n this.setState({ showCorrectAnswer: true });\n }\n\n if (maxLengthPerChoice && !isEqual(maxLengthPerChoice, nextProps.maxLengthPerChoice)) {\n this.changeSession = this.getChangeSession(nextProps.maxLengthPerChoice);\n }\n\n // check if the note is the default one for prev language and change to the default one for new language\n // this check is necessary in order to diferanciate between default and authour defined note\n // and only change between languages for default ones\n if (\n note &&\n language &&\n language !== nextProps.language &&\n note === translator.t('common:commonCorrectAnswerWithAlternates', { lng: language })\n ) {\n note = translator.t('common:commonCorrectAnswerWithAlternates', { lng: nextProps.language });\n }\n }\n\n toggleShowCorrect: any = () => {\n this.setState({ showCorrectAnswer: !this.state.showCorrectAnswer });\n };\n\n changeSession = this.getChangeSession(this.props.maxLengthPerChoice);\n\n onChange: any = (value) => {\n this.changeSession(value);\n };\n\n render() {\n const { showCorrectAnswer } = this.state;\n const {\n alwaysShowCorrect,\n animationsDisabled,\n mode,\n displayType,\n role,\n language,\n maxLengthPerChoice,\n maxLengthPerChoiceEnabled,\n note,\n playerSpellCheckEnabled,\n prompt,\n rationale,\n showNote,\n teacherInstructions,\n responseAreaInputConfiguration,\n model,\n value,\n } = this.props;\n\n const { extraCSSRules } = model || {};\n const displayNote = (showCorrectAnswer || (mode === 'view' && role === 'instructor')) && showNote && note;\n\n const teacherInstructionsDiv = (\n <PreviewPrompt defaultClassName=\"teacher-instructions\" prompt={teacherInstructions} />\n );\n\n const rationaleDiv = <PreviewPrompt prompt={rationale} />;\n\n const showRationale = rationale && (hasText(rationale) || hasMedia(rationale));\n const showTeacherInstructions =\n teacherInstructions && (hasText(teacherInstructions) || hasMedia(teacherInstructions));\n\n return (\n <MainContainer\n extraCSSRules={extraCSSRules}\n alwaysShowCorrect={alwaysShowCorrect}\n style={{ display: `${displayType}` }}\n >\n {mode === 'gather' && <SrOnly>Fill in the Blank Question</SrOnly>}\n\n {showTeacherInstructions && (\n <CollapsibleContainer>\n {!animationsDisabled ? (\n <Collapsible labels={{ hidden: 'Show Teacher Instructions', visible: 'Hide Teacher Instructions' }}>\n {teacherInstructionsDiv}\n </Collapsible>\n ) : (\n teacherInstructionsDiv\n )}\n </CollapsibleContainer>\n )}\n\n {prompt && <PreviewPrompt prompt={prompt} />}\n\n {!alwaysShowCorrect && mode === 'evaluate' && (\n <CorrectAnswerToggle\n show\n toggled={showCorrectAnswer}\n onToggle={this.toggleShowCorrect}\n language={language}\n />\n )}\n\n <ConstructedResponse\n {...this.props}\n onChange={this.onChange}\n showCorrectAnswer={showCorrectAnswer}\n value={value}\n maxLength={maxLengthPerChoice}\n adjustedLimit={maxLengthPerChoiceEnabled}\n spellCheck={playerSpellCheckEnabled}\n pluginProps={responseAreaInputConfiguration}\n />\n\n {displayNote && <NoteContainer dangerouslySetInnerHTML={{ __html: note }} />}\n\n {showRationale && (\n <CollapsibleContainer>\n {!animationsDisabled ? (\n <Collapsible labels={{ hidden: 'Show Rationale', visible: 'Hide Rationale' }}>{rationaleDiv}</Collapsible>\n ) : (\n rationaleDiv\n )}\n </CollapsibleContainer>\n )}\n </MainContainer>\n );\n }\n}\n\nexport default Main;\n"],"x_google_ignoreList":[5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,25],"mappings":";;;;;;mCAMI,IAAI,+CAA+C,IAAI,EAAE,KAAK,SAAS;CAC1E,UAAU;CACV,QAAQ;CACR,UAAU;CACV,SAAS;CACT,YAAY;CACZ,OAAO;CACP,WAAW;EACV,YAAY;EACZ,SAAS;EACT,QAAQ;EACR,OAAO;EACP,YAAY;EACZ,WAAW;CACZ;CACA,gBAAgB;EACf,QAAQ;EACR,YAAY;EACZ,OAAO;EACP,WAAW;CACZ;CACA,UAAU;EACT,YAAY;EACZ,SAAS;EACT,QAAQ;EACR,YAAY;EACZ,OAAO;CACR;CACA,eAAe;EACd,SAAS;EACT,YAAY;EACZ,QAAQ;EACR,OAAO;CACR;AACD,EAAE,GAAG,KAAK,MAAM;CACf,IAAI,EAAE,MAAM,GAAG,UAAU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"../dist-DnL6t4VO.js";
3
- import { t as i } from "../main-V_e6PRBN.js";
1
+ import { E as e, m as t, t as n } from "../browser-BC3WygxE.js";
2
+ import { at as r } from "../dist-D5D48-XD.js";
3
+ import { t as i } from "../main-B4lD1zyg.js";
4
4
  import a from "react";
5
5
  import { createRoot as o } from "react-dom/client";
6
- var s = (0, (/* @__PURE__ */ e(t(), 1)).default)("pie-element:explicit-constructed-response:print"), c = (e, t) => {
6
+ var s = (0, (/* @__PURE__ */ e(n(), 1)).default)("pie-element:explicit-constructed-response:print"), c = (e, t) => {
7
7
  let n = t.role === "instructor";
8
8
  return e.prompt = e.promptEnabled === !1 ? void 0 : e.prompt, e.teacherInstructions = n && e.teacherInstructionsEnabled !== !1 ? e.teacherInstructions : void 0, e.rationale = n && e.rationaleEnabled !== !1 ? e.rationale : void 0, e.alwaysShowCorrect = n, e.mode = n ? "evaluate" : e.mode, e.disabled = !0, e.animationsDisabled = !0, e;
9
9
  }, l = class extends HTMLElement {
10
10
  constructor() {
11
- super(), this._options = null, this._model = null, this._session = [], this._root = null, this._rerender = n(() => {
11
+ super(), this._options = null, this._model = null, this._session = [], this._root = null, this._rerender = t(() => {
12
12
  if (this._model && this._session) {
13
13
  let e = c(this._model, this._options), t = this._options && a.createElement(i, {
14
14
  ...e,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/print/index.tsx"],"sourcesContent":["// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/explicit-constructed-response/src/print.js\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport { debounce } from 'lodash-es';\nimport Main from '../delivery/main.js';\nimport { renderMath } from '@pie-element/shared-math-rendering-mathjax';\nimport debug from 'debug';\n\nconst log = debug('pie-element:explicit-constructed-response:print');\n\nconst preparePrintModel = (model, opts) => {\n const isInstructor = opts.role === 'instructor';\n\n model.prompt = model.promptEnabled !== false ? model.prompt : undefined;\n model.teacherInstructions =\n isInstructor && model.teacherInstructionsEnabled !== false ? model.teacherInstructions : undefined;\n model.rationale = isInstructor && model.rationaleEnabled !== false ? model.rationale : undefined;\n model.alwaysShowCorrect = isInstructor;\n model.mode = isInstructor ? 'evaluate' : model.mode;\n model.disabled = true;\n model.animationsDisabled = true;\n\n return model;\n};\n\nexport default class ExplicitConstructedResponsePrint extends HTMLElement {\n constructor() {\n super();\n this._options = null;\n this._model = null;\n this._session = [];\n this._root = null;\n\n this._rerender = debounce(\n () => {\n if (this._model && this._session) {\n const printModel = preparePrintModel(this._model, this._options);\n\n const element =\n this._options &&\n React.createElement(Main, {\n ...printModel,\n onChange: () => {},\n });\n\n if (!this._root) {\n this._root = createRoot(this);\n }\n this._root.render(element);\n queueMicrotask(() => {\n log('render complete - render math');\n renderMath(this);\n });\n } else {\n log('skip');\n }\n },\n 50,\n { leading: false, trailing: true },\n );\n }\n\n set options(o) {\n this._options = o;\n }\n\n set model(s) {\n this._model = s;\n this._rerender();\n }\n\n connectedCallback() {}\n\n disconnectedCallback() {\n if (this._root) {\n this._root.unmount();\n }\n }\n}\n"],"mappings":";;;;;AAiBA,IAAM,KAAA,IAAA,wBAAA,GAAA,SAAY,iDAAiD,GAE7D,KAAqB,GAAO,MAAS;CACzC,IAAM,IAAe,EAAK,SAAS;CAWnC,OATA,EAAM,SAAS,EAAM,kBAAkB,KAAuB,KAAA,IAAf,EAAM,QACrD,EAAM,sBACJ,KAAgB,EAAM,+BAA+B,KAAQ,EAAM,sBAAsB,KAAA,GAC3F,EAAM,YAAY,KAAgB,EAAM,qBAAqB,KAAQ,EAAM,YAAY,KAAA,GACvF,EAAM,oBAAoB,GAC1B,EAAM,OAAO,IAAe,aAAa,EAAM,MAC/C,EAAM,WAAW,IACjB,EAAM,qBAAqB,IAEpB;AACT,GAEqB,IAArB,cAA8D,YAAY;CACxE,cAAc;EAOZ,AANA,MAAM,GACN,KAAK,WAAW,MAChB,KAAK,SAAS,MACd,KAAK,WAAW,CAAC,GACjB,KAAK,QAAQ,MAEb,KAAK,YAAY,QACT;GACJ,IAAI,KAAK,UAAU,KAAK,UAAU;IAChC,IAAM,IAAa,EAAkB,KAAK,QAAQ,KAAK,QAAQ,GAEzD,IACJ,KAAK,YACL,EAAM,cAAc,GAAM;KACxB,GAAG;KACH,gBAAgB,CAAC;IACnB,CAAC;IAMH,AAJA,AACE,KAAK,UAAQ,EAAW,IAAI,GAE9B,KAAK,MAAM,OAAO,CAAO,GACzB,qBAAqB;KAEnB,AADA,EAAI,+BAA+B,GACnC,EAAW,IAAI;IACjB,CAAC;GACH,OACE,EAAI,MAAM;EAEd,GACA,IACA;GAAE,SAAS;GAAO,UAAU;EAAK,CACnC;CACF;CAEA,IAAI,QAAQ,GAAG;EACb,KAAK,WAAW;CAClB;CAEA,IAAI,MAAM,GAAG;EAEX,AADA,KAAK,SAAS,GACd,KAAK,UAAU;CACjB;CAEA,oBAAoB,CAAC;CAErB,uBAAuB;EACrB,AAAI,KAAK,SACP,KAAK,MAAM,QAAQ;CAEvB;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/print/index.tsx"],"sourcesContent":["// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/explicit-constructed-response/src/print.js\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport { debounce } from '@pie-element/shared-lodash';\nimport Main from '../delivery/main.js';\nimport { renderMath } from '@pie-element/shared-math-rendering-mathjax';\nimport debug from 'debug';\n\nconst log = debug('pie-element:explicit-constructed-response:print');\n\nconst preparePrintModel = (model, opts) => {\n const isInstructor = opts.role === 'instructor';\n\n model.prompt = model.promptEnabled !== false ? model.prompt : undefined;\n model.teacherInstructions =\n isInstructor && model.teacherInstructionsEnabled !== false ? model.teacherInstructions : undefined;\n model.rationale = isInstructor && model.rationaleEnabled !== false ? model.rationale : undefined;\n model.alwaysShowCorrect = isInstructor;\n model.mode = isInstructor ? 'evaluate' : model.mode;\n model.disabled = true;\n model.animationsDisabled = true;\n\n return model;\n};\n\nexport default class ExplicitConstructedResponsePrint extends HTMLElement {\n constructor() {\n super();\n this._options = null;\n this._model = null;\n this._session = [];\n this._root = null;\n\n this._rerender = debounce(\n () => {\n if (this._model && this._session) {\n const printModel = preparePrintModel(this._model, this._options);\n\n const element =\n this._options &&\n React.createElement(Main, {\n ...printModel,\n onChange: () => {},\n });\n\n if (!this._root) {\n this._root = createRoot(this);\n }\n this._root.render(element);\n queueMicrotask(() => {\n log('render complete - render math');\n renderMath(this);\n });\n } else {\n log('skip');\n }\n },\n 50,\n { leading: false, trailing: true },\n );\n }\n\n set options(o) {\n this._options = o;\n }\n\n set model(s) {\n this._model = s;\n this._rerender();\n }\n\n connectedCallback() {}\n\n disconnectedCallback() {\n if (this._root) {\n this._root.unmount();\n }\n }\n}\n"],"mappings":";;;;;AAiBA,IAAM,KAAA,IAAA,wBAAA,GAAA,SAAY,iDAAiD,GAE7D,KAAqB,GAAO,MAAS;CACzC,IAAM,IAAe,EAAK,SAAS;CAWnC,OATA,EAAM,SAAS,EAAM,kBAAkB,KAAuB,KAAA,IAAf,EAAM,QACrD,EAAM,sBACJ,KAAgB,EAAM,+BAA+B,KAAQ,EAAM,sBAAsB,KAAA,GAC3F,EAAM,YAAY,KAAgB,EAAM,qBAAqB,KAAQ,EAAM,YAAY,KAAA,GACvF,EAAM,oBAAoB,GAC1B,EAAM,OAAO,IAAe,aAAa,EAAM,MAC/C,EAAM,WAAW,IACjB,EAAM,qBAAqB,IAEpB;AACT,GAEqB,IAArB,cAA8D,YAAY;CACxE,cAAc;EAOZ,AANA,MAAM,GACN,KAAK,WAAW,MAChB,KAAK,SAAS,MACd,KAAK,WAAW,CAAC,GACjB,KAAK,QAAQ,MAEb,KAAK,YAAY,QACT;GACJ,IAAI,KAAK,UAAU,KAAK,UAAU;IAChC,IAAM,IAAa,EAAkB,KAAK,QAAQ,KAAK,QAAQ,GAEzD,IACJ,KAAK,YACL,EAAM,cAAc,GAAM;KACxB,GAAG;KACH,gBAAgB,CAAC;IACnB,CAAC;IAMH,AAJA,AACE,KAAK,UAAQ,EAAW,IAAI,GAE9B,KAAK,MAAM,OAAO,CAAO,GACzB,qBAAqB;KAEnB,AADA,EAAI,+BAA+B,GACnC,EAAW,IAAI;IACjB,CAAC;GACH,OACE,EAAI,MAAM;EAEd,GACA,IACA;GAAE,SAAS;GAAO,UAAU;EAAK,CACnC;CACF;CAEA,IAAI,QAAQ,GAAG;EACb,KAAK,WAAW;CAClB;CAEA,IAAI,MAAM,GAAG;EAEX,AADA,KAAK,SAAS,GACd,KAAK,UAAU;CACjB;CAEA,oBAAoB,CAAC;CAErB,uBAAuB;EACrB,AAAI,KAAK,SACP,KAAK,MAAM,QAAQ;CAEvB;AACF"}
@@ -18,12 +18,12 @@ export declare const normalize: (question: any) => any;
18
18
  * @param {*} env
19
19
  */
20
20
  export declare function model(question: any, session: any, env: any): Promise<{
21
- choices: any;
21
+ choices: {};
22
22
  disabled: boolean;
23
23
  displayType: any;
24
24
  mode: any;
25
25
  role: any;
26
- feedback: any;
26
+ feedback: {};
27
27
  language: any;
28
28
  markup: any;
29
29
  maxLengthPerChoice: any;
@@ -1,14 +1,11 @@
1
- import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/find.js";
2
- import t from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/map.js";
3
- import n from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js";
4
- import r from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/reduce.js";
5
- import { require_he as i } from "../node_modules/.bun/he@1.2.0/node_modules/he/he.js";
6
- import a from "./defaults.js";
1
+ import { require_he as e } from "../node_modules/.bun/he@1.2.0/node_modules/he/he.js";
2
+ import t from "./defaults.js";
3
+ import { find as n, isEmpty as r, map as i, reduce as a } from "@pie-element/shared-lodash";
7
4
  import o from "@pie-lib/translator";
8
5
  import s from "debug";
9
6
  import { partialScoring as c } from "@pie-element/shared-controller-utils";
10
7
  //#region src/controller/index.ts
11
- var l = i(), { translator: u } = o, d = s("explicit-constructed-response:controller"), f = (e, t) => (n) => {
8
+ var l = e(), { translator: u } = o, d = s("explicit-constructed-response:controller"), f = (e, t) => (n) => {
12
9
  let r = {
13
10
  label: n.label,
14
11
  value: n.value
@@ -20,22 +17,22 @@ var l = i(), { translator: u } = o, d = s("explicit-constructed-response:control
20
17
  }
21
18
  return r;
22
19
  }, p = (e) => e ? "correct" : "incorrect", m = (e) => Math.abs(e) === Infinity ? 2 : e <= 2 ? e + 2 : e <= 4 ? e + 3 : e <= 6 ? e + 4 : e + 5, h = (e) => e ? e.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, "\"").replace(/&#x27;|&#39;/g, "'").replace(/&amp;/g, "&") : "", g = (e) => ({
23
- ...a,
20
+ ...t,
24
21
  ...e
25
22
  });
26
- async function _(i, o, s) {
27
- i.choices && Object.keys(i.choices).forEach((e) => {
28
- i.choices[e] = (i.choices[e] || []).map((e, t) => e.value ? e : (d("Choice does not contain \"value\" property, which is required.", e), {
23
+ async function _(e, o, s) {
24
+ e.choices && Object.keys(e.choices).forEach((t) => {
25
+ e.choices[t] = (e.choices[t] || []).map((e, t) => e.value ? e : (d("Choice does not contain \"value\" property, which is required.", e), {
29
26
  value: `${t}`,
30
27
  ...e
31
28
  }));
32
29
  });
33
- let c = g(i), l = Object.assign({
30
+ let c = g(e), l = Object.assign({
34
31
  correct: "Correct",
35
32
  incorrect: "Incorrect"
36
- }, c.defaultFeedback), _ = f(s.mode, l), b = r(c.choices, (e, n, r) => (e[r] = t(n, _), e), {}), { value: x = {} } = o || {}, S = s.mode === "evaluate" ? r(c.choices, (t, r, i) => {
33
+ }, c.defaultFeedback), _ = f(s.mode, l), b = a(c.choices, (e, t, n) => (e[n] = i(t, _), e), {}), { value: x = {} } = o || {}, S = s.mode === "evaluate" ? a(c.choices, (e, t, i) => {
37
34
  let a = x && x[i];
38
- return t[i] = p(!n(a) && e(r, (e) => v(e.label) === v(a))), t;
35
+ return e[i] = p(!r(a) && n(t, (e) => v(e.label) === v(a))), e;
39
36
  }, {}) : {}, C = Object.values(b).some((e) => e?.length > 1), w = c.note || u.t("common:commonCorrectAnswerWithAlternates", { lng: c.language }), { maxLengthPerChoice: T = [], maxLengthPerChoiceEnabled: E } = c, D = !T.length;
40
37
  Object.values(b).forEach((e, t) => {
41
38
  let n = (e || []).map((e) => h(e.label || "").length), r = Math.max(...n);
@@ -54,58 +51,58 @@ async function _(i, o, s) {
54
51
  maxLengthPerChoiceEnabled: E,
55
52
  note: w,
56
53
  playerSpellCheckEnabled: c.playerSpellCheckEnabled,
57
- prompt: c.promptEnabled ? c.prompt : a.prompt,
58
- rationale: a.rationale,
54
+ prompt: c.promptEnabled ? c.prompt : t.prompt,
55
+ rationale: t.rationale,
59
56
  responseCorrect: s.mode === "evaluate" ? y(c, o) === 1 : void 0,
60
57
  showNote: C,
61
- teacherInstructions: a.teacherInstructions,
58
+ teacherInstructions: t.teacherInstructions,
62
59
  responseAreaInputConfiguration: c.responseAreaInputConfiguration,
63
60
  extraCSSRules: c.extraCSSRules
64
61
  };
65
- return s.role === "instructor" && (s.mode === "view" || s.mode === "evaluate") && (O.rationale = c.rationaleEnabled ? c.rationale : a.rationale, O.teacherInstructions = c.teacherInstructionsEnabled ? c.teacherInstructions : a.teacherInstructions), O;
62
+ return s.role === "instructor" && (s.mode === "view" || s.mode === "evaluate") && (O.rationale = c.rationaleEnabled ? c.rationale : t.rationale, O.teacherInstructions = c.teacherInstructionsEnabled ? c.teacherInstructions : t.teacherInstructions), O;
66
63
  }
67
- var v = (e) => w(C(e).trim()), y = (t, i) => {
68
- let { value: a } = i || {};
69
- if (!i || n(i) || !a) return 0;
70
- let o = t.markup && t.markup.match(/\{\{(.+?)\}\}/g), s = o ? o.length : 0, c = r(t.choices, (t, r, i) => {
71
- let o = a && a[i];
72
- return n(o) || !e(r, (e) => v(e.label) === v(o)) ? t : t + 1;
64
+ var v = (e) => w(C(e).trim()), y = (e, t) => {
65
+ let { value: i } = t || {};
66
+ if (!t || r(t) || !i) return 0;
67
+ let o = e.markup && e.markup.match(/\{\{(.+?)\}\}/g), s = o ? o.length : 0, c = a(e.choices, (e, t, a) => {
68
+ let o = i && i[a];
69
+ return r(o) || !n(t, (e) => v(e.label) === v(o)) ? e : e + 1;
73
70
  }, 0), l = s ? (c / s).toFixed(2) : 0;
74
71
  return parseFloat(l);
75
- }, b = (e, t, r) => {
72
+ }, b = (e, t, n) => {
76
73
  let i = [], { value: a } = t || {}, { choices: o, markup: s } = e || {}, l = s ? s.match(/\{\{(.+?)\}\}/g) : [], u = l ? l.length : 0;
77
74
  if (i.push(`${u} response area(s) defined in this question.`), a && Object.keys(a).length > 0) {
78
75
  let e = Object.entries(a).filter(([e, t]) => t && t.trim()).length;
79
76
  i.push(`Student filled ${e} out of ${u} response area(s).`), Object.keys(o || {}).forEach((e) => {
80
- let t = a && a[e] || "", r = o[e] || [], s = !n(t.trim()) && r.some((e) => v(e.label) === v(t));
77
+ let t = a && a[e] || "", n = o[e] || [], s = !r(t.trim()) && n.some((e) => v(e.label) === v(t));
81
78
  t.trim() ? i.push(`Response area ${parseInt(e) + 1}: ${s ? "CORRECT" : "INCORRECT"}.`) : i.push(`Response area ${parseInt(e) + 1}: left empty.`);
82
79
  });
83
80
  } else i.push("Student did not fill any response areas.");
84
- if (Object.values(o || {}).some((e) => e.length > 1) && i.push("Alternate answers are accepted for some response areas."), c.enabled(e, r)) {
81
+ if (Object.values(o || {}).some((e) => e.length > 1) && i.push("Alternate answers are accepted for some response areas."), c.enabled(e, n)) {
85
82
  if (i.push("Score calculated using partial scoring."), i.push("Student receives credit for each correctly filled response area."), a && Object.keys(a).length > 0) {
86
83
  let e = 0;
87
84
  Object.keys(o || {}).forEach((t) => {
88
- let r = a && a[t] || "", i = o[t] || [];
89
- !n(r.trim()) && i.some((e) => v(e.label) === v(r)) && e++;
85
+ let n = a && a[t] || "", i = o[t] || [];
86
+ !r(n.trim()) && i.some((e) => v(e.label) === v(n)) && e++;
90
87
  }), i.push(`Partial scoring: ${e} correct out of ${u} response areas.`);
91
88
  }
92
89
  } else i.push("Score calculated using all-or-nothing scoring."), i.push("Student must fill all response areas correctly to receive full credit.");
93
90
  let d = y(e, t);
94
91
  return i.push(`Score: ${d}.`), i;
95
92
  };
96
- function x(e, t, r = {}) {
93
+ function x(e, t, n = {}) {
97
94
  return new Promise((i) => {
98
- if (!t || n(t)) i({
95
+ if (!t || r(t)) i({
99
96
  score: 0,
100
97
  empty: !0,
101
98
  traceLog: ["Student did not fill any response areas. Score: 0."]
102
99
  });
103
100
  else {
104
- let n = b(e, t, r), a = c.enabled(e, r), o = y(e, t);
101
+ let r = b(e, t, n), a = c.enabled(e, n), o = y(e, t);
105
102
  i({
106
103
  score: a ? o : +(o === 1),
107
104
  empty: !1,
108
- traceLog: n
105
+ traceLog: r
109
106
  });
110
107
  }
111
108
  });
@@ -121,22 +118,22 @@ var S = (e, t) => new Promise((n) => {
121
118
  });
122
119
  } else n(null);
123
120
  }), C = (e) => typeof e == "string" ? typeof e.replaceAll == "function" ? e.replaceAll(/<[^>]*>/g, "") : e.replace(/<[^>]*>/g, "") : "", w = (e) => (0, l.decode)(e), T = (e) => (e || "").replace(/(<(?!img|iframe|source)([^>]+)>)/gi, ""), E = (e = {}, t = {}) => {
124
- let { choices: r, markup: i } = e, { maxResponseAreas: a } = t, o = {}, s = {};
121
+ let { choices: n, markup: i } = e, { maxResponseAreas: a } = t, o = {}, s = {};
125
122
  [
126
123
  "teacherInstructions",
127
124
  "prompt",
128
125
  "rationale"
129
126
  ].forEach((n) => {
130
127
  t[n]?.required && !T(e[n]) && (s[n] = "This field is required.");
131
- }), Object.entries(r || {}).forEach(([e, t]) => {
132
- let r = [...t || []].reverse(), i = {};
133
- r.forEach((e, t) => {
134
- let { value: n, label: a } = e;
135
- a === "" || a === "<div></div>" ? i[n] = "Content should not be empty." : r.slice(t + 1).some((e) => e.label === a) && (i[n] = "Content should be unique.");
136
- }), n(i) || (o[e] = i);
128
+ }), Object.entries(n || {}).forEach(([e, t]) => {
129
+ let n = [...t || []].reverse(), i = {};
130
+ n.forEach((e, t) => {
131
+ let { value: r, label: a } = e;
132
+ a === "" || a === "<div></div>" ? i[r] = "Content should not be empty." : n.slice(t + 1).some((e) => e.label === a) && (i[r] = "Content should be unique.");
133
+ }), r(i) || (o[e] = i);
137
134
  });
138
135
  let c = (i.match(/\{\{(\d+)\}\}/g) || []).length;
139
- return c > a ? s.responseAreas = `No more than ${a} response areas should be defined.` : c < 1 && (s.responseAreas = "There should be at least 1 response area defined."), n(o) || (s.choices = o), s;
136
+ return c > a ? s.responseAreas = `No more than ${a} response areas should be defined.` : c < 1 && (s.responseAreas = "There should be at least 1 response area defined."), r(o) || (s.choices = o), s;
140
137
  };
141
138
  //#endregion
142
139
  export { S as createCorrectResponseSession, b as getLogTrace, y as getScore, _ as model, g as normalize, x as outcome, f as prepareChoice, v as prepareVal, E as validate };
@@ -1,8 +1,6 @@
1
- import e from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js";
2
- import t from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js";
3
- import n from "../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js";
4
- import r from "react";
5
- import i from "prop-types";
1
+ import e from "react";
2
+ import t from "prop-types";
3
+ import { debounce as n, isEmpty as r, isEqual as i } from "@pie-element/shared-lodash";
6
4
  import a from "@pie-lib/correct-answer-toggle";
7
5
  import { ConstructedResponse as o } from "@pie-lib/mask-markup";
8
6
  import * as s from "@pie-lib/render-ui";
@@ -28,36 +26,36 @@ var b = y(u, "UiLayout") || y(T.UiLayout, "UiLayout"), x = y(l, "PreviewPrompt")
28
26
  width: "1px",
29
27
  height: "1px",
30
28
  overflow: "hidden"
31
- }), j = class extends r.Component {
29
+ }), j = class extends e.Component {
32
30
  static propTypes = {
33
- alwaysShowCorrect: i.bool,
34
- animationsDisabled: i.bool,
35
- disabled: i.bool,
36
- displayType: i.string,
37
- feedback: i.object,
38
- language: i.string,
39
- markup: i.string,
40
- maxLengthPerChoice: i.array,
41
- maxLengthPerChoiceEnabled: i.bool,
42
- mode: i.string,
43
- note: i.string,
44
- onChange: i.func,
45
- playerSpellCheckEnabled: i.bool,
46
- prompt: i.string,
47
- rationale: i.string,
48
- role: i.string,
49
- showNote: i.bool,
50
- teacherInstructions: i.string,
51
- value: i.object,
52
- responseAreaInputConfiguration: i.object,
53
- model: i.object.isRequired
31
+ alwaysShowCorrect: t.bool,
32
+ animationsDisabled: t.bool,
33
+ disabled: t.bool,
34
+ displayType: t.string,
35
+ feedback: t.object,
36
+ language: t.string,
37
+ markup: t.string,
38
+ maxLengthPerChoice: t.array,
39
+ maxLengthPerChoiceEnabled: t.bool,
40
+ mode: t.string,
41
+ note: t.string,
42
+ onChange: t.func,
43
+ playerSpellCheckEnabled: t.bool,
44
+ prompt: t.string,
45
+ rationale: t.string,
46
+ role: t.string,
47
+ showNote: t.bool,
48
+ teacherInstructions: t.string,
49
+ value: t.object,
50
+ responseAreaInputConfiguration: t.object,
51
+ model: t.object.isRequired
54
52
  };
55
53
  static defaultProps = { value: {} };
56
54
  state = { showCorrectAnswer: this.props.alwaysShowCorrect || !1 };
57
- getChangeSession = (t) => t && t.every((e, t, n) => e === n[0] && e === 1) ? this.props.onChange : e(this.props.onChange, 200, { maxWait: 200 });
55
+ getChangeSession = (e) => e && e.every((e, t, n) => e === n[0] && e === 1) ? this.props.onChange : n(this.props.onChange, 200, { maxWait: 200 });
58
56
  UNSAFE_componentWillReceiveProps(e) {
59
- let { maxLengthPerChoice: r, language: i } = this.props, { note: a } = this.props;
60
- t(e.feedback) && this.setState({ showCorrectAnswer: !1 }), e.alwaysShowCorrect && this.setState({ showCorrectAnswer: !0 }), r && !n(r, e.maxLengthPerChoice) && (this.changeSession = this.getChangeSession(e.maxLengthPerChoice)), a && i && i !== e.language && a === E.t("common:commonCorrectAnswerWithAlternates", { lng: i }) && (a = E.t("common:commonCorrectAnswerWithAlternates", { lng: e.language }));
57
+ let { maxLengthPerChoice: t, language: n } = this.props, { note: a } = this.props;
58
+ r(e.feedback) && this.setState({ showCorrectAnswer: !1 }), e.alwaysShowCorrect && this.setState({ showCorrectAnswer: !0 }), t && !i(t, e.maxLengthPerChoice) && (this.changeSession = this.getChangeSession(e.maxLengthPerChoice)), a && n && n !== e.language && a === E.t("common:commonCorrectAnswerWithAlternates", { lng: n }) && (a = E.t("common:commonCorrectAnswerWithAlternates", { lng: e.language }));
61
59
  }
62
60
  toggleShowCorrect = () => {
63
61
  this.setState({ showCorrectAnswer: !this.state.showCorrectAnswer });