From 7fd99e8440d8b4d56e5b9c95a7cc506ceeeae782 Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 17 Apr 2015 01:03:58 -0400 Subject: [PATCH 01/83] bump dependencies + rebuild --- build/build.js | 19 ++++++++++++------- package.json | 12 ++++++------ 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/build/build.js b/build/build.js index 45ad1ea..91a3d68 100644 --- a/build/build.js +++ b/build/build.js @@ -1,7 +1,12 @@ -!function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){var i=n(2),r=n(3).Router,o=new i(n(1)),s=new r;s.on("/news/:page",function(t){window.scrollTo(0,0),o.view="news-view",o.params.page=+t}),s.on("/user/:id",function(t){window.scrollTo(0,0),o.view="user-view",o.params.userId=t}),s.on("/item/:id",function(t){window.scrollTo(0,0),o.view="item-view",o.params.itemId=t}),s.configure({notfound:function(){s.setRoute("/news/1")}}),s.init("/news/1")},function(t,e,n){n(22)("body,html{font-family:Verdana;font-size:13px;margin:0;height:100%;background-color:#f6f6ef}ul{list-style-type:none;padding:0;margin:0}a{color:#000;cursor:pointer;text-decoration:none}#header{background-color:#f60;height:24px;position:relative}#header h1{font-weight:700;font-size:13px;display:inline-block;vertical-align:middle;margin:0}#header .source{color:#fff;font-size:11px;position:absolute;top:4px;right:4px}#header .source a{color:#fff}#header .source a:hover{text-decoration:underline}#yc{border:1px solid #fff;margin:2px;display:inline-block;vertical-align:middle}#yc img{vertical-align:middle}.view{position:absolute;width:100%;transition:opacity .1s ease;box-sizing:border-box;padding:8px 20px}.view.v-enter,.view.v-leave{opacity:0}");var i='\n \n \n
';t.exports={el:"#app",data:{view:"",params:{page:1,userId:null,itemId:null}},filters:{fromNow:n(4),domain:n(5)},components:{"news-view":n(6),"item-view":n(7),"user-view":n(8)}},t.exports.template=i},function(t,e,n){function i(t){this._init(t)}var r=n(9),o=r.extend;o(i,n(10)),i.options={directives:n(16),filters:n(17),partials:{},transitions:{},components:{}};var s=i.prototype;Object.defineProperty(s,"$data",{get:function(){return this._data},set:function(t){this._setData(t)}}),o(s,n(18)),o(s,n(19)),o(s,n(20)),o(s,n(21)),o(s,n(11)),o(s,n(12)),o(s,n(13)),o(s,n(14)),o(s,n(15)),t.exports=r.Vue=i},function(t,e){!function(t){function e(){return""===u.hash||"#"===u.hash}function n(t,e){for(var n=0;nn;n++)e=e.concat(t[n]);return e}function r(t,e,n){if(!t.length)return n();var i=0;!function r(){e(t[i],function(e){e||e===!1?(n(e),n=function(){}):(i+=1,i===t.length?n():r())})}()}function o(t,e,n){n=t;for(var i in e)if(e.hasOwnProperty(i)&&(n=e[i](t),n!==t))break;return n===t?"([._a-zA-Z0-9-]+)":n}function a(t,e){for(var n,i=0,r="";n=t.substr(i).match(/[^\w\d\- %@&]*\*[^\w\d\- %@&]*/);)i=n.index+n[0].length,n[0]=n[0].replace(/^\*/,"([_.()!\\ %@&a-zA-Z0-9-]+)"),r+=t.substr(0,n.index)+n[0];t=r+=t.substr(i);var s,a,h=t.match(/:([^\/]+)/gi);if(h){a=h.length;for(var u=0;a>u;u++)s=h[u],t="::"===s.slice(0,2)?s.slice(1):t.replace(s,o(s,e))}return t}function h(t,e,n,i){var r,o=0,s=0,a=0,n=(n||"(").toString(),i=(i||")").toString();for(r=0;rh.indexOf(i,o)||~h.indexOf(n,o)&&!~h.indexOf(i,o)||!~h.indexOf(n,o)&&~h.indexOf(i,o)){if(s=h.indexOf(n,o),a=h.indexOf(i,o),~s&&!~a||!~s&&~a){var u=t.slice(0,(r||1)+1).join(e);t=[u].concat(t.slice((r||1)+1))}o=(a>s?a:s)+1,r=0}else o=0}return t}var u=document.location,c={mode:"modern",hash:u.hash,history:!1,check:function(){var t=u.hash;t!=this.hash&&(this.hash=t,this.onHashChanged())},fire:function(){"modern"===this.mode?this.history===!0?window.onpopstate():window.onhashchange():this.onHashChanged()},init:function(t,e){function n(t){for(var e=0,n=l.listeners.length;n>e;e++)l.listeners[e](t)}var i=this;if(this.history=e,l.listeners||(l.listeners=[]),"onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7))this.history===!0?setTimeout(function(){window.onpopstate=n},500):window.onhashchange=n,this.mode="modern";else{var r=document.createElement("iframe");r.id="state-frame",r.style.display="none",document.body.appendChild(r),this.writeFrame(""),"onpropertychange"in document&&"attachEvent"in document&&document.attachEvent("onpropertychange",function(){"location"===event.propertyName&&i.check()}),window.setInterval(function(){i.check()},50),this.onHashChanged=n,this.mode="legacy"}return l.listeners.push(t),this.mode},destroy:function(t){if(l&&l.listeners)for(var e=l.listeners,n=e.length-1;n>=0;n--)e[n]===t&&e.splice(n,1)},setHash:function(t){return"legacy"===this.mode&&this.writeFrame(t),this.history===!0?(window.history.pushState({},document.title,t),this.fire()):u.hash="/"===t[0]?t:"/"+t,this},writeFrame:function(t){var e=document.getElementById("state-frame"),n=e.contentDocument||e.contentWindow.document;n.open(),n.write("'),t=""+t+"";try{this.ua.Ya.open(),this.ua.Ya.write(t),this.ua.Ya.close()}catch(o){kb("frame writing exception"),o.stack&&kb(o.stack),kb(o)}}function Yd(t){if(t.Wd&&t.Fd&&t.De.count()<(0=t.Lc[0].Xe.length+30+n.length;){var r=t.Lc.shift(),n=n+"&seg"+i+"="+r.ng+"&ts"+i+"="+r.vg+"&d"+i+"="+r.Xe;i++}return Zd(t,e+n,t.ie),!0}return!1}function Zd(t,e,n){function i(){t.De.remove(n),Yd(t)}t.De.add(n);var r=setTimeout(i,Math.floor(25e3));Xd(t,e,function(){clearTimeout(r),i()})}function Xd(t,e,n){setTimeout(function(){try{if(t.Fd){var i=t.ua.Ya.createElement("script");i.type="text/javascript",i.async=!0,i.src=e,i.onload=i.onreadystatechange=function(){var t=i.readyState;t&&"loaded"!==t&&"complete"!==t||(i.onload=i.onreadystatechange=null,i.parentNode&&i.parentNode.removeChild(i),n())},i.onerror=function(){kb("Long-poll script failed to load: "+e),t.Fd=!1,t.close()},t.ua.Ya.body.appendChild(i)}}catch(r){}},Math.floor(1))}function $d(t){ae(this,t)}function ae(t,e){var n=Jd&&Jd.isAvailable(),i=n&&!(va.gf||!0===va.get("previous_websocket_failure"));if(e.xg&&(n||z("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),i=!0),i)t.Vc=[Jd];else{var r=t.Vc=[];Cb(be,function(t,e){e&&e.isAvailable()&&r.push(e)})}}function ce(t){if(00&&(t.md=setTimeout(function(){t.md=null,t.vb||(t.K&&102400=t.uf?(t.f("Secondary connection is healthy."),t.vb=!0,t.H.rd(),t.H.start(),t.f("sending client ack on secondary"),t.H.send({t:"c",d:{t:"a",d:{}}}),t.f("Ending transmission on primary"),t.K.send({t:"c",d:{t:"n",d:{}}}),t.Wc=t.H,je(t)):(t.f("sending ping on secondary."),t.H.send({t:"c",d:{t:"p",d:{}}}))}function le(t){t.vb||(t.Fe--,0>=t.Fe&&(t.f("Primary connection is healthy."),t.vb=!0,t.K.rd()))}function ie(t,e){t.H=new e("c:"+t.id+":"+t.Se++,t.S,t.Gd),t.uf=e.responsesRequiredToBeHealthy||0,t.H.open(fe(t,t.H),ge(t,t.H)),setTimeout(function(){t.H&&(t.f("Timed out trying to upgrade."),t.H.close())},Math.floor(6e4))}function he(t,e,n){t.f("Realtime connection established."),t.K=e,t.Ra=1,t.Fc&&(t.Fc(n),t.Fc=null),0===t.Fe?(t.f("Primary connection is healthy."),t.vb=!0):setTimeout(function(){me(t)},Math.floor(5e3))}function me(t){t.vb||1!==t.Ra||(t.f("sending ping on primary."),oe(t,{t:"c",d:{t:"p",d:{}}}))}function oe(t,e){if(1!==t.Ra)throw"Connection is not connected";t.Wc.send(e)}function ke(t){t.f("Shutting down all connections"),t.K&&(t.K.close(),t.K=null),t.H&&(t.H.close(),t.H=null),t.md&&(clearTimeout(t.md),t.md=null)}function pe(t){var e={},n={},i={},r="";try{var o=t.split("."),e=sa(jb(o[0])||""),n=sa(jb(o[1])||""),r=o[2],i=n.d||{};delete n.d}catch(s){}return{Bg:e,de:n,data:i,sg:r}}function qe(t){return t=pe(t).de,"object"==typeof t&&t.hasOwnProperty("iat")?u(t,"iat"):null}function re(t){t=pe(t);var e=t.de;return!!t.sg&&!!e&&"object"==typeof e&&e.hasOwnProperty("iat")}function te(t,e,n,i){this.id=ue++,this.f=rb("p:"+this.id+":"),this.Eb=!0,this.ta={},this.ka=[],this.Ic=0,this.Ec=[],this.fa=!1,this.Ua=1e3,this.sd=3e5,this.xd=e,this.vd=n,this.Ce=i,this.S=t,this.Ie=null,this.Pc={},this.mg=0,this.yc=this.se=null,ve(this,0),qd.Mb().Ab("visible",this.eg,this),-1===t.host.indexOf("fblocal")&&rd.Mb().Ab("online",this.cg,this)}function xe(t,e,n,i,r){var o=e.Da(),s=e.path.toString();t.f("Listen called for "+s+" "+o),t.ta[s]=t.ta[s]||{},x(!t.ta[s][o],"listen() called twice for same path/queryId."),t.ta[s][o]={M:r,ld:n,ig:yc(e),tag:i},t.fa&&ye(t,s,o)}function ye(t,e,n){t.f("Listen on "+e+" for "+n);var i={p:e},r=t.ta[e][n];r.tag&&(i.q=r.ig,i.t=r.tag),r=t.ta[e][n],i.h=r.ld();var o=r.M;t.va("q",i,function(i){t.f("listen response",i);var r=i.s;"ok"!==r&&ze(t,e,n),o&&o(r,i.d)})}function Ae(t){var e=t.Hb;t.fa&&e&&t.va("auth",{cred:e.Mf},function(n){var i=n.s;n=n.d||"error","ok"!==i&&t.Hb===e&&delete t.Hb,e.$e?"ok"!==i&&e.Zc&&e.Zc(i,n):(e.$e=!0,e.mc&&e.mc(i,n)) -})}function Be(t,e,n,i){t.fa?Ce(t,"o",e,n,i):t.Ec.push({Kc:e,action:"o",data:n,M:i})}function De(t,e,n,i){t.fa?Ce(t,"om",e,n,i):t.Ec.push({Kc:e,action:"om",data:n,M:i})}function Ce(t,e,n,i,r){n={p:n,d:i},t.f("onDisconnect "+e,n),t.va(e,n,function(t){r&&setTimeout(function(){r(t.s,t.d)},Math.floor(0))})}function Fe(t,e,n,i){Ee(t,"m",e,n,i,void 0)}function Ee(t,e,n,i,r,o){i={p:n,d:i},m(o)&&(i.h=o),t.ka.push({action:e,pf:i,M:r}),t.Ic++,e=t.ka.length-1,t.fa?Ge(t,e):t.f("Buffering put: "+n)}function Ge(t,e){var n=t.ka[e].action,i=t.ka[e].pf,r=t.ka[e].M;t.ka[e].jg=t.fa,t.va(n,i,function(i){t.f(n+" response",i),delete t.ka[e],t.Ic--,0===t.Ic&&(t.ka=[]),r&&r(i.s,i.d)})}function ve(t,e){x(!t.Ta,"Scheduling a connect when we're already connected/ing?"),t.Jb&&clearTimeout(t.Jb),t.Jb=setTimeout(function(){t.Jb=null,Je(t)},Math.floor(e))}function Je(t){if(t.Eb){t.f("Making a connection attempt"),t.se=(new Date).getTime(),t.yc=null;var e=q(t.wd,t),n=q(t.Fc,t),i=q(t.kf,t),r=t.id+":"+we++;t.Ta=new de(r,t.S,e,n,i,function(e){z(e+" ("+t.S.toString()+")"),t.Eb=!1})}}function He(t,e,n){n=n?Ma(n,function(t){return Ab(t)}).join("$"):"default",(t=ze(t,e,n))&&t.M&&t.M("permission_denied")}function ze(t,e,n){e=new N(e).toString();var i=t.ta[e][n];return delete t.ta[e][n],0===sc(t.ta[e])&&delete t.ta[e],i}function Ie(t){Ae(t),A(t.ta,function(e,n){A(e,function(e,i){ye(t,n,i)})});for(var e=0;e=0;t--)try{if(e[t].location.protocol===window.location.protocol&&e[t].location.host===window.location.host&&"__winchan_relay_frame"===e[t].name)return e[t]}catch(n){}return null}function Ze(t,e,n){t.attachEvent?t.attachEvent("on"+e,n):t.addEventListener&&t.addEventListener(e,n,!1)}function $e(t,e,n){t.detachEvent?t.detachEvent("on"+e,n):t.removeEventListener&&t.removeEventListener(e,n,!1)}function af(t){/^https?:\/\//.test(t)||(t=window.location.href);var e=/^(https?:\/\/[\-_a-zA-Z\.0-9:]+)/.exec(t);return e?e[1]:t}function bf(e){var n="";try{e=e.replace("#","");var i={},r=e.replace(/^\?/,"").split("&");for(e=0;ep?(p=u(l,r.name),m(p)?(c.push(a[p]),a[p]=null):(f[r.name]=h.length,h.push(r)),r=T(n)):(p>0?(p=u(f,o.name),m(p)?(c.push(o),h[p]=null):(l[o.name]=a.length,a.push(o))):((r=r.L.hash()!==o.L.hash())&&c.push(o),r=T(n)),o=T(i))}for(l=0;l=a(s,t.gd)?Tf(t,e,n,i,r,o||e.k||e.g):null:0>=a(t.Jd,s)?Tf(t,e,n,i,r,o||e.k||e.g):null}function Tf(t,e,n,i,r,o){var s,a=Kb(t.index);s=t.Oa?function(t,e){return-1*a(t,e)}:a,e=W(e);var h=new C(n,i),u=t.Oa?gd(e,t.index):hd(e,t.index);return e.$(n)?(t=r.be(o,u,1,t.Oa,".priority"),0===t.length?e.w(n,i):(t=t[0],!i.e()&&0<=s(t,h)?e.w(n,i):e.w(n,E).w(t.name,t.L))):0<=s(u,h)?e.w(n,i).w(u.name,E):null}function Uf(t){this.G=t}function Vf(t){this.Y=t,this.G=t.C.G}function Wf(t,e,n,i){var r=[],o=t.G,s=Ma(La(e,function(t){return"child_changed"===t.type&&o.ef(t.Zf,t.Va)}),function(t){return new V("child_moved",t.Va,t.ob)}),a=Qa(e,function(t){return"child_removed"!==t.type&&"child_added"!==t.type});for(la(Sa,e,a,0).apply(null,s);0=0,"removeWrite called with nonexistent writeId.");var i=t.pa[n];t.pa.splice(n,1);for(var r=!1,o=!1,s=!1,a=t.pa.length-1;!r&&a>=0;){var h=t.pa[a];a>=n&&wg(h,i.path)?r=!0:!o&&i.path.contains(h.path)&&(a>=n?o=!0:s=!0),a--}return r||(o||s?xg(t):i.Qa?t.V=t.V.remove(i.path):A(i.children,function(e,n){t.V=t.V.remove(i.path.B(n))})),n=i.path,fg(t.V,n)?s?n:(x(r,"Must have found a shadow"),null):n}function wg(t,e){return t.Qa?t.path.contains(e):!!ud(t.children,function(n,i){return t.path.B(i).contains(e)})}function xg(t){t.V=yg(t.pa,zg,R),t.zc=0.firebaseio.com instead"),n||tb("Cannot parse Firebase url. Please use https://.firebaseio.com"),i.Cb||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&z("Insecure Firebase access from a secure page. Please use https in calls to new Firebase()."),n=new xa(i.host,i.Cb,n,"ws"===i.scheme||"wss"===i.scheme),i=new N(i.Kc),r=i.toString();var o;if(!(o=!p(n.host)||0===n.host.length||!ac(n.zb))&&(o=0!==r.length)&&(r&&(r=r.replace(/^\/*\.info(\/|$)/,"/")),o=!(p(r)&&0!==r.length&&!$b.test(r))),o)throw Error(H("new Firebase",1,!1)+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".');if(e)if(e instanceof rh)r=e;else{if(!p(e))throw Error("Expected a valid Firebase.Context for second argument to new Firebase()");r=rh.Mb(),n.Cd=e}else r=rh.Mb();o=n.toString();var s=u(r.dc,o);s||(s=new Xg(n),r.dc[o]=s),n=s}L.call(this,n,i,Rb)}function qb(t,e){x(!e||!0===t||!1===t,"Can't turn on custom loggers persistently."),!0===t?("undefined"!=typeof console&&("function"==typeof console.log?ob=q(console.log,console):"object"==typeof console.log&&(ob=function(t){console.log(t)})),e&&wa.set("logging_enabled",!0)):t?ob=t:(ob=null,wa.remove("logging_enabled"))}var h,aa=this,ma=Date.now||function(){return+new Date};h=ra.prototype,h.set=function(t,e){null==e?this.sc.removeItem(this.Dd+t):this.sc.setItem(this.Dd+t,v(e))},h.get=function(t){return t=this.sc.getItem(this.Dd+t),null==t?null:sa(t)},h.remove=function(t){this.sc.removeItem(this.Dd+t)},h.gf=!1,h.toString=function(){return this.sc.toString()},ta.prototype.set=function(t,e){null==e?delete this.la[t]:this.la[t]=e},ta.prototype.get=function(e){return t(this.la,e)?this.la[e]:null},ta.prototype.remove=function(t){delete this.la[t]},ta.prototype.gf=!0;var va=ua("localStorage"),wa=ua("sessionStorage");xa.prototype.toString=function(){var t=(this.Cb?"https://":"http://")+this.host;return this.Cd&&(t+="<"+this.Cd+">"),t},oa(Aa,za),Aa.prototype.reset=function(){this.T[0]=1732584193,this.T[1]=4023233417,this.T[2]=2562383102,this.T[3]=271733878,this.T[4]=3285377520,this.Pd=this.Pb=0},Aa.prototype.update=function(t,e){m(e)||(e=t.length);for(var n=e-this.Sa,i=0,r=this.Zd,o=this.Pb;e>i;){if(0==o)for(;n>=i;)Ba(this,t,i),i+=this.Sa;if(p(t)){for(;e>i;)if(r[o]=t.charCodeAt(i),++o,++i,o==this.Sa){Ba(this,r),o=0;break}}else for(;e>i;)if(r[o]=t[i],++o,++i,o==this.Sa){Ba(this,r),o=0;break}}this.Pb=o,this.Pd+=e};var Ga={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"," ":"\\u000b"},Ha=/\uffff/.test("ï¿¿")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,w=Array.prototype,Ja=w.indexOf?function(t,e,n){return w.indexOf.call(t,e,n)}:function(t,e,n){if(n=null==n?0:0>n?Math.max(0,t.length+n):n,p(t))return p(e)&&1==e.length?t.indexOf(e,n):-1;for(;no;o++)o in r&&e.call(n,r[o],o,t)},La=w.filter?function(t,e,n){return w.filter.call(t,e,n)}:function(t,e,n){for(var i=t.length,r=[],o=0,s=p(t)?t.split(""):t,a=0;i>a;a++)if(a in s){var h=s[a];e.call(n,h,a,t)&&(r[o++]=h)}return r},Ma=w.map?function(t,e,n){return w.map.call(t,e,n)}:function(t,e,n){for(var i=t.length,r=Array(i),o=p(t)?t.split(""):t,s=0;i>s;s++)s in o&&(r[s]=e.call(n,o[s],s,t));return r},Na=w.reduce?function(t,e,n,i){return i&&(e=q(e,i)),w.reduce.call(t,e,n)}:function(t,e,n,i){var r=n;return Ka(t,function(n,o){r=e.call(i,r,n,o,t)}),r},Oa=w.every?function(t,e,n){return w.every.call(t,e,n)}:function(t,e,n){for(var i=t.length,r=p(t)?t.split(""):t,o=0;i>o;o++)if(o in r&&!e.call(n,r[o],o,t))return!1;return!0},Wa;t:{var Xa=aa.navigator;if(Xa){var Ya=Xa.userAgent;if(Ya){Wa=Ya;break t}}Wa=""}var $a=Za("Opera")||Za("OPR"),ab=Za("Trident")||Za("MSIE"),bb=Za("Gecko")&&-1==Wa.toLowerCase().indexOf("webkit")&&!(Za("Trident")||Za("MSIE")),cb=-1!=Wa.toLowerCase().indexOf("webkit");!function(){var t,e="";return $a&&aa.opera?(e=aa.opera.version,ha(e)?e():e):(bb?t=/rv\:([^\);]+)(\)|;)/:ab?t=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:cb&&(t=/WebKit\/(\S+)/),t&&(e=(e=t.exec(Wa))?e[1]:""),ab&&(t=(t=aa.document)?t.documentMode:void 0,t>parseFloat(e))?String(t):e)}();var db=null,eb=null,hb=function(){var t=1;return function(){return t++}}(),ob=null,pb=!0,Eb=/^-?\d{1,10}$/,Jb=Object.create(null);Ib.prototype.ef=function(t,e){return 0!==this.compare(new C("[MIN_NAME]",t),new C("[MIN_NAME]",e))},Ib.prototype.ye=function(){return Lb},oa(Mb,Ib),h=Mb.prototype,h.qe=function(t){return!t.I(this.Rb).e()},h.compare=function(t,e){var n=t.L.I(this.Rb),i=e.L.I(this.Rb),n=n.fe(i);return 0===n?xb(t.name,e.name):n},h.we=function(t,e){var n=D(t),n=E.w(this.Rb,n);return new C(e,n)},h.xe=function(){var t=E.w(this.Rb,Nb);return new C("[MAX_NAME]",t)},h.toString=function(){return this.Rb};var F=new Mb(".priority");oa(Ob,Ib),h=Ob.prototype,h.compare=function(t,e){return xb(t.name,e.name)},h.qe=function(){throw ib("KeyIndex.isDefinedOn not expected to be called.")},h.ef=function(){return!1},h.ye=function(){return Lb},h.xe=function(){return new C("[MAX_NAME]",E)},h.we=function(t){return x(p(t),"KeyIndex indexValue must always be a string."),new C(t,E)},h.toString=function(){return".key"};var Pb=new Ob,Rb=new Qb;h=Qb.prototype,h.te=function(t){var e=Wb(this);return e.sa=!0,e.yb=t,e.Yc="",e},h.ue=function(t){var e=Wb(this);return e.sa=!0,e.yb=t,e.Yc="l",e},h.ve=function(t){var e=Wb(this);return e.sa=!0,e.yb=t,e.Yc="r",e},h.Id=function(t,e){var n=Wb(this);return n.wa=!0,n.wc=t,null!=e?(n.hc=!0,n.Tb=e):(n.hc=!1,n.Tb=""),n},h.fd=function(t,e){var n=Wb(this);return n.Ja=!0,n.vc=t,m(e)?(n.tc=!0,n.Qb=e):(n.Dg=!1,n.Qb=""),n},h.Hc=function(t){var e=Wb(this);return e.G=t,e};var Zb=/[\[\].#$\/\u0000-\u001F\u007F]/,$b=/[\[\].#$\u0000-\u001F\u007F]/;oc.prototype.Nb=function(){var t=this.Hd.bc();return"value"===this.hd?t.path:t.parent().path},oc.prototype.me=function(){return this.hd},oc.prototype.Lb=function(){return this.je.Lb(this)},oc.prototype.toString=function(){return this.Nb().toString()+":"+this.hd+":"+v(this.Hd.Ze())},pc.prototype.Nb=function(){return this.path},pc.prototype.me=function(){return"cancel"},pc.prototype.Lb=function(){return this.je.Lb(this)},pc.prototype.toString=function(){return this.path.toString()+":cancel" -},h=qc.prototype,h.qf=function(t){return"value"===t},h.createEvent=function(t,e){var n=e.C.G;return new oc("value",this,new K(t.Va,e.bc(),n))},h.Lb=function(t){var e=this.pc;if("cancel"===t.me()){x(this.nb,"Raising a cancel event on a listener with no cancel callback");var n=this.nb;return function(){n.call(e,t.error)}}var i=this.Gb;return function(){i.call(e,t.Hd)}},h.Ue=function(t,e){return this.nb?new pc(this,t,e):null},h.matches=function(t){return t instanceof qc&&(!t.Gb||!this.Gb||t.Gb===this.Gb)&&t.pc===this.pc},h.df=function(){return null!==this.Gb},h=rc.prototype,h.qf=function(t){return t="children_added"===t?"child_added":t,("children_removed"===t?"child_removed":t)in this.ea},h.Ue=function(t,e){return this.nb?new pc(this,t,e):null},h.createEvent=function(t,e){var n=e.bc().B(t.ob);return new oc(t.type,this,new K(t.Va,n,e.C.G),t.Mc)},h.Lb=function(t){var e=this.pc;if("cancel"===t.me()){x(this.nb,"Raising a cancel event on a listener with no cancel callback");var n=this.nb;return function(){n.call(e,t.error)}}var i=this.ea[t.hd];return function(){i.call(e,t.Hd,t.Mc)}},h.matches=function(t){if(t instanceof rc){if(this.ea&&t.ea){var e=sc(t.ea);if(e===sc(this.ea)){if(1===e){var e=tc(t.ea),n=tc(this.ea);return!(n!==e||t.ea[e]&&this.ea[n]&&t.ea[e]!==this.ea[n])}return uc(this.ea,function(e,n){return t.ea[n]===e})}return!1}return!0}return!1},h.df=function(){return null!==this.ea},L.prototype.bc=function(){return G("Query.ref",0,0,arguments.length),new M(this.j,this.path)},L.prototype.ref=L.prototype.bc,L.prototype.Ab=function(t,e,n,i){G("Query.on",2,4,arguments.length),gc("Query.on",t,!1),I("Query.on",2,e,!1);var r=vc("Query.on",n,i);if("value"===t)wc(this.j,this,new qc(e,r.cancel||null,r.Ia||null));else{var o={};o[t]=e,wc(this.j,this,new rc(o,r.cancel,r.Ia))}return e},L.prototype.on=L.prototype.Ab,L.prototype.Yb=function(t,e,n){G("Query.off",0,3,arguments.length),gc("Query.off",t,!0),I("Query.off",2,e,!0),Yb("Query.off",3,n);var i=null,r=null;"value"===t?i=new qc(e||null,null,n||null):t&&(e&&(r={},r[t]=e),i=new rc(r,null,n||null)),r=this.j,i=".info"===J(this.path)?r.pd.eb(this,i):r.N.eb(this,i),xc(r.ba,this.path,i)},L.prototype.off=L.prototype.Yb,L.prototype.fg=function(t,e){function n(s){o&&(o=!1,r.Yb(t,n),e.call(i.Ia,s))}G("Query.once",2,4,arguments.length),gc("Query.once",t,!1),I("Query.once",2,e,!1);var i=vc("Query.once",arguments[2],arguments[3]),r=this,o=!0;this.Ab(t,n,function(e){r.Yb(t,n),i.cancel&&i.cancel.call(i.Ia,e)})},L.prototype.once=L.prototype.fg,L.prototype.te=function(t){if(G("Query.limit",1,1,arguments.length),!ga(t)||Math.floor(t)!==t||0>=t)throw Error("Query.limit: First argument must be a positive integer.");if(this.C.Ja&&this.C.wa)throw Error("Query: Can't combine startAt(), endAt(), and limit(). Use limitToFirst() or limitToLast() instead.");return new L(this.j,this.path,this.C.te(t))},L.prototype.limit=L.prototype.te,L.prototype.ue=function(t){if(G("Query.limitToFirst",1,1,arguments.length),!ga(t)||Math.floor(t)!==t||0>=t)throw Error("Query.limitToFirst: First argument must be a positive integer.");return new L(this.j,this.path,this.C.ue(t))},L.prototype.limitToFirst=L.prototype.ue,L.prototype.ve=function(t){if(G("Query.limitToLast",1,1,arguments.length),!ga(t)||Math.floor(t)!==t||0>=t)throw Error("Query.limitToLast: First argument must be a positive integer.");return new L(this.j,this.path,this.C.ve(t))},L.prototype.limitToLast=L.prototype.ve,L.prototype.Hc=function(t){if(G("Query.orderBy",1,1,arguments.length),"$key"===t)throw Error('Query.orderBy: "$key" is invalid. Use Query.orderByKey() instead.');if("$priority"===t)throw Error('Query.orderBy: "$priority" is invalid. Use Query.orderByPriority() instead.');return hc("Query.orderBy",1,t,!1),new L(this.j,this.path,this.C.Hc(new Mb(t)))},L.prototype.orderBy=L.prototype.Hc,L.prototype.gg=function(){return G("Query.orderByKey",0,0,arguments.length),new L(this.j,this.path,this.C.Hc(Pb))},L.prototype.orderByKey=L.prototype.gg,L.prototype.hg=function(){return G("Query.orderByPriority",0,0,arguments.length),new L(this.j,this.path,this.C.Hc(F))},L.prototype.orderByPriority=L.prototype.hg,L.prototype.Id=function(t,e){if(G("Query.startAt",0,2,arguments.length),fc("Query.startAt",1,t,!0),hc("Query.startAt",2,e,!0),this.C.Ja&&this.C.sa&&!Ub(this.C))throw Error("Query: Can't combine startAt(), endAt(), and limit(). Use limitToFirst() or limitToLast() instead.");return m(t)||(e=t=null),new L(this.j,this.path,this.C.Id(t,e))},L.prototype.startAt=L.prototype.Id,L.prototype.fd=function(t,e){if(G("Query.endAt",0,2,arguments.length),fc("Query.endAt",1,t,!0),hc("Query.endAt",2,e,!0),this.C.wa&&this.C.sa&&!Ub(this.C))throw Error("Query: Can't combine startAt(), endAt(), and limit(). Use limitToFirst() or limitToLast() instead.");return new L(this.j,this.path,this.C.fd(t,e))},L.prototype.endAt=L.prototype.fd,L.prototype.Of=function(t,e){return G("Query.equalTo",1,2,arguments.length),fc("Query.equalTo",1,t,!1),hc("Query.equalTo",2,e,!0),this.Id(t,e).fd(t,e)},L.prototype.equalTo=L.prototype.Of,L.prototype.Da=function(){var t=Ab(yc(this));return"{}"===t?"default":t},N.prototype.toString=function(){for(var t="",e=this.da;e=this.A.length)return null;for(var t=[],e=this.da;e=this.A.length};var R=new N("");N.prototype.aa=function(t){if(O(this)!==O(t))return!1;for(var e=this.da,n=t.da;e<=this.A.length;e++,n++)if(this.A[e]!==t.A[n])return!1;return!0},N.prototype.contains=function(t){var e=this.da,n=t.da;if(O(this)>O(t))return!1;for(;ee?n=n.left:e>0&&(n=n.right)}return null},h.e=function(){return this.oa.e()},h.count=function(){return this.oa.count()},h.Dc=function(){return this.oa.Dc()},h.Vb=function(){return this.oa.Vb()},h.Ba=function(t){return this.oa.Ba(t)},h.Aa=function(t){return new Jc(this.oa,null,this.Ha,!1,t)},h.rb=function(t,e){return new Jc(this.oa,t,this.Ha,!1,e)},h.Ob=function(t,e){return new Jc(this.oa,t,this.Ha,!0,e)},h.cf=function(t){return new Jc(this.oa,null,this.Ha,!0,t)},h=Kc.prototype,h.Z=function(t,e,n,i,r){return new Kc(null!=t?t:this.key,null!=e?e:this.value,null!=n?n:this.color,null!=i?i:this.left,null!=r?r:this.right)},h.count=function(){return this.left.count()+1+this.right.count()},h.e=function(){return!1},h.Ba=function(t){return this.left.Ba(t)||t(this.key,this.value)||this.right.Ba(t)},h.Dc=function(){return Lc(this).key},h.Vb=function(){return this.right.e()?this.key:this.right.Vb()},h.La=function(t,e,n){var i,r;return r=this,i=n(t,r.key),r=0>i?r.Z(null,null,null,r.left.La(t,e,n),null):0===i?r.Z(null,e,null,null,null):r.Z(null,null,null,null,r.right.La(t,e,n)),Mc(r)},h.remove=function(t,e){var n,i;if(n=this,0>e(t,n.key))n.left.e()||n.left.ca()||n.left.left.ca()||(n=Oc(n)),n=n.Z(null,null,null,n.left.remove(t,e),null);else{if(n.left.ca()&&(n=Pc(n)),n.right.e()||n.right.ca()||n.right.left.ca()||(n=Qc(n),n.left.left.ca()&&(n=Pc(n),n=Qc(n))),0===e(t,n.key)){if(n.right.e())return Hc;i=Lc(n.right),n=n.Z(i.key,i.value,null,null,Nc(n.right))}n=n.Z(null,null,null,null,n.right.remove(t,e))}return Mc(n)},h.ca=function(){return this.color},h=Sc.prototype,h.Z=function(){return this},h.La=function(t,e){return new Kc(t,e,null)},h.remove=function(){return this},h.count=function(){return 0},h.e=function(){return!0},h.Ba=function(){return!1},h.Dc=function(){return null},h.Vb=function(){return null},h.ca=function(){return!1};var Hc=new Sc;h=Uc.prototype,h.R=function(){return!0},h.Q=function(){return this.ia},h.gb=function(t){return new Uc(this.D,t)},h.I=function(t){return".priority"===t?this.ia:E},h.P=function(t){return t.e()?this:".priority"===J(t)?this.ia:E},h.$=function(){return!1},h.bf=function(){return null},h.w=function(t,e){return".priority"===t?this.gb(e):E.w(t,e).gb(this.ia)},h.u=function(t,e){var n=J(t);return null===n?e:(x(".priority"!==n||1===O(t),".priority must be the last token in a path"),this.w(n,E.u(Q(t),e)))},h.e=function(){return!1},h.Za=function(){return 0},h.O=function(t){return t&&!this.Q().e()?{".value":this.ra(),".priority":this.Q().O()}:this.ra()},h.hash=function(){if(null===this.xb){var t="";this.ia.e()||(t+="priority:"+Wc(this.ia.O())+":");var e=typeof this.D,t=t+(e+":"),t="number"===e?t+Db(this.D):t+this.D;this.xb=lb(t)}return this.xb},h.ra=function(){return this.D},h.fe=function(t){if(t===E)return 1;if(t instanceof Xc)return-1;x(t.R(),"Unknown node type");var e=typeof t.D,n=typeof this.D,i=Ja(Yc,e),r=Ja(Yc,n);return x(i>=0,"Unknown leaf type: "+e),x(r>=0,"Unknown leaf type: "+n),i===r?"object"===n?0:this.Di){var o,s=[];for(o in e)s[o]=e[o];return s}return t&&!this.Q().e()&&(e[".priority"]=this.Q().O()),e},h.hash=function(){if(null===this.xb){var t="";this.Q().e()||(t+="priority:"+Wc(this.Q().O())+":"),this.ga(F,function(e,n){var i=n.hash();""!==i&&(t+=":"+e+":"+i)}),this.xb=""===t?"":lb(t)}return this.xb},h.bf=function(t,e,n){return(n=fd(this,n))?(t=Ic(n,new C(t,e)))?t.name:null:Ic(this.m,t)},h.ga=function(t,e){var n=fd(this,t);return n?n.Ba(function(t){return e(t.name,t.L)}):this.m.Ba(e)},h.Aa=function(t){return this.rb(t.ye(),t)},h.rb=function(t,e){var n=fd(this,e);return n?n.rb(t,function(t){return t}):this.m.rb(t.name,Tc)},h.cf=function(t){return this.Ob(t.xe(),t)},h.Ob=function(t,e){var n=fd(this,e);return n?n.Ob(t,function(t){return t}):this.m.Ob(t.name,Tc)},h.fe=function(t){return this.e()?t.e()?0:-1:t.R()||t.e()?1:t===Nb?-1:0},h.hb=function(t){if(t===Pb||id(this.sb.Sb,t.toString()))return this;var e=this.sb,n=this.m;x(t!==Pb,"KeyIndex always exists and isn't meant to be added to the IndexMap.");for(var i=[],r=!1,n=n.Aa(Tc),o=T(n);o;)r=r||t.qe(o.L),i.push(o),o=T(n);return i=r?bd(i,Kb(t)):Jb,r=t.toString(),n=jd(e.Sb),n[r]=t,t=jd(e.od),t[r]=i,new Xc(this.m,this.ia,new Zc(t,n))},h.Ub=function(t){return t===Pb||id(this.sb.Sb,t.toString())},h.aa=function(t){if(t===this)return!0;if(t.R())return!1;if(this.Q().aa(t.Q())&&this.m.count()===t.m.count()){var e=this.Aa(F);t=t.Aa(F);for(var n=T(e),i=T(t);n&&i;){if(n.name!==i.name||!n.L.aa(i.L))return!1;n=T(e),i=T(t)}return null===n&&null===i}return!1},h.toString=function(){var t="{",e=!0;return this.ga(F,function(n,i){e?e=!1:t+=", ",t+='"'+n+'" : '+i.toString()}),t+="}"};var kd=Math.log(2),E=new Xc(new Gc(Hb),null,dd);oa(nd,Xc),h=nd.prototype,h.fe=function(t){return t===this?0:1},h.aa=function(t){return t===this},h.Q=function(){throw ib("Why is this called?")},h.I=function(){return E},h.e=function(){return!1};var Nb=new nd,Lb=new C("[MIN_NAME]",E);K.prototype.O=function(){return G("Firebase.DataSnapshot.val",0,0,arguments.length),this.J.O()},K.prototype.val=K.prototype.O,K.prototype.Ze=function(){return G("Firebase.DataSnapshot.exportVal",0,0,arguments.length),this.J.O(!0)},K.prototype.exportVal=K.prototype.Ze,K.prototype.B=function(t){G("Firebase.DataSnapshot.child",0,1,arguments.length),ga(t)&&(t=String(t)),ic("Firebase.DataSnapshot.child",t);var e=new N(t),n=this.Y.B(e);return new K(this.J.P(e),n,F)},K.prototype.child=K.prototype.B,K.prototype.$=function(t){G("Firebase.DataSnapshot.hasChild",1,1,arguments.length),ic("Firebase.DataSnapshot.hasChild",t);var e=new N(t);return!this.J.P(e).e()},K.prototype.hasChild=K.prototype.$,K.prototype.Q=function(){return G("Firebase.DataSnapshot.getPriority",0,0,arguments.length),this.J.Q().O()},K.prototype.getPriority=K.prototype.Q,K.prototype.forEach=function(t){if(G("Firebase.DataSnapshot.forEach",1,1,arguments.length),I("Firebase.DataSnapshot.forEach",1,t,!1),this.J.R())return!1;var e=this;return!!this.J.ga(this.G,function(n,i){return t(new K(i,e.Y.B(n),F))})},K.prototype.forEach=K.prototype.forEach,K.prototype.kd=function(){return G("Firebase.DataSnapshot.hasChildren",0,0,arguments.length),this.J.R()?!1:!this.J.e()},K.prototype.hasChildren=K.prototype.kd,K.prototype.name=function(){return G("Firebase.DataSnapshot.name",0,0,arguments.length),this.Y.name()},K.prototype.name=K.prototype.name,K.prototype.Za=function(){return G("Firebase.DataSnapshot.numChildren",0,0,arguments.length),this.J.Za()},K.prototype.numChildren=K.prototype.Za,K.prototype.bc=function(){return G("Firebase.DataSnapshot.ref",0,0,arguments.length),this.Y},K.prototype.ref=K.prototype.bc,od.prototype.Rd=function(t){for(var e=this.Bc[t]||[],n=0;n=t.length){var e=Number(t);if(!isNaN(e)){r.Oe=e,r.frames=[],t=null;break t}}r.Oe=1,r.frames=[]}null!==t&&Md(r,t)}},this.na.onerror=function(t){r.f("WebSocket error. Closing connection."),(t=t.message||t.data)&&r.f(t),r.$a()}},Jd.prototype.start=function(){},Jd.isAvailable=function(){var t=!1;if("undefined"!=typeof navigator&&navigator.userAgent){var e=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);e&&1parseFloat(e[1])&&(t=!0)}return!t&&null!==Id&&!Kd},Jd.responsesRequiredToBeHealthy=2,Jd.healthyTimeout=3e4,h=Jd.prototype,h.rd=function(){va.remove("previous_websocket_failure")},h.send=function(t){Ld(this),t=v(t),this.mb+=t.length,Bd(this.Ea,"bytes_sent",t.length),t=Bb(t,16384),1o.status){try{t=sa(o.responseText)}catch(e){}n(null,t)}else n(500<=o.status&&600>o.status?U("SERVER_ERROR"):U("NETWORK_ERROR"));n=null,$e(window,"beforeunload",i)}},"GET"===s)t+=(/\?/.test(t)?"":"?")+cf(e),r=null;else{var a=this.options.headers.content_type;"application/json"===a&&(r=v(e)),"application/x-www-form-urlencoded"===a&&(r=cf(e))}o.open(s,t,!0),t={"X-Requested-With":"XMLHttpRequest",Accept:"application/json;text/plain"},zd(t,this.options.headers);for(var h in t)o.setRequestHeader(h,t[h]);o.send(r)},gf.isAvailable=function(){return!!window.XMLHttpRequest&&"string"==typeof(new XMLHttpRequest).responseType&&(!(navigator.userAgent.match(/MSIE/)||navigator.userAgent.match(/Trident/))||ff())},gf.prototype.oc=function(){return"json"},hf.prototype.open=function(t,e,n){function i(){n&&(n(U("USER_CANCELLED")),n=null)}var r,o=this,s=ub(Te);e.requestId=this.Qc,e.redirectTo=s.scheme+"://"+s.host+"/blank/page.html",t+=/\?/.test(t)?"":"?",t+=cf(e),(r=window.open(t,"_blank","location=no"))&&ha(r.addEventListener)?(r.addEventListener("loadstart",function(t){var e;if(e=t&&t.url)t:{var s=t.url;try{var a=document.createElement("a");a.href=s,e=a.host===ub(Te).host&&"/blank/page.html"===a.pathname;break t}catch(h){}e=!1}e&&(t=bf(t.url),r.removeEventListener("exit",i),r.close(),t=new Ue(null,null,{requestId:o.Qc,requestKey:t}),o.lf.requestWithCredential("/auth/session",t,n),n=null)}),r.addEventListener("exit",i)):n(U("TRANSPORT_UNAVAILABLE"))},na("fb.login.transports.CordovaInAppBrowser.prototype.open",hf.prototype.open),hf.isAvailable=function(){return ef()},hf.prototype.oc=function(){return"redirect"},jf.prototype.open=function(t,e,n){function i(t){if(o&&(document.body.removeChild(o),o=void 0),c&&(c=clearInterval(c)),$e(window,"message",r),$e(window,"unload",i),u&&!t)try{u.close()}catch(e){s.postMessage("die",h)}u=s=void 0}function r(t){if(t.origin===h)try{var e=sa(t.data);"ready"===e.a?s.postMessage(l,h):"error"===e.a?(i(!1),n&&(n(e.d),n=null)):"response"===e.a&&(i(e.Ag),n&&(n(null,e.d),n=null))}catch(r){}}var o,s,a=ff(),h=af(t);if(h!==af(this.options.relay_url))n&&setTimeout(function(){n(Error("invalid arguments: origin of url and relay_url must match"))},0);else{a&&(o=document.createElement("iframe"),o.setAttribute("src",this.options.relay_url),o.style.display="none",o.setAttribute("name","__winchan_relay_frame"),document.body.appendChild(o),s=o.contentWindow),t+=(/\?/.test(t)?"":"?")+cf(e);var u=window.open(t,this.options.window_name,this.options.window_features);s||(s=u);var c=setInterval(function(){u&&u.closed&&(i(!1),n&&(n(U("USER_CANCELLED")),n=null))},500),l=v({a:"request",d:e});Ze(window,"unload",i),Ze(window,"message",r)}},na("fb.login.transports.Popup.prototype.open",jf.prototype.open),jf.isAvailable=function(){return"postMessage"in window&&!/^file:\//.test(location.href)&&!(ef()||navigator.userAgent.match(/Windows Phone/)||window.Windows&&/^ms-appx:/.test(location.href)||navigator.userAgent.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i)||navigator.userAgent.match(/CriOS/)||navigator.userAgent.match(/Twitter for iPhone/)||navigator.userAgent.match(/FBAN\/FBIOS/)||window.navigator.standalone)&&!navigator.userAgent.match(/PhantomJS/)},jf.prototype.oc=function(){return"popup"},kf.prototype.open=function(t,e,n){function i(){n&&(n(U("REQUEST_INTERRUPTED")),n=null)}function r(){setTimeout(function(){delete window.__firebase_auth_jsonp[o],wd(window.__firebase_auth_jsonp)&&delete window.__firebase_auth_jsonp;try{var t=document.getElementById(o);t&&t.parentNode.removeChild(t)}catch(e){}},1),$e(window,"beforeunload",i)}var o="fn"+(new Date).getTime()+Math.floor(99999*Math.random());e[this.options.callback_parameter]="__firebase_auth_jsonp."+o,t+=(/\?/.test(t)?"":"?")+cf(e),Ze(window,"beforeunload",i),window.__firebase_auth_jsonp[o]=function(t){n&&(n(null,t),n=null),r()},lf(o,t,n)},kf.isAvailable=function(){return!ef()},kf.prototype.oc=function(){return"json"},mf.prototype.set=function(t,e){if(!e){if(!this.Md.length)throw Error("fb.login.SessionManager : No storage options available!");e=this.Md[0]}e.set(this.Ee,t)},mf.prototype.get=function(){var t=Ma(this.Md,q(this.Sf,this)),t=La(t,function(t){return null!==t});return Ua(t,function(t,e){return qe(e.token)-qe(t.token)}),0=i(o,n)&&(o=T(r));o;)t=t.w(o.name,E),o=T(r);return t},oa(Rf,Qf),Rf.prototype.ya=function(t,e,n,i){if(e.type===Mf&&e.source.ke){var r=e.path,o=e.children,s=W(t);if(s&&r.e()&&ud(o,function(t,e){return s.$(e)})){var a;return(e=n.za(i||t.k||t.g))?a=this.n(this.X(e)):(a=s||E,A(o,function(t,e){a=a.w(e,t)}),a=this.n(this.X(a))),t.o?new X(t.k,t.g,a,null):new X(t.k,t.g,null,a)}}return Rf.Ne.ya.call(this,t,e,n,i)},Rf.prototype.n=function(t){if(Pf(this,t),t.R())return E;var e,n,i;if(2*this.wb=o(r,n)&&it?-1:1}),dg=new bg(null);h=bg.prototype,h.e=function(){return null===this.value&&this.children.e()},h.subtree=function(t){if(t.e())return this;var e=this.children.get(J(t));return null!==e?e.subtree(Q(t)):dg},h.set=function(t,e){if(t.e())return new bg(e,this.children);var n=J(t),i=(this.children.get(n)||dg).set(Q(t),e),n=this.children.La(n,i);return new bg(this.value,n)},h.remove=function(t){if(t.e())return this.children.e()?dg:new bg(null,this.children);var e=J(t),n=this.children.get(e);return n?(t=n.remove(Q(t)),e=t.e()?this.children.remove(e):this.children.La(e,t),null===this.value&&e.e()?dg:new bg(this.value,e)):this},h.get=function(t){if(t.e())return this.value;var e=this.children.get(J(t));return e?e.get(Q(t)):null},h=qg.prototype,h.e=function(){return wd(this.xa)},h.ya=function(t,e,n){var i=t.source.Nc;if(null!==i)return i=u(this.xa,i),x(null!=i,"SyncTree gave us an op for an invalid query."),i.ya(t,e,n);var r=[];return A(this.xa,function(i){r=r.concat(i.ya(t,e,n))}),r},h.Fb=function(t,e,n,i,r){var o=t.Da(),s=u(this.xa,o);return s||(n=(s=n.za(i))?null:n.$d(r),i=new X(i,r,s,n),s=new Zf(t,i),this.xa[o]=s),s.Fb(e),t=s,(o=W(t.la))?(i=Gf(t.ed,ag,t.la,R),e=Wf(t.Ye,i,o,e?[e]:t.Ka)):e=[],e},h.eb=function(t,e,n){var i=t.Da(),r=[],o=[],s=null!=rg(this);if("default"===i){var a=this;A(this.xa,function(t,i){o=o.concat(t.eb(e,n)),t.e()&&(delete a.xa[i],Xb(t.Y.C)||r.push(t.Y))})}else{var h=u(this.xa,i);h&&(o=o.concat(h.eb(e,n)),h.e()&&(delete this.xa[i],Xb(h.Y.C)||r.push(h.Y)))}return s&&null==rg(this)&&r.push(new M(t.j,t.path)),{lg:r,Pf:o}},h.ma=function(t){var e=rg(this);return null!=e&&(e=e.ma())?e.P(t):null},h=ug.prototype,h.Kb=function(t){var e=fg(this.V,t);if(e){var n=e.value;return t=S(e.path,t),n.P(t)}return null},h.za=function(t,e,n,i){var r,o;return n||i?(r=this.V.subtree(t),!i&&r.e()?e:i||null!==e||null!==r.value?(r=yg(this.pa,function(e){return!(!e.visible&&!i||n&&0<=Ja(n,e.Ud)||!e.path.contains(t)&&!t.contains(e.path))},t),o=e||E,ng(r,function(t,e){o=o.u(t,e)}),o):null):(r=fg(this.V,t))?(e=S(r.path,t),r.value.P(e)):(r=this.V.subtree(t),r.e()?e:e||r.value?(o=e||E,ng(r,function(t,e){o=o.u(t,e)}),o):null)},h.$d=function(t,e){var n=!1,i=E,r=this.Kb(t);return r?(r.R()||r.ga(F,function(t,e){i=i.w(t,e)}),i):e?(i=e,pg(this.V.subtree(t),function(t,e){i=i.w(t,e)}),i):(pg(this.V.subtree(t),function(t,e){n=!0,i=i.w(t,e)}),n?i:null)},h.Wa=function(t,e,n,i){if(x(n||i,"Either existingEventSnap or existingServerSnap must exist"),t=t.B(e),fg(this.V,t))return null;if(t=this.V.subtree(t),t.e())return i.P(e);var r,o;return n?(r=!1,o=n.P(e)):(r=!0,o=i.P(e)),ng(t,function(t,e){r||o.P(t).aa(e)||(r=!0),r&&(o=o.u(t,e))}),r?o:null},h.ae=function(t,e,n,i){if(x(i,"We should have an event cache already."),t=t.B(e),fg(this.V,t))return null;var r=i.P(e),o=!1,s=this.V.subtree(t);return A(n,function(t,e){var n=new N(e),i=fg(s,n);if(i){var a=S(i.path,n),i=i.value.P(a);r=r.u(n,i)}else if(o=!0,i=s.subtree(n),i.e())r=r.u(n,t);else{var h=t;ng(i,function(t,e){h=h.u(t,e)}),r=r.u(n,h)}}),o?r:null},h.be=function(t,e,n,i,r,o){var s;if(t=this.V.subtree(t),t.value?s=t.value:e&&(s=e,ng(t,function(t,e){s=s.u(t,e)})),s){for(e=[],t=Kb(F),r=r?s.Ob(n,o):s.rb(n,o),o=T(r);o&&e.lengthr.zc,"Stacking an older write on top of newer ones"),m(o)||(o=!0),r.pa.push({path:t,Qa:e,Ud:n,visible:o}),o&&(r.V=Ag(r.V,t,e)),r.zc=n,i?Kg(this,new Dg(Fg,t,e)):[]},h.Yd=function(t,e,n){var i=this.bb;return x(n>i.zc,"Stacking an older merge on top of newer ones"),i.pa.push({path:t,children:e,Ud:n,visible:!0}),i.V=Bg(i.V,t,e),i.zc=n,Kg(this,new Gg(Fg,t,e))},h.Ga=function(t,e){e=e||!1;var n=vg(this.bb,t);return null==n?[]:Kg(this,new Eg(n,e))},h.jb=function(t,e){return Kg(this,new Dg(Ig,t,e))},h.Xd=function(t,e){return Kg(this,new Gg(Ig,t,e))},h.Fb=function(t,e){var n=t.path,i=null,r=!1;lg(this.ja,n,function(t,e){var o=S(t,n);return i=e.ma(o),r=r||null!=rg(e),!i});var o=this.ja.get(n);o?(r=r||null!=rg(o),i=i||o.ma(R)):(o=new qg,this.ja=this.ja.set(n,o));var s=null;if(!i){var a=!1,s=E;pg(this.ja.subtree(n),function(t,e){var n=e.ma(R);n&&(a=!0,s=s.w(t,n))}),a||(s=null)}var h=null!=tg(o,t);if(!h&&!Xb(t.C)){var u=Og(t);x(!(u in this.ac),"View does not exist, but we have a tag");var c=Pg++;this.ac[u]=c,this.Nd["_"+c]=u}return u=o.Fb(t,e,new Cg(n,this.bb),i,s),h||r||(o=tg(o,t),u=u.concat(Qg(this,t,o))),u},h.eb=function(t,e,n){var i=t.path,r=this.ja.get(i),o=[];if(r&&("default"===t.Da()||null!=tg(r,t))){o=r.eb(t,e,n),r.e()&&(this.ja=this.ja.remove(i)),r=o.lg,o=o.Pf,e=-1!==Qa(r,function(t){return Xb(t.C)});var s=jg(this.ja,i,function(t,e){return null!=rg(e)});if(e&&!s&&(i=this.ja.subtree(i),!i.e()))for(var i=Rg(i),a=0;ar;r++)e+=" ";console.log(e+i)}}},h.Le=function(t){Bd(this.Ea,t),this.wf.Me[t]=!0},h.f=function(){kb("r:"+this.U.id+":",arguments)},ca(rh),rh.prototype.tb=function(){for(var t in this.dc)this.dc[t].tb()},rh.prototype.interrupt=rh.prototype.tb,rh.prototype.ec=function(){for(var t in this.dc)this.dc[t].ec()},rh.prototype.resume=rh.prototype.ec,sh.prototype.Zb=function(t){var e,n=this;try{e=sa(t.data)}catch(i){}e&&"request"===e.a&&($e(window,"message",this.Zb),this.Od=t.origin,this.nc&&setTimeout(function(){n.nc(n.Od,e.d,function(t,e){n.If=!e,n.nc=void 0,th(n,{a:"response",d:t,forceKeepWindowOpen:e})})},0))},sh.prototype.dg=function(){try{$e(this.nd,"message",this.jf)}catch(t){}this.nc&&(th(this,{a:"error",d:"unknown closed window"}),this.nc=void 0);try{window.close()}catch(e){}},sh.prototype.jf=function(t){if(this.If&&"die"===t.data)try{window.close()}catch(e){}};var Y={Qf:function(){Td=Kd=!0}};Y.forceLongPolling=Y.Qf,Y.Rf=function(){Ud=!0},Y.forceWebSockets=Y.Rf,Y.rg=function(t,e){t.j.U.Ie=e},Y.setSecurityDebugCallback=Y.rg,Y.Ke=function(t,e){t.j.Ke(e)},Y.stats=Y.Ke,Y.Le=function(t,e){t.j.Le(e)},Y.statsIncrementCounter=Y.Le,Y.cd=function(t){return t.j.cd},Y.dataUpdateCount=Y.cd,Y.Uf=function(t,e){t.j.pe=e},Y.interceptServerData=Y.Uf,Y.ag=function(t){new sh(t)},Y.onPopupOpen=Y.ag,Y.og=function(t){Te=t},Y.setAuthenticationServer=Y.og,Z.prototype.cancel=function(t){G("Firebase.onDisconnect().cancel",0,1,arguments.length),I("Firebase.onDisconnect().cancel",1,t,!0),this.Oc.Ae(this.Ca,t||null)},Z.prototype.cancel=Z.prototype.cancel,Z.prototype.remove=function(t){G("Firebase.onDisconnect().remove",0,1,arguments.length),jc("Firebase.onDisconnect().remove",this.Ca),I("Firebase.onDisconnect().remove",1,t,!0),eh(this.Oc,this.Ca,null,t)},Z.prototype.remove=Z.prototype.remove,Z.prototype.set=function(t,e){G("Firebase.onDisconnect().set",1,2,arguments.length),jc("Firebase.onDisconnect().set",this.Ca),bc("Firebase.onDisconnect().set",t,!1),I("Firebase.onDisconnect().set",2,e,!0),eh(this.Oc,this.Ca,t,e)},Z.prototype.set=Z.prototype.set,Z.prototype.Db=function(t,e,n){G("Firebase.onDisconnect().setWithPriority",2,3,arguments.length),jc("Firebase.onDisconnect().setWithPriority",this.Ca),bc("Firebase.onDisconnect().setWithPriority",t,!1),fc("Firebase.onDisconnect().setWithPriority",2,e,!1),I("Firebase.onDisconnect().setWithPriority",3,n,!0),fh(this.Oc,this.Ca,t,e,n)},Z.prototype.setWithPriority=Z.prototype.Db,Z.prototype.update=function(t,e){if(G("Firebase.onDisconnect().update",1,2,arguments.length),jc("Firebase.onDisconnect().update",this.Ca),ea(t)){for(var n={},i=0;i=0;o--)r[o]="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".charAt(n%64),n=Math.floor(n/64);if(x(0===n,"Cannot push at time == 0"),n=r.join(""),i){for(o=11;o>=0&&63===e[o];o--)e[o]=0;e[o]++}else for(o=0;12>o;o++)e[o]=Math.floor(64*Math.random());for(o=0;12>o;o++)n+="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".charAt(e[o]);return x(20===n.length,"NextPushId: Length should be 20."),n}}();oa(M,L),na("Firebase",M),M.prototype.name=function(){G("Firebase.name",0,0,arguments.length);var t;return this.path.e()?t=null:(t=this.path,t=t.dan;n++)e=e.concat(t[n]);return e}function r(t,e,n){if(!t.length)return n();var i=0;!function r(){e(t[i],function(e){e||e===!1?(n(e),n=function(){}):(i+=1,i===t.length?n():r())})}()}function o(t,e,n){n=t;for(var i in e)if(e.hasOwnProperty(i)&&(n=e[i](t),n!==t))break;return n===t?"([._a-zA-Z0-9-%()]+)":n}function a(t,e){for(var n,i=0,r="";n=t.substr(i).match(/[^\w\d\- %@&]*\*[^\w\d\- %@&]*/);)i=n.index+n[0].length,n[0]=n[0].replace(/^\*/,"([_.()!\\ %@&a-zA-Z0-9-]+)"),r+=t.substr(0,n.index)+n[0];t=r+=t.substr(i);var a,s,h=t.match(/:([^\/]+)/gi);if(h){s=h.length;for(var u=0;s>u;u++)a=h[u],t="::"===a.slice(0,2)?a.slice(1):t.replace(a,o(a,e))}return t}function h(t,e,n,i){var r,o=0,a=0,s=0,n=(n||"(").toString(),i=(i||")").toString();for(r=0;rh.indexOf(i,o)||~h.indexOf(n,o)&&!~h.indexOf(i,o)||!~h.indexOf(n,o)&&~h.indexOf(i,o)){if(a=h.indexOf(n,o),s=h.indexOf(i,o),~a&&!~s||!~a&&~s){var u=t.slice(0,(r||1)+1).join(e);t=[u].concat(t.slice((r||1)+1))}o=(s>a?s:a)+1,r=0}else o=0}return t}var u=document.location,c={mode:"modern",hash:u.hash,history:!1,check:function(){var t=u.hash;t!=this.hash&&(this.hash=t,this.onHashChanged())},fire:function(){"modern"===this.mode?this.history===!0?window.onpopstate():window.onhashchange():this.onHashChanged()},init:function(t,e){function n(t){for(var e=0,n=l.listeners.length;n>e;e++)l.listeners[e](t)}var i=this;if(this.history=e,l.listeners||(l.listeners=[]),"onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7))this.history===!0?setTimeout(function(){window.onpopstate=n},500):window.onhashchange=n,this.mode="modern";else{var r=document.createElement("iframe");r.id="state-frame",r.style.display="none",document.body.appendChild(r),this.writeFrame(""),"onpropertychange"in document&&"attachEvent"in document&&document.attachEvent("onpropertychange",function(){"location"===event.propertyName&&i.check()}),window.setInterval(function(){i.check()},50),this.onHashChanged=n,this.mode="legacy"}return l.listeners.push(t),this.mode},destroy:function(t){if(l&&l.listeners)for(var e=l.listeners,n=e.length-1;n>=0;n--)e[n]===t&&e.splice(n,1)},setHash:function(t){return"legacy"===this.mode&&this.writeFrame(t),this.history===!0?(window.history.pushState({},document.title,t),this.fire()):u.hash="/"===t[0]?t:"/"+t,this},writeFrame:function(t){var e=document.getElementById("state-frame"),n=e.contentDocument||e.contentWindow.document;n.open(),n.write("'),t=""+t+"";try{this.Ca.gb.open(),this.Ca.gb.write(t),this.Ca.gb.close()}catch(o){Bb("frame writing exception"),o.stack&&Bb(o.stack),Bb(o)}}function $g(t){if(t.ke&&t.Td&&t.Oe.count()<(0=t.$c[0].jf.length+30+n.length;){var r=t.$c.shift(),n=n+"&seg"+i+"="+r.Jg+"&ts"+i+"="+r.Rg+"&d"+i+"="+r.jf;i++}return ah(t,e+n,t.se),!0}return!1}function ah(t,e,n){function i(){t.Oe.remove(n),$g(t)}t.Oe.add(n,1);var r=setTimeout(i,Math.floor(25e3));Zg(t,e,function(){clearTimeout(r),i()})}function Zg(t,e,n){setTimeout(function(){try{if(t.Td){var i=t.Ca.gb.createElement("script");i.type="text/javascript",i.async=!0,i.src=e,i.onload=i.onreadystatechange=function(){var t=i.readyState;t&&"loaded"!==t&&"complete"!==t||(i.onload=i.onreadystatechange=null,i.parentNode&&i.parentNode.removeChild(i),n())},i.onerror=function(){Bb("Long-poll script failed to load: "+e),t.Td=!1,t.close()},t.Ca.gb.body.appendChild(i)}}catch(r){}},Math.floor(1))}function ch(t,e,n){this.qe=t,this.f=Oc(this.qe),this.frames=this.Jc=null,this.ob=this.pb=this.bf=0,this.Va=Ob(e),this.fb=(e.lb?"wss://":"ws://")+e.Oa+"/.ws?v=5","undefined"!=typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(this.fb+="&r=f"),e.host!==e.Oa&&(this.fb=this.fb+"&ns="+e.Cb),n&&(this.fb=this.fb+"&s="+n)}function fh(t,e){if(t.frames.push(e),t.frames.length==t.bf){var n=t.frames.join("");t.frames=null,n=mb(n),t.wg(n)}}function eh(t){clearInterval(t.Jc),t.Jc=setInterval(function(){t.va&&t.va.send("0"),eh(t)},Math.floor(45e3))}function gh(t){hh(this,t)}function hh(t,e){var n=ch&&ch.isAvailable(),i=n&&!(Dc.uf||!0===Dc.get("previous_websocket_failure"));if(e.Tg&&(n||Q("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),i=!0),i)t.ed=[ch];else{var r=t.ed=[];Yc(ih,function(t,e){e&&e.isAvailable()&&r.push(e)})}}function jh(t){if(00&&(t.vd=setTimeout(function(){t.vd=null,t.Ab||(t.L&&102400=t.Lf?(t.f("Secondary connection is healthy."),t.Ab=!0,t.F.Bd(),t.F.start(),t.f("sending client ack on secondary"),t.F.send({t:"c",d:{t:"a",d:{}}}),t.f("Ending transmission on primary"),t.L.send({t:"c",d:{t:"n",d:{}}}),t.fd=t.F,qh(t)):(t.f("sending ping on secondary."),t.F.send({t:"c",d:{t:"p",d:{}}}))}function sh(t){t.Ab||(t.Qe--,0>=t.Qe&&(t.f("Primary connection is healthy."),t.Ab=!0,t.L.Bd()))}function ph(t,e){t.F=new e("c:"+t.id+":"+t.ef++,t.H,t.Vd),t.Lf=e.responsesRequiredToBeHealthy||0,t.F.open(mh(t,t.F),nh(t,t.F)),setTimeout(function(){t.F&&(t.f("Timed out trying to upgrade."),t.F.close())},Math.floor(6e4))}function oh(t,e,n){t.f("Realtime connection established."),t.L=e,t.Ua=1,t.Vc&&(t.Vc(n),t.Vc=null),0===t.Qe?(t.f("Primary connection is healthy."),t.Ab=!0):setTimeout(function(){th(t)},Math.floor(5e3))}function th(t){t.Ab||1!==t.Ua||(t.f("sending ping on primary."),vh(t,{t:"c",d:{t:"p",d:{}}}))}function vh(t,e){if(1!==t.Ua)throw"Connection is not connected";t.fd.send(e)}function rh(t){t.f("Shutting down all connections"),t.L&&(t.L.close(),t.L=null),t.F&&(t.F.close(),t.F=null),t.vd&&(clearTimeout(t.vd),t.vd=null)}function wh(t,e,n,i){this.id=xh++,this.f=Oc("p:"+this.id+":"),this.wf=this.De=!1,this.aa={},this.pa=[],this.Xc=0,this.Uc=[],this.ma=!1,this.$a=1e3,this.Cd=3e5,this.Gb=e,this.Tc=n,this.Ne=i,this.H=t,this.We=null,this.Qd={},this.Ig=0,this.mf=!0,this.Kc=this.Fe=null,yh(this,0),Mf.ub().Eb("visible",this.zg,this),-1===t.host.indexOf("fblocal")&&Lf.ub().Eb("online",this.xg,this)}function Ah(t,e){var n=e.Fg,i=n.path.toString(),r=n.wa();t.f("Listen on "+i+" for "+r);var o={p:i};e.tag&&(o.q=ce(n.n),o.t=e.tag),o.h=e.ud(),t.Da("q",o,function(o){var a=o.d,s=o.s;if(a&&"object"==typeof a&&u(a,"w")){var h=w(a,"w");ea(h)&&0<=Na(h,"no_index")&&Q("Using an unspecified index. Consider adding "+('".indexOn": "'+n.n.g.toString()+'"')+" at "+n.path.toString()+" to your security rules for better performance")}(t.aa[i]&&t.aa[i][r])===e&&(t.f("listen response",o),"ok"!==s&&Bh(t,i,r),e.J&&e.J(s,a))})}function Ch(t){var e=t.Fa;t.ma&&e&&t.Da("auth",{cred:e.fg},function(n){var i=n.s;n=n.d||"error","ok"!==i&&t.Fa===e&&delete t.Fa,e.nf?"ok"!==i&&e.jd&&e.jd(i,n):(e.nf=!0,e.yc&&e.yc(i,n))})}function Dh(t,e,n,i,r){n={p:n,d:i},t.f("onDisconnect "+e,n),t.Da(e,n,function(t){r&&setTimeout(function(){r(t.s,t.d)},Math.floor(0))})}function Eh(t,e,i,r,o,a){r={p:i,d:r},n(a)&&(r.h=a),t.pa.push({action:e,If:r,J:o}),t.Xc++,e=t.pa.length-1,t.ma?Fh(t,e):t.f("Buffering put: "+i)}function Fh(t,e){var n=t.pa[e].action,i=t.pa[e].If,r=t.pa[e].J;t.pa[e].Gg=t.ma,t.Da(n,i,function(i){t.f(n+" response",i),delete t.pa[e],t.Xc--,0===t.Xc&&(t.pa=[]),r&&r(i.s,i.d)})}function yh(t,e){J(!t.Sa,"Scheduling a connect when we're already connected/ing?"),t.Sb&&clearTimeout(t.Sb),t.Sb=setTimeout(function(){t.Sb=null,Ih(t)},Math.floor(e))}function Ih(t){if(Jh(t)){t.f("Making a connection attempt"),t.Fe=(new Date).getTime(),t.Kc=null;var e=q(t.Fd,t),n=q(t.Vc,t),i=q(t.Cf,t),r=t.id+":"+zh++;t.Sa=new kh(r,t.H,e,n,i,function(e){Q(e+" ("+t.H.toString()+")"),t.wf=!0})}}function Gh(t,e,n){n=n?Qa(n,function(t){return Wc(t)}).join("$"):"default",(t=Bh(t,e,n))&&t.J&&t.J("permission_denied")}function Bh(t,e,i){e=new K(e).toString();var r;return n(t.aa[e])?(r=t.aa[e][i],delete t.aa[e][i],0===pa(t.aa[e])&&delete t.aa[e]):r=void 0,r}function Hh(t){Ch(t),r(t.aa,function(e){r(e,function(e){Ah(t,e)})});for(var e=0;e.firebaseio.com instead"),n||Qc("Cannot parse Firebase url. Please use https://.firebaseio.com"),i.lb||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&Q("Insecure Firebase access from a secure page. Please use https in calls to new Firebase()."),n=new Ec(i.host,i.lb,n,"ws"===i.scheme||"wss"===i.scheme),i=new K(i.Zc),r=i.toString();var o;if(!(o=!p(n.host)||0===n.host.length||!Pf(n.Cb))&&(o=0!==r.length)&&(r&&(r=r.replace(/^\/*\.info(\/|$)/,"/")),o=!(p(r)&&0!==r.length&&!Of.test(r))),o)throw Error(z("new Firebase",1,!1)+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".');if(e)if(e instanceof W)r=e;else{if(!p(e))throw Error("Expected a valid Firebase.Context for second argument to new Firebase()");r=W.ub(),n.Ld=e}else r=W.ub();o=n.toString();var a=w(r.nc,o);a||(a=new Kh(n,r.Pf),r.nc[o]=a),n=a}Y.call(this,n,i,$d,!1)}function Nc(t,e){J(!e||!0===t||!1===t,"Can't turn on custom loggers persistently."),!0===t?("undefined"!=typeof console&&("function"==typeof console.log?Ab=q(console.log,console):"object"==typeof console.log&&(Ab=function(t){console.log(t)})),e&&P.set("logging_enabled",!0)):t?Ab=t:(Ab=null,P.remove("logging_enabled"))}var h,aa=this,la=Date.now||function(){return+new Date},ya="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Ea={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"," ":"\\u000b"},Fa=/\uffff/.test("ï¿¿")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,Ha;t:{var Ia=aa.navigator;if(Ia){var Ja=Ia.userAgent;if(Ja){Ha=Ja;break t}}Ha=""}ma(La,Ka),La.prototype.reset=function(){this.R[0]=1732584193,this.R[1]=4023233417,this.R[2]=2562383102,this.R[3]=271733878,this.R[4]=3285377520,this.be=this.$b=0},La.prototype.update=function(t,e){if(null!=t){n(e)||(e=t.length);for(var i=e-this.Wa,r=0,o=this.le,a=this.$b;e>r;){if(0==a)for(;i>=r;)Ma(this,t,r),r+=this.Wa;if(p(t)){for(;e>r;)if(o[a]=t.charCodeAt(r),++a,++r,a==this.Wa){Ma(this,o),a=0;break}}else for(;e>r;)if(o[a]=t[r],++a,++r,a==this.Wa){Ma(this,o),a=0;break}}this.$b=a,this.be+=e}};var t=Array.prototype,Na=t.indexOf?function(e,n,i){return t.indexOf.call(e,n,i)}:function(t,e,n){if(n=null==n?0:0>n?Math.max(0,t.length+n):n,p(t))return p(e)&&1==e.length?t.indexOf(e,n):-1;for(;no;o++)o in r&&e.call(n,r[o],o,t)},Pa=t.filter?function(e,n,i){return t.filter.call(e,n,i)}:function(t,e,n){for(var i=t.length,r=[],o=0,a=p(t)?t.split(""):t,s=0;i>s;s++)if(s in a){var h=a[s];e.call(n,h,s,t)&&(r[o++]=h)}return r},Qa=t.map?function(e,n,i){return t.map.call(e,n,i)}:function(t,e,n){for(var i=t.length,r=Array(i),o=p(t)?t.split(""):t,a=0;i>a;a++)a in o&&(r[a]=e.call(n,o[a],a,t));return r},Ra=t.reduce?function(e,n,i,r){for(var o=[],a=1,s=arguments.length;s>a;a++)o.push(arguments[a]);return r&&(o[0]=q(n,r)),t.reduce.apply(e,o)}:function(t,e,n,i){var r=n;return Oa(t,function(n,o){r=e.call(i,r,n,o,t)}),r},Sa=t.every?function(e,n,i){return t.every.call(e,n,i)}:function(t,e,n){for(var i=t.length,r=p(t)?t.split(""):t,o=0;i>o;o++)if(o in r&&!e.call(n,r[o],o,t))return!1;return!0},Za=-1!=Ha.indexOf("Opera")||-1!=Ha.indexOf("OPR"),$a=-1!=Ha.indexOf("Trident")||-1!=Ha.indexOf("MSIE"),ab=-1!=Ha.indexOf("Gecko")&&-1==Ha.toLowerCase().indexOf("webkit")&&!(-1!=Ha.indexOf("Trident")||-1!=Ha.indexOf("MSIE")),bb=-1!=Ha.toLowerCase().indexOf("webkit");!function(){var t,e="";return Za&&aa.opera?(e=aa.opera.version,ha(e)?e():e):(ab?t=/rv\:([^\);]+)(\)|;)/:$a?t=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:bb&&(t=/WebKit\/(\S+)/),t&&(e=(e=t.exec(Ha))?e[1]:""),$a&&(t=(t=aa.document)?t.documentMode:void 0,t>parseFloat(e))?String(t):e)}();var cb=null,db=null,eb=null;nb.prototype.j=function(t){return this.Sd.oa(t)},nb.prototype.toString=function(){return this.Sd.toString()},ob.prototype.pf=function(){return null},ob.prototype.xe=function(){return null};var pb=new ob;qb.prototype.pf=function(t){var e=this.Ka.D;return rb(e,t)?e.j().M(t):(e=null!=this.Hd?new sb(this.Hd,!0,!1):this.Ka.u(),this.Qf.Xa(t,e))},qb.prototype.xe=function(t,e,n){var i=null!=this.Hd?this.Hd:tb(this.Ka);return t=this.Qf.me(i,e,1,n,t),0===t.length?null:t[0]},wb.prototype.add=function(t){this.sd.push(t)},wb.prototype.Yb=function(){return this.qa};var Eb="value";Fb.prototype.Yb=function(){var t=this.Wd.lc();return"value"===this.rd?t.path:t.parent().path},Fb.prototype.ye=function(){return this.rd},Fb.prototype.Ub=function(){return this.te.Ub(this)},Fb.prototype.toString=function(){return this.Yb().toString()+":"+this.rd+":"+B(this.Wd.lf())},Gb.prototype.Yb=function(){return this.path},Gb.prototype.ye=function(){return"cancel"},Gb.prototype.Ub=function(){return this.te.Ub(this)},Gb.prototype.toString=function(){return this.path.toString()+":cancel"},sb.prototype.j=function(){return this.B},Ib.prototype.get=function(){var t=this.dg.get(),e=xa(t);if(this.Ad)for(var n in this.Ad)e[n]-=this.Ad[n];return this.Ad=t,e},Jb.prototype.Hf=function(){var t,e=this.Yd.get(),n={},i=!1;for(t in e)0e?n=n.left:e>0&&(n=n.right)}return null},h.e=function(){return this.xa.e()},h.count=function(){return this.xa.count()},h.Rc=function(){return this.xa.Rc()},h.ec=function(){return this.xa.ec()},h.ha=function(t){return this.xa.ha(t)},h.Wb=function(t){return new dc(this.xa,null,this.La,!1,t)},h.Xb=function(t,e){return new dc(this.xa,t,this.La,!1,e)},h.Zb=function(t,e){return new dc(this.xa,t,this.La,!0,e)},h.rf=function(t){return new dc(this.xa,null,this.La,!0,t)},h=fc.prototype,h.X=function(t,e,n,i,r){return new fc(null!=t?t:this.key,null!=e?e:this.value,null!=n?n:this.color,null!=i?i:this.left,null!=r?r:this.right)},h.count=function(){return this.left.count()+1+this.right.count()},h.e=function(){return!1},h.ha=function(t){return this.left.ha(t)||t(this.key,this.value)||this.right.ha(t)},h.Rc=function(){return gc(this).key},h.ec=function(){return this.right.e()?this.key:this.right.ec()},h.Na=function(t,e,n){var i,r;return r=this,i=n(t,r.key),r=0>i?r.X(null,null,null,r.left.Na(t,e,n),null):0===i?r.X(null,e,null,null,null):r.X(null,null,null,null,r.right.Na(t,e,n)),hc(r)},h.remove=function(t,e){var n,i;if(n=this,0>e(t,n.key))n.left.e()||n.left.fa()||n.left.left.fa()||(n=jc(n)),n=n.X(null,null,null,n.left.remove(t,e),null);else{if(n.left.fa()&&(n=kc(n)),n.right.e()||n.right.fa()||n.right.left.fa()||(n=lc(n),n.left.left.fa()&&(n=kc(n),n=lc(n))),0===e(t,n.key)){if(n.right.e())return bc;i=gc(n.right),n=n.X(i.key,i.value,null,null,ic(n.right))}n=n.X(null,null,null,null,n.right.remove(t,e))}return hc(n)},h.fa=function(){return this.color},h=nc.prototype,h.X=function(){return this},h.Na=function(t,e){return new fc(t,e,null)},h.remove=function(){return this},h.count=function(){return 0},h.e=function(){return!0},h.ha=function(){return!1},h.Rc=function(){return null},h.ec=function(){return null},h.fa=function(){return!1};var bc=new nc;h=K.prototype,h.toString=function(){for(var t="",e=this.Y;e=this.o.length)return null;for(var t=[],e=this.Y;e=this.o.length},h.Z=function(t){if(uc(this)!==uc(t))return!1;for(var e=this.Y,n=t.Y;e<=this.o.length;e++,n++)if(this.o[e]!==t.o[n])return!1;return!0},h.contains=function(t){var e=this.Y,n=t.Y;if(uc(this)>uc(t))return!1;for(;e"),t};var Gc=function(){var t=1;return function(){return t++}}(),Ab=null,Mc=!0,$c=/^-?\d{1,10}$/;dd.prototype.eg=function(t,e){if(null==t.Ya||null==e.Ya)throw Hc("Should only compare child_ events.");return this.g.compare(new E(t.Ya,t.Ja),new E(e.Ya,e.Ja))},h=jd.prototype,h.Jf=function(t){return"value"===t},h.createEvent=function(t,e){var n=e.n.g;return new Fb("value",this,new S(t.Ja,e.lc(),n))},h.Ub=function(t){var e=this.sb;if("cancel"===t.ye()){J(this.qb,"Raising a cancel event on a listener with no cancel callback");var n=this.qb;return function(){n.call(e,t.error)}}var i=this.Pb;return function(){i.call(e,t.Wd)}},h.ff=function(t,e){return this.qb?new Gb(this,t,e):null},h.matches=function(t){return t instanceof jd?t.Pb&&this.Pb?t.Pb===this.Pb&&t.sb===this.sb:!0:!1},h.sf=function(){return null!==this.Pb},h=kd.prototype,h.Jf=function(t){return t="children_added"===t?"child_added":t,("children_removed"===t?"child_removed":t)in this.ga},h.ff=function(t,e){return this.qb?new Gb(this,t,e):null},h.createEvent=function(t,e){J(null!=t.Ya,"Child events should have a childName.");var n=e.lc().w(t.Ya);return new Fb(t.type,this,new S(t.Ja,n,e.n.g),t.Nd)},h.Ub=function(t){var e=this.sb;if("cancel"===t.ye()){J(this.qb,"Raising a cancel event on a listener with no cancel callback");var n=this.qb;return function(){n.call(e,t.error)}}var i=this.ga[t.rd];return function(){i.call(e,t.Wd,t.Nd)}},h.matches=function(t){if(t instanceof kd){if(!this.ga||!t.ga)return!0;if(this.sb===t.sb){var e=pa(t.ga);if(e===pa(this.ga)){if(1===e){var e=qa(t.ga),n=qa(this.ga);return!(n!==e||t.ga[e]&&this.ga[n]&&t.ga[e]!==this.ga[n])}return oa(this.ga,function(e,n){return t.ga[n]===e})}}}return!1},h.sf=function(){return null!==this.ga},h=ld.prototype,h.G=function(t,e,n,i,r){return J(t.Ic(this.g),"A node must be indexed if only a child is updated"),i=t.M(e),i.Z(n)?t:(null!=r&&(n.e()?t.Ha(e)?id(r,new D("child_removed",i,e)):J(t.N(),"A child remove without an old child only makes sense on a leaf node"):i.e()?id(r,new D("child_added",n,e)):id(r,new D("child_changed",n,e,i))),t.N()&&n.e()?t:t.Q(e,n).mb(this.g))},h.ta=function(t,e,n){return null!=n&&(t.N()||t.U(M,function(t,i){e.Ha(t)||id(n,new D("child_removed",i,t))}),e.N()||e.U(M,function(e,i){if(t.Ha(e)){var r=t.M(e);r.Z(i)||id(n,new D("child_changed",i,e,r))}else id(n,new D("child_added",i,e))})),e.mb(this.g)},h.da=function(t,e){return t.e()?C:t.da(e)},h.Ga=function(){return!1},h.Vb=function(){return this},h=md.prototype,h.matches=function(t){return 0>=this.g.compare(this.dd,t)&&0>=this.g.compare(t,this.Fc)},h.G=function(t,e,n,i,r){return this.matches(new E(e,n))||(n=C),this.Ae.G(t,e,n,i,r)},h.ta=function(t,e,n){e.N()&&(e=C);var i=e.mb(this.g),i=i.da(C),r=this;return e.U(M,function(t,e){r.matches(new E(t,e))||(i=i.Q(t,C))}),this.Ae.ta(t,i,n)},h.da=function(t){return t},h.Ga=function(){return!0},h.Vb=function(){return this.Ae},h=rd.prototype,h.G=function(t,e,n,i,r){return this.ra.matches(new E(e,n))||(n=C),t.M(e).Z(n)?t:t.Db()=this.g.compare(this.ra.dd,a):0>=this.g.compare(a,this.ra.Fc)))break;i=i.Q(a.name,a.S),r++}}else{i=e.mb(this.g),i=i.da(C);var s,h,u;if(this.Jb){e=i.rf(this.g),s=this.ra.Fc,h=this.ra.dd;var c=ud(this.g);u=function(t,e){return c(e,t)}}else e=i.Wb(this.g),s=this.ra.dd,h=this.ra.Fc,u=ud(this.g);for(var r=0,l=!1;0=u(s,a)&&(l=!0),(o=l&&r=u(a,h))?r++:i=i.Q(a.name,C)}return this.ra.Vb().ta(t,i,n)},h.da=function(t){return t},h.Ga=function(){return!0},h.Vb=function(){return this.ra.Vb()},zd.prototype.bb=function(t,e,n,i){var r,o=new hd;if(e.type===Vb)e.source.ve?n=Ad(this,t,e.path,e.Ia,n,i,o):(J(e.source.of,"Unknown source."),r=e.source.af,n=Bd(this,t,e.path,e.Ia,n,i,r,o));else if(e.type===Cd)e.source.ve?n=Dd(this,t,e.path,e.children,n,i,o):(J(e.source.of,"Unknown source."),r=e.source.af,n=Ed(this,t,e.path,e.children,n,i,r,o));else if(e.type===Xb)if(e.Ve)if(r=e.path,null!=n.sc(r))n=t;else{if(e=new qb(n,t,i),i=t.D.j(),r.e()||".priority"===O(r))Hb(t.u())?e=n.ua(tb(t)):(e=t.u().j(),J(e instanceof T,"serverChildren would be complete if leaf node"),e=n.xc(e)),e=this.I.ta(i,e,o);else{r=O(r);var a=n.Xa(r,t.u());null==a&&rb(t.u(),r)&&(a=i.M(r)),e=null!=a?this.I.G(i,r,a,e,o):t.D.j().Ha(r)?this.I.G(i,r,C,e,o):i,e.e()&&Hb(t.u())&&(i=n.ua(tb(t)),i.N()&&(e=this.I.ta(e,i,o)))}i=Hb(t.u())||null!=n.sc(F),n=Fd(t,e,i,this.I.Ga())}else n=Gd(this,t,e.path,n,i,o);else{if(e.type!==$b)throw Hc("Unknown operation type: "+e.type);i=e.path,e=t.u(),r=e.j(),a=e.$||i.e(),n=Hd(this,new Id(t.D,new sb(r,a,e.Tb)),i,n,pb,o)}return o=ra(o.eb),i=n,e=i.D,e.$&&(r=e.j().N()||e.j().e(),a=Jd(t),(0=0,"Unknown leaf type: "+e),J(r>=0,"Unknown leaf type: "+n),i===r?"object"===n?0:this.Ci){var o,a=[];for(o in e)a[o]=e[o];return a}return t&&!this.A().e()&&(e[".priority"]=this.A().K()),e},h.hash=function(){if(null===this.Bb){var t="";this.A().e()||(t+="priority:"+le(this.A().K())+":"),this.U(M,function(e,n){var i=n.hash();""!==i&&(t+=":"+e+":"+i)}),this.Bb=""===t?"":Jc(t)}return this.Bb},h.qf=function(t,e,n){return(n=oe(this,n))?(t=cc(n,new E(t,e)))?t.name:null:cc(this.m,t)},h.U=function(t,e){var n=oe(this,t);return n?n.ha(function(t){return e(t.name,t.S)}):this.m.ha(e)},h.Wb=function(t){return this.Xb(t.Sc(),t)},h.Xb=function(t,e){var n=oe(this,e);if(n)return n.Xb(t,function(t){return t});for(var n=this.m.Xb(t.name,Qb),i=ec(n);null!=i&&0>e.compare(i,t);)H(n),i=ec(n);return n},h.rf=function(t){return this.Zb(t.Pc(),t)},h.Zb=function(t,e){var n=oe(this,e);if(n)return n.Zb(t,function(t){return t});for(var n=this.m.Zb(t.name,Qb),i=ec(n);null!=i&&0t?-1:1});h=De.prototype,h.e=function(){return null===this.value&&this.children.e()},h.subtree=function(t){if(t.e())return this;var e=this.children.get(O(t));return null!==e?e.subtree(G(t)):Nd},h.set=function(t,e){if(t.e())return new De(e,this.children);var n=O(t),i=(this.children.get(n)||Nd).set(G(t),e),n=this.children.Na(n,i);return new De(this.value,n)},h.remove=function(t){if(t.e())return this.children.e()?Nd:new De(null,this.children);var e=O(t),n=this.children.get(e);return n?(t=n.remove(G(t)),e=t.e()?this.children.remove(e):this.children.Na(e,t),null===this.value&&e.e()?Nd:new De(this.value,e)):this},h.get=function(t){if(t.e())return this.value;var e=this.children.get(O(t));return e?e.get(G(t)):null};var Nd=new De(null);De.prototype.toString=function(){var t={};return Kd(this,function(e,n){t[e.toString()]=n.toString()}),B(t)};var Re=new Qe(new De(null));Qe.prototype.Od=function(t){return t.e()?Re:(t=Md(this.W,t,Nd),new Qe(t))},Qe.prototype.e=function(){return this.W.e()},Qe.prototype.apply=function(t){return Xe(F,this.W,t)},h=Ye.prototype,h.Od=function(t){var e=Ua(this.za,function(e){return e.ie===t});J(e>=0,"removeWrite called with nonexistent writeId.");var n=this.za[e];this.za.splice(e,1);for(var i=n.visible,o=!1,a=this.za.length-1;i&&a>=0;){var s=this.za[a];s.visible&&(a>=e&&Ze(s,n.path)?i=!1:n.path.contains(s.path)&&(o=!0)),a--}if(i){if(o)this.T=$e(this.za,af,F),this.Lc=0=0;o--)r[o]="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".charAt(n%64),n=Math.floor(n/64);if(J(0===n,"Cannot push at time == 0"),n=r.join(""),i){for(o=11;o>=0&&63===e[o];o--)e[o]=0;e[o]++}else for(o=0;12>o;o++)e[o]=Math.floor(64*Math.random());for(o=0;12>o;o++)n+="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".charAt(e[o]);return J(20===n.length,"nextPushId: Length should be 20."),n}}();ma(Lf,If),Lf.prototype.ze=function(t){return J("online"===t,"Unknown event type: "+t),[this.ic]},ca(Lf),ma(Mf,If),Mf.prototype.ze=function(t){return J("visible"===t,"Unknown event type: "+t),[this.uc]},ca(Mf);var Nf=/[\[\].#$\/\u0000-\u001F\u007F]/,Of=/[\[\].#$\u0000-\u001F\u007F]/;h=cg.prototype,h.add=function(t,e){this.set[t]=null!==e?e:!0},h.contains=function(t){return u(this.set,t)},h.get=function(t){return this.contains(t)?this.set[t]:void 0},h.remove=function(t){delete this.set[t]},h.clear=function(){this.set={}},h.e=function(){return wa(this.set)},h.count=function(){return pa(this.set)},h.keys=function(){var t=[]; + +return r(this.set,function(e,n){t.push(n)}),t},qc.prototype.find=function(t){if(null!=this.C)return this.C.oa(t);if(t.e()||null==this.m)return null;var e=O(t);return t=G(t),this.m.contains(e)?this.m.get(e).find(t):null},qc.prototype.mc=function(t,e){if(t.e())this.C=e,this.m=null;else if(null!==this.C)this.C=this.C.G(t,e);else{null==this.m&&(this.m=new cg);var n=O(t);this.m.contains(n)||this.m.add(n,new qc),n=this.m.get(n),t=G(t),n.mc(t,e)}},qc.prototype.U=function(t){null!==this.m&&dg(this.m,function(e,n){t(e,n)})};var fg="auth.firebase.com",hg=["remember","redirectTo"];jg.prototype.set=function(t,e){if(!e){if(!this.$d.length)throw Error("fb.login.SessionManager : No storage options available!");e=this.$d[0]}e.set(this.Pe,t)},jg.prototype.get=function(){var t=Qa(this.$d,q(this.ng,this)),t=Pa(t,function(t){return null!==t});return Xa(t,function(t,e){return bd(e.token)-bd(t.token)}),0o.status){try{t=mb(o.responseText)}catch(e){}n(null,t)}else n(500<=o.status&&600>o.status?yg("SERVER_ERROR"):yg("NETWORK_ERROR"));n=null,pg(window,"beforeunload",i)}},"GET"===a)t+=(/\?/.test(t)?"":"?")+jb(e),r=null;else{var s=this.options.headers.content_type;"application/json"===s&&(r=B(e)),"application/x-www-form-urlencoded"===s&&(r=jb(e))}o.open(a,t,!0),t={"X-Requested-With":"XMLHttpRequest",Accept:"application/json;text/plain"},za(t,this.options.headers);for(var h in t)o.setRequestHeader(h,t[h]);o.send(r)},Ag.isAvailable=function(){return!(!window.XMLHttpRequest||"string"!=typeof(new XMLHttpRequest).responseType||"undefined"!=typeof navigator&&(navigator.userAgent.match(/MSIE/)||navigator.userAgent.match(/Trident/))&&!mg())},Ag.prototype.Bc=function(){return"json"},Bg.prototype.open=function(t,e,n){function i(){n&&(n(yg("USER_CANCELLED")),n=null)}var r,o=this,a=Rc(fg);e.requestId=this.oc,e.redirectTo=a.scheme+"://"+a.host+"/blank/page.html",t+=/\?/.test(t)?"":"?",t+=jb(e),(r=window.open(t,"_blank","location=no"))&&ha(r.addEventListener)?(r.addEventListener("loadstart",function(t){var e;if(e=t&&t.url)t:{try{var s=document.createElement("a");s.href=t.url,e=s.host===a.host&&"/blank/page.html"===s.pathname;break t}catch(h){}e=!1}e&&(t=rg(t.url),r.removeEventListener("exit",i),r.close(),t=new gg(null,null,{requestId:o.oc,requestKey:t}),o.Df.requestWithCredential("/auth/session",t,n),n=null)}),r.addEventListener("exit",i)):n(yg("TRANSPORT_UNAVAILABLE"))},Bg.isAvailable=function(){return kg()},Bg.prototype.Bc=function(){return"redirect"},Cg.prototype.open=function(t,e,n){function i(){n&&(n(yg("REQUEST_INTERRUPTED")),n=null)}function r(){setTimeout(function(){window.__firebase_auth_jsonp[o]=void 0,wa(window.__firebase_auth_jsonp)&&(window.__firebase_auth_jsonp=void 0);try{var t=document.getElementById(o);t&&t.parentNode.removeChild(t)}catch(e){}},1),pg(window,"beforeunload",i)}var o="fn"+(new Date).getTime()+Math.floor(99999*Math.random());e[this.options.callback_parameter]="__firebase_auth_jsonp."+o,t+=(/\?/.test(t)?"":"?")+jb(e),og(window,"beforeunload",i),window.__firebase_auth_jsonp[o]=function(t){n&&(n(null,t),n=null),r()},Dg(o,t,n)},Cg.isAvailable=function(){return!0},Cg.prototype.Bc=function(){return"json"},ma(Eg,If),h=Eg.prototype,h.we=function(){return this.nb||null},h.re=function(t,e){Ng(this);var n=ig(t);n.ab._method="POST",this.pc("/users",n,function(t,n){t?R(e,t):R(e,t,n)})},h.Se=function(t,e){var n=this;Ng(this);var i="/users/"+encodeURIComponent(t.email),r=ig(t);r.ab._method="DELETE",this.pc(i,r,function(t,i){!t&&i&&i.uid&&n.nb&&n.nb.uid&&n.nb.uid===i.uid&&Lg(n),R(e,t)})},h.oe=function(t,e){Ng(this);var n="/users/"+encodeURIComponent(t.email)+"/password",i=ig(t);i.ab._method="PUT",i.ab.password=t.newPassword,this.pc(n,i,function(t){R(e,t)})},h.ne=function(t,e){Ng(this);var n="/users/"+encodeURIComponent(t.oldEmail)+"/email",i=ig(t);i.ab._method="PUT",i.ab.email=t.newEmail,i.ab.password=t.password,this.pc(n,i,function(t){R(e,t)})},h.Ue=function(t,e){Ng(this);var n="/users/"+encodeURIComponent(t.email)+"/password",i=ig(t);i.ab._method="POST",this.pc(n,i,function(t){R(e,t)})},h.pc=function(t,e,n){Qg(this,[Ag,Cg],t,e,n)},h.ze=function(t){return J("auth_status"===t,'initial event must be of type "auth_status"'),this.Re?null:[this.nb]};var Vg,Wg;Ug.prototype.open=function(t,e){this.gf=0,this.ka=e,this.zf=new Rg(t),this.zb=!1;var n=this;this.rb=setTimeout(function(){n.f("Timed out trying to connect."),n.ib(),n.rb=null},Math.floor(3e4)),Tc(function(){if(!n.zb){n.Ta=new Xg(function(t,e,i,r,o){if(Yg(n,arguments),n.Ta)if(n.rb&&(clearTimeout(n.rb),n.rb=null),n.Gc=!0,"start"==t)n.id=e,n.Ff=i;else{if("close"!==t)throw Error("Unrecognized command received: "+t);e?(n.Ta.Td=!1,Sg(n.zf,e,function(){n.ib()})):n.ib()}},function(t,e){Yg(n,arguments),Tg(n.zf,t,e)},function(){n.ib()},n.gd);var t={start:"t"};t.ser=Math.floor(1e8*Math.random()),n.Ta.fe&&(t.cb=n.Ta.fe),t.v="5",n.Vd&&(t.s=n.Vd),"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(t.r="f"),t=n.gd(t),n.f("Connecting via long-poll to "+t),Zg(n.Ta,t,function(){})}})},Ug.prototype.start=function(){var t=this.Ta,e=this.Ff;for(t.rg=this.id,t.sg=e,t.ke=!0;$g(t););t=this.id,e=this.Ff,this.fc=document.createElement("iframe");var n={dframe:"t"};n.id=t,n.pw=e,this.fc.src=this.gd(n),this.fc.style.display="none",document.body.appendChild(this.fc)},Ug.isAvailable=function(){return!(Wg||"object"==typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href)||"object"==typeof Windows&&"object"==typeof Windows.Ug)},h=Ug.prototype,h.Bd=function(){},h.cd=function(){this.zb=!0,this.Ta&&(this.Ta.close(),this.Ta=null),this.fc&&(document.body.removeChild(this.fc),this.fc=null),this.rb&&(clearTimeout(this.rb),this.rb=null)},h.ib=function(){this.zb||(this.f("Longpoll is closing itself"),this.cd(),this.ka&&(this.ka(this.Gc),this.ka=null))},h.close=function(){this.zb||(this.f("Longpoll is being closed."),this.cd())},h.send=function(t){t=B(t),this.pb+=t.length,Lb(this.Va,"bytes_sent",t.length),t=Kc(t),t=fb(t,!0),t=Xc(t,1840);for(var e=0;e=t.length){var e=Number(t);if(!isNaN(e)){r.bf=e,r.frames=[],t=null;break t}}r.bf=1,r.frames=[]}null!==t&&fh(r,t)}},this.va.onerror=function(t){r.f("WebSocket error. Closing connection."),(t=t.message||t.data)&&r.f(t),r.ib()}},ch.prototype.start=function(){},ch.isAvailable=function(){var t=!1;if("undefined"!=typeof navigator&&navigator.userAgent){var e=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);e&&1parseFloat(e[1])&&(t=!0)}return!t&&null!==bh&&!dh},ch.responsesRequiredToBeHealthy=2,ch.healthyTimeout=3e4,h=ch.prototype,h.Bd=function(){Dc.remove("previous_websocket_failure")},h.send=function(t){eh(this),t=B(t),this.pb+=t.length,Lb(this.Va,"bytes_sent",t.length),t=Xc(t,16384),1r;r++)e+=" ";console.log(e+i)}}},h.Ze=function(t){Lb(this.Va,t),this.Pg.Mf[t]=!0},h.f=function(t){var e="";this.Ra&&(e=this.Ra.id+":"),Bb(e,arguments)},ca(W),W.prototype.yb=function(){for(var t in this.nc)this.nc[t].yb()},W.prototype.interrupt=W.prototype.yb,W.prototype.qc=function(){for(var t in this.nc)this.nc[t].qc()},W.prototype.resume=W.prototype.qc,W.prototype.ue=function(){this.Pf=!0},X.prototype.cancel=function(t){x("Firebase.onDisconnect().cancel",0,1,arguments.length),A("Firebase.onDisconnect().cancel",1,t,!0),this.ad.Gd(this.qa,t||null)},X.prototype.cancel=X.prototype.cancel,X.prototype.remove=function(t){x("Firebase.onDisconnect().remove",0,1,arguments.length),Yf("Firebase.onDisconnect().remove",this.qa),A("Firebase.onDisconnect().remove",1,t,!0),Sh(this.ad,this.qa,null,t)},X.prototype.remove=X.prototype.remove,X.prototype.set=function(t,e){x("Firebase.onDisconnect().set",1,2,arguments.length),Yf("Firebase.onDisconnect().set",this.qa),Rf("Firebase.onDisconnect().set",t,this.qa,!1),A("Firebase.onDisconnect().set",2,e,!0),Sh(this.ad,this.qa,t,e)},X.prototype.set=X.prototype.set,X.prototype.Kb=function(t,e,n){x("Firebase.onDisconnect().setWithPriority",2,3,arguments.length),Yf("Firebase.onDisconnect().setWithPriority",this.qa),Rf("Firebase.onDisconnect().setWithPriority",t,this.qa,!1),Uf("Firebase.onDisconnect().setWithPriority",2,e),A("Firebase.onDisconnect().setWithPriority",3,n,!0),Th(this.ad,this.qa,t,e,n)},X.prototype.setWithPriority=X.prototype.Kb,X.prototype.update=function(t,e){if(x("Firebase.onDisconnect().update",1,2,arguments.length),Yf("Firebase.onDisconnect().update",this.qa),ea(t)){for(var n={},i=0;i=t)throw Error("Query.limit: First argument must be a positive integer.");if(this.n.ia)throw Error("Query.limit: Limit was already set (by another call to limit, limitToFirst, orlimitToLast.");var e=this.n.Ge(t);return fi(e),new Y(this.k,this.path,e,this.jc)},Y.prototype.limit=Y.prototype.Ge,Y.prototype.He=function(t){if(x("Query.limitToFirst",1,1,arguments.length),!ga(t)||Math.floor(t)!==t||0>=t)throw Error("Query.limitToFirst: First argument must be a positive integer.");if(this.n.ia)throw Error("Query.limitToFirst: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new Y(this.k,this.path,this.n.He(t),this.jc)},Y.prototype.limitToFirst=Y.prototype.He,Y.prototype.Ie=function(t){if(x("Query.limitToLast",1,1,arguments.length),!ga(t)||Math.floor(t)!==t||0>=t)throw Error("Query.limitToLast: First argument must be a positive integer.");if(this.n.ia)throw Error("Query.limitToLast: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new Y(this.k,this.path,this.n.Ie(t),this.jc)},Y.prototype.limitToLast=Y.prototype.Ie,Y.prototype.Bg=function(t){if(x("Query.orderByChild",1,1,arguments.length),"$key"===t)throw Error('Query.orderByChild: "$key" is invalid. Use Query.orderByKey() instead.');if("$priority"===t)throw Error('Query.orderByChild: "$priority" is invalid. Use Query.orderByPriority() instead.');if("$value"===t)throw Error('Query.orderByChild: "$value" is invalid. Use Query.orderByValue() instead.');Wf("Query.orderByChild",1,t,!1),gi(this,"Query.orderByChild");var e=be(this.n,new Rd(t));return ei(e),new Y(this.k,this.path,e,!0)},Y.prototype.orderByChild=Y.prototype.Bg,Y.prototype.Cg=function(){x("Query.orderByKey",0,0,arguments.length),gi(this,"Query.orderByKey");var t=be(this.n,Vd);return ei(t),new Y(this.k,this.path,t,!0)},Y.prototype.orderByKey=Y.prototype.Cg,Y.prototype.Dg=function(){x("Query.orderByPriority",0,0,arguments.length),gi(this,"Query.orderByPriority");var t=be(this.n,M);return ei(t),new Y(this.k,this.path,t,!0)},Y.prototype.orderByPriority=Y.prototype.Dg,Y.prototype.Eg=function(){x("Query.orderByValue",0,0,arguments.length),gi(this,"Query.orderByValue");var t=be(this.n,Yd);return ei(t),new Y(this.k,this.path,t,!0)},Y.prototype.orderByValue=Y.prototype.Eg,Y.prototype.Xd=function(t,e){x("Query.startAt",0,2,arguments.length),Rf("Query.startAt",t,this.path,!0),Wf("Query.startAt",2,e,!0);var i=this.n.Xd(t,e);if(fi(i),ei(i),this.n.la)throw Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return n(t)||(e=t=null),new Y(this.k,this.path,i,this.jc)},Y.prototype.startAt=Y.prototype.Xd,Y.prototype.qd=function(t,e){x("Query.endAt",0,2,arguments.length),Rf("Query.endAt",t,this.path,!0),Wf("Query.endAt",2,e,!0);var n=this.n.qd(t,e);if(fi(n),ei(n),this.n.na)throw Error("Query.endAt: Ending point was already set (by another call to endAt or equalTo).");return new Y(this.k,this.path,n,this.jc)},Y.prototype.endAt=Y.prototype.qd,Y.prototype.hg=function(t,e){if(x("Query.equalTo",1,2,arguments.length),Rf("Query.equalTo",t,this.path,!1),Wf("Query.equalTo",2,e,!0),this.n.la)throw Error("Query.equalTo: Starting point was already set (by another call to endAt or equalTo).");if(this.n.na)throw Error("Query.equalTo: Ending point was already set (by another call to endAt or equalTo).");return this.Xd(t,e).qd(t,e)},Y.prototype.equalTo=Y.prototype.hg,Y.prototype.toString=function(){x("Query.toString",0,0,arguments.length);for(var t=this.path,e="",n=t.Y;n Date: Thu, 23 Apr 2015 21:40:29 +0900 Subject: [PATCH 02/83] Fix undefined userId --- src/views/user-view.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/user-view.vue b/src/views/user-view.vue index da0c22e..f6dad1f 100644 --- a/src/views/user-view.vue +++ b/src/views/user-view.vue @@ -51,10 +51,10 @@ module.exports = { }, methods: { update: function () { - store.fetchUser(this.id, function (user) { + store.fetchUser(this.params.userId, function (user) { this.user = user }.bind(this)) } } } - \ No newline at end of file + From 5b5d0e04e1e911c3294ce378f04d715ad501db5e Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 23 Apr 2015 16:23:07 -0400 Subject: [PATCH 03/83] rebuild & use dev branch --- build/build.js | 8 +++++--- build/build.js.map | 2 +- package.json | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/build/build.js b/build/build.js index 91a3d68..b740ec7 100644 --- a/build/build.js +++ b/build/build.js @@ -1,6 +1,8 @@ -!function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){var i=n(2),r=n(3).Router,o=new i(n(1)),a=new r;a.on("/news/:page",function(t){window.scrollTo(0,0),o.view="news-view",o.params.page=+t}),a.on("/user/:id",function(t){window.scrollTo(0,0),o.view="user-view",o.params.userId=t}),a.on("/item/:id",function(t){window.scrollTo(0,0),o.view="item-view",o.params.itemId=t}),a.configure({notfound:function(){a.setRoute("/news/1")}}),a.init("/news/1")},function(t,e,n){n(22)("body,html{font-family:Verdana;font-size:13px;margin:0;height:100%;background-color:#f6f6ef}ul{list-style-type:none;padding:0;margin:0}a{color:#000;cursor:pointer;text-decoration:none}#header{background-color:#f60;height:24px;position:relative}#header h1{font-weight:700;font-size:13px;display:inline-block;vertical-align:middle;margin:0}#header .source{color:#fff;font-size:11px;position:absolute;top:4px;right:4px}#header .source a{color:#fff}#header .source a:hover{text-decoration:underline}#yc{border:1px solid #fff;margin:2px;display:inline-block;vertical-align:middle}#yc img{vertical-align:middle}.view{position:absolute;width:100%;transition:opacity .1s ease;box-sizing:border-box;padding:8px 20px}.view.v-enter,.view.v-leave{opacity:0}");var i='\n \n \n
';t.exports={el:"#app",data:{view:"",params:{page:1,userId:null,itemId:null}},filters:{fromNow:n(17),domain:n(18)},components:{"news-view":n(19),"item-view":n(20),"user-view":n(21)}},("function"==typeof t.exports?t.exports.options:t.exports).template=i},function(t,e,n){function i(t){this._init(t)}var r=n(14),o=r.extend;o(i,n(4)),i.options={directives:n(15),filters:n(16),partials:{},transitions:{},components:{}};var a=i.prototype;Object.defineProperty(a,"$data",{get:function(){return this._data},set:function(t){this._setData(t)}}),o(a,n(5)),o(a,n(6)),o(a,n(7)),o(a,n(8)),o(a,n(9)),o(a,n(10)),o(a,n(11)),o(a,n(12)),o(a,n(13)),t.exports=r.Vue=i},function(t,e,n){!function(t){function e(){return""===u.hash||"#"===u.hash}function n(t,e){for(var n=0;nn;n++)e=e.concat(t[n]);return e}function r(t,e,n){if(!t.length)return n();var i=0;!function r(){e(t[i],function(e){e||e===!1?(n(e),n=function(){}):(i+=1,i===t.length?n():r())})}()}function o(t,e,n){n=t;for(var i in e)if(e.hasOwnProperty(i)&&(n=e[i](t),n!==t))break;return n===t?"([._a-zA-Z0-9-%()]+)":n}function a(t,e){for(var n,i=0,r="";n=t.substr(i).match(/[^\w\d\- %@&]*\*[^\w\d\- %@&]*/);)i=n.index+n[0].length,n[0]=n[0].replace(/^\*/,"([_.()!\\ %@&a-zA-Z0-9-]+)"),r+=t.substr(0,n.index)+n[0];t=r+=t.substr(i);var a,s,h=t.match(/:([^\/]+)/gi);if(h){s=h.length;for(var u=0;s>u;u++)a=h[u],t="::"===a.slice(0,2)?a.slice(1):t.replace(a,o(a,e))}return t}function h(t,e,n,i){var r,o=0,a=0,s=0,n=(n||"(").toString(),i=(i||")").toString();for(r=0;rh.indexOf(i,o)||~h.indexOf(n,o)&&!~h.indexOf(i,o)||!~h.indexOf(n,o)&&~h.indexOf(i,o)){if(a=h.indexOf(n,o),s=h.indexOf(i,o),~a&&!~s||!~a&&~s){var u=t.slice(0,(r||1)+1).join(e);t=[u].concat(t.slice((r||1)+1))}o=(s>a?s:a)+1,r=0}else o=0}return t}var u=document.location,c={mode:"modern",hash:u.hash,history:!1,check:function(){var t=u.hash;t!=this.hash&&(this.hash=t,this.onHashChanged())},fire:function(){"modern"===this.mode?this.history===!0?window.onpopstate():window.onhashchange():this.onHashChanged()},init:function(t,e){function n(t){for(var e=0,n=l.listeners.length;n>e;e++)l.listeners[e](t)}var i=this;if(this.history=e,l.listeners||(l.listeners=[]),"onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7))this.history===!0?setTimeout(function(){window.onpopstate=n},500):window.onhashchange=n,this.mode="modern";else{var r=document.createElement("iframe");r.id="state-frame",r.style.display="none",document.body.appendChild(r),this.writeFrame(""),"onpropertychange"in document&&"attachEvent"in document&&document.attachEvent("onpropertychange",function(){"location"===event.propertyName&&i.check()}),window.setInterval(function(){i.check()},50),this.onHashChanged=n,this.mode="legacy"}return l.listeners.push(t),this.mode},destroy:function(t){if(l&&l.listeners)for(var e=l.listeners,n=e.length-1;n>=0;n--)e[n]===t&&e.splice(n,1)},setHash:function(t){return"legacy"===this.mode&&this.writeFrame(t),this.history===!0?(window.history.pushState({},document.title,t),this.fire()):u.hash="/"===t[0]?t:"/"+t,this},writeFrame:function(t){var e=document.getElementById("state-frame"),n=e.contentDocument||e.contentWindow.document;n.open(),n.write("'),t=""+t+"";try{this.Ca.gb.open(),this.Ca.gb.write(t),this.Ca.gb.close()}catch(o){Bb("frame writing exception"),o.stack&&Bb(o.stack),Bb(o)}}function $g(t){if(t.ke&&t.Td&&t.Oe.count()<(0=t.$c[0].jf.length+30+n.length;){var r=t.$c.shift(),n=n+"&seg"+i+"="+r.Jg+"&ts"+i+"="+r.Rg+"&d"+i+"="+r.jf;i++}return ah(t,e+n,t.se),!0}return!1}function ah(t,e,n){function i(){t.Oe.remove(n),$g(t)}t.Oe.add(n,1);var r=setTimeout(i,Math.floor(25e3));Zg(t,e,function(){clearTimeout(r),i()})}function Zg(t,e,n){setTimeout(function(){try{if(t.Td){var i=t.Ca.gb.createElement("script");i.type="text/javascript",i.async=!0,i.src=e,i.onload=i.onreadystatechange=function(){var t=i.readyState;t&&"loaded"!==t&&"complete"!==t||(i.onload=i.onreadystatechange=null,i.parentNode&&i.parentNode.removeChild(i),n())},i.onerror=function(){Bb("Long-poll script failed to load: "+e),t.Td=!1,t.close()},t.Ca.gb.body.appendChild(i)}}catch(r){}},Math.floor(1))}function ch(t,e,n){this.qe=t,this.f=Oc(this.qe),this.frames=this.Jc=null,this.ob=this.pb=this.bf=0,this.Va=Ob(e),this.fb=(e.lb?"wss://":"ws://")+e.Oa+"/.ws?v=5","undefined"!=typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(this.fb+="&r=f"),e.host!==e.Oa&&(this.fb=this.fb+"&ns="+e.Cb),n&&(this.fb=this.fb+"&s="+n)}function fh(t,e){if(t.frames.push(e),t.frames.length==t.bf){var n=t.frames.join("");t.frames=null,n=mb(n),t.wg(n)}}function eh(t){clearInterval(t.Jc),t.Jc=setInterval(function(){t.va&&t.va.send("0"),eh(t)},Math.floor(45e3))}function gh(t){hh(this,t)}function hh(t,e){var n=ch&&ch.isAvailable(),i=n&&!(Dc.uf||!0===Dc.get("previous_websocket_failure"));if(e.Tg&&(n||Q("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),i=!0),i)t.ed=[ch];else{var r=t.ed=[];Yc(ih,function(t,e){e&&e.isAvailable()&&r.push(e)})}}function jh(t){if(00&&(t.vd=setTimeout(function(){t.vd=null,t.Ab||(t.L&&102400=t.Lf?(t.f("Secondary connection is healthy."),t.Ab=!0,t.F.Bd(),t.F.start(),t.f("sending client ack on secondary"),t.F.send({t:"c",d:{t:"a",d:{}}}),t.f("Ending transmission on primary"),t.L.send({t:"c",d:{t:"n",d:{}}}),t.fd=t.F,qh(t)):(t.f("sending ping on secondary."),t.F.send({t:"c",d:{t:"p",d:{}}}))}function sh(t){t.Ab||(t.Qe--,0>=t.Qe&&(t.f("Primary connection is healthy."),t.Ab=!0,t.L.Bd()))}function ph(t,e){t.F=new e("c:"+t.id+":"+t.ef++,t.H,t.Vd),t.Lf=e.responsesRequiredToBeHealthy||0,t.F.open(mh(t,t.F),nh(t,t.F)),setTimeout(function(){t.F&&(t.f("Timed out trying to upgrade."),t.F.close())},Math.floor(6e4))}function oh(t,e,n){t.f("Realtime connection established."),t.L=e,t.Ua=1,t.Vc&&(t.Vc(n),t.Vc=null),0===t.Qe?(t.f("Primary connection is healthy."),t.Ab=!0):setTimeout(function(){th(t)},Math.floor(5e3))}function th(t){t.Ab||1!==t.Ua||(t.f("sending ping on primary."),vh(t,{t:"c",d:{t:"p",d:{}}}))}function vh(t,e){if(1!==t.Ua)throw"Connection is not connected";t.fd.send(e)}function rh(t){t.f("Shutting down all connections"),t.L&&(t.L.close(),t.L=null),t.F&&(t.F.close(),t.F=null),t.vd&&(clearTimeout(t.vd),t.vd=null)}function wh(t,e,n,i){this.id=xh++,this.f=Oc("p:"+this.id+":"),this.wf=this.De=!1,this.aa={},this.pa=[],this.Xc=0,this.Uc=[],this.ma=!1,this.$a=1e3,this.Cd=3e5,this.Gb=e,this.Tc=n,this.Ne=i,this.H=t,this.We=null,this.Qd={},this.Ig=0,this.mf=!0,this.Kc=this.Fe=null,yh(this,0),Mf.ub().Eb("visible",this.zg,this),-1===t.host.indexOf("fblocal")&&Lf.ub().Eb("online",this.xg,this)}function Ah(t,e){var n=e.Fg,i=n.path.toString(),r=n.wa();t.f("Listen on "+i+" for "+r);var o={p:i};e.tag&&(o.q=ce(n.n),o.t=e.tag),o.h=e.ud(),t.Da("q",o,function(o){var a=o.d,s=o.s;if(a&&"object"==typeof a&&u(a,"w")){var h=w(a,"w");ea(h)&&0<=Na(h,"no_index")&&Q("Using an unspecified index. Consider adding "+('".indexOn": "'+n.n.g.toString()+'"')+" at "+n.path.toString()+" to your security rules for better performance")}(t.aa[i]&&t.aa[i][r])===e&&(t.f("listen response",o),"ok"!==s&&Bh(t,i,r),e.J&&e.J(s,a))})}function Ch(t){var e=t.Fa;t.ma&&e&&t.Da("auth",{cred:e.fg},function(n){var i=n.s;n=n.d||"error","ok"!==i&&t.Fa===e&&delete t.Fa,e.nf?"ok"!==i&&e.jd&&e.jd(i,n):(e.nf=!0,e.yc&&e.yc(i,n))})}function Dh(t,e,n,i,r){n={p:n,d:i},t.f("onDisconnect "+e,n),t.Da(e,n,function(t){r&&setTimeout(function(){r(t.s,t.d)},Math.floor(0))})}function Eh(t,e,i,r,o,a){r={p:i,d:r},n(a)&&(r.h=a),t.pa.push({action:e,If:r,J:o}),t.Xc++,e=t.pa.length-1,t.ma?Fh(t,e):t.f("Buffering put: "+i)}function Fh(t,e){var n=t.pa[e].action,i=t.pa[e].If,r=t.pa[e].J;t.pa[e].Gg=t.ma,t.Da(n,i,function(i){t.f(n+" response",i),delete t.pa[e],t.Xc--,0===t.Xc&&(t.pa=[]),r&&r(i.s,i.d)})}function yh(t,e){J(!t.Sa,"Scheduling a connect when we're already connected/ing?"),t.Sb&&clearTimeout(t.Sb),t.Sb=setTimeout(function(){t.Sb=null,Ih(t)},Math.floor(e))}function Ih(t){if(Jh(t)){t.f("Making a connection attempt"),t.Fe=(new Date).getTime(),t.Kc=null;var e=q(t.Fd,t),n=q(t.Vc,t),i=q(t.Cf,t),r=t.id+":"+zh++;t.Sa=new kh(r,t.H,e,n,i,function(e){Q(e+" ("+t.H.toString()+")"),t.wf=!0})}}function Gh(t,e,n){n=n?Qa(n,function(t){return Wc(t)}).join("$"):"default",(t=Bh(t,e,n))&&t.J&&t.J("permission_denied")}function Bh(t,e,i){e=new K(e).toString();var r;return n(t.aa[e])?(r=t.aa[e][i],delete t.aa[e][i],0===pa(t.aa[e])&&delete t.aa[e]):r=void 0,r}function Hh(t){Ch(t),r(t.aa,function(e){r(e,function(e){Ah(t,e)})});for(var e=0;e\n
    \n
  • user: {{user.id}}
  • \n
  • created: {{user.created | fromNow}} ago
  • \n
  • karma: {{user.karma}}
  • \n
  • \n about:\n
    \n
  • \n
\n

\n submissions
\n comments\n

\n "; + var store = __webpack_require__(67) + + module.exports = { + replace: true, + props: ['params'], + data: function () { + return { + params: { + userId: null + }, + user: {} + } + }, + watch: { + 'params.userId': 'update' + }, + compiled: function () { + this.update() + }, + methods: { + update: function () { + store.fetchUser(this.params.userId, function (user) { + this.user = user + }.bind(this)) + } + } + } + ;(typeof module.exports === "function"? module.exports.options: module.exports).template = __vue_template__; -}function gi(t,e){if(!0===t.jc)throw Error(e+": You can't combine multiple orderBy calls.")}function hi(t,e,n){var i={cancel:null,Ma:null};if(e&&n)i.cancel=e,A(t,3,i.cancel,!0),i.Ma=n,lb(t,4,i.Ma);else if(e)if("object"==typeof e&&null!==e)i.Ma=e;else{if("function"!=typeof e)throw Error(z(t,3,!0)+" must either be a cancel callback or a context object.");i.cancel=e}return i}function U(t,e){var n,i,r;if(t instanceof Kh)n=t,i=e;else{x("new Firebase",1,2,arguments.length),i=Rc(arguments[0]),n=i.Qg,"firebase"===i.domain&&Qc(i.host+" is no longer supported. Please use .firebaseio.com instead"),n||Qc("Cannot parse Firebase url. Please use https://.firebaseio.com"),i.lb||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&Q("Insecure Firebase access from a secure page. Please use https in calls to new Firebase()."),n=new Ec(i.host,i.lb,n,"ws"===i.scheme||"wss"===i.scheme),i=new K(i.Zc),r=i.toString();var o;if(!(o=!p(n.host)||0===n.host.length||!Pf(n.Cb))&&(o=0!==r.length)&&(r&&(r=r.replace(/^\/*\.info(\/|$)/,"/")),o=!(p(r)&&0!==r.length&&!Of.test(r))),o)throw Error(z("new Firebase",1,!1)+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".');if(e)if(e instanceof W)r=e;else{if(!p(e))throw Error("Expected a valid Firebase.Context for second argument to new Firebase()");r=W.ub(),n.Ld=e}else r=W.ub();o=n.toString();var a=w(r.nc,o);a||(a=new Kh(n,r.Pf),r.nc[o]=a),n=a}Y.call(this,n,i,$d,!1)}function Nc(t,e){J(!e||!0===t||!1===t,"Can't turn on custom loggers persistently."),!0===t?("undefined"!=typeof console&&("function"==typeof console.log?Ab=q(console.log,console):"object"==typeof console.log&&(Ab=function(t){console.log(t)})),e&&P.set("logging_enabled",!0)):t?Ab=t:(Ab=null,P.remove("logging_enabled"))}var h,aa=this,la=Date.now||function(){return+new Date},ya="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Ea={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"," ":"\\u000b"},Fa=/\uffff/.test("ï¿¿")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,Ha;t:{var Ia=aa.navigator;if(Ia){var Ja=Ia.userAgent;if(Ja){Ha=Ja;break t}}Ha=""}ma(La,Ka),La.prototype.reset=function(){this.R[0]=1732584193,this.R[1]=4023233417,this.R[2]=2562383102,this.R[3]=271733878,this.R[4]=3285377520,this.be=this.$b=0},La.prototype.update=function(t,e){if(null!=t){n(e)||(e=t.length);for(var i=e-this.Wa,r=0,o=this.le,a=this.$b;e>r;){if(0==a)for(;i>=r;)Ma(this,t,r),r+=this.Wa;if(p(t)){for(;e>r;)if(o[a]=t.charCodeAt(r),++a,++r,a==this.Wa){Ma(this,o),a=0;break}}else for(;e>r;)if(o[a]=t[r],++a,++r,a==this.Wa){Ma(this,o),a=0;break}}this.$b=a,this.be+=e}};var t=Array.prototype,Na=t.indexOf?function(e,n,i){return t.indexOf.call(e,n,i)}:function(t,e,n){if(n=null==n?0:0>n?Math.max(0,t.length+n):n,p(t))return p(e)&&1==e.length?t.indexOf(e,n):-1;for(;no;o++)o in r&&e.call(n,r[o],o,t)},Pa=t.filter?function(e,n,i){return t.filter.call(e,n,i)}:function(t,e,n){for(var i=t.length,r=[],o=0,a=p(t)?t.split(""):t,s=0;i>s;s++)if(s in a){var h=a[s];e.call(n,h,s,t)&&(r[o++]=h)}return r},Qa=t.map?function(e,n,i){return t.map.call(e,n,i)}:function(t,e,n){for(var i=t.length,r=Array(i),o=p(t)?t.split(""):t,a=0;i>a;a++)a in o&&(r[a]=e.call(n,o[a],a,t));return r},Ra=t.reduce?function(e,n,i,r){for(var o=[],a=1,s=arguments.length;s>a;a++)o.push(arguments[a]);return r&&(o[0]=q(n,r)),t.reduce.apply(e,o)}:function(t,e,n,i){var r=n;return Oa(t,function(n,o){r=e.call(i,r,n,o,t)}),r},Sa=t.every?function(e,n,i){return t.every.call(e,n,i)}:function(t,e,n){for(var i=t.length,r=p(t)?t.split(""):t,o=0;i>o;o++)if(o in r&&!e.call(n,r[o],o,t))return!1;return!0},Za=-1!=Ha.indexOf("Opera")||-1!=Ha.indexOf("OPR"),$a=-1!=Ha.indexOf("Trident")||-1!=Ha.indexOf("MSIE"),ab=-1!=Ha.indexOf("Gecko")&&-1==Ha.toLowerCase().indexOf("webkit")&&!(-1!=Ha.indexOf("Trident")||-1!=Ha.indexOf("MSIE")),bb=-1!=Ha.toLowerCase().indexOf("webkit");!function(){var t,e="";return Za&&aa.opera?(e=aa.opera.version,ha(e)?e():e):(ab?t=/rv\:([^\);]+)(\)|;)/:$a?t=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:bb&&(t=/WebKit\/(\S+)/),t&&(e=(e=t.exec(Ha))?e[1]:""),$a&&(t=(t=aa.document)?t.documentMode:void 0,t>parseFloat(e))?String(t):e)}();var cb=null,db=null,eb=null;nb.prototype.j=function(t){return this.Sd.oa(t)},nb.prototype.toString=function(){return this.Sd.toString()},ob.prototype.pf=function(){return null},ob.prototype.xe=function(){return null};var pb=new ob;qb.prototype.pf=function(t){var e=this.Ka.D;return rb(e,t)?e.j().M(t):(e=null!=this.Hd?new sb(this.Hd,!0,!1):this.Ka.u(),this.Qf.Xa(t,e))},qb.prototype.xe=function(t,e,n){var i=null!=this.Hd?this.Hd:tb(this.Ka);return t=this.Qf.me(i,e,1,n,t),0===t.length?null:t[0]},wb.prototype.add=function(t){this.sd.push(t)},wb.prototype.Yb=function(){return this.qa};var Eb="value";Fb.prototype.Yb=function(){var t=this.Wd.lc();return"value"===this.rd?t.path:t.parent().path},Fb.prototype.ye=function(){return this.rd},Fb.prototype.Ub=function(){return this.te.Ub(this)},Fb.prototype.toString=function(){return this.Yb().toString()+":"+this.rd+":"+B(this.Wd.lf())},Gb.prototype.Yb=function(){return this.path},Gb.prototype.ye=function(){return"cancel"},Gb.prototype.Ub=function(){return this.te.Ub(this)},Gb.prototype.toString=function(){return this.path.toString()+":cancel"},sb.prototype.j=function(){return this.B},Ib.prototype.get=function(){var t=this.dg.get(),e=xa(t);if(this.Ad)for(var n in this.Ad)e[n]-=this.Ad[n];return this.Ad=t,e},Jb.prototype.Hf=function(){var t,e=this.Yd.get(),n={},i=!1;for(t in e)0e?n=n.left:e>0&&(n=n.right)}return null},h.e=function(){return this.xa.e()},h.count=function(){return this.xa.count()},h.Rc=function(){return this.xa.Rc()},h.ec=function(){return this.xa.ec()},h.ha=function(t){return this.xa.ha(t)},h.Wb=function(t){return new dc(this.xa,null,this.La,!1,t)},h.Xb=function(t,e){return new dc(this.xa,t,this.La,!1,e)},h.Zb=function(t,e){return new dc(this.xa,t,this.La,!0,e)},h.rf=function(t){return new dc(this.xa,null,this.La,!0,t)},h=fc.prototype,h.X=function(t,e,n,i,r){return new fc(null!=t?t:this.key,null!=e?e:this.value,null!=n?n:this.color,null!=i?i:this.left,null!=r?r:this.right)},h.count=function(){return this.left.count()+1+this.right.count()},h.e=function(){return!1},h.ha=function(t){return this.left.ha(t)||t(this.key,this.value)||this.right.ha(t)},h.Rc=function(){return gc(this).key},h.ec=function(){return this.right.e()?this.key:this.right.ec()},h.Na=function(t,e,n){var i,r;return r=this,i=n(t,r.key),r=0>i?r.X(null,null,null,r.left.Na(t,e,n),null):0===i?r.X(null,e,null,null,null):r.X(null,null,null,null,r.right.Na(t,e,n)),hc(r)},h.remove=function(t,e){var n,i;if(n=this,0>e(t,n.key))n.left.e()||n.left.fa()||n.left.left.fa()||(n=jc(n)),n=n.X(null,null,null,n.left.remove(t,e),null);else{if(n.left.fa()&&(n=kc(n)),n.right.e()||n.right.fa()||n.right.left.fa()||(n=lc(n),n.left.left.fa()&&(n=kc(n),n=lc(n))),0===e(t,n.key)){if(n.right.e())return bc;i=gc(n.right),n=n.X(i.key,i.value,null,null,ic(n.right))}n=n.X(null,null,null,null,n.right.remove(t,e))}return hc(n)},h.fa=function(){return this.color},h=nc.prototype,h.X=function(){return this},h.Na=function(t,e){return new fc(t,e,null)},h.remove=function(){return this},h.count=function(){return 0},h.e=function(){return!0},h.ha=function(){return!1},h.Rc=function(){return null},h.ec=function(){return null},h.fa=function(){return!1};var bc=new nc;h=K.prototype,h.toString=function(){for(var t="",e=this.Y;e=this.o.length)return null;for(var t=[],e=this.Y;e=this.o.length},h.Z=function(t){if(uc(this)!==uc(t))return!1;for(var e=this.Y,n=t.Y;e<=this.o.length;e++,n++)if(this.o[e]!==t.o[n])return!1;return!0},h.contains=function(t){var e=this.Y,n=t.Y;if(uc(this)>uc(t))return!1;for(;e"),t};var Gc=function(){var t=1;return function(){return t++}}(),Ab=null,Mc=!0,$c=/^-?\d{1,10}$/;dd.prototype.eg=function(t,e){if(null==t.Ya||null==e.Ya)throw Hc("Should only compare child_ events.");return this.g.compare(new E(t.Ya,t.Ja),new E(e.Ya,e.Ja))},h=jd.prototype,h.Jf=function(t){return"value"===t},h.createEvent=function(t,e){var n=e.n.g;return new Fb("value",this,new S(t.Ja,e.lc(),n))},h.Ub=function(t){var e=this.sb;if("cancel"===t.ye()){J(this.qb,"Raising a cancel event on a listener with no cancel callback");var n=this.qb;return function(){n.call(e,t.error)}}var i=this.Pb;return function(){i.call(e,t.Wd)}},h.ff=function(t,e){return this.qb?new Gb(this,t,e):null},h.matches=function(t){return t instanceof jd?t.Pb&&this.Pb?t.Pb===this.Pb&&t.sb===this.sb:!0:!1},h.sf=function(){return null!==this.Pb},h=kd.prototype,h.Jf=function(t){return t="children_added"===t?"child_added":t,("children_removed"===t?"child_removed":t)in this.ga},h.ff=function(t,e){return this.qb?new Gb(this,t,e):null},h.createEvent=function(t,e){J(null!=t.Ya,"Child events should have a childName.");var n=e.lc().w(t.Ya);return new Fb(t.type,this,new S(t.Ja,n,e.n.g),t.Nd)},h.Ub=function(t){var e=this.sb;if("cancel"===t.ye()){J(this.qb,"Raising a cancel event on a listener with no cancel callback");var n=this.qb;return function(){n.call(e,t.error)}}var i=this.ga[t.rd];return function(){i.call(e,t.Wd,t.Nd)}},h.matches=function(t){if(t instanceof kd){if(!this.ga||!t.ga)return!0;if(this.sb===t.sb){var e=pa(t.ga);if(e===pa(this.ga)){if(1===e){var e=qa(t.ga),n=qa(this.ga);return!(n!==e||t.ga[e]&&this.ga[n]&&t.ga[e]!==this.ga[n])}return oa(this.ga,function(e,n){return t.ga[n]===e})}}}return!1},h.sf=function(){return null!==this.ga},h=ld.prototype,h.G=function(t,e,n,i,r){return J(t.Ic(this.g),"A node must be indexed if only a child is updated"),i=t.M(e),i.Z(n)?t:(null!=r&&(n.e()?t.Ha(e)?id(r,new D("child_removed",i,e)):J(t.N(),"A child remove without an old child only makes sense on a leaf node"):i.e()?id(r,new D("child_added",n,e)):id(r,new D("child_changed",n,e,i))),t.N()&&n.e()?t:t.Q(e,n).mb(this.g))},h.ta=function(t,e,n){return null!=n&&(t.N()||t.U(M,function(t,i){e.Ha(t)||id(n,new D("child_removed",i,t))}),e.N()||e.U(M,function(e,i){if(t.Ha(e)){var r=t.M(e);r.Z(i)||id(n,new D("child_changed",i,e,r))}else id(n,new D("child_added",i,e))})),e.mb(this.g)},h.da=function(t,e){return t.e()?C:t.da(e)},h.Ga=function(){return!1},h.Vb=function(){return this},h=md.prototype,h.matches=function(t){return 0>=this.g.compare(this.dd,t)&&0>=this.g.compare(t,this.Fc)},h.G=function(t,e,n,i,r){return this.matches(new E(e,n))||(n=C),this.Ae.G(t,e,n,i,r)},h.ta=function(t,e,n){e.N()&&(e=C);var i=e.mb(this.g),i=i.da(C),r=this;return e.U(M,function(t,e){r.matches(new E(t,e))||(i=i.Q(t,C))}),this.Ae.ta(t,i,n)},h.da=function(t){return t},h.Ga=function(){return!0},h.Vb=function(){return this.Ae},h=rd.prototype,h.G=function(t,e,n,i,r){return this.ra.matches(new E(e,n))||(n=C),t.M(e).Z(n)?t:t.Db()=this.g.compare(this.ra.dd,a):0>=this.g.compare(a,this.ra.Fc)))break;i=i.Q(a.name,a.S),r++}}else{i=e.mb(this.g),i=i.da(C);var s,h,u;if(this.Jb){e=i.rf(this.g),s=this.ra.Fc,h=this.ra.dd;var c=ud(this.g);u=function(t,e){return c(e,t)}}else e=i.Wb(this.g),s=this.ra.dd,h=this.ra.Fc,u=ud(this.g);for(var r=0,l=!1;0=u(s,a)&&(l=!0),(o=l&&r=u(a,h))?r++:i=i.Q(a.name,C)}return this.ra.Vb().ta(t,i,n)},h.da=function(t){return t},h.Ga=function(){return!0},h.Vb=function(){return this.ra.Vb()},zd.prototype.bb=function(t,e,n,i){var r,o=new hd;if(e.type===Vb)e.source.ve?n=Ad(this,t,e.path,e.Ia,n,i,o):(J(e.source.of,"Unknown source."),r=e.source.af,n=Bd(this,t,e.path,e.Ia,n,i,r,o));else if(e.type===Cd)e.source.ve?n=Dd(this,t,e.path,e.children,n,i,o):(J(e.source.of,"Unknown source."),r=e.source.af,n=Ed(this,t,e.path,e.children,n,i,r,o));else if(e.type===Xb)if(e.Ve)if(r=e.path,null!=n.sc(r))n=t;else{if(e=new qb(n,t,i),i=t.D.j(),r.e()||".priority"===O(r))Hb(t.u())?e=n.ua(tb(t)):(e=t.u().j(),J(e instanceof T,"serverChildren would be complete if leaf node"),e=n.xc(e)),e=this.I.ta(i,e,o);else{r=O(r);var a=n.Xa(r,t.u());null==a&&rb(t.u(),r)&&(a=i.M(r)),e=null!=a?this.I.G(i,r,a,e,o):t.D.j().Ha(r)?this.I.G(i,r,C,e,o):i,e.e()&&Hb(t.u())&&(i=n.ua(tb(t)),i.N()&&(e=this.I.ta(e,i,o)))}i=Hb(t.u())||null!=n.sc(F),n=Fd(t,e,i,this.I.Ga())}else n=Gd(this,t,e.path,n,i,o);else{if(e.type!==$b)throw Hc("Unknown operation type: "+e.type);i=e.path,e=t.u(),r=e.j(),a=e.$||i.e(),n=Hd(this,new Id(t.D,new sb(r,a,e.Tb)),i,n,pb,o)}return o=ra(o.eb),i=n,e=i.D,e.$&&(r=e.j().N()||e.j().e(),a=Jd(t),(0=0,"Unknown leaf type: "+e),J(r>=0,"Unknown leaf type: "+n),i===r?"object"===n?0:this.Ci){var o,a=[];for(o in e)a[o]=e[o];return a}return t&&!this.A().e()&&(e[".priority"]=this.A().K()),e},h.hash=function(){if(null===this.Bb){var t="";this.A().e()||(t+="priority:"+le(this.A().K())+":"),this.U(M,function(e,n){var i=n.hash();""!==i&&(t+=":"+e+":"+i)}),this.Bb=""===t?"":Jc(t)}return this.Bb},h.qf=function(t,e,n){return(n=oe(this,n))?(t=cc(n,new E(t,e)))?t.name:null:cc(this.m,t)},h.U=function(t,e){var n=oe(this,t);return n?n.ha(function(t){return e(t.name,t.S)}):this.m.ha(e)},h.Wb=function(t){return this.Xb(t.Sc(),t)},h.Xb=function(t,e){var n=oe(this,e);if(n)return n.Xb(t,function(t){return t});for(var n=this.m.Xb(t.name,Qb),i=ec(n);null!=i&&0>e.compare(i,t);)H(n),i=ec(n);return n},h.rf=function(t){return this.Zb(t.Pc(),t)},h.Zb=function(t,e){var n=oe(this,e);if(n)return n.Zb(t,function(t){return t});for(var n=this.m.Zb(t.name,Qb),i=ec(n);null!=i&&0t?-1:1});h=De.prototype,h.e=function(){return null===this.value&&this.children.e()},h.subtree=function(t){if(t.e())return this;var e=this.children.get(O(t));return null!==e?e.subtree(G(t)):Nd},h.set=function(t,e){if(t.e())return new De(e,this.children);var n=O(t),i=(this.children.get(n)||Nd).set(G(t),e),n=this.children.Na(n,i);return new De(this.value,n)},h.remove=function(t){if(t.e())return this.children.e()?Nd:new De(null,this.children);var e=O(t),n=this.children.get(e);return n?(t=n.remove(G(t)),e=t.e()?this.children.remove(e):this.children.Na(e,t),null===this.value&&e.e()?Nd:new De(this.value,e)):this},h.get=function(t){if(t.e())return this.value;var e=this.children.get(O(t));return e?e.get(G(t)):null};var Nd=new De(null);De.prototype.toString=function(){var t={};return Kd(this,function(e,n){t[e.toString()]=n.toString()}),B(t)};var Re=new Qe(new De(null));Qe.prototype.Od=function(t){return t.e()?Re:(t=Md(this.W,t,Nd),new Qe(t))},Qe.prototype.e=function(){return this.W.e()},Qe.prototype.apply=function(t){return Xe(F,this.W,t)},h=Ye.prototype,h.Od=function(t){var e=Ua(this.za,function(e){return e.ie===t});J(e>=0,"removeWrite called with nonexistent writeId.");var n=this.za[e];this.za.splice(e,1);for(var i=n.visible,o=!1,a=this.za.length-1;i&&a>=0;){var s=this.za[a];s.visible&&(a>=e&&Ze(s,n.path)?i=!1:n.path.contains(s.path)&&(o=!0)),a--}if(i){if(o)this.T=$e(this.za,af,F),this.Lc=0=0;o--)r[o]="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".charAt(n%64),n=Math.floor(n/64);if(J(0===n,"Cannot push at time == 0"),n=r.join(""),i){for(o=11;o>=0&&63===e[o];o--)e[o]=0;e[o]++}else for(o=0;12>o;o++)e[o]=Math.floor(64*Math.random());for(o=0;12>o;o++)n+="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".charAt(e[o]);return J(20===n.length,"nextPushId: Length should be 20."),n}}();ma(Lf,If),Lf.prototype.ze=function(t){return J("online"===t,"Unknown event type: "+t),[this.ic]},ca(Lf),ma(Mf,If),Mf.prototype.ze=function(t){return J("visible"===t,"Unknown event type: "+t),[this.uc]},ca(Mf);var Nf=/[\[\].#$\/\u0000-\u001F\u007F]/,Of=/[\[\].#$\u0000-\u001F\u007F]/;h=cg.prototype,h.add=function(t,e){this.set[t]=null!==e?e:!0},h.contains=function(t){return u(this.set,t)},h.get=function(t){return this.contains(t)?this.set[t]:void 0},h.remove=function(t){delete this.set[t]},h.clear=function(){this.set={}},h.e=function(){return wa(this.set)},h.count=function(){return pa(this.set)},h.keys=function(){var t=[]; -return r(this.set,function(e,n){t.push(n)}),t},qc.prototype.find=function(t){if(null!=this.C)return this.C.oa(t);if(t.e()||null==this.m)return null;var e=O(t);return t=G(t),this.m.contains(e)?this.m.get(e).find(t):null},qc.prototype.mc=function(t,e){if(t.e())this.C=e,this.m=null;else if(null!==this.C)this.C=this.C.G(t,e);else{null==this.m&&(this.m=new cg);var n=O(t);this.m.contains(n)||this.m.add(n,new qc),n=this.m.get(n),t=G(t),n.mc(t,e)}},qc.prototype.U=function(t){null!==this.m&&dg(this.m,function(e,n){t(e,n)})};var fg="auth.firebase.com",hg=["remember","redirectTo"];jg.prototype.set=function(t,e){if(!e){if(!this.$d.length)throw Error("fb.login.SessionManager : No storage options available!");e=this.$d[0]}e.set(this.Pe,t)},jg.prototype.get=function(){var t=Qa(this.$d,q(this.ng,this)),t=Pa(t,function(t){return null!==t});return Xa(t,function(t,e){return bd(e.token)-bd(t.token)}),0o.status){try{t=mb(o.responseText)}catch(e){}n(null,t)}else n(500<=o.status&&600>o.status?yg("SERVER_ERROR"):yg("NETWORK_ERROR"));n=null,pg(window,"beforeunload",i)}},"GET"===a)t+=(/\?/.test(t)?"":"?")+jb(e),r=null;else{var s=this.options.headers.content_type;"application/json"===s&&(r=B(e)),"application/x-www-form-urlencoded"===s&&(r=jb(e))}o.open(a,t,!0),t={"X-Requested-With":"XMLHttpRequest",Accept:"application/json;text/plain"},za(t,this.options.headers);for(var h in t)o.setRequestHeader(h,t[h]);o.send(r)},Ag.isAvailable=function(){return!(!window.XMLHttpRequest||"string"!=typeof(new XMLHttpRequest).responseType||"undefined"!=typeof navigator&&(navigator.userAgent.match(/MSIE/)||navigator.userAgent.match(/Trident/))&&!mg())},Ag.prototype.Bc=function(){return"json"},Bg.prototype.open=function(t,e,n){function i(){n&&(n(yg("USER_CANCELLED")),n=null)}var r,o=this,a=Rc(fg);e.requestId=this.oc,e.redirectTo=a.scheme+"://"+a.host+"/blank/page.html",t+=/\?/.test(t)?"":"?",t+=jb(e),(r=window.open(t,"_blank","location=no"))&&ha(r.addEventListener)?(r.addEventListener("loadstart",function(t){var e;if(e=t&&t.url)t:{try{var s=document.createElement("a");s.href=t.url,e=s.host===a.host&&"/blank/page.html"===s.pathname;break t}catch(h){}e=!1}e&&(t=rg(t.url),r.removeEventListener("exit",i),r.close(),t=new gg(null,null,{requestId:o.oc,requestKey:t}),o.Df.requestWithCredential("/auth/session",t,n),n=null)}),r.addEventListener("exit",i)):n(yg("TRANSPORT_UNAVAILABLE"))},Bg.isAvailable=function(){return kg()},Bg.prototype.Bc=function(){return"redirect"},Cg.prototype.open=function(t,e,n){function i(){n&&(n(yg("REQUEST_INTERRUPTED")),n=null)}function r(){setTimeout(function(){window.__firebase_auth_jsonp[o]=void 0,wa(window.__firebase_auth_jsonp)&&(window.__firebase_auth_jsonp=void 0);try{var t=document.getElementById(o);t&&t.parentNode.removeChild(t)}catch(e){}},1),pg(window,"beforeunload",i)}var o="fn"+(new Date).getTime()+Math.floor(99999*Math.random());e[this.options.callback_parameter]="__firebase_auth_jsonp."+o,t+=(/\?/.test(t)?"":"?")+jb(e),og(window,"beforeunload",i),window.__firebase_auth_jsonp[o]=function(t){n&&(n(null,t),n=null),r()},Dg(o,t,n)},Cg.isAvailable=function(){return!0},Cg.prototype.Bc=function(){return"json"},ma(Eg,If),h=Eg.prototype,h.we=function(){return this.nb||null},h.re=function(t,e){Ng(this);var n=ig(t);n.ab._method="POST",this.pc("/users",n,function(t,n){t?R(e,t):R(e,t,n)})},h.Se=function(t,e){var n=this;Ng(this);var i="/users/"+encodeURIComponent(t.email),r=ig(t);r.ab._method="DELETE",this.pc(i,r,function(t,i){!t&&i&&i.uid&&n.nb&&n.nb.uid&&n.nb.uid===i.uid&&Lg(n),R(e,t)})},h.oe=function(t,e){Ng(this);var n="/users/"+encodeURIComponent(t.email)+"/password",i=ig(t);i.ab._method="PUT",i.ab.password=t.newPassword,this.pc(n,i,function(t){R(e,t)})},h.ne=function(t,e){Ng(this);var n="/users/"+encodeURIComponent(t.oldEmail)+"/email",i=ig(t);i.ab._method="PUT",i.ab.email=t.newEmail,i.ab.password=t.password,this.pc(n,i,function(t){R(e,t)})},h.Ue=function(t,e){Ng(this);var n="/users/"+encodeURIComponent(t.email)+"/password",i=ig(t);i.ab._method="POST",this.pc(n,i,function(t){R(e,t)})},h.pc=function(t,e,n){Qg(this,[Ag,Cg],t,e,n)},h.ze=function(t){return J("auth_status"===t,'initial event must be of type "auth_status"'),this.Re?null:[this.nb]};var Vg,Wg;Ug.prototype.open=function(t,e){this.gf=0,this.ka=e,this.zf=new Rg(t),this.zb=!1;var n=this;this.rb=setTimeout(function(){n.f("Timed out trying to connect."),n.ib(),n.rb=null},Math.floor(3e4)),Tc(function(){if(!n.zb){n.Ta=new Xg(function(t,e,i,r,o){if(Yg(n,arguments),n.Ta)if(n.rb&&(clearTimeout(n.rb),n.rb=null),n.Gc=!0,"start"==t)n.id=e,n.Ff=i;else{if("close"!==t)throw Error("Unrecognized command received: "+t);e?(n.Ta.Td=!1,Sg(n.zf,e,function(){n.ib()})):n.ib()}},function(t,e){Yg(n,arguments),Tg(n.zf,t,e)},function(){n.ib()},n.gd);var t={start:"t"};t.ser=Math.floor(1e8*Math.random()),n.Ta.fe&&(t.cb=n.Ta.fe),t.v="5",n.Vd&&(t.s=n.Vd),"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(t.r="f"),t=n.gd(t),n.f("Connecting via long-poll to "+t),Zg(n.Ta,t,function(){})}})},Ug.prototype.start=function(){var t=this.Ta,e=this.Ff;for(t.rg=this.id,t.sg=e,t.ke=!0;$g(t););t=this.id,e=this.Ff,this.fc=document.createElement("iframe");var n={dframe:"t"};n.id=t,n.pw=e,this.fc.src=this.gd(n),this.fc.style.display="none",document.body.appendChild(this.fc)},Ug.isAvailable=function(){return!(Wg||"object"==typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href)||"object"==typeof Windows&&"object"==typeof Windows.Ug)},h=Ug.prototype,h.Bd=function(){},h.cd=function(){this.zb=!0,this.Ta&&(this.Ta.close(),this.Ta=null),this.fc&&(document.body.removeChild(this.fc),this.fc=null),this.rb&&(clearTimeout(this.rb),this.rb=null)},h.ib=function(){this.zb||(this.f("Longpoll is closing itself"),this.cd(),this.ka&&(this.ka(this.Gc),this.ka=null))},h.close=function(){this.zb||(this.f("Longpoll is being closed."),this.cd())},h.send=function(t){t=B(t),this.pb+=t.length,Lb(this.Va,"bytes_sent",t.length),t=Kc(t),t=fb(t,!0),t=Xc(t,1840);for(var e=0;e=t.length){var e=Number(t);if(!isNaN(e)){r.bf=e,r.frames=[],t=null;break t}}r.bf=1,r.frames=[]}null!==t&&fh(r,t)}},this.va.onerror=function(t){r.f("WebSocket error. Closing connection."),(t=t.message||t.data)&&r.f(t),r.ib()}},ch.prototype.start=function(){},ch.isAvailable=function(){var t=!1;if("undefined"!=typeof navigator&&navigator.userAgent){var e=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);e&&1parseFloat(e[1])&&(t=!0)}return!t&&null!==bh&&!dh},ch.responsesRequiredToBeHealthy=2,ch.healthyTimeout=3e4,h=ch.prototype,h.Bd=function(){Dc.remove("previous_websocket_failure")},h.send=function(t){eh(this),t=B(t),this.pb+=t.length,Lb(this.Va,"bytes_sent",t.length),t=Xc(t,16384),1r;r++)e+=" ";console.log(e+i)}}},h.Ze=function(t){Lb(this.Va,t),this.Pg.Mf[t]=!0},h.f=function(t){var e="";this.Ra&&(e=this.Ra.id+":"),Bb(e,arguments)},ca(W),W.prototype.yb=function(){for(var t in this.nc)this.nc[t].yb()},W.prototype.interrupt=W.prototype.yb,W.prototype.qc=function(){for(var t in this.nc)this.nc[t].qc()},W.prototype.resume=W.prototype.qc,W.prototype.ue=function(){this.Pf=!0},X.prototype.cancel=function(t){x("Firebase.onDisconnect().cancel",0,1,arguments.length),A("Firebase.onDisconnect().cancel",1,t,!0),this.ad.Gd(this.qa,t||null)},X.prototype.cancel=X.prototype.cancel,X.prototype.remove=function(t){x("Firebase.onDisconnect().remove",0,1,arguments.length),Yf("Firebase.onDisconnect().remove",this.qa),A("Firebase.onDisconnect().remove",1,t,!0),Sh(this.ad,this.qa,null,t)},X.prototype.remove=X.prototype.remove,X.prototype.set=function(t,e){x("Firebase.onDisconnect().set",1,2,arguments.length),Yf("Firebase.onDisconnect().set",this.qa),Rf("Firebase.onDisconnect().set",t,this.qa,!1),A("Firebase.onDisconnect().set",2,e,!0),Sh(this.ad,this.qa,t,e)},X.prototype.set=X.prototype.set,X.prototype.Kb=function(t,e,n){x("Firebase.onDisconnect().setWithPriority",2,3,arguments.length),Yf("Firebase.onDisconnect().setWithPriority",this.qa),Rf("Firebase.onDisconnect().setWithPriority",t,this.qa,!1),Uf("Firebase.onDisconnect().setWithPriority",2,e),A("Firebase.onDisconnect().setWithPriority",3,n,!0),Th(this.ad,this.qa,t,e,n)},X.prototype.setWithPriority=X.prototype.Kb,X.prototype.update=function(t,e){if(x("Firebase.onDisconnect().update",1,2,arguments.length),Yf("Firebase.onDisconnect().update",this.qa),ea(t)){for(var n={},i=0;i=t)throw Error("Query.limit: First argument must be a positive integer.");if(this.n.ia)throw Error("Query.limit: Limit was already set (by another call to limit, limitToFirst, orlimitToLast.");var e=this.n.Ge(t);return fi(e),new Y(this.k,this.path,e,this.jc)},Y.prototype.limit=Y.prototype.Ge,Y.prototype.He=function(t){if(x("Query.limitToFirst",1,1,arguments.length),!ga(t)||Math.floor(t)!==t||0>=t)throw Error("Query.limitToFirst: First argument must be a positive integer.");if(this.n.ia)throw Error("Query.limitToFirst: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new Y(this.k,this.path,this.n.He(t),this.jc)},Y.prototype.limitToFirst=Y.prototype.He,Y.prototype.Ie=function(t){if(x("Query.limitToLast",1,1,arguments.length),!ga(t)||Math.floor(t)!==t||0>=t)throw Error("Query.limitToLast: First argument must be a positive integer.");if(this.n.ia)throw Error("Query.limitToLast: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new Y(this.k,this.path,this.n.Ie(t),this.jc)},Y.prototype.limitToLast=Y.prototype.Ie,Y.prototype.Bg=function(t){if(x("Query.orderByChild",1,1,arguments.length),"$key"===t)throw Error('Query.orderByChild: "$key" is invalid. Use Query.orderByKey() instead.');if("$priority"===t)throw Error('Query.orderByChild: "$priority" is invalid. Use Query.orderByPriority() instead.');if("$value"===t)throw Error('Query.orderByChild: "$value" is invalid. Use Query.orderByValue() instead.');Wf("Query.orderByChild",1,t,!1),gi(this,"Query.orderByChild");var e=be(this.n,new Rd(t));return ei(e),new Y(this.k,this.path,e,!0)},Y.prototype.orderByChild=Y.prototype.Bg,Y.prototype.Cg=function(){x("Query.orderByKey",0,0,arguments.length),gi(this,"Query.orderByKey");var t=be(this.n,Vd);return ei(t),new Y(this.k,this.path,t,!0)},Y.prototype.orderByKey=Y.prototype.Cg,Y.prototype.Dg=function(){x("Query.orderByPriority",0,0,arguments.length),gi(this,"Query.orderByPriority");var t=be(this.n,M);return ei(t),new Y(this.k,this.path,t,!0)},Y.prototype.orderByPriority=Y.prototype.Dg,Y.prototype.Eg=function(){x("Query.orderByValue",0,0,arguments.length),gi(this,"Query.orderByValue");var t=be(this.n,Yd);return ei(t),new Y(this.k,this.path,t,!0)},Y.prototype.orderByValue=Y.prototype.Eg,Y.prototype.Xd=function(t,e){x("Query.startAt",0,2,arguments.length),Rf("Query.startAt",t,this.path,!0),Wf("Query.startAt",2,e,!0);var i=this.n.Xd(t,e);if(fi(i),ei(i),this.n.la)throw Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return n(t)||(e=t=null),new Y(this.k,this.path,i,this.jc)},Y.prototype.startAt=Y.prototype.Xd,Y.prototype.qd=function(t,e){x("Query.endAt",0,2,arguments.length),Rf("Query.endAt",t,this.path,!0),Wf("Query.endAt",2,e,!0);var n=this.n.qd(t,e);if(fi(n),ei(n),this.n.na)throw Error("Query.endAt: Ending point was already set (by another call to endAt or equalTo).");return new Y(this.k,this.path,n,this.jc)},Y.prototype.endAt=Y.prototype.qd,Y.prototype.hg=function(t,e){if(x("Query.equalTo",1,2,arguments.length),Rf("Query.equalTo",t,this.path,!1),Wf("Query.equalTo",2,e,!0),this.n.la)throw Error("Query.equalTo: Starting point was already set (by another call to endAt or equalTo).");if(this.n.na)throw Error("Query.equalTo: Ending point was already set (by another call to endAt or equalTo).");return this.Xd(t,e).qd(t,e)},Y.prototype.equalTo=Y.prototype.hg,Y.prototype.toString=function(){x("Query.toString",0,0,arguments.length);for(var t=this.path,e="",n=t.Y;n\\n
\\n \\n \\n \\n

Hacker News

\\n \\n Built with Vue.js |\\n Source\\n \\n
\\n \\n
\";\nmodule.exports = {\n el: '#app',\n data: {\n view: '',\n params: {\n page: 1,\n userId: null,\n itemId: null\n }\n },\n filters: {\n fromNow: require('./filters/from-now'),\n domain: require('./filters/domain')\n },\n components: {\n 'news-view': require('./views/news-view.vue'),\n 'item-view': require('./views/item-view.vue'),\n 'user-view': require('./views/user-view.vue')\n }\n}\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = __vue_template__;\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/app.vue\n ** module id = 1\n ** module chunks = 0\n **/","var _ = require('./util')\nvar extend = _.extend\n\n/**\n * The exposed Vue constructor.\n *\n * API conventions:\n * - public API methods/properties are prefiexed with `$`\n * - internal methods/properties are prefixed with `_`\n * - non-prefixed properties are assumed to be proxied user\n * data.\n *\n * @constructor\n * @param {Object} [options]\n * @public\n */\n\nfunction Vue (options) {\n this._init(options)\n}\n\n/**\n * Mixin global API\n */\n\nextend(Vue, require('./api/global'))\n\n/**\n * Vue and every constructor that extends Vue has an\n * associated options object, which can be accessed during\n * compilation steps as `this.constructor.options`.\n *\n * These can be seen as the default options of every\n * Vue instance.\n */\n\nVue.options = {\n directives : require('./directives'),\n filters : require('./filters'),\n partials : {},\n transitions : {},\n components : {}\n}\n\n/**\n * Build up the prototype\n */\n\nvar p = Vue.prototype\n\n/**\n * $data has a setter which does a bunch of\n * teardown/setup work\n */\n\nObject.defineProperty(p, '$data', {\n get: function () {\n return this._data\n },\n set: function (newData) {\n this._setData(newData)\n }\n})\n\n/**\n * Mixin internal instance methods\n */\n\nextend(p, require('./instance/init'))\nextend(p, require('./instance/events'))\nextend(p, require('./instance/scope'))\nextend(p, require('./instance/compile'))\n\n/**\n * Mixin public API methods\n */\n\nextend(p, require('./api/data'))\nextend(p, require('./api/dom'))\nextend(p, require('./api/events'))\nextend(p, require('./api/child'))\nextend(p, require('./api/lifecycle'))\n\nmodule.exports = _.Vue = Vue\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vue/src/vue.js\n ** module id = 2\n ** module chunks = 0\n **/","\n\n//\n// Generated on Tue Dec 16 2014 12:13:47 GMT+0100 (CET) by Charlie Robbins, Paolo Fragomeni & the Contributors (Using Codesurgeon).\n// Version 1.2.6\n//\n\n(function (exports) {\n\n/*\n * browser.js: Browser specific functionality for director.\n *\n * (C) 2011, Charlie Robbins, Paolo Fragomeni, & the Contributors.\n * MIT LICENSE\n *\n */\n\nvar dloc = document.location;\n\nfunction dlocHashEmpty() {\n // Non-IE browsers return '' when the address bar shows '#'; Director's logic\n // assumes both mean empty.\n return dloc.hash === '' || dloc.hash === '#';\n}\n\nvar listener = {\n mode: 'modern',\n hash: dloc.hash,\n history: false,\n\n check: function () {\n var h = dloc.hash;\n if (h != this.hash) {\n this.hash = h;\n this.onHashChanged();\n }\n },\n\n fire: function () {\n if (this.mode === 'modern') {\n this.history === true ? window.onpopstate() : window.onhashchange();\n }\n else {\n this.onHashChanged();\n }\n },\n\n init: function (fn, history) {\n var self = this;\n this.history = history;\n\n if (!Router.listeners) {\n Router.listeners = [];\n }\n\n function onchange(onChangeEvent) {\n for (var i = 0, l = Router.listeners.length; i < l; i++) {\n Router.listeners[i](onChangeEvent);\n }\n }\n\n //note IE8 is being counted as 'modern' because it has the hashchange event\n if ('onhashchange' in window && (document.documentMode === undefined\n || document.documentMode > 7)) {\n // At least for now HTML5 history is available for 'modern' browsers only\n if (this.history === true) {\n // There is an old bug in Chrome that causes onpopstate to fire even\n // upon initial page load. Since the handler is run manually in init(),\n // this would cause Chrome to run it twise. Currently the only\n // workaround seems to be to set the handler after the initial page load\n // http://code.google.com/p/chromium/issues/detail?id=63040\n setTimeout(function() {\n window.onpopstate = onchange;\n }, 500);\n }\n else {\n window.onhashchange = onchange;\n }\n this.mode = 'modern';\n }\n else {\n //\n // IE support, based on a concept by Erik Arvidson ...\n //\n var frame = document.createElement('iframe');\n frame.id = 'state-frame';\n frame.style.display = 'none';\n document.body.appendChild(frame);\n this.writeFrame('');\n\n if ('onpropertychange' in document && 'attachEvent' in document) {\n document.attachEvent('onpropertychange', function () {\n if (event.propertyName === 'location') {\n self.check();\n }\n });\n }\n\n window.setInterval(function () { self.check(); }, 50);\n\n this.onHashChanged = onchange;\n this.mode = 'legacy';\n }\n\n Router.listeners.push(fn);\n\n return this.mode;\n },\n\n destroy: function (fn) {\n if (!Router || !Router.listeners) {\n return;\n }\n\n var listeners = Router.listeners;\n\n for (var i = listeners.length - 1; i >= 0; i--) {\n if (listeners[i] === fn) {\n listeners.splice(i, 1);\n }\n }\n },\n\n setHash: function (s) {\n // Mozilla always adds an entry to the history\n if (this.mode === 'legacy') {\n this.writeFrame(s);\n }\n\n if (this.history === true) {\n window.history.pushState({}, document.title, s);\n // Fire an onpopstate event manually since pushing does not obviously\n // trigger the pop event.\n this.fire();\n } else {\n dloc.hash = (s[0] === '/') ? s : '/' + s;\n }\n return this;\n },\n\n writeFrame: function (s) {\n // IE support...\n var f = document.getElementById('state-frame');\n var d = f.contentDocument || f.contentWindow.document;\n d.open();\n d.write(\" + - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/components/comment.vue b/src/components/comment.vue index a625246..77ba8fd 100644 --- a/src/components/comment.vue +++ b/src/components/comment.vue @@ -1,26 +1,3 @@ - -