@hkyhy/marsun-components-core 0.1.82 → 0.1.98
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/dist/components/Audit/AuditLogList.d.ts +27 -0
- package/dist/components/Audit/AuditLogList.js +272 -0
- package/dist/components/Audit/AuditLogList.js.map +1 -0
- package/dist/components/Audit/formatAuditCurl.d.ts +27 -0
- package/dist/components/Audit/formatAuditCurl.js +115 -0
- package/dist/components/Audit/formatAuditCurl.js.map +1 -0
- package/dist/components/Audit/formatAuditJson.d.ts +15 -0
- package/dist/components/Audit/formatAuditJson.js +135 -0
- package/dist/components/Audit/formatAuditJson.js.map +1 -0
- package/dist/components/Audit/index.d.ts +3 -0
- package/dist/components/Audit/style.module.scss.js +30 -0
- package/dist/components/Audit/style.module.scss.js.map +1 -0
- package/dist/components/Audit/types.d.ts +39 -0
- package/dist/components/Editor/RichTextEditor/RichTextEditor.d.ts +24 -0
- package/dist/components/Editor/RichTextEditor/RichTextEditor.js +93 -0
- package/dist/components/Editor/RichTextEditor/RichTextEditor.js.map +1 -0
- package/dist/components/Editor/RichTextEditor/index.d.ts +2 -0
- package/dist/components/Editor/RichTextEditor/style.module.scss.js +11 -0
- package/dist/components/Editor/RichTextEditor/style.module.scss.js.map +1 -0
- package/dist/components/Editor/VariablePicker.d.ts +19 -0
- package/dist/components/Editor/VariablePicker.js +55 -0
- package/dist/components/Editor/VariablePicker.js.map +1 -0
- package/dist/components/Editor/index.d.ts +7 -0
- package/dist/components/Editor/index.js +21 -0
- package/dist/components/Editor/index.js.map +1 -0
- package/dist/components/Editor/msgVarTokenPlugin.d.ts +13 -0
- package/dist/components/Editor/msgVarTokenPlugin.js +94 -0
- package/dist/components/Editor/msgVarTokenPlugin.js.map +1 -0
- package/dist/components/Editor/variableMention.d.ts +37 -0
- package/dist/components/Editor/variableMention.js +64 -0
- package/dist/components/Editor/variableMention.js.map +1 -0
- package/dist/components/FormInfo/RichTextField/index.d.ts +21 -0
- package/dist/components/FormInfo/RichTextField/index.js +82 -0
- package/dist/components/FormInfo/RichTextField/index.js.map +1 -0
- package/dist/components/FormInfo/RichTextField/style.module.scss.js +9 -0
- package/dist/components/FormInfo/RichTextField/style.module.scss.js.map +1 -0
- package/dist/components/FormInfo/VariableMentionInput/index.d.ts +17 -0
- package/dist/components/FormInfo/VariableMentionInput/index.js +73 -0
- package/dist/components/FormInfo/VariableMentionInput/index.js.map +1 -0
- package/dist/components/FormInfo/VariableMentionInput/style.module.scss.js +11 -0
- package/dist/components/FormInfo/VariableMentionInput/style.module.scss.js.map +1 -0
- package/dist/components/FormInfo/fields.d.ts +5 -0
- package/dist/components/FormInfo/fields.js +32 -23
- package/dist/components/FormInfo/fields.js.map +1 -1
- package/dist/components/FormInfo/index.d.ts +4 -0
- package/dist/components/StateBar/StateBar.d.ts +19 -6
- package/dist/components/StateBar/StateBar.js +87 -50
- package/dist/components/StateBar/StateBar.js.map +1 -1
- package/dist/components/StateBar/style.module.scss.js +13 -10
- package/dist/components/StateBar/style.module.scss.js.map +1 -1
- package/dist/components/Table/ResizableHeaderCell.js +37 -38
- package/dist/components/Table/ResizableHeaderCell.js.map +1 -1
- package/dist/components/Table/Table.js +88 -89
- package/dist/components/Table/Table.js.map +1 -1
- package/dist/components/Table/columnConfigUtils.d.ts +1 -1
- package/dist/components/Table/columnConfigUtils.js.map +1 -1
- package/dist/components/Table/style.module.scss.js +34 -34
- package/dist/components/Tools/Inbox/InboxBell/InboxBell.d.ts +45 -0
- package/dist/components/Tools/Inbox/InboxBell/InboxBell.js +156 -0
- package/dist/components/Tools/Inbox/InboxBell/InboxBell.js.map +1 -0
- package/dist/components/Tools/Inbox/InboxBell/index.d.ts +2 -0
- package/dist/components/Tools/Inbox/InboxBell/style.module.scss.js +30 -0
- package/dist/components/Tools/Inbox/InboxBell/style.module.scss.js.map +1 -0
- package/dist/components/Tools/Inbox/index.d.ts +2 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/List/columns.d.ts +8 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/List/columns.js +56 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/List/columns.js.map +1 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/MessageTemplateAdmin.d.ts +8 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/MessageTemplateAdmin.js +216 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/MessageTemplateAdmin.js.map +1 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/Modal/TemplateFormModal.d.ts +26 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/Modal/TemplateFormModal.js +190 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/Modal/TemplateFormModal.js.map +1 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/index.d.ts +3 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/style.module.scss.js +12 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/style.module.scss.js.map +1 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/types.d.ts +76 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/types.js +26 -0
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/types.js.map +1 -0
- package/dist/components/Tools/MessageCenter/index.d.ts +3 -0
- package/dist/components/Tools/MessageCenter/utils/templateCode.d.ts +8 -0
- package/dist/components/Tools/MessageCenter/utils/templateCode.js +25 -0
- package/dist/components/Tools/MessageCenter/utils/templateCode.js.map +1 -0
- package/dist/components/Tools/index.d.ts +5 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/editor.d.ts +5 -0
- package/dist/editor.js +21 -0
- package/dist/editor.js.map +1 -0
- package/dist/form-info.js +33 -29
- package/dist/form-info.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +805 -773
- package/dist/index.js.map +1 -1
- package/dist/marsun-components-core.css +4 -1
- package/dist/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +301 -0
- package/dist/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +1256 -0
- package/dist/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-core/dist/index.js +2107 -0
- package/dist/node_modules/@ckeditor/ckeditor5-core/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +259 -0
- package/dist/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +23990 -0
- package/dist/node_modules/@ckeditor/ckeditor5-engine/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-enter/dist/index.js +249 -0
- package/dist/node_modules/@ckeditor/ckeditor5-enter/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js +47 -0
- package/dist/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-font/dist/index.js +100 -0
- package/dist/node_modules/@ckeditor/ckeditor5-font/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-icons/dist/index.js +31 -0
- package/dist/node_modules/@ckeditor/ckeditor5-icons/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-integrations-common/dist/index.js +194 -0
- package/dist/node_modules/@ckeditor/ckeditor5-integrations-common/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-list/dist/index.js +2042 -0
- package/dist/node_modules/@ckeditor/ckeditor5-list/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-mention/dist/index.js +9 -0
- package/dist/node_modules/@ckeditor/ckeditor5-mention/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +167 -0
- package/dist/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-react/dist/index.js +471 -0
- package/dist/node_modules/@ckeditor/ckeditor5-react/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js +139 -0
- package/dist/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +755 -0
- package/dist/node_modules/@ckeditor/ckeditor5-typing/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +7838 -0
- package/dist/node_modules/@ckeditor/ckeditor5-ui/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-convert/conversions.js +422 -0
- package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-convert/conversions.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-convert/index.js +33 -0
- package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-convert/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-convert/route.js +47 -0
- package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-convert/route.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-name/index.js +156 -0
- package/dist/node_modules/@ckeditor/ckeditor5-ui/node_modules/color-name/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +313 -0
- package/dist/node_modules/@ckeditor/ckeditor5-undo/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +2942 -0
- package/dist/node_modules/@ckeditor/ckeditor5-utils/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +892 -0
- package/dist/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js.map +1 -0
- package/dist/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +1047 -0
- package/dist/node_modules/@ckeditor/ckeditor5-widget/dist/index.js.map +1 -0
- package/dist/node_modules/color-parse/node_modules/color-name/index.js +153 -0
- package/dist/node_modules/color-parse/node_modules/color-name/index.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/_internal/globalThis.js +7 -0
- package/dist/node_modules/es-toolkit/dist/_internal/globalThis.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +7 -0
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeToWriteProperty.js +7 -0
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeToWriteProperty.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/assignValue.js +9 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/assignValue.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +16 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js +15 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js +9 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +30 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js +17 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js +13 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/assignIn.js +17 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/assignIn.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/clone.js +102 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/clone.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +33 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/get.js +39 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/get.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/has.js +21 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/has.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/keysIn.js +33 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/keysIn.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/mapValues.js +10 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/mapValues.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/merge.js +9 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/merge.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/mergeWith.js +53 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/mergeWith.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/property.js +10 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/property.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/set.js +9 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/set.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/updateWith.js +31 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/updateWith.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArray.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArray.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +9 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isElement.js +9 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isElement.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isEqualWith.js +15 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isEqualWith.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isFunction.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isFunction.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatch.js +9 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatch.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatchWith.js +81 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatchWith.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +16 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isString.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isString.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/matches.js +9 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/matches.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/matchesProperty.js +23 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/matchesProperty.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/eq.js +7 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/eq.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/iteratee.js +19 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/iteratee.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/times.js +11 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/times.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toInteger.js +9 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toInteger.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js +8 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js +37 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toString.js +15 -0
- package/dist/node_modules/es-toolkit/dist/compat/util/toString.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/function/after.js +11 -0
- package/dist/node_modules/es-toolkit/dist/function/after.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/function/debounce.js +30 -0
- package/dist/node_modules/es-toolkit/dist/function/debounce.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/function/identity.js +7 -0
- package/dist/node_modules/es-toolkit/dist/function/identity.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/function/noop.js +6 -0
- package/dist/node_modules/es-toolkit/dist/function/noop.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/object/clone.js +27 -0
- package/dist/node_modules/es-toolkit/dist/object/clone.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/object/cloneDeep.js +8 -0
- package/dist/node_modules/es-toolkit/dist/object/cloneDeep.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +121 -0
- package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/object/mapValues.js +12 -0
- package/dist/node_modules/es-toolkit/dist/object/mapValues.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isBuffer.js +8 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isBuffer.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isEqual.js +9 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isEqual.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isEqualWith.js +110 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isEqualWith.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +7 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isPlainObject.js +9 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isPlainObject.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +7 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js.map +1 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +7 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js.map +1 -0
- package/dist/styles/global.css +4 -1
- package/dist/utils/copyText.d.ts +4 -0
- package/dist/utils/copyText.js +21 -0
- package/dist/utils/copyText.js.map +1 -0
- package/package.json +9 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTag.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs"],"sourcesContent":["//#region src/compat/_internal/getTag.ts\n/**\n* Gets the `toStringTag` of `value`.\n*\n* @private\n* @param {T} value The value to query.\n* @returns {string} Returns the `Object.prototype.toString.call` result.\n*/\nfunction getTag(value) {\n\tif (value == null) return value === void 0 ? \"[object Undefined]\" : \"[object Null]\";\n\treturn Object.prototype.toString.call(value);\n}\n//#endregion\nexport { getTag };\n"],"names":["getTag","value"],"mappings":"AAQA,SAASA,EAAOC,GAAO;AACtB,SAAIA,KAAS,OAAaA,MAAU,SAAS,uBAAuB,kBAC7D,OAAO,UAAU,SAAS,KAAKA,CAAK;AAC5C;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const t = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
|
|
2
|
+
function s(e) {
|
|
3
|
+
switch (typeof e) {
|
|
4
|
+
case "number":
|
|
5
|
+
case "symbol":
|
|
6
|
+
return !1;
|
|
7
|
+
case "string":
|
|
8
|
+
return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : t.test(e);
|
|
9
|
+
default:
|
|
10
|
+
return !1;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
s as isDeepKey
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=isDeepKey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isDeepKey.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs"],"sourcesContent":["//#region src/compat/_internal/isDeepKey.ts\n/** Matches any deep property path. Examples: `a.b`, `a[0]`, `a[\"b\"]` */\nconst regexIsDeepProp = /\\.|(\\[(?:[^[\\]]*|([\"'])(?:(?!\\2)[^\\\\]|\\\\.)*?\\2)\\])/;\n/**\n* Checks if a given key is a deep key.\n*\n* A deep key is a string that contains a dot (.) or square brackets with a property accessor.\n*\n* @param {PropertyKey} key - The key to check.\n* @returns {boolean} - Returns true if the key is a deep key, otherwise false.\n*\n* Examples:\n*\n* isDeepKey('a.b') // true\n* isDeepKey('a[b]') // true\n* isDeepKey('a') // false\n* isDeepKey(123) // false\n* isDeepKey('a.b.c') // true\n* isDeepKey('a[b][c]') // true\n* isDeepKey('a.') // false\n* isDeepKey('.a') // false\n* isDeepKey('a[b') // false\n* isDeepKey('a]b]') // false\n* isDeepKey('a][b') // false\n* isDeepKey('') // false\n* isDeepKey('a[0]') // true\n*\n*/\nfunction isDeepKey(key) {\n\tswitch (typeof key) {\n\t\tcase \"number\":\n\t\tcase \"symbol\": return false;\n\t\tcase \"string\":\n\t\t\tif (key === \"\" || key.startsWith(\".\") || key.endsWith(\".\")) return false;\n\t\t\treturn regexIsDeepProp.test(key);\n\t\tdefault: return false;\n\t}\n}\n//#endregion\nexport { isDeepKey };\n"],"names":["regexIsDeepProp","isDeepKey","key"],"mappings":"AAEA,MAAMA,IAAkB;AA0BxB,SAASC,EAAUC,GAAK;AACvB,UAAQ,OAAOA,GAAG;AAAA,IACjB,KAAK;AAAA,IACL,KAAK;AAAU,aAAO;AAAA,IACtB,KAAK;AACJ,aAAIA,MAAQ,MAAMA,EAAI,WAAW,GAAG,KAAKA,EAAI,SAAS,GAAG,IAAU,KAC5DF,EAAgB,KAAKE,CAAG;AAAA,IAChC;AAAS,aAAO;AAAA,EAClB;AACA;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const t = /^(?:0|[1-9]\d*)$/;
|
|
2
|
+
function s(e, r = Number.MAX_SAFE_INTEGER) {
|
|
3
|
+
switch (typeof e) {
|
|
4
|
+
case "number":
|
|
5
|
+
return Number.isInteger(e) && e >= 0 && e < r;
|
|
6
|
+
case "symbol":
|
|
7
|
+
return !1;
|
|
8
|
+
case "string":
|
|
9
|
+
return t.test(e);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
s as isIndex
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=isIndex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isIndex.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs"],"sourcesContent":["//#region src/compat/_internal/isIndex.ts\nconst IS_UNSIGNED_INTEGER = /^(?:0|[1-9]\\d*)$/;\nfunction isIndex(value, length = Number.MAX_SAFE_INTEGER) {\n\tswitch (typeof value) {\n\t\tcase \"number\": return Number.isInteger(value) && value >= 0 && value < length;\n\t\tcase \"symbol\": return false;\n\t\tcase \"string\": return IS_UNSIGNED_INTEGER.test(value);\n\t}\n}\n//#endregion\nexport { isIndex };\n"],"names":["IS_UNSIGNED_INTEGER","isIndex","value","length"],"mappings":"AACA,MAAMA,IAAsB;AAC5B,SAASC,EAAQC,GAAOC,IAAS,OAAO,kBAAkB;AACzD,UAAQ,OAAOD,GAAK;AAAA,IACnB,KAAK;AAAU,aAAO,OAAO,UAAUA,CAAK,KAAKA,KAAS,KAAKA,IAAQC;AAAA,IACvE,KAAK;AAAU,aAAO;AAAA,IACtB,KAAK;AAAU,aAAOH,EAAoB,KAAKE,CAAK;AAAA,EACtD;AACA;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { isSymbol as n } from "../predicate/isSymbol.js";
|
|
2
|
+
const o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, e = /^\w*$/;
|
|
3
|
+
function i(r, t) {
|
|
4
|
+
return Array.isArray(r) ? !1 : typeof r == "number" || typeof r == "boolean" || r == null || n(r) ? !0 : typeof r == "string" && (e.test(r) || !o.test(r)) || t != null && Object.hasOwn(t, r);
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
i as isKey
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=isKey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isKey.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/_internal/isKey.mjs"],"sourcesContent":["import { isSymbol } from \"../predicate/isSymbol.mjs\";\n//#region src/compat/_internal/isKey.ts\n/** Matches any deep property path. (e.g. `a.b[0].c`)*/\nconst regexIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/;\n/** Matches any word character (alphanumeric & underscore).*/\nconst regexIsPlainProp = /^\\w*$/;\n/**\n* Checks if `value` is a property name and not a property path. (It's ok that the `value` is not in the keys of the `object`)\n* @param {unknown} value The value to check.\n* @param {unknown} object The object to query.\n* @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n*\n* @example\n* isKey('a', { a: 1 });\n* // => true\n*\n* isKey('a.b', { a: { b: 2 } });\n* // => false\n*/\nfunction isKey(value, object) {\n\tif (Array.isArray(value)) return false;\n\tif (typeof value === \"number\" || typeof value === \"boolean\" || value == null || isSymbol(value)) return true;\n\treturn typeof value === \"string\" && (regexIsPlainProp.test(value) || !regexIsDeepProp.test(value)) || object != null && Object.hasOwn(object, value);\n}\n//#endregion\nexport { isKey };\n"],"names":["regexIsDeepProp","regexIsPlainProp","isKey","value","object","isSymbol"],"mappings":";AAGA,MAAMA,IAAkB,oDAElBC,IAAmB;AAczB,SAASC,EAAMC,GAAOC,GAAQ;AAC7B,SAAI,MAAM,QAAQD,CAAK,IAAU,KAC7B,OAAOA,KAAU,YAAY,OAAOA,KAAU,aAAaA,KAAS,QAAQE,EAASF,CAAK,IAAU,KACjG,OAAOA,KAAU,aAAaF,EAAiB,KAAKE,CAAK,KAAK,CAACH,EAAgB,KAAKG,CAAK,MAAMC,KAAU,QAAQ,OAAO,OAAOA,GAAQD,CAAK;AACpJ;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isPrototype.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/_internal/isPrototype.mjs"],"sourcesContent":["//#region src/compat/_internal/isPrototype.ts\nfunction isPrototype(value) {\n\tconst constructor = value?.constructor;\n\treturn value === (typeof constructor === \"function\" ? constructor.prototype : Object.prototype);\n}\n//#endregion\nexport { isPrototype };\n"],"names":["isPrototype","value","constructor"],"mappings":"AACA,SAASA,EAAYC,GAAO;AAC3B,QAAMC,IAAcD,KAAA,gBAAAA,EAAO;AAC3B,SAAOA,OAAW,OAAOC,KAAgB,aAAaA,EAAY,YAAY,OAAO;AACtF;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const t = "[object RegExp]", a = "[object String]", o = "[object Number]", r = "[object Boolean]", c = "[object Arguments]", n = "[object Symbol]", e = "[object Date]", g = "[object Map]", b = "[object Set]", s = "[object Array]", j = "[object Function]", y = "[object ArrayBuffer]", T = "[object Object]", A = "[object Error]", i = "[object DataView]", u = "[object Uint8Array]", l = "[object Uint8ClampedArray]", m = "[object Uint16Array]", f = "[object Uint32Array]", p = "[object BigUint64Array]", U = "[object Int8Array]", B = "[object Int16Array]", I = "[object Int32Array]", d = "[object BigInt64Array]", x = "[object Float32Array]", F = "[object Float64Array]";
|
|
2
|
+
export {
|
|
3
|
+
c as argumentsTag,
|
|
4
|
+
y as arrayBufferTag,
|
|
5
|
+
s as arrayTag,
|
|
6
|
+
d as bigInt64ArrayTag,
|
|
7
|
+
p as bigUint64ArrayTag,
|
|
8
|
+
r as booleanTag,
|
|
9
|
+
i as dataViewTag,
|
|
10
|
+
e as dateTag,
|
|
11
|
+
A as errorTag,
|
|
12
|
+
x as float32ArrayTag,
|
|
13
|
+
F as float64ArrayTag,
|
|
14
|
+
j as functionTag,
|
|
15
|
+
B as int16ArrayTag,
|
|
16
|
+
I as int32ArrayTag,
|
|
17
|
+
U as int8ArrayTag,
|
|
18
|
+
g as mapTag,
|
|
19
|
+
o as numberTag,
|
|
20
|
+
T as objectTag,
|
|
21
|
+
t as regexpTag,
|
|
22
|
+
b as setTag,
|
|
23
|
+
a as stringTag,
|
|
24
|
+
n as symbolTag,
|
|
25
|
+
m as uint16ArrayTag,
|
|
26
|
+
f as uint32ArrayTag,
|
|
27
|
+
u as uint8ArrayTag,
|
|
28
|
+
l as uint8ClampedArrayTag
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=tags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tags.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/_internal/tags.mjs"],"sourcesContent":["//#region src/compat/_internal/tags.ts\nconst regexpTag = \"[object RegExp]\";\nconst stringTag = \"[object String]\";\nconst numberTag = \"[object Number]\";\nconst booleanTag = \"[object Boolean]\";\nconst argumentsTag = \"[object Arguments]\";\nconst symbolTag = \"[object Symbol]\";\nconst dateTag = \"[object Date]\";\nconst mapTag = \"[object Map]\";\nconst setTag = \"[object Set]\";\nconst arrayTag = \"[object Array]\";\nconst functionTag = \"[object Function]\";\nconst arrayBufferTag = \"[object ArrayBuffer]\";\nconst objectTag = \"[object Object]\";\nconst errorTag = \"[object Error]\";\nconst dataViewTag = \"[object DataView]\";\nconst uint8ArrayTag = \"[object Uint8Array]\";\nconst uint8ClampedArrayTag = \"[object Uint8ClampedArray]\";\nconst uint16ArrayTag = \"[object Uint16Array]\";\nconst uint32ArrayTag = \"[object Uint32Array]\";\nconst bigUint64ArrayTag = \"[object BigUint64Array]\";\nconst int8ArrayTag = \"[object Int8Array]\";\nconst int16ArrayTag = \"[object Int16Array]\";\nconst int32ArrayTag = \"[object Int32Array]\";\nconst bigInt64ArrayTag = \"[object BigInt64Array]\";\nconst float32ArrayTag = \"[object Float32Array]\";\nconst float64ArrayTag = \"[object Float64Array]\";\n//#endregion\nexport { argumentsTag, arrayBufferTag, arrayTag, bigInt64ArrayTag, bigUint64ArrayTag, booleanTag, dataViewTag, dateTag, errorTag, float32ArrayTag, float64ArrayTag, functionTag, int16ArrayTag, int32ArrayTag, int8ArrayTag, mapTag, numberTag, objectTag, regexpTag, setTag, stringTag, symbolTag, uint16ArrayTag, uint32ArrayTag, uint8ArrayTag, uint8ClampedArrayTag };\n"],"names":["regexpTag","stringTag","numberTag","booleanTag","argumentsTag","symbolTag","dateTag","mapTag","setTag","arrayTag","functionTag","arrayBufferTag","objectTag","errorTag","dataViewTag","uint8ArrayTag","uint8ClampedArrayTag","uint16ArrayTag","uint32ArrayTag","bigUint64ArrayTag","int8ArrayTag","int16ArrayTag","int32ArrayTag","bigInt64ArrayTag","float32ArrayTag","float64ArrayTag"],"mappings":"AACK,MAACA,IAAY,mBACZC,IAAY,mBACZC,IAAY,mBACZC,IAAa,oBACbC,IAAe,sBACfC,IAAY,mBACZC,IAAU,iBACVC,IAAS,gBACTC,IAAS,gBACTC,IAAW,kBACXC,IAAc,qBACdC,IAAiB,wBACjBC,IAAY,mBACZC,IAAW,kBACXC,IAAc,qBACdC,IAAgB,uBAChBC,IAAuB,8BACvBC,IAAiB,wBACjBC,IAAiB,wBACjBC,IAAoB,2BACpBC,IAAe,sBACfC,IAAgB,uBAChBC,IAAgB,uBAChBC,IAAmB,0BACnBC,IAAkB,yBAClBC,IAAkB;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toKey.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/_internal/toKey.mjs"],"sourcesContent":["//#region src/compat/_internal/toKey.ts\n/**\n* Converts `value` to a string key if it's not a string or symbol.\n*\n* @private\n* @param {unknown} value The value to inspect.\n* @returns {string|symbol} Returns the key.\n*/\nfunction toKey(value) {\n\tif (typeof value === \"string\" || typeof value === \"symbol\") return value;\n\tif (Object.is(value?.valueOf?.(), -0)) return \"-0\";\n\treturn String(value);\n}\n//#endregion\nexport { toKey };\n"],"names":["toKey","value","_a"],"mappings":"AAQA,SAASA,EAAMC,GAAO;AARtB,MAAAC;AASC,SAAI,OAAOD,KAAU,YAAY,OAAOA,KAAU,WAAiBA,IAC/D,OAAO,IAAGC,IAAAD,KAAA,gBAAAA,EAAO,YAAP,gBAAAC,EAAA,KAAAD,IAAoB,EAAE,IAAU,OACvC,OAAOA,CAAK;AACpB;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { debounce as p } from "../../function/debounce.js";
|
|
2
|
+
function b(o, d = 0, i = {}) {
|
|
3
|
+
typeof i != "object" && (i = {});
|
|
4
|
+
const { leading: a = !1, trailing: r = !0, maxWait: f } = i, u = Array(2);
|
|
5
|
+
a && (u[0] = "leading"), r && (u[1] = "trailing");
|
|
6
|
+
let e, n = null;
|
|
7
|
+
const t = p(function(...l) {
|
|
8
|
+
e = o.apply(this, l), n = null;
|
|
9
|
+
}, d, { edges: u }), c = function(...l) {
|
|
10
|
+
return f != null && (n === null && (n = Date.now()), Date.now() - n >= f) ? ((a || r) && (e = o.apply(this, l)), n = Date.now(), t.cancel(), t.schedule(), e) : (t.apply(this, l), e);
|
|
11
|
+
}, s = () => (t.flush(), e);
|
|
12
|
+
return c.cancel = t.cancel, c.flush = s, c;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
b as debounce
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=debounce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounce.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/function/debounce.mjs"],"sourcesContent":["import { debounce as debounce$1 } from \"../../function/debounce.mjs\";\n//#region src/compat/function/debounce.ts\nfunction debounce(func, debounceMs = 0, options = {}) {\n\tif (typeof options !== \"object\") options = {};\n\tconst { leading = false, trailing = true, maxWait } = options;\n\tconst edges = Array(2);\n\tif (leading) edges[0] = \"leading\";\n\tif (trailing) edges[1] = \"trailing\";\n\tlet result = void 0;\n\tlet pendingAt = null;\n\tconst _debounced = debounce$1(function(...args) {\n\t\tresult = func.apply(this, args);\n\t\tpendingAt = null;\n\t}, debounceMs, { edges });\n\tconst debounced = function(...args) {\n\t\tif (maxWait != null) {\n\t\t\tif (pendingAt === null) pendingAt = Date.now();\n\t\t\tif (Date.now() - pendingAt >= maxWait) {\n\t\t\t\tif (leading || trailing) result = func.apply(this, args);\n\t\t\t\tpendingAt = Date.now();\n\t\t\t\t_debounced.cancel();\n\t\t\t\t_debounced.schedule();\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\t_debounced.apply(this, args);\n\t\treturn result;\n\t};\n\tconst flush = () => {\n\t\t_debounced.flush();\n\t\treturn result;\n\t};\n\tdebounced.cancel = _debounced.cancel;\n\tdebounced.flush = flush;\n\treturn debounced;\n}\n//#endregion\nexport { debounce };\n"],"names":["debounce","func","debounceMs","options","leading","trailing","maxWait","edges","result","pendingAt","_debounced","debounce$1","args","debounced","flush"],"mappings":";AAEA,SAASA,EAASC,GAAMC,IAAa,GAAGC,IAAU,CAAA,GAAI;AACrD,EAAI,OAAOA,KAAY,aAAUA,IAAU,CAAA;AAC3C,QAAM,EAAE,SAAAC,IAAU,IAAO,UAAAC,IAAW,IAAM,SAAAC,EAAO,IAAKH,GAChDI,IAAQ,MAAM,CAAC;AACrB,EAAIH,MAASG,EAAM,CAAC,IAAI,YACpBF,MAAUE,EAAM,CAAC,IAAI;AACzB,MAAIC,GACAC,IAAY;AAChB,QAAMC,IAAaC,EAAW,YAAYC,GAAM;AAC/C,IAAAJ,IAASP,EAAK,MAAM,MAAMW,CAAI,GAC9BH,IAAY;AAAA,EACb,GAAGP,GAAY,EAAE,OAAAK,GAAO,GAClBM,IAAY,YAAYD,GAAM;AACnC,WAAIN,KAAW,SACVG,MAAc,SAAMA,IAAY,KAAK,IAAG,IACxC,KAAK,QAAQA,KAAaH,OACzBF,KAAWC,OAAUG,IAASP,EAAK,MAAM,MAAMW,CAAI,IACvDH,IAAY,KAAK,IAAG,GACpBC,EAAW,OAAM,GACjBA,EAAW,SAAQ,GACZF,MAGTE,EAAW,MAAM,MAAME,CAAI,GACpBJ;AAAA,EACR,GACMM,IAAQ,OACbJ,EAAW,MAAK,GACTF;AAER,SAAAK,EAAU,SAASH,EAAW,QAC9BG,EAAU,QAAQC,GACXD;AACR;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { debounce as o } from "./debounce.js";
|
|
2
|
+
function a(r, t = 0, e = {}) {
|
|
3
|
+
const { leading: n = !0, trailing: i = !0 } = e;
|
|
4
|
+
return o(r, t, {
|
|
5
|
+
leading: n,
|
|
6
|
+
maxWait: t,
|
|
7
|
+
trailing: i
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
a as throttle
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=throttle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"throttle.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/function/throttle.mjs"],"sourcesContent":["import { debounce } from \"./debounce.mjs\";\n//#region src/compat/function/throttle.ts\n/**\n* Creates a throttled function that only invokes the provided function at most once\n* per every `throttleMs` milliseconds. Subsequent calls to the throttled function\n* within the wait time will not trigger the execution of the original function.\n*\n* @template F - The type of function.\n* @param func - The function to throttle.\n* @param throttleMs - The number of milliseconds to throttle executions to.\n* @param options - The options object\n* @param options.signal - An optional AbortSignal to cancel the throttled function.\n* @param options.leading - If `true`, the function will be invoked on the leading edge of the timeout.\n* @param options.trailing - If `true`, the function will be invoked on the trailing edge of the timeout.\n* @returns A new throttled function that accepts the same parameters as the original function.\n*\n* @example\n* const throttledFunction = throttle(() => {\n* console.log('Function executed');\n* }, 1000);\n*\n* // Will log 'Function executed' immediately\n* throttledFunction();\n*\n* // Will not log anything as it is within the throttle time\n* throttledFunction();\n*\n* // After 1 second\n* setTimeout(() => {\n* throttledFunction(); // Will log 'Function executed'\n* }, 1000);\n*/\nfunction throttle(func, throttleMs = 0, options = {}) {\n\tconst { leading = true, trailing = true } = options;\n\treturn debounce(func, throttleMs, {\n\t\tleading,\n\t\tmaxWait: throttleMs,\n\t\ttrailing\n\t});\n}\n//#endregion\nexport { throttle };\n"],"names":["throttle","func","throttleMs","options","leading","trailing","debounce"],"mappings":";AAgCA,SAASA,EAASC,GAAMC,IAAa,GAAGC,IAAU,CAAA,GAAI;AACrD,QAAM,EAAE,SAAAC,IAAU,IAAM,UAAAC,IAAW,GAAI,IAAKF;AAC5C,SAAOG,EAASL,GAAMC,GAAY;AAAA,IACjC,SAAAE;AAAA,IACA,SAASF;AAAA,IACT,UAAAG;AAAA,EACF,CAAE;AACF;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { eq as l } from "../util/eq.js";
|
|
2
|
+
import { keysIn as m } from "./keysIn.js";
|
|
3
|
+
function p(n, ...i) {
|
|
4
|
+
for (let t = 0; t < i.length; t++) o(n, i[t]);
|
|
5
|
+
return n;
|
|
6
|
+
}
|
|
7
|
+
function o(n, i) {
|
|
8
|
+
const t = m(i);
|
|
9
|
+
for (let r = 0; r < t.length; r++) {
|
|
10
|
+
const f = t[r];
|
|
11
|
+
(!(f in n) || !l(n[f], i[f])) && (n[f] = i[f]);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
p as assignIn
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=assignIn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assignIn.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/object/assignIn.mjs"],"sourcesContent":["import { eq } from \"../util/eq.mjs\";\nimport { keysIn } from \"./keysIn.mjs\";\n//#region src/compat/object/assignIn.ts\n/**\n* Assigns properties from multiple source objects to a target object.\n*\n* This function merges the properties of the source objects into the target object,\n* including properties from the prototype chain. If a property in the source objects\n* is equal to the corresponding property in the target object, it will not be overwritten.\n*\n* @param object - The target object to which properties will be assigned.\n* @param sources - The source objects whose properties will be assigned to the target object.\n* @returns The updated target object with properties from the source objects assigned.\n*\n* @example\n* const target = { a: 1 };\n* const result = assignIn(target, { b: 2 }, { c: 3 });\n* console.log(result); // Output: { a: 1, b: 2, c: 3 }\n*/\nfunction assignIn(object, ...sources) {\n\tfor (let i = 0; i < sources.length; i++) assignInImpl(object, sources[i]);\n\treturn object;\n}\nfunction assignInImpl(object, source) {\n\tconst keys = keysIn(source);\n\tfor (let i = 0; i < keys.length; i++) {\n\t\tconst key = keys[i];\n\t\tif (!(key in object) || !eq(object[key], source[key])) object[key] = source[key];\n\t}\n}\n//#endregion\nexport { assignIn };\n"],"names":["assignIn","object","sources","i","assignInImpl","source","keys","keysIn","key","eq"],"mappings":";;AAmBA,SAASA,EAASC,MAAWC,GAAS;AACrC,WAASC,IAAI,GAAGA,IAAID,EAAQ,QAAQC,IAAK,CAAAC,EAAaH,GAAQC,EAAQC,CAAC,CAAC;AACxE,SAAOF;AACR;AACA,SAASG,EAAaH,GAAQI,GAAQ;AACrC,QAAMC,IAAOC,EAAOF,CAAM;AAC1B,WAASF,IAAI,GAAGA,IAAIG,EAAK,QAAQH,KAAK;AACrC,UAAMK,IAAMF,EAAKH,CAAC;AAClB,KAAI,EAAEK,KAAOP,MAAW,CAACQ,EAAGR,EAAOO,CAAG,GAAGH,EAAOG,CAAG,CAAC,OAAGP,EAAOO,CAAG,IAAIH,EAAOG,CAAG;AAAA,EAChF;AACD;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { isPrimitive as g } from "../../predicate/isPrimitive.js";
|
|
2
|
+
import { getTag as f } from "../_internal/getTag.js";
|
|
3
|
+
import { uint32ArrayTag as y, uint16ArrayTag as l, uint8ClampedArrayTag as p, uint8ArrayTag as m, symbolTag as T, stringTag as b, setTag as O, regexpTag as w, objectTag as A, numberTag as h, mapTag as d, int32ArrayTag as S, int16ArrayTag as x, int8ArrayTag as P, float64ArrayTag as N, float32ArrayTag as B, dateTag as E, booleanTag as V, dataViewTag as v, arrayBufferTag as C, arrayTag as D, argumentsTag as L } from "../_internal/tags.js";
|
|
4
|
+
import { isArray as I } from "../predicate/isArray.js";
|
|
5
|
+
import { isTypedArray as k } from "../predicate/isTypedArray.js";
|
|
6
|
+
function K(t) {
|
|
7
|
+
if (g(t)) return t;
|
|
8
|
+
const r = f(t);
|
|
9
|
+
if (!M(t)) return {};
|
|
10
|
+
if (I(t)) {
|
|
11
|
+
const e = Array.from(t);
|
|
12
|
+
return t.length > 0 && typeof t[0] == "string" && Object.hasOwn(t, "index") && (e.index = t.index, e.input = t.input), e;
|
|
13
|
+
}
|
|
14
|
+
if (k(t)) {
|
|
15
|
+
const e = t, n = e.constructor;
|
|
16
|
+
return new n(e.buffer, e.byteOffset, e.length);
|
|
17
|
+
}
|
|
18
|
+
if (r === "[object ArrayBuffer]") return new ArrayBuffer(t.byteLength);
|
|
19
|
+
if (r === "[object DataView]") {
|
|
20
|
+
const e = t, n = e.buffer, c = e.byteOffset, s = e.byteLength, i = new ArrayBuffer(s), u = new Uint8Array(n, c, s);
|
|
21
|
+
return new Uint8Array(i).set(u), new DataView(i);
|
|
22
|
+
}
|
|
23
|
+
if (r === "[object Boolean]" || r === "[object Number]" || r === "[object String]") {
|
|
24
|
+
const e = t.constructor, n = new e(t.valueOf());
|
|
25
|
+
return r === "[object String]" ? U(n, t) : o(n, t), n;
|
|
26
|
+
}
|
|
27
|
+
if (r === "[object Date]") return new Date(Number(t));
|
|
28
|
+
if (r === "[object RegExp]") {
|
|
29
|
+
const e = t, n = new RegExp(e.source, e.flags);
|
|
30
|
+
return n.lastIndex = e.lastIndex, n;
|
|
31
|
+
}
|
|
32
|
+
if (r === "[object Symbol]") return Object(Symbol.prototype.valueOf.call(t));
|
|
33
|
+
if (r === "[object Map]") {
|
|
34
|
+
const e = t, n = /* @__PURE__ */ new Map();
|
|
35
|
+
return e.forEach((c, s) => {
|
|
36
|
+
n.set(s, c);
|
|
37
|
+
}), n;
|
|
38
|
+
}
|
|
39
|
+
if (r === "[object Set]") {
|
|
40
|
+
const e = t, n = /* @__PURE__ */ new Set();
|
|
41
|
+
return e.forEach((c) => {
|
|
42
|
+
n.add(c);
|
|
43
|
+
}), n;
|
|
44
|
+
}
|
|
45
|
+
if (r === "[object Arguments]") {
|
|
46
|
+
const e = t, n = {};
|
|
47
|
+
return o(n, e), n.length = e.length, n[Symbol.iterator] = e[Symbol.iterator], n;
|
|
48
|
+
}
|
|
49
|
+
const a = {};
|
|
50
|
+
return q(a, t), o(a, t), R(a, t), a;
|
|
51
|
+
}
|
|
52
|
+
function M(t) {
|
|
53
|
+
switch (f(t)) {
|
|
54
|
+
case L:
|
|
55
|
+
case D:
|
|
56
|
+
case C:
|
|
57
|
+
case v:
|
|
58
|
+
case V:
|
|
59
|
+
case E:
|
|
60
|
+
case B:
|
|
61
|
+
case N:
|
|
62
|
+
case P:
|
|
63
|
+
case x:
|
|
64
|
+
case S:
|
|
65
|
+
case d:
|
|
66
|
+
case h:
|
|
67
|
+
case A:
|
|
68
|
+
case w:
|
|
69
|
+
case O:
|
|
70
|
+
case b:
|
|
71
|
+
case T:
|
|
72
|
+
case m:
|
|
73
|
+
case p:
|
|
74
|
+
case l:
|
|
75
|
+
case y:
|
|
76
|
+
return !0;
|
|
77
|
+
default:
|
|
78
|
+
return !1;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
function o(t, r) {
|
|
82
|
+
for (const a in r) Object.hasOwn(r, a) && (t[a] = r[a]);
|
|
83
|
+
}
|
|
84
|
+
function R(t, r) {
|
|
85
|
+
const a = Object.getOwnPropertySymbols(r);
|
|
86
|
+
for (let e = 0; e < a.length; e++) {
|
|
87
|
+
const n = a[e];
|
|
88
|
+
Object.prototype.propertyIsEnumerable.call(r, n) && (t[n] = r[n]);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function U(t, r) {
|
|
92
|
+
const a = r.valueOf().length;
|
|
93
|
+
for (const e in r) Object.hasOwn(r, e) && (Number.isNaN(Number(e)) || Number(e) >= a) && (t[e] = r[e]);
|
|
94
|
+
}
|
|
95
|
+
function q(t, r) {
|
|
96
|
+
const a = Object.getPrototypeOf(r);
|
|
97
|
+
a !== null && typeof r.constructor == "function" && Object.setPrototypeOf(t, a);
|
|
98
|
+
}
|
|
99
|
+
export {
|
|
100
|
+
K as clone
|
|
101
|
+
};
|
|
102
|
+
//# sourceMappingURL=clone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clone.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/object/clone.mjs"],"sourcesContent":["import { isPrimitive } from \"../../predicate/isPrimitive.mjs\";\nimport { getTag } from \"../_internal/getTag.mjs\";\nimport { argumentsTag, arrayBufferTag, arrayTag, booleanTag, dataViewTag, dateTag, float32ArrayTag, float64ArrayTag, int16ArrayTag, int32ArrayTag, int8ArrayTag, mapTag, numberTag, objectTag, regexpTag, setTag, stringTag, symbolTag, uint16ArrayTag, uint32ArrayTag, uint8ArrayTag, uint8ClampedArrayTag } from \"../_internal/tags.mjs\";\nimport { isArray } from \"../predicate/isArray.mjs\";\nimport { isTypedArray } from \"../predicate/isTypedArray.mjs\";\n//#region src/compat/object/clone.ts\n/**\n* Creates a shallow clone of the given object.\n*\n* @template T - The type of the object.\n* @param obj - The object to clone.\n* @returns A shallow clone of the given object.\n*\n* @example\n* // Clone a primitive object\n* const num = 29;\n* const clonedNum = clone(num);\n* console.log(clonedNum); // 29\n* console.log(clonedNum === num); // true\n*\n* @example\n* // Clone an array\n* const arr = [1, 2, 3];\n* const clonedArr = clone(arr);\n* console.log(clonedArr); // [1, 2, 3]\n* console.log(clonedArr === arr); // false\n*\n* @example\n* // Clone an object\n* const obj = { a: 1, b: 'es-toolkit', c: [1, 2, 3] };\n* const clonedObj = clone(obj);\n* console.log(clonedObj); // { a: 1, b: 'es-toolkit', c: [1, 2, 3] }\n* console.log(clonedObj === obj); // false\n*/\nfunction clone(obj) {\n\tif (isPrimitive(obj)) return obj;\n\tconst tag = getTag(obj);\n\tif (!isCloneableObject(obj)) return {};\n\tif (isArray(obj)) {\n\t\tconst result = Array.from(obj);\n\t\tif (obj.length > 0 && typeof obj[0] === \"string\" && Object.hasOwn(obj, \"index\")) {\n\t\t\tresult.index = obj.index;\n\t\t\tresult.input = obj.input;\n\t\t}\n\t\treturn result;\n\t}\n\tif (isTypedArray(obj)) {\n\t\tconst typedArray = obj;\n\t\tconst Ctor = typedArray.constructor;\n\t\treturn new Ctor(typedArray.buffer, typedArray.byteOffset, typedArray.length);\n\t}\n\tif (tag === \"[object ArrayBuffer]\") return new ArrayBuffer(obj.byteLength);\n\tif (tag === \"[object DataView]\") {\n\t\tconst dataView = obj;\n\t\tconst buffer = dataView.buffer;\n\t\tconst byteOffset = dataView.byteOffset;\n\t\tconst byteLength = dataView.byteLength;\n\t\tconst clonedBuffer = new ArrayBuffer(byteLength);\n\t\tconst srcView = new Uint8Array(buffer, byteOffset, byteLength);\n\t\tnew Uint8Array(clonedBuffer).set(srcView);\n\t\treturn new DataView(clonedBuffer);\n\t}\n\tif (tag === \"[object Boolean]\" || tag === \"[object Number]\" || tag === \"[object String]\") {\n\t\tconst Ctor = obj.constructor;\n\t\tconst clone = new Ctor(obj.valueOf());\n\t\tif (tag === \"[object String]\") cloneStringObjectProperties(clone, obj);\n\t\telse copyOwnProperties(clone, obj);\n\t\treturn clone;\n\t}\n\tif (tag === \"[object Date]\") return new Date(Number(obj));\n\tif (tag === \"[object RegExp]\") {\n\t\tconst regExp = obj;\n\t\tconst clone = new RegExp(regExp.source, regExp.flags);\n\t\tclone.lastIndex = regExp.lastIndex;\n\t\treturn clone;\n\t}\n\tif (tag === \"[object Symbol]\") return Object(Symbol.prototype.valueOf.call(obj));\n\tif (tag === \"[object Map]\") {\n\t\tconst map = obj;\n\t\tconst result = /* @__PURE__ */ new Map();\n\t\tmap.forEach((obj, key) => {\n\t\t\tresult.set(key, obj);\n\t\t});\n\t\treturn result;\n\t}\n\tif (tag === \"[object Set]\") {\n\t\tconst set = obj;\n\t\tconst result = /* @__PURE__ */ new Set();\n\t\tset.forEach((obj) => {\n\t\t\tresult.add(obj);\n\t\t});\n\t\treturn result;\n\t}\n\tif (tag === \"[object Arguments]\") {\n\t\tconst args = obj;\n\t\tconst result = {};\n\t\tcopyOwnProperties(result, args);\n\t\tresult.length = args.length;\n\t\tresult[Symbol.iterator] = args[Symbol.iterator];\n\t\treturn result;\n\t}\n\tconst result = {};\n\tcopyPrototype(result, obj);\n\tcopyOwnProperties(result, obj);\n\tcopySymbolProperties(result, obj);\n\treturn result;\n}\nfunction isCloneableObject(object) {\n\tswitch (getTag(object)) {\n\t\tcase argumentsTag:\n\t\tcase arrayTag:\n\t\tcase arrayBufferTag:\n\t\tcase dataViewTag:\n\t\tcase booleanTag:\n\t\tcase dateTag:\n\t\tcase float32ArrayTag:\n\t\tcase float64ArrayTag:\n\t\tcase int8ArrayTag:\n\t\tcase int16ArrayTag:\n\t\tcase int32ArrayTag:\n\t\tcase mapTag:\n\t\tcase numberTag:\n\t\tcase objectTag:\n\t\tcase regexpTag:\n\t\tcase setTag:\n\t\tcase stringTag:\n\t\tcase symbolTag:\n\t\tcase uint8ArrayTag:\n\t\tcase uint8ClampedArrayTag:\n\t\tcase uint16ArrayTag:\n\t\tcase uint32ArrayTag: return true;\n\t\tdefault: return false;\n\t}\n}\nfunction copyOwnProperties(target, source) {\n\tfor (const key in source) if (Object.hasOwn(source, key)) target[key] = source[key];\n}\nfunction copySymbolProperties(target, source) {\n\tconst symbols = Object.getOwnPropertySymbols(source);\n\tfor (let i = 0; i < symbols.length; i++) {\n\t\tconst symbol = symbols[i];\n\t\tif (Object.prototype.propertyIsEnumerable.call(source, symbol)) target[symbol] = source[symbol];\n\t}\n}\nfunction cloneStringObjectProperties(target, source) {\n\tconst stringLength = source.valueOf().length;\n\tfor (const key in source) if (Object.hasOwn(source, key) && (Number.isNaN(Number(key)) || Number(key) >= stringLength)) target[key] = source[key];\n}\nfunction copyPrototype(target, source) {\n\tconst proto = Object.getPrototypeOf(source);\n\tif (proto !== null) {\n\t\tif (typeof source.constructor === \"function\") Object.setPrototypeOf(target, proto);\n\t}\n}\n//#endregion\nexport { clone };\n"],"names":["clone","obj","isPrimitive","tag","getTag","isCloneableObject","isArray","result","isTypedArray","typedArray","Ctor","dataView","buffer","byteOffset","byteLength","clonedBuffer","srcView","cloneStringObjectProperties","copyOwnProperties","regExp","map","key","set","args","copyPrototype","copySymbolProperties","object","argumentsTag","arrayTag","arrayBufferTag","dataViewTag","booleanTag","dateTag","float32ArrayTag","float64ArrayTag","int8ArrayTag","int16ArrayTag","int32ArrayTag","mapTag","numberTag","objectTag","regexpTag","setTag","stringTag","symbolTag","uint8ArrayTag","uint8ClampedArrayTag","uint16ArrayTag","uint32ArrayTag","target","source","symbols","i","symbol","stringLength","proto"],"mappings":";;;;;AAkCA,SAASA,EAAMC,GAAK;AACnB,MAAIC,EAAYD,CAAG,EAAG,QAAOA;AAC7B,QAAME,IAAMC,EAAOH,CAAG;AACtB,MAAI,CAACI,EAAkBJ,CAAG,EAAG,QAAO,CAAA;AACpC,MAAIK,EAAQL,CAAG,GAAG;AACjB,UAAMM,IAAS,MAAM,KAAKN,CAAG;AAC7B,WAAIA,EAAI,SAAS,KAAK,OAAOA,EAAI,CAAC,KAAM,YAAY,OAAO,OAAOA,GAAK,OAAO,MAC7EM,EAAO,QAAQN,EAAI,OACnBM,EAAO,QAAQN,EAAI,QAEbM;AAAA,EACR;AACA,MAAIC,EAAaP,CAAG,GAAG;AACtB,UAAMQ,IAAaR,GACbS,IAAOD,EAAW;AACxB,WAAO,IAAIC,EAAKD,EAAW,QAAQA,EAAW,YAAYA,EAAW,MAAM;AAAA,EAC5E;AACA,MAAIN,MAAQ,uBAAwB,QAAO,IAAI,YAAYF,EAAI,UAAU;AACzE,MAAIE,MAAQ,qBAAqB;AAChC,UAAMQ,IAAWV,GACXW,IAASD,EAAS,QAClBE,IAAaF,EAAS,YACtBG,IAAaH,EAAS,YACtBI,IAAe,IAAI,YAAYD,CAAU,GACzCE,IAAU,IAAI,WAAWJ,GAAQC,GAAYC,CAAU;AAC7D,eAAI,WAAWC,CAAY,EAAE,IAAIC,CAAO,GACjC,IAAI,SAASD,CAAY;AAAA,EACjC;AACA,MAAIZ,MAAQ,sBAAsBA,MAAQ,qBAAqBA,MAAQ,mBAAmB;AACzF,UAAMO,IAAOT,EAAI,aACXD,IAAQ,IAAIU,EAAKT,EAAI,QAAO,CAAE;AACpC,WAAIE,MAAQ,oBAAmBc,EAA4BjB,GAAOC,CAAG,IAChEiB,EAAkBlB,GAAOC,CAAG,GAC1BD;AAAA,EACR;AACA,MAAIG,MAAQ,gBAAiB,QAAO,IAAI,KAAK,OAAOF,CAAG,CAAC;AACxD,MAAIE,MAAQ,mBAAmB;AAC9B,UAAMgB,IAASlB,GACTD,IAAQ,IAAI,OAAOmB,EAAO,QAAQA,EAAO,KAAK;AACpD,WAAAnB,EAAM,YAAYmB,EAAO,WAClBnB;AAAA,EACR;AACA,MAAIG,MAAQ,kBAAmB,QAAO,OAAO,OAAO,UAAU,QAAQ,KAAKF,CAAG,CAAC;AAC/E,MAAIE,MAAQ,gBAAgB;AAC3B,UAAMiB,IAAMnB,GACNM,IAAyB,oBAAI,IAAG;AACtC,WAAAa,EAAI,QAAQ,CAACnB,GAAKoB,MAAQ;AACzB,MAAAd,EAAO,IAAIc,GAAKpB,CAAG;AAAA,IACpB,CAAC,GACMM;AAAA,EACR;AACA,MAAIJ,MAAQ,gBAAgB;AAC3B,UAAMmB,IAAMrB,GACNM,IAAyB,oBAAI,IAAG;AACtC,WAAAe,EAAI,QAAQ,CAACrB,MAAQ;AACpB,MAAAM,EAAO,IAAIN,CAAG;AAAA,IACf,CAAC,GACMM;AAAA,EACR;AACA,MAAIJ,MAAQ,sBAAsB;AACjC,UAAMoB,IAAOtB,GACPM,IAAS,CAAA;AACf,WAAAW,EAAkBX,GAAQgB,CAAI,GAC9BhB,EAAO,SAASgB,EAAK,QACrBhB,EAAO,OAAO,QAAQ,IAAIgB,EAAK,OAAO,QAAQ,GACvChB;AAAA,EACR;AACA,QAAMA,IAAS,CAAA;AACf,SAAAiB,EAAcjB,GAAQN,CAAG,GACzBiB,EAAkBX,GAAQN,CAAG,GAC7BwB,EAAqBlB,GAAQN,CAAG,GACzBM;AACR;AACA,SAASF,EAAkBqB,GAAQ;AAClC,UAAQtB,EAAOsB,CAAM,GAAC;AAAA,IACrB,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAA,IACL,KAAKC;AAAgB,aAAO;AAAA,IAC5B;AAAS,aAAO;AAAA,EAClB;AACA;AACA,SAAS9B,EAAkB+B,GAAQC,GAAQ;AAC1C,aAAW7B,KAAO6B,EAAQ,CAAI,OAAO,OAAOA,GAAQ7B,CAAG,MAAG4B,EAAO5B,CAAG,IAAI6B,EAAO7B,CAAG;AACnF;AACA,SAASI,EAAqBwB,GAAQC,GAAQ;AAC7C,QAAMC,IAAU,OAAO,sBAAsBD,CAAM;AACnD,WAASE,IAAI,GAAGA,IAAID,EAAQ,QAAQC,KAAK;AACxC,UAAMC,IAASF,EAAQC,CAAC;AACxB,IAAI,OAAO,UAAU,qBAAqB,KAAKF,GAAQG,CAAM,MAAGJ,EAAOI,CAAM,IAAIH,EAAOG,CAAM;AAAA,EAC/F;AACD;AACA,SAASpC,EAA4BgC,GAAQC,GAAQ;AACpD,QAAMI,IAAeJ,EAAO,QAAO,EAAG;AACtC,aAAW7B,KAAO6B,EAAQ,CAAI,OAAO,OAAOA,GAAQ7B,CAAG,MAAM,OAAO,MAAM,OAAOA,CAAG,CAAC,KAAK,OAAOA,CAAG,KAAKiC,OAAeL,EAAO5B,CAAG,IAAI6B,EAAO7B,CAAG;AACjJ;AACA,SAASG,EAAcyB,GAAQC,GAAQ;AACtC,QAAMK,IAAQ,OAAO,eAAeL,CAAM;AAC1C,EAAIK,MAAU,QACT,OAAOL,EAAO,eAAgB,cAAY,OAAO,eAAeD,GAAQM,CAAK;AAEnF;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloneDeep.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs"],"sourcesContent":["import { cloneDeepWith } from \"./cloneDeepWith.mjs\";\n//#region src/compat/object/cloneDeep.ts\n/**\n* Creates a deep clone of the given object.\n*\n* @template T - The type of the object.\n* @param obj - The object to clone.\n* @returns A deep clone of the given object.\n*\n* @example\n* // Clone a primitive value\n* const num = 29;\n* const clonedNum = clone(num);\n* console.log(clonedNum); // 29\n* console.log(clonedNum === num); // true\n*\n* @example\n* // Clone an array\n* const arr = [1, 2, 3];\n* const clonedArr = cloneDeep(arr);\n* console.log(clonedArr); // [1, 2, 3]\n* console.log(clonedArr === arr); // false\n*\n* @example\n* // Clone an array with nested objects\n* const arr = [1, { a: 1 }, [1, 2, 3]];\n* const clonedArr = cloneDeep(arr);\n* arr[1].a = 2;\n* console.log(arr); // [1, { a: 2 }, [1, 2, 3]]\n* console.log(clonedArr); // [1, { a: 1 }, [1, 2, 3]]\n* console.log(clonedArr === arr); // false\n*\n* @example\n* // Clone an object\n* const obj = { a: 1, b: 'es-toolkit', c: [1, 2, 3] };\n* const clonedObj = cloneDeep(obj);\n* console.log(clonedObj); // { a: 1, b: 'es-toolkit', c: [1, 2, 3] }\n* console.log(clonedObj === obj); // false\n*\n* @example\n* // Clone an object with nested objects\n* const obj = { a: 1, b: { c: 1 } };\n* const clonedObj = cloneDeep(obj);\n* obj.b.c = 2;\n* console.log(obj); // { a: 1, b: { c: 2 } }\n* console.log(clonedObj); // { a: 1, b: { c: 1 } }\n* console.log(clonedObj === obj); // false\n*/\nfunction cloneDeep(obj) {\n\treturn cloneDeepWith(obj);\n}\n//#endregion\nexport { cloneDeep };\n"],"names":["cloneDeep","obj","cloneDeepWith"],"mappings":";AAgDA,SAASA,EAAUC,GAAK;AACvB,SAAOC,EAAcD,CAAG;AACzB;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { getTag as u } from "../_internal/getTag.js";
|
|
2
|
+
import { argumentsTag as p, booleanTag as s, stringTag as f, numberTag as g } from "../_internal/tags.js";
|
|
3
|
+
import { cloneDeepWith as h, copyProperties as c } from "../../object/cloneDeepWith.js";
|
|
4
|
+
function d(t, r) {
|
|
5
|
+
return h(t, (a, i, l, n) => {
|
|
6
|
+
const o = r == null ? void 0 : r(a, i, l, n);
|
|
7
|
+
if (o !== void 0) return o;
|
|
8
|
+
if (typeof t == "object") {
|
|
9
|
+
if (u(t) === "[object Object]" && typeof t.constructor != "function") {
|
|
10
|
+
const e = {};
|
|
11
|
+
return n.set(t, e), c(e, t, l, n), e;
|
|
12
|
+
}
|
|
13
|
+
switch (Object.prototype.toString.call(t)) {
|
|
14
|
+
case g:
|
|
15
|
+
case f:
|
|
16
|
+
case s: {
|
|
17
|
+
const e = new t.constructor(t == null ? void 0 : t.valueOf());
|
|
18
|
+
return c(e, t), e;
|
|
19
|
+
}
|
|
20
|
+
case p: {
|
|
21
|
+
const e = {};
|
|
22
|
+
return c(e, t), e.length = t.length, e[Symbol.iterator] = t[Symbol.iterator], e;
|
|
23
|
+
}
|
|
24
|
+
default:
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
d as cloneDeepWith
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=cloneDeepWith.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloneDeepWith.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs"],"sourcesContent":["import { getTag } from \"../_internal/getTag.mjs\";\nimport { argumentsTag, booleanTag, numberTag, stringTag } from \"../_internal/tags.mjs\";\nimport { cloneDeepWith as cloneDeepWith$1, copyProperties } from \"../../object/cloneDeepWith.mjs\";\n//#region src/compat/object/cloneDeepWith.ts\n/**\n* Creates a deep clone of the given object using a customizer function.\n*\n* @template T - The type of the object.\n* @param obj - The object to clone.\n* @param [cloneValue] - A function to customize the cloning process.\n* @returns A deep clone of the given object.\n*\n* @example\n* // Clone a primitive value\n* const num = 29;\n* const clonedNum = cloneDeepWith(num);\n* console.log(clonedNum); // 29\n* console.log(clonedNum === num); // true\n*\n* @example\n* // Clone an object with a customizer\n* const obj = { a: 1, b: 2 };\n* const clonedObj = cloneDeepWith(obj, (value) => {\n* if (typeof value === 'number') {\n* return value * 2; // Double the number\n* }\n* });\n* console.log(clonedObj); // { a: 2, b: 4 }\n* console.log(clonedObj === obj); // false\n*\n* @example\n* // Clone an array with a customizer\n* const arr = [1, 2, 3];\n* const clonedArr = cloneDeepWith(arr, (value) => {\n* if (typeof value === 'number') {\n* return value + 1; // Increment each number\n* }\n* });\n* console.log(clonedArr); // [2, 3, 4]\n* console.log(clonedArr === arr); // false\n*/\nfunction cloneDeepWith(obj, customizer) {\n\treturn cloneDeepWith$1(obj, (value, key, object, stack) => {\n\t\tconst cloned = customizer?.(value, key, object, stack);\n\t\tif (cloned !== void 0) return cloned;\n\t\tif (typeof obj !== \"object\") return;\n\t\tif (getTag(obj) === \"[object Object]\" && typeof obj.constructor !== \"function\") {\n\t\t\tconst result = {};\n\t\t\tstack.set(obj, result);\n\t\t\tcopyProperties(result, obj, object, stack);\n\t\t\treturn result;\n\t\t}\n\t\tswitch (Object.prototype.toString.call(obj)) {\n\t\t\tcase numberTag:\n\t\t\tcase stringTag:\n\t\t\tcase booleanTag: {\n\t\t\t\tconst result = new obj.constructor(obj?.valueOf());\n\t\t\t\tcopyProperties(result, obj);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase argumentsTag: {\n\t\t\t\tconst result = {};\n\t\t\t\tcopyProperties(result, obj);\n\t\t\t\tresult.length = obj.length;\n\t\t\t\tresult[Symbol.iterator] = obj[Symbol.iterator];\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tdefault: return;\n\t\t}\n\t});\n}\n//#endregion\nexport { cloneDeepWith };\n"],"names":["cloneDeepWith","obj","customizer","cloneDeepWith$1","value","key","object","stack","cloned","getTag","result","copyProperties","numberTag","stringTag","booleanTag","argumentsTag"],"mappings":";;;AAyCA,SAASA,EAAcC,GAAKC,GAAY;AACvC,SAAOC,EAAgBF,GAAK,CAACG,GAAOC,GAAKC,GAAQC,MAAU;AAC1D,UAAMC,IAASN,KAAA,gBAAAA,EAAaE,GAAOC,GAAKC,GAAQC;AAChD,QAAIC,MAAW,OAAQ,QAAOA;AAC9B,QAAI,OAAOP,KAAQ,UACnB;AAAA,UAAIQ,EAAOR,CAAG,MAAM,qBAAqB,OAAOA,EAAI,eAAgB,YAAY;AAC/E,cAAMS,IAAS,CAAA;AACf,eAAAH,EAAM,IAAIN,GAAKS,CAAM,GACrBC,EAAeD,GAAQT,GAAKK,GAAQC,CAAK,GAClCG;AAAA,MACR;AACA,cAAQ,OAAO,UAAU,SAAS,KAAKT,CAAG,GAAC;AAAA,QAC1C,KAAKW;AAAA,QACL,KAAKC;AAAA,QACL,KAAKC,GAAY;AAChB,gBAAMJ,IAAS,IAAIT,EAAI,YAAYA,KAAA,gBAAAA,EAAK,SAAS;AACjD,iBAAAU,EAAeD,GAAQT,CAAG,GACnBS;AAAA,QACR;AAAA,QACA,KAAKK,GAAc;AAClB,gBAAML,IAAS,CAAA;AACf,iBAAAC,EAAeD,GAAQT,CAAG,GAC1BS,EAAO,SAAST,EAAI,QACpBS,EAAO,OAAO,QAAQ,IAAIT,EAAI,OAAO,QAAQ,GACtCS;AAAA,QACR;AAAA,QACA;AAAS;AAAA,MACZ;AAAA;AAAA,EACC,CAAC;AACF;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { isUnsafeProperty as o } from "../../_internal/isUnsafeProperty.js";
|
|
2
|
+
import { isDeepKey as f } from "../_internal/isDeepKey.js";
|
|
3
|
+
import { toKey as m } from "../_internal/toKey.js";
|
|
4
|
+
import { toPath as t } from "../util/toPath.js";
|
|
5
|
+
function u(e, r, i) {
|
|
6
|
+
if (e == null) return i;
|
|
7
|
+
switch (typeof r) {
|
|
8
|
+
case "string": {
|
|
9
|
+
if (o(r)) return i;
|
|
10
|
+
const n = e[r];
|
|
11
|
+
return n === void 0 ? f(r) && !Object.hasOwn(e, r) ? u(e, t(r), i) : i : n;
|
|
12
|
+
}
|
|
13
|
+
case "number":
|
|
14
|
+
case "symbol": {
|
|
15
|
+
typeof r == "number" && (r = m(r));
|
|
16
|
+
const n = e[r];
|
|
17
|
+
return n === void 0 ? i : n;
|
|
18
|
+
}
|
|
19
|
+
default: {
|
|
20
|
+
if (Array.isArray(r)) return y(e, r, i);
|
|
21
|
+
if (Object.is(r == null ? void 0 : r.valueOf(), -0) ? r = "-0" : r = String(r), o(r)) return i;
|
|
22
|
+
const n = e[r];
|
|
23
|
+
return n === void 0 ? i : n;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function y(e, r, i) {
|
|
28
|
+
if (r.length === 0) return i;
|
|
29
|
+
let n = e;
|
|
30
|
+
for (let s = 0; s < r.length; s++) {
|
|
31
|
+
if (n == null || o(r[s])) return i;
|
|
32
|
+
n = n[r[s]];
|
|
33
|
+
}
|
|
34
|
+
return n === void 0 ? i : n;
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
u as get
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/object/get.mjs"],"sourcesContent":["import { isUnsafeProperty } from \"../../_internal/isUnsafeProperty.mjs\";\nimport { isDeepKey } from \"../_internal/isDeepKey.mjs\";\nimport { toKey } from \"../_internal/toKey.mjs\";\nimport { toPath } from \"../util/toPath.mjs\";\n//#region src/compat/object/get.ts\n/**\n* Retrieves the value at a given path from an object. If the resolved value is undefined, the defaultValue is returned instead.\n*\n* @param object - The object to query.\n* @param path - The path of the property to get.\n* @param [defaultValue] - The value returned if the resolved value is undefined.\n* @returns Returns the resolved value.\n*\n* @example\n* const object = { a: { b: { c: 1 } } };\n* get(object, 'a.b.c');\n* // => 1\n*\n* get(object, ['a', 'b', 'c']);\n* // => 1\n*\n* get(object, 'a.b.d', 'default');\n* // => 'default'\n*/\nfunction get(object, path, defaultValue) {\n\tif (object == null) return defaultValue;\n\tswitch (typeof path) {\n\t\tcase \"string\": {\n\t\t\tif (isUnsafeProperty(path)) return defaultValue;\n\t\t\tconst result = object[path];\n\t\t\tif (result === void 0) if (isDeepKey(path) && !Object.hasOwn(object, path)) return get(object, toPath(path), defaultValue);\n\t\t\telse return defaultValue;\n\t\t\treturn result;\n\t\t}\n\t\tcase \"number\":\n\t\tcase \"symbol\": {\n\t\t\tif (typeof path === \"number\") path = toKey(path);\n\t\t\tconst result = object[path];\n\t\t\tif (result === void 0) return defaultValue;\n\t\t\treturn result;\n\t\t}\n\t\tdefault: {\n\t\t\tif (Array.isArray(path)) return getWithPath(object, path, defaultValue);\n\t\t\tif (Object.is(path?.valueOf(), -0)) path = \"-0\";\n\t\t\telse path = String(path);\n\t\t\tif (isUnsafeProperty(path)) return defaultValue;\n\t\t\tconst result = object[path];\n\t\t\tif (result === void 0) return defaultValue;\n\t\t\treturn result;\n\t\t}\n\t}\n}\nfunction getWithPath(object, path, defaultValue) {\n\tif (path.length === 0) return defaultValue;\n\tlet current = object;\n\tfor (let index = 0; index < path.length; index++) {\n\t\tif (current == null) return defaultValue;\n\t\tif (isUnsafeProperty(path[index])) return defaultValue;\n\t\tcurrent = current[path[index]];\n\t}\n\tif (current === void 0) return defaultValue;\n\treturn current;\n}\n//#endregion\nexport { get };\n"],"names":["get","object","path","defaultValue","isUnsafeProperty","result","isDeepKey","toPath","toKey","getWithPath","current","index"],"mappings":";;;;AAwBA,SAASA,EAAIC,GAAQC,GAAMC,GAAc;AACxC,MAAIF,KAAU,KAAM,QAAOE;AAC3B,UAAQ,OAAOD,GAAI;AAAA,IAClB,KAAK,UAAU;AACd,UAAIE,EAAiBF,CAAI,EAAG,QAAOC;AACnC,YAAME,IAASJ,EAAOC,CAAI;AAC1B,aAAIG,MAAW,SAAYC,EAAUJ,CAAI,KAAK,CAAC,OAAO,OAAOD,GAAQC,CAAI,IAAUF,EAAIC,GAAQM,EAAOL,CAAI,GAAGC,CAAY,IAC7GA,IACLE;AAAA,IACR;AAAA,IACA,KAAK;AAAA,IACL,KAAK,UAAU;AACd,MAAI,OAAOH,KAAS,aAAUA,IAAOM,EAAMN,CAAI;AAC/C,YAAMG,IAASJ,EAAOC,CAAI;AAC1B,aAAIG,MAAW,SAAeF,IACvBE;AAAA,IACR;AAAA,IACA,SAAS;AACR,UAAI,MAAM,QAAQH,CAAI,EAAG,QAAOO,EAAYR,GAAQC,GAAMC,CAAY;AAGtE,UAFI,OAAO,GAAGD,KAAA,gBAAAA,EAAM,WAAW,EAAE,IAAGA,IAAO,OACtCA,IAAO,OAAOA,CAAI,GACnBE,EAAiBF,CAAI,EAAG,QAAOC;AACnC,YAAME,IAASJ,EAAOC,CAAI;AAC1B,aAAIG,MAAW,SAAeF,IACvBE;AAAA,IACR;AAAA,EACF;AACA;AACA,SAASI,EAAYR,GAAQC,GAAMC,GAAc;AAChD,MAAID,EAAK,WAAW,EAAG,QAAOC;AAC9B,MAAIO,IAAUT;AACd,WAASU,IAAQ,GAAGA,IAAQT,EAAK,QAAQS,KAAS;AAEjD,QADID,KAAW,QACXN,EAAiBF,EAAKS,CAAK,CAAC,EAAG,QAAOR;AAC1C,IAAAO,IAAUA,EAAQR,EAAKS,CAAK,CAAC;AAAA,EAC9B;AACA,SAAID,MAAY,SAAeP,IACxBO;AACR;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { isDeepKey as f } from "../_internal/isDeepKey.js";
|
|
2
|
+
import { toKey as s } from "../_internal/toKey.js";
|
|
3
|
+
import { toPath as l } from "../util/toPath.js";
|
|
4
|
+
import { isIndex as m } from "../_internal/isIndex.js";
|
|
5
|
+
import { isArguments as u } from "../predicate/isArguments.js";
|
|
6
|
+
function O(n, r) {
|
|
7
|
+
let t;
|
|
8
|
+
if (Array.isArray(r) ? t = r : typeof r == "string" && f(r) && !(r in Object(n)) ? t = l(r) : t = [r], t.length === 0) return !1;
|
|
9
|
+
let e = n;
|
|
10
|
+
for (let o = 0; o < t.length; o++) {
|
|
11
|
+
const i = s(t[o]);
|
|
12
|
+
if ((e == null || !Object.hasOwn(e, i)) && !((Array.isArray(e) || u(e)) && m(i) && Number(i) < e.length))
|
|
13
|
+
return !1;
|
|
14
|
+
e = e[i];
|
|
15
|
+
}
|
|
16
|
+
return !0;
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
O as has
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=has.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"has.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/object/has.mjs"],"sourcesContent":["import { isDeepKey } from \"../_internal/isDeepKey.mjs\";\nimport { toKey } from \"../_internal/toKey.mjs\";\nimport { toPath } from \"../util/toPath.mjs\";\nimport { isIndex } from \"../_internal/isIndex.mjs\";\nimport { isArguments } from \"../predicate/isArguments.mjs\";\n//#region src/compat/object/has.ts\n/**\n* Checks if a given path exists within an object.\n*\n* You can provide the path as a single property key, an array of property keys,\n* or a string representing a deep path.\n*\n* If the path is an index and the object is an array or an arguments object, the function will verify\n* if the index is valid and within the bounds of the array or arguments object, even if the array or\n* arguments object is sparse (i.e., not all indexes are defined).\n*\n* @param object - The object to query.\n* @param path - The path to check. This can be a single property key,\n* an array of property keys, or a string representing a deep path.\n* @returns Returns `true` if the path exists in the object, `false` otherwise.\n*\n* @example\n*\n* const obj = { a: { b: { c: 3 } } };\n*\n* has(obj, 'a'); // true\n* has(obj, ['a', 'b']); // true\n* has(obj, ['a', 'b', 'c']); // true\n* has(obj, 'a.b.c'); // true\n* has(obj, 'a.b.d'); // false\n* has(obj, ['a', 'b', 'c', 'd']); // false\n* has([], 0); // false\n* has([1, 2, 3], 2); // true\n* has([1, 2, 3], 5); // false\n*/\nfunction has(object, path) {\n\tlet resolvedPath;\n\tif (Array.isArray(path)) resolvedPath = path;\n\telse if (typeof path === \"string\" && isDeepKey(path) && !(path in Object(object))) resolvedPath = toPath(path);\n\telse resolvedPath = [path];\n\tif (resolvedPath.length === 0) return false;\n\tlet current = object;\n\tfor (let i = 0; i < resolvedPath.length; i++) {\n\t\tconst key = toKey(resolvedPath[i]);\n\t\tif (current == null || !Object.hasOwn(current, key)) {\n\t\t\tif (!((Array.isArray(current) || isArguments(current)) && isIndex(key) && Number(key) < current.length)) return false;\n\t\t}\n\t\tcurrent = current[key];\n\t}\n\treturn true;\n}\n//#endregion\nexport { has };\n"],"names":["has","object","path","resolvedPath","isDeepKey","toPath","current","i","key","toKey","isArguments","isIndex"],"mappings":";;;;;AAmCA,SAASA,EAAIC,GAAQC,GAAM;AAC1B,MAAIC;AAIJ,MAHI,MAAM,QAAQD,CAAI,IAAGC,IAAeD,IAC/B,OAAOA,KAAS,YAAYE,EAAUF,CAAI,KAAK,EAAEA,KAAQ,OAAOD,CAAM,KAAIE,IAAeE,EAAOH,CAAI,IACxGC,IAAe,CAACD,CAAI,GACrBC,EAAa,WAAW,EAAG,QAAO;AACtC,MAAIG,IAAUL;AACd,WAASM,IAAI,GAAGA,IAAIJ,EAAa,QAAQI,KAAK;AAC7C,UAAMC,IAAMC,EAAMN,EAAaI,CAAC,CAAC;AACjC,SAAID,KAAW,QAAQ,CAAC,OAAO,OAAOA,GAASE,CAAG,MAC7C,GAAG,MAAM,QAAQF,CAAO,KAAKI,EAAYJ,CAAO,MAAMK,EAAQH,CAAG,KAAK,OAAOA,CAAG,IAAIF,EAAQ;AAAS,aAAO;AAEjH,IAAAA,IAAUA,EAAQE,CAAG;AAAA,EACtB;AACA,SAAO;AACR;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { isBuffer as s } from "../../predicate/isBuffer.js";
|
|
2
|
+
import { isArrayLike as u } from "../predicate/isArrayLike.js";
|
|
3
|
+
import { isPrototype as o } from "../_internal/isPrototype.js";
|
|
4
|
+
import { isTypedArray as y } from "../predicate/isTypedArray.js";
|
|
5
|
+
import { times as a } from "../util/times.js";
|
|
6
|
+
function I(r) {
|
|
7
|
+
if (r == null) return [];
|
|
8
|
+
switch (typeof r) {
|
|
9
|
+
case "object":
|
|
10
|
+
case "function":
|
|
11
|
+
return u(r) ? p(r) : o(r) ? d(r) : i(r);
|
|
12
|
+
default:
|
|
13
|
+
return i(Object(r));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function i(r) {
|
|
17
|
+
const t = [];
|
|
18
|
+
for (const e in r) t.push(e);
|
|
19
|
+
return t;
|
|
20
|
+
}
|
|
21
|
+
function d(r) {
|
|
22
|
+
return i(r).filter((t) => t !== "constructor");
|
|
23
|
+
}
|
|
24
|
+
function p(r) {
|
|
25
|
+
const t = a(r.length, (n) => `${n}`), e = new Set(t);
|
|
26
|
+
s(r) && (e.add("offset"), e.add("parent")), y(r) && (e.add("buffer"), e.add("byteLength"), e.add("byteOffset"));
|
|
27
|
+
const f = i(r).filter((n) => !e.has(n));
|
|
28
|
+
return Array.isArray(r) ? [...t, ...f] : [...t.filter((n) => Object.hasOwn(r, n)), ...f];
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
I as keysIn
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=keysIn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keysIn.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/object/keysIn.mjs"],"sourcesContent":["import { isBuffer } from \"../../predicate/isBuffer.mjs\";\nimport { isArrayLike } from \"../predicate/isArrayLike.mjs\";\nimport { isPrototype } from \"../_internal/isPrototype.mjs\";\nimport { isTypedArray } from \"../predicate/isTypedArray.mjs\";\nimport { times } from \"../util/times.mjs\";\n//#region src/compat/object/keysIn.ts\n/**\n* This function retrieves the names of string-keyed properties from an object, including those inherited from its prototype.\n*\n* - If the value is not an object, it is converted to an object.\n* - Array-like objects are treated like arrays.\n* - Sparse arrays with some missing indices are treated like dense arrays.\n* - If the value is `null` or `undefined`, an empty array is returned.\n* - When handling prototype objects, the `constructor` property is excluded from the results.\n*\n* @param [object] - The object to inspect for keys.\n* @returns An array of string keys from the object.\n*\n* @example\n* const obj = { a: 1, b: 2 };\n* console.log(keysIn(obj)); // ['a', 'b']\n*\n* const arr = [1, 2, 3];\n* console.log(keysIn(arr)); // ['0', '1', '2']\n*\n* function Foo() {}\n* Foo.prototype.a = 1;\n* console.log(keysIn(new Foo())); // ['a']\n*/\nfunction keysIn(object) {\n\tif (object == null) return [];\n\tswitch (typeof object) {\n\t\tcase \"object\":\n\t\tcase \"function\":\n\t\t\tif (isArrayLike(object)) return arrayLikeKeysIn(object);\n\t\t\tif (isPrototype(object)) return prototypeKeysIn(object);\n\t\t\treturn keysInImpl(object);\n\t\tdefault: return keysInImpl(Object(object));\n\t}\n}\nfunction keysInImpl(object) {\n\tconst result = [];\n\tfor (const key in object) result.push(key);\n\treturn result;\n}\nfunction prototypeKeysIn(object) {\n\treturn keysInImpl(object).filter((key) => key !== \"constructor\");\n}\nfunction arrayLikeKeysIn(object) {\n\tconst indices = times(object.length, (index) => `${index}`);\n\tconst filteredKeys = new Set(indices);\n\tif (isBuffer(object)) {\n\t\tfilteredKeys.add(\"offset\");\n\t\tfilteredKeys.add(\"parent\");\n\t}\n\tif (isTypedArray(object)) {\n\t\tfilteredKeys.add(\"buffer\");\n\t\tfilteredKeys.add(\"byteLength\");\n\t\tfilteredKeys.add(\"byteOffset\");\n\t}\n\tconst inheritedKeys = keysInImpl(object).filter((key) => !filteredKeys.has(key));\n\tif (Array.isArray(object)) return [...indices, ...inheritedKeys];\n\treturn [...indices.filter((index) => Object.hasOwn(object, index)), ...inheritedKeys];\n}\n//#endregion\nexport { keysIn };\n"],"names":["keysIn","object","isArrayLike","arrayLikeKeysIn","isPrototype","prototypeKeysIn","keysInImpl","result","key","indices","times","index","filteredKeys","isBuffer","isTypedArray","inheritedKeys"],"mappings":";;;;;AA6BA,SAASA,EAAOC,GAAQ;AACvB,MAAIA,KAAU,KAAM,QAAO,CAAA;AAC3B,UAAQ,OAAOA,GAAM;AAAA,IACpB,KAAK;AAAA,IACL,KAAK;AACJ,aAAIC,EAAYD,CAAM,IAAUE,EAAgBF,CAAM,IAClDG,EAAYH,CAAM,IAAUI,EAAgBJ,CAAM,IAC/CK,EAAWL,CAAM;AAAA,IACzB;AAAS,aAAOK,EAAW,OAAOL,CAAM,CAAC;AAAA,EAC3C;AACA;AACA,SAASK,EAAWL,GAAQ;AAC3B,QAAMM,IAAS,CAAA;AACf,aAAWC,KAAOP,EAAQ,CAAAM,EAAO,KAAKC,CAAG;AACzC,SAAOD;AACR;AACA,SAASF,EAAgBJ,GAAQ;AAChC,SAAOK,EAAWL,CAAM,EAAE,OAAO,CAACO,MAAQA,MAAQ,aAAa;AAChE;AACA,SAASL,EAAgBF,GAAQ;AAChC,QAAMQ,IAAUC,EAAMT,EAAO,QAAQ,CAACU,MAAU,GAAGA,CAAK,EAAE,GACpDC,IAAe,IAAI,IAAIH,CAAO;AACpC,EAAII,EAASZ,CAAM,MAClBW,EAAa,IAAI,QAAQ,GACzBA,EAAa,IAAI,QAAQ,IAEtBE,EAAab,CAAM,MACtBW,EAAa,IAAI,QAAQ,GACzBA,EAAa,IAAI,YAAY,GAC7BA,EAAa,IAAI,YAAY;AAE9B,QAAMG,IAAgBT,EAAWL,CAAM,EAAE,OAAO,CAACO,MAAQ,CAACI,EAAa,IAAIJ,CAAG,CAAC;AAC/E,SAAI,MAAM,QAAQP,CAAM,IAAU,CAAC,GAAGQ,GAAS,GAAGM,CAAa,IACxD,CAAC,GAAGN,EAAQ,OAAO,CAACE,MAAU,OAAO,OAAOV,GAAQU,CAAK,CAAC,GAAG,GAAGI,CAAa;AACrF;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { identity as e } from "../../function/identity.js";
|
|
2
|
+
import { mapValues as m } from "../../object/mapValues.js";
|
|
3
|
+
import { iteratee as a } from "../util/iteratee.js";
|
|
4
|
+
function u(r, t = e) {
|
|
5
|
+
return r == null ? {} : m(r, a(t));
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
u as mapValues
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=mapValues.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapValues.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/object/mapValues.mjs"],"sourcesContent":["import { identity } from \"../../function/identity.mjs\";\nimport { mapValues as mapValues$1 } from \"../../object/mapValues.mjs\";\nimport { iteratee } from \"../util/iteratee.mjs\";\n//#region src/compat/object/mapValues.ts\n/**\n* Creates a new object with the same keys as the given object, but with values generated\n* by running each own enumerable property of the object through the iteratee function.\n*\n* @template T - The type of the object.\n* @template K - The type of the keys in the object.\n* @template V - The type of the new values generated by the iteratee function.\n*\n* @param object - The object to iterate over.\n* @param [getNewValue] -\n* The function invoked per own enumerable property, or a path to generate new values.\n* @returns Returns the new mapped object.\n*\n* @example\n* // Example usage:\n* const obj = { a: 1, b: 2 };\n* const result = mapValues(obj, (value) => value * 2);\n* console.log(result); // { a: 2, b: 4 }\n*/\nfunction mapValues(object, getNewValue = identity) {\n\tif (object == null) return {};\n\treturn mapValues$1(object, iteratee(getNewValue));\n}\n//#endregion\nexport { mapValues };\n"],"names":["mapValues","object","getNewValue","identity","mapValues$1","iteratee"],"mappings":";;;AAuBA,SAASA,EAAUC,GAAQC,IAAcC,GAAU;AAClD,SAAIF,KAAU,OAAa,CAAA,IACpBG,EAAYH,GAAQI,EAASH,CAAW,CAAC;AACjD;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge.js","sources":["../../../../../../node_modules/es-toolkit/dist/compat/object/merge.mjs"],"sourcesContent":["import { noop } from \"../../function/noop.mjs\";\nimport { mergeWith } from \"./mergeWith.mjs\";\n//#region src/compat/object/merge.ts\n/**\n* Merges the properties of one or more source objects into the target object.\n*\n* This function performs a deep merge, recursively merging nested objects and arrays.\n* If a property in the source object is an array or object and the corresponding property in the target object is also an array or object, they will be merged.\n* If a property in the source object is `undefined`, it will not overwrite a defined property in the target object.\n*\n* The function can handle multiple source objects and will merge them all into the target object.\n*\n* @param object - The target object into which the source object properties will be merged. This object is modified in place.\n* @param sources - The source objects whose properties will be merged into the target object.\n* @returns The updated target object with properties from the source object(s) merged in.\n*\n* @example\n* const target = { a: 1, b: { x: 1, y: 2 } };\n* const source = { b: { y: 3, z: 4 }, c: 5 };\n*\n* const result = merge(target, source);\n* console.log(result);\n* // Output: { a: 1, b: { x: 1, y: 3, z: 4 }, c: 5 }\n*\n* @example\n* const target = { a: [1, 2], b: { x: 1 } };\n* const source = { a: [3], b: { y: 2 } };\n*\n* const result = merge(target, source);\n* console.log(result);\n* // Output: { a: [3], b: { x: 1, y: 2 } }\n*\n* @example\n* const target = { a: null };\n* const source = { a: [1, 2, 3] };\n*\n* const result = merge(target, source);\n* console.log(result);\n* // Output: { a: [1, 2, 3] }\n*/\nfunction merge(object, ...sources) {\n\treturn mergeWith(object, ...sources, noop);\n}\n//#endregion\nexport { merge };\n"],"names":["merge","object","sources","mergeWith","noop"],"mappings":";;AAwCA,SAASA,EAAMC,MAAWC,GAAS;AAClC,SAAOC,EAAUF,GAAQ,GAAGC,GAASE,CAAI;AAC1C;","x_google_ignoreList":[0]}
|