reekside

infojobs.com.br

Jun 21st, 2016
1,484
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 426.64 KB | None | 0 0
  1. (function (dx, dB) {
  2. var el,
  3. cW,
  4. dk = typeof dB,
  5. cG = dx.document,
  6. eJ = dx.location,
  7. cx = dx.jQuery,
  8. cy = dx.$,
  9. cg = {},
  10. cc = [],
  11. de = "1.9.1",
  12. cd = cc.concat,
  13. dn = cc.push,
  14. dl = cc.slice,
  15. dq = cc.indexOf,
  16. di = cg.toString,
  17. cb = cg.hasOwnProperty,
  18. dg = de.trim,
  19. dr = function (a, b) {
  20. return new dr.fn.init(a, b, cW)
  21. },
  22. dp = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
  23. dm = /\S+/g,
  24. ed = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
  25. cM = /^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,
  26. cC = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,
  27. d0 = /^[\],:{}\s]*$/,
  28. d1 = /(?:^|:|,)(?:\s*\[)+/g,
  29. dY = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,
  30. dV = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,
  31. dd = /^-ms-/,
  32. en = /-([\da-z])/gi,
  33. ea = function (b, a) {
  34. return a.toUpperCase()
  35. },
  36. ce = function (a) {
  37. if (cG.addEventListener || a.type === "load" || cG.readyState === "complete") {
  38. cJ();
  39. dr.ready()
  40. }
  41. },
  42. cJ = function () {
  43. if (cG.addEventListener) {
  44. cG.removeEventListener("DOMContentLoaded", ce, false);
  45. dx.removeEventListener("load", ce, false)
  46. } else {
  47. cG.detachEvent("onreadystatechange", ce);
  48. dx.detachEvent("onload", ce)
  49. }
  50. };
  51. dr.fn = dr.prototype = {
  52. jquery : de,
  53. constructor : dr,
  54. init : function (c, b, d) {
  55. var f,
  56. a;
  57. if (!c) {
  58. return this
  59. }
  60. if (typeof c === "string") {
  61. if (c.charAt(0) === "<" && c.charAt(c.length - 1) === ">" && c.length >= 3) {
  62. f = [null, c, null]
  63. } else {
  64. f = cM.exec(c)
  65. }
  66. if (f && (f[1] || !b)) {
  67. if (f[1]) {
  68. b = b instanceof dr ? b[0] : b;
  69. dr.merge(this, dr.parseHTML(f[1], b && b.nodeType ? b.ownerDocument || b : cG, true));
  70. if (cC.test(f[1]) && dr.isPlainObject(b)) {
  71. for (f in b) {
  72. if (dr.isFunction(this[f])) {
  73. this[f](b[f])
  74. } else {
  75. this.attr(f, b[f])
  76. }
  77. }
  78. }
  79. return this
  80. } else {
  81. a = cG.getElementById(f[2]);
  82. if (a && a.parentNode) {
  83. if (a.id !== f[2]) {
  84. return d.find(c)
  85. }
  86. this.length = 1;
  87. this[0] = a
  88. }
  89. this.context = cG;
  90. this.selector = c;
  91. return this
  92. }
  93. } else {
  94. if (!b || b.jquery) {
  95. return (b || d).find(c)
  96. } else {
  97. return this.constructor(b).find(c)
  98. }
  99. }
  100. } else {
  101. if (c.nodeType) {
  102. this.context = this[0] = c;
  103. this.length = 1;
  104. return this
  105. } else {
  106. if (dr.isFunction(c)) {
  107. return d.ready(c)
  108. }
  109. }
  110. }
  111. if (c.selector !== dB) {
  112. this.selector = c.selector;
  113. this.context = c.context
  114. }
  115. return dr.makeArray(c, this)
  116. },
  117. selector : "",
  118. length : 0,
  119. size : function () {
  120. return this.length
  121. },
  122. toArray : function () {
  123. return dl.call(this)
  124. },
  125. get : function (a) {
  126. return a == null ? this.toArray() : (a < 0 ? this[this.length + a] : this[a])
  127. },
  128. pushStack : function (b) {
  129. var a = dr.merge(this.constructor(), b);
  130. a.prevObject = this;
  131. a.context = this.context;
  132. return a
  133. },
  134. each : function (a, b) {
  135. return dr.each(this, a, b)
  136. },
  137. ready : function (a) {
  138. dr.ready.promise().done(a);
  139. return this
  140. },
  141. slice : function () {
  142. return this.pushStack(dl.apply(this, arguments))
  143. },
  144. first : function () {
  145. return this.eq(0)
  146. },
  147. last : function () {
  148. return this.eq(-1)
  149. },
  150. eq : function (b) {
  151. var c = this.length,
  152. a = +b + (b < 0 ? c : 0);
  153. return this.pushStack(a >= 0 && a < c ? [this[a]] : [])
  154. },
  155. map : function (a) {
  156. return this.pushStack(dr.map(this, function (b, c) {
  157. return a.call(b, c, b)
  158. }))
  159. },
  160. end : function () {
  161. return this.prevObject || this.constructor(null)
  162. },
  163. push : dn,
  164. sort : [].sort,
  165. splice : [].splice
  166. };
  167. dr.fn.init.prototype = dr.fn;
  168. dr.extend = dr.fn.extend = function () {
  169. var b,
  170. j,
  171. l,
  172. d,
  173. c,
  174. k,
  175. a = arguments[0] || {},
  176. g = 1,
  177. f = arguments.length,
  178. h = false;
  179. if (typeof a === "boolean") {
  180. h = a;
  181. a = arguments[1] || {};
  182. g = 2
  183. }
  184. if (typeof a !== "object" && !dr.isFunction(a)) {
  185. a = {}
  186.  
  187. }
  188. if (f === g) {
  189. a = this;
  190. --g
  191. }
  192. for (; g < f; g++) {
  193. if ((c = arguments[g]) != null) {
  194. for (d in c) {
  195. b = a[d];
  196. l = c[d];
  197. if (a === l) {
  198. continue
  199. }
  200. if (h && l && (dr.isPlainObject(l) || (j = dr.isArray(l)))) {
  201. if (j) {
  202. j = false;
  203. k = b && dr.isArray(b) ? b : []
  204. } else {
  205. k = b && dr.isPlainObject(b) ? b : {}
  206.  
  207. }
  208. a[d] = dr.extend(h, k, l)
  209. } else {
  210. if (l !== dB) {
  211. a[d] = l
  212. }
  213. }
  214. }
  215. }
  216. }
  217. return a
  218. };
  219. dr.extend({
  220. noConflict : function (a) {
  221. if (dx.$ === dr) {
  222. dx.$ = cy
  223. }
  224. if (a && dx.jQuery === dr) {
  225. dx.jQuery = cx
  226. }
  227. return dr
  228. },
  229. isReady : false,
  230. readyWait : 1,
  231. holdReady : function (a) {
  232. if (a) {
  233. dr.readyWait++
  234. } else {
  235. dr.ready(true)
  236. }
  237. },
  238. ready : function (a) {
  239. if (a === true ? --dr.readyWait : dr.isReady) {
  240. return
  241. }
  242. if (!cG.body) {
  243. return setTimeout(dr.ready)
  244. }
  245. dr.isReady = true;
  246. if (a !== true && --dr.readyWait > 0) {
  247. return
  248. }
  249. el.resolveWith(cG, [dr]);
  250. if (dr.fn.trigger) {
  251. dr(cG).trigger("ready").off("ready")
  252. }
  253. },
  254. isFunction : function (a) {
  255. return dr.type(a) === "function"
  256. },
  257. isArray : Array.isArray || function (a) {
  258. return dr.type(a) === "array"
  259. },
  260. isWindow : function (a) {
  261. return a != null && a == a.window
  262. },
  263. isNumeric : function (a) {
  264. return !isNaN(parseFloat(a)) && isFinite(a)
  265. },
  266. type : function (a) {
  267. if (a == null) {
  268. return String(a)
  269. }
  270. return typeof a === "object" || typeof a === "function" ? cg[di.call(a)] || "object" : typeof a
  271. },
  272. isPlainObject : function (b) {
  273. if (!b || dr.type(b) !== "object" || b.nodeType || dr.isWindow(b)) {
  274. return false
  275. }
  276. try {
  277. if (b.constructor && !cb.call(b, "constructor") && !cb.call(b.constructor.prototype, "isPrototypeOf")) {
  278. return false
  279. }
  280. } catch (a) {
  281. return false
  282. }
  283. var c;
  284. for (c in b) {}
  285.  
  286. return c === dB || cb.call(b, c)
  287. },
  288. isEmptyObject : function (a) {
  289. var b;
  290. for (b in a) {
  291. return false
  292. }
  293. return true
  294. },
  295. error : function (a) {
  296. throw new Error(a)
  297. },
  298. parseHTML : function (a, c, f) {
  299. if (!a || typeof a !== "string") {
  300. return null
  301. }
  302. if (typeof c === "boolean") {
  303. f = c;
  304. c = false
  305. }
  306. c = c || cG;
  307. var d = cC.exec(a),
  308. b = !f && [];
  309. if (d) {
  310. return [c.createElement(d[1])]
  311. }
  312. d = dr.buildFragment([a], c, b);
  313. if (b) {
  314. dr(b).remove()
  315. }
  316. return dr.merge([], d.childNodes)
  317. },
  318. parseJSON : function (a) {
  319. if (dx.JSON && dx.JSON.parse) {
  320. return dx.JSON.parse(a)
  321. }
  322. if (a === null) {
  323. return a
  324. }
  325. if (typeof a === "string") {
  326. a = dr.trim(a);
  327. if (a) {
  328. if (d0.test(a.replace(dY, "@").replace(dV, "]").replace(d1, ""))) {
  329. return (new Function("return " + a))()
  330. }
  331. }
  332. }
  333. dr.error("Invalid JSON: " + a)
  334. },
  335. parseXML : function (a) {
  336. var b,
  337. c;
  338. if (!a || typeof a !== "string") {
  339. return null
  340. }
  341. try {
  342. if (dx.DOMParser) {
  343. c = new DOMParser();
  344. b = c.parseFromString(a, "text/xml")
  345. } else {
  346. b = new ActiveXObject("Microsoft.XMLDOM");
  347. b.async = "false";
  348. b.loadXML(a)
  349. }
  350. } catch (d) {
  351. b = dB
  352. }
  353. if (!b || !b.documentElement || b.getElementsByTagName("parsererror").length) {
  354. dr.error("Invalid XML: " + a)
  355. }
  356. return b
  357. },
  358. noop : function () {},
  359. globalEval : function (a) {
  360. if (a && dr.trim(a)) {
  361. (dx.execScript || function (b) {
  362. dx["eval"].call(dx, b)
  363. })(a)
  364. }
  365. },
  366. camelCase : function (a) {
  367. return a.replace(dd, "ms-").replace(en, ea)
  368. },
  369. nodeName : function (b, a) {
  370. return b.nodeName && b.nodeName.toLowerCase() === a.toLowerCase()
  371. },
  372. each : function (c, a, f) {
  373. var b,
  374. h = 0,
  375. d = c.length,
  376. g = dy(c);
  377. if (f) {
  378. if (g) {
  379. for (; h < d; h++) {
  380. b = a.apply(c[h], f);
  381. if (b === false) {
  382. break
  383. }
  384. }
  385. } else {
  386. for (h in c) {
  387. b = a.apply(c[h], f);
  388. if (b === false) {
  389. break
  390. }
  391. }
  392. }
  393. } else {
  394. if (g) {
  395. for (; h < d; h++) {
  396. b = a.call(c[h], h, c[h]);
  397. if (b === false) {
  398. break
  399. }
  400. }
  401. } else {
  402. for (h in c) {
  403. b = a.call(c[h], h, c[h]);
  404. if (b === false) {
  405. break
  406. }
  407. }
  408. }
  409. }
  410. return c
  411. },
  412. trim : dg && !dg.call("\uFEFF\xA0") ? function (a) {
  413. return a == null ? "" : dg.call(a)
  414. }
  415. : function (a) {
  416. return a == null ? "" : (a + "").replace(ed, "")
  417. },
  418. makeArray : function (b, a) {
  419. var c = a || [];
  420. if (b != null) {
  421. if (dy(Object(b))) {
  422. dr.merge(c, typeof b === "string" ? [b] : b)
  423. } else {
  424. dn.call(c, b)
  425. }
  426. }
  427. return c
  428. },
  429. inArray : function (a, b, d) {
  430. var c;
  431. if (b) {
  432. if (dq) {
  433. return dq.call(b, a, d)
  434. }
  435. c = b.length;
  436. d = d ? d < 0 ? Math.max(0, c + d) : d : 0;
  437. for (; d < c; d++) {
  438. if (d in b && b[d] === a) {
  439. return d
  440. }
  441. }
  442. }
  443. return -1
  444. },
  445. merge : function (c, b) {
  446. var d = b.length,
  447. a = c.length,
  448. f = 0;
  449. if (typeof d === "number") {
  450. for (; f < d; f++) {
  451. c[a++] = b[f]
  452. }
  453. } else {
  454. while (b[f] !== dB) {
  455. c[a++] = b[f++]
  456. }
  457. }
  458. c.length = a;
  459. return c
  460. },
  461. grep : function (a, f, g) {
  462. var b,
  463. c = [],
  464. h = 0,
  465. d = a.length;
  466. g = !!g;
  467. for (; h < d; h++) {
  468. b = !!f(a[h], h);
  469. if (g !== b) {
  470. c.push(a[h])
  471. }
  472. }
  473. return c
  474. },
  475. map : function (j, a, g) {
  476. var b,
  477. h = 0,
  478. d = j.length,
  479. f = dy(j),
  480. c = [];
  481. if (f) {
  482. for (; h < d; h++) {
  483. b = a(j[h], h, g);
  484. if (b != null) {
  485. c[c.length] = b
  486. }
  487. }
  488. } else {
  489. for (h in j) {
  490. b = a(j[h], h, g);
  491. if (b != null) {
  492. c[c.length] = b
  493. }
  494. }
  495. }
  496. return cd.apply([], c)
  497. },
  498. guid : 1,
  499. proxy : function (f, a) {
  500. var c,
  501. d,
  502. b;
  503. if (typeof a === "string") {
  504. b = f[a];
  505. a = f;
  506. f = b
  507. }
  508. if (!dr.isFunction(f)) {
  509. return dB
  510. }
  511. c = dl.call(arguments, 2);
  512. d = function () {
  513. return f.apply(a || this, c.concat(dl.call(arguments)))
  514. };
  515. d.guid = f.guid = f.guid || dr.guid++;
  516. return d
  517. },
  518. access : function (k, g, d, a, l, h, b) {
  519. var f = 0,
  520. c = k.length,
  521. j = d == null;
  522. if (dr.type(d) === "object") {
  523. l = true;
  524. for (f in d) {
  525. dr.access(k, g, f, d[f], true, h, b)
  526. }
  527. } else {
  528. if (a !== dB) {
  529. l = true;
  530. if (!dr.isFunction(a)) {
  531. b = true
  532. }
  533. if (j) {
  534. if (b) {
  535. g.call(k, a);
  536. g = null
  537. } else {
  538. j = g;
  539. g = function (o, n, m) {
  540. return j.call(dr(o), m)
  541. }
  542. }
  543. }
  544. if (g) {
  545. for (; f < c; f++) {
  546. g(k[f], d, b ? a : a.call(k[f], f, g(k[f], d)))
  547. }
  548. }
  549. }
  550. }
  551. return l ? k : j ? g.call(k) : c ? g(k[0], d) : h
  552. },
  553. now : function () {
  554. return (new Date()).getTime()
  555. }
  556. });
  557. dr.ready.promise = function (c) {
  558. if (!el) {
  559. el = dr.Deferred();
  560. if (cG.readyState === "complete") {
  561. setTimeout(dr.ready)
  562. } else {
  563. if (cG.addEventListener) {
  564. cG.addEventListener("DOMContentLoaded", ce, false);
  565. dx.addEventListener("load", ce, false)
  566. } else {
  567. cG.attachEvent("onreadystatechange", ce);
  568. dx.attachEvent("onload", ce);
  569. var b = false;
  570. try {
  571. b = dx.frameElement == null && cG.documentElement
  572. } catch (d) {}
  573.  
  574. if (b && b.doScroll) {
  575. (function a() {
  576. if (!dr.isReady) {
  577. try {
  578. b.doScroll("left")
  579. } catch (f) {
  580. return setTimeout(a, 50)
  581. }
  582. cJ();
  583. dr.ready()
  584. }
  585. })()
  586. }
  587. }
  588. }
  589. }
  590. return el.promise(c)
  591. };
  592. dr.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function (b, a) {
  593. cg["[object " + a + "]"] = a.toLowerCase()
  594. });
  595. function dy(a) {
  596. var b = a.length,
  597. c = dr.type(a);
  598. if (dr.isWindow(a)) {
  599. return false
  600. }
  601. if (a.nodeType === 1 && b) {
  602. return true
  603. }
  604. return c === "array" || c !== "function" && (b === 0 || typeof b === "number" && b > 0 && (b - 1)in a)
  605. }
  606. cW = dr(cG);
  607. var eE = {};
  608. function c8(a) {
  609. var b = eE[a] = {};
  610. dr.each(a.match(dm) || [], function (d, c) {
  611. b[c] = true
  612. });
  613. return b
  614. }
  615. dr.Callbacks = function (c) {
  616. c = typeof c === "string" ? (eE[c] || c8(c)) : dr.extend({}, c);
  617. var l,
  618. d,
  619. m,
  620. h,
  621. j,
  622. g,
  623. f = [],
  624. a = !c.once && [],
  625. k = function (n) {
  626. d = c.memory && n;
  627. m = true;
  628. j = g || 0;
  629. g = 0;
  630. h = f.length;
  631. l = true;
  632. for (; f && j < h; j++) {
  633. if (f[j].apply(n[0], n[1]) === false && c.stopOnFalse) {
  634. d = false;
  635. break
  636. }
  637. }
  638. l = false;
  639. if (f) {
  640. if (a) {
  641. if (a.length) {
  642. k(a.shift())
  643. }
  644. } else {
  645. if (d) {
  646. f = []
  647. } else {
  648. b.disable()
  649. }
  650. }
  651. }
  652. },
  653. b = {
  654. add : function () {
  655. if (f) {
  656. var n = f.length;
  657. (function o(p) {
  658. dr.each(p, function (s, r) {
  659. var q = dr.type(r);
  660. if (q === "function") {
  661. if (!c.unique || !b.has(r)) {
  662. f.push(r)
  663. }
  664. } else {
  665. if (r && r.length && q !== "string") {
  666. o(r)
  667. }
  668. }
  669. })
  670. })(arguments);
  671. if (l) {
  672. h = f.length
  673. } else {
  674. if (d) {
  675. g = n;
  676. k(d)
  677. }
  678. }
  679. }
  680. return this
  681. },
  682. remove : function () {
  683. if (f) {
  684. dr.each(arguments, function (p, o) {
  685. var n;
  686. while ((n = dr.inArray(o, f, n)) > -1) {
  687. f.splice(n, 1);
  688. if (l) {
  689. if (n <= h) {
  690. h--
  691. }
  692. if (n <= j) {
  693. j--
  694. }
  695. }
  696. }
  697. })
  698. }
  699. return this
  700. },
  701. has : function (n) {
  702. return n ? dr.inArray(n, f) > -1 : !!(f && f.length)
  703. },
  704. empty : function () {
  705. f = [];
  706. return this
  707. },
  708. disable : function () {
  709. f = a = d = dB;
  710. return this
  711. },
  712. disabled : function () {
  713. return !f
  714. },
  715. lock : function () {
  716. a = dB;
  717. if (!d) {
  718. b.disable()
  719. }
  720. return this
  721. },
  722. locked : function () {
  723. return !a
  724. },
  725. fireWith : function (n, o) {
  726. o = o || [];
  727. o = [n, o.slice ? o.slice() : o];
  728. if (f && (!m || a)) {
  729. if (l) {
  730. a.push(o)
  731. } else {
  732. k(o)
  733. }
  734. }
  735. return this
  736. },
  737. fire : function () {
  738. b.fireWith(this, arguments);
  739. return this
  740. },
  741. fired : function () {
  742. return !!m
  743. }
  744. };
  745. return b
  746. };
  747. dr.extend({
  748. Deferred : function (a) {
  749. var c = [["resolve", "done", dr.Callbacks("once memory"), "resolved"], ["reject", "fail", dr.Callbacks("once memory"), "rejected"], ["notify", "progress", dr.Callbacks("memory")]],
  750. d = "pending",
  751. f = {
  752. state : function () {
  753. return d
  754. },
  755. always : function () {
  756. b.done(arguments).fail(arguments);
  757. return this
  758. },
  759. then : function () {
  760. var g = arguments;
  761. return dr.Deferred(function (h) {
  762. dr.each(c, function (m, l) {
  763. var k = l[0],
  764. j = dr.isFunction(g[m]) && g[m];
  765. b[l[1]](function () {
  766. var n = j && j.apply(this, arguments);
  767. if (n && dr.isFunction(n.promise)) {
  768. n.promise().done(h.resolve).fail(h.reject).progress(h.notify)
  769. } else {
  770. h[k + "With"](this === f ? h.promise() : this, j ? [n] : arguments)
  771. }
  772. })
  773. });
  774. g = null
  775. }).promise()
  776. },
  777. promise : function (g) {
  778. return g != null ? dr.extend(g, f) : f
  779. }
  780. },
  781. b = {};
  782. f.pipe = f.then;
  783. dr.each(c, function (k, g) {
  784. var j = g[2],
  785. h = g[3];
  786. f[g[1]] = j.add;
  787. if (h) {
  788. j.add(function () {
  789. d = h
  790. }, c[k^1][2].disable, c[2][2].lock)
  791. }
  792. b[g[0]] = function () {
  793. b[g[0] + "With"](this === b ? f : this, arguments);
  794. return this
  795. };
  796. b[g[0] + "With"] = j.fireWith
  797. });
  798. f.promise(b);
  799. if (a) {
  800. a.call(b, b)
  801. }
  802. return b
  803. },
  804. when : function (b) {
  805. var l = 0,
  806. c = dl.call(arguments),
  807. j = c.length,
  808. f = j !== 1 || (b && dr.isFunction(b.promise)) ? j : 0,
  809. k = f === 1 ? b : dr.Deferred(),
  810. a = function (n, o, m) {
  811. return function (p) {
  812. o[n] = this;
  813. m[n] = arguments.length > 1 ? dl.call(arguments) : p;
  814. if (m === g) {
  815. k.notifyWith(o, m)
  816. } else {
  817. if (!(--f)) {
  818. k.resolveWith(o, m)
  819. }
  820. }
  821. }
  822. },
  823. g,
  824. h,
  825. d;
  826. if (j > 1) {
  827. g = new Array(j);
  828. h = new Array(j);
  829. d = new Array(j);
  830. for (; l < j; l++) {
  831. if (c[l] && dr.isFunction(c[l].promise)) {
  832. c[l].promise().done(a(l, d, c)).fail(k.reject).progress(a(l, h, g))
  833. } else {
  834. --f
  835. }
  836. }
  837. }
  838. if (!f) {
  839. k.resolveWith(d, c)
  840. }
  841. return k.promise()
  842. }
  843. });
  844. dr.support = (function () {
  845. var a,
  846. m,
  847. n,
  848. f,
  849. b,
  850. h,
  851. c,
  852. j,
  853. d,
  854. g,
  855. l = cG.createElement("div");
  856. l.setAttribute("className", "t");
  857. l.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
  858. m = l.getElementsByTagName("*");
  859. n = l.getElementsByTagName("a")[0];
  860. if (!m || !n || !m.length) {
  861. return {}
  862.  
  863. }
  864. b = cG.createElement("select");
  865. c = b.appendChild(cG.createElement("option"));
  866. f = l.getElementsByTagName("input")[0];
  867. n.style.cssText = "top:1px;float:left;opacity:.5";
  868. a = {
  869. getSetAttribute : l.className !== "t",
  870. leadingWhitespace : l.firstChild.nodeType === 3,
  871. tbody : !l.getElementsByTagName("tbody").length,
  872. htmlSerialize : !!l.getElementsByTagName("link").length,
  873. style : /top/.test(n.getAttribute("style")),
  874. hrefNormalized : n.getAttribute("href") === "/a",
  875. opacity : /^0.5/.test(n.style.opacity),
  876. cssFloat : !!n.style.cssFloat,
  877. checkOn : !!f.value,
  878. optSelected : c.selected,
  879. enctype : !!cG.createElement("form").enctype,
  880. html5Clone : cG.createElement("nav").cloneNode(true).outerHTML !== "<:nav></:nav>",
  881. boxModel : cG.compatMode === "CSS1Compat",
  882. deleteExpando : true,
  883. noCloneEvent : true,
  884. inlineBlockNeedsLayout : false,
  885. shrinkWrapBlocks : false,
  886. reliableMarginRight : true,
  887. boxSizingReliable : true,
  888. pixelPosition : false
  889. };
  890. f.checked = true;
  891. a.noCloneChecked = f.cloneNode(true).checked;
  892. b.disabled = true;
  893. a.optDisabled = !c.disabled;
  894. try {
  895. delete l.test
  896. } catch (k) {
  897. a.deleteExpando = false
  898. }
  899. f = cG.createElement("input");
  900. f.setAttribute("value", "");
  901. a.input = f.getAttribute("value") === "";
  902. f.value = "t";
  903. f.setAttribute("type", "radio");
  904. a.radioValue = f.value === "t";
  905. f.setAttribute("checked", "t");
  906. f.setAttribute("name", "t");
  907. h = cG.createDocumentFragment();
  908. h.appendChild(f);
  909. a.appendChecked = f.checked;
  910. a.checkClone = h.cloneNode(true).cloneNode(true).lastChild.checked;
  911. if (l.attachEvent) {
  912. l.attachEvent("onclick", function () {
  913. a.noCloneEvent = false
  914. });
  915. l.cloneNode(true).click()
  916. }
  917. for (g in {
  918. submit : true,
  919. change : true,
  920. focusin : true
  921. }) {
  922. l.setAttribute(j = "on" + g, "t");
  923. a[g + "Bubbles"] = j in dx || l.attributes[j].expando === false
  924. }
  925. l.style.backgroundClip = "content-box";
  926. l.cloneNode(true).style.backgroundClip = "";
  927. a.clearCloneStyle = l.style.backgroundClip === "content-box";
  928. dr(function () {
  929. var r,
  930. p,
  931. o,
  932. q = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",
  933. s = cG.getElementsByTagName("body")[0];
  934. if (!s) {
  935. return
  936. }
  937. r = cG.createElement("div");
  938. r.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px";
  939. s.appendChild(r).appendChild(l);
  940. l.innerHTML = "<table><tr><td></td><td>t</td></tr></table>";
  941. o = l.getElementsByTagName("td");
  942. o[0].style.cssText = "padding:0;margin:0;border:0;display:none";
  943. d = (o[0].offsetHeight === 0);
  944. o[0].style.display = "";
  945. o[1].style.display = "none";
  946. a.reliableHiddenOffsets = d && (o[0].offsetHeight === 0);
  947. l.innerHTML = "";
  948. l.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;";
  949. a.boxSizing = (l.offsetWidth === 4);
  950. a.doesNotIncludeMarginInBodyOffset = (s.offsetTop !== 1);
  951. if (dx.getComputedStyle) {
  952. a.pixelPosition = (dx.getComputedStyle(l, null) || {}).top !== "1%";
  953. a.boxSizingReliable = (dx.getComputedStyle(l, null) || {
  954. width : "4px"
  955. }).width === "4px";
  956. p = l.appendChild(cG.createElement("div"));
  957. p.style.cssText = l.style.cssText = q;
  958. p.style.marginRight = p.style.width = "0";
  959. l.style.width = "1px";
  960. a.reliableMarginRight = !parseFloat((dx.getComputedStyle(p, null) || {}).marginRight)
  961. }
  962. if (typeof l.style.zoom !== dk) {
  963. l.innerHTML = "";
  964. l.style.cssText = q + "width:1px;padding:1px;display:inline;zoom:1";
  965. a.inlineBlockNeedsLayout = (l.offsetWidth === 3);
  966. l.style.display = "block";
  967. l.innerHTML = "<div></div>";
  968. l.firstChild.style.width = "5px";
  969. a.shrinkWrapBlocks = (l.offsetWidth !== 3);
  970. if (a.inlineBlockNeedsLayout) {
  971. s.style.zoom = 1
  972. }
  973. }
  974. s.removeChild(r);
  975. r = l = o = p = null
  976. });
  977. m = b = h = c = n = f = null;
  978. return a
  979. })();
  980. var ey = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/,
  981. db = /([A-Z])/g;
  982. function dD(l, d, m, c) {
  983. if (!dr.acceptData(l)) {
  984. return
  985. }
  986. var a,
  987. b,
  988. g = dr.expando,
  989. j = typeof d === "string",
  990. f = l.nodeType,
  991. k = f ? dr.cache : l,
  992. h = f ? l[g] : l[g] && g;
  993. if ((!h || !k[h] || (!c && !k[h].data)) && j && m === dB) {
  994. return
  995. }
  996. if (!h) {
  997. if (f) {
  998. l[g] = h = cc.pop() || dr.guid++
  999. } else {
  1000. h = g
  1001. }
  1002. }
  1003. if (!k[h]) {
  1004. k[h] = {};
  1005. if (!f) {
  1006. k[h].toJSON = dr.noop
  1007. }
  1008. }
  1009. if (typeof d === "object" || typeof d === "function") {
  1010. if (c) {
  1011. k[h] = dr.extend(k[h], d)
  1012. } else {
  1013. k[h].data = dr.extend(k[h].data, d)
  1014. }
  1015. }
  1016. a = k[h];
  1017. if (!c) {
  1018. if (!a.data) {
  1019. a.data = {}
  1020.  
  1021. }
  1022. a = a.data
  1023. }
  1024. if (m !== dB) {
  1025. a[dr.camelCase(d)] = m
  1026. }
  1027. if (j) {
  1028. b = a[d];
  1029. if (b == null) {
  1030. b = a[dr.camelCase(d)]
  1031. }
  1032. } else {
  1033. b = a
  1034. }
  1035. return b
  1036. }
  1037. function dA(k, c, b) {
  1038. if (!dr.acceptData(k)) {
  1039. return
  1040. }
  1041. var h,
  1042. d,
  1043. a,
  1044. f = k.nodeType,
  1045. j = f ? dr.cache : k,
  1046. g = f ? k[dr.expando] : dr.expando;
  1047. if (!j[g]) {
  1048. return
  1049. }
  1050. if (c) {
  1051. a = b ? j[g] : j[g].data;
  1052. if (a) {
  1053. if (!dr.isArray(c)) {
  1054. if (c in a) {
  1055. c = [c]
  1056. } else {
  1057. c = dr.camelCase(c);
  1058. if (c in a) {
  1059. c = [c]
  1060. } else {
  1061. c = c.split(" ")
  1062. }
  1063. }
  1064. } else {
  1065. c = c.concat(dr.map(c, dr.camelCase))
  1066. }
  1067. for (h = 0, d = c.length; h < d; h++) {
  1068. delete a[c[h]]
  1069. }
  1070. if (!(b ? dw : dr.isEmptyObject)(a)) {
  1071. return
  1072. }
  1073. }
  1074. }
  1075. if (!b) {
  1076. delete j[g].data;
  1077. if (!dw(j[g])) {
  1078. return
  1079. }
  1080. }
  1081. if (f) {
  1082. dr.cleanData([k], true)
  1083. } else {
  1084. if (dr.support.deleteExpando || j != j.window) {
  1085. delete j[g]
  1086. } else {
  1087. j[g] = null
  1088. }
  1089. }
  1090. }
  1091. dr.extend({
  1092. cache : {},
  1093. expando : "jQuery" + (de + Math.random()).replace(/\D/g, ""),
  1094. noData : {
  1095. embed : true,
  1096. object : "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
  1097. applet : true
  1098. },
  1099. hasData : function (a) {
  1100. a = a.nodeType ? dr.cache[a[dr.expando]] : a[dr.expando];
  1101. return !!a && !dw(a)
  1102. },
  1103. data : function (a, c, b) {
  1104. return dD(a, c, b)
  1105. },
  1106. removeData : function (b, a) {
  1107. return dA(b, a)
  1108. },
  1109. _data : function (a, c, b) {
  1110. return dD(a, c, b, true)
  1111. },
  1112. _removeData : function (b, a) {
  1113. return dA(b, a, true)
  1114. },
  1115. acceptData : function (b) {
  1116. if (b.nodeType && b.nodeType !== 1 && b.nodeType !== 9) {
  1117. return false
  1118. }
  1119. var a = b.nodeName && dr.noData[b.nodeName.toLowerCase()];
  1120. return !a || a !== true && b.getAttribute("classid") === a
  1121. }
  1122. });
  1123. dr.fn.extend({
  1124. data : function (f, b) {
  1125. var d,
  1126. c,
  1127. h = this[0],
  1128. g = 0,
  1129. a = null;
  1130. if (f === dB) {
  1131. if (this.length) {
  1132. a = dr.data(h);
  1133. if (h.nodeType === 1 && !dr._data(h, "parsedAttrs")) {
  1134. d = h.attributes;
  1135. for (; g < d.length; g++) {
  1136. c = d[g].name;
  1137. if (!c.indexOf("data-")) {
  1138. c = dr.camelCase(c.slice(5));
  1139. cN(h, c, a[c])
  1140. }
  1141. }
  1142. dr._data(h, "parsedAttrs", true)
  1143. }
  1144. }
  1145. return a
  1146. }
  1147. if (typeof f === "object") {
  1148. return this.each(function () {
  1149. dr.data(this, f)
  1150. })
  1151. }
  1152. return dr.access(this, function (j) {
  1153. if (j === dB) {
  1154. return h ? cN(h, f, dr.data(h, f)) : null
  1155. }
  1156. this.each(function () {
  1157. dr.data(this, f, j)
  1158. })
  1159. }, null, b, arguments.length > 1, null, true)
  1160. },
  1161. removeData : function (a) {
  1162. return this.each(function () {
  1163. dr.removeData(this, a)
  1164. })
  1165. }
  1166. });
  1167. function cN(d, c, a) {
  1168. if (a === dB && d.nodeType === 1) {
  1169. var b = "data-" + c.replace(db, "-$1").toLowerCase();
  1170. a = d.getAttribute(b);
  1171. if (typeof a === "string") {
  1172. try {
  1173. a = a === "true" ? true : a === "false" ? false : a === "null" ? null : +a + "" === a ? +a : ey.test(a) ? dr.parseJSON(a) : a
  1174. } catch (f) {}
  1175.  
  1176. dr.data(d, c, a)
  1177. } else {
  1178. a = dB
  1179. }
  1180. }
  1181. return a
  1182. }
  1183. function dw(a) {
  1184. var b;
  1185. for (b in a) {
  1186. if (b === "data" && dr.isEmptyObject(a[b])) {
  1187. continue
  1188. }
  1189. if (b !== "toJSON") {
  1190. return false
  1191. }
  1192. }
  1193. return true
  1194. }
  1195. dr.extend({
  1196. queue : function (a, c, b) {
  1197. var d;
  1198. if (a) {
  1199. c = (c || "fx") + "queue";
  1200. d = dr._data(a, c);
  1201. if (b) {
  1202. if (!d || dr.isArray(b)) {
  1203. d = dr._data(a, c, dr.makeArray(b))
  1204. } else {
  1205. d.push(b)
  1206. }
  1207. }
  1208. return d || []
  1209. }
  1210. },
  1211. dequeue : function (f, b) {
  1212. b = b || "fx";
  1213. var d = dr.queue(f, b),
  1214. c = d.length,
  1215. a = d.shift(),
  1216. h = dr._queueHooks(f, b),
  1217. g = function () {
  1218. dr.dequeue(f, b)
  1219. };
  1220. if (a === "inprogress") {
  1221. a = d.shift();
  1222. c--
  1223. }
  1224. h.cur = a;
  1225. if (a) {
  1226. if (b === "fx") {
  1227. d.unshift("inprogress")
  1228. }
  1229. delete h.stop;
  1230. a.call(f, g, h)
  1231. }
  1232. if (!c && h) {
  1233. h.empty.fire()
  1234. }
  1235. },
  1236. _queueHooks : function (b, c) {
  1237. var a = c + "queueHooks";
  1238. return dr._data(b, a) || dr._data(b, a, {
  1239. empty : dr.Callbacks("once memory").add(function () {
  1240. dr._removeData(b, c + "queue");
  1241. dr._removeData(b, a)
  1242. })
  1243. })
  1244. }
  1245. });
  1246. dr.fn.extend({
  1247. queue : function (c, b) {
  1248. var a = 2;
  1249. if (typeof c !== "string") {
  1250. b = c;
  1251. c = "fx";
  1252. a--
  1253. }
  1254. if (arguments.length < a) {
  1255. return dr.queue(this[0], c)
  1256. }
  1257. return b === dB ? this : this.each(function () {
  1258. var d = dr.queue(this, c, b);
  1259. dr._queueHooks(this, c);
  1260. if (c === "fx" && d[0] !== "inprogress") {
  1261. dr.dequeue(this, c)
  1262. }
  1263. })
  1264. },
  1265. dequeue : function (a) {
  1266. return this.each(function () {
  1267. dr.dequeue(this, a)
  1268. })
  1269. },
  1270. delay : function (b, a) {
  1271. b = dr.fx ? dr.fx.speeds[b] || b : b;
  1272. a = a || "fx";
  1273. return this.queue(a, function (d, f) {
  1274. var c = setTimeout(d, b);
  1275. f.stop = function () {
  1276. clearTimeout(c)
  1277. }
  1278. })
  1279. },
  1280. clearQueue : function (a) {
  1281. return this.queue(a || "fx", [])
  1282. },
  1283. promise : function (b, g) {
  1284. var c,
  1285. f = 1,
  1286. a = dr.Deferred(),
  1287. j = this,
  1288. h = this.length,
  1289. d = function () {
  1290. if (!(--f)) {
  1291. a.resolveWith(j, [j])
  1292. }
  1293. };
  1294. if (typeof b !== "string") {
  1295. g = b;
  1296. b = dB
  1297. }
  1298. b = b || "fx";
  1299. while (h--) {
  1300. c = dr._data(j[h], b + "queueHooks");
  1301. if (c && c.empty) {
  1302. f++;
  1303. c.empty.add(d)
  1304. }
  1305. }
  1306. d();
  1307. return a.promise(g)
  1308. }
  1309. });
  1310. var eH,
  1311. ci,
  1312. ev = /[\t\r\n]/g,
  1313. cI = /\r/g,
  1314. eh = /^(?:input|select|textarea|button|object)$/i,
  1315. er = /^(?:a|area)$/i,
  1316. ez = /^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,
  1317. d3 = /^(?:checked|selected)$/i,
  1318. dT = dr.support.getSetAttribute,
  1319. dR = dr.support.input;
  1320. dr.fn.extend({
  1321. attr : function (b, a) {
  1322. return dr.access(this, dr.attr, b, a, arguments.length > 1)
  1323. },
  1324. removeAttr : function (a) {
  1325. return this.each(function () {
  1326. dr.removeAttr(this, a)
  1327. })
  1328. },
  1329. prop : function (b, a) {
  1330. return dr.access(this, dr.prop, b, a, arguments.length > 1)
  1331. },
  1332. removeProp : function (a) {
  1333. a = dr.propFix[a] || a;
  1334. return this.each(function () {
  1335. try {
  1336. this[a] = dB;
  1337. delete this[a]
  1338. } catch (b) {}
  1339.  
  1340. })
  1341. },
  1342. addClass : function (a) {
  1343. var j,
  1344. g,
  1345. h,
  1346. k,
  1347. d,
  1348. f = 0,
  1349. c = this.length,
  1350. b = typeof a === "string" && a;
  1351. if (dr.isFunction(a)) {
  1352. return this.each(function (l) {
  1353. dr(this).addClass(a.call(this, l, this.className))
  1354. })
  1355. }
  1356. if (b) {
  1357. j = (a || "").match(dm) || [];
  1358. for (; f < c; f++) {
  1359. g = this[f];
  1360. h = g.nodeType === 1 && (g.className ? (" " + g.className + " ").replace(ev, " ") : " ");
  1361. if (h) {
  1362. d = 0;
  1363. while ((k = j[d++])) {
  1364. if (h.indexOf(" " + k + " ") < 0) {
  1365. h += k + " "
  1366. }
  1367. }
  1368. g.className = dr.trim(h)
  1369. }
  1370. }
  1371. }
  1372. return this
  1373. },
  1374. removeClass : function (a) {
  1375. var j,
  1376. g,
  1377. h,
  1378. k,
  1379. d,
  1380. f = 0,
  1381. c = this.length,
  1382. b = arguments.length === 0 || typeof a === "string" && a;
  1383. if (dr.isFunction(a)) {
  1384. return this.each(function (l) {
  1385. dr(this).removeClass(a.call(this, l, this.className))
  1386. })
  1387. }
  1388. if (b) {
  1389. j = (a || "").match(dm) || [];
  1390. for (; f < c; f++) {
  1391. g = this[f];
  1392. h = g.nodeType === 1 && (g.className ? (" " + g.className + " ").replace(ev, " ") : "");
  1393. if (h) {
  1394. d = 0;
  1395. while ((k = j[d++])) {
  1396. while (h.indexOf(" " + k + " ") >= 0) {
  1397. h = h.replace(" " + k + " ", " ")
  1398. }
  1399. }
  1400. g.className = a ? dr.trim(h) : ""
  1401. }
  1402. }
  1403. }
  1404. return this
  1405. },
  1406. toggleClass : function (c, a) {
  1407. var d = typeof c,
  1408. b = typeof a === "boolean";
  1409. if (dr.isFunction(c)) {
  1410. return this.each(function (f) {
  1411. dr(this).toggleClass(c.call(this, f, this.className, a), a)
  1412. })
  1413. }
  1414. return this.each(function () {
  1415. if (d === "string") {
  1416. var k,
  1417. h = 0,
  1418. g = dr(this),
  1419. f = a,
  1420. j = c.match(dm) || [];
  1421. while ((k = j[h++])) {
  1422. f = b ? f : !g.hasClass(k);
  1423. g[f ? "addClass" : "removeClass"](k)
  1424. }
  1425. } else {
  1426. if (d === dk || d === "boolean") {
  1427. if (this.className) {
  1428. dr._data(this, "__className__", this.className)
  1429. }
  1430. this.className = this.className || c === false ? "" : dr._data(this, "__className__") || ""
  1431. }
  1432. }
  1433. })
  1434. },
  1435. hasClass : function (c) {
  1436. var b = " " + c + " ",
  1437. a = 0,
  1438. d = this.length;
  1439. for (; a < d; a++) {
  1440. if (this[a].nodeType === 1 && (" " + this[a].className + " ").replace(ev, " ").indexOf(b) >= 0) {
  1441. return true
  1442. }
  1443. }
  1444. return false
  1445. },
  1446. val : function (c) {
  1447. var d,
  1448. a,
  1449. f,
  1450. b = this[0];
  1451. if (!arguments.length) {
  1452. if (b) {
  1453. a = dr.valHooks[b.type] || dr.valHooks[b.nodeName.toLowerCase()];
  1454. if (a && "get" in a && (d = a.get(b, "value")) !== dB) {
  1455. return d
  1456. }
  1457. d = b.value;
  1458. return typeof d === "string" ? d.replace(cI, "") : d == null ? "" : d
  1459. }
  1460. return
  1461. }
  1462. f = dr.isFunction(c);
  1463. return this.each(function (j) {
  1464. var g,
  1465. h = dr(this);
  1466. if (this.nodeType !== 1) {
  1467. return
  1468. }
  1469. if (f) {
  1470. g = c.call(this, j, h.val())
  1471. } else {
  1472. g = c
  1473. }
  1474. if (g == null) {
  1475. g = ""
  1476. } else {
  1477. if (typeof g === "number") {
  1478. g += ""
  1479. } else {
  1480. if (dr.isArray(g)) {
  1481. g = dr.map(g, function (k) {
  1482. return k == null ? "" : k + ""
  1483. })
  1484. }
  1485. }
  1486. }
  1487. a = dr.valHooks[this.type] || dr.valHooks[this.nodeName.toLowerCase()];
  1488. if (!a || !("set" in a) || a.set(this, g, "value") === dB) {
  1489. this.value = g
  1490. }
  1491. })
  1492. }
  1493. });
  1494. dr.extend({
  1495. valHooks : {
  1496. option : {
  1497. get : function (b) {
  1498. var a = b.attributes.value;
  1499. return !a || a.specified ? b.value : b.text
  1500. }
  1501. },
  1502. select : {
  1503. get : function (j) {
  1504. var b,
  1505. d,
  1506. c = j.options,
  1507. h = j.selectedIndex,
  1508. f = j.type === "select-one" || h < 0,
  1509. a = f ? null : [],
  1510. g = f ? h + 1 : c.length,
  1511. k = h < 0 ? g : f ? h : 0;
  1512. for (; k < g; k++) {
  1513. d = c[k];
  1514. if ((d.selected || k === h) && (dr.support.optDisabled ? !d.disabled : d.getAttribute("disabled") === null) && (!d.parentNode.disabled || !dr.nodeName(d.parentNode, "optgroup"))) {
  1515. b = dr(d).val();
  1516. if (f) {
  1517. return b
  1518. }
  1519. a.push(b)
  1520. }
  1521. }
  1522. return a
  1523. },
  1524. set : function (b, a) {
  1525. var c = dr.makeArray(a);
  1526. dr(b).find("option").each(function () {
  1527. this.selected = dr.inArray(dr(this).val(), c) >= 0
  1528. });
  1529. if (!c.length) {
  1530. b.selectedIndex = -1
  1531. }
  1532. return c
  1533. }
  1534. }
  1535. },
  1536. attr : function (f, h, b) {
  1537. var a,
  1538. g,
  1539. c,
  1540. d = f.nodeType;
  1541. if (!f || d === 3 || d === 8 || d === 2) {
  1542. return
  1543. }
  1544. if (typeof f.getAttribute === dk) {
  1545. return dr.prop(f, h, b)
  1546. }
  1547. g = d !== 1 || !dr.isXMLDoc(f);
  1548. if (g) {
  1549. h = h.toLowerCase();
  1550. a = dr.attrHooks[h] || (ez.test(h) ? ci : eH)
  1551. }
  1552. if (b !== dB) {
  1553. if (b === null) {
  1554. dr.removeAttr(f, h)
  1555. } else {
  1556. if (a && g && "set" in a && (c = a.set(f, b, h)) !== dB) {
  1557. return c
  1558. } else {
  1559. f.setAttribute(h, b + "");
  1560. return b
  1561. }
  1562. }
  1563. } else {
  1564. if (a && g && "get" in a && (c = a.get(f, h)) !== null) {
  1565. return c
  1566. } else {
  1567. if (typeof f.getAttribute !== dk) {
  1568. c = f.getAttribute(h)
  1569. }
  1570. return c == null ? dB : c
  1571. }
  1572. }
  1573. },
  1574. removeAttr : function (a, b) {
  1575. var f,
  1576. d,
  1577. g = 0,
  1578. c = b && b.match(dm);
  1579. if (c && a.nodeType === 1) {
  1580. while ((f = c[g++])) {
  1581. d = dr.propFix[f] || f;
  1582. if (ez.test(f)) {
  1583. if (!dT && d3.test(f)) {
  1584. a[dr.camelCase("default-" + f)] = a[d] = false
  1585. } else {
  1586. a[d] = false
  1587. }
  1588. } else {
  1589. dr.attr(a, f, "")
  1590. }
  1591. a.removeAttribute(dT ? f : d)
  1592. }
  1593. }
  1594. },
  1595. attrHooks : {
  1596. type : {
  1597. set : function (b, c) {
  1598. if (!dr.support.radioValue && c === "radio" && dr.nodeName(b, "input")) {
  1599. var a = b.value;
  1600. b.setAttribute("type", c);
  1601. if (a) {
  1602. b.value = a
  1603. }
  1604. return c
  1605. }
  1606. }
  1607. }
  1608. },
  1609. propFix : {
  1610. tabindex : "tabIndex",
  1611. readonly : "readOnly",
  1612. "for" : "htmlFor",
  1613. "class" : "className",
  1614. maxlength : "maxLength",
  1615. cellspacing : "cellSpacing",
  1616. cellpadding : "cellPadding",
  1617. rowspan : "rowSpan",
  1618. colspan : "colSpan",
  1619. usemap : "useMap",
  1620. frameborder : "frameBorder",
  1621. contenteditable : "contentEditable"
  1622. },
  1623. prop : function (f, h, b) {
  1624. var c,
  1625. a,
  1626. g,
  1627. d = f.nodeType;
  1628. if (!f || d === 3 || d === 8 || d === 2) {
  1629. return
  1630. }
  1631. g = d !== 1 || !dr.isXMLDoc(f);
  1632. if (g) {
  1633. h = dr.propFix[h] || h;
  1634. a = dr.propHooks[h]
  1635. }
  1636. if (b !== dB) {
  1637. if (a && "set" in a && (c = a.set(f, b, h)) !== dB) {
  1638. return c
  1639. } else {
  1640. return (f[h] = b)
  1641. }
  1642. } else {
  1643. if (a && "get" in a && (c = a.get(f, h)) !== null) {
  1644. return c
  1645. } else {
  1646. return f[h]
  1647. }
  1648. }
  1649. },
  1650. propHooks : {
  1651. tabIndex : {
  1652. get : function (a) {
  1653. var b = a.getAttributeNode("tabindex");
  1654. return b && b.specified ? parseInt(b.value, 10) : eh.test(a.nodeName) || er.test(a.nodeName) && a.href ? 0 : dB
  1655. }
  1656. }
  1657. }
  1658. });
  1659. ci = {
  1660. get : function (f, d) {
  1661. var c = dr.prop(f, d),
  1662. b = typeof c === "boolean" && f.getAttribute(d),
  1663. a = typeof c === "boolean" ? dR && dT ? b != null : d3.test(d) ? f[dr.camelCase("default-" + d)] : !!b : f.getAttributeNode(d);
  1664. return a && a.value !== false ? d.toLowerCase() : dB
  1665. },
  1666. set : function (b, c, a) {
  1667. if (c === false) {
  1668. dr.removeAttr(b, a)
  1669. } else {
  1670. if (dR && dT || !d3.test(a)) {
  1671. b.setAttribute(!dT && dr.propFix[a] || a, a)
  1672. } else {
  1673. b[dr.camelCase("default-" + a)] = b[a] = true
  1674. }
  1675. }
  1676. return a
  1677. }
  1678. };
  1679. if (!dR || !dT) {
  1680. dr.attrHooks.value = {
  1681. get : function (b, a) {
  1682. var c = b.getAttributeNode(a);
  1683. return dr.nodeName(b, "input") ? b.defaultValue : c && c.specified ? c.value : dB
  1684. },
  1685. set : function (b, c, a) {
  1686. if (dr.nodeName(b, "input")) {
  1687. b.defaultValue = c
  1688. } else {
  1689. return eH && eH.set(b, c, a)
  1690. }
  1691. }
  1692. }
  1693. }
  1694. if (!dT) {
  1695. eH = dr.valHooks.button = {
  1696. get : function (b, a) {
  1697. var c = b.getAttributeNode(a);
  1698. return c && (a === "id" || a === "name" || a === "coords" ? c.value !== "" : c.specified) ? c.value : dB
  1699. },
  1700. set : function (b, c, a) {
  1701. var d = b.getAttributeNode(a);
  1702. if (!d) {
  1703. b.setAttributeNode((d = b.ownerDocument.createAttribute(a)))
  1704. }
  1705. d.value = c += "";
  1706. return a === "value" || c === b.getAttribute(a) ? c : dB
  1707. }
  1708. };
  1709. dr.attrHooks.contenteditable = {
  1710. get : eH.get,
  1711. set : function (b, c, a) {
  1712. eH.set(b, c === "" ? false : c, a)
  1713. }
  1714. };
  1715. dr.each(["width", "height"], function (b, a) {
  1716. dr.attrHooks[a] = dr.extend(dr.attrHooks[a], {
  1717. set : function (d, c) {
  1718. if (c === "") {
  1719. d.setAttribute(a, "auto");
  1720. return c
  1721. }
  1722. }
  1723. })
  1724. })
  1725. }
  1726. if (!dr.support.hrefNormalized) {
  1727. dr.each(["href", "src", "width", "height"], function (b, a) {
  1728. dr.attrHooks[a] = dr.extend(dr.attrHooks[a], {
  1729. get : function (d) {
  1730. var c = d.getAttribute(a, 2);
  1731. return c == null ? dB : c
  1732. }
  1733. })
  1734. });
  1735. dr.each(["href", "src"], function (b, a) {
  1736. dr.propHooks[a] = {
  1737. get : function (c) {
  1738. return c.getAttribute(a, 4)
  1739. }
  1740. }
  1741. })
  1742. }
  1743. if (!dr.support.style) {
  1744. dr.attrHooks.style = {
  1745. get : function (a) {
  1746. return a.style.cssText || dB
  1747. },
  1748. set : function (b, a) {
  1749. return (b.style.cssText = a + "")
  1750. }
  1751. }
  1752. }
  1753. if (!dr.support.optSelected) {
  1754. dr.propHooks.selected = dr.extend(dr.propHooks.selected, {
  1755. get : function (b) {
  1756. var a = b.parentNode;
  1757. if (a) {
  1758. a.selectedIndex;
  1759. if (a.parentNode) {
  1760. a.parentNode.selectedIndex
  1761. }
  1762. }
  1763. return null
  1764. }
  1765. })
  1766. }
  1767. if (!dr.support.enctype) {
  1768. dr.propFix.enctype = "encoding"
  1769. }
  1770. if (!dr.support.checkOn) {
  1771. dr.each(["radio", "checkbox"], function () {
  1772. dr.valHooks[this] = {
  1773. get : function (a) {
  1774. return a.getAttribute("value") === null ? "on" : a.value
  1775. }
  1776. }
  1777. })
  1778. }
  1779. dr.each(["radio", "checkbox"], function () {
  1780. dr.valHooks[this] = dr.extend(dr.valHooks[this], {
  1781. set : function (b, a) {
  1782. if (dr.isArray(a)) {
  1783. return (b.checked = dr.inArray(dr(b).val(), a) >= 0)
  1784. }
  1785. }
  1786. })
  1787. });
  1788. var ca = /^(?:input|select|textarea)$/i,
  1789. e = /^key/,
  1790. df = /^(?:mouse|contextmenu)|click/,
  1791. eg = /^(?:focusinfocus|focusoutblur)$/,
  1792. d9 = /^([^.]*)(?:\.(.+)|)$/;
  1793. function ei() {
  1794. return true
  1795. }
  1796. function ej() {
  1797. return false
  1798. }
  1799. dr.event = {
  1800. global : {},
  1801. add : function (q, r, j, p, d) {
  1802. var a,
  1803. m,
  1804. b,
  1805. k,
  1806. c,
  1807. n,
  1808. l,
  1809. h,
  1810. s,
  1811. g,
  1812. f,
  1813. o = dr._data(q);
  1814. if (!o) {
  1815. return
  1816. }
  1817. if (j.handler) {
  1818. k = j;
  1819. j = k.handler;
  1820. d = k.selector
  1821. }
  1822. if (!j.guid) {
  1823. j.guid = dr.guid++
  1824. }
  1825. if (!(m = o.events)) {
  1826. m = o.events = {}
  1827.  
  1828. }
  1829. if (!(n = o.handle)) {
  1830. n = o.handle = function (t) {
  1831. return typeof dr !== dk && (!t || dr.event.triggered !== t.type) ? dr.event.dispatch.apply(n.elem, arguments) : dB
  1832. };
  1833. n.elem = q
  1834. }
  1835. r = (r || "").match(dm) || [""];
  1836. b = r.length;
  1837. while (b--) {
  1838. a = d9.exec(r[b]) || [];
  1839. s = f = a[1];
  1840. g = (a[2] || "").split(".").sort();
  1841. c = dr.event.special[s] || {};
  1842. s = (d ? c.delegateType : c.bindType) || s;
  1843. c = dr.event.special[s] || {};
  1844. l = dr.extend({
  1845. type : s,
  1846. origType : f,
  1847. data : p,
  1848. handler : j,
  1849. guid : j.guid,
  1850. selector : d,
  1851. needsContext : d && dr.expr.match.needsContext.test(d),
  1852. namespace : g.join(".")
  1853. }, k);
  1854. if (!(h = m[s])) {
  1855. h = m[s] = [];
  1856. h.delegateCount = 0;
  1857. if (!c.setup || c.setup.call(q, p, g, n) === false) {
  1858. if (q.addEventListener) {
  1859. q.addEventListener(s, n, false)
  1860. } else {
  1861. if (q.attachEvent) {
  1862. q.attachEvent("on" + s, n)
  1863. }
  1864. }
  1865. }
  1866. }
  1867. if (c.add) {
  1868. c.add.call(q, l);
  1869. if (!l.handler.guid) {
  1870. l.handler.guid = j.guid
  1871. }
  1872. }
  1873. if (d) {
  1874. h.splice(h.delegateCount++, 0, l)
  1875. } else {
  1876. h.push(l)
  1877. }
  1878. dr.event.global[s] = true
  1879. }
  1880. q = null
  1881. },
  1882. remove : function (p, r, m, d, j) {
  1883. var k,
  1884. n,
  1885. a,
  1886. g,
  1887. b,
  1888. o,
  1889. c,
  1890. l,
  1891. s,
  1892. h,
  1893. f,
  1894. q = dr.hasData(p) && dr._data(p);
  1895. if (!q || !(o = q.events)) {
  1896. return
  1897. }
  1898. r = (r || "").match(dm) || [""];
  1899. b = r.length;
  1900. while (b--) {
  1901. a = d9.exec(r[b]) || [];
  1902. s = f = a[1];
  1903. h = (a[2] || "").split(".").sort();
  1904. if (!s) {
  1905. for (s in o) {
  1906. dr.event.remove(p, s + r[b], m, d, true)
  1907. }
  1908. continue
  1909. }
  1910. c = dr.event.special[s] || {};
  1911. s = (d ? c.delegateType : c.bindType) || s;
  1912. l = o[s] || [];
  1913. a = a[2] && new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)");
  1914. g = k = l.length;
  1915. while (k--) {
  1916. n = l[k];
  1917. if ((j || f === n.origType) && (!m || m.guid === n.guid) && (!a || a.test(n.namespace)) && (!d || d === n.selector || d === "**" && n.selector)) {
  1918. l.splice(k, 1);
  1919. if (n.selector) {
  1920. l.delegateCount--
  1921. }
  1922. if (c.remove) {
  1923. c.remove.call(p, n)
  1924. }
  1925. }
  1926. }
  1927. if (g && !l.length) {
  1928. if (!c.teardown || c.teardown.call(p, h, q.handle) === false) {
  1929. dr.removeEvent(p, s, q.handle)
  1930. }
  1931. delete o[s]
  1932. }
  1933. }
  1934. if (dr.isEmptyObject(o)) {
  1935. delete q.handle;
  1936. dr._removeData(p, "events")
  1937. }
  1938. },
  1939. trigger : function (k, n, l, d) {
  1940. var h,
  1941. c,
  1942. o,
  1943. p,
  1944. b,
  1945. a,
  1946. g,
  1947. j = [l || cG],
  1948. q = cb.call(k, "type") ? k.type : k,
  1949. f = cb.call(k, "namespace") ? k.namespace.split(".") : [];
  1950. o = a = l = l || cG;
  1951. if (l.nodeType === 3 || l.nodeType === 8) {
  1952. return
  1953. }
  1954. if (eg.test(q + dr.event.triggered)) {
  1955. return
  1956. }
  1957. if (q.indexOf(".") >= 0) {
  1958. f = q.split(".");
  1959. q = f.shift();
  1960. f.sort()
  1961. }
  1962. c = q.indexOf(":") < 0 && "on" + q;
  1963. k = k[dr.expando] ? k : new dr.Event(q, typeof k === "object" && k);
  1964. k.isTrigger = true;
  1965. k.namespace = f.join(".");
  1966. k.namespace_re = k.namespace ? new RegExp("(^|\\.)" + f.join("\\.(?:.*\\.|)") + "(\\.|$)") : null;
  1967. k.result = dB;
  1968. if (!k.target) {
  1969. k.target = l
  1970. }
  1971. n = n == null ? [k] : dr.makeArray(n, [k]);
  1972. b = dr.event.special[q] || {};
  1973. if (!d && b.trigger && b.trigger.apply(l, n) === false) {
  1974. return
  1975. }
  1976. if (!d && !b.noBubble && !dr.isWindow(l)) {
  1977. p = b.delegateType || q;
  1978. if (!eg.test(p + q)) {
  1979. o = o.parentNode
  1980. }
  1981. for (; o; o = o.parentNode) {
  1982. j.push(o);
  1983. a = o
  1984. }
  1985. if (a === (l.ownerDocument || cG)) {
  1986. j.push(a.defaultView || a.parentWindow || dx)
  1987. }
  1988. }
  1989. g = 0;
  1990. while ((o = j[g++]) && !k.isPropagationStopped()) {
  1991. k.type = g > 1 ? p : b.bindType || q;
  1992. h = (dr._data(o, "events") || {})[k.type] && dr._data(o, "handle");
  1993. if (h) {
  1994. h.apply(o, n)
  1995. }
  1996. h = c && o[c];
  1997. if (h && dr.acceptData(o) && h.apply && h.apply(o, n) === false) {
  1998. k.preventDefault()
  1999. }
  2000. }
  2001. k.type = q;
  2002. if (!d && !k.isDefaultPrevented()) {
  2003. if ((!b._default || b._default.apply(l.ownerDocument, n) === false) && !(q === "click" && dr.nodeName(l, "a")) && dr.acceptData(l)) {
  2004. if (c && l[q] && !dr.isWindow(l)) {
  2005. a = l[c];
  2006. if (a) {
  2007. l[c] = null
  2008. }
  2009. dr.event.triggered = q;
  2010. try {
  2011. l[q]()
  2012. } catch (m) {}
  2013.  
  2014. dr.event.triggered = dB;
  2015. if (a) {
  2016. l[c] = a
  2017. }
  2018. }
  2019. }
  2020. }
  2021. return k.result
  2022. },
  2023. dispatch : function (l) {
  2024. l = dr.event.fix(l);
  2025. var f,
  2026. b,
  2027. j,
  2028. c,
  2029. d,
  2030. h = [],
  2031. k = dl.call(arguments),
  2032. g = (dr._data(this, "events") || {})[l.type] || [],
  2033. a = dr.event.special[l.type] || {};
  2034. k[0] = l;
  2035. l.delegateTarget = this;
  2036. if (a.preDispatch && a.preDispatch.call(this, l) === false) {
  2037. return
  2038. }
  2039. h = dr.event.handlers.call(this, l, g);
  2040. f = 0;
  2041. while ((c = h[f++]) && !l.isPropagationStopped()) {
  2042. l.currentTarget = c.elem;
  2043. d = 0;
  2044. while ((j = c.handlers[d++]) && !l.isImmediatePropagationStopped()) {
  2045. if (!l.namespace_re || l.namespace_re.test(j.namespace)) {
  2046. l.handleObj = j;
  2047. l.data = j.data;
  2048. b = ((dr.event.special[j.origType] || {}).handle || j.handler).apply(c.elem, k);
  2049. if (b !== dB) {
  2050. if ((l.result = b) === false) {
  2051. l.preventDefault();
  2052. l.stopPropagation()
  2053. }
  2054. }
  2055. }
  2056. }
  2057. }
  2058. if (a.postDispatch) {
  2059. a.postDispatch.call(this, l)
  2060. }
  2061. return l.result
  2062. },
  2063. handlers : function (j, d) {
  2064. var a,
  2065. g,
  2066. b,
  2067. c,
  2068. f = [],
  2069. k = d.delegateCount,
  2070. h = j.target;
  2071. if (k && h.nodeType && (!j.button || j.type !== "click")) {
  2072. for (; h != this; h = h.parentNode || this) {
  2073. if (h.nodeType === 1 && (h.disabled !== true || j.type !== "click")) {
  2074. b = [];
  2075. for (c = 0; c < k; c++) {
  2076. g = d[c];
  2077. a = g.selector + " ";
  2078. if (b[a] === dB) {
  2079. b[a] = g.needsContext ? dr(a, this).index(h) >= 0 : dr.find(a, this, null, [h]).length
  2080. }
  2081. if (b[a]) {
  2082. b.push(g)
  2083. }
  2084. }
  2085. if (b.length) {
  2086. f.push({
  2087. elem : h,
  2088. handlers : b
  2089. })
  2090. }
  2091. }
  2092. }
  2093. }
  2094. if (k < d.length) {
  2095. f.push({
  2096. elem : this,
  2097. handlers : d.slice(k)
  2098. })
  2099. }
  2100. return f
  2101. },
  2102. fix : function (a) {
  2103. if (a[dr.expando]) {
  2104. return a
  2105. }
  2106. var g,
  2107. c,
  2108. f,
  2109. b = a.type,
  2110. d = a,
  2111. h = this.fixHooks[b];
  2112. if (!h) {
  2113. this.fixHooks[b] = h = df.test(b) ? this.mouseHooks : e.test(b) ? this.keyHooks : {}
  2114.  
  2115. }
  2116. f = h.props ? this.props.concat(h.props) : this.props;
  2117. a = new dr.Event(d);
  2118. g = f.length;
  2119. while (g--) {
  2120. c = f[g];
  2121. a[c] = d[c]
  2122. }
  2123. if (!a.target) {
  2124. a.target = d.srcElement || cG
  2125. }
  2126. if (a.target.nodeType === 3) {
  2127. a.target = a.target.parentNode
  2128. }
  2129. a.metaKey = !!a.metaKey;
  2130. return h.filter ? h.filter(a, d) : a
  2131. },
  2132. props : "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
  2133. fixHooks : {},
  2134. keyHooks : {
  2135. props : "char charCode key keyCode".split(" "),
  2136. filter : function (b, a) {
  2137. if (b.which == null) {
  2138. b.which = a.charCode != null ? a.charCode : a.keyCode
  2139. }
  2140. return b
  2141. }
  2142. },
  2143. mouseHooks : {
  2144. props : "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
  2145. filter : function (g, b) {
  2146. var f,
  2147. d,
  2148. h,
  2149. a = b.button,
  2150. c = b.fromElement;
  2151. if (g.pageX == null && b.clientX != null) {
  2152. d = g.target.ownerDocument || cG;
  2153. h = d.documentElement;
  2154. f = d.body;
  2155. g.pageX = b.clientX + (h && h.scrollLeft || f && f.scrollLeft || 0) - (h && h.clientLeft || f && f.clientLeft || 0);
  2156. g.pageY = b.clientY + (h && h.scrollTop || f && f.scrollTop || 0) - (h && h.clientTop || f && f.clientTop || 0)
  2157. }
  2158. if (!g.relatedTarget && c) {
  2159. g.relatedTarget = c === g.target ? b.toElement : c
  2160. }
  2161. if (!g.which && a !== dB) {
  2162. g.which = (a & 1 ? 1 : (a & 2 ? 3 : (a & 4 ? 2 : 0)))
  2163. }
  2164. return g
  2165. }
  2166. },
  2167. special : {
  2168. load : {
  2169. noBubble : true
  2170. },
  2171. click : {
  2172. trigger : function () {
  2173. if (dr.nodeName(this, "input") && this.type === "checkbox" && this.click) {
  2174. this.click();
  2175. return false
  2176. }
  2177. }
  2178. },
  2179. focus : {
  2180. trigger : function () {
  2181. if (this !== cG.activeElement && this.focus) {
  2182. try {
  2183. this.focus();
  2184. return false
  2185. } catch (a) {}
  2186.  
  2187. }
  2188. },
  2189. delegateType : "focusin"
  2190. },
  2191. blur : {
  2192. trigger : function () {
  2193. if (this === cG.activeElement && this.blur) {
  2194. this.blur();
  2195. return false
  2196. }
  2197. },
  2198. delegateType : "focusout"
  2199. },
  2200. beforeunload : {
  2201. postDispatch : function (a) {
  2202. if (a.result !== dB) {
  2203. a.originalEvent.returnValue = a.result
  2204. }
  2205. }
  2206. }
  2207. },
  2208. simulate : function (b, d, c, a) {
  2209. var f = dr.extend(new dr.Event(), c, {
  2210. type : b,
  2211. isSimulated : true,
  2212. originalEvent : {}
  2213.  
  2214. });
  2215. if (a) {
  2216. dr.event.trigger(f, null, d)
  2217. } else {
  2218. dr.event.dispatch.call(d, f)
  2219. }
  2220. if (f.isDefaultPrevented()) {
  2221. c.preventDefault()
  2222. }
  2223. }
  2224. };
  2225. dr.removeEvent = cG.removeEventListener ? function (b, c, a) {
  2226. if (b.removeEventListener) {
  2227. b.removeEventListener(c, a, false)
  2228. }
  2229. }
  2230. : function (b, c, a) {
  2231. var d = "on" + c;
  2232. if (b.detachEvent) {
  2233. if (typeof b[d] === dk) {
  2234. b[d] = null
  2235. }
  2236. b.detachEvent(d, a)
  2237. }
  2238. };
  2239. dr.Event = function (a, b) {
  2240. if (!(this instanceof dr.Event)) {
  2241. return new dr.Event(a, b)
  2242. }
  2243. if (a && a.type) {
  2244. this.originalEvent = a;
  2245. this.type = a.type;
  2246. this.isDefaultPrevented = (a.defaultPrevented || a.returnValue === false || a.getPreventDefault && a.getPreventDefault()) ? ei : ej
  2247. } else {
  2248. this.type = a
  2249. }
  2250. if (b) {
  2251. dr.extend(this, b)
  2252. }
  2253. this.timeStamp = a && a.timeStamp || dr.now();
  2254. this[dr.expando] = true
  2255. };
  2256. dr.Event.prototype = {
  2257. isDefaultPrevented : ej,
  2258. isPropagationStopped : ej,
  2259. isImmediatePropagationStopped : ej,
  2260. preventDefault : function () {
  2261. var a = this.originalEvent;
  2262. this.isDefaultPrevented = ei;
  2263. if (!a) {
  2264. return
  2265. }
  2266. if (a.preventDefault) {
  2267. a.preventDefault()
  2268. } else {
  2269. a.returnValue = false
  2270. }
  2271. },
  2272. stopPropagation : function () {
  2273. var a = this.originalEvent;
  2274. this.isPropagationStopped = ei;
  2275. if (!a) {
  2276. return
  2277. }
  2278. if (a.stopPropagation) {
  2279. a.stopPropagation()
  2280. }
  2281. a.cancelBubble = true
  2282. },
  2283. stopImmediatePropagation : function () {
  2284. this.isImmediatePropagationStopped = ei;
  2285. this.stopPropagation()
  2286. }
  2287. };
  2288. dr.each({
  2289. mouseenter : "mouseover",
  2290. mouseleave : "mouseout"
  2291. }, function (a, b) {
  2292. dr.event.special[a] = {
  2293. delegateType : b,
  2294. bindType : b,
  2295. handle : function (h) {
  2296. var d,
  2297. c = this,
  2298. f = h.relatedTarget,
  2299. g = h.handleObj;
  2300. if (!f || (f !== c && !dr.contains(c, f))) {
  2301. h.type = g.origType;
  2302. d = g.handler.apply(this, arguments);
  2303. h.type = b
  2304. }
  2305. return d
  2306. }
  2307. }
  2308. });
  2309. if (!dr.support.submitBubbles) {
  2310. dr.event.special.submit = {
  2311. setup : function () {
  2312. if (dr.nodeName(this, "form")) {
  2313. return false
  2314. }
  2315. dr.event.add(this, "click._submit keypress._submit", function (a) {
  2316. var c = a.target,
  2317. b = dr.nodeName(c, "input") || dr.nodeName(c, "button") ? c.form : dB;
  2318. if (b && !dr._data(b, "submitBubbles")) {
  2319. dr.event.add(b, "submit._submit", function (d) {
  2320. d._submit_bubble = true
  2321. });
  2322. dr._data(b, "submitBubbles", true)
  2323. }
  2324. })
  2325. },
  2326. postDispatch : function (a) {
  2327. if (a._submit_bubble) {
  2328. delete a._submit_bubble;
  2329. if (this.parentNode && !a.isTrigger) {
  2330. dr.event.simulate("submit", this.parentNode, a, true)
  2331. }
  2332. }
  2333. },
  2334. teardown : function () {
  2335. if (dr.nodeName(this, "form")) {
  2336. return false
  2337. }
  2338. dr.event.remove(this, "._submit")
  2339. }
  2340. }
  2341. }
  2342. if (!dr.support.changeBubbles) {
  2343. dr.event.special.change = {
  2344. setup : function () {
  2345. if (ca.test(this.nodeName)) {
  2346. if (this.type === "checkbox" || this.type === "radio") {
  2347. dr.event.add(this, "propertychange._change", function (a) {
  2348. if (a.originalEvent.propertyName === "checked") {
  2349. this._just_changed = true
  2350. }
  2351. });
  2352. dr.event.add(this, "click._change", function (a) {
  2353. if (this._just_changed && !a.isTrigger) {
  2354. this._just_changed = false
  2355. }
  2356. dr.event.simulate("change", this, a, true)
  2357. })
  2358. }
  2359. return false
  2360. }
  2361. dr.event.add(this, "beforeactivate._change", function (a) {
  2362. var b = a.target;
  2363. if (ca.test(b.nodeName) && !dr._data(b, "changeBubbles")) {
  2364. dr.event.add(b, "change._change", function (c) {
  2365. if (this.parentNode && !c.isSimulated && !c.isTrigger) {
  2366. dr.event.simulate("change", this.parentNode, c, true)
  2367. }
  2368. });
  2369. dr._data(b, "changeBubbles", true)
  2370. }
  2371. })
  2372. },
  2373. handle : function (a) {
  2374. var b = a.target;
  2375. if (this !== b || a.isSimulated || a.isTrigger || (b.type !== "radio" && b.type !== "checkbox")) {
  2376. return a.handleObj.handler.apply(this, arguments)
  2377. }
  2378. },
  2379. teardown : function () {
  2380. dr.event.remove(this, "._change");
  2381. return !ca.test(this.nodeName)
  2382. }
  2383. }
  2384. }
  2385. if (!dr.support.focusinBubbles) {
  2386. dr.each({
  2387. focus : "focusin",
  2388. blur : "focusout"
  2389. }, function (c, a) {
  2390. var b = 0,
  2391. d = function (f) {
  2392. dr.event.simulate(a, f.target, dr.event.fix(f), true)
  2393. };
  2394. dr.event.special[a] = {
  2395. setup : function () {
  2396. if (b++ === 0) {
  2397. cG.addEventListener(c, d, true)
  2398. }
  2399. },
  2400. teardown : function () {
  2401. if (--b === 0) {
  2402. cG.removeEventListener(c, d, true)
  2403. }
  2404. }
  2405. }
  2406. })
  2407. }
  2408. dr.fn.extend({
  2409. on : function (b, f, d, a, h) {
  2410. var c,
  2411. g;
  2412. if (typeof b === "object") {
  2413. if (typeof f !== "string") {
  2414. d = d || f;
  2415. f = dB
  2416. }
  2417. for (c in b) {
  2418. this.on(c, f, d, b[c], h)
  2419. }
  2420. return this
  2421. }
  2422. if (d == null && a == null) {
  2423. a = f;
  2424. d = f = dB
  2425. } else {
  2426. if (a == null) {
  2427. if (typeof f === "string") {
  2428. a = d;
  2429. d = dB
  2430. } else {
  2431. a = d;
  2432. d = f;
  2433. f = dB
  2434. }
  2435. }
  2436. }
  2437. if (a === false) {
  2438. a = ej
  2439. } else {
  2440. if (!a) {
  2441. return this
  2442. }
  2443. }
  2444. if (h === 1) {
  2445. g = a;
  2446. a = function (j) {
  2447. dr().off(j);
  2448. return g.apply(this, arguments)
  2449. };
  2450. a.guid = g.guid || (g.guid = dr.guid++)
  2451. }
  2452. return this.each(function () {
  2453. dr.event.add(this, b, a, d, f)
  2454. })
  2455. },
  2456. one : function (c, d, b, a) {
  2457. return this.on(c, d, b, a, 1)
  2458. },
  2459. off : function (c, f, b) {
  2460. var a,
  2461. d;
  2462. if (c && c.preventDefault && c.handleObj) {
  2463. a = c.handleObj;
  2464. dr(c.delegateTarget).off(a.namespace ? a.origType + "." + a.namespace : a.origType, a.selector, a.handler);
  2465. return this
  2466. }
  2467. if (typeof c === "object") {
  2468. for (d in c) {
  2469. this.off(d, f, c[d])
  2470. }
  2471. return this
  2472. }
  2473. if (f === false || typeof f === "function") {
  2474. b = f;
  2475. f = dB
  2476. }
  2477. if (b === false) {
  2478. b = ej
  2479. }
  2480. return this.each(function () {
  2481. dr.event.remove(this, c, b, f)
  2482. })
  2483. },
  2484. bind : function (c, b, a) {
  2485. return this.on(c, null, b, a)
  2486. },
  2487. unbind : function (a, b) {
  2488. return this.off(a, null, b)
  2489. },
  2490. delegate : function (d, c, b, a) {
  2491. return this.on(c, d, b, a)
  2492. },
  2493. undelegate : function (a, c, b) {
  2494. return arguments.length === 1 ? this.off(a, "**") : this.off(c, a || "**", b)
  2495. },
  2496. trigger : function (a, b) {
  2497. return this.each(function () {
  2498. dr.event.trigger(a, b, this)
  2499. })
  2500. },
  2501. triggerHandler : function (c, b) {
  2502. var a = this[0];
  2503. if (a) {
  2504. return dr.event.trigger(c, b, a, true)
  2505. }
  2506. }
  2507. });
  2508. (function (a, c) {
  2509. var p,
  2510. aw,
  2511. t,
  2512. r,
  2513. l,
  2514. J,
  2515. q,
  2516. ac,
  2517. aq,
  2518. z,
  2519. A,
  2520. y,
  2521. V,
  2522. W,
  2523. ah,
  2524. G,
  2525. k,
  2526. u = "sizzle" + - (new Date()),
  2527. aa = a.document,
  2528. h = {},
  2529. B = 0,
  2530. x = 0,
  2531. K = E(),
  2532. g = E(),
  2533. I = E(),
  2534. j = typeof c,
  2535. af = 1 << 31,
  2536. az = [],
  2537. ab = az.pop,
  2538. Y = az.push,
  2539. al = az.slice,
  2540. n = az.indexOf || function (aD) {
  2541. var aC = 0,
  2542. aB = this.length;
  2543. for (; aC < aB; aC++) {
  2544. if (this[aC] === aD) {
  2545. return aC
  2546. }
  2547. }
  2548. return -1
  2549. },
  2550. b = "[\\x20\\t\\r\\n\\f]",
  2551. av = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
  2552. o = av.replace("w", "w#"),
  2553. ad = "([*^$|!~]?=)",
  2554. ax = "\\[" + b + "*(" + av + ")" + b + "*(?:" + ad + b + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + o + ")|)|)" + b + "*\\]",
  2555. Z = ":(" + av + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + ax.replace(3, 8) + ")*)|.*)\\)|)",
  2556. au = new RegExp("^" + b + "+|((?:^|[^\\\\])(?:\\\\.)*)" + b + "+$", "g"),
  2557. T = new RegExp("^" + b + "*," + b + "*"),
  2558. U = new RegExp("^" + b + "*([\\x20\\t\\r\\n\\f>+~])" + b + "*"),
  2559. N = new RegExp(Z),
  2560. Q = new RegExp("^" + o + "$"),
  2561. ag = {
  2562. ID : new RegExp("^#(" + av + ")"),
  2563. CLASS : new RegExp("^\\.(" + av + ")"),
  2564. NAME : new RegExp("^\\[name=['\"]?(" + av + ")['\"]?\\]"),
  2565. TAG : new RegExp("^(" + av.replace("w", "w*") + ")"),
  2566. ATTR : new RegExp("^" + ax),
  2567. PSEUDO : new RegExp("^" + Z),
  2568. CHILD : new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + b + "*(even|odd|(([+-]|)(\\d*)n|)" + b + "*(?:([+-]|)" + b + "*(\\d+)|))" + b + "*\\)|)", "i"),
  2569. needsContext : new RegExp("^" + b + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + b + "*((?:-\\d)?\\d*)" + b + "*\\)|)(?=[^-]|$)", "i")
  2570. },
  2571. L = /[\x20\t\r\n\f]*[+~]/,
  2572. O = /^[^{]+\{\s*\[native code/,
  2573. M = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
  2574. P = /^(?:input|select|textarea|button)$/i,
  2575. R = /^h\d$/i,
  2576. S = /'|\\/g,
  2577. X = /\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,
  2578. at = /\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,
  2579. s = function (aD, aC) {
  2580. var aB = "0x" + aC - 65536;
  2581. return aB !== aB ? aC : aB < 0 ? String.fromCharCode(aB + 65536) : String.fromCharCode(aB >> 10 | 55296, aB & 1023 | 56320)
  2582. };
  2583. try {
  2584. al.call(aa.documentElement.childNodes, 0)[0].nodeType
  2585. } catch (w) {
  2586. al = function (aC) {
  2587. var aD,
  2588. aB = [];
  2589. while ((aD = this[aC++])) {
  2590. aB.push(aD)
  2591. }
  2592. return aB
  2593. }
  2594. }
  2595. function m(aB) {
  2596. return O.test(aB + "")
  2597. }
  2598. function E() {
  2599. var aC,
  2600. aB = [];
  2601. return (aC = function (aE, aD) {
  2602. if (aB.push(aE += " ") > t.cacheLength) {
  2603. delete aC[aB.shift()]
  2604. }
  2605. return (aC[aE] = aD)
  2606. })
  2607. }
  2608. function ak(aB) {
  2609. aB[u] = true;
  2610. return aB
  2611. }
  2612. function ay(aB) {
  2613. var aD = z.createElement("div");
  2614. try {
  2615. return aB(aD)
  2616. } catch (aC) {
  2617. return false
  2618. }
  2619. finally {
  2620. aD = null
  2621. }
  2622. }
  2623. function am(aP, aN, aC, aB) {
  2624. var aJ,
  2625. aO,
  2626. aK,
  2627. aF,
  2628. aL,
  2629. aM,
  2630. aE,
  2631. aG,
  2632. aI,
  2633. aH;
  2634. if ((aN ? aN.ownerDocument || aN : aa) !== z) {
  2635. aq(aN)
  2636. }
  2637. aN = aN || z;
  2638. aC = aC || [];
  2639. if (!aP || typeof aP !== "string") {
  2640. return aC
  2641. }
  2642. if ((aF = aN.nodeType) !== 1 && aF !== 9) {
  2643. return []
  2644. }
  2645. if (!y && !aB) {
  2646. if ((aJ = M.exec(aP))) {
  2647. if ((aK = aJ[1])) {
  2648. if (aF === 9) {
  2649. aO = aN.getElementById(aK);
  2650. if (aO && aO.parentNode) {
  2651. if (aO.id === aK) {
  2652. aC.push(aO);
  2653. return aC
  2654. }
  2655. } else {
  2656. return aC
  2657. }
  2658. } else {
  2659. if (aN.ownerDocument && (aO = aN.ownerDocument.getElementById(aK)) && G(aN, aO) && aO.id === aK) {
  2660. aC.push(aO);
  2661. return aC
  2662. }
  2663. }
  2664. } else {
  2665. if (aJ[2]) {
  2666. Y.apply(aC, al.call(aN.getElementsByTagName(aP), 0));
  2667. return aC
  2668. } else {
  2669. if ((aK = aJ[3]) && h.getByClassName && aN.getElementsByClassName) {
  2670. Y.apply(aC, al.call(aN.getElementsByClassName(aK), 0));
  2671. return aC
  2672. }
  2673. }
  2674. }
  2675. }
  2676. if (h.qsa && !V.test(aP)) {
  2677. aE = true;
  2678. aG = u;
  2679. aI = aN;
  2680. aH = aF === 9 && aP;
  2681. if (aF === 1 && aN.nodeName.toLowerCase() !== "object") {
  2682. aM = f(aP);
  2683. if ((aE = aN.getAttribute("id"))) {
  2684. aG = aE.replace(S, "\\$&")
  2685. } else {
  2686. aN.setAttribute("id", aG)
  2687. }
  2688. aG = "[id='" + aG + "'] ";
  2689. aL = aM.length;
  2690. while (aL--) {
  2691. aM[aL] = aG + d(aM[aL])
  2692. }
  2693. aI = L.test(aP) && aN.parentNode || aN;
  2694. aH = aM.join(",")
  2695. }
  2696. if (aH) {
  2697. try {
  2698. Y.apply(aC, al.call(aI.querySelectorAll(aH), 0));
  2699. return aC
  2700. } catch (aD) {}
  2701.  
  2702. finally {
  2703. if (!aE) {
  2704. aN.removeAttribute("id")
  2705. }
  2706. }
  2707. }
  2708. }
  2709. }
  2710. return ar(aP.replace(au, "$1"), aN, aC, aB)
  2711. }
  2712. l = am.isXML = function (aB) {
  2713. var aC = aB && (aB.ownerDocument || aB).documentElement;
  2714. return aC ? aC.nodeName !== "HTML" : false
  2715. };
  2716. aq = am.setDocument = function (aB) {
  2717. var aC = aB ? aB.ownerDocument || aB : aa;
  2718. if (aC === z || aC.nodeType !== 9 || !aC.documentElement) {
  2719. return z
  2720. }
  2721. z = aC;
  2722. A = aC.documentElement;
  2723. y = l(aC);
  2724. h.tagNameNoComments = ay(function (aD) {
  2725. aD.appendChild(aC.createComment(""));
  2726. return !aD.getElementsByTagName("*").length
  2727. });
  2728. h.attributes = ay(function (aE) {
  2729. aE.innerHTML = "<select></select>";
  2730. var aD = typeof aE.lastChild.getAttribute("multiple");
  2731. return aD !== "boolean" && aD !== "string"
  2732. });
  2733. h.getByClassName = ay(function (aD) {
  2734. aD.innerHTML = "<div class='hidden e'></div><div class='hidden'></div>";
  2735. if (!aD.getElementsByClassName || !aD.getElementsByClassName("e").length) {
  2736. return false
  2737. }
  2738. aD.lastChild.className = "e";
  2739. return aD.getElementsByClassName("e").length === 2
  2740. });
  2741. h.getByName = ay(function (aE) {
  2742. aE.id = u + 0;
  2743. aE.innerHTML = "<a name='" + u + "'></a><div name='" + u + "'></div>";
  2744. A.insertBefore(aE, A.firstChild);
  2745. var aD = aC.getElementsByName && aC.getElementsByName(u).length === 2 + aC.getElementsByName(u + 0).length;
  2746. h.getIdNotName = !aC.getElementById(u);
  2747. A.removeChild(aE);
  2748. return aD
  2749. });
  2750. t.attrHandle = ay(function (aD) {
  2751. aD.innerHTML = "<a href='#'></a>";
  2752. return aD.firstChild && typeof aD.firstChild.getAttribute !== j && aD.firstChild.getAttribute("href") === "#"
  2753. }) ? {}
  2754.  
  2755. : {
  2756. href : function (aD) {
  2757. return aD.getAttribute("href", 2)
  2758. },
  2759. type : function (aD) {
  2760. return aD.getAttribute("type")
  2761. }
  2762. };
  2763. if (h.getIdNotName) {
  2764. t.find.ID = function (aE, aF) {
  2765. if (typeof aF.getElementById !== j && !y) {
  2766. var aD = aF.getElementById(aE);
  2767. return aD && aD.parentNode ? [aD] : []
  2768. }
  2769. };
  2770. t.filter.ID = function (aD) {
  2771. var aE = aD.replace(at, s);
  2772. return function (aF) {
  2773. return aF.getAttribute("id") === aE
  2774. }
  2775. }
  2776. } else {
  2777. t.find.ID = function (aE, aF) {
  2778. if (typeof aF.getElementById !== j && !y) {
  2779. var aD = aF.getElementById(aE);
  2780. return aD ? aD.id === aE || typeof aD.getAttributeNode !== j && aD.getAttributeNode("id").value === aE ? [aD] : c : []
  2781. }
  2782. };
  2783. t.filter.ID = function (aD) {
  2784. var aE = aD.replace(at, s);
  2785. return function (aG) {
  2786. var aF = typeof aG.getAttributeNode !== j && aG.getAttributeNode("id");
  2787. return aF && aF.value === aE
  2788. }
  2789. }
  2790. }
  2791. t.find.TAG = h.tagNameNoComments ? function (aD, aE) {
  2792. if (typeof aE.getElementsByTagName !== j) {
  2793. return aE.getElementsByTagName(aD)
  2794. }
  2795. }
  2796. : function (aI, aG) {
  2797. var aF,
  2798. aH = [],
  2799. aE = 0,
  2800. aD = aG.getElementsByTagName(aI);
  2801. if (aI === "*") {
  2802. while ((aF = aD[aE++])) {
  2803. if (aF.nodeType === 1) {
  2804. aH.push(aF)
  2805. }
  2806. }
  2807. return aH
  2808. }
  2809. return aD
  2810. };
  2811. t.find.NAME = h.getByName && function (aD, aE) {
  2812. if (typeof aE.getElementsByName !== j) {
  2813. return aE.getElementsByName(name)
  2814. }
  2815. };
  2816. t.find.CLASS = h.getByClassName && function (aE, aD) {
  2817. if (typeof aD.getElementsByClassName !== j && !y) {
  2818. return aD.getElementsByClassName(aE)
  2819. }
  2820. };
  2821. W = [];
  2822. V = [":focus"];
  2823. if ((h.qsa = m(aC.querySelectorAll))) {
  2824. ay(function (aD) {
  2825. aD.innerHTML = "<select><option selected=''></option></select>";
  2826. if (!aD.querySelectorAll("[selected]").length) {
  2827. V.push("\\[" + b + "*(?:checked|disabled|ismap|multiple|readonly|selected|value)")
  2828. }
  2829. if (!aD.querySelectorAll(":checked").length) {
  2830. V.push(":checked")
  2831. }
  2832. });
  2833. ay(function (aD) {
  2834. aD.innerHTML = "<input type='hidden' i=''/>";
  2835. if (aD.querySelectorAll("[i^='']").length) {
  2836. V.push("[*^$]=" + b + "*(?:\"\"|'')")
  2837. }
  2838. if (!aD.querySelectorAll(":enabled").length) {
  2839. V.push(":enabled", ":disabled")
  2840. }
  2841. aD.querySelectorAll("*,:x");
  2842. V.push(",.*:")
  2843. })
  2844. }
  2845. if ((h.matchesSelector = m((ah = A.matchesSelector || A.mozMatchesSelector || A.webkitMatchesSelector || A.oMatchesSelector || A.msMatchesSelector)))) {
  2846. ay(function (aD) {
  2847. h.disconnectedMatch = ah.call(aD, "div");
  2848. ah.call(aD, "[s!='']:x");
  2849. W.push("!=", Z)
  2850. })
  2851. }
  2852. V = new RegExp(V.join("|"));
  2853. W = new RegExp(W.join("|"));
  2854. G = m(A.contains) || A.compareDocumentPosition ? function (aG, aE) {
  2855. var aF = aG.nodeType === 9 ? aG.documentElement : aG,
  2856. aD = aE && aE.parentNode;
  2857. return aG === aD || !!(aD && aD.nodeType === 1 && (aF.contains ? aF.contains(aD) : aG.compareDocumentPosition && aG.compareDocumentPosition(aD) & 16))
  2858. }
  2859. : function (aE, aD) {
  2860. if (aD) {
  2861. while ((aD = aD.parentNode)) {
  2862. if (aD === aE) {
  2863. return true
  2864. }
  2865. }
  2866. }
  2867. return false
  2868. };
  2869. k = A.compareDocumentPosition ? function (aF, aE) {
  2870. var aD;
  2871. if (aF === aE) {
  2872. q = true;
  2873. return 0
  2874. }
  2875. if ((aD = aE.compareDocumentPosition && aF.compareDocumentPosition && aF.compareDocumentPosition(aE))) {
  2876. if (aD & 1 || aF.parentNode && aF.parentNode.nodeType === 11) {
  2877. if (aF === aC || G(aa, aF)) {
  2878. return -1
  2879. }
  2880. if (aE === aC || G(aa, aE)) {
  2881. return 1
  2882. }
  2883. return 0
  2884. }
  2885. return aD & 4 ? -1 : 1
  2886. }
  2887. return aF.compareDocumentPosition ? -1 : 1
  2888. }
  2889. : function (aG, aD) {
  2890. var aI,
  2891. aH = 0,
  2892. aE = aG.parentNode,
  2893. aJ = aD.parentNode,
  2894. aF = [aG],
  2895. aK = [aD];
  2896. if (aG === aD) {
  2897. q = true;
  2898. return 0
  2899. } else {
  2900. if (!aE || !aJ) {
  2901. return aG === aC ? -1 : aD === aC ? 1 : aE ? -1 : aJ ? 1 : 0
  2902. } else {
  2903. if (aE === aJ) {
  2904. return an(aG, aD)
  2905. }
  2906. }
  2907. }
  2908. aI = aG;
  2909. while ((aI = aI.parentNode)) {
  2910. aF.unshift(aI)
  2911. }
  2912. aI = aD;
  2913. while ((aI = aI.parentNode)) {
  2914. aK.unshift(aI)
  2915. }
  2916. while (aF[aH] === aK[aH]) {
  2917. aH++
  2918. }
  2919. return aH ? an(aF[aH], aK[aH]) : aF[aH] === aa ? -1 : aK[aH] === aa ? 1 : 0
  2920. };
  2921. q = false;
  2922. [0, 0].sort(k);
  2923. h.detectDuplicates = q;
  2924. return z
  2925. };
  2926. am.matches = function (aB, aC) {
  2927. return am(aB, null, null, aC)
  2928. };
  2929. am.matchesSelector = function (aD, aC) {
  2930. if ((aD.ownerDocument || aD) !== z) {
  2931. aq(aD)
  2932. }
  2933. aC = aC.replace(X, "='$1']");
  2934. if (h.matchesSelector && !y && (!W || !W.test(aC)) && !V.test(aC)) {
  2935. try {
  2936. var aB = ah.call(aD, aC);
  2937. if (aB || h.disconnectedMatch || aD.document && aD.document.nodeType !== 11) {
  2938. return aB
  2939. }
  2940. } catch (aE) {}
  2941.  
  2942. }
  2943. return am(aC, z, null, [aD]).length > 0
  2944. };
  2945. am.contains = function (aC, aB) {
  2946. if ((aC.ownerDocument || aC) !== z) {
  2947. aq(aC)
  2948. }
  2949. return G(aC, aB)
  2950. };
  2951. am.attr = function (aD, aC) {
  2952. var aB;
  2953. if ((aD.ownerDocument || aD) !== z) {
  2954. aq(aD)
  2955. }
  2956. if (!y) {
  2957. aC = aC.toLowerCase()
  2958. }
  2959. if ((aB = t.attrHandle[aC])) {
  2960. return aB(aD)
  2961. }
  2962. if (y || h.attributes) {
  2963. return aD.getAttribute(aC)
  2964. }
  2965. return ((aB = aD.getAttributeNode(aC)) || aD.getAttribute(aC)) && aD[aC] === true ? aC : aB && aB.specified ? aB.value : null
  2966. };
  2967. am.error = function (aB) {
  2968. throw new Error("Syntax error, unrecognized expression: " + aB)
  2969. };
  2970. am.uniqueSort = function (aB) {
  2971. var aE,
  2972. aF = [],
  2973. aD = 1,
  2974. aC = 0;
  2975. q = !h.detectDuplicates;
  2976. aB.sort(k);
  2977. if (q) {
  2978. for (; (aE = aB[aD]); aD++) {
  2979. if (aE === aB[aD - 1]) {
  2980. aC = aF.push(aD)
  2981. }
  2982. }
  2983. while (aC--) {
  2984. aB.splice(aF[aC], 1)
  2985. }
  2986. }
  2987. return aB
  2988. };
  2989. function an(aE, aD) {
  2990. var aC = aD && aE,
  2991. aB = aC && (~aD.sourceIndex || af) - (~aE.sourceIndex || af);
  2992. if (aB) {
  2993. return aB
  2994. }
  2995. if (aC) {
  2996. while ((aC = aC.nextSibling)) {
  2997. if (aC === aD) {
  2998. return -1
  2999. }
  3000. }
  3001. }
  3002. return aE ? 1 : -1
  3003. }
  3004. function D(aB) {
  3005. return function (aD) {
  3006. var aC = aD.nodeName.toLowerCase();
  3007. return aC === "input" && aD.type === aB
  3008. }
  3009. }
  3010. function F(aB) {
  3011. return function (aD) {
  3012. var aC = aD.nodeName.toLowerCase();
  3013. return (aC === "input" || aC === "button") && aD.type === aB
  3014. }
  3015. }
  3016. function C(aB) {
  3017. return ak(function (aC) {
  3018. aC = +aC;
  3019. return ak(function (aH, aE) {
  3020. var aF,
  3021. aD = aB([], aH.length, aC),
  3022. aG = aD.length;
  3023. while (aG--) {
  3024. if (aH[(aF = aD[aG])]) {
  3025. aH[aF] = !(aE[aF] = aH[aF])
  3026. }
  3027. }
  3028. })
  3029. })
  3030. }
  3031. r = am.getText = function (aF) {
  3032. var aD,
  3033. aB = "",
  3034. aE = 0,
  3035. aC = aF.nodeType;
  3036. if (!aC) {
  3037. for (; (aD = aF[aE]); aE++) {
  3038. aB += r(aD)
  3039. }
  3040. } else {
  3041. if (aC === 1 || aC === 9 || aC === 11) {
  3042. if (typeof aF.textContent === "string") {
  3043. return aF.textContent
  3044. } else {
  3045. for (aF = aF.firstChild; aF; aF = aF.nextSibling) {
  3046. aB += r(aF)
  3047. }
  3048. }
  3049. } else {
  3050. if (aC === 3 || aC === 4) {
  3051. return aF.nodeValue
  3052. }
  3053. }
  3054. }
  3055. return aB
  3056. };
  3057. t = am.selectors = {
  3058. cacheLength : 50,
  3059. createPseudo : ak,
  3060. match : ag,
  3061. find : {},
  3062. relative : {
  3063. ">" : {
  3064. dir : "parentNode",
  3065. first : true
  3066. },
  3067. " " : {
  3068. dir : "parentNode"
  3069. },
  3070. "+" : {
  3071. dir : "previousSibling",
  3072. first : true
  3073. },
  3074. "~" : {
  3075. dir : "previousSibling"
  3076. }
  3077. },
  3078. preFilter : {
  3079. ATTR : function (aB) {
  3080. aB[1] = aB[1].replace(at, s);
  3081. aB[3] = (aB[4] || aB[5] || "").replace(at, s);
  3082. if (aB[2] === "~=") {
  3083. aB[3] = " " + aB[3] + " "
  3084. }
  3085. return aB.slice(0, 4)
  3086. },
  3087. CHILD : function (aB) {
  3088. aB[1] = aB[1].toLowerCase();
  3089. if (aB[1].slice(0, 3) === "nth") {
  3090. if (!aB[3]) {
  3091. am.error(aB[0])
  3092. }
  3093. aB[4] = + (aB[4] ? aB[5] + (aB[6] || 1) : 2 * (aB[3] === "even" || aB[3] === "odd"));
  3094. aB[5] = + ((aB[7] + aB[8]) || aB[3] === "odd")
  3095. } else {
  3096. if (aB[3]) {
  3097. am.error(aB[0])
  3098. }
  3099. }
  3100. return aB
  3101. },
  3102. PSEUDO : function (aC) {
  3103. var aD,
  3104. aB = !aC[5] && aC[2];
  3105. if (ag.CHILD.test(aC[0])) {
  3106. return null
  3107. }
  3108. if (aC[4]) {
  3109. aC[2] = aC[4]
  3110. } else {
  3111. if (aB && N.test(aB) && (aD = f(aB, true)) && (aD = aB.indexOf(")", aB.length - aD) - aB.length)) {
  3112. aC[0] = aC[0].slice(0, aD);
  3113. aC[2] = aB.slice(0, aD)
  3114. }
  3115. }
  3116. return aC.slice(0, 3)
  3117. }
  3118. },
  3119. filter : {
  3120. TAG : function (aB) {
  3121. if (aB === "*") {
  3122. return function () {
  3123. return true
  3124. }
  3125. }
  3126. aB = aB.replace(at, s).toLowerCase();
  3127. return function (aC) {
  3128. return aC.nodeName && aC.nodeName.toLowerCase() === aB
  3129. }
  3130. },
  3131. CLASS : function (aC) {
  3132. var aB = K[aC + " "];
  3133. return aB || (aB = new RegExp("(^|" + b + ")" + aC + "(" + b + "|$)")) && K(aC, function (aD) {
  3134. return aB.test(aD.className || (typeof aD.getAttribute !== j && aD.getAttribute("class")) || "")
  3135. })
  3136. },
  3137. ATTR : function (aC, aB, aD) {
  3138. return function (aF) {
  3139. var aE = am.attr(aF, aC);
  3140. if (aE == null) {
  3141. return aB === "!="
  3142. }
  3143. if (!aB) {
  3144. return true
  3145. }
  3146. aE += "";
  3147. return aB === "=" ? aE === aD : aB === "!=" ? aE !== aD : aB === "^=" ? aD && aE.indexOf(aD) === 0 : aB === "*=" ? aD && aE.indexOf(aD) > -1 : aB === "$=" ? aD && aE.slice(-aD.length) === aD : aB === "~=" ? (" " + aE + " ").indexOf(aD) > -1 : aB === "|=" ? aE === aD || aE.slice(0, aD.length + 1) === aD + "-" : false
  3148. }
  3149. },
  3150. CHILD : function (aI, aH, aG, aF, aD) {
  3151. var aB = aI.slice(0, 3) !== "nth",
  3152. aE = aI.slice(-4) !== "last",
  3153. aC = aH === "of-type";
  3154. return aF === 1 && aD === 0 ? function (aJ) {
  3155. return !!aJ.parentNode
  3156. }
  3157. : function (aK, aN, aO) {
  3158. var aP,
  3159. aT,
  3160. aV,
  3161. aM,
  3162. aU,
  3163. aR,
  3164. aL = aB !== aE ? "nextSibling" : "previousSibling",
  3165. aS = aK.parentNode,
  3166. aJ = aC && aK.nodeName.toLowerCase(),
  3167. aQ = !aO && !aC;
  3168. if (aS) {
  3169. if (aB) {
  3170. while (aL) {
  3171. aV = aK;
  3172. while ((aV = aV[aL])) {
  3173. if (aC ? aV.nodeName.toLowerCase() === aJ : aV.nodeType === 1) {
  3174. return false
  3175. }
  3176. }
  3177. aR = aL = aI === "only" && !aR && "nextSibling"
  3178. }
  3179. return true
  3180. }
  3181. aR = [aE ? aS.firstChild : aS.lastChild];
  3182. if (aE && aQ) {
  3183. aT = aS[u] || (aS[u] = {});
  3184. aP = aT[aI] || [];
  3185. aU = aP[0] === B && aP[1];
  3186. aM = aP[0] === B && aP[2];
  3187. aV = aU && aS.childNodes[aU];
  3188. while ((aV = ++aU && aV && aV[aL] || (aM = aU = 0) || aR.pop())) {
  3189. if (aV.nodeType === 1 && ++aM && aV === aK) {
  3190. aT[aI] = [B, aU, aM];
  3191. break
  3192. }
  3193. }
  3194. } else {
  3195. if (aQ && (aP = (aK[u] || (aK[u] = {}))[aI]) && aP[0] === B) {
  3196. aM = aP[1]
  3197. } else {
  3198. while ((aV = ++aU && aV && aV[aL] || (aM = aU = 0) || aR.pop())) {
  3199. if ((aC ? aV.nodeName.toLowerCase() === aJ : aV.nodeType === 1) && ++aM) {
  3200. if (aQ) {
  3201. (aV[u] || (aV[u] = {}))[aI] = [B, aM]
  3202. }
  3203. if (aV === aK) {
  3204. break
  3205. }
  3206. }
  3207. }
  3208. }
  3209. }
  3210. aM -= aD;
  3211. return aM === aF || (aM % aF === 0 && aM / aF >= 0)
  3212. }
  3213. }
  3214. },
  3215. PSEUDO : function (aB, aD) {
  3216. var aE,
  3217. aC = t.pseudos[aB] || t.setFilters[aB.toLowerCase()] || am.error("unsupported pseudo: " + aB);
  3218. if (aC[u]) {
  3219. return aC(aD)
  3220. }
  3221. if (aC.length > 1) {
  3222. aE = [aB, aB, "", aD];
  3223. return t.setFilters.hasOwnProperty(aB.toLowerCase()) ? ak(function (aH, aI) {
  3224. var aF,
  3225. aJ = aC(aH, aD),
  3226. aG = aJ.length;
  3227. while (aG--) {
  3228. aF = n.call(aH, aJ[aG]);
  3229. aH[aF] = !(aI[aF] = aJ[aG])
  3230. }
  3231. }) : function (aF) {
  3232. return aC(aF, 0, aE)
  3233. }
  3234. }
  3235. return aC
  3236. }
  3237. },
  3238. pseudos : {
  3239. not : ak(function (aB) {
  3240. var aE = [],
  3241. aC = [],
  3242. aD = J(aB.replace(au, "$1"));
  3243. return aD[u] ? ak(function (aJ, aK, aG, aH) {
  3244. var aF,
  3245. aI = aD(aJ, null, aH, []),
  3246. aL = aJ.length;
  3247. while (aL--) {
  3248. if ((aF = aI[aL])) {
  3249. aJ[aL] = !(aK[aL] = aF)
  3250. }
  3251. }
  3252. }) : function (aF, aG, aH) {
  3253. aE[0] = aF;
  3254. aD(aE, null, aH, aC);
  3255. return !aC.pop()
  3256. }
  3257. }),
  3258. has : ak(function (aB) {
  3259. return function (aC) {
  3260. return am(aB, aC).length > 0
  3261. }
  3262. }),
  3263. contains : ak(function (aB) {
  3264. return function (aC) {
  3265. return (aC.textContent || aC.innerText || r(aC)).indexOf(aB) > -1
  3266. }
  3267. }),
  3268. lang : ak(function (aB) {
  3269. if (!Q.test(aB || "")) {
  3270. am.error("unsupported lang: " + aB)
  3271. }
  3272. aB = aB.replace(at, s).toLowerCase();
  3273. return function (aD) {
  3274. var aC;
  3275. do {
  3276. if ((aC = y ? aD.getAttribute("xml:lang") || aD.getAttribute("lang") : aD.lang)) {
  3277. aC = aC.toLowerCase();
  3278. return aC === aB || aC.indexOf(aB + "-") === 0
  3279. }
  3280. } while ((aD = aD.parentNode) && aD.nodeType === 1);
  3281. return false
  3282. }
  3283. }),
  3284. target : function (aC) {
  3285. var aB = a.location && a.location.hash;
  3286. return aB && aB.slice(1) === aC.id
  3287. },
  3288. root : function (aB) {
  3289. return aB === A
  3290. },
  3291. focus : function (aB) {
  3292. return aB === z.activeElement && (!z.hasFocus || z.hasFocus()) && !!(aB.type || aB.href || ~aB.tabIndex)
  3293. },
  3294. enabled : function (aB) {
  3295. return aB.disabled === false
  3296. },
  3297. disabled : function (aB) {
  3298. return aB.disabled === true
  3299. },
  3300. checked : function (aC) {
  3301. var aB = aC.nodeName.toLowerCase();
  3302. return (aB === "input" && !!aC.checked) || (aB === "option" && !!aC.selected)
  3303. },
  3304. selected : function (aB) {
  3305. if (aB.parentNode) {
  3306. aB.parentNode.selectedIndex
  3307. }
  3308. return aB.selected === true
  3309. },
  3310. empty : function (aB) {
  3311. for (aB = aB.firstChild; aB; aB = aB.nextSibling) {
  3312. if (aB.nodeName > "@" || aB.nodeType === 3 || aB.nodeType === 4) {
  3313. return false
  3314. }
  3315. }
  3316. return true
  3317. },
  3318. parent : function (aB) {
  3319. return !t.pseudos.empty(aB)
  3320. },
  3321. header : function (aB) {
  3322. return R.test(aB.nodeName)
  3323. },
  3324. input : function (aB) {
  3325. return P.test(aB.nodeName)
  3326. },
  3327. button : function (aC) {
  3328. var aB = aC.nodeName.toLowerCase();
  3329. return aB === "input" && aC.type === "button" || aB === "button"
  3330. },
  3331. text : function (aB) {
  3332. var aC;
  3333. return aB.nodeName.toLowerCase() === "input" && aB.type === "text" && ((aC = aB.getAttribute("type")) == null || aC.toLowerCase() === aB.type)
  3334. },
  3335. first : C(function () {
  3336. return [0]
  3337. }),
  3338. last : C(function (aB, aC) {
  3339. return [aC - 1]
  3340. }),
  3341. eq : C(function (aB, aC, aD) {
  3342. return [aD < 0 ? aD + aC : aD]
  3343. }),
  3344. even : C(function (aB, aC) {
  3345. var aD = 0;
  3346. for (; aD < aC; aD += 2) {
  3347. aB.push(aD)
  3348. }
  3349. return aB
  3350. }),
  3351. odd : C(function (aB, aC) {
  3352. var aD = 1;
  3353. for (; aD < aC; aD += 2) {
  3354. aB.push(aD)
  3355. }
  3356. return aB
  3357. }),
  3358. lt : C(function (aB, aC, aE) {
  3359. var aD = aE < 0 ? aE + aC : aE;
  3360. for (; --aD >= 0; ) {
  3361. aB.push(aD)
  3362. }
  3363. return aB
  3364. }),
  3365. gt : C(function (aB, aC, aE) {
  3366. var aD = aE < 0 ? aE + aC : aE;
  3367. for (; ++aD < aC; ) {
  3368. aB.push(aD)
  3369. }
  3370. return aB
  3371. })
  3372. }
  3373. };
  3374. for (p in {
  3375. radio : true,
  3376. checkbox : true,
  3377. file : true,
  3378. password : true,
  3379. image : true
  3380. }) {
  3381. t.pseudos[p] = D(p)
  3382. }
  3383. for (p in {
  3384. submit : true,
  3385. reset : true
  3386. }) {
  3387. t.pseudos[p] = F(p)
  3388. }
  3389. function f(aE, aG) {
  3390. var aH,
  3391. aI,
  3392. aC,
  3393. aB,
  3394. aD,
  3395. aK,
  3396. aF,
  3397. aJ = g[aE + " "];
  3398. if (aJ) {
  3399. return aG ? 0 : aJ.slice(0)
  3400. }
  3401. aD = aE;
  3402. aK = [];
  3403. aF = t.preFilter;
  3404. while (aD) {
  3405. if (!aH || (aI = T.exec(aD))) {
  3406. if (aI) {
  3407. aD = aD.slice(aI[0].length) || aD
  3408. }
  3409. aK.push(aC = [])
  3410. }
  3411. aH = false;
  3412. if ((aI = U.exec(aD))) {
  3413. aH = aI.shift();
  3414. aC.push({
  3415. value : aH,
  3416. type : aI[0].replace(au, " ")
  3417. });
  3418. aD = aD.slice(aH.length)
  3419. }
  3420. for (aB in t.filter) {
  3421. if ((aI = ag[aB].exec(aD)) && (!aF[aB] || (aI = aF[aB](aI)))) {
  3422. aH = aI.shift();
  3423. aC.push({
  3424. value : aH,
  3425. type : aB,
  3426. matches : aI
  3427. });
  3428. aD = aD.slice(aH.length)
  3429. }
  3430. }
  3431. if (!aH) {
  3432. break
  3433. }
  3434. }
  3435. return aG ? aD.length : aD ? am.error(aE) : g(aE, aK).slice(0)
  3436. }
  3437. function d(aB) {
  3438. var aE = 0,
  3439. aD = aB.length,
  3440. aC = "";
  3441. for (; aE < aD; aE++) {
  3442. aC += aB[aE].value
  3443. }
  3444. return aC
  3445. }
  3446. function aA(aB, aE, aG) {
  3447. var aD = aE.dir,
  3448. aF = aG && aD === "parentNode",
  3449. aC = x++;
  3450. return aE.first ? function (aI, aJ, aH) {
  3451. while ((aI = aI[aD])) {
  3452. if (aI.nodeType === 1 || aF) {
  3453. return aB(aI, aJ, aH)
  3454. }
  3455. }
  3456. }
  3457. : function (aJ, aM, aH) {
  3458. var aL,
  3459. aN,
  3460. aI,
  3461. aK = B + " " + aC;
  3462. if (aH) {
  3463. while ((aJ = aJ[aD])) {
  3464. if (aJ.nodeType === 1 || aF) {
  3465. if (aB(aJ, aM, aH)) {
  3466. return true
  3467. }
  3468. }
  3469. }
  3470. } else {
  3471. while ((aJ = aJ[aD])) {
  3472. if (aJ.nodeType === 1 || aF) {
  3473. aI = aJ[u] || (aJ[u] = {});
  3474. if ((aN = aI[aD]) && aN[0] === aK) {
  3475. if ((aL = aN[1]) === true || aL === aw) {
  3476. return aL === true
  3477. }
  3478. } else {
  3479. aN = aI[aD] = [aK];
  3480. aN[1] = aB(aJ, aM, aH) || aw;
  3481. if (aN[1] === true) {
  3482. return true
  3483. }
  3484. }
  3485. }
  3486. }
  3487. }
  3488. }
  3489. }
  3490. function v(aB) {
  3491. return aB.length > 1 ? function (aE, aF, aC) {
  3492. var aD = aB.length;
  3493. while (aD--) {
  3494. if (!aB[aD](aE, aF, aC)) {
  3495. return false
  3496. }
  3497. }
  3498. return true
  3499. }
  3500. : aB[0]
  3501. }
  3502. function H(aC, aF, aI, aJ, aB) {
  3503. var aK,
  3504. aD = [],
  3505. aH = 0,
  3506. aG = aC.length,
  3507. aE = aF != null;
  3508. for (; aH < aG; aH++) {
  3509. if ((aK = aC[aH])) {
  3510. if (!aI || aI(aK, aJ, aB)) {
  3511. aD.push(aK);
  3512. if (aE) {
  3513. aF.push(aH)
  3514. }
  3515. }
  3516. }
  3517. }
  3518. return aD
  3519. }
  3520. function ao(aC, aB, aG, aF, aE, aD) {
  3521. if (aF && !aF[u]) {
  3522. aF = ao(aF)
  3523. }
  3524. if (aE && !aE[u]) {
  3525. aE = ao(aE, aD)
  3526. }
  3527. return ak(function (aR, aS, aO, aP) {
  3528. var aQ,
  3529. aL,
  3530. aN,
  3531. aT = [],
  3532. aI = [],
  3533. aH = aS.length,
  3534. aM = aR || ae(aB || "*", aO.nodeType ? [aO] : aO, []),
  3535. aK = aC && (aR || !aB) ? H(aM, aT, aC, aO, aP) : aM,
  3536. aJ = aG ? aE || (aR ? aC : aH || aF) ? [] : aS : aK;
  3537. if (aG) {
  3538. aG(aK, aJ, aO, aP)
  3539. }
  3540. if (aF) {
  3541. aQ = H(aJ, aI);
  3542. aF(aQ, [], aO, aP);
  3543. aL = aQ.length;
  3544. while (aL--) {
  3545. if ((aN = aQ[aL])) {
  3546. aJ[aI[aL]] = !(aK[aI[aL]] = aN)
  3547. }
  3548. }
  3549. }
  3550. if (aR) {
  3551. if (aE || aC) {
  3552. if (aE) {
  3553. aQ = [];
  3554. aL = aJ.length;
  3555. while (aL--) {
  3556. if ((aN = aJ[aL])) {
  3557. aQ.push((aK[aL] = aN))
  3558. }
  3559. }
  3560. aE(null, (aJ = []), aQ, aP)
  3561. }
  3562. aL = aJ.length;
  3563. while (aL--) {
  3564. if ((aN = aJ[aL]) && (aQ = aE ? n.call(aR, aN) : aT[aL]) > -1) {
  3565. aR[aQ] = !(aS[aQ] = aN)
  3566. }
  3567. }
  3568. }
  3569. } else {
  3570. aJ = H(aJ === aS ? aJ.splice(aH, aJ.length) : aJ);
  3571. if (aE) {
  3572. aE(null, aS, aJ, aP)
  3573. } else {
  3574. Y.apply(aS, aJ)
  3575. }
  3576. }
  3577. })
  3578. }
  3579. function ai(aB) {
  3580. var aK,
  3581. aD,
  3582. aI,
  3583. aG = aB.length,
  3584. aH = t.relative[aB[0].type],
  3585. aJ = aH || t.relative[" "],
  3586. aL = aH ? 1 : 0,
  3587. aE = aA(function (aM) {
  3588. return aM === aK
  3589. }, aJ, true),
  3590. aF = aA(function (aM) {
  3591. return n.call(aK, aM) > -1
  3592. }, aJ, true),
  3593. aC = [function (aN, aO, aM) {
  3594. return (!aH && (aM || aO !== ac)) || ((aK = aO).nodeType ? aE(aN, aO, aM) : aF(aN, aO, aM))
  3595. }
  3596. ];
  3597. for (; aL < aG; aL++) {
  3598. if ((aD = t.relative[aB[aL].type])) {
  3599. aC = [aA(v(aC), aD)]
  3600. } else {
  3601. aD = t.filter[aB[aL].type].apply(null, aB[aL].matches);
  3602. if (aD[u]) {
  3603. aI = ++aL;
  3604. for (; aI < aG; aI++) {
  3605. if (t.relative[aB[aI].type]) {
  3606. break
  3607. }
  3608. }
  3609. return ao(aL > 1 && v(aC), aL > 1 && d(aB.slice(0, aL - 1)).replace(au, "$1"), aD, aL < aI && ai(aB.slice(aL, aI)), aI < aG && ai((aB = aB.slice(aI))), aI < aG && d(aB))
  3610. }
  3611. aC.push(aD)
  3612. }
  3613. }
  3614. return v(aC)
  3615. }
  3616. function aj(aE, aC) {
  3617. var aD = 0,
  3618. aF = aC.length > 0,
  3619. aG = aE.length > 0,
  3620. aB = function (aS, aR, aL, aT, aJ) {
  3621. var aM,
  3622. aH,
  3623. aV,
  3624. aQ = [],
  3625. aW = 0,
  3626. aI = "0",
  3627. aO = aS && [],
  3628. aU = aJ != null,
  3629. aP = ac,
  3630. aK = aS || aG && t.find.TAG("*", aJ && aR.parentNode || aR),
  3631. aN = (B += aP == null ? 1 : Math.random() || 0.1);
  3632. if (aU) {
  3633. ac = aR !== z && aR;
  3634. aw = aD
  3635. }
  3636. for (; (aM = aK[aI]) != null; aI++) {
  3637. if (aG && aM) {
  3638. aH = 0;
  3639. while ((aV = aE[aH++])) {
  3640. if (aV(aM, aR, aL)) {
  3641. aT.push(aM);
  3642. break
  3643. }
  3644. }
  3645. if (aU) {
  3646. B = aN;
  3647. aw = ++aD
  3648. }
  3649. }
  3650. if (aF) {
  3651. if ((aM = !aV && aM)) {
  3652. aW--
  3653. }
  3654. if (aS) {
  3655. aO.push(aM)
  3656. }
  3657. }
  3658. }
  3659. aW += aI;
  3660. if (aF && aI !== aW) {
  3661. aH = 0;
  3662. while ((aV = aC[aH++])) {
  3663. aV(aO, aQ, aR, aL)
  3664. }
  3665. if (aS) {
  3666. if (aW > 0) {
  3667. while (aI--) {
  3668. if (!(aO[aI] || aQ[aI])) {
  3669. aQ[aI] = ab.call(aT)
  3670. }
  3671. }
  3672. }
  3673. aQ = H(aQ)
  3674. }
  3675. Y.apply(aT, aQ);
  3676. if (aU && !aS && aQ.length > 0 && (aW + aC.length) > 1) {
  3677. am.uniqueSort(aT)
  3678. }
  3679. }
  3680. if (aU) {
  3681. B = aN;
  3682. ac = aP
  3683. }
  3684. return aO
  3685. };
  3686. return aF ? ak(aB) : aB
  3687. }
  3688. J = am.compile = function (aC, aE) {
  3689. var aD,
  3690. aB = [],
  3691. aF = [],
  3692. aG = I[aC + " "];
  3693. if (!aG) {
  3694. if (!aE) {
  3695. aE = f(aC)
  3696. }
  3697. aD = aE.length;
  3698. while (aD--) {
  3699. aG = ai(aE[aD]);
  3700. if (aG[u]) {
  3701. aB.push(aG)
  3702. } else {
  3703. aF.push(aG)
  3704. }
  3705. }
  3706. aG = I(aC, aj(aF, aB))
  3707. }
  3708. return aG
  3709. };
  3710. function ae(aB, aF, aC) {
  3711. var aE = 0,
  3712. aD = aF.length;
  3713. for (; aE < aD; aE++) {
  3714. am(aB, aF[aE], aC)
  3715. }
  3716. return aC
  3717. }
  3718. function ar(aE, aK, aG, aF) {
  3719. var aI,
  3720. aC,
  3721. aD,
  3722. aB,
  3723. aJ,
  3724. aH = f(aE);
  3725. if (!aF) {
  3726. if (aH.length === 1) {
  3727. aC = aH[0] = aH[0].slice(0);
  3728. if (aC.length > 2 && (aD = aC[0]).type === "ID" && aK.nodeType === 9 && !y && t.relative[aC[1].type]) {
  3729. aK = t.find.ID(aD.matches[0].replace(at, s), aK)[0];
  3730. if (!aK) {
  3731. return aG
  3732. }
  3733. aE = aE.slice(aC.shift().value.length)
  3734. }
  3735. aI = ag.needsContext.test(aE) ? 0 : aC.length;
  3736. while (aI--) {
  3737. aD = aC[aI];
  3738. if (t.relative[(aB = aD.type)]) {
  3739. break
  3740. }
  3741. if ((aJ = t.find[aB])) {
  3742. if ((aF = aJ(aD.matches[0].replace(at, s), L.test(aC[0].type) && aK.parentNode || aK))) {
  3743. aC.splice(aI, 1);
  3744. aE = aF.length && d(aC);
  3745. if (!aE) {
  3746. Y.apply(aG, al.call(aF, 0));
  3747. return aG
  3748. }
  3749. break
  3750. }
  3751. }
  3752. }
  3753. }
  3754. }
  3755. J(aE, aH)(aF, aK, y, aG, L.test(aE));
  3756. return aG
  3757. }
  3758. t.pseudos.nth = t.pseudos.eq;
  3759. function ap() {}
  3760.  
  3761. t.filters = ap.prototype = t.pseudos;
  3762. t.setFilters = new ap();
  3763. aq();
  3764. am.attr = dr.attr;
  3765. dr.find = am;
  3766. dr.expr = am.selectors;
  3767. dr.expr[":"] = dr.expr.pseudos;
  3768. dr.unique = am.uniqueSort;
  3769. dr.text = am.getText;
  3770. dr.isXMLDoc = am.isXML;
  3771. dr.contains = am.contains
  3772. })(dx);
  3773. var d7 = /Until$/,
  3774. cS = /^(?:parents|prev(?:Until|All))/,
  3775. ds = /^.[^:#\[\.,]*$/,
  3776. c9 = dr.expr.match.needsContext,
  3777. dK = {
  3778. children : true,
  3779. contents : true,
  3780. next : true,
  3781. prev : true
  3782. };
  3783. dr.fn.extend({
  3784. find : function (d) {
  3785. var c,
  3786. f,
  3787. b,
  3788. a = this.length;
  3789. if (typeof d !== "string") {
  3790. b = this;
  3791. return this.pushStack(dr(d).filter(function () {
  3792. for (c = 0; c < a; c++) {
  3793. if (dr.contains(b[c], this)) {
  3794. return true
  3795. }
  3796. }
  3797. }))
  3798. }
  3799. f = [];
  3800. for (c = 0; c < a; c++) {
  3801. dr.find(d, this[c], f)
  3802. }
  3803. f = this.pushStack(a > 1 ? dr.unique(f) : f);
  3804. f.selector = (this.selector ? this.selector + " " : "") + d;
  3805. return f
  3806. },
  3807. has : function (d) {
  3808. var b,
  3809. c = dr(d, this),
  3810. a = c.length;
  3811. return this.filter(function () {
  3812. for (b = 0; b < a; b++) {
  3813. if (dr.contains(this, c[b])) {
  3814. return true
  3815. }
  3816. }
  3817. })
  3818. },
  3819. not : function (a) {
  3820. return this.pushStack(du(this, a, false))
  3821. },
  3822. filter : function (a) {
  3823. return this.pushStack(du(this, a, true))
  3824. },
  3825. is : function (a) {
  3826. return !!a && (typeof a === "string" ? c9.test(a) ? dr(a, this.context).index(this[0]) >= 0 : dr.filter(a, this).length > 0 : this.filter(a).length > 0)
  3827. },
  3828. closest : function (b, f) {
  3829. var a,
  3830. h = 0,
  3831. g = this.length,
  3832. c = [],
  3833. d = c9.test(b) || typeof b !== "string" ? dr(b, f || this.context) : 0;
  3834. for (; h < g; h++) {
  3835. a = this[h];
  3836. while (a && a.ownerDocument && a !== f && a.nodeType !== 11) {
  3837. if (d ? d.index(a) > -1 : dr.find.matchesSelector(a, b)) {
  3838. c.push(a);
  3839. break
  3840. }
  3841. a = a.parentNode
  3842. }
  3843. }
  3844. return this.pushStack(c.length > 1 ? dr.unique(c) : c)
  3845. },
  3846. index : function (a) {
  3847. if (!a) {
  3848. return (this[0] && this[0].parentNode) ? this.first().prevAll().length : -1
  3849. }
  3850. if (typeof a === "string") {
  3851. return dr.inArray(this[0], dr(a))
  3852. }
  3853. return dr.inArray(a.jquery ? a[0] : a, this)
  3854. },
  3855. add : function (d, a) {
  3856. var c = typeof d === "string" ? dr(d, a) : dr.makeArray(d && d.nodeType ? [d] : d),
  3857. b = dr.merge(this.get(), c);
  3858. return this.pushStack(dr.unique(b))
  3859. },
  3860. addBack : function (a) {
  3861. return this.add(a == null ? this.prevObject : this.prevObject.filter(a))
  3862. }
  3863. });
  3864. dr.fn.andSelf = dr.fn.addBack;
  3865. function dJ(b, a) {
  3866. do {
  3867. b = b[a]
  3868. } while (b && b.nodeType !== 1);
  3869. return b
  3870. }
  3871. dr.each({
  3872. parent : function (b) {
  3873. var a = b.parentNode;
  3874. return a && a.nodeType !== 11 ? a : null
  3875. },
  3876. parents : function (a) {
  3877. return dr.dir(a, "parentNode")
  3878. },
  3879. parentsUntil : function (b, a, c) {
  3880. return dr.dir(b, "parentNode", c)
  3881. },
  3882. next : function (a) {
  3883. return dJ(a, "nextSibling")
  3884. },
  3885. prev : function (a) {
  3886. return dJ(a, "previousSibling")
  3887. },
  3888. nextAll : function (a) {
  3889. return dr.dir(a, "nextSibling")
  3890. },
  3891. prevAll : function (a) {
  3892. return dr.dir(a, "previousSibling")
  3893. },
  3894. nextUntil : function (b, a, c) {
  3895. return dr.dir(b, "nextSibling", c)
  3896. },
  3897. prevUntil : function (b, a, c) {
  3898. return dr.dir(b, "previousSibling", c)
  3899. },
  3900. siblings : function (a) {
  3901. return dr.sibling((a.parentNode || {}).firstChild, a)
  3902. },
  3903. children : function (a) {
  3904. return dr.sibling(a.firstChild)
  3905. },
  3906. contents : function (a) {
  3907. return dr.nodeName(a, "iframe") ? a.contentDocument || a.contentWindow.document : dr.merge([], a.childNodes)
  3908. }
  3909. }, function (a, b) {
  3910. dr.fn[a] = function (c, d) {
  3911. var f = dr.map(this, b, c);
  3912. if (!d7.test(a)) {
  3913. d = c
  3914. }
  3915. if (d && typeof d === "string") {
  3916. f = dr.filter(d, f)
  3917. }
  3918. f = this.length > 1 && !dK[a] ? dr.unique(f) : f;
  3919. if (this.length > 1 && cS.test(a)) {
  3920. f = f.reverse()
  3921. }
  3922. return this.pushStack(f)
  3923. }
  3924. });
  3925. dr.extend({
  3926. filter : function (a, b, c) {
  3927. if (c) {
  3928. a = ":not(" + a + ")"
  3929. }
  3930. return b.length === 1 ? dr.find.matchesSelector(b[0], a) ? [b[0]] : [] : dr.find.matches(a, b)
  3931. },
  3932. dir : function (f, a, c) {
  3933. var d = [],
  3934. b = f[a];
  3935. while (b && b.nodeType !== 9 && (c === dB || b.nodeType !== 1 || !dr(b).is(c))) {
  3936. if (b.nodeType === 1) {
  3937. d.push(b)
  3938. }
  3939. b = b[a]
  3940. }
  3941. return d
  3942. },
  3943. sibling : function (a, b) {
  3944. var c = [];
  3945. for (; a; a = a.nextSibling) {
  3946. if (a.nodeType === 1 && a !== b) {
  3947. c.push(a)
  3948. }
  3949. }
  3950. return c
  3951. }
  3952. });
  3953. function du(b, c, d) {
  3954. c = c || 0;
  3955. if (dr.isFunction(c)) {
  3956. return dr.grep(b, function (h, g) {
  3957. var f = !!c.call(h, g, h);
  3958. return f === d
  3959. })
  3960. } else {
  3961. if (c.nodeType) {
  3962. return dr.grep(b, function (f) {
  3963. return (f === c) === d
  3964. })
  3965. } else {
  3966. if (typeof c === "string") {
  3967. var a = dr.grep(b, function (f) {
  3968. return f.nodeType === 1
  3969. });
  3970. if (ds.test(c)) {
  3971. return dr.filter(c, a, !d)
  3972. } else {
  3973. c = dr.filter(c, a)
  3974. }
  3975. }
  3976. }
  3977. }
  3978. return dr.grep(b, function (f) {
  3979. return (dr.inArray(f, c) >= 0) === d
  3980. })
  3981. }
  3982. function c6(b) {
  3983. var a = eG.split("|"),
  3984. c = b.createDocumentFragment();
  3985. if (c.createElement) {
  3986. while (a.length) {
  3987. c.createElement(a.pop())
  3988. }
  3989. }
  3990. return c
  3991. }
  3992. var eG = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
  3993. b4 = / jQuery\d+="(?:null|\d+)"/g,
  3994. c2 = new RegExp("<(?:" + eG + ")[\\s/>]", "i"),
  3995. eK = /^\s+/,
  3996. dU = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
  3997. cz = /<([\w:]+)/,
  3998. ef = /<tbody/i,
  3999. b5 = /<|&#?\w+;/,
  4000. c5 = /<(?:script|style|link)/i,
  4001. eI = /^(?:checkbox|radio)$/i,
  4002. ew = /checked\s*(?:[^=]|=\s*.checked.)/i,
  4003. cE = /^$|\/(?:java|ecma)script/i,
  4004. cD = /^true\/(.*)/,
  4005. et = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,
  4006. dt = {
  4007. option : [1, "<select multiple='multiple'>", "</select>"],
  4008. legend : [1, "<fieldset>", "</fieldset>"],
  4009. area : [1, "<map>", "</map>"],
  4010. param : [1, "<object>", "</object>"],
  4011. thead : [1, "<table>", "</table>"],
  4012. tr : [2, "<table><tbody>", "</tbody></table>"],
  4013. col : [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"],
  4014. td : [3, "<table><tbody><tr>", "</tr></tbody></table>"],
  4015. _default : dr.support.htmlSerialize ? [0, "", ""] : [1, "X<div>", "</div>"]
  4016. },
  4017. dS = c6(cG),
  4018. d2 = dS.appendChild(cG.createElement("div"));
  4019. dt.optgroup = dt.option;
  4020. dt.tbody = dt.tfoot = dt.colgroup = dt.caption = dt.thead;
  4021. dt.th = dt.td;
  4022. dr.fn.extend({
  4023. text : function (a) {
  4024. return dr.access(this, function (b) {
  4025. return b === dB ? dr.text(this) : this.empty().append((this[0] && this[0].ownerDocument || cG).createTextNode(b))
  4026. }, null, a, arguments.length)
  4027. },
  4028. wrapAll : function (b) {
  4029. if (dr.isFunction(b)) {
  4030. return this.each(function (c) {
  4031. dr(this).wrapAll(b.call(this, c))
  4032. })
  4033. }
  4034. if (this[0]) {
  4035. var a = dr(b, this[0].ownerDocument).eq(0).clone(true);
  4036. if (this[0].parentNode) {
  4037. a.insertBefore(this[0])
  4038. }
  4039. a.map(function () {
  4040. var c = this;
  4041. while (c.firstChild && c.firstChild.nodeType === 1) {
  4042. c = c.firstChild
  4043. }
  4044. return c
  4045. }).append(this)
  4046. }
  4047. return this
  4048. },
  4049. wrapInner : function (a) {
  4050. if (dr.isFunction(a)) {
  4051. return this.each(function (b) {
  4052. dr(this).wrapInner(a.call(this, b))
  4053. })
  4054. }
  4055. return this.each(function () {
  4056. var c = dr(this),
  4057. b = c.contents();
  4058. if (b.length) {
  4059. b.wrapAll(a)
  4060. } else {
  4061. c.append(a)
  4062. }
  4063. })
  4064. },
  4065. wrap : function (b) {
  4066. var a = dr.isFunction(b);
  4067. return this.each(function (c) {
  4068. dr(this).wrapAll(a ? b.call(this, c) : b)
  4069. })
  4070. },
  4071. unwrap : function () {
  4072. return this.parent().each(function () {
  4073. if (!dr.nodeName(this, "body")) {
  4074. dr(this).replaceWith(this.childNodes)
  4075. }
  4076. }).end()
  4077. },
  4078. append : function () {
  4079. return this.domManip(arguments, true, function (a) {
  4080. if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
  4081. this.appendChild(a)
  4082. }
  4083. })
  4084. },
  4085. prepend : function () {
  4086. return this.domManip(arguments, true, function (a) {
  4087. if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
  4088. this.insertBefore(a, this.firstChild)
  4089. }
  4090. })
  4091. },
  4092. before : function () {
  4093. return this.domManip(arguments, false, function (a) {
  4094. if (this.parentNode) {
  4095. this.parentNode.insertBefore(a, this)
  4096. }
  4097. })
  4098. },
  4099. after : function () {
  4100. return this.domManip(arguments, false, function (a) {
  4101. if (this.parentNode) {
  4102. this.parentNode.insertBefore(a, this.nextSibling)
  4103. }
  4104. })
  4105. },
  4106. remove : function (c, d) {
  4107. var b,
  4108. a = 0;
  4109. for (; (b = this[a]) != null; a++) {
  4110. if (!c || dr.filter(c, [b]).length > 0) {
  4111. if (!d && b.nodeType === 1) {
  4112. dr.cleanData(dW(b))
  4113. }
  4114. if (b.parentNode) {
  4115. if (d && dr.contains(b.ownerDocument, b)) {
  4116. dP(dW(b, "script"))
  4117. }
  4118. b.parentNode.removeChild(b)
  4119. }
  4120. }
  4121. }
  4122. return this
  4123. },
  4124. empty : function () {
  4125. var b,
  4126. a = 0;
  4127. for (; (b = this[a]) != null; a++) {
  4128. if (b.nodeType === 1) {
  4129. dr.cleanData(dW(b, false))
  4130. }
  4131. while (b.firstChild) {
  4132. b.removeChild(b.firstChild)
  4133. }
  4134. if (b.options && dr.nodeName(b, "select")) {
  4135. b.options.length = 0
  4136. }
  4137. }
  4138. return this
  4139. },
  4140. clone : function (b, a) {
  4141. b = b == null ? false : b;
  4142. a = a == null ? b : a;
  4143. return this.map(function () {
  4144. return dr.clone(this, b, a)
  4145. })
  4146. },
  4147. html : function (a) {
  4148. return dr.access(this, function (c) {
  4149. var g = this[0] || {},
  4150. f = 0,
  4151. d = this.length;
  4152. if (c === dB) {
  4153. return g.nodeType === 1 ? g.innerHTML.replace(b4, "") : dB
  4154. }
  4155. if (typeof c === "string" && !c5.test(c) && (dr.support.htmlSerialize || !c2.test(c)) && (dr.support.leadingWhitespace || !eK.test(c)) && !dt[(cz.exec(c) || ["", ""])[1].toLowerCase()]) {
  4156. c = c.replace(dU, "<$1></$2>");
  4157. try {
  4158. for (; f < d; f++) {
  4159. g = this[f] || {};
  4160. if (g.nodeType === 1) {
  4161. dr.cleanData(dW(g, false));
  4162. g.innerHTML = c
  4163. }
  4164. }
  4165. g = 0
  4166. } catch (b) {}
  4167.  
  4168. }
  4169. if (g) {
  4170. this.empty().append(c)
  4171. }
  4172. }, null, a, arguments.length)
  4173. },
  4174. replaceWith : function (a) {
  4175. var b = dr.isFunction(a);
  4176. if (!b && typeof a !== "string") {
  4177. a = dr(a).not(this).detach()
  4178. }
  4179. return this.domManip([a], true, function (f) {
  4180. var d = this.nextSibling,
  4181. c = this.parentNode;
  4182. if (c) {
  4183. dr(this).remove();
  4184. c.insertBefore(f, d)
  4185. }
  4186. })
  4187. },
  4188. detach : function (a) {
  4189. return this.remove(a, true)
  4190. },
  4191. domManip : function (p, b, q) {
  4192. p = cd.apply([], p);
  4193. var n,
  4194. f,
  4195. l,
  4196. d,
  4197. o,
  4198. m,
  4199. k = 0,
  4200. g = this.length,
  4201. c = this,
  4202. j = g - 1,
  4203. a = p[0],
  4204. h = dr.isFunction(a);
  4205. if (h || !(g <= 1 || typeof a !== "string" || dr.support.checkClone || !ew.test(a))) {
  4206. return this.each(function (s) {
  4207. var r = c.eq(s);
  4208. if (h) {
  4209. p[0] = a.call(this, s, b ? r.html() : dB)
  4210. }
  4211. r.domManip(p, b, q)
  4212. })
  4213. }
  4214. if (g) {
  4215. m = dr.buildFragment(p, this[0].ownerDocument, false, this);
  4216. n = m.firstChild;
  4217. if (m.childNodes.length === 1) {
  4218. m = n
  4219. }
  4220. if (n) {
  4221. b = b && dr.nodeName(n, "tr");
  4222. d = dr.map(dW(m, "script"), cH);
  4223. l = d.length;
  4224. for (; k < g; k++) {
  4225. f = m;
  4226. if (k !== j) {
  4227. f = dr.clone(f, true, true);
  4228. if (l) {
  4229. dr.merge(d, dW(f, "script"))
  4230. }
  4231. }
  4232. q.call(b && dr.nodeName(this[k], "table") ? d8(this[k], "tbody") : this[k], f, k)
  4233. }
  4234. if (l) {
  4235. o = d[d.length - 1].ownerDocument;
  4236. dr.map(d, ek);
  4237. for (k = 0; k < l; k++) {
  4238. f = d[k];
  4239. if (cE.test(f.type || "") && !dr._data(f, "globalEval") && dr.contains(o, f)) {
  4240. if (f.src) {
  4241. dr.ajax({
  4242. url : f.src,
  4243. type : "GET",
  4244. dataType : "script",
  4245. async : false,
  4246. global : false,
  4247. "throws" : true
  4248. })
  4249. } else {
  4250. dr.globalEval((f.text || f.textContent || f.innerHTML || "").replace(et, ""))
  4251. }
  4252. }
  4253. }
  4254. }
  4255. m = n = null
  4256. }
  4257. }
  4258. return this
  4259. }
  4260. });
  4261. function d8(b, a) {
  4262. return b.getElementsByTagName(a)[0] || b.appendChild(b.ownerDocument.createElement(a))
  4263. }
  4264. function cH(a) {
  4265. var b = a.getAttributeNode("type");
  4266. a.type = (b && b.specified) + "/" + a.type;
  4267. return a
  4268. }
  4269. function ek(b) {
  4270. var a = cD.exec(b.type);
  4271. if (a) {
  4272. b.type = a[1]
  4273. } else {
  4274. b.removeAttribute("type")
  4275. }
  4276. return b
  4277. }
  4278. function dP(a, c) {
  4279. var b,
  4280. d = 0;
  4281. for (; (b = a[d]) != null; d++) {
  4282. dr._data(b, "globalEval", !c || dr._data(c[d], "globalEval"))
  4283. }
  4284. }
  4285. function cf(c, a) {
  4286. if (a.nodeType !== 1 || !dr.hasData(c)) {
  4287. return
  4288. }
  4289. var b,
  4290. h,
  4291. g,
  4292. d = dr._data(c),
  4293. f = dr._data(a, d),
  4294. j = d.events;
  4295. if (j) {
  4296. delete f.handle;
  4297. f.events = {};
  4298. for (b in j) {
  4299. for (h = 0, g = j[b].length; h < g; h++) {
  4300. dr.event.add(a, b, j[b][h])
  4301. }
  4302. }
  4303. }
  4304. if (f.data) {
  4305. f.data = dr.extend({}, f.data)
  4306. }
  4307. }
  4308. function d5(b, f) {
  4309. var c,
  4310. d,
  4311. a;
  4312. if (f.nodeType !== 1) {
  4313. return
  4314. }
  4315. c = f.nodeName.toLowerCase();
  4316. if (!dr.support.noCloneEvent && f[dr.expando]) {
  4317. a = dr._data(f);
  4318. for (d in a.events) {
  4319. dr.removeEvent(f, d, a.handle)
  4320. }
  4321. f.removeAttribute(dr.expando)
  4322. }
  4323. if (c === "script" && f.text !== b.text) {
  4324. cH(f).text = b.text;
  4325. ek(f)
  4326. } else {
  4327. if (c === "object") {
  4328. if (f.parentNode) {
  4329. f.outerHTML = b.outerHTML
  4330. }
  4331. if (dr.support.html5Clone && (b.innerHTML && !dr.trim(f.innerHTML))) {
  4332. f.innerHTML = b.innerHTML
  4333. }
  4334. } else {
  4335. if (c === "input" && eI.test(b.type)) {
  4336. f.defaultChecked = f.checked = b.checked;
  4337. if (f.value !== b.value) {
  4338. f.value = b.value
  4339. }
  4340. } else {
  4341. if (c === "option") {
  4342. f.defaultSelected = f.selected = b.defaultSelected
  4343. } else {
  4344. if (c === "input" || c === "textarea") {
  4345. f.defaultValue = b.defaultValue
  4346. }
  4347. }
  4348. }
  4349. }
  4350. }
  4351. }
  4352. dr.each({
  4353. appendTo : "append",
  4354. prependTo : "prepend",
  4355. insertBefore : "before",
  4356. insertAfter : "after",
  4357. replaceAll : "replaceWith"
  4358. }, function (b, a) {
  4359. dr.fn[b] = function (c) {
  4360. var j,
  4361. h = 0,
  4362. d = [],
  4363. g = dr(c),
  4364. f = g.length - 1;
  4365. for (; h <= f; h++) {
  4366. j = h === f ? this : this.clone(true);
  4367. dr(g[h])[a](j);
  4368. dn.apply(d, j.get())
  4369. }
  4370. return this.pushStack(d)
  4371. }
  4372. });
  4373. function dW(d, b) {
  4374. var g,
  4375. a,
  4376. c = 0,
  4377. f = typeof d.getElementsByTagName !== dk ? d.getElementsByTagName(b || "*") : typeof d.querySelectorAll !== dk ? d.querySelectorAll(b || "*") : dB;
  4378. if (!f) {
  4379. for (f = [], g = d.childNodes || d; (a = g[c]) != null; c++) {
  4380. if (!b || dr.nodeName(a, b)) {
  4381. f.push(a)
  4382. } else {
  4383. dr.merge(f, dW(a, b))
  4384. }
  4385. }
  4386. }
  4387. return b === dB || b && dr.nodeName(d, b) ? dr.merge([d], f) : f
  4388. }
  4389. function d4(a) {
  4390. if (eI.test(a.type)) {
  4391. a.defaultChecked = a.checked
  4392. }
  4393. }
  4394. dr.extend({
  4395. clone : function (f, k, h) {
  4396. var g,
  4397. b,
  4398. j,
  4399. d,
  4400. a,
  4401. c = dr.contains(f.ownerDocument, f);
  4402. if (dr.support.html5Clone || dr.isXMLDoc(f) || !c2.test("<" + f.nodeName + ">")) {
  4403. j = f.cloneNode(true)
  4404. } else {
  4405. d2.innerHTML = f.outerHTML;
  4406. d2.removeChild(j = d2.firstChild)
  4407. }
  4408. if ((!dr.support.noCloneEvent || !dr.support.noCloneChecked) && (f.nodeType === 1 || f.nodeType === 11) && !dr.isXMLDoc(f)) {
  4409. g = dW(j);
  4410. a = dW(f);
  4411. for (d = 0; (b = a[d]) != null; ++d) {
  4412. if (g[d]) {
  4413. d5(b, g[d])
  4414. }
  4415. }
  4416. }
  4417. if (k) {
  4418. if (h) {
  4419. a = a || dW(f);
  4420. g = g || dW(j);
  4421. for (d = 0; (b = a[d]) != null; d++) {
  4422. cf(b, g[d])
  4423. }
  4424. } else {
  4425. cf(f, j)
  4426. }
  4427. }
  4428. g = dW(j, "script");
  4429. if (g.length > 0) {
  4430. dP(g, !c && dW(f, "script"))
  4431. }
  4432. g = a = b = null;
  4433. return j
  4434. },
  4435. buildFragment : function (n, q, g, f) {
  4436. var l,
  4437. o,
  4438. p,
  4439. b,
  4440. d,
  4441. c,
  4442. a,
  4443. k = n.length,
  4444. h = c6(q),
  4445. j = [],
  4446. m = 0;
  4447. for (; m < k; m++) {
  4448. o = n[m];
  4449. if (o || o === 0) {
  4450. if (dr.type(o) === "object") {
  4451. dr.merge(j, o.nodeType ? [o] : o)
  4452. } else {
  4453. if (!b5.test(o)) {
  4454. j.push(q.createTextNode(o))
  4455. } else {
  4456. b = b || h.appendChild(q.createElement("div"));
  4457. d = (cz.exec(o) || ["", ""])[1].toLowerCase();
  4458. a = dt[d] || dt._default;
  4459. b.innerHTML = a[1] + o.replace(dU, "<$1></$2>") + a[2];
  4460. l = a[0];
  4461. while (l--) {
  4462. b = b.lastChild
  4463. }
  4464. if (!dr.support.leadingWhitespace && eK.test(o)) {
  4465. j.push(q.createTextNode(eK.exec(o)[0]))
  4466. }
  4467. if (!dr.support.tbody) {
  4468. o = d === "table" && !ef.test(o) ? b.firstChild : a[1] === "<table>" && !ef.test(o) ? b : 0;
  4469. l = o && o.childNodes.length;
  4470. while (l--) {
  4471. if (dr.nodeName((c = o.childNodes[l]), "tbody") && !c.childNodes.length) {
  4472. o.removeChild(c)
  4473. }
  4474. }
  4475. }
  4476. dr.merge(j, b.childNodes);
  4477. b.textContent = "";
  4478. while (b.firstChild) {
  4479. b.removeChild(b.firstChild)
  4480. }
  4481. b = h.lastChild
  4482. }
  4483. }
  4484. }
  4485. }
  4486. if (b) {
  4487. h.removeChild(b)
  4488. }
  4489. if (!dr.support.appendChecked) {
  4490. dr.grep(dW(j, "input"), d4)
  4491. }
  4492. m = 0;
  4493. while ((o = j[m++])) {
  4494. if (f && dr.inArray(o, f) !== -1) {
  4495. continue
  4496. }
  4497. p = dr.contains(o.ownerDocument, o);
  4498. b = dW(h.appendChild(o), "script");
  4499. if (p) {
  4500. dP(b)
  4501. }
  4502. if (g) {
  4503. l = 0;
  4504. while ((o = b[l++])) {
  4505. if (cE.test(o.type || "")) {
  4506. g.push(o)
  4507. }
  4508. }
  4509. }
  4510. }
  4511. b = null;
  4512. return h
  4513. },
  4514. cleanData : function (g, l) {
  4515. var h,
  4516. a,
  4517. d,
  4518. k,
  4519. f = 0,
  4520. c = dr.expando,
  4521. m = dr.cache,
  4522. j = dr.support.deleteExpando,
  4523. b = dr.event.special;
  4524. for (; (h = g[f]) != null; f++) {
  4525. if (l || dr.acceptData(h)) {
  4526. d = h[c];
  4527. k = d && m[d];
  4528. if (k) {
  4529. if (k.events) {
  4530. for (a in k.events) {
  4531. if (b[a]) {
  4532. dr.event.remove(h, a)
  4533. } else {
  4534. dr.removeEvent(h, a, k.handle)
  4535. }
  4536. }
  4537. }
  4538. if (m[d]) {
  4539. delete m[d];
  4540. if (j) {
  4541. delete h[c]
  4542. } else {
  4543. if (typeof h.removeAttribute !== dk) {
  4544. h.removeAttribute(c)
  4545. } else {
  4546. h[c] = null
  4547. }
  4548. }
  4549. cc.push(d)
  4550. }
  4551. }
  4552. }
  4553. }
  4554. }
  4555. });
  4556. var dI,
  4557. dQ,
  4558. cP,
  4559. eA = /alpha\([^)]*\)/i,
  4560. cU = /opacity\s*=\s*([^)]*)/,
  4561. cQ = /^(top|right|bottom|left)$/,
  4562. em = /^(none|table(?!-c[ea]).+)/,
  4563. dh = /^margin/,
  4564. cY = new RegExp("^(" + dp + ")(.*)$", "i"),
  4565. c0 = new RegExp("^(" + dp + ")(?!px)[a-z%]+$", "i"),
  4566. cK = new RegExp("^([+-])=(" + dp + ")", "i"),
  4567. eb = {
  4568. BODY : "block"
  4569. },
  4570. cR = {
  4571. position : "absolute",
  4572. visibility : "hidden",
  4573. display : "block"
  4574. },
  4575. cV = {
  4576. letterSpacing : 0,
  4577. fontWeight : 400
  4578. },
  4579. cX = ["Top", "Right", "Bottom", "Left"],
  4580. cT = ["Webkit", "O", "Moz", "ms"];
  4581. function dz(c, f) {
  4582. if (f in c) {
  4583. return f
  4584. }
  4585. var b = f.charAt(0).toUpperCase() + f.slice(1),
  4586. d = f,
  4587. a = cT.length;
  4588. while (a--) {
  4589. f = cT[a] + b;
  4590. if (f in c) {
  4591. return f
  4592. }
  4593. }
  4594. return d
  4595. }
  4596. function dv(a, b) {
  4597. a = b || a;
  4598. return dr.css(a, "display") === "none" || !dr.contains(a.ownerDocument, a)
  4599. }
  4600. function dM(j, c) {
  4601. var g,
  4602. a,
  4603. h,
  4604. b = [],
  4605. f = 0,
  4606. d = j.length;
  4607. for (; f < d; f++) {
  4608. a = j[f];
  4609. if (!a.style) {
  4610. continue
  4611. }
  4612. b[f] = dr._data(a, "olddisplay");
  4613. g = a.style.display;
  4614. if (c) {
  4615. if (!b[f] && g === "none") {
  4616. a.style.display = ""
  4617. }
  4618. if (a.style.display === "" && dv(a)) {
  4619. b[f] = dr._data(a, "olddisplay", cZ(a.nodeName))
  4620. }
  4621. } else {
  4622. if (!b[f]) {
  4623. h = dv(a);
  4624. if (g && g !== "none" || !h) {
  4625. dr._data(a, "olddisplay", h ? g : dr.css(a, "display"))
  4626. }
  4627. }
  4628. }
  4629. }
  4630. for (f = 0; f < d; f++) {
  4631. a = j[f];
  4632. if (!a.style) {
  4633. continue
  4634. }
  4635. if (!c || a.style.display === "none" || a.style.display === "") {
  4636. a.style.display = c ? b[f] || "" : "none"
  4637. }
  4638. }
  4639. return j
  4640. }
  4641. dr.fn.extend({
  4642. css : function (b, a) {
  4643. return dr.access(this, function (k, f, c) {
  4644. var h,
  4645. d,
  4646. g = {},
  4647. j = 0;
  4648. if (dr.isArray(f)) {
  4649. d = dQ(k);
  4650. h = f.length;
  4651. for (; j < h; j++) {
  4652. g[f[j]] = dr.css(k, f[j], false, d)
  4653. }
  4654. return g
  4655. }
  4656. return c !== dB ? dr.style(k, f, c) : dr.css(k, f)
  4657. }, b, a, arguments.length > 1)
  4658. },
  4659. show : function () {
  4660. return dM(this, true)
  4661. },
  4662. hide : function () {
  4663. return dM(this)
  4664. },
  4665. toggle : function (a) {
  4666. var b = typeof a === "boolean";
  4667. return this.each(function () {
  4668. if (b ? a : dv(this)) {
  4669. dr(this).show()
  4670. } else {
  4671. dr(this).hide()
  4672. }
  4673. })
  4674. }
  4675. });
  4676. dr.extend({
  4677. cssHooks : {
  4678. opacity : {
  4679. get : function (a, b) {
  4680. if (b) {
  4681. var c = cP(a, "opacity");
  4682. return c === "" ? "1" : c
  4683. }
  4684. }
  4685. }
  4686. },
  4687. cssNumber : {
  4688. columnCount : true,
  4689. fillOpacity : true,
  4690. fontWeight : true,
  4691. lineHeight : true,
  4692. opacity : true,
  4693. orphans : true,
  4694. widows : true,
  4695. zIndex : true,
  4696. zoom : true
  4697. },
  4698. cssProps : {
  4699. "float" : dr.support.cssFloat ? "cssFloat" : "styleFloat"
  4700. },
  4701. style : function (k, g, a, j) {
  4702. if (!k || k.nodeType === 3 || k.nodeType === 8 || !k.style) {
  4703. return
  4704. }
  4705. var d,
  4706. b,
  4707. h,
  4708. f = dr.camelCase(g),
  4709. c = k.style;
  4710. g = dr.cssProps[f] || (dr.cssProps[f] = dz(c, f));
  4711. h = dr.cssHooks[g] || dr.cssHooks[f];
  4712. if (a !== dB) {
  4713. b = typeof a;
  4714. if (b === "string" && (d = cK.exec(a))) {
  4715. a = (d[1] + 1) * d[2] + parseFloat(dr.css(k, g));
  4716. b = "number"
  4717. }
  4718. if (a == null || b === "number" && isNaN(a)) {
  4719. return
  4720. }
  4721. if (b === "number" && !dr.cssNumber[f]) {
  4722. a += "px"
  4723. }
  4724. if (!dr.support.clearCloneStyle && a === "" && g.indexOf("background") === 0) {
  4725. c[g] = "inherit"
  4726. }
  4727. if (!h || !("set" in h) || (a = h.set(k, a, j)) !== dB) {
  4728. try {
  4729. c[g] = a
  4730. } catch (l) {}
  4731.  
  4732. }
  4733. } else {
  4734. if (h && "get" in h && (d = h.get(k, false, j)) !== dB) {
  4735. return d
  4736. }
  4737. return c[g]
  4738. }
  4739. },
  4740. css : function (g, h, a, c) {
  4741. var f,
  4742. b,
  4743. j,
  4744. d = dr.camelCase(h);
  4745. h = dr.cssProps[d] || (dr.cssProps[d] = dz(g.style, d));
  4746. j = dr.cssHooks[h] || dr.cssHooks[d];
  4747. if (j && "get" in j) {
  4748. b = j.get(g, true, a)
  4749. }
  4750. if (b === dB) {
  4751. b = cP(g, h, c)
  4752. }
  4753. if (b === "normal" && h in cV) {
  4754. b = cV[h]
  4755. }
  4756. if (a === "" || a) {
  4757. f = parseFloat(b);
  4758. return a === true || dr.isNumeric(f) ? f || 0 : b
  4759. }
  4760. return b
  4761. },
  4762. swap : function (h, c, a, f) {
  4763. var b,
  4764. g,
  4765. d = {};
  4766. for (g in c) {
  4767. d[g] = h.style[g];
  4768. h.style[g] = c[g]
  4769. }
  4770. b = a.apply(h, f || []);
  4771. for (g in c) {
  4772. h.style[g] = d[g]
  4773. }
  4774. return b
  4775. }
  4776. });
  4777. if (dx.getComputedStyle) {
  4778. dQ = function (a) {
  4779. return dx.getComputedStyle(a, null)
  4780. };
  4781. cP = function (h, d, j) {
  4782. var a,
  4783. f,
  4784. g,
  4785. k = j || dQ(h),
  4786. c = k ? k.getPropertyValue(d) || k[d] : dB,
  4787. b = h.style;
  4788. if (k) {
  4789. if (c === "" && !dr.contains(h.ownerDocument, h)) {
  4790. c = dr.style(h, d)
  4791. }
  4792. if (c0.test(c) && dh.test(d)) {
  4793. a = b.width;
  4794. f = b.minWidth;
  4795. g = b.maxWidth;
  4796. b.minWidth = b.maxWidth = b.width = c;
  4797. c = k.width;
  4798. b.width = a;
  4799. b.minWidth = f;
  4800. b.maxWidth = g
  4801. }
  4802. }
  4803. return c
  4804. }
  4805. } else {
  4806. if (cG.documentElement.currentStyle) {
  4807. dQ = function (a) {
  4808. return a.currentStyle
  4809. };
  4810. cP = function (h, f, j) {
  4811. var g,
  4812. c,
  4813. b,
  4814. k = j || dQ(h),
  4815. d = k ? k[f] : dB,
  4816. a = h.style;
  4817. if (d == null && a && a[f]) {
  4818. d = a[f]
  4819. }
  4820. if (c0.test(d) && !cQ.test(f)) {
  4821. g = a.left;
  4822. c = h.runtimeStyle;
  4823. b = c && c.left;
  4824. if (b) {
  4825. c.left = h.currentStyle.left
  4826. }
  4827. a.left = f === "fontSize" ? "1em" : d;
  4828. d = a.pixelLeft + "px";
  4829. a.left = g;
  4830. if (b) {
  4831. c.left = b
  4832. }
  4833. }
  4834. return d === "" ? "auto" : d
  4835. }
  4836. }
  4837. }
  4838. function dN(b, c, d) {
  4839. var a = cY.exec(c);
  4840. return a ? Math.max(0, a[1] - (d || 0)) + (a[2] || "px") : c
  4841. }
  4842. function cj(f, d, a, g, c) {
  4843. var h = a === (g ? "border" : "content") ? 4 : d === "width" ? 1 : 0,
  4844. b = 0;
  4845. for (; h < 4; h += 2) {
  4846. if (a === "margin") {
  4847. b += dr.css(f, a + cX[h], true, c)
  4848. }
  4849. if (g) {
  4850. if (a === "content") {
  4851. b -= dr.css(f, "padding" + cX[h], true, c)
  4852. }
  4853. if (a !== "margin") {
  4854. b -= dr.css(f, "border" + cX[h] + "Width", true, c)
  4855. }
  4856. } else {
  4857. b += dr.css(f, "padding" + cX[h], true, c);
  4858. if (a !== "padding") {
  4859. b += dr.css(f, "border" + cX[h] + "Width", true, c)
  4860. }
  4861. }
  4862. }
  4863. return b
  4864. }
  4865. function dO(f, g, a) {
  4866. var b = true,
  4867. c = g === "width" ? f.offsetWidth : f.offsetHeight,
  4868. d = dQ(f),
  4869. h = dr.support.boxSizing && dr.css(f, "boxSizing", false, d) === "border-box";
  4870. if (c <= 0 || c == null) {
  4871. c = cP(f, g, d);
  4872. if (c < 0 || c == null) {
  4873. c = f.style[g]
  4874. }
  4875. if (c0.test(c)) {
  4876. return c
  4877. }
  4878. b = h && (dr.support.boxSizingReliable || c === f.style[g]);
  4879. c = parseFloat(c) || 0
  4880. }
  4881. return (c + cj(f, g, a || (h ? "border" : "content"), b, d)) + "px"
  4882. }
  4883. function cZ(c) {
  4884. var a = cG,
  4885. b = eb[c];
  4886. if (!b) {
  4887. b = cv(c, a);
  4888. if (b === "none" || !b) {
  4889. dI = (dI || dr("<iframe frameborder='0' width='0' height='0'/>").css("cssText", "display:block !important")).appendTo(a.documentElement);
  4890. a = (dI[0].contentWindow || dI[0].contentDocument).document;
  4891. a.write("<!doctype html><html><body>");
  4892. a.close();
  4893. b = cv(c, a);
  4894. dI.detach()
  4895. }
  4896. eb[c] = b
  4897. }
  4898. return b
  4899. }
  4900. function cv(c, a) {
  4901. var d = dr(a.createElement(c)).appendTo(a.body),
  4902. b = dr.css(d[0], "display");
  4903. d.remove();
  4904. return b
  4905. }
  4906. dr.each(["height", "width"], function (b, a) {
  4907. dr.cssHooks[a] = {
  4908. get : function (d, f, c) {
  4909. if (f) {
  4910. return d.offsetWidth === 0 && em.test(dr.css(d, "display")) ? dr.swap(d, cR, function () {
  4911. return dO(d, a, c)
  4912. }) : dO(d, a, c)
  4913. }
  4914. },
  4915. set : function (g, c, f) {
  4916. var d = f && dQ(g);
  4917. return dN(g, c, f ? cj(g, a, f, dr.support.boxSizing && dr.css(g, "boxSizing", false, d) === "border-box", d) : 0)
  4918. }
  4919. }
  4920. });
  4921. if (!dr.support.opacity) {
  4922. dr.cssHooks.opacity = {
  4923. get : function (a, b) {
  4924. return cU.test((b && a.currentStyle ? a.currentStyle.filter : a.style.filter) || "") ? (0.01 * parseFloat(RegExp.$1)) + "" : b ? "1" : ""
  4925. },
  4926. set : function (a, b) {
  4927. var d = a.style,
  4928. c = a.currentStyle,
  4929. f = dr.isNumeric(b) ? "alpha(opacity=" + b * 100 + ")" : "",
  4930. g = c && c.filter || d.filter || "";
  4931. d.zoom = 1;
  4932. if ((b >= 1 || b === "") && dr.trim(g.replace(eA, "")) === "" && d.removeAttribute) {
  4933. d.removeAttribute("filter");
  4934. if (b === "" || c && !c.filter) {
  4935. return
  4936. }
  4937. }
  4938. d.filter = eA.test(g) ? g.replace(eA, f) : g + " " + f
  4939. }
  4940. }
  4941. }
  4942. dr(function () {
  4943. if (!dr.support.reliableMarginRight) {
  4944. dr.cssHooks.marginRight = {
  4945. get : function (a, b) {
  4946. if (b) {
  4947. return dr.swap(a, {
  4948. display : "inline-block"
  4949. }, cP, [a, "marginRight"])
  4950. }
  4951. }
  4952. }
  4953. }
  4954. if (!dr.support.pixelPosition && dr.fn.position) {
  4955. dr.each(["top", "left"], function (b, a) {
  4956. dr.cssHooks[a] = {
  4957. get : function (c, d) {
  4958. if (d) {
  4959. d = cP(c, a);
  4960. return c0.test(d) ? dr(c).position()[a] + "px" : d
  4961. }
  4962. }
  4963. }
  4964. })
  4965. }
  4966. });
  4967. if (dr.expr && dr.expr.filters) {
  4968. dr.expr.filters.hidden = function (a) {
  4969. return a.offsetWidth <= 0 && a.offsetHeight <= 0 || (!dr.support.reliableHiddenOffsets && ((a.style && a.style.display) || dr.css(a, "display")) === "none")
  4970. };
  4971. dr.expr.filters.visible = function (a) {
  4972. return !dr.expr.filters.hidden(a)
  4973. }
  4974. }
  4975. dr.each({
  4976. margin : "",
  4977. padding : "",
  4978. border : "Width"
  4979. }, function (b, a) {
  4980. dr.cssHooks[b + a] = {
  4981. expand : function (c) {
  4982. var f = 0,
  4983. g = {},
  4984. d = typeof c === "string" ? c.split(" ") : [c];
  4985. for (; f < 4; f++) {
  4986. g[b + cX[f] + a] = d[f] || d[f - 2] || d[0]
  4987. }
  4988. return g
  4989. }
  4990. };
  4991. if (!dh.test(b)) {
  4992. dr.cssHooks[b + a].set = dN
  4993. }
  4994. });
  4995. var eB = /%20/g,
  4996. ex = /\[\]$/,
  4997. ep = /\r?\n/g,
  4998. cA = /^(?:submit|button|image|reset|file)$/i,
  4999. cB = /^(?:input|select|textarea|keygen)/i;
  5000. dr.fn.extend({
  5001. serialize : function () {
  5002. return dr.param(this.serializeArray())
  5003. },
  5004. serializeArray : function () {
  5005. return this.map(function () {
  5006. var a = dr.prop(this, "elements");
  5007. return a ? dr.makeArray(a) : this
  5008. }).filter(function () {
  5009. var a = this.type;
  5010. return this.name && !dr(this).is(":disabled") && cB.test(this.nodeName) && !cA.test(a) && (this.checked || !eI.test(a))
  5011. }).map(function (a, b) {
  5012. var c = dr(this).val();
  5013. return c == null ? null : dr.isArray(c) ? dr.map(c, function (d) {
  5014. return {
  5015. name : b.name,
  5016. value : d.replace(ep, "\r\n")
  5017. }
  5018. }) : {
  5019. name : b.name,
  5020. value : c.replace(ep, "\r\n")
  5021. }
  5022. }).get()
  5023. }
  5024. });
  5025. dr.param = function (c, b) {
  5026. var f,
  5027. d = [],
  5028. a = function (h, g) {
  5029. g = dr.isFunction(g) ? g() : (g == null ? "" : g);
  5030. d[d.length] = encodeURIComponent(h) + "=" + encodeURIComponent(g)
  5031. };
  5032. if (b === dB) {
  5033. b = dr.ajaxSettings && dr.ajaxSettings.traditional
  5034. }
  5035. if (dr.isArray(c) || (c.jquery && !dr.isPlainObject(c))) {
  5036. dr.each(c, function () {
  5037. a(this.name, this.value)
  5038. })
  5039. } else {
  5040. for (f in c) {
  5041. ch(f, c[f], b, a)
  5042. }
  5043. }
  5044. return d.join("&").replace(eB, "+")
  5045. };
  5046. function ch(d, f, c, b) {
  5047. var a;
  5048. if (dr.isArray(f)) {
  5049. dr.each(f, function (h, g) {
  5050. if (c || ex.test(d)) {
  5051. b(d, g)
  5052. } else {
  5053. ch(d + "[" + (typeof g === "object" ? h : "") + "]", g, c, b)
  5054. }
  5055. })
  5056. } else {
  5057. if (!c && dr.type(f) === "object") {
  5058. for (a in f) {
  5059. ch(d + "[" + a + "]", f[a], c, b)
  5060. }
  5061. } else {
  5062. b(d, f)
  5063. }
  5064. }
  5065. }
  5066. dr.each(("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu").split(" "), function (b, a) {
  5067. dr.fn[a] = function (d, c) {
  5068. return arguments.length > 0 ? this.on(a, null, d, c) : this.trigger(a)
  5069. }
  5070. });
  5071. dr.fn.hover = function (a, b) {
  5072. return this.mouseenter(a).mouseleave(b || a)
  5073. };
  5074. var cn,
  5075. co,
  5076. ct = dr.now(),
  5077. cs = /\?/,
  5078. b7 = /#.*$/,
  5079. ec = /([?&])_=[^&]*/,
  5080. b6 = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg,
  5081. dj = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
  5082. c7 = /^(?:GET|HEAD)$/,
  5083. cO = /^\/\//,
  5084. d6 = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,
  5085. cw = dr.fn.load,
  5086. eD = {},
  5087. dF = {},
  5088. cm = "*/".concat("*");
  5089. try {
  5090. co = eJ.href
  5091. } catch (ee) {
  5092. co = cG.createElement("a");
  5093. co.href = "";
  5094. co = co.href
  5095. }
  5096. cn = d6.exec(co.toLowerCase()) || [];
  5097. function cu(a) {
  5098. return function (g, d) {
  5099. if (typeof g !== "string") {
  5100. d = g;
  5101. g = "*"
  5102. }
  5103. var b,
  5104. c = 0,
  5105. f = g.toLowerCase().match(dm) || [];
  5106. if (dr.isFunction(d)) {
  5107. while ((b = f[c++])) {
  5108. if (b[0] === "+") {
  5109. b = b.slice(1) || "*";
  5110. (a[b] = a[b] || []).unshift(d)
  5111. } else {
  5112. (a[b] = a[b] || []).push(d)
  5113. }
  5114. }
  5115. }
  5116. }
  5117. }
  5118. function dG(b, g, f, h) {
  5119. var a = {},
  5120. c = (b === dF);
  5121. function d(k) {
  5122. var j;
  5123. a[k] = true;
  5124. dr.each(b[k] || [], function (n, l) {
  5125. var m = l(g, f, h);
  5126. if (typeof m === "string" && !c && !a[m]) {
  5127. g.dataTypes.unshift(m);
  5128. d(m);
  5129. return false
  5130. } else {
  5131. if (c) {
  5132. return !(j = m)
  5133. }
  5134. }
  5135. });
  5136. return j
  5137. }
  5138. return d(g.dataTypes[0]) || !a["*"] && d("*")
  5139. }
  5140. function cq(c, d) {
  5141. var b,
  5142. f,
  5143. a = dr.ajaxSettings.flatOptions || {};
  5144. for (f in d) {
  5145. if (d[f] !== dB) {
  5146. (a[f] ? c : (b || (b = {})))[f] = d[f]
  5147. }
  5148. }
  5149. if (b) {
  5150. dr.extend(true, c, b)
  5151. }
  5152. return c
  5153. }
  5154. dr.fn.load = function (b, j, g) {
  5155. if (typeof b !== "string" && cw) {
  5156. return cw.apply(this, arguments)
  5157. }
  5158. var f,
  5159. h,
  5160. c,
  5161. d = this,
  5162. a = b.indexOf(" ");
  5163. if (a >= 0) {
  5164. f = b.slice(a, b.length);
  5165. b = b.slice(0, a)
  5166. }
  5167. if (dr.isFunction(j)) {
  5168. g = j;
  5169. j = dB
  5170. } else {
  5171. if (j && typeof j === "object") {
  5172. c = "POST"
  5173. }
  5174. }
  5175. if (d.length > 0) {
  5176. dr.ajax({
  5177. url : b,
  5178. type : c,
  5179. dataType : "html",
  5180. data : j
  5181. }).done(function (k) {
  5182. h = arguments;
  5183. d.html(f ? dr("<div>").append(dr.parseHTML(k)).find(f) : k)
  5184. }).complete(g && function (k, l) {
  5185. d.each(g, h || [k.responseText, l, k])
  5186. })
  5187. }
  5188. return this
  5189. };
  5190. dr.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function (b, a) {
  5191. dr.fn[a] = function (c) {
  5192. return this.on(a, c)
  5193. }
  5194. });
  5195. dr.each(["get", "post"], function (b, a) {
  5196. dr[a] = function (c, f, g, d) {
  5197. if (dr.isFunction(f)) {
  5198. d = d || g;
  5199. g = f;
  5200. f = dB
  5201. }
  5202. return dr.ajax({
  5203. url : c,
  5204. type : a,
  5205. dataType : d,
  5206. data : f,
  5207. success : g
  5208. })
  5209. }
  5210. });
  5211. dr.extend({
  5212. active : 0,
  5213. lastModified : {},
  5214. etag : {},
  5215. ajaxSettings : {
  5216. url : co,
  5217. type : "GET",
  5218. isLocal : dj.test(cn[1]),
  5219. global : true,
  5220. processData : true,
  5221. async : true,
  5222. contentType : "application/x-www-form-urlencoded; charset=UTF-8",
  5223. accepts : {
  5224. "*" : cm,
  5225. text : "text/plain",
  5226. html : "text/html",
  5227. xml : "application/xml, text/xml",
  5228. json : "application/json, text/javascript"
  5229. },
  5230. contents : {
  5231. xml : /xml/,
  5232. html : /html/,
  5233. json : /json/
  5234. },
  5235. responseFields : {
  5236. xml : "responseXML",
  5237. text : "responseText"
  5238. },
  5239. converters : {
  5240. "* text" : dx.String,
  5241. "text html" : true,
  5242. "text json" : dr.parseJSON,
  5243. "text xml" : dr.parseXML
  5244. },
  5245. flatOptions : {
  5246. url : true,
  5247. context : true
  5248. }
  5249. },
  5250. ajaxSetup : function (a, b) {
  5251. return b ? cq(cq(a, dr.ajaxSettings), b) : cq(dr.ajaxSettings, a)
  5252. },
  5253. ajaxPrefilter : cu(eD),
  5254. ajaxTransport : cu(dF),
  5255. ajax : function (h, u) {
  5256. if (typeof h === "object") {
  5257. u = h;
  5258. h = dB
  5259. }
  5260. u = u || {};
  5261. var t,
  5262. w,
  5263. g,
  5264. p,
  5265. k,
  5266. y,
  5267. j,
  5268. q,
  5269. o = dr.ajaxSetup({}, u),
  5270. f = o.context || o,
  5271. x = o.context && (f.nodeType || f.jquery) ? dr(f) : dr.event,
  5272. c = dr.Deferred(),
  5273. d = dr.Callbacks("once memory"),
  5274. m = o.statusCode || {},
  5275. s = {},
  5276. r = {},
  5277. n = 0,
  5278. l = "canceled",
  5279. v = {
  5280. readyState : 0,
  5281. getResponseHeader : function (A) {
  5282. var z;
  5283. if (n === 2) {
  5284. if (!q) {
  5285. q = {};
  5286. while ((z = b6.exec(p))) {
  5287. q[z[1].toLowerCase()] = z[2]
  5288. }
  5289. }
  5290. z = q[A.toLowerCase()]
  5291. }
  5292. return z == null ? null : z
  5293. },
  5294. getAllResponseHeaders : function () {
  5295. return n === 2 ? p : null
  5296. },
  5297. setRequestHeader : function (A, z) {
  5298. var B = A.toLowerCase();
  5299. if (!n) {
  5300. A = r[B] = r[B] || A;
  5301. s[A] = z
  5302. }
  5303. return this
  5304. },
  5305. overrideMimeType : function (z) {
  5306. if (!n) {
  5307. o.mimeType = z
  5308. }
  5309. return this
  5310. },
  5311. statusCode : function (z) {
  5312. var A;
  5313. if (z) {
  5314. if (n < 2) {
  5315. for (A in z) {
  5316. m[A] = [m[A], z[A]]
  5317. }
  5318. } else {
  5319. v.always(z[v.status])
  5320. }
  5321. }
  5322. return this
  5323. },
  5324. abort : function (z) {
  5325. var A = z || l;
  5326. if (j) {
  5327. j.abort(A)
  5328. }
  5329. b(0, A);
  5330. return this
  5331. }
  5332. };
  5333. c.promise(v).complete = d.add;
  5334. v.success = v.done;
  5335. v.error = v.fail;
  5336. o.url = ((h || o.url || co) + "").replace(b7, "").replace(cO, cn[1] + "//");
  5337. o.type = u.method || u.type || o.method || o.type;
  5338. o.dataTypes = dr.trim(o.dataType || "*").toLowerCase().match(dm) || [""];
  5339. if (o.crossDomain == null) {
  5340. t = d6.exec(o.url.toLowerCase());
  5341. o.crossDomain = !!(t && (t[1] !== cn[1] || t[2] !== cn[2] || (t[3] || (t[1] === "http:" ? 80 : 443)) != (cn[3] || (cn[1] === "http:" ? 80 : 443))))
  5342. }
  5343. if (o.data && o.processData && typeof o.data !== "string") {
  5344. o.data = dr.param(o.data, o.traditional)
  5345. }
  5346. dG(eD, o, u, v);
  5347. if (n === 2) {
  5348. return v
  5349. }
  5350. y = o.global;
  5351. if (y && dr.active++ === 0) {
  5352. dr.event.trigger("ajaxStart")
  5353. }
  5354. o.type = o.type.toUpperCase();
  5355. o.hasContent = !c7.test(o.type);
  5356. g = o.url;
  5357. if (!o.hasContent) {
  5358. if (o.data) {
  5359. g = (o.url += (cs.test(g) ? "&" : "?") + o.data);
  5360. delete o.data
  5361. }
  5362. if (o.cache === false) {
  5363. o.url = ec.test(g) ? g.replace(ec, "$1_=" + ct++) : g + (cs.test(g) ? "&" : "?") + "_=" + ct++
  5364. }
  5365. }
  5366. if (o.ifModified) {
  5367. if (dr.lastModified[g]) {
  5368. v.setRequestHeader("If-Modified-Since", dr.lastModified[g])
  5369. }
  5370. if (dr.etag[g]) {
  5371. v.setRequestHeader("If-None-Match", dr.etag[g])
  5372. }
  5373. }
  5374. if (o.data && o.hasContent && o.contentType !== false || u.contentType) {
  5375. v.setRequestHeader("Content-Type", o.contentType)
  5376. }
  5377. v.setRequestHeader("Accept", o.dataTypes[0] && o.accepts[o.dataTypes[0]] ? o.accepts[o.dataTypes[0]] + (o.dataTypes[0] !== "*" ? ", " + cm + "; q=0.01" : "") : o.accepts["*"]);
  5378. for (w in o.headers) {
  5379. v.setRequestHeader(w, o.headers[w])
  5380. }
  5381. if (o.beforeSend && (o.beforeSend.call(f, v, o) === false || n === 2)) {
  5382. return v.abort()
  5383. }
  5384. l = "abort";
  5385. for (w in {
  5386. success : 1,
  5387. error : 1,
  5388. complete : 1
  5389. }) {
  5390. v[w](o[w])
  5391. }
  5392. j = dG(dF, o, u, v);
  5393. if (!j) {
  5394. b(-1, "No Transport")
  5395. } else {
  5396. v.readyState = 1;
  5397. if (y) {
  5398. x.trigger("ajaxSend", [v, o])
  5399. }
  5400. if (o.async && o.timeout > 0) {
  5401. k = setTimeout(function () {
  5402. v.abort("timeout")
  5403. }, o.timeout)
  5404. }
  5405. try {
  5406. n = 1;
  5407. j.send(s, b)
  5408. } catch (a) {
  5409. if (n < 2) {
  5410. b(-1, a)
  5411. } else {
  5412. throw a
  5413. }
  5414. }
  5415. }
  5416. function b(B, E, C, I) {
  5417. var G,
  5418. z,
  5419. H,
  5420. D,
  5421. F,
  5422. A = E;
  5423. if (n === 2) {
  5424. return
  5425. }
  5426. n = 2;
  5427. if (k) {
  5428. clearTimeout(k)
  5429. }
  5430. j = dB;
  5431. p = I || "";
  5432. v.readyState = B > 0 ? 4 : 0;
  5433. if (C) {
  5434. D = cp(o, v, C)
  5435. }
  5436. if (B >= 200 && B < 300 || B === 304) {
  5437. if (o.ifModified) {
  5438. F = v.getResponseHeader("Last-Modified");
  5439. if (F) {
  5440. dr.lastModified[g] = F
  5441. }
  5442. F = v.getResponseHeader("etag");
  5443. if (F) {
  5444. dr.etag[g] = F
  5445. }
  5446. }
  5447. if (B === 204) {
  5448. G = true;
  5449. A = "nocontent"
  5450. } else {
  5451. if (B === 304) {
  5452. G = true;
  5453. A = "notmodified"
  5454. } else {
  5455. G = cr(o, D);
  5456. A = G.state;
  5457. z = G.data;
  5458. H = G.error;
  5459. G = !H
  5460. }
  5461. }
  5462. } else {
  5463. H = A;
  5464. if (B || !A) {
  5465. A = "error";
  5466. if (B < 0) {
  5467. B = 0
  5468. }
  5469. }
  5470. }
  5471. v.status = B;
  5472. v.statusText = (E || A) + "";
  5473. if (G) {
  5474. c.resolveWith(f, [z, A, v])
  5475. } else {
  5476. c.rejectWith(f, [v, A, H])
  5477. }
  5478. v.statusCode(m);
  5479. m = dB;
  5480. if (y) {
  5481. x.trigger(G ? "ajaxSuccess" : "ajaxError", [v, o, G ? z : H])
  5482. }
  5483. d.fireWith(f, [v, A]);
  5484. if (y) {
  5485. x.trigger("ajaxComplete", [v, o]);
  5486. if (!(--dr.active)) {
  5487. dr.event.trigger("ajaxStop")
  5488. }
  5489. }
  5490. }
  5491. return v
  5492. },
  5493. getScript : function (a, b) {
  5494. return dr.get(a, dB, b, "script")
  5495. },
  5496. getJSON : function (c, a, b) {
  5497. return dr.get(c, a, b, "json")
  5498. }
  5499. });
  5500. function cp(b, f, c) {
  5501. var g,
  5502. l,
  5503. h,
  5504. a,
  5505. k = b.contents,
  5506. j = b.dataTypes,
  5507. d = b.responseFields;
  5508. for (a in d) {
  5509. if (a in c) {
  5510. f[d[a]] = c[a]
  5511. }
  5512. }
  5513. while (j[0] === "*") {
  5514. j.shift();
  5515. if (l === dB) {
  5516. l = b.mimeType || f.getResponseHeader("Content-Type")
  5517. }
  5518. }
  5519. if (l) {
  5520. for (a in k) {
  5521. if (k[a] && k[a].test(l)) {
  5522. j.unshift(a);
  5523. break
  5524. }
  5525. }
  5526. }
  5527. if (j[0]in c) {
  5528. h = j[0]
  5529. } else {
  5530. for (a in c) {
  5531. if (!j[0] || b.converters[a + " " + j[0]]) {
  5532. h = a;
  5533. break
  5534. }
  5535. if (!g) {
  5536. g = a
  5537. }
  5538. }
  5539. h = h || g
  5540. }
  5541. if (h) {
  5542. if (h !== j[0]) {
  5543. j.unshift(h)
  5544. }
  5545. return c[h]
  5546. }
  5547. }
  5548. function cr(b, c) {
  5549. var l,
  5550. j,
  5551. m,
  5552. a,
  5553. k = {},
  5554. f = 0,
  5555. h = b.dataTypes.slice(),
  5556. d = h[0];
  5557. if (b.dataFilter) {
  5558. c = b.dataFilter(c, b.dataType)
  5559. }
  5560. if (h[1]) {
  5561. for (m in b.converters) {
  5562. k[m.toLowerCase()] = b.converters[m]
  5563. }
  5564. }
  5565. for (; (j = h[++f]); ) {
  5566. if (j !== "*") {
  5567. if (d !== "*" && d !== j) {
  5568. m = k[d + " " + j] || k["* " + j];
  5569. if (!m) {
  5570. for (l in k) {
  5571. a = l.split(" ");
  5572. if (a[1] === j) {
  5573. m = k[d + " " + a[0]] || k["* " + a[0]];
  5574. if (m) {
  5575. if (m === true) {
  5576. m = k[l]
  5577. } else {
  5578. if (k[l] !== true) {
  5579. j = a[0];
  5580. h.splice(f--, 0, j)
  5581. }
  5582. }
  5583. break
  5584. }
  5585. }
  5586. }
  5587. }
  5588. if (m !== true) {
  5589. if (m && b["throws"]) {
  5590. c = m(c)
  5591. } else {
  5592. try {
  5593. c = m(c)
  5594. } catch (g) {
  5595. return {
  5596. state : "parsererror",
  5597. error : m ? g : "No conversion from " + d + " to " + j
  5598. }
  5599. }
  5600. }
  5601. }
  5602. }
  5603. d = j
  5604. }
  5605. }
  5606. return {
  5607. state : "success",
  5608. data : c
  5609. }
  5610. }
  5611. dr.ajaxSetup({
  5612. accepts : {
  5613. script : "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
  5614. },
  5615. contents : {
  5616. script : /(?:java|ecma)script/
  5617. },
  5618. converters : {
  5619. "text script" : function (a) {
  5620. dr.globalEval(a);
  5621. return a
  5622. }
  5623. }
  5624. });
  5625. dr.ajaxPrefilter("script", function (a) {
  5626. if (a.cache === dB) {
  5627. a.cache = false
  5628. }
  5629. if (a.crossDomain) {
  5630. a.type = "GET";
  5631. a.global = false
  5632. }
  5633. });
  5634. dr.ajaxTransport("script", function (a) {
  5635. if (a.crossDomain) {
  5636. var c,
  5637. b = cG.head || dr("head")[0] || cG.documentElement;
  5638. return {
  5639. send : function (f, d) {
  5640. c = cG.createElement("script");
  5641. c.async = true;
  5642. if (a.scriptCharset) {
  5643. c.charset = a.scriptCharset
  5644. }
  5645. c.src = a.url;
  5646. c.onload = c.onreadystatechange = function (h, g) {
  5647. if (g || !c.readyState || /loaded|complete/.test(c.readyState)) {
  5648. c.onload = c.onreadystatechange = null;
  5649. if (c.parentNode) {
  5650. c.parentNode.removeChild(c)
  5651. }
  5652. c = null;
  5653. if (!g) {
  5654. d(200, "success")
  5655. }
  5656. }
  5657. };
  5658. b.insertBefore(c, b.firstChild)
  5659. },
  5660. abort : function () {
  5661. if (c) {
  5662. c.onload(dB, true)
  5663. }
  5664. }
  5665. }
  5666. }
  5667. });
  5668. var eF = [],
  5669. a8 = /(=)\?(?=&|$)|\?\?/;
  5670. dr.ajaxSetup({
  5671. jsonp : "callback",
  5672. jsonpCallback : function () {
  5673. var a = eF.pop() || (dr.expando + "_" + (ct++));
  5674. this[a] = true;
  5675. return a
  5676. }
  5677. });
  5678. dr.ajaxPrefilter("json jsonp", function (b, g, a) {
  5679. var f,
  5680. d,
  5681. c,
  5682. h = b.jsonp !== false && (a8.test(b.url) ? "url" : typeof b.data === "string" && !(b.contentType || "").indexOf("application/x-www-form-urlencoded") && a8.test(b.data) && "data");
  5683. if (h || b.dataTypes[0] === "jsonp") {
  5684. f = b.jsonpCallback = dr.isFunction(b.jsonpCallback) ? b.jsonpCallback() : b.jsonpCallback;
  5685. if (h) {
  5686. b[h] = b[h].replace(a8, "$1" + f)
  5687. } else {
  5688. if (b.jsonp !== false) {
  5689. b.url += (cs.test(b.url) ? "&" : "?") + b.jsonp + "=" + f
  5690. }
  5691. }
  5692. b.converters["script json"] = function () {
  5693. if (!c) {
  5694. dr.error(f + " was not called")
  5695. }
  5696. return c[0]
  5697. };
  5698. b.dataTypes[0] = "json";
  5699. d = dx[f];
  5700. dx[f] = function () {
  5701. c = arguments
  5702. };
  5703. a.always(function () {
  5704. dx[f] = d;
  5705. if (b[f]) {
  5706. b.jsonpCallback = g.jsonpCallback;
  5707. eF.push(f)
  5708. }
  5709. if (c && dr.isFunction(d)) {
  5710. d(c[0])
  5711. }
  5712. c = d = dB
  5713. });
  5714. return "script"
  5715. }
  5716. });
  5717. var eu,
  5718. eo,
  5719. es = 0,
  5720. eq = dx.ActiveXObject && function () {
  5721. var a;
  5722. for (a in eu) {
  5723. eu[a](dB, true)
  5724. }
  5725. };
  5726. function c4() {
  5727. try {
  5728. return new dx.XMLHttpRequest()
  5729. } catch (a) {}
  5730.  
  5731. }
  5732. function dc() {
  5733. try {
  5734. return new dx.ActiveXObject("Microsoft.XMLHTTP")
  5735. } catch (a) {}
  5736.  
  5737. }
  5738. dr.ajaxSettings.xhr = dx.ActiveXObject ? function () {
  5739. return !this.isLocal && c4() || dc()
  5740. }
  5741. : c4;
  5742. eo = dr.ajaxSettings.xhr();
  5743. dr.support.cors = !!eo && ("withCredentials" in eo);
  5744. eo = dr.support.ajax = !!eo;
  5745. if (eo) {
  5746. dr.ajaxTransport(function (a) {
  5747. if (!a.crossDomain || dr.support.cors) {
  5748. var b;
  5749. return {
  5750. send : function (f, j) {
  5751. var g,
  5752. d,
  5753. c = a.xhr();
  5754. if (a.username) {
  5755. c.open(a.type, a.url, a.async, a.username, a.password)
  5756. } else {
  5757. c.open(a.type, a.url, a.async)
  5758. }
  5759. if (a.xhrFields) {
  5760. for (d in a.xhrFields) {
  5761. c[d] = a.xhrFields[d]
  5762. }
  5763. }
  5764. if (a.mimeType && c.overrideMimeType) {
  5765. c.overrideMimeType(a.mimeType)
  5766. }
  5767. if (!a.crossDomain && !f["X-Requested-With"]) {
  5768. f["X-Requested-With"] = "XMLHttpRequest"
  5769. }
  5770. try {
  5771. for (d in f) {
  5772. c.setRequestHeader(d, f[d])
  5773. }
  5774. } catch (h) {}
  5775.  
  5776. c.send((a.hasContent && a.data) || null);
  5777. b = function (k, p) {
  5778. var m,
  5779. o,
  5780. l,
  5781. n;
  5782. try {
  5783. if (b && (p || c.readyState === 4)) {
  5784. b = dB;
  5785. if (g) {
  5786. c.onreadystatechange = dr.noop;
  5787. if (eq) {
  5788. delete eu[g]
  5789. }
  5790. }
  5791. if (p) {
  5792. if (c.readyState !== 4) {
  5793. c.abort()
  5794. }
  5795. } else {
  5796. n = {};
  5797. m = c.status;
  5798. o = c.getAllResponseHeaders();
  5799. if (typeof c.responseText === "string") {
  5800. n.text = c.responseText
  5801. }
  5802. try {
  5803. l = c.statusText
  5804. } catch (r) {
  5805. l = ""
  5806. }
  5807. if (!m && a.isLocal && !a.crossDomain) {
  5808. m = n.text ? 200 : 404
  5809. } else {
  5810. if (m === 1223) {
  5811. m = 204
  5812. }
  5813. }
  5814. }
  5815. }
  5816. } catch (q) {
  5817. if (!p) {
  5818. j(-1, q)
  5819. }
  5820. }
  5821. if (n) {
  5822. j(m, l, n, o)
  5823. }
  5824. };
  5825. if (!a.async) {
  5826. b()
  5827. } else {
  5828. if (c.readyState === 4) {
  5829. setTimeout(b)
  5830. } else {
  5831. g = ++es;
  5832. if (eq) {
  5833. if (!eu) {
  5834. eu = {};
  5835. dr(dx).unload(eq)
  5836. }
  5837. eu[g] = b
  5838. }
  5839. c.onreadystatechange = b
  5840. }
  5841. }
  5842. },
  5843. abort : function () {
  5844. if (b) {
  5845. b(dB, true)
  5846. }
  5847. }
  5848. }
  5849. }
  5850. })
  5851. }
  5852. var dZ,
  5853. dH,
  5854. b8 = /^(?:toggle|show|hide)$/,
  5855. b9 = new RegExp("^(?:([+-])=|)(" + dp + ")([a-z%]*)$", "i"),
  5856. cF = /queueHooks$/,
  5857. ck = [cL],
  5858. dC = {
  5859. "*" : [function (h, a) {
  5860. var k,
  5861. b,
  5862. c = this.createTween(h, a),
  5863. j = b9.exec(a),
  5864. d = c.cur(),
  5865. f = +d || 0,
  5866. g = 1,
  5867. l = 20;
  5868. if (j) {
  5869. k = +j[2];
  5870. b = j[3] || (dr.cssNumber[h] ? "" : "px");
  5871. if (b !== "px" && f) {
  5872. f = dr.css(c.elem, h, true) || k || 1;
  5873. do {
  5874. g = g || ".5";
  5875. f = f / g;
  5876. dr.style(c.elem, h, f + b)
  5877. } while (g !== (g = c.cur() / d) && g !== 1 && --l)
  5878. }
  5879. c.unit = b;
  5880. c.start = f;
  5881. c.end = j[1] ? f + (j[1] + 1) * k : k
  5882. }
  5883. return c
  5884. }
  5885. ]
  5886. };
  5887. function da() {
  5888. setTimeout(function () {
  5889. dZ = dB
  5890. });
  5891. return (dZ = dr.now())
  5892. }
  5893. function c1(b, a) {
  5894. dr.each(a, function (d, c) {
  5895. var h = (dC[d] || []).concat(dC["*"]),
  5896. g = 0,
  5897. f = h.length;
  5898. for (; g < f; g++) {
  5899. if (h[g].call(b, d, c)) {
  5900. return
  5901. }
  5902. }
  5903. })
  5904. }
  5905. function cl(l, f, g) {
  5906. var c,
  5907. b,
  5908. j = 0,
  5909. h = ck.length,
  5910. m = dr.Deferred().always(function () {
  5911. delete a.elem
  5912. }),
  5913. a = function () {
  5914. if (b) {
  5915. return false
  5916. }
  5917. var s = dZ || da(),
  5918. o = Math.max(0, k.startTime + k.duration - s),
  5919. n = o / k.duration || 0,
  5920. p = 1 - n,
  5921. r = 0,
  5922. q = k.tweens.length;
  5923. for (; r < q; r++) {
  5924. k.tweens[r].run(p)
  5925. }
  5926. m.notifyWith(l, [k, p, o]);
  5927. if (p < 1 && q) {
  5928. return o
  5929. } else {
  5930. m.resolveWith(l, [k]);
  5931. return false
  5932. }
  5933. },
  5934. k = m.promise({
  5935. elem : l,
  5936. props : dr.extend({}, f),
  5937. opts : dr.extend(true, {
  5938. specialEasing : {}
  5939.  
  5940. }, g),
  5941. originalProperties : f,
  5942. originalOptions : g,
  5943. startTime : dZ || da(),
  5944. duration : g.duration,
  5945. tweens : [],
  5946. createTween : function (o, p) {
  5947. var n = dr.Tween(l, k.opts, o, p, k.opts.specialEasing[o] || k.opts.easing);
  5948. k.tweens.push(n);
  5949. return n
  5950. },
  5951. stop : function (p) {
  5952. var o = 0,
  5953. n = p ? k.tweens.length : 0;
  5954. if (b) {
  5955. return this
  5956. }
  5957. b = true;
  5958. for (; o < n; o++) {
  5959. k.tweens[o].run(1)
  5960. }
  5961. if (p) {
  5962. m.resolveWith(l, [k, p])
  5963. } else {
  5964. m.rejectWith(l, [k, p])
  5965. }
  5966. return this
  5967. }
  5968. }),
  5969. d = k.props;
  5970. eC(d, k.opts.specialEasing);
  5971. for (; j < h; j++) {
  5972. c = ck[j].call(k, l, d, k.opts);
  5973. if (c) {
  5974. return c
  5975. }
  5976. }
  5977. c1(k, d);
  5978. if (dr.isFunction(k.opts.start)) {
  5979. k.opts.start.call(l, k)
  5980. }
  5981. dr.fx.timer(dr.extend(a, {
  5982. elem : l,
  5983. anim : k,
  5984. queue : k.opts.queue
  5985. }));
  5986. return k.progress(k.opts.progress).done(k.opts.done, k.opts.complete).fail(k.opts.fail).always(k.opts.always)
  5987. }
  5988. function eC(f, c) {
  5989. var b,
  5990. g,
  5991. h,
  5992. d,
  5993. a;
  5994. for (h in f) {
  5995. g = dr.camelCase(h);
  5996. d = c[g];
  5997. b = f[h];
  5998. if (dr.isArray(b)) {
  5999. d = b[1];
  6000. b = f[h] = b[0]
  6001. }
  6002. if (h !== g) {
  6003. f[g] = b;
  6004. delete f[h]
  6005. }
  6006. a = dr.cssHooks[g];
  6007. if (a && "expand" in a) {
  6008. b = a.expand(b);
  6009. delete f[g];
  6010. for (h in b) {
  6011. if (!(h in f)) {
  6012. f[h] = b[h];
  6013. c[h] = d
  6014. }
  6015. }
  6016. } else {
  6017. c[g] = d
  6018. }
  6019. }
  6020. }
  6021. dr.Animation = dr.extend(cl, {
  6022. tweener : function (c, b) {
  6023. if (dr.isFunction(c)) {
  6024. b = c;
  6025. c = ["*"]
  6026. } else {
  6027. c = c.split(" ")
  6028. }
  6029. var d,
  6030. a = 0,
  6031. f = c.length;
  6032. for (; a < f; a++) {
  6033. d = c[a];
  6034. dC[d] = dC[d] || [];
  6035. dC[d].unshift(b)
  6036. }
  6037. },
  6038. prefilter : function (b, a) {
  6039. if (a) {
  6040. ck.unshift(b)
  6041. } else {
  6042. ck.push(b)
  6043. }
  6044. }
  6045. });
  6046. function cL(p, c, g) {
  6047. var d,
  6048. k,
  6049. j,
  6050. r,
  6051. q,
  6052. a,
  6053. s,
  6054. l,
  6055. h,
  6056. o = this,
  6057. b = p.style,
  6058. f = {},
  6059. n = [],
  6060. m = p.nodeType && dv(p);
  6061. if (!g.queue) {
  6062. l = dr._queueHooks(p, "fx");
  6063. if (l.unqueued == null) {
  6064. l.unqueued = 0;
  6065. h = l.empty.fire;
  6066. l.empty.fire = function () {
  6067. if (!l.unqueued) {
  6068. h()
  6069. }
  6070. }
  6071. }
  6072. l.unqueued++;
  6073. o.always(function () {
  6074. o.always(function () {
  6075. l.unqueued--;
  6076. if (!dr.queue(p, "fx").length) {
  6077. l.empty.fire()
  6078. }
  6079. })
  6080. })
  6081. }
  6082. if (p.nodeType === 1 && ("height" in c || "width" in c)) {
  6083. g.overflow = [b.overflow, b.overflowX, b.overflowY];
  6084. if (dr.css(p, "display") === "inline" && dr.css(p, "float") === "none") {
  6085. if (!dr.support.inlineBlockNeedsLayout || cZ(p.nodeName) === "inline") {
  6086. b.display = "inline-block"
  6087. } else {
  6088. b.zoom = 1
  6089. }
  6090. }
  6091. }
  6092. if (g.overflow) {
  6093. b.overflow = "hidden";
  6094. if (!dr.support.shrinkWrapBlocks) {
  6095. o.always(function () {
  6096. b.overflow = g.overflow[0];
  6097. b.overflowX = g.overflow[1];
  6098. b.overflowY = g.overflow[2]
  6099. })
  6100. }
  6101. }
  6102. for (k in c) {
  6103. r = c[k];
  6104. if (b8.exec(r)) {
  6105. delete c[k];
  6106. a = a || r === "toggle";
  6107. if (r === (m ? "hide" : "show")) {
  6108. continue
  6109. }
  6110. n.push(k)
  6111. }
  6112. }
  6113. j = n.length;
  6114. if (j) {
  6115. q = dr._data(p, "fxshow") || dr._data(p, "fxshow", {});
  6116. if ("hidden" in q) {
  6117. m = q.hidden
  6118. }
  6119. if (a) {
  6120. q.hidden = !m
  6121. }
  6122. if (m) {
  6123. dr(p).show()
  6124. } else {
  6125. o.done(function () {
  6126. dr(p).hide()
  6127. })
  6128. }
  6129. o.done(function () {
  6130. var t;
  6131. dr._removeData(p, "fxshow");
  6132. for (t in f) {
  6133. dr.style(p, t, f[t])
  6134. }
  6135. });
  6136. for (k = 0; k < j; k++) {
  6137. d = n[k];
  6138. s = o.createTween(d, m ? q[d] : 0);
  6139. f[d] = q[d] || dr.style(p, d);
  6140. if (!(d in q)) {
  6141. q[d] = s.start;
  6142. if (m) {
  6143. s.end = s.start;
  6144. s.start = d === "width" || d === "height" ? 1 : 0
  6145. }
  6146. }
  6147. }
  6148. }
  6149. }
  6150. function dE(a, d, c, f, b) {
  6151. return new dE.prototype.init(a, d, c, f, b)
  6152. }
  6153. dr.Tween = dE;
  6154. dE.prototype = {
  6155. constructor : dE,
  6156. init : function (a, f, d, g, c, b) {
  6157. this.elem = a;
  6158. this.prop = d;
  6159. this.easing = c || "swing";
  6160. this.options = f;
  6161. this.start = this.now = this.cur();
  6162. this.end = g;
  6163. this.unit = b || (dr.cssNumber[d] ? "" : "px")
  6164. },
  6165. cur : function () {
  6166. var a = dE.propHooks[this.prop];
  6167. return a && a.get ? a.get(this) : dE.propHooks._default.get(this)
  6168. },
  6169. run : function (c) {
  6170. var b,
  6171. a = dE.propHooks[this.prop];
  6172. if (this.options.duration) {
  6173. this.pos = b = dr.easing[this.easing](c, this.options.duration * c, 0, 1, this.options.duration)
  6174. } else {
  6175. this.pos = b = c
  6176. }
  6177. this.now = (this.end - this.start) * b + this.start;
  6178. if (this.options.step) {
  6179. this.options.step.call(this.elem, this.now, this)
  6180. }
  6181. if (a && a.set) {
  6182. a.set(this)
  6183. } else {
  6184. dE.propHooks._default.set(this)
  6185. }
  6186. return this
  6187. }
  6188. };
  6189. dE.prototype.init.prototype = dE.prototype;
  6190. dE.propHooks = {
  6191. _default : {
  6192. get : function (a) {
  6193. var b;
  6194. if (a.elem[a.prop] != null && (!a.elem.style || a.elem.style[a.prop] == null)) {
  6195. return a.elem[a.prop]
  6196. }
  6197. b = dr.css(a.elem, a.prop, "");
  6198. return !b || b === "auto" ? 0 : b
  6199. },
  6200. set : function (a) {
  6201. if (dr.fx.step[a.prop]) {
  6202. dr.fx.step[a.prop](a)
  6203. } else {
  6204. if (a.elem.style && (a.elem.style[dr.cssProps[a.prop]] != null || dr.cssHooks[a.prop])) {
  6205. dr.style(a.elem, a.prop, a.now + a.unit)
  6206. } else {
  6207. a.elem[a.prop] = a.now
  6208. }
  6209. }
  6210. }
  6211. }
  6212. };
  6213. dE.propHooks.scrollTop = dE.propHooks.scrollLeft = {
  6214. set : function (a) {
  6215. if (a.elem.nodeType && a.elem.parentNode) {
  6216. a.elem[a.prop] = a.now
  6217. }
  6218. }
  6219. };
  6220. dr.each(["toggle", "show", "hide"], function (a, c) {
  6221. var b = dr.fn[c];
  6222. dr.fn[c] = function (d, f, g) {
  6223. return d == null || typeof d === "boolean" ? b.apply(this, arguments) : this.animate(dX(c, true), d, f, g)
  6224. }
  6225. });
  6226. dr.fn.extend({
  6227. fadeTo : function (d, c, a, b) {
  6228. return this.filter(dv).css("opacity", 0).show().end().animate({
  6229. opacity : c
  6230. }, d, a, b)
  6231. },
  6232. animate : function (c, b, h, f) {
  6233. var g = dr.isEmptyObject(c),
  6234. d = dr.speed(b, h, f),
  6235. a = function () {
  6236. var j = cl(this, dr.extend({}, c), d);
  6237. a.finish = function () {
  6238. j.stop(true)
  6239. };
  6240. if (g || dr._data(this, "finish")) {
  6241. j.stop(true)
  6242. }
  6243. };
  6244. a.finish = a;
  6245. return g || d.queue === false ? this.each(a) : this.queue(d.queue, a)
  6246. },
  6247. stop : function (c, b, a) {
  6248. var d = function (g) {
  6249. var f = g.stop;
  6250. delete g.stop;
  6251. f(a)
  6252. };
  6253. if (typeof c !== "string") {
  6254. a = b;
  6255. b = c;
  6256. c = dB
  6257. }
  6258. if (b && c !== false) {
  6259. this.queue(c || "fx", [])
  6260. }
  6261. return this.each(function () {
  6262. var h = true,
  6263. g = c != null && c + "queueHooks",
  6264. f = dr.timers,
  6265. j = dr._data(this);
  6266. if (g) {
  6267. if (j[g] && j[g].stop) {
  6268. d(j[g])
  6269. }
  6270. } else {
  6271. for (g in j) {
  6272. if (j[g] && j[g].stop && cF.test(g)) {
  6273. d(j[g])
  6274. }
  6275. }
  6276. }
  6277. for (g = f.length; g--; ) {
  6278. if (f[g].elem === this && (c == null || f[g].queue === c)) {
  6279. f[g].anim.stop(a);
  6280. h = false;
  6281. f.splice(g, 1)
  6282. }
  6283. }
  6284. if (h || !a) {
  6285. dr.dequeue(this, c)
  6286. }
  6287. })
  6288. },
  6289. finish : function (a) {
  6290. if (a !== false) {
  6291. a = a || "fx"
  6292. }
  6293. return this.each(function () {
  6294. var g,
  6295. b = dr._data(this),
  6296. d = b[a + "queue"],
  6297. h = b[a + "queueHooks"],
  6298. c = dr.timers,
  6299. f = d ? d.length : 0;
  6300. b.finish = true;
  6301. dr.queue(this, a, []);
  6302. if (h && h.cur && h.cur.finish) {
  6303. h.cur.finish.call(this)
  6304. }
  6305. for (g = c.length; g--; ) {
  6306. if (c[g].elem === this && c[g].queue === a) {
  6307. c[g].anim.stop(true);
  6308. c.splice(g, 1)
  6309. }
  6310. }
  6311. for (g = 0; g < f; g++) {
  6312. if (d[g] && d[g].finish) {
  6313. d[g].finish.call(this)
  6314. }
  6315. }
  6316. delete b.finish
  6317. })
  6318. }
  6319. });
  6320. function dX(d, f) {
  6321. var c,
  6322. b = {
  6323. height : d
  6324. },
  6325. a = 0;
  6326. f = f ? 1 : 0;
  6327. for (; a < 4; a += 2 - f) {
  6328. c = cX[a];
  6329. b["margin" + c] = b["padding" + c] = d
  6330. }
  6331. if (f) {
  6332. b.opacity = b.width = d
  6333. }
  6334. return b
  6335. }
  6336. dr.each({
  6337. slideDown : dX("show"),
  6338. slideUp : dX("hide"),
  6339. slideToggle : dX("toggle"),
  6340. fadeIn : {
  6341. opacity : "show"
  6342. },
  6343. fadeOut : {
  6344. opacity : "hide"
  6345. },
  6346. fadeToggle : {
  6347. opacity : "toggle"
  6348. }
  6349. }, function (b, a) {
  6350. dr.fn[b] = function (c, d, f) {
  6351. return this.animate(a, c, d, f)
  6352. }
  6353. });
  6354. dr.speed = function (c, b, a) {
  6355. var d = c && typeof c === "object" ? dr.extend({}, c) : {
  6356. complete : a || !a && b || dr.isFunction(c) && c,
  6357. duration : c,
  6358. easing : a && b || b && !dr.isFunction(b) && b
  6359. };
  6360. d.duration = dr.fx.off ? 0 : typeof d.duration === "number" ? d.duration : d.duration in dr.fx.speeds ? dr.fx.speeds[d.duration] : dr.fx.speeds._default;
  6361. if (d.queue == null || d.queue === true) {
  6362. d.queue = "fx"
  6363. }
  6364. d.old = d.complete;
  6365. d.complete = function () {
  6366. if (dr.isFunction(d.old)) {
  6367. d.old.call(this)
  6368. }
  6369. if (d.queue) {
  6370. dr.dequeue(this, d.queue)
  6371. }
  6372. };
  6373. return d
  6374. };
  6375. dr.easing = {
  6376. linear : function (a) {
  6377. return a
  6378. },
  6379. swing : function (a) {
  6380. return 0.5 - Math.cos(a * Math.PI) / 2
  6381. }
  6382. };
  6383. dr.timers = [];
  6384. dr.fx = dE.prototype.init;
  6385. dr.fx.tick = function () {
  6386. var a,
  6387. c = dr.timers,
  6388. b = 0;
  6389. dZ = dr.now();
  6390. for (; b < c.length; b++) {
  6391. a = c[b];
  6392. if (!a() && c[b] === a) {
  6393. c.splice(b--, 1)
  6394. }
  6395. }
  6396. if (!c.length) {
  6397. dr.fx.stop()
  6398. }
  6399. dZ = dB
  6400. };
  6401. dr.fx.timer = function (a) {
  6402. if (a() && dr.timers.push(a)) {
  6403. dr.fx.start()
  6404. }
  6405. };
  6406. dr.fx.interval = 13;
  6407. dr.fx.start = function () {
  6408. if (!dH) {
  6409. dH = setInterval(dr.fx.tick, dr.fx.interval)
  6410. }
  6411. };
  6412. dr.fx.stop = function () {
  6413. clearInterval(dH);
  6414. dH = null
  6415. };
  6416. dr.fx.speeds = {
  6417. slow : 600,
  6418. fast : 200,
  6419. _default : 400
  6420. };
  6421. dr.fx.step = {};
  6422. if (dr.expr && dr.expr.filters) {
  6423. dr.expr.filters.animated = function (a) {
  6424. return dr.grep(dr.timers, function (b) {
  6425. return a === b.elem
  6426. }).length
  6427. }
  6428. }
  6429. dr.fn.offset = function (d) {
  6430. if (arguments.length) {
  6431. return d === dB ? this : this.each(function (h) {
  6432. dr.offset.setOffset(this, d, h)
  6433. })
  6434. }
  6435. var g,
  6436. b,
  6437. c = {
  6438. top : 0,
  6439. left : 0
  6440. },
  6441. f = this[0],
  6442. a = f && f.ownerDocument;
  6443. if (!a) {
  6444. return
  6445. }
  6446. g = a.documentElement;
  6447. if (!dr.contains(g, f)) {
  6448. return c
  6449. }
  6450. if (typeof f.getBoundingClientRect !== dk) {
  6451. c = f.getBoundingClientRect()
  6452. }
  6453. b = dL(a);
  6454. return {
  6455. top : c.top + (b.pageYOffset || g.scrollTop) - (g.clientTop || 0),
  6456. left : c.left + (b.pageXOffset || g.scrollLeft) - (g.clientLeft || 0)
  6457. }
  6458. };
  6459. dr.offset = {
  6460. setOffset : function (f, c, d) {
  6461. var b = dr.css(f, "position");
  6462. if (b === "static") {
  6463. f.style.position = "relative"
  6464. }
  6465. var l = dr(f),
  6466. j = l.offset(),
  6467. n = dr.css(f, "top"),
  6468. o = dr.css(f, "left"),
  6469. m = (b === "absolute" || b === "fixed") && dr.inArray("auto", [n, o]) > -1,
  6470. a = {},
  6471. h = {},
  6472. g,
  6473. k;
  6474. if (m) {
  6475. h = l.position();
  6476. g = h.top;
  6477. k = h.left
  6478. } else {
  6479. g = parseFloat(n) || 0;
  6480. k = parseFloat(o) || 0
  6481. }
  6482. if (dr.isFunction(c)) {
  6483. c = c.call(f, d, j)
  6484. }
  6485. if (c.top != null) {
  6486. a.top = (c.top - j.top) + g
  6487. }
  6488. if (c.left != null) {
  6489. a.left = (c.left - j.left) + k
  6490. }
  6491. if ("using" in c) {
  6492. c.using.call(f, a)
  6493. } else {
  6494. l.css(a)
  6495. }
  6496. }
  6497. };
  6498. dr.fn.extend({
  6499. position : function () {
  6500. if (!this[0]) {
  6501. return
  6502. }
  6503. var d,
  6504. a,
  6505. c = {
  6506. top : 0,
  6507. left : 0
  6508. },
  6509. b = this[0];
  6510. if (dr.css(b, "position") === "fixed") {
  6511. a = b.getBoundingClientRect()
  6512. } else {
  6513. d = this.offsetParent();
  6514. a = this.offset();
  6515. if (!dr.nodeName(d[0], "html")) {
  6516. c = d.offset()
  6517. }
  6518. c.top += dr.css(d[0], "borderTopWidth", true);
  6519. c.left += dr.css(d[0], "borderLeftWidth", true)
  6520. }
  6521. return {
  6522. top : a.top - c.top - dr.css(b, "marginTop", true),
  6523. left : a.left - c.left - dr.css(b, "marginLeft", true)
  6524. }
  6525. },
  6526. offsetParent : function () {
  6527. return this.map(function () {
  6528. var a = this.offsetParent || cG.documentElement;
  6529. while (a && (!dr.nodeName(a, "html") && dr.css(a, "position") === "static")) {
  6530. a = a.offsetParent
  6531. }
  6532. return a || cG.documentElement
  6533. })
  6534. }
  6535. });
  6536. dr.each({
  6537. scrollLeft : "pageXOffset",
  6538. scrollTop : "pageYOffset"
  6539. }, function (b, a) {
  6540. var c = /Y/.test(a);
  6541. dr.fn[b] = function (d) {
  6542. return dr.access(this, function (j, h, g) {
  6543. var f = dL(j);
  6544. if (g === dB) {
  6545. return f ? (a in f) ? f[a] : f.document.documentElement[h] : j[h]
  6546. }
  6547. if (f) {
  6548. f.scrollTo(!c ? g : dr(f).scrollLeft(), c ? g : dr(f).scrollTop())
  6549. } else {
  6550. j[h] = g
  6551. }
  6552. }, b, d, arguments.length, null)
  6553. }
  6554. });
  6555. function dL(a) {
  6556. return dr.isWindow(a) ? a : a.nodeType === 9 ? a.defaultView || a.parentWindow : false
  6557. }
  6558. dr.each({
  6559. Height : "height",
  6560. Width : "width"
  6561. }, function (b, a) {
  6562. dr.each({
  6563. padding : "inner" + b,
  6564. content : a,
  6565. "" : "outer" + b
  6566. }, function (d, c) {
  6567. dr.fn[c] = function (g, f) {
  6568. var j = arguments.length && (d || typeof g !== "boolean"),
  6569. h = d || (g === true || f === true ? "margin" : "border");
  6570. return dr.access(this, function (n, m, l) {
  6571. var k;
  6572. if (dr.isWindow(n)) {
  6573. return n.document.documentElement["client" + b]
  6574. }
  6575. if (n.nodeType === 9) {
  6576. k = n.documentElement;
  6577. return Math.max(n.body["scroll" + b], k["scroll" + b], n.body["offset" + b], k["offset" + b], k["client" + b])
  6578. }
  6579. return l === dB ? dr.css(n, m, h) : dr.style(n, m, l, h)
  6580. }, a, j ? g : dB, j, null)
  6581. }
  6582. })
  6583. });
  6584. dx.jQuery = dx.$ = dr;
  6585. if (typeof define === "function" && define.amd && define.amd.jQuery) {
  6586. define("jquery", [], function () {
  6587. return dr
  6588. })
  6589. }
  6590. })(window);
  6591. (function (h, l) {
  6592. var k = 0,
  6593. m = /^ui-id-\d+$/;
  6594. h.ui = h.ui || {};
  6595. h.extend(h.ui, {
  6596. version : "1.10.2",
  6597. keyCode : {
  6598. BACKSPACE : 8,
  6599. COMMA : 188,
  6600. DELETE : 46,
  6601. DOWN : 40,
  6602. END : 35,
  6603. ENTER : 13,
  6604. ESCAPE : 27,
  6605. HOME : 36,
  6606. LEFT : 37,
  6607. NUMPAD_ADD : 107,
  6608. NUMPAD_DECIMAL : 110,
  6609. NUMPAD_DIVIDE : 111,
  6610. NUMPAD_ENTER : 108,
  6611. NUMPAD_MULTIPLY : 106,
  6612. NUMPAD_SUBTRACT : 109,
  6613. PAGE_DOWN : 34,
  6614. PAGE_UP : 33,
  6615. PERIOD : 190,
  6616. RIGHT : 39,
  6617. SPACE : 32,
  6618. TAB : 9,
  6619. UP : 38
  6620. }
  6621. });
  6622. h.fn.extend({
  6623. focus : (function (a) {
  6624. return function (c, b) {
  6625. return typeof c === "number" ? this.each(function () {
  6626. var d = this;
  6627. setTimeout(function () {
  6628. h(d).focus();
  6629. if (b) {
  6630. b.call(d)
  6631. }
  6632. }, c)
  6633. }) : a.apply(this, arguments)
  6634. }
  6635. })(h.fn.focus),
  6636. scrollParent : function () {
  6637. var a;
  6638. if ((h.ui.ie && (/(static|relative)/).test(this.css("position"))) || (/absolute/).test(this.css("position"))) {
  6639. a = this.parents().filter(function () {
  6640. return (/(relative|absolute|fixed)/).test(h.css(this, "position")) && (/(auto|scroll)/).test(h.css(this, "overflow") + h.css(this, "overflow-y") + h.css(this, "overflow-x"))
  6641. }).eq(0)
  6642. } else {
  6643. a = this.parents().filter(function () {
  6644. return (/(auto|scroll)/).test(h.css(this, "overflow") + h.css(this, "overflow-y") + h.css(this, "overflow-x"))
  6645. }).eq(0)
  6646. }
  6647. return (/fixed/).test(this.css("position")) || !a.length ? h(document) : a
  6648. },
  6649. zIndex : function (a) {
  6650. if (a !== l) {
  6651. return this.css("zIndex", a)
  6652. }
  6653. if (this.length) {
  6654. var d = h(this[0]),
  6655. c,
  6656. b;
  6657. while (d.length && d[0] !== document) {
  6658. c = d.css("position");
  6659. if (c === "absolute" || c === "relative" || c === "fixed") {
  6660. b = parseInt(d.css("zIndex"), 10);
  6661. if (!isNaN(b) && b !== 0) {
  6662. return b
  6663. }
  6664. }
  6665. d = d.parent()
  6666. }
  6667. }
  6668. return 0
  6669. },
  6670. uniqueId : function () {
  6671. return this.each(function () {
  6672. if (!this.id) {
  6673. this.id = "ui-id-" + (++k)
  6674. }
  6675. })
  6676. },
  6677. removeUniqueId : function () {
  6678. return this.each(function () {
  6679. if (m.test(this.id)) {
  6680. h(this).removeAttr("id")
  6681. }
  6682. })
  6683. }
  6684. });
  6685. function g(f, d) {
  6686. var c,
  6687. b,
  6688. e,
  6689. a = f.nodeName.toLowerCase();
  6690. if ("area" === a) {
  6691. c = f.parentNode;
  6692. b = c.name;
  6693. if (!f.href || !b || c.nodeName.toLowerCase() !== "map") {
  6694. return false
  6695. }
  6696. e = h("img[usemap=#" + b + "]")[0];
  6697. return !!e && j(e)
  6698. }
  6699. return (/input|select|textarea|button|object/.test(a) ? !f.disabled : "a" === a ? f.href || d : d) && j(f)
  6700. }
  6701. function j(a) {
  6702. return h.expr.filters.visible(a) && !h(a).parents().addBack().filter(function () {
  6703. return h.css(this, "visibility") === "hidden"
  6704. }).length
  6705. }
  6706. h.extend(h.expr[":"], {
  6707. data : h.expr.createPseudo ? h.expr.createPseudo(function (a) {
  6708. return function (b) {
  6709. return !!h.data(b, a)
  6710. }
  6711. }) : function (c, b, a) {
  6712. return !!h.data(c, a[3])
  6713. },
  6714. focusable : function (a) {
  6715. return g(a, !isNaN(h.attr(a, "tabindex")))
  6716. },
  6717. tabbable : function (c) {
  6718. var a = h.attr(c, "tabindex"),
  6719. b = isNaN(a);
  6720. return (b || a >= 0) && g(c, !b)
  6721. }
  6722. });
  6723. if (!h("<a>").outerWidth(1).jquery) {
  6724. h.each(["Width", "Height"], function (f, e) {
  6725. var b = e === "Width" ? ["Left", "Right"] : ["Top", "Bottom"],
  6726. a = e.toLowerCase(),
  6727. d = {
  6728. innerWidth : h.fn.innerWidth,
  6729. innerHeight : h.fn.innerHeight,
  6730. outerWidth : h.fn.outerWidth,
  6731. outerHeight : h.fn.outerHeight
  6732. };
  6733. function c(t, r, u, s) {
  6734. h.each(b, function () {
  6735. r -= parseFloat(h.css(t, "padding" + this)) || 0;
  6736. if (u) {
  6737. r -= parseFloat(h.css(t, "border" + this + "Width")) || 0
  6738. }
  6739. if (s) {
  6740. r -= parseFloat(h.css(t, "margin" + this)) || 0
  6741. }
  6742. });
  6743. return r
  6744. }
  6745. h.fn["inner" + e] = function (o) {
  6746. if (o === l) {
  6747. return d["inner" + e].call(this)
  6748. }
  6749. return this.each(function () {
  6750. h(this).css(a, c(this, o) + "px")
  6751. })
  6752. };
  6753. h.fn["outer" + e] = function (p, q) {
  6754. if (typeof p !== "number") {
  6755. return d["outer" + e].call(this, p)
  6756. }
  6757. return this.each(function () {
  6758. h(this).css(a, c(this, p, true, q) + "px")
  6759. })
  6760. }
  6761. })
  6762. }
  6763. if (!h.fn.addBack) {
  6764. h.fn.addBack = function (a) {
  6765. return this.add(a == null ? this.prevObject : this.prevObject.filter(a))
  6766. }
  6767. }
  6768. if (h("<a>").data("a-b", "a").removeData("a-b").data("a-b")) {
  6769. h.fn.removeData = (function (a) {
  6770. return function (b) {
  6771. if (arguments.length) {
  6772. return a.call(this, h.camelCase(b))
  6773. } else {
  6774. return a.call(this)
  6775. }
  6776. }
  6777. })(h.fn.removeData)
  6778. }
  6779. h.ui.ie = !!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());
  6780. h.support.selectstart = "onselectstart" in document.createElement("div");
  6781. h.fn.extend({
  6782. disableSelection : function () {
  6783. return this.bind((h.support.selectstart ? "selectstart" : "mousedown") + ".ui-disableSelection", function (a) {
  6784. a.preventDefault()
  6785. })
  6786. },
  6787. enableSelection : function () {
  6788. return this.unbind(".ui-disableSelection")
  6789. }
  6790. });
  6791. h.extend(h.ui, {
  6792. plugin : {
  6793. add : function (d, c, a) {
  6794. var e,
  6795. b = h.ui[d].prototype;
  6796. for (e in a) {
  6797. b.plugins[e] = b.plugins[e] || [];
  6798. b.plugins[e].push([c, a[e]])
  6799. }
  6800. },
  6801. call : function (c, b, e) {
  6802. var d,
  6803. a = c.plugins[b];
  6804. if (!a || !c.element[0].parentNode || c.element[0].parentNode.nodeType === 11) {
  6805. return
  6806. }
  6807. for (d = 0; d < a.length; d++) {
  6808. if (c.options[a[d][0]]) {
  6809. a[d][1].apply(c.element, e)
  6810. }
  6811. }
  6812. }
  6813. },
  6814. hasScroll : function (c, d) {
  6815. if (h(c).css("overflow") === "hidden") {
  6816. return false
  6817. }
  6818. var a = (d && d === "left") ? "scrollLeft" : "scrollTop",
  6819. b = false;
  6820. if (c[a] > 0) {
  6821. return true
  6822. }
  6823. c[a] = 1;
  6824. b = (c[a] > 0);
  6825. c[a] = 0;
  6826. return b
  6827. }
  6828. })
  6829. })(jQuery);
  6830. (function (g, j) {
  6831. var h = 0,
  6832. k = Array.prototype.slice,
  6833. f = g.cleanData;
  6834. g.cleanData = function (b) {
  6835. for (var a = 0, c; (c = b[a]) != null; a++) {
  6836. try {
  6837. g(c).triggerHandler("remove")
  6838. } catch (d) {}
  6839.  
  6840. }
  6841. f(b)
  6842. };
  6843. g.widget = function (d, s, b) {
  6844. var e,
  6845. p,
  6846. q,
  6847. r,
  6848. a = {},
  6849. c = d.split(".")[0];
  6850. d = d.split(".")[1];
  6851. e = c + "-" + d;
  6852. if (!b) {
  6853. b = s;
  6854. s = g.Widget
  6855. }
  6856. g.expr[":"][e.toLowerCase()] = function (l) {
  6857. return !!g.data(l, e)
  6858. };
  6859. g[c] = g[c] || {};
  6860. p = g[c][d];
  6861. q = g[c][d] = function (l, m) {
  6862. if (!this._createWidget) {
  6863. return new q(l, m)
  6864. }
  6865. if (arguments.length) {
  6866. this._createWidget(l, m)
  6867. }
  6868. };
  6869. g.extend(q, p, {
  6870. version : b.version,
  6871. _proto : g.extend({}, b),
  6872. _childConstructors : []
  6873. });
  6874. r = new s();
  6875. r.options = g.widget.extend({}, r.options);
  6876. g.each(b, function (m, l) {
  6877. if (!g.isFunction(l)) {
  6878. a[m] = l;
  6879. return
  6880. }
  6881. a[m] = (function () {
  6882. var o = function () {
  6883. return s.prototype[m].apply(this, arguments)
  6884. },
  6885. n = function (u) {
  6886. return s.prototype[m].apply(this, u)
  6887. };
  6888. return function () {
  6889. var y = this._super,
  6890. x = this._superApply,
  6891. w;
  6892. this._super = o;
  6893. this._superApply = n;
  6894. w = l.apply(this, arguments);
  6895. this._super = y;
  6896. this._superApply = x;
  6897. return w
  6898. }
  6899. })()
  6900. });
  6901. q.prototype = g.widget.extend(r, {
  6902. widgetEventPrefix : p ? r.widgetEventPrefix : d
  6903. }, a, {
  6904. constructor : q,
  6905. namespace : c,
  6906. widgetName : d,
  6907. widgetFullName : e
  6908. });
  6909. if (p) {
  6910. g.each(p._childConstructors, function (l, n) {
  6911. var m = n.prototype;
  6912. g.widget(m.namespace + "." + m.widgetName, q, n._proto)
  6913. });
  6914. delete p._childConstructors
  6915. } else {
  6916. s._childConstructors.push(q)
  6917. }
  6918. g.widget.bridge(d, q)
  6919. };
  6920. g.widget.extend = function (b) {
  6921. var m = k.call(arguments, 1),
  6922. e = 0,
  6923. d = m.length,
  6924. c,
  6925. a;
  6926. for (; e < d; e++) {
  6927. for (c in m[e]) {
  6928. a = m[e][c];
  6929. if (m[e].hasOwnProperty(c) && a !== j) {
  6930. if (g.isPlainObject(a)) {
  6931. b[c] = g.isPlainObject(b[c]) ? g.widget.extend({}, b[c], a) : g.widget.extend({}, a)
  6932. } else {
  6933. b[c] = a
  6934. }
  6935. }
  6936. }
  6937. }
  6938. return b
  6939. };
  6940. g.widget.bridge = function (b, a) {
  6941. var c = a.prototype.widgetFullName || b;
  6942. g.fn[b] = function (e) {
  6943. var n = typeof e === "string",
  6944. o = k.call(arguments, 1),
  6945. d = this;
  6946. e = !n && o.length ? g.widget.extend.apply(null, [e].concat(o)) : e;
  6947. if (n) {
  6948. this.each(function () {
  6949. var l,
  6950. m = g.data(this, c);
  6951. if (!m) {
  6952. return g.error("cannot call methods on " + b + " prior to initialization; attempted to call method '" + e + "'")
  6953. }
  6954. if (!g.isFunction(m[e]) || e.charAt(0) === "_") {
  6955. return g.error("no such method '" + e + "' for " + b + " widget instance")
  6956. }
  6957. l = m[e].apply(m, o);
  6958. if (l !== m && l !== j) {
  6959. d = l && l.jquery ? d.pushStack(l.get()) : l;
  6960. return false
  6961. }
  6962. })
  6963. } else {
  6964. this.each(function () {
  6965. var l = g.data(this, c);
  6966. if (l) {
  6967. l.option(e || {})._init()
  6968. } else {
  6969. g.data(this, c, new a(e, this))
  6970. }
  6971. })
  6972. }
  6973. return d
  6974. }
  6975. };
  6976. g.Widget = function () {};
  6977. g.Widget._childConstructors = [];
  6978. g.Widget.prototype = {
  6979. widgetName : "widget",
  6980. widgetEventPrefix : "",
  6981. defaultElement : "<div>",
  6982. options : {
  6983. disabled : false,
  6984. create : null
  6985. },
  6986. _createWidget : function (a, b) {
  6987. b = g(b || this.defaultElement || this)[0];
  6988. this.element = g(b);
  6989. this.uuid = h++;
  6990. this.eventNamespace = "." + this.widgetName + this.uuid;
  6991. this.options = g.widget.extend({}, this.options, this._getCreateOptions(), a);
  6992. this.bindings = g();
  6993. this.hoverable = g();
  6994. this.focusable = g();
  6995. if (b !== this) {
  6996. g.data(b, this.widgetFullName, this);
  6997. this._on(true, this.element, {
  6998. remove : function (c) {
  6999. if (c.target === b) {
  7000. this.destroy()
  7001. }
  7002. }
  7003. });
  7004. this.document = g(b.style ? b.ownerDocument : b.document || b);
  7005. this.window = g(this.document[0].defaultView || this.document[0].parentWindow)
  7006. }
  7007. this._create();
  7008. this._trigger("create", null, this._getCreateEventData());
  7009. this._init()
  7010. },
  7011. _getCreateOptions : g.noop,
  7012. _getCreateEventData : g.noop,
  7013. _create : g.noop,
  7014. _init : g.noop,
  7015. destroy : function () {
  7016. this._destroy();
  7017. this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(g.camelCase(this.widgetFullName));
  7018. this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName + "-disabled ui-state-disabled");
  7019. this.bindings.unbind(this.eventNamespace);
  7020. this.hoverable.removeClass("ui-state-hover");
  7021. this.focusable.removeClass("ui-state-focus")
  7022. },
  7023. _destroy : g.noop,
  7024. widget : function () {
  7025. return this.element
  7026. },
  7027. option : function (d, a) {
  7028. var c = d,
  7029. b,
  7030. m,
  7031. e;
  7032. if (arguments.length === 0) {
  7033. return g.widget.extend({}, this.options)
  7034. }
  7035. if (typeof d === "string") {
  7036. c = {};
  7037. b = d.split(".");
  7038. d = b.shift();
  7039. if (b.length) {
  7040. m = c[d] = g.widget.extend({}, this.options[d]);
  7041. for (e = 0; e < b.length - 1; e++) {
  7042. m[b[e]] = m[b[e]] || {};
  7043. m = m[b[e]]
  7044. }
  7045. d = b.pop();
  7046. if (a === j) {
  7047. return m[d] === j ? null : m[d]
  7048. }
  7049. m[d] = a
  7050. } else {
  7051. if (a === j) {
  7052. return this.options[d] === j ? null : this.options[d]
  7053. }
  7054. c[d] = a
  7055. }
  7056. }
  7057. this._setOptions(c);
  7058. return this
  7059. },
  7060. _setOptions : function (a) {
  7061. var b;
  7062. for (b in a) {
  7063. this._setOption(b, a[b])
  7064. }
  7065. return this
  7066. },
  7067. _setOption : function (b, a) {
  7068. this.options[b] = a;
  7069. if (b === "disabled") {
  7070. this.widget().toggleClass(this.widgetFullName + "-disabled ui-state-disabled", !!a).attr("aria-disabled", a);
  7071. this.hoverable.removeClass("ui-state-hover");
  7072. this.focusable.removeClass("ui-state-focus")
  7073. }
  7074. return this
  7075. },
  7076. enable : function () {
  7077. return this._setOption("disabled", false)
  7078. },
  7079. disable : function () {
  7080. return this._setOption("disabled", true)
  7081. },
  7082. _on : function (a, d, c) {
  7083. var e,
  7084. b = this;
  7085. if (typeof a !== "boolean") {
  7086. c = d;
  7087. d = a;
  7088. a = false
  7089. }
  7090. if (!c) {
  7091. c = d;
  7092. d = this.element;
  7093. e = this.widget()
  7094. } else {
  7095. d = e = g(d);
  7096. this.bindings = this.bindings.add(d)
  7097. }
  7098. g.each(c, function (s, w) {
  7099. function v() {
  7100. if (!a && (b.options.disabled === true || g(this).hasClass("ui-state-disabled"))) {
  7101. return
  7102. }
  7103. return (typeof w === "string" ? b[w] : w).apply(b, arguments)
  7104. }
  7105. if (typeof w !== "string") {
  7106. v.guid = w.guid = w.guid || v.guid || g.guid++
  7107. }
  7108. var u = s.match(/^(\w+)\s*(.*)$/),
  7109. r = u[1] + b.eventNamespace,
  7110. t = u[2];
  7111. if (t) {
  7112. e.delegate(t, r, v)
  7113. } else {
  7114. d.bind(r, v)
  7115. }
  7116. })
  7117. },
  7118. _off : function (b, a) {
  7119. a = (a || "").split(" ").join(this.eventNamespace + " ") + this.eventNamespace;
  7120. b.unbind(a).undelegate(a)
  7121. },
  7122. _delay : function (c, d) {
  7123. function b() {
  7124. return (typeof c === "string" ? a[c] : c).apply(a, arguments)
  7125. }
  7126. var a = this;
  7127. return setTimeout(b, d || 0)
  7128. },
  7129. _hoverable : function (a) {
  7130. this.hoverable = this.hoverable.add(a);
  7131. this._on(a, {
  7132. mouseenter : function (b) {
  7133. g(b.currentTarget).addClass("ui-state-hover")
  7134. },
  7135. mouseleave : function (b) {
  7136. g(b.currentTarget).removeClass("ui-state-hover")
  7137. }
  7138. })
  7139. },
  7140. _focusable : function (a) {
  7141. this.focusable = this.focusable.add(a);
  7142. this._on(a, {
  7143. focusin : function (b) {
  7144. g(b.currentTarget).addClass("ui-state-focus")
  7145. },
  7146. focusout : function (b) {
  7147. g(b.currentTarget).removeClass("ui-state-focus")
  7148. }
  7149. })
  7150. },
  7151. _trigger : function (a, d, e) {
  7152. var b,
  7153. c,
  7154. m = this.options[a];
  7155. e = e || {};
  7156. d = g.Event(d);
  7157. d.type = (a === this.widgetEventPrefix ? a : this.widgetEventPrefix + a).toLowerCase();
  7158. d.target = this.element[0];
  7159. c = d.originalEvent;
  7160. if (c) {
  7161. for (b in c) {
  7162. if (!(b in d)) {
  7163. d[b] = c[b]
  7164. }
  7165. }
  7166. }
  7167. this.element.trigger(d, e);
  7168. return !(g.isFunction(m) && m.apply(this.element[0], [d].concat(e)) === false || d.isDefaultPrevented())
  7169. }
  7170. };
  7171. g.each({
  7172. show : "fadeIn",
  7173. hide : "fadeOut"
  7174. }, function (a, b) {
  7175. g.Widget.prototype["_" + a] = function (e, c, o) {
  7176. if (typeof c === "string") {
  7177. c = {
  7178. effect : c
  7179. }
  7180. }
  7181. var d,
  7182. n = !c ? a : c === true || typeof c === "number" ? b : c.effect || b;
  7183. c = c || {};
  7184. if (typeof c === "number") {
  7185. c = {
  7186. duration : c
  7187. }
  7188. }
  7189. d = !g.isEmptyObject(c);
  7190. c.complete = o;
  7191. if (c.delay) {
  7192. e.delay(c.delay)
  7193. }
  7194. if (d && g.effects && g.effects.effect[n]) {
  7195. e[a](c)
  7196. } else {
  7197. if (n !== a && e[n]) {
  7198. e[n](c.duration, c.easing, o)
  7199. } else {
  7200. e.queue(function (l) {
  7201. g(this)[a]();
  7202. if (o) {
  7203. o.call(e[0])
  7204. }
  7205. l()
  7206. })
  7207. }
  7208. }
  7209. }
  7210. })
  7211. })(jQuery);
  7212. (function (d, c) {
  7213. d.widget("ui.menu", {
  7214. version : "1.10.2",
  7215. defaultElement : "<ul>",
  7216. delay : 300,
  7217. options : {
  7218. icons : {
  7219. submenu : "ui-icon-carat-1-e"
  7220. },
  7221. menus : "ul",
  7222. position : {
  7223. my : "left top",
  7224. at : "right top"
  7225. },
  7226. role : "menu",
  7227. blur : null,
  7228. focus : null,
  7229. select : null
  7230. },
  7231. _create : function () {
  7232. this.activeMenu = this.element;
  7233. this.mouseHandled = false;
  7234. this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons", !!this.element.find(".ui-icon").length).attr({
  7235. role : this.options.role,
  7236. tabIndex : 0
  7237. }).bind("click" + this.eventNamespace, d.proxy(function (a) {
  7238. if (this.options.disabled) {
  7239. a.preventDefault()
  7240. }
  7241. }, this));
  7242. if (this.options.disabled) {
  7243. this.element.addClass("ui-state-disabled").attr("aria-disabled", "true")
  7244. }
  7245. this._on({
  7246. "mousedown .ui-menu-item > a" : function (a) {
  7247. a.preventDefault()
  7248. },
  7249. "click .ui-state-disabled > a" : function (a) {
  7250. a.preventDefault()
  7251. },
  7252. "click .ui-menu-item:has(a)" : function (b) {
  7253. var a = d(b.target).closest(".ui-menu-item");
  7254. if (!this.mouseHandled && a.not(".ui-state-disabled").length) {
  7255. this.mouseHandled = true;
  7256. this.select(b);
  7257. if (a.has(".ui-menu").length) {
  7258. this.expand(b)
  7259. } else {
  7260. if (!this.element.is(":focus")) {
  7261. this.element.trigger("focus", [true]);
  7262. if (this.active && this.active.parents(".ui-menu").length === 1) {
  7263. clearTimeout(this.timer)
  7264. }
  7265. }
  7266. }
  7267. }
  7268. },
  7269. "mouseenter .ui-menu-item" : function (b) {
  7270. var a = d(b.currentTarget);
  7271. a.siblings().children(".ui-state-active").removeClass("ui-state-active");
  7272. this.focus(b, a)
  7273. },
  7274. mouseleave : "collapseAll",
  7275. "mouseleave .ui-menu" : "collapseAll",
  7276. focus : function (f, a) {
  7277. var b = this.active || this.element.children(".ui-menu-item").eq(0);
  7278. if (!a) {
  7279. this.focus(f, b)
  7280. }
  7281. },
  7282. blur : function (a) {
  7283. this._delay(function () {
  7284. if (!d.contains(this.element[0], this.document[0].activeElement)) {
  7285. this.collapseAll(a)
  7286. }
  7287. })
  7288. },
  7289. keydown : "_keydown"
  7290. });
  7291. this.refresh();
  7292. this._on(this.document, {
  7293. click : function (a) {
  7294. if (!d(a.target).closest(".ui-menu").length) {
  7295. this.collapseAll(a)
  7296. }
  7297. this.mouseHandled = false
  7298. }
  7299. })
  7300. },
  7301. _destroy : function () {
  7302. this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show();
  7303. this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function () {
  7304. var a = d(this);
  7305. if (a.data("ui-menu-submenu-carat")) {
  7306. a.remove()
  7307. }
  7308. });
  7309. this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")
  7310. },
  7311. _keydown : function (o) {
  7312. var n,
  7313. m,
  7314. q,
  7315. a,
  7316. b,
  7317. l = true;
  7318. function p(e) {
  7319. return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&")
  7320. }
  7321. switch (o.keyCode) {
  7322. case d.ui.keyCode.PAGE_UP:
  7323. this.previousPage(o);
  7324. break;
  7325. case d.ui.keyCode.PAGE_DOWN:
  7326. this.nextPage(o);
  7327. break;
  7328. case d.ui.keyCode.HOME:
  7329. this._move("first", "first", o);
  7330. break;
  7331. case d.ui.keyCode.END:
  7332. this._move("last", "last", o);
  7333. break;
  7334. case d.ui.keyCode.UP:
  7335. this.previous(o);
  7336. break;
  7337. case d.ui.keyCode.DOWN:
  7338. this.next(o);
  7339. break;
  7340. case d.ui.keyCode.LEFT:
  7341. this.collapse(o);
  7342. break;
  7343. case d.ui.keyCode.RIGHT:
  7344. if (this.active && !this.active.is(".ui-state-disabled")) {
  7345. this.expand(o)
  7346. }
  7347. break;
  7348. case d.ui.keyCode.ENTER:
  7349. case d.ui.keyCode.SPACE:
  7350. this._activate(o);
  7351. break;
  7352. case d.ui.keyCode.ESCAPE:
  7353. this.collapse(o);
  7354. break;
  7355. default:
  7356. l = false;
  7357. m = this.previousFilter || "";
  7358. q = String.fromCharCode(o.keyCode);
  7359. a = false;
  7360. clearTimeout(this.filterTimer);
  7361. if (q === m) {
  7362. a = true
  7363. } else {
  7364. q = m + q
  7365. }
  7366. b = new RegExp("^" + p(q), "i");
  7367. n = this.activeMenu.children(".ui-menu-item").filter(function () {
  7368. return b.test(d(this).children("a").text())
  7369. });
  7370. n = a && n.index(this.active.next()) !== -1 ? this.active.nextAll(".ui-menu-item") : n;
  7371. if (!n.length) {
  7372. q = String.fromCharCode(o.keyCode);
  7373. b = new RegExp("^" + p(q), "i");
  7374. n = this.activeMenu.children(".ui-menu-item").filter(function () {
  7375. return b.test(d(this).children("a").text())
  7376. })
  7377. }
  7378. if (n.length) {
  7379. this.focus(o, n);
  7380. if (n.length > 1) {
  7381. this.previousFilter = q;
  7382. this.filterTimer = this._delay(function () {
  7383. delete this.previousFilter
  7384. }, 1000)
  7385. } else {
  7386. delete this.previousFilter
  7387. }
  7388. } else {
  7389. delete this.previousFilter
  7390. }
  7391. }
  7392. if (l) {
  7393. o.preventDefault()
  7394. }
  7395. },
  7396. _activate : function (a) {
  7397. if (!this.active.is(".ui-state-disabled")) {
  7398. if (this.active.children("a[aria-haspopup='true']").length) {
  7399. this.expand(a)
  7400. } else {
  7401. this.select(a)
  7402. }
  7403. }
  7404. },
  7405. refresh : function () {
  7406. var b,
  7407. f = this.options.icons.submenu,
  7408. a = this.element.find(this.options.menus);
  7409. a.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({
  7410. role : this.options.role,
  7411. "aria-hidden" : "true",
  7412. "aria-expanded" : "false"
  7413. }).each(function () {
  7414. var j = d(this),
  7415. k = j.prev("a"),
  7416. e = d("<span>").addClass("ui-menu-icon ui-icon " + f).data("ui-menu-submenu-carat", true);
  7417. k.attr("aria-haspopup", "true").prepend(e);
  7418. j.attr("aria-labelledby", k.attr("id"))
  7419. });
  7420. b = a.add(this.element);
  7421. b.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role", "presentation").children("a").uniqueId().addClass("ui-corner-all").attr({
  7422. tabIndex : -1,
  7423. role : this._itemRole()
  7424. });
  7425. b.children(":not(.ui-menu-item)").each(function () {
  7426. var e = d(this);
  7427. if (!/[^\-\u2014\u2013\s]/.test(e.text())) {
  7428. e.addClass("ui-widget-content ui-menu-divider")
  7429. }
  7430. });
  7431. b.children(".ui-state-disabled").attr("aria-disabled", "true");
  7432. if (this.active && !d.contains(this.element[0], this.active[0])) {
  7433. this.blur()
  7434. }
  7435. },
  7436. _itemRole : function () {
  7437. return {
  7438. menu : "menuitem",
  7439. listbox : "option"
  7440. }
  7441. [this.options.role]
  7442. },
  7443. _setOption : function (b, a) {
  7444. if (b === "icons") {
  7445. this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(a.submenu)
  7446. }
  7447. this._super(b, a)
  7448. },
  7449. focus : function (h, b) {
  7450. var a,
  7451. g;
  7452. this.blur(h, h && h.type === "focus");
  7453. this._scrollIntoView(b);
  7454. this.active = b.first();
  7455. g = this.active.children("a").addClass("ui-state-focus");
  7456. if (this.options.role) {
  7457. this.element.attr("aria-activedescendant", g.attr("id"))
  7458. }
  7459. this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active");
  7460. if (h && h.type === "keydown") {
  7461. this._close()
  7462. } else {
  7463. this.timer = this._delay(function () {
  7464. this._close()
  7465. }, this.delay)
  7466. }
  7467. a = b.children(".ui-menu");
  7468. if (a.length && (/^mouse/.test(h.type))) {
  7469. this._startOpening(a)
  7470. }
  7471. this.activeMenu = b.parent();
  7472. this._trigger("focus", h, {
  7473. item : b
  7474. })
  7475. },
  7476. _scrollIntoView : function (m) {
  7477. var o,
  7478. b,
  7479. k,
  7480. a,
  7481. n,
  7482. l;
  7483. if (this._hasScroll()) {
  7484. o = parseFloat(d.css(this.activeMenu[0], "borderTopWidth")) || 0;
  7485. b = parseFloat(d.css(this.activeMenu[0], "paddingTop")) || 0;
  7486. k = m.offset().top - this.activeMenu.offset().top - o - b;
  7487. a = this.activeMenu.scrollTop();
  7488. n = this.activeMenu.height();
  7489. l = m.height();
  7490. if (k < 0) {
  7491. this.activeMenu.scrollTop(a + k)
  7492. } else {
  7493. if (k + l > n) {
  7494. this.activeMenu.scrollTop(a + k - n + l)
  7495. }
  7496. }
  7497. }
  7498. },
  7499. blur : function (b, a) {
  7500. if (!a) {
  7501. clearTimeout(this.timer)
  7502. }
  7503. if (!this.active) {
  7504. return
  7505. }
  7506. this.active.children("a").removeClass("ui-state-focus");
  7507. this.active = null;
  7508. this._trigger("blur", b, {
  7509. item : this.active
  7510. })
  7511. },
  7512. _startOpening : function (a) {
  7513. clearTimeout(this.timer);
  7514. if (a.attr("aria-hidden") !== "true") {
  7515. return
  7516. }
  7517. this.timer = this._delay(function () {
  7518. this._close();
  7519. this._open(a)
  7520. }, this.delay)
  7521. },
  7522. _open : function (a) {
  7523. var b = d.extend({
  7524. of : this.active
  7525. }, this.options.position);
  7526. clearTimeout(this.timer);
  7527. this.element.find(".ui-menu").not(a.parents(".ui-menu")).hide().attr("aria-hidden", "true");
  7528. a.show().removeAttr("aria-hidden").attr("aria-expanded", "true").position(b)
  7529. },
  7530. collapseAll : function (a, b) {
  7531. clearTimeout(this.timer);
  7532. this.timer = this._delay(function () {
  7533. var f = b ? this.element : d(a && a.target).closest(this.element.find(".ui-menu"));
  7534. if (!f.length) {
  7535. f = this.element
  7536. }
  7537. this._close(f);
  7538. this.blur(a);
  7539. this.activeMenu = f
  7540. }, this.delay)
  7541. },
  7542. _close : function (a) {
  7543. if (!a) {
  7544. a = this.active ? this.active.parent() : this.element
  7545. }
  7546. a.find(".ui-menu").hide().attr("aria-hidden", "true").attr("aria-expanded", "false").end().find("a.ui-state-active").removeClass("ui-state-active")
  7547. },
  7548. collapse : function (b) {
  7549. var a = this.active && this.active.parent().closest(".ui-menu-item", this.element);
  7550. if (a && a.length) {
  7551. this._close();
  7552. this.focus(b, a)
  7553. }
  7554. },
  7555. expand : function (b) {
  7556. var a = this.active && this.active.children(".ui-menu ").children(".ui-menu-item").first();
  7557. if (a && a.length) {
  7558. this._open(a.parent());
  7559. this._delay(function () {
  7560. this.focus(b, a)
  7561. })
  7562. }
  7563. },
  7564. next : function (a) {
  7565. this._move("next", "first", a)
  7566. },
  7567. previous : function (a) {
  7568. this._move("prev", "last", a)
  7569. },
  7570. isFirstItem : function () {
  7571. return this.active && !this.active.prevAll(".ui-menu-item").length
  7572. },
  7573. isLastItem : function () {
  7574. return this.active && !this.active.nextAll(".ui-menu-item").length
  7575. },
  7576. _move : function (h, b, g) {
  7577. var a;
  7578. if (this.active) {
  7579. if (h === "first" || h === "last") {
  7580. a = this.active[h === "first" ? "prevAll" : "nextAll"](".ui-menu-item").eq(-1)
  7581. } else {
  7582. a = this.active[h + "All"](".ui-menu-item").eq(0)
  7583. }
  7584. }
  7585. if (!a || !a.length || !this.active) {
  7586. a = this.activeMenu.children(".ui-menu-item")[b]()
  7587. }
  7588. this.focus(g, a)
  7589. },
  7590. nextPage : function (g) {
  7591. var a,
  7592. h,
  7593. b;
  7594. if (!this.active) {
  7595. this.next(g);
  7596. return
  7597. }
  7598. if (this.isLastItem()) {
  7599. return
  7600. }
  7601. if (this._hasScroll()) {
  7602. h = this.active.offset().top;
  7603. b = this.element.height();
  7604. this.active.nextAll(".ui-menu-item").each(function () {
  7605. a = d(this);
  7606. return a.offset().top - h - b < 0
  7607. });
  7608. this.focus(g, a)
  7609. } else {
  7610. this.focus(g, this.activeMenu.children(".ui-menu-item")[!this.active ? "first" : "last"]())
  7611. }
  7612. },
  7613. previousPage : function (g) {
  7614. var a,
  7615. h,
  7616. b;
  7617. if (!this.active) {
  7618. this.next(g);
  7619. return
  7620. }
  7621. if (this.isFirstItem()) {
  7622. return
  7623. }
  7624. if (this._hasScroll()) {
  7625. h = this.active.offset().top;
  7626. b = this.element.height();
  7627. this.active.prevAll(".ui-menu-item").each(function () {
  7628. a = d(this);
  7629. return a.offset().top - h + b > 0
  7630. });
  7631. this.focus(g, a)
  7632. } else {
  7633. this.focus(g, this.activeMenu.children(".ui-menu-item").first())
  7634. }
  7635. },
  7636. _hasScroll : function () {
  7637. return this.element.outerHeight() < this.element.prop("scrollHeight")
  7638. },
  7639. select : function (b) {
  7640. this.active = this.active || d(b.target).closest(".ui-menu-item");
  7641. var a = {
  7642. item : this.active
  7643. };
  7644. if (!this.active.has(".ui-menu").length) {
  7645. this.collapseAll(b, true)
  7646. }
  7647. this._trigger("select", b, a)
  7648. }
  7649. })
  7650. }
  7651. (jQuery));
  7652. (function (E, q) {
  7653. E.ui = E.ui || {};
  7654. var B,
  7655. y = Math.max,
  7656. C = Math.abs,
  7657. u = Math.round,
  7658. w = /left|center|right/,
  7659. r = /top|center|bottom/,
  7660. v = /[\+\-]\d+(\.[\d]+)?%?/,
  7661. s = /^\w+/,
  7662. t = /%$/,
  7663. D = E.fn.position;
  7664. function z(b, a, c) {
  7665. return [parseFloat(b[0]) * (t.test(b[0]) ? a / 100 : 1), parseFloat(b[1]) * (t.test(b[1]) ? c / 100 : 1)]
  7666. }
  7667. function x(b, a) {
  7668. return parseInt(E.css(b, a), 10) || 0
  7669. }
  7670. function A(b) {
  7671. var a = b[0];
  7672. if (a.nodeType === 9) {
  7673. return {
  7674. width : b.width(),
  7675. height : b.height(),
  7676. offset : {
  7677. top : 0,
  7678. left : 0
  7679. }
  7680. }
  7681. }
  7682. if (E.isWindow(a)) {
  7683. return {
  7684. width : b.width(),
  7685. height : b.height(),
  7686. offset : {
  7687. top : b.scrollTop(),
  7688. left : b.scrollLeft()
  7689. }
  7690. }
  7691. }
  7692. if (a.preventDefault) {
  7693. return {
  7694. width : 0,
  7695. height : 0,
  7696. offset : {
  7697. top : a.pageY,
  7698. left : a.pageX
  7699. }
  7700. }
  7701. }
  7702. return {
  7703. width : b.outerWidth(),
  7704. height : b.outerHeight(),
  7705. offset : b.offset()
  7706. }
  7707. }
  7708. E.position = {
  7709. scrollbarWidth : function () {
  7710. if (B !== q) {
  7711. return B
  7712. }
  7713. var b,
  7714. a,
  7715. d = E("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),
  7716. c = d.children()[0];
  7717. E("body").append(d);
  7718. b = c.offsetWidth;
  7719. d.css("overflow", "scroll");
  7720. a = c.offsetWidth;
  7721. if (b === a) {
  7722. a = d[0].clientWidth
  7723. }
  7724. d.remove();
  7725. return (B = b - a)
  7726. },
  7727. getScrollInfo : function (a) {
  7728. var c = a.isWindow ? "" : a.element.css("overflow-x"),
  7729. b = a.isWindow ? "" : a.element.css("overflow-y"),
  7730. e = c === "scroll" || (c === "auto" && a.width < a.element[0].scrollWidth),
  7731. d = b === "scroll" || (b === "auto" && a.height < a.element[0].scrollHeight);
  7732. return {
  7733. width : d ? E.position.scrollbarWidth() : 0,
  7734. height : e ? E.position.scrollbarWidth() : 0
  7735. }
  7736. },
  7737. getWithinInfo : function (c) {
  7738. var a = E(c || window),
  7739. b = E.isWindow(a[0]);
  7740. return {
  7741. element : a,
  7742. isWindow : b,
  7743. offset : a.offset() || {
  7744. left : 0,
  7745. top : 0
  7746. },
  7747. scrollLeft : a.scrollLeft(),
  7748. scrollTop : a.scrollTop(),
  7749. width : b ? a.width() : a.outerWidth(),
  7750. height : b ? a.height() : a.outerHeight()
  7751. }
  7752. }
  7753. };
  7754. E.fn.position = function (j) {
  7755. if (!j || !j.of) {
  7756. return D.apply(this, arguments)
  7757. }
  7758. j = E.extend({}, j);
  7759. var b,
  7760. d,
  7761. f,
  7762. e,
  7763. a,
  7764. l,
  7765. g = E(j.of),
  7766. c = E.position.getWithinInfo(j.within),
  7767. h = E.position.getScrollInfo(c),
  7768. m = (j.collision || "flip").split(" "),
  7769. k = {};
  7770. l = A(g);
  7771. if (g[0].preventDefault) {
  7772. j.at = "left top"
  7773. }
  7774. d = l.width;
  7775. f = l.height;
  7776. e = l.offset;
  7777. a = E.extend({}, e);
  7778. E.each(["my", "at"], function () {
  7779. var o = (j[this] || "").split(" "),
  7780. p,
  7781. n;
  7782. if (o.length === 1) {
  7783. o = w.test(o[0]) ? o.concat(["center"]) : r.test(o[0]) ? ["center"].concat(o) : ["center", "center"]
  7784. }
  7785. o[0] = w.test(o[0]) ? o[0] : "center";
  7786. o[1] = r.test(o[1]) ? o[1] : "center";
  7787. p = v.exec(o[0]);
  7788. n = v.exec(o[1]);
  7789. k[this] = [p ? p[0] : 0, n ? n[0] : 0];
  7790. j[this] = [s.exec(o[0])[0], s.exec(o[1])[0]]
  7791. });
  7792. if (m.length === 1) {
  7793. m[1] = m[0]
  7794. }
  7795. if (j.at[0] === "right") {
  7796. a.left += d
  7797. } else {
  7798. if (j.at[0] === "center") {
  7799. a.left += d / 2
  7800. }
  7801. }
  7802. if (j.at[1] === "bottom") {
  7803. a.top += f
  7804. } else {
  7805. if (j.at[1] === "center") {
  7806. a.top += f / 2
  7807. }
  7808. }
  7809. b = z(k.at, d, f);
  7810. a.left += b[0];
  7811. a.top += b[1];
  7812. return this.each(function () {
  7813. var n,
  7814. p,
  7815. T = E(this),
  7816. R = T.outerWidth(),
  7817. S = T.outerHeight(),
  7818. Q = x(this, "marginLeft"),
  7819. P = x(this, "marginTop"),
  7820. U = R + Q + x(this, "marginRight") + h.width,
  7821. o = S + P + x(this, "marginBottom") + h.height,
  7822. N = E.extend({}, a),
  7823. O = z(k.my, T.outerWidth(), T.outerHeight());
  7824. if (j.my[0] === "right") {
  7825. N.left -= R
  7826. } else {
  7827. if (j.my[0] === "center") {
  7828. N.left -= R / 2
  7829. }
  7830. }
  7831. if (j.my[1] === "bottom") {
  7832. N.top -= S
  7833. } else {
  7834. if (j.my[1] === "center") {
  7835. N.top -= S / 2
  7836. }
  7837. }
  7838. N.left += O[0];
  7839. N.top += O[1];
  7840. if (!E.support.offsetFractions) {
  7841. N.left = u(N.left);
  7842. N.top = u(N.top)
  7843. }
  7844. n = {
  7845. marginLeft : Q,
  7846. marginTop : P
  7847. };
  7848. E.each(["left", "top"], function (F, G) {
  7849. if (E.ui.position[m[F]]) {
  7850. E.ui.position[m[F]][G](N, {
  7851. targetWidth : d,
  7852. targetHeight : f,
  7853. elemWidth : R,
  7854. elemHeight : S,
  7855. collisionPosition : n,
  7856. collisionWidth : U,
  7857. collisionHeight : o,
  7858. offset : [b[0] + O[0], b[1] + O[1]],
  7859. my : j.my,
  7860. at : j.at,
  7861. within : c,
  7862. elem : T
  7863. })
  7864. }
  7865. });
  7866. if (j.using) {
  7867. p = function (H) {
  7868. var I = e.left - N.left,
  7869. G = I + d - R,
  7870. F = e.top - N.top,
  7871. K = F + f - S,
  7872. J = {
  7873. target : {
  7874. element : g,
  7875. left : e.left,
  7876. top : e.top,
  7877. width : d,
  7878. height : f
  7879. },
  7880. element : {
  7881. element : T,
  7882. left : N.left,
  7883. top : N.top,
  7884. width : R,
  7885. height : S
  7886. },
  7887. horizontal : G < 0 ? "left" : I > 0 ? "right" : "center",
  7888. vertical : K < 0 ? "top" : F > 0 ? "bottom" : "middle"
  7889. };
  7890. if (d < R && C(I + G) < d) {
  7891. J.horizontal = "center"
  7892. }
  7893. if (f < S && C(F + K) < f) {
  7894. J.vertical = "middle"
  7895. }
  7896. if (y(C(I), C(G)) > y(C(F), C(K))) {
  7897. J.important = "horizontal"
  7898. } else {
  7899. J.important = "vertical"
  7900. }
  7901. j.using.call(this, H, J)
  7902. }
  7903. }
  7904. T.offset(E.extend(N, {
  7905. using : p
  7906. }))
  7907. })
  7908. };
  7909. E.ui.position = {
  7910. fit : {
  7911. left : function (e, a) {
  7912. var d = a.within,
  7913. c = d.isWindow ? d.scrollLeft : d.offset.left,
  7914. h = d.width,
  7915. b = e.left - a.collisionPosition.marginLeft,
  7916. g = c - b,
  7917. f = b + a.collisionWidth - h - c,
  7918. j;
  7919. if (a.collisionWidth > h) {
  7920. if (g > 0 && f <= 0) {
  7921. j = e.left + g + a.collisionWidth - h - c;
  7922. e.left += g - j
  7923. } else {
  7924. if (f > 0 && g <= 0) {
  7925. e.left = c
  7926. } else {
  7927. if (g > f) {
  7928. e.left = c + h - a.collisionWidth
  7929. } else {
  7930. e.left = c
  7931. }
  7932. }
  7933. }
  7934. } else {
  7935. if (g > 0) {
  7936. e.left += g
  7937. } else {
  7938. if (f > 0) {
  7939. e.left -= f
  7940. } else {
  7941. e.left = y(e.left - b, e.left)
  7942. }
  7943. }
  7944. }
  7945. },
  7946. top : function (e, a) {
  7947. var d = a.within,
  7948. c = d.isWindow ? d.scrollTop : d.offset.top,
  7949. h = a.within.height,
  7950. b = e.top - a.collisionPosition.marginTop,
  7951. f = c - b,
  7952. g = b + a.collisionHeight - h - c,
  7953. j;
  7954. if (a.collisionHeight > h) {
  7955. if (f > 0 && g <= 0) {
  7956. j = e.top + f + a.collisionHeight - h - c;
  7957. e.top += f - j
  7958. } else {
  7959. if (g > 0 && f <= 0) {
  7960. e.top = c
  7961. } else {
  7962. if (f > g) {
  7963. e.top = c + h - a.collisionHeight
  7964. } else {
  7965. e.top = c
  7966. }
  7967. }
  7968. }
  7969. } else {
  7970. if (f > 0) {
  7971. e.top += f
  7972. } else {
  7973. if (g > 0) {
  7974. e.top -= g
  7975. } else {
  7976. e.top = y(e.top - b, e.top)
  7977. }
  7978. }
  7979. }
  7980. }
  7981. },
  7982. flip : {
  7983. left : function (e, o) {
  7984. var d = o.within,
  7985. a = d.offset.left + d.scrollLeft,
  7986. h = d.width,
  7987. j = d.isWindow ? d.scrollLeft : d.offset.left,
  7988. b = e.left - o.collisionPosition.marginLeft,
  7989. g = b - j,
  7990. f = b + o.collisionWidth - h - j,
  7991. n = o.my[0] === "left" ? -o.elemWidth : o.my[0] === "right" ? o.elemWidth : 0,
  7992. c = o.at[0] === "left" ? o.targetWidth : o.at[0] === "right" ? -o.targetWidth : 0,
  7993. k = -2 * o.offset[0],
  7994. l,
  7995. m;
  7996. if (g < 0) {
  7997. l = e.left + n + c + k + o.collisionWidth - h - a;
  7998. if (l < 0 || l < C(g)) {
  7999. e.left += n + c + k
  8000. }
  8001. } else {
  8002. if (f > 0) {
  8003. m = e.left - o.collisionPosition.marginLeft + n + c + k - j;
  8004. if (m > 0 || C(m) < f) {
  8005. e.left += n + c + k
  8006. }
  8007. }
  8008. }
  8009. },
  8010. top : function (e, p) {
  8011. var a = p.within,
  8012. o = a.offset.top + a.scrollTop,
  8013. h = a.height,
  8014. j = a.isWindow ? a.scrollTop : a.offset.top,
  8015. b = e.top - p.collisionPosition.marginTop,
  8016. f = b - j,
  8017. g = b + p.collisionHeight - h - j,
  8018. d = p.my[1] === "top",
  8019. n = d ? -p.elemHeight : p.my[1] === "bottom" ? p.elemHeight : 0,
  8020. c = p.at[1] === "top" ? p.targetHeight : p.at[1] === "bottom" ? -p.targetHeight : 0,
  8021. k = -2 * p.offset[1],
  8022. l,
  8023. m;
  8024. if (f < 0) {
  8025. m = e.top + n + c + k + p.collisionHeight - h - o;
  8026. if ((e.top + n + c + k) > f && (m < 0 || m < C(f))) {
  8027. e.top += n + c + k
  8028. }
  8029. } else {
  8030. if (g > 0) {
  8031. l = e.top - p.collisionPosition.marginTop + n + c + k - j;
  8032. if ((e.top + n + c + k) > g && (l > 0 || C(l) < g)) {
  8033. e.top += n + c + k
  8034. }
  8035. }
  8036. }
  8037. }
  8038. },
  8039. flipfit : {
  8040. left : function () {
  8041. E.ui.position.flip.left.apply(this, arguments);
  8042. E.ui.position.fit.left.apply(this, arguments)
  8043. },
  8044. top : function () {
  8045. E.ui.position.flip.top.apply(this, arguments);
  8046. E.ui.position.fit.top.apply(this, arguments)
  8047. }
  8048. }
  8049. };
  8050. (function () {
  8051. var c,
  8052. b,
  8053. a,
  8054. d,
  8055. e,
  8056. g = document.getElementsByTagName("body")[0],
  8057. f = document.createElement("div");
  8058. c = document.createElement(g ? "div" : "body");
  8059. a = {
  8060. visibility : "hidden",
  8061. width : 0,
  8062. height : 0,
  8063. border : 0,
  8064. margin : 0,
  8065. background : "none"
  8066. };
  8067. if (g) {
  8068. E.extend(a, {
  8069. position : "absolute",
  8070. left : "-1000px",
  8071. top : "-1000px"
  8072. })
  8073. }
  8074. for (e in a) {
  8075. c.style[e] = a[e]
  8076. }
  8077. c.appendChild(f);
  8078. b = g || document.documentElement;
  8079. b.insertBefore(c, b.firstChild);
  8080. f.style.cssText = "position: absolute; left: 10.7432222px;";
  8081. d = E(f).offset().left;
  8082. E.support.offsetFractions = d > 10 && d < 11;
  8083. c.innerHTML = "";
  8084. b.removeChild(c)
  8085. })()
  8086. }
  8087. (jQuery));
  8088. (function (e, f) {
  8089. var d = 0;
  8090. e.widget("ui.autocomplete", {
  8091. version : "1.10.2",
  8092. defaultElement : "<input>",
  8093. options : {
  8094. appendTo : null,
  8095. autoFocus : false,
  8096. delay : 300,
  8097. minLength : 1,
  8098. position : {
  8099. my : "left top",
  8100. at : "left bottom",
  8101. collision : "none"
  8102. },
  8103. source : null,
  8104. change : null,
  8105. close : null,
  8106. focus : null,
  8107. open : null,
  8108. response : null,
  8109. search : null,
  8110. select : null
  8111. },
  8112. pending : 0,
  8113. _create : function () {
  8114. var b,
  8115. a,
  8116. c,
  8117. k = this.element[0].nodeName.toLowerCase(),
  8118. l = k === "textarea",
  8119. m = k === "input";
  8120. this.isMultiLine = l ? true : m ? false : this.element.prop("isContentEditable");
  8121. this.valueMethod = this.element[l || m ? "val" : "text"];
  8122. this.isNewMenu = true;
  8123. this.element.addClass("ui-autocomplete-input").attr("autocomplete", "off");
  8124. this._on(this.element, {
  8125. keydown : function (h) {
  8126. if (this.element.prop("readOnly")) {
  8127. b = true;
  8128. c = true;
  8129. a = true;
  8130. return
  8131. }
  8132. b = false;
  8133. c = false;
  8134. a = false;
  8135. var g = e.ui.keyCode;
  8136. switch (h.keyCode) {
  8137. case g.PAGE_UP:
  8138. b = true;
  8139. this._move("previousPage", h);
  8140. break;
  8141. case g.PAGE_DOWN:
  8142. b = true;
  8143. this._move("nextPage", h);
  8144. break;
  8145. case g.UP:
  8146. b = true;
  8147. this._keyEvent("previous", h);
  8148. break;
  8149. case g.DOWN:
  8150. b = true;
  8151. this._keyEvent("next", h);
  8152. break;
  8153. case g.ENTER:
  8154. case g.NUMPAD_ENTER:
  8155. if (this.menu.active) {
  8156. b = true;
  8157. h.preventDefault();
  8158. this.menu.select(h)
  8159. }
  8160. break;
  8161. case g.TAB:
  8162. if (this.menu.active) {
  8163. this.menu.select(h)
  8164. }
  8165. break;
  8166. case g.ESCAPE:
  8167. if (this.menu.element.is(":visible")) {
  8168. this._value(this.term);
  8169. this.close(h);
  8170. h.preventDefault()
  8171. }
  8172. break;
  8173. default:
  8174. a = true;
  8175. this._searchTimeout(h);
  8176. break
  8177. }
  8178. },
  8179. keypress : function (h) {
  8180. if (b) {
  8181. b = false;
  8182. h.preventDefault();
  8183. return
  8184. }
  8185. if (a) {
  8186. return
  8187. }
  8188. var g = e.ui.keyCode;
  8189. switch (h.keyCode) {
  8190. case g.PAGE_UP:
  8191. this._move("previousPage", h);
  8192. break;
  8193. case g.PAGE_DOWN:
  8194. this._move("nextPage", h);
  8195. break;
  8196. case g.UP:
  8197. this._keyEvent("previous", h);
  8198. break;
  8199. case g.DOWN:
  8200. this._keyEvent("next", h);
  8201. break
  8202. }
  8203. },
  8204. input : function (g) {
  8205. if (c) {
  8206. c = false;
  8207. g.preventDefault();
  8208. return
  8209. }
  8210. this._searchTimeout(g)
  8211. },
  8212. focus : function () {
  8213. this.selectedItem = null;
  8214. this.previous = this._value()
  8215. },
  8216. blur : function (g) {
  8217. if (this.cancelBlur) {
  8218. delete this.cancelBlur;
  8219. return
  8220. }
  8221. clearTimeout(this.searching);
  8222. this.close(g);
  8223. this._change(g)
  8224. }
  8225. });
  8226. this._initSource();
  8227. this.menu = e("<ul>").addClass("ui-autocomplete ui-front typeahead dropdown-menu").appendTo(this._appendTo()).menu({
  8228. input : e(),
  8229. role : null
  8230. }).hide().data("ui-menu");
  8231. this._on(this.menu.element, {
  8232. mousedown : function (h) {
  8233. h.preventDefault();
  8234. this.cancelBlur = true;
  8235. this._delay(function () {
  8236. delete this.cancelBlur
  8237. });
  8238. var g = this.menu.element[0];
  8239. if (!e(h.target).closest(".ui-menu-item").length) {
  8240. this._delay(function () {
  8241. var j = this;
  8242. this.document.one("mousedown", function (o) {
  8243. if (o.target !== j.element[0] && o.target !== g && !e.contains(g, o.target)) {
  8244. j.close()
  8245. }
  8246. })
  8247. })
  8248. }
  8249. },
  8250. menufocus : function (j, g) {
  8251. if (this.isNewMenu) {
  8252. this.isNewMenu = false;
  8253. if (j.originalEvent && /^mouse/.test(j.originalEvent.type)) {
  8254. this.menu.blur();
  8255. this.document.one("mousemove", function () {
  8256. e(j.target).trigger(j.originalEvent)
  8257. });
  8258. return
  8259. }
  8260. }
  8261. var h = g.item.data("ui-autocomplete-item");
  8262. if (false !== this._trigger("focus", j, {
  8263. item : h
  8264. })) {
  8265. if (j.originalEvent && /^key/.test(j.originalEvent.type)) {
  8266. this._value(h.value)
  8267. }
  8268. } else {
  8269. this.liveRegion.text(h.value)
  8270. }
  8271. },
  8272. menuselect : function (j, o) {
  8273. var h = o.item.data("ui-autocomplete-item"),
  8274. g = this.previous;
  8275. if (this.element[0] !== this.document[0].activeElement) {
  8276. this.element.focus();
  8277. this.previous = g;
  8278. this._delay(function () {
  8279. this.previous = g;
  8280. this.selectedItem = h
  8281. })
  8282. }
  8283. if (false !== this._trigger("select", j, {
  8284. item : h
  8285. })) {
  8286. this._value(h.value)
  8287. }
  8288. this.term = this._value();
  8289. this.close(j);
  8290. this.selectedItem = h
  8291. }
  8292. });
  8293. this.liveRegion = e("<span>", {
  8294. role : "status",
  8295. "aria-live" : "polite"
  8296. }).addClass("ui-helper-hidden-accessible").insertAfter(this.element);
  8297. this._on(this.window, {
  8298. beforeunload : function () {
  8299. this.element.removeAttr("autocomplete")
  8300. }
  8301. })
  8302. },
  8303. _destroy : function () {
  8304. clearTimeout(this.searching);
  8305. this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete");
  8306. this.menu.element.remove();
  8307. this.liveRegion.remove()
  8308. },
  8309. _setOption : function (b, a) {
  8310. this._super(b, a);
  8311. if (b === "source") {
  8312. this._initSource()
  8313. }
  8314. if (b === "appendTo") {
  8315. this.menu.element.appendTo(this._appendTo())
  8316. }
  8317. if (b === "disabled" && a && this.xhr) {
  8318. this.xhr.abort()
  8319. }
  8320. },
  8321. _appendTo : function () {
  8322. var a = this.options.appendTo;
  8323. if (a) {
  8324. a = a.jquery || a.nodeType ? e(a) : this.document.find(a).eq(0)
  8325. }
  8326. if (!a) {
  8327. a = this.element.closest(".ui-front")
  8328. }
  8329. if (!a.length) {
  8330. a = this.document[0].body
  8331. }
  8332. return a
  8333. },
  8334. _initSource : function () {
  8335. var c,
  8336. a,
  8337. b = this;
  8338. if (e.isArray(this.options.source)) {
  8339. c = this.options.source;
  8340. this.source = function (k, j) {
  8341. j(e.ui.autocomplete.filter(c, k.term))
  8342. }
  8343. } else {
  8344. if (typeof this.options.source === "string") {
  8345. a = this.options.source;
  8346. this.source = function (k, j) {
  8347. if (b.xhr) {
  8348. b.xhr.abort()
  8349. }
  8350. b.xhr = e.ajax({
  8351. url : a,
  8352. data : k,
  8353. dataType : "json",
  8354. success : function (g) {
  8355. j(g)
  8356. },
  8357. error : function () {
  8358. j([])
  8359. }
  8360. })
  8361. }
  8362. } else {
  8363. this.source = this.options.source
  8364. }
  8365. }
  8366. },
  8367. _searchTimeout : function (a) {
  8368. clearTimeout(this.searching);
  8369. this.searching = this._delay(function () {
  8370. if (this.term !== this._value()) {
  8371. this.selectedItem = null;
  8372. this.search(null, a)
  8373. }
  8374. }, this.options.delay)
  8375. },
  8376. search : function (a, b) {
  8377. a = a != null ? a : this._value();
  8378. this.term = this._value();
  8379. if (a.length < this.options.minLength) {
  8380. return this.close(b)
  8381. }
  8382. if (this._trigger("search", b) === false) {
  8383. return
  8384. }
  8385. return this._search(a)
  8386. },
  8387. _search : function (a) {
  8388. this.pending++;
  8389. this.element.addClass("ui-autocomplete-loading");
  8390. this.cancelSearch = false;
  8391. this.source({
  8392. term : a
  8393. }, this._response())
  8394. },
  8395. _response : function () {
  8396. var a = this,
  8397. b = ++d;
  8398. return function (c) {
  8399. if (b === d) {
  8400. a.__response(c)
  8401. }
  8402. a.pending--;
  8403. if (!a.pending) {
  8404. a.element.removeClass("ui-autocomplete-loading")
  8405. }
  8406. }
  8407. },
  8408. __response : function (a) {
  8409. if (a) {
  8410. a = this._normalize(a)
  8411. }
  8412. this._trigger("response", null, {
  8413. content : a
  8414. });
  8415. if (!this.options.disabled && a && a.length && !this.cancelSearch) {
  8416. this._suggest(a);
  8417. this._trigger("open")
  8418. } else {
  8419. this._close()
  8420. }
  8421. },
  8422. close : function (a) {
  8423. this.cancelSearch = true;
  8424. this._close(a)
  8425. },
  8426. _close : function (a) {
  8427. if (this.menu.element.is(":visible")) {
  8428. this.menu.element.hide();
  8429. this.menu.blur();
  8430. this.isNewMenu = true;
  8431. this._trigger("close", a)
  8432. }
  8433. },
  8434. _change : function (a) {
  8435. if (this.previous !== this._value()) {
  8436. this._trigger("change", a, {
  8437. item : this.selectedItem
  8438. })
  8439. }
  8440. },
  8441. _normalize : function (a) {
  8442. if (a.length && a[0].label && a[0].value) {
  8443. return a
  8444. }
  8445. return e.map(a, function (b) {
  8446. if (typeof b === "string") {
  8447. return {
  8448. label : b,
  8449. value : b
  8450. }
  8451. }
  8452. return e.extend({
  8453. label : b.label || b.value,
  8454. value : b.value || b.label
  8455. }, b)
  8456. })
  8457. },
  8458. _suggest : function (b) {
  8459. var a = this.menu.element.empty();
  8460. this._renderMenu(a, b);
  8461. this.isNewMenu = true;
  8462. this.menu.refresh();
  8463. a.show();
  8464. this._resizeMenu();
  8465. a.position(e.extend({
  8466. of : this.element
  8467. }, this.options.position));
  8468. if (this.options.autoFocus) {
  8469. this.menu.next()
  8470. }
  8471. },
  8472. _resizeMenu : function () {
  8473. var a = this.menu.element;
  8474. a.css({
  8475. left : "",
  8476. top : ""
  8477. });
  8478. a.outerWidth(Math.max(a.width("").outerWidth() + 1, this.element.outerWidth()))
  8479. },
  8480. _renderMenu : function (a, c) {
  8481. var b = this;
  8482. e.each(c, function (k, j) {
  8483. b._renderItemData(a, j)
  8484. })
  8485. },
  8486. _renderItemData : function (a, b) {
  8487. return this._renderItem(a, b).data("ui-autocomplete-item", b)
  8488. },
  8489. _renderItem : function (a, b) {
  8490. return e("<li>").append(e("<a>").html(b.label)).appendTo(a)
  8491. },
  8492. _move : function (b, a) {
  8493. if (!this.menu.element.is(":visible")) {
  8494. this.search(null, a);
  8495. return
  8496. }
  8497. if (this.menu.isFirstItem() && /^previous/.test(b) || this.menu.isLastItem() && /^next/.test(b)) {
  8498. this._value(this.term);
  8499. this.menu.blur();
  8500. return
  8501. }
  8502. this.menu[b](a)
  8503. },
  8504. widget : function () {
  8505. return this.menu.element
  8506. },
  8507. _value : function () {
  8508. return this.valueMethod.apply(this.element, arguments)
  8509. },
  8510. _keyEvent : function (a, b) {
  8511. if (!this.isMultiLine || this.menu.element.is(":visible")) {
  8512. this._move(a, b);
  8513. b.preventDefault()
  8514. }
  8515. }
  8516. });
  8517. e.extend(e.ui.autocomplete, {
  8518. escapeRegex : function (a) {
  8519. return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&").replace(/[a?????]/g, "[a\xE0\xE1\xE2\xE3\xE4]").replace(/[e????]/g, "[e\xE8\xE9\xEA\xEB]").replace(/[i????]/g, "[i\xEC\xED\xEE\xEF]").replace(/[o?????]/g, "[o\xF2\xF3\xF4\xF5\xF6]").replace(/[u????]/g, "[u\xF9\xFA\xFB\xFC]").replace(/[c?]/g, "[c\xE7]").replace(/[?]/g, "[n\xF1]")
  8520. },
  8521. filter : function (c, a) {
  8522. var b = new RegExp(e.ui.autocomplete.escapeRegex(a), "i");
  8523. return e.grep(c, function (h) {
  8524. return b.test(h.label || h.value || h)
  8525. })
  8526. }
  8527. })
  8528. }
  8529. (jQuery));
  8530. (function (d, c) {
  8531. d.widget("ui.autocomplete_bold", d.ui.autocomplete, {
  8532. _create : function () {
  8533. d.ui.autocomplete.prototype._create.apply(this, []);
  8534. this.element.data(d.ui.autocomplete.prototype.widgetFullName, this.element.data(d.ui.autocomplete_bold.prototype.widgetFullName))
  8535. },
  8536. _renderItem : function (a, k) {
  8537. var j = k.label,
  8538. b = d.trim(this.term).match(/\w+/g),
  8539. m;
  8540. for (var l = 0; b && l < b.length; l++) {
  8541. j = j.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + d.ui.autocomplete.escapeRegex(b[l]) + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>")
  8542. }
  8543. m = d("<li>").data("item.autocomplete", k).append("<a>" + j + "</a>");
  8544. if (k.cssClass) {
  8545. m.addClass(k.cssClass)
  8546. }
  8547. return m.appendTo(a)
  8548. }
  8549. })
  8550. }
  8551. (jQuery));
  8552. (function (f) {
  8553. var h = 0;
  8554. function e(b, a) {
  8555. var c = (b.attr("aria-describedby") || "").split(/\s+/);
  8556. c.push(a);
  8557. b.data("ui-tooltip-id", a).attr("aria-describedby", f.trim(c.join(" ")))
  8558. }
  8559. function g(c) {
  8560. var b = c.data("ui-tooltip-id"),
  8561. d = (c.attr("aria-describedby") || "").split(/\s+/),
  8562. a = f.inArray(b, d);
  8563. if (a !== -1) {
  8564. d.splice(a, 1)
  8565. }
  8566. c.removeData("ui-tooltip-id");
  8567. d = f.trim(d.join(" "));
  8568. if (d) {
  8569. c.attr("aria-describedby", d)
  8570. } else {
  8571. c.removeAttr("aria-describedby")
  8572. }
  8573. }
  8574. f.widget("ui.tooltip", {
  8575. version : "1.10.2",
  8576. options : {
  8577. content : function () {
  8578. var a = f(this).attr("title") || "";
  8579. return f("<a>").text(a).html()
  8580. },
  8581. hide : true,
  8582. items : "[title]:not([disabled])",
  8583. position : {
  8584. my : "left top+15",
  8585. at : "left bottom",
  8586. collision : "flipfit flip"
  8587. },
  8588. show : true,
  8589. tooltipClass : null,
  8590. track : false,
  8591. close : null,
  8592. open : null
  8593. },
  8594. _create : function () {
  8595. this._on({
  8596. mouseover : "open",
  8597. focusin : "open"
  8598. });
  8599. this.tooltips = {};
  8600. this.parents = {};
  8601. if (this.options.disabled) {
  8602. this._disable()
  8603. }
  8604. },
  8605. _setOption : function (c, a) {
  8606. var b = this;
  8607. if (c === "disabled") {
  8608. this[a ? "_disable" : "_enable"]();
  8609. this.options[c] = a;
  8610. return
  8611. }
  8612. this._super(c, a);
  8613. if (c === "content") {
  8614. f.each(this.tooltips, function (d, k) {
  8615. b._updateContent(k)
  8616. })
  8617. }
  8618. },
  8619. _disable : function () {
  8620. var a = this;
  8621. f.each(this.tooltips, function (b, d) {
  8622. var c = f.Event("blur");
  8623. c.target = c.currentTarget = d[0];
  8624. a.close(c, true)
  8625. });
  8626. this.element.find(this.options.items).addBack().each(function () {
  8627. var b = f(this);
  8628. if (b.is("[title]")) {
  8629. b.data("ui-tooltip-title", b.attr("title")).attr("title", "")
  8630. }
  8631. })
  8632. },
  8633. _enable : function () {
  8634. this.element.find(this.options.items).addBack().each(function () {
  8635. var a = f(this);
  8636. if (a.data("ui-tooltip-title")) {
  8637. a.attr("title", a.data("ui-tooltip-title"))
  8638. }
  8639. })
  8640. },
  8641. open : function (c) {
  8642. var a = this,
  8643. b = f(c ? c.target : this.element).closest(this.options.items);
  8644. if (!b.length || b.data("ui-tooltip-id")) {
  8645. return
  8646. }
  8647. if (b.attr("title")) {
  8648. b.data("ui-tooltip-title", b.attr("title"))
  8649. }
  8650. b.data("ui-tooltip-open", true);
  8651. if (c && c.type === "mouseover") {
  8652. b.parents().each(function () {
  8653. var d = f(this),
  8654. k;
  8655. if (d.data("ui-tooltip-open")) {
  8656. k = f.Event("blur");
  8657. k.target = k.currentTarget = this;
  8658. a.close(k, true)
  8659. }
  8660. if (d.attr("title")) {
  8661. d.uniqueId();
  8662. a.parents[this.id] = {
  8663. element : this,
  8664. title : d.attr("title")
  8665. };
  8666. d.attr("title", "")
  8667. }
  8668. })
  8669. }
  8670. this._updateContent(b, c)
  8671. },
  8672. _updateContent : function (b, d) {
  8673. var m,
  8674. l = this.options.content,
  8675. a = this,
  8676. c = d ? d.type : null;
  8677. if (typeof l === "string") {
  8678. return this._open(d, b, l)
  8679. }
  8680. m = l.call(b[0], function (j) {
  8681. if (!b.data("ui-tooltip-open")) {
  8682. return
  8683. }
  8684. a._delay(function () {
  8685. if (d) {
  8686. d.type = c
  8687. }
  8688. this._open(d, b, j)
  8689. })
  8690. });
  8691. if (m) {
  8692. this._open(d, b, m)
  8693. }
  8694. },
  8695. _open : function (o, b, q) {
  8696. var a,
  8697. n,
  8698. p,
  8699. c = f.extend({}, this.options.position);
  8700. if (!q) {
  8701. return
  8702. }
  8703. a = this._find(b);
  8704. if (a.length) {
  8705. a.find(".ui-tooltip-content").html(q);
  8706. return
  8707. }
  8708. if (b.is("[title]")) {
  8709. if (o && o.type === "mouseover") {
  8710. b.attr("title", "")
  8711. } else {
  8712. b.removeAttr("title")
  8713. }
  8714. }
  8715. a = this._tooltip(b);
  8716. e(b, a.attr("id"));
  8717. a.find(".ui-tooltip-content").html(q);
  8718. function d(j) {
  8719. c.of = j;
  8720. if (a.is(":hidden")) {
  8721. return
  8722. }
  8723. a.position(c)
  8724. }
  8725. if (this.options.track && o && /^mouse/.test(o.type)) {
  8726. this._on(this.document, {
  8727. mousemove : d
  8728. });
  8729. d(o)
  8730. } else {
  8731. a.position(f.extend({
  8732. of : b
  8733. }, this.options.position))
  8734. }
  8735. a.hide();
  8736. this._show(a, this.options.show);
  8737. if (this.options.show && this.options.show.delay) {
  8738. p = this.delayedShow = setInterval(function () {
  8739. if (a.is(":visible")) {
  8740. d(c.of);
  8741. clearInterval(p)
  8742. }
  8743. }, f.fx.interval)
  8744. }
  8745. this._trigger("open", o, {
  8746. tooltip : a
  8747. });
  8748. n = {
  8749. keyup : function (k) {
  8750. if (k.keyCode === f.ui.keyCode.ESCAPE) {
  8751. var j = f.Event(k);
  8752. j.currentTarget = b[0];
  8753. this.close(j, true)
  8754. }
  8755. },
  8756. remove : function () {
  8757. this._removeTooltip(a)
  8758. }
  8759. };
  8760. if (!o || o.type === "mouseover") {
  8761. n.mouseleave = "close"
  8762. }
  8763. if (!o || o.type === "focusin") {
  8764. n.focusout = "close"
  8765. }
  8766. this._on(true, b, n)
  8767. },
  8768. close : function (d) {
  8769. var b = this,
  8770. c = f(d ? d.currentTarget : this.element),
  8771. a = this._find(c);
  8772. if (this.closing) {
  8773. return
  8774. }
  8775. clearInterval(this.delayedShow);
  8776. if (c.data("ui-tooltip-title")) {
  8777. c.attr("title", c.data("ui-tooltip-title"))
  8778. }
  8779. g(c);
  8780. a.stop(true);
  8781. this._hide(a, this.options.hide, function () {
  8782. b._removeTooltip(f(this))
  8783. });
  8784. c.removeData("ui-tooltip-open");
  8785. this._off(c, "mouseleave focusout keyup");
  8786. if (c[0] !== this.element[0]) {
  8787. this._off(c, "remove")
  8788. }
  8789. this._off(this.document, "mousemove");
  8790. if (d && d.type === "mouseleave") {
  8791. f.each(this.parents, function (m, l) {
  8792. f(l.element).attr("title", l.title);
  8793. delete b.parents[m]
  8794. })
  8795. }
  8796. this.closing = true;
  8797. this._trigger("close", d, {
  8798. tooltip : a
  8799. });
  8800. this.closing = false
  8801. },
  8802. _tooltip : function (c) {
  8803. var b = "ui-tooltip-" + h++,
  8804. a = f("<div>").attr({
  8805. id : b,
  8806. role : "tooltip"
  8807. }).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content " + (this.options.tooltipClass || ""));
  8808. f("<div>").addClass("ui-tooltip-content").appendTo(a);
  8809. a.appendTo(this.document[0].body);
  8810. this.tooltips[b] = c;
  8811. return a
  8812. },
  8813. _find : function (a) {
  8814. var b = a.data("ui-tooltip-id");
  8815. return b ? f("#" + b) : f()
  8816. },
  8817. _removeTooltip : function (a) {
  8818. a.remove();
  8819. delete this.tooltips[a.attr("id")]
  8820. },
  8821. _destroy : function () {
  8822. var a = this;
  8823. f.each(this.tooltips, function (b, d) {
  8824. var c = f.Event("blur");
  8825. c.target = c.currentTarget = d[0];
  8826. a.close(c, true);
  8827. f("#" + b).remove();
  8828. if (d.data("ui-tooltip-title")) {
  8829. d.attr("title", d.data("ui-tooltip-title"));
  8830. d.removeData("ui-tooltip-title")
  8831. }
  8832. })
  8833. }
  8834. })
  8835. }
  8836. (jQuery));
  8837. (function (w, m) {
  8838. var s,
  8839. q,
  8840. p,
  8841. u,
  8842. v = "ui-button ui-widget ui-state-default ui-corner-all",
  8843. o = "ui-state-hover ui-state-active ",
  8844. n = "ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",
  8845. t = function () {
  8846. var a = w(this).find(":ui-button");
  8847. setTimeout(function () {
  8848. a.button("refresh")
  8849. }, 1)
  8850. },
  8851. r = function (c) {
  8852. var d = c.name,
  8853. a = c.form,
  8854. b = w([]);
  8855. if (d) {
  8856. d = d.replace(/'/g, "\\'");
  8857. if (a) {
  8858. b = w(a).find("[name='" + d + "']")
  8859. } else {
  8860. b = w("[name='" + d + "']", c.ownerDocument).filter(function () {
  8861. return !this.form
  8862. })
  8863. }
  8864. }
  8865. return b
  8866. };
  8867. w.widget("ui.button", {
  8868. version : "1.10.2",
  8869. defaultElement : "<button>",
  8870. options : {
  8871. disabled : null,
  8872. text : true,
  8873. label : null,
  8874. icons : {
  8875. primary : null,
  8876. secondary : null
  8877. }
  8878. },
  8879. _create : function () {
  8880. this.element.closest("form").unbind("reset" + this.eventNamespace).bind("reset" + this.eventNamespace, t);
  8881. if (typeof this.options.disabled !== "boolean") {
  8882. this.options.disabled = !!this.element.prop("disabled")
  8883. } else {
  8884. this.element.prop("disabled", this.options.disabled)
  8885. }
  8886. this._determineButtonType();
  8887. this.hasTitle = !!this.buttonElement.attr("title");
  8888. var c = this,
  8889. d = this.options,
  8890. b = this.type === "checkbox" || this.type === "radio",
  8891. a = !b ? "ui-state-active" : "",
  8892. e = "ui-state-focus";
  8893. if (d.label === null) {
  8894. d.label = (this.type === "input" ? this.buttonElement.val() : this.buttonElement.html())
  8895. }
  8896. this._hoverable(this.buttonElement);
  8897. this.buttonElement.addClass(v).attr("role", "button").bind("mouseenter" + this.eventNamespace, function () {
  8898. if (d.disabled) {
  8899. return
  8900. }
  8901. if (this === s) {
  8902. w(this).addClass("ui-state-active")
  8903. }
  8904. }).bind("mouseleave" + this.eventNamespace, function () {
  8905. if (d.disabled) {
  8906. return
  8907. }
  8908. w(this).removeClass(a)
  8909. }).bind("click" + this.eventNamespace, function (f) {
  8910. if (d.disabled) {
  8911. f.preventDefault();
  8912. f.stopImmediatePropagation()
  8913. }
  8914. });
  8915. this.element.bind("focus" + this.eventNamespace, function () {
  8916. c.buttonElement.addClass(e)
  8917. }).bind("blur" + this.eventNamespace, function () {
  8918. c.buttonElement.removeClass(e)
  8919. });
  8920. if (b) {
  8921. this.element.bind("change" + this.eventNamespace, function () {
  8922. if (u) {
  8923. return
  8924. }
  8925. c.refresh()
  8926. });
  8927. this.buttonElement.bind("mousedown" + this.eventNamespace, function (f) {
  8928. if (d.disabled) {
  8929. return
  8930. }
  8931. u = false;
  8932. q = f.pageX;
  8933. p = f.pageY
  8934. }).bind("mouseup" + this.eventNamespace, function (f) {
  8935. if (d.disabled) {
  8936. return
  8937. }
  8938. if (q !== f.pageX || p !== f.pageY) {
  8939. u = true
  8940. }
  8941. })
  8942. }
  8943. if (this.type === "checkbox") {
  8944. this.buttonElement.bind("click" + this.eventNamespace, function () {
  8945. if (d.disabled || u) {
  8946. return false
  8947. }
  8948. })
  8949. } else {
  8950. if (this.type === "radio") {
  8951. this.buttonElement.bind("click" + this.eventNamespace, function () {
  8952. if (d.disabled || u) {
  8953. return false
  8954. }
  8955. w(this).addClass("ui-state-active");
  8956. c.buttonElement.attr("aria-pressed", "true");
  8957. var f = c.element[0];
  8958. r(f).not(f).map(function () {
  8959. return w(this).button("widget")[0]
  8960. }).removeClass("ui-state-active").attr("aria-pressed", "false")
  8961. })
  8962. } else {
  8963. this.buttonElement.bind("mousedown" + this.eventNamespace, function () {
  8964. if (d.disabled) {
  8965. return false
  8966. }
  8967. w(this).addClass("ui-state-active");
  8968. s = this;
  8969. c.document.one("mouseup", function () {
  8970. s = null
  8971. })
  8972. }).bind("mouseup" + this.eventNamespace, function () {
  8973. if (d.disabled) {
  8974. return false
  8975. }
  8976. w(this).removeClass("ui-state-active")
  8977. }).bind("keydown" + this.eventNamespace, function (f) {
  8978. if (d.disabled) {
  8979. return false
  8980. }
  8981. if (f.keyCode === w.ui.keyCode.SPACE || f.keyCode === w.ui.keyCode.ENTER) {
  8982. w(this).addClass("ui-state-active")
  8983. }
  8984. }).bind("keyup" + this.eventNamespace + " blur" + this.eventNamespace, function () {
  8985. w(this).removeClass("ui-state-active")
  8986. });
  8987. if (this.buttonElement.is("a")) {
  8988. this.buttonElement.keyup(function (f) {
  8989. if (f.keyCode === w.ui.keyCode.SPACE) {
  8990. w(this).click()
  8991. }
  8992. })
  8993. }
  8994. }
  8995. }
  8996. this._setOption("disabled", d.disabled);
  8997. this._resetButton()
  8998. },
  8999. _determineButtonType : function () {
  9000. var a,
  9001. b,
  9002. c;
  9003. if (this.element.is("[type=checkbox]")) {
  9004. this.type = "checkbox"
  9005. } else {
  9006. if (this.element.is("[type=radio]")) {
  9007. this.type = "radio"
  9008. } else {
  9009. if (this.element.is("input")) {
  9010. this.type = "input"
  9011. } else {
  9012. this.type = "button"
  9013. }
  9014. }
  9015. }
  9016. if (this.type === "checkbox" || this.type === "radio") {
  9017. a = this.element.parents().last();
  9018. b = "label[for='" + this.element.attr("id") + "']";
  9019. this.buttonElement = a.find(b);
  9020. if (!this.buttonElement.length) {
  9021. a = a.length ? a.siblings() : this.element.siblings();
  9022. this.buttonElement = a.filter(b);
  9023. if (!this.buttonElement.length) {
  9024. this.buttonElement = a.find(b)
  9025. }
  9026. }
  9027. this.element.addClass("ui-helper-hidden-accessible");
  9028. c = this.element.is(":checked");
  9029. if (c) {
  9030. this.buttonElement.addClass("ui-state-active")
  9031. }
  9032. this.buttonElement.prop("aria-pressed", c)
  9033. } else {
  9034. this.buttonElement = this.element
  9035. }
  9036. },
  9037. widget : function () {
  9038. return this.buttonElement
  9039. },
  9040. _destroy : function () {
  9041. this.element.removeClass("ui-helper-hidden-accessible");
  9042. this.buttonElement.removeClass(v + " " + o + " " + n).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());
  9043. if (!this.hasTitle) {
  9044. this.buttonElement.removeAttr("title")
  9045. }
  9046. },
  9047. _setOption : function (a, b) {
  9048. this._super(a, b);
  9049. if (a === "disabled") {
  9050. if (b) {
  9051. this.element.prop("disabled", true)
  9052. } else {
  9053. this.element.prop("disabled", false)
  9054. }
  9055. return
  9056. }
  9057. this._resetButton()
  9058. },
  9059. refresh : function () {
  9060. var a = this.element.is("input, button") ? this.element.is(":disabled") : this.element.hasClass("ui-button-disabled");
  9061. if (a !== this.options.disabled) {
  9062. this._setOption("disabled", a)
  9063. }
  9064. if (this.type === "radio") {
  9065. r(this.element[0]).each(function () {
  9066. if (w(this).is(":checked")) {
  9067. w(this).button("widget").addClass("ui-state-active").attr("aria-pressed", "true")
  9068. } else {
  9069. w(this).button("widget").removeClass("ui-state-active").attr("aria-pressed", "false")
  9070. }
  9071. })
  9072. } else {
  9073. if (this.type === "checkbox") {
  9074. if (this.element.is(":checked")) {
  9075. this.buttonElement.addClass("ui-state-active").attr("aria-pressed", "true")
  9076. } else {
  9077. this.buttonElement.removeClass("ui-state-active").attr("aria-pressed", "false")
  9078. }
  9079. }
  9080. }
  9081. },
  9082. _resetButton : function () {
  9083. if (this.type === "input") {
  9084. if (this.options.label) {
  9085. this.element.val(this.options.label)
  9086. }
  9087. return
  9088. }
  9089. var e = this.buttonElement.removeClass(n),
  9090. d = w("<span></span>", this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),
  9091. c = this.options.icons,
  9092. b = c.primary && c.secondary,
  9093. a = [];
  9094. if (c.primary || c.secondary) {
  9095. if (this.options.text) {
  9096. a.push("ui-button-text-icon" + (b ? "s" : (c.primary ? "-primary" : "-secondary")))
  9097. }
  9098. if (c.primary) {
  9099. e.prepend("<span class='ui-button-icon-primary ui-icon " + c.primary + "'></span>")
  9100. }
  9101. if (c.secondary) {
  9102. e.append("<span class='ui-button-icon-secondary ui-icon " + c.secondary + "'></span>")
  9103. }
  9104. if (!this.options.text) {
  9105. a.push(b ? "ui-button-icons-only" : "ui-button-icon-only");
  9106. if (!this.hasTitle) {
  9107. e.attr("title", w.trim(d))
  9108. }
  9109. }
  9110. } else {
  9111. a.push("ui-button-text-only")
  9112. }
  9113. e.addClass(a.join(" "))
  9114. }
  9115. });
  9116. w.widget("ui.buttonset", {
  9117. version : "1.10.2",
  9118. options : {
  9119. items : "button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"
  9120. },
  9121. _create : function () {
  9122. this.element.addClass("ui-buttonset")
  9123. },
  9124. _init : function () {
  9125. this.refresh()
  9126. },
  9127. _setOption : function (a, b) {
  9128. if (a === "disabled") {
  9129. this.buttons.button("option", a, b)
  9130. }
  9131. this._super(a, b)
  9132. },
  9133. refresh : function () {
  9134. var a = this.element.css("direction") === "rtl";
  9135. this.buttons = this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function () {
  9136. return w(this).button("widget")[0]
  9137. }).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(a ? "ui-corner-right" : "ui-corner-left").end().filter(":last").addClass(a ? "ui-corner-left" : "ui-corner-right").end().end()
  9138. },
  9139. _destroy : function () {
  9140. this.element.removeClass("ui-buttonset");
  9141. this.buttons.map(function () {
  9142. return w(this).button("widget")[0]
  9143. }).removeClass("ui-corner-left ui-corner-right").end().button("destroy")
  9144. }
  9145. })
  9146. }
  9147. (jQuery));
  9148. (function (d, c) {
  9149. d.widget("ui.combobox", {
  9150. options : {
  9151. selector : null,
  9152. viewselect : false,
  9153. input : null,
  9154. appendTo : null,
  9155. autoFocus : false,
  9156. delay : 0,
  9157. minLength : 0,
  9158. position : {
  9159. my : "left top",
  9160. at : "left bottom",
  9161. collision : "none"
  9162. },
  9163. source : null,
  9164. change : null,
  9165. close : null,
  9166. focus : null,
  9167. open : null,
  9168. response : null,
  9169. search : null,
  9170. select : null
  9171. },
  9172. _create : function () {
  9173. this.wrapper = d("<span>").addClass("ui-combobox").insertAfter(this.element);
  9174. this._initSource();
  9175. this._createAutocomplete();
  9176. this._createShowAllButton()
  9177. },
  9178. _select : function (b, a) {
  9179. a.item.option.selected = true;
  9180. this._trigger("select", b, {
  9181. item : a.item.option
  9182. })
  9183. },
  9184. _Selector : function (a) {
  9185. var b = d.extend({}, this.options),
  9186. f = this;
  9187. b.select = function (h, e) {
  9188. f._select(h, e)
  9189. };
  9190. b.change = function (h, e) {
  9191. f._removeIfInvalid(h, e)
  9192. };
  9193. if (this.options.selector) {
  9194. switch (this.options.selector) {
  9195. case "ui.autocomplete":
  9196. a.autocomplete(b);
  9197. break;
  9198. case "ui.autocomplete_category":
  9199. a.autocomplete_category(b);
  9200. break;
  9201. default:
  9202. a.autocomplete(b);
  9203. break
  9204. }
  9205. } else {
  9206. a.autocomplete(b)
  9207. }
  9208. },
  9209. _createAutocomplete : function () {
  9210. var b = this.element.children(":selected"),
  9211. a = b.val() ? b.text() : "",
  9212. f = this;
  9213. this.input = this.options.input = d("<input>").appendTo(this.wrapper).val(a).attr("title", "").addClass("ui-state-default ui-combobox-input ui-widget ui-widget-content ui-corner-left").tooltip({
  9214. tooltipClass : "ui-state-highlight"
  9215. });
  9216. this._Selector(this.input);
  9217. if (!this.options.viewselect) {
  9218. this.element.toggle()
  9219. }
  9220. this._on(this.input, {
  9221. click : function (j, e) {
  9222. var k = d(j.target);
  9223. if (k.autocomplete("widget").is(":visible")) {
  9224. k.autocomplete("widget").hide()
  9225. } else {
  9226. k.autocomplete("search", "")
  9227. }
  9228. }
  9229. })
  9230. },
  9231. _createShowAllButton : function () {
  9232. var a = false;
  9233. d("<a>").attr("tabIndex", -1).tooltip().appendTo(this.wrapper).button({
  9234. icons : {
  9235. primary : "ui-icon-triangle-1-s"
  9236. },
  9237. text : false
  9238. }).removeClass("ui-corner-all").addClass("ui-corner-right ui-combobox-toggle").mousedown(function () {
  9239. input = d(this).parent().find("input");
  9240. a = input.autocomplete("widget").is(":visible")
  9241. }).click(function () {
  9242. input = d(this).parent().find("input");
  9243. input.focus();
  9244. if (a) {
  9245. return
  9246. }
  9247. input.autocomplete("search", "")
  9248. })
  9249. },
  9250. _initSource : function () {
  9251. if (d.isArray(this.options.source)) {
  9252. array = this.options.source;
  9253. this.source = function (b, a) {
  9254. a(d.ui.autocomplete.filter(array, b.term))
  9255. }
  9256. } else {
  9257. if (typeof this.options.source === "string") {
  9258. url = this.options.source;
  9259. this.source = function (b, a) {
  9260. if (that.xhr) {
  9261. that.xhr.abort()
  9262. }
  9263. that.xhr = d.ajax({
  9264. url : url,
  9265. data : b,
  9266. dataType : "json",
  9267. success : function (f) {
  9268. a(f)
  9269. },
  9270. error : function () {
  9271. a([])
  9272. }
  9273. })
  9274. }
  9275. } else {
  9276. if (this.options.source == null) {
  9277. this.options.source = d.proxy(this, "_source")
  9278. }
  9279. }
  9280. }
  9281. },
  9282. _source : function (b, a) {
  9283. var f = new RegExp(d.ui.autocomplete.escapeRegex(b.term), "i");
  9284. a(this.element.children("option").map(function () {
  9285. var e = d(this).text();
  9286. if (this.value && (!b.term || f.test(e))) {
  9287. return {
  9288. label : e,
  9289. value : e,
  9290. option : this
  9291. }
  9292. }
  9293. }))
  9294. },
  9295. _removeIfInvalid : function (k, j) {
  9296. if (j.item) {
  9297. this._trigger("change", k, {
  9298. item : j.item.option
  9299. });
  9300. return
  9301. }
  9302. var b = this.input.val(),
  9303. a = b.toLowerCase(),
  9304. h = false;
  9305. this.element.children("option").each(function () {
  9306. if (d(this).text().toLowerCase() === a) {
  9307. this.selected = h = true;
  9308. return false
  9309. }
  9310. });
  9311. if (h) {
  9312. this._trigger("change", k, {
  9313. item : this.element.children("option:selected")
  9314. });
  9315. return
  9316. }
  9317. this.input.val("").tooltip("open");
  9318. this.element.val("");
  9319. this._delay(function () {
  9320. this.input.tooltip("close").attr("title", "")
  9321. }, 2500);
  9322. this.input.data("ui-autocomplete").term = ""
  9323. },
  9324. _destroy : function () {
  9325. this.wrapper.remove();
  9326. this.element.show()
  9327. }
  9328. })
  9329. }
  9330. (jQuery));
  9331. (function (b) {
  9332. b.simplePlaceholder = {
  9333. placeholderClass : null,
  9334. hidePlaceholder : function () {
  9335. var a = b(this);
  9336. if (a.val() == a.attr("placeholder") && a.data(b.simplePlaceholder.placeholderData)) {
  9337. a.val("").removeClass(b.simplePlaceholder.placeholderClass).data(b.simplePlaceholder.placeholderData, false)
  9338. }
  9339. },
  9340. showPlaceholder : function () {
  9341. var a = b(this);
  9342. if (a.val() == "") {
  9343. a.val(a.attr("placeholder")).addClass(b.simplePlaceholder.placeholderClass).data(b.simplePlaceholder.placeholderData, true)
  9344. }
  9345. },
  9346. preventPlaceholderSubmit : function () {
  9347. b(this).find(".simple-placeholder").each(function (d) {
  9348. var a = b(this);
  9349. if (a.val() == a.attr("placeholder") && a.data(b.simplePlaceholder.placeholderData)) {
  9350. a.val("")
  9351. }
  9352. });
  9353. return true
  9354. }
  9355. };
  9356. b.fn.simplePlaceholder = function (d) {
  9357. if (document.createElement("input").placeholder == undefined) {
  9358. var a = {
  9359. placeholderClass : "placeholder",
  9360. placeholderData : "simplePlaceholder.placeholding"
  9361. };
  9362. if (d) {
  9363. b.extend(a, d)
  9364. }
  9365. b.extend(b.simplePlaceholder, a);
  9366. this.each(function () {
  9367. var c = b(this);
  9368. c.focus(b.simplePlaceholder.hidePlaceholder);
  9369. c.blur(b.simplePlaceholder.showPlaceholder);
  9370. c.data(b.simplePlaceholder.placeholderData, false);
  9371. if (c.val() == "") {
  9372. c.val(c.attr("placeholder"));
  9373. c.addClass(b.simplePlaceholder.placeholderClass);
  9374. c.data(b.simplePlaceholder.placeholderData, true)
  9375. }
  9376. c.addClass("simple-placeholder");
  9377. b(this.form).submit(b.simplePlaceholder.preventPlaceholderSubmit)
  9378. })
  9379. }
  9380. return this
  9381. }
  9382. })(jQuery);
  9383. var flipCounter = function (ab, S) {
  9384. var aa = {
  9385. value : 0,
  9386. inc : 1,
  9387. pace : 1000,
  9388. auto : true,
  9389. tFH : 39,
  9390. bFH : 64,
  9391. fW : 53,
  9392. bOffset : 390
  9393. };
  9394. var U = window.document,
  9395. V = typeof ab !== "undefined" && ab !== "" ? ab : "flip-counter",
  9396. W = U.getElementById(V);
  9397. var d = {};
  9398. for (var T in aa) {
  9399. d[T] = (T in S) ? S[T] : aa[T]
  9400. }
  9401. var X = [],
  9402. Y = [],
  9403. J,
  9404. M,
  9405. y,
  9406. o,
  9407. x = null,
  9408. I,
  9409. K,
  9410. ae = {
  9411. q : null,
  9412. pace : 0,
  9413. inc : 0
  9414. };
  9415. this.setValue = function (a) {
  9416. if (L(a)) {
  9417. y = d.value;
  9418. o = a;
  9419. d.value = a;
  9420. Z(y, o)
  9421. }
  9422. return this
  9423. };
  9424. this.setIncrement = function (a) {
  9425. d.inc = L(a) ? a : aa.inc;
  9426. return this
  9427. };
  9428. this.setPace = function (a) {
  9429. d.pace = L(a) ? a : aa.pace;
  9430. return this
  9431. };
  9432. this.setAuto = function (a) {
  9433. if (a && !d.auto) {
  9434. d.auto = true;
  9435. R()
  9436. }
  9437. if (!a && d.auto) {
  9438. if (x) {
  9439. ac()
  9440. }
  9441. d.auto = false
  9442. }
  9443. return this
  9444. };
  9445. this.step = function () {
  9446. if (!d.auto) {
  9447. R()
  9448. }
  9449. return this
  9450. };
  9451. this.add = function (a) {
  9452. if (L(a)) {
  9453. y = d.value;
  9454. d.value += a;
  9455. o = d.value;
  9456. Z(y, o)
  9457. }
  9458. return this
  9459. };
  9460. this.subtract = function (a) {
  9461. if (L(a)) {
  9462. y = d.value;
  9463. d.value -= a;
  9464. if (d.value >= 0) {
  9465. o = d.value
  9466. } else {
  9467. o = "0";
  9468. d.value = 0
  9469. }
  9470. Z(y, o)
  9471. }
  9472. return this
  9473. };
  9474. this.incrementTo = function (j, e, h) {
  9475. if (x) {
  9476. ac()
  9477. }
  9478. if (typeof e != "undefined") {
  9479. var b = L(e) ? e * 1000 : 10000,
  9480. f = typeof h != "undefined" && L(h) ? h : d.pace,
  9481. k = typeof j != "undefined" && L(j) ? j - d.value : 0,
  9482. a,
  9483. l,
  9484. c,
  9485. g = 0;
  9486. ae.q = null;
  9487. f = (b / k > f) ? Math.round((b / k) / 10) * 10 : f;
  9488. a = Math.floor(b / f);
  9489. l = Math.floor(k / a);
  9490. c = ad(k, a, l, f, b);
  9491. if (k > 0) {
  9492. while (c.result === false && g < 100) {
  9493. f += 10;
  9494. a = Math.floor(b / f);
  9495. l = Math.floor(k / a);
  9496. c = ad(k, a, l, f, b);
  9497. g++
  9498. }
  9499. if (g == 100) {
  9500. d.inc = ae.inc;
  9501. d.pace = ae.pace
  9502. } else {
  9503. d.inc = l;
  9504. d.pace = f
  9505. }
  9506. Q(j, true, a)
  9507. }
  9508. } else {
  9509. Q(j)
  9510. }
  9511. };
  9512. this.getValue = function () {
  9513. return d.value
  9514. };
  9515. this.stop = function () {
  9516. if (x) {
  9517. ac()
  9518. }
  9519. return this
  9520. };
  9521. function R() {
  9522. y = d.value;
  9523. d.value += d.inc;
  9524. o = d.value;
  9525. Z(y, o);
  9526. if (d.auto === true) {
  9527. x = setTimeout(R, d.pace)
  9528. }
  9529. }
  9530. function Q(a, g, f) {
  9531. var b = d.value,
  9532. c = (typeof g == "undefined") ? false : g,
  9533. e = (typeof f == "undefined") ? 1 : f;
  9534. if (c === true) {
  9535. e--
  9536. }
  9537. if (b != a) {
  9538. y = d.value,
  9539. d.auto = true;
  9540. if (b + d.inc <= a && e != 0) {
  9541. b += d.inc
  9542. } else {
  9543. b = a
  9544. }
  9545. d.value = b;
  9546. o = d.value;
  9547. Z(y, o);
  9548. x = setTimeout(function () {
  9549. Q(a, c, e)
  9550. }, d.pace)
  9551. } else {
  9552. d.auto = false
  9553. }
  9554. }
  9555. function Z(e, b) {
  9556. X = O(e);
  9557. Y = O(b);
  9558. var g,
  9559. c = X.length,
  9560. a = Y.length;
  9561. if (a > c) {
  9562. g = a - c;
  9563. while (g > 0) {
  9564. ag(a - g + 1, Y[a - g]);
  9565. g--
  9566. }
  9567. }
  9568. if (a < c) {
  9569. g = c - a;
  9570. while (g > 0) {
  9571. P(c - g);
  9572. g--
  9573. }
  9574. }
  9575. for (var f = 0; f < c; f++) {
  9576. if (Y[f] != X[f]) {
  9577. af(f, X[f], Y[f])
  9578. }
  9579. }
  9580. }
  9581. function af(f, h, k) {
  9582. var g,
  9583. e = 0,
  9584. b,
  9585. c,
  9586. j = ["-" + d.fW + "px -" + (h * d.tFH) + "px", (d.fW * -2) + "px -" + (h * d.tFH) + "px", "0 -" + (k * d.tFH) + "px", "-" + d.fW + "px -" + (h * d.bFH + d.bOffset) + "px", (d.fW * -2) + "px -" + (k * d.bFH + d.bOffset) + "px", (d.fW * -3) + "px -" + (k * d.bFH + d.bOffset) + "px", "0 -" + (k * d.bFH + d.bOffset) + "px"];
  9587. if (d.auto === true && d.pace <= 300) {
  9588. switch (f) {
  9589. case 0:
  9590. g = d.pace / 6;
  9591. break;
  9592. case 1:
  9593. g = d.pace / 5;
  9594. break;
  9595. case 2:
  9596. g = d.pace / 4;
  9597. break;
  9598. case 3:
  9599. g = d.pace / 3;
  9600. break;
  9601. default:
  9602. g = d.pace / 1.5;
  9603. break
  9604. }
  9605. } else {
  9606. g = 80
  9607. }
  9608. g = (g > 80) ? 80 : g;
  9609. function a() {
  9610. if (e < 7) {
  9611. b = e < 3 ? "t" : "b";
  9612. c = U.getElementById(V + "_" + b + "_d" + f);
  9613. if (c) {
  9614. c.style.backgroundPosition = j[e]
  9615. }
  9616. e++;
  9617. if (e != 3) {
  9618. setTimeout(a, g)
  9619. } else {
  9620. a()
  9621. }
  9622. }
  9623. }
  9624. a()
  9625. }
  9626. function O(a) {
  9627. return a.toString().split("").reverse()
  9628. }
  9629. function ag(c, b) {
  9630. var a = Number(c) - 1;
  9631. I = U.createElement("ul");
  9632. I.className = "cd";
  9633. I.id = V + "_d" + a;
  9634. I.innerHTML = '<li class="t" id="' + V + "_t_d" + a + '"></li><li class="b" id="' + V + "_b_d" + a + '"></li>';
  9635. if (a % 3 == 0) {
  9636. K = U.createElement("ul");
  9637. K.className = "cd";
  9638. K.innerHTML = '<li class="s"></li>';
  9639. W.insertBefore(K, W.firstChild)
  9640. }
  9641. W.insertBefore(I, W.firstChild);
  9642. U.getElementById(V + "_t_d" + a).style.backgroundPosition = "0 -" + (b * d.tFH) + "px";
  9643. U.getElementById(V + "_b_d" + a).style.backgroundPosition = "0 -" + (b * d.bFH + d.bOffset) + "px"
  9644. }
  9645. function P(c) {
  9646. var a = U.getElementById(V + "_d" + c);
  9647. W.removeChild(a);
  9648. var b = W.firstChild.firstChild;
  9649. if ((" " + b.className + " ").indexOf(" s ") > -1) {
  9650. a = b.parentNode;
  9651. W.removeChild(a)
  9652. }
  9653. }
  9654. function N(c) {
  9655. var b = c.toString(),
  9656. f = b.length,
  9657. e = 1,
  9658. g;
  9659. for (g = 0; g < f; g++) {
  9660. I = U.createElement("ul");
  9661. I.className = "cd";
  9662. I.id = V + "_d" + g;
  9663. I.innerHTML = I.innerHTML = '<li class="t" id="' + V + "_t_d" + g + '"></li><li class="b" id="' + V + "_b_d" + g + '"></li>';
  9664. W.insertBefore(I, W.firstChild);
  9665. if (e != (f) && e % 3 == 0) {
  9666. K = U.createElement("ul");
  9667. K.className = "cd";
  9668. K.innerHTML = '<li class="s"></li>';
  9669. W.insertBefore(K, W.firstChild)
  9670. }
  9671. e++
  9672. }
  9673. var a = O(b);
  9674. for (g = 0; g < f; g++) {
  9675. U.getElementById(V + "_t_d" + g).style.backgroundPosition = "0 -" + (a[g] * d.tFH) + "px";
  9676. U.getElementById(V + "_b_d" + g).style.backgroundPosition = "0 -" + (a[g] * d.bFH + d.bOffset) + "px"
  9677. }
  9678. if (d.auto === true) {
  9679. x = setTimeout(R, d.pace)
  9680. }
  9681. }
  9682. function ad(h, g, j, f, b) {
  9683. var c = {
  9684. result : true
  9685. },
  9686. e;
  9687. c.cond1 = (h / g >= 1) ? true : false;
  9688. c.cond2 = (g * j <= h) ? true : false;
  9689. c.cond3 = (Math.abs(g * j - h) <= 10) ? true : false;
  9690. c.cond4 = (Math.abs(g * f - b) <= 100) ? true : false;
  9691. c.cond5 = (g * f <= b) ? true : false;
  9692. if (c.cond1 && c.cond2 && c.cond4 && c.cond5) {
  9693. e = Math.abs(h - (g * j)) + Math.abs(g * f - b);
  9694. if (ae.q === null) {
  9695. ae.q = e
  9696. }
  9697. if (e <= ae.q) {
  9698. ae.pace = f;
  9699. ae.inc = j
  9700. }
  9701. }
  9702. for (var a = 1; a <= 5; a++) {
  9703. if (c["cond" + a] === false) {
  9704. c.result = false
  9705. }
  9706. }
  9707. return c
  9708. }
  9709. function L(a) {
  9710. return !isNaN(parseFloat(a)) && isFinite(a)
  9711. }
  9712. function ac() {
  9713. clearTimeout(x);
  9714. x = null
  9715. }
  9716. N(d.value)
  9717. };
  9718. window.requestAnimFrame = (function () {
  9719. return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (d, c) {
  9720. window.setTimeout(d, 1000 / 60)
  9721. }
  9722. })();
  9723. window.requestInterval = function (f, g) {
  9724. if (!window.requestAnimationFrame && !window.webkitRequestAnimationFrame && !(window.mozRequestAnimationFrame && window.mozCancelRequestAnimationFrame) && !window.oRequestAnimationFrame && !window.msRequestAnimationFrame) {
  9725. return window.setInterval(f, g)
  9726. }
  9727. var h = new Date().getTime(),
  9728. k = new Object();
  9729. function j() {
  9730. k.value = requestAnimFrame(j);
  9731. var b = new Date().getTime(),
  9732. a = b - h;
  9733. if (a >= g) {
  9734. f.call();
  9735. h = new Date().getTime()
  9736. }
  9737. }
  9738. k.value = requestAnimFrame(j);
  9739. return k
  9740. };
  9741. window.clearRequestInterval = function (b) {
  9742. window.cancelAnimationFrame ? window.cancelAnimationFrame(b.value) : window.webkitCancelAnimationFrame ? window.webkitCancelAnimationFrame(b.value) : window.webkitCancelRequestAnimationFrame ? window.webkitCancelRequestAnimationFrame(b.value) : window.mozCancelRequestAnimationFrame ? window.mozCancelRequestAnimationFrame(b.value) : window.oCancelRequestAnimationFrame ? window.oCancelRequestAnimationFrame(b.value) : window.msCancelRequestAnimationFrame ? window.msCancelRequestAnimationFrame(b.value) : clearInterval(b)
  9743. };
  9744. window.requestTimeout = function (f, g) {
  9745. if (!window.requestAnimationFrame && !window.webkitRequestAnimationFrame && !(window.mozRequestAnimationFrame && window.mozCancelRequestAnimationFrame) && !window.oRequestAnimationFrame && !window.msRequestAnimationFrame) {
  9746. return window.setTimeout(f, g)
  9747. }
  9748. var h = new Date().getTime(),
  9749. k = new Object();
  9750. function j() {
  9751. var b = new Date().getTime(),
  9752. a = b - h;
  9753. a >= g ? f.call() : k.value = requestAnimFrame(j)
  9754. }
  9755. k.value = requestAnimFrame(j);
  9756. return k
  9757. };
  9758. window.clearRequestTimeout = function (b) {
  9759. window.cancelAnimationFrame ? window.cancelAnimationFrame(b.value) : window.webkitCancelAnimationFrame ? window.webkitCancelAnimationFrame(b.value) : window.webkitCancelRequestAnimationFrame ? window.webkitCancelRequestAnimationFrame(b.value) : window.mozCancelRequestAnimationFrame ? window.mozCancelRequestAnimationFrame(b.value) : window.oCancelRequestAnimationFrame ? window.oCancelRequestAnimationFrame(b.value) : window.msCancelRequestAnimationFrame ? window.msCancelRequestAnimationFrame(b.value) : clearTimeout(b)
  9760. };
  9761. var $p = function () {
  9762. var e = arguments,
  9763. f = e[0],
  9764. d = false;
  9765. if (typeof f === "string") {
  9766. d = e[1] || false
  9767. } else {
  9768. if (f && !f[0] && !f.length) {
  9769. f = [f]
  9770. }
  9771. }
  9772. return $p.core(f, d)
  9773. }, pure = $p;
  9774. $p.core = function (F, aa, I) {
  9775. var O = [],
  9776. T,
  9777. S,
  9778. P = "_s" + Math.floor(Math.random() * 1000000) + "_",
  9779. ag = "_a" + Math.floor(Math.random() * 1000000) + "_",
  9780. E = /^(\+)?([^\@\+]+)?\@?([^\+]+)?(\+)?$/,
  9781. af = {
  9782. IMG : "src",
  9783. INPUT : "value"
  9784. },
  9785. Q = Array.isArray ? function (a) {
  9786. return Array.isArray(a)
  9787. }
  9788. : function (a) {
  9789. return Object.prototype.toString.call(a) === "[object Array]"
  9790. };
  9791. I = I || V();
  9792. switch (typeof F) {
  9793. case "string":
  9794. O = I.find(aa || document, F);
  9795. if (O.length === 0) {
  9796. Y('The template "' + F + '" was not found')
  9797. }
  9798. break;
  9799. case "undefined":
  9800. Y("The root of the template is undefined, check your selector");
  9801. break;
  9802. default:
  9803. O = F
  9804. }
  9805. for (T = 0, S = O.length; T < S; T++) {
  9806. I[T] = O[T]
  9807. }
  9808. I.length = S;
  9809. function Y(a) {
  9810. if (typeof console !== "undefined") {
  9811. console.log(a)
  9812. }
  9813. throw ("pure error: " + a)
  9814. }
  9815. function V() {
  9816. var a = $p.plugins,
  9817. b = function () {};
  9818. b.prototype = a;
  9819. b.prototype.compile = a.compile || ad;
  9820. b.prototype.render = a.render || H;
  9821. b.prototype.autoRender = a.autoRender || ae;
  9822. b.prototype.find = a.find || X;
  9823. b.prototype._compiler = ac;
  9824. b.prototype._error = Y;
  9825. return new b()
  9826. }
  9827. function K(a) {
  9828. return a.outerHTML || (function (b) {
  9829. var d = document.createElement("div"),
  9830. c;
  9831. d.appendChild(b.cloneNode(true));
  9832. c = d.innerHTML;
  9833. d = null;
  9834. return c
  9835. }
  9836. (a))
  9837. }
  9838. function M(a, b) {
  9839. return function (c) {
  9840. return a(String(b.call(c.item || c.context, c)))
  9841. }
  9842. }
  9843. function X(b, a) {
  9844. if (typeof b === "string") {
  9845. a = b;
  9846. b = false
  9847. }
  9848. return (b || document).querySelectorAll(a)
  9849. }
  9850. function ab(a, b) {
  9851. return function (k) {
  9852. var c = [a[0]],
  9853. f = a.length,
  9854. h,
  9855. d,
  9856. l,
  9857. e,
  9858. g;
  9859. try {
  9860. for (g = 1; g < f; g++) {
  9861. h = b[g].call(this, k);
  9862. d = a[g];
  9863. if (h === "") {
  9864. l = c[c.length - 1];
  9865. if ((e = l.search(/[^\s]+=\"?$/)) > -1) {
  9866. c[c.length - 1] = l.substring(0, e);
  9867. d = d.substr(1)
  9868. }
  9869. }
  9870. c[c.length] = h;
  9871. c[c.length] = d
  9872. }
  9873. return c.join("")
  9874. } catch (j) {
  9875. if (console && console.log) {
  9876. console.log(j.stack || j.message + " (" + j.type + (j["arguments"] ? ", " + j["arguments"].join("-") : "") + "). Use Firefox or Chromium/Chrome to get a full stack of the error. ")
  9877. }
  9878. return ""
  9879. }
  9880. }
  9881. }
  9882. function J(a) {
  9883. var b = a.match(/^(\w+)\s*<-\s*(\S+)?$/);
  9884. if (b === null) {
  9885. Y('bad loop spec: "' + a + '"')
  9886. }
  9887. if (b[1] === "item") {
  9888. Y('"item<-..." is a reserved word for the current running iteration.\n\nPlease choose another name for your loop.')
  9889. }
  9890. if (!b[2] || b[2].toLowerCase() === "context") {
  9891. b[2] = function (c) {
  9892. return c.context
  9893. }
  9894. } else {
  9895. if ((b[2] && b[2].indexOf("context") === 0)) {
  9896. b[2] = Z(b[2].replace(/^context\.?/, ""))
  9897. }
  9898. }
  9899. return {
  9900. name : b[1],
  9901. sel : b[2]
  9902. }
  9903. }
  9904. function Z(a) {
  9905. if (typeof(a) === "function") {
  9906. return function (k) {
  9907. var j = a.call(k.item || k.context || k, k);
  9908. return !j && j !== 0 ? "" : j
  9909. }
  9910. }
  9911. var f = a.match(/^[\da-zA-Z\$_\@][\w\$:\-]*(\.[\w\$:\-]*[^\.])*$/),
  9912. h = false,
  9913. b = a,
  9914. e = [],
  9915. d = [],
  9916. g = 0,
  9917. c;
  9918. if (f === null) {
  9919. if (/\'|\"/.test(b.charAt(0))) {
  9920. if (/\'|\"/.test(b.charAt(b.length - 1))) {
  9921. c = b.substring(1, b.length - 1);
  9922. return function () {
  9923. return c
  9924. }
  9925. }
  9926. } else {
  9927. while ((f = b.match(/#\{([^{}]+)\}/)) !== null) {
  9928. h = true;
  9929. e[g++] = b.slice(0, f.index);
  9930. d[g] = Z(f[1]);
  9931. b = b.slice(f.index + f[0].length, b.length)
  9932. }
  9933. }
  9934. if (!h) {
  9935. return function () {
  9936. return a
  9937. }
  9938. }
  9939. e[g] = b;
  9940. return ab(e, d)
  9941. }
  9942. f = a.split(".");
  9943. return function (o) {
  9944. var n = o.context || o,
  9945. j = o[f[0]],
  9946. l = 0,
  9947. k,
  9948. m;
  9949. if (j && typeof j.item !== "undefined") {
  9950. l += 1;
  9951. if (f[l] === "pos") {
  9952. return j.pos
  9953. }
  9954. n = j.item
  9955. }
  9956. k = f.length;
  9957. while (l < k) {
  9958. if (!n) {
  9959. break
  9960. }
  9961. m = n[f[l]];
  9962. n = typeof m === "function" ? n[f[l]].call(n) : m;
  9963. l++
  9964. }
  9965. return (!n && n !== 0) ? "" : n
  9966. }
  9967. }
  9968. function U(o, e, l) {
  9969. var h,
  9970. g,
  9971. d,
  9972. p,
  9973. r,
  9974. a = [],
  9975. j,
  9976. b,
  9977. n,
  9978. f,
  9979. k,
  9980. m,
  9981. q,
  9982. c;
  9983. if (typeof e === "string") {
  9984. h = e;
  9985. j = e.match(E);
  9986. if (!j) {
  9987. Y("bad selector syntax: " + e)
  9988. }
  9989. g = j[1];
  9990. d = j[2];
  9991. p = j[3];
  9992. r = j[4];
  9993. if (d === "." || (!d && p)) {
  9994. a[0] = o
  9995. } else {
  9996. a = I.find(o, d)
  9997. }
  9998. if (!a || a.length === 0) {
  9999. return Y('The node "' + e + '" was not found in the template:\n' + K(o).replace(/\t/g, " "))
  10000. }
  10001. } else {
  10002. g = e.prepend;
  10003. p = e.attr;
  10004. r = e.append;
  10005. a = [o]
  10006. }
  10007. if (g || r) {
  10008. if (g && r) {
  10009. Y("append/prepend cannot take place at the same time")
  10010. } else {
  10011. if (l) {
  10012. Y("no append/prepend/replace modifiers allowed for loop target")
  10013. } else {
  10014. if (r && l) {
  10015. Y("cannot append with loop (sel: " + h + ")")
  10016. }
  10017. }
  10018. }
  10019. }
  10020. if (p) {
  10021. k = (/^style$/i).test(p);
  10022. m = (/^class$/i).test(p);
  10023. q = m ? "className" : p;
  10024. b = function (s, u) {
  10025. s.setAttribute(ag + p, u);
  10026. if (s[q] && !k) {
  10027. try {
  10028. s[q] = ""
  10029. } catch (t) {}
  10030.  
  10031. }
  10032. if (s.nodeType === 1) {
  10033. s.removeAttribute(p);
  10034. if (m) {
  10035. s.removeAttribute(q)
  10036. }
  10037. }
  10038. };
  10039. if (k || m) {
  10040. if (k) {
  10041. n = function (s) {
  10042. return s.style.cssText
  10043. }
  10044. } else {
  10045. n = function (s) {
  10046. return s.className
  10047. }
  10048. }
  10049. } else {
  10050. n = function (s) {
  10051. return s.getAttribute(p)
  10052. }
  10053. }
  10054. f = function (s) {
  10055. return s.replace(/\"/g, "&quot;")
  10056. };
  10057. if (g) {
  10058. c = function (t, s) {
  10059. b(t, s + n(t))
  10060. }
  10061. } else {
  10062. if (r) {
  10063. c = function (t, s) {
  10064. b(t, n(t) + s)
  10065. }
  10066. } else {
  10067. c = function (t, s) {
  10068. b(t, s)
  10069. }
  10070. }
  10071. }
  10072. } else {
  10073. if (l) {
  10074. c = function (t, u) {
  10075. var s = t.parentNode;
  10076. if (s) {
  10077. s.insertBefore(document.createTextNode(u), t.nextSibling);
  10078. s.removeChild(t)
  10079. } else {
  10080. Y("The template root, can't be looped.")
  10081. }
  10082. }
  10083. } else {
  10084. if (g) {
  10085. c = function (t, s) {
  10086. t.insertBefore(document.createTextNode(s), t.firstChild)
  10087. }
  10088. } else {
  10089. if (r) {
  10090. c = function (t, s) {
  10091. t.appendChild(document.createTextNode(s))
  10092. }
  10093. } else {
  10094. c = function (t, s) {
  10095. while (t.firstChild) {
  10096. t.removeChild(t.firstChild)
  10097. }
  10098. t.appendChild(document.createTextNode(s))
  10099. }
  10100. }
  10101. }
  10102. }
  10103. f = function (s) {
  10104. return s
  10105. }
  10106. }
  10107. return {
  10108. attr : p,
  10109. nodes : a,
  10110. set : c,
  10111. sel : h,
  10112. quotefn : f
  10113. }
  10114. }
  10115. function R(a, c) {
  10116. var b = P + c + ":",
  10117. d;
  10118. for (d = 0; d < a.nodes.length; d++) {
  10119. a.set(a.nodes[d], b)
  10120. }
  10121. }
  10122. function N(b, e, c, a, d) {
  10123. return function (o) {
  10124. var q = e(o),
  10125. j = o[b],
  10126. f = {
  10127. items : q
  10128. },
  10129. n = 0,
  10130. k,
  10131. g = [],
  10132. p = function (s, v, t, r) {
  10133. var u = o.pos,
  10134. x = o.item,
  10135. w = o.items;
  10136. o.pos = v.pos = s;
  10137. o.item = v.item = q[s];
  10138. o.items = q;
  10139. if (typeof r !== "undefined") {
  10140. (o.length = r)
  10141. }
  10142. if (typeof t === "function" && t.call(o.item, o) === false) {
  10143. n++;
  10144. return
  10145. }
  10146. g.push(c.call(o.item, o));
  10147. o.pos = u;
  10148. o.item = x;
  10149. o.items = w
  10150. },
  10151. h,
  10152. m,
  10153. l;
  10154. o[b] = f;
  10155. if (Q(q)) {
  10156. k = q.length || 0;
  10157. if (typeof a === "function") {
  10158. q.sort(function (s, r) {
  10159. return a.call(o, s, r)
  10160. })
  10161. }
  10162. for (m = 0, l = k; m < l; m++) {
  10163. p(m, f, d, k - n)
  10164. }
  10165. } else {
  10166. if (q && typeof a !== "undefined") {
  10167. Y("sort is only available on arrays, not objects")
  10168. }
  10169. for (h in q) {
  10170. if (q.hasOwnProperty(h)) {
  10171. p(h, f, d)
  10172. }
  10173. }
  10174. }
  10175. if (typeof j !== "undefined") {
  10176. o[b] = j
  10177. } else {
  10178. delete o[b]
  10179. }
  10180. return g.join("")
  10181. }
  10182. }
  10183. function L(p, d, j, m) {
  10184. var q = false,
  10185. h,
  10186. c,
  10187. n,
  10188. e,
  10189. o,
  10190. b,
  10191. k,
  10192. a,
  10193. f,
  10194. g,
  10195. l;
  10196. for (e in j) {
  10197. if (j.hasOwnProperty(e)) {
  10198. if (e === "sort") {
  10199. c = j.sort
  10200. } else {
  10201. if (e === "filter") {
  10202. n = j.filter
  10203. } else {
  10204. if (q) {
  10205. Y("cannot have more than one loop on a target")
  10206. } else {
  10207. h = e;
  10208. q = true
  10209. }
  10210. }
  10211. }
  10212. }
  10213. }
  10214. if (!h) {
  10215. Y("Error in the selector: " + d + "\nA directive action must be a string, a function or a loop(<-)")
  10216. }
  10217. o = j[h];
  10218. if (typeof(o) === "string" || typeof(o) === "function") {
  10219. j = {};
  10220. j[h] = {
  10221. root : o
  10222. };
  10223. return L(p, d, j, m)
  10224. }
  10225. b = J(h);
  10226. k = Z(b.sel);
  10227. a = U(p, d, true);
  10228. f = a.nodes;
  10229. for (T = 0; T < f.length; T++) {
  10230. g = f[T];
  10231. l = ac(g, o);
  10232. m[m.length] = M(a.quotefn, N(b.name, k, l, c, n));
  10233. a.nodes = [g];
  10234. R(a, m.length - 1)
  10235. }
  10236. return a
  10237. }
  10238. function W(d, k) {
  10239. var b = d.getElementsByTagName("*"),
  10240. p = [],
  10241. a = {
  10242. a : [],
  10243. l : {}
  10244.  
  10245. },
  10246. l,
  10247. g,
  10248. j,
  10249. h,
  10250. f,
  10251. e,
  10252. c,
  10253. m,
  10254. n;
  10255. for (j = -1, h = b.length; j < h; j++) {
  10256. c = j > -1 ? b[j] : d;
  10257. if (c.nodeType === 1 && c.className !== "") {
  10258. m = c.className.split(" ");
  10259. for (f = 0, e = m.length; f < e; f++) {
  10260. n = m[f];
  10261. l = o(n, c.tagName);
  10262. if (l !== false) {
  10263. g = (/nodevalue/i).test(l.attr);
  10264. if (l.sel.indexOf("@") > -1 || g) {
  10265. c.className = c.className.replace("@" + l.attr, "");
  10266. if (g) {
  10267. l.attr = false
  10268. }
  10269. }
  10270. p.push({
  10271. n : c,
  10272. cspec : l
  10273. })
  10274. }
  10275. }
  10276. }
  10277. }
  10278. function o(w, z) {
  10279. var v = w.match(E),
  10280. x = v[3] || af[z],
  10281. u = {
  10282. prepend : !!v[1],
  10283. prop : v[2],
  10284. attr : x,
  10285. append : !!v[4],
  10286. sel : w
  10287. },
  10288. t,
  10289. s,
  10290. r,
  10291. q,
  10292. y;
  10293. for (t = a.a.length - 1; t >= 0; t--) {
  10294. r = a.a[t];
  10295. q = r.l[0];
  10296. y = q && q[u.prop];
  10297. if (typeof y !== "undefined") {
  10298. u.prop = r.p + "." + u.prop;
  10299. if (a.l[u.prop] === true) {
  10300. y = y[0]
  10301. }
  10302. break
  10303. }
  10304. }
  10305. if (typeof y === "undefined") {
  10306. y = Z(u.prop)(Q(k) ? k[0] : k);
  10307. if (y === "") {
  10308. return false
  10309. }
  10310. }
  10311. if (Q(y)) {
  10312. a.a.push({
  10313. l : y,
  10314. p : u.prop
  10315. });
  10316. a.l[u.prop] = true;
  10317. u.t = "loop"
  10318. } else {
  10319. u.t = "str"
  10320. }
  10321. return u
  10322. }
  10323. return p
  10324. }
  10325. function ac(s, t, u, w) {
  10326. var q = [],
  10327. l,
  10328. k,
  10329. v,
  10330. j,
  10331. x,
  10332. g,
  10333. m,
  10334. h,
  10335. n,
  10336. r,
  10337. b,
  10338. c,
  10339. a,
  10340. o,
  10341. p,
  10342. e,
  10343. d = [],
  10344. f;
  10345. w = w || (u && W(s, u));
  10346. if (u) {
  10347. while (w.length > 0) {
  10348. v = w[0].cspec;
  10349. j = w[0].n;
  10350. w.splice(0, 1);
  10351. if (v.t === "str") {
  10352. x = U(j, v, false);
  10353. R(x, q.length);
  10354. q[q.length] = M(x.quotefn, Z(v.prop))
  10355. } else {
  10356. m = Z(v.sel);
  10357. x = U(j, v, true);
  10358. g = x.nodes;
  10359. for (l = 0, k = g.length; l < k; l++) {
  10360. h = g[l];
  10361. n = ac(h, false, u, w);
  10362. q[q.length] = M(x.quotefn, N(v.sel, m, n));
  10363. x.nodes = [h];
  10364. R(x, q.length - 1)
  10365. }
  10366. }
  10367. }
  10368. }
  10369. for (c in t) {
  10370. if (t.hasOwnProperty(c)) {
  10371. o = 0;
  10372. r = t[c];
  10373. b = c.split(/\s*,\s*/);
  10374. a = b.length;
  10375. do {
  10376. if (typeof(r) === "function" || typeof(r) === "string") {
  10377. c = b[o];
  10378. x = U(s, c, false);
  10379. R(x, q.length);
  10380. q[q.length] = M(x.quotefn, Z(r))
  10381. } else {
  10382. L(s, c, r, q)
  10383. }
  10384. } while (++o < a)
  10385. }
  10386. }
  10387. p = K(s);
  10388. p = p.replace(/<([^>]+)\s(value\=""|selected)\s?([^>]*)>/ig, "<$1 $3>");
  10389. p = p.split(ag).join("");
  10390. e = p.split(P);
  10391. for (o = 1; o < e.length; o++) {
  10392. f = e[o];
  10393. d[o] = q[parseInt(f, 10)];
  10394. e[o] = f.substring(f.indexOf(":") + 1)
  10395. }
  10396. return ab(e, d)
  10397. }
  10398. function ad(c, d, a) {
  10399. var b = ac((a || this[0]).cloneNode(true), c, d);
  10400. return function (e) {
  10401. return b({
  10402. context : e
  10403. })
  10404. }
  10405. }
  10406. function H(e, d) {
  10407. var c = typeof d === "function" && d,
  10408. b,
  10409. a;
  10410. for (b = 0, a = this.length; b < a; b++) {
  10411. this[b] = G(this[b], (c || I.compile(d, false, this[b]))(e, false))
  10412. }
  10413. return this
  10414. }
  10415. function ae(e, d) {
  10416. var c = I.compile(d, e, this[0]),
  10417. b,
  10418. a;
  10419. for (b = 0, a = this.length; b < a; b++) {
  10420. this[b] = G(this[b], c(e, false))
  10421. }
  10422. return this
  10423. }
  10424. function G(e, c) {
  10425. var b,
  10426. d = e.parentNode,
  10427. f = 0,
  10428. a;
  10429. if (!d) {
  10430. d = document.createElement("DIV");
  10431. d.appendChild(e)
  10432. }
  10433. switch (e.tagName) {
  10434. case "BODY":
  10435. d.removeChild(e);
  10436. d.innerHTML += c;
  10437. return d.getElementsByTagName("BODY")[0];
  10438. case "TBODY":
  10439. case "THEAD":
  10440. case "TFOOT":
  10441. c = "<TABLE>" + c + "</TABLE>";
  10442. f = 1;
  10443. break;
  10444. case "TR":
  10445. c = "<TABLE><TBODY>" + c + "</TBODY></TABLE>";
  10446. f = 2;
  10447. break;
  10448. case "TD":
  10449. case "TH":
  10450. c = "<TABLE><TBODY><TR>" + c + "</TR></TBODY></TABLE>";
  10451. f = 3;
  10452. break;
  10453. case "OPTGROUP":
  10454. case "OPTION":
  10455. c = "<SELECT>" + c + "</SELECT>";
  10456. f = 1;
  10457. break
  10458. }
  10459. a = document.createElement("SPAN");
  10460. a.style.display = "none";
  10461. document.body.appendChild(a);
  10462. a.innerHTML = c;
  10463. b = a.firstChild;
  10464. while (f--) {
  10465. b = b.firstChild
  10466. }
  10467. d.insertBefore(b, e);
  10468. d.removeChild(e);
  10469. document.body.removeChild(a);
  10470. e = b;
  10471. b = d = null;
  10472. return e
  10473. }
  10474. return I
  10475. };
  10476. $p.plugins = {};
  10477. $p.libs = {
  10478. dojo : function () {
  10479. return function (d, c) {
  10480. return dojo.query(c, d)
  10481. }
  10482. },
  10483. domassistant : function () {
  10484. DOMAssistant.attach({
  10485. publicMethods : ["compile", "render", "autoRender"],
  10486. compile : function (c, d) {
  10487. return $p([this]).compile(c, d)
  10488. },
  10489. render : function (d, c) {
  10490. return $($p([this]).render(d, c))[0]
  10491. },
  10492. autoRender : function (d, c) {
  10493. return $($p([this]).autoRender(d, c))[0]
  10494. }
  10495. });
  10496. return function (d, c) {
  10497. return $(d).cssSelect(c)
  10498. }
  10499. },
  10500. ext : function () {
  10501. return function (d, c) {
  10502. return Ext.query(c, d)
  10503. }
  10504. },
  10505. jquery : function () {
  10506. jQuery.fn.extend({
  10507. directives : function (b) {
  10508. this._pure_d = b;
  10509. return this
  10510. },
  10511. compile : function (c, d) {
  10512. return $p(this).compile(this._pure_d || c, d)
  10513. },
  10514. render : function (d, c) {
  10515. return jQuery($p(this).render(d, this._pure_d || c))
  10516. },
  10517. autoRender : function (d, c) {
  10518. return jQuery($p(this).autoRender(d, this._pure_d || c))
  10519. }
  10520. });
  10521. return function (d, c) {
  10522. return jQuery(d).find(c)
  10523. }
  10524. },
  10525. mootools : function () {
  10526. Element.implement({
  10527. compile : function (c, d) {
  10528. return $p(this).compile(c, d)
  10529. },
  10530. render : function (d, c) {
  10531. return $p([this]).render(d, c)
  10532. },
  10533. autoRender : function (d, c) {
  10534. return $p([this]).autoRender(d, c)
  10535. }
  10536. });
  10537. return function (d, c) {
  10538. return $(d).getElements(c)
  10539. }
  10540. },
  10541. prototype : function () {
  10542. Element.addMethods({
  10543. compile : function (f, d, e) {
  10544. return $p([f]).compile(d, e)
  10545. },
  10546. render : function (f, e, d) {
  10547. return $p([f]).render(e, d)
  10548. },
  10549. autoRender : function (f, e, d) {
  10550. return $p([f]).autoRender(e, d)
  10551. }
  10552. });
  10553. return function (d, c) {
  10554. d = d === document ? d.body : d;
  10555. return typeof d === "string" ? $$(d) : $(d).select(c)
  10556. }
  10557. },
  10558. sizzle : function () {
  10559. return function (d, c) {
  10560. return Sizzle(c, d)
  10561. }
  10562. },
  10563. sly : function () {
  10564. return function (d, c) {
  10565. return Sly(c, d)
  10566. }
  10567. },
  10568. yui : function () {
  10569. if (typeof document.querySelector === "undefined") {
  10570. YUI().use("node", function (b) {
  10571. $p.plugins.find = function (a, d) {
  10572. return b.NodeList.getDOMNodes(b.one(a).all(d))
  10573. }
  10574. })
  10575. }
  10576. YUI.add("pure-yui", function (b) {
  10577. b.Node.prototype.directives = function (a) {
  10578. this._pure_d = a;
  10579. return this
  10580. };
  10581. b.Node.prototype.compile = function (d, a) {
  10582. return $p([this._node]).compile(this._pure_d || d, a)
  10583. };
  10584. b.Node.prototype.render = function (a, d) {
  10585. return b.one($p([this._node]).render(a, this._pure_d || d))
  10586. };
  10587. b.Node.prototype.autoRender = function (a, d) {
  10588. return b.one($p([this._node]).autoRender(a, this._pure_d || d))
  10589. }
  10590. }, "0.1", {
  10591. requires : ["node"]
  10592. });
  10593. return true
  10594. }
  10595. };
  10596. (function () {
  10597. var c,
  10598. d = (typeof dojo !== "undefined" && "dojo") || (typeof DOMAssistant !== "undefined" && "domassistant") || (typeof Ext !== "undefined" && "ext") || (typeof jQuery !== "undefined" && "jquery") || (typeof MooTools !== "undefined" && "mootools") || (typeof Prototype !== "undefined" && "prototype") || (typeof Sizzle !== "undefined" && "sizzle") || (typeof Sly !== "undefined" && "sly") || (typeof YUI !== "undefined" && "yui");
  10599. if (d) {
  10600. c = $p.libs[d]()
  10601. }
  10602. if (typeof document.querySelector === "undefined") {
  10603. if (typeof c === "function") {
  10604. $p.plugins.find = c
  10605. } else {
  10606. if (!c) {
  10607. throw ("you need a JS library with a CSS selector engine")
  10608. }
  10609. }
  10610. }
  10611. if (typeof exports !== "undefined") {
  10612. exports.$p = $p
  10613. }
  10614. })();
  10615. "use strict";
  10616. var DACore = (typeof(DACore) === "undefined") ? {}
  10617.  
  10618. : DACore;
  10619. DACore.Base = DACore.Base || {};
  10620. DACore.Base.AjaxCommunication = {
  10621. URLBASE : "/App_WebServices/Ajax/",
  10622. AjaxParams : {
  10623. type : "POST",
  10624. contentType : "application/json; charset=utf-8",
  10625. url : "",
  10626. dataType : "json",
  10627. async : true
  10628. },
  10629. ajaxCall : function (h, g, e) {
  10630. var f = DACore.Base.AjaxCommunication;
  10631. $.ajax({
  10632. type : f.AjaxParams.type,
  10633. contentType : f.AjaxParams.contentType,
  10634. url : f.URLBASE + g,
  10635. data : (h) ? JSON.stringify(h) : h,
  10636. dataType : f.AjaxParams.dataType,
  10637. async : f.AjaxParams.async,
  10638. success : e,
  10639. error : function (b, a, c) {
  10640. f.ErrorHandler(b, a, c, e)
  10641. }
  10642. })
  10643. },
  10644. ErrorHandler : function (f, h, g, j) {
  10645. var k;
  10646. k = {
  10647. Error : {
  10648. Code : -1,
  10649. Description : "error"
  10650. }
  10651. };
  10652. j(k)
  10653. }
  10654. };
  10655. "use strict";
  10656. var DACore = (typeof(DACore) === "undefined") ? {}
  10657.  
  10658. : DACore;
  10659. $(function () {
  10660. DACore.Courses.init()
  10661. });
  10662. var _lectiva_cfs_prefix;
  10663. var lectiva_cfs_render;
  10664. DACore.Courses = {
  10665. settings : {
  10666. Find : "",
  10667. Data : null,
  10668. url : ""
  10669. },
  10670. init : function () {
  10671. var b = this;
  10672. lectiva_cfs_render = function (a) {
  10673. b.Response(a, b)
  10674. };
  10675. this.onRequest = (typeof(CFSGrid) !== "undefined") ? CFSGrid : null
  10676. },
  10677. URLBASE : function () {
  10678. return DACore.Courses.settings.url
  10679. },
  10680. onRequest : null,
  10681. onResponse : null,
  10682. Request : function (d, f) {
  10683. var e = this;
  10684. e.settings.Find = d;
  10685. e.settings.url = f;
  10686. _lectiva_cfs_prefix = e.URLBASE();
  10687. if (e.onRequest) {
  10688. e.onRequest(d)
  10689. }
  10690. },
  10691. Response : function (f, d) {
  10692. var e = d;
  10693. e.settings.Data = f;
  10694. if (e.onResponse) {
  10695. e.onResponse(f)
  10696. }
  10697. }
  10698. };
  10699. "use strict";
  10700. var DACore = (typeof(DACore) === "undefined") ? {}
  10701.  
  10702. : DACore;
  10703. $(function () {
  10704. DACore.Vacancy.init()
  10705. });
  10706. DACore.Vacancy = {
  10707. cache : {},
  10708. oRequests : {},
  10709. base : DACore.Base,
  10710. URLBASE : "Vacancy.asmx",
  10711. url : {
  10712. VacanciesAutocomplete : "/VacanciesAutocomplete",
  10713. VacancyTotalGroupCounter : "/VacancyTotalGroupCounter",
  10714. List_MyVacancies : "/List_MyVacancies",
  10715. HasDelegationVacancies : "/HasDelegationVacancies",
  10716. Invite : "/Invite",
  10717. Visualize : "/Visualize",
  10718. VisualizeFreemium : "/VisualizeFreemium",
  10719. List_Vacancy_Invite : "/List_Vacancy_Invite",
  10720. List_Vacancies : "/List_Vacancy",
  10721. Vacancy_Fast_Insert : "/Vacancy_Fast_Insert",
  10722. ListVacaciesId : "/ListVacaciesId",
  10723. List_ByAffinity : "/List_ByAffinity",
  10724. ListVacanciesMicrosite : "/ListVacanciesMicrosite",
  10725. IsVacancyDuplicated : "/IsVacancyDuplicated",
  10726. ListVacanciesForNewMatch : "/ListVacanciesForNewMatch",
  10727. GetIdLocation2 : "/GetIdLocation2",
  10728. ListKillerQuestions : "/ListKillerQuestions",
  10729. ReadQuestions : "/ReadQuestions",
  10730. DeleteQuestion : "/DeleteQuestion"
  10731. },
  10732. init : function () {},
  10733. AjaxUrl : function (b) {
  10734. return this.URLBASE + this.url[b]
  10735. },
  10736. VacanciesAutocomplete : function (g, h, e) {
  10737. var f = {
  10738. pTerm : g,
  10739. pSemanticFind : h
  10740. };
  10741. this.base.AjaxCommunication.ajaxCall(f, this.AjaxUrl("VacanciesAutocomplete"), e)
  10742. },
  10743. VacancyTotalGroupCounter : function (b) {
  10744. this.base.AjaxCommunication.ajaxCall(null, this.AjaxUrl("VacancyTotalGroupCounter"), b)
  10745. },
  10746. List_MyVacancies : function (d, f) {
  10747. var e = {
  10748. ListIdCandidates : d
  10749. };
  10750. this.base.AjaxCommunication.ajaxCall(e, this.AjaxUrl("List_MyVacancies"), f)
  10751. },
  10752. HasDelegationVacancies : function (e, f) {
  10753. var d = {
  10754. IdCompany : e
  10755. };
  10756. this.base.AjaxCommunication.ajaxCall(d, this.AjaxUrl("HasDelegationVacancies"), f)
  10757. },
  10758. Invite : function (k, f, h, j) {
  10759. var g = {
  10760. ListIdVacancies : k,
  10761. ListIdCandidates : f,
  10762. SendSMS : h
  10763. };
  10764. this.base.AjaxCommunication.ajaxCall(g, this.AjaxUrl("Invite"), j)
  10765. },
  10766. Visualize : function (h, e, g) {
  10767. var f = {
  10768. ListIdVacancies : h,
  10769. ListIdCandidates : e
  10770. };
  10771. this.base.AjaxCommunication.ajaxCall(f, this.AjaxUrl("Visualize"), g)
  10772. },
  10773. VisualizeFreemium : function (h, e, g) {
  10774. var f = {
  10775. ListIdVacancies : h,
  10776. ListIdCandidates : e
  10777. };
  10778. this.base.AjaxCommunication.ajaxCall(f, this.AjaxUrl("VisualizeFreemium"), g)
  10779. },
  10780. List_Vacancy_Invite : function (f, d) {
  10781. var e = {
  10782. pIdCandidate : f
  10783. };
  10784. this.base.AjaxCommunication.ajaxCall(e, this.AjaxUrl("List_Vacancy_Invite"), d)
  10785. },
  10786. List_Vacancies : function (f, d) {
  10787. var e = {
  10788. pIdCandidate : f
  10789. };
  10790. this.base.AjaxCommunication.ajaxCall(e, this.AjaxUrl("List_Vacancies"), d)
  10791. },
  10792. List_ByAffinity : function (h, g, e) {
  10793. var f = {
  10794. pPageNumber : h,
  10795. pPageSize : g
  10796. };
  10797. this.base.AjaxCommunication.ajaxCall(f, this.AjaxUrl("List_ByAffinity"), e)
  10798. },
  10799. ListVacaciesId : function (k, j, l) {
  10800. var g = this,
  10801. h = "ListVacaciesId" + k + j,
  10802. m = {
  10803. pFind : k,
  10804. pPage : j
  10805. };
  10806. if (g.oRequests[h]) {
  10807. setTimeout(function () {
  10808. g.ListVacaciesId(k, j, l)
  10809. }, 100);
  10810. return
  10811. }
  10812. if (g.cache[h]) {
  10813. l(g.cache[h])
  10814. } else {
  10815. g.oRequests[h] = 1;
  10816. g.base.AjaxCommunication.ajaxCall(m, g.AjaxUrl("ListVacaciesId"), function (a) {
  10817. delete g.oRequests[h];
  10818. g.cache[h] = a;
  10819. l(a)
  10820. })
  10821. }
  10822. },
  10823. Vacancy_Fast_Insert : function (l, p, n, q, o, m, j) {
  10824. var k = {
  10825. pVacancy : l,
  10826. pEmail : p,
  10827. pIdUser : n,
  10828. pCompanyCEP : q,
  10829. pIdCompany : o,
  10830. pUrl : m
  10831. };
  10832. this.base.AjaxCommunication.ajaxCall(k, this.AjaxUrl("Vacancy_Fast_Insert"), j)
  10833. },
  10834. ListVacanciesMicrosite : function (d, f) {
  10835. var e = {
  10836. listDelegations : d
  10837. };
  10838. this.base.AjaxCommunication.ajaxCall(e, this.AjaxUrl("ListVacanciesMicrosite"), f)
  10839. },
  10840. IsVacancyDuplicated : function (l, o, q, p, m, n, j) {
  10841. var k = {
  10842. pIdVacancy : l,
  10843. pIdCompany : o,
  10844. pIdCategory1 : q,
  10845. pIdCategory2 : p,
  10846. pIdManagerialLevel : m,
  10847. pIdLocation3 : n
  10848. };
  10849. this.base.AjaxCommunication.ajaxCall(k, this.AjaxUrl("IsVacancyDuplicated"), j)
  10850. },
  10851. ListVacanciesForNewMatch : function (f, d) {
  10852. var e = {
  10853. pIdVacancy : f
  10854. };
  10855. this.base.AjaxCommunication.ajaxCall(e, this.AjaxUrl("ListVacanciesForNewMatch"), d)
  10856. },
  10857. GetIdLocation2 : function (e, h, g) {
  10858. var f = {
  10859. Latitude : e,
  10860. Longitude : h
  10861. };
  10862. this.base.AjaxCommunication.ajaxCall(f, this.AjaxUrl("GetIdLocation2"), g)
  10863. },
  10864. ListKillerQuestions : function (f, d) {
  10865. var e = {
  10866. pIdKillerQuestionFolder : f
  10867. };
  10868. this.base.AjaxCommunication.ajaxCall(e, this.AjaxUrl("ListKillerQuestions"), d)
  10869. },
  10870. ReadQuestions : function (f, d) {
  10871. var e = {
  10872. pIdKillerQuestion : f
  10873. };
  10874. this.base.AjaxCommunication.ajaxCall(e, this.AjaxUrl("ReadQuestions"), d)
  10875. },
  10876. DeleteQuestion : function (f, d) {
  10877. var e = {
  10878. pIdKillerQuestion : f
  10879. };
  10880. this.base.AjaxCommunication.ajaxCall(e, this.AjaxUrl("DeleteQuestion"), d)
  10881. }
  10882. };
  10883. "use strict";
  10884. var DACore = (typeof(DACore) === "undefined") ? {}
  10885.  
  10886. : DACore;
  10887. $(function () {
  10888. DACore.Company.init()
  10889. });
  10890. DACore.Company = {
  10891. base : DACore.Base,
  10892. URLBASE : "Company.asmx",
  10893. oURL : {
  10894. GetCompaniesLogos : "/ListCompanyLogos",
  10895. VacancyTotalGroupCounter : "/VacancyTotalGroupCounter",
  10896. DeleteFinder : "/DeleteFinder",
  10897. InsertCompanyComment : "/InsertCompanyComment",
  10898. CanConsumeVacancy : "/CanConsumeVacancy",
  10899. CompaniesAutocomplete : "/CompaniesAutocomplete",
  10900. GetCompanyUsers : "/GetCompanyUsers",
  10901. DeleteSharedVacancyUser : "/DeleteSharedVacancyUser",
  10902. AddSharedVacancyUser : "/AddSharedVacancyUser",
  10903. GetStatistics : "/GetStatistics",
  10904. UpdateCompanyNotificationStatus : "/UpdateCompanyNotificationStatus",
  10905. InsertCompanyChangeContract : "/InsertCompanyChangeContract",
  10906. GetCompanyNotification : "/GetCompanyNotification",
  10907. SendMarketyouRequest : "/SendMarketyouRequest",
  10908. ConsumeDownloadAvaliacao : "/ConsumeDownloadAvaliacao",
  10909. UpdateCompanyMessage : "/UpdateCompanyMessage",
  10910. AddOportunityRenovate : "/AddOportunityRenovate",
  10911. SendTestRequest : "/SendTestRequest"
  10912. },
  10913. init : function () {},
  10914. AjaxCall : function (h, g, e) {
  10915. var f = this;
  10916. f.base.AjaxCommunication.ajaxCall(h, f.URLBASE + f.oURL[g], e)
  10917. },
  10918. GetCompaniesLogos : function (f, k, h, j) {
  10919. var g = {
  10920. pIdsRetrieved : f,
  10921. pPageSize : k,
  10922. pProduct : h
  10923. };
  10924. this.AjaxCall(g, "GetCompaniesLogos", j)
  10925. },
  10926. VacancyTotalGroupCounter : function (b) {
  10927. this.AjaxCall({}, "VacancyTotalGroupCounter", b)
  10928. },
  10929. DeleteFinder : function (e, f) {
  10930. var d = {
  10931. IdCompanyFinder : e
  10932. };
  10933. this.AjaxCall(d, "DeleteFinder", f)
  10934. },
  10935. InsertCompanyComment : function (s, q, p, k, r, o, l, m) {
  10936. var n = {
  10937. IdCandidate : s,
  10938. IdCompany : q,
  10939. IdUser : p,
  10940. UserName : k,
  10941. IdCommentType : r,
  10942. IdVacancy : o,
  10943. text : l
  10944. };
  10945. this.AjaxCall(n, "InsertCompanyComment", m)
  10946. },
  10947. CanConsumeVacancy : function (f, d) {
  10948. var e = {
  10949. pIdCompany : f
  10950. };
  10951. this.AjaxCall(e, "CanConsumeVacancy", d)
  10952. },
  10953. CompaniesAutocomplete : function (f, d) {
  10954. var e = {
  10955. pTerm : f
  10956. };
  10957. this.AjaxCall(e, "CompaniesAutocomplete", d)
  10958. },
  10959. GetCompanyUsers : function (g, h, e) {
  10960. var f = {
  10961. IdCompanyEncrypted : g,
  10962. FilterAdmin : h
  10963. };
  10964. this.AjaxCall(f, "GetCompanyUsers", e)
  10965. },
  10966. DeleteSharedVacancyUser : function (h, g, e) {
  10967. var f = {
  10968. IdUserEncrypted : h,
  10969. IdVacancyUserEncrypted : g
  10970. };
  10971. this.AjaxCall(f, "DeleteSharedVacancyUser", e)
  10972. },
  10973. AddSharedVacancyUser : function (h, g, e) {
  10974. var f = {
  10975. IdUserEncrypted : h,
  10976. IdVacancyEncrypted : g
  10977. };
  10978. this.AjaxCall(f, "AddSharedVacancyUser", e)
  10979. },
  10980. GetStatistics : function (f, d) {
  10981. var e = {
  10982. IdRelatoryType : f
  10983. };
  10984. this.AjaxCall(e, "GetStatistics", d)
  10985. },
  10986. UpdateCompanyNotificationStatus : function (g, h, e) {
  10987. var f = {
  10988. pIdCompanyNotification : g,
  10989. pIdNotificationStatus : h
  10990. };
  10991. this.AjaxCall(f, "UpdateCompanyNotificationStatus", e)
  10992. },
  10993. InsertCompanyChangeContract : function (e, f) {
  10994. var d = {
  10995. IdActionChangeContract : e
  10996. };
  10997. this.AjaxCall(d, "InsertCompanyChangeContract", f)
  10998. },
  10999. GetCompanyNotification : function (f, d) {
  11000. var e = {
  11001. pPage : f
  11002. };
  11003. this.AjaxCall(e, "GetCompanyNotification", d)
  11004. },
  11005. SendMarketyouRequest : function (e, g, h) {
  11006. var f = {
  11007. IdCandidate : e,
  11008. IdVacancy : g
  11009. };
  11010. this.AjaxCall(f, "SendMarketyouRequest", h)
  11011. },
  11012. ConsumeDownloadAvaliacao : function (h, g, e) {
  11013. var f = {
  11014. IdCandidateEncrypted : h,
  11015. IdCompanyEncrypted : g
  11016. };
  11017. this.AjaxCall(f, "ConsumeDownloadAvaliacao", e)
  11018. },
  11019. UpdateCompanyMessage : function (f, d) {
  11020. var e = {
  11021. IdCompanyMessage : f
  11022. };
  11023. this.AjaxCall(e, "UpdateCompanyMessage", d)
  11024. },
  11025. AddOportunityRenovate : function (g, e, h) {
  11026. var f = {
  11027. Phone : g,
  11028. Name : e
  11029. };
  11030. this.AjaxCall(f, "AddOportunityRenovate", h)
  11031. },
  11032. SendTestRequest : function (k, h, j, f) {
  11033. var g = {
  11034. pIdCandidate : k,
  11035. pIdVacancy : h,
  11036. pIdTest : j
  11037. };
  11038. this.AjaxCall(g, "SendTestRequest", f)
  11039. }
  11040. };
  11041. "use strict";
  11042. var DACore = (typeof(DACore) === "undefined") ? {}
  11043.  
  11044. : DACore;
  11045. $(function () {
  11046. DACore.User.init()
  11047. });
  11048. DACore.User = {
  11049. base : DACore.Base,
  11050. URLBASE : "User.asmx",
  11051. url : {
  11052. Login : "/Login",
  11053. Alert24x7_IsValidate : "/Alert24x7_IsValidate",
  11054. Alert24x7_AddAlert : "/Alert24x7_AddAlert",
  11055. Alert24x7_AddAlertEmail : "/Alert24x7_AddAlertEmail",
  11056. Alert24x7_AddAlertCourses : "/Alert24x7_AddAlertCourses"
  11057. },
  11058. init : function () {},
  11059. Login : function (l, j, k, m) {
  11060. var h = this,
  11061. g = {
  11062. pEmail : l,
  11063. pPwd : j,
  11064. pIsRememberChecked : k
  11065. };
  11066. h.base.AjaxCommunication.ajaxCall(g, this.AjaxUrl("Login"), m)
  11067. },
  11068. Alert24x7_IsValidate : function (j, h, k) {
  11069. var g = this,
  11070. f = {
  11071. pCoursesCheck : j,
  11072. pFind : h
  11073. };
  11074. g.base.AjaxCommunication.ajaxCall(f, this.AjaxUrl("Alert24x7_IsValidate"), k)
  11075. },
  11076. Alert24x7_AddAlertEmail : function (m, k, n, l, o) {
  11077. var j = this,
  11078. h = {
  11079. pEmail : m,
  11080. pPwd : k,
  11081. pCoursesCheck : n,
  11082. pFind : l
  11083. };
  11084. j.base.AjaxCommunication.ajaxCall(h, this.AjaxUrl("Alert24x7_AddAlertEmail"), o)
  11085. },
  11086. Alert24x7_AddAlert : function (j, l, k, m) {
  11087. var h = this,
  11088. g = {
  11089. pIdUser : j,
  11090. pCoursesCheck : l,
  11091. pFind : k
  11092. };
  11093. h.base.AjaxCommunication.ajaxCall(g, this.AjaxUrl("Alert24x7_AddAlert"), m)
  11094. },
  11095. Alert24x7_AddAlertCourses : function (h, k, j) {
  11096. var g = this,
  11097. f = {
  11098. pIdUser : h,
  11099. pCoursesCheck : k,
  11100. pFind : j
  11101. };
  11102. g.base.AjaxCommunication.ajaxCall(f, this.AjaxUrl("Alert24x7_AddAlertCourses"), pCallBack)
  11103. },
  11104. AjaxUrl : function (b) {
  11105. return this.URLBASE + this.url[b]
  11106. }
  11107. };
  11108. "use strict";
  11109. var BRCore = (typeof(BRCore) === "undefined") ? {}
  11110.  
  11111. : BRCore;
  11112. $(function () {
  11113. BRCore.Vacancy.init()
  11114. });
  11115. BRCore.Vacancy = {
  11116. HasError : "",
  11117. scDA : "",
  11118. cache : {},
  11119. init : function () {
  11120. this.HasError = BRCore.Utils.Errors.HasError;
  11121. this.scDA = DACore.Vacancy
  11122. },
  11123. Invite : function (k, f, h, j) {
  11124. var g = this;
  11125. g.scDA.Invite(k, f, h, function (a) {
  11126. g.EndInvite(a, j)
  11127. })
  11128. },
  11129. EndInvite : function (f, d) {
  11130. var e = f && f.d || f;
  11131. if (this.HasError(e) && e.Error.Code == webUI.Utils.Enums.AjaxCalls.ErrorCodes.LOGOUT) {
  11132. document.location.reload(true)
  11133. } else {
  11134. d(e)
  11135. }
  11136. },
  11137. Visualize : function (h, e, g) {
  11138. var f = this;
  11139. f.scDA.Visualize(h, e, function (a) {
  11140. f.EndVisualize(a, g)
  11141. })
  11142. },
  11143. VisualizeFreemium : function (j, k, h) {
  11144. var f = this,
  11145. g = "VisualizeFreemium|" + j + "|" + k;
  11146. if (f.cache[g]) {
  11147. f.EndVisualize(f.cache[g], h)
  11148. } else {
  11149. f.scDA.VisualizeFreemium(j, k, function (a) {
  11150. f.EndVisualize(a, h, g)
  11151. })
  11152. }
  11153. },
  11154. EndVisualize : function (h, j, k) {
  11155. var g = this,
  11156. f = h && h.d || h;
  11157. if (this.HasError(f) && f.Error.Code == webUI.Utils.Enums.AjaxCalls.ErrorCodes.LOGOUT) {
  11158. document.location.reload(true)
  11159. } else {
  11160. if (k) {
  11161. g.cache[k] = h
  11162. }
  11163. j(f)
  11164. }
  11165. },
  11166. List_MyVacancies : function (d, f) {
  11167. var e = this;
  11168. e.scDA.List_MyVacancies(d, function (a) {
  11169. e.EndList_MyVacancies(a, f)
  11170. })
  11171. },
  11172. EndList_MyVacancies : function (f, d) {
  11173. var e = f && f.d || f;
  11174. if (!this.HasError(e)) {
  11175. d(e)
  11176. } else {
  11177. document.location.reload(true)
  11178. }
  11179. },
  11180. HasDelegationVacancies : function (d, f) {
  11181. var e = this;
  11182. DACore.Vacancy.HasDelegationVacancies(d, function (a) {
  11183. e.EndHasDelegationVacancies(a, f)
  11184. })
  11185. },
  11186. EndHasDelegationVacancies : function (f, d) {
  11187. var e = (!f.d) ? f : f.d;
  11188. if (!this.HasError(e)) {
  11189. d(e)
  11190. } else {
  11191. document.location.reload(true)
  11192. }
  11193. },
  11194. AutocompleteSimple : function (g, h, e) {
  11195. var f = this;
  11196. f.scDA.VacanciesAutocomplete(g, h, function (a) {
  11197. f.EndGenericCall(a, e)
  11198. })
  11199. },
  11200. VacancyTotalGroupCounter : function (c) {
  11201. var d = this;
  11202. this.scDA.VacancyTotalGroupCounter(function (a) {
  11203. d.EndVacancyTotalGroupCounter(a, c)
  11204. })
  11205. },
  11206. EndVacancyTotalGroupCounter : function (pData, pCallBack) {
  11207. var lData = pData && pData.d || pData;
  11208. if (!this.HasError(lData)) {
  11209. lData.Data.IniDate = eval(lData.Data.IniDate.replace(/\/Date\((\d+)\)\//gi, "new Date($1).toJSON()"));
  11210. lData.Data.EndDate = eval(lData.Data.EndDate.replace(/\/Date\((\d+)\)\//gi, "new Date($1).toJSON()"));
  11211. var _valIncPace = BRCore.Utils.Counters.getValIncPace(lData.Data);
  11212. lData = _valIncPace
  11213. } else {}
  11214.  
  11215. pCallBack(lData)
  11216. },
  11217. List_Vacancy_Invite : function (f, d) {
  11218. var e = this;
  11219. e.scDA.List_Vacancy_Invite(f, function (a) {
  11220. e.EndGenericCall(a, d)
  11221. })
  11222. },
  11223. List_Vacancies : function (d, f) {
  11224. var e = this;
  11225. e.scDA.List_Vacancies(d, function (a) {
  11226. e.EndGenericCall(a, f)
  11227. })
  11228. },
  11229. List_ByAffinity : function (h, g, e) {
  11230. var f = this;
  11231. f.scDA.List_ByAffinity(h, g, function (a) {
  11232. f.EndGenericCall(a, e)
  11233. })
  11234. },
  11235. Vacancy_Fast_Insert : function (l, p, n, q, o, m, j) {
  11236. var k = this;
  11237. k.scDA.Vacancy_Fast_Insert(l, p, n, q, o, m, function (a) {
  11238. k.EndGenericCall(a, j)
  11239. })
  11240. },
  11241. ListVacaciesId : function (h, g, e) {
  11242. var f = this;
  11243. f.scDA.ListVacaciesId(h, g, function (a) {
  11244. f.EndGenericCall(a, e)
  11245. })
  11246. },
  11247. ListVacanciesMicrosite : function (h, g) {
  11248. var e = this,
  11249. f = "ListVacanciesMicrosite_" + (h ? 1 : 0);
  11250. if (e.cache[f]) {
  11251. e.EndGenericCall(e.cache[f], g)
  11252. } else {
  11253. DACore.Vacancy.ListVacanciesMicrosite(h, function (a) {
  11254. e.cache[f] = a;
  11255. e.EndGenericCall(a, g)
  11256. })
  11257. }
  11258. },
  11259. IsVacancyDuplicated : function (l, o, q, p, m, n, j) {
  11260. var k = this;
  11261. DACore.Vacancy.IsVacancyDuplicated(l, o, q, p, m, n, function (a) {
  11262. k.EndGenericCall(a, j)
  11263. })
  11264. },
  11265. ListVacanciesForNewMatch : function (f, d) {
  11266. var e = this;
  11267. DACore.Vacancy.ListVacanciesForNewMatch(f, function (a) {
  11268. e.EndGenericCall(a, d)
  11269. })
  11270. },
  11271. GetIdLocation2 : function (e, h, g) {
  11272. var f = this;
  11273. DACore.Vacancy.GetIdLocation2(e, h, function (a) {
  11274. f.EndGenericCall(a, g)
  11275. })
  11276. },
  11277. ListKillerQuestions : function (f, d) {
  11278. var e = this;
  11279. DACore.Vacancy.ListKillerQuestions(f, function (a) {
  11280. e.EndGenericCall(a, d)
  11281. })
  11282. },
  11283. ReadQuestions : function (f, d) {
  11284. var e = this;
  11285. DACore.Vacancy.ReadQuestions(f, function (a) {
  11286. e.EndGenericCall(a, d)
  11287. })
  11288. },
  11289. DeleteQuestion : function (f, d) {
  11290. var e = this;
  11291. DACore.Vacancy.DeleteQuestion(f, function (a) {
  11292. e.EndGenericCall(a, d)
  11293. })
  11294. },
  11295. EndGenericCall : function (f, d) {
  11296. var e = f && f.d || f;
  11297. if (!this.HasError(e)) {}
  11298. else {}
  11299.  
  11300. d(e)
  11301. }
  11302. };
  11303. "use strict";
  11304. var BRCore = (typeof(BRCore) === "undefined") ? {}
  11305.  
  11306. : BRCore;
  11307. $(function () {
  11308. BRCore.Courses.init()
  11309. });
  11310. BRCore.Courses = {
  11311. scDA : "",
  11312. init : function () {
  11313. this.scDA = DACore.Courses
  11314. },
  11315. GetCourses : function (h, g, e) {
  11316. var f = this;
  11317. this.scDA.onResponse = function (a) {
  11318. f.EndGetCourses(a, e)
  11319. };
  11320. this.scDA.Request(h, g)
  11321. },
  11322. EndGetCourses : function (f, d) {
  11323. var e = {
  11324. Data : f,
  11325. Error : null
  11326. };
  11327. d(e)
  11328. }
  11329. };
  11330. var BRCore = (typeof(BRCore) === "undefined") ? {}
  11331.  
  11332. : BRCore;
  11333. $(function () {
  11334. BRCore.Company.init()
  11335. });
  11336. BRCore.Company = {
  11337. HasError : "",
  11338. Cache : [],
  11339. init : function () {
  11340. this.HasError = BRCore.Utils.Errors.HasError
  11341. },
  11342. EndGenericCall : function (f, d) {
  11343. var e = (!f.d) ? f : f.d;
  11344. if (!this.HasError(e)) {}
  11345. else {}
  11346.  
  11347. d(e)
  11348. },
  11349. GetCompaniesLogos : function (f, e, g, h) {
  11350. DACore.Company.GetCompaniesLogos(f, e, g, function (a) {
  11351. BRCore.Company.EndGenericCall(a, h)
  11352. })
  11353. },
  11354. VacancyTotalGroupCounter : function (c) {
  11355. var d = this;
  11356. DACore.Company.VacancyTotalGroupCounter(function (a) {
  11357. d.EndVacancyTotalGroupCounter(a, c)
  11358. })
  11359. },
  11360. EndVacancyTotalGroupCounter : function (g, h) {
  11361. var e = (!g.d) ? g : g.d;
  11362. if (!this.HasError(e)) {
  11363. var f = BRCore.Utils.Counters.getValIncPace(g.Data);
  11364. h(f)
  11365. } else {}
  11366.  
  11367. },
  11368. DeleteFinder : function (d, f) {
  11369. var e = this;
  11370. DACore.Company.DeleteFinder(d, function (a) {
  11371. e.EndGenericCall(a, f)
  11372. })
  11373. },
  11374. InsertCompanyComment : function (r, p, o, k, q, n, l, m) {
  11375. var s = this;
  11376. DACore.Company.InsertCompanyComment(r, p, o, k, q, n, l, function (a) {
  11377. s.EndGenericCall(a, m)
  11378. })
  11379. },
  11380. CanConsumeVacancy : function (f, d) {
  11381. var e = this;
  11382. DACore.Company.CanConsumeVacancy(f, function (a) {
  11383. e.EndGenericCall(a, d)
  11384. })
  11385. },
  11386. CompaniesAutocomplete : function (f, d) {
  11387. var e = this;
  11388. DACore.Company.CompaniesAutocomplete(f, function (a) {
  11389. e.EndGenericCall(a, d)
  11390. })
  11391. },
  11392. GetCompanyUsers : function (h, j, k) {
  11393. var f = this,
  11394. g = "GetCompanyUsers_" + h + "_" + j;
  11395. if (f.Cache[g]) {
  11396. f.EndGenericCall(f.Cache[g], k)
  11397. } else {
  11398. DACore.Company.GetCompanyUsers(h, j, function (a) {
  11399. f.Cache[g] = a;
  11400. f.EndGenericCall(a, k)
  11401. })
  11402. }
  11403. },
  11404. DeleteSharedVacancyUser : function (h, g, e) {
  11405. var f = this;
  11406. DACore.Company.DeleteSharedVacancyUser(h, g, function (a) {
  11407. f.EndGenericCall(a, e)
  11408. })
  11409. },
  11410. AddSharedVacancyUser : function (h, g, e) {
  11411. var f = this;
  11412. DACore.Company.AddSharedVacancyUser(h, g, function (a) {
  11413. f.EndGenericCall(a, e)
  11414. })
  11415. },
  11416. GetStatistics : function (f, d) {
  11417. var e = this;
  11418. DACore.Company.GetStatistics(f, function (a) {
  11419. e.EndGenericCall(a, d)
  11420. })
  11421. },
  11422. UpdateCompanyNotificationStatus : function (g, h, e) {
  11423. var f = this;
  11424. DACore.Company.UpdateCompanyNotificationStatus(g, h, function (a) {
  11425. f.EndGenericCall(a, e)
  11426. })
  11427. },
  11428. InsertCompanyChangeContract : function (d, f) {
  11429. var e = this;
  11430. DACore.Company.InsertCompanyChangeContract(d, function (a) {
  11431. e.EndGenericCall(a, f)
  11432. })
  11433. },
  11434. GetCompanyNotification : function (f, d) {
  11435. var e = this;
  11436. DACore.Company.GetCompanyNotification(f, function (a) {
  11437. e.EndGenericCall(a, d)
  11438. })
  11439. },
  11440. SendMarketyouRequest : function (e, g, h) {
  11441. var f = this;
  11442. DACore.Company.SendMarketyouRequest(e, g, function (a) {
  11443. f.EndGenericCall(a, h)
  11444. })
  11445. },
  11446. ConsumeDownloadAvaliacao : function (h, g, e) {
  11447. var f = this;
  11448. DACore.Company.ConsumeDownloadAvaliacao(h, g, function (a) {
  11449. f.EndGenericCall(a, e)
  11450. })
  11451. },
  11452. UpdateCompanyMessage : function (f, d) {
  11453. var e = this;
  11454. DACore.Company.UpdateCompanyMessage(f, function (a) {
  11455. e.EndGenericCall(a, d)
  11456. })
  11457. },
  11458. AddOportunityRenovate : function (g, e, h) {
  11459. var f = this;
  11460. DACore.Company.AddOportunityRenovate(g, e, function (a) {
  11461. f.EndGenericCall(a, h)
  11462. })
  11463. },
  11464. SendTestRequest : function (k, h, j, f) {
  11465. var g = this;
  11466. DACore.Company.SendTestRequest(k, h, j, function (a) {
  11467. g.EndGenericCall(a, f)
  11468. })
  11469. }
  11470. };
  11471. "use strict";
  11472. var BRCore = (typeof(BRCore) === "undefined") ? {}
  11473.  
  11474. : BRCore;
  11475. $(function () {
  11476. BRCore.User.init()
  11477. });
  11478. BRCore.User = {
  11479. HasError : "",
  11480. init : function () {
  11481. this.HasError = BRCore.Utils.Errors.HasError
  11482. },
  11483. Login : function (k, h, j, f) {
  11484. var g = this;
  11485. DACore.User.Login(k, h, j, function (a) {
  11486. g.EndGenericCall(a, f)
  11487. })
  11488. },
  11489. Alert24x7_IsValidate : function (h, g, e) {
  11490. var f = this;
  11491. DACore.User.Alert24x7_IsValidate(h, g, function (a) {
  11492. f.EndGenericCall(a, e)
  11493. })
  11494. },
  11495. Alert24x7_AddAlertEmail : function (l, j, m, k, g) {
  11496. var h = this;
  11497. DACore.User.Alert24x7_AddAlertEmail(l, j, m, k, function (a) {
  11498. h.EndGenericCall(a, g)
  11499. })
  11500. },
  11501. Alert24x7_AddAlert : function (h, k, j, f) {
  11502. var g = this;
  11503. DACore.User.Alert24x7_AddAlert(h, k, j, function (a) {
  11504. g.EndGenericCall(a, f)
  11505. })
  11506. },
  11507. Alert24x7_AddAlertCourses : function (h, k, j, f) {
  11508. var g = this;
  11509. DACore.User.Alert24x7_AddAlertCourses(h, k, j, function (a) {
  11510. g.EndGenericCall(a, f)
  11511. })
  11512. },
  11513. EndGenericCall : function (f, d) {
  11514. var e = f && f.d || f;
  11515. if (!this.HasError(e)) {}
  11516. else {}
  11517.  
  11518. d(e)
  11519. }
  11520. };
  11521. "use strict";
  11522. var BRCore = (typeof(BRCore) === "undefined") ? {}
  11523.  
  11524. : BRCore;
  11525. BRCore.Utils = BRCore.Utils || {};
  11526. $(function () {
  11527. BRCore.Utils.Errors.init()
  11528. });
  11529. BRCore.Utils.Errors = {
  11530. init : function () {},
  11531. HasError : function (b) {
  11532. return (!b || (b && b.Error && b.Error.Code && b.Error.Code != 0))
  11533. }
  11534. };
  11535. "use strict";
  11536. var BRCore = (typeof(BRCore) === "undefined") ? {}
  11537.  
  11538. : BRCore;
  11539. BRCore.Utils = BRCore.Utils || {};
  11540. BRCore.Utils.Counters = {
  11541. getValIncPace : function (b) {
  11542. return this.iniAtts(b)
  11543. },
  11544. iniAtts : function (j) {
  11545. var m = this,
  11546. k = {
  11547. val : 0,
  11548. inc : 1,
  11549. pace : 0
  11550. },
  11551. g,
  11552. h = new Date(),
  11553. l = h.getTime() + (h.getTimezoneOffset() * 60000);
  11554. j.IniDate = m.convertISOtoMillis(j.IniDate);
  11555. j.EndDate = m.convertISOtoMillis(j.EndDate);
  11556. if (l > j.EndDate) {
  11557. k.pace = j.EndDate - j.IniDate;
  11558. k.inc = 0;
  11559. k.val = j.EndValue
  11560. } else {
  11561. g = m.getPace(j);
  11562. k.pace = (g < 1000) ? 1000 : g;
  11563. k.inc = m.getInc(j, g);
  11564. k.val = m.getVal(j, g)
  11565. }
  11566. return k
  11567. },
  11568. convertISOtoMillis : function (k) {
  11569. var s = k,
  11570. l = s.substring(0, 4),
  11571. n = s.substring(5, 7),
  11572. r = s.substring(8, 10),
  11573. q = s.substring(11, 13),
  11574. o = s.substring(14, 16),
  11575. m = s.substring(17, 19),
  11576. p = s.substring(20, 23);
  11577. s = new Date(l, Number(n) - 1, r, q, o, m, p);
  11578. return s.getTime()
  11579. },
  11580. getPace : function (c) {
  11581. var d = c.EndDate - c.IniDate;
  11582. if (c.IniValue != c.EndValue) {
  11583. d = parseInt(d / (c.EndValue - c.IniValue), 10)
  11584. }
  11585. return d
  11586. },
  11587. getVal : function (k, j) {
  11588. var m = k.EndValue,
  11589. l = k.EndDate - k.IniDate,
  11590. h = new Date(),
  11591. g = h.getTime() + (h.getTimezoneOffset() * 60000);
  11592. if (g > k.EndDate) {
  11593. m = k.EndValue
  11594. } else {
  11595. if (l != j) {
  11596. m = k.IniValue + Math.round((g - k.IniDate) / j)
  11597. }
  11598. }
  11599. return m
  11600. },
  11601. getInc : function (d, f) {
  11602. var e = 1;
  11603. if (f < 1000) {
  11604. e = Math.ceil(1000 / f)
  11605. }
  11606. return e
  11607. }
  11608. };
  11609. "use strict";
  11610. var webUI = (typeof(webUI) === "undefined") ? {}
  11611.  
  11612. : webUI;
  11613. webUI.ctrl = webUI.ctrl || {};
  11614. webUI.ctrl.Other = webUI.ctrl.Other || {};
  11615. webUI.ctrl.Other.ClaimSlider = function (b) {
  11616. this.oCarousel = "";
  11617. this.aImgSrc = [];
  11618. this.idxImg = 0;
  11619. this.settings = {
  11620. divContainer : ".js_publicityDiv ul",
  11621. btPrevSlide : ".js_prevSlide",
  11622. btNextSlide : ".js_nextSlide",
  11623. divIndicators : ".js_indicators",
  11624. divIndTagName : "li",
  11625. interval : 10000,
  11626. speed : 1000,
  11627. autorunCarousel : true
  11628. };
  11629. this.options = {};
  11630. this.init = function (a) {
  11631. this.options = $.extend(this.settings, a);
  11632. this.preLoadImgs();
  11633. this.oCarousel = new webUI.Utils.FadeSlides(this.options, this.options.autorunCarousel)
  11634. };
  11635. this.preLoadImgs = function () {
  11636. this.aImgSrc = $(this.options.divContainer + " img[loadsrc]").map(function () {
  11637. return $(this).attr("loadsrc")
  11638. }).get();
  11639. if (this.aImgSrc.length) {
  11640. this.loadImg()
  11641. }
  11642. };
  11643. this.loadImg = function () {
  11644. var d = this,
  11645. a = "";
  11646. $("<img>").on("load", function () {
  11647. a = $(this).attr("loadsrc");
  11648. $('img[loadsrc="' + a + '"]').attr("src", a);
  11649. if (d.aImgSrc.length) {
  11650. d.aImgSrc.shift();
  11651. d.loadImg()
  11652. }
  11653. }).attr("src", d.aImgSrc[0]).attr("loadsrc", d.aImgSrc[0])
  11654. };
  11655. this.init(b)
  11656. };
  11657. "use strict";
  11658. var webUI = (typeof(webUI) === "undefined") ? {}
  11659.  
  11660. : webUI;
  11661. webUI.ctrl = webUI.ctrl || {};
  11662. webUI.ctrl.Other = webUI.ctrl.Other || {};
  11663. webUI.ctrl.Other.PublicGroupCounters = function (b) {
  11664. this.oFlipCounter = "",
  11665. this.intervalHandler = 0,
  11666. this.settings = {
  11667. interval : 60 * 60 * 1000,
  11668. divContainerId : "",
  11669. value : 0,
  11670. inc : 0,
  11671. auto : false,
  11672. pace : 1000,
  11673. tFH : 20,
  11674. bFH : 26,
  11675. fW : 37,
  11676. bOffset : 200
  11677. };
  11678. this.options = {};
  11679. this.init = function (a) {
  11680. this.options = $.extend(this.settings, a);
  11681. this.createFlipCounterObject()
  11682. };
  11683. this.createFlipCounterObject = function () {
  11684. var a = $(".flip-counter");
  11685. this.options.divContainerId = a.attr("id");
  11686. this.options.value = Number(a.attr("ini-val"));
  11687. this.oFlipCounter = new flipCounter(this.options.divContainerId, this.options)
  11688. };
  11689. this.intervalGetSrvData = function (d) {
  11690. var a = this;
  11691. this.options.interval = d || this.options.interval;
  11692. if (this.intervalHandler) {
  11693. clearInterval(this.intervalHandler)
  11694. }
  11695. this.getValIncPace();
  11696. if (this.options.interval) {
  11697. this.handlerInterval = setInterval(function () {
  11698. a.getValIncPace()
  11699. }, this.options.interval)
  11700. }
  11701. };
  11702. this.getValIncPace = function () {
  11703. var a = this;
  11704. BRCore.Vacancy.VacancyTotalGroupCounter(function (d) {
  11705. a.setValIncPace(d)
  11706. })
  11707. };
  11708. this.setValIncPace = function (a) {
  11709. if (!a) {
  11710. return
  11711. }
  11712. if (a.val) {
  11713. this.oFlipCounter.setValue(a.val)
  11714. }
  11715. if (a.inc) {
  11716. this.oFlipCounter.setIncrement(a.inc)
  11717. }
  11718. if (a.pace) {
  11719. this.oFlipCounter.setPace(a.pace)
  11720. }
  11721. if (!$.isEmptyObject(a)) {
  11722. this.oFlipCounter.setAuto(true)
  11723. }
  11724. };
  11725. this.init(b)
  11726. };
  11727. "use strict";
  11728. var webUI = (typeof(webUI) === "undefined") ? {}
  11729.  
  11730. : webUI;
  11731. webUI.ctrl = webUI.ctrl || {};
  11732. webUI.ctrl.Other = webUI.ctrl.Other || {};
  11733. webUI.ctrl.Other.Access = function (b) {
  11734. this.configValidate = {
  11735. aLogin : false,
  11736. btnLogin : false,
  11737. divAccessGuaranted : true,
  11738. aSessionCompany : false,
  11739. navNavigationBar : false
  11740. };
  11741. this.settings = {
  11742. Header : ".jsHeader",
  11743. aLogin : ".js_aLogin",
  11744. txtLogin : ".js_txtlogin",
  11745. chkSalvar : ".js_chkSalvar",
  11746. txtPwd : ".js_txtPwd",
  11747. inputsForm : ".js_divPanelLogin input",
  11748. chkRemember : ".js_chkRemember input[type=checkbox]",
  11749. btnLogin : ".js_btnLogin",
  11750. btnInsertCV : ".js_btnInsertCV",
  11751. divPanelLogin : ".js_divPanelLogin",
  11752. txt_account_type : ".js_txt_account_type",
  11753. btnInsertVacancy : 'a[id$="btnInsertVacancy"]',
  11754. NavigationBar : ".js_NavigationBar",
  11755. divAccessGuaranted : ".js_divAccessGuaranted",
  11756. aSessionCandidate : ".js_aSessionCandidate",
  11757. aSessionCompany : ".js_aSessionCompany",
  11758. divContent : ".js_divContent",
  11759. liAccountTypeText : ".js_liAccountType_text",
  11760. liAccountTypeLink : ".js_liAccountType_link",
  11761. imgContainer : ".js_imgContainer img",
  11762. liCandidatePhoto : ".js_candidatePhoto",
  11763. cvStatus : ".js_cvStatus",
  11764. isCompany : false,
  11765. btnInsertCompany : ".js_btnInsertCompany",
  11766. preference : null,
  11767. UserType : 0,
  11768. liCandidate : ".js_liCandidate",
  11769. liCompany : ".js_liCompany",
  11770. liCourse : ".js_liCourse",
  11771. liConcursos : ".js_liConcursos",
  11772. formPublic : ".jsPublic",
  11773. myArea : ".js_myArea",
  11774. lnkHelpCandidate : ".js_lnkHelpCandidate",
  11775. lnkFindVacancies : ".js_lnkFindVacancies",
  11776. lnkcourses : ".js_lnkcourses"
  11777. };
  11778. this.Result = {
  11779. Ok : 0,
  11780. Ko : 1,
  11781. Ko_IsCompany : 2,
  11782. Ko_IsCandidate : 3,
  11783. Ko_Login : 4,
  11784. Ko_Pwd : 5,
  11785. Ko_BloquedUser : 6
  11786. };
  11787. this.options = {};
  11788. this.init = function (e) {
  11789. var a = this,
  11790. f;
  11791. a.options = f = $.extend(a.settings, e);
  11792. if ($(f.Header).hasClass("isPremium")) {
  11793. $(f.txt_account_type).removeClass("txtPlus").addClass("txtPremium").text("PREMIUM")
  11794. }
  11795. if (webUI.Cookies.Preference.IdTypeUser != 0) {
  11796. $(f.btnInsertVacancy).hide()
  11797. }
  11798. if (f.preference) {
  11799. a.UserLogged()
  11800. }
  11801. a.setupAvatar();
  11802. a.bindEvents();
  11803. if (webUI.Cookies.Preference.IdLocation2 > 0) {
  11804. $(a.settings.lnkFindVacancies).attr("href", "http://" + window.location.host + "/empregos.aspx?Provincia=" + webUI.Cookies.Preference.IdLocation2)
  11805. }
  11806. if (webUI.Cookies.Preference.IdLocation3 > 0) {
  11807. $(a.settings.lnkcourses).attr("href", $(a.settings.lnkcourses).attr("href") + "?i3lr=" + webUI.Cookies.Preference.IdLocation3)
  11808. }
  11809. };
  11810. this.bindEvents = function () {
  11811. var a = this;
  11812. if (a.options.UserType == 1) {}
  11813.  
  11814. if (a.options.UserType == 2) {
  11815. $(a.options.aSessionCandidate).on({
  11816. click : function (d) {
  11817. a.OnClick_aSessionCandidate(d, this)
  11818. }
  11819. });
  11820. $(document).on({
  11821. click : function (d) {
  11822. a.OnClick_outSessionCandidate(d, this)
  11823. }
  11824. })
  11825. }
  11826. if (a.options.UserType == 0) {
  11827. a.bind_btnLogin();
  11828. $(a.options.aLogin).on({
  11829. click : function (d) {
  11830. a.OnClick_aLogin(d, this)
  11831. }
  11832. });
  11833. $(document).on({
  11834. click : function (d) {
  11835. a.OnClick_outLogin(d, this)
  11836. }
  11837. });
  11838. $(a.options.inputsForm).on("keypress", function (d) {
  11839. if (13 == (d.keyCode || d.which)) {
  11840. $(a.options.btnLogin).click();
  11841. return false
  11842. }
  11843. })
  11844. }
  11845. };
  11846. this.bind_btnLogin = function () {
  11847. var d = this,
  11848. a = $(d.options.btnLogin);
  11849. a.off("click").on("click", function (c) {
  11850. d.OnClick_btnLogin(c, this)
  11851. }).removeClass("disabled").text(a.attr("restore-text"))
  11852. };
  11853. this.OnClick_aLogin = function (f, e) {
  11854. var a = this;
  11855. if (f) {
  11856. f.preventDefault()
  11857. }
  11858. a.ShowLoginPanel()
  11859. };
  11860. this.OnClick_outLogin = function (f, e) {
  11861. var a = this;
  11862. if (!$(f.target).closest(a.options.divPanelLogin).length) {
  11863. if ($(a.options.divPanelLogin).hasClass("open")) {
  11864. $(a.options.divPanelLogin).removeClass("open")
  11865. }
  11866. }
  11867. };
  11868. this.OnClick_btnLogin = function (f, e) {
  11869. var a = this;
  11870. if (f) {
  11871. f.preventDefault()
  11872. }
  11873. if (a.IsValid()) {
  11874. a.DoLogin()
  11875. }
  11876. };
  11877. this.OnClick_aSessionCandidate = function (f, e) {
  11878. var a = this;
  11879. if (f) {
  11880. f.preventDefault()
  11881. }
  11882. a.ShowAccessPanel(e)
  11883. };
  11884. this.OnClick_outSessionCandidate = function (f, e) {
  11885. var a = this;
  11886. if (!$(f.target).closest(a.options.divAccessGuaranted).length) {
  11887. if ($(a.options.divContent).hasClass("open")) {
  11888. $(a.options.divContent).removeClass("open")
  11889. }
  11890. }
  11891. };
  11892. this.ClickOn_btnInsertCV = function (a, f, e) {
  11893. a.preventDefault();
  11894. a.stopPropagation();
  11895. xt_click($(a.target).get(0), "C", f, e, "N");
  11896. if ("undefined" != typeof oDefaultCompany) {
  11897. oDefaultCompany.ClickOn_btnVacancy(a, 1);
  11898. return false
  11899. } else {
  11900. location.assign("/Candidate/CV/Insert.aspx")
  11901. }
  11902. };
  11903. this.setupAvatar = function (k) {
  11904. var o = new Image(),
  11905. p = 80,
  11906. n = "icon-candidate-man icon-candidate-woman",
  11907. a = $(".js_candidatePhoto"),
  11908. q = $(this.options.imgContainer),
  11909. l = k || q.attr("preload-image"),
  11910. m = function (c) {
  11911. a.removeClass("man woman");
  11912. q.attr("src", l).removeClass(n).css({
  11913. "margin-top" : (p - c.height) / 2,
  11914. "margin-left" : a.width() / 2 - c.width / 2
  11915. })
  11916. };
  11917. if (o.addEventListener) {
  11918. o.addEventListener("load", function (c) {
  11919. m(this)
  11920. }, false)
  11921. } else {
  11922. o.attachEvent("onload", function (c) {
  11923. m(o)
  11924. })
  11925. }
  11926. if (l) {
  11927. o.src = l
  11928. }
  11929. };
  11930. this.IsValid = function () {
  11931. return webUI.Utils.Validation.Validate(this.options.divPanelLogin)
  11932. };
  11933. this.ShowLoginPanel = function () {
  11934. var a = this;
  11935. $(a.options.divPanelLogin).toggleClass("open");
  11936. if ($(a.options.divPanelLogin).hasClass("open")) {
  11937. $(a.options.txtLogin).focus()
  11938. }
  11939. };
  11940. this.DoLogin = function () {
  11941. var k = this,
  11942. l,
  11943. j,
  11944. h,
  11945. m,
  11946. a;
  11947. l = $(k.options.txtLogin).val();
  11948. j = $(k.options.txtPwd).val();
  11949. h = $(k.options.chkRemember).is(":checked");
  11950. a = $(k.options.btnLogin);
  11951. a.off("click").on("click", function (c) {
  11952. c.preventDefault()
  11953. }).addClass("disabled").attr("restore-text", a.text()).text(a.attr("loading-text"));
  11954. BRCore.User.Login(l, j, h, function (c) {
  11955. k.EndLogin(c)
  11956. })
  11957. };
  11958. this.EndLogin = function (e) {
  11959. var f = this,
  11960. a;
  11961. if (!BRCore.Utils.Errors.HasError(e)) {
  11962. f.RedirectUser(e.Data.UrlRedirect)
  11963. } else {
  11964. switch (e.Data.Result) {
  11965. case f.Result.Ko_Login:
  11966. window.location.assign("/login.aspx?err=" + f.Result.Ko_Login);
  11967. break;
  11968. case f.Result.Ko_Pwd:
  11969. ShowError($(f.options.txtPwd), true, "errPwd", e.Error.Description);
  11970. showTooltip($(f.options.txtPwd));
  11971. f.bind_btnLogin();
  11972. $(f.options.txtPwd).focus();
  11973. break;
  11974. case f.Result.Ko_BloquedUser:
  11975. window.location.assign("/login.aspx?err=" + f.Result.Ko_BloquedUser);
  11976. break;
  11977. default:
  11978. window.location.assign("/login.aspx?err=" + f.Result.Ko);
  11979. break
  11980. }
  11981. }
  11982. };
  11983. this.ClearForm = function () {
  11984. var a = this;
  11985. $(a.options.txtLogin).val("");
  11986. $(a.options.txtPwd).val("")
  11987. };
  11988. this.RedirectUser = function (e) {
  11989. var a = this,
  11990. f = a.options.preference.Read();
  11991. if (f.IdTypeUser == 2) {
  11992. window.location.assign(e)
  11993. } else {
  11994. if (f.IdTypeUser == 1) {
  11995. window.location.assign(e)
  11996. }
  11997. }
  11998. };
  11999. this.UserLogged = function () {
  12000. var f = this,
  12001. e = f.options.preference,
  12002. a = {};
  12003. if (f.options.isCompany) {
  12004. setTimeout(function () {
  12005. $(f.options.btnInsertCV).text("Anuncie suas vagas gratis").attr({
  12006. title : "Anuncie suas vagas gratis",
  12007. href : "javascript:void(0)",
  12008. }).off("click").on("click", function (c) {
  12009. f.ClickOn_btnInsertCV(c, 5, "HomeEmp::Menu::AnuncieSuaVaga")
  12010. })
  12011. }, 100);
  12012. $(f.options.btnInsertCompany).show()
  12013. } else {
  12014. setTimeout(function () {
  12015. $(f.options.btnInsertCV).off("click").on("click", function (c) {
  12016. f.ClickOn_btnInsertCV(c, 1, "HomeCand::AnuncieCV::Cabecera")
  12017. })
  12018. }, 100)
  12019. }
  12020. if (e.IdTypeUser == 1) {
  12021. a = {
  12022. divAccessGuaranted : false,
  12023. aSessionCompany : true,
  12024. navNavigationBar : true
  12025. };
  12026. this.CompanyLogged(a)
  12027. } else {
  12028. if (e.IdTypeUser == 2) {
  12029. a = {
  12030. navNavigationBar : ((window.location.pathname.toLowerCase() == "/") || (window.location.pathname.toLowerCase() == "/default.aspx") || (window.location.pathname.toLowerCase() == "/defaultcompany.aspx"))
  12031. };
  12032. this.CandiateLogged(a)
  12033. }
  12034. }
  12035. };
  12036. this.CandiateLogged = function (h) {
  12037. var l = this,
  12038. a = $.extend(l.configValidate, h),
  12039. k = l.options,
  12040. j = l.options.preference,
  12041. m = $(k.formPublic).length;
  12042. if (!a.aLogin) {
  12043. $(k.aLogin).hide()
  12044. }
  12045. if (!a.btnInsertCV) {
  12046. $(k.btnInsertCV).hide()
  12047. }
  12048. if (!a.btnInsertCompany) {
  12049. $(k.btnInsertCompany).hide()
  12050. }
  12051. if (!a.navNavigationBar) {
  12052. $(k.NavigationBar).hide()
  12053. }
  12054. $(k.aSessionCandidate).attr("title", "Olá, " + j.NameUser);
  12055. $(k.aSessionCandidate + " .js_spanSession").html("Olá, " + j.NameUser);
  12056. if (j.IdContractTypeProduct == 16) {
  12057. $(k.liAccountTypeText).text("Conta Premium");
  12058. $(k.liAccountTypeLink).text("Resumo").attr("href", "/Candidate/premium/subscription/detail.aspx");
  12059. if (!m) {
  12060. $(k.Header).addClass("isPremium")
  12061. }
  12062. $(k.txt_account_type).removeClass("txtPlus").addClass("txtPremium").text("PREMIUM");
  12063. $(k.lnkHelpCandidate).attr("href", "/Ajuda/Como_usar_infojobs_area_de_candidato__4632.aspx")
  12064. } else {
  12065. $(k.liAccountTypeText).text("Conta Básica");
  12066. $(k.liAccountTypeLink).html('<span class="icon-candidate-smallPremium"></span> Upgrade').attr("href", "/Candidate/Premium/Contract/Contract.aspx?iscw=236");
  12067. $(k.lnkHelpCandidate).attr("href", "/Ajuda/Como_usar_infojobs_area_de_candidato__1292.aspx")
  12068. }
  12069. if (a.divAccessGuaranted) {
  12070. $(k.divAccessGuaranted).show();
  12071. if (j.IdSex == 2) {
  12072. $(k.liCandidatePhoto).removeClass("woman man").addClass("woman")
  12073. } else {
  12074. $(k.liCandidatePhoto).removeClass("woman man").addClass("man")
  12075. }
  12076. if (j.IdStatus == 2) {
  12077. if (j.CompleteCV > 79) {
  12078. $(k.cvStatus + " h3").html("CV <span>" + j.CompleteCV.toString() + "%</span> completo");
  12079. $(k.cvStatus + " a").html("Editar")
  12080. } else {
  12081. if (j.CompleteCV > 49) {
  12082. $(k.cvStatus + " h3").html("CV <span>" + j.CompleteCV.toString() + "%</span> completo");
  12083. $(k.cvStatus + " a").html("Melhorar perfil")
  12084. } else {
  12085. $(k.cvStatus + " h3").html("CV incompleto");
  12086. $(k.cvStatus + " a").html("Preencher agora!")
  12087. }
  12088. }
  12089. } else {
  12090. if (j.IdStatus == 6) {
  12091. $(k.cvStatus + " h3").html("CV incompleto");
  12092. $(k.cvStatus + " a").html("Ativar")
  12093. } else {
  12094. if (j.IdStatus == 1) {
  12095. $(k.cvStatus + " h3").html("CV incompleto");
  12096. $(k.cvStatus + " a").html("Completar");
  12097. if (!$(k.cvStatus).hasClass("incoplete")) {
  12098. $(k.cvStatus).addClass("incoplete")
  12099. }
  12100. } else {}
  12101.  
  12102. }
  12103. }
  12104. }
  12105. };
  12106. this.CompanyLogged = function (e) {
  12107. var f = this,
  12108. a = $.extend(f.configValidate, e);
  12109. if (!a.aLogin) {
  12110. $(f.options.aLogin).hide()
  12111. }
  12112. if (!a.btnInsertCV) {
  12113. $(f.options.btnInsertCV).hide()
  12114. }
  12115. if (!a.btnInsertCompany) {
  12116. $(f.options.btnInsertCompany).hide()
  12117. }
  12118. if (a.divAccessGuaranted) {
  12119. $(f.options.divAccessGuaranted).show()
  12120. }
  12121. if (a.aSessionCompany) {
  12122. $(f.options.aSessionCompany).show()
  12123. }
  12124. };
  12125. this.ShowAccessPanel = function (g) {
  12126. var k = this,
  12127. j = k.options,
  12128. h = k.options.preference,
  12129. a = $(k.options.imgContainer);
  12130. $(j.divContent).toggleClass("open");
  12131. if ($(j.divContent).hasClass("open")) {
  12132. if (h && h.PhotoUrl != "") {
  12133. k.setupAvatar(h.PhotoUrl)
  12134. } else {
  12135. if (a.attr("preload-image") != "") {
  12136. k.setupAvatar(a.attr("preload-image"))
  12137. }
  12138. }
  12139. a.attr("preload-image", "")
  12140. }
  12141. };
  12142. this.UnCheck_AllMenu = function () {
  12143. var a = this,
  12144. d = a.options;
  12145. $(d.liCandidate).removeClass("active");
  12146. $(d.liCourse).removeClass("active");
  12147. $(d.liCourse).removeClass("active");
  12148. $(d.liConcursos).removeClass("active")
  12149. };
  12150. this.init(b)
  12151. };
  12152. "use strict";
  12153. var webUI = (typeof(webUI) === "undefined") ? {}
  12154.  
  12155. : webUI;
  12156. webUI.ctrl = webUI.ctrl || {};
  12157. webUI.ctrl.Company_Vacancy_ListRead = webUI.ctrl.Company_Vacancy_ListRead || {};
  12158. webUI.ctrl.Company_Vacancy_ListRead.Finder = function (pSettings) {
  12159. var me = this,
  12160. lsKey = "locationUser",
  12161. DIFFERENCE_DAYS = 7;
  12162. this.$inpCidadeOuEstado = "";
  12163. this.aKeywords = [];
  12164. this.scSntzr = "";
  12165. this.browser = {};
  12166. this.settings = {
  12167. url_base : "/empregos",
  12168. url_end : ".aspx",
  12169. boxSearch : ".js_boxSearch",
  12170. inpAutoComplete : ".js_txtFti",
  12171. inpComboStates : ".js_ddStates",
  12172. btSearch : ".jsBtnSearch",
  12173. hdn_is_preview : ".js_hdn_is_preview",
  12174. hdnFindVacancy : '.box-search input[type=hidden][id$="hdnFindVacancy"]',
  12175. loadParams : true
  12176. };
  12177. this.options = {};
  12178. this.init = function (pSettings) {
  12179. var _me = this,
  12180. _opts;
  12181. _me.options = _opts = $.extend(_me.settings, pSettings);
  12182. $(_opts.btSearch).removeAttr("disabled onclick");
  12183. _me.browser = webUI.Utils.Browser;
  12184. _me.$inpCidadeOuEstado = $(_opts.inpComboStates);
  12185. _me.scSntzr = webUI.Utils.Sanitizier;
  12186. _me.aKeywords = _me.GetCookieKeywords();
  12187. _me.txtAutocomplete();
  12188. _me.txtComboStates();
  12189. $(":text").simplePlaceholder();
  12190. if (!Number(webUI.Cookies.Preference.IdTypeUser) && !($(_opts.inpAutoComplete).is("[microsite]"))) {
  12191. LoadPosition()
  12192. }
  12193. _me.bindEvents()
  12194. };
  12195. this.bindEvents = function () {
  12196. var _me = this,
  12197. _opts = _me.options,
  12198. _$inpAutoComplete = $(_opts.inpAutoComplete),
  12199. _$btSearch = $(_opts.btSearch);
  12200. _$btSearch.on("click", function (e) {
  12201. _me.OnClick_BtnSearch(e)
  12202. });
  12203. _$inpAutoComplete.on({
  12204. mouseover : function () {
  12205. _$btSearch.parent().addClass("HighlightSend")
  12206. },
  12207. mouseout : function () {
  12208. _$btSearch.parent().removeClass("HighlightSend")
  12209. }
  12210. });
  12211. var _a = [_me.$inpCidadeOuEstado, _$inpAutoComplete];
  12212. $.each(_a, function (i, el) {
  12213. if (el && el.on) {
  12214. el.on("keypress", function (e) {
  12215. if (e.keyCode == $.ui.keyCode.ENTER) {
  12216. _me.OnClick_BtnSearch();
  12217. return false
  12218. }
  12219. })
  12220. }
  12221. })
  12222. };
  12223. this.OnClick_BtnSearch = function (e) {
  12224. if (e) {
  12225. e.preventDefault()
  12226. }
  12227. var _opts = this.options,
  12228. _params = webUI.Utils.URLSearch.getJSON(),
  12229. _$inpAutoComplete = $(_opts.inpAutoComplete),
  12230. _palabra = _$inpAutoComplete.val(),
  12231. _provinciaStr = $(_opts.inpComboStates).combobox("option", "input").val(),
  12232. _provincia = $(_opts.inpComboStates).val(),
  12233. _scSU = webUI.Utils.SemanticURL,
  12234. _searchOpts = [];
  12235. if (_palabra == _$inpAutoComplete.attr("placeholder")) {
  12236. _palabra = ""
  12237. }
  12238. if (_palabra) {
  12239. _searchOpts.push(_scSU.getItem("Palabra", _palabra, 1))
  12240. }
  12241. if (_provincia) {
  12242. _searchOpts.push(_scSU.getItem("Provincia", _provincia, _provinciaStr))
  12243. }
  12244. if (_params && _opts.loadParams) {
  12245. for (var _param in _params) {
  12246. if (-1 == "Palabra_Provincia".indexOf(_param)) {
  12247. _searchOpts.push(_scSU.getItem(_param, _params[_param], 1))
  12248. }
  12249. }
  12250. }
  12251. if ("1" == $(_opts.hdn_is_preview).val()) {
  12252. for (var i = 0; i < _searchOpts.length; i++) {
  12253. if (_searchOpts[i].key == "Date") {
  12254. _searchOpts[i].val = new Date().getTime()
  12255. }
  12256. }
  12257. }
  12258. $(_opts.btSearch).attr("disabled", "disabled").html("<strong>Carregando...</strong>").off("click");
  12259. window.location.assign(_scSU.getURL(_searchOpts, _opts.url_base, _opts.url_end))
  12260. };
  12261. this.GetCookieKeywords = function () {
  12262. var _cookieVal = webUI.Utils.browserCookies.getCookie("vacancyPrevNext") || {
  12263. keywords : []
  12264. };
  12265. if (_cookieVal) {
  12266. try {
  12267. _cookieVal = eval(_cookieVal)
  12268. } catch (e) {
  12269. if (-1 == _cookieVal.indexOf(",keywords:")) {
  12270. _cookieVal.keywords = []
  12271. } else {
  12272. var p1 = _cookieVal.indexOf(",keywords:") + 10,
  12273. p2 = _cookieVal.indexOf(",callmethod:"),
  12274. _kws = _cookieVal.substring(p1, p2);
  12275. _kws = _kws.split("','");
  12276. if (_kws.length) {
  12277. _kws[0] = _kws[0].substr(2);
  12278. if (_kws.length > 1) {
  12279. var _el = _kws[_kws.length - 1];
  12280. _el = _el.substring(0, _el.length - 2);
  12281. _kws[_kws.length - 1] = _el
  12282. }
  12283. }
  12284. _cookieVal = eval(_cookieVal.substring(0, p1 - 10) + _cookieVal.substr(p2));
  12285. _cookieVal.keywords = _kws
  12286. }
  12287. }
  12288. }
  12289. return _cookieVal.keywords || []
  12290. };
  12291. this.txtAutocomplete = function () {
  12292. var lSemanticFind = "";
  12293. var _me = this;
  12294. $(this.options.inpAutoComplete).autocomplete_bold({
  12295. source : function (request, response) {
  12296. BRCore.Vacancy.AutocompleteSimple(request.term, _me.Filter(), function (pData) {
  12297. _me.End_txtAutocomplete(pData, request, response)
  12298. })
  12299. }
  12300. })
  12301. };
  12302. this.Filter = function () {
  12303. var _me = this,
  12304. _opts = _me.options,
  12305. _retval = $(_opts.hdnFindVacancy).val(),
  12306. _provincia = $(_opts.inpComboStates).val(),
  12307. _scSU = webUI.Utils.SemanticURL,
  12308. _searchOpts = [];
  12309. _searchOpts.push({
  12310. js_selector : "$Provincia$",
  12311. value : [_provincia]
  12312. });
  12313. _retval = _scSU.getSemantic(_searchOpts, _retval);
  12314. return _retval
  12315. };
  12316. this.End_txtAutocomplete = function (pData, request, response) {
  12317. var _me = this,
  12318. _opts = _me.options,
  12319. lData = [],
  12320. _$ctrl = $(this.options.inpAutoComplete),
  12321. _requestTerm = webUI.Utils.Sanitizier(request.term),
  12322. _aPrevMatch = $.grep(_me.aKeywords, function (el, i) {
  12323. return webUI.Utils.Sanitizier(el).startsWith(_requestTerm)
  12324. });
  12325. if (_aPrevMatch.length) {
  12326. for (var i = 0; i < _aPrevMatch.length; i++) {
  12327. lData.push({
  12328. label : _aPrevMatch[i],
  12329. value : _aPrevMatch[i],
  12330. cssClass : "prevSearch",
  12331. option : _$ctrl
  12332. });
  12333. _aPrevMatch[i] = _me.scSntzr(_aPrevMatch[i])
  12334. }
  12335. }
  12336. if (!BRCore.Utils.Errors.HasError(pData)) {
  12337. for (var i = 0; i < pData.Data.length; i++) {
  12338. if (-1 == $.inArray(_me.scSntzr(pData.Data[i].Text), _aPrevMatch)) {
  12339. lData.push({
  12340. label : pData.Data[i].Text,
  12341. value : pData.Data[i].Text,
  12342. option : _$ctrl
  12343. })
  12344. }
  12345. }
  12346. } else {
  12347. console.error(pData.Errors)
  12348. }
  12349. response(lData)
  12350. };
  12351. this.txtComboStates = function () {
  12352. var _me = this,
  12353. _ph = "Todo o Brasil",
  12354. _html,
  12355. _class,
  12356. _$bt,
  12357. _browser = webUI.Utils.webBrowser.detect();
  12358. _me.$inpCidadeOuEstado.combobox({
  12359. appendTo : "#" + _me.options.inpComboStates.substr(1) + "_list",
  12360. source : function (request, response) {
  12361. var matcher = new RegExp("(?![^&;]+;)(?!<[^<>]*)(^" + $.ui.autocomplete.escapeRegex(request.term) + ")(?![^<>]*>)(?![^&;]+;)", "i");
  12362. response($(_me.options.inpComboStates).children("option").map(function () {
  12363. var text = $(this).text();
  12364. if (!request.term || matcher.test(text)) {
  12365. return {
  12366. label : text.replace(matcher, "<b>$1</b>"),
  12367. value : text,
  12368. option : this
  12369. }
  12370. }
  12371. }))
  12372. }
  12373. }).hide().next().find("input").addClass("span4").prop("placeholder", _ph).prop("type", "text").css("background-color", "white");
  12374. _me.$inpCidadeOuEstado = _me.$inpCidadeOuEstado.combobox("option", "input")
  12375. };
  12376. function LoadPosition() {
  12377. var locationUser = null,
  12378. today = new Date();
  12379. locationUser = localStorage.getItem(lsKey);
  12380. if (locationUser) {
  12381. locationUser = JSON.parse(locationUser);
  12382. var MsDiff = today - new Date(locationUser.timestamp),
  12383. diffDays = Math.round(MsDiff / 86400000);
  12384. if (diffDays > DIFFERENCE_DAYS) {
  12385. localStorage.removeItem(lsKey);
  12386. locationUser = null
  12387. }
  12388. }
  12389. if (!locationUser) {
  12390. if (navigator && navigator.geolocation) {
  12391. navigator.geolocation.getCurrentPosition(function (position) {
  12392. LoadPosition_callback(position)
  12393. }, null)
  12394. }
  12395. } else {
  12396. if (locationUser.idlocation2 > 0) {
  12397. SetState(locationUser.idlocation2)
  12398. }
  12399. }
  12400. }
  12401. function LoadPosition_callback(position) {
  12402. var _Data = {
  12403. Latitude : position.coords.latitude,
  12404. Longitude : position.coords.longitude
  12405. };
  12406. BRCore.Vacancy.GetIdLocation2(_Data.Latitude, _Data.Longitude, function (pData) {
  12407. SetState(pData.Data);
  12408. _Data.idlocation2 = pData.Data;
  12409. _Data.timestamp = new Date();
  12410. localStorage.setItem(lsKey, JSON.stringify(_Data))
  12411. })
  12412. }
  12413. function SetState(pIdLocation2) {
  12414. var _$drpStates = $(me.options.inpComboStates),
  12415. _val = _$drpStates.val(pIdLocation2).find(":selected").text();
  12416. _$drpStates.combobox("option", "input").val(_val)
  12417. }
  12418. this.init(pSettings)
  12419. };
  12420. "use strict";
  12421. var webUI = (typeof(webUI) === "undefined") ? {}
  12422.  
  12423. : webUI;
  12424. webUI.ctrl = webUI.ctrl || {};
  12425. webUI.ctrl.Company = webUI.ctrl.Company || {};
  12426. webUI.ctrl.Company.CompanyLogosFade = function (b) {
  12427. this.aLogos = [];
  12428. this.ctAnims = 0;
  12429. this.oCarousel = "";
  12430. this.eofReached = false;
  12431. this.idx = 0;
  12432. this.$ulContainer = "";
  12433. this.busy = 0;
  12434. this.stop = 0;
  12435. this.hInterval = 0;
  12436. this.settings = {
  12437. ulContainer : ".js_LogosSlider_div",
  12438. LogosSlider_li : ".js_LogosSlider_li",
  12439. rowActive : ".js_row .active",
  12440. rowInactive : '.js_row:not(".active")',
  12441. ulrowActive : ".js_row.active .js_LogosSlider_list",
  12442. ulrowInactive : '.js_row:not(".active") .js_LogosSlider_list',
  12443. btPrevSlide : ".js_LogosSlider_prev",
  12444. btNextSlide : ".js_LogosSlider_next",
  12445. tmplLogo : ".tmpl_logoSlider",
  12446. logosAmount : 6,
  12447. maxNumLogos : 0,
  12448. interval : 0,
  12449. maxAnims : 0,
  12450. hoverSuffix : "",
  12451. idProducts : []
  12452. };
  12453. this.options = {};
  12454. this.tmplDirectives = {
  12455. ".js_LogosSlider_li" : {
  12456. "elem<-elems" : {
  12457. "@idcompany" : "elem.Id",
  12458. ".js_LogosSlider_a@href" : "elem.Url",
  12459. ".js_LogosSlider_img@src" : function () {
  12460. return ($("body").hasClass("homeV2")) ? this.Src : this.SrcTh
  12461. },
  12462. ".js_LogosSlider_img@alt" : "elem.Title",
  12463. ".js_LogosSlider_img@title" : "elem.Title"
  12464. }
  12465. }
  12466. };
  12467. this.scHasError = "";
  12468. this.scUtils = "";
  12469. this.init = function (h) {
  12470. var m = this,
  12471. l = m.options = $.extend(m.settings, h),
  12472. a,
  12473. k = [],
  12474. j;
  12475. this.scUtils = webUI.ctrl.Utils;
  12476. this.scHasError = BRCore.Utils.Errors.HasError;
  12477. m.$ulContainer = $(m.options.ulContainer);
  12478. if ($(m.options.LogosSlider_li).length) {
  12479. this.aLogos = $(m.options.LogosSlider_li).map(function (c) {
  12480. j = {
  12481. Id : $(this).attr("idcompany"),
  12482. Title : $(this).attr("title"),
  12483. Src : $(this).find("img").attr("src"),
  12484. SrcTh : $(this).find("img").attr("src").replace(/(\_.*?\.jpg)/i, "_th.jpg"),
  12485. SrcThi : $(this).find("img").attr("src").replace(/(\_.*?\.jpg)/i, "_thi.jpg"),
  12486. Url : $(this).find("a").attr("href")
  12487. };
  12488. j = ($.inArray(j.Id, k) > -1) ? null : j;
  12489. if (j != null) {
  12490. k.push(j.Id)
  12491. } else {
  12492. m.eofReached = true
  12493. }
  12494. return j
  12495. }).get()
  12496. }
  12497. m.oCarousel = new webUI.Utils.FadeCarousel(h);
  12498. m.BindEvents()
  12499. };
  12500. this.BindEvents = function () {
  12501. var a = this,
  12502. d = a.options;
  12503. if (d.hoverSuffix) {
  12504. $(document).on("mouseenter", d.ulContainer + " img", function (c) {
  12505. a.OnMouseEnter_Logo(c)
  12506. }).on("mouseleave", d.ulContainer + " img", function (c) {
  12507. a.OnMouseLeave_Logo(c)
  12508. })
  12509. }
  12510. a.oCarousel.OnClick_BtPrevSlide = function (c) {
  12511. a.OnClick_BtPrevSlide(c)
  12512. };
  12513. a.oCarousel.OnClick_BtNextSlide = function (c) {
  12514. a.OnClick_BtNextSlide(c)
  12515. }
  12516. };
  12517. this.OnMouseEnter_Logo = function (e) {
  12518. var a = $(e.target),
  12519. f = a.attr("src");
  12520. a.data("origSrc", f).attr("src", f.replace(/(\_.*?\.jpg)/i, this.options.hoverSuffix))
  12521. };
  12522. this.OnMouseLeave_Logo = function (d) {
  12523. var a = $(d.target);
  12524. a.attr("src", a.data("origSrc"))
  12525. };
  12526. this.setInterval = function () {
  12527. var a = this,
  12528. d = a.options;
  12529. if (a.hInterval) {
  12530. clearInterval(a.hInterval)
  12531. }
  12532. a.hInterval = setInterval(function () {
  12533. if (a.stop) {
  12534. clearInterval(a.hInterval)
  12535. }
  12536. a.animateLogos()
  12537. }, d.interval)
  12538. };
  12539. this.OnClick_BtPrevSlide = function (d) {
  12540. var a = this;
  12541. d.preventDefault();
  12542. if (!a.busy) {
  12543. a.removeNotActive();
  12544. a.renderLogos(a.GetLogosPage(1));
  12545. a.setInterval();
  12546. this.animateLogos()
  12547. }
  12548. };
  12549. this.OnClick_BtNextSlide = function (d) {
  12550. var a = this;
  12551. d.preventDefault();
  12552. a.setInterval();
  12553. a.animateLogos()
  12554. };
  12555. this.animateLogos = function () {
  12556. var a = this,
  12557. d = a.options;
  12558. if (document.hasFocus() && !a.busy) {
  12559. a.oCarousel.anim(function () {
  12560. a.removeNotActive();
  12561. a.GetCompaniesLogos();
  12562. if (d.maxAnims && ++a.ctAnims == d.maxAnims) {
  12563. a.oCarousel.stopAnim();
  12564. a.stop = 1
  12565. }
  12566. })
  12567. }
  12568. };
  12569. this.removeNotActive = function () {
  12570. var a = this.options;
  12571. $(a.ulContainer + " " + a.ulrowInactive).children().remove()
  12572. };
  12573. this.GetCompaniesLogos = function (j, h, k) {
  12574. var m = this,
  12575. l = m.options,
  12576. a;
  12577. m.busy = 1;
  12578. if (!m.eofReached) {
  12579. m.aIDsRetrieved = j || $.map(m.aLogos, function (c) {
  12580. return c.Id
  12581. });
  12582. a = h || l.logosAmount;
  12583. l.idProducts = k || l.idProducts;
  12584. BRCore.Company.GetCompaniesLogos(m.aIDsRetrieved, a, m.options.idProducts, function (c) {
  12585. m.EndGetCompaniesLogos(c)
  12586. })
  12587. } else {
  12588. m.renderLogos(m.GetLogosPage())
  12589. }
  12590. };
  12591. this.EndGetCompaniesLogos = function (g) {
  12592. var j = this,
  12593. h = j.options,
  12594. a = g.Data,
  12595. k = g.Finder;
  12596. if (!this.scHasError(g)) {
  12597. if (a.length) {
  12598. j.aLogos = j.aLogos.concat(a);
  12599. if (j.options.maxNumLogos > 0 && j.aLogos.length > j.options.maxNumLogos) {
  12600. j.aLogos.splice(0, a.length);
  12601. j.idx -= (a.length);
  12602. if (j.idx < 0) {
  12603. j.idx = 0
  12604. }
  12605. }
  12606. if (k && k.subtotal == k.total) {
  12607. j.eofReached = true;
  12608. console.log("eofLogosReached")
  12609. }
  12610. j.renderLogos(j.GetLogosPage());
  12611. if (h.interval && !j.hInterval) {
  12612. j.setInterval()
  12613. }
  12614. }
  12615. }
  12616. };
  12617. this.renderLogos = function (g) {
  12618. var j = this,
  12619. k = $(j.options.LogosSlider_li).length == 0,
  12620. a = {
  12621. elems : g
  12622. },
  12623. h = j.options.ulContainer + " " + j.options.ulrowInactive;
  12624. if (g.length > j.options.logosAmount) {
  12625. g = g.slice(0, j.options.logosAmount)
  12626. }
  12627. webUI.Utils.CtrlTmpl.tmplHandle(this.options.tmplLogo, h, a, this.tmplDirectives, 1);
  12628. if (k) {
  12629. h = j.options.ulContainer + " " + j.options.ulrowActive;
  12630. a = {
  12631. elems : j.GetLogosPage()
  12632. };
  12633. if (a.elems.length > j.options.logosAmount) {
  12634. a.elems = a.elems.slice(0, j.options.logosAmount)
  12635. }
  12636. webUI.Utils.CtrlTmpl.tmplHandle(this.options.tmplLogo, h, a, this.tmplDirectives, 1)
  12637. }
  12638. j.busy = 0
  12639. };
  12640. this.GetLogosPage = function (g) {
  12641. var j = this,
  12642. h = j.options,
  12643. a,
  12644. k;
  12645. if (g) {
  12646. j.idx = j.GetFirstVisibleIdx();
  12647. j.idx -= h.logosAmount;
  12648. if (j.idx < 0) {
  12649. j.idx = j.aLogos.length - Math.abs(j.idx);
  12650. a = j.aLogos.slice(j.idx, j.aLogos.length);
  12651. k = h.logosAmount - (j.aLogos.length - j.idx);
  12652. a = a.concat(j.aLogos.slice(0, k))
  12653. } else {
  12654. k = j.idx + h.logosAmount;
  12655. a = j.aLogos.slice(j.idx, k)
  12656. }
  12657. } else {
  12658. k = j.idx + h.logosAmount;
  12659. if (k > j.aLogos.length) {
  12660. a = j.aLogos.slice(j.idx, j.aLogos.length);
  12661. k = h.logosAmount - (j.aLogos.length - j.idx);
  12662. a = a.concat(j.aLogos.slice(0, k))
  12663. } else {
  12664. a = j.aLogos.slice(j.idx, k)
  12665. }
  12666. }
  12667. j.idx = k;
  12668. return a
  12669. };
  12670. this.GetFirstVisibleIdx = function () {
  12671. var f = this.options,
  12672. a = $(f.ulContainer + " " + f.ulrowActive).find("li:first").attr("idcompany");
  12673. for (var e = 0; e < this.aLogos.length; e++) {
  12674. if (a == this.aLogos[e].Id) {
  12675. return e
  12676. }
  12677. }
  12678. return -1
  12679. };
  12680. this.init(b)
  12681. };
  12682. var webUI = (typeof(webUI) === "undefined") ? {}
  12683.  
  12684. : webUI;
  12685. webUI.Utils = webUI.Utils || {};
  12686. webUI.Utils.Courses = function (c) {
  12687. this.oData = null;
  12688. this.scTmpl = null;
  12689. this.settings = {
  12690. url : "",
  12691. finder : "",
  12692. container : null,
  12693. configPosition : {
  12694. intoGrid : false,
  12695. gridSelector : null,
  12696. row_divisor : null,
  12697. position : 0
  12698. },
  12699. tmplID : null,
  12700. autoGetCourses : 0,
  12701. maxCourses : 9999
  12702. };
  12703. this.options = {};
  12704. this.directive = {
  12705. ".jsCourseBlock" : {
  12706. "elem<-Data" : {
  12707. ".@class+" : function (a) {
  12708. return a.pos == 1 ? " middle" : ""
  12709. },
  12710. ".js_Logo_li@style" : function () {
  12711. return this.center_logo ? "" : "display:none"
  12712. },
  12713. ".js_Logo_li" : function () {
  12714. return this.center_logo ? '<img src="' + this.center_logo + '" style="cursor:pointer" onclick="window.open(\'' + this.url + "&ov=11')\" />" : ""
  12715. },
  12716. ".js_link_a" : function () {
  12717. var a = this.name;
  12718. if (a.length > 29) {
  12719. a = a.substring(0, 30) + "..."
  12720. }
  12721. return a
  12722. },
  12723. ".js_link_a@title" : "elem.name",
  12724. ".js_link_a@href" : function () {
  12725. return (this.canusemodal) ? "javascript:void(0);" : this.url + "&ov=11"
  12726. },
  12727. ".js_link_a@target" : function () {
  12728. return (this.canusemodal) ? "" : "_blank"
  12729. },
  12730. ".js_link_a@onclick" : function () {
  12731. return (this.canusemodal) ? this.modal.replace("onclick=", "") : ""
  12732. },
  12733. ".js_loc1" : "elem.center_name",
  12734. ".js_loc2" : function () {
  12735. return this.price + " - " + this.ubication
  12736. }
  12737. }
  12738. }
  12739. };
  12740. var d = '<div class="tmpls" style="display: none"> <ul class="tmplCourse"> <li class="span4 jsCourseBlock"> <ul class="cursoPopular"> <li class="js_Logo_li"></li> <li class="title"><a class="js_link_a" title="" href="#" target="#"></a></li> <li class="Centro js_loc1"></li> <li class="Consultar js_loc2"></li> </ul> </li> </ul> </div>';
  12741. this.init = function (a) {
  12742. var b = this;
  12743. b.options = $.extend(b.settings, a || {});
  12744. b.scTmpl = webUI.Utils.CtrlTmpl.tmplHandle;
  12745. if (!$(".tmpls .tmplCourse").length) {
  12746. $("body").append(d)
  12747. }
  12748. if (b.options.autoGetCourses) {
  12749. b.GetCourses(b.options.finder)
  12750. }
  12751. };
  12752. this.GetCourses = function (a) {
  12753. var b = this;
  12754. BRCore.Courses.GetCourses(a, b.options.url, function (f) {
  12755. b.EndGetCourses(f)
  12756. })
  12757. };
  12758. this.EndGetCourses = function (a) {
  12759. var b = this;
  12760. b.Render(a)
  12761. };
  12762. this.Render = function (a) {
  12763. var m = this,
  12764. l = m.options,
  12765. o,
  12766. k,
  12767. n;
  12768. if (l.configPosition.intoGrid) {
  12769. k = l.container.substr(1);
  12770. o = $("<div>").attr("id", k).addClass(k);
  12771. n = $(l.selector).find(l.row_divisor).length;
  12772. $(l.selector).find(l.row_divisor).eq(Math.min(l.positon, n)).after(o)
  12773. }
  12774. if ($(l.container).length && a && a.Data && a.Data.length) {
  12775. a.Data = a.Data.splice(0, l.maxCourses);
  12776. var b = m.directive;
  12777. if (l.directive) {
  12778. b = l.directive
  12779. }
  12780. m.scTmpl(l.tmplID, $(l.container), a, b);
  12781. m.oData = a
  12782. }
  12783. };
  12784. this.init(c)
  12785. };
  12786. "use strict";
  12787. var webUI = (typeof(webUI) === "undefined") ? {}
  12788.  
  12789. : webUI;
  12790. webUI.Utils = webUI.Utils || {};
  12791. $(function () {
  12792. if (parseFloat($.fn.jquery) < 1.9) {
  12793. $.fn.on = $.fn.bind;
  12794. $.fn.off = $.fn.unbind
  12795. }
  12796. var g = webUI.Utils,
  12797. h = g.webBrowser.detect();
  12798. if (h) {
  12799. var e = ("MSIE" == h.name) ? "IE" : h.name,
  12800. f = $("body").addClass("browser" + e + " browser" + e + h.version);
  12801. if ("iOS" == h.platform) {
  12802. f.addClass("browseriOS")
  12803. }
  12804. }
  12805. g.LazyLoad.init();
  12806. g.OriginVisit.init();
  12807. if (jQuery().simplePlaceholder) {
  12808. $(":text[placeholder],textarea[placeholder]").simplePlaceholder()
  12809. }
  12810. if ($(".js_linkTooltip:first").length) {
  12811. g.setupTooltips()
  12812. }
  12813. g.Loading.init()
  12814. });
  12815. webUI.Utils.MaxLengthTextArea = function (j, k, l) {
  12816. var h = $(j),
  12817. m = h.val(),
  12818. g = m.length;
  12819. if (g > k) {
  12820. h.val(m.substring(0, k));
  12821. g = k
  12822. }
  12823. $(l).text(g)
  12824. };
  12825. webUI.Utils.Loading = {
  12826. bodyNoScroll : 0,
  12827. init : function () {
  12828. var d,
  12829. c;
  12830. if ($("#fancybox-loading").length) {
  12831. $('div[id="fancybox-loading"],div[id="fancybox-overlay"]').remove()
  12832. }
  12833. if (parseFloat($.fn.jquery) > 1.3) {
  12834. d = $("<img>", {
  12835. src : "/App_Theme/images/new/loadingNoText.gif"
  12836. });
  12837. c = $("<span>", {
  12838. "class" : "fancybox-textLoading"
  12839. });
  12840. $("<div>", {
  12841. id : "fancybox-loading",
  12842. style : "display:none"
  12843. }).append(d).append(c).appendTo("body");
  12844. $("<div>", {
  12845. id : "fancybox-overlay",
  12846. style : "display:none"
  12847. }).appendTo("body")
  12848. } else {
  12849. d = $('<img src="/App_Theme/images/new/loadingNoText.gif" />');
  12850. c = $('<span class="fancybox-textLoading"></span>');
  12851. $('<div id="fancybox-loading" style="display:none"></div>').append(d).append(c).appendTo("body");
  12852. $('<div id="fancybox-overlay" style"display:none"></div>').appendTo("body")
  12853. }
  12854. },
  12855. ShowLoading : function (f) {
  12856. var e = $("#fancybox-loading"),
  12857. d = f || "Carregando";
  12858. e.show().find("span").text(d);
  12859. this.ShowLoadingLayer()
  12860. },
  12861. ShowLoadingLayer : function (g) {
  12862. var e = this,
  12863. f = 0,
  12864. h = function () {
  12865. var a = $(document).height();
  12866. if (f == a) {
  12867. $("#fancybox-overlay").css("height", a)
  12868. } else {
  12869. f = a;
  12870. setTimeout(h, 100)
  12871. }
  12872. };
  12873. if (g) {
  12874. e.bodyNoScroll = 1;
  12875. $("body").css("overflow", "hidden")
  12876. }
  12877. $("#fancybox-overlay").show().css("height", $(window).height());
  12878. h()
  12879. },
  12880. HideLoading : function () {
  12881. $("#fancybox-overlay,#fancybox-loading").hide();
  12882. if (this.bodyNoScroll) {
  12883. $("body").css("overflow", "auto")
  12884. }
  12885. }
  12886. };
  12887. webUI.Utils.setupTooltips = function () {
  12888. var g = this,
  12889. h = ".js_linkTooltip",
  12890. e = $(h),
  12891. f = "";
  12892. if (e.length) {
  12893. e.hover(function (a) {
  12894. var c = $(a.target),
  12895. b;
  12896. if (!c.hasClass(h.substr(1))) {
  12897. c = c.closest(h)
  12898. }
  12899. b = c.attr("class");
  12900. b = b.match(/\bjs_tooltip_show[^\b]*?\b/)[0].replace("show", "div");
  12901. f = $("." + b);
  12902. f.removeClass("hidden").show()
  12903. }, function (a) {
  12904. f.addClass("hidden").hide()
  12905. })
  12906. }
  12907. };
  12908. webUI.Utils.Popup = {
  12909. zindex : 10600,
  12910. oPopups : {},
  12911. Center : function (l, k) {
  12912. webUI.Utils.Loading.ShowLoadingLayer();
  12913. var o = this,
  12914. j = $(l),
  12915. h = $(window),
  12916. m = k || this.zindex,
  12917. n = function () {
  12918. var b = h.width() / 2 - j.outerWidth(true) / 2,
  12919. a = h.height() / 2 - j.outerHeight(true) / 2;
  12920. if (b < 0) {
  12921. b = 0
  12922. }
  12923. if (a < 0) {
  12924. a = 0
  12925. }
  12926. j.css({
  12927. "z-index" : m,
  12928. position : "fixed",
  12929. left : b,
  12930. top : a
  12931. })
  12932. };
  12933. j.removeClass("hidden").show();
  12934. n();
  12935. setTimeout(n, 1);
  12936. if (!this.oPopups[l]) {
  12937. this.oPopups[l] = l;
  12938. h.on("resize", function () {
  12939. if (o.oPopups[l]) {
  12940. if (j.is(":visible")) {
  12941. o.Center(l)
  12942. } else {
  12943. delete o.oPopups[l]
  12944. }
  12945. }
  12946. })
  12947. }
  12948. },
  12949. Hide : function (b) {
  12950. $(b).hide();
  12951. webUI.Utils.Loading.HideLoading()
  12952. }
  12953. };
  12954. webUI.Utils.MonthNames = {
  12955. GetLong : function (b) {
  12956. return ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"][b]
  12957. },
  12958. GetShort : function (b) {
  12959. return ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"][b]
  12960. }
  12961. };
  12962. String.prototype.startsWith = function (b) {
  12963. return (this.match("^" + b) == b)
  12964. };
  12965. webUI.Utils.thousandsSeparator = function (b) {
  12966. return Number(b).toLocaleString()
  12967. };
  12968. webUI.Utils.randomNumber = function (d, c) {
  12969. d = d || 0;
  12970. c = c || 9999999999;
  12971. return Math.floor(Math.random() * c) + d
  12972. };
  12973. webUI.Utils.GetRegularExpEmail = function () {
  12974. return /^([0-9a-zA-Z]+)([\.\-][0-9a-zA-Z]+|([\.]?[_\-]+)+[0-9a-zA-Z]*|([_\-]+[\.]?)+[0-9a-zA-Z]*)*[_\-]?@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4})(\]?)$/g
  12975. };
  12976. webUI.Utils.GetIdSelector = function (b) {
  12977. return "#" + b.attr("id")
  12978. };
  12979. webUI.Utils.getScrollTop = function () {
  12980. if (typeof pageYOffset != "undefined") {
  12981. return pageYOffset
  12982. } else {
  12983. var d = document.body,
  12984. c = document.documentElement;
  12985. c = (c.clientHeight) ? c : d;
  12986. return c.scrollTop
  12987. }
  12988. };
  12989. webUI.Utils.URLSearch = {
  12990. getJSON : function (m, l) {
  12991. var q = {},
  12992. k = [],
  12993. p = m || document.location.search,
  12994. j = p && "?" == p.charAt(0) ? 1 : 0;
  12995. if (!p) {
  12996. return q
  12997. }
  12998. p = p.substr(j);
  12999. k = p.split("&");
  13000. for (var n = 0, o; n < k.length; n++) {
  13001. p = k[n].split("=");
  13002. o = decodeURIComponent(p[0]);
  13003. if (l) {
  13004. o = o.toLowerCase()
  13005. }
  13006. q[o] = decodeURIComponent(p[1])
  13007. }
  13008. return q
  13009. },
  13010. getSearch : function (f) {
  13011. var e = "",
  13012. d = 0;
  13013. if (!JSON) {
  13014. return ""
  13015. }
  13016. return "?" + $.param(f).replace(/\+/g, "%20")
  13017. },
  13018. setSearchGetURL : function (k, j) {
  13019. var l = j || document.location.href,
  13020. m = "",
  13021. h = {},
  13022. g = l.indexOf("?");
  13023. if (g != -1) {
  13024. m = l.substr(g);
  13025. l = l.substring(0, g)
  13026. }
  13027. h = this.getJSON(m);
  13028. if (k) {
  13029. $.extend(h, k)
  13030. }
  13031. return l + this.getSearch(h)
  13032. }
  13033. };
  13034. webUI.Utils.CtrlTmpl = {
  13035. tmplHandle : function (l, m, h, o, n, k) {
  13036. var j = "string" == typeof l ? $(".tmpls " + l) : l;
  13037. j = j.eq(0).clone();
  13038. j = (o) ? j.render(h, o) : j.autoRender(h);
  13039. if (n && $.trim($(m).html())) {
  13040. $(m).empty()
  13041. }
  13042. if (parseFloat($.fn.jquery) > 1.3) {
  13043. j = j.children().unwrap()
  13044. }
  13045. (k == "prepend") ? j.prependTo(m) : j.appendTo(m)
  13046. }
  13047. };
  13048. webUI.Utils.webBrowser = {
  13049. ua : navigator.userAgent,
  13050. detect : function () {
  13051. var f = "";
  13052. if (-1 != this.ua.indexOf(" rv:11")) {
  13053. f = {
  13054. name : "MSIE",
  13055. version : 11,
  13056. platform : this.getPlatform()
  13057. }
  13058. } else {
  13059. for (var e = 0, h = ["Chrome", "Safari", "Opera", "Firefox", "MSIE"], g = 0; !f && e < h.length; e++) {
  13060. if ((g = this.ua.indexOf(h[e])) != -1) {
  13061. f = {
  13062. name : h[e],
  13063. version : this.getVersion(h[e], g),
  13064. platform : this.getPlatform()
  13065. }
  13066. }
  13067. }
  13068. }
  13069. f.isMobile = (-1 != "Android_iOS_ipa".indexOf(f.platform) ? 1 : 0);
  13070. webUI.Utils.Browser.set(f);
  13071. return f
  13072. },
  13073. getVersion : function (d, c) {
  13074. return parseInt(this.ua.substr((("Safari" == d) ? (this.ua.indexOf("Version/") + 8) : c + d.length + 1)), 10)
  13075. },
  13076. getPlatform : function () {
  13077. if (this.ua.match(/android/i)) {
  13078. return "Android"
  13079. }
  13080. if (this.ua.match(/iPod|iPhone/)) {
  13081. return "iOS"
  13082. }
  13083. if (this.ua.match(/iPad/)) {
  13084. return "ipa"
  13085. }
  13086. var b = navigator.platform;
  13087. if (b) {
  13088. return b.substring(0, 3)
  13089. }
  13090. return ""
  13091. }
  13092. };
  13093. webUI.Utils.Browser = {
  13094. IE : 0,
  13095. IElt10 : 0,
  13096. Firefox : 0,
  13097. Safari : 0,
  13098. Chrome : 0,
  13099. Opera : 0,
  13100. info : "",
  13101. set : function (c) {
  13102. if (!c) {
  13103. return
  13104. }
  13105. var d = this;
  13106. this.info = c;
  13107. switch (c.name) {
  13108. case "MSIE":
  13109. d.IE = 1;
  13110. d.IElt10 = (c.version < 10);
  13111. break;
  13112. case "Firefox":
  13113. d.Firefox = 1;
  13114. break;
  13115. case "Safari":
  13116. d.Safari = 1;
  13117. break;
  13118. case "Chrome":
  13119. d.Chrome = 1;
  13120. break;
  13121. case "Opera":
  13122. d.Opera = 1;
  13123. break
  13124. }
  13125. return d
  13126. },
  13127. init : function () {
  13128. return this.set(webUI.Utils.webBrowser.detect())
  13129. }
  13130. };
  13131. webUI.Utils.LazyLoad = {
  13132. toHandler : 0,
  13133. init : function (c) {
  13134. var d = this;
  13135. this.run(c);
  13136. if (!c) {
  13137. $(window).bind("scroll", function () {
  13138. d.ctrlExec()
  13139. }).bind("resize", function () {
  13140. d.ctrlExec()
  13141. })
  13142. }
  13143. },
  13144. ctrlExec : function () {
  13145. var b = this;
  13146. if (this.toHandler) {
  13147. clearTimeout(this.toHandler)
  13148. }
  13149. this.toHandler = setTimeout(function () {
  13150. b.run()
  13151. }, 500)
  13152. },
  13153. run : function (pNotLazy) {
  13154. var _me = this;
  13155. setTimeout(function () {
  13156. $("*[exec-js]").each(function () {
  13157. if (pNotLazy || (!pNotLazy && webUI.Utils.getScrollTop() + 300 >= ($(this).offset().top - $(window).height()))) {
  13158. eval($(this).attr("exec-js"));
  13159. $(this).removeAttr("exec-js")
  13160. }
  13161. })
  13162. }, 1000)
  13163. }
  13164. };
  13165. webUI.Utils.ConverterSpecialChars = {
  13166. convertpEnc2Char : function (c) {
  13167. var d = this,
  13168. c = Utf8.decode(c);
  13169. c = c.replace(/((%[A-Fa-f0-9]{2})+)/g, function (b, a) {
  13170. return d.convertpEsc2Char(a)
  13171. }).replace(/([\+])+/g, " ");
  13172. return c
  13173. },
  13174. convertpEsc2Char : function (j) {
  13175. var k = "";
  13176. var o = 0;
  13177. var l = 0;
  13178. var m = j.split("%");
  13179. for (var n = 1; n < m.length; n++) {
  13180. var b = parseInt(m[n], 16);
  13181. switch (o) {
  13182. case 0:
  13183. if (0 <= b && b <= 127) {
  13184. k += this.dec2char(b)
  13185. } else {
  13186. if (192 <= b && b <= 223) {
  13187. o = 1;
  13188. l = b & 31
  13189. } else {
  13190. if (224 <= b && b <= 239) {
  13191. o = 2;
  13192. l = b & 15
  13193. } else {
  13194. if (240 <= b && b <= 247) {
  13195. o = 3;
  13196. l = b & 7
  13197. } else {
  13198. k += "convertpEsc2Char: error " + this.dec2hex(b) + "! "
  13199. }
  13200. }
  13201. }
  13202. }
  13203. break;
  13204. case 1:
  13205. if (b < 128 || b > 191) {
  13206. k += "convertpEsc2Char: error " + this.dec2hex(b) + "! "
  13207. }
  13208. o--;
  13209. k += this.dec2char((l << 6) | (b - 128));
  13210. l = 0;
  13211. break;
  13212. case 2:
  13213. case 3:
  13214. if (b < 128 || b > 191) {
  13215. k += "convertpEsc2Char: error " + this.dec2hex(b) + "! "
  13216. }
  13217. l = (l << 6) | (b - 128);
  13218. o--;
  13219. break
  13220. }
  13221. }
  13222. return k
  13223. },
  13224. dec2char : function (d) {
  13225. var c = "";
  13226. if (d <= 65535) {
  13227. c += String.fromCharCode(d)
  13228. } else {
  13229. if (d <= 1114111) {
  13230. d -= 65536;
  13231. c += String.fromCharCode(55296 | (d >> 10)) + String.fromCharCode(56320 | (d & 1023))
  13232. } else {
  13233. c += "dec2char error: Code point out of range: " + dec2hex(d)
  13234. }
  13235. }
  13236. return c
  13237. },
  13238. dec2hex : function (b) {
  13239. return (b + 0).toString(16).toUpperCase()
  13240. }
  13241. };
  13242. webUI.Utils.browserCookies = {
  13243. setCookie : function (p, l, j, o, k, n) {
  13244. var m = new Date();
  13245. m.setTime(m.getTime());
  13246. if (j) {
  13247. j = j * 1000 * 60 * 60 * 24
  13248. }
  13249. var q = new Date(m.getTime() + (j));
  13250. document.cookie = p + "=" + l + ((j) ? ";expires=" + q.toGMTString() : "") + ((o) ? ";path=" + o : "") + ((k) ? ";domain=" + k : "") + ((n) ? ";secure" : "")
  13251. },
  13252. getCookie : function (d) {
  13253. var c = document.cookie.split(d + "=");
  13254. return (c.length == 2) ? unescape(c.pop().split(";").shift()) : ""
  13255. },
  13256. getCookiePreference : function (h) {
  13257. var g = document.cookie.indexOf(h + "=");
  13258. var e = g + h.length + 1;
  13259. if ((!g) && (h != document.cookie.substring(0, h.length))) {
  13260. return null
  13261. }
  13262. if (g == -1) {
  13263. return null
  13264. }
  13265. var f = document.cookie.indexOf(";", e);
  13266. if (f == -1) {
  13267. f = document.cookie.length
  13268. }
  13269. return document.cookie.substring(e, f)
  13270. },
  13271. deleteCookie : function (d, f, e) {
  13272. document.cookie = d + "=null;expires=Thu, 01-Jan-1970 00:00:01 GMT" + ((f) ? ";path=" + f : "") + ((e) ? ";domain=" + e : "")
  13273. }
  13274. };
  13275. webUI.Utils.SearchHighlight = {
  13276. kw : "",
  13277. settings : {},
  13278. run : function (c, d) {
  13279. this.kw = $('[id$="txtKeyword"]').val();
  13280. if (this.kw) {
  13281. this.kw = decodeURIComponent(this.kw);
  13282. this.settings = {
  13283. exact : "exact",
  13284. highlight : c || "",
  13285. nohighlight : d,
  13286. keys : this.kw
  13287. };
  13288. $(document).SearchHighlight(this.settings)
  13289. }
  13290. },
  13291. inPopup : function (c) {
  13292. if (this.kw) {
  13293. var d = $.extend(this.settings, {
  13294. highlight : c
  13295. });
  13296. $(c).SearchHighlight(d)
  13297. }
  13298. }
  13299. };
  13300. webUI.Utils.OriginVisit = {
  13301. init : function () {
  13302. var n = "",
  13303. l = "",
  13304. j = [],
  13305. m,
  13306. h = webUI.Utils.browserCookies,
  13307. k = "";
  13308. if (window.location.search != null) {
  13309. l = window.location.search.substring(1);
  13310. j = l.split("&");
  13311. for (var o = 0; o < j.length; o++) {
  13312. m = j[o].split("=");
  13313. if (m[0].toLowerCase() == "origenvisita") {
  13314. n = m[1]
  13315. }
  13316. if (m[0].toLowerCase() == "xtor") {
  13317. k = m[1]
  13318. }
  13319. }
  13320. }
  13321. if (n != "") {
  13322. if (h.getCookie("IdOriginVisit") != null) {
  13323. h.deleteCookie("IdOriginVisit", "/", "infojobs.com.br")
  13324. }
  13325. h.setCookie("IdOriginVisit", n, 1, "/", "infojobs.com.br", "")
  13326. }
  13327. if (k != "") {
  13328. if (h.getCookie("tidx") != null) {
  13329. h.deleteCookie("tidx", "/", "infojobs.com.br")
  13330. }
  13331. h.setCookie("tidx", k, 1, "/", "infojobs.com.br", "")
  13332. }
  13333. }
  13334. };
  13335. webUI.Utils.Sanitizier = function (b) {
  13336. return (!b) ? "" : jQuery.trim(b).toLowerCase().replace(/[àáäãâ]/g, "a").replace(/[èéëê]/g, "e").replace(/[ìíïî]/g, "i").replace(/[òóöõô]/g, "o").replace(/[ùúüû]/g, "u").replace(/[ç]/g, "c").replace(/[ñ]/g, "n")
  13337. };
  13338. var Utf8 = {
  13339. encode : function (h) {
  13340. h = h.replace(/\r\n/g, "\n");
  13341. var g = "";
  13342. for (var c = 0; c < h.length; c++) {
  13343. var f = h.charCodeAt(c);
  13344. if (f < 128) {
  13345. g += String.fromCharCode(f)
  13346. } else {
  13347. if ((f > 127) && (f < 2048)) {
  13348. g += String.fromCharCode((f >> 6) | 192);
  13349. g += String.fromCharCode((f & 63) | 128)
  13350. } else {
  13351. g += String.fromCharCode((f >> 12) | 224);
  13352. g += String.fromCharCode(((f >> 6) & 63) | 128);
  13353. g += String.fromCharCode((f & 63) | 128)
  13354. }
  13355. }
  13356. }
  13357. return g
  13358. },
  13359. decode : function (j) {
  13360. var k = "";
  13361. var l = 0;
  13362. var h = 0;
  13363. var c = 0;
  13364. var m = 0;
  13365. while (l < j.length) {
  13366. h = j.charCodeAt(l);
  13367. if (h < 128) {
  13368. k += String.fromCharCode(h);
  13369. l++
  13370. } else {
  13371. if ((h > 191) && (h < 224)) {
  13372. m = j.charCodeAt(l + 1);
  13373. k += String.fromCharCode(((h & 31) << 6) | (m & 63));
  13374. l += 2
  13375. } else {
  13376. m = j.charCodeAt(l + 1);
  13377. c3 = j.charCodeAt(l + 2);
  13378. k += String.fromCharCode(((h & 15) << 12) | ((m & 63) << 6) | (c3 & 63));
  13379. l += 3
  13380. }
  13381. }
  13382. }
  13383. return k
  13384. }
  13385. };
  13386. if (!Date.prototype.toISOString) {
  13387. (function () {
  13388. function b(a) {
  13389. if (a < 10) {
  13390. return "0" + a
  13391. }
  13392. return a
  13393. }
  13394. Date.prototype.toISOString = function () {
  13395. return this.getUTCFullYear() + "-" + b(this.getUTCMonth() + 1) + "-" + b(this.getUTCDate()) + "T" + b(this.getUTCHours()) + ":" + b(this.getUTCMinutes()) + ":" + b(this.getUTCSeconds()) + "." + (this.getUTCMilliseconds() / 1000).toFixed(3).slice(2, 5) + "Z"
  13396. }
  13397. }
  13398. ())
  13399. }
  13400. "use strict";
  13401. var webUI = (typeof(webUI) === "undefined") ? {}
  13402.  
  13403. : webUI;
  13404. webUI.Utils = webUI.Utils || {};
  13405. webUI.Utils.FadeCarousel = function (c, d) {
  13406. this.$ulContainer = "";
  13407. this.hInterval = 0;
  13408. this.stop = 0;
  13409. this.settings = {
  13410. ulContainer : "",
  13411. btPrevSlide : "",
  13412. btNextSlide : "",
  13413. endReachedFunc : "",
  13414. interval : 0
  13415. };
  13416. this.options = {};
  13417. this.init = function (a, b) {
  13418. var h = this,
  13419. g = h.options = $.extend({}, h.settings, a);
  13420. h.$ulContainer = $(g.ulContainer);
  13421. h.bindEvents();
  13422. if (g.endReachedFunc) {
  13423. h.computeNumItems()
  13424. }
  13425. if (b) {
  13426. setTimeout(function () {
  13427. h.setLoop()
  13428. }, 1000)
  13429. }
  13430. };
  13431. this.bindEvents = function () {
  13432. var b = this,
  13433. a = b.options;
  13434. b.$ulContainer.hover(function () {
  13435. b.stopAnim()
  13436. }, function () {
  13437. b.resumeAnim()
  13438. });
  13439. $(a.btNextSlide).on("click", function (e) {
  13440. b.OnClick_BtNextSlide(e)
  13441. });
  13442. $(a.btPrevSlide).on("click", function (e) {
  13443. b.OnClick_BtPrevSlide(e)
  13444. })
  13445. };
  13446. this.setLoop = function (a, b) {
  13447. var f = this;
  13448. if (f.hInterval) {
  13449. clearInterval(f.hInterval)
  13450. }
  13451. f.hInterval = setInterval(function () {
  13452. f.anim()
  13453. }, f.options.interval)
  13454. };
  13455. this.stopAnim = function () {
  13456. this.stop = 1
  13457. };
  13458. this.resumeAnim = function () {
  13459. this.stop = 0
  13460. };
  13461. this.anim = function (a) {
  13462. if (this.stop) {
  13463. return
  13464. }
  13465. var f = this.$ulContainer.find(".js_row.active"),
  13466. b = f.next().length ? f.next() : f.prev();
  13467. f.fadeOut("normal", function () {
  13468. f.css("z-index", 1).removeClass("active");
  13469. b.addClass("active").fadeIn("normal");
  13470. if (a != null) {
  13471. a()
  13472. }
  13473. })
  13474. };
  13475. this.OnClick_BtPrevSlide = function (a) {
  13476. if (a) {
  13477. a.preventDefault()
  13478. }
  13479. };
  13480. this.OnClick_BtNextSlide = function (a) {
  13481. if (a) {
  13482. a.preventDefault()
  13483. }
  13484. };
  13485. this.computeNumItems = function (a) {};
  13486. this.ctrlCounter = function (a) {};
  13487. this.init(c, d)
  13488. };
  13489. "use strict";
  13490. var webUI = (typeof(webUI) === "undefined") ? {}
  13491.  
  13492. : webUI;
  13493. webUI.Utils = webUI.Utils || {};
  13494. webUI.Utils.FadeSlides = function (c, d) {
  13495. this.handlerInterval = 0;
  13496. this.pause = 0;
  13497. this.childrenTag = "";
  13498. this.busy = 0;
  13499. this.idx = 0;
  13500. this.settings = {
  13501. divContainer : "",
  13502. btPrevSlide : "",
  13503. btNextSlide : "",
  13504. divIndicators : "",
  13505. divIndTagName : "",
  13506. divIndShowNum : false,
  13507. interval : 4000,
  13508. speed : 1000,
  13509. direction : 0
  13510. };
  13511. this.options = {};
  13512. this.init = function (a, b) {
  13513. var j = this,
  13514. h = j.options = $.extend({}, this.settings, a),
  13515. k = $(h.divContainer);
  13516. j.childrenTag = k.css("visibility", "hidden").children(":first").prop("nodeName").toLowerCase();
  13517. k.children().hide();
  13518. if (h.divIndicators) {
  13519. this.generateIndicators()
  13520. }
  13521. if (b) {
  13522. this.run()
  13523. }
  13524. if (!k.is(":visible")) {
  13525. return
  13526. }
  13527. };
  13528. this.generateIndicators = function () {
  13529. var b = this,
  13530. h = $(this.options.divIndicators).empty(),
  13531. g,
  13532. a = "<" + this.options.divIndTagName + ">";
  13533. $(b.options.divContainer).children().each(function (e) {
  13534. g = $(a).attr("data-idx", e);
  13535. if ("<a>" == a) {
  13536. g.attr("href", "#")
  13537. }
  13538. if (b.options.divIndShowNum) {
  13539. g.text(e + 1)
  13540. }
  13541. if (e == b.idx) {
  13542. g.addClass("active")
  13543. }
  13544. h.append(g).append(" ")
  13545. });
  13546. b.bindIndicatorsClicks()
  13547. };
  13548. this.run = function () {
  13549. var b = this,
  13550. a = b.options,
  13551. f = $(a.divContainer);
  13552. setTimeout(function () {
  13553. $(a.divContainer).children().show().end().css("visibility", "visible").hide().fadeIn("slow");
  13554. b.bindEvents()
  13555. }, 500);
  13556. b.bindInterval()
  13557. };
  13558. this.bindEvents = function () {
  13559. var f = this,
  13560. b = f.options,
  13561. a = f.options.divContainer;
  13562. if (b.btPrevSlide) {
  13563. a += "," + b.btPrevSlide
  13564. }
  13565. if (b.btNextSlide) {
  13566. a += "," + b.btNextSlide
  13567. }
  13568. if (b.divIndicators) {
  13569. a += "," + b.divIndicators
  13570. }
  13571. $(a).on({
  13572. mouseover : function () {
  13573. f.pause = 1
  13574. },
  13575. mouseout : function () {
  13576. f.pause = 0
  13577. }
  13578. });
  13579. $(b.btNextSlide).on("click", function (e) {
  13580. f.clickOnNext(e)
  13581. });
  13582. $(b.btPrevSlide).on("click", function (e) {
  13583. f.clickOnPrev(e)
  13584. })
  13585. };
  13586. this.bindIndicatorsClicks = function () {
  13587. var a = this;
  13588. $(a.options.divIndicators).children().on("click", function (b) {
  13589. a.clickOnIndicator(b)
  13590. })
  13591. };
  13592. this.clickOnIndicator = function (a) {
  13593. if (a) {
  13594. a.preventDefault
  13595. }
  13596. var e = $(a.target),
  13597. b = e.attr("data-idx");
  13598. this.anotherSlide("", b)
  13599. };
  13600. this.clickOnNext = function (a) {
  13601. if (a) {
  13602. a.preventDefault
  13603. }
  13604. this.anotherSlide(0)
  13605. };
  13606. this.clickOnPrev = function (a) {
  13607. if (a) {
  13608. a.preventDefault
  13609. }
  13610. this.anotherSlide(1)
  13611. };
  13612. this.anotherSlide = function (b, a) {
  13613. var f = this;
  13614. if (!f.busy) {
  13615. clearInterval(f.handlerInterval);
  13616. f.doAnimation(b, a);
  13617. $(f.ulContainer).promise().done(function () {
  13618. f.bindInterval()
  13619. })
  13620. }
  13621. };
  13622. this.bindInterval = function () {
  13623. var a = this;
  13624. a.handlerInterval = setInterval(function () {
  13625. if (!a.pause) {
  13626. a.doAnimation()
  13627. }
  13628. }, a.options.interval)
  13629. };
  13630. this.doAnimation = function (b, a) {
  13631. var m = this,
  13632. l = m.options,
  13633. o = b || l.direction;
  13634. if (2 == o) {
  13635. return
  13636. }
  13637. this.busy = 1;
  13638. var p = $(l.divContainer + " .active"),
  13639. q;
  13640. if (a) {
  13641. if (a == p.index()) {
  13642. return
  13643. } else {
  13644. q = $(l.divContainer).children().eq(a)
  13645. }
  13646. } else {
  13647. var n = l.divContainer + " " + this.childrenTag,
  13648. q = (!o) ? ((p.next().length) ? p.next() : $(n + ":first")) : ((p.prev().length) ? p.prev() : $(n + ":last"))
  13649. }
  13650. m.idx = q.css("z-index", 2).index();
  13651. if (l.divIndicators) {
  13652. m.generateIndicators()
  13653. }
  13654. p.fadeOut(l.speed, function () {
  13655. p.css("z-index", 1).show().removeClass("active");
  13656. q.css("z-index", 3).addClass("active");
  13657. m.busy = 0
  13658. })
  13659. };
  13660. this.init(c, d)
  13661. };
  13662. "use strict";
  13663. var webUI = (typeof(webUI) === "undefined") ? {}
  13664.  
  13665. : webUI;
  13666. webUI.Utils = webUI.Utils || {};
  13667. webUI.Utils.SemanticURL = {
  13668. url_base : "",
  13669. getURL : function (n, m, l) {
  13670. if (!n || !n.length) {
  13671. n = []
  13672. }
  13673. var r = m || this.url_base,
  13674. s = [];
  13675. for (var q = 0, o = n, k = ""; q < o.length; q++) {
  13676. s.push(o[q].key + "=" + (isNaN(parseInt(o[q].val, 10)) ? this.removeSpecialChars(o[q].val) : o[q].val))
  13677. }
  13678. r += l;
  13679. if (s.length) {
  13680. r += "?"
  13681. }
  13682. for (var q = 0, p = s.length; q < p; q++) {
  13683. if (q) {
  13684. r += "&"
  13685. }
  13686. r += s[q]
  13687. }
  13688. return r
  13689. },
  13690. getURLNoFinder : function (o, n, m) {
  13691. if (!o || !o.length) {
  13692. o = []
  13693. }
  13694. var j = n || this.url_base,
  13695. k = [];
  13696. for (var q = 0, p = o, l = ""; q < p.length; q++) {
  13697. if (p[q].semantic) {
  13698. l = (1 == p[q].semantic) ? p[q].val : p[q].semantic;
  13699. if (p[q].key == "Palabra") {
  13700. j += "-de-" + l
  13701. } else {
  13702. if (p[q].key == "Provincia") {
  13703. j += "-em-" + l
  13704. } else {
  13705. j += "-" + l
  13706. }
  13707. }
  13708. }
  13709. k.push(encodeURI(p[q].key + "=" + p[q].val))
  13710. }
  13711. j += m;
  13712. return encodeURI(j)
  13713. },
  13714. getInEnglishAlphabet : function (j) {
  13715. if (!j || !j.length) {
  13716. return ""
  13717. }
  13718. j = j.replace(/^\s+|\s+$/g, "").toLowerCase();
  13719. var g = "ãàáäâèéëêìíïîòóöôùúüûñç·/_,:;",
  13720. h = "aaaaaeeeeiiiioooouuuunc------";
  13721. for (var f = 0, k = g.length; f < k; f++) {
  13722. j = j.replace(new RegExp(g.charAt(f), "g"), h.charAt(f))
  13723. }
  13724. return j.replace(/[^a-z0-9 -]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-")
  13725. },
  13726. removeSpecialChars : function (g) {
  13727. var f = "$·&¡!,/\"'";
  13728. for (var e = 0, h = f.length; e < h; e++) {
  13729. g = g.replace(new RegExp(f.charAt(e), "g"), " ")
  13730. }
  13731. g = g.replace(/[?]/g, " ").replace(/^\s+/g, "").replace(/\s+$/g, "").replace(/\s+/g, " ");
  13732. return encodeURI(g)
  13733. },
  13734. getItem : function (e, g, h) {
  13735. var f = {
  13736. key : e,
  13737. val : g
  13738. };
  13739. if (h) {
  13740. f.semantic = h
  13741. }
  13742. return f
  13743. },
  13744. getSemantic : function (e, h) {
  13745. var g = h;
  13746. for (var f = 0; f < e.length; f++) {
  13747. g = g.replace(e[f].js_selector, ((e[f].js_selector) ? e[f].value.toString() : ""))
  13748. }
  13749. g = g.replace(/\$[^\$]+\$/g, "");
  13750. return g.toString()
  13751. }
  13752. };
  13753. "use strict";
  13754. var webUI = (typeof(webUI) === "undefined") ? {}
  13755.  
  13756. : webUI;
  13757. webUI.Utils = webUI.Utils || {};
  13758. var lblErrorNoFloat = 0;
  13759. webUI.Utils.Validation = {
  13760. NoTooltipLeft : 0,
  13761. FirstExec : 1,
  13762. LastErrorControl : null,
  13763. validateNoFocus : 0,
  13764. NoValidate : function () {
  13765. var b = document.getElementById("aspnetForm");
  13766. b.onsubmit = ""
  13767. },
  13768. Validate : function (m, n, l) {
  13769. webUI.Utils.Validation.LastErrorControl = null;
  13770. var h = webUI.Utils.webBrowser.detect();
  13771. var o = true;
  13772. var k = "";
  13773. if ($(".mAlert").length) {
  13774. $(".mAlert").addClass("hidden")
  13775. }
  13776. if ($(".error").length) {
  13777. $(".error").removeClass("error")
  13778. }
  13779. if ($(".merror").length) {
  13780. $(".merror").addClass("hidden")
  13781. }
  13782. if ($(".mError").length) {
  13783. $(".mError").addClass("hidden")
  13784. }
  13785. $(m).find("[ctrlerror]").reverse().each(function () {
  13786. k = $(this)["0"].value;
  13787. if ($(this).parent().css("display") != "none") {
  13788. if (!ValidateField($(this))) {
  13789. o = false
  13790. }
  13791. } else {
  13792. if ($(this).parent().css("display") == "none") {
  13793. $(this).val("");
  13794. if (!IsHiddenControl($(this))) {
  13795. $(this)["0"].value = k
  13796. }
  13797. }
  13798. }
  13799. });
  13800. var j = webUI.Utils.Validation.LastErrorControl;
  13801. if (j && j.length) {
  13802. showTooltip(j, $("#" + j.attr("CtrlError")));
  13803. if (!l) {
  13804. j.focus()
  13805. }
  13806. }
  13807. if (!o && n) {
  13808. alert(n)
  13809. }
  13810. return o
  13811. },
  13812. ShowTooltip : function (d, c) {
  13813. showTooltip(d, c)
  13814. },
  13815. ShowTooltipError : function (f, g, e, h) {
  13816. ShowError(f, g, e, h)
  13817. }
  13818. };
  13819. function ValidateSection(l, m, n, o) {
  13820. var p = true,
  13821. k = "";
  13822. webUI.Utils.Validation.LastErrorControl = "";
  13823. l = l || "form";
  13824. if (!n) {
  13825. n = "input:visible,input[type=password]:visible,textarea:visible,select:visible"
  13826. }
  13827. if (!o) {
  13828. $("form").find("div.divEnviando").attr("style", "display:block");
  13829. $("form").find("input.buttonDisbl").attr("style", "display:none")
  13830. }
  13831. if ($(".mAlert").length > 0) {
  13832. $(".mAlert").addClass("hidden")
  13833. }
  13834. if ($(l).find(".error").length > 0) {
  13835. $(l).find(".error").removeClass("error")
  13836. }
  13837. if ($(l).find(".mError").length > 0) {
  13838. $(l).find(".mError").addClass("hidden")
  13839. }
  13840. if ($(l).find(".merror").length > 0) {
  13841. if ($(l).find(".merrorsmall").length > 0) {
  13842. $(l).find(".merrorsmall").removeClass("merrorsmall")
  13843. }
  13844. $(l).find(".merror").addClass("hidden")
  13845. }
  13846. var s = "",
  13847. q = "",
  13848. r = [];
  13849. $(l).find(n).reverse().each(function () {
  13850. s = $(this);
  13851. if (s.prop("disabled")) {
  13852. return true
  13853. }
  13854. if (s.attr("type") == "radio") {
  13855. var a = s.closest("[ctrlerror]");
  13856. if (a.length) {
  13857. q = a.attr("ctrlerror");
  13858. if (-1 == $.inArray(q, r)) {
  13859. r.push(q);
  13860. if (!$(':radio[name="' + s.attr("name") + '"]:checked').length) {
  13861. $("#" + q).text(a.attr("rfverrormessage")).removeClass("hidden").addClass("error");
  13862. p = false
  13863. } else {
  13864. $("#" + q).addClass("hidden")
  13865. }
  13866. }
  13867. }
  13868. } else {
  13869. k = s["0"].value;
  13870. if (s.parent().css("display") != "none") {
  13871. if (!ValidateField(s)) {
  13872. p = false
  13873. }
  13874. } else {
  13875. if (s.parent().css("display") == "none") {
  13876. s.val("");
  13877. if (!IsHiddenControl(s)) {
  13878. s["0"].value = k
  13879. }
  13880. }
  13881. }
  13882. }
  13883. });
  13884. if (!p) {
  13885. if (m) {
  13886. alert(m)
  13887. }
  13888. if (!o) {
  13889. $("form").find("div.divEnviando,input.buttonDisbl").removeAttr("style")
  13890. }
  13891. s = webUI.Utils.Validation.LastErrorControl;
  13892. if (s) {
  13893. s.focus();
  13894. showTooltipError(s)
  13895. }
  13896. }
  13897. return p
  13898. }
  13899. function ltrim(b) {
  13900. return b.replace(/^\s+/, "")
  13901. }
  13902. function rtrim(b) {
  13903. return b.replace(/\s+$/, "")
  13904. }
  13905. function trim(b) {
  13906. return rtrim(ltrim(b))
  13907. }
  13908. function ValidateField(e, f) {
  13909. var d = true;
  13910. webUI.Utils.Validation.validateNoFocus = f;
  13911. d = NonValidCharacters(e);
  13912. if (d) {
  13913. d = SpecificValidator(e)
  13914. }
  13915. if (d) {
  13916. d = RequiredFieldValidator(e)
  13917. }
  13918. if (d) {
  13919. d = DependantFieldValidator(e)
  13920. }
  13921. if (d) {
  13922. d = RegularExpressionValidator(e)
  13923. }
  13924. if (d) {
  13925. d = CompareValidator(e)
  13926. }
  13927. if (d) {
  13928. d = RangeValidator(e)
  13929. }
  13930. if (d) {
  13931. d = LengthValidator(e)
  13932. }
  13933. webUI.Utils.Validation.validateNoFocus = 0;
  13934. return d
  13935. }
  13936. var regexNotAllowSpecial = /[^A-Za-z\s\dçÇ\-\+\,\.\(\)&'áàéèíìóòúùäëïöüãõâêîôû]/gi;
  13937. function NonValidCharacters(f) {
  13938. var e = true;
  13939. if ((f.is("input[type=text]") || f.is("textarea") || f.is("input[type=password]")) && f.val() != null && f.val() != "") {
  13940. e = SanitizeCarryReturn(f);
  13941. var g = trim(f.val());
  13942. if ((!f.attr("revRegExp") && !f.attr("svSpecificFunction")) && g != "" && (f.attr("type") == "text" || f[0].type == "textarea" || f[0].type == "password")) {
  13943. if (!f.attr("nvcErrorMessage")) {
  13944. if (!f.attr("nvcAllowSpecial")) {
  13945. g = g.replace(regexNotAllowSpecial, "")
  13946. }
  13947. if (!f.attr("nvcAllowCPF")) {
  13948. g = g.replace(/[0-9]{3}\.[0-9]{3}\.[0-9]{3}\-[0-9]{2}/g, "")
  13949. }
  13950. if (!f.attr("nvcAllowCNPJ")) {
  13951. g = g.replace(/[0-9]{2}\.[0-9]{3}\.[0-9]{3}\/[0-9]{4}\-[0-9]{2}/g, "")
  13952. }
  13953. if (!f.attr("nvcAllowEmail")) {
  13954. g = g.replace(/^([0-9a-zA-Z]+)([\.\-][0-9a-zA-Z]+|([\.]?[_\-]+)+[0-9a-zA-Z]*|([_\-]+[\.]?)+[0-9a-zA-Z]*)*[_\-]?@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4})(\]?)$/g, "")
  13955. }
  13956. if (!f.attr("nvcAllowUrl")) {
  13957. g = g.replace(/(((ht|f)tp(s?)|(HT|F)TP(S?))\:\/\/)?([a-zA-Z]+\.)(([0-9a-zA-Z])+([-\w]*[0-9a-zA-Z])*\.)+[a-zA-Z]{2,9}\S*/g, "")
  13958. }
  13959. if (!f.attr("nvcAllowPhone")) {
  13960. g = g.replace(/([\d]{1,})([\d+\-\(\)\.]){6,20}/g, "")
  13961. }
  13962. if (!f.attr("nvcAllowBreakLine")) {
  13963. g = g.replace(/\n/g, "")
  13964. }
  13965. g = g.replace(/\u0001/g, "");
  13966. g = g.replace(/(\<\/.*\>)/g, "");
  13967. g = g.replace(/(\<.*\>)/g, "")
  13968. } else {
  13969. var h;
  13970. if (e && !f.attr("nvcAllowSpecial")) {
  13971. h = new RegExp(regexNotAllowSpecial);
  13972. e = !g.match(h)
  13973. }
  13974. if (e && !f.attr("nvcAllowCPF")) {
  13975. h = new RegExp(/[0-9]{3}\.[0-9]{3}\.[0-9]{3}\-[0-9]{2}/g);
  13976. e = !g.match(h)
  13977. }
  13978. if (e && !f.attr("nvcAllowCNPJ")) {
  13979. h = new RegExp(/[0-9]{2}\.[0-9]{3}\.[0-9]{3}\/[0-9]{4}\-[0-9]{2}/g);
  13980. e = !g.match(h)
  13981. }
  13982. if (e && !f.attr("nvcAllowEmail")) {
  13983. h = new RegExp(/^([0-9a-zA-Z]+)([\.\-][0-9a-zA-Z]+|([\.]?[_\-]+)+[0-9a-zA-Z]*|([_\-]+[\.]?)+[0-9a-zA-Z]*)*[_\-]?@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4})(\]?)$/g);
  13984. e = !g.match(h)
  13985. }
  13986. if (e && !f.attr("nvcAllowUrl")) {
  13987. h = new RegExp(/(((ht|f)tp(s?)|(HT|F)TP(S?))\:\/\/)?([a-zA-Z]+\.)(([0-9a-zA-Z])+([-\w]*[0-9a-zA-Z])*\.)+[a-zA-Z]{2,9}\S*/g);
  13988. e = !g.match(h)
  13989. }
  13990. if (e && !f.attr("nvcAllowPhone")) {
  13991. h = new RegExp(/([\d]{1,})([\d+\-\(\)\.]){6,20}/g);
  13992. e = !g.match(h)
  13993. }
  13994. if (!f.attr("nvcAllowBreakLine")) {
  13995. h = new RegExp(/\n/g);
  13996. e = !g.match(h)
  13997. }
  13998. g = g.replace(/\u0001/g, "");
  13999. g = g.replace(/(\<\/.*\>)/g, "");
  14000. g = g.replace(/(\<.*\>)/g, "");
  14001. ShowError(f, !e, f.attr("ctrlError"), f.attr("nvcErrorMessage"))
  14002. }
  14003. }
  14004. if (f.attr("type") == "file") {
  14005. f.text(g)
  14006. } else {
  14007. f.val(g)
  14008. }
  14009. }
  14010. return e
  14011. }
  14012. function RequiredFieldValidator(e) {
  14013. var f = false;
  14014. if (e.attr("rfvRequired")) {
  14015. if (e.attr("rfvGroupType")) {
  14016. $(e).find(e.attr("rfvGroupType")).each(function () {
  14017. if ($(this).parent().attr("type") == "select-multiple") {
  14018. if (!f && $(this).attr("selected")) {
  14019. f = true
  14020. }
  14021. } else {
  14022. if ($(this).attr("type") == "checkbox" || $(this).attr("type") == "radio") {
  14023. if (!f) {
  14024. f = $(this).is(":checked")
  14025. }
  14026. } else {
  14027. if (!f && $(this).val() != "") {
  14028. f = true
  14029. }
  14030. }
  14031. }
  14032. })
  14033. } else {
  14034. if (e.attr("type") == "checkbox") {
  14035. if (e.is(":checked")) {
  14036. f = true
  14037. }
  14038. } else {
  14039. if (e.prop("nodeName") == "INPUT" && e.val() && -1 != e.val().toLowerCase().indexOf("selecione")) {
  14040. f = false
  14041. } else {
  14042. var d = e.attr("rfvInitValue") ? e.attr("rfvInitValue") : "";
  14043. if (e.val() != d && e.val() != "") {
  14044. f = true
  14045. }
  14046. }
  14047. }
  14048. }
  14049. } else {
  14050. f = true
  14051. }
  14052. ShowError(e, !f, e.attr("ctrlError"), e.attr("rfvErrorMessage"));
  14053. return f
  14054. }
  14055. function RegularExpressionValidator(f) {
  14056. var k = false;
  14057. if (f.attr("revRegExp") && f.val() != "") {
  14058. var g = f.attr("revRegExp");
  14059. var j = new RegExp(g);
  14060. var h = f.val();
  14061. h = h.replace(/\n/g, " ");
  14062. h = h.replace(/\u0001/g, " ");
  14063. if (h.match(j)) {
  14064. k = true;
  14065. if (g == "^([0-9]){5}-([0-9]){3}$|^([0-9]){8}$") {
  14066. var j = new RegExp("^([0-9]){8}$");
  14067. if (h.match(j)) {
  14068. h = h.substring(0, 5) + "-" + h.substr(5);
  14069. f.val(h)
  14070. }
  14071. }
  14072. }
  14073. } else {
  14074. k = true
  14075. }
  14076. ShowError(f, !k, f.attr("ctrlError"), f.attr("revErrorMessage"));
  14077. return k
  14078. }
  14079. function CompareValidator(h) {
  14080. var m = true;
  14081. if ((h.attr("cvValueToCompare") || h.attr("cvControlToCompare")) && h.attr("cvOperator") && h.val() != "") {
  14082. var j = trim(h.attr("cvValueToCompare") ? h.attr("cvValueToCompare").toLowerCase() : $("#" + h.attr("cvControlToCompare")).val().toLowerCase());
  14083. var k = h.val().toLowerCase();
  14084. var g = h.attr("cvIncrement") ? h.attr("cvIncrement").toLowerCase() : 0;
  14085. var l = h.attr("cvOperator").toLowerCase();
  14086. if (h.attr("cvType") == "date") {
  14087. if (g > 0) {
  14088. String.prototype.fechaMMDDAAAA = function () {
  14089. return this.replace(/^(\d{2})\/(\d{2})\/(\d{4})$/, "$2/$1/$3")
  14090. };
  14091. f2 = new Date(j.fechaMMDDAAAA());
  14092. NumberOfMonths = g / 60 / 24 / 30;
  14093. j = GetFormatNumer(f2.getDate()) + "/" + GetFormatNumer((f2.getMonth() + NumberOfMonths + 1)) + "/" + f2.getFullYear()
  14094. }
  14095. m = ValidDates(k, j, h.attr("cvOperator").toLowerCase())
  14096. } else {
  14097. if (h.attr("cvType") == "text") {
  14098. switch (h.attr("cvoperator").toLowerCase()) {
  14099. case "!=":
  14100. if (k == j) {
  14101. m = false
  14102. }
  14103. break
  14104. }
  14105. } else {
  14106. if (h.attr("cvType") == "hour") {
  14107. var m = true;
  14108. String.prototype.horaHHmm = function () {
  14109. return this.replace(/^(\d{2}):(\d{2})$/, "$1$2")
  14110. };
  14111. h1 = k.horaHHmm();
  14112. h2 = j.horaHHmm();
  14113. switch (h.attr("cvoperator").toLowerCase()) {
  14114. case ">":
  14115. m = (parseInt(h1, 10) > parseInt(h2, 10));
  14116. break;
  14117. case "<":
  14118. m = (parseInt(h1, 10) < parseInt(h2, 10));
  14119. break;
  14120. case "=":
  14121. if (isNaN(Number(h1)) && isNaN(Number(h2))) {
  14122. m = h1 == h2
  14123. } else {
  14124. m = (parseInt(h1, 10) == parseInt(h2, 10))
  14125. }
  14126. break;
  14127. case "!":
  14128. m = h1 != j;
  14129. break;
  14130. case ">=":
  14131. m = (parseInt(h1, 10) >= parseInt(h2, 10));
  14132. break;
  14133. case "<=":
  14134. m = (parseInt(h1, 10) <= parseInt(h2, 10));
  14135. break;
  14136. case "in":
  14137. m = !(h1.indexOf(h2) >= 0);
  14138. break
  14139. }
  14140. } else {
  14141. if (g > 0) {
  14142. j += g
  14143. }
  14144. switch (h.attr("cvoperator").toLowerCase()) {
  14145. case ">":
  14146. m = (parseInt(k, 10) > parseInt(j, 10));
  14147. break;
  14148. case "<":
  14149. m = (parseInt(k, 10) < parseInt(j, 10));
  14150. break;
  14151. case "=":
  14152. if (isNaN(Number(k)) && isNaN(Number(j))) {
  14153. m = k == j
  14154. } else {
  14155. m = (parseInt(k, 10) == parseInt(j, 10))
  14156. }
  14157. break;
  14158. case "!":
  14159. m = k != j;
  14160. break;
  14161. case ">=":
  14162. m = (parseInt(k, 10) >= parseInt(j, 10));
  14163. break;
  14164. case "<=":
  14165. m = (parseInt(k, 10) <= parseInt(j, 10));
  14166. break;
  14167. case "in":
  14168. m = !(k.indexOf(j) >= 0);
  14169. break;
  14170. case "asword":
  14171. m = !(k.indexOf(" " + j) >= 0);
  14172. break
  14173. }
  14174. }
  14175. }
  14176. }
  14177. }
  14178. ShowError(h, !m, h.attr("ctrlError"), h.attr("cvErrorMessage"));
  14179. return m
  14180. }
  14181. function RangeValidator(d) {
  14182. var c = true;
  14183. if (d.attr("rvMinValue") && d.attr("rvMaxValue") && d.val() != "") {
  14184. if (d.attr("rvInclusive") || d.attr("rvInclusive") == "true") {
  14185. if (d.attr("rvType") == "date") {
  14186. c = ValidDates(d.attr("rvMinValue"), d.val(), "<=")
  14187. } else {
  14188. c = (parseInt(d.val(), 10) >= parseInt(d.attr("rvMinValue"), 10)) && (parseInt(d.val(), 10) <= parseInt(d.attr("rvMaxValue"), 10))
  14189. }
  14190. } else {
  14191. if (d.attr("rvType") == "date") {
  14192. c = ValidDates(d.attr("rvMinValue"), d.val(), "<")
  14193. } else {
  14194. c = (parseInt(d.val(), 10) > parseInt(d.attr("rvMinValue"), 10)) && (parseInt(d.val(), 10) < parseInt(d.attr("rvMaxValue"), 10))
  14195. }
  14196. }
  14197. }
  14198. ShowError(d, !c, d.attr("ctrlError"), d.attr("rvErrorMessage"));
  14199. return c
  14200. }
  14201. function LengthValidator(d) {
  14202. var c = true;
  14203. if (d.attr("lvLengthValue") && d.val() != "") {
  14204. c = (parseInt(d.val().length, 10)) <= parseInt(d.attr("lvLengthValue"), 10)
  14205. }
  14206. if (d.attr("lvLengthValueMin") && d.val() != "") {
  14207. c = (parseInt(d.val().length, 10)) >= parseInt(d.attr("lvLengthValueMin"), 10)
  14208. }
  14209. ShowError(d, !c, d.attr("ctrlError"), d.attr("lvErrorMessage"));
  14210. return c
  14211. }
  14212. function LengthCleaner(g, h) {
  14213. var e = $(g),
  14214. f = (h.charAt(0) == ".") ? $(h) : $("#" + h);
  14215. if ((parseInt(e.val().length, 10)) <= parseInt(e.attr("lvLengthValue"), 10)) {
  14216. if (f.length) {
  14217. f.text((parseInt(e.attr("lvLengthValue"), 10) - e.val().length).toString())
  14218. }
  14219. return true
  14220. } else {
  14221. e.val(e.val().substring(0, parseInt(e.attr("lvLengthValue"), 10)));
  14222. if (f.length) {
  14223. $(f).text((parseInt(e.attr("lvLengthValue"), 10) - e.value.length).toString())
  14224. }
  14225. return false
  14226. }
  14227. }
  14228. function SpecificValidator(ctrl) {
  14229. var IsValid = true;
  14230. var InitialSvErrorMessage = ctrl.attr("svErrorMessage");
  14231. if (ctrl.attr("svSpecificFunction") && ctrl.val() != "") {
  14232. for (var i in ctrl.attr("svSpecificFunction").split("|")) {
  14233. if (IsValid) {
  14234. if (ctrl.attr("svExtraParams") && ctrl.attr("svExtraParams").split("|")[i] != "") {
  14235. eval("IsValid = " + ctrl.attr("svSpecificFunction").split("|")[i] + "(ctrl, " + ctrl.attr("svExtraParams").split("|")[i] + ");")
  14236. } else {
  14237. eval("IsValid = " + ctrl.attr("svSpecificFunction").split("|")[i] + "(ctrl);")
  14238. }
  14239. ShowError(ctrl, !IsValid, ctrl.attr("ctrlError"), ctrl.attr("svErrorMessage").split("|")[i]);
  14240. ctrl.attr("svErrorMessage", InitialSvErrorMessage);
  14241. if (!IsValid) {
  14242. return IsValid
  14243. }
  14244. }
  14245. }
  14246. }
  14247. ShowError(ctrl, !IsValid, ctrl.attr("ctrlError"), ctrl.attr("svErrorMessage"));
  14248. return IsValid
  14249. }
  14250. function DependantFieldValidator(d) {
  14251. var c = true;
  14252. if (d.attr("dvDepends")) {
  14253. if (($("#" + d.attr("dvdepends")).val() != "" && d.val() != "") || ($("#" + d.attr("dvDepends")).val() == "" && d.val() == "")) {
  14254. c = c
  14255. }
  14256. if (($("#" + d.attr("dvDepends")).val() == "" && d.val() != "")) {
  14257. c = !c
  14258. }
  14259. }
  14260. ShowError(d, !c, d.attr("ctrlError"), d.attr("dvErrorMessage"));
  14261. return c
  14262. }
  14263. function ValidDates(h, g, j) {
  14264. var k = true;
  14265. String.prototype.fechaDDMMAAAA = function () {
  14266. return this.replace(/^(\d{2})\/(\d{2})\/(\d{4})$/, "$2/$1/$3")
  14267. };
  14268. String.prototype.fechaMMDDAAAA = function () {
  14269. return this.replace(/^(\d{2})\/(\d{2})\/(\d{4})$/, "$2/$1/$3")
  14270. };
  14271. var m = h;
  14272. var l = g;
  14273. f1 = new Date(m.fechaMMDDAAAA());
  14274. f2 = new Date(l.fechaMMDDAAAA());
  14275. switch (j) {
  14276. case ">":
  14277. k = f1 > f2;
  14278. break;
  14279. case "<":
  14280. k = f1 < f2;
  14281. break;
  14282. case "=":
  14283. k = f1 = f2;
  14284. break;
  14285. case "!":
  14286. k = f1 != f2;
  14287. break;
  14288. case ">=":
  14289. k = f1 >= f2;
  14290. break;
  14291. case "<=":
  14292. k = f1 <= f2;
  14293. break
  14294. }
  14295. return k
  14296. }
  14297. function ShowError(f, h, k, j) {
  14298. var g;
  14299. if ("input" == f.get(0).nodeName.toLowerCase() && "hidden" == f.attr("type")) {
  14300. return
  14301. }
  14302. if (f && $(f).attr("ctrlError") && $("#" + $(f).attr("ctrlError")).length == 0) {
  14303. $(f).after("<div id='" + $(f).attr("ctrlError") + "' class='merror hidden alert alert-error'></div>")
  14304. }
  14305. g = $("#" + $(f).attr("ctrlError"));
  14306. if ("select" == f.get(0).nodeName.toLowerCase() && f.data("uiCombobox") != null) {
  14307. f = f.combobox("option").input;
  14308. if (f.length) {
  14309. f.attr("ctrlerror", k);
  14310. $("#" + k).insertAfter(f)
  14311. }
  14312. }
  14313. if (h && j != "") {
  14314. g.html("<span>" + j + "</span><span class='arrow'></span>").removeClass("hidden");
  14315. if (-1 == "INPUT_TEXTAREA_SELECT_UL".indexOf(f.prop("tagName"))) {
  14316. f = f.prev()
  14317. }
  14318. f.addClass("error");
  14319. if (f.attr("type") == "hidden" && f.attr("CtrlFocus")) {
  14320. f = $("#" + f.attr("CtrlFocus"))
  14321. }
  14322. if (typeof(f.attr("onblur")) == "undefined") {
  14323. if (!f.attr("disabled")) {
  14324. webUI.Utils.Validation.LastErrorControl = f
  14325. }
  14326. }
  14327. attachTooltip(f, g)
  14328. } else {
  14329. if (g && g.html()) {
  14330. if (g.length > 0 && g.is("div")) {
  14331. g.addClass("hidden");
  14332. f.removeClass("error");
  14333. detachTooltip(f, g)
  14334. }
  14335. }
  14336. }
  14337. }
  14338. function attachTooltip(d, c) {
  14339. d.data("validate", "on").on("blur", function () {
  14340. ctrlBlurItem($(this))
  14341. });
  14342. if (lblErrorNoFloat) {
  14343. showTooltip(d, c);
  14344. if (d.hasClass("ui-autocomplete-input")) {
  14345. if (!d.parent().attr("class")) {
  14346. d = d.parent()
  14347. }
  14348. d.parent().find("ul.ui-autocomplete").addClass("ui-autocomplete-error")
  14349. }
  14350. } else {
  14351. d.add(c).on({
  14352. mouseenter : function () {
  14353. showTooltip(d, c)
  14354. },
  14355. mouseleave : function () {
  14356. c.hide()
  14357. }
  14358. });
  14359. c.addClass("alert alert-tooltip").css({
  14360. position : "absolute",
  14361. display : "none"
  14362. })
  14363. }
  14364. }
  14365. function detachTooltip(d, c) {
  14366. d.data("validate", "off").off("mouseenter mouseleave");
  14367. if (!c) {
  14368. c = $("#" + d.attr("ctrlerror"))
  14369. }
  14370. if (c && c.length) {
  14371. c.hide()
  14372. }
  14373. if (d.hasClass("ui-autocomplete-input")) {
  14374. if (!d.parent().attr("class")) {
  14375. d = d.parent()
  14376. }
  14377. d.parent().find("ul.ui-autocomplete").removeClass("ui-autocomplete-error")
  14378. }
  14379. }
  14380. function ctrlBlurItem(c) {
  14381. var d = ValidateField(c);
  14382. if (lblErrorNoFloat) {
  14383. if (d) {
  14384. detachTooltip(c)
  14385. }
  14386. } else {
  14387. if ("on" == c.data("validate") && !d) {
  14388. ShowError(c)
  14389. }
  14390. }
  14391. }
  14392. function showTooltip(m, l) {
  14393. var k = l || $("#" + m.attr("ctrlerror"));
  14394. if (lblErrorNoFloat) {
  14395. k.show()
  14396. } else {
  14397. $(".alert-tooltip:visible").hide();
  14398. var q = m.focus().offset(),
  14399. p = 0,
  14400. j = 0,
  14401. n = 0,
  14402. o = k.height();
  14403. p = o;
  14404. j = parseInt(k.css("line-height"), 10);
  14405. if (isNaN(j)) {
  14406. j = 15
  14407. }
  14408. if (p != j) {
  14409. p -= j
  14410. }
  14411. q.top -= p;
  14412. if (q.top + o > m.offset().top) {
  14413. q.top = m.offset().top - o;
  14414. if (webUI.Utils.Validation.FirstExec) {
  14415. webUI.Utils.Validation.FirstExec = 0;
  14416. if (m.outerHeight(true) > 34) {
  14417. q.top -= m.outerHeight(true)
  14418. } else {
  14419. q.top += 5
  14420. }
  14421. }
  14422. }
  14423. q.top -= 8;
  14424. (webUI.Utils.Validation.NoTooltipLeft) ? k.show().offset({
  14425. top : q.top
  14426. }) : k.show().offset(q)
  14427. }
  14428. }
  14429. function showTooltipError(f) {
  14430. var e = f ? $(f) : $("input.error:first"),
  14431. d = $("#" + e.attr("ctrlerror"));
  14432. if (e.length) {
  14433. showTooltip(e, d)
  14434. }
  14435. }
  14436. jQuery.fn.clean = function () {
  14437. this.find("input[type=text],input[type=hidden],input[type=checkbox],input[type=file],input[type=password],textarea,select").reverse().each(function () {
  14438. $(this).text("").val("").removeClass("error")
  14439. })
  14440. };
  14441. jQuery.fn.reverse = [].reverse;
  14442. function lPad(h, j, f) {
  14443. var k = j - h.length;
  14444. var g = String(f).charAt(0);
  14445. for (; k > 0; k--) {
  14446. h = g + h
  14447. }
  14448. return (h)
  14449. }
  14450. function dvCpfCnpj(w, t) {
  14451. if (t == null) {
  14452. t = false
  14453. }
  14454. var r,
  14455. q,
  14456. p,
  14457. j,
  14458. s;
  14459. var u = t ? 8 : 11;
  14460. var o = t ? 14 : 11;
  14461. var v = lPad(w, o, "0");
  14462. v = v.substring(2, o);
  14463. var k = "";
  14464. for (q = 1; q <= 2; q++) {
  14465. p = 2;
  14466. j = 0;
  14467. for (r = v.length - 1; r >= 0; r--) {
  14468. j += (v.charAt(r) - "0") * p;
  14469. p = (p - 1) % u + 2
  14470. }
  14471. s = 11 - j % 11;
  14472. if (s > 9) {
  14473. s = 0
  14474. }
  14475. v += s;
  14476. k += s
  14477. }
  14478. return k
  14479. }
  14480. function IsCPF(m) {
  14481. var j = m.val().replace(/[^\w\s]/gi, "");
  14482. m.val(j);
  14483. var g = j.substring(0, j.length - 2);
  14484. var l = dvCpfCnpj(g, false);
  14485. var h,
  14486. k;
  14487. if (j != g + l) {
  14488. return false
  14489. }
  14490. h = true;
  14491. for (k = 1; k < 11; k++) {
  14492. h = h && (j.charAt(k - 1) == j.charAt(k))
  14493. }
  14494. return (!h)
  14495. }
  14496. function IsCNPJ(o) {
  14497. var k = o.val().replace(/\s/g, " ");
  14498. var h = k.substring(0, 8);
  14499. var l = k.substring(8, 12);
  14500. var n = dvCpfCnpj(h + l, true);
  14501. var j;
  14502. if (k != h + l + n) {
  14503. return false
  14504. }
  14505. j = k.charAt(0) != "0";
  14506. for (var m = 1; m < 8; m++) {
  14507. j = j && (k.charAt(m - 1) == k.charAt(m))
  14508. }
  14509. if (j) {
  14510. return false
  14511. }
  14512. if (l == "0000") {
  14513. return false
  14514. }
  14515. return (h == "00000000" || parseInt(l, 10) <= 300 || h.substring(0, 3) != "000")
  14516. }
  14517. function IsCEP(f) {
  14518. var e = true;
  14519. var d;
  14520. d = new RegExp(/([0-9]){5}([-])([0-9]){3}/g);
  14521. e = !!f.match(d);
  14522. return e
  14523. }
  14524. function NoValidateMessage(d) {
  14525. var c = d.val().replace(/\s/g, " ");
  14526. return true
  14527. }
  14528. function NoValidateListBox(b) {
  14529. return true
  14530. }
  14531. function IsVacancyDescription(h) {
  14532. var g = true;
  14533. var k = h.val();
  14534. var j = "";
  14535. j = k.toLowerCase();
  14536. j = j.replace(/\s/g, " ");
  14537. var m;
  14538. m = /\bpne\b/;
  14539. if (j.search(m) != -1) {
  14540. document.getElementById("errDescription").className = "merror merrorsmall";
  14541. $("#ctl00_phMasterPage_cDescription_txtDescription").attr("svErrorMessage", 'Não é necessário descrever a opção de Portador de Necessidades especiais no título da Vaga. Caso a vaga seja habilitada para este perfil, selecione no formulário "Sim, esta vaga está habilitada a portadores de deficiência". Neste módulo, você poderá indicar mais informações sobre as condições da vaga. ');
  14542. setFocus("ctl00_phMasterPage_cDeficiencies_chkDeficiency");
  14543. return g = false
  14544. }
  14545. var l = new Array("pne", "deficiente", "deficientes", "deficiência", "deficiencia", "deficiências", "deficiencias", "portador de necessidade especial", "portadores de necessidades especiais", "portador de necessidade", "portadores de necessidades");
  14546. for (i = 1; i < l.length; i++) {
  14547. if (j.indexOf(l[i]) != -1) {
  14548. document.getElementById("errDescription").className = "merror merrorsmall";
  14549. $("#ctl00_phMasterPage_cDescription_txtDescription").attr("svErrorMessage", 'Não é necessário descrever a opção de Portador de Necessidades especiais no título da Vaga. Caso a vaga seja habilitada para este perfil, selecione no formulário "Sim, esta vaga está habilitada a portadores de deficiência". Neste módulo, você poderá indicar mais informações sobre as condições da vaga. ');
  14550. setFocus("ctl00_phMasterPage_cDeficiencies_chkDeficiency");
  14551. return g = false
  14552. }
  14553. }
  14554. k = k.replace(/\u0001/g, "");
  14555. m = new RegExp(/(www|http)(\W+\S+[^).,:;?\]\} \r\n$]+)/g);
  14556. g = !k.match(m);
  14557. m = new RegExp(/([a-zA-Z0-9_+\-\.]+[^!^#$%&/()¡ * Ç {}
  14558.  
  14559. @ [áéíóúàèìòùäëïöü < > ] * ) @ (( \ [[0 - 9]{
  14560. 1,
  14561. 3
  14562. }
  14563. \ .[0 - 9]{
  14564. 1,
  14565. 3
  14566. }
  14567. \ .[0 - 9]{
  14568. 1,
  14569. 3
  14570. }
  14571. \ .) | (([a - zA - Z0 - 9 \ - ] + \ .) + ))([a - zA - Z]{
  14572. 2,
  14573. 4
  14574. })( \ ] ? ) / g);
  14575. g = g && !k.match(m);
  14576. m = new RegExp(/([0-9+\s+\-\(\)\.]){7,20}/g);
  14577. g = g && !k.match(m);
  14578. if (g) {
  14579. k = k.replace(/(\<\/.*\>)/g, "");
  14580. k = k.replace(/(\<.*\>)/g, "");
  14581. k = k.replace(/[\<\>!¡$€%&=?¿\[\]{}@#¬*\\]+/g, "");
  14582. $("#ctl00_phMasterPage_cDescription_txtDescription").val(k)
  14583. }
  14584. return g
  14585. }
  14586. function CheckDate(e) {
  14587. String.prototype.fechaDDMMAAAA = function () {
  14588. return this.replace(/^(\d{2})\/(\d{2})\/(\d{4})$/, "$2/$1/$3")
  14589. };
  14590. String.prototype.fechaMMDDAAAA = function () {
  14591. return this.replace(/^(\d{2})\/(\d{2})\/(\d{4})$/, "$2/$1/$3")
  14592. };
  14593. var d = e.value;
  14594. var f = new Date().toDateString();
  14595. f1 = new Date(d.fechaMMDDAAAA());
  14596. f2 = new Date(f.fechaMMDDAAAA());
  14597. if (f1 < f2) {
  14598. alert("Data anterior à de hoje")
  14599. }
  14600. }
  14601. function setFocus(b) {
  14602. document.getElementById(b).focus()
  14603. }
  14604. function ValidateDeficienciesWords(j) {
  14605. var o = SanitizeInvalidContent(j);
  14606. if (o) {
  14607. var l = j.val();
  14608. var k = j.val().toLowerCase();
  14609. var m = new Array("pne", "deficiente", "deficientes", "deficiência", "deficiencia", "deficiências", "deficiencias", "portador de necessidade especial", "portadores de necessidades especiais", "portador de necessidade", "portadores de necessidades");
  14610. var n = /\bpne\b/;
  14611. if (k.search(n) != -1) {
  14612. $(j.attr("ctrlError")).addClass("merror merrorsmall");
  14613. return o = false
  14614. }
  14615. var h = 1;
  14616. while (h <= m.length && k.indexOf(m[h]) == -1) {
  14617. h++
  14618. }
  14619. if (h < m.length) {
  14620. $(j.attr("ctrlError")).addClass("merror merrorsmall");
  14621. return o = false
  14622. }
  14623. }
  14624. return o
  14625. }
  14626. function SanitizeInvalidContent(j) {
  14627. var l = j.val();
  14628. var p = true;
  14629. var n;
  14630. var m = false;
  14631. $(j.attr("ctrlError")).addClass("merror hidden");
  14632. n = new RegExp(/[0-9a-zA-Z]+@[0-9a-zA-Z]+[\.]{1}[0-9a-zA-Z]+[\.]?[0-9a-zA-Z]+/gi);
  14633. if (!j.attr("nvcAllowEmail") && (!j.attr("svShowMessage"))) {
  14634. l = l.replace(n, "")
  14635. }
  14636. if (!j.attr("nvcAllowEmail") && (j.attr("svShowMessage"))) {
  14637. if (l.match(n)) {
  14638. p = false
  14639. }
  14640. }
  14641. n = new RegExp(/(((ht|f)tp(s?)|(HT|F)TP(S?))\:\/\/)?([a-zA-Z]+\.)(([0-9a-zA-Z])+([-\w]*[0-9a-zA-Z])*\.)+[a-zA-Z]{2,9}\S*/g);
  14642. if (!j.attr("nvcAllowUrl") && (!j.attr("svShowMessage"))) {
  14643. l = l.replace(n, "")
  14644. }
  14645. if (!j.attr("nvcAllowUrl") && (j.attr("svShowMessage"))) {
  14646. if (l.match(n)) {
  14647. p = false
  14648. }
  14649. }
  14650. if (!p) {
  14651. j.attr("svErrorMessage", "Por favor revise os datos inseridos, nao se aceitam números, URL's ou e-mail neste campo.")
  14652. }
  14653. if (p && !j.attr("nvcAllowSpecial")) {
  14654. l = l.replace(regexNotAllowSpecial, "")
  14655. }
  14656. if (p && !j.attr("nvcAllowNumbers")) {
  14657. l = l.replace(/\d+\.?\d*/g, "")
  14658. }
  14659. if (p && j.attr("nvcAllowNumbers")) {
  14660. n = new RegExp(/\d+\.?\d*/g);
  14661. var k = l.match(n);
  14662. var q = 0;
  14663. var o = parseInt(j.attr("nvcAllowNumbers"), 10);
  14664. while (k != null && q < k.length && o > 0) {
  14665. if (k[q].length > o) {
  14666. $(j.attr("ctrlError")).addClass("merror");
  14667. j.attr("svErrorMessage", "Erro: contém mais de " + o.toString() + " digitos");
  14668. return false
  14669. }
  14670. q++
  14671. }
  14672. }
  14673. j.val(l);
  14674. return p
  14675. }
  14676. function SanitizeCarryReturn(d) {
  14677. var c = trim(d.val());
  14678. if (!d.attr("nvcAllowBreakLine") && d.val() != "") {
  14679. while (c.indexOf("\n\n") >= 0) {
  14680. c = c.replace(/\n\n/g, "\n")
  14681. }
  14682. } else {
  14683. while (c.indexOf("\n\n\n") >= 0) {
  14684. c = c.replace(/\n\n\n/g, "\n\n")
  14685. }
  14686. }
  14687. if (d.attr("type") == "file") {
  14688. d.text(c)
  14689. } else {
  14690. d.val(c)
  14691. }
  14692. return true
  14693. }
  14694. function IsHiddenControl(e) {
  14695. var d = true;
  14696. var f = new RegExp(/_hdn/g);
  14697. if (e["0"].id != null && e["0"].id.match(f)) {
  14698. d = false
  14699. }
  14700. return d
  14701. }
  14702. function checkBirthDay(x) {
  14703. var s = true;
  14704. var q = new Array(31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
  14705. var u = new Array();
  14706. var v = document.getElementById("ctl00_phMasterPage_cPersonalData_txtDay");
  14707. var r = document.getElementById("ctl00_phMasterPage_cPersonalData_txtMonth");
  14708. var n = document.getElementById("ctl00_phMasterPage_cPersonalData_txtYear");
  14709. if (isNaN(n.value)) {
  14710. return s = false
  14711. } else {
  14712. if (n.value < 1900) {
  14713. return s = false
  14714. }
  14715. if (n.value / 4 == parseInt(n.value / 4)) {
  14716. q[1] = 29
  14717. }
  14718. if (n.value.length < 4) {
  14719. return s = false
  14720. }
  14721. }
  14722. if (isNaN(r.value)) {
  14723. return s = false
  14724. } else {
  14725. if (r.value < 1) {
  14726. return s = false
  14727. }
  14728. if (r.value > 12) {
  14729. return s = false
  14730. }
  14731. if (r.value.length == 1) {
  14732. r.value = "0" + r.value
  14733. }
  14734. }
  14735. if (isNaN(v.value)) {
  14736. return s = false
  14737. } else {
  14738. if (v.value < 1) {
  14739. return s = false
  14740. }
  14741. if (v.value > q[r.value - 1]) {
  14742. return s = false
  14743. }
  14744. if (v.value.length == 1) {
  14745. v.value = "0" + v.value
  14746. }
  14747. if (v.value == 29 && r.value == 2 && !isNaN(n.value) && !es_bisiesto(n.value)) {
  14748. return s = false
  14749. }
  14750. }
  14751. if ((!isNaN(n.value)) && (!isNaN(r.value)) && (!isNaN(v.value))) {
  14752. var p = new Date();
  14753. p = p.getTime();
  14754. var w = new Date();
  14755. w.setYear(n.value);
  14756. w.setMonth(r.value - 1);
  14757. w.setDate(v.value);
  14758. var y = w.getTime();
  14759. var t = (p < y);
  14760. var o = (p > y);
  14761. if ((t || n.value < 1900)) {
  14762. return s = false
  14763. }
  14764. }
  14765. return s
  14766. }
  14767. function es_bisiesto(b) {
  14768. if (((b % 4 == 0) && b % 100 != 0) || b % 400 == 0) {
  14769. return true
  14770. }
  14771. return false
  14772. }
  14773. function GetFormatNumer(b) {
  14774. if (b < 10) {
  14775. b = "0" + b.toString()
  14776. }
  14777. return (b)
  14778. }
  14779. function ValidateSalaryRange(f) {
  14780. var e = true;
  14781. var h = $('input[id$="txtSalaryMax"]').val();
  14782. var g = f.val().toLowerCase();
  14783. if (h != "" && !isNaN(parseInt(g, 10)) && !isNaN(parseInt(h, 10))) {
  14784. e = (parseInt(g, 10) <= parseInt(h, 10));
  14785. if (e) {
  14786. e = (parseInt(h, 10) <= parseInt(g * 3, 10));
  14787. if (!e) {
  14788. f.removeAttr("svErrorMessage");
  14789. f.attr("svErrorMessage", "Revise o salário inserido, a variação entre mínimo e máximo para a vaga é muito elevada. Você pode incluir comissão e bônus em Benefícios Oferecidos.")
  14790. }
  14791. }
  14792. }
  14793. ShowError(f, !e, f.attr("ctrlError"), f.attr("svErrorMessage"));
  14794. return e
  14795. }
  14796. function ValidateDataBegEnd(y, p, o, n) {
  14797. var u = true;
  14798. var x = $("#" + p);
  14799. var w = $("#" + o);
  14800. var v = $("#" + n);
  14801. var t = !isNaN(parseFloat(y.val())) ? parseInt(y.val(), 10) : null;
  14802. var s = !isNaN(parseFloat(x.val())) ? parseInt(x.val(), 10) : null;
  14803. var r = !isNaN(parseFloat(w.val())) ? parseInt(w.val(), 10) : null;
  14804. var q = !isNaN(parseFloat(w.val())) ? parseInt(v.val(), 10) : null;
  14805. if (w.attr("disabled") && v.attr("disabled")) {
  14806. r = new Date().getMonth() + 1;
  14807. q = new Date().getFullYear()
  14808. }
  14809. if (t && s && r && q) {
  14810. u = ((s < q) || ((s == q) && (t <= r)))
  14811. }
  14812. if (!u) {
  14813. x.addClass("error");
  14814. if (!w.attr("disabled") && !v.attr("disabled")) {
  14815. w.addClass("error");
  14816. v.addClass("error")
  14817. }
  14818. }
  14819. return u
  14820. }
  14821. function ValidateYoutubeLink(c) {
  14822. var d = c.val();
  14823. return (-1 != d.indexOf("youtu") && -1 == d.indexOf("/user/") && -1 == d.indexOf("/channel/"))
  14824. }
  14825. "use strict";
  14826. var webUI = (typeof(webUI) === "undefined") ? {}
  14827.  
  14828. : webUI;
  14829. webUI.Cookies = webUI.Cookies || {};
  14830. webUI.Cookies.Preference = {
  14831. IdMapMode : 0,
  14832. ShowAffinity : 0,
  14833. ShowMatchListPopUp : 0,
  14834. Email : "",
  14835. Password : "",
  14836. ShowPendingCalendar : 0,
  14837. ShowInfoCalendar : 0,
  14838. History : "",
  14839. IdUser : "",
  14840. ScrollCandidateList : 0,
  14841. ScrollMatch : 0,
  14842. ScrollCandidateListOld : 0,
  14843. ToolbarOpen : 0,
  14844. RememberUser : 1,
  14845. IdTypeUser : 0,
  14846. NameUser : "",
  14847. Latitude : 0,
  14848. Longitude : 0,
  14849. IdSex : 1,
  14850. ShowPromo : 1,
  14851. Surname : "",
  14852. Phone : "",
  14853. IdLocation1 : 0,
  14854. IdLocation2 : 0,
  14855. IdLocation3 : 0,
  14856. CEP : "",
  14857. IdStudie1Max : 0,
  14858. Age : 0,
  14859. IdContractType : 0,
  14860. ShowAndroidPromo : false,
  14861. ShowAndroidPromoLogout : false,
  14862. CorporativeColor : "",
  14863. IdSalaryRange : 0,
  14864. IsDeficiency : 0,
  14865. IdContractWorkType : 0,
  14866. PhotoUrl : "",
  14867. CompleteCV : 0,
  14868. IdStatus : 0,
  14869. ShowPopupVacancy : false,
  14870. IdCandidate : 0,
  14871. ShowLimitedPopup : true,
  14872. IdContractTypeProduct : 0,
  14873. Coverter : null,
  14874. CookieManage : null,
  14875. init : function () {
  14876. this.Coverter = webUI.Utils.ConverterSpecialChars;
  14877. this.CookieManage = webUI.Utils.browserCookies;
  14878. this.Read()
  14879. },
  14880. Read : function () {
  14881. var h,
  14882. f = [],
  14883. e = [];
  14884. h = this.CookieManage.getCookiePreference("Preferences");
  14885. if (h) {
  14886. f = h.split("&");
  14887. for (var g = 0; g < f.length; g++) {
  14888. var e = f[g].split("=");
  14889. switch (e[0]) {
  14890. case "IdMapMode":
  14891. this.IdMapMode = e[1];
  14892. break;
  14893. case "ShowAffinity":
  14894. this.ShowAffinity = e[1];
  14895. break;
  14896. case "ShowMatchListPopUp":
  14897. this.ShowMatchListPopUp = e[1];
  14898. break;
  14899. case "Email":
  14900. this.Email = e[1];
  14901. break;
  14902. case "Password":
  14903. this.Password = e[1];
  14904. break;
  14905. case "ShowPendingCalendar":
  14906. this.ShowPendingCalendar = e[1];
  14907. break;
  14908. case "ShowInfoCalendar":
  14909. this.ShowInfoCalendar = e[1];
  14910. break;
  14911. case "History":
  14912. this.History = e[1];
  14913. break;
  14914. case "IdUser":
  14915. this.IdUser = e[1];
  14916. break;
  14917. case "ScrollCandidateList":
  14918. this.ScrollCandidateList = e[1];
  14919. break;
  14920. case "ScrollMatch":
  14921. this.ScrollMatch = e[1];
  14922. break;
  14923. case "ScrollCandidateListOld":
  14924. this.ScrollCandidateListOld = e[1];
  14925. break;
  14926. case "ToolbarOpen":
  14927. this.ToolbarOpen = e[1];
  14928. break;
  14929. case "RememberUser":
  14930. this.RememberUser = e[1];
  14931. break;
  14932. case "IdTypeUser":
  14933. this.IdTypeUser = e[1];
  14934. break;
  14935. case "NameUser":
  14936. this.NameUser = this.Coverter.convertpEnc2Char(e[1]);
  14937. break;
  14938. case "Latitude":
  14939. this.Latitude = e[1];
  14940. break;
  14941. case "Longitude":
  14942. this.Longitude = e[1];
  14943. break;
  14944. case "IdSex":
  14945. this.IdSex = e[1];
  14946. break;
  14947. case "ShowPromo":
  14948. this.ShowPromo = e[1];
  14949. break;
  14950. case "Surname":
  14951. this.Surname = this.Coverter.convertpEnc2Char(e[1]);
  14952. break;
  14953. case "Phone":
  14954. this.Phone = e[1];
  14955. break;
  14956. case "IdLocation1":
  14957. this.IdLocation1 = e[1];
  14958. break;
  14959. case "IdLocation2":
  14960. this.IdLocation2 = e[1];
  14961. break;
  14962. case "IdLocation3":
  14963. this.IdLocation3 = e[1];
  14964. break;
  14965. case "CEP":
  14966. this.CEP = e[1];
  14967. break;
  14968. case "IdStudie1Max":
  14969. this.IdStudie1Max = e[1];
  14970. break;
  14971. case "Age":
  14972. this.Age = e[1];
  14973. break;
  14974. case "IdContractType":
  14975. this.IdContractType = e[1];
  14976. break;
  14977. case "ShowAndroidPromo":
  14978. this.ShowAndroidPromo = e[1];
  14979. break;
  14980. case "ShowAndroidPromoLogout":
  14981. this.ShowAndroidPromoLogout = e[1];
  14982. break;
  14983. case "CorporativeColor":
  14984. this.CorporativeColor = e[1];
  14985. break;
  14986. case "IdSalaryRange":
  14987. this.IdSalaryRange = e[1];
  14988. break;
  14989. case "IsDeficiency":
  14990. this.IsDeficiency = e[1];
  14991. break;
  14992. case "IdContractWorkType":
  14993. this.IdContractWorkType = e[1];
  14994. break;
  14995. case "PhotoUrl":
  14996. this.PhotoUrl = unescape(e[1]);
  14997. break;
  14998. case "CompleteCV":
  14999. this.CompleteCV = e[1];
  15000. break;
  15001. case "IdStatus":
  15002. this.IdStatus = e[1];
  15003. break;
  15004. case "ShowPopupVacancy":
  15005. this.ShowPopupVacancy = e[1];
  15006. break;
  15007. case "IdCandidate":
  15008. this.IdCandidate = e[1];
  15009. break;
  15010. case "ShowLimitedPopup":
  15011. this.ShowLimitedPopup = e[1];
  15012. break;
  15013. case "IdContractTypeProduct":
  15014. this.IdContractTypeProduct = e[1];
  15015. break
  15016. }
  15017. }
  15018. }
  15019. return this
  15020. },
  15021. Write : function () {
  15022. var b = "";
  15023. b = "IdMapMode=" + this.IdMapMode.toString();
  15024. b += "&ShowAffinity=" + this.ShowAffinity.toString();
  15025. b += "&ShowMatchListPopUp=" + this.ShowMatchListPopUp.toString();
  15026. b += "&Email=" + this.Email.toString();
  15027. b += "&Password=";
  15028. b += "&ShowPendingCalendar=" + this.ShowPendingCalendar.toString();
  15029. b += "&ShowInfoCalendar=" + this.ShowInfoCalendar.toString();
  15030. b += "&History=" + this.History.toString();
  15031. b += "&IdUser=" + this.IdUser.toString();
  15032. b += "&ScrollCandidateList=" + this.ScrollCandidateList.toString();
  15033. b += "&ScrollMatch=" + this.ScrollMatch.toString();
  15034. b += "&ScrollCandidateListOld=" + this.ScrollCandidateListOld.toString();
  15035. b += "&ToolbarOpen=" + this.ToolbarOpen.toString();
  15036. b += "&RememberUser=" + this.RememberUser.toString();
  15037. b += "&IdTypeUser=" + this.IdTypeUser.toString();
  15038. b += "&NameUser=" + this.NameUser.toString();
  15039. b += "&Latitude=" + this.Latitude.toString();
  15040. b += "&Longitude=" + this.Longitude.toString();
  15041. b += "&IdSex=" + this.IdSex.toString();
  15042. b += "&ShowPromo=" + this.ShowPromo.toString();
  15043. b += "&Surname=" + this.Surname.toString();
  15044. b += "&Phone=" + this.Phone.toString();
  15045. b += "&IdLocation1=" + this.IdLocation1.toString();
  15046. b += "&IdLocation2=" + this.IdLocation2.toString();
  15047. b += "&IdLocation3=" + this.IdLocation3.toString();
  15048. b += "&CEP=" + this.CEP.toString();
  15049. b += "&IdStudie1Max=" + this.IdStudie1Max.toString();
  15050. b += "&Age=" + this.Age.toString();
  15051. b += "&IdContractType=" + this.IdContractType.toString();
  15052. b += "&ShowAndroidPromo=" + this.ShowAndroidPromo.toString();
  15053. b += "&CorporativeColor=" + this.CorporativeColor.toString();
  15054. b += "&ShowAndroidPromoLogout=" + this.ShowAndroidPromoLogout.toString();
  15055. b += "&IdSalaryRange=" + this.IdSalaryRange.toString();
  15056. b += "&IsDeficiency=" + this.IsDeficiency.toString();
  15057. b += "&IdContractWorkType=" + this.IdContractWorkType.toString();
  15058. b += "&PhotoUrl=" + escape(this.PhotoUrl.toString());
  15059. b += "&CompleteCV=" + this.CompleteCV.toString();
  15060. b += "&IdStatus=" + this.IdStatus.toString();
  15061. b += "&ShowPopupVacancy=" + this.ShowPopupVacancy.toString();
  15062. b += "&IdCandidate=" + this.IdCandidate.toString();
  15063. b += "&ShowLimitedPopup=" + this.ShowLimitedPopup.toString();
  15064. b += "&IdContractTypeProduct=" + this.IdContractTypeProduct.toString();
  15065. this.CookieManage.setCookie("Preferences", b, 86400, "/", "infojobs.com.br", "")
  15066. }
  15067. };
  15068. webUI.Cookies.Preference.init();
  15069. "use strict";
  15070. $(function () {
  15071. webUI.ctrl.MasterPage.WebMaster.init()
  15072. });
  15073. (function () {
  15074. var j = document.location.pathname;
  15075. if (j == "/" || j == "/Default.aspx") {
  15076. var n = "Preferences",
  15077. l = document.cookie.indexOf(n + "="),
  15078. o = l + n.length + 1,
  15079. q,
  15080. k,
  15081. m = /^IdContractTypeProduct/;
  15082. if ((!l) && (n != document.cookie.substring(0, n.length))) {
  15083. return
  15084. }
  15085. if (l == -1) {
  15086. return
  15087. }
  15088. q = document.cookie.indexOf(";", o);
  15089. if (q == -1) {
  15090. q = document.cookie.length
  15091. }
  15092. k = document.cookie.substring(o, q).split("&");
  15093. for (var p = 0; p < k.length; p++) {
  15094. if (k[p].match(m)) {
  15095. k = k[p].split("=");
  15096. k = Number(k[1]);
  15097. if (k == 16) {
  15098. document.location.replace("/Candidate")
  15099. }
  15100. break
  15101. }
  15102. }
  15103. }
  15104. })();
  15105. var webUI = (typeof(webUI) == "undefined") ? {}
  15106.  
  15107. : webUI;
  15108. webUI.ctrl = webUI.ctrl || {};
  15109. webUI.ctrl.MasterPage = webUI.ctrl.MasterPage || {};
  15110. webUI.ctrl.MasterPage.WebMaster = {
  15111. settings : {
  15112. DetailHorizontal : ".js_DetailHorizontal",
  15113. olMenuCandidate : ".js_olMenuCandidate",
  15114. formPublic : ".jsPublic"
  15115. },
  15116. oAccess : {},
  15117. init : function () {
  15118. var e = this,
  15119. g,
  15120. h = webUI.Cookies.Preference,
  15121. g = {
  15122. preference : h,
  15123. UserType : h.IdTypeUser,
  15124. isCompany : this.IsCompany()
  15125. },
  15126. f = (h.IdContractTypeProduct == 16);
  15127. $("body").addClass(navigator.platform.substring(0, 3).toLowerCase());
  15128. e.oAccess = new webUI.ctrl.Other.Access(g);
  15129. if (h.IdTypeUser == 2) {
  15130. if ($(e.settings.olMenuCandidate).length) {
  15131. $(e.settings.olMenuCandidate).show();
  15132. if (h.IdContractType && h.IdContractType > 0 && $(e.settings.formPublic).length == 0) {
  15133. if (f) {
  15134. $(e.settings.olMenuCandidate).addClass("isPremium");
  15135. $(".js_txt_account_type").addClass("txtPremium").text("PREMIUM")
  15136. }
  15137. }
  15138. }
  15139. }
  15140. },
  15141. IsCompany : function () {
  15142. var b = false;
  15143. if ((window.location.href.toLowerCase().indexOf("/company/candidate1/list.aspx") > -1) || (window.location.href.toLowerCase().indexOf("/defaultcompany.aspx") > -1) || (window.location.href.toLowerCase().indexOf("/defaultcompanyv2.aspx") > -1)) {
  15144. b = true
  15145. }
  15146. return b
  15147. },
  15148. ShowTopPublicity : function (c) {
  15149. var d = this;
  15150. if ($(d.settings.DetailHorizontal).length > 0) {
  15151. $(d.settings.DetailHorizontal).attr("src", "/banner.aspx?" + $.param(c))
  15152. }
  15153. }
  15154. };
  15155. "use strict";
  15156. $(function () {
  15157. webUI.pages.Default.init()
  15158. });
  15159. var webUI = (typeof(webUI) == "undefined") ? {}
  15160.  
  15161. : webUI;
  15162. webUI.pages = webUI.pages || {};
  15163. webUI.pages.Default = {
  15164. notLazy : 1,
  15165. logosInterval : 10000,
  15166. withVideo : 1,
  15167. isIE : 0,
  15168. IEversion : 0,
  15169. userLogged : 0,
  15170. oFinderTop : {},
  15171. oPublicityTop : {},
  15172. oLogosTop : {},
  15173. oLogosTopRow : {},
  15174. oLogosBottom : {},
  15175. oCounters : {},
  15176. oCourses : {},
  15177. settings : {
  15178. hdnQueryCourses : ".js_hdnQueryCourses",
  15179. DivContainer : ".jsTargetCourses",
  15180. tmplItemCourses : ".tmplCourse",
  15181. sectionPublicity : ".js_sectionPublicity"
  15182. },
  15183. init : function () {
  15184. var p = this,
  15185. o = webUI.Cookies.Preference,
  15186. l = $('input[id$="hdnDomainVagas"]').val(),
  15187. m = {
  15188. url_base : l && ("http://" + l + "/empregos")
  15189. },
  15190. j = null,
  15191. n = "",
  15192. q = $(".logos-slider");
  15193. p.oFinderTop = new webUI.ctrl.Company_Vacancy_ListRead.Finder(m);
  15194. p.userLogged = Number(o.IdTypeUser);
  15195. p.isIE = webUI.Utils.Browser.IE;
  15196. p.IEversion = webUI.Utils.Browser.info.version;
  15197. if (p.userLogged && o.IdTypeUser == "2") {
  15198. $(".sliderHome").css("backgroundImage", "none");
  15199. $("form").addClass("userlogged");
  15200. p.randomizeSlides();
  15201. m = {
  15202. autorunCarousel : false
  15203. };
  15204. p.oPublicityTop = new webUI.ctrl.Other.ClaimSlider(m, false);
  15205. p.oPublicityTop.oCarousel.bindInterval = p.ControlAnimate;
  15206. p.oPublicityTop.oCarousel.anotherSlide = p.OnClickSlide;
  15207. p.oPublicityTop.oCarousel.run();
  15208. $(".js_ClaimSlider").removeClass("hidden");
  15209. setTimeout(function () {
  15210. p.oPublicityTop.oCarousel.bindIndicatorsClicks()
  15211. }, 500)
  15212. }
  15213. var k = q.eq(0).find(".js_LogosSlider_div").eq(0),
  15214. m = p.getCompanyLogosSettings(k);
  15215. if (!p.userLogged) {
  15216. m.interval = p.logosInterval
  15217. }
  15218. p.oLogosTop = new webUI.ctrl.Company.CompanyLogosFade(m);
  15219. if (!p.userLogged) {
  15220. p.oLogosTop.setInterval()
  15221. }
  15222. k = q.eq(0).find(".js_LogosSlider_div").eq(1);
  15223. m = p.getCompanyLogosSettings(k);
  15224. m.idProducts = [44];
  15225. if (!p.userLogged) {
  15226. m.interval = p.logosInterval
  15227. }
  15228. k.addClass("bottom");
  15229. p.oLogosTopRow = new webUI.ctrl.Company.CompanyLogosFade(m);
  15230. if (!p.userLogged) {
  15231. p.oLogosTopRow.setInterval()
  15232. }
  15233. var k = q.eq(1).find(".js_LogosSlider_div");
  15234. m = p.getCompanyLogosSettings(k);
  15235. m.idProducts = [23];
  15236. m.interval = p.logosInterval;
  15237. p.oLogosBottom = new webUI.ctrl.Company.CompanyLogosFade(m);
  15238. if (!p.userLogged) {
  15239. p.oLogosBottom.setInterval()
  15240. }
  15241. p.showCourses();
  15242. if (webUI.Utils.LazyLoad) {
  15243. webUI.Utils.LazyLoad.run(p.notLazy)
  15244. }
  15245. if (o.IdLocation2 > 0) {
  15246. $(".js_ddStates option:selected").removeAttr("selected");
  15247. $(".js_ddStates option[value='" + o.IdLocation2 + "']").attr("selected", "selected");
  15248. $(".js_ddStates").next().children().attr("placeholder", $(".js_ddStates option[value='" + o.IdLocation2 + "']").text())
  15249. }
  15250. p.loadPublicity()
  15251. },
  15252. loadPublicity : function () {
  15253. var d = this,
  15254. e = $(d.settings.sectionPublicity),
  15255. f = webUI.Cookies.Preference;
  15256. if (e.length) {
  15257. e.find("iframe[tmp_src]").each(function (a) {
  15258. var h = $(this),
  15259. b = new Date().getTime() + a,
  15260. c = h.attr("tmp_src") + "&ts=" + b;
  15261. h.attr("src", c).on("load", function () {
  15262. e.show()
  15263. })
  15264. })
  15265. }
  15266. },
  15267. loadBgVideo : function () {
  15268. var g = this,
  15269. e = $(".js_video_code"),
  15270. f = $(".js_replace_by_video"),
  15271. h = function () {
  15272. f.removeClass("hidden");
  15273. $(".js_img_video_poster").addClass("hidden")
  15274. };
  15275. f.html(e.html());
  15276. e.remove();
  15277. setTimeout(function () {
  15278. var a = document.getElementById("js_bg_video");
  15279. if (a) {
  15280. (webUI.Utils.Browser.Safari) ? a.addEventListener("canplay", h, false) : a.oncanplay = h
  15281. }
  15282. }, 100)
  15283. },
  15284. getCompanyLogosSettings : function (c) {
  15285. var d = webUI.Utils.GetIdSelector;
  15286. return {
  15287. ulContainer : d(c),
  15288. LogosSlider_li : d(c) + " .js_LogosSlider_li",
  15289. rowActive : d(c) + " .js_row .active",
  15290. rowInactive : d(c) + ' .js_row:not(".active")',
  15291. btPrevSlide : d(c.parent().find("a.js_LogosSlider_prev")),
  15292. btNextSlide : d(c.parent().find("a.js_LogosSlider_next")),
  15293. tmplLogo : ".tmpl_logoSlider",
  15294. logosAmount : 6,
  15295. maxNumLogos : 18,
  15296. maxAnims : 5,
  15297. hoverSuffix : ($("body").hasClass("homeV2")) ? null : "_t.jpg",
  15298. idProducts : [28, 29, 30, 31, 32, 33, 34]
  15299. }
  15300. },
  15301. ControlAnimate : function () {
  15302. var b = webUI.pages.Default;
  15303. b.oPublicityTop.oCarousel.handlerInterval = setInterval(function () {
  15304. if (!b.oPublicityTop.oCarousel.pause && !b.oLogosTop.busy && !b.oLogosTop.oCarousel.stop && !b.oLogosTopRow.busy && !b.oLogosTopRow.oCarousel.stop) {
  15305. b.oLogosTop.animateLogos();
  15306. b.oLogosTopRow.animateLogos();
  15307. b.oPublicityTop.oCarousel.doAnimation()
  15308. }
  15309. }, b.oPublicityTop.oCarousel.options.interval)
  15310. },
  15311. OnClickSlide : function (d, f) {
  15312. var e = webUI.pages.Default;
  15313. if (!e.oPublicityTop.oCarousel.busy && !e.oLogosTop.busy && !e.oLogosTopRow.busy) {
  15314. clearInterval(e.oPublicityTop.oCarousel.handlerInterval);
  15315. e.oLogosTop.animateLogos();
  15316. e.oLogosTopRow.animateLogos();
  15317. e.oPublicityTop.oCarousel.doAnimation(d, f);
  15318. $(e.oPublicityTop.oCarousel.ulContainer).promise().done(function () {
  15319. e.oPublicityTop.oCarousel.bindInterval()
  15320. })
  15321. }
  15322. },
  15323. randomizeSlides : function () {
  15324. var b = (webUI.Cookies.Preference.IdTypeUser == 2) ? ".npr" : ".lcp";
  15325. $(b).each(function () {
  15326. $(this).closest(".js_publicityLI").remove()
  15327. });
  15328. $(".js_publicityUL").each(function () {
  15329. $(this).children().sort(function () {
  15330. return 0.5 - Math.random()
  15331. }).remove().appendTo(this)
  15332. });
  15333. $(".js_publicityLI").removeClass("active").slice(4).remove();
  15334. $(".js_publicityLI:first").addClass("active");
  15335. $(".js_indicators li").slice(4).remove()
  15336. },
  15337. showCourses : function () {
  15338. var d = this,
  15339. c = {
  15340. url : $(d.settings.hdnQueryCourses).attr("host"),
  15341. container : d.settings.DivContainer,
  15342. configPosition : {
  15343. intoGrid : false
  15344. },
  15345. tmplID : $(d.settings.tmplItemCourses)
  15346. };
  15347. d.oCourses = new webUI.Utils.Courses(c);
  15348. d.oCourses.directive = {
  15349. ".jsCourseBlock" : {
  15350. "elem<-Data" : {
  15351. ".@class+" : function (a) {
  15352. return a.pos == 1 ? " middle" : ""
  15353. },
  15354. ".js_Logo_li@style" : function () {
  15355. return this.center_logo ? "" : "display:none"
  15356. },
  15357. ".js_Logo_li" : function () {
  15358. return this.center_logo ? '<img src="' + this.center_logo + '" style="cursor:pointer" onclick="window.open(\'' + this.url + "&ov=11')\" />" : ""
  15359. },
  15360. ".js_link_a" : function () {
  15361. var a = this.name;
  15362. if (a.length > 29) {
  15363. a = a.substring(0, 30) + "..."
  15364. }
  15365. return a
  15366. },
  15367. ".js_link_a@title" : "elem.name",
  15368. ".js_link_a@href" : function () {
  15369. return (this.canusemodal) ? "javascript:void(0);" : this.url + "&ov=11"
  15370. },
  15371. ".js_link_a@target" : function () {
  15372. return (this.canusemodal) ? "" : "_blank"
  15373. },
  15374. ".js_link_a@onclick" : function () {
  15375. return (this.canusemodal) ? this.modal.replace("onclick=", "") : ""
  15376. },
  15377. ".js_loc1" : "elem.center_name",
  15378. ".js_loc2" : function () {
  15379. return this.price + " - " + this.ubication
  15380. }
  15381. }
  15382. }
  15383. };
  15384. if (d.oCourses.oData == null) {
  15385. d.oCourses.GetCourses($(d.settings.hdnQueryCourses).attr("query"))
  15386. }
  15387. },
  15388. };
  15389. var webUI = (typeof(webUI) === "undefined") ? {}
  15390.  
  15391. : webUI;
  15392. webUI.Utils = webUI.Utils || {};
  15393. var oStopAdBlock = {};
  15394. $(function () {
  15395. oStopAdBlock = new webUI.Utils.StopAdBlock()
  15396. });
  15397.  
  15398.  
  15399. webUI.Utils.StopAdBlock = function (p) {
  15400. var u = 0,
  15401. t = "hidden",
  15402. r = {},
  15403. m = {},
  15404. q = {};
  15405. function s(h) {
  15406. q = $.extend(m, h || {});
  15407. var g,
  15408. k,
  15409. e = webUI.Utils.browserCookies.getCookie,
  15410. b = e("Preferences");
  15411. if (b) {
  15412. b = b.split("&");
  15413. var d = {},
  15414. c;
  15415. for (var j in b) {
  15416. c = b[j].split("=");
  15417. d[c[0]] = c[1]
  15418. }
  15419. b = d
  15420. } else {
  15421. return
  15422. }
  15423. if (b.IdContractTypeProduct == 16 || b.IdTypeUser == "1") {
  15424. return
  15425. }
  15426. var a = e("usip") < 5;
  15427. $(".publicity,.js_DivPublicityBottom,.js_DivDetailCuadrado,.js_DivPublicityLateral").each(function () {
  15428. g = $(this);
  15429. k = n();
  15430. r[k] = {
  15431. ct : 0,
  15432. hi : 0,
  15433. $e : g
  15434. };
  15435. g.find("iframe").attr("rnd", k).on("load", function (x) {
  15436. var y = r[$(x.target).attr("rnd")];
  15437. y.hi = setInterval(function () {
  15438. if (y.$e.hasClass(t) || u) {
  15439. if (a) {
  15440. l()
  15441. } else {
  15442. o(y.$e.removeClass(t).css("height", "auto").find("iframe"));
  15443. u = 1;
  15444. y.ct = 10
  15445. }
  15446. }
  15447. if (++y.ct > 10) {
  15448. clearInterval(y.hi)
  15449. }
  15450. }, 200)
  15451. })
  15452. });
  15453. var f = $(".js_PublicityLateral");
  15454. f.find("iframe").on("load", function (w) {
  15455. g = $(this);
  15456. if (!g.contents().find("body iframe").length) {
  15457. if (a) {
  15458. l()
  15459. } else {
  15460. f.removeClass(t);
  15461. o(g)
  15462. }
  15463. }
  15464. })
  15465. }
  15466. function n() {
  15467. return Math.floor((Math.random() * 9999999999) + 1)
  15468. }
  15469. function o(c) {
  15470. var b = "/app_theme/images/abb/o%img%.jpg",
  15471. a = c.width();
  15472. b = b.replace("%img%", a == 160 ? 1 : a == 300 ? 2 : 3);
  15473. c.replaceWith('<a target="_blank" href="/ajuda/microsite_infojobs__9950.aspx"><img src="' + b + '" border="0" /></a>')
  15474. }
  15475. function l() {
  15476. location.replace("/nopublicity.aspx")
  15477. }
  15478. s(p)
  15479. };
  15480. function getCookie(k) {
  15481. var h = k + "=";
  15482. var c = document.cookie.split(";");
  15483. for (var j = 0; j < c.length; j++) {
  15484. var g = c[j];
  15485. while (g.charAt(0) == " ") {
  15486. g = g.substring(1)
  15487. }
  15488. if (g.indexOf(h) == 0) {
  15489. return g.substring(h.length, g.length)
  15490. }
  15491. }
  15492. return ""
  15493. };
Advertisement
Add Comment
Please, Sign In to add comment