PageSourceSearch

https://epekho.magistrad.com/bundles/app?v=RCHSX7mT_SZccypMg9gEWrdmAyOQkXMZei5BGa3e_KA1

js magistrad.com collected 2026-10-08 04:51:11 UTC 61,795 bytes, 1 lines download raw bytes

1Object.create||(Object.create=function(){function n(){}return function(t){if(arguments.length!=1)throw new Error("Object.create implementation only accepts one parameter.");return n.prototype=t,new n}}());Object.keys||(Object.keys=function(n,t,i){i=[];for(t in n)i.hasOwnProperty.call(n,t)&&i.push(t);return i});Array.prototype.indexOf||(Array.prototype.indexOf=function(n){for(var t=0;t<this.length;t++)if(this[t]===n)return t;return-1});Array.prototype.forEach||(Array.prototype.forEach=function(n){var i,r,u,t;if(this===void 0||this===null)throw new TypeError;if(i=Object(this),r=i.length>>>0,typeof n!="function")throw new TypeError;for(u=arguments.length>=2?arguments[1]:void 0,t=0;t<r;t++)t in i&&n.call(u,i[t],t,i);return this});Array.prototype.filter||(Array.prototype.filter=function(n,t){var i=[];return this.forEach(function(r,u,f){n.call(t||void 0,r,u,f)&&i.push(r)}),i});Array.prototype.map||(Array.prototype.map=function(n,t){var i=[];return this.forEach(function(r,u,f){i.push(n.call(t||void 0,r,u,f))}),i});Array.isArray||(Array.isArray=function(n){return Object.prototype.toString.call(n)==="[object Array]"});typeof window!="object"||typeof location!="object"||window.location.assign||(window.location.assign=function(n){window.location=n});Function.prototype.bind||(Function.prototype.bind=function(n){function t(){}if(typeof this!="function")throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var i=[].slice,u=i.call(arguments,1),f=this,r=function(){return f.apply(this instanceof t?this:n||window,u.concat(i.call(arguments)))};return t.prototype=this.prototype,r.prototype=new t,r});var hello=function(n){return hello.use(n)};hello.utils={extend:function(n){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(Array.isArray(n)&&Array.isArray(t))Array.prototype.push.apply(n,t);else if(n&&(n instanceof Object||typeof n=="object")&&t&&(t instanceof Object||typeof t=="object")&&n!==t)for(var i in t)n[i]=hello.utils.extend(n[i],t[i]);else Array.isArray(t)&&(t=t.slice(0)),n=t}),n}};hello.utils.extend(hello,{settings:{redirect_uri:window.location.href.split("#")[0],response_type:"token",display:"popup",state:"",oauth_proxy:"https://auth-server.herokuapp.com/proxy",timeout:2e4,popup:{resizable:1,scrollbars:1,width:500,height:550},scope:["basic"],scope_map:{basic:""},default_service:null,force:null,page_uri:window.location.href},services:{},use:function(n){var t=Object.create(this);return t.settings=Object.create(this.settings),n&&(t.settings.default_service=n),t.utils.Event.call(t),t},init:function(n,t){var r=this.utils,i;if(!n)return this.services;for(i in n)n.hasOwnProperty(i)&&typeof n[i]!="object"&&(n[i]={id:n[i]});return r.extend(this.services,n),t&&(r.extend(this.settings,t),"redirect_uri"in t&&(this.settings.redirect_uri=r.url(t.redirect_uri).href)),this},login:function(){function y(n,t){hello.emit(n,t)}function p(n){return n}function d(n){return!!n}var e=this,t=e.utils,c=t.error,o=t.Promise(),n=t.args({network:"s",options:"o",callback:"f"},arguments),s,g=t.diffKey(n.options,e.settings),i=n.options=t.merge(e.settings,n.options||{}),b,v,k;if(i.popup=t.merge(e.settings.popup,n.options.popup||{}),n.network=n.network||e.settings.default_service,o.proxy.then(n.callback,n.callback),o.proxy.then(y.bind(this,"auth.login auth"),y.bind(this,"auth.failed auth")),typeof n.network!="string"||!(n.network in e.services))return o.reject(c("invalid_network","The provided network was not recognized"));var u=e.services[n.network],nt=t.globalEvent(function(n){n?typeof n=="string"&&(n=JSON.parse(n)):n=c("cancelled","The authentication was not completed");n.error?o.reject(n):(t.store(n.network,n),o.fulfill({network:n.network,authResponse:n}))}),l=t.url(i.redirect_uri).href,h=u.oauth.response_type||i.response_type;/\bcode\b/.test(h)&&!u.oauth.grant&&(h=h.replace(/\bcode\b/,"token"));n.qs=t.merge(g,{client_id:encodeURIComponent(u.id),response_type:encodeURIComponent(h),redirect_uri:encodeURIComponent(l),state:{client_id:u.id,network:n.network,display:i.display,callback:nt,state:i.state,redirect_uri:l}});var r=t.store(n.network),a=/[,\s]+/,f=e.settings.scope?[e.settings.scope.toString()]:[],w=t.merge(e.settings.scope_map,u.scope||{});return(i.scope&&f.push(i.scope.toString()),r&&"scope"in r&&r.scope instanceof String&&f.pu
1sh(r.scope),f=f.join(",").split(a),f=t.unique(f).filter(d),n.qs.state.scope=f.join(","),f=f.map(function(n){return n in w?w[n]:n}),f=f.join(",").split(a),f=t.unique(f).filter(d),n.qs.scope=f.join(u.scope_delim||","),i.force===!1&&r&&"access_token"in r&&r.access_token&&"expires"in r&&r.expires>(new Date).getTime()/1e3&&(b=t.diff((r.scope||"").split(a),(n.qs.state.scope||"").split(a)),b.length===0))?(o.fulfill({unchanged:!0,network:n.network,authResponse:r}),o):(i.display==="page"&&i.page_uri&&(n.qs.state.page_uri=t.url(i.page_uri).href),"login"in u&&typeof u.login=="function"&&u.login(n),(!/\btoken\b/.test(h)||parseInt(u.oauth.version,10)<2||i.display==="none"&&u.oauth.grant&&r&&r.refresh_token)&&(n.qs.state.oauth=u.oauth,n.qs.state.oauth_proxy=i.oauth_proxy),n.qs.state=encodeURIComponent(JSON.stringify(n.qs.state)),parseInt(u.oauth.version,10)===1?s=t.qs(i.oauth_proxy,n.qs,p):i.display==="none"&&u.oauth.grant&&r&&r.refresh_token?(n.qs.refresh_token=r.refresh_token,s=t.qs(i.oauth_proxy,n.qs,p)):s=t.qs(u.oauth.auth,n.qs,p),y("auth.init",n),i.display==="none"?t.iframe(s,l):i.display==="popup"?(v=t.popup(s,l,i.popup),k=setInterval(function(){if((!v||v.closed)&&(clearInterval(k),!o.state)){var t=c("cancelled","Login has been cancelled");v||(t=c("blocked","Popup was blocked"));t.network=n.network;o.reject(t)}},100)):window.location=s,o.proxy)},logout:function(){function s(n,t){hello.emit(n,t)}var f=this,r=f.utils,o=r.error,i=r.Promise(),n=r.args({name:"s",options:"o",callback:"f"},arguments),e,u,t;if(n.options=n.options||{},i.proxy.then(n.callback,n.callback),i.proxy.then(s.bind(this,"auth.logout auth"),s.bind(this,"error")),n.name=n.name||this.settings.default_service,n.authResponse=r.store(n.name),!n.name||n.name in f.services)if(n.name&&n.authResponse){if(e=function(t){r.store(n.name,null);i.fulfill(hello.utils.merge({network:n.name},t||{}))},u={},n.options.force&&(t=f.services[n.name].logout,t))if(typeof t=="function"&&(t=t(e,n)),typeof t=="string")r.iframe(t),u.force=null,u.message="Logout success on providers site was indeterminate";else if(t===undefined)return i.proxy;e(u)}else i.reject(o("invalid_session","There was no session to remove"));else i.reject(o("invalid_network","The network was unrecognized"));return i.proxy},getAuthResponse:function(n){return(n=n||this.settings.default_service,!n||!(n in this.services))?null:this.utils.store(n)||null},events:{}});hello.utils.extend(hello.utils,{error:function(n,t){return{error:{code:n,message:t}}},qs:function(n,t,i){var r,f,u;if(t){i=i||encodeURIComponent;for(r in t)f="([\\?\\&])"+r+"=[^\\&]*",u=new RegExp(f),n.match(u)&&(n=n.replace(u,"$1"+r+"="+i(t[r])),delete t[r])}return this.isEmpty(t)?n:n+(n.indexOf("?")>-1?"&":"?")+this.param(t,i)},param:function(n,t){var o,u={},f,e,i,r;if(typeof n=="string"){if(t=t||decodeURIComponent,f=n.replace(/^[\#\?]/,"").match(/([^=\/\&]+)=([^\&]+)/g),f)for(e=0;e<f.length;e++)o=f[e].match(/([^=]+)=(.*)/),u[o[1]]=t(o[2]);return u}t=t||encodeURIComponent;i=n;u=[];for(r in i)i.hasOwnProperty(r)&&i.hasOwnProperty(r)&&u.push([r,i[r]==="?"?"?":t(i[r])].join("="));return u.join("&")},store:function(){function f(){var t={};try{t=JSON.parse(n.getItem("hello"))||{}}catch(i){}return t}function e(t){n.setItem("hello",JSON.stringify(t))}for(var r=["localStorage","sessionStorage"],t=-1,u="test",n,i;r[++t];)try{n=window[r[t]];n.setItem(u+t,t);n.removeItem(u+t);break}catch(o){n=null}return n||(i=null,n={getItem:function(n){var u,t,r;for(n=n+"=",u=document.cookie.split(";"),t=0;t<u.length;t++)if(r=u[t].replace(/(^\s+|\s+$)/,""),r&&r.indexOf(n)===0)return r.substr(n.length);return i},setItem:function(n,t){i=t;document.cookie=n+"="+t}},i=n.getItem("hello")),function(n,t){var i=f();if(n&&t===undefined)return i[n]||null;if(n&&t===null)try{delete i[n]}catch(r){i[n]=null}else if(n)i[n]=t;else return i;return e(i),i||null}}(),append:function(n,t,i){var u=typeof n=="string"?document.createElement(n):n,r,f;if(typeof t=="object")if("tagName"in t)i=t;else for(r in t)if(t.hasOwnProperty(r))if(typeof t[r]=="object")for(f in t[r])t[r].hasOwnProperty(f)&&(u[r][f]=t[r][f]);else r==="html"?u.innerHTML=t[r]:/^on/.test(r)?u[r]=t[r]:u.setAttribute(r,t[r]);return i==="body"?function e(){document.body?document.body.appendChild(u):setTimeout(e,16)}():typeof i=="object"?i.appendChild(u):typeof i=="string"&&document.getElementsByTagName(i)[0].appendChild(u),u},iframe:function(n){this.append("iframe",{src:n,style:{position:"absolute",left:"-1000px",bottom:0,height:"1px",width:"1px"}},"body")},merge:function(){var n=Array.prototype.slice.call(arguments);return n.unshift({}),this.extend.apply(null,n)},args:function(n,t){var f={},u=0,r=null;for(var i in n)if(n.hasOwnProperty(i))break;if(t.length===1&&typeof t[0]=="object"&&n[i]!="o!")for(i in t[0])if(n.hasOwnProperty(i)&&i in n)return t[0];for(i in n)if(n.hasOwnProperty(i))if(r=typeof t[u],typeof n[i]=="function"&&n[i].test(t[u])||typeof n[i]=="string"&&(n[i].indexOf("s")>-1&&r==="string"||n[i].indexOf("o")>-1&&r==="object"||n[i].indexOf("i")>-1&&r==="number"||n[i].indexOf("a")>-1&&r==="object"||n[i].indexOf("f")>-1&&r==="function"))f[i]=t[u++];else if(typeof n[i]=="string"&&n[i].indexOf("!")>-1)return!1;return f},url:function(n){if(n){if(window.URL&&URL instanceof Function&&URL.length!==0)return new URL(n,window.location);var t=document.createElement("a");return t.href=n,t.cloneNode(!1)}return window.location},diff:function(n,t){return t.filter(function(t){return n.indexOf(t)===-1})},diffKey:function(n,t){var r,i;if(n||!t){r={};for(i in n)i in t||(r[i]=n[i]);return r}return n},unique:function(n){return Array.isArray(n)?n.filter(function(t,i){return n.indexOf(t)===i}):[]},isEmpty:function(n){if(!n)return!0;
1if(Array.isArray(n))return!n.length;if(typeof n=="object")for(var t in n)if(n.hasOwnProperty(t))return!1;return!0},Promise:function(){var t=0,i=1,r=2,n=function(i){if(!(this instanceof n))return new n(i);this.id="Thenable/1.0.6";this.state=t;this.fulfillValue=undefined;this.rejectReason=undefined;this.onFulfilled=[];this.onRejected=[];this.proxy={then:this.then.bind(this)};typeof i=="function"&&i.call(this,this.fulfill.bind(this),this.reject.bind(this))};n.prototype={fulfill:function(n){return u(this,i,"fulfillValue",n)},reject:function(n){return u(this,r,"rejectReason",n)},then:function(t,i){var r=this,u=new n;return r.onFulfilled.push(o(t,u,"fulfill")),r.onRejected.push(o(i,u,"reject")),f(r),u.proxy}};var u=function(n,i,r,u){return n.state===t&&(n.state=i,n[r]=u,f(n)),n},f=function(n){n.state===i?e(n,"onFulfilled",n.fulfillValue):n.state===r&&e(n,"onRejected",n.rejectReason)},e=function(n,t,i){var u,r;n[t].length!==0&&(u=n[t],n[t]=[],r=function(){for(var n=0;n<u.length;n++)u[n](i)},typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick(r):typeof setImmediate=="function"?setImmediate(r):setTimeout(r,0))},o=function(n,t,i){return function(r){if(typeof n!="function")t[i].call(t,r);else{var u;try{u=n(r)}catch(f){t.reject(f);return}s(t,u)}}},s=function(n,t){var r,i;if(n===t||n.proxy===t){n.reject(new TypeError("cannot resolve promise with itself"));return}if(typeof t=="object"&&t!==null||typeof t=="function")try{r=t.then}catch(u){n.reject(u);return}if(typeof r=="function"){i=!1;try{r.call(t,function(r){i||(i=!0,r===t?n.reject(new TypeError("circular thenable chain")):s(n,r))},function(t){i||(i=!0,n.reject(t))})}catch(u){i||n.reject(u)}return}n.fulfill(t)};return n}(),Event:function(){var n=/[\s\,]+/;return this.parent={events:this.events,findEvents:this.findEvents,parent:this.parent,utils:this.utils},this.events={},this.on=function(t,i){var u,r;if(i&&typeof i=="function")for(u=t.split(n),r=0;r<u.length;r++)this.events[u[r]]=[i].concat(this.events[u[r]]||[]);return this},this.off=function(n,t){return this.findEvents(n,function(n,i){t&&this.events[n][i]!==t||(this.events[n][i]=null)}),this},this.emit=function(n){var i=Array.prototype.slice.call(arguments,1),r,t;for(i.push(n),r=function(t,r){i[i.length-1]=t==="*"?n:t;this.events[t][r].apply(this,i)},t=this;t&&t.findEvents;)t.findEvents(n+",*",r),t=t.parent;return this},this.emitAfter=function(){var n=this,t=arguments;return setTimeout(function(){n.emit.apply(n,t)},0),this},this.findEvents=function(t,i){var f=t.split(n),r,u;for(r in this.events)if(this.events.hasOwnProperty(r)&&f.indexOf(r)>-1)for(u=0;u<this.events[r].length;u++)this.events[r][u]&&i.call(this,r,u)},this},globalEvent:function(n,t){return t=t||"_hellojs_"+parseInt(Math.random()*1e12,10).toString(36),window[t]=function(){try{n.apply(this,arguments)&&delete window[t]}catch(i){console.error(i)}},t},popup:function(n,t,i){var f=document.documentElement,e,o,s,h,u,r;return i.height&&i.top===undefined&&(e=window.screenTop!==undefined?window.screenTop:screen.top,o=screen.height||window.innerHeight||f.clientHeight,i.top=parseInt((o-i.height)/2,10)+e),i.width&&i.left===undefined&&(s=window.screenLeft!==undefined?window.screenLeft:screen.left,h=screen.width||window.innerWidth||f.clientWidth,i.left=parseInt((h-i.width)/2,10)+s),u=[],Object.keys(i).forEac
1h(function(n){var t=i[n];u.push(n+(t!==null?"="+t:""))}),navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1&&(n=t+"#oauth_redirect="+encodeURIComponent(encodeURIComponent(n))),r=window.open(n,"_blank",u.join(",")),r&&r.focus&&r.focus(),r},responseHandler:function(n,t){function y(n){return/^https?:/.test(n)}function l(n,t,i){var u=n.callback,f=n.network,e;if(r.store(f,n),!("display"in n)||n.display!=="page"){if(i&&u&&u in i){try{delete n.callback}catch(o){}r.store(f,n);e=JSON.stringify(n);try{a(i,u)(e)}catch(o){}}v()}}function a(n,t){return t.indexOf("_hellojs_")!==0?function(){throw"Could not execute callback "+t;}:n[t]}function v(){if(n.frameElement)t.document.body.removeChild(n.frameElement);else{try{n.close()}catch(i){}n.addEventListener&&n.addEventListener("load",function(){n.close()})}}var r=this,i,u=n.location,f,e,o,s,h,c;if(i=r.param(u.search),i&&i.state&&(i.code||i.oauth_token)){f=JSON.parse(i.state);i.redirect_uri=f.redirect_uri||u.href.replace(/[\?\#].*$/,"");e=r.qs(f.oauth_proxy,i);u.assign(e);return}if(i=r.merge(r.param(u.search||""),r.param(u.hash||"")),i&&"state"in i){try{o=JSON.parse(i.state);r.extend(i,o)}catch(p){s=decodeURIComponent(i.state);try{h=JSON.parse(s);r.extend(i,h)}catch(p){console.error("Could not decode state parameter")}}"access_token"in i&&i.access_token&&i.network?(i.expires_in&&parseInt(i.expires_in,10)!==0||(i.expires_in=0),i.expires_in=parseInt(i.expires_in,10),i.expires=(new Date).getTime()/1e3+(i.expires_in||31536e3),l(i,n,t)):"error"in i&&i.error&&i.network?(i.error={code:i.error,message:i.error_message||i.error_description},l(i,n,t)):i.callback&&i.callback in t&&(c="result"in i&&i.result?JSON.parse(i.result):!1,a(t,i.callback)(c),v());i.page_uri&&y(i.page_uri)&&u.assign(i.page_uri)}else if("oauth_redirect"in i){u.assign(decodeURIComponent(i.oauth_redirect));return}}});hello.utils.Event.call(hello),function(n){var i={},t={};n.on("auth.login, auth.logout",function(t){t&&typeof t=="object"&&t.network&&(i[t.network]=n.utils.store(t.network)||{})});(function r(){var s=(new Date).getTime()/1e3,o=function(t){n.emit("auth."+t,{network:u,authResponse:f})},u,c,h;for(u in n.services)if(n.services.hasOwnProperty(u)){if(!n.services[u].id)continue;var f=n.utils.store(u)||{},l=n.services[u],e=i[u]||{};if(f&&"callback"in f){c=f.callback;try{delete f.callback}catch(a){}n.utils.store(u,f);try{window[c](f)}catch(a){}}if(f&&"expires"in f&&f.expires<s){h=l.refresh||f.refresh_token;h&&(!(u in t)||t[u]<s)?(n.emit("notice",u+" has expired trying to resignin"),n.login(u,{display:"none",force:!1}),t[u]=s+600):h||u in t||(o("expired"),t[u]=!0);continue}else if(e.access_token===f.access_token&&e.expires===f.expires)continue;else!f.access_token&&e.access_token?o("logout"):f.access_token&&!e.access_token?o("login"):f.expires!==e.expires&&o("update");i[u]=f;u in t&&delete t[u]}setTimeout(r,1e3)})()}(hello);hello.api=function(){function v(i){i=i.replace(/\@\{([a-z\_\-]+)(\|.*?)?\}/gi,function(t,i,r){var f=r?r.replace(/^\|/,""):"";return i in n.query?(f=n.query[i],delete n.query[i]):n.data&&i in n.data?(f=n.data[i],delete n.data[i]):r||u.reject(o("missing_attribute","The attribute "+i+" is missing from the request")),f});i.match(/^https?:\/\//)||(i=t.base+i);n.url=i;r.request(n,function(i,f){if(!n.formatResponse){(typeof f=="object"?f.statusCode>=400:typeof i=="object"&&"error"in i)?u.reject(i):u.fulfill(i);return}if(i===!0?i={success:!0}:i||(i={}),n.method==="delete"&&(i=!i||r.isEmpty(i)?{success:!0}:i),t.wrap&&(n.path in t.wrap||"default"in t.wrap)){var o=n.path in t.wrap?n.path:"default",s=(new Date).getTime(),e=t.wrap[o](i,f,n);e&&(i=e)}i&&"paging"in i&&i.paging.next&&(i.paging.next[0]==="?"?i.paging.next=n.path+i.paging.next:i.paging.next+="#"+n.path);!i||"error"in i?u.reject(i):u.fulfill(i)})}var f=this,r=f.utils,o=r.error,u=r.Promise(),n=r.args({path:"s!",query:"o",method:"s",data:"o",timeout:"i",callback:"f"},arguments),c,s,l,t,i,a,e,h;return(n.method=(n.method||"get").toLowerCase(),n.headers=n.headers||{},n.query=n.query||{},(n.method==="get"||n.method==="delete")&&(r.extend(n.query,n.data),n.data={}),c=n.data=n.data||{},u.then(n.callback,n.callback),!n.path)?u.reject(o("invalid_path","Missing the path parameter from the request")):(n.path=n.path.replace(/^\/+/,""),s=(n.path.split(/[\/\:]/,2)||[])[0].toLowerCase(),s in f.services&&(n.network=s,l=new RegExp("^"+s+":?/?"),n.path=n.path.replace(l,"")),n.network=f.settings.default_service=n.network||f.settings.default_service,t=f.services[n.network],!t)?u.reject(o("invalid_network","Could not match the service requested: "+n.network)):(!(n.method in t)||!(n.path in t[n.method])||t[n.method][n.path]!==!1)?(n.oauth_proxy||(n.oauth_proxy=f.settings.oauth_proxy),"proxy"in n||(n.proxy=n.oauth_proxy&&t.oauth&&parseInt(t.oauth.version,10)===1),"timeout"in n||(n.timeout=f.settings.timeout),"formatResponse"in n||(n.formatResponse=!0),n.authResponse=f.getAuthResponse(n.network),n.authResponse&&n.authResponse.access_token&&(n.query.access_token=n.authResponse.access_token),i=n.path,n.options=r.clone(n.query),n.data=r.clone(c),e=t[{"delete":"del"}[n.method]||n.method]||{},n.method==="get"&&(h=i.split(/[\?#]/)[1],h&&(r.extend(n.query,r.param(h)),i=i.replace(/\?.*?(#|$)/,"$1"))),(a=i.match(/#(.+)/,""))?(i=i.split("#")[0],n.path=a[1]):i in e?(n.path=i,i=e[i]):"default"in e&&(i=e["default"]),n.redirect_uri=f.settings.redirect_uri,n.xhr=t.xhr,n.jsonp=t.jsonp,n.form=t.form,typeof i=="function"?i(n,v):v(i),u.proxy):u.reject(o("invalid_path","The provided path is not available on the selected network"))};hello.utils.extend(hello.utils,{request:function(n,t){function u(n,t){var u,r;n.authResponse&&n.authResponse.oauth&&parseInt(n.authResponse.oauth.version,10)===1&&(u=n.query.access_token,delete n.query.access_token,n.proxy=!0);n.data&&(n.method==="get"||n.method==="delete")&&(i.extend(n.query,n.data),n.data=null);
1r=i.qs(n.url,n.query);n.proxy&&(r=i.qs(n.oauth_proxy,{path:r,access_token:u||"",then:n.proxy_response_type||(n.method.toLowerCase()==="get"?"redirect":"proxy"),method:n.method.toLowerCase(),suppress_response_codes:n.suppress_response_codes||!0}));t(r)}var i=this,o=i.error,f,e,r;if(i.isEmpty(n.data)||"FileList"in window||!i.hasBinary(n.data)||(n.xhr=!1,n.jsonp=!1),f=this.request_cors(function(){return n.xhr===undefined||n.xhr&&(typeof n.xhr!="function"||n.xhr(n,n.query))}),f){u(n,function(r){var u=i.xhr(n.method,r,n.headers,n.data,t);u.onprogress=n.onprogress||null;u.upload&&n.onuploadprogress&&(u.upload.onprogress=n.onuploadprogress)});return}if(e=n.query,n.query=i.clone(n.query),n.callbackID=i.globalEvent(),n.jsonp!==!1){if(n.query.callback=n.callbackID,typeof n.jsonp=="function"&&n.jsonp(n,n.query),n.method==="get"){u(n,function(r){i.jsonp(r,t,n.callbackID,n.timeout)});return}n.query=e}if(n.form!==!1&&(n.query.redirect_uri=n.redirect_uri,n.query.state=JSON.stringify({callback:n.callbackID}),typeof n.form=="function"&&(r=n.form(n,n.query)),n.method==="post"&&r!==!1)){u(n,function(u){i.post(u,n.data,r,t,n.callbackID,n.timeout)});return}t(o("invalid_request","There was no mechanism for handling this request"));return},request_cors:function(n){return"withCredentials"in new XMLHttpRequest&&n()},domInstance:function(n,t){var i="HTML"+(n||"").replace(/^[a-z]/,function(n){return n.toUpperCase()})+"Element";return t?window[i]?t instanceof window[i]:window.Element?t instanceof window.Element&&(!n||t.tagName&&t.tagName.toLowerCase()===n):!(t instanceof Object||t instanceof Array||t instanceof String||t instanceof Number)&&t.tagName&&t.tagName.toLowerCase()===n:!1},clone:function(n){var t,i;if(n===null||typeof n!="object"||n instanceof Date||"nodeName"in n||this.isBinary(n)||typeof FormData=="function"&&n instanceof FormData)return n;if(Array.isArray(n))return n.map(this.clone.bind(this));t={};for(i in n)t[i]=this.clone(n[i]);return t},xhr:function(n,t,i,r,u){function c(n){for(var i={},r=/([a-z\-]+):\s?(.*);?/gi,t;t=r.exec(n);)i[t[1]]=t[2];return i}var f=new XMLHttpRequest,s=this.error,h=!1,e,o;if(n==="blob"&&(h=n,n="GET"),n=n.toUpperCase(),f.onload=function(){var t=f.response,i;try{t=JSON.parse(f.responseText)}catch(r){f.status===401&&(t=s("access_denied",f.statusText))}i=c(f.getAllResponseHeaders());i.statusCode=f.status;u(t||(n==="GET"?s("empty_response","Could not get resource"):{}),i)},f.onerror=function(){var n=f.responseText;try{n=JSON.parse(f.responseText)}catch(t){}u(n||s("access_denied","Could not get resource"))},n==="GET"||n==="DELETE")r=null;else if(r&&typeof r!="string"&&!(r instanceof FormData)&&!(r instanceof File)&&!(r instanceof Blob)){o=new FormData;for(e in r)r.hasOwnProperty(e)&&(r[e]instanceof HTMLInputElement?"files"in r[e]&&r[e].files.length>0&&o.append(e,r[e].files[0]):r[e]instanceof Blob?o.append(e,r[e],r.name):o.append(e,r[e]));r=o}if(f.open(n,t,!0),h&&("responseType"in f?f.responseType=h:f.overrideMimeType("text/plain; charset=x-user-defined")),i)for(e in i)f.setRequestHeader(e,i[e]);return f.send(r),f},jsonp:function(n,t,i,r){var u=this,c=u.error,l=0,o=document.getElementsByTagName("head")[0],s,h=c("server_error","server_error"),f=function(){l++||window.setTimeout(function(){t(h);o.removeChild(e)},0)},e;i=u.globalEvent(function(n){return h=n,!0},i);n=n.replace(new RegExp("=\\?(&|$)"),"="+i+"$1");e=u.append("script",{id:i,name:i,src:n,async:!0,onload:f,onerror:f,onreadystatechange:function(){/loaded|complete/i.test(this.readyState)&&f()}});window.navigator.userAgent.toLowerCase().indexOf("opera")>-1&&(s=u.append("script",{text:"document.getElementById('"+i+"').onerror();"}),e.async=!1);r&&window.setTimeout(function(){h=c("timeout","timeout");f()},r);o.appendChild(e);s&&o.appendChild(s)},post:function(n,t,i,r,u,f){var c=this,k=c.error,v=document,e=null,y=[],p,s=0,o=null,d=0,b=function(n){d++||r(n)},l,h,w,a;c.globalEvent(b,u);try{l=v.createElement('<iframe name="'+u+'">')}catch(g){l=v.createElement("iframe")}if(l.name=u,l.id=u,l.style.display="none",i&&i.callbackonload&&(l.onload=function(){b({response:"posted",message:"Content was posted"})}),f&&setTimeout(function(){b(k("timeout","The post operation timed out"))},f),v.body.appendChild(l),c.domInstance("form",t)){for(e=t.form,s=0;s<e.elements.length;s++)e.elements[s]!==t&&e.elements[s].setAttribute("disabled",!0);t=e}if(c.domInstance("form",t))for(e=t,s=0;s<e.elements.length;s++)e.elements[s].disabled||e.elements[s].type!=="file"||(e.encoding=e.enctype="multipart/form-data",e.elements[s].setAttribute("name","file"));else{for(o in t)t.hasOwnProperty(o)&&c.domInstance("input",t[o])&&t[o].type==="file"&&(e=t[o].form,e.encoding=e.enctype="multipart/form-data");e||(e=v.createElement("form"),v.body.appendChild(e),p=e);for(o in t)if(t.hasOwnProperty(o))if(w=c.domInstance("input",t[o])||c.domInstance("textArea",t[o])||c.domInstance("select",t[o]),w&&t[o].form===e)w&&t[o].name!==o&&(t[o].setAttribute("name",o),t[o].name=o);else{if(a=e.elements[o],h)for(a instanceof NodeList||(a=[a]),s=0;s<a.length;s++)a[s].parentNode.removeChild(a[s]);h=v.createElement("input");h.setAttribute("type","hidden");h.setAttribute("name",o);h.value=w?t[o].value:c.domInstance(null,t[o])?t[o].innerHTML||t[o].innerText:t[o];e.appendChild(h)}for(s=0;s<e.elements.length;s++)h=e.elements[s],h.name in t||h.getAttribute("disabled")===!0||(h.setAttribute("disabled",!0),y.push(h))}e.setAttribute("method","POST");e.setAttribute("target",u);e.target=u;e.setAttribute("action",n);setTimeout(function(){e.submit();setTimeout(function(){try{p&&p.parentNode.removeChild(p)}catch(t){try{console.error("HelloJS: could not remove iframe")}catch(i){}}for(var n=0;n<y.length;n++)y[n]&&(y[n].setAttribute("disabled",!1),y[n].disabled=!1)},0)},100)},hasBinary:function(n){for(var t in n)if(n.hasOwnProperty(t)&&this.isBinary(n[t]))return!0;return!1},isBinary:function(n){return n instanceof Object&&(this.domInstance("input",n)&&n.type==="file"||"FileList"in window&&n instanceof window.FileList||"File"in window&&n instanceof window.File||"Blob"in window&&n instanceof window.Blob)},toBlob:function(n){var u=/^data\:([^;,]+(\;charset=[^;,]+)?)(\;base64)?,/i,f=n.match(u),i,r,t;if(!f)return n;for(i=atob(n.replace(u,"")),r=[],t=0;t<i.length;t++)r.push(i.charCodeAt(t));return new Blob([new Uint8Array(r)],{type:f[1]})}}),function(n){var i=n.api,t=n.utils;t.extend(t,{dataToJSON:function(n){var u=this,r=window,t=n.data,i;if(u.domInstance("form",t)?t=u.nodeListToJSON(t.elements):"NodeList"in r&&t instanceof NodeList?t=u.nodeListToJSON(t):u.domInstance("input",t)&&(t=u.nodeListToJSON([t])),("File"in r&&t instanceof r.File||"Blob"in r&&t instanceof r.Blob||"FileList"in r&&t instanceof r.FileList)&&(t={file:t}),!("FormData"in r&&t instanceof r.FormData))for(i in t)if(t.hasOwnProperty(i))if("FileList"in r&&t[i]instanceof r.FileList)t[i].length===1&&(t[i]=t[i][0]);else if(u.domInstance("input",t[i])&&t[i].type==="file")continue;else u.domInstance("input",t[i])||u.domInstance("select",t[i])||u.domInstance("textArea",t[i])?t[i]=t[i].value:u.domInstance(null,t[i])&&(t[i]=t[i].innerHTML||t[i].innerText);return n.data=t,t},nodeListToJSON:function(n){for(var t,r={},i=0;i<n.length;i++)(t=n[i],!t.disabled&&t.name)&&(r[t.name]=t.type==="file"?t:t.value||t.innerHTML);return r}});n.api=function(){var n=t.args({path:"s!",method:"s",data:"o",timeout:"i",callback:"f"},arguments);return n.data&&t.dataToJSON(n),i.call(this,n)}}(hello);hello.utils.responseHandler(window,window.opener||window.parent);typeof chrome=="object"&&typeof chrome.identity=="object"&&chrome.identity.launchWebAuthFlow&&function(){function t(n,i){var r={closed:!1}
1;return chrome.identity.launchWebAuthFlow({url:n,interactive:i},function(n){if(n===undefined){r.closed=!0;return}var i=hello.utils.url(n),u={location:{assign:function(n){t(n,!1)},search:i.search,hash:i.hash,href:i.href},close:function(){}};hello.utils.responseHandler(u,window)}),r}hello.utils.popup=function(n){return t(n,!0)};hello.utils.iframe=function(n){t(n,!1)};hello.utils.request_cors=function(n){return n(),!0};var n={};chrome.storage.local.get("hello",function(t){n=t.hello||{}});hello.utils.store=function(t,i){return arguments.length===0?n:arguments.length===1?n[t]||null:i?(n[t]=i,chrome.storage.local.set({hello:n}),i):i===null?(delete n[t],chrome.storage.local.set({hello:n}),null):void 0}}(),function(){if(/^file:\/{3}[^\/]/.test(window.location.href)&&window.cordova){hello.utils.iframe=function(n,t){hello.utils.popup(n,t,{hidden:"yes"})};var n=hello.utils.popup;hello.utils.popup=function(t,i,r){var u=n.call(this,t,i,r),f,e;try{u&&u.addEventListener&&(f=hello.utils.url(i),e=f.origin||f.protocol+"//"+f.hostname,u.addEventListener("loadstart",function(n){var i=n.url,t,r;i.indexOf(e)===0&&(t=hello.utils.url(i),r={location:{assign:function(n){u.executeScript({code:'window.location.href = "'+n+';"'})},search:t.search,hash:t.hash,href:t.href},close:function(){if(u.close){u.close();try{u.closed=!0}catch(n){}}}},hello.utils.responseHandler(r,window))}))}catch(o){}return u}}}(),function(n){function r(n){n&&"error"in n&&(n.error={code:"server_error",message:n.error.message||n.error})}function u(t,i,r){if(typeof t=="object"&&(typeof Blob=="undefined"||!(t instanceof Blob))&&(typeof ArrayBuffer=="undefined"||!(t instanceof ArrayBuffer))&&!("error"in t)){var u=(t.root!=="app_folder"?t.root:"")+t.path.replace(/\&/g,"%26");u=u.replace(/^\//,"");t.thumb_exists&&(t.thumbnail=r.oauth_proxy+"?path="+encodeURIComponent("https://api-content.dropbox.com/1/thumbnails/auto/"+u+"?format=jpeg&size=m")+"&access_token="+r.options.access_token);t.type=t.is_dir?"folder":t.mime_type;t.name=t.path.replace(/.*\//g,"");t.is_dir?t.files=u.replace(/^\//,""):(t.downloadLink=n.settings.oauth_proxy+"?path="+encodeURIComponent("https://api-content.dropbox.com/1/files/auto/"+u)+"&access_token="+r.options.access_token,t.file="https://api-content.dropbox.com/1/files/auto/"+u);t.id||(t.id=t.path.replace(/^\//,""))}}function t(n){return function(t,i){delete t.query.limit;i(n)}}var f={version:"1.0",auth:"https://www.dropbox.com/1/oauth/authorize",request:"https://api.dropbox.com/1/oauth/request_token",token:"https://api.dropbox.com/1/oauth/access_token"},i={version:2,auth:"https://www.dropbox.com/1/oauth2/authorize",grant:"https://api.dropbox.com/1/oauth2/token"};n.init({dropbox:{name:"Dropbox",oauth:i,login:function(t){t.qs.scope="";var r=decodeURIComponent(t.qs.redirect_uri);n.services.dropbox.oauth=r.indexOf("http:")===0&&r.indexOf("http://localhost/")!==0?f:i;t.options.popup.width=1e3;t.options.popup.height=1e3},base:"https://api.dropbox.com/1/",root:"sandbox",get:{me:"account/info","me/files":t("metadata/auto/@{parent|}"),"me/folder":t("metadata/auto/@{id}"),"me/folders":t("metadata/auto/"),"default":function(n,t){n.path.match("https://api-content.dropbox.com/1/files/")&&(n.method="blob");t(n.path)}},post:{"me/files":function(t,i){var r=t.data.parent,u=t.data.name;t.data={file:t.data.file};typeof t.data.file=="string"&&(t.data.file=n.utils.toBlob(t.data.file));i("https://api-content.dropbox.com/1/files_put/auto/"+r+"/"+u)},"me/folders":function(t,i){var r=t.data.name;t.data={};i("fileops/create_folder?root=@{root|sandbox}&"+n.utils.param({path:r}))}},del:{"me/files":"fileops/delete?root=@{root|sandbox}&path=@{id}","me/folder":"fileops/delete?root=@{root|sandbox}&path=@{id}"},wrap:{me:function(n){if(r(n),!n.uid)return n;n.name=n.display_name;var t=n.name.split(" ");return n.first_name=t.shift(),n.last_name=t.join(" "),n.id=n.uid,delete n.uid,delete n.display_name,n},"default":function(n,t,i){return r(n),n.is_dir&&n.contents&&(n.data=n.contents,delete n.contents,n.data.forEach(function(r){r.root=n.root;u(r,t,i)})),u(n,t,i),n.is_deleted&&(n.success=!0),n}},xhr:function(n){if(n.data&&n.data.file){var t=n.data.file;t&&(n.data=t.files?t.files[0]:t)}return n.method==="delete"&&(n.method="post"),!0},form:function(n,t){delete t.state;delete t.redirect_uri}}})}(hello),function(n){function f(n){return n.id&&(n.thumbnail=n.picture="https://graph.facebook.com/"+n.id+"/picture"),n}function r(n){return"data"in n&&n.data.forEach(f),n}function i(n,i,r){var u,f;return typeof n=="boolean"&&(n={success:n}),n&&"data"in n&&(u=r.query.access_token,n.data instanceof Array||(f=n.data,delete n.data,n.data=[f]),n.data.forEach(function(n){n.picture&&(n.thumbnail=n.picture);n.pictures=(n.images||[]).sort(function(n,t){return n.width-t.width});
1n.cover_photo&&n.cover_photo.id&&(n.thumbnail=t+n.cover_photo.id+"/picture?access_token="+u);n.type==="album"&&(n.files=n.photos=t+n.id+"/photos");n.can_upload&&(n.upload_location=t+n.id+"/photos")})),n}var u="v2.9",t;n.init({facebook:{name:"Facebook",oauth:{version:2,auth:"https://www.facebook.com/"+u+"/dialog/oauth/",grant:"https://graph.facebook.com/oauth/access_token"},scope:{basic:"public_profile",email:"email",share:"user_posts",birthday:"user_birthday",events:"user_events",photos:"user_photos",videos:"user_videos",friends:"user_friends",files:"user_photos,user_videos",publish_files:"user_photos,user_videos,publish_actions",publish:"publish_actions",offline_access:""},refresh:!1,login:function(n){n.options.force&&(n.qs.auth_type="reauthenticate");n.qs.display=n.options.display||"popup"},logout:function(t,i){var u=n.utils.globalEvent(t),f=encodeURIComponent(n.settings.redirect_uri+"?"+n.utils.param({callback:u,result:JSON.stringify({force:!0}),state:"{}"})),r=(i.authResponse||{}).access_token;return n.utils.iframe("https://www.facebook.com/logout.php?next="+f+"&access_token="+r),r?void 0:!1},base:"https://graph.facebook.com/"+u+"/",get:{me:"me?fields=email,first_name,last_name,name,timezone,verified","me/friends":"me/friends","me/following":"me/friends","me/followers":"me/friends","me/share":"me/feed","me/like":"me/likes","me/files":"me/albums","me/albums":"me/albums?fields=cover_photo,name","me/album":"@{id}/photos?fields=picture","me/photos":"me/photos","me/photo":"@{id}","friend/albums":"@{id}/albums","friend/photos":"@{id}/photos"},post:{"me/share":"me/feed","me/photo":"@{id}"},wrap:{me:f,"me/friends":r,"me/following":r,"me/followers":r,"me/albums":i,"me/photos":i,"me/files":i,"default":i},xhr:function(t,i){return(t.method==="get"||t.method==="post")&&(i.suppress_response_codes=!0),t.method==="post"&&t.data&&typeof t.data.file=="string"&&(t.data.file=n.utils.toBlob(t.data.file)),!0},jsonp:function(t,i){var r=t.method;r==="get"||n.utils.hasBinary(t.data)?t.method==="delete"&&(i.method="delete",t.method="post"):(t.data.method=r,t.method="get")},form:function(){return{callbackonload:!0}}}});t="https://graph.facebook.com/"}(hello),function(n){function s(t,i,r){var f=(r?"":"flickr:")+"?method="+t+"&api_key="+n.services.flickr.id+"&format=json";for(var u in i)i.hasOwnProperty(u)&&(f+="&"+u+"="+i[u]);return f}function c(t){var i=n.getAuthResponse("flickr");t(i&&i.user_nsid?i.user_nsid:null)}function t(n,t){return t||(t={}),function(i,r){c(function(i){t.user_id=i;r(s(n,t,!0))})}}function f(n,t){var i="https://www.flickr.com/images/buddyicon.gif";return n.nsid&&n.iconserver&&n.iconfarm&&(i="https://farm"+n.iconfarm+".staticflickr.com/"+n.iconserver+"/buddyicons/"+n.nsid+(t?"_"+t:"")+".jpg"),i}function r(n,t,i,r,u){return u=u?"_"+u:"","https://farm"+t+".staticflickr.com/"+i+"/"+n+"_"+r+u+".jpg"}function i(n){n&&n.stat&&n.stat.toLowerCase()!="ok"&&(n.error={code:"invalid_request",message:n.message})}function h(n){var f,i,t;if(n.photoset||n.photos)for(f=("photoset"in n)?"photoset":"photos",n=u(n,f),o(n),n.data=n.photo,delete n.photo,i=0;i<n.data.length;i++)t=n.data[i],t.name=t.title,t.picture=r(t.id,t.farm,t.server,t.secret,""),t.pictures=l(t.id,t.farm,t.server,t.secret),t.source=r(t.id,t.farm,t.server,t.secret,"b"),t.thumbnail=r(t.id,t.farm,t.server,t.secret,"m");return n}function l(n,t,i,u){return[{id:"t",max:100},{id:"m",max:240},{id:"n",max:320},{id:"",max:500},{id:"z",max:640},{id:"c",max:800},{id:"b",max:1024},{id:"h",max:1600},{id:"k",max:2048},{id:"o",max:2048}].map(function(f){return{source:r(n,t,i,u,f.id),width:f.max,height:f.max}})}function u(n,t){return t in n?n=n[t]:"error"in n||(n.error={code:"invalid_request",message:n.message||"Failed to get data from Flickr"}),n}function e(n){var r,t;if(i(n),n.contacts)for(n=u(n,"contacts"),o(n),n.data=n.contact,delete n.contact,r=0;r<n.data.length;r++)t=n.data[r],t.id=t.nsid,t.name=t.realname||t.username,t.thumbnail=f(t,"m");return n}function o(n){n.page&&n.pages&&n.page!==n.pages&&(n.paging={next:"?page="+ ++n.page})}n.init({flickr:{name:"Flickr",oauth:{version:"1.0a",auth:"https://www.flickr.com/services/oauth/authorize?perms=read",request:"https://www.flickr.com/services/oauth/request_token",token:"https://www.flickr.com/services/oauth/access_token"},base:"https://api.flickr.com/services/rest",get:{me:t("flickr.people.getInfo"),"me/friends":t("flickr.contacts.getList",{per_page:"@{limit|50}"}),"me/following":t("flickr.contacts.getList",{per_page:"@{limit|50}"}),"me/followers":t("flickr.contacts.getList",{per_page:"@{limit|50}"}),"me/albums":t("flickr.photosets.getList",{per_page:"@{limit|50}"}),"me/album":t("flickr.photosets.getPhotos",{photoset_id:"@{id}"}
1),"me/photos":t("flickr.people.getPhotos",{per_page:"@{limit|50}"})},wrap:{me:function(n){if(i(n),n=u(n,"person"),n.id){if(n.realname){n.name=n.realname._content;var t=n.name.split(" ");n.first_name=t.shift();n.last_name=t.join(" ")}n.thumbnail=f(n,"l");n.picture=f(n,"l")}return n},"me/friends":e,"me/followers":e,"me/following":e,"me/albums":function(n){return i(n),n=u(n,"photosets"),o(n),n.photoset&&(n.data=n.photoset,n.data.forEach(function(n){n.name=n.title._content;n.photos="https://api.flickr.com/services/rest"+s("flickr.photosets.getPhotos",{photoset_id:n.id},!0)}),delete n.photoset),n},"me/photos":function(n){return i(n),h(n)},"default":function(n){return i(n),h(n)}},xhr:!1,jsonp:function(n,t){n.method=="get"&&(delete t.callback,t.jsoncallback=n.callbackID)}}})}(hello),function(n){function t(n){n.meta&&(n.meta.code===400||n.meta.code===401)&&(n.error={code:"access_denied",message:n.meta.errorDetail})}function i(n){n&&n.id&&(n.thumbnail=n.photo.prefix+"100x100"+n.photo.suffix,n.name=n.firstName+" "+n.lastName,n.first_name=n.firstName,n.last_name=n.lastName,n.contact&&n.contact.email&&(n.email=n.contact.email))}function r(n,t){var i=t.access_token;return delete t.access_token,t.oauth_token=i,t.v=20121125,!0}n.init({foursquare:{name:"Foursquare",oauth:{version:2,auth:"https://foursquare.com/oauth2/authenticate",grant:"https://foursquare.com/oauth2/access_token"},refresh:!0,base:"https://api.foursquare.com/v2/",get:{me:"users/self","me/friends":"users/self/friends","me/followers":"users/self/friends","me/following":"users/self/friends"},wrap:{me:function(n){return t(n),n&&n.response&&(n=n.response.user,i(n)),n},"default":function(n){return t(n),n&&"response"in n&&"friends"in n.response&&"items"in n.response.friends&&(n.data=n.response.friends.items,n.data.forEach(i),delete n.response),n}},xhr:r,jsonp:r}})}(hello),function(n){function t(n,t){var i=t?t.statusCode:n&&"meta"in n&&"status"in n.meta&&n.meta.status;(i===401||i===403)&&(n.error={code:"access_denied",message:n.message||(n.data?n.data.message:"Could not get response")},delete n.message)}function i(n){n.id&&(n.thumbnail=n.picture=n.avatar_url,n.name=n.login)}function r(n,t){if(n.data&&n.data.length&&t&&t.Link){var i=t.Link.match(/<(.*?)>;\s*rel=\"next\"/);i&&(n.paging={next:i[1]})}}n.init({github:{name:"GitHub",oauth:{version:2,auth:"https://github.com/login/oauth/authorize",grant:"https://github.com/login/oauth/access_token",response_type:"code"},scope:{email:"user:email"},base:"https://api.github.com/",get:{me:"user","me/friends":"user/following?per_page=@{limit|100}","me/following":"user/following?per_page=@{limit|100}","me/followers":"user/followers?per_page=@{limit|100}","me/like":"user/starred?per_page=@{limit|100}"},wrap:{me:function(n,r){return t(n,r),i(n),n},"default":function(n,u,f){return t(n,u),Array.isArray(n)&&(n={data:n}),n.data&&(r(n,u,f),n.data.forEach(i)),n}},xhr:function(n){return n.method!=="get"&&n.data&&(n.headers=n.headers||{},n.headers["Content-Type"]="application/json",typeof n.data=="object"&&(n.data=JSON.stringify(n.data))),!0}}})}(hello),function(n){function r(n){return parseInt(n,10)}function o(n){return t(n),n.data=n.items,delete n.items,n}function s(n){if(!n.error)return n.name||(n.name=n.title||n.message),n.picture||(n.picture=n.thumbnailLink),n.thumbnail||(n.thumbnail=n.thumbnailLink),n.mimeType==="application/vnd.google-apps.folder"&&(n.type="folder",n.files="https://www.googleapis.com/drive/v2/files?q=%22"+n.id+"%22+in+parents"),n}function u(n){return{source:n.url,width:n.width,height:n.height}}function a(n){return"feed"in n&&(n.data="entry"in n.feed?n.feed.entry.map(e):[],delete n.feed),n}function h(n){if(t(n),"feed"in n&&"entry"in n.feed)n.data=n.feed.entry.map(e),delete n.feed;else{if("entry"in n)return e(n.entry);"items"in n?(n.data=n.items.map(s),delete n.items):s(n)}return n}function c(n){n.name=n.displayName||n.name;n.picture=n.picture||(n.image?n.image.url:null);n.thumbnail=n.picture}function f(n,i,r){var s,o,e,u,f;if(t(n),s=[],"feed"in n&&"entry"in n.feed){for(o=r.query.access_token,e=0;e<n.feed.entry.length;e++)u=n.feed.entry[e],u.id=u.id.$t,u.name=u.title.$t,delete u.title,u.gd$email&&(u.email=u.gd$email&&u.gd$email.length>0?u.gd$email[0].address:null,u.emails=u.gd$email,delete u.gd$email),u.updated&&(u.updated=u.updated.$t),u.link&&(f=u.link.length>0?u.link[0].href:null,f&&u.link[0].gd$etag&&(f+=(f.indexOf("?")>-1?"&":"?")+"access_token="+o,u.picture=f,u.thumbnail=f),delete u.link),u.category&&delete u.category;n.data=n.feed.entry;delete n.feed}return n}function e(n){var r=n.media$group,e=r.media$content.length?r.media$content[0]:{}
1,s=r.media$content||[],h=r.media$thumbnail||[],c=s.concat(h).map(u).sort(function(n,t){return n.width-t.width}),i=0,t,f={id:n.id.$t,name:n.title.$t,description:n.summary.$t,updated_time:n.updated.$t,created_time:n.published.$t,picture:e?e.url:null,pictures:c,images:[],thumbnail:e?e.url:null,width:e.width,height:e.height},o;if("link"in n)for(i=0;i<n.link.length;i++)if(o=n.link[i],o.rel.match(/\#feed$/)){f.upload_location=f.files=f.photos=o.href;break}if("category"in n&&n.category.length)for(t=n.category,i=0;i<t.length;i++)t[i].scheme&&t[i].scheme.match(/\#kind$/)&&(f.type=t[i].term.replace(/^.*?\#/,""));return"media$thumbnail"in r&&r.media$thumbnail.length&&(t=r.media$thumbnail,f.thumbnail=t[0].url,f.images=t.map(u)),t=r.media$content,t&&t.length&&f.images.push(u(t[0])),f}function t(n){if("feed"in n&&n.feed.openSearch$itemsPerPage){var t=r(n.feed.openSearch$itemsPerPage.$t),i=r(n.feed.openSearch$startIndex.$t),u=r(n.feed.openSearch$totalResults.$t);i+t<u&&(n.paging={next:"?start="+(i+t)})}else"nextPageToken"in n&&(n.paging={next:"?pageToken="+n.nextPageToken})}function v(){function s(t){var i=new FileReader;i.onload=function(i){f(btoa(i.target.result),t.type+n+"Content-Transfer-Encoding: base64")};i.readAsBinaryString(t)}function f(u,f){t.push(n+"Content-Type: "+f+n+n+u);i--;r()}var t=[],e=(Math.random()*1e10).toString(32),i=0,n="\r\n",o=n+"--"+e,r=function(){},u=/^data\:([^;,]+(\;charset=[^;,]+)?)(\;base64)?,/i;this.append=function(t,r){var o,e,h;for(typeof t!="string"&&("length"in Object(t))||(t=[t]),o=0;o<t.length;o++)i++,e=t[o],typeof File!="undefined"&&e instanceof File||typeof Blob!="undefined"&&e instanceof Blob?s(e):typeof e=="string"&&e.match(u)?(h=e.match(u),f(e.replace(u,""),h[1]+n+"Content-Transfer-Encoding: base64")):f(e,r)};this.onready=function(n){r=function(){i===0&&(t.unshift(""),t.push("--"),n(t.join(o),e),t=[])};r()}}function l(n,t){var r={},i,u;if(n.data&&typeof HTMLInputElement!="undefined"&&n.data instanceof HTMLInputElement&&(n.data={file:n.data}),!n.data.name&&Object(Object(n.data.file).files).length&&n.method==="post"&&(n.data.name=n.data.file.files[0].name),n.method==="post"?n.data={title:n.data.name,parents:[{id:n.data.parent||"root"}],file:n.data.file}:(r=n.data,n.data={},r.parent&&(n.data.parents=[{id:n.data.parent||"root"}]),r.file&&(n.data.file=r.file),r.name&&(n.data.title=r.name)),"file"in n.data&&(i=n.data.file,delete n.data.file,typeof i=="object"&&"files"in i&&(i=i.files),!i||!i.length)){t({error:{code:"request_invalid",message:"There were no files attached with this request to upload"}});return}u=new v;u.append(JSON.stringify(n.data),"application/json");i&&u.append(i);u.onready(function(i,u){n.headers["content-type"]='multipart/related; boundary="'+u+'"';n.data=i;t("upload/drive/v2/files"+(r.id?"/"+r.id:"")+"?uploadType=multipart")})}function y(n){if(typeof n.data=="object")try{n.data=JSON.stringify(n.data);n.headers["content-type"]="application/json"}catch(t){}}var i="https://www.google.com/m8/feeds/contacts/default/full?v=3.0&alt=json&max-results=@{limit|1000}&start-index=@{start|1}";n.init({google:{name:"Google Sign-In",oauth:{version:2,auth:"https://accounts.google.com/o/oauth2/v2/auth",grant:"https://www.googleapis.com/oauth2/v4/token"},scope:{basic:"openid profile",email:"email",birthday:"",events:"",photos:"https://picasaweb.google.com/data/",videos:"http://gdata.youtube.com",files:"https://www.googleapis.com/auth/drive.readonly",publish:"",publish_files:"https://www.googleapis.com/auth/drive",share:"",create_event:"",offline_access:""},scope_delim:" ",login:function(n){n.qs.response_type==="code"?n.qs.access_type="offline":n.qs.response_type.indexOf("id_token")>-1&&(n.qs.nonce=parseInt(Math.random()*1e12,10).toString(36));n.options.force&&(n.qs.approval_prompt="force")},base:"https://www.googleapis.com/",get:{me:"oauth2/v3/userinfo?alt=json","me/following":i,"me/followers":i,"me/contacts":i,"me/albums":"https://picasaweb.google.com/data/feed/api/user/default?alt=json&max-results=@{limit|100}&start-index=@{start|1}","me/album":function(n,t){var i=n.query.id;delete n.query.id;t(i.replace("/entry/","/feed/"))},"me/photos":"https://picasaweb.google.com/data/feed/api/user/default?alt=json&kind=photo&max-results=@{limit|100}&start-index=@{start|1}","me/file":"drive/v2/files/@{id}","me/files":"drive/v2/files?q=%22@{parent|root}%22+in+parents+and+trashed=false&maxResults=@{limit|100}","me/folders":"drive/v2/files?q=%22@{id|root}%22+in+parents+and+mimeType+=+%22application/vnd.google-apps.folder%22+and+trashed=false&maxResults=@{limit|100}","me/folder":"drive/v2/files?q=%22@{id|root}%22+in+parents+and+trashed=false&maxResults=@{limit|100}"},post:{"me/files":l,"me/folders":function(n,t){n.data={title:n.data.name,parents:[{id:n.data.parent||"root"}],mimeType:"application/vnd.google-apps.folder"};t("drive/v2/files")}},put:{"me/files":l},del:{"me/files":"drive/v2/files/@{id}","me/folder":"drive/v2/files/@{id}"},patch:{"me/file":"drive/v2/files/@{id}"},wrap:{me:function(n){return n.sub&&(n.id=n.sub),n.id&&(n.last_name=n.family_name||(n.name?n.name.familyName:null),n.first_name=n.given_name||(n.name?n.name.givenName:null),n.emails&&n.emails.length&&(n.email=n.emails[0].value),
1c(n)),n},"me/friends":function(n){return n.items&&(t(n),n.data=n.items,n.data.forEach(c),delete n.items),n},"me/contacts":f,"me/followers":f,"me/following":f,"me/share":o,"me/feed":o,"me/albums":h,"me/photos":a,"default":h},xhr:function(t){return t.method==="post"||t.method==="put"?y(t):t.method==="patch"&&(n.utils.extend(t.query,t.data),t.data=null),!0},form:!1}})}(hello),function(n){function u(n){return{source:n.url,width:n.width,height:n.height}}function t(n){return typeof n=="string"?{error:{code:"invalid_request",message:n}}:(n&&"meta"in n&&"error_type"in n.meta&&(n.error={code:n.meta.error_type,message:n.meta.error_message}),n)}function i(n){return r(n),n&&"data"in n&&n.data.forEach(f),n}function f(n){n.id&&(n.thumbnail=n.profile_picture,n.name=n.full_name||n.username)}function r(n){"pagination"in n&&(n.paging={next:n.pagination.next_url},delete n.pagination)}n.init({instagram:{name:"Instagram",oauth:{version:2,auth:"https://instagram.com/oauth/authorize/",grant:"https://api.instagram.com/oauth/access_token"},refresh:!0,scope:{basic:"basic",photos:"",friends:"relationships",publish:"likes comments",email:"",share:"",publish_files:"",files:"",videos:"",offline_access:""},scope_delim:" ",base:"https://api.instagram.com/v1/",get:{me:"users/self","me/feed":"users/self/feed?count=@{limit|100}","me/photos":"users/self/media/recent?min_id=0&count=@{limit|100}","me/friends":"users/self/follows?count=@{limit|100}","me/following":"users/self/follows?count=@{limit|100}","me/followers":"users/self/followed-by?count=@{limit|100}","friend/photos":"users/@{id}/media/recent?min_id=0&count=@{limit|100}"},post:{"me/like":function(n,t){var i=n.data.id;n.data={};t("media/"+i+"/likes")}},del:{"me/like":"media/@{id}/likes"},wrap:{me:function(n){return t(n),"data"in n&&(n.id=n.data.id,n.thumbnail=n.data.profile_picture,n.name=n.data.full_name||n.data.username),n},"me/friends":i,"me/following":i,"me/followers":i,"me/photos":function(n){return t(n),r(n),"data"in n&&(n.data=n.data.filter(function(n){return n.type==="image"}),n.data.forEach(function(n){n.name=n.caption?n.caption.text:null;n.thumbnail=n.images.thumbnail.url;n.picture=n.images.standard_resolution.url;n.pictures=Object.keys(n.images).map(function(t){var i=n.images[t];return u(i)}).sort(function(n,t){return n.width-t.width})})),n},"default":function(n){return n=t(n),r(n),n}},xhr:function(n){var t=n.method,i=t!=="get";return i&&((t==="post"||t==="put")&&n.query.access_token&&(n.data.access_token=n.query.access_token,delete n.query.access_token),n.proxy=i),i},form:!1}})}(hello),function(n){function t(n,t){var i,u;return n&&"Message"in n&&(u=n.Message,delete n.Message,"ErrorCode"in n?(i=n.ErrorCode,delete n.ErrorCode):i=r(t),n.error={code:i,message:u,details:n}),n}function i(n,t){var i=t.access_token;return delete t.access_token,n.headers.Authorization="Bearer "+i,n.method!=="get"&&n.data&&(n.headers["Content-Type"]="application/json",typeof n.data=="object"&&(n.data=JSON.stringify(n.data))),n.method==="put"&&(n.method="patch"),!0}function r(n){switch(n.statusCode){case 400:return"invalid_request";case 403:return"stale_token";case 401:return"invalid_token";case 500:return"server_error";default:return"server_error"}}n.init({joinme:{name:"join.me",oauth:{version:2,auth:"https://secure.join.me/api/public/v1/auth/oauth2",grant:"https://secure.join.me/api/public/v1/auth/oauth2"},refresh:!1,scope:{basic:"user_info",user:"user_info",scheduler:"scheduler",start:"start_meeting",email:"",friends:"",share:"",publish:"",photos:"",publish_files:"",files:"",videos:"",offline_access:""},scope_delim:" ",login:function(n){n.options.popup.width=400;n.options.popup.height=700},base:"https://api.join.me/v1/",get:{me:"user",meetings:"meetings","meetings/info":"meetings/@{id}"},post:{"meetings/start/adhoc":function(n,t){t("meetings/start")},"meetings/start/scheduled":function(n,t){var i=n.data.meetingId;n.data={};t("meetings/"+i+"/start")},"meetings/schedule":function(n,t){t("meetings")}},patch:{"meetings/update":function(n,t){t("meetings/"+n.data.meetingId)}},del:{"meetings/delete":"meetings/@{id}"},wrap:{me:function(n,i){return(t(n,i),!n.email)?n:(n.name=n.fullName,n.first_name=n.name.split(" ")[0],n.last_name=n.name.split(" ")[1],n.id=n.email,n
1)},"default":function(n,i){return t(n,i),n}},xhr:i}})}(hello),function(n){function t(n){n&&"errorCode"in n&&(n.error={code:n.status,message:n.message})}function i(n){if(!n.error)return n.first_name=n.firstName,n.last_name=n.lastName,n.name=n.formattedName||n.first_name+" "+n.last_name,n.thumbnail=n.pictureUrl,n.email=n.emailAddress,n}function r(n){return t(n),u(n),n.values&&(n.data=n.values.map(i),delete n.values),n}function u(n){"_count"in n&&"_start"in n&&n._count+n._start<n._total&&(n.paging={next:"?start="+(n._start+n._count)+"&count="+n._count})}function o(n,t){JSON.stringify(n)==="{}"&&t.statusCode===200&&(n.success=!0)}function f(n){n.access_token&&(n.oauth2_access_token=n.access_token,delete n.access_token)}function e(n,t){n.headers["x-li-format"]="json";var i=n.data.id;n.data=(n.method!=="delete").toString();n.method="put";t("people/~/network/updates/key="+i+"/is-liked")}n.init({linkedin:{oauth:{version:2,response_type:"code",auth:"https://www.linkedin.com/uas/oauth2/authorization",grant:"https://www.linkedin.com/uas/oauth2/accessToken"},refresh:!0,scope:{basic:"r_basicprofile",email:"r_emailaddress",files:"",friends:"",photos:"",publish:"w_share",publish_files:"w_share",share:"",videos:"",offline_access:""},scope_delim:" ",base:"https://api.linkedin.com/v1/",get:{me:"people/~:(picture-url,first-name,last-name,id,formatted-name,email-address)","me/share":"people/~/network/updates?count=@{limit|250}"},post:{"me/share":function(n,t){var i={visibility:{code:"anyone"}};n.data.id?i.attribution={share:{id:n.data.id}}:(i.comment=n.data.message,n.data.picture&&n.data.link&&(i.content={"submitted-url":n.data.link,"submitted-image-url":n.data.picture}));n.data=JSON.stringify(i);t("people/~/shares?format=json")},"me/like":e},del:{"me/like":e},wrap:{me:function(n){return t(n),i(n),n},"me/friends":r,"me/following":r,"me/followers":r,"me/share":function(n){return t(n),u(n),n.values&&(n.data=n.values.map(i),n.data.forEach(function(n){n.message=n.headline}),delete n.values),n},"default":function(n,i){t(n);o(n,i);u(n)}},jsonp:function(n,t){f(t);n.method==="get"&&(t.format="jsonp",t["error-callback"]=n.callbackID)},xhr:function(n,t){return n.method!=="get"?(f(t),n.headers["Content-Type"]="application/json",n.headers["x-li-format"]="json",n.proxy=!0,!0):!1}}})}(hello),function(n){function t(n,t){var i=t.access_token;return delete t.access_token,t.oauth_token=i,t["_status_code_map[302]"]=200,!0}function i(n){return n.id&&(n.picture=n.avatar_url,n.thumbnail=n.avatar_url,n.name=n.username||n.full_name),n}function r(n){"next_href"in n&&(n.paging={next:n.next_href})}n.init({soundcloud:{name:"SoundCloud",oauth:{version:2,auth:"https://soundcloud.com/connect",grant:"https://soundcloud.com/oauth2/token"},base:"https://api.soundcloud.com/",get:{me:"me.json","me/friends":"me/followings.json","me/followers":"me/followers.json","me/following":"me/followings.json","default":function(n,t){t(n.path+".json")}},wrap:{me:function(n){return i(n),n},"default":function(n){return Array.isArray(n)&&(n={data:n.map(i)}),r(n),n}},xhr:t,jsonp:t}}
1)}(hello),function(n){function r(n,t){var i=t.access_token;return delete t.access_token,n.headers.Authorization="Bearer "+i,!0}function t(n){return n.id&&(n.name=n.display_name,n.thumbnail=n.images.length?n.images[0].url:null,n.picture=n.thumbnail),n}function u(n){return i(n),n&&"artists"in n&&(n.data=n.artists.items.forEach(t)),n}function f(n){return i(n),n.data=n.items,n}function i(n){n&&"next"in n&&(n.paging={next:n.next},delete n.next)}n.init({spotify:{name:"Spotify",oauth:{version:2,auth:"https://accounts.spotify.com/authorize",grant:"https://accounts.spotify.com/api/token"},scope_delim:" ",scope:{basic:"",photos:"",friends:"user-follow-read",publish:"user-library-read",email:"user-read-email",share:"",publish_files:"",files:"",videos:"",offline_access:""},base:"https://api.spotify.com",get:{me:"/v1/me","me/following":"/v1/me/following?type=artist","me/like":"/v1/me/tracks"},wrap:{me:t,"me/following":u,"me/like":f},xhr:r,jsonp:!1}})}(hello),function(n){function f(n){if(n.id){if(n.name){var t=n.name.split(" ");n.first_name=t.shift();n.last_name=t.join(" ")}n.thumbnail=n.profile_image_url_https||n.profile_image_url}return n}function i(n){return r(n),u(n),n.users&&(n.data=n.users.map(f),delete n.users),n}function r(n){if(n.errors){var t=n.errors[0];n.error={code:"request_failed",message:t.message}}}function u(n){"next_cursor_str"in n&&(n.paging={next:"?cursor="+n.next_cursor_str})}function e(n){return Array.isArray(n)?{data:n}:n}var t="https://api.twitter.com/";n.init({twitter:{oauth:{version:"1.0a",auth:t+"oauth/authenticate",request:t+"oauth/request_token",token:t+"oauth/access_token"},login:function(n){var t="?force_login=true";this.oauth.auth=this.oauth.auth.replace(t,"")+(n.options.force?t:"")},base:t+"1.1/",get:{me:"account/verify_credentials.json","me/friends":"friends/list.json?count=@{limit|200}","me/following":"friends/list.json?count=@{limit|200}","me/followers":"followers/list.json?count=@{limit|200}","me/share":"statuses/user_timeline.json?count=@{limit|200}","me/like":"favorites/list.json?count=@{limit|200}"},post:{"me/share":function(t,i){var r=t.data,u;t.data=null;u=[];r.message&&(u.push(r.message),delete r.message);r.link&&(u.push(r.link),delete r.link);r.picture&&(u.push(r.picture),delete r.picture);u.length&&(r.status=u.join(" "));r.file?(r["media[]"]=r.file,delete r.file,t.data=r,i("statuses/update_with_media.json")):"id"in r?i("statuses/retweet/"+r.id+".json"):(n.utils.extend(t.query,r),i("statuses/update.json?include_entities=1"))},"me/like":function(n,t){var i=n.data.id;n.data=null;t("favorites/create.json?id="+i)}},del:{"me/like":function(){p.method="post";var n=p.data.id;p.data=null;callback("favorites/destroy.json?id="+n)}},wrap:{me:function(n){return r(n),f(n),n},"me/friends":i,"me/followers":i,"me/following":i,"me/share":function(n){return(r(n),u(n),!n.error&&"length"in n)?{data:n}:n},"default":function(n){return n=e(n),u(n),n}},xhr:function(n){return n.method!=="get"}}})}(hello),function(n){function t(n,t){return n!==null&&"response"in n&&n.response!==null&&n.response.length&&(n=n.response[0],n.id=n.uid,n.thumbnail=n.picture=n.photo_max,n.name=n.first_name+" "+n.last_name,t.authResponse&&t.authResponse.email!==null&&(n.email=t.authResponse.email)),n}function i(n){if(n.error){var t=n.error;n.error={code:t.error_code,message:t.error_msg}}}n.init({vk:{name:"Vk",oauth:{version:2,auth:"https://oauth.vk.com/authorize",grant:"https://oauth.vk.com/access_token"},scope:{email:"email",friends:"friends",photos:"photos",videos:"video",share:"share",offline_access:"offline"},refresh:!0,login:function(n){n.qs.display=window.navigator&&window.navigator.userAgent&&/ipad|phone|phone|android/.test(window.navigator.userAgent.toLowerCase())?"mobile":"popup"},base:"https://api.vk.com/method/",get:{me:function(n,t){n.query.fields="id,first_name,last_name,photo_max";t("users.get")}},wrap:{me:function(n,r,u){return i(n),t(n,u)}},xhr:!1,jsonp:!0,form:!1}})}(hello),function(n){function i(n){return"data"in n&&n.data.forEach(function(n){n.picture&&(n.thumbnail=n.picture);n.images&&(n.pictures=n.images.map(u).sort(function(n,t){return n.width-t.width}))}),n}function u(n){return{width:n.width,height:n.height,source:n.source}}function f(n){return"data"in n&&n.data.forEach(function(n){n.photos=n.files="https://apis.live.net/v5.0/"+n.id+"/photos"}),n}
1function r(n,t,i){var r,u;return n.id&&(r=i.query.access_token,n.emails&&(n.email=n.emails.preferred),n.is_friend!==!1&&(u=n.user_id||n.id,n.thumbnail=n.picture="https://apis.live.net/v5.0/"+u+"/picture?access_token="+r)),n}function t(n,t,i){return"data"in n&&n.data.forEach(function(n){r(n,t,i)}),n}n.init({windows:{name:"Windows live",oauth:{version:2,auth:"https://login.live.com/oauth20_authorize.srf",grant:"https://login.live.com/oauth20_token.srf"},refresh:!0,logout:function(){return"http://login.live.com/oauth20_logout.srf?ts="+(new Date).getTime()},scope:{basic:"wl.signin,wl.basic",email:"wl.emails",birthday:"wl.birthday",events:"wl.calendars",photos:"wl.photos",videos:"wl.photos",friends:"wl.contacts_emails",files:"wl.skydrive",publish:"wl.share",publish_files:"wl.skydrive_update",share:"wl.share",create_event:"wl.calendars_update,wl.events_create",offline_access:"wl.offline_access"},base:"https://apis.live.net/v5.0/",get:{me:"me","me/friends":"me/friends","me/following":"me/contacts","me/followers":"me/friends","me/contacts":"me/contacts","me/albums":"me/albums","me/album":"@{id}/files","me/photo":"@{id}","me/files":"@{parent|me/skydrive}/files","me/folders":"@{id|me/skydrive}/files","me/folder":"@{id|me/skydrive}/files"},post:{"me/albums":"me/albums","me/album":"@{id}/files/","me/folders":"@{id|me/skydrive/}","me/files":"@{parent|me/skydrive}/files"},del:{"me/album":"@{id}","me/photo":"@{id}","me/folder":"@{id}","me/files":"@{id}"},wrap:{me:r,"me/friends":t,"me/contacts":t,"me/followers":t,"me/following":t,"me/albums":f,"me/photos":i,"default":i},xhr:function(t){return t.method==="get"||t.method==="delete"||n.utils.hasBinary(t.data)||(typeof t.data.file=="string"?t.data.file=n.utils.toBlob(t.data.file):(t.data=JSON.stringify(t.data),t.headers={"Content-Type":"application/json"})),!0},jsonp:function(t){t.method==="get"||n.utils.hasBinary(t.data)||(t.data.method=t.method,t.method="get")}}})}(hello),function(n){function i(n){n&&"meta"in n&&"error_type"in n.meta&&(n.error={code:n.meta.error_type,message:n.meta.error_message})}function f(n){if(i(n),n.query&&n.query.results&&n.query.results.profile){n=n.query.results.profile;n.id=n.guid;n.last_name=n.familyName;n.first_name=n.givenName||n.nickname;var t=[];n.first_name&&t.push(n.first_name);n.last_name&&t.push(n.last_name);n.name=t.join(" ");n.email=n.emails&&n.emails[0]?n.emails[0].handle:null;n.thumbnail=n.image?n.image.imageUrl:null}return n}function r(n,t,r){i(n);u(n,t,r);return n.query&&n.query.results&&n.query.results.contact&&(n.data=n.query.results.contact,delete n.query,Array.isArray(n.data)||(n.data=[n.data]),n.data.forEach(e)),n}function e(n){n.id=null;!n.fields||n.fields instanceof Array||(n.fields=[n.fields]);(n.fields||[]).forEach(function(t){t.type==="email"&&(n.email=t.value);t.type==="name"&&(n.first_name=t.value.givenName,n.last_name=t.value.familyName,n.name=t.value.givenName+" "+t.value.familyName);t.type==="yahooid"&&(n.id=t.value)})}function u(n,t,i){return n.query&&n.query.count&&i.options&&(n.paging={next:"?start="+(n.query.count+(+i.options.start||1))}),n}function t(n){return"https://query.yahooapis.com/v1/yql?q="+(n+" limit @{limit|100} offset @{start|0}").replace(/\s/g,"%20")+"&format=json"}n.init({yahoo:{oauth:{version:"1.0a",auth:"https://api.login.yahoo.com/oauth/v2/request_auth",request:"https://api.login.yahoo.com/oauth/v2/get_request_token",token:"https://api.login.yahoo.com/oauth/v2/get_token"},login:function(n){n.options.popup.width=560;try{delete n.qs.state.scope}catch(t){}},base:"https://social.yahooapis.com/v1/",get:{me:t("select * from social.profile(0) where guid=me"),"me/friends":t("select * from social.contacts(0) where guid=me"),"me/following":t("select * from social.contacts(0) where guid=me")},wrap:{me:f,"me/friends":r,"me/following":r,"default":u}}})}(hello);typeof define=="function"&&define.amd&&define(function(){return hello});typeof module=="object"&&module.exports&&(module.exports=hello)

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.