@pie-element/explicit-constructed-response 11.1.0-next.19 → 11.1.1-next.0

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 (280) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +4 -0
  2. package/dist/author/alternateResponses.d.ts +34 -0
  3. package/dist/author/alternateResponses.js +116 -0
  4. package/dist/author/alternateSection.d.ts +58 -0
  5. package/dist/author/alternateSection.js +215 -0
  6. package/dist/author/defaults.d.ts +186 -0
  7. package/dist/author/defaults.js +128 -0
  8. package/dist/author/ecr-toolbar.d.ts +41 -0
  9. package/dist/author/ecr-toolbar.js +100 -0
  10. package/dist/author/index.d.ts +42 -0
  11. package/dist/author/index.js +97 -0
  12. package/dist/author/main.d.ts +38 -0
  13. package/dist/author/main.js +294 -0
  14. package/dist/author/markupUtils.d.ts +14 -0
  15. package/dist/author/markupUtils.js +13 -0
  16. package/dist/author/utils.d.ts +9 -0
  17. package/dist/author/utils.js +7 -0
  18. package/dist/controller/defaults.d.ts +25 -0
  19. package/dist/controller/defaults.js +19 -0
  20. package/dist/controller/index.d.ts +64 -0
  21. package/dist/controller/index.js +142 -0
  22. package/dist/delivery/index.d.ts +20 -0
  23. package/dist/delivery/index.js +66 -0
  24. package/dist/delivery/main.d.ts +48 -0
  25. package/dist/delivery/main.js +117 -0
  26. package/dist/explicit-constructed-response.css +2 -0
  27. package/dist/index.d.ts +1 -0
  28. package/dist/index.iife.d.ts +8 -0
  29. package/dist/index.iife.js +394 -0
  30. package/dist/index.js +2 -0
  31. package/dist/node_modules/.bun/he@1.2.0/node_modules/he/he.js +3993 -0
  32. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
  33. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
  34. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
  35. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
  36. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
  37. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
  38. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
  39. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +11 -0
  40. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
  41. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
  42. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
  43. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
  44. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +12 -0
  45. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
  46. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
  47. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +7 -0
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayReduce.js +8 -0
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +7 -0
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseEach.js +6 -0
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseExtremum.js +11 -0
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +7 -0
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js +13 -0
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js +5 -0
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseForOwn.js +8 -0
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js +10 -0
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGt.js +6 -0
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js +6 -0
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +8 -0
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js +26 -0
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js +11 -0
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMap.js +11 -0
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js +12 -0
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePick.js +10 -0
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js +13 -0
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js +8 -0
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js +9 -0
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyOf.js +8 -0
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseReduce.js +8 -0
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +9 -0
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +22 -0
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +14 -0
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +15 -0
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +8 -0
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +6 -0
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +10 -0
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseEach.js +12 -0
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js +12 -0
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createFind.js +19 -0
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +35 -0
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +35 -0
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +32 -0
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_escapeHtmlChar.js +11 -0
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.js +9 -0
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js +16 -0
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js +18 -0
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js +10 -0
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +12 -0
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +11 -0
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js +7 -0
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +9 -0
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +11 -0
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +13 -0
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +7 -0
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +6 -0
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +9 -0
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +6 -0
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +14 -0
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +10 -0
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +10 -0
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
  182. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +8 -0
  183. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
  184. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +8 -0
  185. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js +50 -0
  186. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js +16 -0
  187. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
  188. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/escape.js +9 -0
  189. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/find.js +6 -0
  190. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/findIndex.js +13 -0
  191. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/flatten.js +7 -0
  192. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/get.js +8 -0
  193. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js +8 -0
  194. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +6 -0
  195. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
  196. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
  197. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
  198. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
  199. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +21 -0
  200. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +7 -0
  201. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
  202. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
  203. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
  204. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
  205. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
  206. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
  207. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
  208. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
  209. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
  210. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
  211. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/map.js +10 -0
  212. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/max.js +9 -0
  213. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +16 -0
  214. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/now.js +7 -0
  215. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/pick.js +8 -0
  216. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js +10 -0
  217. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/reduce.js +12 -0
  218. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
  219. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
  220. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/throttle.js +15 -0
  221. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toFinite.js +8 -0
  222. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toInteger.js +8 -0
  223. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +19 -0
  224. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +7 -0
  225. package/dist/print/index.d.ts +15 -0
  226. package/dist/print/index.js +40 -0
  227. package/package.json +62 -25
  228. package/CHANGELOG.json +0 -1102
  229. package/CHANGELOG.md +0 -2175
  230. package/LICENSE.md +0 -5
  231. package/README.md +0 -1
  232. package/configure/CHANGELOG.json +0 -652
  233. package/configure/CHANGELOG.md +0 -1917
  234. package/configure/lib/alternateResponses.js +0 -199
  235. package/configure/lib/alternateResponses.js.map +0 -1
  236. package/configure/lib/alternateSection.js +0 -329
  237. package/configure/lib/alternateSection.js.map +0 -1
  238. package/configure/lib/defaults.js +0 -184
  239. package/configure/lib/defaults.js.map +0 -1
  240. package/configure/lib/ecr-toolbar.js +0 -181
  241. package/configure/lib/ecr-toolbar.js.map +0 -1
  242. package/configure/lib/index.js +0 -161
  243. package/configure/lib/index.js.map +0 -1
  244. package/configure/lib/main.js +0 -514
  245. package/configure/lib/main.js.map +0 -1
  246. package/configure/lib/markupUtils.js +0 -70
  247. package/configure/lib/markupUtils.js.map +0 -1
  248. package/configure/lib/utils.js +0 -15
  249. package/configure/lib/utils.js.map +0 -1
  250. package/configure/package.json +0 -22
  251. package/controller/CHANGELOG.json +0 -517
  252. package/controller/CHANGELOG.md +0 -1333
  253. package/controller/lib/defaults.js +0 -23
  254. package/controller/lib/defaults.js.map +0 -1
  255. package/controller/lib/index.js +0 -368
  256. package/controller/lib/index.js.map +0 -1
  257. package/controller/package.json +0 -18
  258. package/docs/config-schema.json +0 -2629
  259. package/docs/config-schema.json.md +0 -1941
  260. package/docs/demo/config.js +0 -8
  261. package/docs/demo/generate.js +0 -20
  262. package/docs/demo/index.html +0 -1
  263. package/docs/demo/session.js +0 -10
  264. package/docs/pie-schema.json +0 -1130
  265. package/docs/pie-schema.json.md +0 -814
  266. package/lib/index.js +0 -91
  267. package/lib/index.js.map +0 -1
  268. package/lib/main.js +0 -205
  269. package/lib/main.js.map +0 -1
  270. package/lib/print.js +0 -71
  271. package/lib/print.js.map +0 -1
  272. package/module/configure.js +0 -1
  273. package/module/controller.js +0 -6534
  274. package/module/demo.js +0 -45
  275. package/module/element.js +0 -1
  276. package/module/index.html +0 -21
  277. package/module/manifest.json +0 -18
  278. package/module/print-demo.js +0 -83
  279. package/module/print.html +0 -18
  280. package/module/print.js +0 -1
@@ -1 +0,0 @@
1
- import{_dll_react as e,_dll_prop_types as t,_dll_mui__material_styles as n,_dll_mui__material as r,_dll_mui__icons_material as o,_dll_debug as i,_dll_react_dom_client as a}from"../../../@pie-lib/shared-module@^5.2.1/module/index.js";import{_dll_pie_lib__editable_html_tip_tap as u}from"../../../@pie-lib/editable-html-module@^7.1.3/module/index.js";import{_dll_pie_lib__config_ui as s}from"../../../@pie-lib/config-module@^4.0.6/module/index.js";function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var c={},f={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(f),l(f.exports);var p={exports:{}},d={exports:{}},h={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(h),l(h.exports);var v={exports:{}};!function(e){var t=h.exports.default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(v),l(v.exports),function(e){var t=h.exports.default,n=v.exports;e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(d),l(d.exports),function(e){var t=d.exports;e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(p),l(p.exports);var g="object"==typeof global&&global&&global.Object===Object&&global,y="object"==typeof self&&self&&self.Object===Object&&self,m=g||y||Function("return this")(),_=m.Symbol,b=Object.prototype,x=b.hasOwnProperty,C=b.toString,j=_?_.toStringTag:void 0,w=Object.prototype.toString,E=_?_.toStringTag:void 0;function A(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":E&&E in Object(e)?function(e){var t=x.call(e,j),n=e[j];try{e[j]=void 0;var r=!0}catch(e){}var o=C.call(e);return r&&(t?e[j]=n:delete e[j]),o}(e):function(e){return w.call(e)}(e)}function O(e){return null!=e&&"object"==typeof e}function S(e){return"symbol"==typeof e||O(e)&&"[object Symbol]"==A(e)}function M(e){return"number"==typeof e?e:S(e)?NaN:+e}function I(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var k=Array.isArray,P=_?_.prototype:void 0,R=P?P.toString:void 0;function L(e){if("string"==typeof e)return e;if(k(e))return I(e,L)+"";if(S(e))return R?R.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function W(e,t){return function(n,r){var o;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(o=n),void 0!==r){if(void 0===o)return r;"string"==typeof n||"string"==typeof r?(n=L(n),r=L(r)):(n=M(n),r=M(r)),o=e(n,r)}return o}}var B=W(function(e,t){return e+t},0),T=/\s/;function D(e){for(var t=e.length;t--&&T.test(e.charAt(t)););return t}var z=/^\s+/;function q(e){return e?e.slice(0,D(e)+1).replace(z,""):e}function N(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var U=/^[-+]0x[0-9a-f]+$/i,F=/^0b[01]+$/i,$=/^0o[0-7]+$/i,H=parseInt;function K(e){if("number"==typeof e)return e;if(S(e))return NaN;if(N(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=N(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=q(e);var n=F.test(e);return n||$.test(e)?H(e.slice(2),n?2:8):U.test(e)?NaN:+e}var V=1/0;function Y(e){return e?(e=K(e))===V||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Z(e){var t=Y(e),n=t%1;return t==t?n?t-n:t:0}function G(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=Z(e),function(){if(--e<1)return t.apply(this,arguments)}}function J(e){return e}function Q(e){if(!N(e))return!1;var t=A(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var X,ee=m["__core-js_shared__"],te=(X=/[^.]+$/.exec(ee&&ee.keys&&ee.keys.IE_PROTO||""))?"Symbol(src)_1."+X:"",ne=Function.prototype.toString;function re(e){if(null!=e){try{return ne.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var oe=/^\[object .+?Constructor\]$/,ie=Function.prototype,ae=Object.prototype,ue=ie.toString,se=ae.hasOwnProperty,le=RegExp("^"+ue.call(se).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ce(e){return!(!N(e)||function(e){return!!te&&te in e}(e))&&(Q(e)?le:oe).test(re(e))}function fe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ce(n)?n:void 0}var pe=fe(m,"WeakMap"),de=pe&&new pe,he=de?function(e,t){return de.set(e,t),e}:J,ve=he,ge=Object.create,ye=function(){function e(){}return function(t){if(!N(t))return{};if(ge)return ge(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),me=ye;function _e(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=me(e.prototype),r=e.apply(n,t);return N(r)?r:n}}function be(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var xe=Math.max;function Ce(e,t,n,r){for(var o=-1,i=e.length,a=n.length,u=-1,s=t.length,l=xe(i-a,0),c=Array(s+l),f=!r;++u<s;)c[u]=t[u];for(;++o<a;)(f||o<i)&&(c[n[o]]=e[o]);for(;l--;)c[u++]=e[o++];return c}var je=Math.max;function we(e,t,n,r){for(var o=-1,i=e.length,a=-1,u=n.length,s=-1,l=t.length,c=je(i-u,0),f=Array(c+l),p=!r;++o<c;)f[o]=e[o];for(var d=o;++s<l;)f[d+s]=t[s];for(;++a<u;)(p||o<i)&&(f[d+n[a]]=e[o++]);return f}function Ee(){}function Ae(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Oe(){}Ae.prototype=me(Ee.prototype),Ae.prototype.constructor=Ae;var Se=de?function(e){return de.get(e)}:Oe,Me=Se,Ie={},ke=Object.prototype.hasOwnProperty;function Pe(e){for(var t=e.name+"",n=Ie[t],r=ke.call(Ie,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Re(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Le(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function We(e){if(e instanceof Ae)return e.clone();var t=new Re(e.__wrapped__,e.__chain__);return t.__actions__=Le(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}Re.prototype=me(Ee.prototype),Re.prototype.constructor=Re;var Be=Object.prototype.hasOwnProperty;function Te(e){if(O(e)&&!k(e)&&!(e instanceof Ae)){if(e instanceof Re)return e;if(Be.call(e,"__wrapped__"))return We(e)}return new Re(e)}function De(e){var t=Pe(e),n=Te[t];if("function"!=typeof n||!(t in Ae.prototype))return!1;if(e===n)return!0;var r=Me(n);return!!r&&e===r[0]}Te.prototype=Ee.prototype,Te.prototype.constructor=Te;var ze=Date.now;function qe(e){var t=0,n=0;return function(){var r=ze(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Ne=qe(ve),Ue=/\{\n\/\* \[wrapped with (.+)\] \*/,Fe=/,? & /,$e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function He(e){return function(){return e}}var Ke=function(){try{var e=fe(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ve=Ke,Ye=Ve?function(e,t){return Ve(e,"toString",{configurable:!0,enumerable:!1,value:He(t),writable:!0})}:J,Ze=qe(Ye);function Ge(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Je(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Qe(e){return e!=e}function Xe(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Je(e,Qe,n)}function et(e,t){return!(null==e||!e.length)&&Xe(e,t,0)>-1}var tt=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function nt(e,t,n){var r=t+"";return Ze(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace($e,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ge(tt,function(n){var r="_."+n[0];t&n[1]&&!et(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Ue);return t?t[1].split(Fe):[]}(r),n)))}function rt(e,t,n,r,o,i,a,u,s,l){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var f=[e,t,o,c?i:void 0,c?a:void 0,c?void 0:i,c?void 0:a,u,s,l],p=n.apply(void 0,f);return De(e)&&Ne(p,f),p.placeholder=r,nt(p,e,t)}function ot(e){return e.placeholder}var it=/^(?:0|[1-9]\d*)$/;function at(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&it.test(e))&&e>-1&&e%1==0&&e<t}var ut=Math.min,st="__lodash_placeholder__";function lt(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==st||(e[n]=st,i[o++]=n)}return i}function ct(e,t,n,r,o,i,a,u,s,l){var c=128&t,f=1&t,p=2&t,d=24&t,h=512&t,v=p?void 0:_e(e);return function g(){for(var y=arguments.length,_=Array(y),b=y;b--;)_[b]=arguments[b];if(d)var x=ot(g),C=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(_,x);if(r&&(_=Ce(_,r,o,d)),i&&(_=we(_,i,a,d)),y-=C,d&&y<l){var j=lt(_,x);return rt(e,t,ct,g.placeholder,n,_,j,u,s,l-y)}var w=f?n:this,E=p?w[e]:e;return y=_.length,u?_=function(e,t){for(var n=e.length,r=ut(t.length,n),o=Le(e);r--;){var i=t[r];e[r]=at(i,n)?o[i]:void 0}return e}(_,u):h&&y>1&&_.reverse(),c&&s<y&&(_.length=s),this&&this!==m&&this instanceof g&&(E=v||_e(E)),E.apply(w,_)}}var ft="__lodash_placeholder__",pt=Math.min,dt=Math.max;function ht(e,t,n,r,o,i,a,u){var s=2&t;if(!s&&"function"!=typeof e)throw new TypeError("Expected a function");var l=r?r.length:0;if(l||(t&=-97,r=o=void 0),a=void 0===a?a:dt(Z(a),0),u=void 0===u?u:Z(u),l-=o?o.length:0,64&t){var c=r,f=o;r=o=void 0}var p=s?void 0:Me(e),d=[e,t,n,r,o,c,f,i,a,u];if(p&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var s=e[3];e[3]=s?Ce(s,u,t[4]):u,e[4]=s?lt(e[3],ft):t[4]}(u=t[5])&&(s=e[5],e[5]=s?we(s,u,t[6]):u,e[6]=s?lt(e[5],ft):t[6]),(u=t[7])&&(e[7]=u),128&r&&(e[8]=null==e[8]?t[8]:pt(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(d,p),e=d[0],t=d[1],n=d[2],r=d[3],o=d[4],!(u=d[9]=void 0===d[9]?s?0:e.length:dt(d[9]-l,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||16==t?function(e,t,n){var r=_e(e);return function o(){for(var i=arguments.length,a=Array(i),u=i,s=ot(o);u--;)a[u]=arguments[u];var l=i<3&&a[0]!==s&&a[i-1]!==s?[]:lt(a,s);return(i-=l.length)<n?rt(e,t,ct,o.placeholder,void 0,a,l,void 0,void 0,n-i):be(this&&this!==m&&this instanceof o?r:e,this,a)}}(e,t,u):32!=t&&33!=t||o.length?ct.apply(void 0,d):function(e,t,n,r){var o=1&t,i=_e(e);return function t(){for(var a=-1,u=arguments.length,s=-1,l=r.length,c=Array(l+u),f=this&&this!==m&&this instanceof t?i:e;++s<l;)c[s]=r[s];for(;u--;)c[s++]=arguments[++a];return be(f,o?n:this,c)}}(e,t,n,r);else var h=function(e,t,n){var r=1&t,o=_e(e);return function t(){return(this&&this!==m&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return nt((p?ve:Ne)(h,d),e,t)}function vt(e,t,n){return t=n?void 0:t,ht(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function gt(e,t,n){"__proto__"==t&&Ve?Ve(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function yt(e,t){return e===t||e!=e&&t!=t}var mt=Object.prototype.hasOwnProperty;function _t(e,t,n){var r=e[t];mt.call(e,t)&&yt(r,n)&&(void 0!==n||t in e)||gt(e,t,n)}function bt(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var u=t[i],s=r?r(n[u],e[u],u,n,e):void 0;void 0===s&&(s=e[u]),o?gt(n,u,s):_t(n,u,s)}return n}var xt=Math.max;function Ct(e,t,n){return t=xt(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=xt(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=r[o];return u[t]=n(a),be(e,this,u)}}function jt(e,t){return Ze(Ct(e,t,J),e+"")}function wt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Et(e){return null!=e&&wt(e.length)&&!Q(e)}function At(e,t,n){if(!N(n))return!1;var r=typeof t;return!!("number"==r?Et(n)&&at(t,n.length):"string"==r&&t in n)&&yt(n[t],e)}function Ot(e){return jt(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&At(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,i)}return t})}var St=Object.prototype;function Mt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||St)}function It(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function kt(e){return O(e)&&"[object Arguments]"==A(e)}var Pt=Object.prototype,Rt=Pt.hasOwnProperty,Lt=Pt.propertyIsEnumerable,Wt=kt(function(){return arguments}())?kt:function(e){return O(e)&&Rt.call(e,"callee")&&!Lt.call(e,"callee")};function Bt(){return!1}var Tt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Dt=Tt&&"object"==typeof module&&module&&!module.nodeType&&module,zt=Dt&&Dt.exports===Tt?m.Buffer:void 0,qt=(zt?zt.isBuffer:void 0)||Bt,Nt={};function Ut(e){return function(t){return e(t)}}Nt["[object Float32Array]"]=Nt["[object Float64Array]"]=Nt["[object Int8Array]"]=Nt["[object Int16Array]"]=Nt["[object Int32Array]"]=Nt["[object Uint8Array]"]=Nt["[object Uint8ClampedArray]"]=Nt["[object Uint16Array]"]=Nt["[object Uint32Array]"]=!0,Nt["[object Arguments]"]=Nt["[object Array]"]=Nt["[object ArrayBuffer]"]=Nt["[object Boolean]"]=Nt["[object DataView]"]=Nt["[object Date]"]=Nt["[object Error]"]=Nt["[object Function]"]=Nt["[object Map]"]=Nt["[object Number]"]=Nt["[object Object]"]=Nt["[object RegExp]"]=Nt["[object Set]"]=Nt["[object String]"]=Nt["[object WeakMap]"]=!1;var Ft="object"==typeof exports&&exports&&!exports.nodeType&&exports,$t=Ft&&"object"==typeof module&&module&&!module.nodeType&&module,Ht=$t&&$t.exports===Ft&&g.process,Kt=function(){try{return $t&&$t.require&&$t.require("util").types||Ht&&Ht.binding&&Ht.binding("util")}catch(e){}}(),Vt=Kt&&Kt.isTypedArray,Yt=Vt?Ut(Vt):function(e){return O(e)&&wt(e.length)&&!!Nt[A(e)]},Zt=Object.prototype.hasOwnProperty;function Gt(e,t){var n=k(e),r=!n&&Wt(e),o=!n&&!r&&qt(e),i=!n&&!r&&!o&&Yt(e),a=n||r||o||i,u=a?It(e.length,String):[],s=u.length;for(var l in e)!t&&!Zt.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||at(l,s))||u.push(l);return u}function Jt(e,t){return function(n){return e(t(n))}}var Qt=Jt(Object.keys,Object),Xt=Object.prototype.hasOwnProperty;function en(e){if(!Mt(e))return Qt(e);var t=[];for(var n in Object(e))Xt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function tn(e){return Et(e)?Gt(e):en(e)}var nn=Object.prototype.hasOwnProperty,rn=Ot(function(e,t){if(Mt(t)||Et(t))bt(t,tn(t),e);else for(var n in t)nn.call(t,n)&&_t(e,n,t[n])}),on=rn,an=Object.prototype.hasOwnProperty;function un(e){return Et(e)?Gt(e,!0):function(e){if(!N(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Mt(e),n=[];for(var r in e)("constructor"!=r||!t&&an.call(e,r))&&n.push(r);return n}(e)}var sn=Ot(function(e,t){bt(t,un(t),e)}),ln=sn,cn=Ot(function(e,t,n,r){bt(t,un(t),e,r)}),fn=cn,pn=Ot(function(e,t,n,r){bt(t,tn(t),e,r)}),dn=pn,hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vn=/^\w*$/;function gn(e,t){if(k(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!S(e))||vn.test(e)||!hn.test(e)||null!=t&&e in Object(t)}var yn=fe(Object,"create"),mn=Object.prototype.hasOwnProperty,_n=Object.prototype.hasOwnProperty;function bn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function xn(e,t){for(var n=e.length;n--;)if(yt(e[n][0],t))return n;return-1}bn.prototype.clear=function(){this.__data__=yn?yn(null):{},this.size=0},bn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},bn.prototype.get=function(e){var t=this.__data__;if(yn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return mn.call(t,e)?t[e]:void 0},bn.prototype.has=function(e){var t=this.__data__;return yn?void 0!==t[e]:_n.call(t,e)},bn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=yn&&void 0===t?"__lodash_hash_undefined__":t,this};var Cn=Array.prototype.splice;function jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}jn.prototype.clear=function(){this.__data__=[],this.size=0},jn.prototype.delete=function(e){var t=this.__data__,n=xn(t,e);return!(n<0||(n==t.length-1?t.pop():Cn.call(t,n,1),--this.size,0))},jn.prototype.get=function(e){var t=this.__data__,n=xn(t,e);return n<0?void 0:t[n][1]},jn.prototype.has=function(e){return xn(this.__data__,e)>-1},jn.prototype.set=function(e,t){var n=this.__data__,r=xn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var wn=fe(m,"Map");function En(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function An(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function On(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(On.Cache||An),n}An.prototype.clear=function(){this.size=0,this.__data__={hash:new bn,map:new(wn||jn),string:new bn}},An.prototype.delete=function(e){var t=En(this,e).delete(e);return this.size-=t?1:0,t},An.prototype.get=function(e){return En(this,e).get(e)},An.prototype.has=function(e){return En(this,e).has(e)},An.prototype.set=function(e,t){var n=En(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},On.Cache=An;var Sn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mn=/\\(\\)?/g,In=function(){var e=On(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Sn,function(e,n,r,o){t.push(r?o.replace(Mn,"$1"):n||e)}),t},function(e){return 500===t.size&&t.clear(),e}),t=e.cache;return e}(),kn=In;function Pn(e){return null==e?"":L(e)}function Rn(e,t){return k(e)?e:gn(e,t)?[e]:kn(Pn(e))}function Ln(e){if("string"==typeof e||S(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Wn(e,t){for(var n=0,r=(t=Rn(t,e)).length;null!=e&&n<r;)e=e[Ln(t[n++])];return n&&n==r?e:void 0}function Bn(e,t,n){var r=null==e?void 0:Wn(e,t);return void 0===r?n:r}function Tn(e,t){for(var n=-1,r=t.length,o=Array(r),i=null==e;++n<r;)o[n]=i?void 0:Bn(e,t[n]);return o}function Dn(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var zn=_?_.isConcatSpreadable:void 0;function qn(e){return k(e)||Wt(e)||!!(zn&&e&&e[zn])}function Nn(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=qn),o||(o=[]);++i<a;){var u=e[i];t>0&&n(u)?t>1?Nn(u,t-1,n,r,o):Dn(o,u):r||(o[o.length]=u)}return o}function Un(e){return null!=e&&e.length?Nn(e,1):[]}function Fn(e){return Ze(Ct(e,void 0,Un),e+"")}var $n=Fn(Tn),Hn=Jt(Object.getPrototypeOf,Object),Kn=Function.prototype,Vn=Object.prototype,Yn=Kn.toString,Zn=Vn.hasOwnProperty,Gn=Yn.call(Object);function Jn(e){if(!O(e)||"[object Object]"!=A(e))return!1;var t=Hn(e);if(null===t)return!0;var n=Zn.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Yn.call(n)==Gn}function Qn(e){if(!O(e))return!1;var t=A(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Jn(e)}var Xn=jt(function(e,t){try{return be(e,void 0,t)}catch(e){return Qn(e)?e:new Error(e)}}),er=Xn;function tr(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=Z(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var nr=jt(function(e,t,n){var r=1;if(n.length){var o=lt(n,ot(nr));r|=32}return ht(e,r,t,n,o)});nr.placeholder={};var rr=nr,or=Fn(function(e,t){return Ge(t,function(t){t=Ln(t),gt(e,t,rr(e[t],e))}),e}),ir=or,ar=jt(function(e,t,n){var r=3;if(n.length){var o=lt(n,ot(ar));r|=32}return ht(t,r,e,n,o)});ar.placeholder={};var ur=ar;function sr(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function lr(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:sr(e,t,n)}var cr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function fr(e){return cr.test(e)}var pr="\\ud800-\\udfff",dr="["+pr+"]",hr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",vr="\\ud83c[\\udffb-\\udfff]",gr="[^"+pr+"]",yr="(?:\\ud83c[\\udde6-\\uddff]){2}",mr="[\\ud800-\\udbff][\\udc00-\\udfff]",_r="(?:"+hr+"|"+vr+")?",br="[\\ufe0e\\ufe0f]?",xr=br+_r+"(?:\\u200d(?:"+[gr,yr,mr].join("|")+")"+br+_r+")*",Cr="(?:"+[gr+hr+"?",hr,yr,mr,dr].join("|")+")",jr=RegExp(vr+"(?="+vr+")|"+Cr+xr,"g");function wr(e){return fr(e)?function(e){return e.match(jr)||[]}(e):function(e){return e.split("")}(e)}function Er(e){return function(t){var n=fr(t=Pn(t))?wr(t):void 0,r=n?n[0]:t.charAt(0),o=n?lr(n,1).join(""):t.slice(1);return r[e]()+o}}var Ar=Er("toUpperCase");function Or(e){return Ar(Pn(e).toLowerCase())}function Sr(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Mr(e){return function(t){return null==e?void 0:e[t]}}var Ir=Mr({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),kr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Pr=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");function Rr(e){return(e=Pn(e))&&e.replace(kr,Ir).replace(Pr,"")}var Lr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Br="\\ud800-\\udfff",Tr="\\u2700-\\u27bf",Dr="a-z\\xdf-\\xf6\\xf8-\\xff",zr="A-Z\\xc0-\\xd6\\xd8-\\xde",qr="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Nr="["+qr+"]",Ur="\\d+",Fr="["+Tr+"]",$r="["+Dr+"]",Hr="[^"+Br+qr+Ur+Tr+Dr+zr+"]",Kr="(?:\\ud83c[\\udde6-\\uddff]){2}",Vr="[\\ud800-\\udbff][\\udc00-\\udfff]",Yr="["+zr+"]",Zr="(?:"+$r+"|"+Hr+")",Gr="(?:"+Yr+"|"+Hr+")",Jr="(?:['’](?:d|ll|m|re|s|t|ve))?",Qr="(?:['’](?:D|LL|M|RE|S|T|VE))?",Xr="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",eo="[\\ufe0e\\ufe0f]?",to=eo+Xr+"(?:\\u200d(?:"+["[^"+Br+"]",Kr,Vr].join("|")+")"+eo+Xr+")*",no="(?:"+[Fr,Kr,Vr].join("|")+")"+to,ro=RegExp([Yr+"?"+$r+"+"+Jr+"(?="+[Nr,Yr,"$"].join("|")+")",Gr+"+"+Qr+"(?="+[Nr,Yr+Zr,"$"].join("|")+")",Yr+"?"+Zr+"+"+Jr,Yr+"+"+Qr,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ur,no].join("|"),"g");function oo(e,t,n){return e=Pn(e),void 0===(t=n?void 0:t)?function(e){return Wr.test(e)}(e)?function(e){return e.match(ro)||[]}(e):function(e){return e.match(Lr)||[]}(e):e.match(t)||[]}var io=RegExp("['’]","g");function ao(e){return function(t){return Sr(oo(Rr(t).replace(io,"")),e,"")}}var uo=ao(function(e,t,n){return t=t.toLowerCase(),e+(n?Or(t):t)}),so=uo;function lo(){if(!arguments.length)return[];var e=arguments[0];return k(e)?e:[e]}var co=m.isFinite,fo=Math.min;function po(e){var t=Math[e];return function(e,n){if(e=K(e),(n=null==n?0:fo(Z(n),292))&&co(e)){var r=(Pn(e)+"e").split("e");return+((r=(Pn(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var ho=po("ceil");function vo(e){var t=Te(e);return t.__chain__=!0,t}var go=Math.ceil,yo=Math.max;function mo(e,t,n){t=(n?At(e,t,n):void 0===t)?1:yo(Z(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Array(go(r/t));o<r;)a[i++]=sr(e,o,o+=t);return a}function _o(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function bo(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=K(n))==n?n:0),void 0!==t&&(t=(t=K(t))==t?t:0),_o(K(e),t,n)}function xo(e){var t=this.__data__=new jn(e);this.size=t.size}function Co(e,t){return e&&bt(t,tn(t),e)}xo.prototype.clear=function(){this.__data__=new jn,this.size=0},xo.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},xo.prototype.get=function(e){return this.__data__.get(e)},xo.prototype.has=function(e){return this.__data__.has(e)},xo.prototype.set=function(e,t){var n=this.__data__;if(n instanceof jn){var r=n.__data__;if(!wn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new An(r)}return n.set(e,t),this.size=n.size,this};var jo="object"==typeof exports&&exports&&!exports.nodeType&&exports,wo=jo&&"object"==typeof module&&module&&!module.nodeType&&module,Eo=wo&&wo.exports===jo?m.Buffer:void 0,Ao=Eo?Eo.allocUnsafe:void 0;function Oo(e,t){if(t)return e.slice();var n=e.length,r=Ao?Ao(n):new e.constructor(n);return e.copy(r),r}function So(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Mo(){return[]}var Io=Object.prototype.propertyIsEnumerable,ko=Object.getOwnPropertySymbols,Po=ko?function(e){return null==e?[]:(e=Object(e),So(ko(e),function(t){return Io.call(e,t)}))}:Mo,Ro=Po,Lo=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Dn(t,Ro(e)),e=Hn(e);return t}:Mo,Wo=Lo;function Bo(e,t,n){var r=t(e);return k(e)?r:Dn(r,n(e))}function To(e){return Bo(e,tn,Ro)}function Do(e){return Bo(e,un,Wo)}var zo=fe(m,"DataView"),qo=fe(m,"Promise"),No=fe(m,"Set"),Uo="[object Map]",Fo="[object Promise]",$o="[object Set]",Ho="[object WeakMap]",Ko="[object DataView]",Vo=re(zo),Yo=re(wn),Zo=re(qo),Go=re(No),Jo=re(pe),Qo=A;(zo&&Qo(new zo(new ArrayBuffer(1)))!=Ko||wn&&Qo(new wn)!=Uo||qo&&Qo(qo.resolve())!=Fo||No&&Qo(new No)!=$o||pe&&Qo(new pe)!=Ho)&&(Qo=function(e){var t=A(e),n="[object Object]"==t?e.constructor:void 0,r=n?re(n):"";if(r)switch(r){case Vo:return Ko;case Yo:return Uo;case Zo:return Fo;case Go:return $o;case Jo:return Ho}return t});var Xo=Qo,ei=Object.prototype.hasOwnProperty,ti=m.Uint8Array;function ni(e){var t=new e.constructor(e.byteLength);return new ti(t).set(new ti(e)),t}var ri=/\w*$/,oi=_?_.prototype:void 0,ii=oi?oi.valueOf:void 0;function ai(e,t){var n=t?ni(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ui(e){return"function"!=typeof e.constructor||Mt(e)?{}:me(Hn(e))}var si=Kt&&Kt.isMap,li=si?Ut(si):function(e){return O(e)&&"[object Map]"==Xo(e)},ci=Kt&&Kt.isSet,fi=ci?Ut(ci):function(e){return O(e)&&"[object Set]"==Xo(e)},pi="[object Arguments]",di="[object Function]",hi="[object Object]",vi={};function gi(e,t,n,r,o,i){var a,u=1&t,s=2&t,l=4&t;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!N(e))return e;var c=k(e);if(c){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ei.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Le(e,a)}else{var f=Xo(e),p=f==di||"[object GeneratorFunction]"==f;if(qt(e))return Oo(e,u);if(f==hi||f==pi||p&&!o){if(a=s||p?{}:ui(e),!u)return s?function(e,t){return bt(e,Wo(e),t)}(e,function(e,t){return e&&bt(t,un(t),e)}(a,e)):function(e,t){return bt(e,Ro(e),t)}(e,Co(a,e))}else{if(!vi[f])return o?e:{};a=function(e,t,n){var r,o=e.constructor;switch(t){case"[object ArrayBuffer]":return ni(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return function(e,t){var n=t?ni(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ai(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,ri.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return r=e,ii?Object(ii.call(r)):{}}}(e,f,u)}}i||(i=new xo);var d=i.get(e);if(d)return d;i.set(e,a),fi(e)?e.forEach(function(r){a.add(gi(r,t,n,r,e,i))}):li(e)&&e.forEach(function(r,o){a.set(o,gi(r,t,n,o,e,i))});var h=c?void 0:(l?s?Do:To:s?un:tn)(e);return Ge(h||e,function(r,o){h&&(r=e[o=r]),_t(a,o,gi(r,t,n,o,e,i))}),a}function yi(e){return gi(e,4)}function mi(e){return gi(e,5)}function _i(e,t){return gi(e,5,t="function"==typeof t?t:void 0)}function bi(e,t){return gi(e,4,t="function"==typeof t?t:void 0)}function xi(){return new Re(this.value(),this.__chain__)}function Ci(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o}function ji(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Dn(k(n)?Le(n):[n],Nn(t,1))}function wi(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new An;++t<n;)this.add(e[t])}function Ei(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Ai(e,t){return e.has(t)}function Oi(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var l=i.get(e),c=i.get(t);if(l&&c)return l==t&&c==e;var f=-1,p=!0,d=2&n?new wi:void 0;for(i.set(e,t),i.set(t,e);++f<u;){var h=e[f],v=t[f];if(r)var g=a?r(v,h,f,t,e,i):r(h,v,f,e,t,i);if(void 0!==g){if(g)continue;p=!1;break}if(d){if(!Ei(t,function(e,t){if(!Ai(d,t)&&(h===e||o(h,e,n,r,i)))return d.push(t)})){p=!1;break}}else if(h!==v&&!o(h,v,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function Si(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Mi(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}vi[pi]=vi["[object Array]"]=vi["[object ArrayBuffer]"]=vi["[object DataView]"]=vi["[object Boolean]"]=vi["[object Date]"]=vi["[object Float32Array]"]=vi["[object Float64Array]"]=vi["[object Int8Array]"]=vi["[object Int16Array]"]=vi["[object Int32Array]"]=vi["[object Map]"]=vi["[object Number]"]=vi[hi]=vi["[object RegExp]"]=vi["[object Set]"]=vi["[object String]"]=vi["[object Symbol]"]=vi["[object Uint8Array]"]=vi["[object Uint8ClampedArray]"]=vi["[object Uint16Array]"]=vi["[object Uint32Array]"]=!0,vi["[object Error]"]=vi[di]=vi["[object WeakMap]"]=!1,wi.prototype.add=wi.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},wi.prototype.has=function(e){return this.__data__.has(e)};var Ii=_?_.prototype:void 0,ki=Ii?Ii.valueOf:void 0,Pi=Object.prototype.hasOwnProperty,Ri="[object Arguments]",Li="[object Array]",Wi="[object Object]",Bi=Object.prototype.hasOwnProperty;function Ti(e,t,n,r,o){return e===t||(null==e||null==t||!O(e)&&!O(t)?e!=e&&t!=t:function(e,t,n,r,o,i){var a=k(e),u=k(t),s=a?Li:Xo(e),l=u?Li:Xo(t),c=(s=s==Ri?Wi:s)==Wi,f=(l=l==Ri?Wi:l)==Wi,p=s==l;if(p&&qt(e)){if(!qt(t))return!1;a=!0,c=!1}if(p&&!c)return i||(i=new xo),a||Yt(e)?Oi(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new ti(e),new ti(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return yt(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var u=Si;case"[object Set]":var s=1&r;if(u||(u=Mi),e.size!=t.size&&!s)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var c=Oi(u(e),u(t),r,o,i,a);return a.delete(e),c;case"[object Symbol]":if(ki)return ki.call(e)==ki.call(t)}return!1}(e,t,s,n,r,o,i);if(!(1&n)){var d=c&&Bi.call(e,"__wrapped__"),h=f&&Bi.call(t,"__wrapped__");if(d||h){var v=d?e.value():e,g=h?t.value():t;return i||(i=new xo),o(v,g,n,r,i)}}return!!p&&(i||(i=new xo),function(e,t,n,r,o,i){var a=1&n,u=To(e),s=u.length;if(s!=To(t).length&&!a)return!1;for(var l=s;l--;){var c=u[l];if(!(a?c in t:Pi.call(t,c)))return!1}var f=i.get(e),p=i.get(t);if(f&&p)return f==t&&p==e;var d=!0;i.set(e,t),i.set(t,e);for(var h=a;++l<s;){var v=e[c=u[l]],g=t[c];if(r)var y=a?r(g,v,c,t,e,i):r(v,g,c,e,t,i);if(!(void 0===y?v===g||o(v,g,n,r,i):y)){d=!1;break}h||(h="constructor"==c)}if(d&&!h){var m=e.constructor,_=t.constructor;m==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof _&&_ instanceof _||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,r,o,i))}(e,t,n,r,Ti,o))}function Di(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var u=n[o];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<i;){var s=(u=n[o])[0],l=e[s],c=u[1];if(a&&u[2]){if(void 0===l&&!(s in e))return!1}else{var f=new xo;if(r)var p=r(l,c,s,e,t,f);if(!(void 0===p?Ti(c,l,3,r,f):p))return!1}}return!0}function zi(e){return e==e&&!N(e)}function qi(e){for(var t=tn(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,zi(o)]}return t}function Ni(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}function Ui(e){var t=qi(e);return 1==t.length&&t[0][2]?Ni(t[0][0],t[0][1]):function(n){return n===e||Di(n,e,t)}}function Fi(e,t){return null!=e&&t in Object(e)}function $i(e,t,n){for(var r=-1,o=(t=Rn(t,e)).length,i=!1;++r<o;){var a=Ln(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&wt(o)&&at(a,o)&&(k(e)||Wt(e))}function Hi(e,t){return null!=e&&$i(e,t,Fi)}function Ki(e,t){return gn(e)&&zi(t)?Ni(Ln(e),t):function(n){var r=Bn(n,e);return void 0===r&&r===t?Hi(n,e):Ti(t,r,3)}}function Vi(e){return function(t){return null==t?void 0:t[e]}}function Yi(e){return gn(e)?Vi(Ln(e)):function(e){return function(t){return Wn(t,e)}}(e)}function Zi(e){return"function"==typeof e?e:null==e?J:"object"==typeof e?k(e)?Ki(e[0],e[1]):Ui(e):Yi(e)}function Gi(e){var t=null==e?0:e.length,n=Zi;return e=t?I(e,function(e){if("function"!=typeof e[1])throw new TypeError("Expected a function");return[n(e[0]),e[1]]}):[],jt(function(n){for(var r=-1;++r<t;){var o=e[r];if(be(o[0],this,n))return be(o[1],this,n)}})}function Ji(e,t,n){var r=n.length;if(null==e)return!r;for(e=Object(e);r--;){var o=n[r],i=t[o],a=e[o];if(void 0===a&&!(o in e)||!i(a))return!1}return!0}function Qi(e){return function(e){var t=tn(e);return function(n){return Ji(n,e,t)}}(gi(e,1))}function Xi(e,t){return null==t||Ji(e,t,tn(t))}function ea(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function ta(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),u=a.length;u--;){var s=a[e?u:++o];if(!1===n(i[s],s,i))break}return t}}var na=ta();function ra(e,t){return e&&na(e,t,tn)}function oa(e,t){return function(n,r){if(null==n)return n;if(!Et(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}var ia=oa(ra);function aa(e,t,n,r){return ia(e,function(e,o,i){t(r,e,n(e),i)}),r}function ua(e,t){return function(n,r){var o=k(n)?ea:aa,i=t?t():{};return o(n,e,Zi(r),i)}}var sa=Object.prototype.hasOwnProperty,la=ua(function(e,t,n){sa.call(e,n)?++e[n]:gt(e,n,1)}),ca=la;function fa(e,t){var n=me(e);return null==t?n:Co(n,t)}function pa(e,t,n){var r=ht(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=pa.placeholder,r}function da(e,t,n){var r=ht(e,16,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=da.placeholder,r}pa.placeholder={},da.placeholder={};var ha=function(){return m.Date.now()},va=Math.max,ga=Math.min;function ya(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function d(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e=ha();if(h(e))return g(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?ga(n,i-(e-l)):n}(e))}function g(e){return u=void 0,p&&r?d(e):(r=o=void 0,a)}function y(){var e=ha(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(v,t),c?d(e):a}(s);if(f)return clearTimeout(u),u=setTimeout(v,t),d(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=K(t)||0,N(n)&&(c=!!n.leading,i=(f="maxWait"in n)?va(K(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},y.flush=function(){return void 0===u?a:g(ha())},y}function ma(e,t){return null==e||e!=e?t:e}var _a=Object.prototype,ba=_a.hasOwnProperty,xa=jt(function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&At(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=un(i),u=-1,s=a.length;++u<s;){var l=a[u],c=e[l];(void 0===c||yt(c,_a[l])&&!ba.call(e,l))&&(e[l]=i[l])}return e}),Ca=xa;function ja(e,t,n){(void 0!==n&&!yt(e[t],n)||void 0===n&&!(t in e))&&gt(e,t,n)}function wa(e){return O(e)&&Et(e)}function Ea(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function Aa(e){return bt(e,un(e))}function Oa(e,t,n,r,o){e!==t&&na(t,function(i,a){if(o||(o=new xo),N(i))!function(e,t,n,r,o,i,a){var u=Ea(e,n),s=Ea(t,n),l=a.get(s);if(l)ja(e,n,l);else{var c=i?i(u,s,n+"",e,t,a):void 0,f=void 0===c;if(f){var p=k(s),d=!p&&qt(s),h=!p&&!d&&Yt(s);c=s,p||d||h?k(u)?c=u:wa(u)?c=Le(u):d?(f=!1,c=Oo(s,!0)):h?(f=!1,c=ai(s,!0)):c=[]:Jn(s)||Wt(s)?(c=u,Wt(u)?c=Aa(u):N(u)&&!Q(u)||(c=ui(s))):f=!1}f&&(a.set(s,c),o(c,s,r,i,a),a.delete(s)),ja(e,n,c)}}(e,t,a,n,Oa,r,o);else{var u=r?r(Ea(e,a),i,a+"",e,t,o):void 0;void 0===u&&(u=i),ja(e,a,u)}},un)}function Sa(e,t,n,r,o,i){return N(e)&&N(t)&&(i.set(t,e),Oa(e,t,void 0,Sa,i),i.delete(t)),e}var Ma=Ot(function(e,t,n,r){Oa(e,t,n,r)}),Ia=Ma,ka=jt(function(e){return e.push(void 0,Sa),be(Ia,void 0,e)});function Pa(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout(function(){e.apply(void 0,n)},t)}var Ra=jt(function(e,t){return Pa(e,1,t)}),La=Ra,Wa=jt(function(e,t,n){return Pa(e,K(t)||0,n)}),Ba=Wa;function Ta(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Da(e,t,n,r){var o=-1,i=et,a=!0,u=e.length,s=[],l=t.length;if(!u)return s;n&&(t=I(t,Ut(n))),r?(i=Ta,a=!1):t.length>=200&&(i=Ai,a=!1,t=new wi(t));e:for(;++o<u;){var c=e[o],f=null==n?c:n(c);if(c=r||0!==c?c:0,a&&f==f){for(var p=l;p--;)if(t[p]===f)continue e;s.push(c)}else i(t,f,r)||s.push(c)}return s}var za=jt(function(e,t){return wa(e)?Da(e,Nn(t,1,wa,!0)):[]}),qa=za;function Na(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Ua=jt(function(e,t){var n=Na(t);return wa(n)&&(n=void 0),wa(e)?Da(e,Nn(t,1,wa,!0),Zi(n)):[]}),Fa=Ua,$a=jt(function(e,t){var n=Na(t);return wa(n)&&(n=void 0),wa(e)?Da(e,Nn(t,1,wa,!0),void 0,n):[]}),Ha=$a,Ka=W(function(e,t){return e/t},1);function Va(e,t,n){var r=null==e?0:e.length;return r?sr(e,(t=n||void 0===t?1:Z(t))<0?0:t,r):[]}function Ya(e,t,n){var r=null==e?0:e.length;return r?sr(e,0,(t=r-(t=n||void 0===t?1:Z(t)))<0?0:t):[]}function Za(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?sr(e,r?0:i,r?i+1:o):sr(e,r?i+1:0,r?o:i)}function Ga(e,t){return e&&e.length?Za(e,Zi(t),!0,!0):[]}function Ja(e,t){return e&&e.length?Za(e,Zi(t),!0):[]}function Qa(e){return"function"==typeof e?e:J}function Xa(e,t){return(k(e)?Ge:ia)(e,Qa(t))}function eu(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}var tu=ta(!0);function nu(e,t){return e&&tu(e,t,tn)}var ru=oa(nu,!0);function ou(e,t){return(k(e)?eu:ru)(e,Qa(t))}function iu(e,t,n){e=Pn(e),t=L(t);var r=e.length,o=n=void 0===n?r:_o(Z(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t}function au(e){return function(t){var n=Xo(t);return"[object Map]"==n?Si(t):"[object Set]"==n?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}(t):function(e,t){return I(t,function(t){return[t,e[t]]})}(t,e(t))}}var uu=au(tn),su=au(un),lu=Mr({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),cu=/[&<>"']/g,fu=RegExp(cu.source);function pu(e){return(e=Pn(e))&&fu.test(e)?e.replace(cu,lu):e}var du=/[\\^$.*+?()[\]{}|]/g,hu=RegExp(du.source);function vu(e){return(e=Pn(e))&&hu.test(e)?e.replace(du,"\\$&"):e}function gu(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function yu(e,t){var n=!0;return ia(e,function(e,r,o){return n=!!t(e,r,o)}),n}function mu(e,t,n){var r=k(e)?gu:yu;return n&&At(e,t,n)&&(t=void 0),r(e,Zi(t))}function _u(e){return e?_o(Z(e),0,4294967295):0}function bu(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&At(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=Z(n))<0&&(n=-n>o?0:o+n),(r=void 0===r||r>o?o:Z(r))<0&&(r+=o),r=n>r?0:_u(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]}function xu(e,t){var n=[];return ia(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function Cu(e,t){return(k(e)?So:xu)(e,Zi(t))}function ju(e){return function(t,n,r){var o=Object(t);if(!Et(t)){var i=Zi(n);t=tn(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}}var wu=Math.max;function Eu(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Z(n);return o<0&&(o=wu(r+o,0)),Je(e,Zi(t),o)}var Au=ju(Eu);function Ou(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function Su(e,t){return Ou(e,Zi(t),ra)}var Mu=Math.max,Iu=Math.min;function ku(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=Z(n),o=n<0?Mu(r+o,0):Iu(o,r-1)),Je(e,Zi(t),o,!0)}var Pu=ju(ku);function Ru(e,t){return Ou(e,Zi(t),nu)}function Lu(e){return e&&e.length?e[0]:void 0}function Wu(e,t){var n=-1,r=Et(e)?Array(e.length):[];return ia(e,function(e,o,i){r[++n]=t(e,o,i)}),r}function Bu(e,t){return(k(e)?I:Wu)(e,Zi(t))}function Tu(e,t){return Nn(Bu(e,t),1)}var Du=1/0;function zu(e,t){return Nn(Bu(e,t),Du)}function qu(e,t,n){return n=void 0===n?1:Z(n),Nn(Bu(e,t),n)}var Nu=1/0;function Uu(e){return null!=e&&e.length?Nn(e,Nu):[]}function Fu(e,t){return null!=e&&e.length?Nn(e,t=void 0===t?1:Z(t)):[]}function $u(e){return ht(e,512)}var Hu=po("floor");function Ku(e){return Fn(function(t){var n=t.length,r=n,o=Re.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!a&&"wrapper"==Pe(i))var a=new Re([],!0)}for(r=a?r:n;++r<n;){var u=Pe(i=t[r]),s="wrapper"==u?Me(i):void 0;a=s&&De(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?a[Pe(s[0])].apply(a,s[3]):1==i.length&&De(i)?a[u]():a.thru(i)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&k(r))return a.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}})}var Vu=Ku(),Yu=Ku(!0);function Zu(e,t){return null==e?e:na(e,Qa(t),un)}function Gu(e,t){return null==e?e:tu(e,Qa(t),un)}function Ju(e,t){return e&&ra(e,Qa(t))}function Qu(e,t){return e&&nu(e,Qa(t))}function Xu(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function es(e,t){return So(t,function(t){return Q(e[t])})}function ts(e){return null==e?[]:es(e,tn(e))}function ns(e){return null==e?[]:es(e,un(e))}var rs=Object.prototype.hasOwnProperty,os=ua(function(e,t,n){rs.call(e,n)?e[n].push(t):gt(e,n,[t])}),is=os;function as(e,t){return e>t}function us(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=K(t),n=K(n)),e(t,n)}}var ss=us(as),ls=us(function(e,t){return e>=t}),cs=Object.prototype.hasOwnProperty;function fs(e,t){return null!=e&&cs.call(e,t)}function ps(e,t){return null!=e&&$i(e,t,fs)}var ds=Math.max,hs=Math.min;function vs(e,t,n){return t=Y(t),void 0===n?(n=t,t=0):n=Y(n),function(e,t,n){return e>=hs(t,n)&&e<ds(t,n)}(e=K(e),t,n)}function gs(e){return"string"==typeof e||!k(e)&&O(e)&&"[object String]"==A(e)}function ys(e,t){return I(t,function(t){return e[t]})}function ms(e){return null==e?[]:ys(e,tn(e))}var _s=Math.max;function bs(e,t,n,r){e=Et(e)?e:ms(e),n=n&&!r?Z(n):0;var o=e.length;return n<0&&(n=_s(o+n,0)),gs(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Xe(e,t,n)>-1}var xs=Math.max;function Cs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Z(n);return o<0&&(o=xs(r+o,0)),Xe(e,t,o)}function js(e){return null!=e&&e.length?sr(e,0,-1):[]}var ws=Math.min;function Es(e,t,n){for(var r=n?Ta:et,o=e[0].length,i=e.length,a=i,u=Array(i),s=1/0,l=[];a--;){var c=e[a];a&&t&&(c=I(c,Ut(t))),s=ws(c.length,s),u[a]=!n&&(t||o>=120&&c.length>=120)?new wi(a&&c):void 0}c=e[0];var f=-1,p=u[0];e:for(;++f<o&&l.length<s;){var d=c[f],h=t?t(d):d;if(d=n||0!==d?d:0,!(p?Ai(p,h):r(l,h,n))){for(a=i;--a;){var v=u[a];if(!(v?Ai(v,h):r(e[a],h,n)))continue e}p&&p.push(h),l.push(d)}}return l}function As(e){return wa(e)?e:[]}var Os=jt(function(e){var t=I(e,As);return t.length&&t[0]===e[0]?Es(t):[]}),Ss=jt(function(e){var t=Na(e),n=I(e,As);return t===Na(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?Es(n,Zi(t)):[]}),Ms=Ss,Is=jt(function(e){var t=Na(e),n=I(e,As);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?Es(n,void 0,t):[]});function ks(e,t){return function(n,r){return function(e,t,n,r){return ra(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}var Ps=Object.prototype.toString,Rs=ks(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ps.call(t)),e[t]=n},He(J)),Ls=Rs,Ws=Object.prototype,Bs=Ws.hasOwnProperty,Ts=Ws.toString,Ds=ks(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ts.call(t)),Bs.call(e,t)?e[t].push(n):e[t]=[n]},Zi),zs=Ds;function qs(e,t){return t.length<2?e:Wn(e,sr(t,0,-1))}function Ns(e,t,n){var r=null==(e=qs(e,t=Rn(t,e)))?e:e[Ln(Na(t))];return null==r?void 0:be(r,e,n)}var Us=jt(Ns),Fs=jt(function(e,t,n){var r=-1,o="function"==typeof t,i=Et(e)?Array(e.length):[];return ia(e,function(e){i[++r]=o?be(t,e,n):Ns(e,t,n)}),i}),$s=Fs,Hs=Kt&&Kt.isArrayBuffer,Ks=Hs?Ut(Hs):function(e){return O(e)&&"[object ArrayBuffer]"==A(e)};function Vs(e){return!0===e||!1===e||O(e)&&"[object Boolean]"==A(e)}var Ys=Kt&&Kt.isDate,Zs=Ys?Ut(Ys):function(e){return O(e)&&"[object Date]"==A(e)};function Gs(e){return O(e)&&1===e.nodeType&&!Jn(e)}var Js=Object.prototype.hasOwnProperty;function Qs(e){if(null==e)return!0;if(Et(e)&&(k(e)||"string"==typeof e||"function"==typeof e.splice||qt(e)||Yt(e)||Wt(e)))return!e.length;var t=Xo(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(Mt(e))return!en(e).length;for(var n in e)if(Js.call(e,n))return!1;return!0}function Xs(e,t){return Ti(e,t)}function el(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Ti(e,t,void 0,n):!!r}var tl=m.isFinite;function nl(e){return"number"==typeof e&&tl(e)}function rl(e){return"number"==typeof e&&e==Z(e)}function ol(e,t){return e===t||Di(e,t,qi(t))}function il(e,t,n){return n="function"==typeof n?n:void 0,Di(e,t,qi(t),n)}function al(e){return"number"==typeof e||O(e)&&"[object Number]"==A(e)}function ul(e){return al(e)&&e!=+e}var sl=ee?Q:Bt;function ll(e){if(sl(e))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ce(e)}function cl(e){return null==e}function fl(e){return null===e}var pl=Kt&&Kt.isRegExp,dl=pl?Ut(pl):function(e){return O(e)&&"[object RegExp]"==A(e)};function hl(e){return rl(e)&&e>=-9007199254740991&&e<=9007199254740991}function vl(e){return void 0===e}function gl(e){return O(e)&&"[object WeakMap]"==Xo(e)}function yl(e){return O(e)&&"[object WeakSet]"==A(e)}function ml(e){return Zi("function"==typeof e?e:gi(e,1))}var _l=Array.prototype.join;function bl(e,t){return null==e?"":_l.call(e,t)}var xl=ao(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Cl=xl,jl=ua(function(e,t,n){gt(e,n,t)}),wl=jl,El=Math.max,Al=Math.min;function Ol(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=Z(n))<0?El(r+o,0):Al(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Je(e,Qe,o,!0)}var Sl=ao(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Ml=Sl,Il=Er("toLowerCase");function kl(e,t){return e<t}var Pl=us(kl),Rl=us(function(e,t){return e<=t});function Ll(e,t){var n={};return t=Zi(t),ra(e,function(e,r,o){gt(n,t(e,r,o),e)}),n}function Wl(e,t){var n={};return t=Zi(t),ra(e,function(e,r,o){gt(n,r,t(e,r,o))}),n}function Bl(e){return Ui(gi(e,1))}function Tl(e,t){return Ki(e,gi(t,1))}function Dl(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===u?a==a&&!S(a):n(a,u)))var u=a,s=i}return s}function zl(e){return e&&e.length?Dl(e,J,as):void 0}function ql(e,t){return e&&e.length?Dl(e,Zi(t),as):void 0}function Nl(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}function Ul(e,t){var n=null==e?0:e.length;return n?Nl(e,t)/n:NaN}function Fl(e){return Ul(e,J)}function $l(e,t){return Ul(e,Zi(t))}var Hl=Ot(function(e,t,n){Oa(e,t,n)}),Kl=Hl,Vl=jt(function(e,t){return function(n){return Ns(n,e,t)}}),Yl=Vl,Zl=jt(function(e,t){return function(n){return Ns(e,n,t)}}),Gl=Zl;function Jl(e){return e&&e.length?Dl(e,J,kl):void 0}function Ql(e,t){return e&&e.length?Dl(e,Zi(t),kl):void 0}function Xl(e,t,n){var r=tn(t),o=es(t,r),i=!(N(n)&&"chain"in n&&!n.chain),a=Q(e);return Ge(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Le(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Dn([this.value()],arguments))})}),e}var ec=W(function(e,t){return e*t},1);function tc(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var nc=_?_.iterator:void 0;function rc(e){if(!e)return[];if(Et(e))return gs(e)?wr(e):Le(e);if(nc&&e[nc])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[nc]());var t=Xo(e);return("[object Map]"==t?Si:"[object Set]"==t?Mi:ms)(e)}function oc(){void 0===this.__values__&&(this.__values__=rc(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}}function ic(e,t){var n=e.length;if(n)return at(t+=t<0?n:0,n)?e[t]:void 0}function ac(e,t){return e&&e.length?ic(e,Z(t)):void 0}function uc(e){return e=Z(e),jt(function(t){return ic(t,e)})}var sc=Object.prototype.hasOwnProperty;function lc(e,t){var n=-1,r=(t=Rn(t,e)).length;if(!r)return!0;for(var o=null==e||"object"!=typeof e&&"function"!=typeof e;++n<r;){var i=t[n];if("string"==typeof i){if("__proto__"===i&&!sc.call(e,"__proto__"))return!1;if("constructor"===i&&n+1<r&&"string"==typeof t[n+1]&&"prototype"===t[n+1]){if(o&&0===n)continue;return!1}}}var a=qs(e,t);return null==a||delete a[Ln(Na(t))]}function cc(e){return Jn(e)?void 0:e}var fc=Fn(function(e,t){var n={};if(null==e)return n;var r=!1;t=I(t,function(t){return t=Rn(t,e),r||(r=t.length>1),t}),bt(e,Do(e),n),r&&(n=gi(n,7,cc));for(var o=t.length;o--;)lc(n,t[o]);return n}),pc=fc;function dc(e,t,n,r){if(!N(e))return e;for(var o=-1,i=(t=Rn(t,e)).length,a=i-1,u=e;null!=u&&++o<i;){var s=Ln(t[o]),l=n;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(o!=a){var c=u[s];void 0===(l=r?r(c,s,u):void 0)&&(l=N(c)?c:at(t[o+1])?[]:{})}_t(u,s,l),u=u[s]}return e}function hc(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],u=Wn(e,a);n(u,a)&&dc(i,Rn(a,e),u)}return i}function vc(e,t){if(null==e)return{};var n=I(Do(e),function(e){return[e]});return t=Zi(t),hc(e,n,function(e,n){return t(e,n[0])})}function gc(e,t){return vc(e,tc(Zi(t)))}function yc(e){return tr(2,e)}function mc(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=S(e),a=void 0!==t,u=null===t,s=t==t,l=S(t);if(!u&&!l&&!i&&e>t||i&&a&&s&&!u&&!l||r&&a&&s||!n&&s||!o)return 1;if(!r&&!i&&!l&&e<t||l&&n&&o&&!r&&!i||u&&n&&o||!a&&o||!s)return-1}return 0}function _c(e,t,n){t=t.length?I(t,function(e){return k(e)?function(t){return Wn(t,1===e.length?e[0]:e)}:e}):[J];var r=-1;t=I(t,Ut(Zi));var o=Wu(e,function(e,n,o){var i=I(t,function(t){return t(e)});return{criteria:i,index:++r,value:e}});return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,u=n.length;++r<a;){var s=mc(o[r],i[r]);if(s)return r>=u?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function bc(e,t,n,r){return null==e?[]:(k(t)||(t=null==t?[]:[t]),k(n=r?void 0:n)||(n=null==n?[]:[n]),_c(e,t,n))}function xc(e){return Fn(function(t){return t=I(t,Ut(Zi)),jt(function(n){var r=this;return e(t,function(e){return be(e,r,n)})})})}var Cc=xc(I),jc=jt,wc=Math.min,Ec=jc(function(e,t){var n=(t=1==t.length&&k(t[0])?I(t[0],Ut(Zi)):I(Nn(t,1),Ut(Zi))).length;return jt(function(r){for(var o=-1,i=wc(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return be(e,this,r)})}),Ac=Ec,Oc=xc(gu),Sc=xc(Ei),Mc=Math.floor;function Ic(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Mc(t/2))&&(e+=e)}while(t);return n}var kc=Vi("length"),Pc="\\ud800-\\udfff",Rc="["+Pc+"]",Lc="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Wc="\\ud83c[\\udffb-\\udfff]",Bc="[^"+Pc+"]",Tc="(?:\\ud83c[\\udde6-\\uddff]){2}",Dc="[\\ud800-\\udbff][\\udc00-\\udfff]",zc="(?:"+Lc+"|"+Wc+")?",qc="[\\ufe0e\\ufe0f]?",Nc=qc+zc+"(?:\\u200d(?:"+[Bc,Tc,Dc].join("|")+")"+qc+zc+")*",Uc="(?:"+[Bc+Lc+"?",Lc,Tc,Dc,Rc].join("|")+")",Fc=RegExp(Wc+"(?="+Wc+")|"+Uc+Nc,"g");function $c(e){return fr(e)?function(e){for(var t=Fc.lastIndex=0;Fc.test(e);)++t;return t}(e):kc(e)}var Hc=Math.ceil;function Kc(e,t){var n=(t=void 0===t?" ":L(t)).length;if(n<2)return n?Ic(t,e):t;var r=Ic(t,Hc(e/$c(t)));return fr(t)?lr(wr(r),0,e).join(""):r.slice(0,e)}var Vc=Math.ceil,Yc=Math.floor;function Zc(e,t,n){e=Pn(e);var r=(t=Z(t))?$c(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Kc(Yc(o),n)+e+Kc(Vc(o),n)}function Gc(e,t,n){e=Pn(e);var r=(t=Z(t))?$c(e):0;return t&&r<t?e+Kc(t-r,n):e}function Jc(e,t,n){e=Pn(e);var r=(t=Z(t))?$c(e):0;return t&&r<t?Kc(t-r,n)+e:e}var Qc=/^\s+/,Xc=m.parseInt;function ef(e,t,n){return n||null==t?t=0:t&&(t=+t),Xc(Pn(e).replace(Qc,""),t||0)}var tf=jt(function(e,t){return ht(e,32,void 0,t,lt(t,ot(tf)))});tf.placeholder={};var nf=tf,rf=jt(function(e,t){return ht(e,64,void 0,t,lt(t,ot(rf)))});rf.placeholder={};var of=rf,af=ua(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),uf=af,sf=Fn(function(e,t){return null==e?{}:function(e,t){return hc(e,t,function(t,n){return Hi(e,n)})}(e,t)}),lf=sf;function cf(e){for(var t,n=this;n instanceof Ee;){var r=We(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t}function ff(e){return function(t){return null==e?void 0:Wn(e,t)}}function pf(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}var df=Array.prototype.splice;function hf(e,t,n,r){var o=r?pf:Xe,i=-1,a=t.length,u=e;for(e===t&&(t=Le(t)),n&&(u=I(e,Ut(n)));++i<a;)for(var s=0,l=t[i],c=n?n(l):l;(s=o(u,c,s,r))>-1;)u!==e&&df.call(u,s,1),df.call(e,s,1);return e}function vf(e,t){return e&&e.length&&t&&t.length?hf(e,t):e}var gf=jt(vf);function yf(e,t,n){return e&&e.length&&t&&t.length?hf(e,t,Zi(n)):e}function mf(e,t,n){return e&&e.length&&t&&t.length?hf(e,t,void 0,n):e}var _f=Array.prototype.splice;function bf(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;at(o)?_f.call(e,o,1):lc(e,o)}}return e}var xf=Fn(function(e,t){var n=null==e?0:e.length,r=Tn(e,t);return bf(e,I(t,function(e){return at(e,n)?+e:e}).sort(mc)),r}),Cf=xf,jf=Math.floor,wf=Math.random;function Ef(e,t){return e+jf(wf()*(t-e+1))}var Af=parseFloat,Of=Math.min,Sf=Math.random;function Mf(e,t,n){if(n&&"boolean"!=typeof n&&At(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=Y(e),void 0===t?(t=e,e=0):t=Y(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Sf();return Of(e+o*(t-e+Af("1e-"+((o+"").length-1))),t)}return Ef(e,t)}var If=Math.ceil,kf=Math.max;function Pf(e){return function(t,n,r){return r&&"number"!=typeof r&&At(t,n,r)&&(n=r=void 0),t=Y(t),void 0===n?(n=t,t=0):n=Y(n),function(e,t,n,r){for(var o=-1,i=kf(If((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,n,r=void 0===r?t<n?1:-1:Y(r),e)}}var Rf=Pf(),Lf=Pf(!0),Wf=Fn(function(e,t){return ht(e,256,void 0,void 0,void 0,t)}),Bf=Wf;function Tf(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function Df(e,t,n){var r=k(e)?Sr:Tf,o=arguments.length<3;return r(e,Zi(t),n,o,ia)}function zf(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function qf(e,t,n){var r=k(e)?zf:Tf,o=arguments.length<3;return r(e,Zi(t),n,o,ru)}function Nf(e,t){return(k(e)?So:xu)(e,tc(Zi(t)))}function Uf(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Zi(t);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return bf(e,o),n}function Ff(e,t,n){return t=(n?At(e,t,n):void 0===t)?1:Z(t),Ic(Pn(e),t)}function $f(){var e=arguments,t=Pn(e[0]);return e.length<3?t:t.replace(e[1],e[2])}function Hf(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return jt(e,t=void 0===t?t:Z(t))}function Kf(e,t,n){var r=-1,o=(t=Rn(t,e)).length;for(o||(o=1,e=void 0);++r<o;){var i=null==e?void 0:e[Ln(t[r])];void 0===i&&(r=o,i=n),e=Q(i)?i.call(e):i}return e}var Vf=Array.prototype.reverse;function Yf(e){return null==e?e:Vf.call(e)}var Zf=po("round");function Gf(e){var t=e.length;return t?e[Ef(0,t-1)]:void 0}function Jf(e){return Gf(ms(e))}function Qf(e){return(k(e)?Gf:Jf)(e)}function Xf(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n<t;){var i=Ef(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}function ep(e,t){return Xf(Le(e),_o(t,0,e.length))}function tp(e,t){var n=ms(e);return Xf(n,_o(t,0,n.length))}function np(e,t,n){return t=(n?At(e,t,n):void 0===t)?1:Z(t),(k(e)?ep:tp)(e,t)}function rp(e,t,n){return null==e?e:dc(e,t,n)}function op(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:dc(e,t,n,r)}function ip(e){return Xf(Le(e))}function ap(e){return Xf(ms(e))}function up(e){return(k(e)?ip:ap)(e)}function sp(e){if(null==e)return 0;if(Et(e))return gs(e)?$c(e):e.length;var t=Xo(e);return"[object Map]"==t||"[object Set]"==t?e.size:en(e).length}function lp(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&At(e,t,n)?(t=0,n=r):(t=null==t?0:Z(t),n=void 0===n?r:Z(n)),sr(e,t,n)):[]}var cp=ao(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),fp=cp;function pp(e,t){var n;return ia(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function dp(e,t,n){var r=k(e)?Ei:pp;return n&&At(e,t,n)&&(t=void 0),r(e,Zi(t))}var hp=jt(function(e,t){if(null==e)return[];var n=t.length;return n>1&&At(e,t[0],t[1])?t=[]:n>2&&At(t[0],t[1],t[2])&&(t=[t[0]]),_c(e,Nn(t,1),[])}),vp=hp,gp=Math.floor,yp=Math.min;function mp(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,u=null===t,s=S(t),l=void 0===t;o<i;){var c=gp((o+i)/2),f=n(e[c]),p=void 0!==f,d=null===f,h=f==f,v=S(f);if(a)var g=r||h;else g=l?h&&(r||p):u?h&&p&&(r||!d):s?h&&p&&!d&&(r||!v):!d&&!v&&(r?f<=t:f<t);g?o=c+1:i=c}return yp(i,4294967294)}function _p(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!S(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return mp(e,t,J,n)}function bp(e,t){return _p(e,t)}function xp(e,t,n){return mp(e,t,Zi(n))}function Cp(e,t){var n=null==e?0:e.length;if(n){var r=_p(e,t);if(r<n&&yt(e[r],t))return r}return-1}function jp(e,t){return _p(e,t,!0)}function wp(e,t,n){return mp(e,t,Zi(n),!0)}function Ep(e,t){if(null!=e&&e.length){var n=_p(e,t,!0)-1;if(yt(e[n],t))return n}return-1}function Ap(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],u=t?t(a):a;if(!n||!yt(u,s)){var s=u;i[o++]=0===a?0:a}}return i}function Op(e){return e&&e.length?Ap(e):[]}function Sp(e,t){return e&&e.length?Ap(e,Zi(t)):[]}function Mp(e,t,n){return n&&"number"!=typeof n&&At(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=Pn(e))&&("string"==typeof t||null!=t&&!dl(t))&&!(t=L(t))&&fr(e)?lr(wr(e),0,n):e.split(t,n):[]}var Ip=Math.max;function kp(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return t=null==t?0:Ip(Z(t),0),jt(function(n){var r=n[t],o=lr(n,0,t);return r&&Dn(o,r),be(e,this,o)})}var Pp=ao(function(e,t,n){return e+(n?" ":"")+Ar(t)}),Rp=Pp;function Lp(e,t,n){return e=Pn(e),n=null==n?0:_o(Z(n),0,e.length),t=L(t),e.slice(n,n+t.length)==t}function Wp(){return{}}function Bp(){return""}function Tp(){return!0}var Dp=W(function(e,t){return e-t},0);function zp(e){return e&&e.length?Nl(e,J):0}function qp(e,t){return e&&e.length?Nl(e,Zi(t)):0}function Np(e){var t=null==e?0:e.length;return t?sr(e,1,t):[]}function Up(e,t,n){return e&&e.length?sr(e,0,(t=n||void 0===t?1:Z(t))<0?0:t):[]}function Fp(e,t,n){var r=null==e?0:e.length;return r?sr(e,(t=r-(t=n||void 0===t?1:Z(t)))<0?0:t,r):[]}function $p(e,t){return e&&e.length?Za(e,Zi(t),!1,!0):[]}function Hp(e,t){return e&&e.length?Za(e,Zi(t)):[]}function Kp(e,t){return t(e),e}var Vp=Object.prototype,Yp=Vp.hasOwnProperty;function Zp(e,t,n,r){return void 0===e||yt(e,Vp[n])&&!Yp.call(r,n)?t:e}var Gp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Jp(e){return"\\"+Gp[e]}var Qp=/<%=([\s\S]+?)%>/g,Xp={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Qp,variable:"",imports:{_:{escape:pu}}},ed=/\b__p \+= '';/g,td=/\b(__p \+=) '' \+/g,nd=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rd=/[()=,{}\[\]\/\s]/,od=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,id=/($^)/,ad=/['\n\r\u2028\u2029\\]/g,ud=Object.prototype.hasOwnProperty;function sd(e,t,n){var r=Xp.imports._.templateSettings||Xp;n&&At(e,t,n)&&(t=void 0),e=Pn(e),t=fn({},t,r,Zp);var o,i,a=fn({},t.imports,r.imports,Zp),u=tn(a),s=ys(a,u),l=0,c=t.interpolate||id,f="__p += '",p=RegExp((t.escape||id).source+"|"+c.source+"|"+(c===Qp?od:id).source+"|"+(t.evaluate||id).source+"|$","g"),d=ud.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(p,function(t,n,r,a,u,s){return r||(r=a),f+=e.slice(l,s).replace(ad,Jp),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),u&&(i=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=s+t.length,t}),f+="';\n";var h=ud.call(t,"variable")&&t.variable;if(h){if(rd.test(h))throw new Error("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(i?f.replace(ed,""):f).replace(td,"$1").replace(nd,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=er(function(){return Function(u,d+"return "+f).apply(void 0,s)});if(v.source=f,Qn(v))throw v;return v}function ld(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return N(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ya(e,t,{leading:r,maxWait:t,trailing:o})}function cd(e,t){return t(e)}var fd=4294967295,pd=Math.min;function dd(e,t){if((e=Z(e))<1||e>9007199254740991)return[];var n=fd,r=pd(e,fd);t=Qa(t),e-=fd;for(var o=It(r,t);++n<e;)t(n);return o}function hd(){return this}function vd(e,t){var n=e;return n instanceof Ae&&(n=n.value()),Sr(t,function(e,t){return t.func.apply(t.thisArg,Dn([e],t.args))},n)}function gd(){return vd(this.__wrapped__,this.__actions__)}function yd(e){return Pn(e).toLowerCase()}function md(e){return k(e)?I(e,Ln):S(e)?[e]:Le(kn(Pn(e)))}function _d(e){return e?_o(Z(e),-9007199254740991,9007199254740991):0===e?e:0}function bd(e){return Pn(e).toUpperCase()}function xd(e,t,n){var r=k(e),o=r||qt(e)||Yt(e);if(t=Zi(t),null==n){var i=e&&e.constructor;n=o?r?new i:[]:N(e)&&Q(i)?me(Hn(e)):{}}return(o?Ge:ra)(e,function(e,r,o){return t(n,e,r,o)}),n}function Cd(e,t){for(var n=e.length;n--&&Xe(t,e[n],0)>-1;);return n}function jd(e,t){for(var n=-1,r=e.length;++n<r&&Xe(t,e[n],0)>-1;);return n}function wd(e,t,n){if((e=Pn(e))&&(n||void 0===t))return q(e);if(!e||!(t=L(t)))return e;var r=wr(e),o=wr(t);return lr(r,jd(r,o),Cd(r,o)+1).join("")}function Ed(e,t,n){if((e=Pn(e))&&(n||void 0===t))return e.slice(0,D(e)+1);if(!e||!(t=L(t)))return e;var r=wr(e);return lr(r,0,Cd(r,wr(t))+1).join("")}var Ad=/^\s+/;function Od(e,t,n){if((e=Pn(e))&&(n||void 0===t))return e.replace(Ad,"");if(!e||!(t=L(t)))return e;var r=wr(e);return lr(r,jd(r,wr(t))).join("")}var Sd=/\w*$/;function Md(e,t){var n=30,r="...";if(N(t)){var o="separator"in t?t.separator:o;n="length"in t?Z(t.length):n,r="omission"in t?L(t.omission):r}var i=(e=Pn(e)).length;if(fr(e)){var a=wr(e);i=a.length}if(n>=i)return e;var u=n-$c(r);if(u<1)return r;var s=a?lr(a,0,u).join(""):e.slice(0,u);if(void 0===o)return s+r;if(a&&(u+=s.length-u),dl(o)){if(e.slice(u).search(o)){var l,c=s;for(o.global||(o=RegExp(o.source,Pn(Sd.exec(o))+"g")),o.lastIndex=0;l=o.exec(c);)var f=l.index;s=s.slice(0,void 0===f?u:f)}}else if(e.indexOf(L(o),u)!=u){var p=s.lastIndexOf(o);p>-1&&(s=s.slice(0,p))}return s+r}function Id(e){return vt(e,1)}var kd=Mr({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),Pd=/&(?:amp|lt|gt|quot|#39);/g,Rd=RegExp(Pd.source);function Ld(e){return(e=Pn(e))&&Rd.test(e)?e.replace(Pd,kd):e}var Wd=No&&1/Mi(new No([,-0]))[1]==1/0?function(e){return new No(e)}:Oe,Bd=Wd;function Td(e,t,n){var r=-1,o=et,i=e.length,a=!0,u=[],s=u;if(n)a=!1,o=Ta;else if(i>=200){var l=t?null:Bd(e);if(l)return Mi(l);a=!1,o=Ai,s=new wi}else s=t?[]:u;e:for(;++r<i;){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,a&&f==f){for(var p=s.length;p--;)if(s[p]===f)continue e;t&&s.push(f),u.push(c)}else o(s,f,n)||(s!==u&&s.push(f),u.push(c))}return u}var Dd=jt(function(e){return Td(Nn(e,1,wa,!0))}),zd=jt(function(e){var t=Na(e);return wa(t)&&(t=void 0),Td(Nn(e,1,wa,!0),Zi(t))}),qd=zd,Nd=jt(function(e){var t=Na(e);return t="function"==typeof t?t:void 0,Td(Nn(e,1,wa,!0),void 0,t)});function Ud(e){return e&&e.length?Td(e):[]}function Fd(e,t){return e&&e.length?Td(e,Zi(t)):[]}function $d(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Td(e,void 0,t):[]}var Hd=0;function Kd(e){var t=++Hd;return Pn(e)+t}function Vd(e,t){return null==e||lc(e,t)}var Yd=Math.max;function Zd(e){if(!e||!e.length)return[];var t=0;return e=So(e,function(e){if(wa(e))return t=Yd(e.length,t),!0}),It(t,function(t){return I(e,Vi(t))})}function Gd(e,t){if(!e||!e.length)return[];var n=Zd(e);return null==t?n:I(n,function(e){return be(t,void 0,e)})}function Jd(e,t,n,r){return dc(e,t,n(Wn(e,t)),r)}function Qd(e,t,n){return null==e?e:Jd(e,t,Qa(n))}function Xd(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Jd(e,t,Qa(n),r)}var eh=ao(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),th=eh;function nh(e){return null==e?[]:ys(e,un(e))}var rh=jt(function(e,t){return wa(e)?Da(e,t):[]}),oh=rh;function ih(e,t){return nf(Qa(t),e)}var ah=Fn(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Tn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Ae&&at(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:cd,args:[o],thisArg:void 0}),new Re(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(void 0),e})):this.thru(o)}),uh=ah;function sh(){return vo(this)}function lh(){var e=this.__wrapped__;if(e instanceof Ae){var t=e;return this.__actions__.length&&(t=new Ae(this)),(t=t.reverse()).__actions__.push({func:cd,args:[Yf],thisArg:void 0}),new Re(t,this.__chain__)}return this.thru(Yf)}function ch(e,t,n){var r=e.length;if(r<2)return r?Td(e[0]):[];for(var o=-1,i=Array(r);++o<r;)for(var a=e[o],u=-1;++u<r;)u!=o&&(i[o]=Da(i[o]||a,e[u],t,n));return Td(Nn(i,1),t,n)}var fh=jt(function(e){return ch(So(e,wa))}),ph=jt(function(e){var t=Na(e);return wa(t)&&(t=void 0),ch(So(e,wa),Zi(t))}),dh=ph,hh=jt(function(e){var t=Na(e);return t="function"==typeof t?t:void 0,ch(So(e,wa),void 0,t)}),vh=jt(Zd);function gh(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var u=r<i?t[r]:void 0;n(a,e[r],u)}return a}function yh(e,t){return gh(e||[],t||[],_t)}function mh(e,t){return gh(e||[],t||[],dc)}var _h,bh=jt(function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Gd(e,n)}),xh=bh,Ch={chunk:mo,compact:Ci,concat:ji,difference:qa,differenceBy:Fa,differenceWith:Ha,drop:Va,dropRight:Ya,dropRightWhile:Ga,dropWhile:Ja,fill:bu,findIndex:Eu,findLastIndex:ku,first:Lu,flatten:Un,flattenDeep:Uu,flattenDepth:Fu,fromPairs:Xu,head:Lu,indexOf:Cs,initial:js,intersection:Os,intersectionBy:Ms,intersectionWith:Is,join:bl,last:Na,lastIndexOf:Ol,nth:ac,pull:gf,pullAll:vf,pullAllBy:yf,pullAllWith:mf,pullAt:Cf,remove:Uf,reverse:Yf,slice:lp,sortedIndex:bp,sortedIndexBy:xp,sortedIndexOf:Cp,sortedLastIndex:jp,sortedLastIndexBy:wp,sortedLastIndexOf:Ep,sortedUniq:Op,sortedUniqBy:Sp,tail:Np,take:Up,takeRight:Fp,takeRightWhile:$p,takeWhile:Hp,union:Dd,unionBy:qd,unionWith:Nd,uniq:Ud,uniqBy:Fd,uniqWith:$d,unzip:Zd,unzipWith:Gd,without:oh,xor:fh,xorBy:dh,xorWith:hh,zip:vh,zipObject:yh,zipObjectDeep:mh,zipWith:xh},jh={countBy:ca,each:Xa,eachRight:ou,every:mu,filter:Cu,find:Au,findLast:Pu,flatMap:Tu,flatMapDeep:zu,flatMapDepth:qu,forEach:Xa,forEachRight:ou,groupBy:is,includes:bs,invokeMap:$s,keyBy:wl,map:Bu,orderBy:bc,partition:uf,reduce:Df,reduceRight:qf,reject:Nf,sample:Qf,sampleSize:np,shuffle:up,size:sp,some:dp,sortBy:vp},wh=ha,Eh={after:G,ary:vt,before:tr,bind:rr,bindKey:ur,curry:pa,curryRight:da,debounce:ya,defer:La,delay:Ba,flip:$u,memoize:On,negate:tc,once:yc,overArgs:Ac,partial:nf,partialRight:of,rearg:Bf,rest:Hf,spread:kp,throttle:ld,unary:Id,wrap:ih},Ah={castArray:lo,clone:yi,cloneDeep:mi,cloneDeepWith:_i,cloneWith:bi,conformsTo:Xi,eq:yt,gt:ss,gte:ls,isArguments:Wt,isArray:k,isArrayBuffer:Ks,isArrayLike:Et,isArrayLikeObject:wa,isBoolean:Vs,isBuffer:qt,isDate:Zs,isElement:Gs,isEmpty:Qs,isEqual:Xs,isEqualWith:el,isError:Qn,isFinite:nl,isFunction:Q,isInteger:rl,isLength:wt,isMap:li,isMatch:ol,isMatchWith:il,isNaN:ul,isNative:ll,isNil:cl,isNull:fl,isNumber:al,isObject:N,isObjectLike:O,isPlainObject:Jn,isRegExp:dl,isSafeInteger:hl,isSet:fi,isString:gs,isSymbol:S,isTypedArray:Yt,isUndefined:vl,isWeakMap:gl,isWeakSet:yl,lt:Pl,lte:Rl,toArray:rc,toFinite:Y,toInteger:Z,toLength:_u,toNumber:K,toPlainObject:Aa,toSafeInteger:_d,toString:Pn},Oh={add:B,ceil:ho,divide:Ka,floor:Hu,max:zl,maxBy:ql,mean:Fl,meanBy:$l,min:Jl,minBy:Ql,multiply:ec,round:Zf,subtract:Dp,sum:zp,sumBy:qp},Sh=bo,Mh=vs,Ih=Mf,kh={assign:on,assignIn:ln,assignInWith:fn,assignWith:dn,at:$n,create:fa,defaults:Ca,defaultsDeep:ka,entries:uu,entriesIn:su,extend:ln,extendWith:fn,findKey:Su,findLastKey:Ru,forIn:Zu,forInRight:Gu,forOwn:Ju,forOwnRight:Qu,functions:ts,functionsIn:ns,get:Bn,has:ps,hasIn:Hi,invert:Ls,invertBy:zs,invoke:Us,keys:tn,keysIn:un,mapKeys:Ll,mapValues:Wl,merge:Kl,mergeWith:Ia,omit:pc,omitBy:gc,pick:lf,pickBy:vc,result:Kf,set:rp,setWith:op,toPairs:uu,toPairsIn:su,transform:xd,unset:Vd,update:Qd,updateWith:Xd,values:ms,valuesIn:nh},Ph={at:uh,chain:vo,commit:xi,lodash:Te,next:oc,plant:cf,reverse:lh,tap:Kp,thru:cd,toIterator:hd,toJSON:gd,value:gd,valueOf:gd,wrapperChain:sh},Rh={camelCase:so,capitalize:Or,deburr:Rr,endsWith:iu,escape:pu,escapeRegExp:vu,kebabCase:Cl,lowerCase:Ml,lowerFirst:Il,pad:Zc,padEnd:Gc,padStart:Jc,parseInt:ef,repeat:Ff,replace:$f,snakeCase:fp,split:Mp,startCase:Rp,startsWith:Lp,template:sd,templateSettings:Xp,toLower:yd,toUpper:bd,trim:wd,trimEnd:Ed,trimStart:Od,truncate:Md,unescape:Ld,upperCase:th,upperFirst:Ar,words:oo},Lh={attempt:er,bindAll:ir,cond:Gi,conforms:Qi,constant:He,defaultTo:ma,flow:Vu,flowRight:Yu,identity:J,iteratee:ml,matches:Bl,matchesProperty:Tl,method:Yl,methodOf:Gl,mixin:Xl,noop:Oe,nthArg:uc,over:Cc,overEvery:Oc,overSome:Sc,property:Yi,propertyOf:ff,range:Rf,rangeRight:Lf,stubArray:Mo,stubFalse:Bt,stubObject:Wp,stubString:Bp,stubTrue:Tp,times:dd,toPath:md,uniqueId:Kd},Wh=Math.max,Bh=Math.min,Th=Math.min,Dh=4294967295,zh=Array.prototype,qh=Object.prototype.hasOwnProperty,Nh=_?_.iterator:void 0,Uh=Math.max,Fh=Math.min,$h=function(e){return function(t,n,r){if(null==r){var o=N(n),i=o&&tn(n),a=i&&i.length&&es(n,i);(a?a.length:o)||(r=n,n=t,t=this)}return e(t,n,r)}}(Xl);Te.after=Eh.after,Te.ary=Eh.ary,Te.assign=kh.assign,Te.assignIn=kh.assignIn,Te.assignInWith=kh.assignInWith,Te.assignWith=kh.assignWith,Te.at=kh.at,Te.before=Eh.before,Te.bind=Eh.bind,Te.bindAll=Lh.bindAll,Te.bindKey=Eh.bindKey,Te.castArray=Ah.castArray,Te.chain=Ph.chain,Te.chunk=Ch.chunk,Te.compact=Ch.compact,Te.concat=Ch.concat,Te.cond=Lh.cond,Te.conforms=Lh.conforms,Te.constant=Lh.constant,Te.countBy=jh.countBy,Te.create=kh.create,Te.curry=Eh.curry,Te.curryRight=Eh.curryRight,Te.debounce=Eh.debounce,Te.defaults=kh.defaults,Te.defaultsDeep=kh.defaultsDeep,Te.defer=Eh.defer,Te.delay=Eh.delay,Te.difference=Ch.difference,Te.differenceBy=Ch.differenceBy,Te.differenceWith=Ch.differenceWith,Te.drop=Ch.drop,Te.dropRight=Ch.dropRight,Te.dropRightWhile=Ch.dropRightWhile,Te.dropWhile=Ch.dropWhile,Te.fill=Ch.fill,Te.filter=jh.filter,Te.flatMap=jh.flatMap,Te.flatMapDeep=jh.flatMapDeep,Te.flatMapDepth=jh.flatMapDepth,Te.flatten=Ch.flatten,Te.flattenDeep=Ch.flattenDeep,Te.flattenDepth=Ch.flattenDepth,Te.flip=Eh.flip,Te.flow=Lh.flow,Te.flowRight=Lh.flowRight,Te.fromPairs=Ch.fromPairs,Te.functions=kh.functions,Te.functionsIn=kh.functionsIn,Te.groupBy=jh.groupBy,Te.initial=Ch.initial,Te.intersection=Ch.intersection,Te.intersectionBy=Ch.intersectionBy,Te.intersectionWith=Ch.intersectionWith,Te.invert=kh.invert,Te.invertBy=kh.invertBy,Te.invokeMap=jh.invokeMap,Te.iteratee=Lh.iteratee,Te.keyBy=jh.keyBy,Te.keys=tn,Te.keysIn=kh.keysIn,Te.map=jh.map,Te.mapKeys=kh.mapKeys,Te.mapValues=kh.mapValues,Te.matches=Lh.matches,Te.matchesProperty=Lh.matchesProperty,Te.memoize=Eh.memoize,Te.merge=kh.merge,Te.mergeWith=kh.mergeWith,Te.method=Lh.method,Te.methodOf=Lh.methodOf,Te.mixin=$h,Te.negate=tc,Te.nthArg=Lh.nthArg,Te.omit=kh.omit,Te.omitBy=kh.omitBy,Te.once=Eh.once,Te.orderBy=jh.orderBy,Te.over=Lh.over,Te.overArgs=Eh.overArgs,Te.overEvery=Lh.overEvery,Te.overSome=Lh.overSome,Te.partial=Eh.partial,Te.partialRight=Eh.partialRight,Te.partition=jh.partition,Te.pick=kh.pick,Te.pickBy=kh.pickBy,Te.property=Lh.property,Te.propertyOf=Lh.propertyOf,Te.pull=Ch.pull,Te.pullAll=Ch.pullAll,Te.pullAllBy=Ch.pullAllBy,Te.pullAllWith=Ch.pullAllWith,Te.pullAt=Ch.pullAt,Te.range=Lh.range,Te.rangeRight=Lh.rangeRight,Te.rearg=Eh.rearg,Te.reject=jh.reject,Te.remove=Ch.remove,Te.rest=Eh.rest,Te.reverse=Ch.reverse,Te.sampleSize=jh.sampleSize,Te.set=kh.set,Te.setWith=kh.setWith,Te.shuffle=jh.shuffle,Te.slice=Ch.slice,Te.sortBy=jh.sortBy,Te.sortedUniq=Ch.sortedUniq,Te.sortedUniqBy=Ch.sortedUniqBy,Te.split=Rh.split,Te.spread=Eh.spread,Te.tail=Ch.tail,Te.take=Ch.take,Te.takeRight=Ch.takeRight,Te.takeRightWhile=Ch.takeRightWhile,Te.takeWhile=Ch.takeWhile,Te.tap=Ph.tap,Te.throttle=Eh.throttle,Te.thru=cd,Te.toArray=Ah.toArray,Te.toPairs=kh.toPairs,Te.toPairsIn=kh.toPairsIn,Te.toPath=Lh.toPath,Te.toPlainObject=Ah.toPlainObject,Te.transform=kh.transform,Te.unary=Eh.unary,Te.union=Ch.union,Te.unionBy=Ch.unionBy,Te.unionWith=Ch.unionWith,Te.uniq=Ch.uniq,Te.uniqBy=Ch.uniqBy,Te.uniqWith=Ch.uniqWith,Te.unset=kh.unset,Te.unzip=Ch.unzip,Te.unzipWith=Ch.unzipWith,Te.update=kh.update,Te.updateWith=kh.updateWith,Te.values=kh.values,Te.valuesIn=kh.valuesIn,Te.without=Ch.without,Te.words=Rh.words,Te.wrap=Eh.wrap,Te.xor=Ch.xor,Te.xorBy=Ch.xorBy,Te.xorWith=Ch.xorWith,Te.zip=Ch.zip,Te.zipObject=Ch.zipObject,Te.zipObjectDeep=Ch.zipObjectDeep,Te.zipWith=Ch.zipWith,Te.entries=kh.toPairs,Te.entriesIn=kh.toPairsIn,Te.extend=kh.assignIn,Te.extendWith=kh.assignInWith,$h(Te,Te),Te.add=Oh.add,Te.attempt=Lh.attempt,Te.camelCase=Rh.camelCase,Te.capitalize=Rh.capitalize,Te.ceil=Oh.ceil,Te.clamp=Sh,Te.clone=Ah.clone,Te.cloneDeep=Ah.cloneDeep,Te.cloneDeepWith=Ah.cloneDeepWith,Te.cloneWith=Ah.cloneWith,Te.conformsTo=Ah.conformsTo,Te.deburr=Rh.deburr,Te.defaultTo=Lh.defaultTo,Te.divide=Oh.divide,Te.endsWith=Rh.endsWith,Te.eq=Ah.eq,Te.escape=Rh.escape,Te.escapeRegExp=Rh.escapeRegExp,Te.every=jh.every,Te.find=jh.find,Te.findIndex=Ch.findIndex,Te.findKey=kh.findKey,Te.findLast=jh.findLast,Te.findLastIndex=Ch.findLastIndex,Te.findLastKey=kh.findLastKey,Te.floor=Oh.floor,Te.forEach=jh.forEach,Te.forEachRight=jh.forEachRight,Te.forIn=kh.forIn,Te.forInRight=kh.forInRight,Te.forOwn=kh.forOwn,Te.forOwnRight=kh.forOwnRight,Te.get=kh.get,Te.gt=Ah.gt,Te.gte=Ah.gte,Te.has=kh.has,Te.hasIn=kh.hasIn,Te.head=Ch.head,Te.identity=J,Te.includes=jh.includes,Te.indexOf=Ch.indexOf,Te.inRange=Mh,Te.invoke=kh.invoke,Te.isArguments=Ah.isArguments,Te.isArray=k,Te.isArrayBuffer=Ah.isArrayBuffer,Te.isArrayLike=Ah.isArrayLike,Te.isArrayLikeObject=Ah.isArrayLikeObject,Te.isBoolean=Ah.isBoolean,Te.isBuffer=Ah.isBuffer,Te.isDate=Ah.isDate,Te.isElement=Ah.isElement,Te.isEmpty=Ah.isEmpty,Te.isEqual=Ah.isEqual,Te.isEqualWith=Ah.isEqualWith,Te.isError=Ah.isError,Te.isFinite=Ah.isFinite,Te.isFunction=Ah.isFunction,Te.isInteger=Ah.isInteger,Te.isLength=Ah.isLength,Te.isMap=Ah.isMap,Te.isMatch=Ah.isMatch,Te.isMatchWith=Ah.isMatchWith,Te.isNaN=Ah.isNaN,Te.isNative=Ah.isNative,Te.isNil=Ah.isNil,Te.isNull=Ah.isNull,Te.isNumber=Ah.isNumber,Te.isObject=N,Te.isObjectLike=Ah.isObjectLike,Te.isPlainObject=Ah.isPlainObject,Te.isRegExp=Ah.isRegExp,Te.isSafeInteger=Ah.isSafeInteger,Te.isSet=Ah.isSet,Te.isString=Ah.isString,Te.isSymbol=Ah.isSymbol,Te.isTypedArray=Ah.isTypedArray,Te.isUndefined=Ah.isUndefined,Te.isWeakMap=Ah.isWeakMap,Te.isWeakSet=Ah.isWeakSet,Te.join=Ch.join,Te.kebabCase=Rh.kebabCase,Te.last=Na,Te.lastIndexOf=Ch.lastIndexOf,Te.lowerCase=Rh.lowerCase,Te.lowerFirst=Rh.lowerFirst,Te.lt=Ah.lt,Te.lte=Ah.lte,Te.max=Oh.max,Te.maxBy=Oh.maxBy,Te.mean=Oh.mean,Te.meanBy=Oh.meanBy,Te.min=Oh.min,Te.minBy=Oh.minBy,Te.stubArray=Lh.stubArray,Te.stubFalse=Lh.stubFalse,Te.stubObject=Lh.stubObject,Te.stubString=Lh.stubString,Te.stubTrue=Lh.stubTrue,Te.multiply=Oh.multiply,Te.nth=Ch.nth,Te.noop=Lh.noop,Te.now=wh,Te.pad=Rh.pad,Te.padEnd=Rh.padEnd,Te.padStart=Rh.padStart,Te.parseInt=Rh.parseInt,Te.random=Ih,Te.reduce=jh.reduce,Te.reduceRight=jh.reduceRight,Te.repeat=Rh.repeat,Te.replace=Rh.replace,Te.result=kh.result,Te.round=Oh.round,Te.sample=jh.sample,Te.size=jh.size,Te.snakeCase=Rh.snakeCase,Te.some=jh.some,Te.sortedIndex=Ch.sortedIndex,Te.sortedIndexBy=Ch.sortedIndexBy,Te.sortedIndexOf=Ch.sortedIndexOf,Te.sortedLastIndex=Ch.sortedLastIndex,Te.sortedLastIndexBy=Ch.sortedLastIndexBy,Te.sortedLastIndexOf=Ch.sortedLastIndexOf,Te.startCase=Rh.startCase,Te.startsWith=Rh.startsWith,Te.subtract=Oh.subtract,Te.sum=Oh.sum,Te.sumBy=Oh.sumBy,Te.template=Rh.template,Te.times=Lh.times,Te.toFinite=Ah.toFinite,Te.toInteger=Z,Te.toLength=Ah.toLength,Te.toLower=Rh.toLower,Te.toNumber=Ah.toNumber,Te.toSafeInteger=Ah.toSafeInteger,Te.toString=Ah.toString,Te.toUpper=Rh.toUpper,Te.trim=Rh.trim,Te.trimEnd=Rh.trimEnd,Te.trimStart=Rh.trimStart,Te.truncate=Rh.truncate,Te.unescape=Rh.unescape,Te.uniqueId=Lh.uniqueId,Te.upperCase=Rh.upperCase,Te.upperFirst=Rh.upperFirst,Te.each=jh.forEach,Te.eachRight=jh.forEachRight,Te.first=Ch.head,$h(Te,(_h={},ra(Te,function(e,t){qh.call(Te.prototype,t)||(_h[t]=e)}),_h),{chain:!1}),Te.VERSION="4.17.23",(Te.templateSettings=Rh.templateSettings).imports._=Te,Ge(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Te[e].placeholder=Te}),Ge(["drop","take"],function(e,t){Ae.prototype[e]=function(n){n=void 0===n?1:Uh(Z(n),0);var r=this.__filtered__&&!t?new Ae(this):this.clone();return r.__filtered__?r.__takeCount__=Fh(n,r.__takeCount__):r.__views__.push({size:Fh(n,Dh),type:e+(r.__dir__<0?"Right":"")}),r},Ae.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Ge(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Ae.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Zi(e),type:n}),t.__filtered__=t.__filtered__||r,t}}),Ge(["head","last"],function(e,t){var n="take"+(t?"Right":"");Ae.prototype[e]=function(){return this[n](1).value()[0]}}),Ge(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Ae.prototype[e]=function(){return this.__filtered__?new Ae(this):this[n](1)}}),Ae.prototype.compact=function(){return this.filter(J)},Ae.prototype.find=function(e){return this.filter(e).head()},Ae.prototype.findLast=function(e){return this.reverse().find(e)},Ae.prototype.invokeMap=jt(function(e,t){return"function"==typeof e?new Ae(this):this.map(function(n){return Ns(n,e,t)})}),Ae.prototype.reject=function(e){return this.filter(tc(Zi(e)))},Ae.prototype.slice=function(e,t){e=Z(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Ae(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=Z(t))<0?n.dropRight(-t):n.take(t-e)),n)},Ae.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ae.prototype.toArray=function(){return this.take(Dh)},ra(Ae.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Te[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(Te.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof Ae,s=a[0],l=u||k(t),c=function(e){var t=o.apply(Te,Dn([e],a));return r&&f?t[0]:t};l&&n&&"function"==typeof s&&1!=s.length&&(u=l=!1);var f=this.__chain__,p=!!this.__actions__.length,d=i&&!f,h=u&&!p;if(!i&&l){t=h?t:new Ae(this);var v=e.apply(t,a);return v.__actions__.push({func:cd,args:[c],thisArg:void 0}),new Re(v,f)}return d&&h?e.apply(this,a):(v=this.thru(c),d?r?v.value()[0]:v.value():v)})}),Ge(["pop","push","shift","sort","splice","unshift"],function(e){var t=zh[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Te.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(k(o)?o:[],e)}return this[n](function(n){return t.apply(k(n)?n:[],e)})}}),ra(Ae.prototype,function(e,t){var n=Te[t];if(n){var r=n.name+"";qh.call(Ie,r)||(Ie[r]=[]),Ie[r].push({name:t,func:n})}}),Ie[ct(void 0,2).name]=[{name:"wrapper",func:void 0}],Ae.prototype.clone=function(){var e=new Ae(this.__wrapped__);return e.__actions__=Le(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Le(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Le(this.__views__),e},Ae.prototype.reverse=function(){if(this.__filtered__){var e=new Ae(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Ae.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=k(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Bh(t,e+a);break;case"takeRight":e=Wh(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,u=i.end,s=u-a,l=r?u:a-1,c=this.__iteratees__,f=c.length,p=0,d=Th(s,this.__takeCount__);if(!n||!r&&o==s&&d==s)return vd(e,this.__actions__);var h=[];e:for(;s--&&p<d;){for(var v=-1,g=e[l+=t];++v<f;){var y=c[v],m=y.iteratee,_=y.type,b=m(g);if(2==_)g=b;else if(!b){if(1==_)continue e;break e}}h[p++]=g}return h},Te.prototype.at=Ph.at,Te.prototype.chain=Ph.wrapperChain,Te.prototype.commit=Ph.commit,Te.prototype.next=Ph.next,Te.prototype.plant=Ph.plant,Te.prototype.reverse=Ph.reverse,Te.prototype.toJSON=Te.prototype.valueOf=Te.prototype.value=Ph.value,Te.prototype.first=Te.prototype.head,Nh&&(Te.prototype[Nh]=Ph.toIterator);var Hh=function(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}(Object.freeze({__proto__:null,add:B,after:G,ary:vt,assign:on,assignIn:ln,assignInWith:fn,assignWith:dn,at:$n,attempt:er,before:tr,bind:rr,bindAll:ir,bindKey:ur,camelCase:so,capitalize:Or,castArray:lo,ceil:ho,chain:vo,chunk:mo,clamp:bo,clone:yi,cloneDeep:mi,cloneDeepWith:_i,cloneWith:bi,commit:xi,compact:Ci,concat:ji,cond:Gi,conforms:Qi,conformsTo:Xi,constant:He,countBy:ca,create:fa,curry:pa,curryRight:da,debounce:ya,deburr:Rr,defaultTo:ma,defaults:Ca,defaultsDeep:ka,defer:La,delay:Ba,difference:qa,differenceBy:Fa,differenceWith:Ha,divide:Ka,drop:Va,dropRight:Ya,dropRightWhile:Ga,dropWhile:Ja,each:Xa,eachRight:ou,endsWith:iu,entries:uu,entriesIn:su,eq:yt,escape:pu,escapeRegExp:vu,every:mu,extend:ln,extendWith:fn,fill:bu,filter:Cu,find:Au,findIndex:Eu,findKey:Su,findLast:Pu,findLastIndex:ku,findLastKey:Ru,first:Lu,flatMap:Tu,flatMapDeep:zu,flatMapDepth:qu,flatten:Un,flattenDeep:Uu,flattenDepth:Fu,flip:$u,floor:Hu,flow:Vu,flowRight:Yu,forEach:Xa,forEachRight:ou,forIn:Zu,forInRight:Gu,forOwn:Ju,forOwnRight:Qu,fromPairs:Xu,functions:ts,functionsIn:ns,get:Bn,groupBy:is,gt:ss,gte:ls,has:ps,hasIn:Hi,head:Lu,identity:J,inRange:vs,includes:bs,indexOf:Cs,initial:js,intersection:Os,intersectionBy:Ms,intersectionWith:Is,invert:Ls,invertBy:zs,invoke:Us,invokeMap:$s,isArguments:Wt,isArray:k,isArrayBuffer:Ks,isArrayLike:Et,isArrayLikeObject:wa,isBoolean:Vs,isBuffer:qt,isDate:Zs,isElement:Gs,isEmpty:Qs,isEqual:Xs,isEqualWith:el,isError:Qn,isFinite:nl,isFunction:Q,isInteger:rl,isLength:wt,isMap:li,isMatch:ol,isMatchWith:il,isNaN:ul,isNative:ll,isNil:cl,isNull:fl,isNumber:al,isObject:N,isObjectLike:O,isPlainObject:Jn,isRegExp:dl,isSafeInteger:hl,isSet:fi,isString:gs,isSymbol:S,isTypedArray:Yt,isUndefined:vl,isWeakMap:gl,isWeakSet:yl,iteratee:ml,join:bl,kebabCase:Cl,keyBy:wl,keys:tn,keysIn:un,last:Na,lastIndexOf:Ol,lodash:Te,lowerCase:Ml,lowerFirst:Il,lt:Pl,lte:Rl,map:Bu,mapKeys:Ll,mapValues:Wl,matches:Bl,matchesProperty:Tl,max:zl,maxBy:ql,mean:Fl,meanBy:$l,memoize:On,merge:Kl,mergeWith:Ia,method:Yl,methodOf:Gl,min:Jl,minBy:Ql,mixin:Xl,multiply:ec,negate:tc,next:oc,noop:Oe,now:ha,nth:ac,nthArg:uc,omit:pc,omitBy:gc,once:yc,orderBy:bc,over:Cc,overArgs:Ac,overEvery:Oc,overSome:Sc,pad:Zc,padEnd:Gc,padStart:Jc,parseInt:ef,partial:nf,partialRight:of,partition:uf,pick:lf,pickBy:vc,plant:cf,property:Yi,propertyOf:ff,pull:gf,pullAll:vf,pullAllBy:yf,pullAllWith:mf,pullAt:Cf,random:Mf,range:Rf,rangeRight:Lf,rearg:Bf,reduce:Df,reduceRight:qf,reject:Nf,remove:Uf,repeat:Ff,replace:$f,rest:Hf,result:Kf,reverse:Yf,round:Zf,sample:Qf,sampleSize:np,set:rp,setWith:op,shuffle:up,size:sp,slice:lp,snakeCase:fp,some:dp,sortBy:vp,sortedIndex:bp,sortedIndexBy:xp,sortedIndexOf:Cp,sortedLastIndex:jp,sortedLastIndexBy:wp,sortedLastIndexOf:Ep,sortedUniq:Op,sortedUniqBy:Sp,split:Mp,spread:kp,startCase:Rp,startsWith:Lp,stubArray:Mo,stubFalse:Bt,stubObject:Wp,stubString:Bp,stubTrue:Tp,subtract:Dp,sum:zp,sumBy:qp,tail:Np,take:Up,takeRight:Fp,takeRightWhile:$p,takeWhile:Hp,tap:Kp,template:sd,templateSettings:Xp,throttle:ld,thru:cd,times:dd,toArray:rc,toFinite:Y,toInteger:Z,toIterator:hd,toJSON:gd,toLength:_u,toLower:yd,toNumber:K,toPairs:uu,toPairsIn:su,toPath:md,toPlainObject:Aa,toSafeInteger:_d,toString:Pn,toUpper:bd,transform:xd,trim:wd,trimEnd:Ed,trimStart:Od,truncate:Md,unary:Id,unescape:Ld,union:Dd,unionBy:qd,unionWith:Nd,uniq:Ud,uniqBy:Fd,uniqWith:$d,uniqueId:Kd,unset:Vd,unzip:Zd,unzipWith:Gd,update:Qd,updateWith:Xd,upperCase:th,upperFirst:Ar,value:gd,valueOf:gd,values:ms,valuesIn:nh,without:oh,words:oo,wrap:ih,wrapperAt:uh,wrapperChain:sh,wrapperCommit:xi,wrapperLodash:Te,wrapperNext:oc,wrapperPlant:cf,wrapperReverse:lh,wrapperToIterator:hd,wrapperValue:gd,xor:fh,xorBy:dh,xorWith:hh,zip:vh,zipObject:yh,zipObjectDeep:mh,zipWith:xh,default:Te})),Kh={};Object.defineProperty(Kh,"__esModule",{value:!0});class Vh extends CustomEvent{constructor(e,t=!1){super(Vh.TYPE,{bubbles:!0,detail:{update:e,reset:t}}),this.update=e,this.reset=t}}Vh.TYPE="model.updated",Kh.ModelUpdatedEvent=Vh;class Yh extends CustomEvent{constructor(e,t){super(Yh.TYPE,{bubbles:!0,detail:{src:e,done:t}}),this.src=e,this.done=t}}Yh.TYPE="delete.image",Kh.DeleteImageEvent=Yh;class Zh extends CustomEvent{constructor(e){super(Zh.TYPE,{bubbles:!0,detail:e}),this.handler=e}}Zh.TYPE="insert.image",Kh.InsertImageEvent=Zh;class Gh extends CustomEvent{constructor(e,t){super(Gh.TYPE,{bubbles:!0,detail:{src:e,done:t}}),this.src=e,this.done=t}}Gh.TYPE="delete.sound",Kh.DeleteSoundEvent=Gh;class Jh extends CustomEvent{constructor(e){super(Jh.TYPE,{bubbles:!0,detail:e}),this.handler=e}}Jh.TYPE="insert.sound",Kh.InsertSoundEvent=Jh;var Qh={},Xh={},ev={exports:{}};!function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ev),l(ev.exports);var tv={};Object.defineProperty(tv,"__esModule",{value:!0}),tv.stripHtmlTags=tv.removeUnwantedCharacters=tv.processMarkup=tv.getAdjustedLength=tv.decodeHTML=tv.createSlateMarkup=void 0;var nv=Hh;const rv="imes|riangle|an|heta|herefore",ov="throot|parallel|cong|approx|eq|e|sim",iv=new RegExp(`(\\t(?!${rv}))|(\\n(?!${ov}))|(\\\\t(?!${rv}))|(\\\\n(?!${ov}))`,"g"),av=e=>e.replace(iv,"").replace(/\\"/g,'"').replace(/\\\//g,"/");tv.removeUnwantedCharacters=av,tv.processMarkup=e=>{const t=((e="")=>{const t=document.createElement("div");return t.innerHTML=e.trim(),t})(av(e||"")||"");let n=0;return t.querySelectorAll('[data-type="explicit_constructed_response"]').forEach(e=>{e.replaceWith(`{{${n++}}}`)}),t.innerHTML};const uv=/\{\{(\d+)\}\}/g;tv.createSlateMarkup=(e,t)=>e?av(e).replace(uv,(e,n)=>{const r=t[n][0].label||"";return`<span data-type="explicit_constructed_response" data-index="${n}" data-value="${(0,nv.escape)(r)}"></span>`}):"",tv.getAdjustedLength=e=>e<=2?e+2:e<=4?e+3:e<=6?e+4:e+5,tv.stripHtmlTags=e=>"string"!=typeof e?"":e.replace(/<\/?[^>]+(>|$)/g,""),tv.decodeHTML=e=>(new DOMParser).parseFromString(e,"text/html").body.textContent||"";const sv=e,lv=t,cv=n,fv=u;function pv(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i((...e)=>n.call(t,...e)),t=void 0)}return n}var dv=f.exports;Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.default=Xh.ECRToolbar=void 0;var hv=dv(ev.exports),vv=dv(p.exports),gv=dv(sv),yv=dv(lv),mv=cv,_v=dv(fv),bv=tv;const xv=(0,mv.styled)(_v.default)(({theme:e})=>({backgroundColor:e.palette.common.white,outline:"none",lineHeight:"15px"}));class Cv extends gv.default.Component{constructor(...e){super(...e),(0,vv.default)(this,"state",{markup:"",toolbarStyle:{}}),(0,vv.default)(this,"onDone",e=>{const{editor:t,node:n,onToolbarDone:r,onChangeResponse:o,pos:i}=this.props,a=(0,bv.stripHtmlTags)(e);this.setState({markup:a});const{tr:u}=t.state,s=u.doc.nodeAt(i);if(!s||s.isText||!s.isAtom||!s.isInline)return!1;u.setNodeMarkup(i,void 0,{...n.attrs,value:a}),t.view.dispatch(u),r(!0),o(a)}),(0,vv.default)(this,"onRespAreaChange",e=>{this.setState({respAreaMarkup:e})}),(0,vv.default)(this,"onKeyDown",e=>"Enter"===e.key),(0,vv.default)(this,"onBlur",()=>{this.clickedInside&&(this.clickedInside=!1)})}componentDidMount(){const{correctChoice:e,node:t,editor:n}=this.props,r=e||{},o=n.view.nodeDOM(n.state.selection.from);if(1===pv([o,"optionalAccess",e=>e.nodeType])){const e=o.getBoundingClientRect(),t=o.closest(".tiptap").getBoundingClientRect();e.top,t.top,e.left,t.left,this.setState({markup:r.label,toolbarStyle:{position:"absolute",top:0,left:0,width:e.width-4+"px"}})}}render(){const{maxLengthPerChoiceEnabled:e,pluginProps:t,spellCheck:n}=this.props,{markup:r,toolbarStyle:o}=this.state,i=e?{}:{maxLength:25};return gv.default.createElement("div",{style:o},gv.default.createElement(xv,(0,hv.default)({autoFocus:!0,disableUnderline:!0,onChange:e=>{this.preventDone||this.onRespAreaChange(e)},onDone:e=>{this.preventDone||this.onDone(e)},onBlur:e=>{this.preventDone=e.relatedTarget&&e.relatedTarget.closest(".insert-character-dialog"),this.onBlur(e)},onKeyDown:this.onKeyDown,markup:r||"",activePlugins:["languageCharacters"],pluginProps:t,languageCharactersProps:[{language:"spanish"}],minHeight:"15px",maxHeight:"15px",spellCheck:n,autoWidthToolbar:!0,toolbarOpts:{minWidth:"auto",isHidden:!!pv([t,"optionalAccess",e=>e.characters,"optionalAccess",e=>e.disabled])}},i)))}}Xh.ECRToolbar=Cv,(0,vv.default)(Cv,"propTypes",{correctChoice:yv.default.object,node:yv.default.object,pos:yv.default.number,onDone:yv.default.func,onChangeResponse:yv.default.func.isRequired,onToolbarDone:yv.default.func.isRequired,value:yv.default.shape({change:yv.default.func.isRequired,document:yv.default.shape({getNextText:yv.default.func.isRequired})}),editor:yv.default.object,maxLengthPerChoiceEnabled:yv.default.bool,pluginProps:yv.default.object,spellCheck:yv.default.bool}),Xh.default=Cv;var jv={},wv={};const Ev=e,Av=t,{Button:Ov}=r,{IconButton:Sv}=r,{MenuItem:Mv}=r,{Select:Iv}=r,{TextField:kv}=r,{Delete:Pv}=o,Rv=n,Lv=u;function Wv(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i((...e)=>n.call(t,...e)),t=void 0)}return n}var Bv=f.exports;Object.defineProperty(wv,"__esModule",{value:!0}),wv.default=wv.Choice=wv.AlternateSection=void 0;var Tv=Bv(ev.exports),Dv=Bv(p.exports),zv=Bv(Ev),qv=Bv(Av),Nv=Hh,Uv=Bv(Ov),Fv=Bv(Pv),$v=Bv(Sv),Hv=Bv(Mv),Kv=Bv(Iv),Vv=Bv(kv),Yv=Rv,Zv=Bv(Lv),Gv=tv;const Jv=(0,Yv.styled)("div")(({theme:e})=>({marginBottom:e.spacing(.5)})),Qv=(0,Yv.styled)("div")(({theme:e})=>({alignItems:"flex-start",flexDirection:"column",display:"flex",paddingTop:e.spacing(2.5),"& > *":{marginBottom:e.spacing(2.5),width:"100%"}})),Xv=(0,Yv.styled)(Zv.default)(({theme:e,hasError:t})=>({flex:"1",marginRight:e.spacing(2.5),...t&&{border:`2px solid ${e.palette.error.main}`,borderRadius:"6px"}})),eg=(0,Yv.styled)($v.default)(({theme:e})=>({"& svg":{fill:e.palette.grey[600]}})),tg=(0,Yv.styled)("div")({alignItems:"flex-end",display:"flex",justifyContent:"space-between",width:"100%"}),ng=(0,Yv.styled)("div")({alignItems:"center",display:"flex"}),rg=(0,Yv.styled)(Vv.default)(({theme:e})=>({width:"230px",marginRight:e.spacing(2.5),"& .MuiInput-underline:before":{borderBottomColor:e.palette.divider},"& .MuiInput-underline:hover:not(.Mui-disabled):before":{borderBottomColor:e.palette.text.primary},"& .MuiInput-underline:after":{borderBottomColor:e.palette.primary.main}})),og=(0,Yv.styled)("div")(({theme:e})=>({fontSize:e.typography.fontSize-2,color:e.palette.error.main,paddingTop:e.spacing(.5)})),ig=(0,Yv.styled)("div")({alignItems:"center",display:"flex",justifyContent:"space-between"});class ag extends zv.default.Component{constructor(...e){super(...e),(0,Dv.default)(this,"state",{value:this.props.markup}),(0,Dv.default)(this,"updateText",(0,Nv.debounce)(this.props.onChange,300)),(0,Dv.default)(this,"onChange",e=>{const t=(0,Gv.stripHtmlTags)(e);this.setState({value:t}),this.updateText(t)}),(0,Dv.default)(this,"onKeyDown",e=>{if("Enter"===e.key)return!0})}UNSAFE_componentWillReceiveProps(e){e.markup&&this.setState({value:e.markup})}render(){const{value:e}=this.state,{onDelete:t,spellCheck:n,error:r,showMaxLength:o,pluginProps:i}=this.props,a=o?{}:{maxLength:25};return zv.default.createElement(zv.default.Fragment,null,zv.default.createElement(ig,null,zv.default.createElement(Xv,(0,Tv.default)({hasError:!!r,disableUnderline:!0,onChange:this.onChange,onKeyDown:this.onKeyDown,markup:e||"",activePlugins:["languageCharacters"],pluginProps:i,languageCharactersProps:[{language:"spanish"}],spellCheck:n,autoWidthToolbar:!0,toolbarOpts:{minWidth:"auto",isHidden:!!Wv([i,"optionalAccess",e=>e.characters,"optionalAccess",e=>e.disabled])}},a)),zv.default.createElement(eg,{"aria-label":"delete",onClick:t,size:"large"},zv.default.createElement(Fv.default,null))),r&&zv.default.createElement(og,null,r))}}wv.Choice=ag,(0,Dv.default)(ag,"propTypes",{error:qv.default.string,markup:qv.default.string,onChange:qv.default.func.isRequired,onDelete:qv.default.func.isRequired,value:qv.default.string,spellCheck:qv.default.bool,showMaxLength:qv.default.bool,pluginProps:qv.default.object});class ug extends zv.default.Component{constructor(...e){super(...e),(0,Dv.default)(this,"state",{}),(0,Dv.default)(this,"updateChoicesIfNeeded",e=>{this.state.choices&&(0,Nv.isEqual)(e.choices,this.state.choices)&&(0,Nv.isEqual)(e.choices,this.props.choices)||this.setState({choices:e.choices})}),(0,Dv.default)(this,"handleSelect",e=>{const{onSelect:t,selectChoices:n}=this.props,{value:r}=e.target;t(n.find(e=>e.value===r))}),(0,Dv.default)(this,"onAddChoice",()=>{const{choices:e}=this.state;if(e.length&&""!==e[e.length-1].label){const t=(0,Nv.max)(e.map(e=>parseInt(e.value)).filter(e=>!isNaN(e)))||0;this.setState({choices:[...e,{value:`${t+1}`,label:""}]})}}),(0,Dv.default)(this,"onChoiceChanged",(e,t,n)=>{const{choiceChanged:r,lengthChanged:o,maxLength:i,choices:a}=this.props,u=a.map(e=>(0,Gv.decodeHTML)(e.label||"").length);u[n]=(0,Gv.decodeHTML)(t).length;const s=Math.max(...u);r({...e,label:t}),(s>i||s+10<=i)&&o((0,Gv.getAdjustedLength)(s))}),(0,Dv.default)(this,"onRemoveChoice",e=>{const{choiceRemoved:t}=this.props;t(e.value)}),(0,Dv.default)(this,"getChoicesMaxLength",()=>{const{choices:e}=this.state;if(!e)return 1;const t=e.map(e=>(0,Gv.decodeHTML)(e.label||"").length);return Math.max(...t)}),(0,Dv.default)(this,"changeLength",e=>{const{lengthChanged:t}=this.props,n=parseInt(e.target.value,10),r=this.getChoicesMaxLength();n&&n>=r&&n<=r+10&&t(n)})}UNSAFE_componentWillReceiveProps(e){this.updateChoicesIfNeeded(e)}componentDidMount(){this.updateChoicesIfNeeded(this.props)}render(){const{selectChoices:e,maxLength:t,showMaxLength:n,value:r,spellCheck:o,errors:i,pluginProps:a}=this.props,{choices:u}=this.state,s=this.getChoicesMaxLength();return zv.default.createElement(Jv,null,zv.default.createElement(tg,null,zv.default.createElement(Kv.default,{variant:"standard",displayEmpty:!0,onChange:this.handleSelect,value:r||"",readOnly:n,MenuProps:{transitionDuration:{enter:225,exit:195}}},zv.default.createElement(Hv.default,{value:""},zv.default.createElement("em",null,r?"Remove selection":"Select a response")),e.map((e,t)=>zv.default.createElement(Hv.default,{key:t,value:Wv([e,"optionalAccess",e=>e.value])},(0,Gv.decodeHTML)(Wv([e,"optionalAccess",e=>e.label]))))),u&&u.length>0&&zv.default.createElement(ng,null,t&&n&&zv.default.createElement(rg,{variant:"standard",label:"Maximum length (characters)",type:"number",inputProps:{min:s,max:s+10},value:t,onChange:this.changeLength}),zv.default.createElement(Uv.default,{variant:"contained",color:"primary",onClick:this.onAddChoice},"Add"))),i&&i[0]&&zv.default.createElement(og,null,i[0]),zv.default.createElement(Qv,null,u&&u.map((e,t)=>t>0&&zv.default.createElement(ag,{key:t,markup:e.label,onChange:n=>this.onChoiceChanged(e,n,t),onDelete:()=>this.onRemoveChoice(e),spellCheck:o,error:i&&i[t],showMaxLength:n,pluginProps:a}))))}}wv.AlternateSection=ug,(0,Dv.default)(ug,"propTypes",{choices:qv.default.array,selectChoices:qv.default.array.isRequired,errors:qv.default.object,onSelect:qv.default.func.isRequired,choiceChanged:qv.default.func.isRequired,lengthChanged:qv.default.func,choiceRemoved:qv.default.func.isRequired,value:qv.default.string,maxLength:qv.default.number,showMaxLength:qv.default.bool,spellCheck:qv.default.bool,pluginProps:qv.default.object}),wv.default=ug;const sg=e,lg=t;var cg=f.exports;Object.defineProperty(jv,"__esModule",{value:!0}),jv.default=jv.AlternateResponses=void 0;var fg=cg(p.exports),pg=cg(sg),dg=cg(lg),hg=Hh,vg=cg(wv);class gg extends pg.default.Component{constructor(...e){super(...e),(0,fg.default)(this,"state",{maxLengthPerChoice:(0,hg.cloneDeep)(this.props.model.maxLengthPerChoice)}),(0,fg.default)(this,"updateChoicesIfNeeded",e=>{if(!this.state.choices||!(0,hg.isEqual)(this.state.choices,e.model.choices)||!(0,hg.isEqual)(e.model.choices,this.props.model.choices)||this.state.values&&Object.keys(this.state.values).length!==Object.keys(this.props.model.choices).length||e.maxLengthPerChoiceEnabled!==this.props.maxLengthPerChoiceEnabled){const{choices:t,maxLengthPerChoice:n}=e.model,r=(0,hg.reduce)(t,(t,n,r)=>(n&&(e.maxLengthPerChoiceEnabled||n.length>1)&&(t[r]=n[0]),t),{});this.setState({choices:e.model.choices,values:r,maxLengthPerChoice:(0,hg.cloneDeep)(n)})}}),(0,fg.default)(this,"getRemainingChoices",e=>{const{choices:t}=this.state;return(0,hg.reduce)(t,(t,n,r)=>(n&&1===n.length&&!e&&t.push({label:n[0].label,value:r}),t),[])}),(0,fg.default)(this,"onChoiceChanged",(e,t)=>{const{onChange:n}=this.props,{choices:r}=this.state,o=r[t]||[],i=!o.find(t=>t.value===e.value),a=o.reduce((t,n)=>{const r=n.value===e.value?e:n;return t.push(r),t},[]);i&&a.push(e),n({...r,[t]:a})}),(0,fg.default)(this,"onChoiceRemoved",(e,t)=>{const{onChange:n}=this.props,{choices:r}=this.state,o=(r[t]||[]).reduce((t,n)=>(n.value===e||t.push(n),t),[]);n({...r,[t]:o})}),(0,fg.default)(this,"onSectionSelect",(e,t)=>{const{onChange:n}=this.props,{choices:r,values:o}=this.state;r[t]&&r[t].length>1?e||n({...r,[t]:[r[t][0]]}):this.setState({choices:{...r,[t]:[...r[t],{label:"",value:"1"}]},values:{...o,[t]:r[t][0]}})}),(0,fg.default)(this,"onLengthChanged",(e,t)=>{const{model:n,onLengthChange:r}=this.props,{maxLengthPerChoice:o}=n;o[t]=e,r(o)})}UNSAFE_componentWillReceiveProps(e){this.updateChoicesIfNeeded(e)}componentDidMount(){this.updateChoicesIfNeeded(this.props)}render(){const{choices:e}=this.state,{model:{maxLengthPerChoice:t,maxLengthPerChoiceEnabled:n},spellCheck:r,choicesErrors:o,pluginProps:i}=this.props;return pg.default.createElement("div",null,(0,hg.map)(e,(e,a)=>{if(e&&(n||e.length>1)){const u=this.state.values[a];return pg.default.createElement(vg.default,{key:a,value:u&&u.value,errors:o&&o[a],onSelect:e=>this.onSectionSelect(e,a),choiceChanged:e=>this.onChoiceChanged(e,a),choiceRemoved:e=>this.onChoiceRemoved(e,a),lengthChanged:e=>this.onLengthChanged(e,a),selectChoices:[u],choices:e,maxLength:t[a],showMaxLength:n,spellCheck:r,pluginProps:i})}}),e&&Object.keys(this.state.values).length!==Object.keys(e).length&&pg.default.createElement(vg.default,{value:"",onSelect:e=>this.onSectionSelect(e,e.value),choiceChanged:e=>this.onChoiceChanged(e),choiceRemoved:e=>this.onChoiceRemoved(e),selectChoices:this.getRemainingChoices(),spellCheck:r,pluginProps:i}))}}jv.AlternateResponses=gg,(0,fg.default)(gg,"propTypes",{choicesErrors:dg.default.object,model:dg.default.object.isRequired,onChange:dg.default.func.isRequired,onLengthChange:dg.default.func.isRequired,maxLengthPerChoiceEnabled:dg.default.bool.isRequired,spellCheck:dg.default.bool,pluginProps:dg.default.object}),jv.default=gg;var yg={};Object.defineProperty(yg,"__esModule",{value:!0}),yg.generateValidationMessage=void 0,yg.generateValidationMessage=e=>{const{maxResponseAreas:t}=e;return"Validation requirements:\nCorrect answers should not be blank.\nEach answer defined for a response area should be unique.\nThere should be at least 1 "+(t?`and at most ${t} `:"")+"response area"+(t?"s":"")+" defined."};const mg=e,_g=t,bg=n,{Typography:xg}=r,{Tooltip:Cg}=r,{Info:jg}=o,wg=u,Eg=s;function Ag(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i((...e)=>n.call(t,...e)),t=void 0)}return n}var Og=f.exports;Object.defineProperty(Qh,"__esModule",{value:!0}),Qh.default=Qh.Main=void 0;var Sg=Og(p.exports),Mg=Og(mg),Ig=Og(_g),kg=Hh,Pg=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,r,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(n=t){if(n.has(e))return n.get(e);n.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?n(o,t,r):o[t]=e[t]);return o}(e)}(wg),Rg=Eg,Lg=bg,Wg=Og(xg),Bg=Og(jg),Tg=Og(Cg),Dg=Og(Xh),zg=Og(jv),qg=tv,Ng=yg;const{toggle:Ug,Panel:Fg,dropdown:$g}=Rg.settings,Hg=(0,Lg.styled)(Rg.InputContainer)(({theme:e})=>({width:"100%",paddingTop:e.spacing(1),marginTop:e.spacing(2),marginBottom:e.spacing(2)})),Kg=(0,Lg.styled)(Pg.default)(({theme:e})=>({minHeight:"100px",paddingTop:e.spacing(1),width:"100%",'& [data-slate-editor="true"]':{minHeight:"100px"}})),Vg=(0,Lg.styled)(Wg.default)(({theme:e})=>({fontSize:e.typography.fontSize+2})),Yg=(0,Lg.styled)(Tg.default)(({theme:e})=>({"& .MuiTooltip-tooltip":{fontSize:e.typography.fontSize-2,whiteSpace:"pre",maxWidth:"500px"}})),Zg=(0,Lg.styled)("div")(({theme:e})=>({fontSize:e.typography.fontSize-2,color:e.palette.error.main,paddingTop:e.spacing(1)})),Gg=(0,Lg.styled)("div")({display:"flex",alignItems:"center"}),Jg=(0,Lg.styled)(Wg.default)(({theme:e})=>({fontSize:e.typography.fontSize+2,marginTop:e.spacing(3),marginBottom:e.spacing(1)}));class Qg extends Mg.default.Component{constructor(...e){super(...e),(0,Sg.default)(this,"state",{}),(0,Sg.default)(this,"onModelChange",e=>{this.props.onModelChanged({...this.props.model,...e})}),(0,Sg.default)(this,"onPromptChanged",e=>{this.props.onModelChanged({...this.props.model,prompt:e})}),(0,Sg.default)(this,"onRationaleChanged",e=>{this.props.onModelChanged({...this.props.model,rationale:e})}),(0,Sg.default)(this,"onTeacherInstructionsChanged",e=>{const{model:t,onModelChanged:n}=this.props;n({...t,teacherInstructions:e})}),(0,Sg.default)(this,"onMarkupChanged",e=>{this.props.onModelChanged({...this.props.model,slateMarkup:e})}),(0,Sg.default)(this,"onResponsesChanged",e=>{this.props.onModelChanged({...this.props.model,choices:e})}),(0,Sg.default)(this,"onLengthChanged",e=>{const{model:t,onModelChanged:n}=this.props;n({...t,maxLengthPerChoice:e})}),(0,Sg.default)(this,"onChangeResponse",(e,t)=>{const{model:n,onModelChanged:r}=this.props,{choices:o}=n;let{maxLengthPerChoice:i}=n;const a=(0,qg.decodeHTML)(t||"").length;if(o[e]&&o[e].length)o[e][0].label=t||"",i&&(i[e]<a||i[e]>a+10)&&(i[e]=(0,qg.getAdjustedLength)(a));else{o[e]=[{label:t||"",value:"0"}];const n=e>i.length?e-i.length:0;i=[...i,...Array(n).fill(1)],i.splice(e,0,(0,qg.getAdjustedLength)(a))}r({...n,choices:o,maxLengthPerChoice:i})}),(0,Sg.default)(this,"onChange",e=>{const{model:{choices:t,maxLengthPerChoice:n},onModelChanged:r}=this.props,o=(e=>{const t=document.createElement("div");return t.innerHTML=e.trim(),t})(e),i=o.querySelectorAll('[data-type="explicit_constructed_response"]'),a={},u=[];i.forEach((e,r)=>{const o=(0,kg.cloneDeep)(t[e.dataset.index]);o&&(o[0]={label:e.dataset.value||"",value:"0"},u[r]=n[e.dataset.index]),a[r]=o,e.dataset.index=r}),this.setState({cachedChoices:void 0},()=>r({...this.props.model,choices:a,slateMarkup:o.innerHTML,maxLengthPerChoice:u}))}),(0,Sg.default)(this,"onHandleAreaChange",(0,kg.throttle)(e=>{const{model:{choices:t},onModelChanged:n}=this.props,{cachedChoices:r}=this.state;if(!e)return;const o=t?(0,kg.cloneDeep)(t):{},i=r?(0,kg.cloneDeep)(r):{};e.forEach(e=>{const t=e.index;!o[t]&&i[t]?(Object.assign(o,(0,kg.pick)(i,t)),Object.prototype.hasOwnProperty.call(i,t)&&delete i[t]):(Object.assign(i,(0,kg.pick)(o,t)),Object.prototype.hasOwnProperty.call(o,t)&&delete o[t])}),this.setState({cachedChoices:i},()=>n({...this.props.model,choices:o}))},500,{trailing:!1,leading:!0}))}componentDidMount(){const{model:{slateMarkup:e,choices:t,maxLengthPerChoice:n=[]},onModelChanged:r}=this.props,o=!n.length;this.setState({markup:e}),Object.values(t).forEach((e,t)=>{const r=e.map(e=>(0,qg.decodeHTML)(e.label||"").length),i=Math.max(...r);(o||!n[t]||n[t]<i||n[t]>i+10)&&(n[t]=(0,qg.getAdjustedLength)(i))}),r({...this.props.model,maxLengthPerChoice:n})}render(){const{model:e,configuration:t,onConfigurationChanged:n,imageSupport:r,uploadSoundSupport:o}=this.props,{baseInputConfiguration:i={},contentDimensions:a={},maxImageWidth:u={},maxImageHeight:s={},maxLengthPerChoice:l={},maxResponseAreas:c,partialScoring:f={},playerSpellCheck:p={},prompt:d={},rationale:h={},template:v={},settingsPanelDisabled:g,spellCheck:y={},editSource:m={},teacherInstructions:_={},withRubric:b={},mathMlOptions:x={},language:C={},languageChoices:j={},spanishButton:w={},responseAreaInputConfiguration:E={}}=t||{},{errors:A,extraCSSRules:O,maxLengthPerChoiceEnabled:S,promptEnabled:M,rationaleEnabled:I,spellCheckEnabled:k,teacherInstructionsEnabled:P,toolbarEditorPosition:R}=e||{},{choices:L={},prompt:W,rationale:B,responseAreas:T,teacherInstructions:D}=A||{},z=(0,Ng.generateValidationMessage)(t),q=u&&u.prompt,N=s&&s.prompt,U={position:"top"===R?"top":"bottom"},F={partialScoring:f.settings&&Ug(f.label),maxLengthPerChoiceEnabled:l.settings&&Ug(l.label),"language.enabled":C.settings&&Ug(C.label,!0),language:C.settings&&C.enabled&&$g(j.label,j.options),"responseAreaInputConfiguration.inputConfiguration.characters.disabled":w.settings&&Ug(w.label,!0)},$={teacherInstructionsEnabled:_.settings&&Ug(_.label),rationaleEnabled:h.settings&&Ug(h.label),promptEnabled:d.settings&&Ug(d.label),spellCheckEnabled:y.settings&&Ug(y.label),playerSpellCheckEnabled:p.settings&&Ug(p.label),rubricEnabled:Ag([b,"optionalAccess",e=>e.settings])&&Ug(Ag([b,"optionalAccess",e=>e.label])),"editSource.enabled":Ag([m,"optionalAccess",e=>e.settings])&&Ug(m.label,!0)},H=(e={})=>({...i,...e});return Mg.default.createElement(Rg.layout.ConfigLayout,{extraCSSRules:O,dimensions:a,hideSettings:g,settings:Mg.default.createElement(Fg,{model:e,configuration:t,onChangeModel:e=>this.onModelChange(e),onChangeConfiguration:e=>n(e,!0),groups:{Settings:F,Properties:$}})},P&&Mg.default.createElement(Hg,{label:_.label},Mg.default.createElement(Pg.default,{className:"prompt",markup:e.teacherInstructions||"",onChange:this.onTeacherInstructionsChanged,imageSupport:r,nonEmpty:!1,error:D,toolbarOpts:U,pluginProps:H(Ag([_,"optionalAccess",e=>e.inputConfiguration])),spellCheck:k,maxImageWidth:u&&u.teacherInstructions||q,maxImageHeight:s&&s.teacherInstructions||N,uploadSoundSupport:o,languageCharactersProps:[{language:"spanish"},{language:"special"}],mathMlOptions:x,autoWidthToolbar:!0}),D&&Mg.default.createElement(Zg,null,D)),M&&Mg.default.createElement(Hg,{label:d.label},Mg.default.createElement(Pg.default,{className:"prompt",markup:e.prompt,onChange:this.onPromptChanged,imageSupport:r,nonEmpty:!1,disableUnderline:!0,error:W,toolbarOpts:U,pluginProps:H(Ag([d,"optionalAccess",e=>e.inputConfiguration])),spellCheck:k,maxImageWidth:q,maxImageHeight:N,uploadSoundSupport:o,languageCharactersProps:[{language:"spanish"},{language:"special"}],mathMlOptions:x,autoWidthToolbar:!0}),W&&Mg.default.createElement(Zg,null,W)),Mg.default.createElement(Gg,null,Mg.default.createElement(Vg,{component:"div"},"Define Template, Choices, and Correct Responses"),Mg.default.createElement(Yg,{disableFocusListener:!0,disableTouchListener:!0,placement:"right",title:z},Mg.default.createElement(Bg.default,{fontSize:"small",color:"primary",style:{marginLeft:"8px"}}))),Mg.default.createElement(Kg,{activePlugins:Pg.ALL_PLUGINS,toolbarOpts:{position:"top"},spellCheck:k,pluginProps:H(Ag([v,"optionalAccess",e=>e.inputConfiguration])),responseAreaProps:{type:"explicit-constructed-response",options:{duplicates:!0},maxResponseAreas:c,respAreaToolbar:(e,t,n)=>{const[r,o]=e,{model:i}=this.props,a=(i.choices[r.attrs.index]||[])[0];return()=>Mg.default.createElement(Dg.default,{onChangeResponse:e=>this.onChangeResponse(r.attrs.index,e),node:r,pos:o,editor:t,onToolbarDone:n,correctChoice:a,maxLengthPerChoiceEnabled:S,pluginProps:H(Ag([E,"optionalAccess",e=>e.inputConfiguration]))})},error:()=>L,onHandleAreaChange:this.onHandleAreaChange},markup:e.slateMarkup,onChange:this.onChange,imageSupport:r,disableImageAlignmentButtons:!0,onBlur:this.onBlur,disabled:!1,highlightShape:!1,error:T,uploadSoundSupport:o,languageCharactersProps:[{language:"spanish"},{language:"special"}],mathMlOptions:x,autoWidthToolbar:!0}),T&&Mg.default.createElement(Zg,null,T),!(0,kg.isEmpty)(e.choices)&&Mg.default.createElement(Jg,null,"Define Alternates "+(S?"and Character Limits":"")),Mg.default.createElement(zg.default,{model:e,onChange:this.onResponsesChanged,onLengthChange:this.onLengthChanged,maxLengthPerChoiceEnabled:S,spellCheck:k,choicesErrors:L,pluginProps:H(Ag([E,"optionalAccess",e=>e.inputConfiguration]))}),I&&Mg.default.createElement(Hg,{label:h.label},Mg.default.createElement(Pg.default,{className:"prompt",markup:e.rationale||"",onChange:this.onRationaleChanged,imageSupport:r,error:B,toolbarOpts:U,pluginProps:H(Ag([h,"optionalAccess",e=>e.inputConfiguration])),spellCheck:k,maxImageWidth:u&&u.rationale||q,maxImageHeight:s&&s.rationale||N,uploadSoundSupport:o,languageCharactersProps:[{language:"spanish"},{language:"special"}],mathMlOptions:x,autoWidthToolbar:!0}),B&&Mg.default.createElement(Zg,null,B)))}}Qh.Main=Qg,(0,Sg.default)(Qg,"propTypes",{configuration:Ig.default.object.isRequired,model:Ig.default.object.isRequired,disableSidePanel:Ig.default.bool,onModelChanged:Ig.default.func.isRequired,onConfigurationChanged:Ig.default.func.isRequired,imageSupport:Ig.default.shape({add:Ig.default.func.isRequired,delete:Ig.default.func.isRequired}),uploadSoundSupport:Ig.default.object}),Qh.default=Qg;var Xg={};Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.default=void 0,Xg.default={model:{choices:{},displayType:"block",markup:"",maxLengthPerChoiceEnabled:!0,playerSpellCheckEnabled:!0,prompt:"",promptEnabled:!0,rationale:"",rationaleEnabled:!0,spellCheckEnabled:!0,studentInstructionsEnabled:!0,teacherInstructions:"",teacherInstructionsEnabled:!0,toolbarEditorPosition:"bottom",responseAreaInputConfiguration:{}},configuration:{baseInputConfiguration:{h3:{disabled:!0},html:{disabled:!0},audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1},textAlign:{disabled:!0},showParagraphs:{disabled:!1},separateParagraphs:{disabled:!0}},prompt:{settings:!0,label:"Prompt",inputConfiguration:{audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1}},required:!1},partialScoring:{settings:!1,label:"Allow Partial Scoring"},rationale:{settings:!0,label:"Rationale",inputConfiguration:{audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1}},required:!1},settingsPanelDisabled:!1,spellCheck:{label:"Spellcheck",settings:!1,enabled:!0},editSource:{label:"Edit Source",settings:!1,enabled:!1},playerSpellCheck:{label:"Student Spellcheck",settings:!0,enabled:!0},teacherInstructions:{settings:!0,label:"Teacher Instructions",inputConfiguration:{audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1}},required:!1},template:{inputConfiguration:{audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1},h3:{disabled:!0},blockquote:{disabled:!0}}},maxLengthPerChoice:{settings:!0,label:"Maximum Length Per Choice"},maxResponseAreas:10,maxImageWidth:{teacherInstructions:300,prompt:300,rationale:300},maxImageHeight:{teacherInstructions:300,prompt:300,rationale:300},withRubric:{settings:!1,label:"Add Rubric"},mathMlOptions:{mmlOutput:!1,mmlEditing:!1},language:{settings:!1,label:"Specify Language",enabled:!1},languageChoices:{label:"Language Choices",options:[]},responseAreaInputConfiguration:{inputConfiguration:{characters:{disabled:!0}}},spanishButton:{settings:!0,label:"Disable Spanish Characters"}}};const ey=e,ty=a,ny=i;function ry(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i((...e)=>n.call(t,...e)),t=void 0)}return n}var oy=f.exports;Object.defineProperty(c,"__esModule",{value:!0});var iy=c.default=void 0,ay=oy(p.exports),uy=oy(ey),sy=ty,ly=oy(ny),cy=Hh,fy=Kh,py=oy(Qh),dy=oy(Xg),hy=tv;const vy=(0,ly.default)("explicit-constructed-response:configure");class gy extends HTMLElement{constructor(){super(),this._root=null,this._model=gy.prepareModel(),this._configuration=dy.default.configuration,this.onModelChanged=this.onModelChanged.bind(this),this.onConfigurationChanged=this.onConfigurationChanged.bind(this)}set model(e){this._model=gy.prepareModel(e),this._model.responseAreaInputConfiguration&&(this._model.responseAreaInputConfiguration=ry([this,"access",e=>e._configuration,"access",e=>e.responseAreaInputConfiguration,"optionalAccess",e=>e.inputConfiguration])),this._render()}set configuration(e){this._configuration=(0,cy.defaults)(e,dy.default.configuration),ry([e,"access",e=>e.language,"optionalAccess",e=>e.enabled])?ry([e,"access",e=>e.languageChoices,"optionalAccess",e=>e.options,"optionalAccess",e=>e.length])&&(this._model.language=e.languageChoices.options[0].value):e.language.settings&&this._model.language?(this._configuration.language.enabled=!0,this._configuration.languageChoices.options&&this._configuration.languageChoices.options.length||(this._configuration.languageChoices.options=[]),this._configuration.languageChoices.options.find(e=>e.value===this._model.language)||this._configuration.languageChoices.options.push({value:this._model.language,label:this._model.language})):delete this._model.language,this._render()}set disableSidePanel(e){this._disableSidePanel=e,this._render()}dispatchModelUpdated(e){const t=!!e;this.dispatchEvent(new fy.ModelUpdatedEvent(this._model,t))}onModelChanged(e,t){this._model=gy.prepareModel(e),this._render(),this.dispatchModelUpdated(t)}onConfigurationChanged(e){this._configuration=e;const t=ry([this,"access",e=>e._configuration,"optionalAccess",e=>e.responseAreaInputConfiguration,"optionalAccess",e=>e.inputConfiguration]);this._model={...this._model,responseAreaInputConfiguration:t},this.onModelChanged(this._model)}insertImage(e){this.dispatchEvent(new fy.InsertImageEvent(e))}onDeleteImage(e,t){this.dispatchEvent(new fy.DeleteImageEvent(e,t))}insertSound(e){this.dispatchEvent(new fy.InsertSoundEvent(e))}onDeleteSound(e,t){this.dispatchEvent(new fy.DeleteSoundEvent(e,t))}_render(){vy("_render");let e=uy.default.createElement(py.default,{model:this._model,configuration:this._configuration,onModelChanged:this.onModelChanged,onConfigurationChanged:this.onConfigurationChanged,disableSidePanel:this._disableSidePanel,imageSupport:{add:this.insertImage.bind(this),delete:this.onDeleteImage.bind(this)},uploadSoundSupport:{add:this.insertSound.bind(this),delete:this.onDeleteSound.bind(this)}});this._root||(this._root=(0,sy.createRoot)(this)),this._root.render(e)}disconnectedCallback(){this._root&&this._root.unmount()}}iy=c.default=gy,(0,ay.default)(gy,"prepareModel",(e={})=>{const t={...dy.default.model,...e},n=t.slateMarkup||(0,hy.createSlateMarkup)(t.markup,t.choices),r=(0,hy.processMarkup)(n);return t.choices&&Object.keys(t.choices).forEach(e=>{(0,cy.isArray)(t.choices[e])&&(t.choices[e]=(t.choices[e]||[]).map((e,t)=>e.value?e:(vy('Choice does not contain "value" property, which is required.',e),{value:`${t}`,...e})))}),{...t,slateMarkup:n,markup:r}});export{iy as default};