UNPKG

beef-npm

Version:

Node.js package to install and interact with BeEF (Browser Exploitation Framework)

1,525 lines (1,492 loc) 1.04 MB
/* * Ext JS Library 3.4.0 * Copyright(c) 2006-2011 Sencha Inc. * licensing@sencha.com * http://www.sencha.com/license */ (function () { var h = Ext.util, j = Ext.each, g = true, i = false; h.Observable = function () { var k = this, l = k.events; if (k.listeners) { k.on(k.listeners); delete k.listeners } k.events = l || {} }; h.Observable.prototype = {filterOptRe:/^(?:scope|delay|buffer|single)$/, fireEvent:function () { var k = Array.prototype.slice.call(arguments, 0), m = k[0].toLowerCase(), n = this, l = g, p = n.events[m], s, o, r; if (n.eventsSuspended === g) { if (o = n.eventQueue) { o.push(k) } } else { if (typeof p == "object") { if (p.bubble) { if (p.fire.apply(p, k.slice(1)) === i) { return i } r = n.getBubbleTarget && n.getBubbleTarget(); if (r && r.enableBubble) { s = r.events[m]; if (!s || typeof s != "object" || !s.bubble) { r.enableBubble(m) } return r.fireEvent.apply(r, k) } } else { k.shift(); l = p.fire.apply(p, k) } } } return l }, addListener:function (k, m, l, r) { var n = this, q, s, p; if (typeof k == "object") { r = k; for (q in r) { s = r[q]; if (!n.filterOptRe.test(q)) { n.addListener(q, s.fn || s, s.scope || r.scope, s.fn ? s : r) } } } else { k = k.toLowerCase(); p = n.events[k] || g; if (typeof p == "boolean") { n.events[k] = p = new h.Event(n, k) } p.addListener(m, l, typeof r == "object" ? r : {}) } }, removeListener:function (k, m, l) { var n = this.events[k.toLowerCase()]; if (typeof n == "object") { n.removeListener(m, l) } }, purgeListeners:function () { var m = this.events, k, l; for (l in m) { k = m[l]; if (typeof k == "object") { k.clearListeners() } } }, addEvents:function (n) { var m = this; m.events = m.events || {}; if (typeof n == "string") { var k = arguments, l = k.length; while (l--) { m.events[k[l]] = m.events[k[l]] || g } } else { Ext.applyIf(m.events, n) } }, hasListener:function (k) { var l = this.events[k.toLowerCase()]; return typeof l == "object" && l.listeners.length > 0 }, suspendEvents:function (k) { this.eventsSuspended = g; if (k && !this.eventQueue) { this.eventQueue = [] } }, resumeEvents:function () { var k = this, l = k.eventQueue || []; k.eventsSuspended = i; delete k.eventQueue; j(l, function (m) { k.fireEvent.apply(k, m) }) }}; var d = h.Observable.prototype; d.on = d.addListener; d.un = d.removeListener; h.Observable.releaseCapture = function (k) { k.fireEvent = d.fireEvent }; function e(l, m, k) { return function () { if (m.target == arguments[0]) { l.apply(k, Array.prototype.slice.call(arguments, 0)) } } } function b(n, p, k, m) { k.task = new h.DelayedTask(); return function () { k.task.delay(p.buffer, n, m, Array.prototype.slice.call(arguments, 0)) } } function c(m, n, l, k) { return function () { n.removeListener(l, k); return m.apply(k, arguments) } } function a(n, p, k, m) { return function () { var l = new h.DelayedTask(), o = Array.prototype.slice.call(arguments, 0); if (!k.tasks) { k.tasks = [] } k.tasks.push(l); l.delay(p.delay || 10, function () { k.tasks.remove(l); n.apply(m, o) }, m) } } h.Event = function (l, k) { this.name = k; this.obj = l; this.listeners = [] }; h.Event.prototype = {addListener:function (o, n, m) { var p = this, k; n = n || p.obj; if (!p.isListening(o, n)) { k = p.createListener(o, n, m); if (p.firing) { p.listeners = p.listeners.slice(0) } p.listeners.push(k) } }, createListener:function (p, n, q) { q = q || {}; n = n || this.obj; var k = {fn:p, scope:n, options:q}, m = p; if (q.target) { m = e(m, q, n) } if (q.delay) { m = a(m, q, k, n) } if (q.single) { m = c(m, this, p, n) } if (q.buffer) { m = b(m, q, k, n) } k.fireFn = m; return k }, findListener:function (o, n) { var p = this.listeners, m = p.length, k; n = n || this.obj; while (m--) { k = p[m]; if (k) { if (k.fn == o && k.scope == n) { return m } } } return -1 }, isListening:function (l, k) { return this.findListener(l, k) != -1 }, removeListener:function (r, q) { var p, m, n, s = this, o = i; if ((p = s.findListener(r, q)) != -1) { if (s.firing) { s.listeners = s.listeners.slice(0) } m = s.listeners[p]; if (m.task) { m.task.cancel(); delete m.task } n = m.tasks && m.tasks.length; if (n) { while (n--) { m.tasks[n].cancel() } delete m.tasks } s.listeners.splice(p, 1); o = g } return o }, clearListeners:function () { var n = this, k = n.listeners, m = k.length; while (m--) { n.removeListener(k[m].fn, k[m].scope) } }, fire:function () { var q = this, p = q.listeners, k = p.length, o = 0, m; if (k > 0) { q.firing = g; var n = Array.prototype.slice.call(arguments, 0); for (; o < k; o++) { m = p[o]; if (m && m.fireFn.apply(m.scope || q.obj || window, n) === i) { return(q.firing = i) } } } q.firing = i; return g }} })(); Ext.DomHelper = function () { var x = null, k = /^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i, m = /^table|tbody|tr|td$/i, d = /tag|children|cn|html$/i, t = /td|tr|tbody/i, o = /([a-z0-9-]+)\s*:\s*([^;\s]+(?:\s*[^;\s]+)*);?/gi, v = /end/i, r, n = "afterbegin", p = "afterend", c = "beforebegin", q = "beforeend", a = "<table>", i = "</table>", b = a + "<tbody>", j = "</tbody>" + i, l = b + "<tr>", w = "</tr>" + j; function h(B, D, C, E, A, y) { var z = r.insertHtml(E, Ext.getDom(B), u(D)); return C ? Ext.get(z, true) : z } function u(D) { var z = "", y, C, B, E; if (typeof D == "string") { z = D } else { if (Ext.isArray(D)) { for (var A = 0; A < D.length; A++) { if (D[A]) { z += u(D[A]) } } } else { z += "<" + (D.tag = D.tag || "div"); for (y in D) { C = D[y]; if (!d.test(y)) { if (typeof C == "object") { z += " " + y + '="'; for (B in C) { z += B + ":" + C[B] + ";" } z += '"' } else { z += " " + ({cls:"class", htmlFor:"for"}[y] || y) + '="' + C + '"' } } } if (k.test(D.tag)) { z += "/>" } else { z += ">"; if ((E = D.children || D.cn)) { z += u(E) } else { if (D.html) { z += D.html } } z += "</" + D.tag + ">" } } } return z } function g(F, C, B, D) { x.innerHTML = [C, B, D].join(""); var y = -1, A = x, z; while (++y < F) { A = A.firstChild } if (z = A.nextSibling) { var E = document.createDocumentFragment(); while (A) { z = A.nextSibling; E.appendChild(A); A = z } A = E } return A } function e(y, z, B, A) { var C, D; x = x || document.createElement("div"); if (y == "td" && (z == n || z == q) || !t.test(y) && (z == c || z == p)) { return } D = z == c ? B : z == p ? B.nextSibling : z == n ? B.firstChild : null; if (z == c || z == p) { B = B.parentNode } if (y == "td" || (y == "tr" && (z == q || z == n))) { C = g(4, l, A, w) } else { if ((y == "tbody" && (z == q || z == n)) || (y == "tr" && (z == c || z == p))) { C = g(3, b, A, j) } else { C = g(2, a, A, i) } } B.insertBefore(C, D); return C } function s(A) { var D = document.createElement("div"), y = document.createDocumentFragment(), z = 0, B, C; D.innerHTML = A; C = D.childNodes; B = C.length; for (; z < B; z++) { y.appendChild(C[z].cloneNode(true)) } return y } r = {markup:function (y) { return u(y) }, applyStyles:function (y, z) { if (z) { var A; y = Ext.fly(y); if (typeof z == "function") { z = z.call() } if (typeof z == "string") { o.lastIndex = 0; while ((A = o.exec(z))) { y.setStyle(A[1], A[2]) } } else { if (typeof z == "object") { y.setStyle(z) } } } }, insertHtml:function (D, y, E) { var B = {}, A, F, C, G, H, z; D = D.toLowerCase(); B[c] = ["BeforeBegin", "previousSibling"]; B[p] = ["AfterEnd", "nextSibling"]; if (y.insertAdjacentHTML) { if (m.test(y.tagName) && (z = e(y.tagName.toLowerCase(), D, y, E))) { return z } B[n] = ["AfterBegin", "firstChild"]; B[q] = ["BeforeEnd", "lastChild"]; if ((A = B[D])) { y.insertAdjacentHTML(A[0], E); return y[A[1]] } } else { F = y.ownerDocument.createRange(); G = "setStart" + (v.test(D) ? "After" : "Before"); if (B[D]) { F[G](y); if (!F.createContextualFragment) { H = s(E) } else { H = F.createContextualFragment(E) } y.parentNode.insertBefore(H, D == c ? y : y.nextSibling); return y[(D == c ? "previous" : "next") + "Sibling"] } else { C = (D == n ? "first" : "last") + "Child"; if (y.firstChild) { F[G](y[C]); if (!F.createContextualFragment) { H = s(E) } else { H = F.createContextualFragment(E) } if (D == n) { y.insertBefore(H, y.firstChild) } else { y.appendChild(H) } } else { y.innerHTML = E } return y[C] } } throw'Illegal insertion point -> "' + D + '"' }, insertBefore:function (y, A, z) { return h(y, A, z, c) }, insertAfter:function (y, A, z) { return h(y, A, z, p, "nextSibling") }, insertFirst:function (y, A, z) { return h(y, A, z, n, "firstChild") }, append:function (y, A, z) { return h(y, A, z, q, "", true) }, overwrite:function (y, A, z) { y = Ext.getDom(y); y.innerHTML = u(A); return z ? Ext.get(y.firstChild) : y.firstChild }, createHtml:u}; return r }(); Ext.Template = function (h) { var j = this, c = arguments, e = [], d; if (Ext.isArray(h)) { h = h.join("") } else { if (c.length > 1) { for (var g = 0, b = c.length; g < b; g++) { d = c[g]; if (typeof d == "object") { Ext.apply(j, d) } else { e.push(d) } } h = e.join("") } } j.html = h; if (j.compiled) { j.compile() } }; Ext.Template.prototype = {re:/\{([\w\-]+)\}/g, applyTemplate:function (a) { var b = this; return b.compiled ? b.compiled(a) : b.html.replace(b.re, function (c, d) { return a[d] !== undefined ? a[d] : "" }) }, set:function (a, c) { var b = this; b.html = a; b.compiled = null; return c ? b.compile() : b }, compile:function () { var me = this, sep = Ext.isGecko ? "+" : ","; function fn(m, name) { name = "values['" + name + "']"; return"'" + sep + "(" + name + " == undefined ? '' : " + name + ")" + sep + "'" } eval("this.compiled = function(values){ return " + (Ext.isGecko ? "'" : "['") + me.html.replace(/\\/g, "\\\\").replace(/(\r\n|\n)/g, "\\n").replace(/'/g, "\\'").replace(this.re, fn) + (Ext.isGecko ? "';};" : "'].join('');};")); return me }, insertFirst:function (b, a, c) { return this.doInsert("afterBegin", b, a, c) }, insertBefore:function (b, a, c) { return this.doInsert("beforeBegin", b, a, c) }, insertAfter:function (b, a, c) { return this.doInsert("afterEnd", b, a, c) }, append:function (b, a, c) { return this.doInsert("beforeEnd", b, a, c) }, doInsert:function (c, e, b, a) { e = Ext.getDom(e); var d = Ext.DomHelper.insertHtml(c, e, this.applyTemplate(b)); return a ? Ext.get(d, true) : d }, overwrite:function (b, a, c) { b = Ext.getDom(b); b.innerHTML = this.applyTemplate(a); return c ? Ext.get(b.firstChild, true) : b.firstChild }}; Ext.Template.prototype.apply = Ext.Template.prototype.applyTemplate; Ext.Template.from = function (b, a) { b = Ext.getDom(b); return new Ext.Template(b.value || b.innerHTML, a || "") }; Ext.DomQuery = function () { var cache = {}, simpleCache = {}, valueCache = {}, nonSpace = /\S/, trimRe = /^\s+|\s+$/g, tplRe = /\{(\d+)\}/g, modeRe = /^(\s?[\/>+~]\s?|\s|$)/, tagTokenRe = /^(#)?([\w\-\*]+)/, nthRe = /(\d*)n\+?(\d*)/, nthRe2 = /\D/, isIE = window.ActiveXObject ? true : false, key = 30803; eval("var batch = 30803;"); function child(parent, index) { var i = 0, n = parent.firstChild; while (n) { if (n.nodeType == 1) { if (++i == index) { return n } } n = n.nextSibling } return null } function next(n) { while ((n = n.nextSibling) && n.nodeType != 1) { } return n } function prev(n) { while ((n = n.previousSibling) && n.nodeType != 1) { } return n } function children(parent) { var n = parent.firstChild, nodeIndex = -1, nextNode; while (n) { nextNode = n.nextSibling; if (n.nodeType == 3 && !nonSpace.test(n.nodeValue)) { parent.removeChild(n) } else { n.nodeIndex = ++nodeIndex } n = nextNode } return this } function byClassName(nodeSet, cls) { if (!cls) { return nodeSet } var result = [], ri = -1; for (var i = 0, ci; ci = nodeSet[i]; i++) { if ((" " + ci.className + " ").indexOf(cls) != -1) { result[++ri] = ci } } return result } function attrValue(n, attr) { if (!n.tagName && typeof n.length != "undefined") { n = n[0] } if (!n) { return null } if (attr == "for") { return n.htmlFor } if (attr == "class" || attr == "className") { return n.className } return n.getAttribute(attr) || n[attr] } function getNodes(ns, mode, tagName) { var result = [], ri = -1, cs; if (!ns) { return result } tagName = tagName || "*"; if (typeof ns.getElementsByTagName != "undefined") { ns = [ns] } if (!mode) { for (var i = 0, ni; ni = ns[i]; i++) { cs = ni.getElementsByTagName(tagName); for (var j = 0, ci; ci = cs[j]; j++) { result[++ri] = ci } } } else { if (mode == "/" || mode == ">") { var utag = tagName.toUpperCase(); for (var i = 0, ni, cn; ni = ns[i]; i++) { cn = ni.childNodes; for (var j = 0, cj; cj = cn[j]; j++) { if (cj.nodeName == utag || cj.nodeName == tagName || tagName == "*") { result[++ri] = cj } } } } else { if (mode == "+") { var utag = tagName.toUpperCase(); for (var i = 0, n; n = ns[i]; i++) { while ((n = n.nextSibling) && n.nodeType != 1) { } if (n && (n.nodeName == utag || n.nodeName == tagName || tagName == "*")) { result[++ri] = n } } } else { if (mode == "~") { var utag = tagName.toUpperCase(); for (var i = 0, n; n = ns[i]; i++) { while ((n = n.nextSibling)) { if (n.nodeName == utag || n.nodeName == tagName || tagName == "*") { result[++ri] = n } } } } } } } return result } function concat(a, b) { if (b.slice) { return a.concat(b) } for (var i = 0, l = b.length; i < l; i++) { a[a.length] = b[i] } return a } function byTag(cs, tagName) { if (cs.tagName || cs == document) { cs = [cs] } if (!tagName) { return cs } var result = [], ri = -1; tagName = tagName.toLowerCase(); for (var i = 0, ci; ci = cs[i]; i++) { if (ci.nodeType == 1 && ci.tagName.toLowerCase() == tagName) { result[++ri] = ci } } return result } function byId(cs, id) { if (cs.tagName || cs == document) { cs = [cs] } if (!id) { return cs } var result = [], ri = -1; for (var i = 0, ci; ci = cs[i]; i++) { if (ci && ci.id == id) { result[++ri] = ci; return result } } return result } function byAttribute(cs, attr, value, op, custom) { var result = [], ri = -1, useGetStyle = custom == "{", fn = Ext.DomQuery.operators[op], a, xml, hasXml; for (var i = 0, ci; ci = cs[i]; i++) { if (ci.nodeType != 1) { continue } if (!hasXml) { xml = Ext.DomQuery.isXml(ci); hasXml = true } if (!xml) { if (useGetStyle) { a = Ext.DomQuery.getStyle(ci, attr) } else { if (attr == "class" || attr == "className") { a = ci.className } else { if (attr == "for") { a = ci.htmlFor } else { if (attr == "href") { a = ci.getAttribute("href", 2) } else { a = ci.getAttribute(attr) } } } } } else { a = ci.getAttribute(attr) } if ((fn && fn(a, value)) || (!fn && a)) { result[++ri] = ci } } return result } function byPseudo(cs, name, value) { return Ext.DomQuery.pseudos[name](cs, value) } function nodupIEXml(cs) { var d = ++key, r; cs[0].setAttribute("_nodup", d); r = [cs[0]]; for (var i = 1, len = cs.length; i < len; i++) { var c = cs[i]; if (!c.getAttribute("_nodup") != d) { c.setAttribute("_nodup", d); r[r.length] = c } } for (var i = 0, len = cs.length; i < len; i++) { cs[i].removeAttribute("_nodup") } return r } function nodup(cs) { if (!cs) { return[] } var len = cs.length, c, i, r = cs, cj, ri = -1; if (!len || typeof cs.nodeType != "undefined" || len == 1) { return cs } if (isIE && typeof cs[0].selectSingleNode != "undefined") { return nodupIEXml(cs) } var d = ++key; cs[0]._nodup = d; for (i = 1; c = cs[i]; i++) { if (c._nodup != d) { c._nodup = d } else { r = []; for (var j = 0; j < i; j++) { r[++ri] = cs[j] } for (j = i + 1; cj = cs[j]; j++) { if (cj._nodup != d) { cj._nodup = d; r[++ri] = cj } } return r } } return r } function quickDiffIEXml(c1, c2) { var d = ++key, r = []; for (var i = 0, len = c1.length; i < len; i++) { c1[i].setAttribute("_qdiff", d) } for (var i = 0, len = c2.length; i < len; i++) { if (c2[i].getAttribute("_qdiff") != d) { r[r.length] = c2[i] } } for (var i = 0, len = c1.length; i < len; i++) { c1[i].removeAttribute("_qdiff") } return r } function quickDiff(c1, c2) { var len1 = c1.length, d = ++key, r = []; if (!len1) { return c2 } if (isIE && typeof c1[0].selectSingleNode != "undefined") { return quickDiffIEXml(c1, c2) } for (var i = 0; i < len1; i++) { c1[i]._qdiff = d } for (var i = 0, len = c2.length; i < len; i++) { if (c2[i]._qdiff != d) { r[r.length] = c2[i] } } return r } function quickId(ns, mode, root, id) { if (ns == root) { var d = root.ownerDocument || root; return d.getElementById(id) } ns = getNodes(ns, mode, "*"); return byId(ns, id) } return{getStyle:function (el, name) { return Ext.fly(el).getStyle(name) }, compile:function (path, type) { type = type || "select"; var fn = ["var f = function(root){\n var mode; ++batch; var n = root || document;\n"], mode, lastPath, matchers = Ext.DomQuery.matchers, matchersLn = matchers.length, modeMatch, lmode = path.match(modeRe); if (lmode && lmode[1]) { fn[fn.length] = 'mode="' + lmode[1].replace(trimRe, "") + '";'; path = path.replace(lmode[1], "") } while (path.substr(0, 1) == "/") { path = path.substr(1) } while (path && lastPath != path) { lastPath = path; var tokenMatch = path.match(tagTokenRe); if (type == "select") { if (tokenMatch) { if (tokenMatch[1] == "#") { fn[fn.length] = 'n = quickId(n, mode, root, "' + tokenMatch[2] + '");' } else { fn[fn.length] = 'n = getNodes(n, mode, "' + tokenMatch[2] + '");' } path = path.replace(tokenMatch[0], "") } else { if (path.substr(0, 1) != "@") { fn[fn.length] = 'n = getNodes(n, mode, "*");' } } } else { if (tokenMatch) { if (tokenMatch[1] == "#") { fn[fn.length] = 'n = byId(n, "' + tokenMatch[2] + '");' } else { fn[fn.length] = 'n = byTag(n, "' + tokenMatch[2] + '");' } path = path.replace(tokenMatch[0], "") } } while (!(modeMatch = path.match(modeRe))) { var matched = false; for (var j = 0; j < matchersLn; j++) { var t = matchers[j]; var m = path.match(t.re); if (m) { fn[fn.length] = t.select.replace(tplRe, function (x, i) { return m[i] }); path = path.replace(m[0], ""); matched = true; break } } if (!matched) { throw'Error parsing selector, parsing failed at "' + path + '"' } } if (modeMatch[1]) { fn[fn.length] = 'mode="' + modeMatch[1].replace(trimRe, "") + '";'; path = path.replace(modeMatch[1], "") } } fn[fn.length] = "return nodup(n);\n}"; eval(fn.join("")); return f }, jsSelect:function (path, root, type) { root = root || document; if (typeof root == "string") { root = document.getElementById(root) } var paths = path.split(","), results = []; for (var i = 0, len = paths.length; i < len; i++) { var subPath = paths[i].replace(trimRe, ""); if (!cache[subPath]) { cache[subPath] = Ext.DomQuery.compile(subPath); if (!cache[subPath]) { throw subPath + " is not a valid selector" } } var result = cache[subPath](root); if (result && result != document) { results = results.concat(result) } } if (paths.length > 1) { return nodup(results) } return results }, isXml:function (el) { var docEl = (el ? el.ownerDocument || el : 0).documentElement; return docEl ? docEl.nodeName !== "HTML" : false }, select:document.querySelectorAll ? function (path, root, type) { root = root || document; if (!Ext.DomQuery.isXml(root)) { try { var cs = root.querySelectorAll(path); return Ext.toArray(cs) } catch (ex) { } } return Ext.DomQuery.jsSelect.call(this, path, root, type) } : function (path, root, type) { return Ext.DomQuery.jsSelect.call(this, path, root, type) }, selectNode:function (path, root) { return Ext.DomQuery.select(path, root)[0] }, selectValue:function (path, root, defaultValue) { path = path.replace(trimRe, ""); if (!valueCache[path]) { valueCache[path] = Ext.DomQuery.compile(path, "select") } var n = valueCache[path](root), v; n = n[0] ? n[0] : n; if (typeof n.normalize == "function") { n.normalize() } v = (n && n.firstChild ? n.firstChild.nodeValue : null); return((v === null || v === undefined || v === "") ? defaultValue : v) }, selectNumber:function (path, root, defaultValue) { var v = Ext.DomQuery.selectValue(path, root, defaultValue || 0); return parseFloat(v) }, is:function (el, ss) { if (typeof el == "string") { el = document.getElementById(el) } var isArray = Ext.isArray(el), result = Ext.DomQuery.filter(isArray ? el : [el], ss); return isArray ? (result.length == el.length) : (result.length > 0) }, filter:function (els, ss, nonMatches) { ss = ss.replace(trimRe, ""); if (!simpleCache[ss]) { simpleCache[ss] = Ext.DomQuery.compile(ss, "simple") } var result = simpleCache[ss](els); return nonMatches ? quickDiff(result, els) : result }, matchers:[ {re:/^\.([\w\-]+)/, select:'n = byClassName(n, " {1} ");'}, {re:/^\:([\w\-]+)(?:\(((?:[^\s>\/]*|.*?))\))?/, select:'n = byPseudo(n, "{1}", "{2}");'}, {re:/^(?:([\[\{])(?:@)?([\w\-]+)\s?(?:(=|.=)\s?(["']?)(.*?)\4)?[\]\}])/, select:'n = byAttribute(n, "{2}", "{5}", "{3}", "{1}");'}, {re:/^#([\w\-]+)/, select:'n = byId(n, "{1}");'}, {re:/^@([\w\-]+)/, select:'return {firstChild:{nodeValue:attrValue(n, "{1}")}};'} ], operators:{"=":function (a, v) { return a == v }, "!=":function (a, v) { return a != v }, "^=":function (a, v) { return a && a.substr(0, v.length) == v }, "$=":function (a, v) { return a && a.substr(a.length - v.length) == v }, "*=":function (a, v) { return a && a.indexOf(v) !== -1 }, "%=":function (a, v) { return(a % v) == 0 }, "|=":function (a, v) { return a && (a == v || a.substr(0, v.length + 1) == v + "-") }, "~=":function (a, v) { return a && (" " + a + " ").indexOf(" " + v + " ") != -1 }}, pseudos:{"first-child":function (c) { var r = [], ri = -1, n; for (var i = 0, ci; ci = n = c[i]; i++) { while ((n = n.previousSibling) && n.nodeType != 1) { } if (!n) { r[++ri] = ci } } return r }, "last-child":function (c) { var r = [], ri = -1, n; for (var i = 0, ci; ci = n = c[i]; i++) { while ((n = n.nextSibling) && n.nodeType != 1) { } if (!n) { r[++ri] = ci } } return r }, "nth-child":function (c, a) { var r = [], ri = -1, m = nthRe.exec(a == "even" && "2n" || a == "odd" && "2n+1" || !nthRe2.test(a) && "n+" + a || a), f = (m[1] || 1) - 0, l = m[2] - 0; for (var i = 0, n; n = c[i]; i++) { var pn = n.parentNode; if (batch != pn._batch) { var j = 0; for (var cn = pn.firstChild; cn; cn = cn.nextSibling) { if (cn.nodeType == 1) { cn.nodeIndex = ++j } } pn._batch = batch } if (f == 1) { if (l == 0 || n.nodeIndex == l) { r[++ri] = n } } else { if ((n.nodeIndex + l) % f == 0) { r[++ri] = n } } } return r }, "only-child":function (c) { var r = [], ri = -1; for (var i = 0, ci; ci = c[i]; i++) { if (!prev(ci) && !next(ci)) { r[++ri] = ci } } return r }, empty:function (c) { var r = [], ri = -1; for (var i = 0, ci; ci = c[i]; i++) { var cns = ci.childNodes, j = 0, cn, empty = true; while (cn = cns[j]) { ++j; if (cn.nodeType == 1 || cn.nodeType == 3) { empty = false; break } } if (empty) { r[++ri] = ci } } return r }, contains:function (c, v) { var r = [], ri = -1; for (var i = 0, ci; ci = c[i]; i++) { if ((ci.textContent || ci.innerText || "").indexOf(v) != -1) { r[++ri] = ci } } return r }, nodeValue:function (c, v) { var r = [], ri = -1; for (var i = 0, ci; ci = c[i]; i++) { if (ci.firstChild && ci.firstChild.nodeValue == v) { r[++ri] = ci } } return r }, checked:function (c) { var r = [], ri = -1; for (var i = 0, ci; ci = c[i]; i++) { if (ci.checked == true) { r[++ri] = ci } } return r }, not:function (c, ss) { return Ext.DomQuery.filter(c, ss, true) }, any:function (c, selectors) { var ss = selectors.split("|"), r = [], ri = -1, s; for (var i = 0, ci; ci = c[i]; i++) { for (var j = 0; s = ss[j]; j++) { if (Ext.DomQuery.is(ci, s)) { r[++ri] = ci; break } } } return r }, odd:function (c) { return this["nth-child"](c, "odd") }, even:function (c) { return this["nth-child"](c, "even") }, nth:function (c, a) { return c[a - 1] || [] }, first:function (c) { return c[0] || [] }, last:function (c) { return c[c.length - 1] || [] }, has:function (c, ss) { var s = Ext.DomQuery.select, r = [], ri = -1; for (var i = 0, ci; ci = c[i]; i++) { if (s(ss, ci).length > 0) { r[++ri] = ci } } return r }, next:function (c, ss) { var is = Ext.DomQuery.is, r = [], ri = -1; for (var i = 0, ci; ci = c[i]; i++) { var n = next(ci); if (n && is(n, ss)) { r[++ri] = ci } } return r }, prev:function (c, ss) { var is = Ext.DomQuery.is, r = [], ri = -1; for (var i = 0, ci; ci = c[i]; i++) { var n = prev(ci); if (n && is(n, ss)) { r[++ri] = ci } } return r }}} }(); Ext.query = Ext.DomQuery.select; Ext.util.DelayedTask = function (d, c, a) { var e = this, g, b = function () { clearInterval(g); g = null; d.apply(c, a || []) }; e.delay = function (i, k, j, h) { e.cancel(); d = k || d; c = j || c; a = h || a; g = setInterval(b, i) }; e.cancel = function () { if (g) { clearInterval(g); g = null } } }; (function () { var h = document; Ext.Element = function (l, m) { var n = typeof l == "string" ? h.getElementById(l) : l, o; if (!n) { return null } o = n.id; if (!m && o && Ext.elCache[o]) { return Ext.elCache[o].el } this.dom = n; this.id = o || Ext.id(n) }; var d = Ext.DomHelper, e = Ext.Element, a = Ext.elCache; e.prototype = {set:function (q, m) { var n = this.dom, l, p, m = (m !== false) && !!n.setAttribute; for (l in q) { if (q.hasOwnProperty(l)) { p = q[l]; if (l == "style") { d.applyStyles(n, p) } else { if (l == "cls") { n.className = p } else { if (m) { n.setAttribute(l, p) } else { n[l] = p } } } } } return this }, defaultUnit:"px", is:function (l) { return Ext.DomQuery.is(this.dom, l) }, focus:function (o, n) { var l = this, n = n || l.dom; try { if (Number(o)) { l.focus.defer(o, null, [null, n]) } else { n.focus() } } catch (m) { } return l }, blur:function () { try { this.dom.blur() } catch (l) { } return this }, getValue:function (l) { var m = this.dom.value; return l ? parseInt(m, 10) : m }, addListener:function (l, o, n, m) { Ext.EventManager.on(this.dom, l, o, n || this, m); return this }, removeListener:function (l, n, m) { Ext.EventManager.removeListener(this.dom, l, n, m || this); return this }, removeAllListeners:function () { Ext.EventManager.removeAll(this.dom); return this }, purgeAllListeners:function () { Ext.EventManager.purgeElement(this, true); return this }, addUnits:function (l) { if (l === "" || l == "auto" || l === undefined) { l = l || "" } else { if (!isNaN(l) || !i.test(l)) { l = l + (this.defaultUnit || "px") } } return l }, load:function (m, n, l) { Ext.Ajax.request(Ext.apply({params:n, url:m.url || m, callback:l, el:this.dom, indicatorText:m.indicatorText || ""}, Ext.isObject(m) ? m : {})); return this }, isBorderBox:function () { return Ext.isBorderBox || Ext.isForcedBorderBox || g[(this.dom.tagName || "").toLowerCase()] }, remove:function () { var l = this, m = l.dom; if (m) { delete l.dom; Ext.removeNode(m) } }, hover:function (m, l, o, n) { var p = this; p.on("mouseenter", m, o || p.dom, n); p.on("mouseleave", l, o || p.dom, n); return p }, contains:function (l) { return !l ? false : Ext.lib.Dom.isAncestor(this.dom, l.dom ? l.dom : l) }, getAttributeNS:function (m, l) { return this.getAttribute(l, m) }, getAttribute:(function () { var p = document.createElement("table"), o = false, m = "getAttribute" in p, l = /undefined|unknown/; if (m) { try { p.getAttribute("ext:qtip") } catch (n) { o = true } return function (q, s) { var r = this.dom, t; if (r.getAttributeNS) { t = r.getAttributeNS(s, q) || null } if (t == null) { if (s) { if (o && r.tagName.toUpperCase() == "TABLE") { try { t = r.getAttribute(s + ":" + q) } catch (u) { t = "" } } else { t = r.getAttribute(s + ":" + q) } } else { t = r.getAttribute(q) || r[q] } } return t || "" } } else { return function (q, s) { var r = this.om, u, t; if (s) { t = r[s + ":" + q]; u = l.test(typeof t) ? undefined : t } else { u = r[q] } return u || "" } } p = null })(), update:function (l) { if (this.dom) { this.dom.innerHTML = l } return this }}; var k = e.prototype; e.addMethods = function (l) { Ext.apply(k, l) }; k.on = k.addListener; k.un = k.removeListener; k.autoBoxAdjust = true; var i = /\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i, c; e.get = function (m) { var l, p, o; if (!m) { return null } if (typeof m == "string") { if (!(p = h.getElementById(m))) { return null } if (a[m] && a[m].el) { l = a[m].el; l.dom = p } else { l = e.addToCache(new e(p)) } return l } else { if (m.tagName) { if (!(o = m.id)) { o = Ext.id(m) } if (a[o] && a[o].el) { l = a[o].el; l.dom = m } else { l = e.addToCache(new e(m)) } return l } else { if (m instanceof e) { if (m != c) { if (Ext.isIE && (m.id == undefined || m.id == "")) { m.dom = m.dom } else { m.dom = h.getElementById(m.id) || m.dom } } return m } else { if (m.isComposite) { return m } else { if (Ext.isArray(m)) { return e.select(m) } else { if (m == h) { if (!c) { var n = function () { }; n.prototype = e.prototype; c = new n(); c.dom = h } return c } } } } } } return null }; e.addToCache = function (l, m) { m = m || l.id; a[m] = {el:l, data:{}, events:{}}; return l }; e.data = function (m, l, n) { m = e.get(m); if (!m) { return null } var o = a[m.id].data; if (arguments.length == 2) { return o[l] } else { return(o[l] = n) } }; function j() { if (!Ext.enableGarbageCollector) { clearInterval(e.collectorThreadId) } else { var l, n, q, p; for (l in a) { p = a[l]; if (p.skipGC) { continue } n = p.el; q = n.dom; if (!q || !q.parentNode || (!q.offsetParent && !h.getElementById(l))) { if (Ext.enableListenerCollection) { Ext.EventManager.removeAll(q) } delete a[l] } } if (Ext.isIE) { var m = {}; for (l in a) { m[l] = a[l] } a = Ext.elCache = m } } } e.collectorThreadId = setInterval(j, 30000); var b = function () { }; b.prototype = e.prototype; e.Flyweight = function (l) { this.dom = l }; e.Flyweight.prototype = new b(); e.Flyweight.prototype.isFlyweight = true; e._flyweights = {}; e.fly = function (n, l) { var m = null; l = l || "_global"; if (n = Ext.getDom(n)) { (e._flyweights[l] = e._flyweights[l] || new e.Flyweight()).dom = n; m = e._flyweights[l] } return m }; Ext.get = e.get; Ext.fly = e.fly; var g = Ext.isStrict ? {select:1} : {input:1, select:1, textarea:1}; if (Ext.isIE || Ext.isGecko) { g.button = 1 } })(); Ext.Element.addMethods(function () { var d = "parentNode", b = "nextSibling", c = "previousSibling", e = Ext.DomQuery, a = Ext.get; return{findParent:function (m, l, h) { var j = this.dom, g = document.body, k = 0, i; if (Ext.isGecko && Object.prototype.toString.call(j) == "[object XULElement]") { return null } l = l || 50; if (isNaN(l)) { i = Ext.getDom(l); l = Number.MAX_VALUE } while (j && j.nodeType == 1 && k < l && j != g && j != i) { if (e.is(j, m)) { return h ? a(j) : j } k++; j = j.parentNode } return null }, findParentNode:function (j, i, g) { var h = Ext.fly(this.dom.parentNode, "_internal"); return h ? h.findParent(j, i, g) : null }, up:function (h, g) { return this.findParentNode(h, g, true) }, select:function (g) { return Ext.Element.select(g, this.dom) }, query:function (g) { return e.select(g, this.dom) }, child:function (g, h) { var i = e.selectNode(g, this.dom); return h ? i : a(i) }, down:function (g, h) { var i = e.selectNode(" > " + g, this.dom); return h ? i : a(i) }, parent:function (g, h) { return this.matchNode(d, d, g, h) }, next:function (g, h) { return this.matchNode(b, b, g, h) }, prev:function (g, h) { return this.matchNode(c, c, g, h) }, first:function (g, h) { return this.matchNode(b, "firstChild", g, h) }, last:function (g, h) { return this.matchNode(c, "lastChild", g, h) }, matchNode:function (h, k, g, i) { var j = this.dom[k]; while (j) { if (j.nodeType == 1 && (!g || e.is(j, g))) { return !i ? a(j) : j } j = j[h] } return null }} }()); Ext.Element.addMethods(function () { var c = Ext.getDom, a = Ext.get, b = Ext.DomHelper; return{appendChild:function (d) { return a(d).appendTo(this) }, appendTo:function (d) { c(d).appendChild(this.dom); return this }, insertBefore:function (d) { (d = c(d)).parentNode.insertBefore(this.dom, d); return this }, insertAfter:function (d) { (d = c(d)).parentNode.insertBefore(this.dom, d.nextSibling); return this }, insertFirst:function (e, d) { e = e || {}; if (e.nodeType || e.dom || typeof e == "string") { e = c(e); this.dom.insertBefore(e, this.dom.firstChild); return !d ? a(e) : e } else { return this.createChild(e, this.dom.firstChild, d) } }, replace:function (d) { d = a(d); this.insertBefore(d); d.remove(); return this }, replaceWith:function (d) { var e = this; if (d.nodeType || d.dom || typeof d == "string") { d = c(d); e.dom.parentNode.insertBefore(d, e.dom) } else { d = b.insertBefore(e.dom, d) } delete Ext.elCache[e.id]; Ext.removeNode(e.dom); e.id = Ext.id(e.dom = d); Ext.Element.addToCache(e.isFlyweight ? new Ext.Element(e.dom) : e); return e }, createChild:function (e, d, g) { e = e || {tag:"div"}; return d ? b.insertBefore(d, e, g !== true) : b[!this.dom.firstChild ? "overwrite" : "append"](this.dom, e, g !== true) }, wrap:function (d, e) { var g = b.insertBefore(this.dom, d || {tag:"div"}, !e); g.dom ? g.dom.appendChild(this.dom) : g.appendChild(this.dom); return g }, insertHtml:function (e, g, d) { var h = b.insertHtml(e, this.dom, g); return d ? Ext.get(h) : h }} }()); Ext.Element.addMethods(function () { var A = Ext.supports, h = {}, x = /(-[a-z])/gi, s = document.defaultView, D = /alpha\(opacity=(.*)\)/i, l = /^\s+|\s+$/g, B = Ext.Element, u = /\s+/, b = /\w/g, d = "padding", c = "margin", y = "border", t = "-left", q = "-right", w = "-top", o = "-bottom", j = "-width", r = Math, z = "hidden", e = "isClipped", k = "overflow", n = "overflow-x", m = "overflow-y", C = "originalClip", i = {l:y + t + j, r:y + q + j, t:y + w + j, b:y + o + j}, g = {l:d + t, r:d + q, t:d + w, b:d + o}, a = {l:c + t, r:c + q, t:c + w, b:c + o}, E = Ext.Element.data; function p(F, G) { return G.charAt(1).toUpperCase() } function v(F) { return h[F] || (h[F] = F == "float" ? (A.cssFloat ? "cssFloat" : "styleFloat") : F.replace(x, p)) } return{adjustWidth:function (F) { var G = this; var H = (typeof F == "number"); if (H && G.autoBoxAdjust && !G.isBorderBox()) { F -= (G.getBorderWidth("lr") + G.getPadding("lr")) } return(H && F < 0) ? 0 : F },