From 7d072a8ef9fea7ae3d7e1c321fac9087e185148b Mon Sep 17 00:00:00 2001 From: Vinne2 Date: Fri, 9 May 2014 20:47:50 +0200 Subject: [PATCH 1/7] alarms permission to reduce memory usage https://developer.chrome.com/extensions/alarms --- manifest.json | 1 + 1 file changed, 1 insertion(+) diff --git a/manifest.json b/manifest.json index 3077ff2..9e06159 100644 --- a/manifest.json +++ b/manifest.json @@ -17,6 +17,7 @@ }, "permissions": [ "tabs", + "alarms", "notifications", "storage", "*://theoldreader.com/" From c8c6edf12742f065194efd05746304e705046684 Mon Sep 17 00:00:00 2001 From: Vinne2 Date: Fri, 9 May 2014 20:50:50 +0200 Subject: [PATCH 2/7] persistent: false (I missed it) --- manifest.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 9e06159..bf1134f 100644 --- a/manifest.json +++ b/manifest.json @@ -9,7 +9,8 @@ "128": "icon-128.png" }, "background": { - "scripts": [ "functions.js", "storage.js", "background.js" ] + "scripts": [ "functions.js", "storage.js", "background.js" ], + "persistent": false }, "browser_action": { "default_icon": "icon-inactive.png", From 8762cda1b8472b134d1b9785cc60685179f79cbc Mon Sep 17 00:00:00 2001 From: Vinne2 Date: Fri, 9 May 2014 21:01:43 +0200 Subject: [PATCH 3/7] migrate to event page to free memory Convert background page to event page https://developer.chrome.com/extensions/event_pages#transition --- functions.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/functions.js b/functions.js index 43fd220..bfe5e43 100644 --- a/functions.js +++ b/functions.js @@ -2,7 +2,6 @@ var BADGE_BACKGROUND_COLOR = '#d73f31'; var OPTIONS_VERSION = 2; // Increment when there are new options -var refreshTimeout; var last_unread_count = 0; var notificationTimeout; var retryCount = 0; @@ -192,13 +191,14 @@ function getCountersFromHTTP() { } function scheduleRefresh() { - var interval = (localStorage['refresh_interval'] || 15) * 60 * 1000; - window.clearTimeout(refreshTimeout); + var interval = (localStorage['refresh_interval'] || 15); if(retryCount){ // There was an error - interval = Math.min( interval, 5 * 1000 * Math.pow(2, retryCount-1)); - // 0:05 -> 0:10 -> 0:20 -> 0:40 -> 1:20 -> 2:40 -> 5:20 -> ... + interval = Math.min( interval, Math.max(1, retryCount-2)); + // 1:00 -> 1:00 -> 1:00 -> 2:00 -> 3:00 -> 4:00 -> 5:00 -> ... + // chrome alarms cannot go off more frequently than every 1 minute } - refreshTimeout = window.setTimeout(getCountersFromHTTP, interval); + chrome.alarms.onAlarm.addListener(getCountersFromHTTP); + chrome.alarms.create('refreshAlarm', {periodInMinutes:interval}); } function onMessage(request, sender, callback) { From 726416ff47e31af902897bad64baea64cfee89c8 Mon Sep 17 00:00:00 2001 From: Vinne2 Date: Thu, 14 May 2020 13:22:12 +0200 Subject: [PATCH 4/7] Pull updates from knyar/master --- .eslintrc.json | 43 ++ .gitignore | 2 + ChangeLog | 78 --- LICENSE | 21 + Makefile | 44 ++ README.md | 18 +- functions.js | 242 --------- icon-128.png | Bin 8617 -> 0 bytes icon-16.png | Bin 953 -> 0 bytes icon-48.png | Bin 3123 -> 0 bytes icon-active.png | Bin 1201 -> 0 bytes icon-inactive.png | Bin 677 -> 0 bytes jquery-2.1.0.min.js | 4 - jquery.color.js | 2 - logo.png | Bin 6989 -> 0 bytes manifest.json | 39 -- observer.js | 41 -- options.html | 43 -- options.js | 111 ---- source/ChangeLog | 161 ++++++ source/_locales/cs/messages.json | 232 ++++++++ source/_locales/en/messages.json | 232 ++++++++ source/css/options.css | 48 ++ source/img/Icon_External_Link.svg | 27 + source/img/icon-128.png | Bin 0 -> 21180 bytes source/img/icon-16.png | Bin 0 -> 633 bytes source/img/icon-48.png | Bin 0 -> 2538 bytes source/img/icon-active-scale2.png | Bin 0 -> 1393 bytes source/img/icon-active.png | Bin 0 -> 633 bytes source/img/icon-inactive-scale2.png | Bin 0 -> 886 bytes source/img/icon-inactive.png | Bin 0 -> 483 bytes source/img/logo.png | Bin 0 -> 3587 bytes background.js => source/js/background.js | 4 +- source/js/bookmark-cancel-script.js | 7 + source/js/functions.js | 272 ++++++++++ source/js/lib/.gitattributes | 1 + source/js/lib/jquery.color.js | 654 +++++++++++++++++++++++ source/js/lib/jquery.js | 4 + source/js/menu.js | 91 ++++ source/js/observer.js | 86 +++ source/js/options.js | 198 +++++++ storage.js => source/js/storage.js | 59 +- source/manifest-chrome.json | 45 ++ source/manifest-firefox.json | 51 ++ source/options.html | 65 +++ webstore/AMO-screenshot0-bis.png | Bin 0 -> 42811 bytes webstore/AMO-screenshot0.png | Bin 0 -> 57140 bytes webstore/AMO-screenshot1.png | Bin 0 -> 37524 bytes webstore/AMO-screenshot2.png | Bin 0 -> 7099 bytes webstore/extension-screenshot0.png | Bin 0 -> 150463 bytes webstore/extension-screenshot0.psd | Bin 0 -> 2366096 bytes webstore/extension-screenshot0.webp | Bin 0 -> 22248 bytes webstore/extension-screenshot1.png | Bin 0 -> 31536 bytes webstore/icon64.png | Bin 0 -> 4550 bytes webstore/theoldreader-extension-logo.png | Bin 0 -> 32377 bytes webstore/theoldreader-extension-logo.psd | Bin 0 -> 390145 bytes webstore/theoldreader-extension-logo.xcf | Bin 0 -> 157559 bytes 57 files changed, 2332 insertions(+), 593 deletions(-) create mode 100644 .eslintrc.json create mode 100644 .gitignore delete mode 100644 ChangeLog create mode 100644 LICENSE create mode 100644 Makefile delete mode 100644 functions.js delete mode 100644 icon-128.png delete mode 100644 icon-16.png delete mode 100644 icon-48.png delete mode 100644 icon-active.png delete mode 100644 icon-inactive.png delete mode 100644 jquery-2.1.0.min.js delete mode 100644 jquery.color.js delete mode 100644 logo.png delete mode 100644 manifest.json delete mode 100644 observer.js delete mode 100644 options.html delete mode 100644 options.js create mode 100644 source/ChangeLog create mode 100644 source/_locales/cs/messages.json create mode 100644 source/_locales/en/messages.json create mode 100644 source/css/options.css create mode 100644 source/img/Icon_External_Link.svg create mode 100644 source/img/icon-128.png create mode 100644 source/img/icon-16.png create mode 100644 source/img/icon-48.png create mode 100644 source/img/icon-active-scale2.png create mode 100644 source/img/icon-active.png create mode 100644 source/img/icon-inactive-scale2.png create mode 100644 source/img/icon-inactive.png create mode 100644 source/img/logo.png rename background.js => source/js/background.js (70%) create mode 100644 source/js/bookmark-cancel-script.js create mode 100644 source/js/functions.js create mode 100644 source/js/lib/.gitattributes create mode 100644 source/js/lib/jquery.color.js create mode 100644 source/js/lib/jquery.js create mode 100644 source/js/menu.js create mode 100644 source/js/observer.js create mode 100644 source/js/options.js rename storage.js => source/js/storage.js (56%) create mode 100644 source/manifest-chrome.json create mode 100644 source/manifest-firefox.json create mode 100644 source/options.html create mode 100644 webstore/AMO-screenshot0-bis.png create mode 100644 webstore/AMO-screenshot0.png create mode 100644 webstore/AMO-screenshot1.png create mode 100644 webstore/AMO-screenshot2.png create mode 100644 webstore/extension-screenshot0.png create mode 100644 webstore/extension-screenshot0.psd create mode 100644 webstore/extension-screenshot0.webp create mode 100644 webstore/extension-screenshot1.png create mode 100644 webstore/icon64.png create mode 100644 webstore/theoldreader-extension-logo.png create mode 100644 webstore/theoldreader-extension-logo.psd create mode 100644 webstore/theoldreader-extension-logo.xcf diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..b447e17 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,43 @@ +{ + "env": { + "browser": true, + "webextensions": true, + "jquery": true, + "es6": true + }, + "extends": "eslint:recommended", + "rules": { + // Allow console + "no-console": "off", + + // Style, indent/whitespace + "indent": ["warn", 2, {"SwitchCase": 1}], + "no-trailing-spaces": "warn", + "eol-last": "warn", + "no-multiple-empty-lines": "warn", + + // Style, spacing + "space-unary-ops": ["warn", {"words": true, "nonwords": false}], + "space-infix-ops": "warn", + "keyword-spacing": "warn", + "space-before-blocks": ["warn", "always"], + "operator-linebreak": "warn", + "space-before-function-paren": ["warn", "never"], + "space-in-parens": ["warn", "never"], + "array-bracket-spacing": ["warn", "never"], + "no-spaced-func": "warn", + "key-spacing": ["warn", {"beforeColon": false, "afterColon": true}], + "quote-props": ["warn", "as-needed"], + + // Style, braces + "brace-style": ["warn", "1tbs", {"allowSingleLine": true}], + "curly": ["warn", "multi-line"], + + // Style, misc + "no-with": "warn", + "dot-notation": "warn", + // "quotes": ["warn", "double", {"avoidEscape": true}], // Enforce later + "semi": ["warn", "always"], + "no-var": "warn" + } +} \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..da63913 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +build/* + diff --git a/ChangeLog b/ChangeLog deleted file mode 100644 index 7dcfb0c..0000000 --- a/ChangeLog +++ /dev/null @@ -1,78 +0,0 @@ -version 0.16 - - * Migrated away from deprecated webkitNotifications (contributed by Alexander Kashev) - * Small fixes to options page (contributed by Alexander Kashev) - -version 0.15 - - * Options sync crash workaround (contributed by Alexander Kashev) - * Updated some deprecated API calls (contributed by Alexander Kashev) - -version 0.14 - - * In case of multiple windows, a new tab will be opened on click - if there is no TOR tab in the current window (contributed by Alexander Kashev) - -version 0.13 - - * Added an option to open tab as pinned (contributed by Vasilij Melnychuk) - * Implemented options sync through Chrome Sync (contributed by Alexander Kashev) - * Notifier will retry contacting servers faster after a fresh error (contributed by Alexander Kashev) - * Logged out state now shows a "!" badge, requesting user attention (contributed by Alexander Kashev) - -version 0.12 - - * Information is correctly updated from already open tabs - when extension is installed or updated (contributed by Alexander Kashev) - * Added links to preferences page (contributed by Alexander Kashev) - -version 0.11 - - * Optimized image size (contributed by nelchael) - * Extension renamed to "The Old Reader Notifier" - -version 0.10 - -Lots of new features contributed by Alexander Kashev: - - * New tab-based counter refresh mechanism - * HTTPS support - * Configurable refresh interval - * Notification timeout - * Improved preferences page - * Notifications about new option settings after upgrade - -version 0.9 - - * Fix notification settings - -version 0.8 - - * Added new item notifications (contributed by nelchael) - * User can now choose whether Home page or All Items should be opened - upon clicking the icon (contributed by nelchael) - -version 0.7 - - * Adjusted regular expression to prevent matching error page title - (contributed by Alexander Kashev). - -version 0.6 - - * Fixed tab-based counter detection - * Fixed handling of empty feed data - -version 0.5 - - * Refactored timers to fetch data from HTTP more effectively. - * Added 'subscribe' web intent handling. - -version 0.4 - - * Fixed some bugs in timeout handling. - -version 0.3 - - * Failed HTTP counter update now forces next update to be over HTTP - as well. This should make the icon active again much faster after - any service or network failures. diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..fde65c0 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2012-2017, contributors of The Old Reader Notifier + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3fe713b --- /dev/null +++ b/Makefile @@ -0,0 +1,44 @@ +PROJECT=theoldreader + +SRC=source +TARGET=build + +SOURCES = $(shell find $(SRC) -print) + +# Preserve builds +.SECONDARY: $(TARGET)/chrome/ $(TARGET)/firefox/ + +all: chrome firefox + +firefox: $(TARGET)/$(PROJECT)-firefox.xpi + +chrome: $(TARGET)/$(PROJECT)-chrome.zip + +$(TARGET)/$(PROJECT)-%.zip: $(TARGET)/% + @echo "\n*** Rebuilding $*.zip ***\n" + cd $(TARGET)/$* && zip -qr ../$(PROJECT)-$*.zip * + +$(TARGET)/$(PROJECT)-%.xpi: $(TARGET)/% + @echo "\n*** Rebuilding $*.xpi ***\n" + cd $(TARGET)/$* && zip -qr ../$(PROJECT)-$*.xpi * + +$(TARGET)/chrome: $(SOURCES) + @echo "\n*** Rebuilding chrome ***\n" + mkdir -p $@ + rm -rf $(TARGET)/chrome/* + cp -r $(SRC)/* $@ + mv $(TARGET)/chrome/manifest-chrome.json $(TARGET)/chrome/manifest.json + rm -f $(TARGET)/chrome/manifest-*.json + +$(TARGET)/firefox: $(SOURCES) + @echo "\n*** Rebuilding firefox ***\n" + mkdir -p $@ + rm -rf $(TARGET)/firefox/* + cp -r $(SRC)/* $@ + mv $(TARGET)/firefox/manifest-firefox.json $(TARGET)/firefox/manifest.json + rm -f $(TARGET)/firefox/manifest-*.json + +clean: + rm -rf $(TARGET) + +.PHONY: all clean firefox chrome diff --git a/README.md b/README.md index 0830bc6..48e73a7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -The Old Reader Notifier Chrome Extension +The Old Reader Notifier WebExtension ======================================== The extension will simply display an icon that allows you to access The Old Reader (http://theoldreader.com/) directly from your toolbar. @@ -7,4 +7,18 @@ A badge will indicate the amount of unread messages that await your attention. Optional notifications will alert you about new messages. -Packaged extension can be installed from the Chrome Web Store at https://chrome.google.com/webstore/detail/flnadglecinohkbmdpeooblldjpaimpo +Packaged extension can be installed: +* from the [Chrome Web Store](https://chrome.google.com/webstore/detail/flnadglecinohkbmdpeooblldjpaimpo) +* from the [Mozilla Add-Ons](https://addons.mozilla.org/firefox/addon/the-old-reader-notifier-webext/) + +---- + +List of code contributors, in order of first commit: + +* Anton Tolchanov [@knyar](https://github.com/knyar) +* Dmitry Krasnoukhov [@krasnoukhov](https://github.com/krasnoukhov) +* Krzysztof Pawlik [@nelchael](https://github.com/nelchael) +* Alexander Kashev [@kav2k](https://github.com/kav2k) +* Vasilij Melnychuk [@SqREL](https://github.com/SqREL) +* [@ConcurrentHashMap](https://github.com/ConcurrentHashMap) +* Michal Stanke [@MikkCZ](https://github.com/MikkCZ) \ No newline at end of file diff --git a/functions.js b/functions.js deleted file mode 100644 index bfe5e43..0000000 --- a/functions.js +++ /dev/null @@ -1,242 +0,0 @@ -// vim: set ts=2 sw=2 et -var BADGE_BACKGROUND_COLOR = '#d73f31'; -var OPTIONS_VERSION = 2; // Increment when there are new options - -var last_unread_count = 0; -var notificationTimeout; -var retryCount = 0; -var lastError = ""; - -function showNotification(title, body) { - if (localStorage['show_notifications'] != 'yes') { - return; - } - - var notification = new Notification( - title, - { - icon: 'icon-48.png', - body: body, - tag: 'theoldreader-chrome' - } - ); - - notification.onclick = function() { openOurTab(); this.close(); } // Opens the Old Reader page and self-destructs - - window.clearTimeout(notificationTimeout); // If updating a notification, reset timeout - if (localStorage['notification_timeout'] > 0) { - notificationTimeout = window.setTimeout( - function() { notification.cancel(); }, - localStorage['notification_timeout'] * 1000 - ); - } -} - -function findOurTab(callback, windowId) { - chrome.tabs.query( - { - url: "*://theoldreader.com/*", - windowId: windowId - }, - function (tabs) { - callback(tabs[0]); - } - ); -} - -function openOurTab(windowId) { - findOurTab(function(tab) { - if (tab) { - chrome.tabs.update(tab.id, {selected: true}); - } else { - var url = (localStorage['prefer_https'] == 'yes' ? 'https://theoldreader.com/' : 'http://theoldreader.com/'); - var pinned = (localStorage['prefer_pinned_tab'] == 'yes' ? true : false); - if (localStorage['click_page'] == 'all_items') { url += 'posts/all'; } - chrome.tabs.create({url: url, pinned: pinned, windowId: windowId}); - } - }, windowId); -} - -function reportError(details) { - console.warn(details.errorText); - - chrome.browserAction.setIcon({path: 'icon-inactive.png'}); - - if (details.loggedOut) { - chrome.browserAction.setBadgeText({text: '!'}); - chrome.browserAction.setTitle({title: 'Logged out, click to log in'}); - if (lastError != details.errorText) { // Suppress repeat notifications about the same error - showNotification('Logged out', "Click here to log in"); - } - } else { - chrome.browserAction.setBadgeText({text: ''}); - chrome.browserAction.setTitle({title: 'Error fetching feed counts'}); - if (lastError != details.errorText) { // Suppress repeat notifications about the same error - showNotification('Error', "Failed to fetch feed counts: "+details.errorText); - } - } - - lastError = details.errorText; // Remember last error - - console.warn("Error fetching feed counts, " + retryCount + " time(s) in a row"); -} - -function updateIcon(count) { - countInt = parseInt(count); - title_suffix = ': ' + countInt + ' unread'; - if (countInt == 0) { - count = ""; - title_suffix = ''; - } else if (countInt > 999) { - count = "999+"; - } else { - count = countInt.toString(); - } - chrome.browserAction.setIcon({path: 'icon-active.png'}); - chrome.browserAction.setBadgeBackgroundColor({color: BADGE_BACKGROUND_COLOR}); - chrome.browserAction.setBadgeText({text: count}); - chrome.browserAction.setTitle({title: 'The Old Reader' + title_suffix}); - - lastError = ""; // Clear last remembered error - - if (countInt > last_unread_count) { - var text = 'You have ' + countInt + ' unread post' + (countInt > 1 ? 's' : '') + '.'; - showNotification('New posts', text); - } - last_unread_count = countInt; -} - -function parseCounters(feedData) { - var unread_count = 0; - - if(!feedData.feeds) { - return reportError() - } - - var i, folder; - for (i=0; folder=feedData.feeds[i]; i++) { - var k, feed; - for (k=0; feed=folder.feeds[k]; k++) { - if (feed.unread_count) { - unread_count += feed.unread_count; - } - } - } - for (i=0; folder=feedData.following[i]; i++) { - if (folder.unread_count) { - unread_count += folder.unread_count; - } - } - updateIcon(unread_count) -} - -function getCountersFromHTTP() { - // If request times out or if we get unexpected output, report error and reschedule - function refreshFailed(details) { - window.clearTimeout(requestTimeout); - retryCount++; - reportError(details); - scheduleRefresh(); - } - - // If request succeeds, update counters and reschedule - function refreshSucceeded(feedData) { - parseCounters(feedData); - retryCount = 0; - scheduleRefresh(); - } - - var httpRequest = new XMLHttpRequest(); - var requestTimeout = window.setTimeout(function() { - httpRequest.abort(); - refreshFailed({errorText: 'HTTP request timed out'}); - }, 20000); - - httpRequest.onerror = function(err) { - refreshFailed({errorText: 'HTTP request error'}); // No usable error data in err - } - - httpRequest.onreadystatechange = function() { - if (httpRequest.readyState == 4 && httpRequest.status != 0) { // (4,0) means onerror will be fired next - if (httpRequest.status >= 400) { - refreshFailed({ - errorText : 'Got HTTP error: ' + httpRequest.status + ' (' + httpRequest.statusText + ')', - loggedOut : (httpRequest.status == 403) - }); - } else if (httpRequest.responseText) { - window.clearTimeout(requestTimeout); - var feedData; - try { - feedData = JSON.parse(httpRequest.responseText); - refreshSucceeded(feedData); - } catch (exception) { - refreshFailed({errorText: 'Exception while parsing json: ' + exception.toString()}); - } - } else { - refreshFailed({errorText: 'Empty response'}); - } - } - } - - try { - if (localStorage['prefer_https'] == 'yes') { - httpRequest.open('GET', 'https://theoldreader.com/feeds/counts.json', true); - } else { - httpRequest.open('GET', 'http://theoldreader.com/feeds/counts.json', true); - } - httpRequest.send(null); - } catch (exception) { - refreshFailed({errorText: 'Exception while fetching data: ' + exception.toString()}); - } -} - -function scheduleRefresh() { - var interval = (localStorage['refresh_interval'] || 15); - if(retryCount){ // There was an error - interval = Math.min( interval, Math.max(1, retryCount-2)); - // 1:00 -> 1:00 -> 1:00 -> 2:00 -> 3:00 -> 4:00 -> 5:00 -> ... - // chrome alarms cannot go off more frequently than every 1 minute - } - chrome.alarms.onAlarm.addListener(getCountersFromHTTP); - chrome.alarms.create('refreshAlarm', {periodInMinutes:interval}); -} - -function onMessage(request, sender, callback) { - if (typeof request.count !== 'undefined') { - setCountFromObserver(request.count); - } - if (request.sync) { - saveToStorage(callback); - return true; // Allow asynchronous callback - } -} - -function setCountFromObserver(count) { - console.log("Observer reported (" + count + "), no need to update for now"); - updateIcon(count); - scheduleRefresh(); -} - -function onExtensionUpdate(details) { - if (details.reason == "update" && !(localStorage["options_version"] >= OPTIONS_VERSION)) { // Negation required to capture undefined - var notification = webkitNotifications.createNotification('icon-48.png', "New options available", "Click to configure new options"); - notification.onclick = function() { chrome.tabs.create({url: chrome.runtime.getURL("options.html")}); this.close(); } - notification.show(); - } - localStorage["options_version"] = OPTIONS_VERSION; - saveToStorage(); -} - -function startupInject() { - // At this point, all old content scripts, if any, cannot communicate with the extension anymore - // Old instances of content scripts have a "kill-switch" to terminate their event listeners - // Here we inject new instances in existing tabs - chrome.tabs.query( - {url: "*://theoldreader.com/*"}, - function (tabs) { - for (var i in tabs) { - chrome.tabs.executeScript(tabs[i].id, {file: "observer.js"}); - } - } - ); -} diff --git a/icon-128.png b/icon-128.png deleted file mode 100644 index 7f28ed47249dac281daead68b21950070f4abe7a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8617 zcmV;aAy(drP)=m{e{ zoAW(sG|%HUy{5?SpB~Q1Ofhopu*}V?$#T<(%$r`j@cSZnmE-bp`~t=51*F8g*Af8M zEyd4`#sIMC=G!XuN>j3cn-PnVb zbs0Na*_v-b__?sIkka;-4e!et0)WCz+hq{|wb=jwkuN#|0N}lpsc^Hx$F+VLngGAC z2Ycbzp}B)X6Edv)^} zfazntn2^C+0>B&qz`L?*vXN^?v(he%Nc<00Kv1Cw`1x^6xu8df1prw!{WuU{jFeh5 z0nCJ`qYPd9mAm@zH%#0&A>BLx#=-K+X%vLHz{s_Cc=~jQ?|i5W(bS3}2xPu4D!Z~e zE&u}R0F3}z5I&Mezxop?Ei~kck!Nlne1STRP8h(M2EZ6t%at@*CAl6n^z16>1VVfh z)wpFIAi0)zTmble%bESQvipNY__-T^aH64WKe24qnRm{nR!jf_;6Bg*yJYSkMxQ+_ zxgN3V3RWtN2kfj-l&&2P0OZk|egnj<%Ch>`VgSz@zW%zR`%Zgk9vu$?%*!+nfHkt4 zR>^$Dp7iu?hKQidT~(894FFLM1a%=#>d=k{fRe%~y6~)f03`*5hOZwi`e(N_1$4}y zbUHrMoF_0A*3*&zCV>CGGQ-`=$n`4}jsqe761C_JpgS3o_zfKj0Ho~tZluJ!&9eWG z+##se0hmNX*I&7yJA8l7G4TE2qZK;dgc-mX00xmZN<6J$WKOu$$USUHKdW0<=EIeW zU|9>q6k%Uf$VE_HT8uI9EzcCno?neSe`w@WBXB7arsxUAl@mIEM0Fbi0&ah*j zvK;t1NCS9>nD9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}-f{J4!}0$T-vMj(pP7$0iHW+1b_D7I?oV=SH@ca0E-3= z8bC*1mt$!55%CvJvQ7YTN~wBlhX+7dbe|4F{32!{O^mUCu*AJffm9j*K&LCEwCD4s zzSfSo&+b=u*{nCw0!;_ep`B@8GtOY00000NkvXXu0mjf>+g+U diff --git a/icon-16.png b/icon-16.png deleted file mode 100644 index 00aac722c2acb89af9c98491c39cdfa037366058..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 953 zcmV;q14jIbP)nM53pYEGxN#)QA&>zYoCtV% z&v}2pZx;@y&;93lE}ngenXwY;vwIK>yamT?>DqVl^e;7=?h;sDv&@1^Dzz`&G`i+e z-ghPa*Xvgp@d&nU0iYa81B~%+-`kzx2Bbg0Y<-|rNNJ3x9*#W|+qO+UQ9!Y7i9&q@ z(s&Mzn}DZ(9Nt-8o5&9N@(AKZr6W@4pB6oJ-!H_LRYBb`R#)H$06~5B8N~k@gp_R% z1ZZV*W9y7EjDz>q=b#9T0O_|kW*7a(pu-HnBJs&GKXo-83HJ&F18*QLPzmPySav_; z#`aUxXGbAK_0-0k`64M2QW)X*^liJOKi2KAe%E833Yx~VnNl{Ga8rk%F#*<>xv~8L zoo#P{A=<%=g{N0H6*-Qx7zp%9AzE(NZROI)Q0rKK#rLk}Jua|;+JeEXbFaUgdE@!g zT1aC*h;~3Tkn~P)Lu)et+=^_qEg_Cd0E%@i3G`glG;q@M{-IZED;Hc#2IjLu;_r3Y zm?~U5`)}6jL%cWoH6F`Mb=hlUX@RcMq|W{wgb4;aM9U^I=}af7$|q+;@#Hj0ejTCp z%Snm7(Z_k@G&T6r6AP4k=N{IM&mc5C=UHwlMfug$nNh0 z<+qQ(%+%ZVIV}0XDxKEJb zTXGNPeq6r`v;rAbbG_qj&KqI@tJwzz;3EE*2VNt2(&HY0s?nJ^r z4=SoTR#l2y+lym}>nd!*JCNp=U!ZGUijTCf*^g66WD1j4OWL9}WW z1mx@UezO~9XJ3vyo1SW#i^B%d%e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f_x@l< zf?N!Nd)Qhdnl({G7klO<5GXPcpg72>9LX@aQ1BMVK35C&2GGCS64=D+#6Egb+M`}5 zlp_to&~n5sCiueD^1O?l`(hYxs!@!gsB0|6AW}F=Wxdx`e=gK7zS**xml2p}aNZ$1AnRoXBMgHefPt}f2cX4kEpvkQlMSqj#?xL*Nu zJ%{tHxa4k>f)#-OZB4O8Fv}n9cDb%JpWp5gpP2>%)`7gto5cqE9$9PiVDMe;=T_}E z=%=WIy)5lCfCjCxK)W1R=Zn2?GxOP1ZdYj~vW|85uD}SGJ!N!tZ1!1mB>*?a4L3&3 z*kk<_K#vJDD`Ktn31XymIMbY)9;2lhZYi(AV?#h4%8Ev*kH zJpgv51A+6cZrNo%J4MM<%54bH&uuCSvZuv89IUtb9fnctev=Hg{{zuz>YsSNN8kVe N002ovPDHLkV1j1w^uPcB diff --git a/icon-active.png b/icon-active.png deleted file mode 100644 index 9d9b1342bfe506185e88401edc1b3c01d7e906b1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1201 zcmV;i1Wx;jP)2 zp6CC+`?O(oeg9n_uIu6=5y6n?i+C}7a{-Q%hm5yTR&3n#LfvEETj06Im{a?X|1|qz z-SjuZinpeHb59woY~qPCT|+$Me)$*&R#AumqVU@j)oH5KI7MzpU8wJI?>PxVNM@-w;rykkcb-N$H999s=!A1lUYZx-xjU zv##>#Yfnv&5t^F@LCA$|15AMHwZjf9Kr)d*F#MwuDP4N-IM&}zz#{50R=O&q9UT@v z98y%R1#rc{2<|eRKrR9{;Oi7zZ#V9uUK-ZjLLmGhY*ngl3!zxSsff`CFpY;F`uNb% zU+yGrT9npiyKm%9kQfogQHJZUg=b!bk!jM{^b#U)X>WWdY_$qRfUl3H3-cFdnOm8F zAoJ2?wUsRqQP$+69k2RiDqLWB#^5a)ng*TSRgA9w#c_JBy<1foaE6!K$Y5Y@(Hm``LZ zURBoCesy?@yEi%`V{bn%~VbV zWVN}(iWf|1Yrjf+<6}TL0^2Hw2%t?Tf`M(A6gwnk%lZI-F4a|TAaJi3IXUsz&z--{ zuZRRQ>U~?$8bySxuTLJVn7Cy9tkM<)?0GN(_<9cl_g{!KuRq9C)78qy5tkIINarjq$X>w9@RozOBLV#nZk#)Lj}&o>?`23aw+4-6m7J5*Avkp#Wpc&ak}&G%R*O_ZK2@CU)^|o%?%j!1OiqB z+6XkZ3>p3J9Et26UnEH&D3JmHNDu~@2;o%rt^fk!QD6eJpMj`r_w)Y%<5dte{=YE@ P00000NkvXXu0mjfu@E}Z diff --git a/icon-inactive.png b/icon-inactive.png deleted file mode 100644 index 83ea4a2ac3ee4e41789a6521ad3f8a025b7eee45..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 677 zcmV;W0$TlvP)EE$}C6B%;;i~nCNlqZ0DYbi@vVPknGazE`3xGwJp_0$bpz17dfB14)q+i2=+E=B$>H+}z; z9i&NtS>1I5^(gdj^+Z>VLv2e;NBi%PBiMsmx-$<2LGtrmSNFJh==Zt`F^i*~ zm?GxgiQM@G2qL=R?siroPKiG2;-Ov~m=|=!6fu`uW+7&U*=<7c@zCG(wd_JfpK(#- zy9`CbtB9FnE}E|iClK{Xjk)-!w|2@YQ9X*S6o~p;XPY@;XF^O!FeqNRUZ-wm@o{b- zuHC=}4ifJ}qH_uDn7hIH<0(Oqos-oq7yYwwb#rOm$21MYXBV|qh9faihnf0MZ_XM$ z>S6CitXCN}^&(+IO#7Ir{Vz*9r9Szn2&ukrk$Hs#%?ZJ`!i2{^m;Qto#SfWK00000 LNkvXXu0mjfp<_Ol diff --git a/jquery-2.1.0.min.js b/jquery-2.1.0.min.js deleted file mode 100644 index cbe6abe..0000000 --- a/jquery-2.1.0.min.js +++ /dev/null @@ -1,4 +0,0 @@ -/*! jQuery v2.1.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ -!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k="".trim,l={},m=a.document,n="2.1.0",o=function(a,b){return new o.fn.init(a,b)},p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};o.fn=o.prototype={jquery:n,constructor:o,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=o.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return o.each(this,a,b)},map:function(a){return this.pushStack(o.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},o.extend=o.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||o.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(o.isPlainObject(d)||(e=o.isArray(d)))?(e?(e=!1,f=c&&o.isArray(c)?c:[]):f=c&&o.isPlainObject(c)?c:{},g[b]=o.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},o.extend({expando:"jQuery"+(n+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===o.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return a-parseFloat(a)>=0},isPlainObject:function(a){if("object"!==o.type(a)||a.nodeType||o.isWindow(a))return!1;try{if(a.constructor&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(b){return!1}return!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=o.trim(a),a&&(1===a.indexOf("use strict")?(b=m.createElement("script"),b.text=a,m.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":k.call(a)},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?o.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(c=a[b],b=a,a=c),o.isFunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||o.guid++,f):void 0},now:Date.now,support:l}),o.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=o.type(a);return"function"===c||o.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s="sizzle"+-new Date,t=a.document,u=0,v=0,w=eb(),x=eb(),y=eb(),z=function(a,b){return a===b&&(j=!0),0},A="undefined",B=1<<31,C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=D.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",M=L.replace("w","w#"),N="\\["+K+"*("+L+")"+K+"*(?:([*^$|!~]?=)"+K+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+M+")|)|)"+K+"*\\]",O=":("+L+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+N.replace(3,8)+")*)|.*)\\)|)",P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(O),U=new RegExp("^"+M+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L.replace("w","w*")+")"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=/'|\\/g,ab=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),bb=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{G.apply(D=H.call(t.childNodes),t.childNodes),D[t.childNodes.length].nodeType}catch(cb){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function db(a,b,d,e){var f,g,h,i,j,m,p,q,u,v;if((b?b.ownerDocument||b:t)!==l&&k(b),b=b||l,d=d||[],!a||"string"!=typeof a)return d;if(1!==(i=b.nodeType)&&9!==i)return[];if(n&&!e){if(f=Z.exec(a))if(h=f[1]){if(9===i){if(g=b.getElementById(h),!g||!g.parentNode)return d;if(g.id===h)return d.push(g),d}else if(b.ownerDocument&&(g=b.ownerDocument.getElementById(h))&&r(b,g)&&g.id===h)return d.push(g),d}else{if(f[2])return G.apply(d,b.getElementsByTagName(a)),d;if((h=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(h)),d}if(c.qsa&&(!o||!o.test(a))){if(q=p=s,u=b,v=9===i&&a,1===i&&"object"!==b.nodeName.toLowerCase()){m=ob(a),(p=b.getAttribute("id"))?q=p.replace(_,"\\$&"):b.setAttribute("id",q),q="[id='"+q+"'] ",j=m.length;while(j--)m[j]=q+pb(m[j]);u=$.test(a)&&mb(b.parentNode)||b,v=m.join(",")}if(v)try{return G.apply(d,u.querySelectorAll(v)),d}catch(w){}finally{p||b.removeAttribute("id")}}}return xb(a.replace(P,"$1"),b,d,e)}function eb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function fb(a){return a[s]=!0,a}function gb(a){var b=l.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function hb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function ib(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||B)-(~a.sourceIndex||B);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function jb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function kb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function lb(a){return fb(function(b){return b=+b,fb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function mb(a){return a&&typeof a.getElementsByTagName!==A&&a}c=db.support={},f=db.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},k=db.setDocument=function(a){var b,e=a?a.ownerDocument||a:t,g=e.defaultView;return e!==l&&9===e.nodeType&&e.documentElement?(l=e,m=e.documentElement,n=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){k()},!1):g.attachEvent&&g.attachEvent("onunload",function(){k()})),c.attributes=gb(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=gb(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(e.getElementsByClassName)&&gb(function(a){return a.innerHTML="
",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=gb(function(a){return m.appendChild(a).id=s,!e.getElementsByName||!e.getElementsByName(s).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==A&&n){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){var c=typeof a.getAttributeNode!==A&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==A?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==A&&n?b.getElementsByClassName(a):void 0},p=[],o=[],(c.qsa=Y.test(e.querySelectorAll))&&(gb(function(a){a.innerHTML="",a.querySelectorAll("[t^='']").length&&o.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||o.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll(":checked").length||o.push(":checked")}),gb(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&o.push("name"+K+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||o.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),o.push(",.*:")})),(c.matchesSelector=Y.test(q=m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&gb(function(a){c.disconnectedMatch=q.call(a,"div"),q.call(a,"[s!='']:x"),p.push("!=",O)}),o=o.length&&new RegExp(o.join("|")),p=p.length&&new RegExp(p.join("|")),b=Y.test(m.compareDocumentPosition),r=b||Y.test(m.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},z=b?function(a,b){if(a===b)return j=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===t&&r(t,a)?-1:b===e||b.ownerDocument===t&&r(t,b)?1:i?I.call(i,a)-I.call(i,b):0:4&d?-1:1)}:function(a,b){if(a===b)return j=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],k=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:i?I.call(i,a)-I.call(i,b):0;if(f===g)return ib(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)k.unshift(c);while(h[d]===k[d])d++;return d?ib(h[d],k[d]):h[d]===t?-1:k[d]===t?1:0},e):l},db.matches=function(a,b){return db(a,null,null,b)},db.matchesSelector=function(a,b){if((a.ownerDocument||a)!==l&&k(a),b=b.replace(S,"='$1']"),!(!c.matchesSelector||!n||p&&p.test(b)||o&&o.test(b)))try{var d=q.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return db(b,l,null,[a]).length>0},db.contains=function(a,b){return(a.ownerDocument||a)!==l&&k(a),r(a,b)},db.attr=function(a,b){(a.ownerDocument||a)!==l&&k(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!n):void 0;return void 0!==f?f:c.attributes||!n?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},db.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},db.uniqueSort=function(a){var b,d=[],e=0,f=0;if(j=!c.detectDuplicates,i=!c.sortStable&&a.slice(0),a.sort(z),j){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return i=null,a},e=db.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=db.selectors={cacheLength:50,createPseudo:fb,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ab,bb),a[3]=(a[4]||a[5]||"").replace(ab,bb),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||db.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&db.error(a[0]),a},PSEUDO:function(a){var b,c=!a[5]&&a[2];return V.CHILD.test(a[0])?null:(a[3]&&void 0!==a[4]?a[2]=a[4]:c&&T.test(c)&&(b=ob(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ab,bb).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=w[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&w(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==A&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=db.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),t=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&t){k=q[s]||(q[s]={}),j=k[a]||[],n=j[0]===u&&j[1],m=j[0]===u&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[u,n,m];break}}else if(t&&(j=(b[s]||(b[s]={}))[a])&&j[0]===u)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(t&&((l[s]||(l[s]={}))[a]=[u,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||db.error("unsupported pseudo: "+a);return e[s]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?fb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:fb(function(a){var b=[],c=[],d=g(a.replace(P,"$1"));return d[s]?fb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:fb(function(a){return function(b){return db(a,b).length>0}}),contains:fb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:fb(function(a){return U.test(a||"")||db.error("unsupported lang: "+a),a=a.replace(ab,bb).toLowerCase(),function(b){var c;do if(c=n?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===m},focus:function(a){return a===l.activeElement&&(!l.hasFocus||l.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:lb(function(){return[0]}),last:lb(function(a,b){return[b-1]}),eq:lb(function(a,b,c){return[0>c?c+b:c]}),even:lb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:lb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:lb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:lb(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function qb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=v++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[u,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[s]||(b[s]={}),(h=i[d])&&h[0]===u&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function rb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function sb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function tb(a,b,c,d,e,f){return d&&!d[s]&&(d=tb(d)),e&&!e[s]&&(e=tb(e,f)),fb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||wb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:sb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=sb(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=sb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ub(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],i=g||d.relative[" "],j=g?1:0,k=qb(function(a){return a===b},i,!0),l=qb(function(a){return I.call(b,a)>-1},i,!0),m=[function(a,c,d){return!g&&(d||c!==h)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>j;j++)if(c=d.relative[a[j].type])m=[qb(rb(m),c)];else{if(c=d.filter[a[j].type].apply(null,a[j].matches),c[s]){for(e=++j;f>e;e++)if(d.relative[a[e].type])break;return tb(j>1&&rb(m),j>1&&pb(a.slice(0,j-1).concat({value:" "===a[j-2].type?"*":""})).replace(P,"$1"),c,e>j&&ub(a.slice(j,e)),f>e&&ub(a=a.slice(e)),f>e&&pb(a))}m.push(c)}return rb(m)}function vb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,i,j,k){var m,n,o,p=0,q="0",r=f&&[],s=[],t=h,v=f||e&&d.find.TAG("*",k),w=u+=null==t?1:Math.random()||.1,x=v.length;for(k&&(h=g!==l&&g);q!==x&&null!=(m=v[q]);q++){if(e&&m){n=0;while(o=a[n++])if(o(m,g,i)){j.push(m);break}k&&(u=w)}c&&((m=!o&&m)&&p--,f&&r.push(m))}if(p+=q,c&&q!==p){n=0;while(o=b[n++])o(r,s,g,i);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=E.call(j));s=sb(s)}G.apply(j,s),k&&!f&&s.length>0&&p+b.length>1&&db.uniqueSort(j)}return k&&(u=w,h=t),r};return c?fb(f):f}g=db.compile=function(a,b){var c,d=[],e=[],f=y[a+" "];if(!f){b||(b=ob(a)),c=b.length;while(c--)f=ub(b[c]),f[s]?d.push(f):e.push(f);f=y(a,vb(e,d))}return f};function wb(a,b,c){for(var d=0,e=b.length;e>d;d++)db(a,b[d],c);return c}function xb(a,b,e,f){var h,i,j,k,l,m=ob(a);if(!f&&1===m.length){if(i=m[0]=m[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&c.getById&&9===b.nodeType&&n&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(ab,bb),b)||[])[0],!b)return e;a=a.slice(i.shift().value.length)}h=V.needsContext.test(a)?0:i.length;while(h--){if(j=i[h],d.relative[k=j.type])break;if((l=d.find[k])&&(f=l(j.matches[0].replace(ab,bb),$.test(i[0].type)&&mb(b.parentNode)||b))){if(i.splice(h,1),a=f.length&&pb(i),!a)return G.apply(e,f),e;break}}}return g(a,m)(f,b,!n,e,$.test(a)&&mb(b.parentNode)||b),e}return c.sortStable=s.split("").sort(z).join("")===s,c.detectDuplicates=!!j,k(),c.sortDetached=gb(function(a){return 1&a.compareDocumentPosition(l.createElement("div"))}),gb(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||hb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&gb(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||hb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),gb(function(a){return null==a.getAttribute("disabled")})||hb(J,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),db}(a);o.find=t,o.expr=t.selectors,o.expr[":"]=o.expr.pseudos,o.unique=t.uniqueSort,o.text=t.getText,o.isXMLDoc=t.isXML,o.contains=t.contains;var u=o.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(o.isFunction(b))return o.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return o.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return o.filter(b,a,c);b=o.filter(b,a)}return o.grep(a,function(a){return g.call(b,a)>=0!==c})}o.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?o.find.matchesSelector(d,a)?[d]:[]:o.find.matches(a,o.grep(b,function(a){return 1===a.nodeType}))},o.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(o(a).filter(function(){for(b=0;c>b;b++)if(o.contains(e[b],this))return!0}));for(b=0;c>b;b++)o.find(a,e[b],d);return d=this.pushStack(c>1?o.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?o(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=o.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof o?b[0]:b,o.merge(this,o.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:m,!0)),v.test(c[1])&&o.isPlainObject(b))for(c in b)o.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=m.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=m,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):o.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(o):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),o.makeArray(a,this))};A.prototype=o.fn,y=o(m);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};o.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&o(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),o.fn.extend({has:function(a){var b=o(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(o.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?o(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&o.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?o.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(o(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(o.unique(o.merge(this.get(),o(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}o.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return o.dir(a,"parentNode")},parentsUntil:function(a,b,c){return o.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return o.dir(a,"nextSibling")},prevAll:function(a){return o.dir(a,"previousSibling")},nextUntil:function(a,b,c){return o.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return o.dir(a,"previousSibling",c)},siblings:function(a){return o.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return o.sibling(a.firstChild)},contents:function(a){return a.contentDocument||o.merge([],a.childNodes)}},function(a,b){o.fn[a]=function(c,d){var e=o.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=o.filter(d,e)),this.length>1&&(C[a]||o.unique(e),B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return o.each(a.match(E)||[],function(a,c){b[c]=!0}),b}o.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):o.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){o.each(b,function(b,c){var d=o.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&o.each(arguments,function(a,b){var c;while((c=o.inArray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?o.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},o.extend({Deferred:function(a){var b=[["resolve","done",o.Callbacks("once memory"),"resolved"],["reject","fail",o.Callbacks("once memory"),"rejected"],["notify","progress",o.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return o.Deferred(function(c){o.each(b,function(b,f){var g=o.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&o.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?o.extend(a,d):d}},e={};return d.pipe=d.then,o.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&o.isFunction(a.promise)?e:0,g=1===f?a:o.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&o.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;o.fn.ready=function(a){return o.ready.promise().done(a),this},o.extend({isReady:!1,readyWait:1,holdReady:function(a){a?o.readyWait++:o.ready(!0)},ready:function(a){(a===!0?--o.readyWait:o.isReady)||(o.isReady=!0,a!==!0&&--o.readyWait>0||(H.resolveWith(m,[o]),o.fn.trigger&&o(m).trigger("ready").off("ready")))}});function I(){m.removeEventListener("DOMContentLoaded",I,!1),a.removeEventListener("load",I,!1),o.ready()}o.ready.promise=function(b){return H||(H=o.Deferred(),"complete"===m.readyState?setTimeout(o.ready):(m.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",I,!1))),H.promise(b)},o.ready.promise();var J=o.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===o.type(c)){e=!0;for(h in c)o.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,o.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(o(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};o.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=o.expando+Math.random()}K.uid=1,K.accepts=o.acceptData,K.prototype={key:function(a){if(!K.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,o.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(o.isEmptyObject(f))o.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,o.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{o.isArray(b)?d=b.concat(b.map(o.camelCase)):(e=o.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!o.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(O,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?o.parseJSON(c):c}catch(e){}M.set(a,b,c)}else c=void 0;return c}o.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),o.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length; -while(c--)d=g[c].name,0===d.indexOf("data-")&&(d=o.camelCase(d.slice(5)),P(f,d,e[d]));L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=o.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c)return c;if(c=M.get(f,d),void 0!==c)return c;if(c=P(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=M.get(this,d);M.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&M.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),o.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=L.get(a,b),c&&(!d||o.isArray(c)?d=L.access(a,b,o.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=o.queue(a,b),d=c.length,e=c.shift(),f=o._queueHooks(a,b),g=function(){o.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return L.get(a,c)||L.access(a,c,{empty:o.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}}),o.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length",l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U="undefined";l.focusinBubbles="onfocusin"in a;var V=/^key/,W=/^(?:mouse|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function $(){return!1}function _(){try{return m.activeElement}catch(a){}}o.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=o.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof o!==U&&o.event.triggered!==b.type?o.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(E)||[""],j=b.length;while(j--)h=Y.exec(b[j])||[],n=q=h[1],p=(h[2]||"").split(".").sort(),n&&(l=o.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=o.event.special[n]||{},k=o.extend({type:n,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&o.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(n,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),o.event.global[n]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=Y.exec(b[j])||[],n=q=h[1],p=(h[2]||"").split(".").sort(),n){l=o.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||o.removeEvent(a,n,r.handle),delete i[n])}else for(n in i)o.event.remove(a,n+b[j],c,d,!0);o.isEmptyObject(i)&&(delete r.handle,L.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,p=[d||m],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||m,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+o.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexOf(":")<0&&"on"+q,b=b[o.expando]?b:new o.Event(q,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:o.makeArray(c,[b]),n=o.event.special[q]||{},e||!n.trigger||n.trigger.apply(d,c)!==!1)){if(!e&&!n.noBubble&&!o.isWindow(d)){for(i=n.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode)p.push(g),h=g;h===(d.ownerDocument||m)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped())b.type=f>1?i:n.bindType||q,l=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle"),l&&l.apply(g,c),l=k&&g[k],l&&l.apply&&o.acceptData(g)&&(b.result=l.apply(g,c),b.result===!1&&b.preventDefault());return b.type=q,e||b.isDefaultPrevented()||n._default&&n._default.apply(p.pop(),c)!==!1||!o.acceptData(d)||k&&o.isFunction(d[q])&&!o.isWindow(d)&&(h=d[k],h&&(d[k]=null),o.event.triggered=q,d[q](),o.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=o.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=o.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=o.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((o.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?o(e,this).index(i)>=0:o.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]*)\/>/gi,bb=/<([\w:]+)/,cb=/<|&#?\w+;/,db=/<(?:script|style|link)/i,eb=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/^$|\/(?:java|ecma)script/i,gb=/^true\/(.*)/,hb=/^\s*\s*$/g,ib={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ib.optgroup=ib.option,ib.tbody=ib.tfoot=ib.colgroup=ib.caption=ib.thead,ib.th=ib.td;function jb(a,b){return o.nodeName(a,"table")&&o.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function kb(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function lb(a){var b=gb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function mb(a,b){for(var c=0,d=a.length;d>c;c++)L.set(a[c],"globalEval",!b||L.get(b[c],"globalEval"))}function nb(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&&(f=L.access(a),g=L.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)o.event.add(b,e,j[e][c])}M.hasData(a)&&(h=M.access(a),i=o.extend({},h),M.set(b,i))}}function ob(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&o.nodeName(a,b)?o.merge([a],c):c}function pb(a,b){var c=b.nodeName.toLowerCase();"input"===c&&T.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}o.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=o.contains(a.ownerDocument,a);if(!(l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||o.isXMLDoc(a)))for(g=ob(h),f=ob(a),d=0,e=f.length;e>d;d++)pb(f[d],g[d]);if(b)if(c)for(f=f||ob(a),g=g||ob(h),d=0,e=f.length;e>d;d++)nb(f[d],g[d]);else nb(a,h);return g=ob(h,"script"),g.length>0&&mb(g,!i&&ob(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,n=a.length;n>m;m++)if(e=a[m],e||0===e)if("object"===o.type(e))o.merge(l,e.nodeType?[e]:e);else if(cb.test(e)){f=f||k.appendChild(b.createElement("div")),g=(bb.exec(e)||["",""])[1].toLowerCase(),h=ib[g]||ib._default,f.innerHTML=h[1]+e.replace(ab,"<$1>")+h[2],j=h[0];while(j--)f=f.lastChild;o.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));k.textContent="",m=0;while(e=l[m++])if((!d||-1===o.inArray(e,d))&&(i=o.contains(e.ownerDocument,e),f=ob(k.appendChild(e),"script"),i&&mb(f),c)){j=0;while(e=f[j++])fb.test(e.type||"")&&c.push(e)}return k},cleanData:function(a){for(var b,c,d,e,f,g,h=o.event.special,i=0;void 0!==(c=a[i]);i++){if(o.acceptData(c)&&(f=c[L.expando],f&&(b=L.cache[f]))){if(d=Object.keys(b.events||{}),d.length)for(g=0;void 0!==(e=d[g]);g++)h[e]?o.event.remove(c,e):o.removeEvent(c,e,b.handle);L.cache[f]&&delete L.cache[f]}delete M.cache[c[M.expando]]}}}),o.fn.extend({text:function(a){return J(this,function(a){return void 0===a?o.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?o.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||o.cleanData(ob(c)),c.parentNode&&(b&&o.contains(c.ownerDocument,c)&&mb(ob(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(o.cleanData(ob(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return o.clone(this,a,b)})},html:function(a){return J(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!db.test(a)&&!ib[(bb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(ab,"<$1>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(o.cleanData(ob(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,o.cleanData(ob(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,k=this.length,m=this,n=k-1,p=a[0],q=o.isFunction(p);if(q||k>1&&"string"==typeof p&&!l.checkClone&&eb.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(k&&(c=o.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(f=o.map(ob(c,"script"),kb),g=f.length;k>j;j++)h=c,j!==n&&(h=o.clone(h,!0,!0),g&&o.merge(f,ob(h,"script"))),b.call(this[j],h,j);if(g)for(i=f[f.length-1].ownerDocument,o.map(f,lb),j=0;g>j;j++)h=f[j],fb.test(h.type||"")&&!L.access(h,"globalEval")&&o.contains(i,h)&&(h.src?o._evalUrl&&o._evalUrl(h.src):o.globalEval(h.textContent.replace(hb,"")))}return this}}),o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){o.fn[a]=function(a){for(var c,d=[],e=o(a),g=e.length-1,h=0;g>=h;h++)c=h===g?this:this.clone(!0),o(e[h])[b](c),f.apply(d,c.get());return this.pushStack(d)}});var qb,rb={};function sb(b,c){var d=o(c.createElement(b)).appendTo(c.body),e=a.getDefaultComputedStyle?a.getDefaultComputedStyle(d[0]).display:o.css(d[0],"display");return d.detach(),e}function tb(a){var b=m,c=rb[a];return c||(c=sb(a,b),"none"!==c&&c||(qb=(qb||o("