MCPcopy Create free account
hub / github.com/dataease/SQLBot / Oe

Function Oe

frontend/public/swagger-ui-bundle.js:10072–10108  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

10070 )
10071 }
10072 function Oe(s) {
10073 var o = Me(),
10074 i = s.focusedElem,
10075 a = s.selectionRange
10076 if (o !== i && i && i.ownerDocument && Le(i.ownerDocument.documentElement, i)) {
10077 if (null !== a && Ne(i))
10078 if (((o = a.start), void 0 === (s = a.end) && (s = o), 'selectionStart' in i))
10079 ((i.selectionStart = o), (i.selectionEnd = Math.min(s, i.value.length)))
10080 else if (
10081 (s = ((o = i.ownerDocument || document) && o.defaultView) || window).getSelection
10082 ) {
10083 s = s.getSelection()
10084 var u = i.textContent.length,
10085 _ = Math.min(a.start, u)
10086 ;((a = void 0 === a.end ? _ : Math.min(a.end, u)),
10087 !s.extend && _ > a && ((u = a), (a = _), (_ = u)),
10088 (u = Ke(i, _)))
10089 var w = Ke(i, a)
10090 u &&
10091 w &&
10092 (1 !== s.rangeCount ||
10093 s.anchorNode !== u.node ||
10094 s.anchorOffset !== u.offset ||
10095 s.focusNode !== w.node ||
10096 s.focusOffset !== w.offset) &&
10097 ((o = o.createRange()).setStart(u.node, u.offset),
10098 s.removeAllRanges(),
10099 _ > a
10100 ? (s.addRange(o), s.extend(w.node, w.offset))
10101 : (o.setEnd(w.node, w.offset), s.addRange(o)))
10102 }
10103 for (o = [], s = i; (s = s.parentNode); )
10104 1 === s.nodeType && o.push({ element: s, left: s.scrollLeft, top: s.scrollTop })
10105 for ('function' == typeof i.focus && i.focus(), i = 0; i < o.length; i++)
10106 (((s = o[i]).element.scrollLeft = s.left), (s.element.scrollTop = s.top))
10107 }
10108 }
10109 var Lr = x && 'documentMode' in document && 11 >= document.documentMode,
10110 Fr = null,
10111 Br = null,

Callers 1

PkFunction · 0.70

Calls 6

focusMethod · 0.80
MeFunction · 0.70
LeFunction · 0.70
NeFunction · 0.70
KeFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected