index.js 64 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164
  1. !function (b) {
  2. b(function () {
  3. b.support.transition = function () {
  4. var c = function () {
  5. var f, e = document.createElement("bootstrap"), d = {
  6. WebkitTransition: "webkitTransitionEnd",
  7. MozTransition: "transitionend",
  8. OTransition: "oTransitionEnd otransitionend",
  9. transition: "transitionend"
  10. };
  11. for (f in d) {
  12. if (void 0 !== e.style[f]) {
  13. return d[f]
  14. }
  15. }
  16. }();
  17. return c && {end: c}
  18. }()
  19. })
  20. }(window.jQuery), !function (e) {
  21. var f, d = function (a, g) {
  22. this.options = g, this.$element = e(a).delegate('[data-dismiss="modal"]', "click.dismiss.modal", e.proxy(this.hide, this)), this.options.remote && this.$element.find(".modal-body").load(this.options.remote)
  23. };
  24. d.prototype = {
  25. constructor: d, toggle: function () {
  26. return this[this.isShown ? "hide" : "show"]()
  27. }, show: function () {
  28. var a = this, g = e.Event("show");
  29. this.$element.trigger(g), this.isShown || g.isDefaultPrevented() || (this.isShown = !0, this.escape(), this.backdrop(function () {
  30. var b = e.support.transition && a.$element.hasClass("fade");
  31. a.$element.parent().length || a.$element.appendTo(document.body), a.$element.show(), b && a.$element[0].offsetWidth, a.$element.addClass("in").attr("aria-hidden", !1), a.enforceFocus(), b ? a.$element.one(e.support.transition.end, function () {
  32. a.$element.focus().trigger("shown")
  33. }) : a.$element.focus().trigger("shown")
  34. }))
  35. }, hide: function (a) {
  36. a && a.preventDefault(), a = e.Event("hide"), this.$element.trigger(a), this.isShown && !a.isDefaultPrevented() && (this.isShown = !1, this.escape(), e(document).off("focusin.modal"), this.$element.removeClass("in").attr("aria-hidden", !0), e.support.transition && this.$element.hasClass("fade") ? this.hideWithTransition() : this.hideModal())
  37. }, enforceFocus: function () {
  38. var a = this;
  39. e(document).on("focusin.modal", function (b) {
  40. a.$element[0] === b.target || a.$element.has(b.target).length || a.$element.focus()
  41. })
  42. }, escape: function () {
  43. var b = this;
  44. this.isShown && this.options.keyboard ? this.$element.on("keyup.dismiss.modal", function (a) {
  45. 27 == a.which && b.hide()
  46. }) : this.isShown || this.$element.off("keyup.dismiss.modal")
  47. }, hideWithTransition: function () {
  48. var a = this, g = setTimeout(function () {
  49. a.$element.off(e.support.transition.end), a.hideModal()
  50. }, 500);
  51. this.$element.one(e.support.transition.end, function () {
  52. clearTimeout(g), a.hideModal()
  53. })
  54. }, hideModal: function () {
  55. var b = this;
  56. this.$element.hide(), this.backdrop(function () {
  57. b.removeBackdrop(), b.$element.trigger("hidden")
  58. })
  59. }, removeBackdrop: function () {
  60. this.$backdrop && this.$backdrop.remove(), this.$backdrop = null
  61. }, backdrop: function (a) {
  62. var c, g = this.$element.hasClass("fade") ? "fade" : "";
  63. if (this.isShown && this.options.backdrop) {
  64. if (c = e.support.transition && g, this.$backdrop = e('<div class="modal-backdrop ' + g + '" />').appendTo(document.body), this.$backdrop.click("static" == this.options.backdrop ? e.proxy(this.$element[0].focus, this.$element[0]) : e.proxy(this.hide, this)), c && this.$backdrop[0].offsetWidth, this.$backdrop.addClass("in"), !a) {
  65. return
  66. }
  67. c ? this.$backdrop.one(e.support.transition.end, a) : a()
  68. } else {
  69. !this.isShown && this.$backdrop ? (this.$backdrop.removeClass("in"), e.support.transition && this.$element.hasClass("fade") ? this.$backdrop.one(e.support.transition.end, a) : a()) : a && a()
  70. }
  71. }
  72. }, f = e.fn.modal, e.fn.modal = function (a) {
  73. return this.each(function () {
  74. var g = e(this), c = g.data("modal"), b = e.extend({}, e.fn.modal.defaults, g.data(), "object" == typeof a && a);
  75. c || g.data("modal", c = new d(this, b)), "string" == typeof a ? c[a]() : b.show && c.show()
  76. })
  77. }, e.fn.modal.defaults = {
  78. backdrop: !0,
  79. keyboard: !0,
  80. show: !0
  81. }, e.fn.modal.Constructor = d, e.fn.modal.noConflict = function () {
  82. return e.fn.modal = f, this
  83. }, e(document).on("click.modal.data-api", '[data-toggle="modal"]', function (a) {
  84. var j = e(this), i = j.attr("href"), h = e(j.attr("data-target") || i && i.replace(/.*(?=#[^\s]+$)/, "")), g = h.data("modal") ? "toggle" : e.extend({remote: !/#/.test(i) && i}, h.data(), j.data());
  85. a.preventDefault(), h.modal(g).one("hide", function () {
  86. j.focus()
  87. })
  88. })
  89. }(window.jQuery), !function (h) {
  90. function k() {
  91. h(g).each(function () {
  92. j(h(this)).removeClass("open")
  93. })
  94. }
  95. function j(a) {
  96. var e, f = a.attr("data-target");
  97. return f || (f = a.attr("href"), f = f && /#/.test(f) && f.replace(/.*(?=#[^\s]*$)/, "")), e = f && h(f), e && e.length || (e = a.parent()), e
  98. }
  99. var i, g = "[data-toggle=dropdown]", l = function (a) {
  100. var d = h(a).on("click.dropdown.data-api", this.toggle);
  101. h("html").on("click.dropdown.data-api", function () {
  102. d.parent().removeClass("open")
  103. })
  104. };
  105. l.prototype = {
  106. constructor: l, toggle: function () {
  107. var b, a, d = h(this);
  108. if (!d.is(".disabled, :disabled")) {
  109. return b = j(d), a = b.hasClass("open"), k(), a || b.toggleClass("open"), d.focus(), !1
  110. }
  111. }, keydown: function (p) {
  112. var o, m, e, b, a;
  113. if (/(38|40|27)/.test(p.keyCode) && (o = h(this), p.preventDefault(), p.stopPropagation(), !o.is(".disabled, :disabled"))) {
  114. if (e = j(o), b = e.hasClass("open"), !b || b && 27 == p.keyCode) {
  115. return 27 == p.which && e.find(g).focus(), o.click()
  116. }
  117. m = h("[role=menu] li:not(.divider):visible a", e), m.length && (a = m.index(m.filter(":focus")), 38 == p.keyCode && a > 0 && a--, 40 == p.keyCode && a < m.length - 1 && a++, ~a || (a = 0), m.eq(a).focus())
  118. }
  119. }
  120. }, i = h.fn.dropdown, h.fn.dropdown = function (a) {
  121. return this.each(function () {
  122. var c = h(this), b = c.data("dropdown");
  123. b || c.data("dropdown", b = new l(this)), "string" == typeof a && b[a].call(c)
  124. })
  125. }, h.fn.dropdown.Constructor = l, h.fn.dropdown.noConflict = function () {
  126. return h.fn.dropdown = i, this
  127. }, h(document).on("click.dropdown.data-api", k).on("click.dropdown.data-api", ".dropdown form", function (b) {
  128. b.stopPropagation()
  129. }).on("click.dropdown-menu", function (b) {
  130. b.stopPropagation()
  131. }).on("click.dropdown.data-api", g, l.prototype.toggle).on("keydown.dropdown.data-api", g + ", [role=menu]", l.prototype.keydown)
  132. }(window.jQuery), !function (e) {
  133. var f, d = function (a) {
  134. this.element = e(a)
  135. };
  136. d.prototype = {
  137. constructor: d, show: function () {
  138. var j, i, h, a = this.element, l = a.closest("ul:not(.dropdown-menu)"), k = a.attr("data-target");
  139. k || (k = a.attr("href"), k = k && k.replace(/.*(?=#[^\s]*$)/, "")), a.parent("li").hasClass("active") || (j = l.find(".active:last a")[0], h = e.Event("show", {relatedTarget: j}), a.trigger(h), h.isDefaultPrevented() || (i = e(k), this.activate(a.parent("li"), l), this.activate(i, i.parent(), function () {
  140. a.trigger({type: "shown", relatedTarget: j})
  141. })))
  142. }, activate: function (a, l, k) {
  143. function h() {
  144. j.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"), a.addClass("active"), i ? (a[0].offsetWidth, a.addClass("in")) : a.removeClass("fade"), a.parent(".dropdown-menu") && a.closest("li.dropdown").addClass("active"), k && k()
  145. }
  146. var j = l.find("> .active"), i = k && e.support.transition && j.hasClass("fade");
  147. i ? j.one(e.support.transition.end, h) : h(), j.removeClass("in")
  148. }
  149. }, f = e.fn.tab, e.fn.tab = function (a) {
  150. return this.each(function () {
  151. var c = e(this), b = c.data("tab");
  152. b || c.data("tab", b = new d(this)), "string" == typeof a && b[a]()
  153. })
  154. }, e.fn.tab.Constructor = d, e.fn.tab.noConflict = function () {
  155. return e.fn.tab = f, this
  156. }, e(document).on("click.tab.data-api", '[data-toggle="tab"], [data-toggle="pill"]', function (a) {
  157. a.preventDefault(), e(this).tab("show")
  158. })
  159. }(window.jQuery), !function (e) {
  160. var f, d = function (g, c) {
  161. this.init("tooltip", g, c)
  162. };
  163. d.prototype = {
  164. constructor: d, init: function (a, q, p) {
  165. var o, m, l, k, j;
  166. for (this.type = a, this.$element = e(q), this.options = this.getOptions(p), this.enabled = !0, l = this.options.trigger.split(" "), j = l.length; j--;) {
  167. k = l[j], "click" == k ? this.$element.on("click." + this.type, this.options.selector, e.proxy(this.toggle, this)) : "manual" != k && (o = "hover" == k ? "mouseenter" : "focus", m = "hover" == k ? "mouseleave" : "blur", this.$element.on(o + "." + this.type, this.options.selector, e.proxy(this.enter, this)), this.$element.on(m + "." + this.type, this.options.selector, e.proxy(this.leave, this)))
  168. }
  169. this.options.selector ? this._options = e.extend({}, this.options, {
  170. trigger: "manual",
  171. selector: ""
  172. }) : this.fixTitle()
  173. }, getOptions: function (a) {
  174. return a = e.extend({}, e.fn[this.type].defaults, this.$element.data(), a), a.delay && "number" == typeof a.delay && (a.delay = {
  175. show: a.delay,
  176. hide: a.delay
  177. }), a
  178. }, enter: function (a) {
  179. var g, i = e.fn[this.type].defaults, h = {};
  180. return this._options && e.each(this._options, function (j, c) {
  181. i[j] != c && (h[j] = c)
  182. }, this), g = e(a.currentTarget)[this.type](h).data(this.type), g.options.delay && g.options.delay.show ? (clearTimeout(this.timeout), g.hoverState = "in", this.timeout = setTimeout(function () {
  183. "in" == g.hoverState && g.show()
  184. }, g.options.delay.show), void 0) : g.show()
  185. }, leave: function (a) {
  186. var g = e(a.currentTarget)[this.type](this._options).data(this.type);
  187. return this.timeout && clearTimeout(this.timeout), g.options.delay && g.options.delay.hide ? (g.hoverState = "out", this.timeout = setTimeout(function () {
  188. "out" == g.hoverState && g.hide()
  189. }, g.options.delay.hide), void 0) : g.hide()
  190. }, show: function () {
  191. var a, o, m, l, k, j, i = e.Event("show");
  192. if (this.hasContent() && this.enabled) {
  193. if (this.$element.trigger(i), i.isDefaultPrevented()) {
  194. return
  195. }
  196. switch (a = this.tip(), this.setContent(), this.options.animation && a.addClass("fade"), k = "function" == typeof this.options.placement ? this.options.placement.call(this, a[0], this.$element[0]) : this.options.placement, a.detach().css({
  197. top: 0,
  198. left: 0,
  199. display: "block"
  200. }), this.options.container ? a.appendTo(this.options.container) : a.insertAfter(this.$element), o = this.getPosition(), m = a[0].offsetWidth, l = a[0].offsetHeight, k) {
  201. case"bottom":
  202. j = {top: o.top + o.height, left: o.left + o.width / 2 - m / 2};
  203. break;
  204. case"top":
  205. j = {top: o.top - l, left: o.left + o.width / 2 - m / 2};
  206. break;
  207. case"left":
  208. j = {top: o.top + o.height / 2 - l / 2, left: o.left - m};
  209. break;
  210. case"right":
  211. j = {top: o.top + o.height / 2 - l / 2, left: o.left + o.width}
  212. }
  213. this.applyPlacement(j, k), this.$element.trigger("shown")
  214. }
  215. }, applyPlacement: function (s, r) {
  216. var m, l, k, j, q = this.tip(), p = q[0].offsetWidth, o = q[0].offsetHeight;
  217. q.offset(s).addClass(r).addClass("in"), m = q[0].offsetWidth, l = q[0].offsetHeight, "top" == r && l != o && (s.top = s.top + o - l, j = !0), "bottom" == r || "top" == r ? (k = 0, s.left < 0 && (k = -2 * s.left, s.left = 0, q.offset(s), m = q[0].offsetWidth, l = q[0].offsetHeight), this.replaceArrow(k - p + m, m, "left")) : this.replaceArrow(l - o, l, "top"), j && q.offset(s)
  218. }, replaceArrow: function (h, g, i) {
  219. this.arrow().css(i, h ? 50 * (1 - h / g) + "%" : "")
  220. }, setContent: function () {
  221. var g = this.tip(), c = this.getTitle();
  222. g.find(".tooltip-inner")[this.options.html ? "html" : "text"](c), g.removeClass("fade in top bottom left right")
  223. }, hide: function () {
  224. function a() {
  225. var c = setTimeout(function () {
  226. g.off(e.support.transition.end).detach()
  227. }, 500);
  228. g.one(e.support.transition.end, function () {
  229. clearTimeout(c), g.detach()
  230. })
  231. }
  232. var g = this.tip(), b = e.Event("hide");
  233. return this.$element.trigger(b), b.isDefaultPrevented() ? void 0 : (g.removeClass("in"), e.support.transition && this.$tip.hasClass("fade") ? a() : g.detach(), this.$element.trigger("hidden"), this)
  234. }, fixTitle: function () {
  235. var b = this.$element;
  236. (b.attr("title") || "string" != typeof b.attr("data-original-title")) && b.attr("data-original-title", b.attr("title") || "").attr("title", "")
  237. }, hasContent: function () {
  238. return this.getTitle()
  239. }, getPosition: function () {
  240. var a = this.$element[0];
  241. return e.extend({}, "function" == typeof a.getBoundingClientRect ? a.getBoundingClientRect() : {
  242. width: a.offsetWidth,
  243. height: a.offsetHeight
  244. }, this.$element.offset())
  245. }, getTitle: function () {
  246. var h, g = this.$element, i = this.options;
  247. return h = g.attr("data-original-title") || ("function" == typeof i.title ? i.title.call(g[0]) : i.title)
  248. }, tip: function () {
  249. return this.$tip = this.$tip || e(this.options.template)
  250. }, arrow: function () {
  251. return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow")
  252. }, validate: function () {
  253. this.$element[0].parentNode || (this.hide(), this.$element = null, this.options = null)
  254. }, enable: function () {
  255. this.enabled = !0
  256. }, disable: function () {
  257. this.enabled = !1
  258. }, toggleEnabled: function () {
  259. this.enabled = !this.enabled
  260. }, toggle: function (a) {
  261. var g = a ? e(a.currentTarget)[this.type](this._options).data(this.type) : this;
  262. g.tip().hasClass("in") ? g.hide() : g.show()
  263. }, destroy: function () {
  264. this.hide().$element.off("." + this.type).removeData(this.type)
  265. }
  266. }, f = e.fn.tooltip, e.fn.tooltip = function (a) {
  267. return this.each(function () {
  268. var g = e(this), c = g.data("tooltip"), b = "object" == typeof a && a;
  269. c || g.data("tooltip", c = new d(this, b)), "string" == typeof a && c[a]()
  270. })
  271. }, e.fn.tooltip.Constructor = d, e.fn.tooltip.defaults = {
  272. animation: !0,
  273. placement: "top",
  274. selector: !1,
  275. template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
  276. trigger: "hover focus",
  277. title: "",
  278. delay: 0,
  279. html: !1,
  280. container: !1
  281. }, e.fn.tooltip.noConflict = function () {
  282. return e.fn.tooltip = f, this
  283. }
  284. }(window.jQuery), !function (e) {
  285. var f, d = function (g, c) {
  286. this.init("popover", g, c)
  287. };
  288. d.prototype = e.extend({}, e.fn.tooltip.Constructor.prototype, {
  289. constructor: d, setContent: function () {
  290. var h = this.tip(), g = this.getTitle(), i = this.getContent();
  291. h.find(".popover-title")[this.options.html ? "html" : "text"](g), h.find(".popover-content")[this.options.html ? "html" : "text"](i), h.removeClass("fade top bottom left right in")
  292. }, hasContent: function () {
  293. return this.getTitle() || this.getContent()
  294. }, getContent: function () {
  295. var h, g = this.$element, i = this.options;
  296. return h = ("function" == typeof i.content ? i.content.call(g[0]) : i.content) || g.attr("data-content")
  297. }, tip: function () {
  298. return this.$tip || (this.$tip = e(this.options.template)), this.$tip
  299. }, destroy: function () {
  300. this.hide().$element.off("." + this.type).removeData(this.type)
  301. }
  302. }), f = e.fn.popover, e.fn.popover = function (a) {
  303. return this.each(function () {
  304. var g = e(this), c = g.data("popover"), b = "object" == typeof a && a;
  305. c || g.data("popover", c = new d(this, b)), "string" == typeof a && c[a]()
  306. })
  307. }, e.fn.popover.Constructor = d, e.fn.popover.defaults = e.extend({}, e.fn.tooltip.defaults, {
  308. placement: "right",
  309. trigger: "click",
  310. content: "",
  311. template: '<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
  312. }), e.fn.popover.noConflict = function () {
  313. return e.fn.popover = f, this
  314. }
  315. }(window.jQuery);
  316. eval(function (h, b, i, d, g, f) {
  317. g = function (a) {
  318. return (a < 62 ? "" : g(parseInt(a / 62))) + ((a = a % 62) > 35 ? String.fromCharCode(a + 29) : a.toString(36))
  319. };
  320. if ("0".replace(0, g) == 0) {
  321. while (i--) {
  322. f[g(i)] = d[i]
  323. }
  324. d = [function (a) {
  325. return f[a] || a
  326. }];
  327. g = function () {
  328. return "([6P-RT-Y]|[1-3]\\w)"
  329. };
  330. i = 1
  331. }
  332. while (i--) {
  333. if (d[i]) {
  334. h = h.replace(new RegExp("\\b" + g(i) + "\\b", "g"), d[i])
  335. }
  336. }
  337. return h
  338. }('6 q=1s;19.2I=!0;(U(){U L(a){U m(a){6 f=a.24(0);T(f!==92)V f;6 b=a.1n(1);V(f=r[b])?f:"0"<=b&&b<="7"?2J(a.W(1),8):b==="u"||b==="x"?2J(a.W(2),16):a.24(1)}U e(a){T(a<32)V(a<16?"\\\\x0":"\\\\x")+a.toString(16);a=2K.2L(a);T(a==="\\\\"||a==="-"||a==="["||a==="]")a="\\\\"+a;V a}U h(a){P(6 f=a.W(1,a.Q-1).1a(/\\\\u[\\dA-Fa-f]{4}|\\\\x[\\dA-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\S\\s]|[^\\\\]/g),a=[],b=[],o=f[0]==="^",c=o?1:0,i=f.Q;c<i;++c){6 j=f[c];T(/\\\\[bdsw]/i.1i(j))a.R(j);14{6 j=m(j),d;c+2<i&&"-"===f[c+1]?(d=m(f[c+2]),c+=2):d=j;b.R([j,d]);d<65||j>25||(d<65||j>90||b.R([1j.1F(65,j)|32,1j.26(d,90)|32]),d<97||j>25||b.R([1j.1F(97,j)&-33,1j.26(d,25)&-33]))}}b.sort(U(a,f){V a[0]-f[0]||f[1]-a[1]});f=[];j=[27,27];P(c=0;c<b.Q;++c)i=b[c],i[0]<=j[1]+1?j[1]=1j.1F(j[1],i[1]):f.R(j=i);b=["["];o&&b.R("^");b.R.2O(b,a);P(c=0;c<f.Q;++c)i=f[c],b.R(e(i[0])),i[1]>i[0]&&(i[1]+1>i[0]&&b.R("-"),b.R(e(i[1])));b.R("]");V b.1G("")}U y(a){P(6 f=a.2P.1a(/\\[(?:[^\\\\\\]]|\\\\[\\S\\s])*]|\\\\u[\\dA-Fa-f]{4}|\\\\x[\\dA-Fa-f]{2}|\\\\\\d+|\\\\[^\\dux]|\\(\\?[!:=]|[()^]|[^()[\\\\^]+/g),b=f.Q,d=[],c=0,i=0;c<b;++c){6 j=f[c];j==="("?++i:"\\\\"===j.1n(0)&&(j=+j.W(1))&&j<=i&&(d[j]=-1)}P(c=1;c<d.Q;++c)-1===d[c]&&(d[c]=++t);P(i=c=0;c<b;++c)j=f[c],j==="("?(++i,d[i]===1t 0&&(f[c]="(?:")):"\\\\"===j.1n(0)&&(j=+j.W(1))&&j<=i&&(f[c]="\\\\"+d[i]);P(i=c=0;c<b;++c)"^"===f[c]&&"^"!==f[c+1]&&(f[c]="");T(a.2Q&&s)P(c=0;c<b;++c)j=f[c],a=j.1n(0),j.Q>=2&&a==="["?f[c]=h(j):a!=="\\\\"&&(f[c]=j.1e(/[A-Za-z]/g,U(a){a=a.24(0);V"["+2K.2L(a&-33,a|32)+"]"}));V f.1G("")}P(6 t=0,s=!1,l=!1,p=0,d=a.Q;p<d;++p){6 g=a[p];T(g.2Q)l=!0;14 T(/[a-z]/i.1i(g.2P.1e(/\\\\u[\\da-f]{4}|\\\\x[\\da-f]{2}|\\\\[^UXux]/gi,""))){s=!0;l=!1;1b}}P(6 r={b:8,t:9,n:10,v:11,f:12,r:13},n=[],p=0,d=a.Q;p<d;++p){g=a[p];T(g.2S||g.multiline)29 Error(""+g);n.R("(?:"+y(g)+")")}V 2T(n.1G("|"),l?"gi":"g")}U M(a){U m(a){2a(a.1u){15 1:T(e.1i(a.17))1b;P(6 g=a.1o;g;g=g.1c)m(g);g=a.2U;T("BR"===g||"LI"===g)h[s]="\\n",t[s<<1]=y++,t[s++<<1|1]=a;1b;15 3:15 4:g=a.1v,g.Q&&(g=p?g.1e(/\\r\\n?/g,"\\n"):g.1e(/[\\t\\n\\r ]+/g," "),h[s]=g,t[s<<1]=y,y+=g.Q,t[s++<<1|1]=a)}}6 e=/(?:^|\\s)2b(?:\\s|$)/,h=[],y=0,t=[],s=0,l;a.1H?l=a.1H.2X:19.1I&&(l=1w.2Y.1I(a,q).2Z("30-31"));6 p=l&&"1J"===l.W(0,3);m(a);V{a:h.1G("").1e(/\\n$/,""),c:t}}U B(a,m,e,h){m&&(a={a:m,d:a},e(a),h.R.2O(h,a.e))}U x(a,m){U e(a){P(6 l=a.d,p=[l,"1f"],d=0,g=a.a.1a(y)||[],r={},n=0,z=g.Q;n<z;++n){6 f=g[n],b=r[f],o=1t 0,c;T(1K b==="2c")c=!1;14{6 i=h[f.1n(0)];T(i)o=f.1a(i[1]),b=i[0];14{P(c=0;c<t;++c)T(i=m[c],o=f.1a(i[1])){b=i[0];1b}o||(b="1f")}T((c=b.Q>=5&&"X-"===b.W(0,5))&&!(o&&1K o[1]==="2c"))c=!1,b="34";c||(r[f]=b)}i=d;d+=f.Q;T(c){c=o[1];6 j=f.2d(c),k=j+c.Q;o[2]&&(k=f.Q-o[2].Q,j=k-c.Q);b=b.W(5);B(l+i,f.W(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.W(k),e,p)}14 p.R(l+i,b)}a.e=p}6 h={},y;(U(){P(6 e=a.concat(m),l=[],p={},d=0,g=e.Q;d<g;++d){6 r=e[d],n=r[3];T(n)P(6 k=n.Q;--k>=0;)h[n.1n(k)]=r;r=r[1];n=""+r;p.2e(n)||(l.R(r),p[n]=q)}l.R(/[\\S\\s]/);y=L(l)})();6 t=m.Q;V e}U u(a){6 m=[],e=[];a.2f?m.R(["1k",/^(?:\'\'\'(?:[^\'\\\\]|\\\\[\\S\\s]|\'\'?(?=[^\']))*(?:\'\'\'|$)|"""(?:[^"\\\\]|\\\\[\\S\\s]|""?(?=[^"]))*(?:"""|$)|\'(?:[^\'\\\\]|\\\\[\\S\\s])*(?:\'|$)|"(?:[^"\\\\]|\\\\[\\S\\s])*(?:"|$))/,q,"\'\\""]):a.1p?m.R(["1k",/^(?:\'(?:[^\'\\\\]|\\\\[\\S\\s])*(?:\'|$)|"(?:[^"\\\\]|\\\\[\\S\\s])*(?:"|$)|`(?:[^\\\\`]|\\\\[\\S\\s])*(?:`|$))/,q,"\'\\"`"]):m.R(["1k",/^(?:\'(?:[^\\n\\r\'\\\\]|\\\\.)*(?:\'|$)|"(?:[^\\n\\r"\\\\]|\\\\.)*(?:"|$))/,q,"\\"\'"]);a.35&&e.R(["1k",/^@"(?:[^"]|"")*(?:"|$)/,q]);6 h=a.1d;h&&(a.1g?(h>1?m.R(["1l",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.R(["1l",/^#(?:(?:define|2g|14|endif|error|ifdef|include|ifndef|line|pragma|1L|warning)\\b|[^\\n\\r]*)/,q,"#"]),e.R(["1k",/^<(?:(?:(?:\\.\\.\\/)*|\\/?)(?:[\\w-]+(?:\\/[\\w-]+)+)?[\\w-]+\\.h|[a-z]\\w*)>/,q])):m.R(["1l",/^#[^\\n\\r]*/,q,"#"]));a.1g&&(e.R(["1l",/^\\/\\/[^\\n\\r]*/,q]),e.R(["1l",/^\\/\\*[\\S\\s]*?(?:\\*\\/|$)/,q]));a.1q&&e.R(["X-36",/^(?:^^\\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|,|-=|->|\\/|\\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\\^=|\\^\\^|\\^\\^=|{|\\||\\|=|\\|\\||\\|\\|=|~|1b|15|37|1M|do|14|1O|38|V|29|1x|1K)\\s*(\\/(?=[^*/])(?:[^/[\\\\]|\\\\[\\S\\s]|\\[(?:[^\\\\\\]]|\\\\[\\S\\s])*(?:]|$))+\\/)/]);(h=a.2h)&&e.R(["2i",h]);a=(""+a.Y).1e(/^ | $/g,"");a.Q&&e.R(["39",2T("^(?:"+a.1e(/[\\s,]+/g,"|")+")\\\\b"),q]);m.R(["1f",/^\\s+/,q," \\r\\n\\t\\3a"]);e.R(["2j",/^@[$_a-z][\\w$@]*/i,q],["2i",/^(?:[@_]?[A-Z]+[a-z][\\w$@]*|\\w+_t\\b)/,q],["1f",/^[$_a-z][\\w$@]*/i,q],["2j",/^(?:0x[\\da-f]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+-]?\\d+)?)[a-z]*/i,q,"0123456789"],["1f",/^\\\\[\\S\\s]?/,q],["1P",/^.[^\\s\\w"-$\'./@\\\\`]*/,q]);V x(m,e)}U D(a,m){U e(a){2a(a.1u){15 1:T(k.1i(a.17))1b;T("BR"===a.2U)h(a),a.18&&a.18.3c(a);14 P(a=a.1o;a;a=a.1c)e(a);1b;15 3:15 4:T(p){6 b=a.1v,d=b.1a(t);T(d){6 c=b.W(0,d.3d);a.1v=c;(b=b.W(d.3d+d[0].Q))&&a.18.3e(s.2k(b),a.1c);h(a);c||a.18.3c(a)}}}}U h(a){U b(a,d){6 e=d?a.cloneNode(!1):a,f=a.18;T(f){6 f=b(f,1),g=a.1c;f.1m(e);P(6 h=g;h;h=g)g=h.1c,f.1m(h)}V e}P(;!a.1c;)T(a=a.18,!a)V;P(6 a=b(a.1c,0),e;(e=a.18)&&e.1u===1;)a=e;d.R(a)}6 k=/(?:^|\\s)2b(?:\\s|$)/,t=/\\r\\n?|\\n/,s=a.3f,l;a.1H?l=a.1H.2X:19.1I&&(l=s.2Y.1I(a,q).2Z("30-31"));6 p=l&&"1J"===l.W(0,3);P(l=s.1Q("LI");a.1o;)l.1m(a.1o);P(6 d=[l],g=0;g<d.Q;++g)e(d[g]);m===(m|0)&&d[0].setAttribute("value",m);6 r=s.1Q("OL");r.17="linenums";P(6 n=1j.1F(0,m-1|0)||0,g=0,z=d.Q;g<z;++g)l=d[g],l.17="L"+(g+n)%10,l.1o||l.1m(s.2k("\\3a")),r.1m(l);a.1m(r)}U k(a,m){P(6 e=m.Q;--e>=0;){6 h=m[e];A.2e(h)?19.1R&&1R.warn("cannot 3g language handler %s",h):A[h]=a}}U C(a,m){T(!a||!A.2e(a))a=/^\\s*</.1i(m)?"1y-3h":"1y-1S";V A[a]}U E(a){6 m=a.g;1x{6 e=M(a.h),h=e.a;a.a=h;a.c=e.c;a.d=0;C(m,h)(a);6 k=/\\bMSIE\\b/.1i(navigator.userAgent),m=/\\n/g,t=a.a,s=t.Q,e=0,l=a.c,p=l.Q,h=0,d=a.e,g=d.Q,a=0;d[g]=s;6 r,n;P(n=r=0;n<g;)d[n]!==d[n+2]?(d[r++]=d[n++],d[r++]=d[n++]):n+=2;g=r;P(n=r=0;n<g;){P(6 z=d[n],f=d[n+1],b=n+2;b+2<=g&&d[b+1]===f;)b+=2;d[r++]=z;d[r++]=f;n=b}P(d.Q=r;h<p;){6 o=l[h+2]||s,c=d[a+2]||s,b=1j.26(o,c),i=l[h+1],j;T(i.1u!==1&&(j=t.W(e,b))){k&&(j=j.1e(m,"\\r"));i.1v=j;6 u=i.3f,v=u.1Q("SPAN");v.17=d[a+1];6 x=i.18;x.replaceChild(v,i);v.1m(i);e<o&&(l[h+1]=i=u.2k(t.W(b,o)),x.3e(i,v.1c))}e=b;e>=o&&(h+=2);e>=c&&(a+=2)}}2l(w){"1R"in 19&&1R.log(w&&w.2m?w.2m:w)}}6 v=["1b,37,do,14,P,T,V,1T"],w=[[v,"auto,15,char,const,1y,double,enum,extern,3i,2n,3j,long,register,short,signed,sizeof,static,struct,2a,typedef,union,unsigned,1t,volatile"],"2l,1U,1M,1V,1z,2o,operator,private,protected,public,this,29,1W,1x,1K"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,3k,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,3l,final,1O,implements,1z,38,1s,native,2p,strictfp,2q,synchronized,throws,transient"],H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,2r,3o,group,implicit,in,interface,internal,into,is,lock,object,out,3g,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,2c,select,uint,ulong,unchecked,unsafe,ushort,6"],w=[w,"debugger,1X,3k,U,get,1s,2t,undefined,6,3p,3q,27"],I=[v,"2u,as,assert,1U,3r,del,2g,except,exec,1O,3o,2S,1z,in,is,lambda,nonlocal,2v,or,pass,2x,raise,1x,3p,3s,False,True,None"],J=[v,"alias,2u,begin,15,1U,3r,defined,2y,end,ensure,1V,in,module,2z,nil,2v,or,2A,rescue,retry,self,2q,2B,1W,1L,1Y,1A,3t,3s,2C,2D"],v=[v,"15,done,2g,esac,1X,fi,U,in,2E,2t,2B,1A"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|2m|(const_)?iterator|(multi)?(2t|map)|bitset|u?(3j|3i)\\d*)/,N=/\\S/,O=u({Y:[F,H,w,"3u,1M,3v,do,3w,2y,1X,3x,2r,P,2n,T,1z,3y,2E,my,2z,no,3A,2x,2p,2A,3B,3C,1L,1Y,1A,3D,3E,1T,2C,2D"+I,J,v],1d:!0,1g:!0,1p:!0,1q:!0}),A={};k(O,["1y-1S"]);k(x([],[["1f",/^[^<?]+/],["3F",/^<!\\w[^>]*(?:>|$)/],["1l",/^<\\!--[\\S\\s]*?(?:--\\>|$)/],["X-",/^<\\?([\\S\\s]+?)(?:\\?>|$)/],["X-",/^<%([\\S\\s]+?)(?:%>|$)/],["1P",/^(?:<[%?]|[%?]>)/],["X-",/^<1Z\\b[^>]*>([\\S\\s]+?)<\\/1Z\\b[^>]*>/i],["X-js",/^<3G\\b[^>]*>([\\S\\s]*?)(<\\/3G\\b[^>]*>)/i],["X-20",/^<1r\\b[^>]*>([\\S\\s]*?)(<\\/1r\\b[^>]*>)/i],["X-in.21",/^(<\\/?[a-z][^<>]*>)/i]]),["1y-3h","htm","html","mxml","xhtml","xml","xsl"]);k(x([["1f",/^\\s+/,q," \\t\\r\\n"],["2G",/^(?:"[^"]*"?|\'[^\']*\'?)/,q,"\\"\'"]],[["21",/^^<\\/?[a-z](?:[\\w-.:]*\\w)?|\\/?>$/i],["3H",/^(?!1r[\\s=]|on)[a-z](?:[\\w:-]*\\w)?/i],["X-uq.3J",/^=\\s*([^\\s"\'>]*(?:[^\\s"\'/>]|\\/(?=\\s)))/],["1P",/^[/<->]+/],["X-js",/^on\\w+\\s*=\\s*"([^"]+)"/i],["X-js",/^on\\w+\\s*=\\s*\'([^\']+)\'/i],["X-js",/^on\\w+\\s*=\\s*([^\\s"\'>]+)/i],["X-20",/^1r\\s*=\\s*"([^"]+)"/i],["X-20",/^1r\\s*=\\s*\'([^\']+)\'/i],["X-20",/^1r\\s*=\\s*([^\\s"\'>]+)/i]]),["in.21"]);k(x([],[["2G",/^[\\S\\s]+/]]),["uq.3J"]);k(u({Y:F,1d:!0,1g:!0,2h:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({Y:"1s,1W,1V"}),["json"]);k(u({Y:H,1d:!0,1g:!0,35:!0,2h:K}),["cs"]);k(u({Y:G,1g:!0}),["java"]);k(u({Y:v,1d:!0,1p:!0}),["bsh","csh","sh"]);k(u({Y:I,1d:!0,1p:!0,2f:!0}),["cv","py"]);k(u({Y:"3u,1M,3v,do,3w,2y,1X,3x,2r,P,2n,T,1z,3y,2E,my,2z,no,3A,2x,2p,2A,3B,3C,1L,1Y,1A,3D,3E,1T,2C,2D",1d:!0,1p:!0,1q:!0}),["perl","pl","pm"]);k(u({Y:J,1d:!0,1p:!0,1q:!0}),["rb"]);k(u({Y:w,1g:!0,1q:!0}),["js"]);k(u({Y:"all,2u,by,2l,1U,14,3l,1V,1O,P,T,in,is,isnt,loop,2o,no,2v,1s,of,off,on,or,V,2q,2B,1W,1x,1Y,1A,3t,1T,yes",1d:3,1g:!0,multilineStrings:!0,2f:!0,1q:!0}),["coffee"]);k(x([],[["1k",/^[\\S\\s]+/]]),["36"]);19.prettyPrintOne=U(a,m,e){6 h=1w.1Q("PRE");h.3K=a;e&&D(h,e);E({g:m,i:e,h:h});V h.3K};19.prettyPrint=U(a){U m(){P(6 e=19.2I?l.22()+3L:3q;p<h.Q&&l.22()<e;p++){6 n=h[p],k=n.17;T(k.2d("3M")>=0){6 k=k.1a(g),f,b;T(b=!k){b=n;P(6 o=1t 0,c=b.1o;c;c=c.1c)6 i=c.1u,o=i===1?o?b:c:i===3?N.1i(c.1v)?b:o:o;b=(f=o===b?1t 0:o)&&"CODE"===f.23}b&&(k=f.17.1a(g));k&&(k=k[1]);b=!1;P(o=n.18;o;o=o.18)T((o.23==="1J"||o.23==="1S"||o.23==="1Z")&&o.17&&o.17.2d("3M")>=0){b=!0;1b}b||((b=(b=n.17.1a(/\\blinenums\\b(?::(\\d+))?/))?b[1]&&b[1].Q?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p<h.Q?setTimeout(m,3L):a&&a()}P(6 e=[1w.2H("1J"),1w.2H("1S"),1w.2H("1Z")],h=[],k=0;k<e.Q;++k)P(6 t=0,s=e[k].Q;t<s;++t)h.R(e[k][t]);6 e=q,l=3N;l.22||(l={22:U(){V+2o 3N}});6 p=0,d,g=/\\blang(?:uage)?-([\\w.]+)(?!\\S)/;m()};19.PR={createSimpleLexer:x,registerLangHandler:k,sourceDecorator:u,PR_ATTRIB_NAME:"3H",PR_ATTRIB_VALUE:"2G",PR_COMMENT:"1l",PR_DECLARATION:"3F",PR_KEYWORD:"39",PR_LITERAL:"2j",PR_NOCODE:"2b",PR_PLAIN:"1f",PR_PUNCTUATION:"1P",PR_SOURCE:"34",PR_STRING:"1k",PR_TAG:"21",PR_TYPE:"2i"}})();', [], 236, "||||||var|||||||||||||||||||||||||||||||||||||||||||||for|length|push||if|function|return|substring|lang|keywords||||||else|case||className|parentNode|window|match|break|nextSibling|hashComments|replace|pln|cStyleComments||test|Math|str|com|appendChild|charAt|firstChild|multiLineStrings|regexLiterals|style|null|void|nodeType|nodeValue|document|try|default|import|until|||||max|join|currentStyle|getComputedStyle|pre|typeof|undef|delete||finally|pun|createElement|console|code|while|class|false|true|eval|unless|xmp|css|tag|now|tagName|charCodeAt|122|min|NaN||throw|switch|nocode|string|indexOf|hasOwnProperty|tripleQuotedStrings|elif|types|typ|lit|createTextNode|catch|stack|goto|new|package|super|foreach||set|and|not||print|elsif|next|redo|then|BEGIN|END|local||atv|getElementsByTagName|PR_SHOULD_USE_CONTINUATION|parseInt|String|fromCharCode|||apply|source|ignoreCase||global|RegExp|nodeName|||whiteSpace|defaultView|getPropertyValue|white|space|||src|verbatimStrings|regex|continue|instanceof|kwd|xa0||removeChild|index|insertBefore|ownerDocument|override|markup|float|int|export|extends|||from|with|Infinity|def|yield|when|caller|die|dump|exit|last||our|require|sub|use|wantarray|dec|script|atn||val|innerHTML|250|prettyprint|Date".split("|"), 0, {}));
  339. (function (a) {
  340. Date.now = Date.now || function () {
  341. return +(new Date)
  342. }, a.ias = function (A) {
  343. function x() {
  344. var c;
  345. J.onChangePage(function (g, d, f) {
  346. B && B.setPage(g, f), G.onPageChange.call(this, g, f, d)
  347. });
  348. if (G.triggerPageThreshold > 0) {
  349. Q()
  350. } else {
  351. if (a(G.next).attr("href")) {
  352. var b = C.getCurrentScrollOffset(G.scrollContainer);
  353. z(function () {
  354. D(b)
  355. })
  356. }
  357. }
  358. return B && B.havePage() && (I(), c = B.getPage(), C.forceScrollTop(function () {
  359. var d;
  360. c > 1 ? (q(c), d = K(!0), a("html, body").scrollTop(d)) : Q()
  361. })), F
  362. }
  363. function Q() {
  364. O(), G.scrollContainer.scroll(M)
  365. }
  366. function M() {
  367. var c, b;
  368. c = C.getCurrentScrollOffset(G.scrollContainer), b = K(), c >= b && (H() >= G.triggerPageThreshold ? (I(), z(function () {
  369. D(c)
  370. })) : D(c))
  371. }
  372. function I() {
  373. G.scrollContainer.unbind("scroll", M)
  374. }
  375. function O() {
  376. a(G.pagination).hide()
  377. }
  378. function K(c) {
  379. var d, b;
  380. return d = a(G.container).find(G.item).last(), d.size() === 0 ? 0 : (b = d.offset().top + d.height(), c || (b += G.thresholdMargin), b)
  381. }
  382. function D(b, d) {
  383. var c;
  384. c = a(G.next).attr("href");
  385. if (!c) {
  386. return G.noneleft && a(G.container).find(G.item).last().after(G.noneleft), I()
  387. }
  388. if (G.beforePageChange && a.isFunction(G.beforePageChange) && G.beforePageChange(b, c) === !1) {
  389. return
  390. }
  391. J.pushPages(b, c), I(), j(), N(c, function (h, g) {
  392. var l = G.onLoadItems.call(this, g), f;
  393. l !== !1 && (a(g).hide(), f = a(G.container).find(G.item).last(), f.after(g), a(g).fadeIn()), c = a(G.next, h).attr("href"), a(G.pagination).replaceWith(a(G.pagination, h)), P(), O(), c ? Q() : I(), G.onRenderComplete.call(this, g), d && d.call(this)
  394. })
  395. }
  396. function N(g, l, d) {
  397. var h = [], p, c = Date.now(), b, m;
  398. d = d || G.loaderDelay, a.get(g, null, function (f) {
  399. p = a(G.container, f).eq(0), 0 === p.length && (p = a(f).filter(G.container).eq(0)), p && p.find(G.item).each(function () {
  400. h.push(this)
  401. }), l && (m = this, b = Date.now() - c, b < d ? setTimeout(function () {
  402. l.call(m, f, h)
  403. }, d - b) : l.call(m, f, h))
  404. }, "html")
  405. }
  406. function q(b) {
  407. var c = K(!0);
  408. c > 0 && D(c, function () {
  409. I(), J.getCurPageNum(c) + 1 < b ? (q(b), a("html,body").animate({scrollTop: c}, 400, "swing")) : (a("html,body").animate({scrollTop: c}, 1000, "swing"), Q())
  410. })
  411. }
  412. function H() {
  413. var b = C.getCurrentScrollOffset(G.scrollContainer);
  414. return J.getCurPageNum(b)
  415. }
  416. function L() {
  417. var b = a(".ias_loader");
  418. return b.size() === 0 && (b = a('<div class="ias_loader">' + G.loader + "</div>"), b.hide()), b
  419. }
  420. function j() {
  421. var b = L(), c;
  422. G.customLoaderProc !== !1 ? G.customLoaderProc(b) : (c = a(G.container).find(G.item).last(), c.after(b), b.fadeIn())
  423. }
  424. function P() {
  425. var b = L();
  426. b.remove()
  427. }
  428. function k(b) {
  429. var c = a(".ias_trigger");
  430. return c.size() === 0 && (c = a('<div class="ias_trigger"><a href="#">' + G.trigger + "</a></div>"), c.hide()), a("a", c).unbind("click").bind("click", function () {
  431. return e(), b.call(), !1
  432. }), c
  433. }
  434. function z(c) {
  435. var d = k(c), b;
  436. G.customTriggerProc !== !1 ? G.customTriggerProc(d) : (b = a(G.container).find(G.item).last(), b.after(d), d.fadeIn())
  437. }
  438. function e() {
  439. var b = k();
  440. b.remove()
  441. }
  442. var G = a.extend({}, a.ias.defaults, A), C = new a.ias.util, J = new a.ias.paging(G.scrollContainer), B = G.history ? new a.ias.history : !1, F = this;
  443. x()
  444. }, a.ias.defaults = {
  445. container: "#container",
  446. scrollContainer: a(window),
  447. item: ".item",
  448. pagination: "#pagination",
  449. next: ".next",
  450. noneleft: !1,
  451. loader: '<img src="images/loader.gif"/>',
  452. loaderDelay: 600,
  453. triggerPageThreshold: 3,
  454. trigger: "Load more items",
  455. thresholdMargin: 0,
  456. history: !0,
  457. onPageChange: function () {
  458. },
  459. beforePageChange: function () {
  460. },
  461. onLoadItems: function () {
  462. },
  463. onRenderComplete: function () {
  464. },
  465. customLoaderProc: !1,
  466. customTriggerProc: !1
  467. }, a.ias.util = function () {
  468. function c() {
  469. a(window).load(function () {
  470. b = !0
  471. })
  472. }
  473. var b = !1, e = !1, d = this;
  474. c(), this.forceScrollTop = function (f) {
  475. a("html,body").scrollTop(0), e || (b ? (f.call(), e = !0) : setTimeout(function () {
  476. d.forceScrollTop(f)
  477. }, 1))
  478. }, this.getCurrentScrollOffset = function (g) {
  479. var f, h;
  480. return g.get(0) === window ? f = g.scrollTop() : f = g.offset().top, h = g.height(), f + h
  481. }
  482. }, a.ias.paging = function () {
  483. function f() {
  484. a(window).scroll(h)
  485. }
  486. function h() {
  487. var k, m, q, p, i;
  488. k = d.getCurrentScrollOffset(a(window)), m = c(k), q = b(k), g !== m && (p = q[0], i = q[1], j.call({}, m, p, i)), g = m
  489. }
  490. function c(i) {
  491. for (var k = e.length - 1; k > 0; k--) {
  492. if (i > e[k][0]) {
  493. return k + 1
  494. }
  495. }
  496. return 1
  497. }
  498. function b(i) {
  499. for (var k = e.length - 1; k >= 0; k--) {
  500. if (i > e[k][0]) {
  501. return e[k]
  502. }
  503. }
  504. return null
  505. }
  506. var e = [[0, document.location.toString()]], j = function () {
  507. }, g = 1, d = new a.ias.util;
  508. f(), this.getCurPageNum = function (i) {
  509. return i = i || d.getCurrentScrollOffset(a(window)), c(i)
  510. }, this.onChangePage = function (i) {
  511. j = i
  512. }, this.pushPages = function (i, k) {
  513. e.push([i, k])
  514. }
  515. }, a.ias.history = function () {
  516. function d() {
  517. b = !!(window.history && history.pushState && history.replaceState), b = !1
  518. }
  519. var c = !1, b = !1;
  520. d(), this.setPage = function (g, f) {
  521. this.updateState({page: g}, "", f)
  522. }, this.havePage = function () {
  523. return this.getState() !== !1
  524. }, this.getPage = function () {
  525. var f;
  526. return this.havePage() ? (f = this.getState(), f.page) : 1
  527. }, this.getState = function () {
  528. var g, h, f;
  529. if (b) {
  530. h = history.state;
  531. if (h && h.ias) {
  532. return h.ias
  533. }
  534. } else {
  535. g = window.location.hash.substring(0, 7) === "#/page/";
  536. if (g) {
  537. return f = parseInt(window.location.hash.replace("#/page/", ""), 10), {page: f}
  538. }
  539. }
  540. return !1
  541. }, this.updateState = function (e, g, f) {
  542. c ? this.replaceState(e, g, f) : this.pushState(e, g, f)
  543. }, this.pushState = function (h, g, e) {
  544. var f;
  545. b ? history.pushState({ias: h}, g, e) : (f = h.page > 0 ? "#/page/" + h.page : "", window.location.hash = f), c = !0
  546. }, this.replaceState = function (g, h, f) {
  547. b ? history.replaceState({ias: g}, h, f) : this.pushState(g, h, f)
  548. }
  549. }
  550. })(jQuery);
  551. !function (g, f, j, i) {
  552. var h = g(f);
  553. g.fn.lazyload = function (e) {
  554. function d() {
  555. var k = 0;
  556. b.each(function () {
  557. var l = g(this);
  558. if (!a.skip_invisible || l.is(":visible")) {
  559. if (g.abovethetop(this, a) || g.leftofbegin(this, a)) {
  560. } else {
  561. if (g.belowthefold(this, a) || g.rightoffold(this, a)) {
  562. if (++k > a.failure_limit) {
  563. return !1
  564. }
  565. } else {
  566. l.trigger("appear"), k = 0
  567. }
  568. }
  569. }
  570. })
  571. }
  572. var c, b = this, a = {
  573. threshold: 0,
  574. failure_limit: 0,
  575. event: "scroll",
  576. effect: "show",
  577. container: f,
  578. data_attribute: "original",
  579. skip_invisible: !0,
  580. appear: null,
  581. load: null,
  582. placeholder: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"
  583. };
  584. return e && (i !== e.failurelimit && (e.failure_limit = e.failurelimit, delete e.failurelimit), i !== e.effectspeed && (e.effect_speed = e.effectspeed, delete e.effectspeed), g.extend(a, e)), c = a.container === i || a.container === f ? h : g(a.container), 0 === a.event.indexOf("scroll") && c.bind(a.event, function () {
  585. return d()
  586. }), this.each(function () {
  587. var k = this, l = g(k);
  588. k.loaded = !1, (l.attr("src") === i || l.attr("src") === !1) && l.attr("src", a.placeholder), l.one("appear", function () {
  589. if (!this.loaded) {
  590. if (a.appear) {
  591. var m = b.length;
  592. a.appear.call(k, m, a)
  593. }
  594. g("<img />").bind("load", function () {
  595. var q = l.data(a.data_attribute);
  596. l.hide(), l.is("img") ? l.attr("src", q) : l.css("background-image", "url('" + q + "')"), l[a.effect](a.effect_speed), k.loaded = !0;
  597. var p = g.grep(b, function (r) {
  598. return !r.loaded
  599. });
  600. if (b = g(p), a.load) {
  601. var o = b.length;
  602. a.load.call(k, o, a)
  603. }
  604. }).attr("src", l.data(a.data_attribute))
  605. }
  606. }), 0 !== a.event.indexOf("scroll") && l.bind(a.event, function () {
  607. k.loaded || l.trigger("appear")
  608. })
  609. }), h.bind("resize", function () {
  610. d()
  611. }), /iphone|ipod|ipad.*os 5/gi.test(navigator.appVersion) && h.bind("pageshow", function (k) {
  612. k.originalEvent && k.originalEvent.persisted && b.each(function () {
  613. g(this).trigger("appear")
  614. })
  615. }), g(j).ready(function () {
  616. d()
  617. }), this
  618. }, g.belowthefold = function (d, b) {
  619. var a;
  620. return a = b.container === i || b.container === f ? (f.innerHeight ? f.innerHeight : h.height()) + h.scrollTop() : g(b.container).offset().top + g(b.container).height(), a <= g(d).offset().top - b.threshold
  621. }, g.rightoffold = function (d, b) {
  622. var a;
  623. return a = b.container === i || b.container === f ? h.width() + h.scrollLeft() : g(b.container).offset().left + g(b.container).width(), a <= g(d).offset().left - b.threshold
  624. }, g.abovethetop = function (d, b) {
  625. var a;
  626. return a = b.container === i || b.container === f ? h.scrollTop() : g(b.container).offset().top, a >= g(d).offset().top + b.threshold + g(d).height()
  627. }, g.leftofbegin = function (d, b) {
  628. var a;
  629. return a = b.container === i || b.container === f ? h.scrollLeft() : g(b.container).offset().left, a >= g(d).offset().left + b.threshold + g(d).width()
  630. }, g.inviewport = function (a, d) {
  631. return !(g.rightoffold(a, d) || g.leftofbegin(a, d) || g.belowthefold(a, d) || g.abovethetop(a, d))
  632. }, g.extend(g.expr[":"], {
  633. "below-the-fold": function (a) {
  634. return g.belowthefold(a, {threshold: 0})
  635. }, "above-the-top": function (a) {
  636. return !g.belowthefold(a, {threshold: 0})
  637. }, "right-of-screen": function (a) {
  638. return g.rightoffold(a, {threshold: 0})
  639. }, "left-of-screen": function (a) {
  640. return !g.rightoffold(a, {threshold: 0})
  641. }, "in-viewport": function (a) {
  642. return g.inviewport(a, {threshold: 0})
  643. }, "above-the-fold": function (a) {
  644. return !g.belowthefold(a, {threshold: 0})
  645. }, "right-of-fold": function (a) {
  646. return g.rightoffold(a, {threshold: 0})
  647. }, "left-of-fold": function (a) {
  648. return !g.rightoffold(a, {threshold: 0})
  649. }
  650. })
  651. }(jQuery, window, document);
  652. !function () {
  653. var e = jQuery.event.special, d = "D" + +new Date, f = "D" + (+new Date + 1);
  654. e.scrollstart = {
  655. setup: function () {
  656. var b, a = function (c) {
  657. var h = this, g = arguments;
  658. b ? clearTimeout(b) : (c.type = "scrollstart", jQuery.event.dispatch.apply(h, g)), b = setTimeout(function () {
  659. b = null
  660. }, e.scrollstop.latency)
  661. };
  662. jQuery(this).bind("scroll", a).data(d, a)
  663. }, teardown: function () {
  664. jQuery(this).unbind("scroll", jQuery(this).data(d))
  665. }
  666. }, e.scrollstop = {
  667. latency: 300, setup: function () {
  668. var a, c = function (h) {
  669. var g = this, b = arguments;
  670. a && clearTimeout(a), a = setTimeout(function () {
  671. a = null, h.type = "scrollstop", jQuery.event.dispatch.apply(g, b)
  672. }, e.scrollstop.latency)
  673. };
  674. jQuery(this).bind("scroll", c).data(f, c)
  675. }, teardown: function () {
  676. jQuery(this).unbind("scroll", jQuery(this).data(f))
  677. }
  678. }
  679. }();
  680. +(function (a) {
  681. a(document).ready(function () {
  682. a(".nav-search").click(function () {
  683. a(".nav-search").toggleClass("active");
  684. a("#search-main").fadeToggle(250);
  685. setTimeout(function () {
  686. a("#search-main input").focus()
  687. }, 300)
  688. });
  689. a(".content .avatar, .sidebar .avatar, .pagecontent .avatar").lazyload({
  690. placeholder: _deel.url + "/img/default.png",
  691. event: "scrollstop"
  692. });
  693. a(".wp-smiley").lazyload({
  694. placeholder: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC",
  695. event: "scrollstop"
  696. });
  697. if (_deel.ajaxpager) {
  698. a.ias({
  699. thresholdMargin: -100,
  700. triggerPageThreshold: 5,
  701. history: false,
  702. container: ".content",
  703. item: ".excerpt",
  704. pagination: ".pagination",
  705. next: ".next-page a",
  706. loader: '<div class="pagination-loading"><i class="fa fa-spinner fa-spin"></i> 数据载入中...</div>',
  707. trigger: "下一页",
  708. onPageChange: function (y, x, w) {
  709. window._gaq && window._gaq.push(["_trackPageview", jQuery("<a/>").attr("href", x)[0].pathname.replace(/^[^\/]/, "/")])
  710. }
  711. })
  712. }
  713. window.prettyPrint && window.prettyPrint();
  714. a(".article-tags a, .post-tags a").each(function () {
  715. a(this).tooltip({container: "body", placement: "top", title: "查看关于 " + a(this).text() + " 的文章"})
  716. });
  717. window._bd_share_config = {
  718. common: {
  719. "bdText": "『" + a("title").text() + "』" + a(".article-content p:lt(2)").text(),
  720. "bdMini": "2",
  721. "bdMiniList": false,
  722. "bdPic": a(".article-content img:first") ? a(".article-content img:first").attr("src") : "",
  723. "bdStyle": "0",
  724. "bdSize": "24"
  725. }, share: [{bdCustomStyle: "/static/css/share.css"}],
  726. };
  727. if (a(".article-content").length) {
  728. a(".article-content a").tooltip({container: "body"})
  729. }
  730. if (a(".d_reader").length) {
  731. a(".d_reader a").tooltip({container: "body"})
  732. }
  733. if (a(".readers").length) {
  734. a(".readers .avatar").parent().tooltip({container: "body"})
  735. }
  736. if (a(".social").length) {
  737. a(".social a").tooltip({container: "body"})
  738. }
  739. if (a(".d_tags").length) {
  740. a(".d_tags a").tooltip({container: "body"})
  741. }
  742. a(".article-content").removeAttr("height");
  743. if (a(".sidebar").length) {
  744. var v = a(".sidebar .widget"), i = v.length;
  745. if (i && 0 < _deel.roll[0] <= i && 0 < _deel.roll[1] <= i) {
  746. a(window).scroll(function () {
  747. var x = document.documentElement.scrollTop + document.body.scrollTop;
  748. if (x > v.eq(i - 1).offset().top + v.eq(i - 1).height()) {
  749. if (a(".widgetRoller").length == 0) {
  750. v.parent().append('<div class="widgetRoller"></div>');
  751. v.eq(_deel.roll[0] - 1).clone().appendTo(".widgetRoller");
  752. if (_deel.roll[0] !== _deel.roll[1]) {
  753. v.eq(_deel.roll[1] - 1).clone().appendTo(".widgetRoller")
  754. }
  755. var w = 10;
  756. if (a("body").attr("id") == "hasfixed") {
  757. w = 69
  758. }
  759. a(".widgetRoller").css({position: "fixed", top: 66, zIndex: 0, width: 310})
  760. } else {
  761. a(".widgetRoller").fadeIn(300)
  762. }
  763. } else {
  764. a(".widgetRoller").hide()
  765. }
  766. })
  767. }
  768. a(window).scroll(function () {
  769. var w = a(".rollto");
  770. document.documentElement.scrollTop + document.body.scrollTop > 200 ? w.fadeIn() : w.fadeOut()
  771. })
  772. }
  773. var t = a("#nav-header").offset().top;
  774. a(window).scroll(function () {
  775. if (a(window).scrollTop() > t && a(window).width() > 719) {
  776. a("#nav-header").addClass("fixed")
  777. } else {
  778. a("#nav-header").removeClass("fixed")
  779. }
  780. });
  781. a(".navbar .nav:first").after('<div class="screen-mini"><button data-type="screen-nav" class="btn btn-inverse screen-nav"><i class="fa fa-list"></i></button></div>');
  782. a("body").append('<div class="rollto"><button class="btn btn-inverse" data-type="totop" title="回顶部"><i class="fa fa-arrow-up"></i></button>' + (_deel.commenton ? '<button class="btn btn-inverse" data-type="torespond" title="发评论"><i class="fa fa-comment-o"></i></button>' : "") + "</div>");
  783. (function (w) {
  784. w.extend({
  785. tipsBox: function (x) {
  786. x = w.extend({
  787. obj: null,
  788. str: "+1",
  789. startSize: "12px",
  790. endSize: "30px",
  791. interval: 600,
  792. color: "red",
  793. callback: function () {
  794. }
  795. }, x);
  796. w("body").append("<span class='num'>" + x.str + "</span>");
  797. var y = w(".num");
  798. var A = x.obj.offset().left + x.obj.width() / 2;
  799. var z = x.obj.offset().top - x.obj.height();
  800. y.css({
  801. "position": "absolute",
  802. "left": A + "px",
  803. "top": z + "px",
  804. "z-index": 9999,
  805. "font-size": x.startSize,
  806. "line-height": x.endSize,
  807. "color": x.color
  808. });
  809. y.animate({
  810. "font-size": x.endSize,
  811. "opacity": "0",
  812. "top": z - parseInt(x.endSize) + "px"
  813. }, x.interval, function () {
  814. y.remove();
  815. x.callback()
  816. })
  817. }
  818. })
  819. })(jQuery);
  820. a.fn.postLike = function () {
  821. if (a(this).hasClass("actived")) {
  822. return alert("已经点过赞啦!")
  823. } else {
  824. a(this).addClass("actived");
  825. var z = a(this).data("id"), y = a(this).data("action"), x = a(this).children(".count");
  826. var w = {aid: z};
  827. w[a("meta[name=csrf-param]").attr('content')] = a("meta[name=csrf-token]").attr('content');
  828. a.post(a(this).attr('like-url'), w, function (A) {
  829. a(x).html(A)
  830. });
  831. jQuery.tipsBox({
  832. obj: a(this), str: "+1", callback: function () {
  833. }
  834. });
  835. return false
  836. }
  837. };
  838. a(document).on("click", "#Addlike", function () {
  839. a(this).postLike()
  840. });
  841. a(document).on("click", function (D) {
  842. D = D || window.event;
  843. var C = D.target || D.srcElement, A = a(C);
  844. if (A.hasClass("disabled")) {
  845. return
  846. }
  847. if (A.parent().attr("data-type")) {
  848. A = a(A.parent()[0])
  849. }
  850. if (A.parent().parent().attr("data-type")) {
  851. A = a(A.parent().parent()[0])
  852. }
  853. var z = A.attr("data-type");
  854. switch (z) {
  855. case"screen-nav":
  856. var y = a(".navbar .nav"), B = a(".navbar .nav");
  857. y.toggleClass("active");
  858. B.slideToggle(300);
  859. break;
  860. case"totop":
  861. e();
  862. break;
  863. case"torespond":
  864. e("#comment-ad");
  865. a("#comment").focus();
  866. var w = document.getElementsByName("message");
  867. w[0].focus();
  868. case"comment-insert-smilie":
  869. if (!a("#comment-smilies").length) {
  870. a("#commentform .comt-box").append('<div id="comment-smilies" class="hide"></div>');
  871. var x = "";
  872. for (key in g.smilies) {
  873. x += '<img data-simle="' + key + '" data-type="comment-smilie" src="' + _deel.url + "static/images/smilies/icon_" + g.smilies[key] + '.gif">'
  874. }
  875. a("#comment-smilies").html(x)
  876. }
  877. a("#comment-smilies").slideToggle(100);
  878. break;
  879. case"comment-smilie":
  880. u(A.attr("data-simle"));
  881. A.parent().slideUp(300);
  882. break;
  883. case"switch-author":
  884. a(".comt-comterinfo").slideToggle(300);
  885. a("#author").focus();
  886. break
  887. }
  888. });
  889. var g = {
  890. smilies: {
  891. "mrgreen": "mrgreen",
  892. "razz": "razz",
  893. "sad": "sad",
  894. "smile": "smile",
  895. "oops": "redface",
  896. "grin": "biggrin",
  897. "eek": "surprised",
  898. "???": "confused",
  899. "cool": "cool",
  900. "lol": "lol",
  901. "mad": "mad",
  902. "twisted": "twisted",
  903. "roll": "rolleyes",
  904. "wink": "wink",
  905. "idea": "idea",
  906. "arrow": "arrow",
  907. "neutral": "neutral",
  908. "cry": "cry",
  909. "?": "question",
  910. "evil": "evil",
  911. "shock": "eek",
  912. "!": "exclaim"
  913. }
  914. };
  915. a(".commentlist .url").attr("target", "_blank");
  916. a("#comment-author-info p input").focus(function () {
  917. a(this).parent("p").addClass("on")
  918. });
  919. a("#comment-author-info p input").blur(function () {
  920. a(this).parent("p").removeClass("on")
  921. });
  922. a("#comment").focus(function () {
  923. if (a("#author").val() == "" || a("#email").val() == "") {
  924. a(".comt-comterinfo").slideDown(300)
  925. }
  926. });
  927. var m = "0", f = '<div class="comt-tip comt-loading">正在提交, 请稍候...</div>', c = '<div class="comt-tip comt-error">#</div>', b = '">提交成功', d = "取消编辑", o, k = 1, r = [];
  928. r.push("");
  929. $comments = a("#comments-title");
  930. $cancel = a("#cancel-comment-reply-link");
  931. cancel_text = $cancel.text();
  932. $submit = a("#commentform #submit");
  933. $submit.attr("disabled", false);
  934. a(".comt-tips").append(f + c);
  935. a(".comt-loading").hide();
  936. a(".comt-error").hide();
  937. $body = (window.opera) ? (document.compatMode == "CSS1Compat" ? a("html") : a("body")) : a("html,body");
  938. a("#commentform").submit(function () {
  939. a(".comt-loading").show();
  940. $submit.attr("disabled", true).fadeTo("slow", 0.5);
  941. if (o) {
  942. a("#comment").after('<input type="text" name="edit_id" id="edit_id" value="' + o + '" style="display:none;" />')
  943. }
  944. a.ajax({
  945. url: _deel.comment_url,
  946. data: a(this).serialize(),
  947. type: a(this).attr("method"),
  948. error: function (w) {
  949. a(".comt-loading").hide();
  950. a(".comt-error").show().html(w.responseText);
  951. setTimeout(function () {
  952. $submit.attr("disabled", false).fadeTo("slow", 1);
  953. a(".comt-error").fadeOut()
  954. }, 3000)
  955. },
  956. success: function (B) {
  957. a(".comt-loading").hide();
  958. r.push(a("#comment").val());
  959. a("textarea").each(function () {
  960. this.value = ""
  961. });
  962. var y = addComment, A = y.I("cancel-comment-reply-link"), w = y.I("wp-temp-form-div"), C = y.I(y.respondId), x = y.I("comment_post_ID").value, z = y.I("comment_parent").value;
  963. if (!o && $comments.length) {
  964. n = parseInt($comments.text().match(/\d+/));
  965. $comments.text($comments.text().replace(n, n + 1))
  966. }
  967. new_htm = '" id="new_comm_' + k + '"></';
  968. new_htm = (z == "0") ? ('\n<ol style="clear:both;" class="commentlist commentnew' + new_htm + "ol>") : ('\n<ul class="children' + new_htm + "ul>");
  969. ok_htm = '\n<span id="success_' + k + b;
  970. ok_htm += "</span><span></span>\n";
  971. if (z == "0") {
  972. if (a("#postcomments .commentlist").length) {
  973. a("#postcomments .commentlist").before(new_htm)
  974. } else {
  975. a("#respond").after(new_htm)
  976. }
  977. } else {
  978. a("#respond").after(new_htm)
  979. }
  980. a("#comment-author-info").slideUp();
  981. a("#new_comm_" + k).hide().append(B);
  982. a("#new_comm_" + k + " li").append(ok_htm);
  983. a("#new_comm_" + k).fadeIn(4000);
  984. $body.animate({scrollTop: a("#new_comm_" + k).offset().top - 200}, 500);
  985. a(".comt-avatar .avatar").attr("src", a(".commentnew .avatar:last").attr("src"));
  986. l();
  987. k++;
  988. o = "";
  989. a("*").remove("#edit_id");
  990. A.style.display = "none";
  991. A.onclick = null;
  992. y.I("comment_parent").value = "0";
  993. if (w && C) {
  994. w.parentNode.insertBefore(C, w);
  995. w.parentNode.removeChild(w)
  996. }
  997. }
  998. });
  999. return false
  1000. });
  1001. addComment = {
  1002. moveForm: function (z, A, E, y, B) {
  1003. var I = this, w, D = I.I(z), x = I.I(E), H = I.I("cancel-comment-reply-link"), F = I.I("comment_parent"), G = I.I("comment_post_ID");
  1004. if (o) {
  1005. p()
  1006. }
  1007. B ? (I.I("comment").value = r[B], o = I.I("new_comm_" + B).innerHTML.match(/(comment-)(\d+)/)[2], $new_sucs = a("#success_" + B), $new_sucs.hide(), $new_comm = a("#new_comm_" + B), $new_comm.hide(), $cancel.text(d)) : $cancel.text(cancel_text);
  1008. I.respondId = E;
  1009. y = y || false;
  1010. if (!I.I("wp-temp-form-div")) {
  1011. w = document.createElement("div");
  1012. w.id = "wp-temp-form-div";
  1013. w.style.display = "none";
  1014. x.parentNode.insertBefore(w, x)
  1015. }
  1016. !D ? (temp = I.I("wp-temp-form-div"), I.I("comment_parent").value = "0", temp.parentNode.insertBefore(x, temp), temp.parentNode.removeChild(temp)) : D.parentNode.insertBefore(x, D.nextSibling);
  1017. $body.animate({scrollTop: a("#respond").offset().top - 180}, 400);
  1018. if (G && y) {
  1019. G.value = y
  1020. }
  1021. F.value = A;
  1022. H.style.display = "";
  1023. H.onclick = function () {
  1024. if (o) {
  1025. p()
  1026. }
  1027. var K = addComment, J = K.I("wp-temp-form-div"), L = K.I(K.respondId);
  1028. K.I("comment_parent").value = "0";
  1029. if (J && L) {
  1030. J.parentNode.insertBefore(L, J);
  1031. J.parentNode.removeChild(J)
  1032. }
  1033. this.style.display = "none";
  1034. this.onclick = null;
  1035. return false
  1036. };
  1037. try {
  1038. I.I("comment").focus()
  1039. } catch (C) {
  1040. }
  1041. return false
  1042. }, I: function (w) {
  1043. return document.getElementById(w)
  1044. }
  1045. };
  1046. function p() {
  1047. $new_comm.show();
  1048. $new_sucs.show();
  1049. a("textarea").each(function () {
  1050. this.value = ""
  1051. });
  1052. o = ""
  1053. }
  1054. var q = 15, j = $submit.val();
  1055. function l() {
  1056. if (q > 0) {
  1057. $submit.val(q);
  1058. q--;
  1059. setTimeout(l, 1000)
  1060. } else {
  1061. $submit.val(j).attr("disabled", false).fadeTo("slow", 1);
  1062. q = 15
  1063. }
  1064. }
  1065. function e(w, x) {
  1066. if (!x) {
  1067. x = 1000
  1068. }
  1069. if (!w) {
  1070. a("html,body").animate({scrollTop: 0}, x)
  1071. } else {
  1072. if (a(w).length > 0) {
  1073. a("html,body").animate({scrollTop: a(w).offset().top}, x)
  1074. }
  1075. }
  1076. }
  1077. function u(w) {
  1078. w = " :" + w + ": ";
  1079. myField = document.getElementById("comment");
  1080. document.selection ? (myField.focus(), sel = document.selection.createRange(), sel.text = w, myField.focus()) : s(w)
  1081. }
  1082. function s(w) {
  1083. myField = document.getElementById("comment");
  1084. myField.selectionStart || myField.selectionStart == "0" ? (startPos = myField.selectionStart, endPos = myField.selectionEnd, cursorPos = startPos, myField.value = myField.value.substring(0, startPos) + w + myField.value.substring(endPos, myField.value.length), cursorPos += w.length, myField.focus(), myField.selectionStart = cursorPos, myField.selectionEnd = cursorPos) : (myField.value += w, myField.focus())
  1085. }
  1086. })
  1087. })(window.jQuery);
  1088. $(document).ready(function () {
  1089. var withd_p = document.body.clientWidth;
  1090. if (withd_p > 980) {
  1091. $(window).scroll(function () {
  1092. if ($(this).scrollTop() > 108) {
  1093. $("#nav-header").addClass("shadow");
  1094. $(".logo-site").css("margin-top", "5px");
  1095. $("#site-nav a").css("padding", "10px");
  1096. $("#site-nav .down-menu ul").css("padding-top", "5px");
  1097. } else {
  1098. $("#nav-header").removeClass("shadow");
  1099. $(".logo-site").css("margin-top", "10px");
  1100. $("#site-nav a").css("padding", "13px");
  1101. $("#site-nav .down-menu ul").css("padding-top", "20px");
  1102. }
  1103. })
  1104. } else {
  1105. $(window).scroll(function () {
  1106. if ($(this).scrollTop() > 108) {
  1107. $("#nav-header").addClass("shadow");
  1108. } else {
  1109. $("#nav-header").removeClass("shadow");
  1110. }
  1111. })
  1112. }
  1113. $(".nav-search_1").click(function () {
  1114. $(window).scroll(function () {
  1115. if ($(this).scrollTop() > 108) {
  1116. $(".nav_sj").css("margin-top", "60px");
  1117. } else {
  1118. $(".nav_sj").css("margin-top", "87px");
  1119. }
  1120. })
  1121. var display = $(".nav_sj").css("display");
  1122. if (display == 'none') {
  1123. $(".nav_sj").css("display", "block");
  1124. $(".fa-navicon").attr("class", "fa fa-times");
  1125. $(".right_0").attr("class", "right_70");
  1126. } else {
  1127. $(".nav_sj").css("display", "none");
  1128. $(".right_70").attr("class", "right_0");
  1129. $(".fa-times").attr("class", "fa fa-navicon");
  1130. }
  1131. });
  1132. });