@opentiny/tiny-robot 0.2.0-alpha.0 → 0.2.0-alpha.1
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/action-group/ActionGroup.vue.d.ts +26 -0
- package/dist/action-group/ActionGroupItem.vue.d.ts +18 -0
- package/dist/action-group/index.d.ts +12 -0
- package/dist/action-group/index.type.d.ts +16 -0
- package/dist/feedback/components/SourceList.vue.d.ts +11 -0
- package/dist/feedback/components/index.d.ts +1 -0
- package/dist/feedback/index.d.ts +7 -0
- package/dist/feedback/index.type.d.ts +25 -0
- package/dist/feedback/index.vue.d.ts +13 -0
- package/dist/history/components/index.d.ts +2 -0
- package/dist/history/components/item-tag.vue.d.ts +5 -0
- package/dist/history/components/search-empty.vue.d.ts +7 -0
- package/dist/history/composables/index.d.ts +1 -0
- package/dist/history/composables/useEditItemTitle.d.ts +12 -0
- package/dist/history/index.d.ts +6 -0
- package/dist/history/index.type.d.ts +43 -0
- package/dist/history/index.vue.d.ts +2 -0
- package/dist/icon-button/index.d.ts +7 -0
- package/dist/icon-button/index.type.d.ts +7 -0
- package/dist/icon-button/index.vue.d.ts +6 -0
- package/dist/index.d.ts +10 -1
- package/dist/index.js +57 -27
- package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +1335 -884
- package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +660 -144
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +85 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.22.0/node_modules/@opentiny/vue-locale/lib/index.js +1783 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/index.js +77 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +90 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/index.js +176 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +248 -0
- package/dist/node_modules/.pnpm/@vueuse_core@13.1.0_vue@3.5.13/node_modules/@vueuse/core/index.js +190 -0
- package/dist/node_modules/.pnpm/@vueuse_shared@13.1.0_vue@3.5.13/node_modules/@vueuse/shared/index.js +53 -0
- package/dist/packages/components/src/action-group/ActionGroup.vue.js +7 -0
- package/dist/packages/components/src/action-group/ActionGroup.vue2.js +97 -0
- package/dist/packages/components/src/action-group/ActionGroupItem.vue.js +14 -0
- package/dist/packages/components/src/action-group/ActionGroupItem.vue2.js +4 -0
- package/dist/packages/components/src/action-group/index.js +17 -0
- package/dist/packages/components/src/bubble/bubble.vue.js +2 -2
- package/dist/packages/components/src/bubble/bubble.vue2.js +46 -46
- package/dist/packages/components/src/container/index.vue.js +1 -1
- package/dist/packages/components/src/container/index.vue2.js +17 -17
- package/dist/packages/components/src/feedback/components/SourceList.vue.js +7 -0
- package/dist/packages/components/src/feedback/components/SourceList.vue2.js +52 -0
- package/dist/packages/components/src/feedback/index.js +9 -0
- package/dist/packages/components/src/feedback/index.vue.js +7 -0
- package/dist/packages/components/src/feedback/index.vue2.js +142 -0
- package/dist/packages/components/src/history/components/item-tag.vue.js +7 -0
- package/dist/packages/components/src/history/components/item-tag.vue2.js +21 -0
- package/dist/packages/components/src/history/components/search-empty.vue.js +7 -0
- package/dist/packages/components/src/history/components/search-empty.vue2.js +20 -0
- package/dist/packages/components/src/history/composables/useEditItemTitle.js +43 -0
- package/dist/packages/components/src/history/index.js +11 -0
- package/dist/packages/components/src/history/index.vue.js +7 -0
- package/dist/packages/components/src/history/index.vue2.js +130 -0
- package/dist/packages/components/src/icon-button/index.js +9 -0
- package/dist/packages/components/src/icon-button/index.vue.js +7 -0
- package/dist/packages/components/src/icon-button/index.vue2.js +40 -0
- package/dist/packages/components/src/prompts/prompt.vue.js +2 -2
- package/dist/packages/components/src/prompts/prompt.vue2.js +17 -15
- package/dist/packages/components/src/question/components/HotQuestions.vue.js +23 -23
- package/dist/packages/components/src/question/index.vue.js +18 -18
- package/dist/packages/components/src/sender/components/TemplateEditor.vue.js +7 -0
- package/dist/packages/components/src/sender/components/TemplateEditor.vue2.js +121 -0
- package/dist/packages/components/src/sender/index.vue.js +149 -128
- package/dist/packages/components/src/suggestion/components/CategoryNav.vue.js +38 -0
- package/dist/packages/components/src/suggestion/components/CategoryNav.vue2.js +4 -0
- package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue.js +107 -0
- package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue2.js +4 -0
- package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue.js +123 -0
- package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue2.js +4 -0
- package/dist/packages/components/src/suggestion/composables/useKeyboardNavigation.js +45 -0
- package/dist/packages/components/src/suggestion/composables/useTriggerDetection.js +17 -0
- package/dist/packages/components/src/suggestion/index.js +9 -0
- package/dist/packages/components/src/suggestion/index.vue.js +179 -0
- package/dist/packages/components/src/suggestion/index.vue2.js +4 -0
- package/dist/packages/components/src/suggestion/utils/dom.js +18 -0
- package/dist/packages/svgs/dist/tiny-robot-svgs.js +306 -90
- package/dist/question/components/HotQuestions.vue.d.ts +2 -2
- package/dist/sender/components/TemplateEditor.vue.d.ts +18 -0
- package/dist/sender/index.type.d.ts +47 -0
- package/dist/sender/index.vue.d.ts +68 -3
- package/dist/style.css +1 -1
- package/dist/suggestion/components/CategoryNav.vue.d.ts +45 -0
- package/dist/suggestion/components/SuggestionCapsule.vue.d.ts +32 -0
- package/dist/suggestion/components/SuggestionPanel.vue.d.ts +84 -0
- package/dist/suggestion/composables/useKeyboardNavigation.d.ts +18 -0
- package/dist/suggestion/composables/useSuggestionFilter.d.ts +10 -0
- package/dist/suggestion/composables/useTriggerDetection.d.ts +11 -0
- package/dist/suggestion/index.d.ts +7 -0
- package/dist/suggestion/index.type.d.ts +94 -0
- package/dist/suggestion/index.vue.d.ts +343 -0
- package/dist/suggestion/utils/dom.d.ts +20 -0
- package/package.json +4 -3
- package/src/action-group/ActionGroup.vue +232 -0
- package/src/action-group/ActionGroupItem.vue +9 -0
- package/src/action-group/index.ts +25 -0
- package/src/action-group/index.type.ts +20 -0
- package/src/bubble/bubble.vue +4 -14
- package/src/container/index.vue +1 -2
- package/src/feedback/components/SourceList.vue +112 -0
- package/src/feedback/components/index.ts +1 -0
- package/src/feedback/index.ts +12 -0
- package/src/feedback/index.type.ts +27 -0
- package/src/feedback/index.vue +166 -0
- package/src/history/components/index.ts +2 -0
- package/src/history/components/item-tag.vue +49 -0
- package/src/history/components/search-empty.vue +38 -0
- package/src/history/composables/index.ts +1 -0
- package/src/history/composables/useEditItemTitle.ts +75 -0
- package/src/history/index.ts +12 -0
- package/src/history/index.type.ts +50 -0
- package/src/history/index.vue +292 -0
- package/src/icon-button/index.ts +12 -0
- package/src/icon-button/index.type.ts +8 -0
- package/src/icon-button/index.vue +52 -0
- package/src/index.ts +33 -1
- package/src/prompts/prompt.vue +7 -21
- package/src/question/components/HotQuestions.vue +1 -1
- package/src/question/index.less +9 -10
- package/src/sender/components/TemplateEditor.vue +274 -0
- package/src/sender/index.less +17 -7
- package/src/sender/index.type.ts +51 -0
- package/src/sender/index.vue +56 -8
- package/src/sender/vars.less +3 -3
- package/src/suggestion/components/CategoryNav.vue +38 -0
- package/src/suggestion/components/SuggestionCapsule.vue +183 -0
- package/src/suggestion/components/SuggestionPanel.vue +147 -0
- package/src/suggestion/composables/useKeyboardNavigation.ts +101 -0
- package/src/suggestion/composables/useSuggestionFilter.ts +34 -0
- package/src/suggestion/composables/useTriggerDetection.ts +46 -0
- package/src/suggestion/index.less +497 -0
- package/src/suggestion/index.ts +12 -0
- package/src/suggestion/index.type.ts +101 -0
- package/src/suggestion/index.vue +338 -0
- package/src/suggestion/utils/dom.ts +66 -0
- package/src/suggestion/vars.less +141 -0
package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
var
|
|
2
|
-
function
|
|
3
|
-
if (
|
|
4
|
-
|
|
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
5
|
function t() {
|
|
6
|
-
var
|
|
7
|
-
return
|
|
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
8
|
}
|
|
9
|
-
function r
|
|
9
|
+
function e(r, a, l) {
|
|
10
10
|
}
|
|
11
|
-
function s(
|
|
11
|
+
function s(r, a, l) {
|
|
12
12
|
}
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
return
|
|
13
|
+
var o = /javascript\s*\:/img;
|
|
14
|
+
function n(r, a) {
|
|
15
|
+
return o.test(a) ? "" : a;
|
|
16
16
|
}
|
|
17
|
-
return G.whiteList = t(), G.getDefaultWhiteList = t, G.onAttr =
|
|
17
|
+
return G.whiteList = t(), G.getDefaultWhiteList = t, G.onAttr = e, G.onIgnoreAttr = s, G.safeAttrValue = n, G;
|
|
18
18
|
}
|
|
19
|
-
var
|
|
20
|
-
function
|
|
21
|
-
return
|
|
22
|
-
indexOf: function(t,
|
|
23
|
-
var s,
|
|
19
|
+
var Ne, Ve;
|
|
20
|
+
function ht() {
|
|
21
|
+
return Ve || (Ve = 1, Ne = {
|
|
22
|
+
indexOf: function(t, e) {
|
|
23
|
+
var s, o;
|
|
24
24
|
if (Array.prototype.indexOf)
|
|
25
|
-
return t.indexOf(
|
|
26
|
-
for (s = 0,
|
|
27
|
-
if (t[s] ===
|
|
25
|
+
return t.indexOf(e);
|
|
26
|
+
for (s = 0, o = t.length; s < o; s++)
|
|
27
|
+
if (t[s] === e)
|
|
28
28
|
return s;
|
|
29
29
|
return -1;
|
|
30
30
|
},
|
|
31
|
-
forEach: function(t,
|
|
32
|
-
var
|
|
31
|
+
forEach: function(t, e, s) {
|
|
32
|
+
var o, n;
|
|
33
33
|
if (Array.prototype.forEach)
|
|
34
|
-
return t.forEach(
|
|
35
|
-
for (
|
|
36
|
-
|
|
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
37
|
},
|
|
38
38
|
trim: function(t) {
|
|
39
39
|
return String.prototype.trim ? t.trim() : t.replace(/(^\s*)|(\s*$)/g, "");
|
|
@@ -41,131 +41,131 @@ function Je() {
|
|
|
41
41
|
trimRight: function(t) {
|
|
42
42
|
return String.prototype.trimRight ? t.trimRight() : t.replace(/(\s*$)/g, "");
|
|
43
43
|
}
|
|
44
|
-
}),
|
|
44
|
+
}), Ne;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
function
|
|
48
|
-
if (
|
|
49
|
-
|
|
50
|
-
var t =
|
|
51
|
-
function
|
|
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
52
|
s = t.trimRight(s), s[s.length - 1] !== ";" && (s += ";");
|
|
53
|
-
var
|
|
54
|
-
function
|
|
55
|
-
if (!
|
|
56
|
-
var
|
|
57
|
-
if (
|
|
58
|
-
var
|
|
59
|
-
if (
|
|
60
|
-
var
|
|
61
|
-
|
|
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
62
|
}
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
a = l + 1;
|
|
66
66
|
}
|
|
67
|
-
for (;
|
|
68
|
-
var
|
|
69
|
-
if (
|
|
70
|
-
var
|
|
71
|
-
if (
|
|
72
|
-
|
|
73
|
-
} else
|
|
74
|
-
` &&
|
|
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
75
|
}
|
|
76
|
-
return t.trim(
|
|
76
|
+
return t.trim(c);
|
|
77
77
|
}
|
|
78
|
-
return
|
|
78
|
+
return _e = e, _e;
|
|
79
79
|
}
|
|
80
|
-
var
|
|
81
|
-
function
|
|
82
|
-
if (
|
|
83
|
-
|
|
84
|
-
var t =
|
|
85
|
-
|
|
86
|
-
function s(
|
|
87
|
-
return
|
|
88
|
-
}
|
|
89
|
-
function
|
|
90
|
-
var
|
|
91
|
-
for (var
|
|
92
|
-
|
|
93
|
-
return
|
|
94
|
-
}
|
|
95
|
-
function
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
return
|
|
99
|
-
if (
|
|
100
|
-
var
|
|
101
|
-
var
|
|
102
|
-
if (
|
|
103
|
-
var
|
|
104
|
-
position:
|
|
105
|
-
sourcePosition:
|
|
106
|
-
source:
|
|
107
|
-
isWhite:
|
|
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
108
|
};
|
|
109
|
-
if (
|
|
110
|
-
var
|
|
111
|
-
return s(
|
|
109
|
+
if (b) {
|
|
110
|
+
var k = d(w, g, F);
|
|
111
|
+
return s(k) ? w + ":" + g : k;
|
|
112
112
|
} else {
|
|
113
|
-
var
|
|
114
|
-
if (!s(
|
|
115
|
-
return
|
|
113
|
+
var k = m(w, g, F);
|
|
114
|
+
if (!s(k))
|
|
115
|
+
return k;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
|
-
return
|
|
120
|
-
},
|
|
119
|
+
return u;
|
|
120
|
+
}, xe = n, xe;
|
|
121
121
|
}
|
|
122
|
-
var
|
|
123
|
-
function
|
|
124
|
-
return
|
|
125
|
-
var s =
|
|
126
|
-
function a
|
|
127
|
-
var
|
|
128
|
-
return
|
|
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
129
|
}
|
|
130
|
-
|
|
131
|
-
for (var
|
|
130
|
+
e = t.exports = n, e.FilterCSS = o;
|
|
131
|
+
for (var r in s) e[r] = s[r];
|
|
132
132
|
typeof window < "u" && (window.filterCSS = t.exports);
|
|
133
|
-
}(
|
|
133
|
+
}(ve, ve.exports)), ve.exports;
|
|
134
134
|
}
|
|
135
|
-
var
|
|
136
|
-
function
|
|
137
|
-
return
|
|
138
|
-
indexOf: function(t,
|
|
139
|
-
var s,
|
|
135
|
+
var Ye, $e;
|
|
136
|
+
function Be() {
|
|
137
|
+
return $e || ($e = 1, Ye = {
|
|
138
|
+
indexOf: function(t, e) {
|
|
139
|
+
var s, o;
|
|
140
140
|
if (Array.prototype.indexOf)
|
|
141
|
-
return t.indexOf(
|
|
142
|
-
for (s = 0,
|
|
143
|
-
if (t[s] ===
|
|
141
|
+
return t.indexOf(e);
|
|
142
|
+
for (s = 0, o = t.length; s < o; s++)
|
|
143
|
+
if (t[s] === e)
|
|
144
144
|
return s;
|
|
145
145
|
return -1;
|
|
146
146
|
},
|
|
147
|
-
forEach: function(t,
|
|
148
|
-
var
|
|
147
|
+
forEach: function(t, e, s) {
|
|
148
|
+
var o, n;
|
|
149
149
|
if (Array.prototype.forEach)
|
|
150
|
-
return t.forEach(
|
|
151
|
-
for (
|
|
152
|
-
|
|
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
153
|
},
|
|
154
154
|
trim: function(t) {
|
|
155
155
|
return String.prototype.trim ? t.trim() : t.replace(/(^\s*)|(\s*$)/g, "");
|
|
156
156
|
},
|
|
157
157
|
spaceIndex: function(t) {
|
|
158
|
-
var
|
|
158
|
+
var e = /\s|\n|\t/, s = e.exec(t);
|
|
159
159
|
return s ? s.index : -1;
|
|
160
160
|
}
|
|
161
|
-
}),
|
|
161
|
+
}), Ye;
|
|
162
162
|
}
|
|
163
|
-
var
|
|
164
|
-
function
|
|
165
|
-
if (
|
|
166
|
-
|
|
167
|
-
var t =
|
|
168
|
-
function
|
|
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
169
|
return {
|
|
170
170
|
a: ["target", "href", "title"],
|
|
171
171
|
abbr: ["title"],
|
|
@@ -256,332 +256,332 @@ function Ue() {
|
|
|
256
256
|
]
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
|
-
var
|
|
260
|
-
function
|
|
259
|
+
var n = new t();
|
|
260
|
+
function r(h, v, p) {
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function a(h, v, p) {
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function l(h, v, p) {
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function c(h, v, p) {
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
return
|
|
268
|
+
function d(h) {
|
|
269
|
+
return h.replace(i, "<").replace(u, ">");
|
|
270
270
|
}
|
|
271
|
-
function
|
|
272
|
-
if (
|
|
273
|
-
if (
|
|
274
|
-
if (!(
|
|
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
275
|
return "";
|
|
276
|
-
} else if (
|
|
277
|
-
if (
|
|
276
|
+
} else if (v === "background") {
|
|
277
|
+
if (y.lastIndex = 0, y.test(p))
|
|
278
278
|
return "";
|
|
279
|
-
} else if (
|
|
280
|
-
if (
|
|
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
281
|
return "";
|
|
282
|
-
|
|
282
|
+
O !== !1 && (O = O || n, p = O.process(p));
|
|
283
283
|
}
|
|
284
|
-
return
|
|
284
|
+
return p = P(p), p;
|
|
285
285
|
}
|
|
286
|
-
var
|
|
287
|
-
function
|
|
288
|
-
return
|
|
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
289
|
}
|
|
290
|
-
function
|
|
291
|
-
return
|
|
290
|
+
function x(h) {
|
|
291
|
+
return h.replace(_, '"');
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
return
|
|
295
|
-
return
|
|
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
296
|
});
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
return
|
|
298
|
+
function z(h) {
|
|
299
|
+
return h.replace(g, ":").replace(T, " ");
|
|
300
300
|
}
|
|
301
|
-
function
|
|
302
|
-
for (var
|
|
303
|
-
|
|
304
|
-
return s.trim(
|
|
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
305
|
}
|
|
306
|
-
function
|
|
307
|
-
return
|
|
306
|
+
function j(h) {
|
|
307
|
+
return h = x(h), h = M(h), h = z(h), h = V(h), h;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
310
|
-
return
|
|
309
|
+
function P(h) {
|
|
310
|
+
return h = k(h), h = d(h), h;
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function ye() {
|
|
313
313
|
return "";
|
|
314
314
|
}
|
|
315
|
-
function Z(
|
|
316
|
-
typeof
|
|
315
|
+
function Z(h, v) {
|
|
316
|
+
typeof v != "function" && (v = function() {
|
|
317
317
|
});
|
|
318
|
-
var
|
|
319
|
-
function
|
|
320
|
-
return
|
|
318
|
+
var p = !Array.isArray(h);
|
|
319
|
+
function O(U) {
|
|
320
|
+
return p ? !0 : s.indexOf(h, U) !== -1;
|
|
321
321
|
}
|
|
322
|
-
var
|
|
322
|
+
var R = [], B = !1;
|
|
323
323
|
return {
|
|
324
|
-
onIgnoreTag: function(
|
|
325
|
-
if (
|
|
326
|
-
if (
|
|
327
|
-
var
|
|
328
|
-
return
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
]),
|
|
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
332
|
} else
|
|
333
|
-
return
|
|
333
|
+
return B || (B = D.position), "[removed]";
|
|
334
334
|
else
|
|
335
|
-
return
|
|
335
|
+
return v(U, te, D);
|
|
336
336
|
},
|
|
337
|
-
remove: function(
|
|
338
|
-
var
|
|
339
|
-
return s.forEach(
|
|
340
|
-
|
|
341
|
-
}),
|
|
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
342
|
}
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
|
-
function
|
|
346
|
-
for (var
|
|
347
|
-
var
|
|
348
|
-
if (
|
|
349
|
-
|
|
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
350
|
break;
|
|
351
351
|
}
|
|
352
|
-
|
|
353
|
-
var
|
|
354
|
-
if (
|
|
352
|
+
v += h.slice(p, O);
|
|
353
|
+
var R = h.indexOf("-->", O);
|
|
354
|
+
if (R === -1)
|
|
355
355
|
break;
|
|
356
|
-
|
|
356
|
+
p = R + 3;
|
|
357
357
|
}
|
|
358
|
-
return
|
|
358
|
+
return v;
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
var
|
|
362
|
-
return
|
|
363
|
-
var
|
|
364
|
-
return
|
|
365
|
-
}),
|
|
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
366
|
}
|
|
367
|
-
return
|
|
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
368
|
}
|
|
369
|
-
var
|
|
370
|
-
function
|
|
371
|
-
if (
|
|
372
|
-
|
|
373
|
-
var t =
|
|
374
|
-
function
|
|
375
|
-
var
|
|
376
|
-
return
|
|
377
|
-
}
|
|
378
|
-
function s(
|
|
379
|
-
return
|
|
380
|
-
}
|
|
381
|
-
function
|
|
382
|
-
var
|
|
383
|
-
e: for (
|
|
384
|
-
var
|
|
385
|
-
if (
|
|
386
|
-
if (
|
|
387
|
-
|
|
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
388
|
continue;
|
|
389
389
|
}
|
|
390
|
-
} else if (
|
|
391
|
-
if (
|
|
392
|
-
|
|
390
|
+
} else if (T === !1) {
|
|
391
|
+
if (x === "<") {
|
|
392
|
+
_ += f(i.slice(w, y)), g = y, w = y;
|
|
393
393
|
continue;
|
|
394
394
|
}
|
|
395
|
-
if (
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
s(
|
|
402
|
-
),
|
|
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
403
|
continue;
|
|
404
404
|
}
|
|
405
|
-
if (
|
|
406
|
-
for (var
|
|
407
|
-
if (
|
|
408
|
-
|
|
405
|
+
if (x === '"' || x === "'")
|
|
406
|
+
for (var M = 1, z = i.charAt(y - M); z.trim() === "" || z === "="; ) {
|
|
407
|
+
if (z === "=") {
|
|
408
|
+
T = x;
|
|
409
409
|
continue e;
|
|
410
410
|
}
|
|
411
|
-
|
|
411
|
+
z = i.charAt(y - ++M);
|
|
412
412
|
}
|
|
413
|
-
} else if (
|
|
414
|
-
|
|
413
|
+
} else if (x === T) {
|
|
414
|
+
T = !1;
|
|
415
415
|
continue;
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
return
|
|
419
|
-
}
|
|
420
|
-
var
|
|
421
|
-
function
|
|
422
|
-
var
|
|
423
|
-
function
|
|
424
|
-
if (
|
|
425
|
-
var
|
|
426
|
-
|
|
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
427
|
}
|
|
428
428
|
}
|
|
429
|
-
for (var
|
|
430
|
-
var
|
|
431
|
-
if (
|
|
432
|
-
|
|
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
433
|
continue;
|
|
434
434
|
}
|
|
435
|
-
if (
|
|
436
|
-
if (
|
|
435
|
+
if (g !== !1 && b === _) {
|
|
436
|
+
if (x = i.indexOf(F, b + 1), x === -1)
|
|
437
437
|
break;
|
|
438
|
-
|
|
438
|
+
k = t.trim(i.slice(_ + 1, x)), y(g, k), g = !1, b = x, f = b + 1;
|
|
439
439
|
continue;
|
|
440
440
|
}
|
|
441
|
-
if (/\s|\n|\t/.test(
|
|
442
|
-
if (
|
|
443
|
-
if (
|
|
444
|
-
|
|
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
445
|
continue;
|
|
446
446
|
} else {
|
|
447
|
-
|
|
447
|
+
b = x - 1;
|
|
448
448
|
continue;
|
|
449
449
|
}
|
|
450
|
-
else if (
|
|
451
|
-
|
|
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
452
|
continue;
|
|
453
453
|
} else
|
|
454
454
|
continue;
|
|
455
455
|
}
|
|
456
|
-
return
|
|
456
|
+
return f < i.length && (g === !1 ? y(i.slice(f)) : y(g, m(t.trim(i.slice(f))))), t.trim(w.join(" "));
|
|
457
457
|
}
|
|
458
|
-
function
|
|
459
|
-
for (;
|
|
460
|
-
var
|
|
461
|
-
if (
|
|
462
|
-
return
|
|
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
463
|
}
|
|
464
464
|
}
|
|
465
|
-
function
|
|
466
|
-
for (;
|
|
467
|
-
var
|
|
468
|
-
if (
|
|
469
|
-
return
|
|
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
470
|
}
|
|
471
471
|
}
|
|
472
|
-
function
|
|
473
|
-
for (;
|
|
474
|
-
var
|
|
475
|
-
if (
|
|
476
|
-
return
|
|
472
|
+
function c(i, u) {
|
|
473
|
+
for (; u > 0; u--) {
|
|
474
|
+
var f = i[u];
|
|
475
|
+
if (f !== " ")
|
|
476
|
+
return f === "=" ? u : -1;
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
function
|
|
480
|
-
return
|
|
479
|
+
function d(i) {
|
|
480
|
+
return i[0] === '"' && i[i.length - 1] === '"' || i[0] === "'" && i[i.length - 1] === "'";
|
|
481
481
|
}
|
|
482
|
-
function
|
|
483
|
-
return
|
|
482
|
+
function m(i) {
|
|
483
|
+
return d(i) ? i.substr(1, i.length - 2) : i;
|
|
484
484
|
}
|
|
485
|
-
return
|
|
485
|
+
return le.parseTag = o, le.parseAttr = r, le;
|
|
486
486
|
}
|
|
487
|
-
var
|
|
488
|
-
function
|
|
489
|
-
if (
|
|
490
|
-
|
|
491
|
-
var t =
|
|
492
|
-
function
|
|
493
|
-
return
|
|
494
|
-
}
|
|
495
|
-
function
|
|
496
|
-
var
|
|
497
|
-
if (
|
|
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
498
|
return {
|
|
499
499
|
html: "",
|
|
500
|
-
closing:
|
|
500
|
+
closing: i[i.length - 2] === "/"
|
|
501
501
|
};
|
|
502
|
-
|
|
503
|
-
var
|
|
504
|
-
return
|
|
505
|
-
html:
|
|
506
|
-
closing:
|
|
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
507
|
};
|
|
508
508
|
}
|
|
509
|
-
function
|
|
510
|
-
var
|
|
511
|
-
for (var
|
|
512
|
-
|
|
513
|
-
return
|
|
514
|
-
}
|
|
515
|
-
function
|
|
516
|
-
var
|
|
517
|
-
for (var
|
|
518
|
-
Array.isArray(
|
|
519
|
-
return
|
|
520
|
-
}) :
|
|
521
|
-
return
|
|
522
|
-
}
|
|
523
|
-
function
|
|
524
|
-
|
|
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
525
|
'Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'
|
|
526
|
-
),
|
|
527
|
-
}
|
|
528
|
-
return
|
|
529
|
-
if (
|
|
530
|
-
var
|
|
531
|
-
|
|
532
|
-
var
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
),
|
|
537
|
-
var
|
|
538
|
-
|
|
539
|
-
function(
|
|
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
540
|
var Z = {
|
|
541
|
-
sourcePosition:
|
|
542
|
-
position:
|
|
543
|
-
isClosing:
|
|
544
|
-
isWhite: Object.prototype.hasOwnProperty.call(
|
|
545
|
-
},
|
|
546
|
-
if (!
|
|
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
547
|
if (Z.isWhite) {
|
|
548
548
|
if (Z.isClosing)
|
|
549
|
-
return "</" +
|
|
550
|
-
var
|
|
551
|
-
var
|
|
552
|
-
return
|
|
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
553
|
});
|
|
554
|
-
return
|
|
554
|
+
return P = "<" + j, v && (P += " " + v), ae.closing && (P += " /"), P += ">", P;
|
|
555
555
|
} else
|
|
556
|
-
return
|
|
556
|
+
return q = g(j, P, Z), a(q) ? F(P) : q;
|
|
557
557
|
},
|
|
558
|
-
|
|
558
|
+
F
|
|
559
559
|
);
|
|
560
|
-
return
|
|
561
|
-
},
|
|
560
|
+
return x && (M = x.remove(M)), M;
|
|
561
|
+
}, ke = m, ke;
|
|
562
562
|
}
|
|
563
|
-
var
|
|
564
|
-
function
|
|
565
|
-
return
|
|
566
|
-
var s =
|
|
567
|
-
function
|
|
568
|
-
var
|
|
569
|
-
return
|
|
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
570
|
}
|
|
571
|
-
|
|
572
|
-
for (var
|
|
573
|
-
|
|
574
|
-
for (var
|
|
575
|
-
|
|
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
576
|
}(), typeof window < "u" && (window.filterXSS = t.exports);
|
|
577
|
-
function
|
|
577
|
+
function a() {
|
|
578
578
|
return typeof self < "u" && typeof DedicatedWorkerGlobalScope < "u" && self instanceof DedicatedWorkerGlobalScope;
|
|
579
579
|
}
|
|
580
|
-
|
|
581
|
-
}(
|
|
580
|
+
a() && (self.filterXSS = t.exports);
|
|
581
|
+
}(we, we.exports)), we.exports;
|
|
582
582
|
}
|
|
583
|
-
var
|
|
584
|
-
let
|
|
583
|
+
var Me = Zt();
|
|
584
|
+
let Ie = {
|
|
585
585
|
html: {
|
|
586
586
|
whiteList: {
|
|
587
587
|
a: ["class", "style", "contenteditable", "data-id", "data-title", "data-size", "href", "data-last-modified"],
|
|
@@ -670,603 +670,703 @@ let ke = {
|
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
672
|
};
|
|
673
|
-
const
|
|
674
|
-
|
|
675
|
-
new
|
|
676
|
-
const
|
|
677
|
-
|
|
678
|
-
|
|
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 = () => {
|
|
679
696
|
let t = 8;
|
|
680
697
|
return document.addEventListener && window.performance && (t = 9, window.atob && window.matchMedia && (t = 10, !window.attachEvent && !document.all && (t = 11))), t;
|
|
681
|
-
},
|
|
698
|
+
}, rr = (t) => {
|
|
682
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);
|
|
683
700
|
};
|
|
684
701
|
(() => {
|
|
685
|
-
if (
|
|
702
|
+
if (S) return null;
|
|
686
703
|
const t = {
|
|
687
704
|
name: "",
|
|
688
705
|
version: 0,
|
|
689
706
|
isDoc: typeof document < "u",
|
|
690
707
|
isMobile: !1,
|
|
691
708
|
isPC: !0,
|
|
692
|
-
isNode:
|
|
709
|
+
isNode: S,
|
|
693
710
|
chrome: !1,
|
|
694
711
|
ie: !1,
|
|
695
712
|
firefox: !1,
|
|
696
713
|
safari: !1,
|
|
697
714
|
opera: !1,
|
|
698
715
|
edge: !1
|
|
699
|
-
},
|
|
700
|
-
t.isMobile =
|
|
716
|
+
}, e = /(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent);
|
|
717
|
+
t.isMobile = e, t.isPC = !e;
|
|
701
718
|
let s;
|
|
702
|
-
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 =
|
|
703
|
-
const
|
|
704
|
-
s = navigator.userAgent.match(new RegExp(
|
|
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;
|
|
705
722
|
}
|
|
706
723
|
if (t.isDoc) {
|
|
707
|
-
const
|
|
708
|
-
["webkit", "khtml", "moz", "ms", "o"].forEach((
|
|
709
|
-
t["-" +
|
|
724
|
+
const o = document.body || document.documentElement;
|
|
725
|
+
["webkit", "khtml", "moz", "ms", "o"].forEach((n) => {
|
|
726
|
+
t["-" + n] = !!o[n + "MatchesSelector"];
|
|
710
727
|
});
|
|
711
728
|
}
|
|
712
729
|
return t;
|
|
713
730
|
})();
|
|
714
|
-
const
|
|
715
|
-
t &&
|
|
716
|
-
},
|
|
717
|
-
t &&
|
|
718
|
-
},
|
|
719
|
-
t &&
|
|
720
|
-
},
|
|
721
|
-
!t || !
|
|
722
|
-
},
|
|
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() {
|
|
723
753
|
if (typeof Map < "u")
|
|
724
754
|
return Map;
|
|
725
|
-
const t = (
|
|
726
|
-
let
|
|
727
|
-
return
|
|
755
|
+
const t = (e, s) => {
|
|
756
|
+
let o = -1;
|
|
757
|
+
return e.some((n, r) => n[0] === s ? (o = r, !0) : !1), o;
|
|
728
758
|
};
|
|
729
759
|
return function() {
|
|
730
|
-
function
|
|
760
|
+
function e() {
|
|
731
761
|
this.__entries__ = [];
|
|
732
762
|
}
|
|
733
|
-
return Object.defineProperty(
|
|
763
|
+
return Object.defineProperty(e.prototype, "size", {
|
|
734
764
|
get() {
|
|
735
765
|
return this.__entries__.length;
|
|
736
766
|
},
|
|
737
767
|
enumerable: !0,
|
|
738
768
|
configurable: !0
|
|
739
|
-
}),
|
|
740
|
-
const
|
|
741
|
-
return
|
|
742
|
-
},
|
|
743
|
-
const
|
|
744
|
-
~
|
|
745
|
-
},
|
|
746
|
-
const
|
|
747
|
-
~
|
|
748
|
-
},
|
|
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() {
|
|
749
779
|
this.__entries__.splice(0);
|
|
750
|
-
},
|
|
780
|
+
}, e.prototype.has = function(s) {
|
|
751
781
|
return !!~t(this.__entries__, s);
|
|
752
|
-
},
|
|
753
|
-
|
|
754
|
-
for (let
|
|
755
|
-
const
|
|
756
|
-
s.call(
|
|
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]);
|
|
757
787
|
}
|
|
758
|
-
},
|
|
788
|
+
}, e;
|
|
759
789
|
}();
|
|
760
|
-
}(),
|
|
761
|
-
const t = (
|
|
762
|
-
return typeof global < "u" && t(global) ? global : typeof self < "u" && t(self) ? self : typeof window < "u" && t(window) ? window :
|
|
763
|
-
}(),
|
|
764
|
-
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(
|
|
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) {
|
|
765
795
|
return setTimeout(() => t(Date.now()), 1e3 / 60);
|
|
766
796
|
};
|
|
767
797
|
}();
|
|
768
|
-
let
|
|
769
|
-
function
|
|
770
|
-
let s = !1,
|
|
771
|
-
const
|
|
772
|
-
s && (s = !1, t()),
|
|
773
|
-
},
|
|
774
|
-
|
|
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);
|
|
775
805
|
};
|
|
776
|
-
return
|
|
777
|
-
const
|
|
806
|
+
return r = () => {
|
|
807
|
+
const c = Date.now();
|
|
778
808
|
if (s) {
|
|
779
|
-
if (
|
|
809
|
+
if (c - n < nr)
|
|
780
810
|
return;
|
|
781
|
-
|
|
811
|
+
o = !0;
|
|
782
812
|
} else
|
|
783
|
-
s = !0,
|
|
784
|
-
|
|
785
|
-
},
|
|
813
|
+
s = !0, o = !1, setTimeout(l, e);
|
|
814
|
+
n = c;
|
|
815
|
+
}, r;
|
|
786
816
|
}
|
|
787
|
-
const
|
|
817
|
+
const ar = 20, lr = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], fr = typeof MutationObserver < "u", cr = function() {
|
|
788
818
|
function t() {
|
|
789
|
-
this.observers_ = [], this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh =
|
|
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);
|
|
790
820
|
}
|
|
791
|
-
return t.prototype.addObserver = function(
|
|
792
|
-
!~this.observers_.indexOf(
|
|
793
|
-
}, t.prototype.removeObserver = function(
|
|
794
|
-
const s = this.observers_,
|
|
795
|
-
~
|
|
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_();
|
|
796
826
|
}, t.prototype.refresh = function() {
|
|
797
827
|
this.updateObservers_() && this.refresh();
|
|
798
828
|
}, t.prototype.updateObservers_ = function() {
|
|
799
|
-
const
|
|
800
|
-
return
|
|
829
|
+
const e = this.observers_.filter((s) => (s.gatherActive(), s.hasActive()));
|
|
830
|
+
return e.forEach((s) => s.broadcastActive()), e.length > 0;
|
|
801
831
|
}, t.prototype.connect_ = function() {
|
|
802
|
-
if (!(
|
|
803
|
-
if (
|
|
832
|
+
if (!(S || this.connected_)) {
|
|
833
|
+
if (L(document, "transitionend", this.onTransitionEnd_), L(window, "resize", this.refresh), fr) {
|
|
804
834
|
this.mutationsObserver_ = new MutationObserver(this.refresh);
|
|
805
|
-
const
|
|
835
|
+
const e = {
|
|
806
836
|
attributes: !0,
|
|
807
837
|
childList: !0,
|
|
808
838
|
characterData: !0,
|
|
809
839
|
subtree: !0
|
|
810
840
|
};
|
|
811
|
-
this.mutationsObserver_.observe(document,
|
|
841
|
+
this.mutationsObserver_.observe(document, e);
|
|
812
842
|
} else
|
|
813
|
-
|
|
843
|
+
L(document, "DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0;
|
|
814
844
|
this.connected_ = !0;
|
|
815
845
|
}
|
|
816
846
|
}, t.prototype.disconnect_ = function() {
|
|
817
|
-
|
|
818
|
-
}, t.prototype.onTransitionEnd_ = function(
|
|
819
|
-
const s =
|
|
820
|
-
|
|
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();
|
|
821
851
|
}, t.getInstance = function() {
|
|
822
852
|
return this._instance || (this._instance = new t()), this._instance;
|
|
823
853
|
}, t._instance = null, t;
|
|
824
|
-
}(),
|
|
825
|
-
for (let s = 0,
|
|
826
|
-
const
|
|
827
|
-
Object.defineProperty(t,
|
|
828
|
-
value:
|
|
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],
|
|
829
859
|
configurable: !0,
|
|
830
860
|
writable: !1,
|
|
831
861
|
enumerable: !1
|
|
832
862
|
});
|
|
833
863
|
}
|
|
834
864
|
return t;
|
|
835
|
-
},
|
|
836
|
-
return { x: t, y:
|
|
837
|
-
},
|
|
838
|
-
return t && t.ownerDocument && t.ownerDocument.defaultView ||
|
|
839
|
-
},
|
|
840
|
-
let
|
|
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 = [];
|
|
841
871
|
for (let s = 1; s < arguments.length; s++)
|
|
842
|
-
|
|
843
|
-
return
|
|
844
|
-
const
|
|
845
|
-
return 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);
|
|
846
876
|
}, 0);
|
|
847
|
-
},
|
|
848
|
-
const
|
|
877
|
+
}, ur = function(t) {
|
|
878
|
+
const e = ["top", "right", "bottom", "left"];
|
|
849
879
|
let s = {};
|
|
850
|
-
for (let
|
|
851
|
-
const
|
|
852
|
-
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);
|
|
853
883
|
}
|
|
854
884
|
return s;
|
|
855
|
-
},
|
|
856
|
-
const
|
|
857
|
-
return
|
|
858
|
-
},
|
|
859
|
-
return t ===
|
|
860
|
-
},
|
|
861
|
-
const
|
|
862
|
-
if (!s && !
|
|
863
|
-
return
|
|
864
|
-
const
|
|
865
|
-
let
|
|
866
|
-
if (
|
|
867
|
-
const
|
|
868
|
-
Math.abs(
|
|
869
|
-
}
|
|
870
|
-
return
|
|
871
|
-
},
|
|
872
|
-
return typeof SVGGraphicsElement < "u" ? (t) => t instanceof
|
|
873
|
-
}(),
|
|
874
|
-
return
|
|
875
|
-
},
|
|
876
|
-
const
|
|
877
|
-
return
|
|
878
|
-
x:
|
|
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,
|
|
879
909
|
y: s,
|
|
880
|
-
width:
|
|
881
|
-
height:
|
|
910
|
+
width: o,
|
|
911
|
+
height: n,
|
|
882
912
|
top: s,
|
|
883
|
-
right:
|
|
884
|
-
bottom:
|
|
885
|
-
left:
|
|
886
|
-
}),
|
|
887
|
-
},
|
|
888
|
-
function t(
|
|
889
|
-
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ =
|
|
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;
|
|
890
920
|
}
|
|
891
921
|
return t.prototype.broadcastRect = function() {
|
|
892
|
-
const
|
|
893
|
-
return this.broadcastWidth =
|
|
922
|
+
const e = this.contentRect_;
|
|
923
|
+
return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
|
|
894
924
|
}, t.prototype.isActive = function() {
|
|
895
|
-
const
|
|
896
|
-
return this.contentRect_ =
|
|
925
|
+
const e = gr(this.target);
|
|
926
|
+
return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
|
|
897
927
|
}, t;
|
|
898
|
-
}(),
|
|
899
|
-
function t(
|
|
900
|
-
const
|
|
901
|
-
|
|
928
|
+
}(), wr = /* @__PURE__ */ function() {
|
|
929
|
+
function t(e, s) {
|
|
930
|
+
const o = br(s);
|
|
931
|
+
kt(this, { target: e, contentRect: o });
|
|
902
932
|
}
|
|
903
933
|
return t;
|
|
904
|
-
}(),
|
|
905
|
-
function t(
|
|
906
|
-
if (this.observations_ = new
|
|
934
|
+
}(), vr = function() {
|
|
935
|
+
function t(e, s, o) {
|
|
936
|
+
if (this.observations_ = new xt(), this.activeObservations_ = [], typeof e != "function")
|
|
907
937
|
throw new TypeError("[TINY-Resize] The callback provided as parameter 1 is not a function.");
|
|
908
|
-
this.callback_ =
|
|
938
|
+
this.callback_ = e, this.controller_ = s, this.callbackCtx_ = o;
|
|
909
939
|
}
|
|
910
|
-
return t.prototype.observe = function(
|
|
940
|
+
return t.prototype.observe = function(e) {
|
|
911
941
|
if (!arguments.length)
|
|
912
942
|
throw new TypeError("[TINY-Resize] 1 argument required, but only 0 present.");
|
|
913
943
|
if (typeof Element > "u" || !(Element instanceof Object))
|
|
914
944
|
return;
|
|
915
|
-
if (!(
|
|
945
|
+
if (!(e instanceof ee(e).Element))
|
|
916
946
|
throw new TypeError('[TINY-Resize] parameter 1 is not of type "Element".');
|
|
917
947
|
const s = this.observations_;
|
|
918
|
-
s.has(
|
|
919
|
-
}, t.prototype.unobserve = function(
|
|
948
|
+
s.has(e) || (s.set(e, new yr(e)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
949
|
+
}, t.prototype.unobserve = function(e) {
|
|
920
950
|
if (!arguments.length)
|
|
921
951
|
throw new TypeError("[TINY-Resize]1 argument required, but only 0 present.");
|
|
922
952
|
if (typeof Element > "u" || !(Element instanceof Object))
|
|
923
953
|
return;
|
|
924
|
-
if (!(
|
|
954
|
+
if (!(e instanceof ee(e).Element))
|
|
925
955
|
throw new TypeError('[TINY-Resize] parameter 1 is not of type "Element".');
|
|
926
956
|
const s = this.observations_;
|
|
927
|
-
s.has(
|
|
957
|
+
s.has(e) && (s.delete(e), !s.size && this.controller_.removeObserver(this));
|
|
928
958
|
}, t.prototype.gatherActive = function() {
|
|
929
|
-
const
|
|
959
|
+
const e = this;
|
|
930
960
|
this.clearActive(), this.observations_.forEach((s) => {
|
|
931
|
-
s.isActive() &&
|
|
961
|
+
s.isActive() && e.activeObservations_.push(s);
|
|
932
962
|
});
|
|
933
963
|
}, t.prototype.disconnect = function() {
|
|
934
964
|
this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
|
|
935
965
|
}, t.prototype.broadcastActive = function() {
|
|
936
966
|
if (!this.hasActive())
|
|
937
967
|
return;
|
|
938
|
-
const
|
|
939
|
-
(
|
|
968
|
+
const e = this.callbackCtx_, s = this.activeObservations_.map(
|
|
969
|
+
(o) => new wr(o.target, o.broadcastRect())
|
|
940
970
|
);
|
|
941
|
-
this.callback_.call(
|
|
971
|
+
this.callback_.call(e, s, e), this.clearActive();
|
|
942
972
|
}, t.prototype.hasActive = function() {
|
|
943
973
|
return this.activeObservations_.length > 0;
|
|
944
974
|
}, t.prototype.clearActive = function() {
|
|
945
975
|
this.activeObservations_.splice(0);
|
|
946
976
|
}, t;
|
|
947
|
-
}(),
|
|
948
|
-
function t(
|
|
977
|
+
}(), Et = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new xt(), St = /* @__PURE__ */ function() {
|
|
978
|
+
function t(e) {
|
|
949
979
|
if (!(this instanceof t))
|
|
950
980
|
throw new TypeError("[TINY-Resize] Cannot call a class as a function.");
|
|
951
981
|
if (!arguments.length)
|
|
952
982
|
throw new TypeError("[TINY-Resize] 1 argument required, but only 0 present.");
|
|
953
|
-
const s =
|
|
954
|
-
|
|
983
|
+
const s = cr.getInstance(), o = new vr(e, s, this);
|
|
984
|
+
Et.set(this, o);
|
|
955
985
|
}
|
|
956
986
|
return t;
|
|
957
987
|
}();
|
|
958
988
|
["observe", "unobserve", "disconnect"].forEach((t) => {
|
|
959
|
-
|
|
960
|
-
let
|
|
961
|
-
return (
|
|
989
|
+
St.prototype[t] = function() {
|
|
990
|
+
let e;
|
|
991
|
+
return (e = Et.get(this))[t].apply(e, arguments);
|
|
962
992
|
};
|
|
963
993
|
});
|
|
964
994
|
(function() {
|
|
965
|
-
return typeof
|
|
995
|
+
return typeof me.ResizeObserver < "u" ? me.ResizeObserver : St;
|
|
966
996
|
})();
|
|
967
|
-
const
|
|
968
|
-
|
|
969
|
-
function
|
|
970
|
-
return !
|
|
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;
|
|
971
1001
|
}
|
|
972
|
-
function
|
|
973
|
-
if (
|
|
1002
|
+
function kr(t) {
|
|
1003
|
+
if (xr(t)) {
|
|
974
1004
|
t.crypto = t.msCrypto;
|
|
975
|
-
const
|
|
1005
|
+
const e = t.crypto.getRandomValues;
|
|
976
1006
|
t.crypto.getRandomValues = function(s) {
|
|
977
|
-
const
|
|
978
|
-
for (let
|
|
979
|
-
|
|
980
|
-
return
|
|
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;
|
|
981
1011
|
};
|
|
982
1012
|
}
|
|
983
1013
|
}
|
|
984
|
-
const
|
|
985
|
-
|
|
986
|
-
|
|
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 = {
|
|
987
1087
|
Escape: 27
|
|
988
|
-
},
|
|
1088
|
+
}, At = {
|
|
989
1089
|
fullMonths: "January,February,March,April,May,June,July,August,September,October,November,December".split(","),
|
|
990
1090
|
fullWeeks: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
|
|
991
|
-
},
|
|
992
|
-
},
|
|
1091
|
+
}, De = ["\\d\\d?", "\\d{3}", "\\d{4}"], N = De[0], Pr = De[1], zr = De[2], se = "[^\\s]+", tt = () => {
|
|
1092
|
+
}, Tt = (t, e) => {
|
|
993
1093
|
let s = [];
|
|
994
|
-
for (let
|
|
995
|
-
s.push(t[
|
|
1094
|
+
for (let o = 0, n = t.length; o < n; o++)
|
|
1095
|
+
s.push(t[o].substr(0, e));
|
|
996
1096
|
return s;
|
|
997
|
-
},
|
|
998
|
-
const
|
|
999
|
-
~
|
|
1000
|
-
},
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
const
|
|
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 = {
|
|
1004
1104
|
d: [
|
|
1005
|
-
|
|
1006
|
-
(t,
|
|
1007
|
-
t.day =
|
|
1105
|
+
N,
|
|
1106
|
+
(t, e) => {
|
|
1107
|
+
t.day = e;
|
|
1008
1108
|
}
|
|
1009
1109
|
],
|
|
1010
1110
|
Do: [
|
|
1011
|
-
|
|
1012
|
-
(t,
|
|
1013
|
-
t.day = parseInt(
|
|
1111
|
+
N + se,
|
|
1112
|
+
(t, e) => {
|
|
1113
|
+
t.day = parseInt(e, 10);
|
|
1014
1114
|
}
|
|
1015
1115
|
],
|
|
1016
1116
|
M: [
|
|
1017
|
-
|
|
1018
|
-
(t,
|
|
1019
|
-
t.month =
|
|
1117
|
+
N,
|
|
1118
|
+
(t, e) => {
|
|
1119
|
+
t.month = e - 1;
|
|
1020
1120
|
}
|
|
1021
1121
|
],
|
|
1022
1122
|
yy: [
|
|
1023
|
-
|
|
1024
|
-
(t,
|
|
1123
|
+
N,
|
|
1124
|
+
(t, e) => {
|
|
1025
1125
|
const s = Number(String((/* @__PURE__ */ new Date()).getFullYear()).substr(0, 2));
|
|
1026
|
-
t.year = String(
|
|
1126
|
+
t.year = String(e > 68 ? s - 1 : s) + e;
|
|
1027
1127
|
}
|
|
1028
1128
|
],
|
|
1029
1129
|
h: [
|
|
1030
|
-
|
|
1031
|
-
(t,
|
|
1032
|
-
t.hour =
|
|
1130
|
+
N,
|
|
1131
|
+
(t, e) => {
|
|
1132
|
+
t.hour = e;
|
|
1033
1133
|
}
|
|
1034
1134
|
],
|
|
1035
1135
|
m: [
|
|
1036
|
-
|
|
1037
|
-
(t,
|
|
1038
|
-
t.minute =
|
|
1136
|
+
N,
|
|
1137
|
+
(t, e) => {
|
|
1138
|
+
t.minute = e;
|
|
1039
1139
|
}
|
|
1040
1140
|
],
|
|
1041
1141
|
s: [
|
|
1042
|
-
|
|
1043
|
-
(t,
|
|
1044
|
-
t.second =
|
|
1142
|
+
N,
|
|
1143
|
+
(t, e) => {
|
|
1144
|
+
t.second = e;
|
|
1045
1145
|
}
|
|
1046
1146
|
],
|
|
1047
1147
|
yyyy: [
|
|
1048
|
-
|
|
1049
|
-
(t,
|
|
1050
|
-
t.year =
|
|
1148
|
+
zr,
|
|
1149
|
+
(t, e) => {
|
|
1150
|
+
t.year = e;
|
|
1051
1151
|
}
|
|
1052
1152
|
],
|
|
1053
1153
|
S: [
|
|
1054
1154
|
"\\d",
|
|
1055
|
-
(t,
|
|
1056
|
-
t.millisecond =
|
|
1155
|
+
(t, e) => {
|
|
1156
|
+
t.millisecond = e * 100;
|
|
1057
1157
|
}
|
|
1058
1158
|
],
|
|
1059
1159
|
SS: [
|
|
1060
1160
|
"\\d{2}",
|
|
1061
|
-
(t,
|
|
1062
|
-
t.millisecond =
|
|
1161
|
+
(t, e) => {
|
|
1162
|
+
t.millisecond = e * 10;
|
|
1063
1163
|
}
|
|
1064
1164
|
],
|
|
1065
1165
|
SSS: [
|
|
1066
|
-
|
|
1067
|
-
(t,
|
|
1068
|
-
t.millisecond =
|
|
1166
|
+
Pr,
|
|
1167
|
+
(t, e) => {
|
|
1168
|
+
t.millisecond = e;
|
|
1069
1169
|
}
|
|
1070
1170
|
],
|
|
1071
|
-
D: [
|
|
1072
|
-
ddd: [
|
|
1073
|
-
MMM: [
|
|
1074
|
-
MMMM: [
|
|
1171
|
+
D: [N, tt],
|
|
1172
|
+
ddd: [se, tt],
|
|
1173
|
+
MMM: [se, rt("monthNamesShort")],
|
|
1174
|
+
MMMM: [se, rt("monthNames")],
|
|
1075
1175
|
a: [
|
|
1076
|
-
|
|
1077
|
-
(t,
|
|
1078
|
-
const
|
|
1079
|
-
|
|
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);
|
|
1080
1180
|
}
|
|
1081
1181
|
],
|
|
1082
1182
|
ZZ: [
|
|
1083
1183
|
"[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",
|
|
1084
|
-
(t,
|
|
1085
|
-
let s = String(
|
|
1086
|
-
s && (
|
|
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);
|
|
1087
1187
|
}
|
|
1088
1188
|
]
|
|
1089
|
-
},
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
t === "MM" ?
|
|
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()];
|
|
1093
1193
|
});
|
|
1094
|
-
const
|
|
1095
|
-
},
|
|
1096
|
-
return
|
|
1194
|
+
const vs = () => {
|
|
1195
|
+
}, Dr = function() {
|
|
1196
|
+
return S ? function(t) {
|
|
1097
1197
|
setTimeout(() => t(Date.now()), 1e3 / 60);
|
|
1098
1198
|
} : window.requestAnimationFrame.bind(window);
|
|
1099
|
-
}(),
|
|
1100
|
-
t.scheduled || (t.scheduled = !0, t.raf(
|
|
1101
|
-
},
|
|
1102
|
-
const { reads:
|
|
1103
|
-
let
|
|
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;
|
|
1104
1204
|
try {
|
|
1105
|
-
t.runTasks(
|
|
1106
|
-
} catch (
|
|
1107
|
-
|
|
1205
|
+
t.runTasks(e), t.runTasks(s);
|
|
1206
|
+
} catch (n) {
|
|
1207
|
+
o = n;
|
|
1108
1208
|
}
|
|
1109
|
-
if (t.scheduled = !1, (
|
|
1209
|
+
if (t.scheduled = !1, (e.length || s.length) && Ce(t), o)
|
|
1110
1210
|
if (t.catch)
|
|
1111
|
-
t.catch(
|
|
1211
|
+
t.catch(o);
|
|
1112
1212
|
else
|
|
1113
|
-
throw
|
|
1114
|
-
},
|
|
1115
|
-
const s = t.indexOf(
|
|
1213
|
+
throw o;
|
|
1214
|
+
}, st = (t, e) => {
|
|
1215
|
+
const s = t.indexOf(e);
|
|
1116
1216
|
return !!~s && !!t.splice(s, 1);
|
|
1117
|
-
},
|
|
1118
|
-
for (let s in
|
|
1119
|
-
Object.hasOwnProperty.call(
|
|
1217
|
+
}, Wr = (t, e) => {
|
|
1218
|
+
for (let s in e)
|
|
1219
|
+
Object.hasOwnProperty.call(e, s) && (t[s] = e[s]);
|
|
1120
1220
|
};
|
|
1121
|
-
class
|
|
1221
|
+
class Nr {
|
|
1122
1222
|
constructor() {
|
|
1123
|
-
this.reads = [], this.writes = [], this.raf =
|
|
1223
|
+
this.reads = [], this.writes = [], this.raf = Dr.bind(window);
|
|
1124
1224
|
}
|
|
1125
|
-
runTasks(
|
|
1225
|
+
runTasks(e) {
|
|
1126
1226
|
let s;
|
|
1127
|
-
for (; s =
|
|
1227
|
+
for (; s = e.shift(); ) s();
|
|
1128
1228
|
}
|
|
1129
|
-
measure(
|
|
1130
|
-
const
|
|
1131
|
-
return this.reads.push(
|
|
1229
|
+
measure(e, s) {
|
|
1230
|
+
const o = s ? e.bind(s) : e;
|
|
1231
|
+
return this.reads.push(o), Ce(this), o;
|
|
1132
1232
|
}
|
|
1133
|
-
mutate(
|
|
1134
|
-
const
|
|
1135
|
-
return this.writes.push(
|
|
1233
|
+
mutate(e, s) {
|
|
1234
|
+
const o = s ? e.bind(s) : e;
|
|
1235
|
+
return this.writes.push(o), Ce(this), o;
|
|
1136
1236
|
}
|
|
1137
|
-
clear(
|
|
1138
|
-
return
|
|
1237
|
+
clear(e) {
|
|
1238
|
+
return st(this.reads, e) || st(this.writes, e);
|
|
1139
1239
|
}
|
|
1140
|
-
extend(
|
|
1141
|
-
if (!
|
|
1240
|
+
extend(e) {
|
|
1241
|
+
if (!e || typeof e != "object") throw new Error("[TINY][FastDom] expected object");
|
|
1142
1242
|
const s = Object.create(this);
|
|
1143
|
-
return
|
|
1243
|
+
return Wr(s, e), s.fastdom = this, s.initialize && s.initialize(), s;
|
|
1144
1244
|
}
|
|
1145
1245
|
}
|
|
1146
|
-
const
|
|
1147
|
-
const
|
|
1148
|
-
let
|
|
1149
|
-
const
|
|
1150
|
-
|
|
1151
|
-
|
|
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);
|
|
1152
1252
|
try {
|
|
1153
|
-
|
|
1154
|
-
} catch (
|
|
1155
|
-
|
|
1253
|
+
c(o ? s.call(o) : s());
|
|
1254
|
+
} catch (m) {
|
|
1255
|
+
d(m);
|
|
1156
1256
|
}
|
|
1157
|
-
},
|
|
1257
|
+
}, o);
|
|
1158
1258
|
});
|
|
1159
|
-
return
|
|
1160
|
-
},
|
|
1259
|
+
return n.set(l, a), l;
|
|
1260
|
+
}, Vr = {
|
|
1161
1261
|
initialize() {
|
|
1162
1262
|
this._tasks = /* @__PURE__ */ new Map();
|
|
1163
1263
|
},
|
|
1164
|
-
mutate(t,
|
|
1165
|
-
return
|
|
1264
|
+
mutate(t, e) {
|
|
1265
|
+
return ot(this, "mutate", t, e);
|
|
1166
1266
|
},
|
|
1167
|
-
measure(t,
|
|
1168
|
-
return
|
|
1267
|
+
measure(t, e) {
|
|
1268
|
+
return ot(this, "measure", t, e);
|
|
1169
1269
|
},
|
|
1170
1270
|
clear(t) {
|
|
1171
|
-
const
|
|
1172
|
-
this.fastdom.clear(s),
|
|
1271
|
+
const e = this._tasks, s = e.get(t);
|
|
1272
|
+
this.fastdom.clear(s), e.delete(t);
|
|
1173
1273
|
}
|
|
1174
1274
|
};
|
|
1175
|
-
|
|
1176
|
-
const
|
|
1177
|
-
let s =
|
|
1275
|
+
Mt.extend(Vr);
|
|
1276
|
+
const qr = (t, e) => {
|
|
1277
|
+
let s = e.length;
|
|
1178
1278
|
for (; s--; )
|
|
1179
|
-
t.clear(
|
|
1180
|
-
},
|
|
1181
|
-
const s = t.indexOf(
|
|
1279
|
+
t.clear(e[s]), e.splice(s, 1);
|
|
1280
|
+
}, Ur = (t, e) => {
|
|
1281
|
+
const s = t.indexOf(e);
|
|
1182
1282
|
return !!~s && !!t.splice(s, 1);
|
|
1183
1283
|
};
|
|
1184
|
-
class
|
|
1185
|
-
constructor(
|
|
1186
|
-
this.fastdom =
|
|
1284
|
+
class Gr {
|
|
1285
|
+
constructor(e) {
|
|
1286
|
+
this.fastdom = e, this.tasks = [];
|
|
1187
1287
|
}
|
|
1188
|
-
measure(
|
|
1189
|
-
const
|
|
1190
|
-
return
|
|
1288
|
+
measure(e, s) {
|
|
1289
|
+
const o = this.tasks, n = this.fastdom.measure(function() {
|
|
1290
|
+
return o.splice(o.indexOf(n)), e.call(s);
|
|
1191
1291
|
});
|
|
1192
|
-
return
|
|
1292
|
+
return o.push(n), n;
|
|
1193
1293
|
}
|
|
1194
|
-
mutate(
|
|
1195
|
-
const
|
|
1196
|
-
return
|
|
1294
|
+
mutate(e, s) {
|
|
1295
|
+
const o = this.tasks, n = this.fastdom.mutate(function() {
|
|
1296
|
+
return o.splice(o.indexOf(n)), e.call(s);
|
|
1197
1297
|
});
|
|
1198
|
-
return this.tasks.push(
|
|
1298
|
+
return this.tasks.push(n), n;
|
|
1199
1299
|
}
|
|
1200
|
-
clear(
|
|
1201
|
-
return arguments.length ||
|
|
1300
|
+
clear(e) {
|
|
1301
|
+
return arguments.length || qr(this.fastdom, this.tasks), Ur(this.tasks, e), this.fastdom.clear(e);
|
|
1202
1302
|
}
|
|
1203
1303
|
}
|
|
1204
|
-
const
|
|
1304
|
+
const Yr = {
|
|
1205
1305
|
sandbox() {
|
|
1206
|
-
return new
|
|
1306
|
+
return new Gr(this.fastdom);
|
|
1207
1307
|
}
|
|
1208
1308
|
};
|
|
1209
|
-
|
|
1210
|
-
const
|
|
1309
|
+
Mt.extend(Yr);
|
|
1310
|
+
const $r = [
|
|
1211
1311
|
"fullscreenElement",
|
|
1212
1312
|
"fullscreenEnabled",
|
|
1213
1313
|
"requestFullscreen",
|
|
1214
1314
|
"exitFullscreen",
|
|
1215
1315
|
"fullscreenchange",
|
|
1216
1316
|
"fullscreenerror"
|
|
1217
|
-
],
|
|
1317
|
+
], Qr = [
|
|
1218
1318
|
"mozFullScreenElement",
|
|
1219
1319
|
"mozFullScreenEnabled",
|
|
1220
1320
|
"mozRequestFullScreen",
|
|
1221
1321
|
"mozCancelFullScreen",
|
|
1222
1322
|
"mozfullscreenchange",
|
|
1223
1323
|
"mozfullscreenerror"
|
|
1224
|
-
],
|
|
1324
|
+
], Zr = [
|
|
1225
1325
|
"webkitFullscreenElement",
|
|
1226
1326
|
"webkitFullscreenEnabled",
|
|
1227
1327
|
"webkitRequestFullscreen",
|
|
1228
1328
|
"webkitExitFullscreen",
|
|
1229
1329
|
"webkitfullscreenchange",
|
|
1230
1330
|
"webkitfullscreenerror"
|
|
1231
|
-
],
|
|
1331
|
+
], Jr = [
|
|
1232
1332
|
"msFullscreenElement",
|
|
1233
1333
|
"msFullscreenEnabled",
|
|
1234
1334
|
"msRequestFullscreen",
|
|
1235
1335
|
"msExitFullscreen",
|
|
1236
1336
|
"MSFullscreenChange",
|
|
1237
1337
|
"MSFullscreenError"
|
|
1238
|
-
],
|
|
1239
|
-
let
|
|
1240
|
-
const
|
|
1241
|
-
if (!
|
|
1242
|
-
for (let t = 0,
|
|
1243
|
-
let s =
|
|
1244
|
-
if (s && s[1] in
|
|
1245
|
-
for (
|
|
1246
|
-
|
|
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];
|
|
1247
1347
|
return;
|
|
1248
1348
|
}
|
|
1249
1349
|
}
|
|
1250
1350
|
};
|
|
1251
|
-
|
|
1252
|
-
const
|
|
1253
|
-
change:
|
|
1254
|
-
error:
|
|
1255
|
-
},
|
|
1256
|
-
request(t,
|
|
1257
|
-
return new Promise((s,
|
|
1258
|
-
const
|
|
1259
|
-
this.off("change",
|
|
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();
|
|
1260
1360
|
};
|
|
1261
|
-
if (this.on("change",
|
|
1262
|
-
const
|
|
1263
|
-
|
|
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);
|
|
1264
1364
|
} else
|
|
1265
|
-
|
|
1365
|
+
o(new Error("Fullscreen API not supported or element is null."));
|
|
1266
1366
|
});
|
|
1267
1367
|
},
|
|
1268
1368
|
exit() {
|
|
1269
|
-
return new Promise((t,
|
|
1369
|
+
return new Promise((t, e) => {
|
|
1270
1370
|
if (!this.isFullscreen) {
|
|
1271
1371
|
t();
|
|
1272
1372
|
return;
|
|
@@ -1274,15 +1374,15 @@ const Ye = {
|
|
|
1274
1374
|
const s = () => {
|
|
1275
1375
|
this.off("change", s), t();
|
|
1276
1376
|
};
|
|
1277
|
-
if (this.on("change", s), !
|
|
1278
|
-
const
|
|
1279
|
-
|
|
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);
|
|
1280
1380
|
} else
|
|
1281
|
-
|
|
1381
|
+
e(new Error("Fullscreen API not supported."));
|
|
1282
1382
|
});
|
|
1283
1383
|
},
|
|
1284
|
-
toggle(t,
|
|
1285
|
-
return this.isFullscreen ? this.exit() : this.request(t,
|
|
1384
|
+
toggle(t, e) {
|
|
1385
|
+
return this.isFullscreen ? this.exit() : this.request(t, e);
|
|
1286
1386
|
},
|
|
1287
1387
|
onchange(t) {
|
|
1288
1388
|
this.on("change", t);
|
|
@@ -1290,17 +1390,17 @@ const Ye = {
|
|
|
1290
1390
|
onerror(t) {
|
|
1291
1391
|
this.on("error", t);
|
|
1292
1392
|
},
|
|
1293
|
-
on(t,
|
|
1294
|
-
const s =
|
|
1295
|
-
s && !
|
|
1393
|
+
on(t, e) {
|
|
1394
|
+
const s = nt[t];
|
|
1395
|
+
s && !S && L(H, s, e);
|
|
1296
1396
|
},
|
|
1297
|
-
off(t,
|
|
1298
|
-
const s =
|
|
1299
|
-
s && !
|
|
1397
|
+
off(t, e) {
|
|
1398
|
+
const s = nt[t];
|
|
1399
|
+
s && !S && Y(H, s, e);
|
|
1300
1400
|
},
|
|
1301
|
-
raw:
|
|
1401
|
+
raw: A || {}
|
|
1302
1402
|
};
|
|
1303
|
-
|
|
1403
|
+
S ? Object.defineProperties(Fe, {
|
|
1304
1404
|
isFullscreen: {
|
|
1305
1405
|
get() {
|
|
1306
1406
|
return !1;
|
|
@@ -1318,233 +1418,256 @@ O ? Object.defineProperties(_e, {
|
|
|
1318
1418
|
return !1;
|
|
1319
1419
|
}
|
|
1320
1420
|
}
|
|
1321
|
-
}) : Object.defineProperties(
|
|
1421
|
+
}) : Object.defineProperties(Fe, {
|
|
1322
1422
|
isFullscreen: {
|
|
1323
1423
|
get() {
|
|
1324
|
-
return !!
|
|
1424
|
+
return !!H[A && A.fullscreenElement];
|
|
1325
1425
|
}
|
|
1326
1426
|
},
|
|
1327
1427
|
element: {
|
|
1328
1428
|
enumerable: !0,
|
|
1329
1429
|
get() {
|
|
1330
|
-
return
|
|
1430
|
+
return H[A && A.fullscreenElement];
|
|
1331
1431
|
}
|
|
1332
1432
|
},
|
|
1333
1433
|
isEnabled: {
|
|
1334
1434
|
enumerable: !0,
|
|
1335
1435
|
get() {
|
|
1336
|
-
return !!
|
|
1436
|
+
return !!H[A && A.fullscreenEnabled];
|
|
1337
1437
|
}
|
|
1338
1438
|
}
|
|
1339
1439
|
});
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
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 = () => {
|
|
1347
1470
|
};
|
|
1348
|
-
const
|
|
1349
|
-
clearTimeout(
|
|
1350
|
-
},
|
|
1351
|
-
|
|
1352
|
-
|
|
1471
|
+
const Lt = function(t) {
|
|
1472
|
+
clearTimeout(je[t]), delete He[t], delete je[t];
|
|
1473
|
+
}, ss = function() {
|
|
1474
|
+
jt = setTimeout(() => {
|
|
1475
|
+
$.close();
|
|
1353
1476
|
}, 5e3);
|
|
1354
|
-
},
|
|
1355
|
-
let s =
|
|
1356
|
-
if (s = String(s), t.cid = s, !
|
|
1357
|
-
|
|
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." });
|
|
1358
1481
|
return;
|
|
1359
1482
|
}
|
|
1360
|
-
typeof
|
|
1361
|
-
|
|
1362
|
-
},
|
|
1363
|
-
},
|
|
1364
|
-
|
|
1365
|
-
|
|
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(
|
|
1366
1489
|
{
|
|
1367
1490
|
type: "heartbeat"
|
|
1368
1491
|
},
|
|
1369
1492
|
() => {
|
|
1370
|
-
|
|
1493
|
+
Rt();
|
|
1371
1494
|
}
|
|
1372
|
-
) : clearTimeout(
|
|
1373
|
-
},
|
|
1374
|
-
},
|
|
1375
|
-
|
|
1376
|
-
},
|
|
1377
|
-
let
|
|
1378
|
-
if (typeof
|
|
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)) {
|
|
1379
1502
|
try {
|
|
1380
|
-
|
|
1503
|
+
e = JSON.parse(e);
|
|
1381
1504
|
} catch (s) {
|
|
1382
1505
|
return !s;
|
|
1383
1506
|
}
|
|
1384
|
-
if (
|
|
1385
|
-
let s =
|
|
1507
|
+
if (Q) {
|
|
1508
|
+
let s = Pt[e.type];
|
|
1386
1509
|
if (s)
|
|
1387
|
-
return s(
|
|
1388
|
-
let
|
|
1389
|
-
|
|
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));
|
|
1390
1513
|
} else
|
|
1391
|
-
|
|
1514
|
+
e.type === "eSpace-ctrl-connection-success" ? os(e.data) : $.close();
|
|
1392
1515
|
}
|
|
1393
|
-
},
|
|
1394
|
-
|
|
1395
|
-
},
|
|
1396
|
-
|
|
1397
|
-
|
|
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();
|
|
1398
1521
|
}, t || 0);
|
|
1399
|
-
},
|
|
1400
|
-
(
|
|
1522
|
+
}, as = function() {
|
|
1523
|
+
(Q || typeof Q > "u") && (Q = !1, zt()), Dt(It);
|
|
1401
1524
|
};
|
|
1402
|
-
|
|
1403
|
-
t && (
|
|
1525
|
+
C.init = function(t) {
|
|
1526
|
+
t && (Ct = t.timeout || 3e4, It = t.pollingInterval || 0), Dt();
|
|
1404
1527
|
};
|
|
1405
|
-
|
|
1406
|
-
|
|
1528
|
+
C.ready = function(t) {
|
|
1529
|
+
Bt = t;
|
|
1407
1530
|
};
|
|
1408
|
-
|
|
1409
|
-
|
|
1531
|
+
C.error = function(t) {
|
|
1532
|
+
zt = t;
|
|
1410
1533
|
};
|
|
1411
|
-
const
|
|
1412
|
-
let
|
|
1413
|
-
for (let
|
|
1414
|
-
let
|
|
1415
|
-
|
|
1416
|
-
let
|
|
1417
|
-
|
|
1418
|
-
}
|
|
1419
|
-
return
|
|
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;
|
|
1420
1543
|
};
|
|
1421
|
-
|
|
1422
|
-
|
|
1544
|
+
C.on = function(t, e) {
|
|
1545
|
+
Pt[t] = e;
|
|
1423
1546
|
};
|
|
1424
|
-
|
|
1425
|
-
|
|
1547
|
+
C.getUserInfo = function(t, e) {
|
|
1548
|
+
W(
|
|
1426
1549
|
{
|
|
1427
1550
|
type: "get-user-info",
|
|
1428
1551
|
param: t
|
|
1429
1552
|
},
|
|
1430
|
-
function(s,
|
|
1553
|
+
function(s, o) {
|
|
1431
1554
|
if (s)
|
|
1432
|
-
return
|
|
1433
|
-
const
|
|
1555
|
+
return e(s);
|
|
1556
|
+
const n = function(r) {
|
|
1434
1557
|
return {
|
|
1435
|
-
account:
|
|
1436
|
-
name:
|
|
1437
|
-
mobile:
|
|
1438
|
-
office_phone:
|
|
1439
|
-
home_phone:
|
|
1440
|
-
ip_phone:
|
|
1441
|
-
other_phone:
|
|
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
|
|
1442
1565
|
};
|
|
1443
1566
|
};
|
|
1444
|
-
if (
|
|
1445
|
-
|
|
1567
|
+
if (o.account)
|
|
1568
|
+
e(null, n(o));
|
|
1446
1569
|
else {
|
|
1447
|
-
let
|
|
1448
|
-
for (let
|
|
1449
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1450
|
-
let
|
|
1451
|
-
|
|
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);
|
|
1452
1575
|
}
|
|
1453
|
-
|
|
1576
|
+
e(null, r);
|
|
1454
1577
|
}
|
|
1455
1578
|
}
|
|
1456
1579
|
);
|
|
1457
1580
|
};
|
|
1458
|
-
|
|
1581
|
+
C.subscribeUserStatus = function(t, e) {
|
|
1459
1582
|
Array.isArray(t) && t.forEach((s) => {
|
|
1460
|
-
}),
|
|
1583
|
+
}), W(
|
|
1461
1584
|
{
|
|
1462
1585
|
type: "subscribe-user-status",
|
|
1463
1586
|
param: t
|
|
1464
1587
|
},
|
|
1465
|
-
|
|
1588
|
+
e
|
|
1466
1589
|
);
|
|
1467
1590
|
};
|
|
1468
|
-
|
|
1469
|
-
|
|
1591
|
+
C.eSpaceCall = function(t, e, s) {
|
|
1592
|
+
W(
|
|
1470
1593
|
{
|
|
1471
1594
|
type: "espace-call",
|
|
1472
1595
|
param: {
|
|
1473
1596
|
account: t,
|
|
1474
|
-
number:
|
|
1597
|
+
number: e
|
|
1475
1598
|
}
|
|
1476
1599
|
},
|
|
1477
1600
|
s
|
|
1478
1601
|
);
|
|
1479
1602
|
};
|
|
1480
|
-
|
|
1481
|
-
|
|
1603
|
+
C.eSpaceCallByAccount = function(t, e) {
|
|
1604
|
+
W(
|
|
1482
1605
|
{
|
|
1483
1606
|
type: "espace-call",
|
|
1484
1607
|
param: {
|
|
1485
1608
|
account: t
|
|
1486
1609
|
}
|
|
1487
1610
|
},
|
|
1488
|
-
|
|
1611
|
+
e
|
|
1489
1612
|
);
|
|
1490
1613
|
};
|
|
1491
|
-
|
|
1492
|
-
|
|
1614
|
+
C.eSpaceCallByNumber = function(t, e) {
|
|
1615
|
+
W(
|
|
1493
1616
|
{
|
|
1494
1617
|
type: "espace-call",
|
|
1495
1618
|
param: {
|
|
1496
1619
|
number: t
|
|
1497
1620
|
}
|
|
1498
1621
|
},
|
|
1499
|
-
|
|
1622
|
+
e
|
|
1500
1623
|
);
|
|
1501
1624
|
};
|
|
1502
|
-
|
|
1503
|
-
|
|
1625
|
+
C.showImDialog = function(t, e) {
|
|
1626
|
+
W(
|
|
1504
1627
|
{
|
|
1505
1628
|
type: "show-espace-im-dialog",
|
|
1506
1629
|
param: t
|
|
1507
1630
|
},
|
|
1508
|
-
|
|
1631
|
+
e
|
|
1509
1632
|
);
|
|
1510
1633
|
};
|
|
1511
|
-
|
|
1512
|
-
|
|
1634
|
+
C.showGroupDialog = function(t, e) {
|
|
1635
|
+
W(
|
|
1513
1636
|
{
|
|
1514
1637
|
type: "show-espace-im-group-dialog",
|
|
1515
1638
|
param: t
|
|
1516
1639
|
},
|
|
1517
|
-
|
|
1640
|
+
e
|
|
1518
1641
|
);
|
|
1519
1642
|
};
|
|
1520
|
-
|
|
1521
|
-
|
|
1643
|
+
C.addContactList = function(t, e) {
|
|
1644
|
+
W(
|
|
1522
1645
|
{
|
|
1523
1646
|
type: "add-contact-list",
|
|
1524
1647
|
param: t
|
|
1525
1648
|
},
|
|
1526
|
-
|
|
1649
|
+
e
|
|
1527
1650
|
);
|
|
1528
1651
|
};
|
|
1529
|
-
if (
|
|
1652
|
+
if (S || !window.WebSocket) {
|
|
1530
1653
|
const t = function() {
|
|
1531
1654
|
};
|
|
1532
|
-
for (let
|
|
1533
|
-
Object.prototype.hasOwnProperty.call(
|
|
1655
|
+
for (let e in C)
|
|
1656
|
+
Object.prototype.hasOwnProperty.call(C, e) && typeof C[e] == "function" && (C[e] = t);
|
|
1534
1657
|
}
|
|
1535
|
-
const
|
|
1658
|
+
const ue = {}, oe = {
|
|
1536
1659
|
leave: "v-modal-leave",
|
|
1537
1660
|
enter: "v-modal-enter",
|
|
1538
1661
|
modal: "v-modal"
|
|
1539
|
-
},
|
|
1662
|
+
}, ls = (t, e) => {
|
|
1540
1663
|
for (let s = t.length - 1; s >= 0; s--)
|
|
1541
|
-
if (t[s].id ===
|
|
1664
|
+
if (t[s].id === e) {
|
|
1542
1665
|
t.splice(s, 1);
|
|
1543
1666
|
break;
|
|
1544
1667
|
}
|
|
1545
1668
|
};
|
|
1546
|
-
let
|
|
1547
|
-
const
|
|
1669
|
+
let Pe;
|
|
1670
|
+
const I = {
|
|
1548
1671
|
step: 2,
|
|
1549
1672
|
zIndex: 2e3,
|
|
1550
1673
|
globalScroll: !1,
|
|
@@ -1567,99 +1690,427 @@ const M = {
|
|
|
1567
1690
|
},
|
|
1568
1691
|
/** 全局反注册 */
|
|
1569
1692
|
deregister: (t) => {
|
|
1570
|
-
t && (
|
|
1693
|
+
t && (ue[t] = null, delete ue[t]);
|
|
1571
1694
|
},
|
|
1572
1695
|
/** 返回全局实例 */
|
|
1573
|
-
getInstance: (t) =>
|
|
1696
|
+
getInstance: (t) => ue[t],
|
|
1574
1697
|
/** 全局注册 仅vue-popup.ts中使用,instance就是vm, 把vm注册到 vm._popupId 这个键值上 */
|
|
1575
|
-
register: (t,
|
|
1576
|
-
t &&
|
|
1698
|
+
register: (t, e) => {
|
|
1699
|
+
t && e && (ue[t] = e);
|
|
1577
1700
|
},
|
|
1578
1701
|
nextZIndex: () => {
|
|
1579
|
-
const t =
|
|
1580
|
-
return
|
|
1702
|
+
const t = I.zIndex;
|
|
1703
|
+
return I.zIndex += I.step, t;
|
|
1581
1704
|
},
|
|
1582
1705
|
/** 打开遮罩层, 仅vue-popup.ts中使用。 dom = vm.$el 或者 undefined (appendtoBody时) */
|
|
1583
|
-
openModal(t,
|
|
1584
|
-
if (
|
|
1706
|
+
openModal(t, e, s, o, n) {
|
|
1707
|
+
if (S || !t || e === void 0)
|
|
1585
1708
|
return;
|
|
1586
|
-
this.modalFade =
|
|
1587
|
-
for (let
|
|
1588
|
-
if (this.modalStack[
|
|
1709
|
+
this.modalFade = n;
|
|
1710
|
+
for (let l = 0, c = this.modalStack.length; l < c; l++)
|
|
1711
|
+
if (this.modalStack[l].id === t)
|
|
1589
1712
|
return;
|
|
1590
|
-
const
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
}, 200),
|
|
1594
|
-
let
|
|
1595
|
-
s && s.parentNode && s.parentNode.nodeType !== 11 ?
|
|
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 });
|
|
1596
1719
|
},
|
|
1597
1720
|
/** 点击背景遮罩层时,调用栈顶的popup,调用它的close() */
|
|
1598
1721
|
doOnModalClick: () => {
|
|
1599
|
-
const t =
|
|
1600
|
-
if (!
|
|
1722
|
+
const t = I.modalStack, e = t[t.length - 1];
|
|
1723
|
+
if (!e)
|
|
1601
1724
|
return;
|
|
1602
|
-
const s =
|
|
1725
|
+
const s = I.getInstance(e.id);
|
|
1603
1726
|
s && s.closeOnClickModal && typeof s.close == "function" && s.close();
|
|
1604
1727
|
},
|
|
1605
1728
|
closeModal(t) {
|
|
1606
|
-
const
|
|
1607
|
-
if (
|
|
1608
|
-
const
|
|
1609
|
-
if (
|
|
1610
|
-
|
|
1611
|
-
const
|
|
1612
|
-
|
|
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());
|
|
1613
1736
|
} else
|
|
1614
|
-
|
|
1737
|
+
ls(e, t);
|
|
1615
1738
|
}
|
|
1616
|
-
|
|
1617
|
-
|
|
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);
|
|
1618
1741
|
}, 200));
|
|
1619
1742
|
}
|
|
1620
1743
|
};
|
|
1621
|
-
|
|
1622
|
-
if (
|
|
1744
|
+
Pe = () => {
|
|
1745
|
+
if (S)
|
|
1623
1746
|
return null;
|
|
1624
|
-
let t =
|
|
1625
|
-
return t ?
|
|
1747
|
+
let t = I.modalDom;
|
|
1748
|
+
return t ? I.hasModal = !0 : (I.hasModal = !1, t = document.createElement("div"), I.modalDom = t, t.addEventListener(
|
|
1626
1749
|
"touchmove",
|
|
1627
|
-
(
|
|
1628
|
-
|
|
1750
|
+
(e) => {
|
|
1751
|
+
e.preventDefault(), e.stopPropagation();
|
|
1629
1752
|
},
|
|
1630
1753
|
{ passive: !0 }
|
|
1631
|
-
),
|
|
1632
|
-
|
|
1754
|
+
), L(t, "click", () => {
|
|
1755
|
+
I.doOnModalClick();
|
|
1633
1756
|
})), t;
|
|
1634
1757
|
};
|
|
1635
|
-
|
|
1636
|
-
if (t.keyCode ===
|
|
1637
|
-
const
|
|
1638
|
-
if (
|
|
1639
|
-
const s =
|
|
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];
|
|
1640
1763
|
if (!s)
|
|
1641
1764
|
return;
|
|
1642
|
-
const
|
|
1643
|
-
|
|
1765
|
+
const o = I.getInstance(s.id);
|
|
1766
|
+
o && o.closeOnPressEscape && (o.handleClose ? o.handleClose("esc") : o.handleAction ? o.handleAction("cancel") : o.close());
|
|
1644
1767
|
}
|
|
1645
1768
|
}
|
|
1646
1769
|
});
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
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;
|
|
1650
1791
|
});
|
|
1651
|
-
})
|
|
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
|
+
}
|
|
1652
2083
|
export {
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
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
|
|
1665
2116
|
};
|