(function(g){var k;g.rea=k={globals:window,extend:function(a){var b=function(a,e){for(var d in a)if(a.hasOwnProperty(d)){var f=Object.getOwnPropertyDescriptor(a,d);if(f.get)Object.defineProperty(e,d,{get:f.get,enumerable:!0});else{var f=a[d],h=typeof f;"undefined"!=h&&(null===f?e[d]=f:"object"==h?(e[d]=e[d]||{},b(f,e[d])):"array"==h?(e[d]=e[d]||[],b(f,e[d])):e[d]=f)}}};b(a,g.rea)}};g.rea.extend({page:{reload:function(){window.location.reload()},eval:function(a){var b=document.createElementNS(document.lookupNamespaceURI(null)||
"http://www.w3.org/1999/xhtml","script");b.textContent=a;(document.head||document.body||document.documentElement||document).appendChild(b);b.parentNode.removeChild(b)},addStyle:function(a,b){var c=document.createElement("link");c.type="text/css";c.rel="stylesheet";c.href=a;b&&(c.onload=function(){b(!0)},c.onerror=function(){b(!1)});(document.head||document.body||document.documentElement||document).appendChild(c)},addScript:function(a,b){var c=document.createElement("script");c.setAttribute("src",
a);b&&(c.onload=function(){b(!0)},c.onerror=function(){b(!1)});(document.head||document.body||document.documentElement||document).appendChild(c)}},content:{onReady:function(a){var b=function(){"prerender"!==document.webkitVisibilityState&&(document.removeEventListener("webkitvisibilitychange",b,!1),a())};"prerender"!==document.webkitVisibilityState?a():document.addEventListener("webkitvisibilitychange",b,!1)}},runtime:function(){var a={};Object.defineProperty(a,"lastError",{get:function(){return chrome.runtime.lastError},
enumerable:!0});Object.defineProperty(a,"id",{get:function(){return chrome.runtime.id},enumerable:!0});Object.defineProperty(a,"short_id",{get:function(){return a.id.replace(/[^0-9a-zA-Z]/g,"").substr(0,4)},enumerable:!0});return a}(),extension:{getURL:function(a){return chrome.runtime.getURL(a)},sendMessage:function(a,b){return chrome.runtime.sendMessage(a,b)},onMessage:{addListener:function(a){return chrome.runtime.onMessage.addListener(a)}},connect:function(a){return chrome.runtime.connect({name:a})}}});
g.rea.extend(function(){var a=20,b=!1,c=!1,e=!1;try{b=-1!=navigator.userAgent.search("OPR/"),c=-1!=navigator.userAgent.search("Mac OS X")}catch(f){}try{a=parseInt(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)[2])}catch(f){}try{e=-1!=navigator.userAgent.search(/Android|Mobile/)}catch(f){}var d={CONSTANTS:{STORAGE:{SCHEMA:"#schema",TYPE:"#storage",CONFIG:"#config",SESSION:"#session",VERSION:"#version",LEGACY_VERSION:"TM_version",LAST_START:"#laststart",UPDATE:"#update",BEGGING:"#begging"},PREFIX:{SCRIPT_UID:"@uid#",
COND:"@re#",STORE:"@st#",SCRIPT:"@source#",EXTERNAL:"@ext#",META:"@meta#"}},RUNTIME:{BROWSER:b?"opera":"chrome",CHROME:!b,OPERA:b,MOBILE:e,BROWSER_VERSION:a,FAST_EXEC_SUPPORT:!0,DETECT_CONSTRUCTORS_BY_KEYS:60<=a,ALLOWS_FILE_SCHEME_ACCESS:null,MAX_SCRIPTS:1E3,WEBREQUEST_XHR_SUPPORT:!0,WEBREQUETS_WEBSOCKET:58<=a,CAN_SAVEAS_ZIP:!0,CONTEXT_MENU:!0,INCOGNITO_MODE:!0},ACTIONMENU:{CLOSE_ALLOWED:!0,MIN_DELAY:c?150:0},OPTIONPAGE:{CLOSE_ALLOWED:!1},DB:{USE:null,DEFAULT:"chromeStorage",SECURE:!1},XMLHTTPREQUEST:{RETRIES:0,
PARTIAL_SIZE:16777216,COOKIE_PASSTHROUGH:!1},SCRIPT_DOWNLOAD:{TIMEOUT:60},PINGPONG:{RETRIES:2},MISC:{TIMEOUT:1,IDLE_TIMEOUT:15,DISTURBANCE_ALLOWED:60},HTML5:{LOCALSTORAGE:null},PERMISSIONS:{ALL_URLS:"<all_urls>"},REQUESTS:{HAS_SENDER_ID:!0,INTERNAL_PAGE_PROTOCOLS:["chrome-extension:"],SENDS_ORIGIN:!0,GET_INTERNAL_PATH_REGEXP:function(a,b){var c=/(\/|\.|\+|\?|\||\(|\)|\[|\]|\{|\}|\\)/g;return new RegExp((d.REQUESTS.INTERNAL_PAGE_PROTOCOLS[0]+"//"+k.runtime.id+"/").replace(c,"\\$1")+"([a-zA-Z"+(a?"\\/":
"")+"]*)"+(b||"").replace(c,"\\$1"))},GET_INTERNAL_PAGE_REGEXP:function(){return d.REQUESTS.GET_INTERNAL_PATH_REGEXP(!1,".html")}},OPTIONS:{HAS_CSP:!0,CAN_DOWNLOAD:!0}};return{FEATURES:d}}())})(window);
