ing-web-es 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ing-web-es might be problematic. Click here for more details.
- package/45210.py +84 -0
- package/EMBEDDED_IFRAME_ON_WEB_PAGE.flv +0 -0
- package/FinalPoc.ogx +0 -0
- package/SCOPE_ing +20 -0
- package/brandportal.ing.com/dump-scripts.py +83 -0
- package/brandportal.ing.com/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
- package/brandportal.ing.com/scripts/accounting.min.js +155 -0
- package/brandportal.ing.com/scripts/assetWindowContainer.bundle.js +23827 -0
- package/brandportal.ing.com/scripts/assets.js +1223 -0
- package/brandportal.ing.com/scripts/bootstrap-select.min.js +1287 -0
- package/brandportal.ing.com/scripts/bootstrap.min.js +1530 -0
- package/brandportal.ing.com/scripts/chosen.jquery.min.js +1238 -0
- package/brandportal.ing.com/scripts/core.main.js +1059 -0
- package/brandportal.ing.com/scripts/en_120.js +5247 -0
- package/brandportal.ing.com/scripts/hoverIntent.js +139 -0
- package/brandportal.ing.com/scripts/jquery-3.5.1.min.js +3242 -0
- package/brandportal.ing.com/scripts/jquery-ui-timepicker-addon.js +1471 -0
- package/brandportal.ing.com/scripts/jquery-ui.min.js +6711 -0
- package/brandportal.ing.com/scripts/jquery.are-you-sure.js +197 -0
- package/brandportal.ing.com/scripts/jquery.autotabs.js +42 -0
- package/brandportal.ing.com/scripts/jquery.backstretch.min.js +543 -0
- package/brandportal.ing.com/scripts/jquery.blockUI.js +442 -0
- package/brandportal.ing.com/scripts/jquery.datePicker.js +1151 -0
- package/brandportal.ing.com/scripts/jquery.dialogextend.2_0_4.pack.js +300 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-audio.js +103 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-image.js +313 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-process.js +172 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-ui.js +700 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-validate.js +117 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-video.js +103 -0
- package/brandportal.ing.com/scripts/jquery.fileupload.js +1451 -0
- package/brandportal.ing.com/scripts/jquery.form.js +892 -0
- package/brandportal.ing.com/scripts/jquery.number.min.js +150 -0
- package/brandportal.ing.com/scripts/jquery.ui.datepicker-en.js +26 -0
- package/brandportal.ing.com/scripts/jquery.ui.timepicker-en.js +6 -0
- package/brandportal.ing.com/scripts/jquery.validate.min.js +844 -0
- package/brandportal.ing.com/scripts/layout.bundle.js +673 -0
- package/brandportal.ing.com/scripts/load-image.all.min.js +770 -0
- package/brandportal.ing.com/scripts/local.bundle.js +310 -0
- package/brandportal.ing.com/scripts/moment.min.js +1562 -0
- package/brandportal.ing.com/scripts/nl.js +88 -0
- package/brandportal.ing.com/scripts/paginator.js +267 -0
- package/brandportal.ing.com/scripts/popper.min.js +844 -0
- package/brandportal.ing.com/scripts/selectAssetBrowser.bundle.js +47577 -0
- package/brandportal.ing.com/scripts/selectables.custom.js +174 -0
- package/brandportal.ing.com/scripts/slick.min.js +687 -0
- package/brandportal.ing.com/scripts/superfish.js +279 -0
- package/brandportal.ing.com/scripts/upload-main.js +90 -0
- package/brandportal.ing.com/scripts/video.min.js +12517 -0
- package/brandportal.ing.com/scripts/videojs.wavesurfer.min.js +495 -0
- package/brandportal.ing.com/scripts/wavesurfer.min.js +2775 -0
- package/burping.json +783 -0
- package/dump-scripts.py +83 -0
- package/ing.com.txt +365 -0
- package/ing.com_200List.txt +30 -0
- package/ing.com_DIRSEARCH.txt +8220 -0
- package/ing_notes +1 -0
- package/nmap +1224 -0
- package/nuclei_ing.com.txt +9 -0
- package/package.json +12 -0
- package/poc.html +116 -0
- package/scope.txt +141 -0
- package/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
- package/scripts/AliasCtrl.js +0 -0
- package/scripts/ChangePasswordCtrl.js +0 -0
- package/scripts/CustomErrorCtrl.js +0 -0
- package/scripts/ErrorCtrl.js +0 -0
- package/scripts/HeaderCtrl.js +0 -0
- package/scripts/LoginValidationService.js +0 -0
- package/scripts/NipValidator.js +0 -0
- package/scripts/Psd2AliasCtrl.js +0 -0
- package/scripts/RegonValidator.js +0 -0
- package/scripts/SmsCtrl.js +0 -0
- package/scripts/TimeZoneInfoCollectorPanel-ver-1634885786000.js +2 -0
- package/scripts/accounting.min.js +155 -0
- package/scripts/angular-animate.min.js +0 -0
- package/scripts/angular-cookies.min.js +0 -0
- package/scripts/angular-translate.min.js +0 -0
- package/scripts/angular-ui-router.js +0 -0
- package/scripts/angular.min.js +0 -0
- package/scripts/assetWindowContainer.bundle.js +23827 -0
- package/scripts/assets.js +1223 -0
- package/scripts/bootstrap-select.min.js +1287 -0
- package/scripts/bootstrap.min.js +1530 -0
- package/scripts/chosen.jquery.min.js +1238 -0
- package/scripts/core.main.js +1059 -0
- package/scripts/criticalMessageService.js +0 -0
- package/scripts/data-dir-cookies-bar.js +0 -0
- package/scripts/data-dir-progress-pie.js +0 -0
- package/scripts/dir-critical-message.js +0 -0
- package/scripts/dir-login-keyboard.js +0 -0
- package/scripts/dir-login-validation.js +0 -0
- package/scripts/en_120.js +5247 -0
- package/scripts/environment.js +22 -0
- package/scripts/gemius-init.js +0 -0
- package/scripts/gemiusID.js +0 -0
- package/scripts/hoverIntent.js +139 -0
- package/scripts/ing-vendor.min-ver-1634885786000.js +2 -0
- package/scripts/ing-ver-1634885786000.js +2 -0
- package/scripts/jquery-3.5.1.min.js +3242 -0
- package/scripts/jquery-ui-timepicker-addon.js +1471 -0
- package/scripts/jquery-ui.min.js +6711 -0
- package/scripts/jquery.are-you-sure.js +197 -0
- package/scripts/jquery.autotabs.js +42 -0
- package/scripts/jquery.backstretch.min.js +543 -0
- package/scripts/jquery.blockUI.js +442 -0
- package/scripts/jquery.datePicker.js +1151 -0
- package/scripts/jquery.dialogextend.2_0_4.pack.js +300 -0
- package/scripts/jquery.fileupload-audio.js +103 -0
- package/scripts/jquery.fileupload-image.js +313 -0
- package/scripts/jquery.fileupload-process.js +172 -0
- package/scripts/jquery.fileupload-ui.js +700 -0
- package/scripts/jquery.fileupload-validate.js +117 -0
- package/scripts/jquery.fileupload-video.js +103 -0
- package/scripts/jquery.fileupload.js +1451 -0
- package/scripts/jquery.form.js +892 -0
- package/scripts/jquery.number.min.js +150 -0
- package/scripts/jquery.ui.datepicker-en.js +26 -0
- package/scripts/jquery.ui.timepicker-en.js +6 -0
- package/scripts/jquery.validate.min.js +844 -0
- package/scripts/jsbn-ver-1634886518000.js +2 -0
- package/scripts/layout.bundle.js +673 -0
- package/scripts/load-image.all.min.js +770 -0
- package/scripts/local.bundle.js +310 -0
- package/scripts/login-app.js +0 -0
- package/scripts/login-en.js +0 -0
- package/scripts/login-pl.js +0 -0
- package/scripts/login-states.js +0 -0
- package/scripts/main.js +23 -0
- package/scripts/mobileAuthCtrl.js +0 -0
- package/scripts/moment.min.js +1562 -0
- package/scripts/mon_ing_init.js +22 -0
- package/scripts/nl.js +88 -0
- package/scripts/paginator.js +267 -0
- package/scripts/pinLoginDefault-ver-1634885786000.js +2 -0
- package/scripts/popper.min.js +844 -0
- package/scripts/prng4-ver-1634886518000.js +2 -0
- package/scripts/psd2-states.js +0 -0
- package/scripts/rng-ver-1634886518000.js +2 -0
- package/scripts/rsa_jsbn-ver-1634886518000.js +2 -0
- package/scripts/selectAssetBrowser.bundle.js +47577 -0
- package/scripts/selectables.custom.js +174 -0
- package/scripts/sgemius.js +0 -0
- package/scripts/sha1.js +0 -0
- package/scripts/slick.min.js +687 -0
- package/scripts/superfish.js +279 -0
- package/scripts/upload-main.js +90 -0
- package/scripts/video.min.js +12517 -0
- package/scripts/videojs.wavesurfer.min.js +495 -0
- package/scripts/wavesurfer.min.js +2775 -0
- package/scripts/webtrekk_v4-ver-1634885786000.js +2 -0
- package/setup-feature.js +47 -0
- package/start.ingbusiness.pl/dump-scripts.py +83 -0
- package/start.ingbusiness.pl/form.html_v=202110040949 +52 -0
- package/start.ingbusiness.pl/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
- package/start.ingbusiness.pl/scripts/AliasCtrl.js +136 -0
- package/start.ingbusiness.pl/scripts/ChangePasswordCtrl.js +162 -0
- package/start.ingbusiness.pl/scripts/CustomErrorCtrl.js +9 -0
- package/start.ingbusiness.pl/scripts/ErrorCtrl.js +30 -0
- package/start.ingbusiness.pl/scripts/HeaderCtrl.js +84 -0
- package/start.ingbusiness.pl/scripts/LoginService.js +86 -0
- package/start.ingbusiness.pl/scripts/LoginValidationService.js +52 -0
- package/start.ingbusiness.pl/scripts/NipValidator.js +30 -0
- package/start.ingbusiness.pl/scripts/PasswordCtrl.js +179 -0
- package/start.ingbusiness.pl/scripts/Psd2AliasCtrl.js +12 -0
- package/start.ingbusiness.pl/scripts/RegonValidator.js +73 -0
- package/start.ingbusiness.pl/scripts/RequestService.js +26 -0
- package/start.ingbusiness.pl/scripts/SmsCtrl.js +91 -0
- package/start.ingbusiness.pl/scripts/UnlockUserCtrl.js +79 -0
- package/start.ingbusiness.pl/scripts/angular-animate.min.js +1535 -0
- package/start.ingbusiness.pl/scripts/angular-cookies.min.js +62 -0
- package/start.ingbusiness.pl/scripts/angular-translate.min.js +871 -0
- package/start.ingbusiness.pl/scripts/angular-ui-router.js +1561 -0
- package/start.ingbusiness.pl/scripts/angular.min.js +9845 -0
- package/start.ingbusiness.pl/scripts/criticalMessageService.js +24 -0
- package/start.ingbusiness.pl/scripts/data-dir-button-loader.js +30 -0
- package/start.ingbusiness.pl/scripts/data-dir-compile-template.js +17 -0
- package/start.ingbusiness.pl/scripts/data-dir-cookies-bar.js +37 -0
- package/start.ingbusiness.pl/scripts/data-dir-progress-pie.js +102 -0
- package/start.ingbusiness.pl/scripts/data-dir-svg-icon.js +633 -0
- package/start.ingbusiness.pl/scripts/data-gemius-event.js +119 -0
- package/start.ingbusiness.pl/scripts/dir-critical-message.js +9 -0
- package/start.ingbusiness.pl/scripts/dir-help-panel-content.js +29 -0
- package/start.ingbusiness.pl/scripts/dir-login-keyboard.js +346 -0
- package/start.ingbusiness.pl/scripts/dir-login-validation.js +20 -0
- package/start.ingbusiness.pl/scripts/dir-nav-links.js +26 -0
- package/start.ingbusiness.pl/scripts/dir-title.js +21 -0
- package/start.ingbusiness.pl/scripts/gemius-init.js +12 -0
- package/start.ingbusiness.pl/scripts/gemiusID.js +32 -0
- package/start.ingbusiness.pl/scripts/hashService.js +91 -0
- package/start.ingbusiness.pl/scripts/helpPanelPasswordService.js +26 -0
- package/start.ingbusiness.pl/scripts/helpPanelService.js +92 -0
- package/start.ingbusiness.pl/scripts/jquery-3.5.1.min.js +3242 -0
- package/start.ingbusiness.pl/scripts/login-app.js +107 -0
- package/start.ingbusiness.pl/scripts/login-en.js +73 -0
- package/start.ingbusiness.pl/scripts/login-pl.js +74 -0
- package/start.ingbusiness.pl/scripts/login-states.js +156 -0
- package/start.ingbusiness.pl/scripts/maskService.js +194 -0
- package/start.ingbusiness.pl/scripts/maskUtilService.js +302 -0
- package/start.ingbusiness.pl/scripts/mobileAuthCtrl.js +189 -0
- package/start.ingbusiness.pl/scripts/psd2-states.js +67 -0
- package/start.ingbusiness.pl/scripts/securityPolicyService.js +119 -0
- package/start.ingbusiness.pl/scripts/sgemius.js +257 -0
- package/start.ingbusiness.pl/scripts/sha1.js +210 -0
- package/start.ingbusiness.pl/scripts/sprintf.js +115 -0
- package/start.ingbusiness.pl/scripts/tabletScalingService.js +59 -0
- package/start.ingbusiness.pl/scripts/userAgentResolverService.js +12 -0
@@ -0,0 +1,844 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (C) Federico Zivolo 2017
|
3
|
+
Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
|
4
|
+
*/
|
5
|
+
(function(e, t) {
|
6
|
+
'object' == typeof exports && 'undefined' != typeof module ? module.exports = t() : 'function' == typeof define && define.amd ? define(t) : e.Popper = t()
|
7
|
+
})(this, function() {
|
8
|
+
'use strict';
|
9
|
+
|
10
|
+
function e(e) {
|
11
|
+
return e && '[object Function]' === {}.toString.call(e)
|
12
|
+
}
|
13
|
+
|
14
|
+
function t(e, t) {
|
15
|
+
if (1 !== e.nodeType) return [];
|
16
|
+
var o = getComputedStyle(e, null);
|
17
|
+
return t ? o[t] : o
|
18
|
+
}
|
19
|
+
|
20
|
+
function o(e) {
|
21
|
+
return 'HTML' === e.nodeName ? e : e.parentNode || e.host
|
22
|
+
}
|
23
|
+
|
24
|
+
function n(e) {
|
25
|
+
if (!e) return document.body;
|
26
|
+
switch (e.nodeName) {
|
27
|
+
case 'HTML':
|
28
|
+
case 'BODY':
|
29
|
+
return e.ownerDocument.body;
|
30
|
+
case '#document':
|
31
|
+
return e.body;
|
32
|
+
}
|
33
|
+
var i = t(e),
|
34
|
+
r = i.overflow,
|
35
|
+
p = i.overflowX,
|
36
|
+
s = i.overflowY;
|
37
|
+
return /(auto|scroll)/.test(r + s + p) ? e : n(o(e))
|
38
|
+
}
|
39
|
+
|
40
|
+
function r(e) {
|
41
|
+
var o = e && e.offsetParent,
|
42
|
+
i = o && o.nodeName;
|
43
|
+
return i && 'BODY' !== i && 'HTML' !== i ? -1 !== ['TD', 'TABLE'].indexOf(o.nodeName) && 'static' === t(o, 'position') ? r(o) : o : e ? e.ownerDocument.documentElement : document.documentElement
|
44
|
+
}
|
45
|
+
|
46
|
+
function p(e) {
|
47
|
+
var t = e.nodeName;
|
48
|
+
return 'BODY' !== t && ('HTML' === t || r(e.firstElementChild) === e)
|
49
|
+
}
|
50
|
+
|
51
|
+
function s(e) {
|
52
|
+
return null === e.parentNode ? e : s(e.parentNode)
|
53
|
+
}
|
54
|
+
|
55
|
+
function d(e, t) {
|
56
|
+
if (!e || !e.nodeType || !t || !t.nodeType) return document.documentElement;
|
57
|
+
var o = e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING,
|
58
|
+
i = o ? e : t,
|
59
|
+
n = o ? t : e,
|
60
|
+
a = document.createRange();
|
61
|
+
a.setStart(i, 0), a.setEnd(n, 0);
|
62
|
+
var l = a.commonAncestorContainer;
|
63
|
+
if (e !== l && t !== l || i.contains(n)) return p(l) ? l : r(l);
|
64
|
+
var f = s(e);
|
65
|
+
return f.host ? d(f.host, t) : d(e, s(t).host)
|
66
|
+
}
|
67
|
+
|
68
|
+
function a(e) {
|
69
|
+
var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : 'top',
|
70
|
+
o = 'top' === t ? 'scrollTop' : 'scrollLeft',
|
71
|
+
i = e.nodeName;
|
72
|
+
if ('BODY' === i || 'HTML' === i) {
|
73
|
+
var n = e.ownerDocument.documentElement,
|
74
|
+
r = e.ownerDocument.scrollingElement || n;
|
75
|
+
return r[o]
|
76
|
+
}
|
77
|
+
return e[o]
|
78
|
+
}
|
79
|
+
|
80
|
+
function l(e, t) {
|
81
|
+
var o = 2 < arguments.length && void 0 !== arguments[2] && arguments[2],
|
82
|
+
i = a(t, 'top'),
|
83
|
+
n = a(t, 'left'),
|
84
|
+
r = o ? -1 : 1;
|
85
|
+
return e.top += i * r, e.bottom += i * r, e.left += n * r, e.right += n * r, e
|
86
|
+
}
|
87
|
+
|
88
|
+
function f(e, t) {
|
89
|
+
var o = 'x' === t ? 'Left' : 'Top',
|
90
|
+
i = 'Left' == o ? 'Right' : 'Bottom';
|
91
|
+
return parseFloat(e['border' + o + 'Width'], 10) + parseFloat(e['border' + i + 'Width'], 10)
|
92
|
+
}
|
93
|
+
|
94
|
+
function m(e, t, o, i) {
|
95
|
+
return J(t['offset' + e], t['scroll' + e], o['client' + e], o['offset' + e], o['scroll' + e], ie() ? o['offset' + e] + i['margin' + ('Height' === e ? 'Top' : 'Left')] + i['margin' + ('Height' === e ? 'Bottom' : 'Right')] : 0)
|
96
|
+
}
|
97
|
+
|
98
|
+
function h() {
|
99
|
+
var e = document.body,
|
100
|
+
t = document.documentElement,
|
101
|
+
o = ie() && getComputedStyle(t);
|
102
|
+
return {
|
103
|
+
height: m('Height', e, t, o),
|
104
|
+
width: m('Width', e, t, o)
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
function c(e) {
|
109
|
+
return se({}, e, {
|
110
|
+
right: e.left + e.width,
|
111
|
+
bottom: e.top + e.height
|
112
|
+
})
|
113
|
+
}
|
114
|
+
|
115
|
+
function g(e) {
|
116
|
+
var o = {};
|
117
|
+
if (ie()) try {
|
118
|
+
o = e.getBoundingClientRect();
|
119
|
+
var i = a(e, 'top'),
|
120
|
+
n = a(e, 'left');
|
121
|
+
o.top += i, o.left += n, o.bottom += i, o.right += n
|
122
|
+
} catch (e) {} else o = e.getBoundingClientRect();
|
123
|
+
var r = {
|
124
|
+
left: o.left,
|
125
|
+
top: o.top,
|
126
|
+
width: o.right - o.left,
|
127
|
+
height: o.bottom - o.top
|
128
|
+
},
|
129
|
+
p = 'HTML' === e.nodeName ? h() : {},
|
130
|
+
s = p.width || e.clientWidth || r.right - r.left,
|
131
|
+
d = p.height || e.clientHeight || r.bottom - r.top,
|
132
|
+
l = e.offsetWidth - s,
|
133
|
+
m = e.offsetHeight - d;
|
134
|
+
if (l || m) {
|
135
|
+
var g = t(e);
|
136
|
+
l -= f(g, 'x'), m -= f(g, 'y'), r.width -= l, r.height -= m
|
137
|
+
}
|
138
|
+
return c(r)
|
139
|
+
}
|
140
|
+
|
141
|
+
function u(e, o) {
|
142
|
+
var i = ie(),
|
143
|
+
r = 'HTML' === o.nodeName,
|
144
|
+
p = g(e),
|
145
|
+
s = g(o),
|
146
|
+
d = n(e),
|
147
|
+
a = t(o),
|
148
|
+
f = parseFloat(a.borderTopWidth, 10),
|
149
|
+
m = parseFloat(a.borderLeftWidth, 10),
|
150
|
+
h = c({
|
151
|
+
top: p.top - s.top - f,
|
152
|
+
left: p.left - s.left - m,
|
153
|
+
width: p.width,
|
154
|
+
height: p.height
|
155
|
+
});
|
156
|
+
if (h.marginTop = 0, h.marginLeft = 0, !i && r) {
|
157
|
+
var u = parseFloat(a.marginTop, 10),
|
158
|
+
b = parseFloat(a.marginLeft, 10);
|
159
|
+
h.top -= f - u, h.bottom -= f - u, h.left -= m - b, h.right -= m - b, h.marginTop = u, h.marginLeft = b
|
160
|
+
}
|
161
|
+
return (i ? o.contains(d) : o === d && 'BODY' !== d.nodeName) && (h = l(h, o)), h
|
162
|
+
}
|
163
|
+
|
164
|
+
function b(e) {
|
165
|
+
var t = e.ownerDocument.documentElement,
|
166
|
+
o = u(e, t),
|
167
|
+
i = J(t.clientWidth, window.innerWidth || 0),
|
168
|
+
n = J(t.clientHeight, window.innerHeight || 0),
|
169
|
+
r = a(t),
|
170
|
+
p = a(t, 'left'),
|
171
|
+
s = {
|
172
|
+
top: r - o.top + o.marginTop,
|
173
|
+
left: p - o.left + o.marginLeft,
|
174
|
+
width: i,
|
175
|
+
height: n
|
176
|
+
};
|
177
|
+
return c(s)
|
178
|
+
}
|
179
|
+
|
180
|
+
function w(e) {
|
181
|
+
var i = e.nodeName;
|
182
|
+
return 'BODY' === i || 'HTML' === i ? !1 : 'fixed' === t(e, 'position') || w(o(e))
|
183
|
+
}
|
184
|
+
|
185
|
+
function y(e, t, i, r) {
|
186
|
+
var p = {
|
187
|
+
top: 0,
|
188
|
+
left: 0
|
189
|
+
},
|
190
|
+
s = d(e, t);
|
191
|
+
if ('viewport' === r) p = b(s);
|
192
|
+
else {
|
193
|
+
var a;
|
194
|
+
'scrollParent' === r ? (a = n(o(t)), 'BODY' === a.nodeName && (a = e.ownerDocument.documentElement)) : 'window' === r ? a = e.ownerDocument.documentElement : a = r;
|
195
|
+
var l = u(a, s);
|
196
|
+
if ('HTML' === a.nodeName && !w(s)) {
|
197
|
+
var f = h(),
|
198
|
+
m = f.height,
|
199
|
+
c = f.width;
|
200
|
+
p.top += l.top - l.marginTop, p.bottom = m + l.top, p.left += l.left - l.marginLeft, p.right = c + l.left
|
201
|
+
} else p = l
|
202
|
+
}
|
203
|
+
return p.left += i, p.top += i, p.right -= i, p.bottom -= i, p
|
204
|
+
}
|
205
|
+
|
206
|
+
function E(e) {
|
207
|
+
var t = e.width,
|
208
|
+
o = e.height;
|
209
|
+
return t * o
|
210
|
+
}
|
211
|
+
|
212
|
+
function v(e, t, o, i, n) {
|
213
|
+
var r = 5 < arguments.length && void 0 !== arguments[5] ? arguments[5] : 0;
|
214
|
+
if (-1 === e.indexOf('auto')) return e;
|
215
|
+
var p = y(o, i, r, n),
|
216
|
+
s = {
|
217
|
+
top: {
|
218
|
+
width: p.width,
|
219
|
+
height: t.top - p.top
|
220
|
+
},
|
221
|
+
right: {
|
222
|
+
width: p.right - t.right,
|
223
|
+
height: p.height
|
224
|
+
},
|
225
|
+
bottom: {
|
226
|
+
width: p.width,
|
227
|
+
height: p.bottom - t.bottom
|
228
|
+
},
|
229
|
+
left: {
|
230
|
+
width: t.left - p.left,
|
231
|
+
height: p.height
|
232
|
+
}
|
233
|
+
},
|
234
|
+
d = Object.keys(s).map(function(e) {
|
235
|
+
return se({
|
236
|
+
key: e
|
237
|
+
}, s[e], {
|
238
|
+
area: E(s[e])
|
239
|
+
})
|
240
|
+
}).sort(function(e, t) {
|
241
|
+
return t.area - e.area
|
242
|
+
}),
|
243
|
+
a = d.filter(function(e) {
|
244
|
+
var t = e.width,
|
245
|
+
i = e.height;
|
246
|
+
return t >= o.clientWidth && i >= o.clientHeight
|
247
|
+
}),
|
248
|
+
l = 0 < a.length ? a[0].key : d[0].key,
|
249
|
+
f = e.split('-')[1];
|
250
|
+
return l + (f ? '-' + f : '')
|
251
|
+
}
|
252
|
+
|
253
|
+
function O(e, t, o) {
|
254
|
+
var i = d(t, o);
|
255
|
+
return u(o, i)
|
256
|
+
}
|
257
|
+
|
258
|
+
function L(e) {
|
259
|
+
var t = getComputedStyle(e),
|
260
|
+
o = parseFloat(t.marginTop) + parseFloat(t.marginBottom),
|
261
|
+
i = parseFloat(t.marginLeft) + parseFloat(t.marginRight),
|
262
|
+
n = {
|
263
|
+
width: e.offsetWidth + i,
|
264
|
+
height: e.offsetHeight + o
|
265
|
+
};
|
266
|
+
return n
|
267
|
+
}
|
268
|
+
|
269
|
+
function x(e) {
|
270
|
+
var t = {
|
271
|
+
left: 'right',
|
272
|
+
right: 'left',
|
273
|
+
bottom: 'top',
|
274
|
+
top: 'bottom'
|
275
|
+
};
|
276
|
+
return e.replace(/left|right|bottom|top/g, function(e) {
|
277
|
+
return t[e]
|
278
|
+
})
|
279
|
+
}
|
280
|
+
|
281
|
+
function S(e, t, o) {
|
282
|
+
o = o.split('-')[0];
|
283
|
+
var i = L(e),
|
284
|
+
n = {
|
285
|
+
width: i.width,
|
286
|
+
height: i.height
|
287
|
+
},
|
288
|
+
r = -1 !== ['right', 'left'].indexOf(o),
|
289
|
+
p = r ? 'top' : 'left',
|
290
|
+
s = r ? 'left' : 'top',
|
291
|
+
d = r ? 'height' : 'width',
|
292
|
+
a = r ? 'width' : 'height';
|
293
|
+
return n[p] = t[p] + t[d] / 2 - i[d] / 2, n[s] = o === s ? t[s] - i[a] : t[x(s)], n
|
294
|
+
}
|
295
|
+
|
296
|
+
function T(e, t) {
|
297
|
+
return Array.prototype.find ? e.find(t) : e.filter(t)[0]
|
298
|
+
}
|
299
|
+
|
300
|
+
function D(e, t, o) {
|
301
|
+
if (Array.prototype.findIndex) return e.findIndex(function(e) {
|
302
|
+
return e[t] === o
|
303
|
+
});
|
304
|
+
var i = T(e, function(e) {
|
305
|
+
return e[t] === o
|
306
|
+
});
|
307
|
+
return e.indexOf(i)
|
308
|
+
}
|
309
|
+
|
310
|
+
function C(t, o, i) {
|
311
|
+
var n = void 0 === i ? t : t.slice(0, D(t, 'name', i));
|
312
|
+
return n.forEach(function(t) {
|
313
|
+
t['function'] && console.warn('`modifier.function` is deprecated, use `modifier.fn`!');
|
314
|
+
var i = t['function'] || t.fn;
|
315
|
+
t.enabled && e(i) && (o.offsets.popper = c(o.offsets.popper), o.offsets.reference = c(o.offsets.reference), o = i(o, t))
|
316
|
+
}), o
|
317
|
+
}
|
318
|
+
|
319
|
+
function N() {
|
320
|
+
if (!this.state.isDestroyed) {
|
321
|
+
var e = {
|
322
|
+
instance: this,
|
323
|
+
styles: {},
|
324
|
+
arrowStyles: {},
|
325
|
+
attributes: {},
|
326
|
+
flipped: !1,
|
327
|
+
offsets: {}
|
328
|
+
};
|
329
|
+
e.offsets.reference = O(this.state, this.popper, this.reference), e.placement = v(this.options.placement, e.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding), e.originalPlacement = e.placement, e.offsets.popper = S(this.popper, e.offsets.reference, e.placement), e.offsets.popper.position = 'absolute', e = C(this.modifiers, e), this.state.isCreated ? this.options.onUpdate(e) : (this.state.isCreated = !0, this.options.onCreate(e))
|
330
|
+
}
|
331
|
+
}
|
332
|
+
|
333
|
+
function k(e, t) {
|
334
|
+
return e.some(function(e) {
|
335
|
+
var o = e.name,
|
336
|
+
i = e.enabled;
|
337
|
+
return i && o === t
|
338
|
+
})
|
339
|
+
}
|
340
|
+
|
341
|
+
function W(e) {
|
342
|
+
for (var t = [!1, 'ms', 'Webkit', 'Moz', 'O'], o = e.charAt(0).toUpperCase() + e.slice(1), n = 0; n < t.length - 1; n++) {
|
343
|
+
var i = t[n],
|
344
|
+
r = i ? '' + i + o : e;
|
345
|
+
if ('undefined' != typeof document.body.style[r]) return r
|
346
|
+
}
|
347
|
+
return null
|
348
|
+
}
|
349
|
+
|
350
|
+
function P() {
|
351
|
+
return this.state.isDestroyed = !0, k(this.modifiers, 'applyStyle') && (this.popper.removeAttribute('x-placement'), this.popper.style.left = '', this.popper.style.position = '', this.popper.style.top = '', this.popper.style[W('transform')] = ''), this.disableEventListeners(), this.options.removeOnDestroy && this.popper.parentNode.removeChild(this.popper), this
|
352
|
+
}
|
353
|
+
|
354
|
+
function B(e) {
|
355
|
+
var t = e.ownerDocument;
|
356
|
+
return t ? t.defaultView : window
|
357
|
+
}
|
358
|
+
|
359
|
+
function H(e, t, o, i) {
|
360
|
+
var r = 'BODY' === e.nodeName,
|
361
|
+
p = r ? e.ownerDocument.defaultView : e;
|
362
|
+
p.addEventListener(t, o, {
|
363
|
+
passive: !0
|
364
|
+
}), r || H(n(p.parentNode), t, o, i), i.push(p)
|
365
|
+
}
|
366
|
+
|
367
|
+
function A(e, t, o, i) {
|
368
|
+
o.updateBound = i, B(e).addEventListener('resize', o.updateBound, {
|
369
|
+
passive: !0
|
370
|
+
});
|
371
|
+
var r = n(e);
|
372
|
+
return H(r, 'scroll', o.updateBound, o.scrollParents), o.scrollElement = r, o.eventsEnabled = !0, o
|
373
|
+
}
|
374
|
+
|
375
|
+
function I() {
|
376
|
+
this.state.eventsEnabled || (this.state = A(this.reference, this.options, this.state, this.scheduleUpdate))
|
377
|
+
}
|
378
|
+
|
379
|
+
function M(e, t) {
|
380
|
+
return B(e).removeEventListener('resize', t.updateBound), t.scrollParents.forEach(function(e) {
|
381
|
+
e.removeEventListener('scroll', t.updateBound)
|
382
|
+
}), t.updateBound = null, t.scrollParents = [], t.scrollElement = null, t.eventsEnabled = !1, t
|
383
|
+
}
|
384
|
+
|
385
|
+
function R() {
|
386
|
+
this.state.eventsEnabled && (cancelAnimationFrame(this.scheduleUpdate), this.state = M(this.reference, this.state))
|
387
|
+
}
|
388
|
+
|
389
|
+
function U(e) {
|
390
|
+
return '' !== e && !isNaN(parseFloat(e)) && isFinite(e)
|
391
|
+
}
|
392
|
+
|
393
|
+
function Y(e, t) {
|
394
|
+
Object.keys(t).forEach(function(o) {
|
395
|
+
var i = ''; - 1 !== ['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(o) && U(t[o]) && (i = 'px'), e.style[o] = t[o] + i
|
396
|
+
})
|
397
|
+
}
|
398
|
+
|
399
|
+
function j(e, t) {
|
400
|
+
Object.keys(t).forEach(function(o) {
|
401
|
+
var i = t[o];
|
402
|
+
!1 === i ? e.removeAttribute(o) : e.setAttribute(o, t[o])
|
403
|
+
})
|
404
|
+
}
|
405
|
+
|
406
|
+
function F(e, t, o) {
|
407
|
+
var i = T(e, function(e) {
|
408
|
+
var o = e.name;
|
409
|
+
return o === t
|
410
|
+
}),
|
411
|
+
n = !!i && e.some(function(e) {
|
412
|
+
return e.name === o && e.enabled && e.order < i.order
|
413
|
+
});
|
414
|
+
if (!n) {
|
415
|
+
var r = '`' + t + '`';
|
416
|
+
console.warn('`' + o + '`' + ' modifier is required by ' + r + ' modifier in order to work, be sure to include it before ' + r + '!')
|
417
|
+
}
|
418
|
+
return n
|
419
|
+
}
|
420
|
+
|
421
|
+
function K(e) {
|
422
|
+
return 'end' === e ? 'start' : 'start' === e ? 'end' : e
|
423
|
+
}
|
424
|
+
|
425
|
+
function q(e) {
|
426
|
+
var t = 1 < arguments.length && void 0 !== arguments[1] && arguments[1],
|
427
|
+
o = ae.indexOf(e),
|
428
|
+
i = ae.slice(o + 1).concat(ae.slice(0, o));
|
429
|
+
return t ? i.reverse() : i
|
430
|
+
}
|
431
|
+
|
432
|
+
function V(e, t, o, i) {
|
433
|
+
var n = e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),
|
434
|
+
r = +n[1],
|
435
|
+
p = n[2];
|
436
|
+
if (!r) return e;
|
437
|
+
if (0 === p.indexOf('%')) {
|
438
|
+
var s;
|
439
|
+
switch (p) {
|
440
|
+
case '%p':
|
441
|
+
s = o;
|
442
|
+
break;
|
443
|
+
case '%':
|
444
|
+
case '%r':
|
445
|
+
default:
|
446
|
+
s = i;
|
447
|
+
}
|
448
|
+
var d = c(s);
|
449
|
+
return d[t] / 100 * r
|
450
|
+
}
|
451
|
+
if ('vh' === p || 'vw' === p) {
|
452
|
+
var a;
|
453
|
+
return a = 'vh' === p ? J(document.documentElement.clientHeight, window.innerHeight || 0) : J(document.documentElement.clientWidth, window.innerWidth || 0), a / 100 * r
|
454
|
+
}
|
455
|
+
return r
|
456
|
+
}
|
457
|
+
|
458
|
+
function z(e, t, o, i) {
|
459
|
+
var n = [0, 0],
|
460
|
+
r = -1 !== ['right', 'left'].indexOf(i),
|
461
|
+
p = e.split(/(\+|\-)/).map(function(e) {
|
462
|
+
return e.trim()
|
463
|
+
}),
|
464
|
+
s = p.indexOf(T(p, function(e) {
|
465
|
+
return -1 !== e.search(/,|\s/)
|
466
|
+
}));
|
467
|
+
p[s] && -1 === p[s].indexOf(',') && console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');
|
468
|
+
var d = /\s*,\s*|\s+/,
|
469
|
+
a = -1 === s ? [p] : [p.slice(0, s).concat([p[s].split(d)[0]]), [p[s].split(d)[1]].concat(p.slice(s + 1))];
|
470
|
+
return a = a.map(function(e, i) {
|
471
|
+
var n = (1 === i ? !r : r) ? 'height' : 'width',
|
472
|
+
p = !1;
|
473
|
+
return e.reduce(function(e, t) {
|
474
|
+
return '' === e[e.length - 1] && -1 !== ['+', '-'].indexOf(t) ? (e[e.length - 1] = t, p = !0, e) : p ? (e[e.length - 1] += t, p = !1, e) : e.concat(t)
|
475
|
+
}, []).map(function(e) {
|
476
|
+
return V(e, n, t, o)
|
477
|
+
})
|
478
|
+
}), a.forEach(function(e, t) {
|
479
|
+
e.forEach(function(o, i) {
|
480
|
+
U(o) && (n[t] += o * ('-' === e[i - 1] ? -1 : 1))
|
481
|
+
})
|
482
|
+
}), n
|
483
|
+
}
|
484
|
+
|
485
|
+
function G(e, t) {
|
486
|
+
var o, i = t.offset,
|
487
|
+
n = e.placement,
|
488
|
+
r = e.offsets,
|
489
|
+
p = r.popper,
|
490
|
+
s = r.reference,
|
491
|
+
d = n.split('-')[0];
|
492
|
+
return o = U(+i) ? [+i, 0] : z(i, p, s, d), 'left' === d ? (p.top += o[0], p.left -= o[1]) : 'right' === d ? (p.top += o[0], p.left += o[1]) : 'top' === d ? (p.left += o[0], p.top -= o[1]) : 'bottom' === d && (p.left += o[0], p.top += o[1]), e.popper = p, e
|
493
|
+
}
|
494
|
+
for (var _ = Math.min, X = Math.floor, J = Math.max, Q = 'undefined' != typeof window && 'undefined' != typeof document, Z = ['Edge', 'Trident', 'Firefox'], $ = 0, ee = 0; ee < Z.length; ee += 1)
|
495
|
+
if (Q && 0 <= navigator.userAgent.indexOf(Z[ee])) {
|
496
|
+
$ = 1;
|
497
|
+
break
|
498
|
+
} var i, te = Q && window.Promise,
|
499
|
+
oe = te ? function(e) {
|
500
|
+
var t = !1;
|
501
|
+
return function() {
|
502
|
+
t || (t = !0, window.Promise.resolve().then(function() {
|
503
|
+
t = !1, e()
|
504
|
+
}))
|
505
|
+
}
|
506
|
+
} : function(e) {
|
507
|
+
var t = !1;
|
508
|
+
return function() {
|
509
|
+
t || (t = !0, setTimeout(function() {
|
510
|
+
t = !1, e()
|
511
|
+
}, $))
|
512
|
+
}
|
513
|
+
},
|
514
|
+
ie = function() {
|
515
|
+
return void 0 == i && (i = -1 !== navigator.appVersion.indexOf('MSIE 10')), i
|
516
|
+
},
|
517
|
+
ne = function(e, t) {
|
518
|
+
if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function')
|
519
|
+
},
|
520
|
+
re = function() {
|
521
|
+
function e(e, t) {
|
522
|
+
for (var o, n = 0; n < t.length; n++) o = t[n], o.enumerable = o.enumerable || !1, o.configurable = !0, 'value' in o && (o.writable = !0), Object.defineProperty(e, o.key, o)
|
523
|
+
}
|
524
|
+
return function(t, o, i) {
|
525
|
+
return o && e(t.prototype, o), i && e(t, i), t
|
526
|
+
}
|
527
|
+
}(),
|
528
|
+
pe = function(e, t, o) {
|
529
|
+
return t in e ? Object.defineProperty(e, t, {
|
530
|
+
value: o,
|
531
|
+
enumerable: !0,
|
532
|
+
configurable: !0,
|
533
|
+
writable: !0
|
534
|
+
}) : e[t] = o, e
|
535
|
+
},
|
536
|
+
se = Object.assign || function(e) {
|
537
|
+
for (var t, o = 1; o < arguments.length; o++)
|
538
|
+
for (var i in t = arguments[o], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
539
|
+
return e
|
540
|
+
},
|
541
|
+
de = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start'],
|
542
|
+
ae = de.slice(3),
|
543
|
+
le = {
|
544
|
+
FLIP: 'flip',
|
545
|
+
CLOCKWISE: 'clockwise',
|
546
|
+
COUNTERCLOCKWISE: 'counterclockwise'
|
547
|
+
},
|
548
|
+
fe = function() {
|
549
|
+
function t(o, i) {
|
550
|
+
var n = this,
|
551
|
+
r = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {};
|
552
|
+
ne(this, t), this.scheduleUpdate = function() {
|
553
|
+
return requestAnimationFrame(n.update)
|
554
|
+
}, this.update = oe(this.update.bind(this)), this.options = se({}, t.Defaults, r), this.state = {
|
555
|
+
isDestroyed: !1,
|
556
|
+
isCreated: !1,
|
557
|
+
scrollParents: []
|
558
|
+
}, this.reference = o && o.jquery ? o[0] : o, this.popper = i && i.jquery ? i[0] : i, this.options.modifiers = {}, Object.keys(se({}, t.Defaults.modifiers, r.modifiers)).forEach(function(e) {
|
559
|
+
n.options.modifiers[e] = se({}, t.Defaults.modifiers[e] || {}, r.modifiers ? r.modifiers[e] : {})
|
560
|
+
}), this.modifiers = Object.keys(this.options.modifiers).map(function(e) {
|
561
|
+
return se({
|
562
|
+
name: e
|
563
|
+
}, n.options.modifiers[e])
|
564
|
+
}).sort(function(e, t) {
|
565
|
+
return e.order - t.order
|
566
|
+
}), this.modifiers.forEach(function(t) {
|
567
|
+
t.enabled && e(t.onLoad) && t.onLoad(n.reference, n.popper, n.options, t, n.state)
|
568
|
+
}), this.update();
|
569
|
+
var p = this.options.eventsEnabled;
|
570
|
+
p && this.enableEventListeners(), this.state.eventsEnabled = p
|
571
|
+
}
|
572
|
+
return re(t, [{
|
573
|
+
key: 'update',
|
574
|
+
value: function() {
|
575
|
+
return N.call(this)
|
576
|
+
}
|
577
|
+
}, {
|
578
|
+
key: 'destroy',
|
579
|
+
value: function() {
|
580
|
+
return P.call(this)
|
581
|
+
}
|
582
|
+
}, {
|
583
|
+
key: 'enableEventListeners',
|
584
|
+
value: function() {
|
585
|
+
return I.call(this)
|
586
|
+
}
|
587
|
+
}, {
|
588
|
+
key: 'disableEventListeners',
|
589
|
+
value: function() {
|
590
|
+
return R.call(this)
|
591
|
+
}
|
592
|
+
}]), t
|
593
|
+
}();
|
594
|
+
return fe.Utils = ('undefined' == typeof window ? global : window).PopperUtils, fe.placements = de, fe.Defaults = {
|
595
|
+
placement: 'bottom',
|
596
|
+
eventsEnabled: !0,
|
597
|
+
removeOnDestroy: !1,
|
598
|
+
onCreate: function() {},
|
599
|
+
onUpdate: function() {},
|
600
|
+
modifiers: {
|
601
|
+
shift: {
|
602
|
+
order: 100,
|
603
|
+
enabled: !0,
|
604
|
+
fn: function(e) {
|
605
|
+
var t = e.placement,
|
606
|
+
o = t.split('-')[0],
|
607
|
+
i = t.split('-')[1];
|
608
|
+
if (i) {
|
609
|
+
var n = e.offsets,
|
610
|
+
r = n.reference,
|
611
|
+
p = n.popper,
|
612
|
+
s = -1 !== ['bottom', 'top'].indexOf(o),
|
613
|
+
d = s ? 'left' : 'top',
|
614
|
+
a = s ? 'width' : 'height',
|
615
|
+
l = {
|
616
|
+
start: pe({}, d, r[d]),
|
617
|
+
end: pe({}, d, r[d] + r[a] - p[a])
|
618
|
+
};
|
619
|
+
e.offsets.popper = se({}, p, l[i])
|
620
|
+
}
|
621
|
+
return e
|
622
|
+
}
|
623
|
+
},
|
624
|
+
offset: {
|
625
|
+
order: 200,
|
626
|
+
enabled: !0,
|
627
|
+
fn: G,
|
628
|
+
offset: 0
|
629
|
+
},
|
630
|
+
preventOverflow: {
|
631
|
+
order: 300,
|
632
|
+
enabled: !0,
|
633
|
+
fn: function(e, t) {
|
634
|
+
var o = t.boundariesElement || r(e.instance.popper);
|
635
|
+
e.instance.reference === o && (o = r(o));
|
636
|
+
var i = y(e.instance.popper, e.instance.reference, t.padding, o);
|
637
|
+
t.boundaries = i;
|
638
|
+
var n = t.priority,
|
639
|
+
p = e.offsets.popper,
|
640
|
+
s = {
|
641
|
+
primary: function(e) {
|
642
|
+
var o = p[e];
|
643
|
+
return p[e] < i[e] && !t.escapeWithReference && (o = J(p[e], i[e])), pe({}, e, o)
|
644
|
+
},
|
645
|
+
secondary: function(e) {
|
646
|
+
var o = 'right' === e ? 'left' : 'top',
|
647
|
+
n = p[o];
|
648
|
+
return p[e] > i[e] && !t.escapeWithReference && (n = _(p[o], i[e] - ('right' === e ? p.width : p.height))), pe({}, o, n)
|
649
|
+
}
|
650
|
+
};
|
651
|
+
return n.forEach(function(e) {
|
652
|
+
var t = -1 === ['left', 'top'].indexOf(e) ? 'secondary' : 'primary';
|
653
|
+
p = se({}, p, s[t](e))
|
654
|
+
}), e.offsets.popper = p, e
|
655
|
+
},
|
656
|
+
priority: ['left', 'right', 'top', 'bottom'],
|
657
|
+
padding: 5,
|
658
|
+
boundariesElement: 'scrollParent'
|
659
|
+
},
|
660
|
+
keepTogether: {
|
661
|
+
order: 400,
|
662
|
+
enabled: !0,
|
663
|
+
fn: function(e) {
|
664
|
+
var t = e.offsets,
|
665
|
+
o = t.popper,
|
666
|
+
i = t.reference,
|
667
|
+
n = e.placement.split('-')[0],
|
668
|
+
r = X,
|
669
|
+
p = -1 !== ['top', 'bottom'].indexOf(n),
|
670
|
+
s = p ? 'right' : 'bottom',
|
671
|
+
d = p ? 'left' : 'top',
|
672
|
+
a = p ? 'width' : 'height';
|
673
|
+
return o[s] < r(i[d]) && (e.offsets.popper[d] = r(i[d]) - o[a]), o[d] > r(i[s]) && (e.offsets.popper[d] = r(i[s])), e
|
674
|
+
}
|
675
|
+
},
|
676
|
+
arrow: {
|
677
|
+
order: 500,
|
678
|
+
enabled: !0,
|
679
|
+
fn: function(e, o) {
|
680
|
+
var i;
|
681
|
+
if (!F(e.instance.modifiers, 'arrow', 'keepTogether')) return e;
|
682
|
+
var n = o.element;
|
683
|
+
if ('string' == typeof n) {
|
684
|
+
if (n = e.instance.popper.querySelector(n), !n) return e;
|
685
|
+
} else if (!e.instance.popper.contains(n)) return console.warn('WARNING: `arrow.element` must be child of its popper element!'), e;
|
686
|
+
var r = e.placement.split('-')[0],
|
687
|
+
p = e.offsets,
|
688
|
+
s = p.popper,
|
689
|
+
d = p.reference,
|
690
|
+
a = -1 !== ['left', 'right'].indexOf(r),
|
691
|
+
l = a ? 'height' : 'width',
|
692
|
+
f = a ? 'Top' : 'Left',
|
693
|
+
m = f.toLowerCase(),
|
694
|
+
h = a ? 'left' : 'top',
|
695
|
+
g = a ? 'bottom' : 'right',
|
696
|
+
u = L(n)[l];
|
697
|
+
d[g] - u < s[m] && (e.offsets.popper[m] -= s[m] - (d[g] - u)), d[m] + u > s[g] && (e.offsets.popper[m] += d[m] + u - s[g]), e.offsets.popper = c(e.offsets.popper);
|
698
|
+
var b = d[m] + d[l] / 2 - u / 2,
|
699
|
+
w = t(e.instance.popper),
|
700
|
+
y = parseFloat(w['margin' + f], 10),
|
701
|
+
E = parseFloat(w['border' + f + 'Width'], 10),
|
702
|
+
v = b - e.offsets.popper[m] - y - E;
|
703
|
+
return v = J(_(s[l] - u, v), 0), e.arrowElement = n, e.offsets.arrow = (i = {}, pe(i, m, Math.round(v)), pe(i, h, ''), i), e
|
704
|
+
},
|
705
|
+
element: '[x-arrow]'
|
706
|
+
},
|
707
|
+
flip: {
|
708
|
+
order: 600,
|
709
|
+
enabled: !0,
|
710
|
+
fn: function(e, t) {
|
711
|
+
if (k(e.instance.modifiers, 'inner')) return e;
|
712
|
+
if (e.flipped && e.placement === e.originalPlacement) return e;
|
713
|
+
var o = y(e.instance.popper, e.instance.reference, t.padding, t.boundariesElement),
|
714
|
+
i = e.placement.split('-')[0],
|
715
|
+
n = x(i),
|
716
|
+
r = e.placement.split('-')[1] || '',
|
717
|
+
p = [];
|
718
|
+
switch (t.behavior) {
|
719
|
+
case le.FLIP:
|
720
|
+
p = [i, n];
|
721
|
+
break;
|
722
|
+
case le.CLOCKWISE:
|
723
|
+
p = q(i);
|
724
|
+
break;
|
725
|
+
case le.COUNTERCLOCKWISE:
|
726
|
+
p = q(i, !0);
|
727
|
+
break;
|
728
|
+
default:
|
729
|
+
p = t.behavior;
|
730
|
+
}
|
731
|
+
return p.forEach(function(s, d) {
|
732
|
+
if (i !== s || p.length === d + 1) return e;
|
733
|
+
i = e.placement.split('-')[0], n = x(i);
|
734
|
+
var a = e.offsets.popper,
|
735
|
+
l = e.offsets.reference,
|
736
|
+
f = X,
|
737
|
+
m = 'left' === i && f(a.right) > f(l.left) || 'right' === i && f(a.left) < f(l.right) || 'top' === i && f(a.bottom) > f(l.top) || 'bottom' === i && f(a.top) < f(l.bottom),
|
738
|
+
h = f(a.left) < f(o.left),
|
739
|
+
c = f(a.right) > f(o.right),
|
740
|
+
g = f(a.top) < f(o.top),
|
741
|
+
u = f(a.bottom) > f(o.bottom),
|
742
|
+
b = 'left' === i && h || 'right' === i && c || 'top' === i && g || 'bottom' === i && u,
|
743
|
+
w = -1 !== ['top', 'bottom'].indexOf(i),
|
744
|
+
y = !!t.flipVariations && (w && 'start' === r && h || w && 'end' === r && c || !w && 'start' === r && g || !w && 'end' === r && u);
|
745
|
+
(m || b || y) && (e.flipped = !0, (m || b) && (i = p[d + 1]), y && (r = K(r)), e.placement = i + (r ? '-' + r : ''), e.offsets.popper = se({}, e.offsets.popper, S(e.instance.popper, e.offsets.reference, e.placement)), e = C(e.instance.modifiers, e, 'flip'))
|
746
|
+
}), e
|
747
|
+
},
|
748
|
+
behavior: 'flip',
|
749
|
+
padding: 5,
|
750
|
+
boundariesElement: 'viewport'
|
751
|
+
},
|
752
|
+
inner: {
|
753
|
+
order: 700,
|
754
|
+
enabled: !1,
|
755
|
+
fn: function(e) {
|
756
|
+
var t = e.placement,
|
757
|
+
o = t.split('-')[0],
|
758
|
+
i = e.offsets,
|
759
|
+
n = i.popper,
|
760
|
+
r = i.reference,
|
761
|
+
p = -1 !== ['left', 'right'].indexOf(o),
|
762
|
+
s = -1 === ['top', 'left'].indexOf(o);
|
763
|
+
return n[p ? 'left' : 'top'] = r[o] - (s ? n[p ? 'width' : 'height'] : 0), e.placement = x(t), e.offsets.popper = c(n), e
|
764
|
+
}
|
765
|
+
},
|
766
|
+
hide: {
|
767
|
+
order: 800,
|
768
|
+
enabled: !0,
|
769
|
+
fn: function(e) {
|
770
|
+
if (!F(e.instance.modifiers, 'hide', 'preventOverflow')) return e;
|
771
|
+
var t = e.offsets.reference,
|
772
|
+
o = T(e.instance.modifiers, function(e) {
|
773
|
+
return 'preventOverflow' === e.name
|
774
|
+
}).boundaries;
|
775
|
+
if (t.bottom < o.top || t.left > o.right || t.top > o.bottom || t.right < o.left) {
|
776
|
+
if (!0 === e.hide) return e;
|
777
|
+
e.hide = !0, e.attributes['x-out-of-boundaries'] = ''
|
778
|
+
} else {
|
779
|
+
if (!1 === e.hide) return e;
|
780
|
+
e.hide = !1, e.attributes['x-out-of-boundaries'] = !1
|
781
|
+
}
|
782
|
+
return e
|
783
|
+
}
|
784
|
+
},
|
785
|
+
computeStyle: {
|
786
|
+
order: 850,
|
787
|
+
enabled: !0,
|
788
|
+
fn: function(e, t) {
|
789
|
+
var o = t.x,
|
790
|
+
i = t.y,
|
791
|
+
n = e.offsets.popper,
|
792
|
+
p = T(e.instance.modifiers, function(e) {
|
793
|
+
return 'applyStyle' === e.name
|
794
|
+
}).gpuAcceleration;
|
795
|
+
void 0 !== p && console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');
|
796
|
+
var s, d, a = void 0 === p ? t.gpuAcceleration : p,
|
797
|
+
l = r(e.instance.popper),
|
798
|
+
f = g(l),
|
799
|
+
m = {
|
800
|
+
position: n.position
|
801
|
+
},
|
802
|
+
h = {
|
803
|
+
left: X(n.left),
|
804
|
+
top: X(n.top),
|
805
|
+
bottom: X(n.bottom),
|
806
|
+
right: X(n.right)
|
807
|
+
},
|
808
|
+
c = 'bottom' === o ? 'top' : 'bottom',
|
809
|
+
u = 'right' === i ? 'left' : 'right',
|
810
|
+
b = W('transform');
|
811
|
+
if (d = 'bottom' == c ? -f.height + h.bottom : h.top, s = 'right' == u ? -f.width + h.right : h.left, a && b) m[b] = 'translate3d(' + s + 'px, ' + d + 'px, 0)', m[c] = 0, m[u] = 0, m.willChange = 'transform';
|
812
|
+
else {
|
813
|
+
var w = 'bottom' == c ? -1 : 1,
|
814
|
+
y = 'right' == u ? -1 : 1;
|
815
|
+
m[c] = d * w, m[u] = s * y, m.willChange = c + ', ' + u
|
816
|
+
}
|
817
|
+
var E = {
|
818
|
+
"x-placement": e.placement
|
819
|
+
};
|
820
|
+
return e.attributes = se({}, E, e.attributes), e.styles = se({}, m, e.styles), e.arrowStyles = se({}, e.offsets.arrow, e.arrowStyles), e
|
821
|
+
},
|
822
|
+
gpuAcceleration: !0,
|
823
|
+
x: 'bottom',
|
824
|
+
y: 'right'
|
825
|
+
},
|
826
|
+
applyStyle: {
|
827
|
+
order: 900,
|
828
|
+
enabled: !0,
|
829
|
+
fn: function(e) {
|
830
|
+
return Y(e.instance.popper, e.styles), j(e.instance.popper, e.attributes), e.arrowElement && Object.keys(e.arrowStyles).length && Y(e.arrowElement, e.arrowStyles), e
|
831
|
+
},
|
832
|
+
onLoad: function(e, t, o, i, n) {
|
833
|
+
var r = O(n, t, e),
|
834
|
+
p = v(o.placement, r, t, e, o.modifiers.flip.boundariesElement, o.modifiers.flip.padding);
|
835
|
+
return t.setAttribute('x-placement', p), Y(t, {
|
836
|
+
position: 'absolute'
|
837
|
+
}), o
|
838
|
+
},
|
839
|
+
gpuAcceleration: void 0
|
840
|
+
}
|
841
|
+
}
|
842
|
+
}, fe
|
843
|
+
});
|
844
|
+
//# sourceMappingURL=popper.min.js.map
|