@adminforth/rich-editor 1.0.17 → 1.0.18
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/ChangeLog.md +6 -0
- package/custom/node_modules/.package-lock.json +66 -0
- package/custom/node_modules/eventemitter3/LICENSE +21 -0
- package/custom/node_modules/eventemitter3/README.md +94 -0
- package/custom/node_modules/eventemitter3/dist/eventemitter3.esm.js +347 -0
- package/custom/node_modules/eventemitter3/dist/eventemitter3.esm.min.js +1 -0
- package/custom/node_modules/eventemitter3/dist/eventemitter3.esm.min.js.map +1 -0
- package/custom/node_modules/eventemitter3/dist/eventemitter3.umd.js +355 -0
- package/custom/node_modules/eventemitter3/dist/eventemitter3.umd.min.js +1 -0
- package/custom/node_modules/eventemitter3/dist/eventemitter3.umd.min.js.map +1 -0
- package/custom/node_modules/eventemitter3/index.d.ts +135 -0
- package/custom/node_modules/eventemitter3/index.js +336 -0
- package/custom/node_modules/eventemitter3/index.mjs +4 -0
- package/custom/node_modules/eventemitter3/package.json +67 -0
- package/custom/node_modules/fast-diff/LICENSE +201 -0
- package/custom/node_modules/fast-diff/README.md +24 -0
- package/custom/node_modules/fast-diff/diff.d.ts +21 -0
- package/custom/node_modules/fast-diff/diff.js +1138 -0
- package/custom/node_modules/fast-diff/package.json +30 -0
- package/custom/node_modules/lodash-es/LICENSE +47 -0
- package/custom/node_modules/lodash-es/README.md +10 -0
- package/custom/node_modules/lodash-es/_DataView.js +7 -0
- package/custom/node_modules/lodash-es/_Hash.js +32 -0
- package/custom/node_modules/lodash-es/_LazyWrapper.js +28 -0
- package/custom/node_modules/lodash-es/_ListCache.js +32 -0
- package/custom/node_modules/lodash-es/_LodashWrapper.js +22 -0
- package/custom/node_modules/lodash-es/_Map.js +7 -0
- package/custom/node_modules/lodash-es/_MapCache.js +32 -0
- package/custom/node_modules/lodash-es/_Promise.js +7 -0
- package/custom/node_modules/lodash-es/_Set.js +7 -0
- package/custom/node_modules/lodash-es/_SetCache.js +27 -0
- package/custom/node_modules/lodash-es/_Stack.js +27 -0
- package/custom/node_modules/lodash-es/_Symbol.js +6 -0
- package/custom/node_modules/lodash-es/_Uint8Array.js +6 -0
- package/custom/node_modules/lodash-es/_WeakMap.js +7 -0
- package/custom/node_modules/lodash-es/_addMapEntry.js +15 -0
- package/custom/node_modules/lodash-es/_addSetEntry.js +15 -0
- package/custom/node_modules/lodash-es/_apply.js +21 -0
- package/custom/node_modules/lodash-es/_arrayAggregator.js +22 -0
- package/custom/node_modules/lodash-es/_arrayEach.js +22 -0
- package/custom/node_modules/lodash-es/_arrayEachRight.js +21 -0
- package/custom/node_modules/lodash-es/_arrayEvery.js +23 -0
- package/custom/node_modules/lodash-es/_arrayFilter.js +25 -0
- package/custom/node_modules/lodash-es/_arrayIncludes.js +17 -0
- package/custom/node_modules/lodash-es/_arrayIncludesWith.js +22 -0
- package/custom/node_modules/lodash-es/_arrayLikeKeys.js +49 -0
- package/custom/node_modules/lodash-es/_arrayMap.js +21 -0
- package/custom/node_modules/lodash-es/_arrayPush.js +20 -0
- package/custom/node_modules/lodash-es/_arrayReduce.js +26 -0
- package/custom/node_modules/lodash-es/_arrayReduceRight.js +24 -0
- package/custom/node_modules/lodash-es/_arraySample.js +15 -0
- package/custom/node_modules/lodash-es/_arraySampleSize.js +17 -0
- package/custom/node_modules/lodash-es/_arrayShuffle.js +15 -0
- package/custom/node_modules/lodash-es/_arraySome.js +23 -0
- package/custom/node_modules/lodash-es/_asciiSize.js +12 -0
- package/custom/node_modules/lodash-es/_asciiToArray.js +12 -0
- package/custom/node_modules/lodash-es/_asciiWords.js +15 -0
- package/custom/node_modules/lodash-es/_assignMergeValue.js +20 -0
- package/custom/node_modules/lodash-es/_assignValue.js +28 -0
- package/custom/node_modules/lodash-es/_assocIndexOf.js +21 -0
- package/custom/node_modules/lodash-es/_baseAggregator.js +21 -0
- package/custom/node_modules/lodash-es/_baseAssign.js +17 -0
- package/custom/node_modules/lodash-es/_baseAssignIn.js +17 -0
- package/custom/node_modules/lodash-es/_baseAssignValue.js +25 -0
- package/custom/node_modules/lodash-es/_baseAt.js +23 -0
- package/custom/node_modules/lodash-es/_baseClamp.js +22 -0
- package/custom/node_modules/lodash-es/_baseClone.js +166 -0
- package/custom/node_modules/lodash-es/_baseConforms.js +18 -0
- package/custom/node_modules/lodash-es/_baseConformsTo.js +27 -0
- package/custom/node_modules/lodash-es/_baseCreate.js +30 -0
- package/custom/node_modules/lodash-es/_baseDelay.js +21 -0
- package/custom/node_modules/lodash-es/_baseDifference.js +67 -0
- package/custom/node_modules/lodash-es/_baseEach.js +14 -0
- package/custom/node_modules/lodash-es/_baseEachRight.js +14 -0
- package/custom/node_modules/lodash-es/_baseEvery.js +21 -0
- package/custom/node_modules/lodash-es/_baseExtremum.js +32 -0
- package/custom/node_modules/lodash-es/_baseFill.js +32 -0
- package/custom/node_modules/lodash-es/_baseFilter.js +21 -0
- package/custom/node_modules/lodash-es/_baseFindIndex.js +24 -0
- package/custom/node_modules/lodash-es/_baseFindKey.js +23 -0
- package/custom/node_modules/lodash-es/_baseFlatten.js +38 -0
- package/custom/node_modules/lodash-es/_baseFor.js +16 -0
- package/custom/node_modules/lodash-es/_baseForOwn.js +16 -0
- package/custom/node_modules/lodash-es/_baseForOwnRight.js +16 -0
- package/custom/node_modules/lodash-es/_baseForRight.js +15 -0
- package/custom/node_modules/lodash-es/_baseFunctions.js +19 -0
- package/custom/node_modules/lodash-es/_baseGet.js +24 -0
- package/custom/node_modules/lodash-es/_baseGetAllKeys.js +20 -0
- package/custom/node_modules/lodash-es/_baseGetTag.js +28 -0
- package/custom/node_modules/lodash-es/_baseGt.js +14 -0
- package/custom/node_modules/lodash-es/_baseHas.js +19 -0
- package/custom/node_modules/lodash-es/_baseHasIn.js +13 -0
- package/custom/node_modules/lodash-es/_baseInRange.js +18 -0
- package/custom/node_modules/lodash-es/_baseIndexOf.js +20 -0
- package/custom/node_modules/lodash-es/_baseIndexOfWith.js +23 -0
- package/custom/node_modules/lodash-es/_baseIntersection.js +74 -0
- package/custom/node_modules/lodash-es/_baseInverter.js +21 -0
- package/custom/node_modules/lodash-es/_baseInvoke.js +24 -0
- package/custom/node_modules/lodash-es/_baseIsArguments.js +18 -0
- package/custom/node_modules/lodash-es/_baseIsArrayBuffer.js +17 -0
- package/custom/node_modules/lodash-es/_baseIsDate.js +18 -0
- package/custom/node_modules/lodash-es/_baseIsEqual.js +28 -0
- package/custom/node_modules/lodash-es/_baseIsEqualDeep.js +83 -0
- package/custom/node_modules/lodash-es/_baseIsMap.js +18 -0
- package/custom/node_modules/lodash-es/_baseIsMatch.js +62 -0
- package/custom/node_modules/lodash-es/_baseIsNaN.js +12 -0
- package/custom/node_modules/lodash-es/_baseIsNative.js +47 -0
- package/custom/node_modules/lodash-es/_baseIsRegExp.js +18 -0
- package/custom/node_modules/lodash-es/_baseIsSet.js +18 -0
- package/custom/node_modules/lodash-es/_baseIsTypedArray.js +60 -0
- package/custom/node_modules/lodash-es/_baseIteratee.js +31 -0
- package/custom/node_modules/lodash-es/_baseKeys.js +30 -0
- package/custom/node_modules/lodash-es/_baseKeysIn.js +33 -0
- package/custom/node_modules/lodash-es/_baseLodash.js +10 -0
- package/custom/node_modules/lodash-es/_baseLt.js +14 -0
- package/custom/node_modules/lodash-es/_baseMap.js +22 -0
- package/custom/node_modules/lodash-es/_baseMatches.js +22 -0
- package/custom/node_modules/lodash-es/_baseMatchesProperty.js +33 -0
- package/custom/node_modules/lodash-es/_baseMean.js +20 -0
- package/custom/node_modules/lodash-es/_baseMerge.js +42 -0
- package/custom/node_modules/lodash-es/_baseMergeDeep.js +94 -0
- package/custom/node_modules/lodash-es/_baseNth.js +20 -0
- package/custom/node_modules/lodash-es/_baseOrderBy.js +49 -0
- package/custom/node_modules/lodash-es/_basePick.js +19 -0
- package/custom/node_modules/lodash-es/_basePickBy.js +30 -0
- package/custom/node_modules/lodash-es/_baseProperty.js +14 -0
- package/custom/node_modules/lodash-es/_basePropertyDeep.js +16 -0
- package/custom/node_modules/lodash-es/_basePropertyOf.js +14 -0
- package/custom/node_modules/lodash-es/_basePullAll.js +51 -0
- package/custom/node_modules/lodash-es/_basePullAt.js +37 -0
- package/custom/node_modules/lodash-es/_baseRandom.js +18 -0
- package/custom/node_modules/lodash-es/_baseRange.js +28 -0
- package/custom/node_modules/lodash-es/_baseReduce.js +23 -0
- package/custom/node_modules/lodash-es/_baseRepeat.js +35 -0
- package/custom/node_modules/lodash-es/_baseRest.js +17 -0
- package/custom/node_modules/lodash-es/_baseSample.js +15 -0
- package/custom/node_modules/lodash-es/_baseSampleSize.js +18 -0
- package/custom/node_modules/lodash-es/_baseSet.js +51 -0
- package/custom/node_modules/lodash-es/_baseSetData.js +17 -0
- package/custom/node_modules/lodash-es/_baseSetToString.js +22 -0
- package/custom/node_modules/lodash-es/_baseShuffle.js +15 -0
- package/custom/node_modules/lodash-es/_baseSlice.js +31 -0
- package/custom/node_modules/lodash-es/_baseSome.js +22 -0
- package/custom/node_modules/lodash-es/_baseSortBy.js +21 -0
- package/custom/node_modules/lodash-es/_baseSortedIndex.js +42 -0
- package/custom/node_modules/lodash-es/_baseSortedIndexBy.js +67 -0
- package/custom/node_modules/lodash-es/_baseSortedUniq.js +30 -0
- package/custom/node_modules/lodash-es/_baseSum.js +24 -0
- package/custom/node_modules/lodash-es/_baseTimes.js +20 -0
- package/custom/node_modules/lodash-es/_baseToNumber.js +24 -0
- package/custom/node_modules/lodash-es/_baseToPairs.js +18 -0
- package/custom/node_modules/lodash-es/_baseToString.js +37 -0
- package/custom/node_modules/lodash-es/_baseTrim.js +19 -0
- package/custom/node_modules/lodash-es/_baseUnary.js +14 -0
- package/custom/node_modules/lodash-es/_baseUniq.js +72 -0
- package/custom/node_modules/lodash-es/_baseUnset.js +20 -0
- package/custom/node_modules/lodash-es/_baseUpdate.js +18 -0
- package/custom/node_modules/lodash-es/_baseValues.js +19 -0
- package/custom/node_modules/lodash-es/_baseWhile.js +26 -0
- package/custom/node_modules/lodash-es/_baseWrapperValue.js +25 -0
- package/custom/node_modules/lodash-es/_baseXor.js +36 -0
- package/custom/node_modules/lodash-es/_baseZipObject.js +23 -0
- package/custom/node_modules/lodash-es/_cacheHas.js +13 -0
- package/custom/node_modules/lodash-es/_castArrayLikeObject.js +14 -0
- package/custom/node_modules/lodash-es/_castFunction.js +14 -0
- package/custom/node_modules/lodash-es/_castPath.js +21 -0
- package/custom/node_modules/lodash-es/_castRest.js +14 -0
- package/custom/node_modules/lodash-es/_castSlice.js +18 -0
- package/custom/node_modules/lodash-es/_charsEndIndex.js +19 -0
- package/custom/node_modules/lodash-es/_charsStartIndex.js +20 -0
- package/custom/node_modules/lodash-es/_cloneArrayBuffer.js +16 -0
- package/custom/node_modules/lodash-es/_cloneBuffer.js +35 -0
- package/custom/node_modules/lodash-es/_cloneDataView.js +16 -0
- package/custom/node_modules/lodash-es/_cloneMap.js +22 -0
- package/custom/node_modules/lodash-es/_cloneRegExp.js +17 -0
- package/custom/node_modules/lodash-es/_cloneSet.js +22 -0
- package/custom/node_modules/lodash-es/_cloneSymbol.js +18 -0
- package/custom/node_modules/lodash-es/_cloneTypedArray.js +16 -0
- package/custom/node_modules/lodash-es/_compareAscending.js +41 -0
- package/custom/node_modules/lodash-es/_compareMultiple.js +44 -0
- package/custom/node_modules/lodash-es/_composeArgs.js +39 -0
- package/custom/node_modules/lodash-es/_composeArgsRight.js +41 -0
- package/custom/node_modules/lodash-es/_copyArray.js +20 -0
- package/custom/node_modules/lodash-es/_copyObject.js +40 -0
- package/custom/node_modules/lodash-es/_copySymbols.js +16 -0
- package/custom/node_modules/lodash-es/_copySymbolsIn.js +16 -0
- package/custom/node_modules/lodash-es/_coreJsData.js +6 -0
- package/custom/node_modules/lodash-es/_countHolders.js +21 -0
- package/custom/node_modules/lodash-es/_createAggregator.js +23 -0
- package/custom/node_modules/lodash-es/_createAssigner.js +37 -0
- package/custom/node_modules/lodash-es/_createBaseEach.js +32 -0
- package/custom/node_modules/lodash-es/_createBaseFor.js +25 -0
- package/custom/node_modules/lodash-es/_createBind.js +28 -0
- package/custom/node_modules/lodash-es/_createCaseFirst.js +33 -0
- package/custom/node_modules/lodash-es/_createCompounder.js +24 -0
- package/custom/node_modules/lodash-es/_createCtor.js +37 -0
- package/custom/node_modules/lodash-es/_createCurry.js +46 -0
- package/custom/node_modules/lodash-es/_createFind.js +25 -0
- package/custom/node_modules/lodash-es/_createFlow.js +78 -0
- package/custom/node_modules/lodash-es/_createHybrid.js +92 -0
- package/custom/node_modules/lodash-es/_createInverter.js +17 -0
- package/custom/node_modules/lodash-es/_createMathOperation.js +38 -0
- package/custom/node_modules/lodash-es/_createOver.js +27 -0
- package/custom/node_modules/lodash-es/_createPadding.js +33 -0
- package/custom/node_modules/lodash-es/_createPartial.js +43 -0
- package/custom/node_modules/lodash-es/_createRange.js +30 -0
- package/custom/node_modules/lodash-es/_createRecurry.js +56 -0
- package/custom/node_modules/lodash-es/_createRelationalOperation.js +20 -0
- package/custom/node_modules/lodash-es/_createRound.js +35 -0
- package/custom/node_modules/lodash-es/_createSet.js +19 -0
- package/custom/node_modules/lodash-es/_createToPairs.js +30 -0
- package/custom/node_modules/lodash-es/_createWrap.js +106 -0
- package/custom/node_modules/lodash-es/_customDefaultsAssignIn.js +29 -0
- package/custom/node_modules/lodash-es/_customDefaultsMerge.js +28 -0
- package/custom/node_modules/lodash-es/_customOmitClone.js +16 -0
- package/custom/node_modules/lodash-es/_deburrLetter.js +71 -0
- package/custom/node_modules/lodash-es/_defineProperty.js +11 -0
- package/custom/node_modules/lodash-es/_equalArrays.js +84 -0
- package/custom/node_modules/lodash-es/_equalByTag.js +112 -0
- package/custom/node_modules/lodash-es/_equalObjects.js +90 -0
- package/custom/node_modules/lodash-es/_escapeHtmlChar.js +21 -0
- package/custom/node_modules/lodash-es/_escapeStringChar.js +22 -0
- package/custom/node_modules/lodash-es/_flatRest.js +16 -0
- package/custom/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/custom/node_modules/lodash-es/_getAllKeys.js +16 -0
- package/custom/node_modules/lodash-es/_getAllKeysIn.js +17 -0
- package/custom/node_modules/lodash-es/_getData.js +15 -0
- package/custom/node_modules/lodash-es/_getFuncName.js +31 -0
- package/custom/node_modules/lodash-es/_getHolder.js +13 -0
- package/custom/node_modules/lodash-es/_getMapData.js +18 -0
- package/custom/node_modules/lodash-es/_getMatchData.js +24 -0
- package/custom/node_modules/lodash-es/_getNative.js +17 -0
- package/custom/node_modules/lodash-es/_getPrototype.js +6 -0
- package/custom/node_modules/lodash-es/_getRawTag.js +46 -0
- package/custom/node_modules/lodash-es/_getSymbols.js +30 -0
- package/custom/node_modules/lodash-es/_getSymbolsIn.js +25 -0
- package/custom/node_modules/lodash-es/_getTag.js +58 -0
- package/custom/node_modules/lodash-es/_getValue.js +13 -0
- package/custom/node_modules/lodash-es/_getView.js +33 -0
- package/custom/node_modules/lodash-es/_getWrapDetails.js +17 -0
- package/custom/node_modules/lodash-es/_hasPath.js +39 -0
- package/custom/node_modules/lodash-es/_hasUnicode.js +26 -0
- package/custom/node_modules/lodash-es/_hasUnicodeWord.js +15 -0
- package/custom/node_modules/lodash-es/_hashClear.js +15 -0
- package/custom/node_modules/lodash-es/_hashDelete.js +17 -0
- package/custom/node_modules/lodash-es/_hashGet.js +30 -0
- package/custom/node_modules/lodash-es/_hashHas.js +23 -0
- package/custom/node_modules/lodash-es/_hashSet.js +23 -0
- package/custom/node_modules/lodash-es/_initCloneArray.js +26 -0
- package/custom/node_modules/lodash-es/_initCloneByTag.js +77 -0
- package/custom/node_modules/lodash-es/_initCloneObject.js +18 -0
- package/custom/node_modules/lodash-es/_insertWrapDetails.js +23 -0
- package/custom/node_modules/lodash-es/_isFlattenable.js +20 -0
- package/custom/node_modules/lodash-es/_isIndex.js +25 -0
- package/custom/node_modules/lodash-es/_isIterateeCall.js +30 -0
- package/custom/node_modules/lodash-es/_isKey.js +29 -0
- package/custom/node_modules/lodash-es/_isKeyable.js +15 -0
- package/custom/node_modules/lodash-es/_isLaziable.js +28 -0
- package/custom/node_modules/lodash-es/_isMaskable.js +14 -0
- package/custom/node_modules/lodash-es/_isMasked.js +20 -0
- package/custom/node_modules/lodash-es/_isPrototype.js +18 -0
- package/custom/node_modules/lodash-es/_isStrictComparable.js +15 -0
- package/custom/node_modules/lodash-es/_iteratorToArray.js +18 -0
- package/custom/node_modules/lodash-es/_lazyClone.js +23 -0
- package/custom/node_modules/lodash-es/_lazyReverse.js +23 -0
- package/custom/node_modules/lodash-es/_lazyValue.js +69 -0
- package/custom/node_modules/lodash-es/_listCacheClear.js +13 -0
- package/custom/node_modules/lodash-es/_listCacheDelete.js +35 -0
- package/custom/node_modules/lodash-es/_listCacheGet.js +19 -0
- package/custom/node_modules/lodash-es/_listCacheHas.js +16 -0
- package/custom/node_modules/lodash-es/_listCacheSet.js +26 -0
- package/custom/node_modules/lodash-es/_mapCacheClear.js +21 -0
- package/custom/node_modules/lodash-es/_mapCacheDelete.js +18 -0
- package/custom/node_modules/lodash-es/_mapCacheGet.js +16 -0
- package/custom/node_modules/lodash-es/_mapCacheHas.js +16 -0
- package/custom/node_modules/lodash-es/_mapCacheSet.js +22 -0
- package/custom/node_modules/lodash-es/_mapToArray.js +18 -0
- package/custom/node_modules/lodash-es/_matchesStrictComparable.js +20 -0
- package/custom/node_modules/lodash-es/_memoizeCapped.js +26 -0
- package/custom/node_modules/lodash-es/_mergeData.js +90 -0
- package/custom/node_modules/lodash-es/_metaMap.js +6 -0
- package/custom/node_modules/lodash-es/_nativeCreate.js +6 -0
- package/custom/node_modules/lodash-es/_nativeKeys.js +6 -0
- package/custom/node_modules/lodash-es/_nativeKeysIn.js +20 -0
- package/custom/node_modules/lodash-es/_nodeUtil.js +30 -0
- package/custom/node_modules/lodash-es/_objectToString.js +22 -0
- package/custom/node_modules/lodash-es/_overArg.js +15 -0
- package/custom/node_modules/lodash-es/_overRest.js +36 -0
- package/custom/node_modules/lodash-es/_parent.js +16 -0
- package/custom/node_modules/lodash-es/_reEscape.js +4 -0
- package/custom/node_modules/lodash-es/_reEvaluate.js +4 -0
- package/custom/node_modules/lodash-es/_reInterpolate.js +4 -0
- package/custom/node_modules/lodash-es/_realNames.js +4 -0
- package/custom/node_modules/lodash-es/_reorder.js +29 -0
- package/custom/node_modules/lodash-es/_replaceHolders.js +29 -0
- package/custom/node_modules/lodash-es/_root.js +9 -0
- package/custom/node_modules/lodash-es/_safeGet.js +21 -0
- package/custom/node_modules/lodash-es/_setCacheAdd.js +19 -0
- package/custom/node_modules/lodash-es/_setCacheHas.js +14 -0
- package/custom/node_modules/lodash-es/_setData.js +20 -0
- package/custom/node_modules/lodash-es/_setToArray.js +18 -0
- package/custom/node_modules/lodash-es/_setToPairs.js +18 -0
- package/custom/node_modules/lodash-es/_setToString.js +14 -0
- package/custom/node_modules/lodash-es/_setWrapToString.js +21 -0
- package/custom/node_modules/lodash-es/_shortOut.js +37 -0
- package/custom/node_modules/lodash-es/_shuffleSelf.js +28 -0
- package/custom/node_modules/lodash-es/_stackClear.js +15 -0
- package/custom/node_modules/lodash-es/_stackDelete.js +18 -0
- package/custom/node_modules/lodash-es/_stackGet.js +14 -0
- package/custom/node_modules/lodash-es/_stackHas.js +14 -0
- package/custom/node_modules/lodash-es/_stackSet.js +34 -0
- package/custom/node_modules/lodash-es/_strictIndexOf.js +23 -0
- package/custom/node_modules/lodash-es/_strictLastIndexOf.js +21 -0
- package/custom/node_modules/lodash-es/_stringSize.js +18 -0
- package/custom/node_modules/lodash-es/_stringToArray.js +18 -0
- package/custom/node_modules/lodash-es/_stringToPath.js +27 -0
- package/custom/node_modules/lodash-es/_toKey.js +21 -0
- package/custom/node_modules/lodash-es/_toSource.js +26 -0
- package/custom/node_modules/lodash-es/_trimmedEndIndex.js +19 -0
- package/custom/node_modules/lodash-es/_unescapeHtmlChar.js +21 -0
- package/custom/node_modules/lodash-es/_unicodeSize.js +44 -0
- package/custom/node_modules/lodash-es/_unicodeToArray.js +40 -0
- package/custom/node_modules/lodash-es/_unicodeWords.js +69 -0
- package/custom/node_modules/lodash-es/_updateWrapDetails.js +46 -0
- package/custom/node_modules/lodash-es/_wrapperClone.js +23 -0
- package/custom/node_modules/lodash-es/add.js +22 -0
- package/custom/node_modules/lodash-es/after.js +42 -0
- package/custom/node_modules/lodash-es/array.default.js +81 -0
- package/custom/node_modules/lodash-es/array.js +66 -0
- package/custom/node_modules/lodash-es/ary.js +29 -0
- package/custom/node_modules/lodash-es/assign.js +58 -0
- package/custom/node_modules/lodash-es/assignIn.js +40 -0
- package/custom/node_modules/lodash-es/assignInWith.js +38 -0
- package/custom/node_modules/lodash-es/assignWith.js +37 -0
- package/custom/node_modules/lodash-es/at.js +23 -0
- package/custom/node_modules/lodash-es/attempt.js +35 -0
- package/custom/node_modules/lodash-es/before.js +40 -0
- package/custom/node_modules/lodash-es/bind.js +57 -0
- package/custom/node_modules/lodash-es/bindAll.js +41 -0
- package/custom/node_modules/lodash-es/bindKey.js +68 -0
- package/custom/node_modules/lodash-es/camelCase.js +29 -0
- package/custom/node_modules/lodash-es/capitalize.js +23 -0
- package/custom/node_modules/lodash-es/castArray.js +44 -0
- package/custom/node_modules/lodash-es/ceil.js +26 -0
- package/custom/node_modules/lodash-es/chain.js +38 -0
- package/custom/node_modules/lodash-es/chunk.js +50 -0
- package/custom/node_modules/lodash-es/clamp.js +39 -0
- package/custom/node_modules/lodash-es/clone.js +36 -0
- package/custom/node_modules/lodash-es/cloneDeep.js +29 -0
- package/custom/node_modules/lodash-es/cloneDeepWith.js +40 -0
- package/custom/node_modules/lodash-es/cloneWith.js +42 -0
- package/custom/node_modules/lodash-es/collection.default.js +37 -0
- package/custom/node_modules/lodash-es/collection.js +29 -0
- package/custom/node_modules/lodash-es/commit.js +33 -0
- package/custom/node_modules/lodash-es/compact.js +31 -0
- package/custom/node_modules/lodash-es/concat.js +43 -0
- package/custom/node_modules/lodash-es/cond.js +60 -0
- package/custom/node_modules/lodash-es/conforms.js +35 -0
- package/custom/node_modules/lodash-es/conformsTo.js +32 -0
- package/custom/node_modules/lodash-es/constant.js +26 -0
- package/custom/node_modules/lodash-es/countBy.js +40 -0
- package/custom/node_modules/lodash-es/create.js +43 -0
- package/custom/node_modules/lodash-es/curry.js +57 -0
- package/custom/node_modules/lodash-es/curryRight.js +54 -0
- package/custom/node_modules/lodash-es/date.default.js +5 -0
- package/custom/node_modules/lodash-es/date.js +2 -0
- package/custom/node_modules/lodash-es/debounce.js +191 -0
- package/custom/node_modules/lodash-es/deburr.js +45 -0
- package/custom/node_modules/lodash-es/defaultTo.js +25 -0
- package/custom/node_modules/lodash-es/defaults.js +64 -0
- package/custom/node_modules/lodash-es/defaultsDeep.js +30 -0
- package/custom/node_modules/lodash-es/defer.js +26 -0
- package/custom/node_modules/lodash-es/delay.js +28 -0
- package/custom/node_modules/lodash-es/difference.js +33 -0
- package/custom/node_modules/lodash-es/differenceBy.js +44 -0
- package/custom/node_modules/lodash-es/differenceWith.js +40 -0
- package/custom/node_modules/lodash-es/divide.js +22 -0
- package/custom/node_modules/lodash-es/drop.js +38 -0
- package/custom/node_modules/lodash-es/dropRight.js +39 -0
- package/custom/node_modules/lodash-es/dropRightWhile.js +45 -0
- package/custom/node_modules/lodash-es/dropWhile.js +45 -0
- package/custom/node_modules/lodash-es/each.js +1 -0
- package/custom/node_modules/lodash-es/eachRight.js +1 -0
- package/custom/node_modules/lodash-es/endsWith.js +43 -0
- package/custom/node_modules/lodash-es/entries.js +1 -0
- package/custom/node_modules/lodash-es/entriesIn.js +1 -0
- package/custom/node_modules/lodash-es/eq.js +37 -0
- package/custom/node_modules/lodash-es/escape.js +43 -0
- package/custom/node_modules/lodash-es/escapeRegExp.js +32 -0
- package/custom/node_modules/lodash-es/every.js +56 -0
- package/custom/node_modules/lodash-es/extend.js +1 -0
- package/custom/node_modules/lodash-es/extendWith.js +1 -0
- package/custom/node_modules/lodash-es/fill.js +45 -0
- package/custom/node_modules/lodash-es/filter.js +52 -0
- package/custom/node_modules/lodash-es/find.js +42 -0
- package/custom/node_modules/lodash-es/findIndex.js +55 -0
- package/custom/node_modules/lodash-es/findKey.js +44 -0
- package/custom/node_modules/lodash-es/findLast.js +25 -0
- package/custom/node_modules/lodash-es/findLastIndex.js +59 -0
- package/custom/node_modules/lodash-es/findLastKey.js +44 -0
- package/custom/node_modules/lodash-es/first.js +1 -0
- package/custom/node_modules/lodash-es/flake.lock +40 -0
- package/custom/node_modules/lodash-es/flake.nix +20 -0
- package/custom/node_modules/lodash-es/flatMap.js +29 -0
- package/custom/node_modules/lodash-es/flatMapDeep.js +31 -0
- package/custom/node_modules/lodash-es/flatMapDepth.js +31 -0
- package/custom/node_modules/lodash-es/flatten.js +22 -0
- package/custom/node_modules/lodash-es/flattenDeep.js +25 -0
- package/custom/node_modules/lodash-es/flattenDepth.js +33 -0
- package/custom/node_modules/lodash-es/flip.js +28 -0
- package/custom/node_modules/lodash-es/floor.js +26 -0
- package/custom/node_modules/lodash-es/flow.js +27 -0
- package/custom/node_modules/lodash-es/flowRight.js +26 -0
- package/custom/node_modules/lodash-es/forEach.js +41 -0
- package/custom/node_modules/lodash-es/forEachRight.js +31 -0
- package/custom/node_modules/lodash-es/forIn.js +39 -0
- package/custom/node_modules/lodash-es/forInRight.js +37 -0
- package/custom/node_modules/lodash-es/forOwn.js +36 -0
- package/custom/node_modules/lodash-es/forOwnRight.js +34 -0
- package/custom/node_modules/lodash-es/fromPairs.js +28 -0
- package/custom/node_modules/lodash-es/function.default.js +31 -0
- package/custom/node_modules/lodash-es/function.js +24 -0
- package/custom/node_modules/lodash-es/functions.js +31 -0
- package/custom/node_modules/lodash-es/functionsIn.js +31 -0
- package/custom/node_modules/lodash-es/get.js +33 -0
- package/custom/node_modules/lodash-es/groupBy.js +41 -0
- package/custom/node_modules/lodash-es/gt.js +29 -0
- package/custom/node_modules/lodash-es/gte.js +30 -0
- package/custom/node_modules/lodash-es/has.js +35 -0
- package/custom/node_modules/lodash-es/hasIn.js +34 -0
- package/custom/node_modules/lodash-es/head.js +23 -0
- package/custom/node_modules/lodash-es/identity.js +21 -0
- package/custom/node_modules/lodash-es/inRange.js +55 -0
- package/custom/node_modules/lodash-es/includes.js +53 -0
- package/custom/node_modules/lodash-es/indexOf.js +42 -0
- package/custom/node_modules/lodash-es/initial.js +22 -0
- package/custom/node_modules/lodash-es/intersection.js +30 -0
- package/custom/node_modules/lodash-es/intersectionBy.js +45 -0
- package/custom/node_modules/lodash-es/intersectionWith.js +41 -0
- package/custom/node_modules/lodash-es/invert.js +42 -0
- package/custom/node_modules/lodash-es/invertBy.js +56 -0
- package/custom/node_modules/lodash-es/invoke.js +24 -0
- package/custom/node_modules/lodash-es/invokeMap.js +41 -0
- package/custom/node_modules/lodash-es/isArguments.js +36 -0
- package/custom/node_modules/lodash-es/isArray.js +26 -0
- package/custom/node_modules/lodash-es/isArrayBuffer.js +27 -0
- package/custom/node_modules/lodash-es/isArrayLike.js +33 -0
- package/custom/node_modules/lodash-es/isArrayLikeObject.js +33 -0
- package/custom/node_modules/lodash-es/isBoolean.js +29 -0
- package/custom/node_modules/lodash-es/isBuffer.js +38 -0
- package/custom/node_modules/lodash-es/isDate.js +27 -0
- package/custom/node_modules/lodash-es/isElement.js +25 -0
- package/custom/node_modules/lodash-es/isEmpty.js +77 -0
- package/custom/node_modules/lodash-es/isEqual.js +35 -0
- package/custom/node_modules/lodash-es/isEqualWith.js +41 -0
- package/custom/node_modules/lodash-es/isError.js +36 -0
- package/custom/node_modules/lodash-es/isFinite.js +36 -0
- package/custom/node_modules/lodash-es/isFunction.js +37 -0
- package/custom/node_modules/lodash-es/isInteger.js +33 -0
- package/custom/node_modules/lodash-es/isLength.js +35 -0
- package/custom/node_modules/lodash-es/isMap.js +27 -0
- package/custom/node_modules/lodash-es/isMatch.js +36 -0
- package/custom/node_modules/lodash-es/isMatchWith.js +41 -0
- package/custom/node_modules/lodash-es/isNaN.js +38 -0
- package/custom/node_modules/lodash-es/isNative.js +40 -0
- package/custom/node_modules/lodash-es/isNil.js +25 -0
- package/custom/node_modules/lodash-es/isNull.js +22 -0
- package/custom/node_modules/lodash-es/isNumber.js +38 -0
- package/custom/node_modules/lodash-es/isObject.js +31 -0
- package/custom/node_modules/lodash-es/isObjectLike.js +29 -0
- package/custom/node_modules/lodash-es/isPlainObject.js +62 -0
- package/custom/node_modules/lodash-es/isRegExp.js +27 -0
- package/custom/node_modules/lodash-es/isSafeInteger.js +37 -0
- package/custom/node_modules/lodash-es/isSet.js +27 -0
- package/custom/node_modules/lodash-es/isString.js +30 -0
- package/custom/node_modules/lodash-es/isSymbol.js +29 -0
- package/custom/node_modules/lodash-es/isTypedArray.js +27 -0
- package/custom/node_modules/lodash-es/isUndefined.js +22 -0
- package/custom/node_modules/lodash-es/isWeakMap.js +28 -0
- package/custom/node_modules/lodash-es/isWeakSet.js +28 -0
- package/custom/node_modules/lodash-es/iteratee.js +53 -0
- package/custom/node_modules/lodash-es/join.js +26 -0
- package/custom/node_modules/lodash-es/kebabCase.js +28 -0
- package/custom/node_modules/lodash-es/keyBy.js +36 -0
- package/custom/node_modules/lodash-es/keys.js +37 -0
- package/custom/node_modules/lodash-es/keysIn.js +32 -0
- package/custom/node_modules/lodash-es/lang.default.js +71 -0
- package/custom/node_modules/lodash-es/lang.js +57 -0
- package/custom/node_modules/lodash-es/last.js +20 -0
- package/custom/node_modules/lodash-es/lastIndexOf.js +46 -0
- package/custom/node_modules/lodash-es/lodash.default.js +643 -0
- package/custom/node_modules/lodash-es/lodash.js +331 -0
- package/custom/node_modules/lodash-es/lowerCase.js +27 -0
- package/custom/node_modules/lodash-es/lowerFirst.js +22 -0
- package/custom/node_modules/lodash-es/lt.js +29 -0
- package/custom/node_modules/lodash-es/lte.js +30 -0
- package/custom/node_modules/lodash-es/map.js +53 -0
- package/custom/node_modules/lodash-es/mapKeys.js +36 -0
- package/custom/node_modules/lodash-es/mapValues.js +43 -0
- package/custom/node_modules/lodash-es/matches.js +46 -0
- package/custom/node_modules/lodash-es/matchesProperty.js +44 -0
- package/custom/node_modules/lodash-es/math.default.js +21 -0
- package/custom/node_modules/lodash-es/math.js +16 -0
- package/custom/node_modules/lodash-es/max.js +29 -0
- package/custom/node_modules/lodash-es/maxBy.js +34 -0
- package/custom/node_modules/lodash-es/mean.js +22 -0
- package/custom/node_modules/lodash-es/meanBy.js +31 -0
- package/custom/node_modules/lodash-es/memoize.js +73 -0
- package/custom/node_modules/lodash-es/merge.js +39 -0
- package/custom/node_modules/lodash-es/mergeWith.js +39 -0
- package/custom/node_modules/lodash-es/method.js +34 -0
- package/custom/node_modules/lodash-es/methodOf.js +33 -0
- package/custom/node_modules/lodash-es/min.js +29 -0
- package/custom/node_modules/lodash-es/minBy.js +34 -0
- package/custom/node_modules/lodash-es/mixin.js +74 -0
- package/custom/node_modules/lodash-es/multiply.js +22 -0
- package/custom/node_modules/lodash-es/negate.js +40 -0
- package/custom/node_modules/lodash-es/next.js +35 -0
- package/custom/node_modules/lodash-es/noop.js +17 -0
- package/custom/node_modules/lodash-es/now.js +23 -0
- package/custom/node_modules/lodash-es/nth.js +29 -0
- package/custom/node_modules/lodash-es/nthArg.js +32 -0
- package/custom/node_modules/lodash-es/number.default.js +7 -0
- package/custom/node_modules/lodash-es/number.js +4 -0
- package/custom/node_modules/lodash-es/object.default.js +60 -0
- package/custom/node_modules/lodash-es/object.js +48 -0
- package/custom/node_modules/lodash-es/omit.js +57 -0
- package/custom/node_modules/lodash-es/omitBy.js +29 -0
- package/custom/node_modules/lodash-es/once.js +25 -0
- package/custom/node_modules/lodash-es/orderBy.js +47 -0
- package/custom/node_modules/lodash-es/over.js +24 -0
- package/custom/node_modules/lodash-es/overArgs.js +61 -0
- package/custom/node_modules/lodash-es/overEvery.js +34 -0
- package/custom/node_modules/lodash-es/overSome.js +37 -0
- package/custom/node_modules/lodash-es/package.json +21 -0
- package/custom/node_modules/lodash-es/pad.js +49 -0
- package/custom/node_modules/lodash-es/padEnd.js +39 -0
- package/custom/node_modules/lodash-es/padStart.js +39 -0
- package/custom/node_modules/lodash-es/parseInt.js +43 -0
- package/custom/node_modules/lodash-es/partial.js +50 -0
- package/custom/node_modules/lodash-es/partialRight.js +49 -0
- package/custom/node_modules/lodash-es/partition.js +43 -0
- package/custom/node_modules/lodash-es/pick.js +25 -0
- package/custom/node_modules/lodash-es/pickBy.js +37 -0
- package/custom/node_modules/lodash-es/plant.js +48 -0
- package/custom/node_modules/lodash-es/property.js +32 -0
- package/custom/node_modules/lodash-es/propertyOf.js +30 -0
- package/custom/node_modules/lodash-es/pull.js +29 -0
- package/custom/node_modules/lodash-es/pullAll.js +29 -0
- package/custom/node_modules/lodash-es/pullAllBy.js +33 -0
- package/custom/node_modules/lodash-es/pullAllWith.js +32 -0
- package/custom/node_modules/lodash-es/pullAt.js +43 -0
- package/custom/node_modules/lodash-es/random.js +82 -0
- package/custom/node_modules/lodash-es/range.js +46 -0
- package/custom/node_modules/lodash-es/rangeRight.js +41 -0
- package/custom/node_modules/lodash-es/rearg.js +33 -0
- package/custom/node_modules/lodash-es/reduce.js +51 -0
- package/custom/node_modules/lodash-es/reduceRight.js +36 -0
- package/custom/node_modules/lodash-es/reject.js +46 -0
- package/custom/node_modules/lodash-es/release.md +48 -0
- package/custom/node_modules/lodash-es/remove.js +53 -0
- package/custom/node_modules/lodash-es/repeat.js +37 -0
- package/custom/node_modules/lodash-es/replace.js +29 -0
- package/custom/node_modules/lodash-es/rest.js +40 -0
- package/custom/node_modules/lodash-es/result.js +56 -0
- package/custom/node_modules/lodash-es/reverse.js +34 -0
- package/custom/node_modules/lodash-es/round.js +26 -0
- package/custom/node_modules/lodash-es/sample.js +24 -0
- package/custom/node_modules/lodash-es/sampleSize.js +37 -0
- package/custom/node_modules/lodash-es/seq.default.js +20 -0
- package/custom/node_modules/lodash-es/seq.js +15 -0
- package/custom/node_modules/lodash-es/set.js +35 -0
- package/custom/node_modules/lodash-es/setWith.js +32 -0
- package/custom/node_modules/lodash-es/shuffle.js +25 -0
- package/custom/node_modules/lodash-es/size.js +46 -0
- package/custom/node_modules/lodash-es/slice.js +37 -0
- package/custom/node_modules/lodash-es/snakeCase.js +28 -0
- package/custom/node_modules/lodash-es/some.js +51 -0
- package/custom/node_modules/lodash-es/sortBy.js +48 -0
- package/custom/node_modules/lodash-es/sortedIndex.js +24 -0
- package/custom/node_modules/lodash-es/sortedIndexBy.js +33 -0
- package/custom/node_modules/lodash-es/sortedIndexOf.js +31 -0
- package/custom/node_modules/lodash-es/sortedLastIndex.js +25 -0
- package/custom/node_modules/lodash-es/sortedLastIndexBy.js +33 -0
- package/custom/node_modules/lodash-es/sortedLastIndexOf.js +31 -0
- package/custom/node_modules/lodash-es/sortedUniq.js +24 -0
- package/custom/node_modules/lodash-es/sortedUniqBy.js +26 -0
- package/custom/node_modules/lodash-es/split.js +52 -0
- package/custom/node_modules/lodash-es/spread.js +63 -0
- package/custom/node_modules/lodash-es/startCase.js +29 -0
- package/custom/node_modules/lodash-es/startsWith.js +39 -0
- package/custom/node_modules/lodash-es/string.default.js +41 -0
- package/custom/node_modules/lodash-es/string.js +32 -0
- package/custom/node_modules/lodash-es/stubArray.js +23 -0
- package/custom/node_modules/lodash-es/stubFalse.js +18 -0
- package/custom/node_modules/lodash-es/stubObject.js +23 -0
- package/custom/node_modules/lodash-es/stubString.js +18 -0
- package/custom/node_modules/lodash-es/stubTrue.js +18 -0
- package/custom/node_modules/lodash-es/subtract.js +22 -0
- package/custom/node_modules/lodash-es/sum.js +24 -0
- package/custom/node_modules/lodash-es/sumBy.js +33 -0
- package/custom/node_modules/lodash-es/tail.js +22 -0
- package/custom/node_modules/lodash-es/take.js +37 -0
- package/custom/node_modules/lodash-es/takeRight.js +39 -0
- package/custom/node_modules/lodash-es/takeRightWhile.js +45 -0
- package/custom/node_modules/lodash-es/takeWhile.js +45 -0
- package/custom/node_modules/lodash-es/tap.js +29 -0
- package/custom/node_modules/lodash-es/template.js +272 -0
- package/custom/node_modules/lodash-es/templateSettings.js +67 -0
- package/custom/node_modules/lodash-es/throttle.js +69 -0
- package/custom/node_modules/lodash-es/thru.js +28 -0
- package/custom/node_modules/lodash-es/times.js +51 -0
- package/custom/node_modules/lodash-es/toArray.js +58 -0
- package/custom/node_modules/lodash-es/toFinite.js +42 -0
- package/custom/node_modules/lodash-es/toInteger.js +36 -0
- package/custom/node_modules/lodash-es/toIterator.js +23 -0
- package/custom/node_modules/lodash-es/toJSON.js +1 -0
- package/custom/node_modules/lodash-es/toLength.js +38 -0
- package/custom/node_modules/lodash-es/toLower.js +28 -0
- package/custom/node_modules/lodash-es/toNumber.js +64 -0
- package/custom/node_modules/lodash-es/toPairs.js +30 -0
- package/custom/node_modules/lodash-es/toPairsIn.js +30 -0
- package/custom/node_modules/lodash-es/toPath.js +33 -0
- package/custom/node_modules/lodash-es/toPlainObject.js +32 -0
- package/custom/node_modules/lodash-es/toSafeInteger.js +37 -0
- package/custom/node_modules/lodash-es/toString.js +28 -0
- package/custom/node_modules/lodash-es/toUpper.js +28 -0
- package/custom/node_modules/lodash-es/transform.js +65 -0
- package/custom/node_modules/lodash-es/trim.js +47 -0
- package/custom/node_modules/lodash-es/trimEnd.js +41 -0
- package/custom/node_modules/lodash-es/trimStart.js +43 -0
- package/custom/node_modules/lodash-es/truncate.js +111 -0
- package/custom/node_modules/lodash-es/unary.js +22 -0
- package/custom/node_modules/lodash-es/unescape.js +34 -0
- package/custom/node_modules/lodash-es/union.js +26 -0
- package/custom/node_modules/lodash-es/unionBy.js +39 -0
- package/custom/node_modules/lodash-es/unionWith.js +34 -0
- package/custom/node_modules/lodash-es/uniq.js +25 -0
- package/custom/node_modules/lodash-es/uniqBy.js +31 -0
- package/custom/node_modules/lodash-es/uniqWith.js +28 -0
- package/custom/node_modules/lodash-es/uniqueId.js +28 -0
- package/custom/node_modules/lodash-es/unset.js +34 -0
- package/custom/node_modules/lodash-es/unzip.js +45 -0
- package/custom/node_modules/lodash-es/unzipWith.js +39 -0
- package/custom/node_modules/lodash-es/update.js +35 -0
- package/custom/node_modules/lodash-es/updateWith.js +33 -0
- package/custom/node_modules/lodash-es/upperCase.js +27 -0
- package/custom/node_modules/lodash-es/upperFirst.js +22 -0
- package/custom/node_modules/lodash-es/util.default.js +42 -0
- package/custom/node_modules/lodash-es/util.js +33 -0
- package/custom/node_modules/lodash-es/value.js +1 -0
- package/custom/node_modules/lodash-es/valueOf.js +1 -0
- package/custom/node_modules/lodash-es/values.js +34 -0
- package/custom/node_modules/lodash-es/valuesIn.js +32 -0
- package/custom/node_modules/lodash-es/without.js +31 -0
- package/custom/node_modules/lodash-es/words.js +35 -0
- package/custom/node_modules/lodash-es/wrap.js +30 -0
- package/custom/node_modules/lodash-es/wrapperAt.js +48 -0
- package/custom/node_modules/lodash-es/wrapperChain.js +34 -0
- package/custom/node_modules/lodash-es/wrapperLodash.js +147 -0
- package/custom/node_modules/lodash-es/wrapperReverse.js +44 -0
- package/custom/node_modules/lodash-es/wrapperValue.js +21 -0
- package/custom/node_modules/lodash-es/xor.js +28 -0
- package/custom/node_modules/lodash-es/xorBy.js +39 -0
- package/custom/node_modules/lodash-es/xorWith.js +34 -0
- package/custom/node_modules/lodash-es/zip.js +22 -0
- package/custom/node_modules/lodash-es/zipObject.js +24 -0
- package/custom/node_modules/lodash-es/zipObjectDeep.js +23 -0
- package/custom/node_modules/lodash-es/zipWith.js +32 -0
- package/custom/node_modules/lodash.clonedeep/LICENSE +47 -0
- package/custom/node_modules/lodash.clonedeep/README.md +18 -0
- package/custom/node_modules/lodash.clonedeep/index.js +1748 -0
- package/custom/node_modules/lodash.clonedeep/package.json +17 -0
- package/custom/node_modules/lodash.isequal/LICENSE +47 -0
- package/custom/node_modules/lodash.isequal/README.md +18 -0
- package/custom/node_modules/lodash.isequal/index.js +1848 -0
- package/custom/node_modules/lodash.isequal/package.json +16 -0
- package/custom/node_modules/parchment/LICENSE +30 -0
- package/custom/node_modules/parchment/README.md +271 -0
- package/custom/node_modules/parchment/dist/parchment.d.ts +453 -0
- package/custom/node_modules/parchment/dist/parchment.js +847 -0
- package/custom/node_modules/parchment/dist/parchment.js.map +1 -0
- package/custom/node_modules/parchment/dist/parchment.umd.cjs +2 -0
- package/custom/node_modules/parchment/dist/parchment.umd.cjs.map +1 -0
- package/custom/node_modules/parchment/package.json +53 -0
- package/custom/node_modules/parchment/src/attributor/attributor.ts +62 -0
- package/custom/node_modules/parchment/src/attributor/class.ts +43 -0
- package/custom/node_modules/parchment/src/attributor/store.ts +79 -0
- package/custom/node_modules/parchment/src/attributor/style.ts +44 -0
- package/custom/node_modules/parchment/src/blot/abstract/blot.ts +128 -0
- package/custom/node_modules/parchment/src/blot/abstract/container.ts +48 -0
- package/custom/node_modules/parchment/src/blot/abstract/leaf.ts +57 -0
- package/custom/node_modules/parchment/src/blot/abstract/parent.ts +400 -0
- package/custom/node_modules/parchment/src/blot/abstract/shadow.ts +188 -0
- package/custom/node_modules/parchment/src/blot/block.ts +123 -0
- package/custom/node_modules/parchment/src/blot/embed.ts +34 -0
- package/custom/node_modules/parchment/src/blot/inline.ts +159 -0
- package/custom/node_modules/parchment/src/blot/scroll.ts +216 -0
- package/custom/node_modules/parchment/src/blot/text.ts +100 -0
- package/custom/node_modules/parchment/src/collection/linked-list.ts +201 -0
- package/custom/node_modules/parchment/src/collection/linked-node.ts +8 -0
- package/custom/node_modules/parchment/src/error.ts +12 -0
- package/custom/node_modules/parchment/src/parchment.ts +48 -0
- package/custom/node_modules/parchment/src/registry.ts +155 -0
- package/custom/node_modules/parchment/src/scope.ts +18 -0
- package/custom/node_modules/parchment/tsconfig.json +16 -0
- package/custom/node_modules/quill/LICENSE +31 -0
- package/custom/node_modules/quill/README.md +104 -0
- package/custom/node_modules/quill/assets/base.styl +309 -0
- package/custom/node_modules/quill/assets/bubble/toolbar.styl +14 -0
- package/custom/node_modules/quill/assets/bubble/tooltip.styl +49 -0
- package/custom/node_modules/quill/assets/bubble.styl +45 -0
- package/custom/node_modules/quill/assets/core.styl +215 -0
- package/custom/node_modules/quill/assets/favicon.png +0 -0
- package/custom/node_modules/quill/assets/icons/align-center.svg +5 -0
- package/custom/node_modules/quill/assets/icons/align-justify.svg +5 -0
- package/custom/node_modules/quill/assets/icons/align-left.svg +5 -0
- package/custom/node_modules/quill/assets/icons/align-right.svg +5 -0
- package/custom/node_modules/quill/assets/icons/attachment.svg +3 -0
- package/custom/node_modules/quill/assets/icons/audio.svg +5 -0
- package/custom/node_modules/quill/assets/icons/authorship.svg +5 -0
- package/custom/node_modules/quill/assets/icons/background.svg +52 -0
- package/custom/node_modules/quill/assets/icons/blockquote.svg +6 -0
- package/custom/node_modules/quill/assets/icons/bold.svg +4 -0
- package/custom/node_modules/quill/assets/icons/clean.svg +7 -0
- package/custom/node_modules/quill/assets/icons/code.svg +5 -0
- package/custom/node_modules/quill/assets/icons/color.svg +5 -0
- package/custom/node_modules/quill/assets/icons/comment.svg +3 -0
- package/custom/node_modules/quill/assets/icons/direction-ltr.svg +7 -0
- package/custom/node_modules/quill/assets/icons/direction-rtl.svg +7 -0
- package/custom/node_modules/quill/assets/icons/dropdown.svg +4 -0
- package/custom/node_modules/quill/assets/icons/embed.svg +3 -0
- package/custom/node_modules/quill/assets/icons/emoji.svg +6 -0
- package/custom/node_modules/quill/assets/icons/float-center.svg +5 -0
- package/custom/node_modules/quill/assets/icons/float-full.svg +5 -0
- package/custom/node_modules/quill/assets/icons/float-left.svg +7 -0
- package/custom/node_modules/quill/assets/icons/float-right.svg +7 -0
- package/custom/node_modules/quill/assets/icons/font.svg +5 -0
- package/custom/node_modules/quill/assets/icons/formula.svg +5 -0
- package/custom/node_modules/quill/assets/icons/hashtag.svg +6 -0
- package/custom/node_modules/quill/assets/icons/header-2.svg +3 -0
- package/custom/node_modules/quill/assets/icons/header-3.svg +3 -0
- package/custom/node_modules/quill/assets/icons/header-4.svg +3 -0
- package/custom/node_modules/quill/assets/icons/header-5.svg +3 -0
- package/custom/node_modules/quill/assets/icons/header-6.svg +3 -0
- package/custom/node_modules/quill/assets/icons/header.svg +3 -0
- package/custom/node_modules/quill/assets/icons/horizontal-rule.svg +4 -0
- package/custom/node_modules/quill/assets/icons/image.svg +5 -0
- package/custom/node_modules/quill/assets/icons/indent.svg +6 -0
- package/custom/node_modules/quill/assets/icons/italic.svg +5 -0
- package/custom/node_modules/quill/assets/icons/link.svg +5 -0
- package/custom/node_modules/quill/assets/icons/list-bullet.svg +8 -0
- package/custom/node_modules/quill/assets/icons/list-check.svg +8 -0
- package/custom/node_modules/quill/assets/icons/list-ordered.svg +9 -0
- package/custom/node_modules/quill/assets/icons/map.svg +5 -0
- package/custom/node_modules/quill/assets/icons/mention.svg +4 -0
- package/custom/node_modules/quill/assets/icons/more.svg +3 -0
- package/custom/node_modules/quill/assets/icons/outdent.svg +6 -0
- package/custom/node_modules/quill/assets/icons/redo.svg +4 -0
- package/custom/node_modules/quill/assets/icons/size-decrease.svg +5 -0
- package/custom/node_modules/quill/assets/icons/size-increase.svg +6 -0
- package/custom/node_modules/quill/assets/icons/size.svg +6 -0
- package/custom/node_modules/quill/assets/icons/spacing.svg +9 -0
- package/custom/node_modules/quill/assets/icons/speech.svg +6 -0
- package/custom/node_modules/quill/assets/icons/strike.svg +5 -0
- package/custom/node_modules/quill/assets/icons/subscript.svg +4 -0
- package/custom/node_modules/quill/assets/icons/superscript.svg +4 -0
- package/custom/node_modules/quill/assets/icons/table-border-all.svg +5 -0
- package/custom/node_modules/quill/assets/icons/table-border-bottom.svg +28 -0
- package/custom/node_modules/quill/assets/icons/table-border-left.svg +28 -0
- package/custom/node_modules/quill/assets/icons/table-border-none.svg +25 -0
- package/custom/node_modules/quill/assets/icons/table-border-outside.svg +35 -0
- package/custom/node_modules/quill/assets/icons/table-border-right.svg +28 -0
- package/custom/node_modules/quill/assets/icons/table-border-top.svg +28 -0
- package/custom/node_modules/quill/assets/icons/table-delete-cells.svg +13 -0
- package/custom/node_modules/quill/assets/icons/table-delete-columns.svg +8 -0
- package/custom/node_modules/quill/assets/icons/table-delete-rows.svg +9 -0
- package/custom/node_modules/quill/assets/icons/table-insert-cells.svg +13 -0
- package/custom/node_modules/quill/assets/icons/table-insert-columns.svg +8 -0
- package/custom/node_modules/quill/assets/icons/table-insert-rows.svg +9 -0
- package/custom/node_modules/quill/assets/icons/table-merge-cells.svg +4 -0
- package/custom/node_modules/quill/assets/icons/table-unmerge-cells.svg +7 -0
- package/custom/node_modules/quill/assets/icons/table.svg +11 -0
- package/custom/node_modules/quill/assets/icons/underline.svg +4 -0
- package/custom/node_modules/quill/assets/icons/undo.svg +4 -0
- package/custom/node_modules/quill/assets/icons/video.svg +14 -0
- package/custom/node_modules/quill/assets/snow/toolbar.styl +26 -0
- package/custom/node_modules/quill/assets/snow/tooltip.styl +53 -0
- package/custom/node_modules/quill/assets/snow.styl +18 -0
- package/custom/node_modules/quill/blots/block.d.ts +34 -0
- package/custom/node_modules/quill/blots/block.js +182 -0
- package/custom/node_modules/quill/blots/block.js.map +1 -0
- package/custom/node_modules/quill/blots/break.d.ts +8 -0
- package/custom/node_modules/quill/blots/break.js +21 -0
- package/custom/node_modules/quill/blots/break.js.map +1 -0
- package/custom/node_modules/quill/blots/container.d.ts +4 -0
- package/custom/node_modules/quill/blots/container.js +4 -0
- package/custom/node_modules/quill/blots/container.js.map +1 -0
- package/custom/node_modules/quill/blots/cursor.d.ts +26 -0
- package/custom/node_modules/quill/blots/cursor.js +170 -0
- package/custom/node_modules/quill/blots/cursor.js.map +1 -0
- package/custom/node_modules/quill/blots/embed.d.ts +18 -0
- package/custom/node_modules/quill/blots/embed.js +72 -0
- package/custom/node_modules/quill/blots/embed.js.map +1 -0
- package/custom/node_modules/quill/blots/inline.d.ts +12 -0
- package/custom/node_modules/quill/blots/inline.js +48 -0
- package/custom/node_modules/quill/blots/inline.js.map +1 -0
- package/custom/node_modules/quill/blots/scroll.d.ts +49 -0
- package/custom/node_modules/quill/blots/scroll.js +349 -0
- package/custom/node_modules/quill/blots/scroll.js.map +1 -0
- package/custom/node_modules/quill/blots/text.d.ts +5 -0
- package/custom/node_modules/quill/blots/text.js +17 -0
- package/custom/node_modules/quill/blots/text.js.map +1 -0
- package/custom/node_modules/quill/core/composition.d.ts +12 -0
- package/custom/node_modules/quill/core/composition.js +44 -0
- package/custom/node_modules/quill/core/composition.js.map +1 -0
- package/custom/node_modules/quill/core/editor.d.ts +28 -0
- package/custom/node_modules/quill/core/editor.js +403 -0
- package/custom/node_modules/quill/core/editor.js.map +1 -0
- package/custom/node_modules/quill/core/emitter.d.ts +33 -0
- package/custom/node_modules/quill/core/emitter.js +78 -0
- package/custom/node_modules/quill/core/emitter.js.map +1 -0
- package/custom/node_modules/quill/core/instances.d.ts +3 -0
- package/custom/node_modules/quill/core/instances.js +2 -0
- package/custom/node_modules/quill/core/instances.js.map +1 -0
- package/custom/node_modules/quill/core/logger.d.ts +7 -0
- package/custom/node_modules/quill/core/logger.js +24 -0
- package/custom/node_modules/quill/core/logger.js.map +1 -0
- package/custom/node_modules/quill/core/module.d.ts +8 -0
- package/custom/node_modules/quill/core/module.js +10 -0
- package/custom/node_modules/quill/core/module.js.map +1 -0
- package/custom/node_modules/quill/core/quill.d.ts +218 -0
- package/custom/node_modules/quill/core/quill.js +628 -0
- package/custom/node_modules/quill/core/quill.js.map +1 -0
- package/custom/node_modules/quill/core/selection.d.ts +74 -0
- package/custom/node_modules/quill/core/selection.js +374 -0
- package/custom/node_modules/quill/core/selection.js.map +1 -0
- package/custom/node_modules/quill/core/theme.d.ts +32 -0
- package/custom/node_modules/quill/core/theme.js +28 -0
- package/custom/node_modules/quill/core/theme.js.map +1 -0
- package/custom/node_modules/quill/core/utils/createRegistryWithFormats.d.ts +5 -0
- package/custom/node_modules/quill/core/utils/createRegistryWithFormats.js +29 -0
- package/custom/node_modules/quill/core/utils/createRegistryWithFormats.js.map +1 -0
- package/custom/node_modules/quill/core/utils/scrollRectIntoView.d.ts +8 -0
- package/custom/node_modules/quill/core/utils/scrollRectIntoView.js +75 -0
- package/custom/node_modules/quill/core/utils/scrollRectIntoView.js.map +1 -0
- package/custom/node_modules/quill/core.d.ts +7 -0
- package/custom/node_modules/quill/core.js +37 -0
- package/custom/node_modules/quill/core.js.map +1 -0
- package/custom/node_modules/quill/dist/quill.bubble.css +10 -0
- package/custom/node_modules/quill/dist/quill.bubble.css.map +1 -0
- package/custom/node_modules/quill/dist/quill.core.css +10 -0
- package/custom/node_modules/quill/dist/quill.core.css.map +1 -0
- package/custom/node_modules/quill/dist/quill.core.js +3 -0
- package/custom/node_modules/quill/dist/quill.core.js.LICENSE.txt +7 -0
- package/custom/node_modules/quill/dist/quill.core.js.map +1 -0
- package/custom/node_modules/quill/dist/quill.js +3 -0
- package/custom/node_modules/quill/dist/quill.js.LICENSE.txt +7 -0
- package/custom/node_modules/quill/dist/quill.js.map +1 -0
- package/custom/node_modules/quill/dist/quill.snow.css +10 -0
- package/custom/node_modules/quill/dist/quill.snow.css.map +1 -0
- package/custom/node_modules/quill/formats/align.d.ts +5 -0
- package/custom/node_modules/quill/formats/align.js +10 -0
- package/custom/node_modules/quill/formats/align.js.map +1 -0
- package/custom/node_modules/quill/formats/background.d.ts +5 -0
- package/custom/node_modules/quill/formats/background.js +10 -0
- package/custom/node_modules/quill/formats/background.js.map +1 -0
- package/custom/node_modules/quill/formats/blockquote.d.ts +6 -0
- package/custom/node_modules/quill/formats/blockquote.js +7 -0
- package/custom/node_modules/quill/formats/blockquote.js.map +1 -0
- package/custom/node_modules/quill/formats/bold.d.ts +11 -0
- package/custom/node_modules/quill/formats/bold.js +19 -0
- package/custom/node_modules/quill/formats/bold.js.map +1 -0
- package/custom/node_modules/quill/formats/code.d.ts +15 -0
- package/custom/node_modules/quill/formats/code.js +44 -0
- package/custom/node_modules/quill/formats/code.js.map +1 -0
- package/custom/node_modules/quill/formats/color.d.ts +7 -0
- package/custom/node_modules/quill/formats/color.js +18 -0
- package/custom/node_modules/quill/formats/color.js.map +1 -0
- package/custom/node_modules/quill/formats/direction.d.ts +5 -0
- package/custom/node_modules/quill/formats/direction.js +10 -0
- package/custom/node_modules/quill/formats/direction.js.map +1 -0
- package/custom/node_modules/quill/formats/font.d.ts +7 -0
- package/custom/node_modules/quill/formats/font.js +14 -0
- package/custom/node_modules/quill/formats/font.js.map +1 -0
- package/custom/node_modules/quill/formats/formula.d.ts +10 -0
- package/custom/node_modules/quill/formats/formula.js +33 -0
- package/custom/node_modules/quill/formats/formula.js.map +1 -0
- package/custom/node_modules/quill/formats/header.d.ts +7 -0
- package/custom/node_modules/quill/formats/header.js +10 -0
- package/custom/node_modules/quill/formats/header.js.map +1 -0
- package/custom/node_modules/quill/formats/image.d.ts +13 -0
- package/custom/node_modules/quill/formats/image.js +44 -0
- package/custom/node_modules/quill/formats/image.js.map +1 -0
- package/custom/node_modules/quill/formats/indent.d.ts +8 -0
- package/custom/node_modules/quill/formats/indent.js +30 -0
- package/custom/node_modules/quill/formats/indent.js.map +1 -0
- package/custom/node_modules/quill/formats/italic.d.ts +6 -0
- package/custom/node_modules/quill/formats/italic.js +7 -0
- package/custom/node_modules/quill/formats/italic.js.map +1 -0
- package/custom/node_modules/quill/formats/link.d.ts +13 -0
- package/custom/node_modules/quill/formats/link.js +36 -0
- package/custom/node_modules/quill/formats/link.js.map +1 -0
- package/custom/node_modules/quill/formats/list.d.ts +13 -0
- package/custom/node_modules/quill/formats/list.js +50 -0
- package/custom/node_modules/quill/formats/list.js.map +1 -0
- package/custom/node_modules/quill/formats/script.d.ts +8 -0
- package/custom/node_modules/quill/formats/script.js +21 -0
- package/custom/node_modules/quill/formats/script.js.map +1 -0
- package/custom/node_modules/quill/formats/size.d.ts +4 -0
- package/custom/node_modules/quill/formats/size.js +11 -0
- package/custom/node_modules/quill/formats/size.js.map +1 -0
- package/custom/node_modules/quill/formats/strike.d.ts +6 -0
- package/custom/node_modules/quill/formats/strike.js +7 -0
- package/custom/node_modules/quill/formats/strike.js.map +1 -0
- package/custom/node_modules/quill/formats/table.d.ts +45 -0
- package/custom/node_modules/quill/formats/table.js +176 -0
- package/custom/node_modules/quill/formats/table.js.map +1 -0
- package/custom/node_modules/quill/formats/underline.d.ts +6 -0
- package/custom/node_modules/quill/formats/underline.js +7 -0
- package/custom/node_modules/quill/formats/underline.js.map +1 -0
- package/custom/node_modules/quill/formats/video.d.ts +14 -0
- package/custom/node_modules/quill/formats/video.js +48 -0
- package/custom/node_modules/quill/formats/video.js.map +1 -0
- package/custom/node_modules/quill/modules/clipboard.d.ts +43 -0
- package/custom/node_modules/quill/modules/clipboard.js +475 -0
- package/custom/node_modules/quill/modules/clipboard.js.map +1 -0
- package/custom/node_modules/quill/modules/history.d.ts +36 -0
- package/custom/node_modules/quill/modules/history.js +178 -0
- package/custom/node_modules/quill/modules/history.js.map +1 -0
- package/custom/node_modules/quill/modules/input.d.ts +10 -0
- package/custom/node_modules/quill/modules/input.js +83 -0
- package/custom/node_modules/quill/modules/input.js.map +1 -0
- package/custom/node_modules/quill/modules/keyboard.d.ts +58 -0
- package/custom/node_modules/quill/modules/keyboard.js +713 -0
- package/custom/node_modules/quill/modules/keyboard.js.map +1 -0
- package/custom/node_modules/quill/modules/normalizeExternalHTML/index.d.ts +2 -0
- package/custom/node_modules/quill/modules/normalizeExternalHTML/index.js +12 -0
- package/custom/node_modules/quill/modules/normalizeExternalHTML/index.js.map +1 -0
- package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/googleDocs.d.ts +1 -0
- package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/googleDocs.js +24 -0
- package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/googleDocs.js.map +1 -0
- package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/msWord.d.ts +1 -0
- package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/msWord.js +87 -0
- package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/msWord.js.map +1 -0
- package/custom/node_modules/quill/modules/syntax.d.ts +50 -0
- package/custom/node_modules/quill/modules/syntax.js +332 -0
- package/custom/node_modules/quill/modules/syntax.js.map +1 -0
- package/custom/node_modules/quill/modules/table.d.ts +20 -0
- package/custom/node_modules/quill/modules/table.js +125 -0
- package/custom/node_modules/quill/modules/table.js.map +1 -0
- package/custom/node_modules/quill/modules/tableEmbed.d.ts +27 -0
- package/custom/node_modules/quill/modules/tableEmbed.js +209 -0
- package/custom/node_modules/quill/modules/tableEmbed.js.map +1 -0
- package/custom/node_modules/quill/modules/toolbar.d.ts +24 -0
- package/custom/node_modules/quill/modules/toolbar.js +265 -0
- package/custom/node_modules/quill/modules/toolbar.js.map +1 -0
- package/custom/node_modules/quill/modules/uiNode.d.ts +19 -0
- package/custom/node_modules/quill/modules/uiNode.js +95 -0
- package/custom/node_modules/quill/modules/uiNode.js.map +1 -0
- package/custom/node_modules/quill/modules/uploader.d.ts +15 -0
- package/custom/node_modules/quill/modules/uploader.js +69 -0
- package/custom/node_modules/quill/modules/uploader.js.map +1 -0
- package/custom/node_modules/quill/package.json +100 -0
- package/custom/node_modules/quill/quill.d.ts +6 -0
- package/custom/node_modules/quill/quill.js +83 -0
- package/custom/node_modules/quill/quill.js.map +1 -0
- package/custom/node_modules/quill/themes/base.d.ts +35 -0
- package/custom/node_modules/quill/themes/base.js +257 -0
- package/custom/node_modules/quill/themes/base.js.map +1 -0
- package/custom/node_modules/quill/themes/bubble.d.ts +18 -0
- package/custom/node_modules/quill/themes/bubble.js +114 -0
- package/custom/node_modules/quill/themes/bubble.js.map +1 -0
- package/custom/node_modules/quill/themes/snow.d.ts +9 -0
- package/custom/node_modules/quill/themes/snow.js +122 -0
- package/custom/node_modules/quill/themes/snow.js.map +1 -0
- package/custom/node_modules/quill/types.d.js +2 -0
- package/custom/node_modules/quill/types.d.js.map +1 -0
- package/custom/node_modules/quill/ui/color-picker.d.ts +7 -0
- package/custom/node_modules/quill/ui/color-picker.js +30 -0
- package/custom/node_modules/quill/ui/color-picker.js.map +1 -0
- package/custom/node_modules/quill/ui/icon-picker.d.ts +7 -0
- package/custom/node_modules/quill/ui/icon-picker.js +22 -0
- package/custom/node_modules/quill/ui/icon-picker.js.map +1 -0
- package/custom/node_modules/quill/ui/icons.d.ts +49 -0
- package/custom/node_modules/quill/ui/icons.js +82 -0
- package/custom/node_modules/quill/ui/icons.js.map +1 -0
- package/custom/node_modules/quill/ui/picker.d.ts +16 -0
- package/custom/node_modules/quill/ui/picker.js +171 -0
- package/custom/node_modules/quill/ui/picker.js.map +1 -0
- package/custom/node_modules/quill/ui/tooltip.d.ts +12 -0
- package/custom/node_modules/quill/ui/tooltip.js +56 -0
- package/custom/node_modules/quill/ui/tooltip.js.map +1 -0
- package/custom/node_modules/quill-delta/LICENSE +14 -0
- package/custom/node_modules/quill-delta/README.md +672 -0
- package/custom/node_modules/quill-delta/dist/AttributeMap.d.ts +10 -0
- package/custom/node_modules/quill-delta/dist/AttributeMap.js +86 -0
- package/custom/node_modules/quill-delta/dist/AttributeMap.js.map +1 -0
- package/custom/node_modules/quill-delta/dist/Delta.d.ts +45 -0
- package/custom/node_modules/quill-delta/dist/Delta.js +478 -0
- package/custom/node_modules/quill-delta/dist/Delta.js.map +1 -0
- package/custom/node_modules/quill-delta/dist/Op.d.ts +11 -0
- package/custom/node_modules/quill-delta/dist/Op.js +22 -0
- package/custom/node_modules/quill-delta/dist/Op.js.map +1 -0
- package/custom/node_modules/quill-delta/dist/OpIterator.d.ts +13 -0
- package/custom/node_modules/quill-delta/dist/OpIterator.js +106 -0
- package/custom/node_modules/quill-delta/dist/OpIterator.js.map +1 -0
- package/custom/node_modules/quill-delta/package.json +77 -0
- package/custom/node_modules/quill-delta/src/AttributeMap.ts +101 -0
- package/custom/node_modules/quill-delta/src/Delta.ts +573 -0
- package/custom/node_modules/quill-delta/src/Op.ts +26 -0
- package/custom/node_modules/quill-delta/src/OpIterator.ts +106 -0
- package/custom/node_modules/quill-delta/tsconfig.json +15 -0
- package/custom/quillEditor.vue +2 -2
- package/dist/custom/quillEditor.vue +2 -2
- package/dist/index.js +7 -3
- package/index.ts +8 -5
- package/package.json +1 -1
|
@@ -0,0 +1,847 @@
|
|
|
1
|
+
var Scope = /* @__PURE__ */ ((Scope2) => (Scope2[Scope2.TYPE = 3] = "TYPE", Scope2[Scope2.LEVEL = 12] = "LEVEL", Scope2[Scope2.ATTRIBUTE = 13] = "ATTRIBUTE", Scope2[Scope2.BLOT = 14] = "BLOT", Scope2[Scope2.INLINE = 7] = "INLINE", Scope2[Scope2.BLOCK = 11] = "BLOCK", Scope2[Scope2.BLOCK_BLOT = 10] = "BLOCK_BLOT", Scope2[Scope2.INLINE_BLOT = 6] = "INLINE_BLOT", Scope2[Scope2.BLOCK_ATTRIBUTE = 9] = "BLOCK_ATTRIBUTE", Scope2[Scope2.INLINE_ATTRIBUTE = 5] = "INLINE_ATTRIBUTE", Scope2[Scope2.ANY = 15] = "ANY", Scope2))(Scope || {});
|
|
2
|
+
class Attributor {
|
|
3
|
+
constructor(attrName, keyName, options = {}) {
|
|
4
|
+
this.attrName = attrName, this.keyName = keyName;
|
|
5
|
+
const attributeBit = Scope.TYPE & Scope.ATTRIBUTE;
|
|
6
|
+
this.scope = options.scope != null ? (
|
|
7
|
+
// Ignore type bits, force attribute bit
|
|
8
|
+
options.scope & Scope.LEVEL | attributeBit
|
|
9
|
+
) : Scope.ATTRIBUTE, options.whitelist != null && (this.whitelist = options.whitelist);
|
|
10
|
+
}
|
|
11
|
+
static keys(node) {
|
|
12
|
+
return Array.from(node.attributes).map((item) => item.name);
|
|
13
|
+
}
|
|
14
|
+
add(node, value) {
|
|
15
|
+
return this.canAdd(node, value) ? (node.setAttribute(this.keyName, value), !0) : !1;
|
|
16
|
+
}
|
|
17
|
+
canAdd(_node, value) {
|
|
18
|
+
return this.whitelist == null ? !0 : typeof value == "string" ? this.whitelist.indexOf(value.replace(/["']/g, "")) > -1 : this.whitelist.indexOf(value) > -1;
|
|
19
|
+
}
|
|
20
|
+
remove(node) {
|
|
21
|
+
node.removeAttribute(this.keyName);
|
|
22
|
+
}
|
|
23
|
+
value(node) {
|
|
24
|
+
const value = node.getAttribute(this.keyName);
|
|
25
|
+
return this.canAdd(node, value) && value ? value : "";
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
class ParchmentError extends Error {
|
|
29
|
+
constructor(message) {
|
|
30
|
+
message = "[Parchment] " + message, super(message), this.message = message, this.name = this.constructor.name;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
const _Registry = class _Registry {
|
|
34
|
+
constructor() {
|
|
35
|
+
this.attributes = {}, this.classes = {}, this.tags = {}, this.types = {};
|
|
36
|
+
}
|
|
37
|
+
static find(node, bubble = !1) {
|
|
38
|
+
if (node == null)
|
|
39
|
+
return null;
|
|
40
|
+
if (this.blots.has(node))
|
|
41
|
+
return this.blots.get(node) || null;
|
|
42
|
+
if (bubble) {
|
|
43
|
+
let parentNode = null;
|
|
44
|
+
try {
|
|
45
|
+
parentNode = node.parentNode;
|
|
46
|
+
} catch {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return this.find(parentNode, bubble);
|
|
50
|
+
}
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
create(scroll, input, value) {
|
|
54
|
+
const match2 = this.query(input);
|
|
55
|
+
if (match2 == null)
|
|
56
|
+
throw new ParchmentError(`Unable to create ${input} blot`);
|
|
57
|
+
const blotClass = match2, node = (
|
|
58
|
+
// @ts-expect-error Fix me later
|
|
59
|
+
input instanceof Node || input.nodeType === Node.TEXT_NODE ? input : blotClass.create(value)
|
|
60
|
+
), blot = new blotClass(scroll, node, value);
|
|
61
|
+
return _Registry.blots.set(blot.domNode, blot), blot;
|
|
62
|
+
}
|
|
63
|
+
find(node, bubble = !1) {
|
|
64
|
+
return _Registry.find(node, bubble);
|
|
65
|
+
}
|
|
66
|
+
query(query, scope = Scope.ANY) {
|
|
67
|
+
let match2;
|
|
68
|
+
return typeof query == "string" ? match2 = this.types[query] || this.attributes[query] : query instanceof Text || query.nodeType === Node.TEXT_NODE ? match2 = this.types.text : typeof query == "number" ? query & Scope.LEVEL & Scope.BLOCK ? match2 = this.types.block : query & Scope.LEVEL & Scope.INLINE && (match2 = this.types.inline) : query instanceof Element && ((query.getAttribute("class") || "").split(/\s+/).some((name) => (match2 = this.classes[name], !!match2)), match2 = match2 || this.tags[query.tagName]), match2 == null ? null : "scope" in match2 && scope & Scope.LEVEL & match2.scope && scope & Scope.TYPE & match2.scope ? match2 : null;
|
|
69
|
+
}
|
|
70
|
+
register(...definitions) {
|
|
71
|
+
return definitions.map((definition) => {
|
|
72
|
+
const isBlot = "blotName" in definition, isAttr = "attrName" in definition;
|
|
73
|
+
if (!isBlot && !isAttr)
|
|
74
|
+
throw new ParchmentError("Invalid definition");
|
|
75
|
+
if (isBlot && definition.blotName === "abstract")
|
|
76
|
+
throw new ParchmentError("Cannot register abstract class");
|
|
77
|
+
const key = isBlot ? definition.blotName : isAttr ? definition.attrName : void 0;
|
|
78
|
+
return this.types[key] = definition, isAttr ? typeof definition.keyName == "string" && (this.attributes[definition.keyName] = definition) : isBlot && (definition.className && (this.classes[definition.className] = definition), definition.tagName && (Array.isArray(definition.tagName) ? definition.tagName = definition.tagName.map((tagName) => tagName.toUpperCase()) : definition.tagName = definition.tagName.toUpperCase(), (Array.isArray(definition.tagName) ? definition.tagName : [definition.tagName]).forEach((tag) => {
|
|
79
|
+
(this.tags[tag] == null || definition.className == null) && (this.tags[tag] = definition);
|
|
80
|
+
}))), definition;
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
_Registry.blots = /* @__PURE__ */ new WeakMap();
|
|
85
|
+
let Registry = _Registry;
|
|
86
|
+
function match(node, prefix) {
|
|
87
|
+
return (node.getAttribute("class") || "").split(/\s+/).filter((name) => name.indexOf(`${prefix}-`) === 0);
|
|
88
|
+
}
|
|
89
|
+
class ClassAttributor extends Attributor {
|
|
90
|
+
static keys(node) {
|
|
91
|
+
return (node.getAttribute("class") || "").split(/\s+/).map((name) => name.split("-").slice(0, -1).join("-"));
|
|
92
|
+
}
|
|
93
|
+
add(node, value) {
|
|
94
|
+
return this.canAdd(node, value) ? (this.remove(node), node.classList.add(`${this.keyName}-${value}`), !0) : !1;
|
|
95
|
+
}
|
|
96
|
+
remove(node) {
|
|
97
|
+
match(node, this.keyName).forEach((name) => {
|
|
98
|
+
node.classList.remove(name);
|
|
99
|
+
}), node.classList.length === 0 && node.removeAttribute("class");
|
|
100
|
+
}
|
|
101
|
+
value(node) {
|
|
102
|
+
const value = (match(node, this.keyName)[0] || "").slice(this.keyName.length + 1);
|
|
103
|
+
return this.canAdd(node, value) ? value : "";
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
const ClassAttributor$1 = ClassAttributor;
|
|
107
|
+
function camelize(name) {
|
|
108
|
+
const parts = name.split("-"), rest = parts.slice(1).map((part) => part[0].toUpperCase() + part.slice(1)).join("");
|
|
109
|
+
return parts[0] + rest;
|
|
110
|
+
}
|
|
111
|
+
class StyleAttributor extends Attributor {
|
|
112
|
+
static keys(node) {
|
|
113
|
+
return (node.getAttribute("style") || "").split(";").map((value) => value.split(":")[0].trim());
|
|
114
|
+
}
|
|
115
|
+
add(node, value) {
|
|
116
|
+
return this.canAdd(node, value) ? (node.style[camelize(this.keyName)] = value, !0) : !1;
|
|
117
|
+
}
|
|
118
|
+
remove(node) {
|
|
119
|
+
node.style[camelize(this.keyName)] = "", node.getAttribute("style") || node.removeAttribute("style");
|
|
120
|
+
}
|
|
121
|
+
value(node) {
|
|
122
|
+
const value = node.style[camelize(this.keyName)];
|
|
123
|
+
return this.canAdd(node, value) ? value : "";
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
const StyleAttributor$1 = StyleAttributor;
|
|
127
|
+
class AttributorStore {
|
|
128
|
+
constructor(domNode) {
|
|
129
|
+
this.attributes = {}, this.domNode = domNode, this.build();
|
|
130
|
+
}
|
|
131
|
+
attribute(attribute, value) {
|
|
132
|
+
value ? attribute.add(this.domNode, value) && (attribute.value(this.domNode) != null ? this.attributes[attribute.attrName] = attribute : delete this.attributes[attribute.attrName]) : (attribute.remove(this.domNode), delete this.attributes[attribute.attrName]);
|
|
133
|
+
}
|
|
134
|
+
build() {
|
|
135
|
+
this.attributes = {};
|
|
136
|
+
const blot = Registry.find(this.domNode);
|
|
137
|
+
if (blot == null)
|
|
138
|
+
return;
|
|
139
|
+
const attributes = Attributor.keys(this.domNode), classes = ClassAttributor$1.keys(this.domNode), styles = StyleAttributor$1.keys(this.domNode);
|
|
140
|
+
attributes.concat(classes).concat(styles).forEach((name) => {
|
|
141
|
+
const attr = blot.scroll.query(name, Scope.ATTRIBUTE);
|
|
142
|
+
attr instanceof Attributor && (this.attributes[attr.attrName] = attr);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
copy(target) {
|
|
146
|
+
Object.keys(this.attributes).forEach((key) => {
|
|
147
|
+
const value = this.attributes[key].value(this.domNode);
|
|
148
|
+
target.format(key, value);
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
move(target) {
|
|
152
|
+
this.copy(target), Object.keys(this.attributes).forEach((key) => {
|
|
153
|
+
this.attributes[key].remove(this.domNode);
|
|
154
|
+
}), this.attributes = {};
|
|
155
|
+
}
|
|
156
|
+
values() {
|
|
157
|
+
return Object.keys(this.attributes).reduce(
|
|
158
|
+
(attributes, name) => (attributes[name] = this.attributes[name].value(this.domNode), attributes),
|
|
159
|
+
{}
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
const AttributorStore$1 = AttributorStore, _ShadowBlot = class _ShadowBlot {
|
|
164
|
+
constructor(scroll, domNode) {
|
|
165
|
+
this.scroll = scroll, this.domNode = domNode, Registry.blots.set(domNode, this), this.prev = null, this.next = null;
|
|
166
|
+
}
|
|
167
|
+
static create(rawValue) {
|
|
168
|
+
if (this.tagName == null)
|
|
169
|
+
throw new ParchmentError("Blot definition missing tagName");
|
|
170
|
+
let node, value;
|
|
171
|
+
return Array.isArray(this.tagName) ? (typeof rawValue == "string" ? (value = rawValue.toUpperCase(), parseInt(value, 10).toString() === value && (value = parseInt(value, 10))) : typeof rawValue == "number" && (value = rawValue), typeof value == "number" ? node = document.createElement(this.tagName[value - 1]) : value && this.tagName.indexOf(value) > -1 ? node = document.createElement(value) : node = document.createElement(this.tagName[0])) : node = document.createElement(this.tagName), this.className && node.classList.add(this.className), node;
|
|
172
|
+
}
|
|
173
|
+
// Hack for accessing inherited static methods
|
|
174
|
+
get statics() {
|
|
175
|
+
return this.constructor;
|
|
176
|
+
}
|
|
177
|
+
attach() {
|
|
178
|
+
}
|
|
179
|
+
clone() {
|
|
180
|
+
const domNode = this.domNode.cloneNode(!1);
|
|
181
|
+
return this.scroll.create(domNode);
|
|
182
|
+
}
|
|
183
|
+
detach() {
|
|
184
|
+
this.parent != null && this.parent.removeChild(this), Registry.blots.delete(this.domNode);
|
|
185
|
+
}
|
|
186
|
+
deleteAt(index, length) {
|
|
187
|
+
this.isolate(index, length).remove();
|
|
188
|
+
}
|
|
189
|
+
formatAt(index, length, name, value) {
|
|
190
|
+
const blot = this.isolate(index, length);
|
|
191
|
+
if (this.scroll.query(name, Scope.BLOT) != null && value)
|
|
192
|
+
blot.wrap(name, value);
|
|
193
|
+
else if (this.scroll.query(name, Scope.ATTRIBUTE) != null) {
|
|
194
|
+
const parent = this.scroll.create(this.statics.scope);
|
|
195
|
+
blot.wrap(parent), parent.format(name, value);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
insertAt(index, value, def) {
|
|
199
|
+
const blot = def == null ? this.scroll.create("text", value) : this.scroll.create(value, def), ref = this.split(index);
|
|
200
|
+
this.parent.insertBefore(blot, ref || void 0);
|
|
201
|
+
}
|
|
202
|
+
isolate(index, length) {
|
|
203
|
+
const target = this.split(index);
|
|
204
|
+
if (target == null)
|
|
205
|
+
throw new Error("Attempt to isolate at end");
|
|
206
|
+
return target.split(length), target;
|
|
207
|
+
}
|
|
208
|
+
length() {
|
|
209
|
+
return 1;
|
|
210
|
+
}
|
|
211
|
+
offset(root = this.parent) {
|
|
212
|
+
return this.parent == null || this === root ? 0 : this.parent.children.offset(this) + this.parent.offset(root);
|
|
213
|
+
}
|
|
214
|
+
optimize(_context) {
|
|
215
|
+
this.statics.requiredContainer && !(this.parent instanceof this.statics.requiredContainer) && this.wrap(this.statics.requiredContainer.blotName);
|
|
216
|
+
}
|
|
217
|
+
remove() {
|
|
218
|
+
this.domNode.parentNode != null && this.domNode.parentNode.removeChild(this.domNode), this.detach();
|
|
219
|
+
}
|
|
220
|
+
replaceWith(name, value) {
|
|
221
|
+
const replacement = typeof name == "string" ? this.scroll.create(name, value) : name;
|
|
222
|
+
return this.parent != null && (this.parent.insertBefore(replacement, this.next || void 0), this.remove()), replacement;
|
|
223
|
+
}
|
|
224
|
+
split(index, _force) {
|
|
225
|
+
return index === 0 ? this : this.next;
|
|
226
|
+
}
|
|
227
|
+
update(_mutations, _context) {
|
|
228
|
+
}
|
|
229
|
+
wrap(name, value) {
|
|
230
|
+
const wrapper = typeof name == "string" ? this.scroll.create(name, value) : name;
|
|
231
|
+
if (this.parent != null && this.parent.insertBefore(wrapper, this.next || void 0), typeof wrapper.appendChild != "function")
|
|
232
|
+
throw new ParchmentError(`Cannot wrap ${name}`);
|
|
233
|
+
return wrapper.appendChild(this), wrapper;
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
_ShadowBlot.blotName = "abstract";
|
|
237
|
+
let ShadowBlot = _ShadowBlot;
|
|
238
|
+
const _LeafBlot = class _LeafBlot extends ShadowBlot {
|
|
239
|
+
/**
|
|
240
|
+
* Returns the value represented by domNode if it is this Blot's type
|
|
241
|
+
* No checking that domNode can represent this Blot type is required so
|
|
242
|
+
* applications needing it should check externally before calling.
|
|
243
|
+
*/
|
|
244
|
+
static value(_domNode) {
|
|
245
|
+
return !0;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Given location represented by node and offset from DOM Selection Range,
|
|
249
|
+
* return index to that location.
|
|
250
|
+
*/
|
|
251
|
+
index(node, offset) {
|
|
252
|
+
return this.domNode === node || this.domNode.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_CONTAINED_BY ? Math.min(offset, 1) : -1;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Given index to location within blot, return node and offset representing
|
|
256
|
+
* that location, consumable by DOM Selection Range
|
|
257
|
+
*/
|
|
258
|
+
position(index, _inclusive) {
|
|
259
|
+
let offset = Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);
|
|
260
|
+
return index > 0 && (offset += 1), [this.parent.domNode, offset];
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Return value represented by this blot
|
|
264
|
+
* Should not change without interaction from API or
|
|
265
|
+
* user change detectable by update()
|
|
266
|
+
*/
|
|
267
|
+
value() {
|
|
268
|
+
return {
|
|
269
|
+
[this.statics.blotName]: this.statics.value(this.domNode) || !0
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
_LeafBlot.scope = Scope.INLINE_BLOT;
|
|
274
|
+
let LeafBlot = _LeafBlot;
|
|
275
|
+
const LeafBlot$1 = LeafBlot;
|
|
276
|
+
class LinkedList {
|
|
277
|
+
constructor() {
|
|
278
|
+
this.head = null, this.tail = null, this.length = 0;
|
|
279
|
+
}
|
|
280
|
+
append(...nodes) {
|
|
281
|
+
if (this.insertBefore(nodes[0], null), nodes.length > 1) {
|
|
282
|
+
const rest = nodes.slice(1);
|
|
283
|
+
this.append(...rest);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
at(index) {
|
|
287
|
+
const next = this.iterator();
|
|
288
|
+
let cur = next();
|
|
289
|
+
for (; cur && index > 0; )
|
|
290
|
+
index -= 1, cur = next();
|
|
291
|
+
return cur;
|
|
292
|
+
}
|
|
293
|
+
contains(node) {
|
|
294
|
+
const next = this.iterator();
|
|
295
|
+
let cur = next();
|
|
296
|
+
for (; cur; ) {
|
|
297
|
+
if (cur === node)
|
|
298
|
+
return !0;
|
|
299
|
+
cur = next();
|
|
300
|
+
}
|
|
301
|
+
return !1;
|
|
302
|
+
}
|
|
303
|
+
indexOf(node) {
|
|
304
|
+
const next = this.iterator();
|
|
305
|
+
let cur = next(), index = 0;
|
|
306
|
+
for (; cur; ) {
|
|
307
|
+
if (cur === node)
|
|
308
|
+
return index;
|
|
309
|
+
index += 1, cur = next();
|
|
310
|
+
}
|
|
311
|
+
return -1;
|
|
312
|
+
}
|
|
313
|
+
insertBefore(node, refNode) {
|
|
314
|
+
node != null && (this.remove(node), node.next = refNode, refNode != null ? (node.prev = refNode.prev, refNode.prev != null && (refNode.prev.next = node), refNode.prev = node, refNode === this.head && (this.head = node)) : this.tail != null ? (this.tail.next = node, node.prev = this.tail, this.tail = node) : (node.prev = null, this.head = this.tail = node), this.length += 1);
|
|
315
|
+
}
|
|
316
|
+
offset(target) {
|
|
317
|
+
let index = 0, cur = this.head;
|
|
318
|
+
for (; cur != null; ) {
|
|
319
|
+
if (cur === target)
|
|
320
|
+
return index;
|
|
321
|
+
index += cur.length(), cur = cur.next;
|
|
322
|
+
}
|
|
323
|
+
return -1;
|
|
324
|
+
}
|
|
325
|
+
remove(node) {
|
|
326
|
+
this.contains(node) && (node.prev != null && (node.prev.next = node.next), node.next != null && (node.next.prev = node.prev), node === this.head && (this.head = node.next), node === this.tail && (this.tail = node.prev), this.length -= 1);
|
|
327
|
+
}
|
|
328
|
+
iterator(curNode = this.head) {
|
|
329
|
+
return () => {
|
|
330
|
+
const ret = curNode;
|
|
331
|
+
return curNode != null && (curNode = curNode.next), ret;
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
find(index, inclusive = !1) {
|
|
335
|
+
const next = this.iterator();
|
|
336
|
+
let cur = next();
|
|
337
|
+
for (; cur; ) {
|
|
338
|
+
const length = cur.length();
|
|
339
|
+
if (index < length || inclusive && index === length && (cur.next == null || cur.next.length() !== 0))
|
|
340
|
+
return [cur, index];
|
|
341
|
+
index -= length, cur = next();
|
|
342
|
+
}
|
|
343
|
+
return [null, 0];
|
|
344
|
+
}
|
|
345
|
+
forEach(callback) {
|
|
346
|
+
const next = this.iterator();
|
|
347
|
+
let cur = next();
|
|
348
|
+
for (; cur; )
|
|
349
|
+
callback(cur), cur = next();
|
|
350
|
+
}
|
|
351
|
+
forEachAt(index, length, callback) {
|
|
352
|
+
if (length <= 0)
|
|
353
|
+
return;
|
|
354
|
+
const [startNode, offset] = this.find(index);
|
|
355
|
+
let curIndex = index - offset;
|
|
356
|
+
const next = this.iterator(startNode);
|
|
357
|
+
let cur = next();
|
|
358
|
+
for (; cur && curIndex < index + length; ) {
|
|
359
|
+
const curLength = cur.length();
|
|
360
|
+
index > curIndex ? callback(
|
|
361
|
+
cur,
|
|
362
|
+
index - curIndex,
|
|
363
|
+
Math.min(length, curIndex + curLength - index)
|
|
364
|
+
) : callback(cur, 0, Math.min(curLength, index + length - curIndex)), curIndex += curLength, cur = next();
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
map(callback) {
|
|
368
|
+
return this.reduce((memo, cur) => (memo.push(callback(cur)), memo), []);
|
|
369
|
+
}
|
|
370
|
+
reduce(callback, memo) {
|
|
371
|
+
const next = this.iterator();
|
|
372
|
+
let cur = next();
|
|
373
|
+
for (; cur; )
|
|
374
|
+
memo = callback(memo, cur), cur = next();
|
|
375
|
+
return memo;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
function makeAttachedBlot(node, scroll) {
|
|
379
|
+
const found = scroll.find(node);
|
|
380
|
+
if (found)
|
|
381
|
+
return found;
|
|
382
|
+
try {
|
|
383
|
+
return scroll.create(node);
|
|
384
|
+
} catch {
|
|
385
|
+
const blot = scroll.create(Scope.INLINE);
|
|
386
|
+
return Array.from(node.childNodes).forEach((child) => {
|
|
387
|
+
blot.domNode.appendChild(child);
|
|
388
|
+
}), node.parentNode && node.parentNode.replaceChild(blot.domNode, node), blot.attach(), blot;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
const _ParentBlot = class _ParentBlot extends ShadowBlot {
|
|
392
|
+
constructor(scroll, domNode) {
|
|
393
|
+
super(scroll, domNode), this.uiNode = null, this.build();
|
|
394
|
+
}
|
|
395
|
+
appendChild(other) {
|
|
396
|
+
this.insertBefore(other);
|
|
397
|
+
}
|
|
398
|
+
attach() {
|
|
399
|
+
super.attach(), this.children.forEach((child) => {
|
|
400
|
+
child.attach();
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
attachUI(node) {
|
|
404
|
+
this.uiNode != null && this.uiNode.remove(), this.uiNode = node, _ParentBlot.uiClass && this.uiNode.classList.add(_ParentBlot.uiClass), this.uiNode.setAttribute("contenteditable", "false"), this.domNode.insertBefore(this.uiNode, this.domNode.firstChild);
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* Called during construction, should fill its own children LinkedList.
|
|
408
|
+
*/
|
|
409
|
+
build() {
|
|
410
|
+
this.children = new LinkedList(), Array.from(this.domNode.childNodes).filter((node) => node !== this.uiNode).reverse().forEach((node) => {
|
|
411
|
+
try {
|
|
412
|
+
const child = makeAttachedBlot(node, this.scroll);
|
|
413
|
+
this.insertBefore(child, this.children.head || void 0);
|
|
414
|
+
} catch (err) {
|
|
415
|
+
if (err instanceof ParchmentError)
|
|
416
|
+
return;
|
|
417
|
+
throw err;
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
deleteAt(index, length) {
|
|
422
|
+
if (index === 0 && length === this.length())
|
|
423
|
+
return this.remove();
|
|
424
|
+
this.children.forEachAt(index, length, (child, offset, childLength) => {
|
|
425
|
+
child.deleteAt(offset, childLength);
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
descendant(criteria, index = 0) {
|
|
429
|
+
const [child, offset] = this.children.find(index);
|
|
430
|
+
return criteria.blotName == null && criteria(child) || criteria.blotName != null && child instanceof criteria ? [child, offset] : child instanceof _ParentBlot ? child.descendant(criteria, offset) : [null, -1];
|
|
431
|
+
}
|
|
432
|
+
descendants(criteria, index = 0, length = Number.MAX_VALUE) {
|
|
433
|
+
let descendants = [], lengthLeft = length;
|
|
434
|
+
return this.children.forEachAt(
|
|
435
|
+
index,
|
|
436
|
+
length,
|
|
437
|
+
(child, childIndex, childLength) => {
|
|
438
|
+
(criteria.blotName == null && criteria(child) || criteria.blotName != null && child instanceof criteria) && descendants.push(child), child instanceof _ParentBlot && (descendants = descendants.concat(
|
|
439
|
+
child.descendants(criteria, childIndex, lengthLeft)
|
|
440
|
+
)), lengthLeft -= childLength;
|
|
441
|
+
}
|
|
442
|
+
), descendants;
|
|
443
|
+
}
|
|
444
|
+
detach() {
|
|
445
|
+
this.children.forEach((child) => {
|
|
446
|
+
child.detach();
|
|
447
|
+
}), super.detach();
|
|
448
|
+
}
|
|
449
|
+
enforceAllowedChildren() {
|
|
450
|
+
let done = !1;
|
|
451
|
+
this.children.forEach((child) => {
|
|
452
|
+
done || this.statics.allowedChildren.some(
|
|
453
|
+
(def) => child instanceof def
|
|
454
|
+
) || (child.statics.scope === Scope.BLOCK_BLOT ? (child.next != null && this.splitAfter(child), child.prev != null && this.splitAfter(child.prev), child.parent.unwrap(), done = !0) : child instanceof _ParentBlot ? child.unwrap() : child.remove());
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
formatAt(index, length, name, value) {
|
|
458
|
+
this.children.forEachAt(index, length, (child, offset, childLength) => {
|
|
459
|
+
child.formatAt(offset, childLength, name, value);
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
insertAt(index, value, def) {
|
|
463
|
+
const [child, offset] = this.children.find(index);
|
|
464
|
+
if (child)
|
|
465
|
+
child.insertAt(offset, value, def);
|
|
466
|
+
else {
|
|
467
|
+
const blot = def == null ? this.scroll.create("text", value) : this.scroll.create(value, def);
|
|
468
|
+
this.appendChild(blot);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
insertBefore(childBlot, refBlot) {
|
|
472
|
+
childBlot.parent != null && childBlot.parent.children.remove(childBlot);
|
|
473
|
+
let refDomNode = null;
|
|
474
|
+
this.children.insertBefore(childBlot, refBlot || null), childBlot.parent = this, refBlot != null && (refDomNode = refBlot.domNode), (this.domNode.parentNode !== childBlot.domNode || this.domNode.nextSibling !== refDomNode) && this.domNode.insertBefore(childBlot.domNode, refDomNode), childBlot.attach();
|
|
475
|
+
}
|
|
476
|
+
length() {
|
|
477
|
+
return this.children.reduce((memo, child) => memo + child.length(), 0);
|
|
478
|
+
}
|
|
479
|
+
moveChildren(targetParent, refNode) {
|
|
480
|
+
this.children.forEach((child) => {
|
|
481
|
+
targetParent.insertBefore(child, refNode);
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
optimize(context) {
|
|
485
|
+
if (super.optimize(context), this.enforceAllowedChildren(), this.uiNode != null && this.uiNode !== this.domNode.firstChild && this.domNode.insertBefore(this.uiNode, this.domNode.firstChild), this.children.length === 0)
|
|
486
|
+
if (this.statics.defaultChild != null) {
|
|
487
|
+
const child = this.scroll.create(this.statics.defaultChild.blotName);
|
|
488
|
+
this.appendChild(child);
|
|
489
|
+
} else
|
|
490
|
+
this.remove();
|
|
491
|
+
}
|
|
492
|
+
path(index, inclusive = !1) {
|
|
493
|
+
const [child, offset] = this.children.find(index, inclusive), position = [[this, index]];
|
|
494
|
+
return child instanceof _ParentBlot ? position.concat(child.path(offset, inclusive)) : (child != null && position.push([child, offset]), position);
|
|
495
|
+
}
|
|
496
|
+
removeChild(child) {
|
|
497
|
+
this.children.remove(child);
|
|
498
|
+
}
|
|
499
|
+
replaceWith(name, value) {
|
|
500
|
+
const replacement = typeof name == "string" ? this.scroll.create(name, value) : name;
|
|
501
|
+
return replacement instanceof _ParentBlot && this.moveChildren(replacement), super.replaceWith(replacement);
|
|
502
|
+
}
|
|
503
|
+
split(index, force = !1) {
|
|
504
|
+
if (!force) {
|
|
505
|
+
if (index === 0)
|
|
506
|
+
return this;
|
|
507
|
+
if (index === this.length())
|
|
508
|
+
return this.next;
|
|
509
|
+
}
|
|
510
|
+
const after = this.clone();
|
|
511
|
+
return this.parent && this.parent.insertBefore(after, this.next || void 0), this.children.forEachAt(index, this.length(), (child, offset, _length) => {
|
|
512
|
+
const split = child.split(offset, force);
|
|
513
|
+
split != null && after.appendChild(split);
|
|
514
|
+
}), after;
|
|
515
|
+
}
|
|
516
|
+
splitAfter(child) {
|
|
517
|
+
const after = this.clone();
|
|
518
|
+
for (; child.next != null; )
|
|
519
|
+
after.appendChild(child.next);
|
|
520
|
+
return this.parent && this.parent.insertBefore(after, this.next || void 0), after;
|
|
521
|
+
}
|
|
522
|
+
unwrap() {
|
|
523
|
+
this.parent && this.moveChildren(this.parent, this.next || void 0), this.remove();
|
|
524
|
+
}
|
|
525
|
+
update(mutations, _context) {
|
|
526
|
+
const addedNodes = [], removedNodes = [];
|
|
527
|
+
mutations.forEach((mutation) => {
|
|
528
|
+
mutation.target === this.domNode && mutation.type === "childList" && (addedNodes.push(...mutation.addedNodes), removedNodes.push(...mutation.removedNodes));
|
|
529
|
+
}), removedNodes.forEach((node) => {
|
|
530
|
+
if (node.parentNode != null && // @ts-expect-error Fix me later
|
|
531
|
+
node.tagName !== "IFRAME" && document.body.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_CONTAINED_BY)
|
|
532
|
+
return;
|
|
533
|
+
const blot = this.scroll.find(node);
|
|
534
|
+
blot != null && (blot.domNode.parentNode == null || blot.domNode.parentNode === this.domNode) && blot.detach();
|
|
535
|
+
}), addedNodes.filter((node) => node.parentNode === this.domNode && node !== this.uiNode).sort((a, b) => a === b ? 0 : a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING ? 1 : -1).forEach((node) => {
|
|
536
|
+
let refBlot = null;
|
|
537
|
+
node.nextSibling != null && (refBlot = this.scroll.find(node.nextSibling));
|
|
538
|
+
const blot = makeAttachedBlot(node, this.scroll);
|
|
539
|
+
(blot.next !== refBlot || blot.next == null) && (blot.parent != null && blot.parent.removeChild(this), this.insertBefore(blot, refBlot || void 0));
|
|
540
|
+
}), this.enforceAllowedChildren();
|
|
541
|
+
}
|
|
542
|
+
};
|
|
543
|
+
_ParentBlot.uiClass = "";
|
|
544
|
+
let ParentBlot = _ParentBlot;
|
|
545
|
+
const ParentBlot$1 = ParentBlot;
|
|
546
|
+
function isEqual(obj1, obj2) {
|
|
547
|
+
if (Object.keys(obj1).length !== Object.keys(obj2).length)
|
|
548
|
+
return !1;
|
|
549
|
+
for (const prop in obj1)
|
|
550
|
+
if (obj1[prop] !== obj2[prop])
|
|
551
|
+
return !1;
|
|
552
|
+
return !0;
|
|
553
|
+
}
|
|
554
|
+
const _InlineBlot = class _InlineBlot extends ParentBlot$1 {
|
|
555
|
+
static create(value) {
|
|
556
|
+
return super.create(value);
|
|
557
|
+
}
|
|
558
|
+
static formats(domNode, scroll) {
|
|
559
|
+
const match2 = scroll.query(_InlineBlot.blotName);
|
|
560
|
+
if (!(match2 != null && domNode.tagName === match2.tagName)) {
|
|
561
|
+
if (typeof this.tagName == "string")
|
|
562
|
+
return !0;
|
|
563
|
+
if (Array.isArray(this.tagName))
|
|
564
|
+
return domNode.tagName.toLowerCase();
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
constructor(scroll, domNode) {
|
|
568
|
+
super(scroll, domNode), this.attributes = new AttributorStore$1(this.domNode);
|
|
569
|
+
}
|
|
570
|
+
format(name, value) {
|
|
571
|
+
if (name === this.statics.blotName && !value)
|
|
572
|
+
this.children.forEach((child) => {
|
|
573
|
+
child instanceof _InlineBlot || (child = child.wrap(_InlineBlot.blotName, !0)), this.attributes.copy(child);
|
|
574
|
+
}), this.unwrap();
|
|
575
|
+
else {
|
|
576
|
+
const format = this.scroll.query(name, Scope.INLINE);
|
|
577
|
+
if (format == null)
|
|
578
|
+
return;
|
|
579
|
+
format instanceof Attributor ? this.attributes.attribute(format, value) : value && (name !== this.statics.blotName || this.formats()[name] !== value) && this.replaceWith(name, value);
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
formats() {
|
|
583
|
+
const formats = this.attributes.values(), format = this.statics.formats(this.domNode, this.scroll);
|
|
584
|
+
return format != null && (formats[this.statics.blotName] = format), formats;
|
|
585
|
+
}
|
|
586
|
+
formatAt(index, length, name, value) {
|
|
587
|
+
this.formats()[name] != null || this.scroll.query(name, Scope.ATTRIBUTE) ? this.isolate(index, length).format(name, value) : super.formatAt(index, length, name, value);
|
|
588
|
+
}
|
|
589
|
+
optimize(context) {
|
|
590
|
+
super.optimize(context);
|
|
591
|
+
const formats = this.formats();
|
|
592
|
+
if (Object.keys(formats).length === 0)
|
|
593
|
+
return this.unwrap();
|
|
594
|
+
const next = this.next;
|
|
595
|
+
next instanceof _InlineBlot && next.prev === this && isEqual(formats, next.formats()) && (next.moveChildren(this), next.remove());
|
|
596
|
+
}
|
|
597
|
+
replaceWith(name, value) {
|
|
598
|
+
const replacement = super.replaceWith(name, value);
|
|
599
|
+
return this.attributes.copy(replacement), replacement;
|
|
600
|
+
}
|
|
601
|
+
update(mutations, context) {
|
|
602
|
+
super.update(mutations, context), mutations.some(
|
|
603
|
+
(mutation) => mutation.target === this.domNode && mutation.type === "attributes"
|
|
604
|
+
) && this.attributes.build();
|
|
605
|
+
}
|
|
606
|
+
wrap(name, value) {
|
|
607
|
+
const wrapper = super.wrap(name, value);
|
|
608
|
+
return wrapper instanceof _InlineBlot && this.attributes.move(wrapper), wrapper;
|
|
609
|
+
}
|
|
610
|
+
};
|
|
611
|
+
_InlineBlot.allowedChildren = [_InlineBlot, LeafBlot$1], _InlineBlot.blotName = "inline", _InlineBlot.scope = Scope.INLINE_BLOT, _InlineBlot.tagName = "SPAN";
|
|
612
|
+
let InlineBlot = _InlineBlot;
|
|
613
|
+
const InlineBlot$1 = InlineBlot, _BlockBlot = class _BlockBlot extends ParentBlot$1 {
|
|
614
|
+
static create(value) {
|
|
615
|
+
return super.create(value);
|
|
616
|
+
}
|
|
617
|
+
static formats(domNode, scroll) {
|
|
618
|
+
const match2 = scroll.query(_BlockBlot.blotName);
|
|
619
|
+
if (!(match2 != null && domNode.tagName === match2.tagName)) {
|
|
620
|
+
if (typeof this.tagName == "string")
|
|
621
|
+
return !0;
|
|
622
|
+
if (Array.isArray(this.tagName))
|
|
623
|
+
return domNode.tagName.toLowerCase();
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
constructor(scroll, domNode) {
|
|
627
|
+
super(scroll, domNode), this.attributes = new AttributorStore$1(this.domNode);
|
|
628
|
+
}
|
|
629
|
+
format(name, value) {
|
|
630
|
+
const format = this.scroll.query(name, Scope.BLOCK);
|
|
631
|
+
format != null && (format instanceof Attributor ? this.attributes.attribute(format, value) : name === this.statics.blotName && !value ? this.replaceWith(_BlockBlot.blotName) : value && (name !== this.statics.blotName || this.formats()[name] !== value) && this.replaceWith(name, value));
|
|
632
|
+
}
|
|
633
|
+
formats() {
|
|
634
|
+
const formats = this.attributes.values(), format = this.statics.formats(this.domNode, this.scroll);
|
|
635
|
+
return format != null && (formats[this.statics.blotName] = format), formats;
|
|
636
|
+
}
|
|
637
|
+
formatAt(index, length, name, value) {
|
|
638
|
+
this.scroll.query(name, Scope.BLOCK) != null ? this.format(name, value) : super.formatAt(index, length, name, value);
|
|
639
|
+
}
|
|
640
|
+
insertAt(index, value, def) {
|
|
641
|
+
if (def == null || this.scroll.query(value, Scope.INLINE) != null)
|
|
642
|
+
super.insertAt(index, value, def);
|
|
643
|
+
else {
|
|
644
|
+
const after = this.split(index);
|
|
645
|
+
if (after != null) {
|
|
646
|
+
const blot = this.scroll.create(value, def);
|
|
647
|
+
after.parent.insertBefore(blot, after);
|
|
648
|
+
} else
|
|
649
|
+
throw new Error("Attempt to insertAt after block boundaries");
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
replaceWith(name, value) {
|
|
653
|
+
const replacement = super.replaceWith(name, value);
|
|
654
|
+
return this.attributes.copy(replacement), replacement;
|
|
655
|
+
}
|
|
656
|
+
update(mutations, context) {
|
|
657
|
+
super.update(mutations, context), mutations.some(
|
|
658
|
+
(mutation) => mutation.target === this.domNode && mutation.type === "attributes"
|
|
659
|
+
) && this.attributes.build();
|
|
660
|
+
}
|
|
661
|
+
};
|
|
662
|
+
_BlockBlot.blotName = "block", _BlockBlot.scope = Scope.BLOCK_BLOT, _BlockBlot.tagName = "P", _BlockBlot.allowedChildren = [
|
|
663
|
+
InlineBlot$1,
|
|
664
|
+
_BlockBlot,
|
|
665
|
+
LeafBlot$1
|
|
666
|
+
];
|
|
667
|
+
let BlockBlot = _BlockBlot;
|
|
668
|
+
const BlockBlot$1 = BlockBlot, _ContainerBlot = class _ContainerBlot extends ParentBlot$1 {
|
|
669
|
+
checkMerge() {
|
|
670
|
+
return this.next !== null && this.next.statics.blotName === this.statics.blotName;
|
|
671
|
+
}
|
|
672
|
+
deleteAt(index, length) {
|
|
673
|
+
super.deleteAt(index, length), this.enforceAllowedChildren();
|
|
674
|
+
}
|
|
675
|
+
formatAt(index, length, name, value) {
|
|
676
|
+
super.formatAt(index, length, name, value), this.enforceAllowedChildren();
|
|
677
|
+
}
|
|
678
|
+
insertAt(index, value, def) {
|
|
679
|
+
super.insertAt(index, value, def), this.enforceAllowedChildren();
|
|
680
|
+
}
|
|
681
|
+
optimize(context) {
|
|
682
|
+
super.optimize(context), this.children.length > 0 && this.next != null && this.checkMerge() && (this.next.moveChildren(this), this.next.remove());
|
|
683
|
+
}
|
|
684
|
+
};
|
|
685
|
+
_ContainerBlot.blotName = "container", _ContainerBlot.scope = Scope.BLOCK_BLOT;
|
|
686
|
+
let ContainerBlot = _ContainerBlot;
|
|
687
|
+
const ContainerBlot$1 = ContainerBlot;
|
|
688
|
+
class EmbedBlot extends LeafBlot$1 {
|
|
689
|
+
static formats(_domNode, _scroll) {
|
|
690
|
+
}
|
|
691
|
+
format(name, value) {
|
|
692
|
+
super.formatAt(0, this.length(), name, value);
|
|
693
|
+
}
|
|
694
|
+
formatAt(index, length, name, value) {
|
|
695
|
+
index === 0 && length === this.length() ? this.format(name, value) : super.formatAt(index, length, name, value);
|
|
696
|
+
}
|
|
697
|
+
formats() {
|
|
698
|
+
return this.statics.formats(this.domNode, this.scroll);
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
const EmbedBlot$1 = EmbedBlot, OBSERVER_CONFIG = {
|
|
702
|
+
attributes: !0,
|
|
703
|
+
characterData: !0,
|
|
704
|
+
characterDataOldValue: !0,
|
|
705
|
+
childList: !0,
|
|
706
|
+
subtree: !0
|
|
707
|
+
}, MAX_OPTIMIZE_ITERATIONS = 100, _ScrollBlot = class _ScrollBlot extends ParentBlot$1 {
|
|
708
|
+
constructor(registry, node) {
|
|
709
|
+
super(null, node), this.registry = registry, this.scroll = this, this.build(), this.observer = new MutationObserver((mutations) => {
|
|
710
|
+
this.update(mutations);
|
|
711
|
+
}), this.observer.observe(this.domNode, OBSERVER_CONFIG), this.attach();
|
|
712
|
+
}
|
|
713
|
+
create(input, value) {
|
|
714
|
+
return this.registry.create(this, input, value);
|
|
715
|
+
}
|
|
716
|
+
find(node, bubble = !1) {
|
|
717
|
+
const blot = this.registry.find(node, bubble);
|
|
718
|
+
return blot ? blot.scroll === this ? blot : bubble ? this.find(blot.scroll.domNode.parentNode, !0) : null : null;
|
|
719
|
+
}
|
|
720
|
+
query(query, scope = Scope.ANY) {
|
|
721
|
+
return this.registry.query(query, scope);
|
|
722
|
+
}
|
|
723
|
+
register(...definitions) {
|
|
724
|
+
return this.registry.register(...definitions);
|
|
725
|
+
}
|
|
726
|
+
build() {
|
|
727
|
+
this.scroll != null && super.build();
|
|
728
|
+
}
|
|
729
|
+
detach() {
|
|
730
|
+
super.detach(), this.observer.disconnect();
|
|
731
|
+
}
|
|
732
|
+
deleteAt(index, length) {
|
|
733
|
+
this.update(), index === 0 && length === this.length() ? this.children.forEach((child) => {
|
|
734
|
+
child.remove();
|
|
735
|
+
}) : super.deleteAt(index, length);
|
|
736
|
+
}
|
|
737
|
+
formatAt(index, length, name, value) {
|
|
738
|
+
this.update(), super.formatAt(index, length, name, value);
|
|
739
|
+
}
|
|
740
|
+
insertAt(index, value, def) {
|
|
741
|
+
this.update(), super.insertAt(index, value, def);
|
|
742
|
+
}
|
|
743
|
+
optimize(mutations = [], context = {}) {
|
|
744
|
+
super.optimize(context);
|
|
745
|
+
const mutationsMap = context.mutationsMap || /* @__PURE__ */ new WeakMap();
|
|
746
|
+
let records = Array.from(this.observer.takeRecords());
|
|
747
|
+
for (; records.length > 0; )
|
|
748
|
+
mutations.push(records.pop());
|
|
749
|
+
const mark = (blot, markParent = !0) => {
|
|
750
|
+
blot == null || blot === this || blot.domNode.parentNode != null && (mutationsMap.has(blot.domNode) || mutationsMap.set(blot.domNode, []), markParent && mark(blot.parent));
|
|
751
|
+
}, optimize = (blot) => {
|
|
752
|
+
mutationsMap.has(blot.domNode) && (blot instanceof ParentBlot$1 && blot.children.forEach(optimize), mutationsMap.delete(blot.domNode), blot.optimize(context));
|
|
753
|
+
};
|
|
754
|
+
let remaining = mutations;
|
|
755
|
+
for (let i = 0; remaining.length > 0; i += 1) {
|
|
756
|
+
if (i >= MAX_OPTIMIZE_ITERATIONS)
|
|
757
|
+
throw new Error("[Parchment] Maximum optimize iterations reached");
|
|
758
|
+
for (remaining.forEach((mutation) => {
|
|
759
|
+
const blot = this.find(mutation.target, !0);
|
|
760
|
+
blot != null && (blot.domNode === mutation.target && (mutation.type === "childList" ? (mark(this.find(mutation.previousSibling, !1)), Array.from(mutation.addedNodes).forEach((node) => {
|
|
761
|
+
const child = this.find(node, !1);
|
|
762
|
+
mark(child, !1), child instanceof ParentBlot$1 && child.children.forEach((grandChild) => {
|
|
763
|
+
mark(grandChild, !1);
|
|
764
|
+
});
|
|
765
|
+
})) : mutation.type === "attributes" && mark(blot.prev)), mark(blot));
|
|
766
|
+
}), this.children.forEach(optimize), remaining = Array.from(this.observer.takeRecords()), records = remaining.slice(); records.length > 0; )
|
|
767
|
+
mutations.push(records.pop());
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
update(mutations, context = {}) {
|
|
771
|
+
mutations = mutations || this.observer.takeRecords();
|
|
772
|
+
const mutationsMap = /* @__PURE__ */ new WeakMap();
|
|
773
|
+
mutations.map((mutation) => {
|
|
774
|
+
const blot = this.find(mutation.target, !0);
|
|
775
|
+
return blot == null ? null : mutationsMap.has(blot.domNode) ? (mutationsMap.get(blot.domNode).push(mutation), null) : (mutationsMap.set(blot.domNode, [mutation]), blot);
|
|
776
|
+
}).forEach((blot) => {
|
|
777
|
+
blot != null && blot !== this && mutationsMap.has(blot.domNode) && blot.update(mutationsMap.get(blot.domNode) || [], context);
|
|
778
|
+
}), context.mutationsMap = mutationsMap, mutationsMap.has(this.domNode) && super.update(mutationsMap.get(this.domNode), context), this.optimize(mutations, context);
|
|
779
|
+
}
|
|
780
|
+
};
|
|
781
|
+
_ScrollBlot.blotName = "scroll", _ScrollBlot.defaultChild = BlockBlot$1, _ScrollBlot.allowedChildren = [BlockBlot$1, ContainerBlot$1], _ScrollBlot.scope = Scope.BLOCK_BLOT, _ScrollBlot.tagName = "DIV";
|
|
782
|
+
let ScrollBlot = _ScrollBlot;
|
|
783
|
+
const ScrollBlot$1 = ScrollBlot, _TextBlot = class _TextBlot extends LeafBlot$1 {
|
|
784
|
+
static create(value) {
|
|
785
|
+
return document.createTextNode(value);
|
|
786
|
+
}
|
|
787
|
+
static value(domNode) {
|
|
788
|
+
return domNode.data;
|
|
789
|
+
}
|
|
790
|
+
constructor(scroll, node) {
|
|
791
|
+
super(scroll, node), this.text = this.statics.value(this.domNode);
|
|
792
|
+
}
|
|
793
|
+
deleteAt(index, length) {
|
|
794
|
+
this.domNode.data = this.text = this.text.slice(0, index) + this.text.slice(index + length);
|
|
795
|
+
}
|
|
796
|
+
index(node, offset) {
|
|
797
|
+
return this.domNode === node ? offset : -1;
|
|
798
|
+
}
|
|
799
|
+
insertAt(index, value, def) {
|
|
800
|
+
def == null ? (this.text = this.text.slice(0, index) + value + this.text.slice(index), this.domNode.data = this.text) : super.insertAt(index, value, def);
|
|
801
|
+
}
|
|
802
|
+
length() {
|
|
803
|
+
return this.text.length;
|
|
804
|
+
}
|
|
805
|
+
optimize(context) {
|
|
806
|
+
super.optimize(context), this.text = this.statics.value(this.domNode), this.text.length === 0 ? this.remove() : this.next instanceof _TextBlot && this.next.prev === this && (this.insertAt(this.length(), this.next.value()), this.next.remove());
|
|
807
|
+
}
|
|
808
|
+
position(index, _inclusive = !1) {
|
|
809
|
+
return [this.domNode, index];
|
|
810
|
+
}
|
|
811
|
+
split(index, force = !1) {
|
|
812
|
+
if (!force) {
|
|
813
|
+
if (index === 0)
|
|
814
|
+
return this;
|
|
815
|
+
if (index === this.length())
|
|
816
|
+
return this.next;
|
|
817
|
+
}
|
|
818
|
+
const after = this.scroll.create(this.domNode.splitText(index));
|
|
819
|
+
return this.parent.insertBefore(after, this.next || void 0), this.text = this.statics.value(this.domNode), after;
|
|
820
|
+
}
|
|
821
|
+
update(mutations, _context) {
|
|
822
|
+
mutations.some((mutation) => mutation.type === "characterData" && mutation.target === this.domNode) && (this.text = this.statics.value(this.domNode));
|
|
823
|
+
}
|
|
824
|
+
value() {
|
|
825
|
+
return this.text;
|
|
826
|
+
}
|
|
827
|
+
};
|
|
828
|
+
_TextBlot.blotName = "text", _TextBlot.scope = Scope.INLINE_BLOT;
|
|
829
|
+
let TextBlot = _TextBlot;
|
|
830
|
+
const TextBlot$1 = TextBlot;
|
|
831
|
+
export {
|
|
832
|
+
Attributor,
|
|
833
|
+
AttributorStore$1 as AttributorStore,
|
|
834
|
+
BlockBlot$1 as BlockBlot,
|
|
835
|
+
ClassAttributor$1 as ClassAttributor,
|
|
836
|
+
ContainerBlot$1 as ContainerBlot,
|
|
837
|
+
EmbedBlot$1 as EmbedBlot,
|
|
838
|
+
InlineBlot$1 as InlineBlot,
|
|
839
|
+
LeafBlot$1 as LeafBlot,
|
|
840
|
+
ParentBlot$1 as ParentBlot,
|
|
841
|
+
Registry,
|
|
842
|
+
Scope,
|
|
843
|
+
ScrollBlot$1 as ScrollBlot,
|
|
844
|
+
StyleAttributor$1 as StyleAttributor,
|
|
845
|
+
TextBlot$1 as TextBlot
|
|
846
|
+
};
|
|
847
|
+
//# sourceMappingURL=parchment.js.map
|