@opentiny/tiny-robot 0.2.0-alpha.1 → 0.2.0-alpha.3
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/_plugin-vue_export-helper.js +9 -0
- package/dist/action-group/index.js +142 -0
- package/dist/bubble/index.js +3211 -0
- package/dist/{node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/close.js → close.js} +9 -9
- package/dist/container/index.js +60 -0
- package/dist/conversations/index.js +14 -0
- package/dist/feedback/index.js +192 -0
- package/dist/history/index.js +228 -0
- package/dist/icon-button/index.js +31 -0
- package/dist/index.d.ts +2190 -26
- package/dist/index.js +35 -43
- package/dist/index2.js +376 -0
- package/dist/index3.js +3895 -0
- package/dist/index4.js +637 -0
- package/dist/index5.js +3237 -0
- package/dist/index6.js +4623 -0
- package/dist/prompts/index.js +83 -0
- package/dist/question/index.js +375 -0
- package/dist/sender/index.js +683 -0
- package/dist/style.css +1 -1
- package/dist/suggestion/index.js +497 -0
- package/dist/{packages/svgs/dist/tiny-robot-svgs.js → tiny-robot-svgs.js} +100 -100
- package/dist/welcome/index.js +38 -0
- package/package.json +7 -3
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/action-group/ActionGroup.vue.d.ts +0 -26
- package/dist/action-group/ActionGroupItem.vue.d.ts +0 -18
- package/dist/action-group/index.d.ts +0 -12
- package/dist/action-group/index.type.d.ts +0 -16
- package/dist/bubble/bubble-list.vue.d.ts +0 -5
- package/dist/bubble/components/actions/copy.vue.d.ts +0 -10
- package/dist/bubble/components/actions/index.d.ts +0 -2
- package/dist/bubble/components/actions/refresh.vue.d.ts +0 -2
- package/dist/bubble/index.d.ts +0 -12
- package/dist/bubble/index.type.d.ts +0 -53
- package/dist/bubble/useScroll.d.ts +0 -4
- package/dist/container/index.d.ts +0 -7
- package/dist/container/index.type.d.ts +0 -16
- package/dist/container/index.vue.d.ts +0 -26
- package/dist/conversations/index.d.ts +0 -7
- package/dist/conversations/index.vue.d.ts +0 -2
- package/dist/feedback/components/SourceList.vue.d.ts +0 -11
- package/dist/feedback/components/index.d.ts +0 -1
- package/dist/feedback/index.d.ts +0 -7
- package/dist/feedback/index.type.d.ts +0 -25
- package/dist/feedback/index.vue.d.ts +0 -13
- package/dist/history/components/index.d.ts +0 -2
- package/dist/history/components/item-tag.vue.d.ts +0 -5
- package/dist/history/components/search-empty.vue.d.ts +0 -7
- package/dist/history/composables/index.d.ts +0 -1
- package/dist/history/composables/useEditItemTitle.d.ts +0 -12
- package/dist/history/index.d.ts +0 -6
- package/dist/history/index.type.d.ts +0 -43
- package/dist/history/index.vue.d.ts +0 -2
- package/dist/icon-button/index.d.ts +0 -7
- package/dist/icon-button/index.type.d.ts +0 -7
- package/dist/icon-button/index.vue.d.ts +0 -6
- package/dist/node_modules/.pnpm/@opentiny_utils@1.0.0/node_modules/@opentiny/utils/dist/opentiny-utils.es.js +0 -832
- package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +0 -2116
- package/dist/node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/index.js +0 -113
- package/dist/node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/pc.js +0 -93
- package/dist/node_modules/.pnpm/@opentiny_vue-common@3.21.0/node_modules/@opentiny/vue-common/lib/index.js +0 -727
- package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +0 -710
- package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.21.0/node_modules/@opentiny/vue-dialog-box/lib/index.js +0 -198
- package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.21.0/node_modules/@opentiny/vue-dialog-box/lib/pc.js +0 -204
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useEventListener.js +0 -10
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useInstanceSlots.js +0 -14
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useRelation.js +0 -54
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +0 -85
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/close.js +0 -29
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/eyeclose.js +0 -42
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/eyeopen.js +0 -43
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/finish.js +0 -34
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/fullscreen.js +0 -30
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/loading-shadow.js +0 -77
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/minscreen.js +0 -30
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-after.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-before.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-after.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-before.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-center.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-left.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-right.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-bold.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-block.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-view.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-color.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-column.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-row.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-table.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-font-size.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-format-clear.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h1.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h2.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h3.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h4.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h5.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h6.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-heading.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-high-light.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-image.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-italic.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-line-height.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-link-unlink.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-link.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-ordered.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-unordered.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells-vertical.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-node-delete.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-paragraph.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-quote-text.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-redo.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-horizontal.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-vertical.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-strike-through.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-subscript.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-superscript.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-table.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-task-list.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-underline.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-undo.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/sub-script.js +0 -29
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/warn.js +0 -26
- package/dist/node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/index.js +0 -196
- package/dist/node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/pc.js +0 -568
- package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.21.0/node_modules/@opentiny/vue-locale/lib/index.js +0 -1783
- package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.22.0/node_modules/@opentiny/vue-locale/lib/index.js +0 -1783
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/button/index.js +0 -13
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/button/vue.js +0 -34
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/chunk-G2ADBYYC.js +0 -12
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/browser.js +0 -36
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/clickoutside.js +0 -47
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/debounce.js +0 -7
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/dom.js +0 -45
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popper.js +0 -320
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popup-manager.js +0 -118
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/throttle.js +0 -23
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useEventListener.js +0 -9
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useInstanceSlots.js +0 -14
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useRelation.js +0 -54
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popper.js +0 -84
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popup.js +0 -73
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/event.js +0 -13
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/function.js +0 -5
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/index.js +0 -11
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/object.js +0 -84
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/string.js +0 -28
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/type.js +0 -28
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/index.js +0 -136
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/vue.js +0 -148
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/input/index.js +0 -228
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/input/vue.js +0 -263
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/index.js +0 -63
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/vue-storage-box.js +0 -16
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/vue.js +0 -23
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/index.js +0 -78
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/index.js +0 -77
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.21.0/node_modules/@opentiny/vue-tooltip/lib/index.js +0 -173
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.21.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +0 -248
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/index.js +0 -176
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +0 -248
- package/dist/node_modules/.pnpm/@vueuse_core@13.1.0_vue@3.5.13/node_modules/@vueuse/core/index.js +0 -190
- package/dist/node_modules/.pnpm/@vueuse_shared@13.1.0_vue@3.5.13/node_modules/@vueuse/shared/index.js +0 -53
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js +0 -277
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js +0 -46
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -7
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -7
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.js +0 -187
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js +0 -19
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.js +0 -67
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js +0 -5
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js +0 -164
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js +0 -8
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js +0 -44
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.js +0 -21
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js +0 -37
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js +0 -112
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js +0 -63
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js +0 -34
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js +0 -96
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.js +0 -78
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.js +0 -40
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.js +0 -59
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.js +0 -127
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.js +0 -95
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.js +0 -59
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js +0 -23
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js +0 -30
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js +0 -28
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js +0 -27
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js +0 -37
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.js +0 -43
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js +0 -110
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js +0 -25
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js +0 -95
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.js +0 -84
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js +0 -99
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.js +0 -7
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js +0 -10
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js +0 -57
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.js +0 -9
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.js +0 -31
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js +0 -80
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.js +0 -8
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js +0 -16
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js +0 -46
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.js +0 -31
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +0 -34
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.js +0 -57
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +0 -33
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js +0 -32
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js +0 -10
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js +0 -32
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.js +0 -48
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.js +0 -40
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js +0 -28
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.js +0 -23
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js +0 -27
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.js +0 -54
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js +0 -39
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.js +0 -31
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.js +0 -10
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.js +0 -61
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.js +0 -48
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.js +0 -7
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.js +0 -74
- package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +0 -139
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js +0 -14
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js +0 -4
- package/dist/packages/components/src/action-group/ActionGroup.vue.js +0 -7
- package/dist/packages/components/src/action-group/ActionGroup.vue2.js +0 -97
- package/dist/packages/components/src/action-group/ActionGroupItem.vue.js +0 -14
- package/dist/packages/components/src/action-group/ActionGroupItem.vue2.js +0 -4
- package/dist/packages/components/src/action-group/index.js +0 -17
- package/dist/packages/components/src/assets/icons/accessory.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/loading-speech.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/loading.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/send.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/voice.svg.js +0 -4
- package/dist/packages/components/src/bubble/bubble-list.vue.js +0 -7
- package/dist/packages/components/src/bubble/bubble-list.vue2.js +0 -37
- package/dist/packages/components/src/bubble/bubble.vue.js +0 -7
- package/dist/packages/components/src/bubble/bubble.vue2.js +0 -118
- package/dist/packages/components/src/bubble/components/actions/copy.vue.js +0 -7
- package/dist/packages/components/src/bubble/components/actions/copy.vue2.js +0 -35
- package/dist/packages/components/src/bubble/components/actions/refresh.vue.js +0 -7
- package/dist/packages/components/src/bubble/components/actions/refresh.vue2.js +0 -16
- package/dist/packages/components/src/bubble/index.js +0 -18
- package/dist/packages/components/src/bubble/useScroll.js +0 -13
- package/dist/packages/components/src/container/index.js +0 -9
- package/dist/packages/components/src/container/index.vue.js +0 -7
- package/dist/packages/components/src/container/index.vue2.js +0 -55
- package/dist/packages/components/src/conversations/index.js +0 -9
- package/dist/packages/components/src/conversations/index.vue.js +0 -9
- package/dist/packages/components/src/feedback/components/SourceList.vue.js +0 -7
- package/dist/packages/components/src/feedback/components/SourceList.vue2.js +0 -52
- package/dist/packages/components/src/feedback/index.js +0 -9
- package/dist/packages/components/src/feedback/index.vue.js +0 -7
- package/dist/packages/components/src/feedback/index.vue2.js +0 -142
- package/dist/packages/components/src/history/components/item-tag.vue.js +0 -7
- package/dist/packages/components/src/history/components/item-tag.vue2.js +0 -21
- package/dist/packages/components/src/history/components/search-empty.vue.js +0 -7
- package/dist/packages/components/src/history/components/search-empty.vue2.js +0 -20
- package/dist/packages/components/src/history/composables/useEditItemTitle.js +0 -43
- package/dist/packages/components/src/history/index.js +0 -11
- package/dist/packages/components/src/history/index.vue.js +0 -7
- package/dist/packages/components/src/history/index.vue2.js +0 -130
- package/dist/packages/components/src/icon-button/index.js +0 -9
- package/dist/packages/components/src/icon-button/index.vue.js +0 -7
- package/dist/packages/components/src/icon-button/index.vue2.js +0 -40
- package/dist/packages/components/src/prompts/index.js +0 -18
- package/dist/packages/components/src/prompts/prompt.vue.js +0 -7
- package/dist/packages/components/src/prompts/prompt.vue2.js +0 -39
- package/dist/packages/components/src/prompts/prompts.vue.js +0 -7
- package/dist/packages/components/src/prompts/prompts.vue2.js +0 -36
- package/dist/packages/components/src/question/components/CommonQuestions.vue.js +0 -89
- package/dist/packages/components/src/question/components/CommonQuestions.vue2.js +0 -4
- package/dist/packages/components/src/question/components/HotQuestions.vue.js +0 -140
- package/dist/packages/components/src/question/components/HotQuestions.vue2.js +0 -4
- package/dist/packages/components/src/question/composables/useQuestions.js +0 -48
- package/dist/packages/components/src/question/index.js +0 -9
- package/dist/packages/components/src/question/index.vue.js +0 -113
- package/dist/packages/components/src/question/index.vue2.js +0 -4
- package/dist/packages/components/src/sender/components/ActionButtons.vue.js +0 -143
- package/dist/packages/components/src/sender/components/ActionButtons.vue2.js +0 -4
- package/dist/packages/components/src/sender/components/TemplateEditor.vue.js +0 -7
- package/dist/packages/components/src/sender/components/TemplateEditor.vue2.js +0 -121
- package/dist/packages/components/src/sender/composables/useInputHandler.js +0 -38
- package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +0 -31
- package/dist/packages/components/src/sender/composables/useSpeechHandler.js +0 -67
- package/dist/packages/components/src/sender/index.js +0 -9
- package/dist/packages/components/src/sender/index.vue.js +0 -255
- package/dist/packages/components/src/sender/index.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/components/CategoryNav.vue.js +0 -38
- package/dist/packages/components/src/suggestion/components/CategoryNav.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue.js +0 -107
- package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue.js +0 -123
- package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/composables/useKeyboardNavigation.js +0 -45
- package/dist/packages/components/src/suggestion/composables/useTriggerDetection.js +0 -17
- package/dist/packages/components/src/suggestion/index.js +0 -9
- package/dist/packages/components/src/suggestion/index.vue.js +0 -179
- package/dist/packages/components/src/suggestion/index.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/utils/dom.js +0 -18
- package/dist/packages/components/src/welcome/index.js +0 -9
- package/dist/packages/components/src/welcome/index.vue.js +0 -7
- package/dist/packages/components/src/welcome/index.vue2.js +0 -32
- package/dist/prompts/index.d.ts +0 -12
- package/dist/prompts/index.type.d.ts +0 -55
- package/dist/prompts/prompt.vue.d.ts +0 -3
- package/dist/prompts/prompts.vue.d.ts +0 -20
- package/dist/question/components/CommonQuestions.vue.d.ts +0 -32
- package/dist/question/components/HotQuestions.vue.d.ts +0 -89
- package/dist/question/composables/useQuestions.d.ts +0 -17
- package/dist/question/index.d.ts +0 -7
- package/dist/question/index.type.d.ts +0 -74
- package/dist/question/index.vue.d.ts +0 -46
- package/dist/sender/components/ActionButtons.vue.d.ts +0 -25
- package/dist/sender/components/TemplateEditor.vue.d.ts +0 -18
- package/dist/sender/composables/useInputHandler.d.ts +0 -17
- package/dist/sender/composables/useKeyboardHandler.d.ts +0 -18
- package/dist/sender/composables/useSpeechHandler.d.ts +0 -8
- package/dist/sender/index.d.ts +0 -7
- package/dist/sender/index.type.d.ts +0 -137
- package/dist/sender/index.vue.d.ts +0 -1012
- package/dist/suggestion/components/CategoryNav.vue.d.ts +0 -45
- package/dist/suggestion/components/SuggestionCapsule.vue.d.ts +0 -32
- package/dist/suggestion/components/SuggestionPanel.vue.d.ts +0 -84
- package/dist/suggestion/composables/useKeyboardNavigation.d.ts +0 -18
- package/dist/suggestion/composables/useSuggestionFilter.d.ts +0 -10
- package/dist/suggestion/composables/useTriggerDetection.d.ts +0 -11
- package/dist/suggestion/index.d.ts +0 -7
- package/dist/suggestion/index.type.d.ts +0 -94
- package/dist/suggestion/index.vue.d.ts +0 -343
- package/dist/suggestion/utils/dom.d.ts +0 -20
- package/dist/welcome/index.d.ts +0 -7
- package/dist/welcome/index.type.d.ts +0 -10
- package/dist/welcome/index.vue.d.ts +0 -18
- package/src/action-group/ActionGroup.vue +0 -232
- package/src/action-group/ActionGroupItem.vue +0 -9
- package/src/action-group/index.ts +0 -25
- package/src/action-group/index.type.ts +0 -20
- package/src/assets/icons/accessory.svg +0 -12
- package/src/assets/icons/loading-speech.svg +0 -16
- package/src/assets/icons/loading.svg +0 -17
- package/src/assets/icons/send.svg +0 -21
- package/src/assets/icons/voice.svg +0 -22
- package/src/bubble/bubble-list.vue +0 -42
- package/src/bubble/bubble.vue +0 -237
- package/src/bubble/components/actions/copy.vue +0 -54
- package/src/bubble/components/actions/index.ts +0 -2
- package/src/bubble/components/actions/refresh.vue +0 -31
- package/src/bubble/index.ts +0 -23
- package/src/bubble/index.type.ts +0 -63
- package/src/bubble/useScroll.ts +0 -14
- package/src/container/index.ts +0 -12
- package/src/container/index.type.ts +0 -17
- package/src/container/index.vue +0 -134
- package/src/conversations/index.ts +0 -12
- package/src/conversations/index.vue +0 -3
- package/src/feedback/components/SourceList.vue +0 -112
- package/src/feedback/components/index.ts +0 -1
- package/src/feedback/index.ts +0 -12
- package/src/feedback/index.type.ts +0 -27
- package/src/feedback/index.vue +0 -166
- package/src/history/components/index.ts +0 -2
- package/src/history/components/item-tag.vue +0 -49
- package/src/history/components/search-empty.vue +0 -38
- package/src/history/composables/index.ts +0 -1
- package/src/history/composables/useEditItemTitle.ts +0 -75
- package/src/history/index.ts +0 -12
- package/src/history/index.type.ts +0 -50
- package/src/history/index.vue +0 -292
- package/src/icon-button/index.ts +0 -12
- package/src/icon-button/index.type.ts +0 -8
- package/src/icon-button/index.vue +0 -52
- package/src/index.ts +0 -76
- package/src/prompts/index.ts +0 -25
- package/src/prompts/index.type.ts +0 -59
- package/src/prompts/prompt.vue +0 -101
- package/src/prompts/prompts.vue +0 -50
- package/src/question/components/CommonQuestions.vue +0 -146
- package/src/question/components/HotQuestions.vue +0 -148
- package/src/question/composables/useQuestions.ts +0 -106
- package/src/question/index.less +0 -447
- package/src/question/index.ts +0 -12
- package/src/question/index.type.ts +0 -86
- package/src/question/index.vue +0 -140
- package/src/question/vars.less +0 -135
- package/src/sender/components/ActionButtons.vue +0 -168
- package/src/sender/components/TemplateEditor.vue +0 -274
- package/src/sender/composables/useInputHandler.ts +0 -74
- package/src/sender/composables/useKeyboardHandler.ts +0 -101
- package/src/sender/composables/useSpeechHandler.ts +0 -122
- package/src/sender/index.less +0 -352
- package/src/sender/index.ts +0 -12
- package/src/sender/index.type.ts +0 -162
- package/src/sender/index.vue +0 -338
- package/src/sender/vars.less +0 -84
- package/src/suggestion/components/CategoryNav.vue +0 -38
- package/src/suggestion/components/SuggestionCapsule.vue +0 -183
- package/src/suggestion/components/SuggestionPanel.vue +0 -147
- package/src/suggestion/composables/useKeyboardNavigation.ts +0 -101
- package/src/suggestion/composables/useSuggestionFilter.ts +0 -34
- package/src/suggestion/composables/useTriggerDetection.ts +0 -46
- package/src/suggestion/index.less +0 -497
- package/src/suggestion/index.ts +0 -12
- package/src/suggestion/index.type.ts +0 -101
- package/src/suggestion/index.vue +0 -338
- package/src/suggestion/utils/dom.ts +0 -66
- package/src/suggestion/vars.less +0 -141
- package/src/vite-env.d.ts +0 -1
- package/src/welcome/index.ts +0 -12
- package/src/welcome/index.type.ts +0 -12
- package/src/welcome/index.vue +0 -69
- package/tsconfig.json +0 -37
- package/tsconfig.node.json +0 -10
- package/vite.config.ts +0 -53
|
@@ -1,832 +0,0 @@
|
|
|
1
|
-
var kt = Object.defineProperty, At = (t, s, e) => s in t ? kt(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e, D = (t, s, e) => (At(t, typeof s != "symbol" ? s + "" : s, e), e);
|
|
2
|
-
const et = () => typeof window < "u" && typeof document < "u" && window.document === document, P = () => et() ? window : global, It = "tcirzywvqlkjhgfbZQG_FLOWHSUBDNIMYREVKCAJxp57XP043891T62-modnaesu";
|
|
3
|
-
It.split("").reverse().join("");
|
|
4
|
-
function Tt(t) {
|
|
5
|
-
return et() && (t.document.all || t.document.documentMode) && !t.crypto && t.msCrypto;
|
|
6
|
-
}
|
|
7
|
-
function Lt(t) {
|
|
8
|
-
if (Tt(t)) {
|
|
9
|
-
t.crypto = t.msCrypto;
|
|
10
|
-
const s = t.crypto.getRandomValues;
|
|
11
|
-
t.crypto.getRandomValues = function(e) {
|
|
12
|
-
const r = s.call(t.crypto, e), i = [];
|
|
13
|
-
for (let a = 0; a < e.length; a++)
|
|
14
|
-
i[a] = r[a];
|
|
15
|
-
return i;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
const St = P();
|
|
20
|
-
Lt(St);
|
|
21
|
-
var X = { exports: {} }, u = {}, R = { exports: {} }, x = {};
|
|
22
|
-
function st() {
|
|
23
|
-
var t = {};
|
|
24
|
-
return t["align-content"] = !1, t["align-items"] = !1, t["align-self"] = !1, t["alignment-adjust"] = !1, t["alignment-baseline"] = !1, t.all = !1, t["anchor-point"] = !1, t.animation = !1, t["animation-delay"] = !1, t["animation-direction"] = !1, t["animation-duration"] = !1, t["animation-fill-mode"] = !1, t["animation-iteration-count"] = !1, t["animation-name"] = !1, t["animation-play-state"] = !1, t["animation-timing-function"] = !1, t.azimuth = !1, t["backface-visibility"] = !1, t.background = !0, t["background-attachment"] = !0, t["background-clip"] = !0, t["background-color"] = !0, t["background-image"] = !0, t["background-origin"] = !0, t["background-position"] = !0, t["background-repeat"] = !0, t["background-size"] = !0, t["baseline-shift"] = !1, t.binding = !1, t.bleed = !1, t["bookmark-label"] = !1, t["bookmark-level"] = !1, t["bookmark-state"] = !1, t.border = !0, t["border-bottom"] = !0, t["border-bottom-color"] = !0, t["border-bottom-left-radius"] = !0, t["border-bottom-right-radius"] = !0, t["border-bottom-style"] = !0, t["border-bottom-width"] = !0, t["border-collapse"] = !0, t["border-color"] = !0, t["border-image"] = !0, t["border-image-outset"] = !0, t["border-image-repeat"] = !0, t["border-image-slice"] = !0, t["border-image-source"] = !0, t["border-image-width"] = !0, t["border-left"] = !0, t["border-left-color"] = !0, t["border-left-style"] = !0, t["border-left-width"] = !0, t["border-radius"] = !0, t["border-right"] = !0, t["border-right-color"] = !0, t["border-right-style"] = !0, t["border-right-width"] = !0, t["border-spacing"] = !0, t["border-style"] = !0, t["border-top"] = !0, t["border-top-color"] = !0, t["border-top-left-radius"] = !0, t["border-top-right-radius"] = !0, t["border-top-style"] = !0, t["border-top-width"] = !0, t["border-width"] = !0, t.bottom = !1, t["box-decoration-break"] = !0, t["box-shadow"] = !0, t["box-sizing"] = !0, t["box-snap"] = !0, t["box-suppress"] = !0, t["break-after"] = !0, t["break-before"] = !0, t["break-inside"] = !0, t["caption-side"] = !1, t.chains = !1, t.clear = !0, t.clip = !1, t["clip-path"] = !1, t["clip-rule"] = !1, t.color = !0, t["color-interpolation-filters"] = !0, t["column-count"] = !1, t["column-fill"] = !1, t["column-gap"] = !1, t["column-rule"] = !1, t["column-rule-color"] = !1, t["column-rule-style"] = !1, t["column-rule-width"] = !1, t["column-span"] = !1, t["column-width"] = !1, t.columns = !1, t.contain = !1, t.content = !1, t["counter-increment"] = !1, t["counter-reset"] = !1, t["counter-set"] = !1, t.crop = !1, t.cue = !1, t["cue-after"] = !1, t["cue-before"] = !1, t.cursor = !1, t.direction = !1, t.display = !0, t["display-inside"] = !0, t["display-list"] = !0, t["display-outside"] = !0, t["dominant-baseline"] = !1, t.elevation = !1, t["empty-cells"] = !1, t.filter = !1, t.flex = !1, t["flex-basis"] = !1, t["flex-direction"] = !1, t["flex-flow"] = !1, t["flex-grow"] = !1, t["flex-shrink"] = !1, t["flex-wrap"] = !1, t.float = !1, t["float-offset"] = !1, t["flood-color"] = !1, t["flood-opacity"] = !1, t["flow-from"] = !1, t["flow-into"] = !1, t.font = !0, t["font-family"] = !0, t["font-feature-settings"] = !0, t["font-kerning"] = !0, t["font-language-override"] = !0, t["font-size"] = !0, t["font-size-adjust"] = !0, t["font-stretch"] = !0, t["font-style"] = !0, t["font-synthesis"] = !0, t["font-variant"] = !0, t["font-variant-alternates"] = !0, t["font-variant-caps"] = !0, t["font-variant-east-asian"] = !0, t["font-variant-ligatures"] = !0, t["font-variant-numeric"] = !0, t["font-variant-position"] = !0, t["font-weight"] = !0, t.grid = !1, t["grid-area"] = !1, t["grid-auto-columns"] = !1, t["grid-auto-flow"] = !1, t["grid-auto-rows"] = !1, t["grid-column"] = !1, t["grid-column-end"] = !1, t["grid-column-start"] = !1, t["grid-row"] = !1, t["grid-row-end"] = !1, t["grid-row-start"] = !1, t["grid-template"] = !1, t["grid-template-areas"] = !1, t["grid-template-columns"] = !1, t["grid-template-rows"] = !1, t["hanging-punctuation"] = !1, t.height = !0, t.hyphens = !1, t.icon = !1, t["image-orientation"] = !1, t["image-resolution"] = !1, t["ime-mode"] = !1, t["initial-letters"] = !1, t["inline-box-align"] = !1, t["justify-content"] = !1, t["justify-items"] = !1, t["justify-self"] = !1, t.left = !1, t["letter-spacing"] = !0, t["lighting-color"] = !0, t["line-box-contain"] = !1, t["line-break"] = !1, t["line-grid"] = !1, t["line-height"] = !1, t["line-snap"] = !1, t["line-stacking"] = !1, t["line-stacking-ruby"] = !1, t["line-stacking-shift"] = !1, t["line-stacking-strategy"] = !1, t["list-style"] = !0, t["list-style-image"] = !0, t["list-style-position"] = !0, t["list-style-type"] = !0, t.margin = !0, t["margin-bottom"] = !0, t["margin-left"] = !0, t["margin-right"] = !0, t["margin-top"] = !0, t["marker-offset"] = !1, t["marker-side"] = !1, t.marks = !1, t.mask = !1, t["mask-box"] = !1, t["mask-box-outset"] = !1, t["mask-box-repeat"] = !1, t["mask-box-slice"] = !1, t["mask-box-source"] = !1, t["mask-box-width"] = !1, t["mask-clip"] = !1, t["mask-image"] = !1, t["mask-origin"] = !1, t["mask-position"] = !1, t["mask-repeat"] = !1, t["mask-size"] = !1, t["mask-source-type"] = !1, t["mask-type"] = !1, t["max-height"] = !0, t["max-lines"] = !1, t["max-width"] = !0, t["min-height"] = !0, t["min-width"] = !0, t["move-to"] = !1, t["nav-down"] = !1, t["nav-index"] = !1, t["nav-left"] = !1, t["nav-right"] = !1, t["nav-up"] = !1, t["object-fit"] = !1, t["object-position"] = !1, t.opacity = !1, t.order = !1, t.orphans = !1, t.outline = !1, t["outline-color"] = !1, t["outline-offset"] = !1, t["outline-style"] = !1, t["outline-width"] = !1, t.overflow = !1, t["overflow-wrap"] = !1, t["overflow-x"] = !1, t["overflow-y"] = !1, t.padding = !0, t["padding-bottom"] = !0, t["padding-left"] = !0, t["padding-right"] = !0, t["padding-top"] = !0, t.page = !1, t["page-break-after"] = !1, t["page-break-before"] = !1, t["page-break-inside"] = !1, t["page-policy"] = !1, t.pause = !1, t["pause-after"] = !1, t["pause-before"] = !1, t.perspective = !1, t["perspective-origin"] = !1, t.pitch = !1, t["pitch-range"] = !1, t["play-during"] = !1, t.position = !1, t["presentation-level"] = !1, t.quotes = !1, t["region-fragment"] = !1, t.resize = !1, t.rest = !1, t["rest-after"] = !1, t["rest-before"] = !1, t.richness = !1, t.right = !1, t.rotation = !1, t["rotation-point"] = !1, t["ruby-align"] = !1, t["ruby-merge"] = !1, t["ruby-position"] = !1, t["shape-image-threshold"] = !1, t["shape-outside"] = !1, t["shape-margin"] = !1, t.size = !1, t.speak = !1, t["speak-as"] = !1, t["speak-header"] = !1, t["speak-numeral"] = !1, t["speak-punctuation"] = !1, t["speech-rate"] = !1, t.stress = !1, t["string-set"] = !1, t["tab-size"] = !1, t["table-layout"] = !1, t["text-align"] = !0, t["text-align-last"] = !0, t["text-combine-upright"] = !0, t["text-decoration"] = !0, t["text-decoration-color"] = !0, t["text-decoration-line"] = !0, t["text-decoration-skip"] = !0, t["text-decoration-style"] = !0, t["text-emphasis"] = !0, t["text-emphasis-color"] = !0, t["text-emphasis-position"] = !0, t["text-emphasis-style"] = !0, t["text-height"] = !0, t["text-indent"] = !0, t["text-justify"] = !0, t["text-orientation"] = !0, t["text-overflow"] = !0, t["text-shadow"] = !0, t["text-space-collapse"] = !0, t["text-transform"] = !0, t["text-underline-position"] = !0, t["text-wrap"] = !0, t.top = !1, t.transform = !1, t["transform-origin"] = !1, t["transform-style"] = !1, t.transition = !1, t["transition-delay"] = !1, t["transition-duration"] = !1, t["transition-property"] = !1, t["transition-timing-function"] = !1, t["unicode-bidi"] = !1, t["vertical-align"] = !1, t.visibility = !1, t["voice-balance"] = !1, t["voice-duration"] = !1, t["voice-family"] = !1, t["voice-pitch"] = !1, t["voice-range"] = !1, t["voice-rate"] = !1, t["voice-stress"] = !1, t["voice-volume"] = !1, t.volume = !1, t["white-space"] = !1, t.widows = !1, t.width = !0, t["will-change"] = !1, t["word-break"] = !0, t["word-spacing"] = !0, t["word-wrap"] = !0, t["wrap-flow"] = !1, t["wrap-through"] = !1, t["writing-mode"] = !1, t["z-index"] = !1, t;
|
|
25
|
-
}
|
|
26
|
-
function Ct(t, s, e) {
|
|
27
|
-
}
|
|
28
|
-
function jt(t, s, e) {
|
|
29
|
-
}
|
|
30
|
-
var Ft = /javascript\s*\:/img;
|
|
31
|
-
function Ot(t, s) {
|
|
32
|
-
return Ft.test(s) ? "" : s;
|
|
33
|
-
}
|
|
34
|
-
x.whiteList = st();
|
|
35
|
-
x.getDefaultWhiteList = st;
|
|
36
|
-
x.onAttr = Ct;
|
|
37
|
-
x.onIgnoreAttr = jt;
|
|
38
|
-
x.safeAttrValue = Ot;
|
|
39
|
-
var Bt = {
|
|
40
|
-
indexOf: function(t, s) {
|
|
41
|
-
var e, r;
|
|
42
|
-
if (Array.prototype.indexOf)
|
|
43
|
-
return t.indexOf(s);
|
|
44
|
-
for (e = 0, r = t.length; e < r; e++)
|
|
45
|
-
if (t[e] === s)
|
|
46
|
-
return e;
|
|
47
|
-
return -1;
|
|
48
|
-
},
|
|
49
|
-
forEach: function(t, s, e) {
|
|
50
|
-
var r, i;
|
|
51
|
-
if (Array.prototype.forEach)
|
|
52
|
-
return t.forEach(s, e);
|
|
53
|
-
for (r = 0, i = t.length; r < i; r++)
|
|
54
|
-
s.call(e, t[r], r, t);
|
|
55
|
-
},
|
|
56
|
-
trim: function(t) {
|
|
57
|
-
return String.prototype.trim ? t.trim() : t.replace(/(^\s*)|(\s*$)/g, "");
|
|
58
|
-
},
|
|
59
|
-
trimRight: function(t) {
|
|
60
|
-
return String.prototype.trimRight ? t.trimRight() : t.replace(/(\s*$)/g, "");
|
|
61
|
-
}
|
|
62
|
-
}, L = Bt;
|
|
63
|
-
function Vt(t, s) {
|
|
64
|
-
t = L.trimRight(t), t[t.length - 1] !== ";" && (t += ";");
|
|
65
|
-
var e = t.length, r = !1, i = 0, a = 0, n = "";
|
|
66
|
-
function o() {
|
|
67
|
-
if (!r) {
|
|
68
|
-
var c = L.trim(t.slice(i, a)), f = c.indexOf(":");
|
|
69
|
-
if (f !== -1) {
|
|
70
|
-
var d = L.trim(c.slice(0, f)), p = L.trim(c.slice(f + 1));
|
|
71
|
-
if (d) {
|
|
72
|
-
var h = s(i, n.length, d, p, c);
|
|
73
|
-
h && (n += h + "; ");
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
i = a + 1;
|
|
78
|
-
}
|
|
79
|
-
for (; a < e; a++) {
|
|
80
|
-
var l = t[a];
|
|
81
|
-
if (l === "/" && t[a + 1] === "*") {
|
|
82
|
-
var g = t.indexOf("*/", a + 2);
|
|
83
|
-
if (g === -1)
|
|
84
|
-
break;
|
|
85
|
-
a = g + 1, i = a + 1, r = !1;
|
|
86
|
-
} else
|
|
87
|
-
l === "(" ? r = !0 : l === ")" ? r = !1 : l === ";" ? r || o() : l === `
|
|
88
|
-
` && o();
|
|
89
|
-
}
|
|
90
|
-
return L.trim(n);
|
|
91
|
-
}
|
|
92
|
-
var zt = Vt, j = x, Et = zt;
|
|
93
|
-
function Z(t) {
|
|
94
|
-
return t == null;
|
|
95
|
-
}
|
|
96
|
-
function Ht(t) {
|
|
97
|
-
var s = {};
|
|
98
|
-
for (var e in t)
|
|
99
|
-
s[e] = t[e];
|
|
100
|
-
return s;
|
|
101
|
-
}
|
|
102
|
-
function rt(t) {
|
|
103
|
-
t = Ht(t || {}), t.whiteList = t.whiteList || j.whiteList, t.onAttr = t.onAttr || j.onAttr, t.onIgnoreAttr = t.onIgnoreAttr || j.onIgnoreAttr, t.safeAttrValue = t.safeAttrValue || j.safeAttrValue, this.options = t;
|
|
104
|
-
}
|
|
105
|
-
rt.prototype.process = function(t) {
|
|
106
|
-
if (t = t || "", t = t.toString(), !t)
|
|
107
|
-
return "";
|
|
108
|
-
var s = this, e = s.options, r = e.whiteList, i = e.onAttr, a = e.onIgnoreAttr, n = e.safeAttrValue, o = Et(t, function(l, g, c, f, d) {
|
|
109
|
-
var p = r[c], h = !1;
|
|
110
|
-
if (p === !0 ? h = p : typeof p == "function" ? h = p(f) : p instanceof RegExp && (h = p.test(f)), h !== !0 && (h = !1), f = n(c, f), !!f) {
|
|
111
|
-
var y = {
|
|
112
|
-
position: g,
|
|
113
|
-
sourcePosition: l,
|
|
114
|
-
source: d,
|
|
115
|
-
isWhite: h
|
|
116
|
-
};
|
|
117
|
-
if (h) {
|
|
118
|
-
var m = i(c, f, y);
|
|
119
|
-
return Z(m) ? c + ":" + f : m;
|
|
120
|
-
} else {
|
|
121
|
-
var m = a(c, f, y);
|
|
122
|
-
if (!Z(m))
|
|
123
|
-
return m;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
return o;
|
|
128
|
-
};
|
|
129
|
-
var Ut = rt;
|
|
130
|
-
(function(t, s) {
|
|
131
|
-
var e = x, r = Ut;
|
|
132
|
-
function i(n, o) {
|
|
133
|
-
var l = new r(o);
|
|
134
|
-
return l.process(n);
|
|
135
|
-
}
|
|
136
|
-
s = t.exports = i, s.FilterCSS = r;
|
|
137
|
-
for (var a in e)
|
|
138
|
-
s[a] = e[a];
|
|
139
|
-
typeof window < "u" && (window.filterCSS = t.exports);
|
|
140
|
-
})(R, R.exports);
|
|
141
|
-
var M = R.exports, N = {
|
|
142
|
-
indexOf: function(t, s) {
|
|
143
|
-
var e, r;
|
|
144
|
-
if (Array.prototype.indexOf)
|
|
145
|
-
return t.indexOf(s);
|
|
146
|
-
for (e = 0, r = t.length; e < r; e++)
|
|
147
|
-
if (t[e] === s)
|
|
148
|
-
return e;
|
|
149
|
-
return -1;
|
|
150
|
-
},
|
|
151
|
-
forEach: function(t, s, e) {
|
|
152
|
-
var r, i;
|
|
153
|
-
if (Array.prototype.forEach)
|
|
154
|
-
return t.forEach(s, e);
|
|
155
|
-
for (r = 0, i = t.length; r < i; r++)
|
|
156
|
-
s.call(e, t[r], r, t);
|
|
157
|
-
},
|
|
158
|
-
trim: function(t) {
|
|
159
|
-
return String.prototype.trim ? t.trim() : t.replace(/(^\s*)|(\s*$)/g, "");
|
|
160
|
-
},
|
|
161
|
-
spaceIndex: function(t) {
|
|
162
|
-
var s = /\s|\n|\t/, e = s.exec(t);
|
|
163
|
-
return e ? e.index : -1;
|
|
164
|
-
}
|
|
165
|
-
}, Wt = M.FilterCSS, Dt = M.getDefaultWhiteList, z = N;
|
|
166
|
-
function at() {
|
|
167
|
-
return {
|
|
168
|
-
a: ["target", "href", "title"],
|
|
169
|
-
abbr: ["title"],
|
|
170
|
-
address: [],
|
|
171
|
-
area: ["shape", "coords", "href", "alt"],
|
|
172
|
-
article: [],
|
|
173
|
-
aside: [],
|
|
174
|
-
audio: [
|
|
175
|
-
"autoplay",
|
|
176
|
-
"controls",
|
|
177
|
-
"crossorigin",
|
|
178
|
-
"loop",
|
|
179
|
-
"muted",
|
|
180
|
-
"preload",
|
|
181
|
-
"src"
|
|
182
|
-
],
|
|
183
|
-
b: [],
|
|
184
|
-
bdi: ["dir"],
|
|
185
|
-
bdo: ["dir"],
|
|
186
|
-
big: [],
|
|
187
|
-
blockquote: ["cite"],
|
|
188
|
-
br: [],
|
|
189
|
-
caption: [],
|
|
190
|
-
center: [],
|
|
191
|
-
cite: [],
|
|
192
|
-
code: [],
|
|
193
|
-
col: ["align", "valign", "span", "width"],
|
|
194
|
-
colgroup: ["align", "valign", "span", "width"],
|
|
195
|
-
dd: [],
|
|
196
|
-
del: ["datetime"],
|
|
197
|
-
details: ["open"],
|
|
198
|
-
div: [],
|
|
199
|
-
dl: [],
|
|
200
|
-
dt: [],
|
|
201
|
-
em: [],
|
|
202
|
-
figcaption: [],
|
|
203
|
-
figure: [],
|
|
204
|
-
font: ["color", "size", "face"],
|
|
205
|
-
footer: [],
|
|
206
|
-
h1: [],
|
|
207
|
-
h2: [],
|
|
208
|
-
h3: [],
|
|
209
|
-
h4: [],
|
|
210
|
-
h5: [],
|
|
211
|
-
h6: [],
|
|
212
|
-
header: [],
|
|
213
|
-
hr: [],
|
|
214
|
-
i: [],
|
|
215
|
-
img: ["src", "alt", "title", "width", "height"],
|
|
216
|
-
ins: ["datetime"],
|
|
217
|
-
li: [],
|
|
218
|
-
mark: [],
|
|
219
|
-
nav: [],
|
|
220
|
-
ol: [],
|
|
221
|
-
p: [],
|
|
222
|
-
pre: [],
|
|
223
|
-
s: [],
|
|
224
|
-
section: [],
|
|
225
|
-
small: [],
|
|
226
|
-
span: [],
|
|
227
|
-
sub: [],
|
|
228
|
-
summary: [],
|
|
229
|
-
sup: [],
|
|
230
|
-
strong: [],
|
|
231
|
-
strike: [],
|
|
232
|
-
table: ["width", "border", "align", "valign"],
|
|
233
|
-
tbody: ["align", "valign"],
|
|
234
|
-
td: ["width", "rowspan", "colspan", "align", "valign"],
|
|
235
|
-
tfoot: ["align", "valign"],
|
|
236
|
-
th: ["width", "rowspan", "colspan", "align", "valign"],
|
|
237
|
-
thead: ["align", "valign"],
|
|
238
|
-
tr: ["rowspan", "align", "valign"],
|
|
239
|
-
tt: [],
|
|
240
|
-
u: [],
|
|
241
|
-
ul: [],
|
|
242
|
-
video: [
|
|
243
|
-
"autoplay",
|
|
244
|
-
"controls",
|
|
245
|
-
"crossorigin",
|
|
246
|
-
"loop",
|
|
247
|
-
"muted",
|
|
248
|
-
"playsinline",
|
|
249
|
-
"poster",
|
|
250
|
-
"preload",
|
|
251
|
-
"src",
|
|
252
|
-
"height",
|
|
253
|
-
"width"
|
|
254
|
-
]
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
var it = new Wt();
|
|
258
|
-
function Xt(t, s, e) {
|
|
259
|
-
}
|
|
260
|
-
function Rt(t, s, e) {
|
|
261
|
-
}
|
|
262
|
-
function qt(t, s, e) {
|
|
263
|
-
}
|
|
264
|
-
function Pt(t, s, e) {
|
|
265
|
-
}
|
|
266
|
-
function nt(t) {
|
|
267
|
-
return t.replace(Nt, "<").replace($t, ">");
|
|
268
|
-
}
|
|
269
|
-
function Mt(t, s, e, r) {
|
|
270
|
-
if (e = gt(e), s === "href" || s === "src") {
|
|
271
|
-
if (e = z.trim(e), e === "#")
|
|
272
|
-
return "#";
|
|
273
|
-
if (!(e.substr(0, 7) === "http://" || e.substr(0, 8) === "https://" || e.substr(0, 7) === "mailto:" || e.substr(0, 4) === "tel:" || e.substr(0, 11) === "data:image/" || e.substr(0, 6) === "ftp://" || e.substr(0, 2) === "./" || e.substr(0, 3) === "../" || e[0] === "#" || e[0] === "/"))
|
|
274
|
-
return "";
|
|
275
|
-
} else if (s === "background") {
|
|
276
|
-
if (F.lastIndex = 0, F.test(e))
|
|
277
|
-
return "";
|
|
278
|
-
} else if (s === "style") {
|
|
279
|
-
if (G.lastIndex = 0, G.test(e) || (J.lastIndex = 0, J.test(e) && (F.lastIndex = 0, F.test(e))))
|
|
280
|
-
return "";
|
|
281
|
-
r !== !1 && (r = r || it, e = r.process(e));
|
|
282
|
-
}
|
|
283
|
-
return e = dt(e), e;
|
|
284
|
-
}
|
|
285
|
-
var Nt = /</g, $t = />/g, Qt = /"/g, Zt = /"/g, Gt = /&#([a-zA-Z0-9]*);?/gim, Jt = /:?/gim, Kt = /&newline;?/gim, F = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi, G = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, J = /u\s*r\s*l\s*\(.*/gi;
|
|
286
|
-
function lt(t) {
|
|
287
|
-
return t.replace(Qt, """);
|
|
288
|
-
}
|
|
289
|
-
function ot(t) {
|
|
290
|
-
return t.replace(Zt, '"');
|
|
291
|
-
}
|
|
292
|
-
function ft(t) {
|
|
293
|
-
return t.replace(Gt, function(s, e) {
|
|
294
|
-
return e[0] === "x" || e[0] === "X" ? String.fromCharCode(parseInt(e.substr(1), 16)) : String.fromCharCode(parseInt(e, 10));
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
function ct(t) {
|
|
298
|
-
return t.replace(Jt, ":").replace(Kt, " ");
|
|
299
|
-
}
|
|
300
|
-
function ut(t) {
|
|
301
|
-
for (var s = "", e = 0, r = t.length; e < r; e++)
|
|
302
|
-
s += t.charCodeAt(e) < 32 ? " " : t.charAt(e);
|
|
303
|
-
return z.trim(s);
|
|
304
|
-
}
|
|
305
|
-
function gt(t) {
|
|
306
|
-
return t = ot(t), t = ft(t), t = ct(t), t = ut(t), t;
|
|
307
|
-
}
|
|
308
|
-
function dt(t) {
|
|
309
|
-
return t = lt(t), t = nt(t), t;
|
|
310
|
-
}
|
|
311
|
-
function Yt() {
|
|
312
|
-
return "";
|
|
313
|
-
}
|
|
314
|
-
function _t(t, s) {
|
|
315
|
-
typeof s != "function" && (s = function() {
|
|
316
|
-
});
|
|
317
|
-
var e = !Array.isArray(t);
|
|
318
|
-
function r(n) {
|
|
319
|
-
return e ? !0 : z.indexOf(t, n) !== -1;
|
|
320
|
-
}
|
|
321
|
-
var i = [], a = !1;
|
|
322
|
-
return {
|
|
323
|
-
onIgnoreTag: function(n, o, l) {
|
|
324
|
-
if (r(n))
|
|
325
|
-
if (l.isClosing) {
|
|
326
|
-
var g = "[/removed]", c = l.position + g.length;
|
|
327
|
-
return i.push([
|
|
328
|
-
a !== !1 ? a : l.position,
|
|
329
|
-
c
|
|
330
|
-
]), a = !1, g;
|
|
331
|
-
} else
|
|
332
|
-
return a || (a = l.position), "[removed]";
|
|
333
|
-
else
|
|
334
|
-
return s(n, o, l);
|
|
335
|
-
},
|
|
336
|
-
remove: function(n) {
|
|
337
|
-
var o = "", l = 0;
|
|
338
|
-
return z.forEach(i, function(g) {
|
|
339
|
-
o += n.slice(l, g[0]), l = g[1];
|
|
340
|
-
}), o += n.slice(l), o;
|
|
341
|
-
}
|
|
342
|
-
};
|
|
343
|
-
}
|
|
344
|
-
function te(t) {
|
|
345
|
-
for (var s = "", e = 0; e < t.length; ) {
|
|
346
|
-
var r = t.indexOf("<!--", e);
|
|
347
|
-
if (r === -1) {
|
|
348
|
-
s += t.slice(e);
|
|
349
|
-
break;
|
|
350
|
-
}
|
|
351
|
-
s += t.slice(e, r);
|
|
352
|
-
var i = t.indexOf("-->", r);
|
|
353
|
-
if (i === -1)
|
|
354
|
-
break;
|
|
355
|
-
e = i + 3;
|
|
356
|
-
}
|
|
357
|
-
return s;
|
|
358
|
-
}
|
|
359
|
-
function ee(t) {
|
|
360
|
-
var s = t.split("");
|
|
361
|
-
return s = s.filter(function(e) {
|
|
362
|
-
var r = e.charCodeAt(0);
|
|
363
|
-
return r === 127 ? !1 : r <= 31 ? r === 10 || r === 13 : !0;
|
|
364
|
-
}), s.join("");
|
|
365
|
-
}
|
|
366
|
-
u.whiteList = at();
|
|
367
|
-
u.getDefaultWhiteList = at;
|
|
368
|
-
u.onTag = Xt;
|
|
369
|
-
u.onIgnoreTag = Rt;
|
|
370
|
-
u.onTagAttr = qt;
|
|
371
|
-
u.onIgnoreTagAttr = Pt;
|
|
372
|
-
u.safeAttrValue = Mt;
|
|
373
|
-
u.escapeHtml = nt;
|
|
374
|
-
u.escapeQuote = lt;
|
|
375
|
-
u.unescapeQuote = ot;
|
|
376
|
-
u.escapeHtmlEntities = ft;
|
|
377
|
-
u.escapeDangerHtml5Entities = ct;
|
|
378
|
-
u.clearNonPrintableCharacter = ut;
|
|
379
|
-
u.friendlyAttrValue = gt;
|
|
380
|
-
u.escapeAttrValue = dt;
|
|
381
|
-
u.onIgnoreTagStripAll = Yt;
|
|
382
|
-
u.StripTagBody = _t;
|
|
383
|
-
u.stripCommentTag = te;
|
|
384
|
-
u.stripBlankChar = ee;
|
|
385
|
-
u.cssFilter = it;
|
|
386
|
-
u.getDefaultCSSWhiteList = Dt;
|
|
387
|
-
var U = {}, w = N;
|
|
388
|
-
function se(t) {
|
|
389
|
-
var s = w.spaceIndex(t), e;
|
|
390
|
-
return s === -1 ? e = t.slice(1, -1) : e = t.slice(1, s + 1), e = w.trim(e).toLowerCase(), e.slice(0, 1) === "/" && (e = e.slice(1)), e.slice(-1) === "/" && (e = e.slice(0, -1)), e;
|
|
391
|
-
}
|
|
392
|
-
function re(t) {
|
|
393
|
-
return t.slice(0, 2) === "</";
|
|
394
|
-
}
|
|
395
|
-
function ae(t, s, e) {
|
|
396
|
-
var r = "", i = 0, a = !1, n = !1, o = 0, l = t.length, g = "", c = "";
|
|
397
|
-
t:
|
|
398
|
-
for (o = 0; o < l; o++) {
|
|
399
|
-
var f = t.charAt(o);
|
|
400
|
-
if (a === !1) {
|
|
401
|
-
if (f === "<") {
|
|
402
|
-
a = o;
|
|
403
|
-
continue;
|
|
404
|
-
}
|
|
405
|
-
} else if (n === !1) {
|
|
406
|
-
if (f === "<") {
|
|
407
|
-
r += e(t.slice(i, o)), a = o, i = o;
|
|
408
|
-
continue;
|
|
409
|
-
}
|
|
410
|
-
if (f === ">" || o === l - 1) {
|
|
411
|
-
r += e(t.slice(i, a)), c = t.slice(a, o + 1), g = se(c), r += s(
|
|
412
|
-
a,
|
|
413
|
-
r.length,
|
|
414
|
-
g,
|
|
415
|
-
c,
|
|
416
|
-
re(c)
|
|
417
|
-
), i = o + 1, a = !1;
|
|
418
|
-
continue;
|
|
419
|
-
}
|
|
420
|
-
if (f === '"' || f === "'")
|
|
421
|
-
for (var d = 1, p = t.charAt(o - d); p.trim() === "" || p === "="; ) {
|
|
422
|
-
if (p === "=") {
|
|
423
|
-
n = f;
|
|
424
|
-
continue t;
|
|
425
|
-
}
|
|
426
|
-
p = t.charAt(o - ++d);
|
|
427
|
-
}
|
|
428
|
-
} else if (f === n) {
|
|
429
|
-
n = !1;
|
|
430
|
-
continue;
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
return i < l && (r += e(t.substr(i))), r;
|
|
434
|
-
}
|
|
435
|
-
var ie = /[^a-zA-Z0-9\\_:.-]/gim;
|
|
436
|
-
function ne(t, s) {
|
|
437
|
-
var e = 0, r = 0, i = [], a = !1, n = t.length;
|
|
438
|
-
function o(d, p) {
|
|
439
|
-
if (d = w.trim(d), d = d.replace(ie, "").toLowerCase(), !(d.length < 1)) {
|
|
440
|
-
var h = s(d, p || "");
|
|
441
|
-
h && i.push(h);
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
for (var l = 0; l < n; l++) {
|
|
445
|
-
var g = t.charAt(l), c, f;
|
|
446
|
-
if (a === !1 && g === "=") {
|
|
447
|
-
a = t.slice(e, l), e = l + 1, r = t.charAt(e) === '"' || t.charAt(e) === "'" ? e : oe(t, l + 1);
|
|
448
|
-
continue;
|
|
449
|
-
}
|
|
450
|
-
if (a !== !1 && l === r) {
|
|
451
|
-
if (f = t.indexOf(g, l + 1), f === -1)
|
|
452
|
-
break;
|
|
453
|
-
c = w.trim(t.slice(r + 1, f)), o(a, c), a = !1, l = f, e = l + 1;
|
|
454
|
-
continue;
|
|
455
|
-
}
|
|
456
|
-
if (/\s|\n|\t/.test(g))
|
|
457
|
-
if (t = t.replace(/\s|\n|\t/g, " "), a === !1)
|
|
458
|
-
if (f = le(t, l), f === -1) {
|
|
459
|
-
c = w.trim(t.slice(e, l)), o(c), a = !1, e = l + 1;
|
|
460
|
-
continue;
|
|
461
|
-
} else {
|
|
462
|
-
l = f - 1;
|
|
463
|
-
continue;
|
|
464
|
-
}
|
|
465
|
-
else if (f = fe(t, l - 1), f === -1) {
|
|
466
|
-
c = w.trim(t.slice(e, l)), c = K(c), o(a, c), a = !1, e = l + 1;
|
|
467
|
-
continue;
|
|
468
|
-
} else
|
|
469
|
-
continue;
|
|
470
|
-
}
|
|
471
|
-
return e < t.length && (a === !1 ? o(t.slice(e)) : o(a, K(w.trim(t.slice(e))))), w.trim(i.join(" "));
|
|
472
|
-
}
|
|
473
|
-
function le(t, s) {
|
|
474
|
-
for (; s < t.length; s++) {
|
|
475
|
-
var e = t[s];
|
|
476
|
-
if (e !== " ")
|
|
477
|
-
return e === "=" ? s : -1;
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
function oe(t, s) {
|
|
481
|
-
for (; s < t.length; s++) {
|
|
482
|
-
var e = t[s];
|
|
483
|
-
if (e !== " ")
|
|
484
|
-
return e === "'" || e === '"' ? s : -1;
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
function fe(t, s) {
|
|
488
|
-
for (; s > 0; s--) {
|
|
489
|
-
var e = t[s];
|
|
490
|
-
if (e !== " ")
|
|
491
|
-
return e === "=" ? s : -1;
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
function ce(t) {
|
|
495
|
-
return t[0] === '"' && t[t.length - 1] === '"' || t[0] === "'" && t[t.length - 1] === "'";
|
|
496
|
-
}
|
|
497
|
-
function K(t) {
|
|
498
|
-
return ce(t) ? t.substr(1, t.length - 2) : t;
|
|
499
|
-
}
|
|
500
|
-
U.parseTag = ae;
|
|
501
|
-
U.parseAttr = ne;
|
|
502
|
-
var ue = M.FilterCSS, v = u, pt = U, ge = pt.parseTag, de = pt.parseAttr, V = N;
|
|
503
|
-
function O(t) {
|
|
504
|
-
return t == null;
|
|
505
|
-
}
|
|
506
|
-
function pe(t) {
|
|
507
|
-
var s = V.spaceIndex(t);
|
|
508
|
-
if (s === -1)
|
|
509
|
-
return {
|
|
510
|
-
html: "",
|
|
511
|
-
closing: t[t.length - 2] === "/"
|
|
512
|
-
};
|
|
513
|
-
t = V.trim(t.slice(s + 1, -1));
|
|
514
|
-
var e = t[t.length - 1] === "/";
|
|
515
|
-
return e && (t = V.trim(t.slice(0, -1))), {
|
|
516
|
-
html: t,
|
|
517
|
-
closing: e
|
|
518
|
-
};
|
|
519
|
-
}
|
|
520
|
-
function he(t) {
|
|
521
|
-
var s = {};
|
|
522
|
-
for (var e in t)
|
|
523
|
-
s[e] = t[e];
|
|
524
|
-
return s;
|
|
525
|
-
}
|
|
526
|
-
function me(t) {
|
|
527
|
-
var s = {};
|
|
528
|
-
for (var e in t)
|
|
529
|
-
Array.isArray(t[e]) ? s[e.toLowerCase()] = t[e].map(function(r) {
|
|
530
|
-
return r.toLowerCase();
|
|
531
|
-
}) : s[e.toLowerCase()] = t[e];
|
|
532
|
-
return s;
|
|
533
|
-
}
|
|
534
|
-
function ht(t) {
|
|
535
|
-
t = he(t || {}), t.stripIgnoreTag && (t.onIgnoreTag && console.error(
|
|
536
|
-
'Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'
|
|
537
|
-
), t.onIgnoreTag = v.onIgnoreTagStripAll), t.whiteList || t.allowList ? t.whiteList = me(t.whiteList || t.allowList) : t.whiteList = v.whiteList, t.onTag = t.onTag || v.onTag, t.onTagAttr = t.onTagAttr || v.onTagAttr, t.onIgnoreTag = t.onIgnoreTag || v.onIgnoreTag, t.onIgnoreTagAttr = t.onIgnoreTagAttr || v.onIgnoreTagAttr, t.safeAttrValue = t.safeAttrValue || v.safeAttrValue, t.escapeHtml = t.escapeHtml || v.escapeHtml, this.options = t, t.css === !1 ? this.cssFilter = !1 : (t.css = t.css || {}, this.cssFilter = new ue(t.css));
|
|
538
|
-
}
|
|
539
|
-
ht.prototype.process = function(t) {
|
|
540
|
-
if (t = t || "", t = t.toString(), !t)
|
|
541
|
-
return "";
|
|
542
|
-
var s = this, e = s.options, r = e.whiteList, i = e.onTag, a = e.onIgnoreTag, n = e.onTagAttr, o = e.onIgnoreTagAttr, l = e.safeAttrValue, g = e.escapeHtml, c = s.cssFilter;
|
|
543
|
-
e.stripBlankChar && (t = v.stripBlankChar(t)), e.allowCommentTag || (t = v.stripCommentTag(t));
|
|
544
|
-
var f = !1;
|
|
545
|
-
e.stripIgnoreTagBody && (f = v.StripTagBody(
|
|
546
|
-
e.stripIgnoreTagBody,
|
|
547
|
-
a
|
|
548
|
-
), a = f.onIgnoreTag);
|
|
549
|
-
var d = ge(
|
|
550
|
-
t,
|
|
551
|
-
function(p, h, y, m, wt) {
|
|
552
|
-
var C = {
|
|
553
|
-
sourcePosition: p,
|
|
554
|
-
position: h,
|
|
555
|
-
isClosing: wt,
|
|
556
|
-
isWhite: Object.prototype.hasOwnProperty.call(r, y)
|
|
557
|
-
}, I = i(y, m, C);
|
|
558
|
-
if (!O(I))
|
|
559
|
-
return I;
|
|
560
|
-
if (C.isWhite) {
|
|
561
|
-
if (C.isClosing)
|
|
562
|
-
return "</" + y + ">";
|
|
563
|
-
var $ = pe(m), xt = r[y], Q = de($.html, function(k, A) {
|
|
564
|
-
var W = V.indexOf(xt, k) !== -1, T = n(y, k, A, W);
|
|
565
|
-
return O(T) ? W ? (A = l(y, k, A, c), A ? k + '="' + A + '"' : k) : (T = o(y, k, A, W), O(T) ? void 0 : T) : T;
|
|
566
|
-
});
|
|
567
|
-
return m = "<" + y, Q && (m += " " + Q), $.closing && (m += " /"), m += ">", m;
|
|
568
|
-
} else
|
|
569
|
-
return I = a(y, m, C), O(I) ? g(m) : I;
|
|
570
|
-
},
|
|
571
|
-
g
|
|
572
|
-
);
|
|
573
|
-
return f && (d = f.remove(d)), d;
|
|
574
|
-
};
|
|
575
|
-
var ye = ht;
|
|
576
|
-
(function(t, s) {
|
|
577
|
-
var e = u, r = U, i = ye;
|
|
578
|
-
function a(o, l) {
|
|
579
|
-
var g = new i(l);
|
|
580
|
-
return g.process(o);
|
|
581
|
-
}
|
|
582
|
-
s = t.exports = a, s.filterXSS = a, s.FilterXSS = i, function() {
|
|
583
|
-
for (var o in e)
|
|
584
|
-
s[o] = e[o];
|
|
585
|
-
for (var l in r)
|
|
586
|
-
s[l] = r[l];
|
|
587
|
-
}(), typeof window < "u" && (window.filterXSS = t.exports);
|
|
588
|
-
function n() {
|
|
589
|
-
return typeof self < "u" && typeof DedicatedWorkerGlobalScope < "u" && self instanceof DedicatedWorkerGlobalScope;
|
|
590
|
-
}
|
|
591
|
-
n() && (self.filterXSS = t.exports);
|
|
592
|
-
})(X, X.exports);
|
|
593
|
-
var E = X.exports;
|
|
594
|
-
let b = {
|
|
595
|
-
enableAttrs: !0,
|
|
596
|
-
enableHtml: !0,
|
|
597
|
-
enableUrl: !0,
|
|
598
|
-
html: {
|
|
599
|
-
whiteList: {
|
|
600
|
-
a: ["class", "style", "contenteditable", "data-id", "data-title", "data-size", "data-last-modified"],
|
|
601
|
-
address: ["class", "style"],
|
|
602
|
-
area: ["class", "style"],
|
|
603
|
-
article: ["class", "style"],
|
|
604
|
-
aside: ["class", "style"],
|
|
605
|
-
audio: ["class", "style"],
|
|
606
|
-
b: ["class", "style"],
|
|
607
|
-
bdi: ["class", "style"],
|
|
608
|
-
bdo: ["class", "style"],
|
|
609
|
-
big: ["class", "style"],
|
|
610
|
-
blockquote: ["class", "style"],
|
|
611
|
-
br: ["class", "style"],
|
|
612
|
-
caption: ["class", "style"],
|
|
613
|
-
center: ["class", "style"],
|
|
614
|
-
cite: ["class", "style"],
|
|
615
|
-
code: ["class", "style"],
|
|
616
|
-
col: ["class", "style"],
|
|
617
|
-
colgroup: ["class", "style"],
|
|
618
|
-
dd: ["class", "style"],
|
|
619
|
-
del: ["class", "style"],
|
|
620
|
-
details: ["class", "style"],
|
|
621
|
-
div: [
|
|
622
|
-
"class",
|
|
623
|
-
"style",
|
|
624
|
-
"spellcheck",
|
|
625
|
-
"data-gramm",
|
|
626
|
-
"spellcheck",
|
|
627
|
-
"data-mode",
|
|
628
|
-
"data-position",
|
|
629
|
-
"data-row",
|
|
630
|
-
"data-cell",
|
|
631
|
-
"data-rowspan",
|
|
632
|
-
"data-colspan",
|
|
633
|
-
"data-cell-bg",
|
|
634
|
-
"data-parent-bg"
|
|
635
|
-
],
|
|
636
|
-
dl: ["class", "style"],
|
|
637
|
-
dt: ["class", "style"],
|
|
638
|
-
em: ["class", "style"],
|
|
639
|
-
figcaption: ["class", "style"],
|
|
640
|
-
figure: ["class", "style"],
|
|
641
|
-
font: ["class", "style"],
|
|
642
|
-
footer: ["class", "style"],
|
|
643
|
-
h1: ["class", "style"],
|
|
644
|
-
h2: ["class", "style"],
|
|
645
|
-
h3: ["class", "style"],
|
|
646
|
-
h4: ["class", "style"],
|
|
647
|
-
h5: ["class", "style"],
|
|
648
|
-
h6: ["class", "style"],
|
|
649
|
-
header: ["class", "style"],
|
|
650
|
-
hr: ["class", "style"],
|
|
651
|
-
i: ["class", "style", "data-image-id", "data-image"],
|
|
652
|
-
img: ["class", "style", "devui-editorx-image", "style", "data-image-id"],
|
|
653
|
-
input: ["class", "style", "data-formula", "data-link", "data-video"],
|
|
654
|
-
ins: ["class", "style"],
|
|
655
|
-
li: ["class", "style"],
|
|
656
|
-
mark: ["class", "style"],
|
|
657
|
-
nav: ["class", "style"],
|
|
658
|
-
ol: ["class", "style"],
|
|
659
|
-
p: ["class", "style"],
|
|
660
|
-
pre: ["class", "style"],
|
|
661
|
-
s: ["class", "style"],
|
|
662
|
-
section: ["class", "style"],
|
|
663
|
-
small: ["class", "style"],
|
|
664
|
-
span: ["class", "style", "contenteditable", "color", "style"],
|
|
665
|
-
sub: ["class", "style"],
|
|
666
|
-
summary: ["class", "style"],
|
|
667
|
-
sup: ["class", "style"],
|
|
668
|
-
strong: ["class", "style"],
|
|
669
|
-
strike: ["class", "style"],
|
|
670
|
-
svg: ["class", "style", "t", "viewBox", "viewbox", "version", "xmlns", "p-id", "xmlns:xlink"],
|
|
671
|
-
path: ["d", "p-id"],
|
|
672
|
-
table: ["class", "style"],
|
|
673
|
-
tbody: ["class", "style"],
|
|
674
|
-
td: ["class", "style", "data-row", "data-cell", "data-cell-bg", "data-parent-bg"],
|
|
675
|
-
tfoot: ["class", "style"],
|
|
676
|
-
th: ["class", "style"],
|
|
677
|
-
thead: ["class", "style"],
|
|
678
|
-
tr: ["class", "style", "data-row"],
|
|
679
|
-
tt: ["class", "style"],
|
|
680
|
-
u: ["class", "style"],
|
|
681
|
-
ul: ["class", "style"],
|
|
682
|
-
video: ["class", "style"]
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
};
|
|
686
|
-
const be = E.getDefaultWhiteList && E.getDefaultWhiteList() || {};
|
|
687
|
-
b.html.whiteList = Object.assign(be, b.html.whiteList);
|
|
688
|
-
let mt = new E.FilterXSS(b.html);
|
|
689
|
-
const ve = () => b, we = (t) => {
|
|
690
|
-
var s;
|
|
691
|
-
let e;
|
|
692
|
-
(s = t == null ? void 0 : t.html) != null && s.whiteList && (e = Object.assign(b.html.whiteList, t.html.whiteList)), b = Object.assign(b, t), e && (b.html.whiteList = e), mt = new E.FilterXSS(b.html);
|
|
693
|
-
};
|
|
694
|
-
let yt = (t) => !b.enableHtml || typeof t != "string" ? t : mt.process(t);
|
|
695
|
-
const xe = (t) => {
|
|
696
|
-
yt = t;
|
|
697
|
-
};
|
|
698
|
-
let bt = (t) => !b.enableAttrs || typeof t != "string" ? t : t.replace(/<.*?>/gi, "").replace(/on[a-z]+=/gi, "");
|
|
699
|
-
const ke = (t) => {
|
|
700
|
-
bt = t;
|
|
701
|
-
};
|
|
702
|
-
let vt = (t) => {
|
|
703
|
-
if (!b.enableUrl || typeof t != "string")
|
|
704
|
-
return t;
|
|
705
|
-
const s = t.replace(/&#(\w+)(^\w|;)?/g, (r, i) => String.fromCharCode(i)).replace(/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim, "").trim();
|
|
706
|
-
if (!s)
|
|
707
|
-
return "";
|
|
708
|
-
if ([".", "/"].includes(s[0]))
|
|
709
|
-
return s;
|
|
710
|
-
const e = s.match(/^([^:]+):/gm);
|
|
711
|
-
return e && /^([^\w]*)(javascript|data|vbscript)/im.test(e[0]) ? "" : s;
|
|
712
|
-
};
|
|
713
|
-
const Ae = (t) => {
|
|
714
|
-
vt = t;
|
|
715
|
-
}, Ie = {
|
|
716
|
-
getXssOption: ve,
|
|
717
|
-
setXssOption: we,
|
|
718
|
-
filterHtml: yt,
|
|
719
|
-
setFilterHtml: xe,
|
|
720
|
-
filterAttrs: bt,
|
|
721
|
-
setFilterAttrs: ke,
|
|
722
|
-
filterUrl: vt,
|
|
723
|
-
setFilterUrl: Ae
|
|
724
|
-
}, Te = P(), Le = "console", Se = Te[Le] || {}, Y = {}, Ce = (t, s) => function(...e) {
|
|
725
|
-
t[s] && typeof t[s] == "function" && t[s](...e);
|
|
726
|
-
}, je = (t) => (Object.keys(t).forEach((s) => {
|
|
727
|
-
Y[s] = Ce(t, s);
|
|
728
|
-
}), Y);
|
|
729
|
-
je(Se);
|
|
730
|
-
const _ = P().crypto;
|
|
731
|
-
let q;
|
|
732
|
-
_ ? q = (t) => {
|
|
733
|
-
const s = [];
|
|
734
|
-
for (let e = 0; e < t; e += 4)
|
|
735
|
-
s.push(_.getRandomValues(new Uint32Array(1))[0]);
|
|
736
|
-
return new H(s, t);
|
|
737
|
-
} : q = (t) => {
|
|
738
|
-
const s = [], e = (r) => {
|
|
739
|
-
let i = r, a = 987654321;
|
|
740
|
-
const n = 4294967295;
|
|
741
|
-
return () => {
|
|
742
|
-
a = 36969 * (a & 65535) + (a >> 16) & n, i = 18e3 * (i & 65535) + (i >> 16) & n;
|
|
743
|
-
let o = (a << 16) + i & n;
|
|
744
|
-
return o /= 4294967296, o += 0.5, o * (Math.random() > 0.5 ? 1 : -1);
|
|
745
|
-
};
|
|
746
|
-
};
|
|
747
|
-
for (let r = 0, i; r < t; r += 4) {
|
|
748
|
-
const a = e((i || Math.random()) * 4294967296);
|
|
749
|
-
i = a() * 987654071, s.push(a() * 4294967296 | 0);
|
|
750
|
-
}
|
|
751
|
-
return new H(s, t);
|
|
752
|
-
};
|
|
753
|
-
class Fe {
|
|
754
|
-
// @ts-ignore
|
|
755
|
-
static create(...s) {
|
|
756
|
-
return new this(...s);
|
|
757
|
-
}
|
|
758
|
-
clone() {
|
|
759
|
-
const s = new this.constructor();
|
|
760
|
-
return Object.assign(s, this), s;
|
|
761
|
-
}
|
|
762
|
-
mixIn(s) {
|
|
763
|
-
return Object.assign(this, s);
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
class H extends Fe {
|
|
767
|
-
constructor(s = [], e = s.length * 4) {
|
|
768
|
-
super(), D(this, "words"), D(this, "sigBytes");
|
|
769
|
-
let r = s;
|
|
770
|
-
if (r instanceof ArrayBuffer && (r = new Uint8Array(r)), (r instanceof Int8Array || r instanceof Uint8ClampedArray || r instanceof Int16Array || r instanceof Uint16Array || r instanceof Int32Array || r instanceof Uint32Array || r instanceof Float32Array || r instanceof Float64Array) && (r = new Uint8Array(r.buffer, r.byteOffset, r.byteLength)), r instanceof Uint8Array) {
|
|
771
|
-
const i = r.byteLength, a = [];
|
|
772
|
-
for (let n = 0; n < i; n += 1)
|
|
773
|
-
a[n >>> 2] |= r[n] << 24 - n % 4 * 8;
|
|
774
|
-
this.words = a, this.sigBytes = i;
|
|
775
|
-
} else
|
|
776
|
-
this.words = s, this.sigBytes = e;
|
|
777
|
-
}
|
|
778
|
-
toString(s = Oe) {
|
|
779
|
-
return s.stringify(this);
|
|
780
|
-
}
|
|
781
|
-
concat(s) {
|
|
782
|
-
const e = this.words, r = s.words, i = this.sigBytes, a = s.sigBytes;
|
|
783
|
-
if (this.clamp(), i % 4)
|
|
784
|
-
for (let n = 0; n < a; n += 1) {
|
|
785
|
-
const o = r[n >>> 2] >>> 24 - n % 4 * 8 & 255;
|
|
786
|
-
e[i + n >>> 2] |= o << 24 - (i + n) % 4 * 8;
|
|
787
|
-
}
|
|
788
|
-
else
|
|
789
|
-
for (let n = 0; n < a; n += 4)
|
|
790
|
-
e[i + n >>> 2] = r[n >>> 2];
|
|
791
|
-
return this.sigBytes += a, this;
|
|
792
|
-
}
|
|
793
|
-
clone() {
|
|
794
|
-
const s = super.clone.call(this);
|
|
795
|
-
return s.words = this.words.slice(0), s;
|
|
796
|
-
}
|
|
797
|
-
clamp() {
|
|
798
|
-
const { words: s, sigBytes: e } = this;
|
|
799
|
-
s[e >>> 2] &= 4294967295 << 32 - e % 4 * 8, s.length = Math.ceil(e / 4);
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
D(H, "random", q);
|
|
803
|
-
const Oe = {
|
|
804
|
-
stringify(t) {
|
|
805
|
-
const { words: s, sigBytes: e } = t, r = [];
|
|
806
|
-
for (let i = 0; i < e; i += 1) {
|
|
807
|
-
const a = s[i >>> 2] >>> 24 - i % 4 * 8 & 255;
|
|
808
|
-
r.push((a >>> 4).toString(16)), r.push((a & 15).toString(16));
|
|
809
|
-
}
|
|
810
|
-
return r.join("");
|
|
811
|
-
},
|
|
812
|
-
parse(t) {
|
|
813
|
-
const s = t.length, e = [];
|
|
814
|
-
for (let r = 0; r < s; r += 2)
|
|
815
|
-
e[r >>> 3] |= parseInt(t.substr(r, 2), 16) << 24 - r % 8 * 4;
|
|
816
|
-
return new H(e, s / 2);
|
|
817
|
-
}
|
|
818
|
-
}, Be = [], Ve = [];
|
|
819
|
-
let B = 2, S = 0;
|
|
820
|
-
const ze = (t) => {
|
|
821
|
-
const s = Math.sqrt(t);
|
|
822
|
-
for (let e = 2; e <= s; e += 1)
|
|
823
|
-
if (!(t % e))
|
|
824
|
-
return !1;
|
|
825
|
-
return !0;
|
|
826
|
-
}, tt = (t) => (t - (t | 0)) * 4294967296 | 0;
|
|
827
|
-
for (; S < 64; )
|
|
828
|
-
ze(B) && (S < 8 && (Be[S] = tt(B ** (1 / 2))), Ve[S] = tt(B ** (1 / 3)), S += 1), B += 1;
|
|
829
|
-
const Ee = Ie;
|
|
830
|
-
export {
|
|
831
|
-
Ee as xss
|
|
832
|
-
};
|