@pie-element/explicit-constructed-response 11.1.1 → 11.1.2-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.
- package/configure.js +2 -0
- package/controller.js +1 -0
- package/dist/_virtual/_rolldown/runtime.js +4 -0
- package/dist/author/alternateResponses.d.ts +34 -0
- package/dist/author/alternateResponses.js +116 -0
- package/dist/author/alternateSection.d.ts +58 -0
- package/dist/author/alternateSection.js +215 -0
- package/dist/author/defaults.d.ts +186 -0
- package/dist/author/defaults.js +128 -0
- package/dist/author/ecr-toolbar.d.ts +41 -0
- package/dist/author/ecr-toolbar.js +100 -0
- package/dist/author/index.d.ts +42 -0
- package/dist/author/index.js +97 -0
- package/dist/author/main.d.ts +38 -0
- package/dist/author/main.js +294 -0
- package/dist/author/markupUtils.d.ts +14 -0
- package/dist/author/markupUtils.js +13 -0
- package/dist/author/utils.d.ts +9 -0
- package/dist/author/utils.js +7 -0
- package/dist/browser/author/index.js +3498 -0
- package/dist/browser/author/index.js.map +1 -0
- package/dist/browser/browser-DbR93LB7.js +950 -0
- package/dist/browser/browser-DbR93LB7.js.map +1 -0
- package/dist/browser/controller/index.js +4183 -0
- package/dist/browser/controller/index.js.map +1 -0
- package/dist/browser/delivery/index.js +96 -0
- package/dist/browser/delivery/index.js.map +1 -0
- package/dist/browser/dist-D9ARZhQk.js +1426 -0
- package/dist/browser/dist-D9ARZhQk.js.map +1 -0
- package/dist/browser/dist-DnL6t4VO.js +46135 -0
- package/dist/browser/dist-DnL6t4VO.js.map +1 -0
- package/dist/browser/explicit-constructed-response.css +2 -0
- package/dist/browser/main-V_e6PRBN.js +941 -0
- package/dist/browser/main-V_e6PRBN.js.map +1 -0
- package/dist/browser/print/index.js +40 -0
- package/dist/browser/print/index.js.map +1 -0
- package/dist/browser/reduce-Bqz7DMQ0.js +172 -0
- package/dist/browser/reduce-Bqz7DMQ0.js.map +1 -0
- package/dist/controller/defaults.d.ts +25 -0
- package/dist/controller/defaults.js +19 -0
- package/dist/controller/index.d.ts +64 -0
- package/dist/controller/index.js +142 -0
- package/dist/delivery/index.d.ts +20 -0
- package/dist/delivery/index.js +66 -0
- package/dist/delivery/main.d.ts +48 -0
- package/dist/delivery/main.js +117 -0
- package/dist/explicit-constructed-response.css +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.iife.d.ts +8 -0
- package/dist/index.iife.js +393 -0
- package/dist/index.js +2 -0
- package/dist/node_modules/.bun/he@1.2.0/node_modules/he/he.js +3993 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayReduce.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseEach.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseExtremum.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseForOwn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGt.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js +26 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMap.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePick.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyOf.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseReduce.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +22 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseEach.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createFind.js +19 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +35 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +35 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +32 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_escapeHtmlChar.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js +18 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js +50 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/escape.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/find.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/findIndex.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/flatten.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/get.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +21 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/map.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/max.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/now.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/pick.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/reduce.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/throttle.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toFinite.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toInteger.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +19 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +7 -0
- package/dist/print/index.d.ts +15 -0
- package/dist/print/index.js +40 -0
- package/package.json +86 -22
- package/CHANGELOG.json +0 -1102
- package/CHANGELOG.md +0 -2187
- package/LICENSE.md +0 -5
- package/README.md +0 -1
- package/configure/CHANGELOG.json +0 -652
- package/configure/CHANGELOG.md +0 -1928
- package/configure/lib/alternateResponses.js +0 -199
- package/configure/lib/alternateResponses.js.map +0 -1
- package/configure/lib/alternateSection.js +0 -329
- package/configure/lib/alternateSection.js.map +0 -1
- package/configure/lib/defaults.js +0 -184
- package/configure/lib/defaults.js.map +0 -1
- package/configure/lib/ecr-toolbar.js +0 -181
- package/configure/lib/ecr-toolbar.js.map +0 -1
- package/configure/lib/index.js +0 -161
- package/configure/lib/index.js.map +0 -1
- package/configure/lib/main.js +0 -514
- package/configure/lib/main.js.map +0 -1
- package/configure/lib/markupUtils.js +0 -70
- package/configure/lib/markupUtils.js.map +0 -1
- package/configure/lib/utils.js +0 -15
- package/configure/lib/utils.js.map +0 -1
- package/configure/package.json +0 -22
- package/controller/CHANGELOG.json +0 -517
- package/controller/CHANGELOG.md +0 -1344
- package/controller/lib/defaults.js +0 -23
- package/controller/lib/defaults.js.map +0 -1
- package/controller/lib/index.js +0 -368
- package/controller/lib/index.js.map +0 -1
- package/controller/package.json +0 -18
- package/docs/config-schema.json +0 -2629
- package/docs/config-schema.json.md +0 -1941
- package/docs/demo/config.js +0 -8
- package/docs/demo/generate.js +0 -20
- package/docs/demo/index.html +0 -1
- package/docs/demo/session.js +0 -10
- package/docs/pie-schema.json +0 -1130
- package/docs/pie-schema.json.md +0 -814
- package/lib/index.js +0 -91
- package/lib/index.js.map +0 -1
- package/lib/main.js +0 -205
- package/lib/main.js.map +0 -1
- package/lib/print.js +0 -71
- package/lib/print.js.map +0 -1
- package/module/configure.js +0 -1
- package/module/controller.js +0 -6534
- package/module/demo.js +0 -45
- package/module/element.js +0 -1
- package/module/index.html +0 -21
- package/module/manifest.json +0 -18
- package/module/print-demo.js +0 -83
- package/module/print.html +0 -18
- package/module/print.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main-V_e6PRBN.js","names":["t","t","t","n","t","t","n","t","t","n","t","t","s","i","a","o","n","r","t","n","t","t","t","t","l","a","i","r","o","s","c","t","r","n","t","a","t","n","r","i"],"sources":["../../../../lib-react/correct-answer-toggle/dist/expander.js","../../../../lib-react/icons/dist/correct-response-icon.js","../../../../lib-react/correct-answer-toggle/dist/index.js","../../../../lib-react/mask-markup/dist/componentize.js","../../../../lib-react/mask-markup/dist/_virtual/_rolldown/runtime.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixProperties.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/cssUnitless.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/toUpperFirst.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixInfo.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/hyphenRe.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/camelize.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/separate.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/hyphenate.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/toLowerFirst.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixer.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/cssPrefix.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/hasOwn.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isObject.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isFunction.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleObject.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleString.js","../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/index.js","../../../../lib-react/mask-markup/dist/serialization.js","../../../../lib-react/mask-markup/dist/mask.js","../../../../lib-react/mask-markup/dist/with-mask.js","../../../../lib-react/mask-markup/dist/constructed-response.js","../../src/delivery/main.tsx"],"sourcesContent":["import { styled as e } from \"@mui/material/styles\";\nimport { CSSTransition as t } from \"react-transition-group\";\nimport { jsx as n } from \"react/jsx-runtime\";\nimport { useRef as r } from \"react\";\nimport i from \"prop-types\";\n//#region src/expander.tsx\nvar a = \"height ease-in 300ms, opacity ease-in 300ms\", o = e(\"div\")(() => ({\n\tposition: \"relative\",\n\theight: 0,\n\toverflow: \"hidden\",\n\tdisplay: \"flex\",\n\tvisibility: \"hidden\",\n\twidth: 0,\n\t\"&.enter\": {\n\t\ttransition: a,\n\t\topacity: 1,\n\t\theight: \"auto\",\n\t\twidth: \"auto\",\n\t\tvisibility: \"visible\",\n\t\tminHeight: \"25px\"\n\t},\n\t\"&.enter-done\": {\n\t\theight: \"auto\",\n\t\tvisibility: \"visible\",\n\t\twidth: \"auto\",\n\t\tminHeight: \"25px\"\n\t},\n\t\"&.exit\": {\n\t\ttransition: a,\n\t\topacity: 0,\n\t\theight: 0,\n\t\tvisibility: \"visible\",\n\t\twidth: 0\n\t},\n\t\"&.exit-done\": {\n\t\topacity: 0,\n\t\tvisibility: \"hidden\",\n\t\theight: 0,\n\t\twidth: 0\n\t}\n})), s = (e) => {\n\tlet { show: i, children: a, className: s } = e, c = r(null);\n\treturn /* @__PURE__ */ n(t, {\n\t\tnodeRef: c,\n\t\tin: i,\n\t\tappear: !0,\n\t\tmountOnEnter: !1,\n\t\ttimeout: 300,\n\t\tclassNames: {\n\t\t\tenter: \"enter\",\n\t\t\tenterDone: \"enter-done\",\n\t\t\texit: \"exit\",\n\t\t\texitDone: \"exit-done\"\n\t\t},\n\t\tchildren: /* @__PURE__ */ n(o, {\n\t\t\tref: c,\n\t\t\tclassName: s,\n\t\t\tchildren: a\n\t\t})\n\t});\n};\ns.propTypes = {\n\tshow: i.bool.isRequired,\n\tclassName: i.string,\n\tchildren: i.oneOfType([i.arrayOf(i.node), i.node]).isRequired\n};\n//#endregion\nexport { s as default };\n","import \"react\";\nimport e from \"prop-types\";\nimport { jsx as t, jsxs as n } from \"react/jsx-runtime\";\nimport { styled as r } from \"@mui/material/styles\";\n//#region src/correct-response-icon.tsx\nvar i = ({ bgFill: e, fgFill: r }) => /* @__PURE__ */ n(\"svg\", {\n\tpreserveAspectRatio: \"xMinYMin meet\",\n\tversion: \"1.1\",\n\tviewBox: \"-283 359 34 35\",\n\tstyle: { enableBackground: \"new -283 359 34 35\" },\n\tchildren: [\n\t\t/* @__PURE__ */ t(\"circle\", {\n\t\t\tcx: \"-266\",\n\t\t\tcy: \"375.9\",\n\t\t\tr: \"14\",\n\t\t\tfill: e\n\t\t}),\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\td: \"M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z\\n M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z\",\n\t\t\tfill: e\n\t\t}),\n\t\t/* @__PURE__ */ t(\"polygon\", {\n\t\t\tpoints: \"-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6\",\n\t\t\tfill: r\n\t\t})\n\t]\n});\ni.propTypes = {\n\tbgFill: e.string.isRequired,\n\tfgFill: e.string.isRequired\n};\nvar a = ({ bgFill: e, fgFill: r, borderFill: i }) => /* @__PURE__ */ n(\"svg\", {\n\tpreserveAspectRatio: \"xMinYMin meet\",\n\tversion: \"1.1\",\n\tviewBox: \"-129.5 127 34 35\",\n\tstyle: { enableBackground: \"new -129.5 127 34 35\" },\n\tchildren: [\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\tstyle: {\n\t\t\t\tfill: \"#D0CAC5\",\n\t\t\t\tstroke: \"#E6E3E0\",\n\t\t\t\tstrokeWidth: .75,\n\t\t\t\tstrokeMiterlimit: 10\n\t\t\t},\n\t\t\td: \"M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5\\n C-97.4,153.5-104.3,160.4-112.9,160.4z\"\n\t\t}),\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\tstyle: {\n\t\t\t\tfill: \"#B3ABA4\",\n\t\t\t\tstroke: \"#CDC7C2\",\n\t\t\t\tstrokeWidth: .5,\n\t\t\t\tstrokeMiterlimit: 10\n\t\t\t},\n\t\t\td: \"M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z\"\n\t\t}),\n\t\t/* @__PURE__ */ t(\"circle\", {\n\t\t\tcx: \"-114.2\",\n\t\t\tcy: \"143.5\",\n\t\t\tr: \"14\",\n\t\t\tfill: e\n\t\t}),\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\td: \"M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z\\n M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z\",\n\t\t\tfill: i\n\t\t}),\n\t\t/* @__PURE__ */ t(\"polygon\", {\n\t\t\tpoints: \"-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2\",\n\t\t\tfill: r\n\t\t})\n\t]\n});\na.propTypes = {\n\tbgFill: e.string.isRequired,\n\tfgFill: e.string.isRequired,\n\tborderFill: e.string.isRequired\n};\nvar o = r(\"div\")(({ size: e }) => ({\n\twidth: e || \"25px\",\n\theight: e || \"25px\"\n})), s = ({ open: e, size: n }) => /* @__PURE__ */ t(o, {\n\tsize: n,\n\tchildren: e ? /* @__PURE__ */ t(i, {\n\t\tbgFill: \"#bce2ff\",\n\t\tfgFill: \"#1a9cff\"\n\t}) : /* @__PURE__ */ t(a, {\n\t\tbgFill: \"white\",\n\t\tfgFill: \"#1a9cff\",\n\t\tborderFill: \"#bce2ff\"\n\t})\n});\ns.propTypes = {\n\topen: e.bool,\n\tsize: e.string\n}, s.defaultProps = { open: !1 };\n//#endregion\nexport { s as default };\n","import e from \"./expander.js\";\nimport { styled as t } from \"@mui/material/styles\";\nimport { CSSTransition as n } from \"react-transition-group\";\nimport { CorrectResponse as r } from \"@pie-lib/icons\";\nimport * as i from \"@pie-lib/render-ui\";\nimport { Readable as a, color as o } from \"@pie-lib/render-ui\";\nimport { jsx as s, jsxs as c } from \"react/jsx-runtime\";\nimport l from \"react\";\nimport u from \"prop-types\";\nimport d from \"@pie-lib/translator\";\n//#region src/index.tsx\nfunction f(e) {\n\treturn typeof e == \"function\" || typeof e == \"object\" && !!e && typeof e.$$typeof == \"symbol\";\n}\nfunction p(e, t) {\n\treturn !e || f(e) ? e : f(e.default) ? e.default : t && f(e[t]) ? e[t] : t && f(e[t]?.default) ? e[t].default : e;\n}\nvar m = p(a, \"Readable\") || p(_.Readable, \"Readable\"), h = i, g = h.default, _ = g && typeof g == \"object\" ? g : h, { translator: v } = d, y = {\n\tWebkitTouchCallout: \"none\",\n\tWebkitUserSelect: \"none\",\n\tKhtmlUserSelect: \"none\",\n\tMozUserSelect: \"none\",\n\tmsUserSelect: \"none\",\n\tuserSelect: \"none\"\n}, b = t(\"div\")(() => ({\n\twidth: \"100%\",\n\tcursor: \"pointer\"\n})), x = t(\"div\")(() => ({\n\tmargin: \"0 auto\",\n\ttextAlign: \"center\",\n\tdisplay: \"flex\"\n})), S = t(\"div\")(() => ({\n\twidth: \"fit-content\",\n\tminWidth: \"140px\",\n\talignSelf: \"center\",\n\tverticalAlign: \"middle\",\n\tcolor: `var(--correct-answer-toggle-label-color, ${o.text()})`,\n\tfontWeight: \"normal\",\n\t...y\n})), C = t(\"div\")(() => ({\n\tposition: \"absolute\",\n\twidth: \"25px\",\n\t\"&.enter\": { opacity: \"0\" },\n\t\"&.enter-active\": {\n\t\topacity: \"1\",\n\t\ttransition: \"opacity 0.3s ease-in\"\n\t},\n\t\"&.exit\": { opacity: \"1\" },\n\t\"&.exit-active\": {\n\t\topacity: \"0\",\n\t\ttransition: \"opacity 0.3s ease-in\"\n\t}\n})), w = t(\"div\")(() => ({\n\twidth: \"25px\",\n\tmarginRight: \"5px\",\n\tdisplay: \"flex\",\n\talignItems: \"center\"\n})), T = class t extends l.Component {\n\tstatic propTypes = {\n\t\tonToggle: u.func,\n\t\ttoggled: u.bool,\n\t\tshow: u.bool,\n\t\thideMessage: u.string,\n\t\tshowMessage: u.string,\n\t\tclassName: u.string,\n\t\tlanguage: u.string\n\t};\n\tstatic defaultProps = {\n\t\tshowMessage: \"Show correct answer\",\n\t\thideMessage: \"Hide correct answer\",\n\t\tshow: !1,\n\t\ttoggled: !1\n\t};\n\tconstructor(e) {\n\t\tsuper(e), this.state = { show: e.show }, this.openIconRef = l.createRef(), this.closedIconRef = l.createRef(), t.defaultProps = {\n\t\t\t...t.defaultProps,\n\t\t\tshowMessage: v.t(\"common:showCorrectAnswer\", { lng: e.language }),\n\t\t\thideMessage: v.t(\"common:hideCorrectAnswer\", { lng: e.language })\n\t\t};\n\t}\n\tonClick() {\n\t\tthis.props.onToggle(!this.props.toggled);\n\t}\n\tonTouch(e) {\n\t\te.preventDefault(), this.props.onToggle(!this.props.toggled);\n\t}\n\tUNSAFE_componentWillReceiveProps(e) {\n\t\tthis.setState({ show: e.show }), e.language !== this.props?.language && (t.defaultProps = {\n\t\t\t...t.defaultProps,\n\t\t\tshowMessage: v.t(\"common:showCorrectAnswer\", { lng: e.language }),\n\t\t\thideMessage: v.t(\"common:hideCorrectAnswer\", { lng: e.language })\n\t\t});\n\t}\n\trender() {\n\t\tlet { className: t, toggled: i, hideMessage: a, showMessage: o } = this.props;\n\t\treturn /* @__PURE__ */ s(b, {\n\t\t\tclassName: t,\n\t\t\tchildren: /* @__PURE__ */ s(e, {\n\t\t\t\tshow: this.state.show,\n\t\t\t\tchildren: /* @__PURE__ */ c(x, {\n\t\t\t\t\tonClick: this.onClick.bind(this),\n\t\t\t\t\tonTouchEnd: this.onTouch.bind(this),\n\t\t\t\t\tchildren: [/* @__PURE__ */ c(w, { children: [/* @__PURE__ */ s(n, {\n\t\t\t\t\t\tnodeRef: this.openIconRef,\n\t\t\t\t\t\ttimeout: 400,\n\t\t\t\t\t\tin: i,\n\t\t\t\t\t\texit: !i,\n\t\t\t\t\t\tclassNames: {\n\t\t\t\t\t\t\tenter: \"enter\",\n\t\t\t\t\t\t\tenterActive: \"enter-active\",\n\t\t\t\t\t\t\texit: \"exit\",\n\t\t\t\t\t\t\texitActive: \"exit-active\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: /* @__PURE__ */ s(C, {\n\t\t\t\t\t\t\tref: this.openIconRef,\n\t\t\t\t\t\t\tchildren: /* @__PURE__ */ s(r, { open: i }, \"correct-open\")\n\t\t\t\t\t\t})\n\t\t\t\t\t}), /* @__PURE__ */ s(n, {\n\t\t\t\t\t\tnodeRef: this.closedIconRef,\n\t\t\t\t\t\ttimeout: 5e3,\n\t\t\t\t\t\tin: !i,\n\t\t\t\t\t\texit: i,\n\t\t\t\t\t\tclassNames: {\n\t\t\t\t\t\t\tenter: \"enter\",\n\t\t\t\t\t\t\tenterActive: \"enter-active\",\n\t\t\t\t\t\t\texit: \"exit\",\n\t\t\t\t\t\t\texitActive: \"exit-active\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: /* @__PURE__ */ s(C, {\n\t\t\t\t\t\t\tref: this.closedIconRef,\n\t\t\t\t\t\t\tchildren: /* @__PURE__ */ s(r, { open: i }, \"correct-closed\")\n\t\t\t\t\t\t})\n\t\t\t\t\t})] }), /* @__PURE__ */ s(m, {\n\t\t\t\t\t\tfalse: !0,\n\t\t\t\t\t\tchildren: /* @__PURE__ */ s(S, {\n\t\t\t\t\t\t\t\"aria-hidden\": !this.state.show,\n\t\t\t\t\t\t\tchildren: i ? a : o\n\t\t\t\t\t\t})\n\t\t\t\t\t})]\n\t\t\t\t})\n\t\t\t})\n\t\t});\n\t}\n};\n//#endregion\nexport { T as CorrectAnswerToggle, T as default };\n","//#region src/componentize.tsx\nvar e = /\\{\\{(\\d+)\\}\\}/g, t = (t, n) => t ? { markup: t.replace(e, (e, t) => `<span data-component=\"${n}\" data-id=\"${t}\"></span>`) } : { markup: \"\" };\n//#endregion\nexport { t as default };\n","//#region \\0rolldown/runtime.js\nvar e = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports);\n//#endregion\nexport { e as __commonJSMin };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixProperties.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tt.exports = {\n\t\t\"border-radius\": 1,\n\t\t\"border-top-left-radius\": 1,\n\t\t\"border-top-right-radius\": 1,\n\t\t\"border-bottom-left-radius\": 1,\n\t\t\"border-bottom-right-radius\": 1,\n\t\t\"box-shadow\": 1,\n\t\torder: 1,\n\t\tflex: function(e, t) {\n\t\t\treturn [t + \"box-flex\"];\n\t\t},\n\t\t\"box-flex\": 1,\n\t\t\"box-align\": 1,\n\t\tanimation: 1,\n\t\t\"animation-duration\": 1,\n\t\t\"animation-name\": 1,\n\t\ttransition: 1,\n\t\t\"transition-duration\": 1,\n\t\ttransform: 1,\n\t\t\"transform-style\": 1,\n\t\t\"transform-origin\": 1,\n\t\t\"backface-visibility\": 1,\n\t\tperspective: 1,\n\t\t\"box-pack\": 1\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_prefixProperties };\n","\"use exports\";\nimport { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/cssUnitless.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tt.exports = {\n\t\tanimation: 1,\n\t\t\"column-count\": 1,\n\t\tcolumns: 1,\n\t\t\"font-weight\": 1,\n\t\topacity: 1,\n\t\t\"order \": 1,\n\t\t\"z-index\": 1,\n\t\tzoom: 1,\n\t\tflex: 1,\n\t\t\"box-flex\": 1,\n\t\ttransform: 1,\n\t\tperspective: 1,\n\t\t\"box-pack\": 1,\n\t\t\"box-align\": 1,\n\t\tcolspan: 1,\n\t\trowspan: 1\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_cssUnitless };\n","import { __commonJSMin as e } from \"../../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/toUpperFirst.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tt.exports = function(e) {\n\t\treturn e.length ? e.charAt(0).toUpperCase() + e.substring(1) : e;\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_toUpperFirst };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_toUpperFirst as t } from \"./stringUtils/toUpperFirst.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixInfo.js\nvar n = /* @__PURE__ */ e(((e, n) => {\n\tvar r = t(), i = /^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/, a = typeof document > \"u\" ? {} : document.documentElement.style;\n\tn.exports = (function() {\n\t\tvar e = (function() {\n\t\t\tfor (var e in a) if (i.test(e)) return e.match(i)[0];\n\t\t\treturn \"WebkitOpacity\" in a ? \"Webkit\" : \"KhtmlOpacity\" in a ? \"Khtml\" : \"\";\n\t\t})();\n\t\treturn {\n\t\t\tstyle: e,\n\t\t\tcss: \"-\" + e.toLowerCase() + \"-\",\n\t\t\tdom: {\n\t\t\t\tWebkit: \"WebKit\",\n\t\t\t\tms: \"MS\",\n\t\t\t\to: \"WebKit\"\n\t\t\t}[e] || r(e)\n\t\t};\n\t})();\n}));\n//#endregion\nexport default n();\nexport { n as require_prefixInfo };\n","import { __commonJSMin as e } from \"../../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/hyphenRe.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tt.exports = /[-\\s]+(.)?/g;\n}));\n//#endregion\nexport default t();\nexport { t as require_hyphenRe };\n","import { __commonJSMin as e } from \"../../../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_hyphenRe as t } from \"./hyphenRe.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/camelize.js\nvar n = /* @__PURE__ */ e(((e, n) => {\n\tvar r = function(e, t) {\n\t\treturn t ? t.toUpperCase() : \"\";\n\t}, i = t();\n\tn.exports = function(e) {\n\t\treturn e ? e.replace(i, r) : \"\";\n\t};\n}));\n//#endregion\nexport default n();\nexport { n as require_camelize };\n","import { __commonJSMin as e } from \"../../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/separate.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tvar n = /::/g, r = /([A-Z]+)([A-Z][a-z])/g, i = /([a-z\\d])([A-Z])/g, a = /_/g;\n\tt.exports = function(e, t) {\n\t\treturn e ? e.replace(n, \"/\").replace(r, \"$1_$2\").replace(i, \"$1_$2\").replace(a, t || \"-\") : \"\";\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_separate };\n","import { __commonJSMin as e } from \"../../../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_separate as t } from \"./separate.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/hyphenate.js\nvar n = /* @__PURE__ */ e(((e, n) => {\n\tvar r = t();\n\tn.exports = function(e) {\n\t\treturn r(e).toLowerCase();\n\t};\n}));\n//#endregion\nexport default n();\nexport { n as require_hyphenate };\n","import { __commonJSMin as e } from \"../../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/toLowerFirst.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tt.exports = function(e) {\n\t\treturn e.length ? e.charAt(0).toLowerCase() + e.substring(1) : e;\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_toLowerFirst };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_prefixProperties as t } from \"./prefixProperties.js\";\nimport { require_toUpperFirst as n } from \"./stringUtils/toUpperFirst.js\";\nimport { require_prefixInfo as r } from \"./prefixInfo.js\";\nimport { require_camelize as i } from \"./stringUtils/camelize.js\";\nimport { require_hyphenate as a } from \"./stringUtils/hyphenate.js\";\nimport { require_toLowerFirst as o } from \"./stringUtils/toLowerFirst.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixer.js\nvar s = /* @__PURE__ */ e(((e, s) => {\n\tvar c = i(), l = a(), u = o(), d = n(), f = r(), p = t(), m = typeof document > \"u\" ? {} : document.documentElement.style;\n\ts.exports = function(e) {\n\t\treturn function(t, n) {\n\t\t\tn ||= {};\n\t\t\tvar r = u(c(t)), i = l(t), a = e ? r : i, o = f.style ? e ? f.style : f.css : \"\";\n\t\t\tif (r in m) return n.asString ? a : [a];\n\t\t\tvar s = a, h = p[i], g = [];\n\t\t\tif (e && (s = d(a)), typeof h == \"function\") {\n\t\t\t\tvar _ = h(a, o) || [];\n\t\t\t\t_ && !Array.isArray(_) && (_ = [_]), _.length && (_ = _.map(function(t) {\n\t\t\t\t\treturn e ? u(c(t)) : l(t);\n\t\t\t\t})), g = g.concat(_);\n\t\t\t}\n\t\t\treturn o && g.push(o + s), g.push(a), n.asString || g.length == 1 ? g[0] : g;\n\t\t};\n\t};\n}));\n//#endregion\nexport default s();\nexport { s as require_prefixer };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_prefixer as t } from \"./prefixer.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/cssPrefix.js\nvar n = /* @__PURE__ */ e(((e, n) => {\n\tn.exports = t()();\n}));\n//#endregion\nexport default n();\nexport { n as require_cssPrefix };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/hasOwn.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tvar n = Object.prototype.hasOwnProperty;\n\tt.exports = function(e, t) {\n\t\treturn n.call(e, t);\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_hasOwn };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isObject.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tvar n = Object.prototype.toString;\n\tt.exports = function(e) {\n\t\treturn !!e && n.call(e) === \"[object Object]\";\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_isObject };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isFunction.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tvar n = Object.prototype.toString;\n\tt.exports = function(e) {\n\t\treturn n.apply(e) === \"[object Function]\";\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_isFunction };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_cssUnitless as t } from \"./cssUnitless.js\";\nimport { require_prefixInfo as n } from \"./prefixInfo.js\";\nimport { require_camelize as r } from \"./stringUtils/camelize.js\";\nimport { require_hyphenate as i } from \"./stringUtils/hyphenate.js\";\nimport { require_cssPrefix as a } from \"./cssPrefix.js\";\nimport { require_hasOwn as o } from \"./hasOwn.js\";\nimport { require_isObject as s } from \"./isObject.js\";\nimport { require_isFunction as c } from \"./isFunction.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleObject.js\nvar l = /* @__PURE__ */ e(((e, l) => {\n\tn();\n\tvar u = a(), d = i(), f = r(), p = o(), m = s(), h = c(), g = function(e, t, n, r) {\n\t\tu(t).forEach(function(t) {\n\t\t\te[r ? r(t) : t] = n;\n\t\t});\n\t}, _ = function(e) {\n\t\te = (e || \"\").split(\";\");\n\t\tvar t = {};\n\t\treturn e.forEach(function(e) {\n\t\t\tvar n = e.split(\":\");\n\t\t\tn.length == 2 && (t[n[0].trim()] = n[1].trim());\n\t\t}), t;\n\t}, v = { cssUnitless: t() }, y = function(e, t, n, r) {\n\t\ttypeof e == \"string\" && (e = _(e)), t ||= v, t.cssUnitless = t.cssUnitless || v.cssUnitless, r ||= {};\n\t\tvar i = t.scope || {}, a = t.addUnits == null ? i && i.addUnits != null ? i.addUnits : !0 : t.addUnits, o = (t.cssUnitless == null ? i ? i.cssUnitless : null : t.cssUnitless) || {}, s = (t.cssUnit || i ? i.cssUnit : null) || \"px\", c = t.prefixProperties || (i ? i.prefixProperties : null) || {}, l = t.camelize ? f : d, u, b, x, S, C, w, T, E;\n\t\tfor (x in e) if (p(e, x)) {\n\t\t\tif (S = e[x], b = d(n ? n + x : x), u = !1, E = !1, h(S) && (T = S.call(i || e, S, x, b, e), m(T) && T.value != null ? (S = T.value, E = T.prefix, b = T.name ? d(T.name) : b) : S = T), C = typeof S, w = C == \"number\" || C == \"string\" && S != \"\" && S * 1 == S, S == null || b == null || b === \"\") continue;\n\t\t\tif ((w || C == \"string\") && (u = !0), !u && S.value != null && S.prefix && (u = !0, E = S.prefix, S = S.value), u) {\n\t\t\t\tif (E ||= !!c[b], w && (S = a && !(b in o) ? S + s : S + \"\"), (b == \"border\" || !b.indexOf(\"border\") && !~b.indexOf(\"radius\") && !~b.indexOf(\"width\")) && w && (b += \"-width\"), !b.indexOf(\"border-radius-\") && (b.replace(/border(-radius)(-(.*))/, function(e, t, n) {\n\t\t\t\t\tvar r = {\n\t\t\t\t\t\t\"-top\": [\"-top-left\", \"-top-right\"],\n\t\t\t\t\t\t\"-left\": [\"-top-left\", \"-bottom-left\"],\n\t\t\t\t\t\t\"-right\": [\"-top-right\", \"-bottom-right\"],\n\t\t\t\t\t\t\"-bottom\": [\"-bottom-left\", \"-bottom-right\"]\n\t\t\t\t\t};\n\t\t\t\t\tn in r ? (b = [], r[n].forEach(function(e) {\n\t\t\t\t\t\tb.push(\"border\" + e + t);\n\t\t\t\t\t})) : b = \"border\" + n + t;\n\t\t\t\t}), Array.isArray(b))) {\n\t\t\t\t\tb.forEach(function(e) {\n\t\t\t\t\t\tE ? g(r, e, S, l) : r[l(e)] = S;\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tE ? g(r, b, S, l) : r[l(b)] = S;\n\t\t\t} else y(S, t, b + \"-\", r);\n\t\t}\n\t\treturn r;\n\t};\n\tl.exports = y;\n}));\n//#endregion\nexport default l();\nexport { l as require_toStyleObject };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_hasOwn as t } from \"./hasOwn.js\";\nimport { require_toStyleObject as n } from \"./toStyleObject.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleString.js\nvar r = /* @__PURE__ */ e(((e, r) => {\n\tvar i = n(), a = t();\n\tr.exports = function(e, t) {\n\t\te = i(e, t);\n\t\tvar n = [], r;\n\t\tfor (r in e) a(e, r) && n.push(r + \": \" + e[r]);\n\t\treturn n.join(\"; \");\n\t};\n}));\n//#endregion\nexport default r();\nexport { r as require_toStyleString };\n","import { __commonJSMin as e } from \"../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_prefixProperties as t } from \"./src/prefixProperties.js\";\nimport { require_cssUnitless as n } from \"./src/cssUnitless.js\";\nimport { require_toStyleObject as r } from \"./src/toStyleObject.js\";\nimport { require_toStyleString as i } from \"./src/toStyleString.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/index.js\nvar a = /* @__PURE__ */ e(((e, a) => {\n\ta.exports = {\n\t\tprefixProperties: t(),\n\t\tcssUnitless: n(),\n\t\tobject: r(),\n\t\tstring: i()\n\t};\n}));\n//#endregion\nexport default a();\nexport { a as require_to_style };\n","import { require_to_style as e } from \"./node_modules/.bun/to-style@1.3.3/node_modules/to-style/index.js\";\nimport t from \"debug\";\n//#region src/serialization.ts\nvar n = e(), r = t(\"@pie-lib:mask-markup:serialization\"), i = [\"span\"], a = [\n\t\"em\",\n\t\"strong\",\n\t\"u\"\n], o = 3, s = 8, c = 1, l = (e) => {\n\tif (!e.attributes || e.attributes.length <= 0) return;\n\tlet t = {}, n;\n\tfor (n = 0; n < e.attributes.length; n++) {\n\t\tlet r = e.attributes[n];\n\t\tt[r.name] = r.value;\n\t}\n\treturn t;\n}, u = (e) => i.includes(e) ? \"inline\" : a.includes(e) ? \"mark\" : \"block\", d = (e) => {\n\tlet t = /([\\w-]*)\\s*:\\s*([^;]*)/g, n, r = {};\n\tfor (; n = t.exec(e);) r[n[1]] = n[2].trim();\n\treturn r;\n}, f = (e) => (0, n.object)(e, {\n\tcamelize: !0,\n\taddUnits: !1\n}), p = (e, t) => f(d(e.getAttribute(t))), m = (e, t, n) => {\n\tlet r = e.getAttribute(n);\n\treturn delete t.class, r;\n}, h = (e) => (t, n) => {\n\tif (!e.getAttribute) return t;\n\tif (e.getAttribute(n)) switch (n) {\n\t\tcase \"style\":\n\t\t\tt.style = p(e, n);\n\t\t\tbreak;\n\t\tcase \"class\":\n\t\t\tt.className = m(e, t, n);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tt[n] = e.getAttribute(n);\n\t\t\tbreak;\n\t}\n\treturn t;\n}, g = [\n\t\"border\",\n\t\"class\",\n\t\"style\"\n], _ = {\n\tb: \"bold\",\n\tem: \"italic\",\n\tu: \"underline\",\n\ts: \"strikethrough\",\n\tcode: \"code\",\n\tstrong: \"strong\"\n}, v = (e, t = []) => {\n\tif (e.nodeType === s) return null;\n\tif (e.nodeType === o) {\n\t\tlet n = { text: e.textContent };\n\t\treturn t.length > 0 && (n.marks = t.map((e) => ({\n\t\t\ttype: e,\n\t\t\tdata: void 0\n\t\t}))), {\n\t\t\tobject: \"text\",\n\t\t\tleaves: [n]\n\t\t};\n\t}\n\tif (e.nodeType === c) {\n\t\tlet n = e.tagName.toLowerCase(), i = _[n];\n\t\tif (i) return r(\"[deserialize] mark: \", i), {\n\t\t\t_flatten: !0,\n\t\t\tnodes: y(e.childNodes, [...t, i])\n\t\t};\n\t\tif (n === \"math\") return {\n\t\t\tisMath: !0,\n\t\t\tnodes: [e]\n\t\t};\n\t\tlet a = l(e) || {};\n\t\tn === \"audio\" && a.controls === \"\" && (a.controls = !0);\n\t\tlet o = g.reduce(h(e), { ...a }), s = u(n), c = y(e.childNodes, t);\n\t\treturn {\n\t\t\tobject: s,\n\t\t\ttype: n,\n\t\t\tdata: {\n\t\t\t\tdataset: { ...e.dataset },\n\t\t\t\tattributes: { ...o }\n\t\t\t},\n\t\t\tnodes: c\n\t\t};\n\t}\n\treturn null;\n}, y = (e, t = []) => {\n\tlet n = [];\n\tfor (let r = 0; r < e.length; r++) {\n\t\tlet i = v(e[r], t);\n\t\ti !== null && (i._flatten && i.nodes ? n.push(...i.nodes) : n.push(i));\n\t}\n\treturn n;\n}, b = (e) => {\n\tif (!e || !e.trim()) return {\n\t\tobject: \"value\",\n\t\tdocument: {\n\t\t\tobject: \"document\",\n\t\t\tdata: {},\n\t\t\tnodes: [{\n\t\t\t\tobject: \"block\",\n\t\t\t\ttype: \"span\",\n\t\t\t\tdata: {},\n\t\t\t\tisVoid: !1,\n\t\t\t\tnodes: []\n\t\t\t}]\n\t\t}\n\t};\n\tlet t = y(new DOMParser().parseFromString(e, \"text/html\").body.childNodes);\n\treturn !t.some((e) => e.object === \"block\" || e.object === \"inline\") && t.length > 0 && (t = [{\n\t\tobject: \"block\",\n\t\ttype: \"span\",\n\t\tdata: {},\n\t\tisVoid: !1,\n\t\tnodes: t\n\t}]), t.length === 0 && (t = [{\n\t\tobject: \"block\",\n\t\ttype: \"span\",\n\t\tdata: {},\n\t\tisVoid: !1,\n\t\tnodes: []\n\t}]), {\n\t\tobject: \"value\",\n\t\tdocument: {\n\t\t\tobject: \"document\",\n\t\t\tdata: {},\n\t\t\tnodes: t\n\t\t}\n\t};\n};\n//#endregion\nexport { _ as MARK_TAGS, b as deserialize };\n","import { MARK_TAGS as e } from \"./serialization.js\";\nimport t from \"react\";\nimport n from \"prop-types\";\nimport { get as r } from \"lodash-es\";\nimport { styled as i } from \"@mui/material/styles\";\nimport { renderMath as a } from \"@pie-element/shared-math-rendering-mathjax\";\nimport { jsx as o } from \"react/jsx-runtime\";\n//#region src/mask.tsx\nvar s = i(\"div\")(({ theme: e }) => ({\n\tpaddingTop: e.spacing(.5),\n\tpaddingBottom: e.spacing(.5)\n})), c = i(\"span\")(() => ({\n\tdisplay: \"inline-block\",\n\twidth: \".75em\"\n})), l = [\"tbody\", \"tr\"], u = (e, t) => {\n\tlet n = t.trim() === \"\", r = e && e.type;\n\tif (!(n && l.includes(r))) return t;\n}, d = (e) => {\n\tlet t = e.leaves.find((e) => r(e, \"marks\", []).length);\n\treturn t ? t.marks[0] : null;\n}, f = (t, n, r, i, a, l) => {\n\tif (!n) return null;\n\tlet p = [];\n\treturn (t.nodes || []).forEach((t, m) => {\n\t\tlet h = t.type ? `${t.type}-${m}` : `${m}`;\n\t\tif (t.isMath) return p.push(/* @__PURE__ */ o(\"span\", { dangerouslySetInnerHTML: { __html: `<math displaystyle=\"true\">${t.nodes[0].innerHTML}</math>` } })), p;\n\t\tif (i) {\n\t\t\tlet e = i(t, n, r);\n\t\t\tif (e) {\n\t\t\t\tlet n = t.data?.dataset?.component === \"blank\";\n\t\t\t\tn && p.push(/* @__PURE__ */ o(c, {}, `spacer-${m}`)), p.push(e), n && p.push(/* @__PURE__ */ o(c, {}, `spacer-${m}`));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (t.object === \"text\") {\n\t\t\tlet n = t.leaves.reduce((e, t) => {\n\t\t\t\tlet n = t.text, r = u(a, n);\n\t\t\t\treturn r ? e + r : e;\n\t\t\t}, \"\"), r = d(t);\n\t\t\tif (r) {\n\t\t\t\tlet t;\n\t\t\t\tfor (t in e) if (e[t] === r.type) {\n\t\t\t\t\tlet e = t;\n\t\t\t\t\tp.push(/* @__PURE__ */ o(e, { children: n }, h));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else n.length > 0 && p.push(n);\n\t\t} else {\n\t\t\tlet e = f(t, n, r, i, t, l);\n\t\t\tif (t.type === \"p\" || t.type === \"paragraph\") p.push(/* @__PURE__ */ o(s, { children: e }, h));\n\t\t\telse {\n\t\t\t\tlet n = t.type;\n\t\t\t\tt.nodes && t.nodes.length > 0 ? p.push(/* @__PURE__ */ o(n, {\n\t\t\t\t\t...t.data.attributes,\n\t\t\t\t\tchildren: e\n\t\t\t\t}, h)) : p.push(/* @__PURE__ */ o(n, { ...t.data.attributes }, h));\n\t\t\t}\n\t\t}\n\t}), p;\n}, p = i(\"div\")(() => ({\n\tdisplay: \"initial\",\n\t\"&:not(.MathJax) table\": { borderCollapse: \"collapse\" },\n\t\"&:not(.MathJax) table td, &:not(.MathJax) table th\": {\n\t\tpadding: \"8px 12px\",\n\t\ttextAlign: \"left\"\n\t}\n})), m = class extends t.Component {\n\tconstructor(e) {\n\t\tsuper(e), this.internalContainerRef = t.createRef();\n\t}\n\tstatic propTypes = {\n\t\trenderChildren: n.func,\n\t\tlayout: n.object,\n\t\tvalue: n.object,\n\t\tonChange: n.func,\n\t\telementType: n.string,\n\t\tcontainerRef: n.oneOfType([n.func, n.shape({ current: n.instanceOf(Element) })])\n\t};\n\tcomponentDidMount() {\n\t\tlet e = this.props.containerRef || this.internalContainerRef;\n\t\te.current && typeof a == \"function\" && a(e.current);\n\t}\n\thandleChange = (e, t) => {\n\t\tlet n = {\n\t\t\t...this.props.value,\n\t\t\t[e]: t\n\t\t};\n\t\tthis.props.onChange(n);\n\t};\n\trender() {\n\t\tlet { value: e, layout: t, elementType: n, containerRef: r } = this.props, i = f(t, e, this.handleChange, this.props.renderChildren, null, n);\n\t\treturn /* @__PURE__ */ o(p, {\n\t\t\tref: r || this.internalContainerRef,\n\t\t\tchildren: i\n\t\t});\n\t}\n};\n//#endregion\nexport { m as default };\n","import { deserialize as e } from \"./serialization.js\";\nimport t from \"./mask.js\";\nimport n from \"./componentize.js\";\nimport r from \"react\";\nimport i from \"prop-types\";\nimport { jsx as a } from \"react/jsx-runtime\";\n//#region src/with-mask.tsx\nvar o = (t, r) => {\n\tlet { markup: i } = n(t, r);\n\treturn e(i).document;\n}, s = (e, n) => class extends r.Component {\n\tstatic propTypes = {\n\t\tmarkup: i.string,\n\t\tlayout: i.object,\n\t\tvalue: i.object,\n\t\tonChange: i.func,\n\t\tcustomMarkMarkupComponent: i.func,\n\t\telementType: i.string\n\t};\n\tconstructor(e) {\n\t\tsuper(e), this.containerRef = r.createRef();\n\t}\n\tcomponentDidUpdate(e) {\n\t\tif (this.props.markup !== e.markup) {\n\t\t\tlet e = this.containerRef.current;\n\t\t\t(e && e.querySelectorAll(\"[data-latex][data-math-handled=\\\"true\\\"]\") || []).forEach((e) => {\n\t\t\t\tlet t = e.querySelector(\"mjx-container\");\n\t\t\t\tt && e.removeChild(t), e.innerHTML = e.getAttribute(\"data-raw\"), e.removeAttribute(\"data-math-handled\");\n\t\t\t});\n\t\t}\n\t}\n\trender() {\n\t\tlet { markup: r, layout: i, value: s, onChange: c, elementType: l } = this.props, u = i || o(r, e);\n\t\treturn /* @__PURE__ */ a(t, {\n\t\t\tcontainerRef: this.containerRef,\n\t\t\telementType: l,\n\t\t\tlayout: u,\n\t\t\tvalue: s,\n\t\t\tonChange: c,\n\t\t\trenderChildren: n(this.props)\n\t\t});\n\t}\n};\n//#endregion\nexport { o as buildLayoutFromMarkup, s as withMask };\n","import { withMask as e } from \"./with-mask.js\";\nimport \"react\";\nimport { styled as t } from \"@mui/material/styles\";\nimport { jsx as n } from \"react/jsx-runtime\";\nimport { color as r } from \"@pie-lib/render-ui\";\nimport i from \"classnames\";\nimport a from \"@pie-lib/editable-html-tip-tap\";\n//#region src/constructed-response.tsx\nvar o = t(a)(() => ({\n\tdisplay: \"inline-block\",\n\tverticalAlign: \"middle\",\n\tmargin: \"4px\",\n\tborderRadius: \"4px\",\n\tborder: `1px solid ${r.black()}`,\n\t\"&.correct\": { border: `1px solid ${r.correct()}` },\n\t\"&.incorrect\": { border: `1px solid ${r.incorrect()}` }\n})), s = e(\"input\", (e) => (t, r) => {\n\tlet { adjustedLimit: a, disabled: s, feedback: c, showCorrectAnswer: l, maxLength: u, spellCheck: d, pluginProps: f, onChange: p } = e, m = t.data?.dataset || {};\n\tif (m.component === \"input\") {\n\t\tlet h = (e.choices && m && e.choices[m.id] || [])[0], g = l ? h && h.label : r[m.id] || \"\", _ = u && u[m.id], v = c && c[m.id], y = l || v === \"correct\", b = !l && v === \"incorrect\";\n\t\treturn /* @__PURE__ */ n(o, {\n\t\t\tid: m.id,\n\t\t\tdisabled: l || s,\n\t\t\tdisableUnderline: !0,\n\t\t\tonChange: (e) => {\n\t\t\t\tp({\n\t\t\t\t\t...r,\n\t\t\t\t\t[m.id]: e\n\t\t\t\t});\n\t\t\t},\n\t\t\tmarkup: g || \"\",\n\t\t\tcharactersLimit: a ? _ : 25,\n\t\t\tactivePlugins: [\"languageCharacters\"],\n\t\t\tpluginProps: f,\n\t\t\tlanguageCharactersProps: [{ language: \"spanish\" }],\n\t\t\tspellCheck: d,\n\t\t\tadjustWidthForLimit: !0,\n\t\t\tonKeyDown: (e) => {\n\t\t\t\tif (e.key === \"Enter\" || e.keyCode === 13) return !0;\n\t\t\t},\n\t\t\tautoWidthToolbar: !0,\n\t\t\ttoolbarOpts: {\n\t\t\t\tminWidth: \"auto\",\n\t\t\t\tnoBorder: !0,\n\t\t\t\tisHidden: !!f?.characters?.disabled\n\t\t\t},\n\t\t\tclassName: i({\n\t\t\t\tcorrect: y,\n\t\t\t\tincorrect: b\n\t\t\t})\n\t\t}, `${t.type}-input-${m.id}`);\n\t}\n});\n//#endregion\nexport { s as default };\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/explicit-constructed-response/src/main.jsx\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { isEmpty, isEqual, debounce } from 'lodash-es';\nimport CorrectAnswerToggle from '@pie-lib/correct-answer-toggle';\nimport { ConstructedResponse } from '@pie-lib/mask-markup';\nimport { color, Collapsible as CollapsibleImport, hasText, hasMedia, PreviewPrompt as PreviewPromptImport, UiLayout as UiLayoutImport } from '@pie-lib/render-ui';\n\nfunction isRenderableReactInteropType(value: any) {\n return (\n typeof value === 'function' ||\n (typeof value === 'object' && value !== null && typeof value.$$typeof === 'symbol')\n );\n}\n\nfunction unwrapReactInteropSymbol(maybeSymbol: any, namedExport?: string) {\n if (!maybeSymbol) return maybeSymbol;\n if (isRenderableReactInteropType(maybeSymbol)) return maybeSymbol;\n if (isRenderableReactInteropType(maybeSymbol.default)) return maybeSymbol.default;\n if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport])) {\n return maybeSymbol[namedExport];\n }\n if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport]?.default)) {\n return maybeSymbol[namedExport].default;\n }\n return maybeSymbol;\n}\nconst UiLayout = unwrapReactInteropSymbol(UiLayoutImport, 'UiLayout') || unwrapReactInteropSymbol(renderUi.UiLayout, 'UiLayout');\nconst PreviewPrompt = unwrapReactInteropSymbol(PreviewPromptImport, 'PreviewPrompt') || unwrapReactInteropSymbol(renderUi.PreviewPrompt, 'PreviewPrompt');\nconst Collapsible = unwrapReactInteropSymbol(CollapsibleImport, 'Collapsible') || unwrapReactInteropSymbol(renderUi.Collapsible, 'Collapsible');\nimport * as RenderUiNamespace from '@pie-lib/render-ui';\nconst renderUiNamespaceAny = RenderUiNamespace as any;\nconst renderUiDefaultMaybe = renderUiNamespaceAny['default'];\nconst renderUi =\n renderUiDefaultMaybe && typeof renderUiDefaultMaybe === 'object'\n ? renderUiDefaultMaybe\n : renderUiNamespaceAny;\nimport { styled } from '@mui/material/styles';\nimport Translator from '@pie-lib/translator';\n\nconst { translator } = Translator;\n\nconst MainContainer: any = styled(UiLayout)(({ alwaysShowCorrect }) => ({\n color: color.text(),\n backgroundColor: color.background(),\n ...(alwaysShowCorrect && {\n '& *': {\n borderColor: `${color.text()} !important`,\n },\n }),\n}));\n\nconst NoteContainer: any = styled('div')(({ theme }) => ({\n marginBottom: theme.spacing(2),\n}));\n\nconst CollapsibleContainer: any = styled('div')(({ theme }) => ({\n marginBottom: theme.spacing(2),\n}));\n\nconst SrOnly: any = styled('h2')({\n position: 'absolute',\n left: '-10000px',\n top: 'auto',\n width: '1px',\n height: '1px',\n overflow: 'hidden',\n});\n\nexport class Main extends React.Component {\n static propTypes = {\n alwaysShowCorrect: PropTypes.bool,\n animationsDisabled: PropTypes.bool,\n disabled: PropTypes.bool,\n displayType: PropTypes.string,\n feedback: PropTypes.object,\n language: PropTypes.string,\n markup: PropTypes.string,\n maxLengthPerChoice: PropTypes.array,\n maxLengthPerChoiceEnabled: PropTypes.bool,\n mode: PropTypes.string,\n note: PropTypes.string,\n onChange: PropTypes.func,\n playerSpellCheckEnabled: PropTypes.bool,\n prompt: PropTypes.string,\n rationale: PropTypes.string,\n role: PropTypes.string,\n showNote: PropTypes.bool,\n teacherInstructions: PropTypes.string,\n value: PropTypes.object,\n responseAreaInputConfiguration: PropTypes.object,\n model: PropTypes.object.isRequired,\n };\n\n static defaultProps = {\n value: {},\n };\n\n state = {\n showCorrectAnswer: this.props.alwaysShowCorrect || false,\n };\n\n // if for all responses max length is 1, call onChange for each keystroke\n getChangeSession = (maxLengthPerChoice) =>\n maxLengthPerChoice && maxLengthPerChoice.every((val, _i, arr) => val === arr[0] && val === 1)\n ? this.props.onChange\n : debounce(this.props.onChange, 200, { maxWait: 200 });\n\n UNSAFE_componentWillReceiveProps(nextProps) {\n const { maxLengthPerChoice, language } = this.props;\n let { note } = this.props;\n\n if (isEmpty(nextProps.feedback)) {\n this.setState({ showCorrectAnswer: false });\n }\n\n if (nextProps.alwaysShowCorrect) {\n this.setState({ showCorrectAnswer: true });\n }\n\n if (maxLengthPerChoice && !isEqual(maxLengthPerChoice, nextProps.maxLengthPerChoice)) {\n this.changeSession = this.getChangeSession(nextProps.maxLengthPerChoice);\n }\n\n // check if the note is the default one for prev language and change to the default one for new language\n // this check is necessary in order to diferanciate between default and authour defined note\n // and only change between languages for default ones\n if (\n note &&\n language &&\n language !== nextProps.language &&\n note === translator.t('common:commonCorrectAnswerWithAlternates', { lng: language })\n ) {\n note = translator.t('common:commonCorrectAnswerWithAlternates', { lng: nextProps.language });\n }\n }\n\n toggleShowCorrect: any = () => {\n this.setState({ showCorrectAnswer: !this.state.showCorrectAnswer });\n };\n\n changeSession = this.getChangeSession(this.props.maxLengthPerChoice);\n\n onChange: any = (value) => {\n this.changeSession(value);\n };\n\n render() {\n const { showCorrectAnswer } = this.state;\n const {\n alwaysShowCorrect,\n animationsDisabled,\n mode,\n displayType,\n role,\n language,\n maxLengthPerChoice,\n maxLengthPerChoiceEnabled,\n note,\n playerSpellCheckEnabled,\n prompt,\n rationale,\n showNote,\n teacherInstructions,\n responseAreaInputConfiguration,\n model,\n value,\n } = this.props;\n\n const { extraCSSRules } = model || {};\n const displayNote = (showCorrectAnswer || (mode === 'view' && role === 'instructor')) && showNote && note;\n\n const teacherInstructionsDiv = (\n <PreviewPrompt defaultClassName=\"teacher-instructions\" prompt={teacherInstructions} />\n );\n\n const rationaleDiv = <PreviewPrompt prompt={rationale} />;\n\n const showRationale = rationale && (hasText(rationale) || hasMedia(rationale));\n const showTeacherInstructions =\n teacherInstructions && (hasText(teacherInstructions) || hasMedia(teacherInstructions));\n\n return (\n <MainContainer\n extraCSSRules={extraCSSRules}\n alwaysShowCorrect={alwaysShowCorrect}\n style={{ display: `${displayType}` }}\n >\n {mode === 'gather' && <SrOnly>Fill in the Blank Question</SrOnly>}\n\n {showTeacherInstructions && (\n <CollapsibleContainer>\n {!animationsDisabled ? (\n <Collapsible labels={{ hidden: 'Show Teacher Instructions', visible: 'Hide Teacher Instructions' }}>\n {teacherInstructionsDiv}\n </Collapsible>\n ) : (\n teacherInstructionsDiv\n )}\n </CollapsibleContainer>\n )}\n\n {prompt && <PreviewPrompt prompt={prompt} />}\n\n {!alwaysShowCorrect && mode === 'evaluate' && (\n <CorrectAnswerToggle\n show\n toggled={showCorrectAnswer}\n onToggle={this.toggleShowCorrect}\n language={language}\n />\n )}\n\n <ConstructedResponse\n {...this.props}\n onChange={this.onChange}\n showCorrectAnswer={showCorrectAnswer}\n value={value}\n maxLength={maxLengthPerChoice}\n adjustedLimit={maxLengthPerChoiceEnabled}\n spellCheck={playerSpellCheckEnabled}\n pluginProps={responseAreaInputConfiguration}\n />\n\n {displayNote && <NoteContainer dangerouslySetInnerHTML={{ __html: note }} />}\n\n {showRationale && (\n <CollapsibleContainer>\n {!animationsDisabled ? (\n <Collapsible labels={{ hidden: 'Show Rationale', visible: 'Hide Rationale' }}>{rationaleDiv}</Collapsible>\n ) : (\n rationaleDiv\n )}\n </CollapsibleContainer>\n )}\n </MainContainer>\n );\n }\n}\n\nexport default Main;\n"],"x_google_ignoreList":[5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21],"mappings":";;;;;;mCAMI,IAAI,+CAA+C,IAAI,EAAE,KAAK,SAAS;CAC1E,UAAU;CACV,QAAQ;CACR,UAAU;CACV,SAAS;CACT,YAAY;CACZ,OAAO;CACP,WAAW;EACV,YAAY;EACZ,SAAS;EACT,QAAQ;EACR,OAAO;EACP,YAAY;EACZ,WAAW;CACZ;CACA,gBAAgB;EACf,QAAQ;EACR,YAAY;EACZ,OAAO;EACP,WAAW;CACZ;CACA,UAAU;EACT,YAAY;EACZ,SAAS;EACT,QAAQ;EACR,YAAY;EACZ,OAAO;CACR;CACA,eAAe;EACd,SAAS;EACT,YAAY;EACZ,QAAQ;EACR,OAAO;CACR;AACD,EAAE,GAAG,KAAK,MAAM;CACf,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,MAAM,GAAG,IAAI,EAAE,IAAI;CAC1D,OAAuB,kBAAE,GAAG;EAC3B,SAAS;EACT,IAAI;EACJ,QAAQ,CAAC;EACT,cAAc,CAAC;EACf,SAAS;EACT,YAAY;GACX,OAAO;GACP,WAAW;GACX,MAAM;GACN,UAAU;EACX;EACA,UAA0B,kBAAE,GAAG;GAC9B,KAAK;GACL,WAAW;GACX,UAAU;EACX,CAAC;CACF,CAAC;AACF;AACA,EAAE,YAAY;CACb,MAAM,EAAA,QAAE,KAAK;CACb,WAAW,EAAA,QAAE;CACb,UAAU,EAAA,QAAE,UAAU,CAAC,EAAA,QAAE,QAAQ,EAAA,QAAE,IAAI,GAAG,EAAA,QAAE,IAAI,CAAC,EAAE;AACpD;;;AC5DA,IAAI,MAAK,EAAE,QAAQ,GAAG,QAAQ,QAAwB,kBAAE,OAAO;CAC9D,qBAAqB;CACrB,SAAS;CACT,SAAS;CACT,OAAO,EAAE,kBAAkB,qBAAqB;CAChD,UAAU;EAC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t } from "../browser-DbR93LB7.js";
|
|
2
|
+
import { ot as n, pt as r } from "../dist-DnL6t4VO.js";
|
|
3
|
+
import { t as i } from "../main-V_e6PRBN.js";
|
|
4
|
+
import a from "react";
|
|
5
|
+
import { createRoot as o } from "react-dom/client";
|
|
6
|
+
var s = (0, (/* @__PURE__ */ e(t(), 1)).default)("pie-element:explicit-constructed-response:print"), c = (e, t) => {
|
|
7
|
+
let n = t.role === "instructor";
|
|
8
|
+
return e.prompt = e.promptEnabled === !1 ? void 0 : e.prompt, e.teacherInstructions = n && e.teacherInstructionsEnabled !== !1 ? e.teacherInstructions : void 0, e.rationale = n && e.rationaleEnabled !== !1 ? e.rationale : void 0, e.alwaysShowCorrect = n, e.mode = n ? "evaluate" : e.mode, e.disabled = !0, e.animationsDisabled = !0, e;
|
|
9
|
+
}, l = class extends HTMLElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(), this._options = null, this._model = null, this._session = [], this._root = null, this._rerender = n(() => {
|
|
12
|
+
if (this._model && this._session) {
|
|
13
|
+
let e = c(this._model, this._options), t = this._options && a.createElement(i, {
|
|
14
|
+
...e,
|
|
15
|
+
onChange: () => {}
|
|
16
|
+
});
|
|
17
|
+
this._root ||= o(this), this._root.render(t), queueMicrotask(() => {
|
|
18
|
+
s("render complete - render math"), r(this);
|
|
19
|
+
});
|
|
20
|
+
} else s("skip");
|
|
21
|
+
}, 50, {
|
|
22
|
+
leading: !1,
|
|
23
|
+
trailing: !0
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
set options(e) {
|
|
27
|
+
this._options = e;
|
|
28
|
+
}
|
|
29
|
+
set model(e) {
|
|
30
|
+
this._model = e, this._rerender();
|
|
31
|
+
}
|
|
32
|
+
connectedCallback() {}
|
|
33
|
+
disconnectedCallback() {
|
|
34
|
+
this._root && this._root.unmount();
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { l as default };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/print/index.tsx"],"sourcesContent":["// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/explicit-constructed-response/src/print.js\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport { debounce } from 'lodash-es';\nimport Main from '../delivery/main.js';\nimport { renderMath } from '@pie-element/shared-math-rendering-mathjax';\nimport debug from 'debug';\n\nconst log = debug('pie-element:explicit-constructed-response:print');\n\nconst preparePrintModel = (model, opts) => {\n const isInstructor = opts.role === 'instructor';\n\n model.prompt = model.promptEnabled !== false ? model.prompt : undefined;\n model.teacherInstructions =\n isInstructor && model.teacherInstructionsEnabled !== false ? model.teacherInstructions : undefined;\n model.rationale = isInstructor && model.rationaleEnabled !== false ? model.rationale : undefined;\n model.alwaysShowCorrect = isInstructor;\n model.mode = isInstructor ? 'evaluate' : model.mode;\n model.disabled = true;\n model.animationsDisabled = true;\n\n return model;\n};\n\nexport default class ExplicitConstructedResponsePrint extends HTMLElement {\n constructor() {\n super();\n this._options = null;\n this._model = null;\n this._session = [];\n this._root = null;\n\n this._rerender = debounce(\n () => {\n if (this._model && this._session) {\n const printModel = preparePrintModel(this._model, this._options);\n\n const element =\n this._options &&\n React.createElement(Main, {\n ...printModel,\n onChange: () => {},\n });\n\n if (!this._root) {\n this._root = createRoot(this);\n }\n this._root.render(element);\n queueMicrotask(() => {\n log('render complete - render math');\n renderMath(this);\n });\n } else {\n log('skip');\n }\n },\n 50,\n { leading: false, trailing: true },\n );\n }\n\n set options(o) {\n this._options = o;\n }\n\n set model(s) {\n this._model = s;\n this._rerender();\n }\n\n connectedCallback() {}\n\n disconnectedCallback() {\n if (this._root) {\n this._root.unmount();\n }\n }\n}\n"],"mappings":";;;;;AAiB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r, P as i, R as a, _ as o, b as s, f as c, g as l, h as u, i as d, k as f, m as p, r as m, y as h, z as g } from "./browser-DbR93LB7.js";
|
|
2
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayReduce.js
|
|
3
|
+
function _(e, t, n, r) {
|
|
4
|
+
var i = -1, a = e == null ? 0 : e.length;
|
|
5
|
+
for (r && a && (n = e[++i]); ++i < a;) n = t(n, e[i], i, e);
|
|
6
|
+
return n;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js
|
|
10
|
+
var v = 1, y = 2;
|
|
11
|
+
function b(e, t, n, r) {
|
|
12
|
+
var i = n.length, a = i, o = !r;
|
|
13
|
+
if (e == null) return !a;
|
|
14
|
+
for (e = Object(e); i--;) {
|
|
15
|
+
var s = n[i];
|
|
16
|
+
if (o && s[2] ? s[1] !== e[s[0]] : !(s[0] in e)) return !1;
|
|
17
|
+
}
|
|
18
|
+
for (; ++i < a;) {
|
|
19
|
+
s = n[i];
|
|
20
|
+
var l = s[0], u = e[l], f = s[1];
|
|
21
|
+
if (o && s[2]) {
|
|
22
|
+
if (u === void 0 && !(l in e)) return !1;
|
|
23
|
+
} else {
|
|
24
|
+
var p = new c();
|
|
25
|
+
if (r) var m = r(u, f, l, e, t, p);
|
|
26
|
+
if (!(m === void 0 ? d(f, u, v | y, r, p) : m)) return !1;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return !0;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js
|
|
33
|
+
function x(e) {
|
|
34
|
+
return e === e && !n(e);
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js
|
|
38
|
+
function S(e) {
|
|
39
|
+
for (var t = s(e), n = t.length; n--;) {
|
|
40
|
+
var r = t[n], i = e[r];
|
|
41
|
+
t[n] = [
|
|
42
|
+
r,
|
|
43
|
+
i,
|
|
44
|
+
x(i)
|
|
45
|
+
];
|
|
46
|
+
}
|
|
47
|
+
return t;
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js
|
|
51
|
+
function C(e, t) {
|
|
52
|
+
return function(n) {
|
|
53
|
+
return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n));
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js
|
|
58
|
+
function w(e) {
|
|
59
|
+
var t = S(e);
|
|
60
|
+
return t.length == 1 && t[0][2] ? C(t[0][0], t[0][1]) : function(n) {
|
|
61
|
+
return n === e || b(n, e, t);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js
|
|
66
|
+
function T(e, t) {
|
|
67
|
+
return e != null && t in Object(e);
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js
|
|
71
|
+
function E(n, i, s) {
|
|
72
|
+
i = o(i, n);
|
|
73
|
+
for (var c = -1, u = i.length, d = !1; ++c < u;) {
|
|
74
|
+
var f = l(i[c]);
|
|
75
|
+
if (!(d = n != null && s(n, f))) break;
|
|
76
|
+
n = n[f];
|
|
77
|
+
}
|
|
78
|
+
return d || ++c != u ? d : (u = n == null ? 0 : n.length, !!u && e(u) && r(f, u) && (a(n) || t(n)));
|
|
79
|
+
}
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js
|
|
82
|
+
function D(e, t) {
|
|
83
|
+
return e != null && E(e, t, T);
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js
|
|
87
|
+
var O = 1, k = 2;
|
|
88
|
+
function A(e, t) {
|
|
89
|
+
return h(e) && x(t) ? C(l(e), t) : function(n) {
|
|
90
|
+
var r = p(n, e);
|
|
91
|
+
return r === void 0 && r === t ? D(n, e) : d(t, r, O | k);
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js
|
|
96
|
+
function j(e) {
|
|
97
|
+
return function(t) {
|
|
98
|
+
return u(t, e);
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js
|
|
103
|
+
function M(e) {
|
|
104
|
+
return h(e) ? m(l(e)) : j(e);
|
|
105
|
+
}
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js
|
|
108
|
+
function N(e) {
|
|
109
|
+
return typeof e == "function" ? e : e == null ? i : typeof e == "object" ? a(e) ? A(e[0], e[1]) : w(e) : M(e);
|
|
110
|
+
}
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js
|
|
113
|
+
function P(e) {
|
|
114
|
+
return function(t, n, r) {
|
|
115
|
+
for (var i = -1, a = Object(t), o = r(t), s = o.length; s--;) {
|
|
116
|
+
var c = o[e ? s : ++i];
|
|
117
|
+
if (n(a[c], c, a) === !1) break;
|
|
118
|
+
}
|
|
119
|
+
return t;
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
//#endregion
|
|
123
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js
|
|
124
|
+
var F = P();
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseForOwn.js
|
|
127
|
+
function I(e, t) {
|
|
128
|
+
return e && F(e, t, s);
|
|
129
|
+
}
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseEach.js
|
|
132
|
+
function L(e, t) {
|
|
133
|
+
return function(n, r) {
|
|
134
|
+
if (n == null) return n;
|
|
135
|
+
if (!f(n)) return e(n, r);
|
|
136
|
+
for (var i = n.length, a = t ? i : -1, o = Object(n); (t ? a-- : ++a < i) && r(o[a], a, o) !== !1;);
|
|
137
|
+
return n;
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
//#endregion
|
|
141
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseEach.js
|
|
142
|
+
var R = L(I);
|
|
143
|
+
//#endregion
|
|
144
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMap.js
|
|
145
|
+
function z(e, t) {
|
|
146
|
+
var n = -1, r = f(e) ? Array(e.length) : [];
|
|
147
|
+
return R(e, function(e, i, a) {
|
|
148
|
+
r[++n] = t(e, i, a);
|
|
149
|
+
}), r;
|
|
150
|
+
}
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/map.js
|
|
153
|
+
function B(e, t) {
|
|
154
|
+
return (a(e) ? g : z)(e, N(t, 3));
|
|
155
|
+
}
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseReduce.js
|
|
158
|
+
function V(e, t, n, r, i) {
|
|
159
|
+
return i(e, function(e, i, a) {
|
|
160
|
+
n = r ? (r = !1, e) : t(n, e, i, a);
|
|
161
|
+
}), n;
|
|
162
|
+
}
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/reduce.js
|
|
165
|
+
function H(e, t, n) {
|
|
166
|
+
var r = a(e) ? _ : V, i = arguments.length < 3;
|
|
167
|
+
return r(e, N(t, 4), n, i, R);
|
|
168
|
+
}
|
|
169
|
+
//#endregion
|
|
170
|
+
export { D as i, B as n, N as r, H as t };
|
|
171
|
+
|
|
172
|
+
//# sourceMappingURL=reduce-Bqz7DMQ0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reduce-Bqz7DMQ0.js","names":["COMPARE_PARTIAL_FLAG","COMPARE_UNORDERED_FLAG"],"sources":["../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayReduce.js","../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js","../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js","../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js","../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js","../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js","../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js","../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js","../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js","../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js","../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js","../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js","../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js","../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js","../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js","../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseForOwn.js","../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseEach.js","../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseEach.js","../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMap.js","../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/map.js","../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseReduce.js","../../../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/reduce.js"],"sourcesContent":["/**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\nfunction arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n}\n\nexport default arrayReduce;\n","import Stack from './_Stack.js';\nimport baseIsEqual from './_baseIsEqual.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n}\n\nexport default baseIsMatch;\n","import isObject from './isObject.js';\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\n\nexport default isStrictComparable;\n","import isStrictComparable from './_isStrictComparable.js';\nimport keys from './keys.js';\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n}\n\nexport default getMatchData;\n","/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n}\n\nexport default matchesStrictComparable;\n","import baseIsMatch from './_baseIsMatch.js';\nimport getMatchData from './_getMatchData.js';\nimport matchesStrictComparable from './_matchesStrictComparable.js';\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n}\n\nexport default baseMatches;\n","/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n return object != null && key in Object(object);\n}\n\nexport default baseHasIn;\n","import castPath from './_castPath.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\nimport isIndex from './_isIndex.js';\nimport isLength from './isLength.js';\nimport toKey from './_toKey.js';\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n}\n\nexport default hasPath;\n","import baseHasIn from './_baseHasIn.js';\nimport hasPath from './_hasPath.js';\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n}\n\nexport default hasIn;\n","import baseIsEqual from './_baseIsEqual.js';\nimport get from './get.js';\nimport hasIn from './hasIn.js';\nimport isKey from './_isKey.js';\nimport isStrictComparable from './_isStrictComparable.js';\nimport matchesStrictComparable from './_matchesStrictComparable.js';\nimport toKey from './_toKey.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n}\n\nexport default baseMatchesProperty;\n","import baseGet from './_baseGet.js';\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n}\n\nexport default basePropertyDeep;\n","import baseProperty from './_baseProperty.js';\nimport basePropertyDeep from './_basePropertyDeep.js';\nimport isKey from './_isKey.js';\nimport toKey from './_toKey.js';\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nexport default property;\n","import baseMatches from './_baseMatches.js';\nimport baseMatchesProperty from './_baseMatchesProperty.js';\nimport identity from './identity.js';\nimport isArray from './isArray.js';\nimport property from './property.js';\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n}\n\nexport default baseIteratee;\n","/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\nexport default createBaseFor;\n","import createBaseFor from './_createBaseFor.js';\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nexport default baseFor;\n","import baseFor from './_baseFor.js';\nimport keys from './keys.js';\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\nexport default baseForOwn;\n","import isArrayLike from './isArrayLike.js';\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nexport default createBaseEach;\n","import baseForOwn from './_baseForOwn.js';\nimport createBaseEach from './_createBaseEach.js';\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nexport default baseEach;\n","import baseEach from './_baseEach.js';\nimport isArrayLike from './isArrayLike.js';\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n}\n\nexport default baseMap;\n","import arrayMap from './_arrayMap.js';\nimport baseIteratee from './_baseIteratee.js';\nimport baseMap from './_baseMap.js';\nimport isArray from './isArray.js';\n\n/**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\nfunction map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, baseIteratee(iteratee, 3));\n}\n\nexport default map;\n","/**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\nfunction baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n}\n\nexport default baseReduce;\n","import arrayReduce from './_arrayReduce.js';\nimport baseEach from './_baseEach.js';\nimport baseIteratee from './_baseIteratee.js';\nimport baseReduce from './_baseReduce.js';\nimport isArray from './isArray.js';\n\n/**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\nfunction reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n}\n\nexport default reduce;\n"],"x_google_igno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IAAY,IAAS,IAC7B,IAAW,OAAO,CAAU,IAExB,IAAY,MAAU,EAAE,IAAQ,MAClC,EAAS,EAAS,IAAQ,GAAO,CAAQ,MAAM;EAIrD,OAAO;CACT;AACF;;;AClBA,IAAI,IAAW,EAAe,CAAU;;;ACAxC,SAAS,EAAQ,GAAY,GAAU;CACrC,IAAI,IAAQ,IACR,IAAS,EAAY,CAAU,IAAI,MAAM,EAAW,MAAM,IAAI,CAAC;CAKnE,OAHA,EAAS,GAAY,SAAS,GAAO,GAAK,GAAY;EACpD,EAAO,EAAE,KAAS,EAAS,GAAO,GAAK,CAAU;CACnD,CAAC,GACM;AACT;;;AC4BA,SAAS,EAAI,GAAY,GAAU;CAEjC,QADW,EAAQ,CAAU,IAAI,IAAW,GAChC,GAAY,EAAa,GAAU,CAAC,CAAC;AACnD;;;ACrCA,SAAS,EAAW,GAAY,GAAU,GAAa,GAAW,GAAU;CAM1E,OALA,EAAS,GAAY,SAAS,GAAO,GAAO,GAAY;EACtD,IAAc,KACT,IAAY,IAAO,KACpB,EAAS,GAAa,GAAO,GAAO,CAAU;CACpD,CAAC,GACM;AACT;;;ACuBA,SAAS,EAAO,GAAY,GAAU,GAAa;CACjD,IAAI,IAAO,EAAQ,CAAU,IAAI,IAAc,GAC3C,IAAY,UAAU,SAAS;CAEnC,OAAO,EAAK,GAAY,EAAa,GAAU,CAAC,GAAG,GAAa,GAAW,CAAQ;AACrF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/explicit-constructed-response/controller/src/defaults.js
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
declare const _default: {
|
|
10
|
+
choices: {};
|
|
11
|
+
displayType: string;
|
|
12
|
+
markup: string;
|
|
13
|
+
maxLengthPerChoiceEnabled: boolean;
|
|
14
|
+
playerSpellCheckEnabled: boolean;
|
|
15
|
+
prompt: string;
|
|
16
|
+
promptEnabled: boolean;
|
|
17
|
+
rationale: string;
|
|
18
|
+
rationaleEnabled: boolean;
|
|
19
|
+
spellCheckEnabled: boolean;
|
|
20
|
+
studentInstructionsEnabled: boolean;
|
|
21
|
+
teacherInstructions: string;
|
|
22
|
+
teacherInstructionsEnabled: boolean;
|
|
23
|
+
toolbarEditorPosition: string;
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/controller/defaults.ts
|
|
2
|
+
var e = {
|
|
3
|
+
choices: {},
|
|
4
|
+
displayType: "block",
|
|
5
|
+
markup: "",
|
|
6
|
+
maxLengthPerChoiceEnabled: !0,
|
|
7
|
+
playerSpellCheckEnabled: !0,
|
|
8
|
+
prompt: "",
|
|
9
|
+
promptEnabled: !0,
|
|
10
|
+
rationale: "",
|
|
11
|
+
rationaleEnabled: !0,
|
|
12
|
+
spellCheckEnabled: !0,
|
|
13
|
+
studentInstructionsEnabled: !0,
|
|
14
|
+
teacherInstructions: "",
|
|
15
|
+
teacherInstructionsEnabled: !0,
|
|
16
|
+
toolbarEditorPosition: "bottom"
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { e as default };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @synced-from pie-elements/packages/explicit-constructed-response/controller/src/index.js
|
|
3
|
+
* @auto-generated
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
+
* Manual edits will be overwritten on next sync.
|
|
7
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
+
*/
|
|
9
|
+
export declare const prepareChoice: (mode: any, defaultFeedback: any) => (choice: any) => {
|
|
10
|
+
label: any;
|
|
11
|
+
value: any;
|
|
12
|
+
};
|
|
13
|
+
export declare const normalize: (question: any) => any;
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @param {*} question
|
|
17
|
+
* @param {*} session
|
|
18
|
+
* @param {*} env
|
|
19
|
+
*/
|
|
20
|
+
export declare function model(question: any, session: any, env: any): Promise<{
|
|
21
|
+
choices: any;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
displayType: any;
|
|
24
|
+
mode: any;
|
|
25
|
+
role: any;
|
|
26
|
+
feedback: any;
|
|
27
|
+
language: any;
|
|
28
|
+
markup: any;
|
|
29
|
+
maxLengthPerChoice: any;
|
|
30
|
+
maxLengthPerChoiceEnabled: any;
|
|
31
|
+
note: any;
|
|
32
|
+
playerSpellCheckEnabled: any;
|
|
33
|
+
prompt: any;
|
|
34
|
+
rationale: string;
|
|
35
|
+
responseCorrect: boolean | undefined;
|
|
36
|
+
showNote: boolean;
|
|
37
|
+
teacherInstructions: string;
|
|
38
|
+
responseAreaInputConfiguration: any;
|
|
39
|
+
extraCSSRules: any;
|
|
40
|
+
}>;
|
|
41
|
+
export declare const prepareVal: (html: any) => any;
|
|
42
|
+
export declare const getScore: (config: any, session: any) => number;
|
|
43
|
+
/**
|
|
44
|
+
* Generates detailed trace log for scoring evaluation
|
|
45
|
+
* @param {Object} model - the question model
|
|
46
|
+
* @param {Object} session - the student session
|
|
47
|
+
* @param {Object} env - the environment
|
|
48
|
+
* @returns {Array} traceLog - array of trace messages
|
|
49
|
+
*/
|
|
50
|
+
export declare const getLogTrace: (model: any, session: any, env: any) => string[];
|
|
51
|
+
/**
|
|
52
|
+
* The score is partial by default for checkbox mode, allOrNothing for radio mode.
|
|
53
|
+
* To disable partial scoring for checkbox mode you either set model.partialScoring = false or env.partialScoring =
|
|
54
|
+
* false. the value in `env` will override the value in `model`.
|
|
55
|
+
* @param {Object} model - the main model
|
|
56
|
+
* @param {boolean} model.partialScoring - is partial scoring enabled (if undefined set to to true)
|
|
57
|
+
* @param {*} session
|
|
58
|
+
* @param {Object} env
|
|
59
|
+
* @param {boolean} env.partialScoring - is partial scoring enabled (if undefined default to true) This overrides
|
|
60
|
+
* `model.partialScoring`.
|
|
61
|
+
*/
|
|
62
|
+
export declare function outcome(model: any, session: any, env?: {}): Promise<unknown>;
|
|
63
|
+
export declare const createCorrectResponseSession: (question: any, env: any) => Promise<unknown>;
|
|
64
|
+
export declare const validate: (model?: {}, config?: {}) => {};
|