@opentiny/tiny-robot 0.2.0-alpha.2 → 0.2.0-alpha.4
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 +2200 -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 +429 -0
- package/dist/sender/index.js +772 -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} +107 -107
- 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 -17
- package/dist/bubble/BubbleList.vue.d.ts +0 -5
- package/dist/bubble/index.d.ts +0 -12
- package/dist/bubble/index.type.d.ts +0 -51
- 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 -6
- 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 -310
- package/dist/node_modules/.pnpm/@vueuse_shared@13.1.0_vue@3.5.13/node_modules/@vueuse/shared/index.js +0 -110
- 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 -121
- 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.vue.js +0 -7
- package/dist/packages/components/src/bubble/Bubble.vue2.js +0 -76
- package/dist/packages/components/src/bubble/BubbleList.vue.js +0 -7
- package/dist/packages/components/src/bubble/BubbleList.vue2.js +0 -50
- package/dist/packages/components/src/bubble/index.js +0 -18
- 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 -143
- 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 -22
- 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 -175
- 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 -247
- package/src/action-group/ActionGroupItem.vue +0 -9
- package/src/action-group/index.ts +0 -25
- package/src/action-group/index.type.ts +0 -21
- 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.vue +0 -153
- package/src/bubble/BubbleList.vue +0 -55
- package/src/bubble/index.ts +0 -23
- package/src/bubble/index.type.ts +0 -49
- package/src/container/index.ts +0 -12
- package/src/container/index.type.ts +0 -17
- package/src/container/index.vue +0 -109
- 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 -7
- package/src/icon-button/index.vue +0 -58
- 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 -465
- 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
package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js
DELETED
|
@@ -1,2116 +0,0 @@
|
|
|
1
|
-
var Ut = Object.defineProperty, Gt = (t, e, s) => e in t ? Ut(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, J = (t, e, s) => Gt(t, typeof e != "symbol" ? e + "" : e, s), we = { exports: {} }, E = {}, ve = { exports: {} }, G = {}, We;
|
|
2
|
-
function dt() {
|
|
3
|
-
if (We) return G;
|
|
4
|
-
We = 1;
|
|
5
|
-
function t() {
|
|
6
|
-
var r = {};
|
|
7
|
-
return r["align-content"] = !1, r["align-items"] = !1, r["align-self"] = !1, r["alignment-adjust"] = !1, r["alignment-baseline"] = !1, r.all = !1, r["anchor-point"] = !1, r.animation = !1, r["animation-delay"] = !1, r["animation-direction"] = !1, r["animation-duration"] = !1, r["animation-fill-mode"] = !1, r["animation-iteration-count"] = !1, r["animation-name"] = !1, r["animation-play-state"] = !1, r["animation-timing-function"] = !1, r.azimuth = !1, r["backface-visibility"] = !1, r.background = !0, r["background-attachment"] = !0, r["background-clip"] = !0, r["background-color"] = !0, r["background-image"] = !0, r["background-origin"] = !0, r["background-position"] = !0, r["background-repeat"] = !0, r["background-size"] = !0, r["baseline-shift"] = !1, r.binding = !1, r.bleed = !1, r["bookmark-label"] = !1, r["bookmark-level"] = !1, r["bookmark-state"] = !1, r.border = !0, r["border-bottom"] = !0, r["border-bottom-color"] = !0, r["border-bottom-left-radius"] = !0, r["border-bottom-right-radius"] = !0, r["border-bottom-style"] = !0, r["border-bottom-width"] = !0, r["border-collapse"] = !0, r["border-color"] = !0, r["border-image"] = !0, r["border-image-outset"] = !0, r["border-image-repeat"] = !0, r["border-image-slice"] = !0, r["border-image-source"] = !0, r["border-image-width"] = !0, r["border-left"] = !0, r["border-left-color"] = !0, r["border-left-style"] = !0, r["border-left-width"] = !0, r["border-radius"] = !0, r["border-right"] = !0, r["border-right-color"] = !0, r["border-right-style"] = !0, r["border-right-width"] = !0, r["border-spacing"] = !0, r["border-style"] = !0, r["border-top"] = !0, r["border-top-color"] = !0, r["border-top-left-radius"] = !0, r["border-top-right-radius"] = !0, r["border-top-style"] = !0, r["border-top-width"] = !0, r["border-width"] = !0, r.bottom = !1, r["box-decoration-break"] = !0, r["box-shadow"] = !0, r["box-sizing"] = !0, r["box-snap"] = !0, r["box-suppress"] = !0, r["break-after"] = !0, r["break-before"] = !0, r["break-inside"] = !0, r["caption-side"] = !1, r.chains = !1, r.clear = !0, r.clip = !1, r["clip-path"] = !1, r["clip-rule"] = !1, r.color = !0, r["color-interpolation-filters"] = !0, r["column-count"] = !1, r["column-fill"] = !1, r["column-gap"] = !1, r["column-rule"] = !1, r["column-rule-color"] = !1, r["column-rule-style"] = !1, r["column-rule-width"] = !1, r["column-span"] = !1, r["column-width"] = !1, r.columns = !1, r.contain = !1, r.content = !1, r["counter-increment"] = !1, r["counter-reset"] = !1, r["counter-set"] = !1, r.crop = !1, r.cue = !1, r["cue-after"] = !1, r["cue-before"] = !1, r.cursor = !1, r.direction = !1, r.display = !0, r["display-inside"] = !0, r["display-list"] = !0, r["display-outside"] = !0, r["dominant-baseline"] = !1, r.elevation = !1, r["empty-cells"] = !1, r.filter = !1, r.flex = !1, r["flex-basis"] = !1, r["flex-direction"] = !1, r["flex-flow"] = !1, r["flex-grow"] = !1, r["flex-shrink"] = !1, r["flex-wrap"] = !1, r.float = !1, r["float-offset"] = !1, r["flood-color"] = !1, r["flood-opacity"] = !1, r["flow-from"] = !1, r["flow-into"] = !1, r.font = !0, r["font-family"] = !0, r["font-feature-settings"] = !0, r["font-kerning"] = !0, r["font-language-override"] = !0, r["font-size"] = !0, r["font-size-adjust"] = !0, r["font-stretch"] = !0, r["font-style"] = !0, r["font-synthesis"] = !0, r["font-variant"] = !0, r["font-variant-alternates"] = !0, r["font-variant-caps"] = !0, r["font-variant-east-asian"] = !0, r["font-variant-ligatures"] = !0, r["font-variant-numeric"] = !0, r["font-variant-position"] = !0, r["font-weight"] = !0, r.grid = !1, r["grid-area"] = !1, r["grid-auto-columns"] = !1, r["grid-auto-flow"] = !1, r["grid-auto-rows"] = !1, r["grid-column"] = !1, r["grid-column-end"] = !1, r["grid-column-start"] = !1, r["grid-row"] = !1, r["grid-row-end"] = !1, r["grid-row-start"] = !1, r["grid-template"] = !1, r["grid-template-areas"] = !1, r["grid-template-columns"] = !1, r["grid-template-rows"] = !1, r["hanging-punctuation"] = !1, r.height = !0, r.hyphens = !1, r.icon = !1, r["image-orientation"] = !1, r["image-resolution"] = !1, r["ime-mode"] = !1, r["initial-letters"] = !1, r["inline-box-align"] = !1, r["justify-content"] = !1, r["justify-items"] = !1, r["justify-self"] = !1, r.left = !1, r["letter-spacing"] = !0, r["lighting-color"] = !0, r["line-box-contain"] = !1, r["line-break"] = !1, r["line-grid"] = !1, r["line-height"] = !1, r["line-snap"] = !1, r["line-stacking"] = !1, r["line-stacking-ruby"] = !1, r["line-stacking-shift"] = !1, r["line-stacking-strategy"] = !1, r["list-style"] = !0, r["list-style-image"] = !0, r["list-style-position"] = !0, r["list-style-type"] = !0, r.margin = !0, r["margin-bottom"] = !0, r["margin-left"] = !0, r["margin-right"] = !0, r["margin-top"] = !0, r["marker-offset"] = !1, r["marker-side"] = !1, r.marks = !1, r.mask = !1, r["mask-box"] = !1, r["mask-box-outset"] = !1, r["mask-box-repeat"] = !1, r["mask-box-slice"] = !1, r["mask-box-source"] = !1, r["mask-box-width"] = !1, r["mask-clip"] = !1, r["mask-image"] = !1, r["mask-origin"] = !1, r["mask-position"] = !1, r["mask-repeat"] = !1, r["mask-size"] = !1, r["mask-source-type"] = !1, r["mask-type"] = !1, r["max-height"] = !0, r["max-lines"] = !1, r["max-width"] = !0, r["min-height"] = !0, r["min-width"] = !0, r["move-to"] = !1, r["nav-down"] = !1, r["nav-index"] = !1, r["nav-left"] = !1, r["nav-right"] = !1, r["nav-up"] = !1, r["object-fit"] = !1, r["object-position"] = !1, r.opacity = !1, r.order = !1, r.orphans = !1, r.outline = !1, r["outline-color"] = !1, r["outline-offset"] = !1, r["outline-style"] = !1, r["outline-width"] = !1, r.overflow = !1, r["overflow-wrap"] = !1, r["overflow-x"] = !1, r["overflow-y"] = !1, r.padding = !0, r["padding-bottom"] = !0, r["padding-left"] = !0, r["padding-right"] = !0, r["padding-top"] = !0, r.page = !1, r["page-break-after"] = !1, r["page-break-before"] = !1, r["page-break-inside"] = !1, r["page-policy"] = !1, r.pause = !1, r["pause-after"] = !1, r["pause-before"] = !1, r.perspective = !1, r["perspective-origin"] = !1, r.pitch = !1, r["pitch-range"] = !1, r["play-during"] = !1, r.position = !1, r["presentation-level"] = !1, r.quotes = !1, r["region-fragment"] = !1, r.resize = !1, r.rest = !1, r["rest-after"] = !1, r["rest-before"] = !1, r.richness = !1, r.right = !1, r.rotation = !1, r["rotation-point"] = !1, r["ruby-align"] = !1, r["ruby-merge"] = !1, r["ruby-position"] = !1, r["shape-image-threshold"] = !1, r["shape-outside"] = !1, r["shape-margin"] = !1, r.size = !1, r.speak = !1, r["speak-as"] = !1, r["speak-header"] = !1, r["speak-numeral"] = !1, r["speak-punctuation"] = !1, r["speech-rate"] = !1, r.stress = !1, r["string-set"] = !1, r["tab-size"] = !1, r["table-layout"] = !1, r["text-align"] = !0, r["text-align-last"] = !0, r["text-combine-upright"] = !0, r["text-decoration"] = !0, r["text-decoration-color"] = !0, r["text-decoration-line"] = !0, r["text-decoration-skip"] = !0, r["text-decoration-style"] = !0, r["text-emphasis"] = !0, r["text-emphasis-color"] = !0, r["text-emphasis-position"] = !0, r["text-emphasis-style"] = !0, r["text-height"] = !0, r["text-indent"] = !0, r["text-justify"] = !0, r["text-orientation"] = !0, r["text-overflow"] = !0, r["text-shadow"] = !0, r["text-space-collapse"] = !0, r["text-transform"] = !0, r["text-underline-position"] = !0, r["text-wrap"] = !0, r.top = !1, r.transform = !1, r["transform-origin"] = !1, r["transform-style"] = !1, r.transition = !1, r["transition-delay"] = !1, r["transition-duration"] = !1, r["transition-property"] = !1, r["transition-timing-function"] = !1, r["unicode-bidi"] = !1, r["vertical-align"] = !1, r.visibility = !1, r["voice-balance"] = !1, r["voice-duration"] = !1, r["voice-family"] = !1, r["voice-pitch"] = !1, r["voice-range"] = !1, r["voice-rate"] = !1, r["voice-stress"] = !1, r["voice-volume"] = !1, r.volume = !1, r["white-space"] = !1, r.widows = !1, r.width = !0, r["will-change"] = !1, r["word-break"] = !0, r["word-spacing"] = !0, r["word-wrap"] = !0, r["wrap-flow"] = !1, r["wrap-through"] = !1, r["writing-mode"] = !1, r["z-index"] = !1, r;
|
|
8
|
-
}
|
|
9
|
-
function e(r, a, l) {
|
|
10
|
-
}
|
|
11
|
-
function s(r, a, l) {
|
|
12
|
-
}
|
|
13
|
-
var o = /javascript\s*\:/img;
|
|
14
|
-
function n(r, a) {
|
|
15
|
-
return o.test(a) ? "" : a;
|
|
16
|
-
}
|
|
17
|
-
return G.whiteList = t(), G.getDefaultWhiteList = t, G.onAttr = e, G.onIgnoreAttr = s, G.safeAttrValue = n, G;
|
|
18
|
-
}
|
|
19
|
-
var Ne, Ve;
|
|
20
|
-
function ht() {
|
|
21
|
-
return Ve || (Ve = 1, Ne = {
|
|
22
|
-
indexOf: function(t, e) {
|
|
23
|
-
var s, o;
|
|
24
|
-
if (Array.prototype.indexOf)
|
|
25
|
-
return t.indexOf(e);
|
|
26
|
-
for (s = 0, o = t.length; s < o; s++)
|
|
27
|
-
if (t[s] === e)
|
|
28
|
-
return s;
|
|
29
|
-
return -1;
|
|
30
|
-
},
|
|
31
|
-
forEach: function(t, e, s) {
|
|
32
|
-
var o, n;
|
|
33
|
-
if (Array.prototype.forEach)
|
|
34
|
-
return t.forEach(e, s);
|
|
35
|
-
for (o = 0, n = t.length; o < n; o++)
|
|
36
|
-
e.call(s, t[o], o, t);
|
|
37
|
-
},
|
|
38
|
-
trim: function(t) {
|
|
39
|
-
return String.prototype.trim ? t.trim() : t.replace(/(^\s*)|(\s*$)/g, "");
|
|
40
|
-
},
|
|
41
|
-
trimRight: function(t) {
|
|
42
|
-
return String.prototype.trimRight ? t.trimRight() : t.replace(/(\s*$)/g, "");
|
|
43
|
-
}
|
|
44
|
-
}), Ne;
|
|
45
|
-
}
|
|
46
|
-
var _e, qe;
|
|
47
|
-
function Yt() {
|
|
48
|
-
if (qe) return _e;
|
|
49
|
-
qe = 1;
|
|
50
|
-
var t = ht();
|
|
51
|
-
function e(s, o) {
|
|
52
|
-
s = t.trimRight(s), s[s.length - 1] !== ";" && (s += ";");
|
|
53
|
-
var n = s.length, r = !1, a = 0, l = 0, c = "";
|
|
54
|
-
function d() {
|
|
55
|
-
if (!r) {
|
|
56
|
-
var u = t.trim(s.slice(a, l)), f = u.indexOf(":");
|
|
57
|
-
if (f !== -1) {
|
|
58
|
-
var _ = t.trim(u.slice(0, f)), w = t.trim(u.slice(f + 1));
|
|
59
|
-
if (_) {
|
|
60
|
-
var g = o(a, c.length, _, w, u);
|
|
61
|
-
g && (c += g + "; ");
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
a = l + 1;
|
|
66
|
-
}
|
|
67
|
-
for (; l < n; l++) {
|
|
68
|
-
var m = s[l];
|
|
69
|
-
if (m === "/" && s[l + 1] === "*") {
|
|
70
|
-
var i = s.indexOf("*/", l + 2);
|
|
71
|
-
if (i === -1) break;
|
|
72
|
-
l = i + 1, a = l + 1, r = !1;
|
|
73
|
-
} else m === "(" ? r = !0 : m === ")" ? r = !1 : m === ";" ? r || d() : m === `
|
|
74
|
-
` && d();
|
|
75
|
-
}
|
|
76
|
-
return t.trim(c);
|
|
77
|
-
}
|
|
78
|
-
return _e = e, _e;
|
|
79
|
-
}
|
|
80
|
-
var xe, Ue;
|
|
81
|
-
function $t() {
|
|
82
|
-
if (Ue) return xe;
|
|
83
|
-
Ue = 1;
|
|
84
|
-
var t = dt(), e = Yt();
|
|
85
|
-
ht();
|
|
86
|
-
function s(r) {
|
|
87
|
-
return r == null;
|
|
88
|
-
}
|
|
89
|
-
function o(r) {
|
|
90
|
-
var a = {};
|
|
91
|
-
for (var l in r)
|
|
92
|
-
a[l] = r[l];
|
|
93
|
-
return a;
|
|
94
|
-
}
|
|
95
|
-
function n(r) {
|
|
96
|
-
r = o(r || {}), r.whiteList = r.whiteList || t.whiteList, r.onAttr = r.onAttr || t.onAttr, r.onIgnoreAttr = r.onIgnoreAttr || t.onIgnoreAttr, r.safeAttrValue = r.safeAttrValue || t.safeAttrValue, this.options = r;
|
|
97
|
-
}
|
|
98
|
-
return n.prototype.process = function(r) {
|
|
99
|
-
if (r = r || "", r = r.toString(), !r) return "";
|
|
100
|
-
var a = this, l = a.options, c = l.whiteList, d = l.onAttr, m = l.onIgnoreAttr, i = l.safeAttrValue, u = e(r, function(f, _, w, g, T) {
|
|
101
|
-
var y = c[w], b = !1;
|
|
102
|
-
if (y === !0 ? b = y : typeof y == "function" ? b = y(g) : y instanceof RegExp && (b = y.test(g)), b !== !0 && (b = !1), g = i(w, g), !!g) {
|
|
103
|
-
var F = {
|
|
104
|
-
position: _,
|
|
105
|
-
sourcePosition: f,
|
|
106
|
-
source: T,
|
|
107
|
-
isWhite: b
|
|
108
|
-
};
|
|
109
|
-
if (b) {
|
|
110
|
-
var k = d(w, g, F);
|
|
111
|
-
return s(k) ? w + ":" + g : k;
|
|
112
|
-
} else {
|
|
113
|
-
var k = m(w, g, F);
|
|
114
|
-
if (!s(k))
|
|
115
|
-
return k;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
return u;
|
|
120
|
-
}, xe = n, xe;
|
|
121
|
-
}
|
|
122
|
-
var Ge;
|
|
123
|
-
function Te() {
|
|
124
|
-
return Ge || (Ge = 1, function(t, e) {
|
|
125
|
-
var s = dt(), o = $t();
|
|
126
|
-
function n(a, l) {
|
|
127
|
-
var c = new o(l);
|
|
128
|
-
return c.process(a);
|
|
129
|
-
}
|
|
130
|
-
e = t.exports = n, e.FilterCSS = o;
|
|
131
|
-
for (var r in s) e[r] = s[r];
|
|
132
|
-
typeof window < "u" && (window.filterCSS = t.exports);
|
|
133
|
-
}(ve, ve.exports)), ve.exports;
|
|
134
|
-
}
|
|
135
|
-
var Ye, $e;
|
|
136
|
-
function Be() {
|
|
137
|
-
return $e || ($e = 1, Ye = {
|
|
138
|
-
indexOf: function(t, e) {
|
|
139
|
-
var s, o;
|
|
140
|
-
if (Array.prototype.indexOf)
|
|
141
|
-
return t.indexOf(e);
|
|
142
|
-
for (s = 0, o = t.length; s < o; s++)
|
|
143
|
-
if (t[s] === e)
|
|
144
|
-
return s;
|
|
145
|
-
return -1;
|
|
146
|
-
},
|
|
147
|
-
forEach: function(t, e, s) {
|
|
148
|
-
var o, n;
|
|
149
|
-
if (Array.prototype.forEach)
|
|
150
|
-
return t.forEach(e, s);
|
|
151
|
-
for (o = 0, n = t.length; o < n; o++)
|
|
152
|
-
e.call(s, t[o], o, t);
|
|
153
|
-
},
|
|
154
|
-
trim: function(t) {
|
|
155
|
-
return String.prototype.trim ? t.trim() : t.replace(/(^\s*)|(\s*$)/g, "");
|
|
156
|
-
},
|
|
157
|
-
spaceIndex: function(t) {
|
|
158
|
-
var e = /\s|\n|\t/, s = e.exec(t);
|
|
159
|
-
return s ? s.index : -1;
|
|
160
|
-
}
|
|
161
|
-
}), Ye;
|
|
162
|
-
}
|
|
163
|
-
var Qe;
|
|
164
|
-
function mt() {
|
|
165
|
-
if (Qe) return E;
|
|
166
|
-
Qe = 1;
|
|
167
|
-
var t = Te().FilterCSS, e = Te().getDefaultWhiteList, s = Be();
|
|
168
|
-
function o() {
|
|
169
|
-
return {
|
|
170
|
-
a: ["target", "href", "title"],
|
|
171
|
-
abbr: ["title"],
|
|
172
|
-
address: [],
|
|
173
|
-
area: ["shape", "coords", "href", "alt"],
|
|
174
|
-
article: [],
|
|
175
|
-
aside: [],
|
|
176
|
-
audio: [
|
|
177
|
-
"autoplay",
|
|
178
|
-
"controls",
|
|
179
|
-
"crossorigin",
|
|
180
|
-
"loop",
|
|
181
|
-
"muted",
|
|
182
|
-
"preload",
|
|
183
|
-
"src"
|
|
184
|
-
],
|
|
185
|
-
b: [],
|
|
186
|
-
bdi: ["dir"],
|
|
187
|
-
bdo: ["dir"],
|
|
188
|
-
big: [],
|
|
189
|
-
blockquote: ["cite"],
|
|
190
|
-
br: [],
|
|
191
|
-
caption: [],
|
|
192
|
-
center: [],
|
|
193
|
-
cite: [],
|
|
194
|
-
code: [],
|
|
195
|
-
col: ["align", "valign", "span", "width"],
|
|
196
|
-
colgroup: ["align", "valign", "span", "width"],
|
|
197
|
-
dd: [],
|
|
198
|
-
del: ["datetime"],
|
|
199
|
-
details: ["open"],
|
|
200
|
-
div: [],
|
|
201
|
-
dl: [],
|
|
202
|
-
dt: [],
|
|
203
|
-
em: [],
|
|
204
|
-
figcaption: [],
|
|
205
|
-
figure: [],
|
|
206
|
-
font: ["color", "size", "face"],
|
|
207
|
-
footer: [],
|
|
208
|
-
h1: [],
|
|
209
|
-
h2: [],
|
|
210
|
-
h3: [],
|
|
211
|
-
h4: [],
|
|
212
|
-
h5: [],
|
|
213
|
-
h6: [],
|
|
214
|
-
header: [],
|
|
215
|
-
hr: [],
|
|
216
|
-
i: [],
|
|
217
|
-
img: ["src", "alt", "title", "width", "height"],
|
|
218
|
-
ins: ["datetime"],
|
|
219
|
-
li: [],
|
|
220
|
-
mark: [],
|
|
221
|
-
nav: [],
|
|
222
|
-
ol: [],
|
|
223
|
-
p: [],
|
|
224
|
-
pre: [],
|
|
225
|
-
s: [],
|
|
226
|
-
section: [],
|
|
227
|
-
small: [],
|
|
228
|
-
span: [],
|
|
229
|
-
sub: [],
|
|
230
|
-
summary: [],
|
|
231
|
-
sup: [],
|
|
232
|
-
strong: [],
|
|
233
|
-
strike: [],
|
|
234
|
-
table: ["width", "border", "align", "valign"],
|
|
235
|
-
tbody: ["align", "valign"],
|
|
236
|
-
td: ["width", "rowspan", "colspan", "align", "valign"],
|
|
237
|
-
tfoot: ["align", "valign"],
|
|
238
|
-
th: ["width", "rowspan", "colspan", "align", "valign"],
|
|
239
|
-
thead: ["align", "valign"],
|
|
240
|
-
tr: ["rowspan", "align", "valign"],
|
|
241
|
-
tt: [],
|
|
242
|
-
u: [],
|
|
243
|
-
ul: [],
|
|
244
|
-
video: [
|
|
245
|
-
"autoplay",
|
|
246
|
-
"controls",
|
|
247
|
-
"crossorigin",
|
|
248
|
-
"loop",
|
|
249
|
-
"muted",
|
|
250
|
-
"playsinline",
|
|
251
|
-
"poster",
|
|
252
|
-
"preload",
|
|
253
|
-
"src",
|
|
254
|
-
"height",
|
|
255
|
-
"width"
|
|
256
|
-
]
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
var n = new t();
|
|
260
|
-
function r(h, v, p) {
|
|
261
|
-
}
|
|
262
|
-
function a(h, v, p) {
|
|
263
|
-
}
|
|
264
|
-
function l(h, v, p) {
|
|
265
|
-
}
|
|
266
|
-
function c(h, v, p) {
|
|
267
|
-
}
|
|
268
|
-
function d(h) {
|
|
269
|
-
return h.replace(i, "<").replace(u, ">");
|
|
270
|
-
}
|
|
271
|
-
function m(h, v, p, O) {
|
|
272
|
-
if (p = j(p), v === "href" || v === "src") {
|
|
273
|
-
if (p = s.trim(p), p === "#") return "#";
|
|
274
|
-
if (!(p.substr(0, 7) === "http://" || p.substr(0, 8) === "https://" || p.substr(0, 7) === "mailto:" || p.substr(0, 4) === "tel:" || p.substr(0, 11) === "data:image/" || p.substr(0, 6) === "ftp://" || p.substr(0, 2) === "./" || p.substr(0, 3) === "../" || p[0] === "#" || p[0] === "/"))
|
|
275
|
-
return "";
|
|
276
|
-
} else if (v === "background") {
|
|
277
|
-
if (y.lastIndex = 0, y.test(p))
|
|
278
|
-
return "";
|
|
279
|
-
} else if (v === "style") {
|
|
280
|
-
if (b.lastIndex = 0, b.test(p) || (F.lastIndex = 0, F.test(p) && (y.lastIndex = 0, y.test(p))))
|
|
281
|
-
return "";
|
|
282
|
-
O !== !1 && (O = O || n, p = O.process(p));
|
|
283
|
-
}
|
|
284
|
-
return p = P(p), p;
|
|
285
|
-
}
|
|
286
|
-
var i = /</g, u = />/g, f = /"/g, _ = /"/g, w = /&#([a-zA-Z0-9]*);?/gim, g = /:?/gim, T = /&newline;?/gim, y = /((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, b = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, F = /u\s*r\s*l\s*\(.*/gi;
|
|
287
|
-
function k(h) {
|
|
288
|
-
return h.replace(f, """);
|
|
289
|
-
}
|
|
290
|
-
function x(h) {
|
|
291
|
-
return h.replace(_, '"');
|
|
292
|
-
}
|
|
293
|
-
function M(h) {
|
|
294
|
-
return h.replace(w, function(v, p) {
|
|
295
|
-
return p[0] === "x" || p[0] === "X" ? String.fromCharCode(parseInt(p.substr(1), 16)) : String.fromCharCode(parseInt(p, 10));
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
function z(h) {
|
|
299
|
-
return h.replace(g, ":").replace(T, " ");
|
|
300
|
-
}
|
|
301
|
-
function V(h) {
|
|
302
|
-
for (var v = "", p = 0, O = h.length; p < O; p++)
|
|
303
|
-
v += h.charCodeAt(p) < 32 ? " " : h.charAt(p);
|
|
304
|
-
return s.trim(v);
|
|
305
|
-
}
|
|
306
|
-
function j(h) {
|
|
307
|
-
return h = x(h), h = M(h), h = z(h), h = V(h), h;
|
|
308
|
-
}
|
|
309
|
-
function P(h) {
|
|
310
|
-
return h = k(h), h = d(h), h;
|
|
311
|
-
}
|
|
312
|
-
function ye() {
|
|
313
|
-
return "";
|
|
314
|
-
}
|
|
315
|
-
function Z(h, v) {
|
|
316
|
-
typeof v != "function" && (v = function() {
|
|
317
|
-
});
|
|
318
|
-
var p = !Array.isArray(h);
|
|
319
|
-
function O(U) {
|
|
320
|
-
return p ? !0 : s.indexOf(h, U) !== -1;
|
|
321
|
-
}
|
|
322
|
-
var R = [], B = !1;
|
|
323
|
-
return {
|
|
324
|
-
onIgnoreTag: function(U, te, D) {
|
|
325
|
-
if (O(U))
|
|
326
|
-
if (D.isClosing) {
|
|
327
|
-
var re = "[/removed]", qt = D.position + re.length;
|
|
328
|
-
return R.push([
|
|
329
|
-
B !== !1 ? B : D.position,
|
|
330
|
-
qt
|
|
331
|
-
]), B = !1, re;
|
|
332
|
-
} else
|
|
333
|
-
return B || (B = D.position), "[removed]";
|
|
334
|
-
else
|
|
335
|
-
return v(U, te, D);
|
|
336
|
-
},
|
|
337
|
-
remove: function(U) {
|
|
338
|
-
var te = "", D = 0;
|
|
339
|
-
return s.forEach(R, function(re) {
|
|
340
|
-
te += U.slice(D, re[0]), D = re[1];
|
|
341
|
-
}), te += U.slice(D), te;
|
|
342
|
-
}
|
|
343
|
-
};
|
|
344
|
-
}
|
|
345
|
-
function q(h) {
|
|
346
|
-
for (var v = "", p = 0; p < h.length; ) {
|
|
347
|
-
var O = h.indexOf("<!--", p);
|
|
348
|
-
if (O === -1) {
|
|
349
|
-
v += h.slice(p);
|
|
350
|
-
break;
|
|
351
|
-
}
|
|
352
|
-
v += h.slice(p, O);
|
|
353
|
-
var R = h.indexOf("-->", O);
|
|
354
|
-
if (R === -1)
|
|
355
|
-
break;
|
|
356
|
-
p = R + 3;
|
|
357
|
-
}
|
|
358
|
-
return v;
|
|
359
|
-
}
|
|
360
|
-
function ae(h) {
|
|
361
|
-
var v = h.split("");
|
|
362
|
-
return v = v.filter(function(p) {
|
|
363
|
-
var O = p.charCodeAt(0);
|
|
364
|
-
return O === 127 ? !1 : O <= 31 ? O === 10 || O === 13 : !0;
|
|
365
|
-
}), v.join("");
|
|
366
|
-
}
|
|
367
|
-
return E.whiteList = o(), E.getDefaultWhiteList = o, E.onTag = r, E.onIgnoreTag = a, E.onTagAttr = l, E.onIgnoreTagAttr = c, E.safeAttrValue = m, E.escapeHtml = d, E.escapeQuote = k, E.unescapeQuote = x, E.escapeHtmlEntities = M, E.escapeDangerHtml5Entities = z, E.clearNonPrintableCharacter = V, E.friendlyAttrValue = j, E.escapeAttrValue = P, E.onIgnoreTagStripAll = ye, E.StripTagBody = Z, E.stripCommentTag = q, E.stripBlankChar = ae, E.cssFilter = n, E.getDefaultCSSWhiteList = e, E;
|
|
368
|
-
}
|
|
369
|
-
var le = {}, Ze;
|
|
370
|
-
function gt() {
|
|
371
|
-
if (Ze) return le;
|
|
372
|
-
Ze = 1;
|
|
373
|
-
var t = Be();
|
|
374
|
-
function e(i) {
|
|
375
|
-
var u = t.spaceIndex(i), f;
|
|
376
|
-
return u === -1 ? f = i.slice(1, -1) : f = i.slice(1, u + 1), f = t.trim(f).toLowerCase(), f.slice(0, 1) === "/" && (f = f.slice(1)), f.slice(-1) === "/" && (f = f.slice(0, -1)), f;
|
|
377
|
-
}
|
|
378
|
-
function s(i) {
|
|
379
|
-
return i.slice(0, 2) === "</";
|
|
380
|
-
}
|
|
381
|
-
function o(i, u, f) {
|
|
382
|
-
var _ = "", w = 0, g = !1, T = !1, y = 0, b = i.length, F = "", k = "";
|
|
383
|
-
e: for (y = 0; y < b; y++) {
|
|
384
|
-
var x = i.charAt(y);
|
|
385
|
-
if (g === !1) {
|
|
386
|
-
if (x === "<") {
|
|
387
|
-
g = y;
|
|
388
|
-
continue;
|
|
389
|
-
}
|
|
390
|
-
} else if (T === !1) {
|
|
391
|
-
if (x === "<") {
|
|
392
|
-
_ += f(i.slice(w, y)), g = y, w = y;
|
|
393
|
-
continue;
|
|
394
|
-
}
|
|
395
|
-
if (x === ">" || y === b - 1) {
|
|
396
|
-
_ += f(i.slice(w, g)), k = i.slice(g, y + 1), F = e(k), _ += u(
|
|
397
|
-
g,
|
|
398
|
-
_.length,
|
|
399
|
-
F,
|
|
400
|
-
k,
|
|
401
|
-
s(k)
|
|
402
|
-
), w = y + 1, g = !1;
|
|
403
|
-
continue;
|
|
404
|
-
}
|
|
405
|
-
if (x === '"' || x === "'")
|
|
406
|
-
for (var M = 1, z = i.charAt(y - M); z.trim() === "" || z === "="; ) {
|
|
407
|
-
if (z === "=") {
|
|
408
|
-
T = x;
|
|
409
|
-
continue e;
|
|
410
|
-
}
|
|
411
|
-
z = i.charAt(y - ++M);
|
|
412
|
-
}
|
|
413
|
-
} else if (x === T) {
|
|
414
|
-
T = !1;
|
|
415
|
-
continue;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
return w < b && (_ += f(i.substr(w))), _;
|
|
419
|
-
}
|
|
420
|
-
var n = /[^a-zA-Z0-9\\_:.-]/gim;
|
|
421
|
-
function r(i, u) {
|
|
422
|
-
var f = 0, _ = 0, w = [], g = !1, T = i.length;
|
|
423
|
-
function y(M, z) {
|
|
424
|
-
if (M = t.trim(M), M = M.replace(n, "").toLowerCase(), !(M.length < 1)) {
|
|
425
|
-
var V = u(M, z || "");
|
|
426
|
-
V && w.push(V);
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
for (var b = 0; b < T; b++) {
|
|
430
|
-
var F = i.charAt(b), k, x;
|
|
431
|
-
if (g === !1 && F === "=") {
|
|
432
|
-
g = i.slice(f, b), f = b + 1, _ = i.charAt(f) === '"' || i.charAt(f) === "'" ? f : l(i, b + 1);
|
|
433
|
-
continue;
|
|
434
|
-
}
|
|
435
|
-
if (g !== !1 && b === _) {
|
|
436
|
-
if (x = i.indexOf(F, b + 1), x === -1)
|
|
437
|
-
break;
|
|
438
|
-
k = t.trim(i.slice(_ + 1, x)), y(g, k), g = !1, b = x, f = b + 1;
|
|
439
|
-
continue;
|
|
440
|
-
}
|
|
441
|
-
if (/\s|\n|\t/.test(F))
|
|
442
|
-
if (i = i.replace(/\s|\n|\t/g, " "), g === !1)
|
|
443
|
-
if (x = a(i, b), x === -1) {
|
|
444
|
-
k = t.trim(i.slice(f, b)), y(k), g = !1, f = b + 1;
|
|
445
|
-
continue;
|
|
446
|
-
} else {
|
|
447
|
-
b = x - 1;
|
|
448
|
-
continue;
|
|
449
|
-
}
|
|
450
|
-
else if (x = c(i, b - 1), x === -1) {
|
|
451
|
-
k = t.trim(i.slice(f, b)), k = m(k), y(g, k), g = !1, f = b + 1;
|
|
452
|
-
continue;
|
|
453
|
-
} else
|
|
454
|
-
continue;
|
|
455
|
-
}
|
|
456
|
-
return f < i.length && (g === !1 ? y(i.slice(f)) : y(g, m(t.trim(i.slice(f))))), t.trim(w.join(" "));
|
|
457
|
-
}
|
|
458
|
-
function a(i, u) {
|
|
459
|
-
for (; u < i.length; u++) {
|
|
460
|
-
var f = i[u];
|
|
461
|
-
if (f !== " ")
|
|
462
|
-
return f === "=" ? u : -1;
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
function l(i, u) {
|
|
466
|
-
for (; u < i.length; u++) {
|
|
467
|
-
var f = i[u];
|
|
468
|
-
if (f !== " ")
|
|
469
|
-
return f === "'" || f === '"' ? u : -1;
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
function c(i, u) {
|
|
473
|
-
for (; u > 0; u--) {
|
|
474
|
-
var f = i[u];
|
|
475
|
-
if (f !== " ")
|
|
476
|
-
return f === "=" ? u : -1;
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
function d(i) {
|
|
480
|
-
return i[0] === '"' && i[i.length - 1] === '"' || i[0] === "'" && i[i.length - 1] === "'";
|
|
481
|
-
}
|
|
482
|
-
function m(i) {
|
|
483
|
-
return d(i) ? i.substr(1, i.length - 2) : i;
|
|
484
|
-
}
|
|
485
|
-
return le.parseTag = o, le.parseAttr = r, le;
|
|
486
|
-
}
|
|
487
|
-
var ke, Je;
|
|
488
|
-
function Qt() {
|
|
489
|
-
if (Je) return ke;
|
|
490
|
-
Je = 1;
|
|
491
|
-
var t = Te().FilterCSS, e = mt(), s = gt(), o = s.parseTag, n = s.parseAttr, r = Be();
|
|
492
|
-
function a(i) {
|
|
493
|
-
return i == null;
|
|
494
|
-
}
|
|
495
|
-
function l(i) {
|
|
496
|
-
var u = r.spaceIndex(i);
|
|
497
|
-
if (u === -1)
|
|
498
|
-
return {
|
|
499
|
-
html: "",
|
|
500
|
-
closing: i[i.length - 2] === "/"
|
|
501
|
-
};
|
|
502
|
-
i = r.trim(i.slice(u + 1, -1));
|
|
503
|
-
var f = i[i.length - 1] === "/";
|
|
504
|
-
return f && (i = r.trim(i.slice(0, -1))), {
|
|
505
|
-
html: i,
|
|
506
|
-
closing: f
|
|
507
|
-
};
|
|
508
|
-
}
|
|
509
|
-
function c(i) {
|
|
510
|
-
var u = {};
|
|
511
|
-
for (var f in i)
|
|
512
|
-
u[f] = i[f];
|
|
513
|
-
return u;
|
|
514
|
-
}
|
|
515
|
-
function d(i) {
|
|
516
|
-
var u = {};
|
|
517
|
-
for (var f in i)
|
|
518
|
-
Array.isArray(i[f]) ? u[f.toLowerCase()] = i[f].map(function(_) {
|
|
519
|
-
return _.toLowerCase();
|
|
520
|
-
}) : u[f.toLowerCase()] = i[f];
|
|
521
|
-
return u;
|
|
522
|
-
}
|
|
523
|
-
function m(i) {
|
|
524
|
-
i = c(i || {}), i.stripIgnoreTag && (i.onIgnoreTag && console.error(
|
|
525
|
-
'Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'
|
|
526
|
-
), i.onIgnoreTag = e.onIgnoreTagStripAll), i.whiteList || i.allowList ? i.whiteList = d(i.whiteList || i.allowList) : i.whiteList = e.whiteList, i.onTag = i.onTag || e.onTag, i.onTagAttr = i.onTagAttr || e.onTagAttr, i.onIgnoreTag = i.onIgnoreTag || e.onIgnoreTag, i.onIgnoreTagAttr = i.onIgnoreTagAttr || e.onIgnoreTagAttr, i.safeAttrValue = i.safeAttrValue || e.safeAttrValue, i.escapeHtml = i.escapeHtml || e.escapeHtml, this.options = i, i.css === !1 ? this.cssFilter = !1 : (i.css = i.css || {}, this.cssFilter = new t(i.css));
|
|
527
|
-
}
|
|
528
|
-
return m.prototype.process = function(i) {
|
|
529
|
-
if (i = i || "", i = i.toString(), !i) return "";
|
|
530
|
-
var u = this, f = u.options, _ = f.whiteList, w = f.onTag, g = f.onIgnoreTag, T = f.onTagAttr, y = f.onIgnoreTagAttr, b = f.safeAttrValue, F = f.escapeHtml, k = u.cssFilter;
|
|
531
|
-
f.stripBlankChar && (i = e.stripBlankChar(i)), f.allowCommentTag || (i = e.stripCommentTag(i));
|
|
532
|
-
var x = !1;
|
|
533
|
-
f.stripIgnoreTagBody && (x = e.StripTagBody(
|
|
534
|
-
f.stripIgnoreTagBody,
|
|
535
|
-
g
|
|
536
|
-
), g = x.onIgnoreTag);
|
|
537
|
-
var M = o(
|
|
538
|
-
i,
|
|
539
|
-
function(z, V, j, P, ye) {
|
|
540
|
-
var Z = {
|
|
541
|
-
sourcePosition: z,
|
|
542
|
-
position: V,
|
|
543
|
-
isClosing: ye,
|
|
544
|
-
isWhite: Object.prototype.hasOwnProperty.call(_, j)
|
|
545
|
-
}, q = w(j, P, Z);
|
|
546
|
-
if (!a(q)) return q;
|
|
547
|
-
if (Z.isWhite) {
|
|
548
|
-
if (Z.isClosing)
|
|
549
|
-
return "</" + j + ">";
|
|
550
|
-
var ae = l(P), h = _[j], v = n(ae.html, function(p, O) {
|
|
551
|
-
var R = r.indexOf(h, p) !== -1, B = T(j, p, O, R);
|
|
552
|
-
return a(B) ? R ? (O = b(j, p, O, k), O ? p + '="' + O + '"' : p) : (B = y(j, p, O, R), a(B) ? void 0 : B) : B;
|
|
553
|
-
});
|
|
554
|
-
return P = "<" + j, v && (P += " " + v), ae.closing && (P += " /"), P += ">", P;
|
|
555
|
-
} else
|
|
556
|
-
return q = g(j, P, Z), a(q) ? F(P) : q;
|
|
557
|
-
},
|
|
558
|
-
F
|
|
559
|
-
);
|
|
560
|
-
return x && (M = x.remove(M)), M;
|
|
561
|
-
}, ke = m, ke;
|
|
562
|
-
}
|
|
563
|
-
var Xe;
|
|
564
|
-
function Zt() {
|
|
565
|
-
return Xe || (Xe = 1, function(t, e) {
|
|
566
|
-
var s = mt(), o = gt(), n = Qt();
|
|
567
|
-
function r(l, c) {
|
|
568
|
-
var d = new n(c);
|
|
569
|
-
return d.process(l);
|
|
570
|
-
}
|
|
571
|
-
e = t.exports = r, e.filterXSS = r, e.FilterXSS = n, function() {
|
|
572
|
-
for (var l in s)
|
|
573
|
-
e[l] = s[l];
|
|
574
|
-
for (var c in o)
|
|
575
|
-
e[c] = o[c];
|
|
576
|
-
}(), typeof window < "u" && (window.filterXSS = t.exports);
|
|
577
|
-
function a() {
|
|
578
|
-
return typeof self < "u" && typeof DedicatedWorkerGlobalScope < "u" && self instanceof DedicatedWorkerGlobalScope;
|
|
579
|
-
}
|
|
580
|
-
a() && (self.filterXSS = t.exports);
|
|
581
|
-
}(we, we.exports)), we.exports;
|
|
582
|
-
}
|
|
583
|
-
var Me = Zt();
|
|
584
|
-
let Ie = {
|
|
585
|
-
html: {
|
|
586
|
-
whiteList: {
|
|
587
|
-
a: ["class", "style", "contenteditable", "data-id", "data-title", "data-size", "href", "data-last-modified"],
|
|
588
|
-
address: ["class", "style"],
|
|
589
|
-
area: ["class", "style"],
|
|
590
|
-
article: ["class", "style"],
|
|
591
|
-
aside: ["class", "style"],
|
|
592
|
-
audio: ["class", "style"],
|
|
593
|
-
b: ["class", "style"],
|
|
594
|
-
bdi: ["class", "style"],
|
|
595
|
-
bdo: ["class", "style"],
|
|
596
|
-
big: ["class", "style"],
|
|
597
|
-
blockquote: ["class", "style"],
|
|
598
|
-
br: ["class", "style"],
|
|
599
|
-
caption: ["class", "style"],
|
|
600
|
-
center: ["class", "style"],
|
|
601
|
-
cite: ["class", "style"],
|
|
602
|
-
code: ["class", "style"],
|
|
603
|
-
col: ["class", "style"],
|
|
604
|
-
colgroup: ["class", "style"],
|
|
605
|
-
dd: ["class", "style"],
|
|
606
|
-
del: ["class", "style"],
|
|
607
|
-
details: ["class", "style"],
|
|
608
|
-
div: [
|
|
609
|
-
"class",
|
|
610
|
-
"style",
|
|
611
|
-
"spellcheck",
|
|
612
|
-
"data-gramm",
|
|
613
|
-
"spellcheck",
|
|
614
|
-
"data-mode",
|
|
615
|
-
"data-position",
|
|
616
|
-
"data-row",
|
|
617
|
-
"data-cell",
|
|
618
|
-
"data-rowspan",
|
|
619
|
-
"data-colspan",
|
|
620
|
-
"data-cell-bg",
|
|
621
|
-
"data-parent-bg"
|
|
622
|
-
],
|
|
623
|
-
dl: ["class", "style"],
|
|
624
|
-
dt: ["class", "style"],
|
|
625
|
-
em: ["class", "style"],
|
|
626
|
-
figcaption: ["class", "style"],
|
|
627
|
-
figure: ["class", "style"],
|
|
628
|
-
font: ["class", "style"],
|
|
629
|
-
footer: ["class", "style"],
|
|
630
|
-
h1: ["class", "style"],
|
|
631
|
-
h2: ["class", "style"],
|
|
632
|
-
h3: ["class", "style"],
|
|
633
|
-
h4: ["class", "style"],
|
|
634
|
-
h5: ["class", "style"],
|
|
635
|
-
h6: ["class", "style"],
|
|
636
|
-
header: ["class", "style"],
|
|
637
|
-
hr: ["class", "style"],
|
|
638
|
-
i: ["class", "style", "data-image-id", "data-image"],
|
|
639
|
-
img: ["class", "style", "devui-editorx-image", "style", "data-image-id", "src"],
|
|
640
|
-
input: ["class", "style", "data-formula", "data-link", "data-video"],
|
|
641
|
-
ins: ["class", "style"],
|
|
642
|
-
li: ["class", "style"],
|
|
643
|
-
mark: ["class", "style"],
|
|
644
|
-
nav: ["class", "style"],
|
|
645
|
-
ol: ["class", "style"],
|
|
646
|
-
p: ["class", "style"],
|
|
647
|
-
pre: ["class", "style"],
|
|
648
|
-
s: ["class", "style"],
|
|
649
|
-
section: ["class", "style"],
|
|
650
|
-
small: ["class", "style"],
|
|
651
|
-
span: ["class", "style", "contenteditable", "color", "style"],
|
|
652
|
-
sub: ["class", "style"],
|
|
653
|
-
summary: ["class", "style"],
|
|
654
|
-
sup: ["class", "style"],
|
|
655
|
-
strong: ["class", "style"],
|
|
656
|
-
strike: ["class", "style"],
|
|
657
|
-
svg: ["class", "style", "t", "viewBox", "viewbox", "version", "xmlns", "p-id", "xmlns:xlink"],
|
|
658
|
-
path: ["d", "p-id"],
|
|
659
|
-
table: ["class", "style"],
|
|
660
|
-
tbody: ["class", "style"],
|
|
661
|
-
td: ["class", "style", "data-row", "data-cell", "data-cell-bg", "data-parent-bg"],
|
|
662
|
-
tfoot: ["class", "style"],
|
|
663
|
-
th: ["class", "style"],
|
|
664
|
-
thead: ["class", "style"],
|
|
665
|
-
tr: ["class", "style", "data-row"],
|
|
666
|
-
tt: ["class", "style"],
|
|
667
|
-
u: ["class", "style"],
|
|
668
|
-
ul: ["class", "style"],
|
|
669
|
-
video: ["class", "style"]
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
};
|
|
673
|
-
const Jt = Me.getDefaultWhiteList && Me.getDefaultWhiteList() || {};
|
|
674
|
-
Ie.html.whiteList = Object.assign(Jt, Ie.html.whiteList);
|
|
675
|
-
new Me.FilterXSS(Ie.html);
|
|
676
|
-
const bt = Object.prototype.toString, yt = Object.prototype.hasOwnProperty, Xt = Object.getPrototypeOf, wt = yt.toString, Kt = wt.call(Object), er = {
|
|
677
|
-
"[object Error]": "error",
|
|
678
|
-
"[object Object]": "object",
|
|
679
|
-
"[object RegExp]": "regExp",
|
|
680
|
-
"[object Date]": "date",
|
|
681
|
-
"[object Array]": "array",
|
|
682
|
-
"[object Function]": "function",
|
|
683
|
-
"[object AsyncFunction]": "asyncFunction",
|
|
684
|
-
"[object String]": "string",
|
|
685
|
-
"[object Number]": "number",
|
|
686
|
-
"[object Boolean]": "boolean"
|
|
687
|
-
}, vt = (t) => t == null, he = (t) => vt(t) ? String(t) : er[bt.call(t)] || "object", Ke = (t) => he(t) === "object", K = (t) => {
|
|
688
|
-
if (!t || bt.call(t) !== "[object Object]")
|
|
689
|
-
return !1;
|
|
690
|
-
const e = Xt(t);
|
|
691
|
-
if (!e)
|
|
692
|
-
return !0;
|
|
693
|
-
const s = yt.call(e, "constructor") && e.constructor;
|
|
694
|
-
return typeof s == "function" && wt.call(s) === Kt;
|
|
695
|
-
}, S = typeof window > "u", tr = () => {
|
|
696
|
-
let t = 8;
|
|
697
|
-
return document.addEventListener && window.performance && (t = 9, window.atob && window.matchMedia && (t = 10, !window.attachEvent && !document.all && (t = 11))), t;
|
|
698
|
-
}, rr = (t) => {
|
|
699
|
-
t.chrome && ~navigator.userAgent.indexOf("Edg") ? (t.name = "edge", t.edge = !0, delete t.chrome) : !document.documentMode && window.StyleMedia && (t.name = "edge", t.edge = !0);
|
|
700
|
-
};
|
|
701
|
-
(() => {
|
|
702
|
-
if (S) return null;
|
|
703
|
-
const t = {
|
|
704
|
-
name: "",
|
|
705
|
-
version: 0,
|
|
706
|
-
isDoc: typeof document < "u",
|
|
707
|
-
isMobile: !1,
|
|
708
|
-
isPC: !0,
|
|
709
|
-
isNode: S,
|
|
710
|
-
chrome: !1,
|
|
711
|
-
ie: !1,
|
|
712
|
-
firefox: !1,
|
|
713
|
-
safari: !1,
|
|
714
|
-
opera: !1,
|
|
715
|
-
edge: !1
|
|
716
|
-
}, e = /(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent);
|
|
717
|
-
t.isMobile = e, t.isPC = !e;
|
|
718
|
-
let s;
|
|
719
|
-
if (window.chrome && (window.chrome.webstore || /^Google\b/.test(window.navigator.vendor)) ? (t.name = "chrome", t.chrome = !0, s = navigator.userAgent.match(/chrome\/(\d+)/i), t.version = !!s && !!s[1] && parseInt(s[1], 10), s = void 0) : document.all || document.documentMode ? (t.name = "ie", t.version = tr(), t.ie = !0) : typeof window.InstallTrigger < "u" ? (t.name = "firefox", t.firefox = !0) : Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor") > 0 ? (t.name = "safari", t.safari = !0) : (window.opr && window.opr.addons || window.opera) && (t.name = "opera", t.opera = !0), rr(t), !~["ie", "chrome"].indexOf(t.name)) {
|
|
720
|
-
const o = t.name + "/(\\d+)";
|
|
721
|
-
s = navigator.userAgent.match(new RegExp(o, "i")), t.version = !!s && !!s[1] && parseInt(s[1], 10), s = void 0;
|
|
722
|
-
}
|
|
723
|
-
if (t.isDoc) {
|
|
724
|
-
const o = document.body || document.documentElement;
|
|
725
|
-
["webkit", "khtml", "moz", "ms", "o"].forEach((n) => {
|
|
726
|
-
t["-" + n] = !!o[n + "MatchesSelector"];
|
|
727
|
-
});
|
|
728
|
-
}
|
|
729
|
-
return t;
|
|
730
|
-
})();
|
|
731
|
-
const L = (t, e, s, o = !1) => {
|
|
732
|
-
t && e && s && t.addEventListener(e, s, o);
|
|
733
|
-
}, Y = (t, e, s, o = !1) => {
|
|
734
|
-
t && e && t.removeEventListener(e, s, o);
|
|
735
|
-
}, fe = (t, e = "") => {
|
|
736
|
-
t && e.split(" ").filter((s) => s).forEach((s) => t.classList.add(s));
|
|
737
|
-
}, ce = (t, e) => {
|
|
738
|
-
!t || !e || e.split(" ").filter((s) => s).forEach((s) => t.classList.remove(s));
|
|
739
|
-
}, _t = (t) => {
|
|
740
|
-
if (S) return !1;
|
|
741
|
-
if (t) {
|
|
742
|
-
const e = getComputedStyle(t);
|
|
743
|
-
if (e.getPropertyValue("position") === "fixed") {
|
|
744
|
-
if (e.getPropertyValue("display") === "none")
|
|
745
|
-
return !0;
|
|
746
|
-
if (t.parentNode !== document.body)
|
|
747
|
-
return _t(t.parentNode);
|
|
748
|
-
} else
|
|
749
|
-
return t.offsetParent === null;
|
|
750
|
-
}
|
|
751
|
-
return !1;
|
|
752
|
-
}, xt = function() {
|
|
753
|
-
if (typeof Map < "u")
|
|
754
|
-
return Map;
|
|
755
|
-
const t = (e, s) => {
|
|
756
|
-
let o = -1;
|
|
757
|
-
return e.some((n, r) => n[0] === s ? (o = r, !0) : !1), o;
|
|
758
|
-
};
|
|
759
|
-
return function() {
|
|
760
|
-
function e() {
|
|
761
|
-
this.__entries__ = [];
|
|
762
|
-
}
|
|
763
|
-
return Object.defineProperty(e.prototype, "size", {
|
|
764
|
-
get() {
|
|
765
|
-
return this.__entries__.length;
|
|
766
|
-
},
|
|
767
|
-
enumerable: !0,
|
|
768
|
-
configurable: !0
|
|
769
|
-
}), e.prototype.get = function(s) {
|
|
770
|
-
const o = t(this.__entries__, s), n = this.__entries__[o];
|
|
771
|
-
return n && n[1];
|
|
772
|
-
}, e.prototype.set = function(s, o) {
|
|
773
|
-
const n = t(this.__entries__, s);
|
|
774
|
-
~n ? this.__entries__[n][1] = o : this.__entries__.push([s, o]);
|
|
775
|
-
}, e.prototype.delete = function(s) {
|
|
776
|
-
const o = this.__entries__, n = t(o, s);
|
|
777
|
-
~n && o.splice(n, 1);
|
|
778
|
-
}, e.prototype.clear = function() {
|
|
779
|
-
this.__entries__.splice(0);
|
|
780
|
-
}, e.prototype.has = function(s) {
|
|
781
|
-
return !!~t(this.__entries__, s);
|
|
782
|
-
}, e.prototype.forEach = function(s, o) {
|
|
783
|
-
o === void 0 && (o = null);
|
|
784
|
-
for (let n = 0, r = this.__entries__; n < r.length; n++) {
|
|
785
|
-
const a = r[n];
|
|
786
|
-
s.call(o, a[1], a[0]);
|
|
787
|
-
}
|
|
788
|
-
}, e;
|
|
789
|
-
}();
|
|
790
|
-
}(), sr = globalThis.Function, me = function() {
|
|
791
|
-
const t = (e) => e.Math === Math;
|
|
792
|
-
return typeof global < "u" && t(global) ? global : typeof self < "u" && t(self) ? self : typeof window < "u" && t(window) ? window : sr("return this")();
|
|
793
|
-
}(), or = function() {
|
|
794
|
-
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(me) : function(t) {
|
|
795
|
-
return setTimeout(() => t(Date.now()), 1e3 / 60);
|
|
796
|
-
};
|
|
797
|
-
}();
|
|
798
|
-
let nr = 2;
|
|
799
|
-
function ir(t, e) {
|
|
800
|
-
let s = !1, o = !1, n = 0, r;
|
|
801
|
-
const a = () => {
|
|
802
|
-
s && (s = !1, t()), o && r();
|
|
803
|
-
}, l = () => {
|
|
804
|
-
or(a);
|
|
805
|
-
};
|
|
806
|
-
return r = () => {
|
|
807
|
-
const c = Date.now();
|
|
808
|
-
if (s) {
|
|
809
|
-
if (c - n < nr)
|
|
810
|
-
return;
|
|
811
|
-
o = !0;
|
|
812
|
-
} else
|
|
813
|
-
s = !0, o = !1, setTimeout(l, e);
|
|
814
|
-
n = c;
|
|
815
|
-
}, r;
|
|
816
|
-
}
|
|
817
|
-
const ar = 20, lr = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], fr = typeof MutationObserver < "u", cr = function() {
|
|
818
|
-
function t() {
|
|
819
|
-
this.observers_ = [], this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = ir(this.refresh.bind(this), ar);
|
|
820
|
-
}
|
|
821
|
-
return t.prototype.addObserver = function(e) {
|
|
822
|
-
!~this.observers_.indexOf(e) && this.observers_.push(e), !this.connected_ && this.connect_();
|
|
823
|
-
}, t.prototype.removeObserver = function(e) {
|
|
824
|
-
const s = this.observers_, o = s.indexOf(e);
|
|
825
|
-
~o && s.splice(o, 1), !s.length && this.connected_ && this.disconnect_();
|
|
826
|
-
}, t.prototype.refresh = function() {
|
|
827
|
-
this.updateObservers_() && this.refresh();
|
|
828
|
-
}, t.prototype.updateObservers_ = function() {
|
|
829
|
-
const e = this.observers_.filter((s) => (s.gatherActive(), s.hasActive()));
|
|
830
|
-
return e.forEach((s) => s.broadcastActive()), e.length > 0;
|
|
831
|
-
}, t.prototype.connect_ = function() {
|
|
832
|
-
if (!(S || this.connected_)) {
|
|
833
|
-
if (L(document, "transitionend", this.onTransitionEnd_), L(window, "resize", this.refresh), fr) {
|
|
834
|
-
this.mutationsObserver_ = new MutationObserver(this.refresh);
|
|
835
|
-
const e = {
|
|
836
|
-
attributes: !0,
|
|
837
|
-
childList: !0,
|
|
838
|
-
characterData: !0,
|
|
839
|
-
subtree: !0
|
|
840
|
-
};
|
|
841
|
-
this.mutationsObserver_.observe(document, e);
|
|
842
|
-
} else
|
|
843
|
-
L(document, "DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0;
|
|
844
|
-
this.connected_ = !0;
|
|
845
|
-
}
|
|
846
|
-
}, t.prototype.disconnect_ = function() {
|
|
847
|
-
S || !this.connected_ || (Y(document, "transitionend", this.onTransitionEnd_), Y(window, "resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && Y(document, "DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
|
|
848
|
-
}, t.prototype.onTransitionEnd_ = function(e) {
|
|
849
|
-
const s = e.propertyName, o = s === void 0 ? "" : s;
|
|
850
|
-
lr.some((n) => !!~o.indexOf(n)) && this.refresh();
|
|
851
|
-
}, t.getInstance = function() {
|
|
852
|
-
return this._instance || (this._instance = new t()), this._instance;
|
|
853
|
-
}, t._instance = null, t;
|
|
854
|
-
}(), kt = function(t, e) {
|
|
855
|
-
for (let s = 0, o = Object.keys(e); s < o.length; s++) {
|
|
856
|
-
const n = o[s];
|
|
857
|
-
Object.defineProperty(t, n, {
|
|
858
|
-
value: e[n],
|
|
859
|
-
configurable: !0,
|
|
860
|
-
writable: !1,
|
|
861
|
-
enumerable: !1
|
|
862
|
-
});
|
|
863
|
-
}
|
|
864
|
-
return t;
|
|
865
|
-
}, be = function(t, e, s, o) {
|
|
866
|
-
return { x: t, y: e, width: s, height: o };
|
|
867
|
-
}, ee = function(t) {
|
|
868
|
-
return t && t.ownerDocument && t.ownerDocument.defaultView || me;
|
|
869
|
-
}, Ot = be(0, 0, 0, 0), ge = (t) => parseFloat(t) || 0, et = function(t) {
|
|
870
|
-
let e = [];
|
|
871
|
-
for (let s = 1; s < arguments.length; s++)
|
|
872
|
-
e[s - 1] = arguments[s];
|
|
873
|
-
return e.reduce((s, o) => {
|
|
874
|
-
const n = t[`border-${o}-width`];
|
|
875
|
-
return s + ge(n);
|
|
876
|
-
}, 0);
|
|
877
|
-
}, ur = function(t) {
|
|
878
|
-
const e = ["top", "right", "bottom", "left"];
|
|
879
|
-
let s = {};
|
|
880
|
-
for (let o = 0, n = e; o < n.length; o++) {
|
|
881
|
-
const r = n[o], a = t[`padding-${r}`];
|
|
882
|
-
s[r] = ge(a);
|
|
883
|
-
}
|
|
884
|
-
return s;
|
|
885
|
-
}, pr = function(t) {
|
|
886
|
-
const e = t.getBBox();
|
|
887
|
-
return be(0, 0, e.width, e.height);
|
|
888
|
-
}, dr = function(t) {
|
|
889
|
-
return t === ee(t).document.documentElement;
|
|
890
|
-
}, hr = function(t) {
|
|
891
|
-
const e = t.clientWidth, s = t.clientHeight;
|
|
892
|
-
if (!s && !e)
|
|
893
|
-
return Ot;
|
|
894
|
-
const o = ee(t).getComputedStyle(t), n = ur(o), r = n.top + n.bottom, a = n.left + n.right;
|
|
895
|
-
let l = ge(o.width), c = ge(o.height);
|
|
896
|
-
if (o.boxSizing === "border-box" && (Math.round(c + r) !== s && (c -= et(o, "top", "bottom") + r), Math.round(l + a) !== e && (l -= et(o, "left", "right") + a)), !dr(t)) {
|
|
897
|
-
const d = Math.round(c + r) - s, m = Math.round(l + a) - e;
|
|
898
|
-
Math.abs(d) !== 1 && (c -= d), Math.abs(m) !== 1 && (l -= m);
|
|
899
|
-
}
|
|
900
|
-
return be(n.left, n.top, l, c);
|
|
901
|
-
}, mr = /* @__PURE__ */ function() {
|
|
902
|
-
return typeof SVGGraphicsElement < "u" ? (t) => t instanceof ee(t).SVGGraphicsElement : (t) => t instanceof ee(t).SVGElement && typeof t.getBBox == "function";
|
|
903
|
-
}(), gr = function(t) {
|
|
904
|
-
return S ? Ot : mr(t) ? pr(t) : hr(t);
|
|
905
|
-
}, br = function(t) {
|
|
906
|
-
const e = t.x, s = t.y, o = t.width, n = t.height, r = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
|
|
907
|
-
return kt(r, {
|
|
908
|
-
x: e,
|
|
909
|
-
y: s,
|
|
910
|
-
width: o,
|
|
911
|
-
height: n,
|
|
912
|
-
top: s,
|
|
913
|
-
right: e + o,
|
|
914
|
-
bottom: n + s,
|
|
915
|
-
left: e
|
|
916
|
-
}), r;
|
|
917
|
-
}, yr = function() {
|
|
918
|
-
function t(e) {
|
|
919
|
-
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = be(0, 0, 0, 0), this.target = e;
|
|
920
|
-
}
|
|
921
|
-
return t.prototype.broadcastRect = function() {
|
|
922
|
-
const e = this.contentRect_;
|
|
923
|
-
return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
|
|
924
|
-
}, t.prototype.isActive = function() {
|
|
925
|
-
const e = gr(this.target);
|
|
926
|
-
return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
|
|
927
|
-
}, t;
|
|
928
|
-
}(), wr = /* @__PURE__ */ function() {
|
|
929
|
-
function t(e, s) {
|
|
930
|
-
const o = br(s);
|
|
931
|
-
kt(this, { target: e, contentRect: o });
|
|
932
|
-
}
|
|
933
|
-
return t;
|
|
934
|
-
}(), vr = function() {
|
|
935
|
-
function t(e, s, o) {
|
|
936
|
-
if (this.observations_ = new xt(), this.activeObservations_ = [], typeof e != "function")
|
|
937
|
-
throw new TypeError("[TINY-Resize] The callback provided as parameter 1 is not a function.");
|
|
938
|
-
this.callback_ = e, this.controller_ = s, this.callbackCtx_ = o;
|
|
939
|
-
}
|
|
940
|
-
return t.prototype.observe = function(e) {
|
|
941
|
-
if (!arguments.length)
|
|
942
|
-
throw new TypeError("[TINY-Resize] 1 argument required, but only 0 present.");
|
|
943
|
-
if (typeof Element > "u" || !(Element instanceof Object))
|
|
944
|
-
return;
|
|
945
|
-
if (!(e instanceof ee(e).Element))
|
|
946
|
-
throw new TypeError('[TINY-Resize] parameter 1 is not of type "Element".');
|
|
947
|
-
const s = this.observations_;
|
|
948
|
-
s.has(e) || (s.set(e, new yr(e)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
949
|
-
}, t.prototype.unobserve = function(e) {
|
|
950
|
-
if (!arguments.length)
|
|
951
|
-
throw new TypeError("[TINY-Resize]1 argument required, but only 0 present.");
|
|
952
|
-
if (typeof Element > "u" || !(Element instanceof Object))
|
|
953
|
-
return;
|
|
954
|
-
if (!(e instanceof ee(e).Element))
|
|
955
|
-
throw new TypeError('[TINY-Resize] parameter 1 is not of type "Element".');
|
|
956
|
-
const s = this.observations_;
|
|
957
|
-
s.has(e) && (s.delete(e), !s.size && this.controller_.removeObserver(this));
|
|
958
|
-
}, t.prototype.gatherActive = function() {
|
|
959
|
-
const e = this;
|
|
960
|
-
this.clearActive(), this.observations_.forEach((s) => {
|
|
961
|
-
s.isActive() && e.activeObservations_.push(s);
|
|
962
|
-
});
|
|
963
|
-
}, t.prototype.disconnect = function() {
|
|
964
|
-
this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
|
|
965
|
-
}, t.prototype.broadcastActive = function() {
|
|
966
|
-
if (!this.hasActive())
|
|
967
|
-
return;
|
|
968
|
-
const e = this.callbackCtx_, s = this.activeObservations_.map(
|
|
969
|
-
(o) => new wr(o.target, o.broadcastRect())
|
|
970
|
-
);
|
|
971
|
-
this.callback_.call(e, s, e), this.clearActive();
|
|
972
|
-
}, t.prototype.hasActive = function() {
|
|
973
|
-
return this.activeObservations_.length > 0;
|
|
974
|
-
}, t.prototype.clearActive = function() {
|
|
975
|
-
this.activeObservations_.splice(0);
|
|
976
|
-
}, t;
|
|
977
|
-
}(), Et = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new xt(), St = /* @__PURE__ */ function() {
|
|
978
|
-
function t(e) {
|
|
979
|
-
if (!(this instanceof t))
|
|
980
|
-
throw new TypeError("[TINY-Resize] Cannot call a class as a function.");
|
|
981
|
-
if (!arguments.length)
|
|
982
|
-
throw new TypeError("[TINY-Resize] 1 argument required, but only 0 present.");
|
|
983
|
-
const s = cr.getInstance(), o = new vr(e, s, this);
|
|
984
|
-
Et.set(this, o);
|
|
985
|
-
}
|
|
986
|
-
return t;
|
|
987
|
-
}();
|
|
988
|
-
["observe", "unobserve", "disconnect"].forEach((t) => {
|
|
989
|
-
St.prototype[t] = function() {
|
|
990
|
-
let e;
|
|
991
|
-
return (e = Et.get(this))[t].apply(e, arguments);
|
|
992
|
-
};
|
|
993
|
-
});
|
|
994
|
-
(function() {
|
|
995
|
-
return typeof me.ResizeObserver < "u" ? me.ResizeObserver : St;
|
|
996
|
-
})();
|
|
997
|
-
const _r = "tcirzywvqlkjhgfbZQG_FLOWHSUBDNIMYREVKCAJxp57XP043891T62-modnaesu";
|
|
998
|
-
_r.split("").reverse().join("");
|
|
999
|
-
function xr(t) {
|
|
1000
|
-
return !S && (t.document.all || t.document.documentMode) && !t.crypto && t.msCrypto;
|
|
1001
|
-
}
|
|
1002
|
-
function kr(t) {
|
|
1003
|
-
if (xr(t)) {
|
|
1004
|
-
t.crypto = t.msCrypto;
|
|
1005
|
-
const e = t.crypto.getRandomValues;
|
|
1006
|
-
t.crypto.getRandomValues = function(s) {
|
|
1007
|
-
const o = e.call(t.crypto, s), n = [];
|
|
1008
|
-
for (let r = 0; r < s.length; r++)
|
|
1009
|
-
n[r] = o[r];
|
|
1010
|
-
return n;
|
|
1011
|
-
};
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
const Or = globalThis;
|
|
1015
|
-
kr(Or);
|
|
1016
|
-
let Le;
|
|
1017
|
-
const Er = (t, e, s) => {
|
|
1018
|
-
if (!t || !K(t) || !e || typeof e != "string")
|
|
1019
|
-
return;
|
|
1020
|
-
const o = e.split(".");
|
|
1021
|
-
let n = t;
|
|
1022
|
-
const r = o.length;
|
|
1023
|
-
if (r > 1) {
|
|
1024
|
-
for (let l = 0; l < r; l++)
|
|
1025
|
-
if (n = n[o[l]], vt(n))
|
|
1026
|
-
return n;
|
|
1027
|
-
return n;
|
|
1028
|
-
} else
|
|
1029
|
-
return n[o[0]];
|
|
1030
|
-
}, Sr = (t, e, s, o) => {
|
|
1031
|
-
if (!t || !K(t) || !e || typeof e != "string")
|
|
1032
|
-
return t;
|
|
1033
|
-
const n = e.split("."), r = t;
|
|
1034
|
-
let a = n.length, l = n[0];
|
|
1035
|
-
if (a > 1) {
|
|
1036
|
-
a--;
|
|
1037
|
-
let c = r, d, m;
|
|
1038
|
-
for (let i = 0; i < a; i++)
|
|
1039
|
-
d = n[i], m = c[d], (m === null || !K(m)) && (c[d] = {}, m = c[d]), c = m;
|
|
1040
|
-
l = n[a], c[l] = s;
|
|
1041
|
-
} else
|
|
1042
|
-
r[l] = s;
|
|
1043
|
-
return r;
|
|
1044
|
-
}, Ar = (t, e, s, o) => {
|
|
1045
|
-
const n = (r, a, l, c) => {
|
|
1046
|
-
const d = {};
|
|
1047
|
-
return a.forEach((m) => Sr(d, m, Er(r, m))), d;
|
|
1048
|
-
};
|
|
1049
|
-
return K(t) ? Array.isArray(e) ? n(t, e) : Le(s !== !1, {}, t) : t;
|
|
1050
|
-
}, Tr = (t) => Array.isArray(t) ? t.map((e) => Ar(e)) : t, Mr = (t, e, s, o, n) => {
|
|
1051
|
-
let r;
|
|
1052
|
-
if (s && o && (K(o) || (r = Array.isArray(o))))
|
|
1053
|
-
if (r)
|
|
1054
|
-
r = !1, t[e] = Tr(o);
|
|
1055
|
-
else {
|
|
1056
|
-
const a = n && K(n) ? n : {};
|
|
1057
|
-
t[e] = Le(s, a, o);
|
|
1058
|
-
}
|
|
1059
|
-
else if (o !== void 0)
|
|
1060
|
-
try {
|
|
1061
|
-
t[e] = o;
|
|
1062
|
-
} catch {
|
|
1063
|
-
}
|
|
1064
|
-
};
|
|
1065
|
-
Le = function(...t) {
|
|
1066
|
-
const e = t.length;
|
|
1067
|
-
let s = t[0] || {}, o = 1, n = !1;
|
|
1068
|
-
for (he(s) === "boolean" && (n = s, s = t[o] || {}, o++), !Ke(s) && he(s) !== "function" && (s = {}); o < e; o++) {
|
|
1069
|
-
const r = t[o];
|
|
1070
|
-
if (r !== null && Ke(r)) {
|
|
1071
|
-
const a = Object.keys(r);
|
|
1072
|
-
for (const l of a) {
|
|
1073
|
-
const c = s[l], d = r[l];
|
|
1074
|
-
s !== d && Mr(s, l, n, d, c);
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
return s;
|
|
1079
|
-
};
|
|
1080
|
-
function Re(t) {
|
|
1081
|
-
let e = /* @__PURE__ */ Object.create(null);
|
|
1082
|
-
return function(s) {
|
|
1083
|
-
return e[s] || (e[s] = t(s));
|
|
1084
|
-
};
|
|
1085
|
-
}
|
|
1086
|
-
const Ir = /-(\w)/g, gs = Re((t) => t.replace(Ir, (e, s) => s ? s.toUpperCase() : "")), bs = Re((t) => t.charAt(0).toUpperCase() + t.slice(1)), Cr = /\B([A-Z])/g, ys = Re((t) => t.replace(Cr, "-$1").toLowerCase()), Fr = () => globalThis.crypto.getRandomValues(new Uint32Array(1))[0] / 4294967296, ws = (t = "", e = 8) => t + Fr().toString().substr(2, e), jr = {
|
|
1087
|
-
Escape: 27
|
|
1088
|
-
}, At = {
|
|
1089
|
-
fullMonths: "January,February,March,April,May,June,July,August,September,October,November,December".split(","),
|
|
1090
|
-
fullWeeks: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
|
|
1091
|
-
}, De = ["\\d\\d?", "\\d{3}", "\\d{4}"], N = De[0], Pr = De[1], zr = De[2], se = "[^\\s]+", tt = () => {
|
|
1092
|
-
}, Tt = (t, e) => {
|
|
1093
|
-
let s = [];
|
|
1094
|
-
for (let o = 0, n = t.length; o < n; o++)
|
|
1095
|
-
s.push(t[o].substr(0, e));
|
|
1096
|
-
return s;
|
|
1097
|
-
}, rt = (t) => (e, s, o) => {
|
|
1098
|
-
const n = o[t].indexOf(s.charAt(0).toUpperCase() + s.substr(1).toLowerCase());
|
|
1099
|
-
~n && (e.month = n);
|
|
1100
|
-
}, Br = At.fullWeeks, Lr = At.fullMonths;
|
|
1101
|
-
Tt(Lr, 3);
|
|
1102
|
-
Tt(Br, 3);
|
|
1103
|
-
const X = {
|
|
1104
|
-
d: [
|
|
1105
|
-
N,
|
|
1106
|
-
(t, e) => {
|
|
1107
|
-
t.day = e;
|
|
1108
|
-
}
|
|
1109
|
-
],
|
|
1110
|
-
Do: [
|
|
1111
|
-
N + se,
|
|
1112
|
-
(t, e) => {
|
|
1113
|
-
t.day = parseInt(e, 10);
|
|
1114
|
-
}
|
|
1115
|
-
],
|
|
1116
|
-
M: [
|
|
1117
|
-
N,
|
|
1118
|
-
(t, e) => {
|
|
1119
|
-
t.month = e - 1;
|
|
1120
|
-
}
|
|
1121
|
-
],
|
|
1122
|
-
yy: [
|
|
1123
|
-
N,
|
|
1124
|
-
(t, e) => {
|
|
1125
|
-
const s = Number(String((/* @__PURE__ */ new Date()).getFullYear()).substr(0, 2));
|
|
1126
|
-
t.year = String(e > 68 ? s - 1 : s) + e;
|
|
1127
|
-
}
|
|
1128
|
-
],
|
|
1129
|
-
h: [
|
|
1130
|
-
N,
|
|
1131
|
-
(t, e) => {
|
|
1132
|
-
t.hour = e;
|
|
1133
|
-
}
|
|
1134
|
-
],
|
|
1135
|
-
m: [
|
|
1136
|
-
N,
|
|
1137
|
-
(t, e) => {
|
|
1138
|
-
t.minute = e;
|
|
1139
|
-
}
|
|
1140
|
-
],
|
|
1141
|
-
s: [
|
|
1142
|
-
N,
|
|
1143
|
-
(t, e) => {
|
|
1144
|
-
t.second = e;
|
|
1145
|
-
}
|
|
1146
|
-
],
|
|
1147
|
-
yyyy: [
|
|
1148
|
-
zr,
|
|
1149
|
-
(t, e) => {
|
|
1150
|
-
t.year = e;
|
|
1151
|
-
}
|
|
1152
|
-
],
|
|
1153
|
-
S: [
|
|
1154
|
-
"\\d",
|
|
1155
|
-
(t, e) => {
|
|
1156
|
-
t.millisecond = e * 100;
|
|
1157
|
-
}
|
|
1158
|
-
],
|
|
1159
|
-
SS: [
|
|
1160
|
-
"\\d{2}",
|
|
1161
|
-
(t, e) => {
|
|
1162
|
-
t.millisecond = e * 10;
|
|
1163
|
-
}
|
|
1164
|
-
],
|
|
1165
|
-
SSS: [
|
|
1166
|
-
Pr,
|
|
1167
|
-
(t, e) => {
|
|
1168
|
-
t.millisecond = e;
|
|
1169
|
-
}
|
|
1170
|
-
],
|
|
1171
|
-
D: [N, tt],
|
|
1172
|
-
ddd: [se, tt],
|
|
1173
|
-
MMM: [se, rt("monthNamesShort")],
|
|
1174
|
-
MMMM: [se, rt("monthNames")],
|
|
1175
|
-
a: [
|
|
1176
|
-
se,
|
|
1177
|
-
(t, e, s) => {
|
|
1178
|
-
const o = e.toLowerCase();
|
|
1179
|
-
o === s.amPm[0] ? t.isPm = !1 : o === s.amPm[1] && (t.isPm = !0);
|
|
1180
|
-
}
|
|
1181
|
-
],
|
|
1182
|
-
ZZ: [
|
|
1183
|
-
"[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",
|
|
1184
|
-
(t, e) => {
|
|
1185
|
-
let s = String(e).match(/([+-]|\d\d)/gi), o;
|
|
1186
|
-
s && (o = Number(s[1] * 60) + parseInt(s[2], 10), t.timezoneOffset = s[0] === "+" ? o : -o);
|
|
1187
|
-
}
|
|
1188
|
-
]
|
|
1189
|
-
}, Rr = ["A", "DD", "dd", "mm", "hh", "MM", "ss", "hh", "H", "HH"];
|
|
1190
|
-
X.dddd = X.ddd;
|
|
1191
|
-
Rr.forEach((t) => {
|
|
1192
|
-
t === "MM" ? X[t] = X[t.substr(0, 1)] : X[t] = X[t.substr(0, 1).toLowerCase()];
|
|
1193
|
-
});
|
|
1194
|
-
const vs = () => {
|
|
1195
|
-
}, Dr = function() {
|
|
1196
|
-
return S ? function(t) {
|
|
1197
|
-
setTimeout(() => t(Date.now()), 1e3 / 60);
|
|
1198
|
-
} : window.requestAnimationFrame.bind(window);
|
|
1199
|
-
}(), Ce = (t) => {
|
|
1200
|
-
t.scheduled || (t.scheduled = !0, t.raf(Hr.bind(null, t)));
|
|
1201
|
-
}, Hr = (t) => {
|
|
1202
|
-
const { reads: e, writes: s } = t;
|
|
1203
|
-
let o;
|
|
1204
|
-
try {
|
|
1205
|
-
t.runTasks(e), t.runTasks(s);
|
|
1206
|
-
} catch (n) {
|
|
1207
|
-
o = n;
|
|
1208
|
-
}
|
|
1209
|
-
if (t.scheduled = !1, (e.length || s.length) && Ce(t), o)
|
|
1210
|
-
if (t.catch)
|
|
1211
|
-
t.catch(o);
|
|
1212
|
-
else
|
|
1213
|
-
throw o;
|
|
1214
|
-
}, st = (t, e) => {
|
|
1215
|
-
const s = t.indexOf(e);
|
|
1216
|
-
return !!~s && !!t.splice(s, 1);
|
|
1217
|
-
}, Wr = (t, e) => {
|
|
1218
|
-
for (let s in e)
|
|
1219
|
-
Object.hasOwnProperty.call(e, s) && (t[s] = e[s]);
|
|
1220
|
-
};
|
|
1221
|
-
class Nr {
|
|
1222
|
-
constructor() {
|
|
1223
|
-
this.reads = [], this.writes = [], this.raf = Dr.bind(window);
|
|
1224
|
-
}
|
|
1225
|
-
runTasks(e) {
|
|
1226
|
-
let s;
|
|
1227
|
-
for (; s = e.shift(); ) s();
|
|
1228
|
-
}
|
|
1229
|
-
measure(e, s) {
|
|
1230
|
-
const o = s ? e.bind(s) : e;
|
|
1231
|
-
return this.reads.push(o), Ce(this), o;
|
|
1232
|
-
}
|
|
1233
|
-
mutate(e, s) {
|
|
1234
|
-
const o = s ? e.bind(s) : e;
|
|
1235
|
-
return this.writes.push(o), Ce(this), o;
|
|
1236
|
-
}
|
|
1237
|
-
clear(e) {
|
|
1238
|
-
return st(this.reads, e) || st(this.writes, e);
|
|
1239
|
-
}
|
|
1240
|
-
extend(e) {
|
|
1241
|
-
if (!e || typeof e != "object") throw new Error("[TINY][FastDom] expected object");
|
|
1242
|
-
const s = Object.create(this);
|
|
1243
|
-
return Wr(s, e), s.fastdom = this, s.initialize && s.initialize(), s;
|
|
1244
|
-
}
|
|
1245
|
-
}
|
|
1246
|
-
const Mt = new Nr(), ot = (t, e, s, o) => {
|
|
1247
|
-
const n = t._tasks, r = t.fastdom;
|
|
1248
|
-
let a;
|
|
1249
|
-
const l = new Promise(function(c, d) {
|
|
1250
|
-
a = r[e](function() {
|
|
1251
|
-
n.delete(l);
|
|
1252
|
-
try {
|
|
1253
|
-
c(o ? s.call(o) : s());
|
|
1254
|
-
} catch (m) {
|
|
1255
|
-
d(m);
|
|
1256
|
-
}
|
|
1257
|
-
}, o);
|
|
1258
|
-
});
|
|
1259
|
-
return n.set(l, a), l;
|
|
1260
|
-
}, Vr = {
|
|
1261
|
-
initialize() {
|
|
1262
|
-
this._tasks = /* @__PURE__ */ new Map();
|
|
1263
|
-
},
|
|
1264
|
-
mutate(t, e) {
|
|
1265
|
-
return ot(this, "mutate", t, e);
|
|
1266
|
-
},
|
|
1267
|
-
measure(t, e) {
|
|
1268
|
-
return ot(this, "measure", t, e);
|
|
1269
|
-
},
|
|
1270
|
-
clear(t) {
|
|
1271
|
-
const e = this._tasks, s = e.get(t);
|
|
1272
|
-
this.fastdom.clear(s), e.delete(t);
|
|
1273
|
-
}
|
|
1274
|
-
};
|
|
1275
|
-
Mt.extend(Vr);
|
|
1276
|
-
const qr = (t, e) => {
|
|
1277
|
-
let s = e.length;
|
|
1278
|
-
for (; s--; )
|
|
1279
|
-
t.clear(e[s]), e.splice(s, 1);
|
|
1280
|
-
}, Ur = (t, e) => {
|
|
1281
|
-
const s = t.indexOf(e);
|
|
1282
|
-
return !!~s && !!t.splice(s, 1);
|
|
1283
|
-
};
|
|
1284
|
-
class Gr {
|
|
1285
|
-
constructor(e) {
|
|
1286
|
-
this.fastdom = e, this.tasks = [];
|
|
1287
|
-
}
|
|
1288
|
-
measure(e, s) {
|
|
1289
|
-
const o = this.tasks, n = this.fastdom.measure(function() {
|
|
1290
|
-
return o.splice(o.indexOf(n)), e.call(s);
|
|
1291
|
-
});
|
|
1292
|
-
return o.push(n), n;
|
|
1293
|
-
}
|
|
1294
|
-
mutate(e, s) {
|
|
1295
|
-
const o = this.tasks, n = this.fastdom.mutate(function() {
|
|
1296
|
-
return o.splice(o.indexOf(n)), e.call(s);
|
|
1297
|
-
});
|
|
1298
|
-
return this.tasks.push(n), n;
|
|
1299
|
-
}
|
|
1300
|
-
clear(e) {
|
|
1301
|
-
return arguments.length || qr(this.fastdom, this.tasks), Ur(this.tasks, e), this.fastdom.clear(e);
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
const Yr = {
|
|
1305
|
-
sandbox() {
|
|
1306
|
-
return new Gr(this.fastdom);
|
|
1307
|
-
}
|
|
1308
|
-
};
|
|
1309
|
-
Mt.extend(Yr);
|
|
1310
|
-
const $r = [
|
|
1311
|
-
"fullscreenElement",
|
|
1312
|
-
"fullscreenEnabled",
|
|
1313
|
-
"requestFullscreen",
|
|
1314
|
-
"exitFullscreen",
|
|
1315
|
-
"fullscreenchange",
|
|
1316
|
-
"fullscreenerror"
|
|
1317
|
-
], Qr = [
|
|
1318
|
-
"mozFullScreenElement",
|
|
1319
|
-
"mozFullScreenEnabled",
|
|
1320
|
-
"mozRequestFullScreen",
|
|
1321
|
-
"mozCancelFullScreen",
|
|
1322
|
-
"mozfullscreenchange",
|
|
1323
|
-
"mozfullscreenerror"
|
|
1324
|
-
], Zr = [
|
|
1325
|
-
"webkitFullscreenElement",
|
|
1326
|
-
"webkitFullscreenEnabled",
|
|
1327
|
-
"webkitRequestFullscreen",
|
|
1328
|
-
"webkitExitFullscreen",
|
|
1329
|
-
"webkitfullscreenchange",
|
|
1330
|
-
"webkitfullscreenerror"
|
|
1331
|
-
], Jr = [
|
|
1332
|
-
"msFullscreenElement",
|
|
1333
|
-
"msFullscreenEnabled",
|
|
1334
|
-
"msRequestFullscreen",
|
|
1335
|
-
"msExitFullscreen",
|
|
1336
|
-
"MSFullscreenChange",
|
|
1337
|
-
"MSFullscreenError"
|
|
1338
|
-
], Oe = [$r, Zr, Qr, Jr], H = typeof window < "u" && typeof window.document < "u" ? window.document : {};
|
|
1339
|
-
let A = null;
|
|
1340
|
-
const Xr = () => {
|
|
1341
|
-
if (!S)
|
|
1342
|
-
for (let t = 0, e = Oe.length; t < e; t++) {
|
|
1343
|
-
let s = Oe[t];
|
|
1344
|
-
if (s && s[1] in H) {
|
|
1345
|
-
for (A = {}, t = 0; t < s.length; t++)
|
|
1346
|
-
A[Oe[0][t]] = s[t];
|
|
1347
|
-
return;
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
};
|
|
1351
|
-
Xr();
|
|
1352
|
-
const nt = {
|
|
1353
|
-
change: A && A.fullscreenchange,
|
|
1354
|
-
error: A && A.fullscreenerror
|
|
1355
|
-
}, Fe = {
|
|
1356
|
-
request(t, e) {
|
|
1357
|
-
return new Promise((s, o) => {
|
|
1358
|
-
const n = () => {
|
|
1359
|
-
this.off("change", n), s();
|
|
1360
|
-
};
|
|
1361
|
-
if (this.on("change", n), t = t || (S ? null : H.documentElement), t && A && t[A.requestFullscreen]) {
|
|
1362
|
-
const r = t[A.requestFullscreen](e);
|
|
1363
|
-
r instanceof Promise && r.then(n).catch(o);
|
|
1364
|
-
} else
|
|
1365
|
-
o(new Error("Fullscreen API not supported or element is null."));
|
|
1366
|
-
});
|
|
1367
|
-
},
|
|
1368
|
-
exit() {
|
|
1369
|
-
return new Promise((t, e) => {
|
|
1370
|
-
if (!this.isFullscreen) {
|
|
1371
|
-
t();
|
|
1372
|
-
return;
|
|
1373
|
-
}
|
|
1374
|
-
const s = () => {
|
|
1375
|
-
this.off("change", s), t();
|
|
1376
|
-
};
|
|
1377
|
-
if (this.on("change", s), !S && A && H[A.exitFullscreen]) {
|
|
1378
|
-
const o = H[A.exitFullscreen]();
|
|
1379
|
-
o instanceof Promise && o.then(s).catch(e);
|
|
1380
|
-
} else
|
|
1381
|
-
e(new Error("Fullscreen API not supported."));
|
|
1382
|
-
});
|
|
1383
|
-
},
|
|
1384
|
-
toggle(t, e) {
|
|
1385
|
-
return this.isFullscreen ? this.exit() : this.request(t, e);
|
|
1386
|
-
},
|
|
1387
|
-
onchange(t) {
|
|
1388
|
-
this.on("change", t);
|
|
1389
|
-
},
|
|
1390
|
-
onerror(t) {
|
|
1391
|
-
this.on("error", t);
|
|
1392
|
-
},
|
|
1393
|
-
on(t, e) {
|
|
1394
|
-
const s = nt[t];
|
|
1395
|
-
s && !S && L(H, s, e);
|
|
1396
|
-
},
|
|
1397
|
-
off(t, e) {
|
|
1398
|
-
const s = nt[t];
|
|
1399
|
-
s && !S && Y(H, s, e);
|
|
1400
|
-
},
|
|
1401
|
-
raw: A || {}
|
|
1402
|
-
};
|
|
1403
|
-
S ? Object.defineProperties(Fe, {
|
|
1404
|
-
isFullscreen: {
|
|
1405
|
-
get() {
|
|
1406
|
-
return !1;
|
|
1407
|
-
}
|
|
1408
|
-
},
|
|
1409
|
-
element: {
|
|
1410
|
-
enumerable: !0,
|
|
1411
|
-
get() {
|
|
1412
|
-
return null;
|
|
1413
|
-
}
|
|
1414
|
-
},
|
|
1415
|
-
isEnabled: {
|
|
1416
|
-
enumerable: !0,
|
|
1417
|
-
get() {
|
|
1418
|
-
return !1;
|
|
1419
|
-
}
|
|
1420
|
-
}
|
|
1421
|
-
}) : Object.defineProperties(Fe, {
|
|
1422
|
-
isFullscreen: {
|
|
1423
|
-
get() {
|
|
1424
|
-
return !!H[A && A.fullscreenElement];
|
|
1425
|
-
}
|
|
1426
|
-
},
|
|
1427
|
-
element: {
|
|
1428
|
-
enumerable: !0,
|
|
1429
|
-
get() {
|
|
1430
|
-
return H[A && A.fullscreenElement];
|
|
1431
|
-
}
|
|
1432
|
-
},
|
|
1433
|
-
isEnabled: {
|
|
1434
|
-
enumerable: !0,
|
|
1435
|
-
get() {
|
|
1436
|
-
return !!H[A && A.fullscreenEnabled];
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
});
|
|
1440
|
-
Fe.isEnabled;
|
|
1441
|
-
function Kr(t, e, s, o) {
|
|
1442
|
-
let n, r = 0;
|
|
1443
|
-
typeof e != "boolean" && (o = s, s = e, e = void 0);
|
|
1444
|
-
function a() {
|
|
1445
|
-
const c = this, d = (/* @__PURE__ */ new Date()).valueOf() - r, m = arguments;
|
|
1446
|
-
function i() {
|
|
1447
|
-
r = (/* @__PURE__ */ new Date()).valueOf(), s.apply(c, m);
|
|
1448
|
-
}
|
|
1449
|
-
function u() {
|
|
1450
|
-
n = void 0;
|
|
1451
|
-
}
|
|
1452
|
-
o && !n && i(), n && clearTimeout(n);
|
|
1453
|
-
const f = o === void 0;
|
|
1454
|
-
f && d > t ? i() : e !== !0 && (n = setTimeout(o ? u : i, f ? t - d : t));
|
|
1455
|
-
}
|
|
1456
|
-
function l() {
|
|
1457
|
-
n && (clearTimeout(n), n = null);
|
|
1458
|
-
}
|
|
1459
|
-
return a._cancel = l, a;
|
|
1460
|
-
}
|
|
1461
|
-
function _s(t, e, s) {
|
|
1462
|
-
return Kr(t, e, !1);
|
|
1463
|
-
}
|
|
1464
|
-
let $ = null;
|
|
1465
|
-
const es = "ws://localhost", it = [27197, 27198, 27199];
|
|
1466
|
-
let Ee = 0, Q, It = 1e3, Ct = 3e4, ts = 0, He = {}, Ft;
|
|
1467
|
-
const rs = 20 * 1e3;
|
|
1468
|
-
let at = null, jt = null, je = {}, Pt = {}, C = {}, zt = () => {
|
|
1469
|
-
}, Bt = () => {
|
|
1470
|
-
};
|
|
1471
|
-
const Lt = function(t) {
|
|
1472
|
-
clearTimeout(je[t]), delete He[t], delete je[t];
|
|
1473
|
-
}, ss = function() {
|
|
1474
|
-
jt = setTimeout(() => {
|
|
1475
|
-
$.close();
|
|
1476
|
-
}, 5e3);
|
|
1477
|
-
}, W = function(t, e) {
|
|
1478
|
-
let s = ts++;
|
|
1479
|
-
if (s = String(s), t.cid = s, !Q) {
|
|
1480
|
-
e && setTimeout(e, 0, { ok: !1, message: "eSpace is not logged in." });
|
|
1481
|
-
return;
|
|
1482
|
-
}
|
|
1483
|
-
typeof e == "function" && (He[s] = e, je[s] = setTimeout(() => {
|
|
1484
|
-
e({ ok: !1, message: "time out" }), Lt(s);
|
|
1485
|
-
}, Ct)), $.send(JSON.stringify(t));
|
|
1486
|
-
}, Rt = function() {
|
|
1487
|
-
at = setTimeout(() => {
|
|
1488
|
-
Q ? W(
|
|
1489
|
-
{
|
|
1490
|
-
type: "heartbeat"
|
|
1491
|
-
},
|
|
1492
|
-
() => {
|
|
1493
|
-
Rt();
|
|
1494
|
-
}
|
|
1495
|
-
) : clearTimeout(at);
|
|
1496
|
-
}, rs);
|
|
1497
|
-
}, os = function(t) {
|
|
1498
|
-
Q = !0, Rt(), clearTimeout(Ft), clearTimeout(jt), Bt(t);
|
|
1499
|
-
}, ns = function(t) {
|
|
1500
|
-
let e = t.data;
|
|
1501
|
-
if (typeof e == "string" && (e = e.replace(/^\d+/, ""), !!e)) {
|
|
1502
|
-
try {
|
|
1503
|
-
e = JSON.parse(e);
|
|
1504
|
-
} catch (s) {
|
|
1505
|
-
return !s;
|
|
1506
|
-
}
|
|
1507
|
-
if (Q) {
|
|
1508
|
-
let s = Pt[e.type];
|
|
1509
|
-
if (s)
|
|
1510
|
-
return s(e.data);
|
|
1511
|
-
let o = e.cid, n = He[o];
|
|
1512
|
-
n && (e.ok ? n(null, e.data) : n({ ok: e.ok }), Lt(o));
|
|
1513
|
-
} else
|
|
1514
|
-
e.type === "eSpace-ctrl-connection-success" ? os(e.data) : $.close();
|
|
1515
|
-
}
|
|
1516
|
-
}, is = function() {
|
|
1517
|
-
$.onopen = ss, $.onclose = as, $.onmessage = ns;
|
|
1518
|
-
}, Dt = function(t) {
|
|
1519
|
-
Ft = setTimeout(() => {
|
|
1520
|
-
Ee >= it.length && (Ee = 0), $ = new WebSocket(es + ":" + it[Ee++]), is();
|
|
1521
|
-
}, t || 0);
|
|
1522
|
-
}, as = function() {
|
|
1523
|
-
(Q || typeof Q > "u") && (Q = !1, zt()), Dt(It);
|
|
1524
|
-
};
|
|
1525
|
-
C.init = function(t) {
|
|
1526
|
-
t && (Ct = t.timeout || 3e4, It = t.pollingInterval || 0), Dt();
|
|
1527
|
-
};
|
|
1528
|
-
C.ready = function(t) {
|
|
1529
|
-
Bt = t;
|
|
1530
|
-
};
|
|
1531
|
-
C.error = function(t) {
|
|
1532
|
-
zt = t;
|
|
1533
|
-
};
|
|
1534
|
-
const lt = function(t, e, s) {
|
|
1535
|
-
let o = [];
|
|
1536
|
-
for (let n = 0; n < e; n++) {
|
|
1537
|
-
let r = t;
|
|
1538
|
-
n && (r += n);
|
|
1539
|
-
let a = s[r];
|
|
1540
|
-
a && o.push(a);
|
|
1541
|
-
}
|
|
1542
|
-
return o;
|
|
1543
|
-
};
|
|
1544
|
-
C.on = function(t, e) {
|
|
1545
|
-
Pt[t] = e;
|
|
1546
|
-
};
|
|
1547
|
-
C.getUserInfo = function(t, e) {
|
|
1548
|
-
W(
|
|
1549
|
-
{
|
|
1550
|
-
type: "get-user-info",
|
|
1551
|
-
param: t
|
|
1552
|
-
},
|
|
1553
|
-
function(s, o) {
|
|
1554
|
-
if (s)
|
|
1555
|
-
return e(s);
|
|
1556
|
-
const n = function(r) {
|
|
1557
|
-
return {
|
|
1558
|
-
account: r.account,
|
|
1559
|
-
name: r.name,
|
|
1560
|
-
mobile: lt("mobile", 6, r),
|
|
1561
|
-
office_phone: lt("office_phone", 6, r),
|
|
1562
|
-
home_phone: r.home_phone,
|
|
1563
|
-
ip_phone: r.ip_phone,
|
|
1564
|
-
other_phone: r.other_phone
|
|
1565
|
-
};
|
|
1566
|
-
};
|
|
1567
|
-
if (o.account)
|
|
1568
|
-
e(null, n(o));
|
|
1569
|
-
else {
|
|
1570
|
-
let r = {};
|
|
1571
|
-
for (let a in o)
|
|
1572
|
-
if (Object.prototype.hasOwnProperty.call(o, a)) {
|
|
1573
|
-
let l = o[a];
|
|
1574
|
-
r[a] = l && n(l);
|
|
1575
|
-
}
|
|
1576
|
-
e(null, r);
|
|
1577
|
-
}
|
|
1578
|
-
}
|
|
1579
|
-
);
|
|
1580
|
-
};
|
|
1581
|
-
C.subscribeUserStatus = function(t, e) {
|
|
1582
|
-
Array.isArray(t) && t.forEach((s) => {
|
|
1583
|
-
}), W(
|
|
1584
|
-
{
|
|
1585
|
-
type: "subscribe-user-status",
|
|
1586
|
-
param: t
|
|
1587
|
-
},
|
|
1588
|
-
e
|
|
1589
|
-
);
|
|
1590
|
-
};
|
|
1591
|
-
C.eSpaceCall = function(t, e, s) {
|
|
1592
|
-
W(
|
|
1593
|
-
{
|
|
1594
|
-
type: "espace-call",
|
|
1595
|
-
param: {
|
|
1596
|
-
account: t,
|
|
1597
|
-
number: e
|
|
1598
|
-
}
|
|
1599
|
-
},
|
|
1600
|
-
s
|
|
1601
|
-
);
|
|
1602
|
-
};
|
|
1603
|
-
C.eSpaceCallByAccount = function(t, e) {
|
|
1604
|
-
W(
|
|
1605
|
-
{
|
|
1606
|
-
type: "espace-call",
|
|
1607
|
-
param: {
|
|
1608
|
-
account: t
|
|
1609
|
-
}
|
|
1610
|
-
},
|
|
1611
|
-
e
|
|
1612
|
-
);
|
|
1613
|
-
};
|
|
1614
|
-
C.eSpaceCallByNumber = function(t, e) {
|
|
1615
|
-
W(
|
|
1616
|
-
{
|
|
1617
|
-
type: "espace-call",
|
|
1618
|
-
param: {
|
|
1619
|
-
number: t
|
|
1620
|
-
}
|
|
1621
|
-
},
|
|
1622
|
-
e
|
|
1623
|
-
);
|
|
1624
|
-
};
|
|
1625
|
-
C.showImDialog = function(t, e) {
|
|
1626
|
-
W(
|
|
1627
|
-
{
|
|
1628
|
-
type: "show-espace-im-dialog",
|
|
1629
|
-
param: t
|
|
1630
|
-
},
|
|
1631
|
-
e
|
|
1632
|
-
);
|
|
1633
|
-
};
|
|
1634
|
-
C.showGroupDialog = function(t, e) {
|
|
1635
|
-
W(
|
|
1636
|
-
{
|
|
1637
|
-
type: "show-espace-im-group-dialog",
|
|
1638
|
-
param: t
|
|
1639
|
-
},
|
|
1640
|
-
e
|
|
1641
|
-
);
|
|
1642
|
-
};
|
|
1643
|
-
C.addContactList = function(t, e) {
|
|
1644
|
-
W(
|
|
1645
|
-
{
|
|
1646
|
-
type: "add-contact-list",
|
|
1647
|
-
param: t
|
|
1648
|
-
},
|
|
1649
|
-
e
|
|
1650
|
-
);
|
|
1651
|
-
};
|
|
1652
|
-
if (S || !window.WebSocket) {
|
|
1653
|
-
const t = function() {
|
|
1654
|
-
};
|
|
1655
|
-
for (let e in C)
|
|
1656
|
-
Object.prototype.hasOwnProperty.call(C, e) && typeof C[e] == "function" && (C[e] = t);
|
|
1657
|
-
}
|
|
1658
|
-
const ue = {}, oe = {
|
|
1659
|
-
leave: "v-modal-leave",
|
|
1660
|
-
enter: "v-modal-enter",
|
|
1661
|
-
modal: "v-modal"
|
|
1662
|
-
}, ls = (t, e) => {
|
|
1663
|
-
for (let s = t.length - 1; s >= 0; s--)
|
|
1664
|
-
if (t[s].id === e) {
|
|
1665
|
-
t.splice(s, 1);
|
|
1666
|
-
break;
|
|
1667
|
-
}
|
|
1668
|
-
};
|
|
1669
|
-
let Pe;
|
|
1670
|
-
const I = {
|
|
1671
|
-
step: 2,
|
|
1672
|
-
zIndex: 2e3,
|
|
1673
|
-
globalScroll: !1,
|
|
1674
|
-
// 是否打开全局滚动监听
|
|
1675
|
-
modalFade: !0,
|
|
1676
|
-
modalStack: [],
|
|
1677
|
-
modalDom: null,
|
|
1678
|
-
// 当前model挂载的div.
|
|
1679
|
-
hasModal: !1,
|
|
1680
|
-
// 当前是否有Modal
|
|
1681
|
-
popLockClass: "popup-parent--hidden",
|
|
1682
|
-
oldBodyBorder: "",
|
|
1683
|
-
viewportWindow: null,
|
|
1684
|
-
fixBodyBorder() {
|
|
1685
|
-
const t = window.innerWidth - document.documentElement.clientWidth;
|
|
1686
|
-
t && (this.oldBodyBorder = document.documentElement.style.borderRight, document.body.style.borderRight = `${t}px solid transparent`);
|
|
1687
|
-
},
|
|
1688
|
-
resetBodyBorder() {
|
|
1689
|
-
document.body.style.borderRight = this.oldBodyBorder, this.oldBodyBorder = "";
|
|
1690
|
-
},
|
|
1691
|
-
/** 全局反注册 */
|
|
1692
|
-
deregister: (t) => {
|
|
1693
|
-
t && (ue[t] = null, delete ue[t]);
|
|
1694
|
-
},
|
|
1695
|
-
/** 返回全局实例 */
|
|
1696
|
-
getInstance: (t) => ue[t],
|
|
1697
|
-
/** 全局注册 仅vue-popup.ts中使用,instance就是vm, 把vm注册到 vm._popupId 这个键值上 */
|
|
1698
|
-
register: (t, e) => {
|
|
1699
|
-
t && e && (ue[t] = e);
|
|
1700
|
-
},
|
|
1701
|
-
nextZIndex: () => {
|
|
1702
|
-
const t = I.zIndex;
|
|
1703
|
-
return I.zIndex += I.step, t;
|
|
1704
|
-
},
|
|
1705
|
-
/** 打开遮罩层, 仅vue-popup.ts中使用。 dom = vm.$el 或者 undefined (appendtoBody时) */
|
|
1706
|
-
openModal(t, e, s, o, n) {
|
|
1707
|
-
if (S || !t || e === void 0)
|
|
1708
|
-
return;
|
|
1709
|
-
this.modalFade = n;
|
|
1710
|
-
for (let l = 0, c = this.modalStack.length; l < c; l++)
|
|
1711
|
-
if (this.modalStack[l].id === t)
|
|
1712
|
-
return;
|
|
1713
|
-
const r = Pe();
|
|
1714
|
-
fe(r, oe.modal), this.modalFade && !I.hasModal && fe(r, oe.enter), o && o.trim().split(/\s+/).forEach((l) => fe(r, l)), setTimeout(() => {
|
|
1715
|
-
ce(r, oe.enter);
|
|
1716
|
-
}, 200), e && (r.style.zIndex = e.toString()), r.style.display = "", r.tabIndex = 0;
|
|
1717
|
-
let a;
|
|
1718
|
-
s && s.parentNode && s.parentNode.nodeType !== 11 ? a = s.parentNode : a = document.body, a.appendChild(r), this.modalStack.push({ id: t, zIndex: e, modalClass: o });
|
|
1719
|
-
},
|
|
1720
|
-
/** 点击背景遮罩层时,调用栈顶的popup,调用它的close() */
|
|
1721
|
-
doOnModalClick: () => {
|
|
1722
|
-
const t = I.modalStack, e = t[t.length - 1];
|
|
1723
|
-
if (!e)
|
|
1724
|
-
return;
|
|
1725
|
-
const s = I.getInstance(e.id);
|
|
1726
|
-
s && s.closeOnClickModal && typeof s.close == "function" && s.close();
|
|
1727
|
-
},
|
|
1728
|
-
closeModal(t) {
|
|
1729
|
-
const e = this.modalStack, s = Pe();
|
|
1730
|
-
if (e.length > 0) {
|
|
1731
|
-
const o = e[e.length - 1];
|
|
1732
|
-
if (o.id === t) {
|
|
1733
|
-
o.modalClass && o.modalClass.trim().split(/\s+/).forEach((r) => ce(s, r)), e.pop();
|
|
1734
|
-
const n = e.length;
|
|
1735
|
-
n > 0 && (s.style.zIndex = e[n - 1].zIndex.toString());
|
|
1736
|
-
} else
|
|
1737
|
-
ls(e, t);
|
|
1738
|
-
}
|
|
1739
|
-
e.length === 0 && (this.modalFade && fe(s, oe.leave), ce(document.body, this.popLockClass), this.resetBodyBorder(), setTimeout(() => {
|
|
1740
|
-
e.length === 0 && (s.parentNode && s.parentNode.removeChild(s), s.style.display = "none", I.modalDom = null), ce(s, oe.leave);
|
|
1741
|
-
}, 200));
|
|
1742
|
-
}
|
|
1743
|
-
};
|
|
1744
|
-
Pe = () => {
|
|
1745
|
-
if (S)
|
|
1746
|
-
return null;
|
|
1747
|
-
let t = I.modalDom;
|
|
1748
|
-
return t ? I.hasModal = !0 : (I.hasModal = !1, t = document.createElement("div"), I.modalDom = t, t.addEventListener(
|
|
1749
|
-
"touchmove",
|
|
1750
|
-
(e) => {
|
|
1751
|
-
e.preventDefault(), e.stopPropagation();
|
|
1752
|
-
},
|
|
1753
|
-
{ passive: !0 }
|
|
1754
|
-
), L(t, "click", () => {
|
|
1755
|
-
I.doOnModalClick();
|
|
1756
|
-
})), t;
|
|
1757
|
-
};
|
|
1758
|
-
S || L(window, "keydown", (t) => {
|
|
1759
|
-
if (t.keyCode === jr.Escape) {
|
|
1760
|
-
const e = I.modalStack;
|
|
1761
|
-
if (e.length > 0) {
|
|
1762
|
-
const s = e[e.length - 1];
|
|
1763
|
-
if (!s)
|
|
1764
|
-
return;
|
|
1765
|
-
const o = I.getInstance(s.id);
|
|
1766
|
-
o && o.closeOnPressEscape && (o.handleClose ? o.handleClose("esc") : o.handleAction ? o.handleAction("cancel") : o.close());
|
|
1767
|
-
}
|
|
1768
|
-
}
|
|
1769
|
-
});
|
|
1770
|
-
const fs = ["left", "right", "top", "bottom"], Ht = ["shift", "offset", "preventOverflow", "keepTogether", "arrow", "flip", "applyStyle"], cs = {
|
|
1771
|
-
arrowOffset: 0,
|
|
1772
|
-
arrowElement: "[x-arrow]",
|
|
1773
|
-
boundariesElement: "viewport",
|
|
1774
|
-
boundariesPadding: 5,
|
|
1775
|
-
flipBehavior: "flip",
|
|
1776
|
-
// 全局没有修改过它,所以它一直是flip
|
|
1777
|
-
forceAbsolute: !1,
|
|
1778
|
-
gpuAcceleration: !0,
|
|
1779
|
-
offset: 0,
|
|
1780
|
-
placement: "bottom",
|
|
1781
|
-
preventOverflowOrder: fs,
|
|
1782
|
-
modifiers: Ht,
|
|
1783
|
-
// 此处是string数组, 构造函数调用之后转为函数数组
|
|
1784
|
-
updateHiddenPopperOnScroll: !1
|
|
1785
|
-
// 滚动过程中是否更新隐藏的弹出层位置
|
|
1786
|
-
}, pe = (t, e) => {
|
|
1787
|
-
const s = (o) => o !== "" && !isNaN(parseFloat(o)) && isFinite(o);
|
|
1788
|
-
Object.keys(e).forEach((o) => {
|
|
1789
|
-
let n = "";
|
|
1790
|
-
~["width", "height", "top", "right", "bottom", "left"].indexOf(o) && s(e[o]) && (n = "px"), t.style[o] = e[o] + n;
|
|
1791
|
-
});
|
|
1792
|
-
}, Se = (t) => {
|
|
1793
|
-
let e = t.offsetParent;
|
|
1794
|
-
return e === window.document.body || !e ? window.document.documentElement : e;
|
|
1795
|
-
}, ie = (t, e) => !t || t.nodeType !== 1 ? void 0 : window.getComputedStyle(t, null)[e], Wt = (t) => t === window.document.body ? !1 : ie(t, "position") === "fixed" ? !0 : (t.host && (t = t.host), t.parentNode ? Wt(t.parentNode) : !1), ze = (t) => {
|
|
1796
|
-
let e = t.getBoundingClientRect();
|
|
1797
|
-
return {
|
|
1798
|
-
left: e.left,
|
|
1799
|
-
top: e.top,
|
|
1800
|
-
right: e.right,
|
|
1801
|
-
bottom: e.bottom,
|
|
1802
|
-
width: e.right - e.left,
|
|
1803
|
-
height: e.bottom - e.top
|
|
1804
|
-
};
|
|
1805
|
-
}, Nt = (t) => {
|
|
1806
|
-
const e = ["scroll", "auto"];
|
|
1807
|
-
return e.includes(ie(t, "overflow")) || e.includes(ie(t, "overflow-x")) || e.includes(ie(t, "overflow-y"));
|
|
1808
|
-
}, us = (t) => {
|
|
1809
|
-
const e = document.createElement("div");
|
|
1810
|
-
pe(e, {
|
|
1811
|
-
opacity: 0,
|
|
1812
|
-
position: "fixed",
|
|
1813
|
-
width: 1,
|
|
1814
|
-
height: 1,
|
|
1815
|
-
top: 0,
|
|
1816
|
-
left: 0,
|
|
1817
|
-
"z-index": "-99"
|
|
1818
|
-
}), t.appendChild(e);
|
|
1819
|
-
const s = ze(e);
|
|
1820
|
-
return t.removeChild(e), s;
|
|
1821
|
-
}, de = (t) => {
|
|
1822
|
-
let e = t.parentNode;
|
|
1823
|
-
return e ? e === window.document ? window.document.body.scrollTop || window.document.body.scrollLeft ? window.document.body : window.document.documentElement : Nt(e) ? e : de(e) : t;
|
|
1824
|
-
}, ps = (t, e, s, o) => {
|
|
1825
|
-
let { top: n, left: r, width: a, height: l } = ze(t);
|
|
1826
|
-
if (s) {
|
|
1827
|
-
if (o.parentElement) {
|
|
1828
|
-
const { top: d, left: m } = us(o.parentElement);
|
|
1829
|
-
n -= d, r -= m;
|
|
1830
|
-
}
|
|
1831
|
-
return {
|
|
1832
|
-
top: n,
|
|
1833
|
-
left: r,
|
|
1834
|
-
bottom: n + l,
|
|
1835
|
-
right: r + a,
|
|
1836
|
-
width: a,
|
|
1837
|
-
height: l
|
|
1838
|
-
};
|
|
1839
|
-
}
|
|
1840
|
-
let c = ze(e);
|
|
1841
|
-
return {
|
|
1842
|
-
top: n - c.top,
|
|
1843
|
-
left: r - c.left,
|
|
1844
|
-
bottom: n - c.top + l,
|
|
1845
|
-
right: r - c.left + a,
|
|
1846
|
-
width: a,
|
|
1847
|
-
height: l
|
|
1848
|
-
};
|
|
1849
|
-
}, ds = (t) => t === document.body ? Math.max(document.documentElement.scrollTop, document.body.scrollTop) : t.scrollTop, hs = (t) => t === document.body ? Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) : t.scrollLeft, ms = (t, e) => {
|
|
1850
|
-
const s = Math.max(t.scrollHeight, t.offsetHeight, e.clientHeight, e.scrollHeight, e.offsetHeight);
|
|
1851
|
-
return { width: Math.max(t.scrollWidth, t.offsetWidth, e.clientWidth, e.scrollWidth, e.offsetWidth), height: s };
|
|
1852
|
-
}, Ae = (t) => {
|
|
1853
|
-
let e = t.style.display, s = t.style.visibility;
|
|
1854
|
-
t.style.display = "block", t.style.visibility = "hidden";
|
|
1855
|
-
let o = window.getComputedStyle(t), n = parseFloat(o.marginTop) + parseFloat(o.marginBottom), r = parseFloat(o.marginLeft) + parseFloat(o.marginRight), a = { width: t.offsetWidth + r, height: t.offsetHeight + n };
|
|
1856
|
-
return t.style.display = e, t.style.visibility = s, a;
|
|
1857
|
-
}, ft = (t) => {
|
|
1858
|
-
let e = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
1859
|
-
return t.replace(/left|right|bottom|top/g, (s) => e[s]);
|
|
1860
|
-
}, ne = (t) => {
|
|
1861
|
-
let e = { ...t };
|
|
1862
|
-
return e.right = e.left + e.width, e.bottom = e.top + e.height, e;
|
|
1863
|
-
}, Vt = (t, e = []) => {
|
|
1864
|
-
const s = t.parentNode;
|
|
1865
|
-
return s ? (Nt(s) && e.push(s), ie(s, "position") === "fixed" ? e : Vt(s, e)) : e;
|
|
1866
|
-
}, ct = (t) => {
|
|
1867
|
-
const e = {
|
|
1868
|
-
width: t.offsetWidth,
|
|
1869
|
-
height: t.offsetHeight,
|
|
1870
|
-
left: t.offsetLeft,
|
|
1871
|
-
top: t.offsetTop,
|
|
1872
|
-
right: 0,
|
|
1873
|
-
bottom: 0
|
|
1874
|
-
};
|
|
1875
|
-
return e.right = e.left + e.width, e.bottom = e.top + e.height, e;
|
|
1876
|
-
}, ut = (t) => {
|
|
1877
|
-
t.stopPropagation();
|
|
1878
|
-
}, pt = !S && typeof ResizeObserver == "function" ? new ResizeObserver((t) => {
|
|
1879
|
-
t.forEach((e) => {
|
|
1880
|
-
e.target.popperVm && e.contentRect.height > 50 && e.target.popperVm.update();
|
|
1881
|
-
});
|
|
1882
|
-
}) : null;
|
|
1883
|
-
class xs {
|
|
1884
|
-
constructor(e, s, o) {
|
|
1885
|
-
J(this, "_reference"), J(this, "_popper"), J(this, "state"), J(this, "_options"), J(this, "modifiers", {}), J(this, "popperOuterSize", null), this._reference = e, this._popper = s, this.state = {}, this._options = { ...cs, ...o }, this._options.modifierFns = Ht.map((n) => this[n]), S || (this._popper.setAttribute("x-placement", this._options.placement), this.state.position = this._getPopperPositionByRefernce(this._reference), pe(this._popper, { position: this.state.position, top: 0 }), this._popper && (this._popper.popperVm = this, pt && pt.observe(this._popper)), this.update(), this._setupEventListeners());
|
|
1886
|
-
}
|
|
1887
|
-
destroy() {
|
|
1888
|
-
return this._popper.removeAttribute("x-placement"), this._popper.style.display = "none", this._removeEventListeners(), this._options.removeOnDestroy && this._popper.remove(), this;
|
|
1889
|
-
}
|
|
1890
|
-
onUpdate(e) {
|
|
1891
|
-
return this.state.updateCallback = e, this;
|
|
1892
|
-
}
|
|
1893
|
-
update() {
|
|
1894
|
-
let e = { instance: this, styles: {} };
|
|
1895
|
-
this.stopEventBubble(), this.popperOuterSize = null, e.placement = e._originalPlacement = this._options.placement, e.offsets = this._getRefPopOffsets(this._popper, this._reference, e.placement), e.boundaries = this._getBoundaries(e, this._options.boundariesPadding, this._options.boundariesElement), e = this.runModifiers(e, this._options.modifierFns), typeof this.state.updateCallback == "function" && this.state.updateCallback(e);
|
|
1896
|
-
}
|
|
1897
|
-
// 阻止popper的mousewheel等事件冒泡。 通过 onxxx 绑定,是为了避免重复绑定事件
|
|
1898
|
-
stopEventBubble() {
|
|
1899
|
-
this._popper && (this._popper.onmousewheel || (this._popper.onmousewheel = ut), this._popper.onwheel || (this._popper.onwheel = ut));
|
|
1900
|
-
}
|
|
1901
|
-
/** 按顺序执行Modifiers, 如果传入终点modifier,则执行到指定位置 */
|
|
1902
|
-
runModifiers(e, s, o) {
|
|
1903
|
-
let n = s.slice();
|
|
1904
|
-
const r = this._options;
|
|
1905
|
-
return o !== void 0 && (n = this._options.modifierFns.slice(
|
|
1906
|
-
0,
|
|
1907
|
-
r.modifierFns.findIndex((a) => a === o)
|
|
1908
|
-
)), n.forEach((a) => {
|
|
1909
|
-
he(a) === "function" && (e = a.call(this, e));
|
|
1910
|
-
}), e;
|
|
1911
|
-
}
|
|
1912
|
-
// 此时才把offsets.popper 赋值给popper dom, offsets.array赋值给array dom
|
|
1913
|
-
applyStyle(e) {
|
|
1914
|
-
let s = { position: e.offsets.popper.position }, o = Math.round(e.offsets.popper.left), n = Math.round(e.offsets.popper.top);
|
|
1915
|
-
return this._options.gpuAcceleration ? (s.transform = `translate3d(${o}px, ${n}px, 0)`, Object.assign(s, { top: 0, left: 0 })) : Object.assign(s, { top: n, left: o }), Object.assign(s, e.styles), pe(this._popper, s), this._popper.setAttribute("x-placement", e.placement), e.offsets.arrow && pe(e.arrowElement, e.offsets.arrow), e;
|
|
1916
|
-
}
|
|
1917
|
-
// 判断 placement是不是2段式的,是则处理一下偏移。 修改data.offsets.popper的值
|
|
1918
|
-
shift(e) {
|
|
1919
|
-
let s = e.placement, o = s.split("-")[0], n = s.split("-")[1];
|
|
1920
|
-
if (n) {
|
|
1921
|
-
let { top: r, left: a, height: l, width: c } = e.offsets.reference, d = ne(e.offsets.popper), m = {
|
|
1922
|
-
y: {
|
|
1923
|
-
start: { top: r },
|
|
1924
|
-
end: { top: r + l - d.height }
|
|
1925
|
-
},
|
|
1926
|
-
x: {
|
|
1927
|
-
start: { left: a },
|
|
1928
|
-
end: { left: a + c - d.width }
|
|
1929
|
-
}
|
|
1930
|
-
}, i = ~["bottom", "top"].indexOf(o) ? "x" : "y";
|
|
1931
|
-
e.offsets.popper = Object.assign(d, m[i][n]);
|
|
1932
|
-
}
|
|
1933
|
-
return e;
|
|
1934
|
-
}
|
|
1935
|
-
// 校正popper的位置在boundaries 的内部
|
|
1936
|
-
preventOverflow(e) {
|
|
1937
|
-
if (this._options.ignoreBoundaries)
|
|
1938
|
-
return e;
|
|
1939
|
-
let s = this._options.preventOverflowOrder, o = ne(e.offsets.popper), n = {
|
|
1940
|
-
top: () => {
|
|
1941
|
-
let { top: r } = o;
|
|
1942
|
-
return r < e.boundaries.top && (r = Math.max(r, e.boundaries.top)), { top: r };
|
|
1943
|
-
},
|
|
1944
|
-
right: () => {
|
|
1945
|
-
let { left: r } = o;
|
|
1946
|
-
return o.right > e.boundaries.right && (r = Math.min(r, e.boundaries.right - o.width)), { left: r };
|
|
1947
|
-
},
|
|
1948
|
-
bottom: () => {
|
|
1949
|
-
let { top: r } = o;
|
|
1950
|
-
return o.bottom > e.boundaries.bottom && (r = Math.min(r, e.boundaries.bottom - o.height)), { top: r };
|
|
1951
|
-
},
|
|
1952
|
-
left: () => {
|
|
1953
|
-
let { left: r } = o;
|
|
1954
|
-
return o.left < e.boundaries.left && (r = Math.max(r, e.boundaries.left)), { left: r };
|
|
1955
|
-
}
|
|
1956
|
-
};
|
|
1957
|
-
return s.forEach((r) => {
|
|
1958
|
-
e.offsets.popper = Object.assign(o, n[r]());
|
|
1959
|
-
}), e;
|
|
1960
|
-
}
|
|
1961
|
-
// 校正popper的位置在reference的边上。 如果2个分离了,重新调整popper的位置。 可能是担心 modifiers.offset 带来的副作用吧
|
|
1962
|
-
keepTogether(e) {
|
|
1963
|
-
let s = ne(e.offsets.popper), o = e.offsets.reference;
|
|
1964
|
-
return s.right < Math.floor(o.left) && (e.offsets.popper.left = Math.floor(o.left) - s.width), s.left > Math.floor(o.right) && (e.offsets.popper.left = Math.floor(o.right)), s.bottom < Math.floor(o.top) && (e.offsets.popper.top = Math.floor(o.top) - s.height), s.top > Math.floor(o.bottom) && (e.offsets.popper.top = Math.floor(o.bottom)), e;
|
|
1965
|
-
}
|
|
1966
|
-
// 根据flip的策略,计算当前应该显示的位置。 空间不够要计算出flip的位置。 可能是担心preventOverflow 时,造成pop, reference会重叠。 重叠了就要flip一下
|
|
1967
|
-
flip(e) {
|
|
1968
|
-
if (e.flipped && e.placement === e._originalPlacement)
|
|
1969
|
-
return e;
|
|
1970
|
-
const s = e.placement.split("-");
|
|
1971
|
-
let o = s[0], n = ft(o), r = s[1] || "", a = [o, n];
|
|
1972
|
-
return a.forEach((l, c) => {
|
|
1973
|
-
if (o !== l || a.length === c + 1)
|
|
1974
|
-
return;
|
|
1975
|
-
o = e.placement.split("-")[0], n = ft(o);
|
|
1976
|
-
let d = ne(e.offsets.popper), m = ~["right", "bottom"].indexOf(o), i = Math.floor(e.offsets.reference[o]), u = Math.floor(d[n]);
|
|
1977
|
-
(m && i > u || !m && i < u) && (e.flipped = !0, e.placement = a[c + 1], r && (e.placement += `-${r}`), e.offsets.popper = this._getRefPopOffsets(this._popper, this._reference, e.placement).popper, e = this.runModifiers(e, this._options.modifierFns, this.flip));
|
|
1978
|
-
}), e;
|
|
1979
|
-
}
|
|
1980
|
-
// 根据入参option上的offset, 给data.offset.popper进行校正
|
|
1981
|
-
offset(e) {
|
|
1982
|
-
let s = this._options.offset, o = e.offsets.popper;
|
|
1983
|
-
return ~e.placement.indexOf("left") ? o.top -= s : ~e.placement.indexOf("right") ? o.top += s : ~e.placement.indexOf("top") ? o.left -= s : ~e.placement.indexOf("bottom") && (o.left += s), e;
|
|
1984
|
-
}
|
|
1985
|
-
// 计算arrow的位置,保存在data.offsets.arrow ={top,left}
|
|
1986
|
-
arrow(e) {
|
|
1987
|
-
let s = this._options.arrowElement, o = this._options.arrowOffset;
|
|
1988
|
-
if (typeof s == "string" && (s = this._popper.querySelector(s)), !s || !this._popper.contains(s))
|
|
1989
|
-
return e;
|
|
1990
|
-
let n = {}, r = e.placement.split("-")[0], a = ne(e.offsets.popper), l = e.offsets.reference, c = ~["left", "right"].indexOf(r), d = c ? "height" : "width", m = c ? "bottom" : "right", i = c ? "left" : "top", u = c ? "top" : "left", f = this.popperOuterSize ? this.popperOuterSize : this.popperOuterSize = Ae(this._popper), _ = Ae(s), w = _[d];
|
|
1991
|
-
l[m] - w < a[u] && (e.offsets.popper[u] -= a[u] - (l[m] - w)), l[u] + w > a[m] && (e.offsets.popper[u] += l[u] + w - a[m]);
|
|
1992
|
-
let g = l[u] + (o || l[d] / 2 - w / 2) - a[u];
|
|
1993
|
-
g = Math.max(Math.min(a[d] - w - 8, g), 8), n[u] = g, n[i] = "";
|
|
1994
|
-
const T = this._options.placement.split("-");
|
|
1995
|
-
return this._options.adjustArrow && ~["top", "bottom"].indexOf(T[0]) && u === "left" && (T[1] === "start" ? n.left = 8 : T[1] || (n.left = (f.width - _.width) / 2)), e.offsets.arrow = n, e.arrowElement = s, e;
|
|
1996
|
-
}
|
|
1997
|
-
/** 判断 reference 的 offsetParent 元素是fix还是abs, 这个值会赋值给popper 的dom */
|
|
1998
|
-
_getPopperPositionByRefernce(e) {
|
|
1999
|
-
return this._options.forceAbsolute ? "absolute" : Wt(e) ? "fixed" : "absolute";
|
|
2000
|
-
}
|
|
2001
|
-
/** 实时计算一下popper, reference的 位置信息, 用于 */
|
|
2002
|
-
_getRefPopOffsets(e, s, o) {
|
|
2003
|
-
o = o.split("-")[0];
|
|
2004
|
-
let n = { position: this.state.position }, r = n.position === "fixed", a = ps(
|
|
2005
|
-
s,
|
|
2006
|
-
Se(e),
|
|
2007
|
-
r,
|
|
2008
|
-
e
|
|
2009
|
-
);
|
|
2010
|
-
const { width: l, height: c } = this.popperOuterSize ? this.popperOuterSize : this.popperOuterSize = Ae(e);
|
|
2011
|
-
return ~["right", "left"].indexOf(o) ? (n.top = a.top + a.height / 2 - c / 2, o === "left" ? n.left = a.left - l : n.left = a.right) : (n.left = a.left + a.width / 2 - l / 2, o === "top" ? n.top = a.top - c : n.top = a.bottom), n.width = l, n.height = c, {
|
|
2012
|
-
popper: n,
|
|
2013
|
-
reference: a
|
|
2014
|
-
};
|
|
2015
|
-
}
|
|
2016
|
-
_setupEventListeners() {
|
|
2017
|
-
var e, s;
|
|
2018
|
-
if (this.state.updateBoundFn = this.update.bind(this), this.state.scrollUpdate = () => {
|
|
2019
|
-
if (this._options.updateHiddenPopperOnScroll)
|
|
2020
|
-
this.state.updateBoundFn();
|
|
2021
|
-
else {
|
|
2022
|
-
if (_t(this._reference)) return;
|
|
2023
|
-
this.state.updateBoundFn();
|
|
2024
|
-
}
|
|
2025
|
-
}, L(window, "resize", this.state.updateBoundFn), this._options.boundariesElement !== "window") {
|
|
2026
|
-
let o = this._options.scrollParent || de(this._reference);
|
|
2027
|
-
const n = [];
|
|
2028
|
-
if ((s = (e = o == null ? void 0 : o.dataset) == null ? void 0 : e.tag) != null && s.includes("-form")) {
|
|
2029
|
-
n.push(o);
|
|
2030
|
-
let r = de(o);
|
|
2031
|
-
(r === window.document.body || r === window.document.documentElement) && (r = window), n.push(r);
|
|
2032
|
-
}
|
|
2033
|
-
if ((o === window.document.body || o === window.document.documentElement) && (o = window), this.state.scrollTarget = o, this._options.bubbling || I.globalScroll) {
|
|
2034
|
-
let r = Vt(this._reference);
|
|
2035
|
-
this.state.scrollTargets = r || [], r.forEach((a) => {
|
|
2036
|
-
L(a, "scroll", this.state.scrollUpdate);
|
|
2037
|
-
});
|
|
2038
|
-
} else
|
|
2039
|
-
n.length ? (this.state.scrollTargets = n, n.forEach((r) => {
|
|
2040
|
-
L(r, "scroll", this.state.scrollUpdate);
|
|
2041
|
-
})) : L(o, "scroll", this.state.scrollUpdate);
|
|
2042
|
-
}
|
|
2043
|
-
}
|
|
2044
|
-
_removeEventListeners() {
|
|
2045
|
-
Y(window, "resize", this.state.updateBoundFn), this._options.boundariesElement !== "window" && this.state.scrollTarget && (Y(this.state.scrollTarget, "scroll", this.state.scrollUpdate), this.state.scrollTarget = null, (this._options.bubbling || I.globalScroll) && ((this.state.scrollTargets || []).forEach((e) => {
|
|
2046
|
-
Y(e, "scroll", this.state.scrollUpdate);
|
|
2047
|
-
}), this.state.scrollTargets = null)), this.state.updateBoundFn = null, this.state.scrollUpdate = null;
|
|
2048
|
-
}
|
|
2049
|
-
/** 实时计算一下Boundary的位置 */
|
|
2050
|
-
_getBoundaries(e, s, o) {
|
|
2051
|
-
let n = { right: 0, left: 0, top: 0, bottom: 0 };
|
|
2052
|
-
if (o === "window" || o === "body") {
|
|
2053
|
-
let r = window.document.body, a = window.document.documentElement, { width: l, height: c } = ms(r, a);
|
|
2054
|
-
n = { top: 0, right: l, bottom: c, left: 0 };
|
|
2055
|
-
} else if (o === "viewport") {
|
|
2056
|
-
let r = Se(this._popper), a = de(this._popper), l = ct(r);
|
|
2057
|
-
const c = e.offsets.popper.position === "fixed" || !this._options.appendToBody && ["right", "left"].includes(this._options.placement);
|
|
2058
|
-
let d = c ? 0 : ds(a), m = c ? 0 : hs(a);
|
|
2059
|
-
const i = window;
|
|
2060
|
-
n = {
|
|
2061
|
-
top: 0 - (l.top - d),
|
|
2062
|
-
right: i.document.documentElement.clientWidth - (l.left - m),
|
|
2063
|
-
bottom: i.document.documentElement.clientHeight - (l.top - d),
|
|
2064
|
-
left: 0 - (l.left - m)
|
|
2065
|
-
};
|
|
2066
|
-
} else if (Se(this._popper) === o) {
|
|
2067
|
-
const { clientWidth: r, clientHeight: a } = o;
|
|
2068
|
-
n = {
|
|
2069
|
-
right: r,
|
|
2070
|
-
bottom: a,
|
|
2071
|
-
top: 0,
|
|
2072
|
-
left: 0
|
|
2073
|
-
};
|
|
2074
|
-
} else
|
|
2075
|
-
n = ct(o);
|
|
2076
|
-
return n.right -= s, n.left += s, n.bottom = n.bottom - s, n.top = n.top + s, n;
|
|
2077
|
-
}
|
|
2078
|
-
// https://popper.js.org/docs/v2/lifecycle/#set-new-options
|
|
2079
|
-
setOptions(e) {
|
|
2080
|
-
Object.assign(this._options, e);
|
|
2081
|
-
}
|
|
2082
|
-
}
|
|
2083
|
-
export {
|
|
2084
|
-
At as DATEPICKER,
|
|
2085
|
-
jr as KEY_CODE,
|
|
2086
|
-
xs as PopperJS,
|
|
2087
|
-
I as PopupManager,
|
|
2088
|
-
fe as addClass,
|
|
2089
|
-
gs as camelize,
|
|
2090
|
-
bs as capitalize,
|
|
2091
|
-
Tr as copyArray,
|
|
2092
|
-
Ar as copyField,
|
|
2093
|
-
_s as debounce,
|
|
2094
|
-
Le as extend,
|
|
2095
|
-
Mt as fastdom,
|
|
2096
|
-
Er as getObj,
|
|
2097
|
-
de as getScrollParent1,
|
|
2098
|
-
ws as guid,
|
|
2099
|
-
yt as hasOwn,
|
|
2100
|
-
ys as hyphenate,
|
|
2101
|
-
_t as isDisplayNone,
|
|
2102
|
-
vt as isNull,
|
|
2103
|
-
Ke as isObject,
|
|
2104
|
-
K as isPlainObject,
|
|
2105
|
-
S as isServer,
|
|
2106
|
-
vs as noop,
|
|
2107
|
-
Y as off,
|
|
2108
|
-
L as on,
|
|
2109
|
-
Fr as random,
|
|
2110
|
-
ce as removeClass,
|
|
2111
|
-
Sr as setObj,
|
|
2112
|
-
Fe as sf,
|
|
2113
|
-
Kr as throttle,
|
|
2114
|
-
bt as toString,
|
|
2115
|
-
he as typeOf
|
|
2116
|
-
};
|