this._D=this._D||{};(function(_){var window=this;
try{
_.r("syo3");

_.V("c","",1,function(a,b){return(0,_.K)('<div jsname="'+_.J("v5a5C")+'">'+_.T(_.gn("a","grayCloudNotFilled",!1)(a,b))+"</div>")});

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("nQy7te");


_.w();

}catch(e){_._DumpException(e)}
try{
_.r("JMlBJd");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("byfTOb");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("LEikZe");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sHns9b");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("rJmJrc");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("VLKYIb");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("vXcQ6e");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("n7wSQ");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("h8Xfyd");

_.w();

}catch(e){_._DumpException(e)}
try{
_.xib=function(a){a=parseInt(_.C(a,3)||"0",10);return 100<=a?"over":90<=a?"near":"under"};_.Cib=function(a,b,c,d){var e=_.re.getService(a);a=e.Lf(a,c);c=a.H.wk;var f=new _.yib;b.uY&&_.A(f,2,b.uY);b.FC&&0<=b.FC&&_.A(f,1,b.FC);b.quotaType&&_.A(f,3,b.quotaType);_.zib(c,f);d&&(b=new _.Aib,_.A(b,1,d),_.Bib(c,b));e.Hf(a)};_.Dib=function(a){return isNaN(a)?0:100<=a?6:95<=a?5:90<=a?4:80<=a?3:70<=a?2:1};_.zib=function(a,b){b&&(a=a.jd(),_.y(a,29,b))};_.Bib=function(a,b){b&&(a=a.jd(),_.y(a,38,b))};
_.yib=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.yib,_.L);_.Aib=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.Aib,_.L);_.Aib.prototype.zh=function(){return _.C(this,1)};_.r("syo6");
_.Fib=function(a,b,c){var d=_.G(a.get(_.OEa),1,""),e=_.xib(b);d=new _.Aj(d);a:switch(e){case "over":var f="o";break a;case "near":f="u";break a;default:f="m"}return _.Gj(_.Jj(_.Jj(_.Jj(_.Jj(d,"i",f),"utm_source","drive"),"utm_medium","web"),"utm_campaign",_.Eib(a,e,c)),-1!=parseInt(String(_.D(b,_.xx,2)),10)?"upgrade":"")};
_.Eib=function(a,b,c){switch(c){case "settings":return"settings";case "upload_dialog":return"upload_dialog_oos";case "widget":switch(b){case "over":return"widget_oos";case "near":return"widget_near_quota";default:return"widget_normal"}default:switch(b){case "near":case "over":return"upsell";default:return"manage"}}};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sysy");

var Gib=_.Eib,Hib=_.Fib;_.Eib=function(a,b,c){return"over"==b&&_.E(a.get(_.Hb),18,!1)?"widget_trial":Gib(a,b,c)};_.Fib=function(a,b,c){c=Hib(a,b,c);"over"===_.xib(b)&&_.E(a.get(_.Hb),18,!1)&&_.Jj(c,"eft","1");return c};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("em0");


_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy16f");
_.fOc=[9,42,41,44,38,20,21,16,12,3,10,11,18,14,32,1,67,68,7,24,25,159,154,158,155,55,4,83,19,2,6,27];_.gOc=[90,59,75];_.hOc=_.wa(_.fOc,_.gOc);

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy16h");

_.fOc.push(210);_.fOc.push(210);_.hOc.push(210);

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("em1d");


_.w();

}catch(e){_._DumpException(e)}
try{
var asb,csb;asb=[4,5,6,7];_.bsb=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.bsb,_.L);_.bsb.prototype.Su=function(){return _.C(this,2)};_.bsb.prototype.CSa=function(){return _.C(this,3)};csb=[5];_.dsb=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.dsb,_.L);_.esb=function(a){(0,_.S)(this,a,0,-1,csb,null)};_.O(_.esb,_.L);_.g=_.esb.prototype;_.g.Tb="dzR11e";_.g.hE=function(){return _.C(this,1)};_.g.kN=function(){return _.C(this,3)};_.g.cP=function(){return _.Ok(this,_.bsb,5)};
_.g.tn=function(){return _.C(this,6)};_.g.Iw=function(){return _.C(this,7)};_.g.ky=function(){return _.C(this,10)};_.AB=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.AB,_.L);_.AB.prototype.Tb="JmcaR";_.AB.prototype.Bb=function(){return _.C(this,1)};_.AB.prototype.Ac=function(a){return _.A(this,1,a)};_.AB.prototype.m_=function(){return _.C(this,2)};_.fsb=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.fsb,_.L);_.fsb.prototype.Tb="dvhrqe";_.fsb.prototype.O=function(){return _.H(this,1)};
_.gsb=function(a){(0,_.S)(this,a,0,-1,asb,null)};_.O(_.gsb,_.L);_.gsb.prototype.O=function(){return _.D(this,_.esb,1)};_.gsb.prototype.ZE=function(){return _.D(this,_.AB,8)};_.gsb.prototype.V=function(){return _.D(this,_.fsb,9)};_.r("syo4");
_.BB=function(a){(0,_.S)(this,a,0,-1,hsb,null)};_.O(_.BB,_.L);var hsb=[2];_.BB.prototype.getUser=function(){return _.D(this,_.nl,1)};_.BB.prototype.getMetadata=function(){return _.D(this,_.gsb,3)};_.BB.prototype.kp=function(){return _.sk(this,3)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.ksb=function(a){return a instanceof _.Tb?a:a instanceof _.Ub?a.$g:null};_.r("syo5");

_.w();

}catch(e){_._DumpException(e)}
try{
_.Xz=function(a){if(Array.isArray(a))return a.map(_.Xz).join("");if(_.C(a,2)){if(!a.getId())throw Error("id");return a.getId()+"/"+_.C(a,2)+","}return""};_.r("syp5");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sypb");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sypc");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/

_.w();

}catch(e){_._DumpException(e)}
try{
var Isb,Jsb;_.Hsb=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")};Isb={AbortError:3,EncodingError:5,InvalidModificationError:9,InvalidStateError:7,NotFoundError:1,NotReadableError:4,NoModificationAllowedError:6,PathExistsError:12,QuotaExceededError:10,SecurityError:2,SyntaxError:8,TypeMismatchError:11};
Jsb=function(a){var b=_.Fga(Isb,function(c){return a==c});if(void 0===b)throw Error("kb`"+a);return b};_.Ksb=function(a,b){void 0!==a.name?(this.name=a.name,this.code=Isb[a.name]):(this.code=a=a.code,this.name=Jsb(a));_.ha.call(this,_.Hsb("%s %s",this.name,b))};_.O(_.Ksb,_.ha);var Lsb=function(a,b){_.Fi.call(this,a.type,b)};_.O(Lsb,_.Fi);_.r("sypd");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Msb=function(){_.Q.call(this);this.H=new FileReader;this.H.onloadstart=(0,_.v)(this.SY,this);this.H.onprogress=(0,_.v)(this.SY,this);this.H.onload=(0,_.v)(this.SY,this);this.H.onabort=(0,_.v)(this.SY,this);this.H.onerror=(0,_.v)(this.SY,this);this.H.onloadend=(0,_.v)(this.SY,this)};_.O(_.Msb,_.Q);_.g=_.Msb.prototype;_.g.abort=function(){try{this.H.abort()}catch(a){throw new _.Ksb(a,"aborting read");}};_.g.getResult=function(){return this.H.result};
_.g.getError=function(){return this.H.error&&new _.Ksb(this.H.error,"reading file")};_.g.SY=function(a){this.dispatchEvent(new Lsb(a,this))};_.g.Va=function(){_.Msb.nb.Va.call(this);delete this.H};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sytu");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sytw");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syub");

_.w();

}catch(e){_._DumpException(e)}
try{
_.HA=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.HA,_.L);_.g=_.HA.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Ob=function(a){return _.A(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.A(this,2,a)};_.g.getState=function(){return _.C(this,5)};_.g.Gd=function(a){return _.A(this,5,a)};_.g.pr=function(){return _.sk(this,5)};_.Lob=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.Lob,_.L);_.Lob.prototype.O=function(){return _.C(this,1)};
_.Lob.prototype.Bb=function(){return _.C(this,2)};_.Lob.prototype.Ac=function(a){return _.A(this,2,a)};_.Lob.prototype.V=function(){return _.C(this,3)};_.r("syua");
_.Nob=function(a){(0,_.S)(this,a,0,-1,Mob,null)};_.O(_.Nob,_.L);var Mob=[1];_.Nob.prototype.O=function(){return _.Kd(this,1)};
_.Pob=function(a){(0,_.S)(this,a,0,-1,Oob,null)};_.O(_.Pob,_.L);var Oob=[1];_.Pob.prototype.O=function(){return _.Ok(this,_.Lob,1)};
_.Rob=function(a){(0,_.S)(this,a,0,-1,Qob,null)};_.O(_.Rob,_.L);var Qob=[1];_.Rob.prototype.O=function(){return _.Ok(this,_.Pob,1)};_.Rob.prototype.addResult=function(a,b){return _.Rk(this,1,a,_.Pob,b)};
_.Sob=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.Sob,_.L);_.Sob.prototype.V=function(){return _.D(this,_.Rob,1)};_.Sob.prototype.O=function(){return _.D(this,_.Nob,2)};
_.IA=function(a){(0,_.S)(this,a,0,-1,Tob,null)};_.O(_.IA,_.L);var Tob=[2,14,18];_.g=_.IA.prototype;_.g.Bb=function(){return _.C(this,1)};_.g.Ac=function(a){return _.A(this,1,a)};_.g.Cd=function(){return _.Ok(this,_.Dl,2)};_.g.Bv=function(a){return _.kb(this,2,a)};_.g.Pg=function(a,b){return _.Rk(this,2,a,_.Dl,b)};_.g.Bj=function(){return _.C(this,3)};_.g.Mk=function(){return _.E(this,5,!0)};_.g.t3=function(){return _.D(this,_.Sob,7)};_.g.bpa=function(){return _.H(this,8)};
_.g.tf=function(){return _.C(this,17)};_.g.pN=function(a){return _.A(this,17,a)};_.g.Re=function(){return _.C(this,12)};_.g.Ai=function(a){return _.A(this,12,a)};_.g.wo=function(){return _.C(this,15)};_.g.sha=function(){return _.Kd(this,18)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syuc");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syud");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syv6");
_.pC=function(a){(0,_.S)(this,a,0,-1,gyb,null)};_.O(_.pC,_.L);var gyb=[3];_.pC.prototype.re=function(){return _.D(this,_.af,1)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syvu");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.uD=function(a,b,c){_.P.call(this);this.eq=null!=c?(0,_.v)(a,c):a;this.ka=b;this.Eg=(0,_.v)(this.F5a,this);this.O=!1;this.V=0;this.W=this.H=null;this.ha=[]};_.O(_.uD,_.P);_.g=_.uD.prototype;_.g.ue=function(a){this.ha=arguments;this.O=!1;this.H?this.W=_.wf()+this.ka:this.H=_.Oi(this.Eg,this.ka)};_.g.stop=function(){this.H&&(_.Si(this.H),this.H=null);this.W=null;this.O=!1;this.ha=[]};_.g.pause=function(){++this.V};
_.g.resume=function(){this.V&&(--this.V,!this.V&&this.O&&(this.O=!1,this.eq.apply(null,this.ha)))};_.g.Va=function(){this.stop();_.uD.nb.Va.call(this)};_.g.F5a=function(){this.W?(this.H=_.Oi(this.Eg,this.W-_.wf()),this.W=null):(this.H=null,this.V?this.O=!0:(this.O=!1,this.eq.apply(null,this.ha)))};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syxy");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syxz");
_.YE=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.YE,_.L);_.YE.prototype.ka=function(){return _.yk(this,1)};_.YE.prototype.V=function(){return _.yk(this,2)};_.YE.prototype.O=function(){return _.yk(this,3)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syy5");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syyk");

_.w();

}catch(e){_._DumpException(e)}
try{
_.NF=function(a){return _.C(a,11)};_.r("syy8");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syy9");
_.OF=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.OF,_.L);_.OF.prototype.Gc=function(){return _.C(this,1)};_.aTb=function(a){var b=new _.OF;return _.A(b,1,a)};_.OF.prototype.ji=function(){return _.C(this,2)};_.OF.prototype.Yh=function(a){return _.A(this,2,a)};_.OF.prototype.re=function(){return _.D(this,_.af,3)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syya");

_.w();

}catch(e){_._DumpException(e)}
try{
_.FSb=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.FSb,_.L);_.r("syyb");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syyd");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syye");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syyj");

_.w();

}catch(e){_._DumpException(e)}
try{
_.HF=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.HF,_.L);_.HF.prototype.getName=function(){return _.C(this,1)};_.HF.prototype.$c=function(a){return _.A(this,1,a)};_.HF.prototype.re=function(){return _.D(this,_.af,2)};_.r("syyl");
_.IF=function(a){(0,_.S)(this,a,0,-1,fSb,null)};_.O(_.IF,_.L);var fSb=[5,6,9,10,12,13,15,16];_.IF.prototype.getId=function(){return _.C(this,1)};_.IF.prototype.Ob=function(a){return _.A(this,1,a)};_.IF.prototype.vy=function(){return _.C(this,2)};
_.hSb=function(a){(0,_.S)(this,a,0,-1,gSb,null)};_.O(_.hSb,_.L);var gSb=[2,4];_.hSb.prototype.Hm=function(){return _.C(this,1)};_.iSb=function(a,b){return _.A(a,1,b)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy11m");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.UG=function(a,b,c,d){this.ha=a;this.W=b;this.H=this.V=a;this.ka=c||0;this.ma=d||2};_.UG.prototype.O=0;_.UG.prototype.reset=function(){this.H=this.V=this.ha;this.O=0};_.UG.prototype.Xa=function(){return this.V};_.VG=function(a){a.H=Math.min(a.W,a.H*a.ma);a.V=Math.min(a.W,a.H+(a.ka?Math.round(a.ka*(Math.random()-.5)*2*a.H):0));a.O++};

_.w();

}catch(e){_._DumpException(e)}
try{
var N7b=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}function b(t){for(var u=h,z=0;64>z;z+=4)u[z/4]=t[z]<<24|t[z+1]<<16|t[z+2]<<8|t[z+3];for(z=16;80>z;z++)t=u[z-3]^u[z-8]^u[z-14]^u[z-16],u[z]=(t<<1|t>>>31)&4294967295;t=e[0];var B=e[1],F=e[2],I=e[3],M=e[4];for(z=0;80>z;z++){if(40>z)if(20>z){var U=I^B&(F^I);var R=1518500249}else U=B^F^I,R=1859775393;else 60>z?(U=B&F|I&(B|F),R=2400959708):(U=B^F^I,R=3395469782);U=((t<<5|t>>>27)&4294967295)+
U+M+R+u[z]&4294967295;M=I;I=F;F=(B<<30|B>>>2)&4294967295;B=t;t=U}e[0]=e[0]+t&4294967295;e[1]=e[1]+B&4294967295;e[2]=e[2]+F&4294967295;e[3]=e[3]+I&4294967295;e[4]=e[4]+M&4294967295}function c(t,u){if("string"===typeof t){t=unescape(encodeURIComponent(t));for(var z=[],B=0,F=t.length;B<F;++B)z.push(t.charCodeAt(B));t=z}u||(u=t.length);z=0;if(0==n)for(;z+64<u;)b(t.slice(z,z+64)),z+=64,p+=64;for(;z<u;)if(f[n++]=t[z++],p++,64==n)for(n=0,b(f);z+64<u;)b(t.slice(z,z+64)),z+=64,p+=64}function d(){var t=[],
u=8*p;56>n?c(k,56-n):c(k,64-(n-56));for(var z=63;56<=z;z--)f[z]=u&255,u>>>=8;b(f);for(z=u=0;5>z;z++)for(var B=24;0<=B;B-=8)t[u++]=e[z]>>B&255;return t}for(var e=[],f=[],h=[],k=[128],l=1;64>l;++l)k[l]=0;var n,p;a();return{reset:a,update:c,digest:d,digestString:function(){for(var t=d(),u="",z=0;z<t.length;z++)u+="0123456789ABCDEF".charAt(Math.floor(t[z]/16))+"0123456789ABCDEF".charAt(t[z]%16);return u}}};_.r("sy11h");
var O7b=function(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("ue`"+a);if("http"!==c&&"https"!==c&&"chrome-extension"!==c&&"moz-extension"!==c&&"file"!==c&&"android-app"!==c&&"chrome-search"!==c&&"chrome-untrusted"!==c&&"chrome"!==c&&"app"!==
c&&"devtools"!==c)throw Error("ve`"+c);a="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===c&&"80"!==e||"https"===c&&"443"!==e)a=":"+e}return c+"://"+b+a};
var Q7b=function(a,b,c){var d=String(_.q.location.href);return d&&a&&b?[b,P7b(O7b(d),a,c||null)].join(" "):null},P7b=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],_.Ka(d,function(k){e.push(k)}),R7b(e.join(" "));var f=[],h=[];_.Ka(c,function(k){h.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=_.oa(f)?[c,b,a]:[f.join(":"),c,b,a];_.Ka(d,function(k){e.push(k)});a=R7b(e.join(" "));a=[c,a];_.oa(h)||a.push(h.join(""));return a.join("_")},R7b=function(a){var b=
N7b();b.update(a);return b.digestString().toLowerCase()};
var S7b={};
var T7b,V7b;T7b=function(a){return!!S7b.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};_.U7b=function(a){a=void 0===a?!1:a;var b=_.q.__SAPISID||_.q.__APISID||_.q.__3PSAPISID||_.q.__OVERRIDE_SID;T7b(a)&&(b=b||_.q.__1PSAPISID);if(b)return!0;var c=new _.Dfb(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");T7b(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};V7b=function(a,b,c,d){(a=_.q[a])||(a=(new _.Dfb(document)).get(b));return a?Q7b(a,c,d):null};
_.W7b=function(a,b){b=void 0===b?!1:b;var c=O7b(String(_.q.location.href)),d=[];if(_.U7b(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?_.q.__SAPISID:_.q.__APISID;e||(e=new _.Dfb(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?Q7b(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&T7b(b)&&((b=V7b("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=V7b("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",
a))&&d.push(a))}return 0==d.length?null:d.join(" ")};

_.w();

}catch(e){_._DumpException(e)}
try{
_.X7b=function(a,b,c){_.xj(a.url,function(d){d=d.target;d.Xt()?b(d.Wk()):c(d.Bb())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};_.WG=function(a,b){a.H=b;a.ka=0};_.XG=function(a,b){return _.A(a,b,[])};_.r("sy11g");
var Z7b=function(a){(0,_.S)(this,a,0,-1,Y7b,null)};_.O(Z7b,_.L);var Y7b=[2];
_.$7b=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.$7b,_.L);_.$7b.prototype.Qi=function(){return _.C(this,7)};
_.a8b=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.a8b,_.L);_.Vk[66321687]=new _.kk(66321687,_.a8b);
var b8b;_.YG=function(a){(0,_.S)(this,a,0,31,b8b,null)};_.O(_.YG,_.L);b8b=[3,20,27];_.ZG=function(a,b){return _.A(a,8,b)};
var d8b=function(a){(0,_.S)(this,a,0,17,c8b,null)};_.O(d8b,_.L);var c8b=[3,5],e8b=function(a){var b=_.wf().toString();return _.A(a,4,b)},f8b=function(a,b){return _.kb(a,3,b)},g8b=function(a,b){return _.A(a,14,b)};
var i8b=function(a){(0,_.S)(this,a,0,6,h8b,null)};_.O(i8b,_.L);var h8b=[5];
var j8b=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(j8b,_.L);
var k8b=new _.kk(175237375,j8b);
var m8b;
_.$G=function(a,b,c,d,e,f,h,k,l,n,p){_.Q.call(this);this.yd=a;this.ob=b||_.uf;this.ha=new d8b;this.Fa="";this.ld=d;this.Ab=p;this.H=[];this.Hc="";this.ze=_.Wa(_.iia,0,1);this.ta=e||null;this.Ba=c||null;this.Ha=h||!1;this.Ta=l||null;this.Hb=this.Nb=this.V=!1;this.Nc=this.Za=-1;this.Wb=!1;this.W=null;this.Qd=!k;this.va=null;this.Qa=0;this.le=1;this.oc=f||!1;this.hb=!1;this.be=!this.oc&&(_.Rj.hm&&_.ab(65)||_.Rj.zv&&_.ab(45)||_.Rj.Ds&&_.ab(12)||_.fh()&&0<=_.ag(_.Jha(),12))&&!!_.Ye()&&!!_.Ye().navigator&&!!_.Ye().navigator.sendBeacon;
a=_.A(new _.a8b,1,1);f||(f=new _.$7b,b=document.documentElement.getAttribute("lang"),f=_.A(f,5,b),_.y(a,11,f));_.y(this.ha,1,a);_.A(this.ha,2,this.yd);this.ka=new _.UG(1E4,3E5,.1);this.O=new _.Ni(this.ka.Xa());this.La(this.O);_.ce(this.O,"tick",_.ofa(l8b(this,n)),!1,this);this.Ja=new _.Ni(6E5);this.La(this.Ja);_.ce(this.Ja,"tick",_.ofa(l8b(this,n)),!1,this);this.Ha||this.Ja.start();this.oc||(_.ce(_.Ye(),"beforeunload",this.ma,!1,this),_.ce(_.Ye(),"unload",this.ma,!1,this),_.ce(document,"pagehide",
this.ma,!1,this))};_.O(_.$G,_.Q);var l8b=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};_.$G.prototype.Va=function(){this.ma();_.$G.nb.Va.call(this)};m8b=function(a){a.ta||(a.ta=.01>a.ze()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.ta};_.n8b=function(a,b){b?(a.W||(a.W=new Z7b),b=b.yc(),_.A(a.W,4,b)):a.W&&_.Bk(a.W,4)};_.o8b=function(a){a.Nb=a.be};_.p8b=function(a,b){a.ka=new _.UG(1>b?1:b,3E5,.1);a.O.setInterval(a.ka.Xa())};
_.$G.prototype.log=function(a){a=_.Uk(a);var b=this.le++;_.A(a,21,b);this.Fa&&_.A(a,26,this.Fa);if(!_.C(a,1)){b=a;var c=Date.now().toString();_.A(b,1,c)}_.sk(a,15)||_.A(a,15,60*(new Date).getTimezoneOffset());this.W&&(b=_.Uk(this.W),_.y(a,16,b));for(;1E3<=this.H.length;)this.H.shift(),++this.Qa;this.H.push(a);this.dispatchEvent(new q8b(a));this.Ha||this.O.enabled||this.O.start()};
_.$G.prototype.flush=function(a,b){var c=this;if(0==this.H.length)a&&a();else if(this.hb)r8b(this);else{var d=_.wf();if(this.Nc>d&&this.Za<d)b&&b("throttled");else{var e=g8b(f8b(e8b(_.Uk(this.ha)),this.H),this.Qa);d={};var f=this.ob();f&&(d.Authorization=f);var h=m8b(this);this.Ba&&(d["X-Goog-AuthUser"]=this.Ba,h=_.pj(h,"authuser",this.Ba));this.Ta&&(d["X-Goog-PageId"]=this.Ta,h=_.pj(h,"pageId",this.Ta));if(f&&this.Hc==f)b&&b("stale-auth-token");else if(this.H=[],this.O.enabled&&this.O.stop(),this.Qa=
0,this.V)a&&a();else{var k=e.yc(),l;this.va&&this.va.H(k.length)&&(l=this.va.O(k));var n={url:h,body:k,chb:1,requestHeaders:d,requestType:"POST",withCredentials:this.Qd,timeoutMillis:0},p=(0,_.v)(function(z){this.ka.reset();this.O.setInterval(this.ka.Xa());if(z){try{var B=JSON.parse(z.replace(")]}'\n",""));var F=new i8b(B)}catch(I){}F&&(z=_.xk(F,1,"-1"),z=Number(z),0<z&&(this.Za=_.wf(),this.Nc=this.Za+z),F=F.ha(k8b))&&(F=_.wk(F,1,-1),-1!=F&&(this.Wb||_.p8b(this,F)))}a&&a()},this),t=(0,_.v)(function(z){var B=
_.Ok(e,_.YG,3);_.VG(this.ka);this.O.setInterval(this.ka.Xa());401==z&&f&&(this.Hc=f);if(500<=z&&600>z||401==z||0==z)this.H=B.concat(this.H),this.Ha||this.O.enabled||this.O.start();b&&b("net-send-failed",z)},this),u=function(){c.Ab?c.Ab.send(n,p,t):c.ld(n,p,t)};l?l.then(function(z){n.requestHeaders["Content-Encoding"]="gzip";n.requestHeaders["Content-Type"]="application/binary";n.body=z;n.chb=2;u()},function(){u()}):u()}}}};
_.$G.prototype.ma=function(){this.V||(this.Nb&&r8b(this),this.Hb&&s8b(this),this.flush())};
var r8b=function(a){t8b(a,32,10,function(b,c){b=_.pj(b,"format","json");b=_.Ye().navigator.sendBeacon(b,c.yc());a.hb&&!b&&(a.hb=!1);return b})},s8b=function(a){t8b(a,6,5,function(b,c){b=_.nj(b,"format","base64json","p",_.Tj(c.yc(),3));_.Mg(new Image,b);return!0})},t8b=function(a,b,c,d){if(0!=a.H.length){var e=_.Nka(m8b(a),"format");e=_.nj(e,"auth",a.ob(),"authuser",a.Ba||"0");for(var f=0;f<c&&a.H.length;++f){var h=a.H.slice(0,b),k=f8b(e8b(_.Uk(a.ha)),h);if(!d(e,k))break;a.H=a.H.slice(h.length)}}},
q8b=function(){this.type="event-logged"};_.O(q8b,_.Fi);
_.aH=function(a,b,c,d,e,f,h){_.$G.call(this,a,_.W7b,b,_.X7b,c,d,e,void 0,f,h)};_.N(_.aH,_.$G);

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy12f");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy14e");
_.iOc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.iOc,_.L);_.g=_.iOc.prototype;_.g.getKey=function(){return _.C(this,1)};_.g.Hq=function(){return _.sk(this,1)};_.g.Xa=function(){return _.C(this,2)};_.g.Jb=function(a){return _.A(this,2,a)};_.g.mj=function(){return _.Bk(this,2)};_.g.mh=function(){return _.sk(this,2)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy14f");
_.jOc={drive:1,appDataFolder:2,photos:3,androidBackup:4};_.kOc=_.mg(_.jOc);

_.w();

}catch(e){_._DumpException(e)}
try{
_.lOc=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a;return c};_.r("sy14j");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.mOc=function(){this.H=-1};

_.w();

}catch(e){_._DumpException(e)}
try{
_.PK=function(a,b){return _.A(a,4,b)};_.nOc=function(a,b){_.A(a,11,b)};_.oOc=function(a,b){return _.A(a,25,b)};_.r("sy14n");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.QK=function(a,b,c){_.P.call(this);this.eq=null!=c?a.bind(c):a;this.ha=b;this.W=null;this.O=!1;this.V=0;this.H=null};_.N(_.QK,_.P);_.g=_.QK.prototype;_.g.ue=function(a){this.W=arguments;this.H||this.V?this.O=!0:pOc(this)};_.g.stop=function(){this.H&&(_.Si(this.H),this.H=null,this.O=!1,this.W=null)};_.g.pause=function(){this.V++};_.g.resume=function(){this.V--;this.V||!this.O||this.H||(this.O=!1,pOc(this))};_.g.Va=function(){_.P.prototype.Va.call(this);this.stop()};
var pOc=function(a){a.H=_.Oi(function(){a.H=null;a.O&&!a.V&&(a.O=!1,pOc(a))},a.ha);var b=a.W;a.W=null;a.eq.apply(null,b)};

_.w();

}catch(e){_._DumpException(e)}
try{
var qOc,tOc;qOc=[3,42];_.rOc=function(a){(0,_.S)(this,a,0,-1,qOc,null)};_.O(_.rOc,_.L);_.rOc.prototype.getMimeType=function(){return _.C(this,27)};_.sOc=function(a){return _.ib(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};tOc=function(a,b){if(b&&a in b)return a;var c=_.sGa();return c?(c=c.toLowerCase(),a=c+_.Eha(a),void 0===b||a in b?a:null):null};_.r("sy14o");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.uOc=function(a){_.Q.call(this);this.od=a||_.zh();if(this.Cz=this.vnb())this.H=_.ce(this.od.Sb(),this.Cz,(0,_.v)(this.w6a,this))};_.O(_.uOc,_.Q);_.g=_.uOc.prototype;_.g.vnb=_.fca(function(){var a=!!this.g7(),b="hidden"!=this.g7();if(a){var c;b?c=((_.sGa()||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});_.g.g7=_.fca(function(){return tOc("hidden",this.od.Sb())});_.g.Yob=_.fca(function(){return tOc("visibilityState",this.od.Sb())});_.g.tP=function(){return!!this.od.Sb()[this.g7()]};
_.g.w6a=function(){var a=this.g7()?this.od.Sb()[this.Yob()]:null;a=new vOc(this.tP(),a);this.dispatchEvent(a)};_.g.Va=function(){_.Li(this.H);_.uOc.nb.Va.call(this)};var vOc=function(a){_.Fi.call(this,"visibilitychange");this.hidden=a};_.O(vOc,_.Fi);

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy14p");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.RK=function(){this.H=64;this.O=Array(4);this.ha=Array(this.H);this.W=this.V=0;this.reset()};_.O(_.RK,_.mOc);_.RK.prototype.reset=function(){this.O[0]=1732584193;this.O[1]=4023233417;this.O[2]=2562383102;this.O[3]=271733878;this.W=this.V=0};
var wOc=function(a,b,c){c||(c=0);var d=Array(16);if("string"===typeof b)for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.O[0];c=a.O[1];e=a.O[2];var f=a.O[3];var h=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(h<<17&4294967295|h>>>
15);h=c+(b^e&(f^b))+d[3]+3250441966&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(h<<12&4294967295|
h>>>20);h=e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(h<<
5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=
e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[7]+1735328473&4294967295;
e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(h<<11&4294967295|
h>>>21);h=e+(f^b^c)+d[7]+4139469664&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[12]+
3873151461&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[12]+1700485571&
4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[13]+1309151649&
4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.O[0]=a.O[0]+b&4294967295;a.O[1]=a.O[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.O[2]=a.O[2]+e&4294967295;a.O[3]=a.O[3]+f&4294967295};
_.RK.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.H,d=this.ha,e=this.V,f=0;f<b;){if(0==e)for(;f<=c;)wOc(this,a,f),f+=this.H;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.H){wOc(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.H){wOc(this,d);e=0;break}}this.V=e;this.W+=b};
_.RK.prototype.digest=function(){var a=Array((56>this.V?this.H:2*this.H)-this.V);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.W;for(b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.O[b]>>>d&255;return a};

_.w();

}catch(e){_._DumpException(e)}
try{
var xOc;xOc=[2];_.yOc=function(a){(0,_.S)(this,a,0,-1,xOc,null)};_.O(_.yOc,_.L);_.yOc.prototype.Bb=function(){return _.C(this,1)};_.yOc.prototype.Ac=function(a){return _.A(this,1,a)};_.yOc.prototype.Bj=function(){return _.C(this,3)};_.r("sy15h");
_.SK=function(a){(0,_.S)(this,a,0,-1,zOc,null)};_.O(_.SK,_.L);var zOc=[1];_.SK.prototype.O=function(){return _.Kd(this,1)};_.SK.prototype.re=function(){return _.D(this,_.af,2)};_.AOc=function(a,b){return _.y(a,2,b)};_.SK.prototype.ji=function(){return _.wk(this,3,20)};_.SK.prototype.Yh=function(a){return _.A(this,3,a)};_.SK.prototype.Ql=function(){return _.H(this,4)};_.BOc=function(a,b){return _.A(a,4,b)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy15u");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.COc=function(a){_.P.call(this);this.O=a;this.H={};this.O.kM((0,_.v)(this.V,this))};_.O(_.COc,_.P);_.EOc=function(a,b){if(-1!=b.indexOf(":"))throw Error("ze`"+b);if(b in a.H)throw Error("Ae`"+b);var c=new DOc(a,b);return a.H[b]=c};_.COc.prototype.V=function(a,b){if(a=a.match(/^([^:]*):(.*)/)){var c=a[1];a=a[2];c in this.H&&(c=this.H[c])&&c.O&&c.O(a,b)}};_.COc.prototype.Va=function(){_.bg(this.H,function(a){_.aa(a)});_.aa(this.O);delete this.H;delete this.O};
var DOc=function(a,b){_.P.call(this);this.qg=a;this.H=b};_.O(DOc,_.P);_.g=DOc.prototype;_.g.connect=function(a){a&&a()};_.g.isConnected=function(){return!0};_.g.registerService=function(a,b,c){this.qg.O.registerService(this.H+":"+a,(0,_.v)(this.FPa,this,b),c)};_.g.kM=function(a){this.O=(0,_.v)(this.FPa,this,a)};_.g.send=function(a,b){if(this.isDisposed())throw Error("Be");this.qg.O.send(this.H+":"+a,b)};_.g.FPa=function(a,b){this.isDisposed()||a.apply({},Array.prototype.slice.call(arguments,1))};
_.g.Va=function(){this.qg=this.qg.H[this.H]=null};

_.w();

}catch(e){_._DumpException(e)}
try{
var FOc=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(_.ffa);try{delete a[_.ffa]}catch(b){}},TK=function(a){var b=[],c=[],d={},e=function(f,h){var k=h+"  ";try{if(void 0===f)b.push("undefined");else if(null===f)b.push("NULL");else if("string"===typeof f)b.push('"'+f.replace(/\n/g,"\n"+h)+'"');else if("function"===typeof f)b.push(String(f).replace(/\n/g,"\n"+h));else if(_.Ca(f)){f[_.ffa]||c.push(f);var l=_.Da(f);if(d[l])b.push("*** reference loop detected (id="+l+") ***");else{d[l]=
!0;b.push("{");for(var n in f)"function"!==typeof f[n]&&(b.push("\n"),b.push(k),b.push(n+" = "),e(f[n],k));b.push("\n"+h+"}");delete d[l]}}else b.push(f)}catch(p){b.push("*** "+p+" ***")}};e(a,"");for(a=0;a<c.length;a++)FOc(c[a]);return b.join("")};_.r("sy15v");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var GOc,VK,IOc,HOc;_.UK=function(a,b,c){if("number"===typeof a)var d={name:HOc(a)};else d=a,a=IOc(a.name);this.code=a;this.O=d;b="Error "+b+": "+this.getName();c&&(b+=", "+c);_.ha.call(this,b)};_.O(_.UK,_.ha);_.UK.prototype.getName=function(){return this.O.name||""};VK={Neb:1,deb:2,NOT_FOUND_ERR:3,E4a:4,K4a:5,feb:6,Ieb:7,ABORT_ERR:8,seb:9,B0b:10,TIMEOUT_ERR:11,peb:12,INVALID_ACCESS_ERR:13,INVALID_STATE_ERR:14};_.JOc=(_.q.uG||_.q.eJ||VK).Neb;_.KOc=(_.q.uG||_.q.eJ||VK).deb;_.LOc=(_.q.uG||_.q.eJ||VK).NOT_FOUND_ERR;
_.MOc=(_.q.uG||_.q.eJ||VK).E4a;_.NOc=(_.q.uG||_.q.eJ||VK).K4a;_.OOc=(_.q.uG||_.q.eJ||VK).feb;_.POc=(_.q.uG||_.q.eJ||VK).Ieb;_.QOc=(_.q.uG||_.q.eJ||VK).ABORT_ERR;_.ROc=(_.q.uG||_.q.eJ||VK).seb;_.SOc=(_.q.uG||_.q.eJ||VK).TIMEOUT_ERR;_.TOc=(_.q.uG||_.q.eJ||VK).peb;_.UOc=(_.q.DOMException||VK).INVALID_ACCESS_ERR;_.VOc=(_.q.DOMException||VK).INVALID_STATE_ERR;
IOc=function(a){switch(a){case "UnknownError":return _.JOc;case "NotFoundError":return _.LOc;case "ConstraintError":return _.MOc;case "DataError":return _.NOc;case "TransactionInactiveError":return _.POc;case "AbortError":return _.QOc;case "ReadOnlyError":return _.ROc;case "TimeoutError":return _.SOc;case "QuotaExceededError":return _.TOc;case "InvalidAccessError":return _.UOc;case "InvalidStateError":return _.VOc;default:return _.JOc}};
HOc=function(a){switch(a){case _.JOc:return"UnknownError";case _.LOc:return"NotFoundError";case _.MOc:return"ConstraintError";case _.NOc:return"DataError";case _.POc:return"TransactionInactiveError";case _.QOc:return"AbortError";case _.ROc:return"ReadOnlyError";case _.SOc:return"TimeoutError";case _.TOc:return"QuotaExceededError";case _.UOc:return"InvalidAccessError";case _.VOc:return"InvalidStateError";default:return"UnknownError"}};
_.WK=function(a,b){return"error"in a?new _.UK(a.error,b):new _.UK({name:"UnknownError"},b)};_.XK=function(a,b){if("name"in a)return b=b+": "+a.message,new _.UK(a,b);if("code"in a){var c=HOc(a.code);b=b+": "+a.message;return new _.UK({name:c},b)}return new _.UK({name:"UnknownError"},b)};
_.WOc=function(a){this.H=a};_.XOc=_.q.IDBKeyRange||_.q.webkitIDBKeyRange;_.WOc.prototype.range=function(){return this.H};
var YOc=function(a){this.H=a};YOc.prototype.getName=function(){return this.H.name};var ZOc=function(a,b,c,d){var e=new _.ri;try{var f=a.H[b](d)}catch(h){return c+=" with key "+TK(d),e.Rd(_.XK(h,c)),e}f.onsuccess=function(h){e.callback(h.target.result)};f.onerror=function(h){c+=" with key "+TK(d);e.Rd(_.WK(h.target,c))};return e};YOc.prototype.get=function(a){return ZOc(this,"get","getting from index "+this.getName(),a)};
YOc.prototype.getKey=function(a){return ZOc(this,"getKey","getting key from index "+this.getName(),a)};YOc.prototype.getAll=function(a,b){return _.$Oc(this,"getAll","getting all from index "+this.getName(),a,b)};
_.$Oc=function(a,b,c,d,e){var f;void 0===d?f=void 0:f=d instanceof _.WOc?d.range():(new _.WOc(_.XOc.only(d))).range();var h=new _.ri;try{var k=a.H[b](f,e)}catch(l){return c+=" for range "+(f?TK(f):"<all>"),h.Rd(_.XK(l,c)),h}k.onsuccess=function(){h.callback(k.result)};k.onerror=function(l){c+=" for range "+(f?TK(f):"<all>");h.Rd(_.WK(l.target,c))};return h};
var aPc=function(a){this.H=a};aPc.prototype.getName=function(){return this.H.name};var bPc=function(a,b,c,d,e){var f=new _.ri;try{var h=e?a.H[b](d,e):a.H[b](d)}catch(k){return c+=TK(d),e&&(c+=", with key "+TK(e)),f.Rd(_.XK(k,c)),f}h.onsuccess=function(k){f.callback(k.target.result)};h.onerror=function(k){c+=TK(d);e&&(c+=", with key "+TK(e));f.Rd(_.WK(k.target,c))};return f};_.g=aPc.prototype;_.g.put=function(a,b){return bPc(this,"put","putting into "+this.getName()+" with value",a,b)};
_.g.add=function(a,b){return bPc(this,"add","adding into "+this.getName()+" with value ",a,b)};_.g.remove=function(a){var b=new _.ri;try{var c=this.H["delete"](a instanceof _.WOc?a.range():a)}catch(e){return c="removing from "+this.getName()+" with key "+TK(a),b.Rd(_.XK(e,c)),b}c.onsuccess=function(){b.callback()};var d=this;c.onerror=function(e){var f="removing from "+d.getName()+" with key "+TK(a);b.Rd(_.WK(e.target,f))};return b};
_.g.get=function(a){var b=new _.ri;try{var c=this.H.get(a)}catch(e){return c="getting from "+this.getName()+" with key "+TK(a),b.Rd(_.XK(e,c)),b}c.onsuccess=function(e){b.callback(e.target.result)};var d=this;c.onerror=function(e){var f="getting from "+d.getName()+" with key "+TK(a);b.Rd(_.WK(e.target,f))};return b};_.g.getAll=function(a,b){return cPc(this,"getting all from index "+this.getName(),a,b)};
var cPc=function(a,b,c,d){var e;void 0===c?e=void 0:e=c instanceof _.WOc?c.range():(new _.WOc(_.XOc.only(c))).range();var f=new _.ri;try{var h=a.H.getAll(e,d)}catch(k){return b+=" for range "+(e?TK(e):"<all>"),f.Rd(_.XK(k,b)),f}h.onsuccess=function(){f.callback(h.result)};h.onerror=function(k){b+=" for range "+(e?TK(e):"<all>");f.Rd(_.WK(k.target,b))};return f};
aPc.prototype.clear=function(){var a="clearing store "+this.getName(),b=new _.ri;try{var c=this.H.clear()}catch(d){return b.Rd(_.XK(d,a)),b}c.onsuccess=function(){b.callback()};c.onerror=function(d){b.Rd(_.WK(d.target,a))};return b};aPc.prototype.getIndex=function(a){try{return new YOc(this.H.index(a))}catch(b){throw _.XK(b,"getting index "+a);}};
aPc.prototype.count=function(a){var b=new _.ri;try{var c=this.H.count(a?a.range():null);c.onsuccess=function(e){b.callback(e.target.result)};var d=this;c.onerror=function(e){b.Rd(_.WK(e.target,d.getName()))}}catch(e){b.Rd(_.XK(e,this.getName()))}return b};
var dPc=function(a,b){_.Q.call(this);this.H=a;this.O=b;this.ub=new _.oe(this);this.ub.listen(this.H,"complete",(0,_.v)(this.dispatchEvent,this,"complete"));this.ub.listen(this.H,"abort",(0,_.v)(this.dispatchEvent,this,"abort"));this.ub.listen(this.H,"error",this.x6a)};_.O(dPc,_.Q);_.g=dPc.prototype;_.g.x6a=function(a){a.target instanceof _.UK?this.dispatchEvent({type:"error",target:a.target}):this.dispatchEvent({type:"error",target:_.WK(a.target,"in transaction")})};_.g.Kh=function(){return this.H.mode};
_.g.objectStore=function(a){try{return new aPc(this.H.objectStore(a))}catch(b){throw _.XK(b,"getting object store "+a);}};_.g.commit=function(a){if(this.H.commit||!a)try{this.H.commit()}catch(b){throw _.XK(b,"cannot commit the transaction");}};
_.g.wait=function(){var a=new _.ri;_.te(this,"complete",(0,_.v)(a.callback,a));var b=_.te(this,"abort",function(){_.Li(c);a.Rd(new _.UK(_.QOc,"waiting for transaction to complete"))});var c=_.te(this,"error",function(e){_.Li(b);a.Rd(e.target)});var d=this.O;return a.addCallback(function(){return d})};_.g.abort=function(){this.H.abort()};_.g.Va=function(){dPc.nb.Va.call(this);this.ub.dispose()};
var ePc=function(a){_.Q.call(this);this.H=a;this.ub=new _.oe(this);this.ub.listen(this.H,"abort",(0,_.v)(this.dispatchEvent,this,"abort"));this.ub.listen(this.H,"error",this.y6a);this.ub.listen(this.H,"versionchange",this.Okb);this.ub.listen(this.H,"close",(0,_.v)(this.dispatchEvent,this,"close"))};_.O(ePc,_.Q);_.g=ePc.prototype;_.g.opa=!0;_.g.y6a=function(a){a=(a=a.target)&&a.error;this.dispatchEvent({type:"error",errorCode:a&&a.severity})};
_.g.Okb=function(a){this.dispatchEvent(new fPc(a.oldVersion,a.newVersion))};_.g.close=function(){this.opa&&(this.H.close(),this.opa=!1)};_.g.dg=function(){return this.opa};_.g.getName=function(){return this.H.name};_.g.wi=function(){return Number(this.H.version)};_.gPc=function(a,b,c){try{return new aPc(a.H.createObjectStore(b,c))}catch(d){throw _.XK(d,"creating object store "+b);}};
_.hPc=function(a,b,c){try{var d=c?a.H.transaction(b,c):a.H.transaction(b);return new dPc(d,a)}catch(e){throw _.XK(e,"creating transaction");}};ePc.prototype.Va=function(){ePc.nb.Va.call(this);this.ub.dispose()};var fPc=function(a,b){_.Fi.call(this,"versionchange");this.oldVersion=a;this.newVersion=b};_.O(fPc,_.Fi);
_.iPc=function(){void 0==GOc&&(GOc=_.q.indexedDB||_.q.mozIndexedDB||_.q.webkitIndexedDB||_.q.moz_indexedDB);return GOc};
_.jPc=function(a,b,c,d){var e=new _.ri;b=b?_.iPc().open(a,b):_.iPc().open(a);b.onsuccess=function(f){f=new ePc(f.target.result);e.callback(f)};b.onerror=function(f){e.Rd(_.WK(f.target,"opening database "+a))};b.onupgradeneeded=function(f){if(c){var h=new ePc(f.target.result);c(new fPc(f.oldVersion,f.newVersion),h,new dPc(f.target.transaction,h))}};b.onblocked=function(f){d&&d(new fPc(f.oldVersion,f.newVersion))};return e};

_.w();

}catch(e){_._DumpException(e)}
try{
_.kPc=function(a,b){var c=_.D(a.H,_.aAa,9);null==c&&(c=new _.aAa);var d=_.C(b.H,10);d=_.A(c,5,d);b=_.C(b.H,12);_.A(d,2,b);_.y(a.H,9,c)};_.lPc=function(a,b,c){a.O[b.getId()]=c;a.H&&c.O(a.H)};_.r("sy15w");
_.mPc=function(a){this.H=a};_.mPc.prototype.Sy=function(a){a=_.ZG(new _.YG,a.yc());this.H.log(a);return new _.hi(function(b){this.H.flush(b,function(){b()})}.bind(this))};
_.nPc=function(a){this.H=a;_.o8b(this.H)};_.nPc.prototype.Sy=function(a){a=_.ZG(new _.YG,a.yc());this.H.log(a);this.H.ma()};

_.w();

}catch(e){_._DumpException(e)}
try{
var oPc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(oPc,_.L);oPc.prototype.getEmail=function(){return _.G(this,3,"")};oPc.prototype.jp=function(){return _.sk(this,3)};_.YK=function(a){return _.E(a,5,!1)};_.ZK=function(a){return _.D(a,oPc,36,1)};_.pPc=function(a){var b=_.vka(a);if("undefined"==typeof b)throw Error("V");var c=new _.Ij(null,void 0);a=_.Vi(a);for(var d=0;d<b.length;d++){var e=b[d],f=a[d];Array.isArray(f)?_.lla(c,e,f):c.add(e,f)}return c};_.r("sy15j");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy15i");
_.$K=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.$K,_.L);_.$K.prototype.re=function(){return _.D(this,_.af,1)};_.aL=function(a,b){return _.y(a,1,b)};_.$K.prototype.zg=function(){return _.C(this,4)};_.$K.prototype.Nla=function(a){return _.A(this,4,a)};

_.w();

}catch(e){_._DumpException(e)}
try{
var qPc=function(a){(0,_.S)(this,a,0,-1,null,null)},vPc;_.O(qPc,_.L);var rPc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(rPc,_.L);_.bL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.bL,_.L);_.bL.prototype.I1=function(a){_.A(this,3,a)};_.bL.prototype.xm=function(a){return _.y(this,5,a)};_.bL.prototype.getMimeType=function(){return _.C(this,7)};var sPc=[2],tPc=function(a){(0,_.S)(this,a,0,-1,sPc,null)};_.O(tPc,_.L);var uPc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(uPc,_.L);
vPc=function(a){this.H=a};_.wPc=function(a){this.Vc=a};_.wPc.prototype.getId=function(){return this.Vc};var xPc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(xPc,_.L);xPc.prototype.wi=function(){return _.C(this,1)};var yPc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(yPc,_.L);
var APc=function(){this.O=this.ha=!1;this.H=null;for(var a=this.W=this.V=0;a<_.kCa.length;a++){var b=_.kCa[a];if(b&&b.chrome&&b.chrome.runtime&&b.chrome.runtime.connect){this.ha=!0;zPc(this,b);break}}},zPc=function(a,b){a.H=b.chrome.runtime.connect("ciiamoeghmklpofjbocenebdfbgjapaa");a.O=!0;a.H.onDisconnect.addListener(function(){a.O=!1});document.addEventListener("mousemove",function(c){a.V=c.clientX;a.W=c.clientY})};
APc.prototype.Sy=function(a){if(this.ha&&this.O){var b=_.D(a,_.sb,2)||new _.sb,c=_.D(a,_.rq,5)||new _.rq,d=_.D(a,_.bL,3)||new _.bL;a=_.Ok(a,_.wAa,1);a=_.m(a);for(var e=a.next();!e.done;e=a.next())this.H.postMessage({detail:{impression:e.value.yc(),session_info:b.yc(),session_invariants:c.yc(),client_info:d.yc()}});document.dispatchEvent(new CustomEvent("ripple",{detail:{clientX:this.V,clientY:this.W}}))}};_.r("sy15m");
var BPc=function(){_.mq.call(this)};_.N(BPc,_.mq);BPc.prototype.Yu=function(){return 1==_.C(_.D(this.H,qPc,7),1)};var CPc=new _.hq("high_frequency_builder");
var DPc=function(a,b,c){a=new _.Ni(a);c.La(a);var d=new _.oe(c);c.La(d);d.listen(a,"tick",b);a.start()};
var EPc=function(){_.mq.call(this)};_.N(EPc,_.mq);var FPc=function(a,b,c){var d=1E3*_.wf();if(0==b){b=new _.Yp;var e=new _.Zza;e=_.A(e,1,d);_.y(b,1,e);_.A(b,3,1);_.y(a.H,8,b);_.A(a.H,12,c);_.A(a.H,13,c);_.A(a.H,4,d);_.A(a.H,3,c)}else 1==b&&(b=new _.Yp,e=new _.$za,d=_.A(e,1,d),_.y(b,2,d),_.A(b,3,2),_.y(a.H,8,b),_.A(a.H,12,c),_.A(a.H,3,c));return a},GPc=new _.hq("system_builder");
var HPc=function(a,b){_.P.call(this);this.O=a;this.H=new _.uOc(b);this.La(this.H);this.ub=new _.oe(this);this.La(this.ub);this.H.g7()&&this.ub.listen(this.H,"visibilitychange",this.V)};_.N(HPc,_.P);HPc.prototype.V=function(){if(this.O.tR()){var a=this.H.tP()?102001:102E3;a=this.O.jE(a,0);this.O.gq(a)}};
var IPc=function(a,b,c){c=void 0===c?!1:c;_.P.call(this);this.H=a;this.O=b;this.La(this.O);this.W=c;this.V=null};_.N(IPc,_.P);_.g=IPc.prototype;_.g.gq=function(a){var b=this.H;_.A(a.H,6,b.W);a=a.build();b.H.add(a);b.V=!0;b=this.O;3<=b.H.H.Zb()&&b.O.ue();return new vPc(a)};_.g.jE=function(a,b){a=FPc(JPc(this.H,a),b,this.H.ha++);1==b&&this.H.ka.add(a);return a};_.g.oJ=function(){return this.H.O};
_.g.uK=function(a){var b=this.H,c=_.nq(a,GPc),d=b.ha++,e=_.D(_.D(c.H,_.Yp,8),_.$za,2),f=1E3*_.wf();_.A(e,2,f);_.A(c.H,13,d);b.ka.remove(_.C(a.H,12))};_.g.Gw=function(){var a=this.O;if(!a.ha||a.H.V){var b=KPc(a.H,691).build();b=LPc(a.H,[b]);a.ka.Sy(b)}a.W();this.H.Gw();this.V&&(_.aa(this.V),this.V=null)};_.g.nX=function(){var a=this.H,b=KPc(a,716);MPc(a,b);b=b.build();a.H.add(b);a.va=!0;a.ma=!0;this.O.initialize();this.O.O.ue();this.W&&(this.V=new HPc(this))};_.g.pga=function(){this.O.W();return _.mi(Array.from(this.O.V)).then()};
_.g.tR=function(){var a=this.H;return a.va&&a.ma&&!0};
var NPc=function(a,b,c,d,e){_.P.call(this);this.H=a;this.ta=b;this.ka=c;this.O=new _.QK(this.W,3E3,this);this.V=new Set;this.ha=d;this.ma=e||6E4};_.N(NPc,_.P);NPc.prototype.initialize=function(){DPc(this.ma,this.O.ue,this.O);DPc(36E5,this.va,this)};NPc.prototype.W=function(){var a=this;if(0!=this.H.H.Zb()&&(!this.ha||this.H.V)){var b=OPc(this.H),c=this.ta.Sy(b);c&&(_.oi(c,function(){return void a.V.delete(c)}),this.V.add(c))}};
NPc.prototype.va=function(){var a=this.H,b=KPc(a,1153).build();a.H.add(b);this.O.ue()};
var PPc=function(a){_.P.call(this);this.H=a;this.La(this.H)};_.N(PPc,_.P);_.g=PPc.prototype;_.g.gq=function(a){a=this.H.gq(a);this.pga();return a};_.g.jE=function(a,b){return this.H.jE(a,b)};_.g.oJ=function(){return this.H.oJ()};_.g.uK=function(a){return this.H.uK(a)};_.g.Gw=function(){return this.H.Gw()};_.g.nX=function(){return this.H.nX()};_.g.pga=function(){return this.H.pga()};_.g.tR=function(){return this.H.tR()};
var QPc=function(){};QPc.prototype.BO=function(){return new BPc};
var RPc=function(){this.H=[]};RPc.prototype.add=function(a){this.H.push(a)};RPc.prototype.Zb=function(){return this.H.length};
var SPc=function(){this.H={}};SPc.prototype.add=function(a){var b=_.C(a.H,12);this.H[b]=a};SPc.prototype.remove=function(a){delete this.H[a]};
var TPc=function(a,b){this.O=a;this.Ba=b;this.ha=1;this.ta=this.W=null;this.ka=new SPc;this.H=new RPc;this.ma=this.va=this.V=!1};TPc.prototype.Gw=function(){this.ma=!1};
var JPc=function(a,b){a=_.nq((new _.mq).initialize(new _.wAa,a.Ba),GPc);_.A(a.H,10,b);return a},OPc=function(a){var b=a.H,c=b.H;b.H=[];return LPc(a,c)},LPc=function(a,b){var c=new _.BBa;var d=_.Uk(a.O.W);c=_.y(c,2,d);d=a.O;(d=d.O?_.Uk(d.O):null)&&_.y(c,5,d);var e;d=a.O;for(var f,h=b.length-1;0<=h;h--){var k=_.D(b[h],_.cq,5);if(k&&_.D(k,_.rOc,1)){k=_.D(k,_.rOc,1);_.sk(k,12)&&void 0===e&&(e=_.H(k,12));k=_.D(k,rPc,20);if(void 0!==k&&void 0===f){f=new yPc;var l=_.H(k,2);void 0!==l&&_.A(f,2,l);k=_.H(k,
1);void 0!==k&&_.A(f,1,k)}if(void 0!==e&&void 0!==f)break}}d=d.H?_.Uk(d.H):null;if(void 0!==e||void 0!==f)d||(d=new _.bL),void 0!==e&&_.A(d,6,e),void 0!==f&&_.y(d,13,f);(e=d)&&_.y(c,3,e);a=_.Uk(a.O.ha);_.y(c,4,a);_.kb(c,1,b);return c},KPc=function(a,b){var c=FPc(JPc(a,b),0,a.ha++);var d=a.ka;var e=Object.keys(d.H);if(0==e.length)d=null;else{for(var f=[],h=0;h<e.length;h++){var k=Number(e[h]),l=d.H[k],n=new uPc;k=_.A(n,1,k);l=_.C(l.H,10);l=_.A(k,2,l);f.push(l)}d=f}716!=b&&(b=a.ta,_.A(c.H,6,a.W),e=
new tPc,b=_.A(e,1,b),d&&_.kb(b,2,d),d=_.oq(c),_.y(d,3,b));MPc(a,c);return c},MPc=function(a,b){a.W=_.C(b.H,12);a.ta=_.C(_.D(_.D(b.H,_.Yp,8),_.Zza,1),1)};
var UPc=function(){};UPc.prototype.BO=function(){return new EPc};
var VPc=function(){this.H=this.O=null};VPc.prototype.build=function(){null==this.H&&(this.H=new _.ZAa);_.qq(this.H,GPc,new UPc);_.qq(this.H,CPc,new QPc);var a=this.H;var b=this.O;if(!_.sk(_.WPc(b),1)){var c=_.WPc(b),d=new _.qBa;_.y(c,1,d)}b=_.D(_.WPc(b),_.qBa,1);a.H=b;b=_.Xc(a.O);for(c=0;c<b.length;c++)b[c].O(a.H);return new TPc(this.O,this.H)};
var XPc=function(){this.W=new _.sb;this.O=null;this.ha=new xPc;_.A(this.ha,1,6);this.H=this.V=null};XPc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.YPc=function(a,b){_.A(a.W,2,b);return a};_.ZPc=function(a,b){if(null==a.V){a.V=new _.vBa;var c=_.WPc(a);_.y(c,2,a.V)}_.A(a.V,1,b)};_.WPc=function(a){null==a.O&&(a.O=new _.rq);return a.O};_.$Pc=function(a){null==a.H&&(a.H=new _.bL);return a.H};
_.aQc=function(){this.H=this.ha=null;this.W=new XPc;this.V=null;this.ka=this.ma=!1;this.O=null};_.bQc=function(a,b){a.ha=b;return a};_.cQc=function(a,b){a.H=b;return a};_.dQc=function(a,b){a.V=b;return a};_.aQc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.eQc=function(a,b){_.A(a.W.W,6,b);return a};
_.aQc.prototype.build=function(){var a=new VPc;a.O=this.W;null!=this.V&&(a.H=this.V);a=a.build();if(this.ka){var b=new APc;this.H=this.ha=b}b=new NPc(a,this.ha,this.H,this.ma,this.O);a=new IPc(a,b,!1);this.ka&&(a=new PPc(a));return a};

_.w();

}catch(e){_._DumpException(e)}
try{
_.cL=function(a){return a instanceof Error};_.dL=function(a){return _.E(a,84,!1)};_.r("sy15c");
_.fQc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.fQc,_.L);
_.eL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.eL,_.L);_.eL.prototype.getOptions=function(){return _.D(this,_.fQc,1)};_.eL.prototype.wo=function(){return _.C(this,2)};_.eL.prototype.qd=function(){return _.D(this,_.Pe,3)};
_.gQc=function(a){(0,_.S)(this,a,0,-1,null,_.fL)};_.O(_.gQc,_.L);_.fL=[[3,4,5,6,7,8,9,10]];
_.gL={fX:"wb",Era:"xb",u4:"yb",PR:"zb"};_.hQc=new Map([[_.gL.fX,1],[_.gL.Era,2],[_.gL.u4,2],[_.gL.PR,3]]);
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var hL,jQc;hL={};_.iQc=(hL[1]="modifiedDate",hL[2]="modifiedByMeDate",hL[3]="quotaBytesUsed",hL[4]="title",hL[6]="lastViewedByMeDate",hL[10]="createdDate",hL[7]="sharedWithMeDate",hL[9]="starred",hL[11]="recency",hL[5]="relevance",hL[12]="trashedDate",hL[13]="lastViewedByMeDate",hL);jQc={};_.kQc=(jQc[1]="asc",jQc[2]="desc",jQc);
_.lQc=new Map([[157,"categoryReferences"],[5,"hidden"]]);
_.mQc=function(a,b,c,d,e,f,h){a="number"===typeof a?Date.UTC(a,b||0,c||1,d||0,e||0,f||0,h||0):a?a.getTime():_.wf();this.date=new Date(a)};_.O(_.mQc,_.nv);_.g=_.mQc.prototype;_.g.clone=function(){var a=new _.mQc(this.date);a.SE=this.SE;a.YS=this.YS;return a};_.g.add=function(a){(a.W||a.V)&&_.mv.prototype.add.call(this,new _.lv(a.W,a.V));this.date=new Date(this.date.getTime()+1E3*(a.seconds+60*(a.O+60*(a.H+24*a.Lu))))};_.g.getTimezoneOffset=function(){return 0};_.g.getFullYear=_.nv.prototype.getUTCFullYear;
_.g.getMonth=_.nv.prototype.getUTCMonth;_.g.getDate=_.nv.prototype.getUTCDate;_.g.getHours=_.nv.prototype.getUTCHours;_.g.getMinutes=_.nv.prototype.getUTCMinutes;_.g.getSeconds=_.nv.prototype.q5a;_.g.getMilliseconds=_.nv.prototype.p5a;_.g.getDay=_.nv.prototype.getUTCDay;_.g.setFullYear=_.nv.prototype.setUTCFullYear;_.g.setMonth=_.nv.prototype.setUTCMonth;_.g.setDate=_.nv.prototype.setUTCDate;_.g.setHours=_.nv.prototype.pIa;_.g.setMinutes=_.nv.prototype.qIa;_.g.setSeconds=_.nv.prototype.rIa;
_.g.setMilliseconds=_.nv.prototype.r5a;
var nQc,pQc;nQc={};_.oQc=(nQc[1]="0",nQc[2]="1",nQc[3]="2",nQc);pQc={};_.qQc=(pQc[1]="asc",pQc[2]="desc",pQc);
_.rQc=new _.hq("drive_dataservice_builder");
_.sQc=_.lh&&0>_.ag(_.oh,"533");
_.tQc=new _.wPc("drive_dataservice_invariants");
_.uQc=new Map([[[1],1],[[6],7],[[2],2]]);_.vQc=new Map([[[1],3],[[2],4],[[3],5],[[4],6],[[5],7],[[6],8],[[10],12],[[7],9],[[8],10],[[9],11]]);
_.wQc=new Map([[12,function(a){return _.H(a,69)}],[24,function(a){return _.E(a,3,!1)}],[9,function(a){return _.E(a,17,!1)}],[21,function(a){return _.dL(a)}],[13,function(a){return _.H(a,60)}],[2,function(a){return _.E(a,8,!0)}],[6,function(a){return _.E(a,11,!1)}],[14,function(){return!0}],[16,function(a){return _.E(a,56,!1)}],[17,function(a){return _.E(a,57,!1)}],[18,function(a){return _.E(a,54,!1)}],[19,function(a){return _.E(a,53,!1)}],[23,function(){return!0}],[28,function(){return!0}]]);
_.xQc=new Map([[34,function(a){return _.E(a,9,!1)}],[25,function(a){return _.E(a,1,!1)}],[33,function(a){return _.E(a,8,!1)}],[26,function(a){return _.E(a,2,!1)}],[27,function(a){return _.E(a,3,!1)}],[29,function(a){return _.E(a,4,!1)}],[32,function(a){return _.E(a,7,!1)}],[30,function(a){return _.E(a,5,!1)}],[31,function(a){return _.E(a,6,!1)}],[35,function(a){return _.E(a,10,!1)}]]);_.yQc=new Map([[[1],1],[[2],2],[[3],3],[[4],4]]);
_.zQc=new Map([[[3,4,5,6,8],3],[[1],1],[[15],15],[[2],2],[[7],4],[[9],5],[[10],6],[[11],7],[[16],16],[[12],8],[[13],9],[[14],10],[[200],200],[[201],201],[[202],202],[[203],203],[[204],204],[[205],205],[[206],206],[[207],207],[[208],208],[[209],209],[[210],210],[[211],211],[[212],212],[[213],213],[[214],214],[[215],215],[[216],216],[[217],217],[[218],218],[[219],219],[[220],220],[[221],221],[[222],222],[[223],223],[[224],224],[[225],225],[[226],226],[[227],227],[[228],228],[[229],229],[[230],230],
[[231],231],[[232],232],[[233],233],[[234],234],[[235],235],[[236],236],[[237],237],[[238],238],[[239],239],[[240],240],[[241],241],[[242],242],[[243],243],[[244],244],[[245],245],[[246],246]]);_.AQc=new Map([[[2],3],[[1],2],[[0],1]]);_.BQc=new Map([[[0],1],[[1],2],[[3],3],[[5],4],[[6],5]]);_.CQc=new Map([[[_.KOc],1],[[_.LOc],2],[[_.MOc],3],[[_.NOc],4],[[_.OOc],5],[[_.POc],6],[[_.QOc],7],[[_.ROc],8],[[_.SOc],10],[[_.TOc],11],[[_.UOc],12],[[_.VOc],13]]);
_.DQc=new Map([[[0],1],[[1],2],[[2],3],[[3],4],[[4],5],[[5],6],[[6],7]]);

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy15f");
_.iL=function(a){(0,_.S)(this,a,0,-1,EQc,null)};_.O(_.iL,_.L);var EQc=[8,17];_.iL.prototype.Gc=function(){return _.C(this,2)};_.jL=function(a,b){return _.A(a,2,b)};_.g=_.iL.prototype;_.g.Pj=function(){return _.E(this,3,!1)};_.g.getItem=function(){return _.D(this,_.Dl,4)};_.g.setItem=function(a){return _.y(this,4,a)};_.g.zc=function(){return _.C(this,7)};_.g.RZ=function(){return _.C(this,13)};_.g.Rla=function(a){_.A(this,13,a)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy15l");

_.w();

}catch(e){_._DumpException(e)}
try{
var IQc;_.mL=function(a){if(a instanceof _.Tb)return a;var b;if(_.cL(a)){if(b=_.ksb(a))return b;b=_.qFa(void 0,void 0,a)}else b="string"===typeof a?_.qFa(a):_.qFa("Converting an unexpected reason type to drive.ds.Error which should be drive.ds.Error, Error, or string. Found:"+a);_.kL(b,2);_.lL(b,6);return b};_.FQc=function(a){var b=a.Oj();a=a.vE();return 15===b||32===b||33===b||401===a};_.GQc=function(){return _.q.WorkerGlobalScope&&self instanceof _.q.WorkerGlobalScope};
_.HQc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.HQc,_.L);_.nL=function(a){return _.wk(a,1,0)};_.oL=function(a){return _.D(a,_.HQc,4)};_.kL=function(a,b){return _.A(a,1,b)};_.lL=function(a,b){return _.A(a,2,b)};IQc=[8,9,10,13,14,27,28,29,31,32,33,34,38];_.pL=function(a){(0,_.S)(this,a,0,-1,IQc,null)};_.O(_.pL,_.L);_.g=_.pL.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Ob=function(a){return _.A(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};
_.g.setTitle=function(a){return _.A(this,2,a)};_.g.xg=function(){return _.C(this,3)};_.g.wl=function(a){return _.A(this,3,a)};_.g.iu=function(a){return _.A(this,4,a)};_.g.Ah=function(){return _.H(this,5)};_.g.Sm=function(a){return _.A(this,5,a)};_.g.getMimeType=function(){return _.C(this,6)};_.g.DC=function(a,b){_.Jk(this,8,a,b)};_.g.Gi=function(){return _.C(this,12)};_.g.re=function(){return _.D(this,_.af,17)};_.g.wi=function(){return _.C(this,20)};_.g.zc=function(){return _.C(this,21)};
_.qL=function(a,b){return _.A(a,16,b)};_.r("sy15e");
_.rL=function(a){(0,_.S)(this,a,0,-1,JQc,null)};_.O(_.rL,_.L);var JQc=[5];_.rL.prototype.RO=function(){return _.wk(this,2,100)};_.rL.prototype.sQ=function(a){return _.A(this,2,a)};_.rL.prototype.re=function(){return _.D(this,_.af,6)};_.rL.prototype.zc=function(){return _.C(this,8)};
var KQc;KQc={};_.LQc=(KQc[0]="/drive/v2internal",KQc[1]="/drive/v2internal.corp",KQc[2]="/drive/v2internal.scary",KQc[4]="/drive/v2internal.scary",KQc[5]="/drive/v2beta",KQc[6]="/drive/v2.1beta",KQc);
_.MQc=new Set([0,1,2,3]);
_.NQc=new Map([[1,"connected"],[2,"unauthenticated/online"],[3,"offline"]]);
_.OQc=_.A(new _.pL,15,!0);_.PQc=_.qL(new _.pL,!0);_.QQc=_.qL(new _.pL,!1);

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy15g");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy15s");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy15k");
_.RQc=new Set([7,4,5,9,6,10,11,12]);

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy15t");

_.w();

}catch(e){_._DumpException(e)}
try{
_.SQc=function(a){for(var b in a)delete a[b]};_.TQc=function(a){a=_.Lf(a);return 0===a.length?_.Uga:new _.vg(a,_.Tga)};_.UQc=function(a,b){a=_.dj(a);b=_.dj(b);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]};_.r("sy15x");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.VQc=function(a,b,c){this.H=-1;this.O=a;this.H=c||a.H||16;this.W=Array(this.H);this.V=Array(this.H);a=b;a.length>this.H&&(this.O.update(a),a=this.O.digest(),this.O.reset());for(c=0;c<this.H;c++)b=c<a.length?a[c]:0,this.W[c]=b^92,this.V[c]=b^54;this.O.update(this.V)};_.O(_.VQc,_.mOc);_.VQc.prototype.reset=function(){this.O.reset();this.O.update(this.V)};_.VQc.prototype.update=function(a,b){this.O.update(a,b)};
_.VQc.prototype.digest=function(){var a=this.O.digest();this.O.reset();this.O.update(this.W);this.O.update(a);return this.O.digest()};_.WQc=function(a,b){a.reset();a.update(b);return a.digest()};
_.XQc=function(){this.H=64;this.O=[];this.ka=[];this.ma=[];this.ha=[];this.ha[0]=128;for(var a=1;a<this.H;++a)this.ha[a]=0;this.W=this.V=0;this.reset()};_.O(_.XQc,_.mOc);_.XQc.prototype.reset=function(){this.O[0]=1732584193;this.O[1]=4023233417;this.O[2]=2562383102;this.O[3]=271733878;this.O[4]=3285377520;this.W=this.V=0};
var YQc=function(a,b,c){c||(c=0);var d=a.ma;if("string"===typeof b)for(var e=0;16>e;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.O[0];c=a.O[1];var h=a.O[2],k=a.O[3],l=a.O[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=k^c&(h^k);var n=1518500249}else f=c^h^k,n=1859775393;else 60>e?(f=c&h|k&(c|h),n=2400959708):
(f=c^h^k,n=3395469782);f=(b<<5|b>>>27)+f+l+n+d[e]&4294967295;l=k;k=h;h=(c<<30|c>>>2)&4294967295;c=b;b=f}a.O[0]=a.O[0]+b&4294967295;a.O[1]=a.O[1]+c&4294967295;a.O[2]=a.O[2]+h&4294967295;a.O[3]=a.O[3]+k&4294967295;a.O[4]=a.O[4]+l&4294967295};
_.XQc.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.H,d=0,e=this.ka,f=this.V;d<b;){if(0==f)for(;d<=c;)YQc(this,a,d),d+=this.H;if("string"===typeof a)for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.H){YQc(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.H){YQc(this,e);f=0;break}}this.V=f;this.W+=b}};
_.XQc.prototype.digest=function(){var a=[],b=8*this.W;56>this.V?this.update(this.ha,56-this.V):this.update(this.ha,this.H-(this.V-56));for(var c=this.H-1;56<=c;c--)this.ka[c]=b&255,b/=256;YQc(this,this.ka);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.O[c]>>d&255,++b;return a};

_.w();

}catch(e){_._DumpException(e)}
try{
_.sL=function(a,b){return _.A(a,82,b)};_.tL=function(a){return _.A(a,3,!0)};_.ZQc=function(a,b){return _.A(a,7,b)};_.r("sy15d");
_.$Qc=new Map([[1,3],[4,3],[2,3],[3,2]]);
_.aRc=new Map([[6,3],[7,3],[4,2],[8,2]]);
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.uL={VX:"Versions",t4:"Metadata",i3:"Data",PR:"Offline"};_.bRc=new Map([[_.uL.VX,"versionKey"],[_.uL.t4,"k"]]);_.cRc=new Set([1004]);

_.w();

}catch(e){_._DumpException(e)}
try{
var gRc;_.dRc=function(a){var b={};_.bg(a,function(c,d){b[d.toLowerCase()]=c});return b};_.eRc=function(a){return(a=a&&_.dRc(a))&&a["x-guploader-uploadid"]};_.fRc=function(a){return(a=a&&_.dRc(a))&&a["x-google-trace"]};gRc=[6];_.hRc=function(a){(0,_.S)(this,a,0,-1,gRc,null)};_.O(_.hRc,_.L);_.vL=function(a,b){return _.A(a,14,b)};_.r("sy15z");
var iRc,kRc;
_.jRc=function(a,b,c,d,e,f,h,k,l){l=void 0===l?!1:l;if(200===a||204===a||308===a||206===a)return null;e=iRc(e)||new _.Tb;_.A(e,8,!0);k&&(k=_.Fj(new _.Aj(k),void 0).toString(),_.A(e,19,k));e.vE()||_.A(e,15,a||f);e.getMessage()||_.fr(e,["HTTP status code: "+a,"HTTP status text: "+b,"XHR error code: "+f,"XHR error text: "+h].join(", "));_.C(e,4)||_.gr(e,d);e.Oj()||(5===f?_.vL(e,7):0!==a||d?403===a?_.vL(e,22):503===a||429===a?_.vL(e,24):(_.Bk(e,14),_.A(e,10,1),_.A(e,8,!0)):l||_.vL(e,2));e.daa(_.eRc(c));e.S$(_.fRc(c));
return e};iRc=function(a){if(!_.Ca(a))return null;var b=new _.Tb,c=a.error;if(!c)return _.gr(b,JSON.stringify(a)),null;_.A(b,15,c.code);_.fr(b,c.message);a=c.errors&&c.errors[0];if(!a)return b;c=a.reason;var d=kRc[c];d?_.A(b,10,d):c&&!d&&_.A(b,10,2);(a=a.debugInfo)&&_.gr(b,a);return b};
kRc={appliedCategoryLimitExceeded:64,authError:15,backendError:9,badContent:14,badRequest:11,cannotAddParent:63,cannotMoveTrashedItemIntoTeamDrive:45,conflict:8,conversionCorruptedInput:16,conversionInputDoesNotMatchSpecifiedMimeType:17,conversionInputTooLarge:18,conversionInvalidRequest:19,conversionInvalidLanguage:20,conversionMissingCredentials:21,conversionOutputTooLarge:22,conversionQuotaExceeded:23,conversionTimeout:24,conversionTooManyCharts:25,conversionTooManyDrawings:26,conversionTooManyImages:27,
conversionUnsupportedConversionPath:28,conversionUnsupportedLanguage:29,conversionUnsupportedFormat:30,deadlineExceeded:31,fileOwnerNotMemberOfTeamDrive:42,fileOwnerNotMemberOfTeamDriveDomain:43,fileOwnerNotMemberOfWriterDomain:47,fileWriterTeamDriveMoveInDisabled:46,forbidden:10,internalError:3,invalid:12,missingCookie:33,notFound:4,quotaExceeded:6,rateLimitExceeded:7,responseTooLarge:5,required:32,uploadBrokenConnection:35,shareOutNotPermittedForContent:50,crossDomainMoveRestriction:52,teamDriveFileLimitExceeded:40,
teamDriveHierarchyTooDeep:49,teamDriveMembershipRequired:48,teamDriveNameRequired:59,teamDriveNameTooLong:44,teamDrivesFileTypeNotSupported:39,teamDrivesFolderMoveInNotSupported:36,teamDrivesFolderMoveOutNotSupported:37,teamDrivesParentLimit:41,teamDrivesShortcutFileNotSupported:38,tooManyFiles:53,tooManyUnmovableFiles:54,transientError:13,userCannotCreateFileForMimeType:51,userRateLimitExceeded:7,richContentLimitExceeded:55,numChildrenLimitExceeded:56,shortcutLimitExceeded:57,shortcutPerCreatorLimitExceeded:58,
mimeTypeSizeExceeded:60,onlyCriticalWritesAllowed:61,wrappedKeyExceededLimit:62};

_.w();

}catch(e){_._DumpException(e)}
try{
_.lRc=function(a,b){return _.A(a,1,b)};_.mRc=function(a,b){return _.y(a,1,b)};_.nRc=function(a,b){return _.A(a,2,b)};_.oRc=function(a,b){return _.y(a,3,b)};_.r("sy160");

_.w();

}catch(e){_._DumpException(e)}
try{
_.pRc=function(a,b,c){c&&(a=_.Wg(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=_.Vg(a));return a};_.qRc=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1<a.length&&56320==(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};_.r("sy16c");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.rRc=function(a,b,c){void 0===c&&(c=a.size);return a.slice?a.slice(b,c):null};

_.w();

}catch(e){_._DumpException(e)}
try{
var sRc,tRc,xRc,BRc,CRc,URc,xM,VRc,WRc,cSc,zRc,LSc,yRc,hTc,jTc,lTc,mTc,nTc,oTc,pTc,rTc,sTc,tTc,uTc,ITc,JTc,LTc,NTc,OTc,QTc,UTc,NRc,YTc,ORc,ZTc,$Tc,aUc,YM,$M,cUc,eUc,fUc,gUc,hUc,iUc,lUc,mUc,nUc,oUc,pUc,sUc,uUc,vUc,xUc,MUc,LUc,NUc,SUc,TUc,UUc,ZUc,$Uc,bVc,cVc,iVc,hVc,gVc,eVc,fVc,eSc,nVc,pVc,qVc,rVc,XRc,sVc,YRc,ZRc,$Rc,aSc,bSc,tVc,vVc;_.wL=function(a,b,c){var d=new _.Tb,e=_.tja(_.wL);_.A(d,20,e);_.lL(d,a);_.kL(d,b?b:2);c&&_.vL(d,c);return d};
_.xL=function(a){var b;a instanceof _.Tb?b=new _.Ub(null,a):b=_.cL(a)?a:_.q.ErrorEvent&&a instanceof ErrorEvent?a.error instanceof Error?a.error:Error(a.message):"string"===typeof a?Error(a):Error("lb`"+a);b.stack||(b.stack=_.tja(_.xL));return b};_.yL=function(a){return a instanceof _.Ub?a:a instanceof _.Tb?new _.Ub(void 0,a):a instanceof Error?new _.Ub("Not a drive.ds.Error",void 0,a):new _.Ub("Not an Error",void 0,Error("mb`"+JSON.stringify(a)))};_.zL=function(a){throw _.yL(a);};
sRc=function(a){return 7===a.Oj()||24===a.bp()&&(a=a.vE(),503===a||429===a)?!0:!1};tRc=function(a,b){return b?b+"("+a+")":a};
_.AL=function(a,b,c){var d={},e=[];b&&e.push("kind");a.gwb&&e.push("searchResultSource");a.fields.forEach(function(n){if(!_.uRc.includes(n)){var p=_.U5a.get(n);if(p){var t=_.X5a[n];a.NE&&t&&(p=t);a.qq&&(a.NE?(n=_.W5a[n])&&(p=n):(n=_.V5a[n])&&(p=n));p.split(",").forEach(function(u){var z=_.Fha(u,"/",1);1<z.length?(d[z[0]]||(d[z[0]]=[]),d[z[0]].push(z[1])):e.push(u)})}}});for(var f={},h=_.m(Object.entries(d)),k=h.next();!k.done;f={a3:f.a3},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;
f.a3=[];l.forEach(function(n){return function(p){n.a3.push(p)}}(f));"owners"==k&&b&&f.a3.push("kind");e.push(tRc(f.a3.join(","),k))}return tRc(e.join(","),c)};_.vRc=function(a){var b=new _.pq;b.append(_.AL(a,!0));return b.toString()};_.wRc=function(a,b){return a.filter(function(c){return b.includes(c)})};xRc=function(a){a=a.filter(function(b){return!_.U5a.has(b)});if(a.length)throw Error("Cc`"+a.join(", "));};
_.ARc=function(a){if(a){var b=a.getMimeType();b&&_.PK(a,b.toLowerCase());yRc(a,_.Ok(a,zRc,58).map(function(c){var d=c.getMimeType();d&&_.A(c,1,d.toLowerCase());return c}))}};BRc=function(a){if(_.ig(a))return"\r\n";var b="";_.bg(a,function(c,d){b+=d+": "+c+"\r\n"});return b};CRc=function(a,b){b&&(_.Jj(a,"openDrive",!!_.E(b,2,!1)),_.Jj(a,"reason",_.C(b,1)||0),_.Jj(a,"syncType",_.C(b,3)||0),_.Jj(a,"errorRecovery",!!_.E(b,4,!1)))};
URc=function(a){if(a instanceof _.BL)return"request access";if(a instanceof _.CL)return"admin migrate to TD";if(a instanceof _.DL)return"authorize app";if(a instanceof _.EL)return"copy item";if(a instanceof _.FL)return"change category links";if(a instanceof _.GL)return"create item";if(a instanceof _.HL)return"create ws";if("undefined"!=typeof _.IL&&a instanceof _.IL)return"delete app";if("undefined"!=typeof _.JL&&a instanceof _.JL)return"delete backup";if(a instanceof _.KL)return"delete item";if("undefined"!=
typeof _.LL&&a instanceof _.LL)return"delete permission";if(a instanceof _.ML)return"delete revision";if(a instanceof _.NL)return"delete TD";if("undefined"!=typeof _.CC&&a instanceof _.CC)return"delete pref";if(a instanceof _.OL)return"delete ws";if(a instanceof _.PL)return"download item";if(a instanceof _.QL||a instanceof _.RL)return"empty trash";if(a instanceof _.qp)return"find by ID";if(a instanceof _.DRc)return"item export start";if("undefined"!=typeof _.SL&&a instanceof _.SL)return"get app";
if("undefined"!=typeof _.TL&&a instanceof _.TL)return"insert app";if("undefined"!=typeof _.UL&&a instanceof _.UL)return"insert permission";if(a instanceof _.eL)return a=a.qd(),_.VL(a)?"quick access item query":_.WL(a)?"people predict item query":_.cM(a)?"drive priority query":"item query";if("undefined"!=typeof _.dM&&a instanceof _.dM)return"list android backup items request";if(a instanceof _.eM){var b="unknown";switch(a.getType()){case 1:b="installed";break;case 2:b="installed w/ app data";break;
case 3:b="all installable";break;case 4:b="installed w/ quota"}return"list apps ["+b+"]"}return"undefined"!=typeof _.fM&&a instanceof _.fM?"list backups":a instanceof _.rL?"list changes":a instanceof _.gM?"list permissions":"undefined"!=typeof _.hM&&a instanceof _.hM?"list revisions":a instanceof _.iM?"partial download item":a instanceof _.jM?"people api":a instanceof _.HF?"get published category":"undefined"!=typeof _.kM&&a instanceof _.kM?"get remaining changes":a instanceof _.lM?"remove item":
"undefined"!=typeof _.mM&&a instanceof _.mM?"reparent item":a instanceof _.ERc?"restore item":"undefined"!=typeof _.nM&&a instanceof _.nM?"list suggested workspace items":a instanceof _.xp?"list suggested workspaces":"undefined"!=typeof _.oM&&a instanceof _.oM?"update app":a instanceof _.qM?"update category metadata":a instanceof _.pL?"update item":a instanceof _.rM?"update revision":a instanceof _.sM?"update TD":"undefined"!=typeof _.DC&&a instanceof _.DC?"update pref":a instanceof _.tM?"update ws":
a instanceof _.$K?"get account":"undefined"!=typeof _.uM&&a instanceof _.uM?"get workspace":a instanceof _.FRc?"list activity":a instanceof _.GRc?"list category metadata":a instanceof _.HRc?"create TD":"undefined"!=typeof _.IRc&&a instanceof _.IRc?"item export cancel":"undefined"!=typeof _.JRc&&a instanceof _.JRc?"item export status":"undefined"!=typeof _.KRc&&a instanceof _.KRc?"generate cse token":"undefined"!=typeof _.LRc&&a instanceof _.LRc?"get largest change ID":a instanceof _.pC?"list prefs":
a instanceof _.vM?"multipart upload":a instanceof _.MRc?"list published categories":a instanceof NRc?"init resumable upload":a instanceof ORc?"resumable upload chunk":a instanceof _.PRc?"resumable upload":a instanceof _.yp?"get TD":"undefined"!=typeof _.QRc&&a instanceof _.QRc?"move TD preflight":a instanceof _.wM?"list TDs":"undefined"!=typeof _.RRc&&a instanceof _.RRc?"get TD stats":a instanceof _.SRc?"test connection":"undefined"!=typeof _.TRc&&a instanceof _.TRc?"list workspaces":"unknown"};
xM=function(a,b,c){null!=c&&(Array.isArray(c)?0<c.length&&a.push(b+": "+c.join(", ")):a.push(b+": "+c))};VRc=function(a){if(a instanceof _.GL||a instanceof _.vM||a instanceof _.PRc||a instanceof NRc||a instanceof ORc)return(new _.yM).Ac(8);throw Error("Se");};WRc=function(a){if(a instanceof _.pL){var b=_.Ck(_.Bk(_.Uk(a),1),17);b=_.Tk(b,_.OQc)}else b=!1;b||(a instanceof _.pL?(a=_.Ck(_.Bk(_.Uk(a),1),17),b=_.Tk(a,_.PQc)||_.Tk(a,_.QQc)):b=!1);return b?!1:!0};
_.zM=function(a){return XRc.includes(a.constructor)?WRc(a):!1};cSc=function(a,b){if(YRc.includes(a.constructor))return!0;if(b){if(_.E(b,54,!1)&&ZRc.includes(a.constructor))return!0;var c=_.oL(b);if(c&&!_.E(c,7,!1)&&$Rc.includes(a.constructor)&&!_.AM(a)||_.E(b,56,!1)&&_.AM(a)||_.E(b,57,!1)&&aSc.includes(a.constructor)||!(!_.E(b,53,!1)||ZRc.includes(a.constructor)||$Rc.includes(a.constructor)||_.AM(a)||aSc.includes(a.constructor)||bSc.includes(a.constructor)))return!0}return!1};
_.BM=function(a,b,c,d,e){_.E(a,89,!1)&&(b.length?dSc(b,e):c&&c.length&&d&&(a=eSc(d,c),dSc(a,e)))};_.fSc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.fSc,_.L);_.CM=function(a){return _.E(a,2,!1)};_.gSc=function(a){var b=new _.nl;return _.A(b,1,a)};_.hSc=function(a,b){return _.A(a,7,b)};_.iSc=function(a,b){return _.A(a,8,b)};_.jSc=function(a,b){return _.A(a,11,b)};_.kSc=function(a,b){return _.A(a,1,b)};_.lSc=function(a,b){return _.A(a,4,b)};_.mSc=function(a,b){return _.A(a,5,b)};
_.nSc=function(a,b){return _.A(a,6,b)};_.oSc=function(a,b){return _.A(a,7,b)};_.pSc=function(a,b){return _.A(a,8,b)};_.qSc=function(a,b){return _.A(a,9,b)};_.rSc=function(a,b){return _.A(a,10,b)};_.sSc=function(a,b){return _.A(a,11,b)};_.tSc=function(a,b){return _.A(a,12,b)};_.uSc=function(a,b){return _.A(a,16,b)};_.vSc=function(a,b){return _.A(a,17,b)};_.wSc=function(a,b){return _.A(a,20,b)};_.xSc=function(a,b){return _.A(a,21,b)};_.ySc=function(a,b){return _.A(a,31,b)};
_.zSc=function(a,b){return _.A(a,32,b)};_.ASc=function(a,b){return _.A(a,33,b)};_.BSc=function(a,b){return _.A(a,42,b)};_.CSc=function(a,b){return _.A(a,43,b)};_.DSc=function(a,b){return _.A(a,46,b)};_.ESc=function(a,b){return _.A(a,47,b)};_.FSc=function(a,b){return _.A(a,48,b)};_.DM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.DM,_.L);_.EM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.EM,_.L);_.GSc=function(a,b){return _.A(a,1,b)};_.HSc=function(a,b){return _.A(a,2,b)};
zRc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(zRc,_.L);zRc.prototype.getMimeType=function(){return _.C(this,1)};zRc.prototype.getUrl=function(){return _.C(this,2)};_.FM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.FM,_.L);_.FM.prototype.Ae=function(){return _.C(this,2)};_.FM.prototype.Ug=function(a){return _.A(this,2,a)};_.FM.prototype.Lg=function(a){return _.A(this,3,a)};_.ISc=function(a,b){return _.A(a,1,b)};_.JSc=function(a,b){return _.kb(a,2,b)};
_.KSc=function(a,b){return _.kb(a,3,b)};LSc=[2];_.GM=function(a){(0,_.S)(this,a,0,-1,LSc,null)};_.O(_.GM,_.L);_.GM.prototype.xg=function(){return _.C(this,1)};_.GM.prototype.wl=function(a){return _.A(this,1,a)};_.GM.prototype.$ra=function(a,b){return _.Jk(this,2,a,b)};_.HM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.HM,_.L);_.HM.prototype.Ae=function(){return _.C(this,1)};_.HM.prototype.Ug=function(a){return _.A(this,1,a)};_.HM.prototype.Lg=function(a){return _.A(this,2,a)};
_.IM=function(a,b){return _.A(a,2,b||[])};_.MSc=function(a,b){_.A(a,8,b)};_.NSc=function(a,b){return _.kb(a,15,b)};_.OSc=function(a,b){return _.y(a,17,b)};_.PSc=function(a,b){return _.A(a,19,b)};_.QSc=function(a,b){_.A(a,26,b)};_.RSc=function(a,b){_.A(a,31,b)};_.SSc=function(a,b){_.A(a,34,b)};_.TSc=function(a,b){return _.A(a,44,b)};_.USc=function(a,b){return _.A(a,52,b)};yRc=function(a,b){_.kb(a,58,b)};_.VSc=function(a,b){return _.A(a,72,b)};_.JM=function(a,b){return _.y(a,84,b)};
_.WSc=function(a,b){_.y(a,85,b)};_.XSc=function(a,b){return _.A(a,92,b)};_.YSc=function(a,b){return _.A(a,93,b)};_.KM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.KM,_.L);_.KM.prototype.Xa=function(){return _.C(this,1)};_.KM.prototype.Jb=function(a){return _.A(this,1,a)};_.KM.prototype.mj=function(){return _.Bk(this,1)};_.KM.prototype.mh=function(){return _.sk(this,1)};var ZSc=[3],$Sc=function(a){(0,_.S)(this,a,0,-1,ZSc,null)};_.O($Sc,_.L);
$Sc.prototype.vi=function(){var a=_.C(this,3);this.Qa||(this.Qa={});if(!this.Qa[3]){for(var b=0;b<a.length;b++)a[b]=!!a[b];this.Qa[3]=!0}_.lb(this)&&_.hb(a);return a};var aTc=[3],bTc=function(a){(0,_.S)(this,a,0,-1,aTc,null)};_.O(bTc,_.L);bTc.prototype.vi=function(){return _.Kd(this,3)};var cTc=[3],dTc=function(a){(0,_.S)(this,a,0,-1,cTc,null)};_.O(dTc,_.L);dTc.prototype.vi=function(){return _.Kd(this,3)};_.LM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.LM,_.L);
_.LM.prototype.Xa=function(){return _.C(this,1)};_.LM.prototype.Jb=function(a){return _.A(this,1,a)};_.LM.prototype.mj=function(){return _.Bk(this,1)};_.LM.prototype.mh=function(){return _.sk(this,1)};_.MM=function(a){return _.Ok(a,_.Te,6)};_.NM=function(a){return _.Ok(a,_.Ec,12)};_.OM=function(a){return _.vk(a,45,1)};_.VL=function(a){return _.E(a,47,!1)};_.WL=function(a){return _.E(a,49,!1)};_.cM=function(a){return _.E(a,52,!1)};_.PM=function(a){return _.G(a,2,"")};
_.eTc=function(a,b){return _.A(a,27,b||[])};_.QM=function(a){return _.vk(a,39,0)};_.RM=function(a){return _.E(a,40,!1)};_.fTc=function(a){return _.mv.prototype.sW.call(a,!0)+"T"+_.$g(a.getHours(),2)+":"+_.$g(a.getMinutes(),2)+":"+_.$g(a.getSeconds(),2)+a.O7()};_.gTc=function(a,b){return _.A(a,18,b||[])};hTc=function(a,b){return _.$Oc(a,"getAllKeys","getting all keys index "+a.getName(),b,void 0)};_.iTc=function(a,b){try{a.H.deleteObjectStore(b)}catch(c){throw _.XK(c,"deleting object store "+b);}};
jTc=function(){var a=new _.aQc;a.O=12E4;a.ma=!0;return a};_.kTc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.kTc,_.L);lTc=[3,4,10,18,19,28];_.GL=function(a){(0,_.S)(this,a,0,-1,lTc,null)};_.O(_.GL,_.L);_.g=_.GL.prototype;_.g.getMimeType=function(){return _.C(this,1)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.A(this,2,a)};_.g.DC=function(a,b){_.Jk(this,3,a,b)};_.g.re=function(){return _.D(this,_.af,7)};_.g.Qj=function(){return _.C(this,9)};
_.g.zc=function(){return _.C(this,14)};_.g.YC=function(){return _.D(this,_.kTc,15)};_.g.f_=function(){return _.C(this,21)};_.g.Gc=function(){return _.C(this,23)};_.SM=function(a,b){return _.A(a,1,b)};_.TM=function(a,b){return _.A(a,3,b||[])};_.KL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.KL,_.L);_.KL.prototype.getId=function(){return _.C(this,1)};_.KL.prototype.Ob=function(a){return _.A(this,1,a)};_.KL.prototype.re=function(){return _.D(this,_.af,3)};
_.NL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.NL,_.L);_.NL.prototype.getId=function(){return _.C(this,1)};_.NL.prototype.Ob=function(a){return _.A(this,1,a)};_.NL.prototype.re=function(){return _.D(this,_.af,2)};mTc=[7,8];_.sM=function(a){(0,_.S)(this,a,0,-1,mTc,null)};_.O(_.sM,_.L);_.g=_.sM.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Ob=function(a){return _.A(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.A(this,2,a)};
_.g.re=function(){return _.D(this,_.af,4)};_.g.Ql=function(){return _.H(this,15)};_.wM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.wM,_.L);_.wM.prototype.getOptions=function(){return _.D(this,_.fQc,1)};_.wM.prototype.wo=function(){return _.C(this,2)};_.wM.prototype.qd=function(){return _.D(this,_.SK,3)};
nTc={CacheSize:"Number of items currently in the in-memory cache.",SecondaryFields:"List of secondary fields",CachedCorpusType:"Type of corpus cached (folder, linked, subscribed, full, partial).",InitialChanges:"Status of initial catchup changelog requests.",SdkBackfillEnabled:"Whether backfill via Drive SDK is enabled.",UploadFailureCount:"Number of failed uploads.",UploadSuccessCount:"Number of successful uploads.",UploadTotalCount:"Number of initiated uploads.",InitialViewDataLoaded:"Whether initial view data was loaded before the initial query."};
oTc=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};pTc=null;_.qTc=function(a){if(_.wla)return _.q.atob(a);var b="";_.yla(a,function(c){b+=String.fromCharCode(c)});return b};rTc=function(){this.O=0;this.H=[]};_.g=rTc.prototype;_.g.add=function(a){var b=this.H[this.O];this.H[this.O]=a;this.O=(this.O+1)%40;return b};_.g.get=function(a){a=sTc(this,a);return this.H[a]};_.g.set=function(a,b){a=sTc(this,a);this.H[a]=b};_.g.Zb=function(){return this.H.length};
_.g.uc=function(){return 0==this.H.length};_.g.clear=function(){this.O=this.H.length=0};_.g.Tg=function(){var a=this.Zb(),b=this.Zb(),c=[];for(a=this.Zb()-a;a<b;a++)c.push(this.get(a));return c};_.g.Te=function(){for(var a=[],b=this.Zb(),c=0;c<b;c++)a[c]=c;return a};_.g.Be=function(a){return a<this.Zb()};_.g.Kp=function(a){for(var b=this.Zb(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};sTc=function(a,b){if(b>=a.H.length)throw Error("da");return 40>a.H.length?b:(a.O+Number(b))%40};tTc=[2,3];
_.FL=function(a){(0,_.S)(this,a,0,-1,tTc,null)};_.O(_.FL,_.L);_.FL.prototype.zc=function(){return _.C(this,1)};_.FL.prototype.re=function(){return _.D(this,_.af,4)};_.BL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.BL,_.L);_.BL.prototype.Gc=function(){return _.C(this,1)};_.CL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.CL,_.L);_.CL.prototype.getId=function(){return _.C(this,1)};_.CL.prototype.Ob=function(a){return _.A(this,1,a)};_.CL.prototype.kk=function(){return _.C(this,2)};
_.DL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.DL,_.L);_.DL.prototype.ah=function(){return _.C(this,1)};_.DL.prototype.Gc=function(){return _.C(this,2)};_.DL.prototype.re=function(){return _.D(this,_.af,4)};uTc=[3,7];_.EL=function(a){(0,_.S)(this,a,0,-1,uTc,null)};_.O(_.EL,_.L);_.g=_.EL.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Ob=function(a){return _.A(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.A(this,2,a)};
_.g.DC=function(a,b){_.Jk(this,3,a,b)};_.g.re=function(){return _.D(this,_.af,5)};_.HL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.HL,_.L);_.HL.prototype.getTitle=function(){return _.C(this,1)};_.HL.prototype.setTitle=function(a){return _.A(this,1,a)};_.HL.prototype.re=function(){return _.D(this,_.af,2)};_.ML=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.ML,_.L);_.ML.prototype.Gc=function(){return _.C(this,1)};_.ML.prototype.re=function(){return _.D(this,_.af,3)};
_.OL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.OL,_.L);_.OL.prototype.getId=function(){return _.C(this,1)};_.OL.prototype.Ob=function(a){return _.A(this,1,a)};_.OL.prototype.re=function(){return _.D(this,_.af,3)};_.QL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.QL,_.L);_.QL.prototype.re=function(){return _.D(this,_.af,1)};_.lM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.lM,_.L);_.g=_.lM.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Ob=function(a){return _.A(this,1,a)};
_.g.getParent=function(){return _.C(this,2)};_.g.Bg=function(a){return _.A(this,2,a)};_.g.re=function(){return _.D(this,_.af,3)};_.ERc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.ERc,_.L);_.g=_.ERc.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Ob=function(a){return _.A(this,1,a)};_.g.getParent=function(){return _.C(this,2)};_.g.Bg=function(a){return _.A(this,2,a)};_.g.re=function(){return _.D(this,_.af,3)};_.rM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.rM,_.L);
_.rM.prototype.Gc=function(){return _.C(this,1)};_.rM.prototype.re=function(){return _.D(this,_.af,4)};_.tM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.tM,_.L);_.g=_.tM.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Ob=function(a){return _.A(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.A(this,2,a)};_.g.getState=function(){return _.C(this,3)};_.g.Gd=function(a){return _.A(this,3,a)};_.g.pr=function(){return _.sk(this,3)};
_.g.re=function(){return _.D(this,_.af,5)};var vTc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(vTc,_.L);_.wTc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.wTc,_.L);_.wTc.prototype.Re=function(){return _.C(this,1)};_.wTc.prototype.Ai=function(a){return _.A(this,1,a)};_.wTc.prototype.Bb=function(){return _.C(this,4)};_.wTc.prototype.Ac=function(a){return _.A(this,4,a)};var xTc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(xTc,_.L);
var yTc=function(a,b){_.A(a,6,b)},zTc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(zTc,_.L);zTc.prototype.Rz=function(){return _.H(this,1)};zTc.prototype.um=function(){return _.C(this,6)};zTc.prototype.bw=function(a){_.A(this,6,a)};var ATc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(ATc,_.L);_.g=ATc.prototype;_.g.hdb=function(a){_.A(this,1,a)};_.g.oJb=function(a){_.A(this,2,a)};_.g.Rz=function(){return _.H(this,3)};_.g.idb=function(a){_.A(this,3,a)};_.g.VIb=function(a){_.A(this,4,a)};
var BTc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(BTc,_.L);BTc.prototype.Rz=function(){return _.H(this,2)};var CTc=function(a,b){return _.A(a,2,b)},DTc=function(a,b){_.A(a,3,b)};BTc.prototype.Nz=function(){return _.C(this,6)};var ETc=function(a,b){return _.A(a,8,b)},FTc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(FTc,_.L);var GTc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(GTc,_.L);_.g=GTc.prototype;_.g.qd=function(){return _.D(this,_.wTc,1)};
_.g.getState=function(){return _.D(this,xTc,2)};_.g.Gd=function(a){return _.y(this,2,a)};_.g.pr=function(){return _.sk(this,2)};_.g.XC=function(){return _.D(this,zTc,16)};var HTc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(HTc,_.L);HTc.prototype.getEnvironment=function(){return _.C(this,2)};HTc.prototype.setEnvironment=function(a){return _.A(this,2,a)};_.uRc=[42,1005,20,50,18,1003,1002];ITc=[73,71];_.UM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.UM,_.L);
_.UM.prototype.getId=function(){return _.C(this,1)};_.UM.prototype.Ob=function(a){return _.A(this,1,a)};_.UM.prototype.getMimeType=function(){return _.C(this,2)};_.UM.prototype.oE=function(){return _.C(this,8)};JTc=[22];_.yM=function(a){(0,_.S)(this,a,0,-1,JTc,null)};_.O(_.yM,_.L);_.g=_.yM.prototype;_.g.Bb=function(){return _.C(this,1)};_.g.Ac=function(a){return _.A(this,1,a)};_.g.getItem=function(){return _.D(this,_.Dl,2)};_.g.setItem=function(a){return _.y(this,2,a)};
_.g.Bj=function(){return _.C(this,3)};_.g.Gc=function(){return _.C(this,5)};_.KTc=function(a,b){return _.A(a,5,b)};_.g=_.yM.prototype;_.g.dF=function(){return _.C(this,7)};_.g.daa=function(a){return _.A(this,7,a)};_.g.qpa=function(a){_.A(this,9,a)};_.g.XIa=function(a){_.A(this,10,a)};_.g.EO=function(){return _.C(this,16)};_.g.S$=function(a){return _.A(this,16,a)};
LTc=function(a){var b=new _.ri;a.listen("loadend",_.Wa(function(c,d){var e=d.getResult(),f=d.getError();null==e||f?c.Rd(f):c.callback(e);d.dispose()},b,a));return b};_.MTc={1:"default",2:"teamDrive",3:"default,allTeamDrives"};NTc=[3,4];_.eM=function(a){(0,_.S)(this,a,0,-1,NTc,null)};_.O(_.eM,_.L);_.eM.prototype.getType=function(){return _.C(this,1)};_.eM.prototype.re=function(){return _.D(this,_.af,2)};OTc=[1];_.jM=function(a){(0,_.S)(this,a,0,-1,OTc,null)};_.O(_.jM,_.L);
_.jM.prototype.Rl=function(){return _.Kd(this,1)};_.PTc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.PTc,_.L);_.g=_.PTc.prototype;_.g.getKey=function(){return _.C(this,1)};_.g.Hq=function(){return _.sk(this,1)};_.g.Xa=function(){return _.C(this,2)};_.g.Jb=function(a){return _.A(this,2,a)};_.g.mj=function(){return _.Bk(this,2)};_.g.mh=function(){return _.sk(this,2)};_.g.xg=function(){return _.C(this,3)};_.g.wl=function(a){return _.A(this,3,a)};_.g.getType=function(){return _.C(this,4)};QTc=[1];
_.RTc=function(a){(0,_.S)(this,a,0,-1,QTc,null)};_.O(_.RTc,_.L);var STc=function(a){_.Fi.call(this,a);_.hQc.get(a)};_.N(STc,_.Fi);_.TTc=function(){var a=void 0===a?1E3:a;this.O=new _.Gm;this.H=new _.Gm;this.startTime=Date.now();this.V=!1;this.W=Math.ceil(a/2);this.ha=Math.floor(a/2)};_.VTc=function(a){var b=a.O.Tg();a.V&&b.push(UTc("...","...","...","..."));_.ya(b,a.H.Tg());return b};
_.WTc=function(a){var b=[];a=_.VTc(a);for(var c=0;c<a.length;c++){var d=a[c];b.push(d.totalTime+"\t|\t"+d.level+"\t|\t"+d.logName+"\t|\t"+d.message)}return b.join("\n")};_.TTc.prototype.info=function(a,b){_.VM(this,a,b,"info")};_.TTc.prototype.config=function(a,b){_.VM(this,a,b,"config")};_.TTc.prototype.log=function(a,b,c){if(!pTc){pTc={};for(var d=0,e;e=_.yja[d];d++)pTc[e.value]=e,pTc[e.name]=e}_.VM(this,a,b,c)};
_.VM=function(a,b,c,d){a.H.Zb()>=a.ha&&(a.V=!0,_.Hm(a.H));var e=Date.now()-a.startTime;b=UTc(b,c,d,1E3<e?(e/1E3).toFixed(1)+"s":e+"ms");a.O.Zb()<a.W?a.O.enqueue(b):a.H.enqueue(b)};UTc=function(a,b,c,d){var e={};return e.logName=a,e.message=b,e.level=c,e.totalTime=d,e};_.FRc=function(a,b,c){this.request=a;this.pageSize=b;this.pageToken=c};_.HRc=function(a){this.request=a;this.requestId=_.bh()};
_.XTc=function(a,b,c,d,e){this.id=a;this.jwt=b;this.currentKaclsId=c;this.currentKaclsName=void 0===d?"":d;this.customerId=void 0===e?"":e};_.vM=function(a,b,c,d){this.request=a;this.file=b;this.$N=void 0===c?null:c;this.metadata=d};_.PRc=function(a,b,c,d){this.request=a;this.file=b;this.$N=void 0===c?null:c;this.metadata=d};NRc=function(a,b){this.request=a;this.metadata=b};YTc=function(a,b,c){this.O=a;this.H=b;this.V=c};
ORc=function(a,b,c,d,e,f,h){this.W=a;this.blob=b;this.H=c;this.O=d;this.V=e;this.contentType=f;this.revisionId=h};_.SRc=function(){this.H=_.bf(new _.af,312)};ZTc=function(){};_.GRc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.MRc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};$Tc=function(a,b){this.Jea=a;this.H=b};aUc=function(a){_.Fi.call(this,"Ab");this.H=a};_.N(aUc,_.Fi);aUc.prototype.af=function(){return this.H};_.WM=function(a){a.supportsTeamDrives=!0};
_.bUc=function(a){this.O=new Set;this.H=[].concat(_.Vc(_.Kd(a,27)));this.initialize(a)};_.bUc.prototype.initialize=function(a){var b=_.wRc(this.H,_.Kd(a,28));if(0<b.length)throw Error("De`"+b.join(","));this.H.push(21);this.H.push(70);this.H.push(83);this.H.push(87);_.YK(_.ZK(a))||(this.H.push(45),this.H.push(25),this.H.push(35),this.H.push(96),this.H.push(1004),this.H.push(28),this.H.push(189),this.H.push(190));_.Ea(this.H);this.H.sort();xRc(this.H)};_.XM=function(a){return[].concat(_.Vc(a.H))};
YM=function(a){return"'"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"};_.ZM=function(a,b,c){a.BN.length&&a.append(" "+(c||"and")+" ");a.append(b)};$M=function(a,b,c,d){if(c){var e=[];(void 0===d?0:d)&&e.push("not");e.push(YM(c));e.push("in");e.push(b);_.ZM(a,e.join(" "))}};_.aN=function(a,b,c,d){d=void 0===d?"and":d;if(null!=c){var e=[];e.push(b);e.push("=");e.push((!!c).toString());_.ZM(a,e.join(" "),d)}};
cUc=function(a,b,c){if(b.length){var d=[];d.push(c?"not (":"(");d.push(b.join(" or "));d.push(")");_.ZM(a,d.join(""))}};_.dUc=function(a){var b=new _.mQc;b.setTime(a);return b};eUc=function(a,b){b=_.Ok(b,_.KM,35)||[];_.Ka(b,function(c){$M(a,"ancestors",c.Xa(),!1)})};fUc=function(a,b){b=_.Ok(b,_.KM,38)||[];_.Ka(b,function(c){$M(a,"descendants",c.Xa(),!1)})};gUc=function(a,b){b=_.Ok(b,_.Tl,37)||[];_.Ka(b,function(c){$M(a,"folderFeatures",c.Xa(),!1)})};
hUc=function(a,b){b=_.Kd(b,39);_.Ka(b,function(c){var d=[];d.push("templateData.description");d.push("contains");d.push(YM(c));_.ZM(a,d.join(" "))})};iUc=function(a,b){b=_.Kd(b,33)[0];if(null!=b){var c=[];c.push("teamDriveId");c.push("=");c.push(YM(b));_.ZM(a,c.join(" "))}};_.jUc=function(a){a=_.Ok(a,_.LM,25);if(null==a||0==a.length)return"";for(var b=[],c=0;c<a.length;c++)b.push(a[c].Xa());return b.join(",")};
_.kUc=function(a){a=a.Vw();return null==a||0==a.length?"":_.ib(a,function(b){b=_.C(b,1);if(0==b)throw Error("Ee");return _.kOc[b]}).join(",")};lUc=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;var d=[],e=YM(a.Xa());_.H(a,4)?(_.E(a,2,!1)&&d.push("not"),d.push("shortcutDetails.targetMimeType="+e)):(_.E(a,2,!1)&&d.push("not"),d.push("mimeType="+e));d[0]=b+d[0];d[d.length-1]+=c;return d.join(" ")};
mUc=function(a){if(_.H(a,2))return"any";switch(a.Xa()){case 0:return"mentions";case 1:return"suggestions";case 2:return"todos";default:return""}};nUc=function(a){switch(a){case 1:return"<=";case 2:return"<";case 3:return"=";case 4:return">";case 5:return">=";default:return""}};oUc=function(a,b,c){if(null!=_.C(c,2)){var d=nUc(_.C(c,1));c=YM(_.fTc(_.dUc(_.C(c,2)||0)));_.ZM(a,[b,d,c].join(" "))}};
pUc=function(a){switch(a){case 1:return"anyoneCanFind";case 2:return"anyoneWithLink";case 3:return"domainCanFind";case 4:return"domainWithLink";case 5:return"limited"}return""};
_.qUc=function(a){for(var b=new _.pq,c=_.Ok(a,_.Wl,4),d=0;d<c.length;d++){var e=c[d],f=e.Xa();if(f){var h=_.C(e,1),k=_.E(e,3,!1),l=[];k&&1==h&&l.push("not");l.push("title");l.push(1==h?"contains":k?"!=":"=");l.push(YM(f));_.ZM(b,l.join(" "))}}for(var n=_.Ok(a,_.Vl,5),p=0;p<n.length;p++){var t=n[p],u=t.Xa();if(u){var z=[];_.E(t,2,!1)&&z.push("not");z.push("fullText");z.push("contains");z.push(YM(u));_.ZM(b,z.join(" "))}}var B=_.MM(a);if(B&&0!=B.length){for(var F=[],I=[],M=0;M<B.length;M++){var U=B[M];
U.Xa()&&(_.E(U,2,!1)?I.push(U):F.push(U))}for(var R=0;R<F.length;R++){var ca=lUc(F[R],0==R?"(":"",R==F.length-1?")":"");_.ZM(b,ca,0!=R?"or":"and")}for(var va=0;va<I.length;va++)_.ZM(b,lUc(I[va],0==va?"(":"",va==I.length-1?")":""))}for(var ua=_.Ok(a,_.Sl,7),za=0;za<ua.length;za++)oUc(b,"modifiedDate",ua[za]);for(var ea=_.Ok(a,_.Sl,8),Ha=0;Ha<ea.length;Ha++)oUc(b,"lastViewedByMeDate",ea[Ha]);_.aN(b,"trashed",a.Ah());_.aN(b,"explicitlyTrashed",_.H(a,17));_.aN(b,"starred",_.H(a,10));_.aN(b,"hidden",a.Ql());
for(var Ra=_.NM(a),jb=0;jb<Ra.length;jb++){var Vb=Ra[jb];$M(b,"parents",Vb.Xa(),_.E(Vb,2,!1))}for(var cc=_.Ok(a,_.Re,13),Gc=0;Gc<cc.length;Gc++){var Ed=cc[Gc];$M(b,"owners",Ed.Xa(),_.E(Ed,2,!1))}for(var pc=_.Ok(a,_.Re,14),yd=0;yd<pc.length;yd++){var le=pc[yd];$M(b,"writers",le.Xa(),_.E(le,2,!1))}for(var Zc=_.Ok(a,_.Re,15),Be=0;Be<Zc.length;Be++){var bd=Zc[Be];$M(b,"readers",bd.Xa(),_.E(bd,2,!1))}_.H(a,16)&&_.ZM(b,"sharedWithMe");_.aN(b,"unparented",_.H(a,34));eUc(b,a);fUc(b,a);gUc(b,a);hUc(b,a);for(var yb=
_.Kd(a,40),sg=0;sg<yb.length;sg++){var pe=[];0==sg&&pe.push("(");pe.push(YM(yb[sg]));pe.push("in");pe.push("templateData.categories");sg==yb.length-1&&pe.push(")");_.ZM(b,pe.join(" "),0==sg?"and":"or")}var Pf=_.C(a,41);if(null!=Pf){var Ej=[];Ej.push("templateData.galleryState");Ej.push("=");Ej.push(YM(_.oQc[Pf]||""));_.ZM(b,Ej.join(" "))}var ei=_.C(a,42);if(null!=ei){var lf=[];lf.push("visibility");lf.push("=");lf.push(YM(pUc(ei)));_.ZM(b,lf.join(" "))}for(var jn=_.Ok(a,_.Pl,44),kn=0;kn<jn.length;++kn){var yf=
jn[kn];$M(b,"actionItems",mUc(yf),_.E(yf,3,!1))}if(_.sk(a,50)){var tg=[];tg.push("pairedDocType");var vh=_.E(a,50,!1)?"!=":"=";tg.push(vh);tg.push(YM("NONE"));_.ZM(b,tg.join(" "))}$M(b,"workspaceIds",a.Zp(),!1);for(var qi=_.Ok(a,_.Ql,57),qj=0;qj<qi.length;qj++){var ql=[];0==qj&&ql.push("(");ql.push(YM(qi[qj].Xa()));ql.push("in");ql.push("approvals");qj==qi.length-1&&ql.push(")");_.ZM(b,ql.join(" "),0==qj?"and":"or")}if(_.sk(a,58)){var Bi=a.Pp(),Qj=Bi.Xa(),Ne=_.E(Bi,2,!1);if(Qj){var rl=[];Ne&&rl.push("not");
rl.push("creator");rl.push("=");rl.push(YM(Qj));_.ZM(b,rl.join(" "))}}var nk=_.D(a,_.Ona,59);if(nk)for(var dh=_.m(_.Ok(nk,_.Mna,1)),sl=dh.next();!sl.done;sl=dh.next()){var bm=sl.value;$M(b,"categoryMetadata",bm.Hm());for(var Fl=_.m(_.Ok(bm,_.Kna,2)),ok=Fl.next();!ok.done;ok=Fl.next()){var Rg=ok.value,Pi=_.C(Rg,1),fi=_.mk(Rg,_.Rl[0]);if(10==fi){_.D(Rg,_.Dna,10);var Qi=_.H(Rg,15);(void 0===Qi?0:Qi)?_.ZM(b,Pi+" is null"):_.ZM(b,"not ("+Pi+" is null)")}else{var Qf=new _.pq,Gg=void 0;switch(fi){case 3:Gg=
_.D(Rg,$Sc,3);for(var Lk=_.m(Gg.vi()),fj=Lk.next();!fj.done;fj=Lk.next())_.aN(Qf,Pi,fj.value,"or");break;case 14:for(var Gl=Gg=_.D(Rg,_.wna,14),zf=new Map([[1,"="],[2,">"],[3,"<"]]),rj=_.m(Gl.vi()),cm=rj.next();!cm.done;cm=rj.next()){var dm=cm.value,gi=zf.get(_.C(Gl,2));if(!gi)throw Error("Fe");var Ri=[Pi,gi,YM(dm.getYear()+"-"+dm.getMonth()+"-"+dm.getDay())];_.ZM(Qf,Ri.join(" "),"or")}break;case 8:for(var Dc=Gg=_.D(Rg,_.Cna,8),pk=new Map([[1,"="],[2,">"],[3,"<"]]),Hl=_.m(Dc.vi()),kh=Hl.next();!kh.done;kh=
Hl.next()){var qk=kh.value,Hg=pk.get(_.C(Dc,2));if(!Hg)throw Error("Fe");_.ZM(Qf,[Pi,Hg,qk].join(" "),"or")}break;case 9:for(var ap=Gg=_.D(Rg,bTc,9),ln=new Map([[1,"in"]]),Il=_.m(ap.vi()),Mk=Il.next();!Mk.done;Mk=Il.next()){var co=Mk.value,Jl=ln.get(_.C(ap,2));if(!Jl)throw Error("Fe");_.ZM(Qf,[co,Jl,Pi].join(" "),"or")}break;case 6:for(var sj=Gg=_.D(Rg,_.Hna,6),eo=new Map([[1,"="]]),fo=_.m(sj.vi()),gj=fo.next();!gj.done;gj=fo.next()){var Nk=gj.value,rk=eo.get(_.C(sj,2));if(!rk)throw Error("Fe");_.ZM(Qf,
[Pi,rk,YM(Nk)].join(" "),"or")}break;case 7:for(var mn=Gg=_.D(Rg,_.Fna,7),Sp=new Map([[1,"in"]]),nn=_.m(mn.vi()),go=nn.next();!go.done;go=nn.next()){var ho=go.value,Wr=Sp.get(_.C(mn,2));if(!Wr)throw Error("Fe");_.ZM(Qf,[YM(ho),Wr,Pi].join(" "),"or")}break;case 4:for(var bw=Gg=_.D(Rg,_.Jna,4),Um=new Map([[1,"="],[2,"contains"],[3,"starts with"]]),cw=_.m(bw.vi()),eq=cw.next();!eq.done;eq=cw.next()){var bt=eq.value,fq=Um.get(_.C(bw,2));if(!fq)throw Error("Fe");_.ZM(Qf,[Pi,fq,YM(bt)].join(" "),"or")}break;
case 5:for(var gq=Gg=_.D(Rg,dTc,5),Xr=new Map([[1,"in"]]),dw=_.m(gq.vi()),NB=dw.next();!NB.done;NB=dw.next()){var iE=NB.value,OB=Xr.get(_.C(gq,2));if(!OB)throw Error("Fe");_.ZM(Qf,[YM(iE),OB,Pi].join(" "),"or")}break;case 12:for(var zx=Gg=_.D(Rg,_.Ana,12),jE=new Map([[1,"="]]),Ax=_.m(zx.vi()),Dz=Ax.next();!Dz.done;Dz=Ax.next()){var XL=Dz.value,kE=jE.get(_.C(zx,2));if(!kE)throw Error("Fe");_.ZM(Qf,[Pi,kE,YM(XL)].join(" "),"or")}break;case 11:for(var TH=Gg=_.D(Rg,_.yna,11),YL=new Map([[1,"in"]]),UH=
_.m(TH.vi()),ZL=UH.next();!ZL.done;ZL=UH.next()){var $L=ZL.value,Bx=YL.get(_.C(TH,2));if(!Bx)throw Error("Fe");_.ZM(Qf,[YM($L),Bx,Pi].join(" "),"or")}}_.H(Rg,15)?_.ZM(b,"not ("+Qf+")"):_.ZM(b,1<Gg.vi().length?"("+Qf+")":""+Qf)}}}null!=_.H(a,60)&&_.aN(b,"linkShareMetadata.securityUpdateEligible",_.H(a,60));var al=_.H(a,65);if(null!=al){var jq=[];jq.push("clientEncryptionDetails.encryptionState");jq.push("=");jq.push(YM(al?"encrypted":"unencrypted"));_.ZM(b,jq.join(" "))}var vn=_.Ok(a,_.Re,68);if(vn.length){for(var HQ=
[],VH=[],PB=_.m(vn),ae=PB.next();!ae.done;ae=PB.next()){var sX=ae.value,Du="sharedFrom = "+YM(sX.Xa());_.E(sX,2,!1)?VH.push(Du):HQ.push(Du)}cUc(b,HQ,!1);cUc(b,VH,!0)}var wn=_.Ok(a,_.Re,67);if(wn.length){for(var aM=[],QB=[],RB=_.m(wn),Ul=RB.next();!Ul.done;Ul=RB.next()){var bM=Ul.value,SB="sharedTo = "+YM(bM.Xa());_.E(bM,2,!1)?QB.push(SB):aM.push(SB)}cUc(b,aM,!1);cUc(b,QB,!0)}null!=_.H(a,69)&&_.aN(b,"linkShareMetadata.allowLessSecureLink",_.H(a,69));1==_.OM(a)&&iUc(b,a);return b.toString()};
_.rUc=function(a){var b=new _.pq(_.qUc(a));_.VL(a)?_.ZM(b,"isQuickAccessRequest"):_.WL(a)?_.ZM(b,"isPeoplePredictRequest"):_.cM(a)&&_.ZM(b,"isDrivePriorityRequest");var c=a.Jc();if(c){var d=[];d.push("sortBy");d.push(_.iQc[c.getType()]);d.push(_.qQc[_.vk(c,2,1)]);_.H(c,3)&&d.push("foldersFirst");_.ZM(b,d.join(" "))}_.aN(b,"domainSearch",_.H(a,18));_.aN(b,"offline",_.H(a,19));_.Ok(a,_.LM,25).length&&(c=[],c.push("sources"),c.push("contains"),c.push(_.jUc(a)),_.ZM(b,c.join(" ")));a.Vw().length&&(c=
[],c.push("spaces"),c.push("contains"),c.push(_.kUc(a)),_.ZM(b,c.join(" ")));if(c=_.OM(a))d=[],d.push("corpora"),d.push("="),d.push(YM(_.MTc[c])),_.ZM(b,d.join(" "));_.E(a,66,!0)||_.aN(b,"includeItemsFromAllDrives",_.E(a,66,!0));1!=_.OM(a)&&iUc(b,a);_.E(a,48,!1)&&_.ZM(b,"cachedOnly");return b.toString()};
_.AM=function(a){if(a instanceof _.eL)a=a.qd();else if(!a)return!1;return a instanceof _.xp||"undefined"!=typeof _.nM&&a instanceof _.nM||"undefined"!=typeof _.bN&&a instanceof _.bN||a instanceof _.Pe&&(_.VL(a)||_.WL(a)||_.cM(a))};sUc=function(){_.mq.call(this);this.V=this.O=null;this.ka=!1;this.ha=null};_.N(sUc,_.mq);_.tUc=function(a){!a.ka&&a.V&&(a.V(),a.ka=!0)};uUc=function(a,b){a.V||(a.V=b)};sUc.prototype.xk=function(){_.tUc(this);(0,this.ha)()};vUc=function(a,b){a.ha||(a.ha=b)};
_.cN=function(a){if(!a.O){a.O=new GTc;var b=_.oq(a);_.y(b,56,a.O)}return a.O};sUc.prototype.getState=function(){var a=_.cN(this).getState();a||(a=new xTc,_.cN(this).Gd(a));return a};var wUc=function(a,b){var c=new vTc;_.A(c,1,b);a=_.oq(a);_.y(a,12,c)};sUc.prototype.XC=function(){var a=_.cN(this).XC();if(!a){a=new zTc;var b=_.cN(this);_.y(b,16,a)}return a};sUc.prototype.ma=function(){var a=_.D(_.cN(this),ATc,4);if(!a){a=new ATc;var b=_.cN(this);_.y(b,4,a)}return a};
xUc=function(a){var b=_.D(_.cN(a),BTc,8);b||(b=new BTc,a=_.cN(a),_.y(a,8,b));return b};_.yUc=function(a,b){a=void 0===a?1:a;b=void 0===b?!1:b;_.Q.call(this);this.O=!1;this.H=b?1:a;this.V=b};_.N(_.yUc,_.Q);_.g=_.yUc.prototype;_.g.isConnected=function(){return!this.O&&1===this.H};_.g.Vl=function(){return 1===this.H||2===this.H};_.g.af=function(){return 3===this.H};_.g.get=function(){return this.H};
_.g.update=function(a){if(this.V)return!1;if(this.H!==a||this.O&&1===a){if(2===a)var b=3===this.H?_.gL.u4:_.gL.Era;else 1===a?b=_.gL.fX:3===a&&(b=_.gL.PR);if(b)return b=new STc(b),this.H=a,this.O=!1,this.dispatchEvent(b),!0}return!1};
var zUc=function(a,b){this.userId=a;this.H=b;this.db=null},BUc=function(a,b){a.H.info("drive.ds.sync.logging.ImpressionPersister","Persisting offline impressions.");return AUc(a,function(c){return c.count().then(function(d){return 1E3>d?a.add(c,b):a.handleError(Error("Le"))},function(d){return a.handleError(d)})},"readwrite")};zUc.prototype.add=function(a,b){var c=this,d={};return a.add((d.userId=this.userId,d.ewb=b.ke(),d)).then(null,function(e){c.handleError(e)})};
var CUc=function(a){return new _.hi(function(b){var c=new Map;AUc(a,function(d){return hTc(d.getIndex("userId"),a.userId).then(function(e){e=new Map(e.map(function(l){return[l,d.get(l)]}));for(var f={},h=_.m(e),k=h.next();!k.done;f={loa:f.loa},k=h.next())k=_.m(k.value),f.loa=k.next().value,k.next().value.then(function(l){return function(n){n&&c.set(l.loa,new _.BBa(n.ewb))}}(f));return _.mi([].concat(_.Vc(e.values()))).then(function(){return b(c)})})})})},DUc=function(a,b){return AUc(a,function(c){return c.remove(b)},
"readwrite")},AUc=function(a,b,c){c=void 0===c?"readonly":c;return EUc(a).then(function(d){try{var e=_.hPc(d,["OfflineImpressions"],c).objectStore("OfflineImpressions");return b(e)}catch(f){return a.handleError(f)}},function(d){return a.handleError(d)})},EUc=function(a){return a.db?_.ii(a.db):_.jPc("GoogleDriveDsImpressions",2,function(b,c){c.H.objectStoreNames.contains("OfflineImpressions")&&_.iTc(c,"OfflineImpressions");b=_.gPc(c,"OfflineImpressions",{autoIncrement:!0});try{b.H.createIndex("userId",
"userId",void 0)}catch(d){throw _.XK(d,"creating new index userId with key path userId");}},function(){return a.handleError(Error("Me"))}).then(function(b){return a.db=b},function(b){return _.ji(_.xL(b))})};zUc.prototype.handleError=function(a){a||(a=Error("Ne"));_.VM(this.H,"drive.ds.sync.logging.ImpressionPersister",a.message,"severe");return _.ii()};_.FUc=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;_.Q.call(this);this.V=b;this.O=null;this.H=b?!1:a};_.N(_.FUc,_.Q);_.FUc.prototype.af=function(){return this.H};
_.FUc.prototype.xm=function(a){var b=this.H!==a;!this.V&&b&&(this.H=a,this.dispatchEvent(new aUc(a)))};_.FUc.prototype.PD=function(a){this.O=a};var HUc=function(a,b,c,d,e,f){_.Q.call(this);var h=this;this.V=a;this.H=b;this.W=c;this.O=d;this.Kb=new _.oe(this);this.Kb.listen(b,"Ab",function(k){k.af()||GUc(h)});this.Kb.listen(c,[_.gL.fX,_.gL.u4],function(){return void GUc(h)});this.ha=e;f.then(function(){return GUc(h)})};_.N(HUc,_.Q);
HUc.prototype.Sy=function(a){return(this.H.af()||this.W.af())&&this.H.O?BUc(this.O,a):this.V.Sy(a)};
var GUc=function(a){return a.H.O?CUc(a.O).then(function(b){b.forEach(function(c,d){a.V.Sy(c).then(function(){return IUc(a,d)},function(){a.log("Unable to send offline impression batch "+d+".")})})}):Promise.resolve()},IUc=function(a,b){a.log("Sent offline impression batch "+b+".");a.dispatchEvent("Bb");return DUc(a.O,b).then(function(){a.log("Removed offline impression batch "+b+".")},function(){a.log("Unable to remove offline impression batch "+b+".")})};
HUc.prototype.log=function(a){this.ha.info("drive.ds.sync.logging.ClearcutOfflineTransport",a)};var JUc=function(){};JUc.prototype.BO=function(){return new sUc};var KUc=function(){this.H=new HTc};KUc.prototype.O=function(a){_.y(a,13,this.H)};KUc.prototype.setEnvironment=function(a){this.H.setEnvironment(a);return this};
MUc=function(a,b,c,d){this.W=b;this.V=c;this.Lv=d;this.O=this.H=null;this.client=_.dN(_.zQc,_.QM(a));this.ka=_.dN(_.DQc,_.vk(a.Sf(),8,0));this.Fta=_.dN(_.AQc,_.vk(a.Sf(),9,2));this.ma=_.E(a,10,!1);this.Uv=_.YK(_.ZK(a));this.Nya=_.RM(a);this.ha=LUc(a);this.buildLabel=a.Qi()};LUc=function(a){var b=[].concat(_.Vc(_.wQc.keys())),c=[].concat(_.Vc(_.xQc.keys())),d=_.oL(a);return b.filter(function(e){return _.wQc.get(e)(a)}).concat(c.filter(function(e){return d&&_.xQc.get(e)(d)}))};
_.dN=function(a,b){a=_.m(a);for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;if(c.includes(b))return d}return 0};NUc=function(a){if(a.O)return a.O.H("aU7Ts")};
MUc.prototype.Bb=function(a){return a instanceof _.IA||"undefined"!=typeof _.eN&&a instanceof _.eN||"undefined"!=typeof _.fN&&a instanceof _.fN||"undefined"!=typeof _.gN&&a instanceof _.gN?a.Bb():"undefined"!=typeof _.hN&&a instanceof _.hN||"undefined"!=typeof _.iN&&a instanceof _.iN||"undefined"!=typeof _.jN&&a instanceof _.jN||"undefined"!=typeof _.kN&&a instanceof _.kN||"undefined"!=typeof _.OUc&&a instanceof _.OUc?a.response?a.response.Bb():null:null};MUc.prototype.Qi=function(){return this.buildLabel};
var PUc=function(a){return a.W.af()||a.V.af()?2:1};MUc.prototype.getEnvironment=function(){return this.Lv};var QUc=function(a,b){this.H=a;var c=new _.jAa;_.kAa(c,b.ha);a=this.H.oJ();var d=_.$Pc(a);_.y(d,10,c);(c=b.Qi())&&_.ZPc(a,c);this.H.nX();this.O=b};QUc.prototype.isRunning=function(){return this.H.tR()};QUc.prototype.Gw=function(){this.isRunning()&&this.H.Gw()};
_.RUc=function(a,b,c){var d=_.nq(a.H.jE(b,c),_.rQc);wUc(d,PUc(a.O));b=NUc(a.O);"boolean"===typeof b&&yTc(d.getState(),b);1===c&&uUc(d,function(){return void a.H.uK(d)});vUc(d,function(){var e=a.O;e=e.H?e.H.Md():void 0;var f=d.getState();_.A(f,1,e);a.H.gq(d)});return d};SUc=function(a){var b=new _.ZAa,c=new KUc;_.A(c.H,1,a.client);_.A(c.H,3,a.ka);_.A(c.H,4,a.Fta);_.A(c.H,5,a.ma);_.A(c.H,6,a.Uv);_.A(c.H,7,a.Nya);a=c.setEnvironment(a.getEnvironment());_.lPc(b,_.tQc,a);_.qq(b,_.rQc,new JUc);return b};
TUc=function(a,b,c,d,e,f,h,k){k=void 0===k?!1:k;var l=new _.aH(906,b,void 0,_.GQc());l.V=!1;var n=new _.mPc(l);b=new Date;l=_.eQc(_.dQc(_.cQc(jTc(),new _.nPc(l)),SUc(c)),109).setSessionId(b.getTime()+"_"+_.bh());if(k){a=new HUc(n,d,e,new zUc(a,f),f,h);_.bQc(l,a);d=l.build();_.YPc(d.oJ(),1E3*b.getTime());var p=new QUc(d,c);(new _.oe).listen(a,"Bb",function(){_.RUc(p,106008,0).xk()});return p}_.bQc(l,n);a=l.build();_.YPc(a.oJ(),1E3*b.getTime());return new QUc(a,c)};
UUc=function(a,b){this.V=a;this.W=b};UUc.prototype.H=function(a,b){this.V&&this.isRunning()&&(a=_.RUc(this.V,a,0),b&&_.kPc(a,b),a.xk())};_.VUc=function(a,b){if(a.V&&a.isRunning()){a=_.RUc(a.V,106018,0);var c=_.D(_.cN(a),FTc,15);if(!c){c=new FTc;var d=_.cN(a);_.y(d,15,c)}c=_.A(c,1,1);_.A(c,2,b);a.xk()}};UUc.prototype.O=function(a,b){return this.V&&this.isRunning()?(a=_.RUc(this.V,a,1),b&&_.kPc(a,b),a):null};UUc.prototype.Gw=function(){this.V&&this.isRunning()&&this.V.Gw()};
UUc.prototype.isRunning=function(){return!(!this.V||!this.V.isRunning())};_.WUc=function(a,b,c,d,e,f){var h=_.H(a,59),k=_.nL(_.ZK(a)).toString(),l=_.PM(_.ZK(a));f=new MUc(a,b,c,f);a=h?TUc(l,k,f,b,c,d,e,_.E(a,17,!1)):null;return new UUc(a,f)};_.XUc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.XUc,_.L);_.XUc.prototype.getId=function(){return _.C(this,1)};_.XUc.prototype.Ob=function(a){return _.A(this,1,a)};_.XUc.prototype.re=function(){return _.D(this,_.af,2)};
_.gM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.gM,_.L);_.gM.prototype.wo=function(){return _.C(this,2)};_.gM.prototype.qd=function(){return _.D(this,_.XUc,3)};_.RL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.RL,_.L);_.RL.prototype.qd=function(){return _.D(this,_.QL,1)};_.RL.prototype.Ss=function(){return _.C(this,2)};_.RL.prototype.iaa=function(a){return _.A(this,2,a)};_.RL.prototype.mUa=function(){return _.sk(this,2)};_.PL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.PL,_.L);
_.PL.prototype.getId=function(){return _.C(this,1)};_.PL.prototype.Ob=function(a){return _.A(this,1,a)};_.YUc=function(a,b){_.A(a,2,b)};_.iM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.iM,_.L);_.iM.prototype.qd=function(){return _.D(this,_.PL,1)};ZUc=[2];_.qM=function(a){(0,_.S)(this,a,0,-1,ZUc,null)};_.O(_.qM,_.L);_.qM.prototype.Gc=function(){return _.C(this,1)};_.qM.prototype.sT=function(){return _.Ok(this,_.hSb,2)};_.qM.prototype.re=function(){return _.D(this,_.af,3)};$Uc=[1];
_.DRc=function(a){(0,_.S)(this,a,0,-1,$Uc,null)};_.O(_.DRc,_.L);_.aVc=function(){this.H={}};bVc=function(a,b,c){if(a.H[b])throw Error("Oe");a.H[b]=c};_.aVc.prototype.notify=function(a,b){for(var c=0;c<a.length;c++)if(this.H[a[c]])try{this.H[a[c]](b)}catch(d){_.q.setTimeout(function(){throw d;},0)}};cVc=function(a,b){for(var c=0;c<b.length;c++)delete a.H[b[c]]};_.dVc=function(a,b){this.H=a;this.V=b;this.O=_.LQc[_.vk(a.Sf(),8,0)];this.W=_.LQc[_.vk(a.Sf(),51,5)];this.nonce=_.bh()};
_.dVc.prototype.qc=function(a,b){if(b.zL)eVc(this,a,b),fVc(this,a,b);else if(11===a.Dm){if(b.aFb){var c=b.xD||_.G(this.H.Sf(),37,"");_.Jj(a.uri,"key",c)}eVc(this,a,b);gVc(this,a,b)}else switch(a.uri=hVc(this,a.Dm,a.uri),a.Dm){case 1:gVc(this,a,b);eVc(this,a,b);break;case 0:_.E(this.H,83,!1)&&(b.Uv||_.YK(_.ZK(this.H))||_.Jj(a.uri,"dsNonce",this.nonce));gVc(this,a,b);fVc(this,a,b);eVc(this,a,b);break;case 2:case 3:case 4:case 5:gVc(this,a,b);fVc(this,a,b);eVc(this,a,b);break;case 8:case 9:case 10:case 13:case 12:case 7:gVc(this,
a,b);fVc(this,a,b);break;default:throw Error("Pe`"+a.Dm);}};iVc=function(a,b){var c=hVc(a,b,new _.Aj);if(!c.H)throw Error("Re");return _.Dj(_.Cj(_.Bj(new _.Aj,c.O),c.H),c.W).Mi(_.MQc.has(b)?"/batch"+a.O:"/batch")};
hVc=function(a,b,c){var d=_.C(a.H.Sf(),57);switch(b){case 0:a=d+a.O;break;case 1:a=d+"/batch"+a.O;break;case 2:a=d+"/upload"+a.O;break;case 3:a=d+"/upload"+a.O+"/batch";break;case 4:return c;case 5:a=d+a.W;break;case 7:a=_.G(a.H.Sf(),62,"");break;case 8:a=_.C(a.H.Sf(),53);break;case 9:a=_.C(a.H.Sf(),56);break;case 10:a=_.C(a.H.Sf(),22);break;case 13:a=_.C(a.H.Sf(),55);break;case 12:a=_.C(a.H.Sf(),43);break;default:throw Error("Pe`"+b);}a&&a.endsWith("/")&&(a=a.slice(0,-1));c=c.toString();if(!c)return new _.Aj(a);
_.vd(c,"/")&&(c=c.slice(1));return new _.Aj(a+"/"+c)};gVc=function(a,b,c){a=_.ZK(a.H);c.Uv||_.YK(a)||(c=[{key:"u",value:_.PM(a)}],b.headers.authorization=_.W7b(c)||"",c=_.nL(a),0<=c&&(b.headers["x-goog-authuser"]=String(c)))};
eVc=function(a,b,c){var d=_.ZK(a.H),e=a.H.Sf(),f=c.YLb||!!_.C(e,13);c=c.ZLb||_.E(e,14,!1);var h=11===b.Dm;f&&((f=_.C(e,13))&&_.vd(f,"email:")?_.Jj(b.uri,"trace",f):f&&"trace:true"===f?_.Jj(b.uri,"$trace","true"):f?_.Jj(b.uri,"trace","token:"+f):_.Jj(b.uri,"trace","email:"+d.getEmail().replace(/(@|\+).*$/,"")),h||_.Jj(b.uri,"trace.deb","genoa:3:all,driveService:3:all"+(2===_.vk(e,9,2)?"":",cospel:3:all,DriveService:3:all")));c&&!h&&a.V&&a.V.O(b.headers,b.method,b.uri.toString())};
fVc=function(a,b,c){c.Uv||_.YK(_.ZK(a.H))?_.Jj(b.uri,"key",_.G(a.H.Sf(),36,"")):(a=c.xD||_.G(a.H.Sf(),37,""),_.Jj(b.uri,"key",a))};_.jVc=function(a,b){_.UG.call(this,a?a:500,b?b:6E5)};_.N(_.jVc,_.UG);_.kVc=function(a,b){this.O=b;this.H={};this.ma(_.Ok(a,_.Xl,91))};_.kVc.prototype.ma=function(a){var b=this;a.forEach(function(c){var d=c.getId();c=_.C(c,2);if(d&&c){var e=_.lVc(b,d);if(e){if(e!==c)throw new _.Ub("Multiple resource key definitions found for itemId "+d);}else b.H[d]=c}})};
eSc=function(a,b){return[].concat(_.Vc(new Set(b))).map(function(c){var d=(new _.Xl).Ob(c);a.H[c]?_.Yl(d,a.H[c]):a.O&&(c=a.O.H(c))&&_.Yl(d,_.Ol(c));return d}).filter(function(c){return _.sk(c,2)})};_.lVc=function(a,b){return a.H[b]?a.H[b]:a.O&&(a=a.O.H(b))&&_.sk(a,140)?_.Ol(a):null};_.mVc=function(a,b,c){this.state=a;this.W=b;this.V=c;this.H=this.timeout=null;this.O=!1};_.mVc.prototype.getState=function(){return this.state};
_.mVc.prototype.reset=function(){this.H=null;this.timeout&&(clearTimeout(this.timeout),this.timeout=null)};_.oVc=function(a){a.H||a.O||(a.H=new _.jVc(5E3,6E4),nVc(a))};nVc=function(a){pVc(a);a.H&&(a.timeout=setTimeout(function(){return void nVc(a)},a.H.Xa()),_.VG(a.H))};pVc=function(a){_.oi(_.ii().then(null,function(){return null}),function(){return void qVc(a)})};
qVc=function(a){a.log("Checking connection state.");a.W.then(function(b){return b.hh(new _.SRc)}).then(null,function(b){b=_.yL(b);_.FQc(b.$g)&&rVc(a,2);return _.ji(b)}).then(null,function(){return null})};_.mVc.prototype.log=function(a){this.V.info("drive.ds.sync.connection.StateManager",a)};rVc=function(a,b){return!a.O&&a.state.update(b)?(a.log("Connection status: "+_.NQc.get(b)),!0):!1};
XRc=[_.BL,_.DL,_.CL,_.FL,_.EL,_.GL,_.HL,_.KL,_.ML,_.NL,_.OL,_.QL,_.RL,_.lM,_.ERc,_.qM,_.pL,_.rM,_.sM,_.tM,_.HRc,_.vM];sVc=[_.rL];YRc=[_.HF,_.MRc];ZRc=[_.gM,_.$K,_.pC,_.wM];$Rc=[_.eL,_.qp,_.rL,_.GRc];aSc=[_.wM,_.yp];bSc=[_.PL,_.DRc,_.eM,_.iM,_.jM,_.FRc,_.vM,ORc,NRc];tVc=function(a){return a instanceof _.eL||a instanceof _.wM||"undefined"!=typeof _.lN&&a instanceof _.lN||a instanceof _.sM||a instanceof _.NL||a instanceof _.GL||a instanceof _.KL||a instanceof _.pL&&_.zM(a)};
_.uVc=function(a,b){this.O=b;this.H={};this.Ti=new rTc;b=_.AL({fields:_.Kd(a,28),qq:_.YK(_.ZK(a))});this.Jb("SecondaryFields",b);this.Jb("SdkBackfillEnabled",!!_.E(a,45,!1)+" (Include corpus cache: "+!!_.E(a,46,!1)+")")};_.uVc.prototype.Jb=function(a,b){this.H[a]=vVc(a,b)};var wVc=function(a,b){var c=a.H[b];c||(c=vVc(b,0,2),a.H[b]=c);c.Jb(String(Number(c.Xa())+1))};
_.uVc.prototype.YC=function(a){var b=_.Xc(this.H);this.O&&b.push(vVc("CacheSize",this.O.Md()));b.push(vVc("InitialViewDataLoaded",a));a=new _.RTc;_.kb(a,1,b);return _.wi(a)};vVc=function(a,b,c){var d=new _.PTc;_.A(d,1,a);_.A(d,4,c||1);d.Jb(String(b));d.wl(nTc[a]);return d};
_.xVc=function(a,b,c){var d=new _.gQc;_.A(d,2,"Pending...");b instanceof _.eL?_.Qk(d,3,_.fL[0],b):b instanceof _.wM?_.Qk(d,4,_.fL[0],b):"undefined"!=typeof _.lN&&b instanceof _.lN?_.Qk(d,5,_.fL[0],b):b instanceof _.sM?_.Qk(d,6,_.fL[0],b):b instanceof _.NL?_.Qk(d,7,_.fL[0],b):b instanceof _.GL?_.Qk(d,8,_.fL[0],b):b instanceof _.KL?_.Qk(d,9,_.fL[0],b):b instanceof _.pL&&_.Qk(d,10,_.fL[0],b);var e=URc(b),f=[];if(b instanceof _.CL)xM(f,"ID",b.getId()),xM(f,"Parent ID",b.kk());else if(b instanceof _.NL)xM(f,
"TD ID",b.getId());else if(b instanceof _.eL)b=_.rUc(b.qd()),xM(f,"Query",b);else if(b instanceof _.wM)xM(f,"Query","All");else if(b instanceof _.sM)xM(f,"TD ID",b.getId()),xM(f,"Title",b.getTitle()),xM(f,"Theme Image ID",_.C(b,3));else if(b instanceof _.GL)xM(f,"MimeType",b.getMimeType()),xM(f,"Title",b.getTitle()),xM(f,"Parents",_.Kd(b,3)),xM(f,"Convert",_.H(b,8)),xM(f,"Request ID",b.Qj()),xM(f,"Parent Request IDs",_.Kd(b,10)),xM(f,"Revision Item ID",_.C(b,12)),xM(f,"Pinned",_.H(b,8));else if(b instanceof
_.HL)xM(f,"Title",b.getTitle());else if(b instanceof _.KL)xM(f,"ID",b.getId());else if(b instanceof _.OL)xM(f,"WS ID",b.getId());else if(b instanceof _.pL){if(xM(f,"ID",b.getId()),xM(f,"Title",b.getTitle()),xM(f,"Description",b.xg()),xM(f,"Starred",_.H(b,4)),xM(f,"Trashed",b.Ah()),xM(f,"MimeType",b.getMimeType()),xM(f,"Parents",_.Kd(b,8)),xM(f,"Parents to add",_.Kd(b,9)),xM(f,"Parents to remove",_.Kd(b,10)),xM(f,"Restricted",_.H(b,11)),xM(f,"Folder Color",b.Gi()),xM(f,"Update Last Viewed",_.H(b,15)),
xM(f,"Subscribed",_.H(b,16)),xM(f,"Available Offline",_.H(b,18)),xM(f,"Wksp to add",_.Kd(b,31)),xM(f,"Wksp to remove",_.Kd(b,32)),b=_.D(b,_.zl,25))xM(f,"Read Only",_.H(b,1)),xM(f,"Reason",_.C(b,2))}else b instanceof _.tM?(xM(f,"WS ID",b.getId()),xM(f,"Title",b.getTitle()),xM(f,"State",b.getState())):b instanceof _.HRc&&xM(f,"Title",b.request.getTitle());_.A(d,1,"Request: "+e+(c?" ("+c+")":"")+"\n"+f.join("\n"));a.Ti.add(d);return d};
_.yVc=function(a,b){for(var c=new _.pq,d=0;d<b.length&&20>d;d++){var e=b[d];c.append(e.getId()+":"+_.pRc(e.getTitle()||"",20)+"\n")}20<b.length&&c.append(b.length-20+" more item(s)");_.A(a,2,c.toString()||"Done.")};_.uVc.prototype.E7=function(){return this.Ti.Tg()};_.r("sy164");
_.mN=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.mN,_.L);_.mN.prototype.zo=function(){return _.D(this,_.IA,1)};_.zVc=function(a,b){return _.y(a,1,b)};_.mN.prototype.wo=function(){return _.C(this,3)};
_.AVc=function(a,b,c){_.Fi.call(this,"Lb");this.requestId=a;this.progress=b;this.totalBytes=c};_.N(_.AVc,_.Fi);
_.BVc=function(a,b){this.O=a;this.V=b;this.H=null};
var nN=function(){_.Q.apply(this,arguments)};_.N(nN,_.Q);var DVc=function(a,b){a.dispatchEvent(new CVc(b))};nN.prototype.O=function(){};var CVc=function(a){_.Fi.call(this,"Mb");this.request=a};_.N(CVc,_.Fi);
_.EVc=function(a){nN.call(this);this.H=a};_.N(_.EVc,nN);_.EVc.prototype.intercept=function(a){var b=!1;_.FQc(_.mL(a.tx[a.tx.length-1].response))&&(this.H.ma(),b=!0);return b&&2>a.tx.length?(DVc(this,a),!0):!1};
var oN=function(a){_.Q.call(this);this.name=a};_.N(oN,_.Q);_.g=oN.prototype;_.g.V0=function(){};_.g.kBa=function(){};_.g.HXa=function(){};_.g.WIa=function(){};_.g.GXa=function(){};_.g.kE=function(){this.dispatchEvent(new _.Fi("Nb"))};_.g.toString=function(){return this.name+": "+this.max(Infinity)};
_.FVc=function(a,b){oN.call(this,"Online");var c=this;this.O=a;this.H=b;this.Pc=new _.oe(this);this.La(this.Pc);this.Pc.listen(this.O,"Ab",function(d){d.af()||c.kE()});this.Pc.listen(this.H,"eb",this.kE)};_.N(_.FVc,oN);_.FVc.prototype.max=function(){var a=this.O.af(),b=this.H.Yz();return!a&&b?Infinity:0};_.FVc.prototype.V0=function(){this.kE()};
var HVc;_.GVc=function(a,b,c){this.iI=c;this.O=!0;this.V=0;this.H=new _.UG(a,b,.5)};HVc=function(a){return a.H.O+a.V};
_.pN=function(a,b){oN.call(this,"Backoff");this.H=a;this.O=b};_.N(_.pN,oN);_.pN.prototype.max=function(){return this.H.O?Infinity:0};_.pN.prototype.WIa=function(){var a=this.H;a.V=0;a.H.reset()};_.pN.prototype.GXa=function(a){var b=this;IVc(a)&&this.H.O&&(this.H.O=!1,a=this.H.H.Xa(),this.log("Stopping new requests for "+a+" ms."),_.q.setTimeout(function(){b.log("Backoff complete, allowing requests.");b.H.O=!0;b.kE()},a),_.VG(this.H.H))};
var IVc=function(a){a=a.tx.length&&_.ia(a.tx).response;return!!(a&&a instanceof _.Tb&&sRc(a))};_.pN.prototype.log=function(a){this.O.info("drive.ds.network.queue.BackoffState",a)};
_.JVc=function(a,b){oN.call(this,"Batch");this.O=a;this.V=b;this.H=null};_.N(_.JVc,oN);_.JVc.prototype.max=function(a){return a>=this.O?this.O:null!=this.H?this.V<=Date.now()-this.H?this.O:0:0};_.JVc.prototype.V0=function(a){a>=this.O?this.kE():null==this.H&&KVc(this)};_.JVc.prototype.kBa=function(a,b){0<b?KVc(this):this.H=null};var KVc=function(a){a.H=Date.now()-1;_.q.setTimeout(a.kE.bind(a),a.V)};
_.qN=function(){this.Ti=[]};_.g=_.qN.prototype;_.g.add=function(a,b){b?this.Ti.unshift(a):this.Ti.push(a);return!0};_.g.ppa=function(a){return _.Ba(this.Ti,0,a)};_.g.Md=function(){return this.Ti.length};_.g.cancel=function(a){return _.ta(this.Ti,function(b){return b.fu.config.requestId===a?(b.se.resolve(VRc(b.fu.request)),!0):!1})};_.g.OH=function(){return _.If(this.Ti,function(a){return _.zM(a.fu.request)})};
_.LVc=function(a){nN.call(this);this.H=a};_.N(_.LVc,nN);_.LVc.prototype.intercept=function(a){var b=_.mL(a.tx[a.tx.length-1].response),c=!1;if(2===b.bp())b=this.H,rVc(b,3)&&_.oVc(b),c=!0;else if(_.FQc(b)){b=this.H;if(c=!b.O)c=b.state,c=!c.V&&c.isConnected()?c.O=!0:!1;c&&_.oVc(b);c=!0}return c&&2>a.tx.length?(DVc(this,a),!0):!1};
var MVc=function(){oN.call(this,"Immediate")};_.N(MVc,oN);MVc.prototype.max=function(){return Infinity};MVc.prototype.V0=function(){this.kE()};
var NVc=function(){oN.call(this,"One Request")};_.N(NVc,oN);NVc.prototype.max=function(){return 1};
_.OVc=function(a){oN.call(this,"Online");var b=this;this.H=a;this.Pc=new _.oe(this);this.La(this.Pc);this.Pc.listen(this.H,[_.gL.fX,_.gL.Era,_.gL.u4],function(){return b.kE()})};_.N(_.OVc,oN);_.OVc.prototype.max=function(){return this.H.isConnected()?Infinity:0};_.OVc.prototype.V0=function(){this.kE()};
_.rN=function(a){oN.call(this,"Parallel");this.limit=a;this.H=0};_.N(_.rN,oN);_.rN.prototype.max=function(){return Math.max(0,this.limit-this.H)};_.rN.prototype.V0=function(){this.H<this.limit&&this.kE()};_.rN.prototype.kBa=function(a){this.H+=a.length};_.rN.prototype.HXa=function(a){this.H-=a.length;this.H<this.limit&&this.kE()};
_.sN=function(a,b,c,d,e,f){_.Q.call(this);var h=this;this.ha=a;this.O=b;this.ma=0;this.V=new Map;this.Pc=new _.oe(this);this.La(this.Pc);this.H=c;for(a=0;a<c.length;a++)this.Pc.listen(c[a],"Nb",this.EWa);this.buckets=d;this.W=e;for(c=0;c<e.length;c++)this.Pc.listen(e[c],"Mb",function(k){PVc(h,!0,k.request)});this.ka=_.vx("drive.ds.network.queue.Queue [%s]",f)};_.N(_.sN,_.Q);_.sN.prototype.add=function(a){return PVc(this,!1,{fu:a,se:_.ni(),tx:[]})};
_.sN.prototype.cancel=function(a){var b=this.O.cancel(a),c=this.buckets.some(function(d){return d.cancel(a)});b?this.log("Canceled ID "+a+" during execution."):c&&this.log("Canceled ID "+a+" inside bucket.");return b||c};_.sN.prototype.OH=function(){return this.O.OH()?!0:this.buckets.some(function(a){return a.OH()})};
var PVc=function(a,b,c){if(!a.buckets.some(function(f){return f.add(c,b)}))return a=_.fr(new _.Tb,"No queue bucket accepted request."),_.ji(_.yL(a));for(var d=QVc(a),e=0;e<a.H.length;e++)a.H[e].V0(d);return c.se.promise};_.g=_.sN.prototype;
_.g.EWa=function(){var a=QVc(this);if(a){for(var b=this.H.reduce(function(e,f){return Math.min(e,f.max(a))},Infinity),c=[],d=0;d<this.buckets.length&&0===c.length;d++)c=this.buckets[d].ppa(b);0<c.length&&(this.log("Executing "+c.length+"/"+a+" requests. States: {"+this.H.join(", ")+"}"),this.execute(c))}};
_.g.execute=function(a){var b=this,c=String(this.ma++);this.V.set(c,a);for(var d=this.O.execute(a),e=0;e<a.length;e++)d[e].then(this.brb.bind(this,a[e]),this.arb.bind(this,a[e]));e=QVc(this);for(var f=0;f<this.H.length;f++)this.H[f].kBa(a,e);_.oi(_.mi(d).then(this.$qb.bind(this,a)),function(){b.V.delete(c)});_.q.setTimeout(this.EWa.bind(this),0)};
_.g.brb=function(a,b){var c=a.fu.config;this.log(URc(a.fu.request)+" request completed successfully. xd4: "+!(!c||!c.zL));this.H.forEach(function(d){return d.WIa()});this.W.forEach(function(d){return d.O(a)});a.se.resolve(b)};
_.g.arb=function(a,b){b=_.yL(b);this.log(URc(a.fu.request)+(" request failed with error: "+b.ha+"."));a.tx.push({response:b,HLb:Date.now()});for(var c=0;c<this.H.length;c++)this.H[c].GXa(a);a.fu.config.ika||!this.W.some(function(d){return d.intercept(a)})?a.se.reject(b):this.log(URc(a.fu.request)+" encountered an error, but was intercepted to be retried.")};_.g.$qb=function(a){QVc(this);for(var b=0;b<this.H.length;b++)this.H[b].HXa(a)};
var QVc=function(a){for(var b=0,c=0;c<a.buckets.length;c++)if(a.buckets[c].Md()){b=a.buckets[c].Md();break}return b};_.sN.prototype.log=function(a){this.ha.info(this.ka,a)};
_.RVc=function(a,b,c,d){nN.call(this);this.V=b;this.ka=c;this.W=d;this.H=new Map;this.ha=_.wk(a,21,1E3);this.ta=_.wk(a,1,1);this.ma=function(){return new _.GVc(_.wk(a,63,1E3),_.wk(a,64,3E5),_.wk(a,65,10))}};_.N(_.RVc,nN);
_.RVc.prototype.intercept=function(a){var b=a.tx.length,c=0<b&&_.ia(a.tx).response||null;if(c){c=_.mL(c);if(2===c.bp())return SVc(this,a);var d=c.Oj();if(3===d||31===d||13===d||9===d)return TVc(this,a,b);if(sRc(c))return b=HVc(this.V),c=this.V,HVc(c)<c.iI?(this.log("Backoff number "+b+" for a User Rate Limit error."),DVc(this,a),a=!0):(this.log("Done retrying User Rate Limit errors after "+(b+" backoffs.")),a=!1),a}return!1};
var SVc=function(a,b){var c=UVc(a,b),d=HVc(c);if(HVc(c)<c.iI)return a.log("Retry "+(d+1)+" for a failed request due to an offline error."),a.ka.af()?(d=c.H.Xa(),_.q.setTimeout(function(){return DVc(a,b)},d),_.VG(c.H)):(_.q.setTimeout(function(){return DVc(a,b)}),c.V++),!0;a.H.delete(b);return!1},UVc=function(a,b){a.H.has(b)||a.H.set(b,a.ma());return a.H.get(b)},TVc=function(a,b,c){var d=a.ta;if(c<=d)return a.log("Retry number "+(c+1)+" for a retryable error."),_.q.setTimeout(function(){return DVc(a,
b)},a.ha*Math.pow(2,c)),!0;a.log("Done retrying retriable requests after "+d+" retries.");return!1};_.RVc.prototype.O=function(a){this.H.delete(a)};_.RVc.prototype.log=function(a){this.W.info("drive.ds.network.queue.RetryInterceptor",a)};
var VVc=function(a){try{if("undefined"!==typeof FileReaderSync&&_.GQc()){var b=new FileReaderSync;return Promise.resolve(b.readAsDataURL(a))}var c=new _.Msb,d=LTc(c);c.H.readAsDataURL(a);return d.then()}catch(e){return Promise.reject(new _.Ksb(e,"reading data"))}},WVc=function(a){return VVc(a.size?a.slice(0,1):a).then(function(){return null},function(b){return b.name})};
var XVc=function(a,b,c,d,e,f,h){this.Ha=a;this.H=b;this.Ja=c;this.W=d;this.Qa=e;this.request=f;this.config=h;this.O=this.ta=this.progress=0;this.Fa=this.va=this.ha=null;this.se=_.ni();this.finished=!1;this.Ba=this.gu=0;this.ka=null;this.ma=!1;this.V=null;a=f.request.YC();a=_.GQc()&&a?_.C(a,1):null;this.fileSize="number"===typeof a?a:f.file.size;this.requestId=h.requestId;this.gM="progress_"+this.requestId;h.gM=this.gM;this.ma=!!f.metadata};
XVc.prototype.log=function(a){this.Ja.info("drive.ds.sync.request.ResumableUpload",a)};XVc.prototype.start=function(){var a=this,b=new NRc(this.request.request,this.request.metadata),c=YVc(this);this.Ha.then(function(d){return d.hh(b,c)}).then(function(d){a.ha=d.O;a.va=d.H;a.Fa=d.V;ZVc(a)},function(d){return void a.se.reject(d)});return _.oi(this.se.promise.then(function(d){$Vc(a,d);return d},function(d){d=_.yL(d);$Vc(a,d.$g);return _.ji(d)}),function(){cVc(a.H,[a.gM])})};
var YVc=function(a){var b=_.lg(a.config);bVc(a.H,a.gM,oTc(function(){return void a.H.notify([a.requestId],0)}));return b};XVc.prototype.cancel=function(){return this.finished?!1:(this.finished=!0,this.se.resolve(VRc(this.request)),!0)};
var ZVc=function(a){a.finished||(a.log("Uploading chunk "+a.Ba+" for "+a.ha+"."),aWc(a,4))},aWc=function(a,b){bWc(a).then(function(c){if(c){var d=cWc(a,c.blob.size);a.Ha.then(function(f){return f.hh(c,d)}).then(function(f){a.V=null;var h=c.blob.size;a.progress+=a.O;a.ta+=h;a.Ba++;f.dF()&&(a.va=f.dF());f.EO()&&(a.Fa=f.EO());a.progress<a.fileSize?ZVc(a):a.se.resolve(f)},function(f){if(d.ika)a.cancel();else{var h=_.mL(f);h.eya()||h.nia()||a.ma?dWc(a,b,h,!1):WVc(c.blob).then(function(k){k=k?_.AFa.get(k)||
25:38;_.vL(h,k);k=38===h.bp();var l=38!==h.bp()&&25!==h.bp();dWc(a,b,h,k,l)},function(){})}})}else{var e=_.yL(_.vL(_.fr(new _.Tb,"Could not read more of the file. Read "+a.progress+"/"+a.fileSize+" bytes."),5));a.se.reject(e)}})},dWc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=4-b;c.qpa(f);!e&&0<b?(a.gu++,d&&(a.W=Math.max(262144*Math.floor(a.W/262144/2),8388608)),setTimeout(function(){b--;a.log("Retrying chunk "+a.Ba+" with "+b+" attempts remaining "+((d?"and chunk size lowered to "+(a.W+" bytes "):
"")+"for ")+(a.ha+"."));aWc(a,b)},a.Qa*Math.pow(1.5,f))):a.se.reject(_.yL(c))},bWc=function(a,b){return a.ma&&a.V?_.ii(a.V):eWc(a,b).then(function(c){if(!c)return null;if(a.ma&&0<a.fileSize&&0===c.size)return bWc(a,Math.min(2*a.O,a.fileSize-a.progress));a.ka&&(c=new Blob([a.ka,c]),a.ka=null);var d=c.size%262144;a.finished=a.progress+a.O===a.fileSize;0<d&&!a.finished&&(a.ka=c.slice(-1*d),c=c.slice(0,-1*d));a.V=new ORc(a.ha,c,a.ta,a.ta+c.size-1,a.finished,a.request.request.getMimeType(),_.C(a.request.request,
12)||void 0);return a.V})},eWc=function(a,b){a.O=b?b:Math.min(a.fileSize-a.progress,a.W);b=a.progress;return a.request.$N?a.request.$N(b,a.O):_.ii(_.rRc(a.request.file,b,b+a.O))},cWc=function(a,b){var c=_.lg(a.config);c.ONa=!0;var d=a.progress/a.fileSize,e=b/a.fileSize;cVc(a.H,[a.gM]);bVc(a.H,a.gM,function(f){a.H.notify([a.requestId],Math.min(d+e*f,1))});return c},$Vc=function(a,b){b.XIa(3);b.qpa(a.gu);b.dF()||b.daa(a.va);b.EO()||b.S$(a.Fa)};
_.fWc=function(a,b,c,d,e){this.ha=a;this.V=b;this.H=c;this.W=d;this.O=e};_.fWc.prototype.create=function(a,b){return new XVc(this.ha,this.V,this.H,this.W,this.O,a,b)};
_.gWc=function(a){this.O=a;this.H={}};_.gWc.prototype.execute=function(a){for(var b=[],c=0;c<a.length;c++)if(a[c].fu.request instanceof _.PRc)b.push(hWc(this,a[c].fu));else{var d=_.fr(new _.Tb,"ResumableUploadExecutor only supports ResumableUploadRequests.");b.push(Promise.reject(_.yL(d)))}return b};_.gWc.prototype.cancel=function(a){return!!this.H[a]&&this.H[a].cancel()};_.gWc.prototype.OH=function(){return!_.ig(this.H)};
var hWc=function(a,b){var c=a.O.create(b.request,b.config),d=c.start(),e=b.config.requestId;a.H[e]=c;return _.oi(d,function(){delete a.H[e]})};
_.iWc=function(a,b){return new _.sN(b,a,[new MVc],[new _.qN],[],"immediate")};_.jWc=function(a,b,c,d,e,f,h){if(h){var k=new _.OVc(h.getState());d=new _.LVc(h)}else k=new _.FVc(c,d),d=new _.EVc(d);return new _.sN(f,a,[k,new _.pN(e,f),new NVc],[new _.qN],[d,new _.RVc(b,e,h?h.getState():c,f)],"connected")};
_.kWc=function(a,b,c,d,e,f,h,k,l){l=void 0===l?_.wk(b,10,50):l;if(h){var n=new _.OVc(h.getState());d=new _.LVc(h)}else n=new _.FVc(c,d),d=new _.EVc(d);return new _.sN(f,a,[n,new _.JVc(l,_.wk(b,12,10)),new _.rN(3*l),new _.pN(e,f)],[new _.qN],[d,new _.RVc(b,e,h?h.getState():c,f)],k)};_.lWc=function(a,b,c){b=_.wk(b,46,1);return new _.sN(c,a,[new _.rN(b)],[new _.qN],[],"resumable_upload")};
_.mWc=function(a,b,c,d,e,f,h,k){this.mG=a;this.ma=b;this.ha=c;this.H=d;this.V=e;this.W=f;this.ka=h;this.O=k};_.mWc.prototype.hh=function(a,b){return nWc(this,a,b).then(null,function(c){c=_.yL(c);var d=c.$g;WRc(a)||_.hr(d);return _.ji(c)})};
var nWc=function(a,b,c){c=void 0===c?{}:c;var d=a.mG.validate(b);if(d)return _.ji(_.yL(d));var e=a.ma.translate(b);d=a.ha.execute(a,e,c)||void 0;return _.ii(d).then(function(){if(e instanceof _.Tb)return _.ji(_.yL(e));if(Array.isArray(e)){var f=e.map(function(h){return oWc(a,b,h,c)});return _.mi(f)}return oWc(a,b,e,c)},function(f){return _.ji(_.yL(f))})},oWc=function(a,b,c,d){var e=pWc(a,c);if(!e)return b=_.vL(_.fr(new _.Tb,"Failed to choose a queue for server request."),18),_.ji(_.yL(b));if(e===
a.H[7]||e===a.H[8])d.zL=!0;d=e.add({request:c,config:d});(_.zM(b)||_.zM(c))&&_.oi(d,function(){var f=a.V;f.O()||(f.H&&(f.H.resolve(),f.H=null),f.V())});b=a.W.apply(c,d);d.then(function(f){a.ka.apply(c,f)},function(){});return b};_.mWc.prototype.cancel=function(a){return _.eg(this.H,function(b){return b.cancel(a)})};
var pWc=function(a,b){var c=!1;b instanceof _.qp?c=!!_.H(b,7):b instanceof _.eL&&(c=(c=b.qd())&&!!_.H(c,46));return(b instanceof _.SRc||"undefined"!=typeof _.tN&&b instanceof _.tN&&b.V())&&a.H[1]?a.H[1]:b instanceof _.PRc&&a.H[5]?a.H[5]:c&&cSc(b,a.O)&&a.H[7]?a.H[7]:cSc(b,a.O)&&a.H[8]?a.H[8]:c&&b instanceof _.qp&&a.H[6]?a.H[6]:(c||sVc.includes(b.constructor))&&a.H[3]?a.H[3]:XRc.includes(b.constructor)&&a.H[4]?a.H[4]:a.H[2]||a.H[1]};
var qWc=function(a){this.H=a};qWc.prototype.build=function(a,b){var c="====="+_.bh()+"=====",d=a[0].Dm,e=b.every(function(l){return l.zL});if(e){var f=d;var h={"content-type":"text/plain; charset=UTF-8"};d="POST";var k=iVc(this.H,a[0].Dm);_.Jj(k,"$ct",'multipart/mixed; boundary="'+c+'"')}else f=rWc[d],h=sWc[d]||{},h["content-type"]=_.vx('multipart/mixed; boundary="%s"',c),d=tWc[d],k=new _.Aj("");a=uWc(this,a,b,c,e);return{Dm:f,body:a,headers:h,method:d,uri:k}};
var uWc=function(a,b,c,d,e){for(var f=BRc(vWc[b[0].Dm]||{}),h="",k=0;k<b.length;k++){e&&gVc(a.H,b[k],c[k]);var l=b[k],n=a.H,p=l,t=c[k];p.uri=hVc(n,p.Dm,p.uri);switch(p.Dm){case 0:case 5:fVc(n,p,t);eVc(n,p,t);break;case 2:gVc(n,p,t);fVc(n,p,t);var u=p,z=_.C(n.H.Sf(),57);u.headers.host=_.Oj(z).H;u.headers.origin=_.q.location.origin?_.q.location.origin:_.q.location.protocol+"//"+_.q.location.host;eVc(n,p,t);break;case 12:case 10:case 13:break;case 8:case 7:throw Error("Qe`"+p.Dm);default:throw Error("Pe`"+
p.Dm);}n=l;p=n.uri.clone();_.Bj(p,"");_.Cj(p,"");_.Dj(p,null);l=f+"\r\n"+(n.method+" "+p+" HTTP/1.1\r\n")+BRc(l.headers)+"\r\n"+(l.body?l.body+"\r\n":"");h+="--"+d+"\r\n";h+=l}return h+("--"+d+"--\r\n")},wWc={},rWc=(wWc[0]=1,wWc[2]=3,wWc),xWc={},tWc=(xWc[0]="POST",xWc[2]="PUT",xWc[12]="POST",xWc),yWc={},zWc={},sWc=(zWc[2]=(yWc["x-goog-upload-protocol"]="batch",yWc),zWc),AWc={},BWc={},CWc={},DWc={},vWc=(DWc[0]=(AWc["content-type"]="application/http",AWc["content-transfer-encoding"]="binary",AWc),DWc[12]=
(BWc["content-type"]="application/http",BWc["content-transfer-encoding"]="binary",BWc),DWc[2]=(CWc["content-type"]="application/http",CWc),DWc);
var EWc=/^HTTP\/1\.1 (\d+) ([\w ]+)/,FWc=/^multipart\/mixed; boundary="?([^"]+)"?$/;
var GWc=function(a,b,c){this.H=a;this.O=b;this.V=c;this.Ti=new Map};GWc.prototype.add=function(a,b){var c="DEFAULT";b.zL&&(c=iVc(this.H,a.Dm).toString());this.Ti.has(c)||this.Ti.set(c,[]);c=this.Ti.get(c);if(1<=c.length&&!b.zL&&!rWc[a.Dm])return a=_.fr(new _.Tb,"Unsupported batch API: "+a.Dm),_.ji(_.yL(a));var d=_.ni();c.push({request:a,config:b,se:d});return d.promise};
GWc.prototype.send=function(){var a=this;this.Ti.forEach(function(b,c){try{HWc(a,b)}catch(f){var d=_.gr(_.fr(new _.Tb,"Error executing XHR: "+f.message),f.stack),e=_.yL(d);b.forEach(function(h){h.se.reject(e)});a.Ti.delete(c)}})};
var HWc=function(a,b){if(1===b.length){var c=b[0];if(!c.config.Kya&&!c.config.zL){var d=!1;if(rWc[c.request.Dm]){var e={Dm:c.request.Dm,headers:{},method:c.request.method,uri:c.request.uri.clone()};a.H.qc(e,c.config);2E3<e.uri.toString().length&&(d=!0)}if(!d){b=c.se;a.O.ih(c.request,c.config).then(b.resolve,b.reject);return}}}IWc(a,b)},IWc=function(a,b){var c=[],d=[];b.forEach(function(e){c.push(e.request);d.push(e.config)});a.O.ih(a.V.build(c,d),{Kya:!0,zL:d.every(function(e){return e.zL})}).then(function(e){e.headers=
_.dRc(e.headers);var f=FWc.exec(e.headers["content-type"]);var h=f&&f[1]?"--"+f[1]:null;if(!h)throw new _.Ub("Could not extract batch boundary.",_.vL(_.gr(new _.Tb,JSON.stringify(e)),14));f=h+"\r\n";h=e.text.split(h+"--");if(2===h.length&&_.vd(_.wha(h[0]),f)&&_.ld(h[1]))h=_.wha(h[0]).substring(f.length);else throw new _.Ub("Could not parse batch response; did not begin and end with boundary.",_.vL(_.gr(new _.Tb,JSON.stringify(e)),15));f=h.split(f);h=c.length===f.length;for(var k=[],l=0;l<f.length;l++){var n=
h?c[l]:void 0,p=k,t=p.push;var u=void 0;var z,B=e.headers,F=f[l],I=n&&n.uri,M=F.split("\r\n\r\n");if(2>M.length)u=new _.Ub("Individual batch response contained too few parts.",_.vL(_.gr(new _.Tb,F),17));else{var U=M[1].split("\r\n");if(z=EWc.exec(U[0])){n=_.mb(z[1]);z=z[2];U.shift();B=_.lg(B);for(var R=Object,ca=R.assign,va={},ua=0;ua<U.length;ua++){var za=_.Fha(U[ua],":",1);za&&2===za.length&&(va[(0,_.Zf)(za[0])]=(0,_.Zf)(za[1]))}U=_.dRc(va);ca.call(R,B,U);try{u=_.ld(_.ah(M[2]))?void 0:JSON.parse(M[2])}catch(ea){}u=
(n=_.jRc(n,z,B,F,u,void 0,void 0,I&&I.toString()))?_.yL(n):{headers:B,text:F,json:u||void 0}}else u=new _.Ub("Could not extract HTTP status code and text.",_.vL(_.gr(new _.Tb,F),16))}t.call(p,u)}return k}).then(null,function(e){e=_.yL(e);return _.lOc(e,b.length)}).then(function(e){for(var f=0;f<b.length;f++){var h=b[f].se,k=e[f];k instanceof _.Tb||k instanceof _.Ub?h.reject(_.yL(k)):h.resolve(k)}})};
var JWc=function(){_.wj.apply(this,arguments)};_.N(JWc,_.wj);JWc.prototype.getAllResponseHeaders=function(){return _.wha(_.wj.prototype.getAllResponseHeaders.call(this))};
var KWc=function(a,b){this.W=a;this.V=b;this.O={};this.H={}};_.g=KWc.prototype;_.g.ih=function(a,b){try{this.W.qc(a,b);var c=new JWc;c.AC=!0;var d=b.requestId||"",e=_.ni();c.listen("complete",this.z6a.bind(this,c,e,d,b.Kya,4===a.Dm));d&&b.gM&&!b.zL&&(this.O[d]=c,this.H[d]=b,c.Ab=!0,c.listen("uploadprogress",(0,_.v)(this.Tub,this,b)),b.ONa||c.listen("downloadprogress",(0,_.v)(this.Lqb,this,b)));c.send(a.uri,a.method,a.body,a.headers);return e.promise}catch(f){return _.ji(_.yL(f))}};
_.g.cancel=function(a){var b=this.O[a];a=this.H[a];return b&&b.isActive()?(a.ika=!0,b.abort(),!0):!1};_.g.z6a=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;c&&(delete this.O[c],delete this.H[c]);c={headers:_.bla(a),text:a.Wk()};if(!d)try{c.json=_.zj(a)}catch(f){}d=_.jRc(a.Bb(),_.Zka(a),c.headers,c.text,c.json,a.O,_.cla(a),String(a.ta),e);a.dispose();d?b.reject(_.yL(d)):b.resolve(c)};_.g.Tub=function(a,b){b.lengthComputable&&this.V.notify([a.gM],a.ONa?b.loaded/b.total:b.loaded/b.total/2)};
_.g.Lqb=function(a,b){b.lengthComputable&&this.V.notify([a.gM],b.loaded/b.total/2+.5)};
_.LWc=function(a,b,c,d,e,f,h){this.O=a;this.va=b;this.Ba=c;this.ta=d;this.ma=e;this.W=f;this.H=h;this.V=[];this.ka=new qWc(this.O);this.ha=new KWc(this.O,this.va)};_.g=_.LWc.prototype;
_.g.execute=function(a){for(var b=this,c=[],d=[],e=0;e<a.length;e++){var f=a[e].fu;this.V.push(f);c.push(this.Ba.LC(f,a[e].tx));d.push(tVc(f.request)?_.xVc(this.ma,f.request):void 0)}if(this.H&&this.H.O){var h=Promise.reject(_.yL(_.jRc(0,"",{},"",void 0,-99)));return a.map(function(){return h})}var k=new GWc(this.O,this.ha,this.ka);e=[];for(f=0;f<a.length;f++){var l=c[f].then(function(p,t){var u=k.add(t,p);u.then(b.rEb.bind(b,t.Dm,p.Uv),function(){});return u}.bind(this,a[f].fu.config));e.push(l)}Promise.allSettled(c).then(function(){k.send()});
c=[];for(f=0;f<a.length;f++){l=a[f].fu;var n=e[f].then(this.hjb.bind(this,l.request,d[f],a[f].tx)).then(null,function(p){return Promise.reject(_.yL(p))});n.then(this.YIa.bind(this,l),this.YIa.bind(this,l));c.push(n)}return c};_.g.hjb=function(a,b,c,d){a=this.ta.LC(a,d,c);b&&_.yVc(b,a.Cd?a.Cd():[]);return a};_.g.rEb=function(a,b){a=!b&&_.na(MWc,a);if(this.H){b=this.H;var c=a?1:2;if(!b.state.isConnected()||a)c=rVc(b,c),a&&c&&b.reset()}else this.W&&a&&this.W.ta()};_.g.cancel=function(a){return this.ha.cancel(a)};
_.g.OH=function(){return this.V.some(function(a){return _.zM(a.request)})};_.g.YIa=function(a){_.sa(this.V,a)};var MWc=[0,2,4,7,8];
_.NWc=function(){};_.NWc.prototype.execute=function(){return null};
var OWc;OWc=function(a){this.H=a};_.uN=function(a,b){if(!_.Ca(b))throw new _.Ub("Expected an object, but got a "+_.efa(b)+".",_.wL(11,void 0,8));var c=b.kind;if(!c)throw new _.Ub("Expected 'kind' parameter in response: "+JSON.stringify(b),_.wL(11,void 0,21));if(!a.includes(c))throw new _.Ub("Expected "+a.join(" or ")+" but got a "+c+".",_.wL(11,void 0,9));};_.vN=function(a){return null!=a?(new Date(a)).getTime():void 0};
_.PWc=function(a){var b=null!=a.canDelete?a.canDelete:a.canDeleteTeamDrive;var c=_.kSc(new _.xl,a.canAddChildren);c=_.A(c,18,a.canChangeTeamDriveBackground);c=_.A(c,2,a.canComment);c=_.A(c,3,a.canCopy);b=_.tSc(_.oSc(_.uSc(_.vSc(_.wSc(_.sSc(_.rSc(_.nSc(_.mSc(_.lSc(c,b),a.canDownload),a.canEdit),a.canManageMembers),a.canManageVisitors),a.canMoveItemIntoTeamDrive),a.canMoveTeamDriveItem),a.canReadTeamDrive),a.canRemoveChildren),a.canRename);b=_.A(b,13,a.canRenameTeamDrive);b=_.xSc(_.qSc(_.pSc(b,a.canShare),
a.canTrash),a.canUntrash);b=_.A(b,27,a.canModifyContentRestriction);b=_.A(b,26,a.canShareOutsideDomain);b=_.ASc(_.zSc(_.ySc(_.A(b,30,a.canMoveItemWithinTeamDrive),a.canMoveItemOutOfTeamDrive),a.canMoveChildrenWithinTeamDrive),a.canMoveChildrenOutOfTeamDrive);b=_.A(b,34,a.canDeleteChildren);b=_.A(b,35,a.canTrashChildren);b=_.A(b,36,a.canRequestApproval);b=_.A(b,37,a.canReadCategoryMetadata);b=_.A(b,38,a.canEditCategoryMetadata);b=_.A(b,39,a.canChangeCategoryReferences);b=_.A(b,49,a.canSetMissingRequiredFields);
b=_.A(b,40,a.canAddMyDriveParent);b=_.A(b,41,a.canRemoveMyDriveParent);b=_.CSc(_.BSc(b,a.canShareChildFiles),a.canShareChildFolders);b=_.A(b,44,a.canRead);b=_.FSc(_.ESc(_.DSc(_.A(b,45,a.canMoveItemWithinDrive),a.canMoveItemOutOfDrive),a.canMoveChildrenWithinDrive),a.canAddFolderFromAnotherDrive);b=_.A(b,50,a.canChangeSecurityUpdateEnabled);b=_.A(b,51,a.canRemoveSecureLinkUpdateForAllFiles);b=_.A(b,52,a.canCreateDecryptedCopy);b=_.A(b,53,a.canCreateEncryptedCopy);return _.A(b,54,void 0===a.canAddEncryptedChildren?
a.canAddChildren:a.canAddEncryptedChildren)};_.wN=function(a,b){_.uN(["drive#user"],b);var c=_.iSc(_.jSc(_.gSc(1).Ob(b.permissionId),b.id).$c(b.displayName),b.emailAddress);b.picture&&c.ym(b.picture.url);_.dL(a.H)&&_.iSc(c,b.emailAddressFromAccount||b.emailAddress);_.hSc(c,a.uf(b.id));_.A(c,9,b.domain);return c};OWc.prototype.uf=function(a){if(a)return _.PM(_.ZK(this.H))==a};
var QWc,WWc,kXc,TWc,aXc,$Wc,bXc,dXc,fXc,SWc,hXc,gXc,iXc,jXc,lXc,mXc,cXc;QWc=function(a,b){this.H=a;this.O=b};
_.UWc=function(a,b,c){var d=new _.mN,e=new _.IA,f=e.Bv;_.uN(["drive#fileList","drive#file"],b);var h=[];if("drive#file"==b.kind)(a=_.RWc(a,b))&&h.push(a);else if("drive#fileList"==b.kind)for(var k=b.items||[],l=0;l<k.length;l++){var n=_.RWc(a,k[l]);h.push(n)}e=f.call(e,h);e=_.A(e,8,b.incompleteSearch);if("drive#fileList"==b.kind){_.uN(["drive#fileList"],b);if(h=b.spellResponse){f=[];var p=h.spellCorrections;for(h=0;h<p.length;h++){k=p[h].spellFragments;a=[];for(l=0;l<k.length;l++){n=k[l];var t=(new _.Lob).Ac(SWc[n.status]);
t=_.A(t,1,n.original);n=_.A(t,3,n.correction);a.push(n)}k=new _.Pob;a=_.kb(k,1,a);f.push(a)}p=new _.Rob;_.kb(p,1,f)}if((f=b.suggestedNlpQueries)&&0<f.length){var u=new _.Nob;_.A(u,1,f||[])}p||u?(f=new _.Sob,p&&_.y(f,1,p),u&&_.y(f,2,u),u=f):u=null;_.y(e,7,u);_.gTc(e,TWc(b))}d=_.zVc(d,e);c=_.fRc(c);c=_.A(d,2,c);b.nextPageToken&&_.A(c,3,b.nextPageToken);return c};
WWc=function(a,b,c,d,e){_.uN(["drive#adminFile","drive#file","drive#revision"],b);var f=_.KTc(new _.yM,c);"drive#adminFile"==b.kind?(_.uN(["drive#adminFile"],b),c=(new _.Dl).Ob(b.id),b.parentId&&_.IM(c,[b.parentId]),_.VSc(c,b.teamDriveId),f.setItem(c),_.KTc(f,c.getId())):"drive#file"==b.kind?(b=_.RWc(a,b),f.setItem(b),c||_.KTc(f,b.getId())):"drive#revision"==b.kind&&(b=_.VWc(a,b),_.y(f,4,b));f.daa(_.eRc(d));f.S$(_.fRc(d));(d=(d=d&&_.dRc(d))&&d["x-server-object-version"])&&e&&(e=(new _.UM).Ob(d),_.y(f,
4,e));f.Ac(1);return f};_.XWc=function(a,b){return _.KTc(new _.yM,a).Ac(1).daa(_.eRc(b)).S$(_.fRc(b))};_.ZWc=function(a,b,c,d){d||_.uN(["drive#permissionList"],b);var e=[];b=b[c]||[];for(c=0;c<b.length;c++){var f=_.YWc(a,b[c],d);f&&e.push(f)}return e};
_.YWc=function(a,b,c){c||_.uN(["drive#permission"],b);c=_.hSc(_.jSc(_.gSc($Wc[b.type]).Ob(b.id),b.userId),a.H.uf(b.userId));c=_.A(c,4,b.withLink);c=_.iSc(c.$c(b.name).ym(b.photoLink),b.emailAddress);c=_.A(c,9,b.domain);c=_.A(c,10,b.deleted);c=_.A(c,12,b.audienceId);c=_.A(c,13,b.customerId);c.getId()||c.Ob(b.type+"|"+(b.domain||"")+"|"+b.withLink);_.dL(a.O)&&c.$c(b.nameIfNotUser);a=aXc[b.role];2==a&&b.additionalRoles&&"commenter"==b.additionalRoles[0]?a=4:2==a&&"published"==b.view&&(a=6);_.A(c,6,a);
return c};
_.RWc=function(a,b){_.uN(["drive#file"],b);var c=b.title,d=(new _.Dl).Ob(b.id),e=[];if(b&&b.parents)for(var f=b.parents,h=0;h<f.length;h++)e.push(f[h].id);c=_.TSc(_.PSc(_.PK(_.IM(d,e).setTitle(c),b.mimeType),b.alternateLink),b.hasThumbnail);null!=b.thumbnailVersion&&_.A(c,90,Number(b.thumbnailVersion));_.A(c,21,b.iconLink);c.wl(b.description);_.QSc(c,b.explicitlyTrashed);_.A(c,22,b.shared);null!=b.quotaBytesUsed&&_.A(c,28,Number(b.quotaBytesUsed));null!=b.fileSize&&_.A(c,14,Number(b.fileSize));_.A(c,
30,b.copyable);b.labels&&(d=b.labels,c.iu(d.starred),_.A(c,6,d.hidden),c.Sm(d.trashed),_.MSc(c,d.restricted),_.A(c,9,d.viewed));_.A(c,10,_.vN(b.createdDate));_.A(c,69,_.vN(b.serverCreatedDate));_.nOc(c,_.vN(b.modifiedDate));_.A(c,12,_.vN(b.modifiedByMeDate));_.A(c,13,_.vN(b.lastViewedByMeDate));_.A(c,23,_.vN(b.sharedWithMeDate));_.A(c,62,_.vN(b.subscribedDate));_.A(c,70,_.vN(b.recency));b.recencyReason&&_.A(c,71,bXc[b.recencyReason]||0);d=[];if(b&&b.owners)for(e=b.owners,f=0;f<e.length;f++)(h=_.wN(a.H,
e[f]))&&d.push(h);_.NSc(c,d);b.lastModifyingUser&&(d=_.wN(a.H,b.lastModifyingUser),_.OSc(c,d));b.userPermission&&_.oOc(c,aXc[b.userPermission.role]);b.imageMediaMetadata&&(e=b.imageMediaMetadata,d=(new _.FM).Ug(e.width).Lg(e.height),d=_.A(d,4,e.rotation),e.date&&(e=e.date,f=new _.mQc,f.setMilliseconds(0),cXc.parse(e,f),_.A(d,1,f.getTime())),_.y(c,27,d));null!=b.folderColor&&_.SSc(c,Number(b.folderColor));_.RSc(c,b.subscribed);_.A(c,45,b.fileExtension);_.A(c,50,b.folderFeatures||[]);_.A(c,36,b.flaggedForAbuse);
_.A(c,53,b.gplusMedia);_.A(c,46,b.primarySyncParentId||void 0);_.A(c,35,b.hasChildFolders);b.source&&(_.A(c,42,b.source.client_service_id),_.A(c,43,b.source.value));b.sharingUser&&(d=_.wN(a.H,b.sharingUser),_.y(c,47,d));b.sources?_.A(c,56,b.sources||[]):b.gplusMedia&&_.A(c,56,["GOOGLE_PHOTOS"]);if(b.spaces){d=b.spaces;e=[];for(f=0;f<d.length;f++)h=d[f],_.jOc[h]&&(h=_.Me(new _.Le,_.jOc[h]),e.push(h));c.fC(e)}_.A(c,63,b.ownedByMe);_.A(c,29,b.shareable);b.sourceAppId&&_.A(c,61,b.sourceAppId);_.A(c,74,
b.changed);null!=b.recursiveFileSize&&_.A(c,77,Number(b.recursiveFileSize));null!=b.recursiveFileCount&&_.A(c,79,Number(b.recursiveFileCount));if(b.actionItems){d=b.actionItems;e=[];for(f=0;f<d.length;f++)if(h=d[f],h.id&&h.type){var k=(new _.kna).Ob(h.id);h=_.A(k,2,dXc[h.type]);e.push(h)}_.kb(c,83,e)}b.capabilities&&_.JM(c,_.PWc(b.capabilities));b.permissionsSummary&&_.WSc(c,_.eXc(a,b.permissionsSummary));b.headRevisionId&&_.A(c,78,b.headRevisionId);b.templateData&&(d=b.templateData,e=(new _.GM).wl(d.description),
e=_.A(e,3,fXc[d.galleryState]),d=_.A(e,2,d.category||[]),_.y(c,86,d));_.VSc(c,b.teamDriveId);_.A(c,76,b.hasAugmentedPermissions);_.A(c,137,b.ancestorHasAugmentedPermissions);b.creator&&(d=_.wN(a.H,b.creator),_.y(c,91,d));_.XSc(c,b.primaryDomainName);_.YSc(c,b.organizationDisplayName);_.A(c,94,b.passivelySubscribed);b.trashingUser&&(d=_.wN(a.H,b.trashingUser),_.y(c,95,d));c.iaa(_.vN(b.trashedDate));b.version&&_.A(c,75,Number(b.version));_.A(c,98,b.hasVisitorPermissions);_.A(c,102,b.hasAppsScriptAddOn);
(d=b.pairedDocType)&&_.A(c,101,gXc[d]);b.videoMediaMetadata&&(d=b.videoMediaMetadata,e=(new _.HM).Ug(d.width).Lg(d.height),d.durationMillis&&_.A(e,3,Number(d.durationMillis)),_.y(c,103,e));_.A(c,104,b.detectors||[]);_.A(c,108,b.containsUnsubscribedChildren);if(b.contentRestrictions){d=[];e=_.m(b.contentRestrictions);for(f=e.next();!f.done;f=e.next())f=f.value,f=_.HSc(_.GSc(new _.zl,f.readOnly),f.reason),d.push(f);_.kb(c,125,d)}if(d=b.publishingInfo)_.A(c,118,d.published),_.A(c,119,d.publishedUrl);
_.A(c,120,b.workspaceIds||[]);b.approvalMetadata&&b.approvalMetadata.approvalVersion&&_.A(c,126,b.approvalMetadata.approvalVersion);if(b.approvalMetadata&&b.approvalMetadata.approvalSummaries){d=[];e=_.m(b.approvalMetadata.approvalSummaries);for(f=e.next();!f.done;f=e.next())f=f.value,f=(new _.wl).Ob(f.approvalId).Ac(hXc[f.status]),d.push(f);_.kb(c,127,d)}b.shortcutDetails&&(d=b.shortcutDetails,e=new _.tna,e=_.A(e,1,d.targetId),e=_.A(e,3,d.targetMimeType),e=_.A(e,6,d.canRequestAccessToTarget),d.targetLookupStatus&&
_.A(e,4,iXc[d.targetLookupStatus]||0),d.targetFile&&(d=_.RWc(a,d.targetFile),_.y(e,5,d)),_.y(c,132,e));b.clientEncryptionDetails&&(d=b.clientEncryptionDetails,e=new _.DM,e=_.A(e,1,jXc[d.encryptionState]),d.decryptionMetadata&&(d=kXc(d.decryptionMetadata),_.y(e,2,d)),_.y(c,138,e));b.linkShareMetadata&&(d=b.linkShareMetadata,e=new _.lna,e=_.A(e,2,d.securityUpdateEligible),e=_.A(e,3,d.securityUpdateEnabled),d=_.A(e,5,d.securityUpdateExplicitlySet),_.y(c,139,d));_.A(c,140,b.resourceKey);_.A(c,135,b.authorizedAppIds||
[]);_.A(c,136,b.customerId);_.ARc(c);_.dL(a.O)&&_.USc(c,5);return c};_.VWc=function(a,b){_.uN(["drive#revision"],b);var c=(new _.UM).Ob(b.id);c=_.A(c,2,b.mimeType);c=_.A(c,3,_.vN(b.modifiedDate));c=_.A(c,4,b.pinned);c=_.A(c,5,b.downloadUrl);c=_.A(c,7,b.originalFilename);null!=b.fileSize&&_.A(c,8,Number(b.fileSize));b.lastModifyingUser&&(a=_.wN(a.H,b.lastModifyingUser),_.y(c,9,a));b.decryptionMetadata&&(b=kXc(b.decryptionMetadata),_.y(c,10,b));return c};
_.eXc=function(a,b){a=_.KSc(_.JSc(_.ISc(new _.ona,b.entryCount),_.ZWc(a,b,"visibility",!0)),_.ZWc(a,b,"selectPermissions",!0));a=_.A(a,4,b.memberCount);a=_.A(a,5,b.userEntryCount);return _.A(a,6,b.groupEntryCount)};kXc=function(a){var b=a.wrappedKey;var c=new _.EM;b=b?_.qTc(b):void 0;c=_.A(c,1,b);c=_.A(c,2,Number(a.kaclsId));c=_.A(c,5,a.kaclsName);c=_.A(c,3,lXc[a.aes256GcmChunkSize]);c=_.A(c,6,mXc[a.keyFormat]);return _.A(c,4,a.jwt)};
TWc=function(a){_.uN(["drive#fileList"],a);var b=[];(a.items||[]).forEach(function(c){var d=c.id;!d||"1"!=c.searchResultSource&&"3"!=c.searchResultSource||b.push(d)});return b};aXc={fileOrganizer:7,organizer:5,owner:1,reader:2,writer:3};$Wc={anyone:4,audience:5,domain:3,group:2,user:1};bXc={createdByMe:1,modifiedByMe:2,modified:3,viewedByMe:4};dXc={MENTION:0,SUGGESTION:1,ASSIGNMENT:2};fXc={UNAVAILABLE:1,AVAILABLE:2,PENDING:3};SWc={CORRECT:1,INCORRECT:2,SUSPICIOUS:3};
hXc={IN_PROGRESS:1,APPROVED:2,CANCELLED:3};gXc={docs:1,sheets:2,slides:3};iXc={ok:1,notFound:2,permissionDenied:3};jXc={unencrypted:1,encrypted:2};lXc={unset:0,"default":1,small:2,size16kb:3};mXc={unsetKeyFormat:0,tinkKeyset:1,tinkAesGcmKey:2};cXc=new _.dVa("yyyy:MM:dd HH:mm:ss");
var qXc;_.nXc=function(a){this.V=new OWc(a);this.zD=new QWc(this.V,a)};_.nXc.prototype.LC=function(a,b,c){c=void 0===c?[]:c;try{return oXc(this,a,b,c)}catch(d){_.zL(d)}};
var oXc=function(a,b,c,d){var e=a.ha(b,c);if(e)return e;if(b instanceof _.GL)return _.pXc(a,b,c);if(b instanceof _.PL)return qXc(0,c,d);if(b instanceof _.qp){if(!c.json)throw _.xN();return _.UWc(a.zD,c.json,c.headers)}if(b instanceof _.vM)return _.pXc(a,b,c);if("undefined"!=typeof _.KRc&&b instanceof _.KRc){if(!c.json)throw _.xN();a=c.json;return new _.XTc(a.fileId,a.jwt,Number(a.currentKaclsId),a.currentKaclsName,a.customerId)}if("undefined"!=typeof _.rXc&&b instanceof _.rXc){if(!c.json)throw _.xN();
return _.VWc(a.zD,c.json)}if(b instanceof _.iM)return qXc(b.qd(),c,d);if(b instanceof ORc){if(b.V){if(!c.json)throw _.xN();a=WWc(a.zD,c.json,null,c.headers,!!b.revisionId)}else a=_.XWc(null,c.headers);return a}if(b instanceof NRc){a=_.dRc(c.headers);b=a.location;if(!b)throw a=_.vL(new _.Tb,10),new _.Ub("No upload session URI included.",a);return new YTc(b,_.eRc(a),_.fRc(a))}if(b instanceof _.SRc)return new ZTc;throw new _.Ub("FromXhrConverter: Unsupported request type.",new _.Tb);};
_.nXc.prototype.ha=function(){return null};qXc=function(a,b,c){return"base64"===b.headers["x-goog-safety-encoding"]?new $Tc(_.taa(b.text),c.length):new $Tc(new Uint8Array(_.qla(b.text)),c.length)};_.pXc=function(a,b,c){if(!c.json){if(b instanceof _.pL)return _.XWc(_.sXc(b));throw _.xN();}var d=!1;b instanceof _.vM&&(d=!!_.C(b.request,12));return WWc(a.zD,c.json,_.sXc(b),c.headers,d)};_.xN=function(){var a=_.vL(new _.Tb,11);return new _.Ub("FromXhrConverter: JSON required, but none found",a)};
_.sXc=function(a){return a.getId?a.getId():a.Gc?a.Gc():null};
var wXc,xXc,zXc,tXc,AXc,uXc;
wXc=function(a,b){var c={};_.ld(_.ah(a.getTitle()))||(_.C(a,12)?c.originalFilename=a.getTitle():c.title=a.getTitle());if(a.getMimeType()&&(c.mimeType=a.getMimeType(),a.Gc()&&_.Yda(a.getMimeType())&&b)){var d=b.V(),e=b.O(),f={encryptionState:"encrypted"},h={};f.decryptionMetadata=(h.wrappedKey=_.Tj(b.ka()),h.kaclsId=b.ma(),h.aes256GcmChunkSize=tXc[d?d.O():0],h.keyFormat=uXc[e?e.O():0],h);c.clientEncryptionDetails=f}_.vXc(c,_.Kd(a,3));(b=a.Gc())&&(c.id=b);_.C(a,16)&&(c.embeddingParent=_.C(a,16));a.f_()&&
(c.shortcutDetails={},c.shortcutDetails.targetId=a.f_());"number"===typeof _.C(a,26)&&(c.modifiedDate=_.fTc(_.dUc(_.C(a,26)||0)));return c};_.vXc=function(a,b){if(b.length){a.parents=[];for(var c=0;c<b.length;c++){var d={};d.id=b[c];a.parents.push(d)}}};xXc={};_.yXc=(xXc[1]="active",xXc[2]="archived",xXc);zXc={};tXc=(zXc[0]="unset",zXc[1]="default",zXc[2]="small",zXc[3]="size16kb",zXc);AXc={};uXc=(AXc[0]="unsetKeyFormat",AXc[1]="tinkKeyset",AXc[2]="tinkAesGcmKey",AXc);
var dSc=function(a,b){a.length&&(a=_.Xz(a),a.length&&(b["X-Goog-Drive-Resource-Keys"]=a))};
var DXc=function(a,b,c){return(a.$N?a.$N(0,a.file.size):Promise.resolve(a.file)).then(function(d){return VVc(d)}).then(function(d){return BXc(a,b,d,c)},CXc)},BXc=function(a,b,c,d){var e=!!_.C(a.request,12),f="files";e&&(f+="/"+_.C(a.request,12));f=new _.Aj(f);_.Jj(f,"uploadType","multipart");_.Jj(f,"supportsTeamDrives",!0);_.Jj(f,"pinned",!!_.E(a.request,13,!1));null!=_.H(a.request,8)&&_.Jj(f,"convert",_.H(a.request,8));_.Jj(f,"fields",_.vRc({fields:_.XM(b).filter(function(p){return 194!=p}),qq:!1}));
CRc(f,a.request.re());var h=wXc(a.request,a.metadata),k=_.bh();b={};b=(b["content-type"]=_.vx('multipart/related; boundary="%s"',k),b);var l=c.indexOf(",");c=0<=l?c.substring(l+1):"";h=JSON.stringify(h);l={};l=(l["content-type"]="application/json; charset=UTF-8",l);var n={};n=(n["content-transfer-encoding"]="base64",n);a.request.getMimeType()&&(n["content-type"]=a.request.getMimeType());_.BM(d,_.Ok(a.request,_.Xl,28),[],null,b);a="--"+k;a=a+"\r\n"+BRc(l)+"\r\n"+h+"\r\n"+a+"\r\n"+BRc(n)+"\r\n"+c+"\r\n"+
a+"--";return{Dm:2,headers:b,method:e?"PUT":"POST",uri:f,body:a}},CXc=function(a){if(a instanceof _.Ksb){var b=new _.Tb;_.fr(b,"fs.Error: "+a.message);a=(a=a.name)?_.AFa.get(a)||25:38;_.vL(b,a);a=_.yL(b)}return Promise.reject(a)};
_.yN=function(a,b,c,d){this.H=a;this.Hg=b;this.O=c;this.zd=d};_.yN.prototype.LC=function(a,b){try{return a.request instanceof _.vM?DXc(a.request,this.Hg,this.H):Promise.resolve(this.V(a.request,a.config,b))}catch(c){return c instanceof _.Ub?a=c.$g:(a=new _.Tb,_.fr(a,"Error converting XHR: "+c.message),_.gr(a,c.stack),_.vL(a,4)),Promise.reject(a)}};
_.yN.prototype.V=function(a,b,c){var d=0,e,f={},h="GET",k={},l=!1,n=!1;if(a instanceof _.GL){h=(e=!!_.C(a,12))?"PUT":"POST";var p="files";e&&(p+="/"+_.C(a,12),k.pinned=!!_.E(a,13,!1));null!=_.H(a,8)&&(k.convert=_.H(a,8));k.fields=_.vRc({fields:this.zg(c),qq:_.YK(_.ZK(this.H)),NE:_.dL(this.H)});e=wXc(a);f["content-type"]="application/json";var t=a.re();n=!0;_.WM(k);_.EXc(this.H,k);_.BM(this.H,_.Ok(a,_.Xl,28),_.Kd(a,3).concat([_.C(a,16),a.f_(),a.Gc()]),this.O,f)}else if(a instanceof _.PL||a instanceof
_.iM)a instanceof _.iM?(l=a.qd(),_.sk(a,2)&&(p="bytes="+_.C(a,2)+"-",_.sk(a,3)&&(p+=_.C(a,3)),f.range=p)):l=a,p="files/"+l.getId(),_.C(l,2)&&(k.revisionId=_.C(l,2)),k.alt="media",f["X-Goog-Encode-Response-If-Executable"]="base64",_.BM(this.H,[_.Yl((new _.Xl).Ob(l.getId()),_.C(l,3))],[l.getId()],this.O,f),n=l=!0;else if(a instanceof _.qp)n=a.Rl()[0],p="files/"+n,t=_.wa(this.zg(c),this.zg(c,a.O())),_.Ea(t),k.fields=_.vRc({fields:t,qq:_.YK(_.ZK(this.H)),NE:_.dL(this.H)}),_.WM(k),_.FXc(this.H,k),_.GXc(this.H,
k),this.W(n,k),t=a.re(),n=!0,_.H(a,7)&&(b.Kya=!0),_.BM(this.H,_.Ok(a,_.Xl,11),a.Rl(),this.O,f);else if("undefined"!=typeof _.KRc&&a instanceof _.KRc)p="files/generateCseToken",a.id&&(k.fileId=a.id),k.role=a.role,t=a.H;else if("undefined"!=typeof _.rXc&&a instanceof _.rXc)k.fields="kind,id,modifiedDate,originalFilename,fileSize,mimeType,decryptionMetadata(wrappedKey,kaclsId,aes256GcmChunkSize,jwt,keyFormat)",p="files/"+a.id+"/revisions/"+a.revisionId,n=l=!0;else if(a instanceof ORc){d=4;h="PUT";p=
a.W;a.contentType&&(f["content-type"]=a.contentType);if(a.O>=a.H){var u=a.H;b=a.O;f["content-range"]=a.V?_.vx("bytes %d-%d/%d",u,b,b+1):_.vx("bytes %d-%d/*",u,b)}u=a.blob;n=!0}else a instanceof NRc?(d=2,h=(e=!!_.C(a.request,12))?"PUT":"POST",p="files",e&&(p+="/"+_.C(a.request,12)),k.uploadType="resumable",k.pinned=!!_.E(a.request,13,!1),null!=_.H(a.request,8)&&(k.convert=_.H(a.request,8)),k.fields=_.vRc({fields:this.zg(c).filter(function(z){return 194!=z}),qq:_.YK(_.ZK(this.H)),NE:_.dL(this.H)}),
_.WM(k),e=wXc(a.request,a.metadata),f["content-type"]="application/json",null!=a.request.getMimeType()&&(f["x-upload-content-type"]=a.request.getMimeType()),_.BM(this.H,[],_.Kd(a.request,3),this.O,f),t=a.request.re(),n=!0):a instanceof _.SRc?(p="about",k.fields="kind",t=a.H,n=!0):_.HXc(a);n&&_.IXc(c,k);0!=d||l||t&&_.C(t,1)||_.VUc(this.zd,74438989);return _.JXc(d,p,k,f,h,t,e,u)};
_.JXc=function(a,b,c,d,e,f,h,k){b=new _.Aj(b);[10,12,13].includes(a)||CRc(b,f);c=_.m(Object.entries(c));for(f=c.next();!f.done;f=c.next()){var l=_.m(f.value);f=l.next().value;l=l.next().value;_.Kj(b,f,l)}return{Dm:a,headers:d,method:e,uri:b,body:h?JSON.stringify(h):k}};_.FXc=function(a,b){_.E(a.Sf(),23,!1)&&(b.includePermissionsForView="published")};_.yN.prototype.W=function(){};_.GXc=function(a,b){_.E(a,14,!1)&&(b.useLegacyDomainPermissionBehavior=!1)};
_.EXc=function(a,b){_.E(a,3,!1)&&(b.enforceSingleParent=!0)};_.IXc=function(a,b){a&&a.length?(b.retryCount=a.length,b.msSinceLastAttempt=Date.now()-_.ia(a).HLb):b.retryCount=0};_.yN.prototype.zg=function(a,b){b||(b=_.XM(this.Hg));0<a.length&&(b=b.slice(0),_.jaa(b,function(c){return ITc.includes(c)}));return b};_.HXc=function(a){var b=_.vL(new _.Tb,4);throw new _.Ub("ToXhrConverter: Unsupported request type: "+URc(a),b);};
_.zN=function(a,b,c,d,e,f){_.Q.call(this);var h=this;this.O=a;this.V=b;this.ta=c;this.W=d;this.Ba=e;this.ma=f;this.Ti={};this.va={};this.zd=null;_.ee(this,function(){h.pS()})};_.N(_.zN,_.Q);_.zN.prototype.AS=function(){return _.ch()};
_.zN.prototype.upload=function(a,b,c,d){wVc(this.V,"UploadTotalCount");var e=a.Qj();if(e&&this.Ti[e])throw new _.Ub("Upload requested with a duplicate request ID.");var f=_.Kd(a,10);if(f&&f.length){if(1!==f.length)throw new _.Ub("Multi-parented uploads are not supported.");var h=this.Ti[f[0]];if(!h)throw new _.Ub("The parent upload request must precede this request.");}!_.C(a,26)&&b&&b.lastModified&&_.A(a,26,b.lastModified);e||(e=this.AS(),_.A(a,9,e));a=_.Uk(a);f=KXc(this,e);this.Ti[e]={request:a,
file:b,kg:f,xK:!1,gu:0,success:!1,IC:!1,children:[],metadata:c,wia:void 0,$N:d};h?LXc(this,e,h):this.ha(e);return f.nm()};
var KXc=function(a,b){var c=new _.ri;c.Yf(_.Wa(a.Fa,b),_.Wa(a.Ha,b),a);return c},LXc=function(a,b,c,d){var e=a.Ti[b];c.children.push(b);_.Ea(c.children);c.kg.then(function(f){if(1===f.Bb()&&(f=f.Gc(),_.Kd(e.request,3).push(f),_.XG(e.request,10),!c.IC||d)){a.ha(b);return}a.log('[Cancel] Upload of "'+e.request.getTitle()+'" was cancelled due to parent upload cancellation.');a.cancel(b)},function(f){e.kg.Rd(_.cL(f)?f:Error(f))})};
_.zN.prototype.Fa=function(a,b){wVc(this.V,"UploadSuccessCount");a=this.Ti[a];a.success=1===b.Bb();(b=a.wia)&&!a.IC&&(CTc(ETc(xUc(b),a.gu),!0),b.xk())};_.zN.prototype.Ha=function(a,b){var c=_.D(this.O,_.hRc,58);c&&_.E(c,1,!1)&&(this.va[a]=b);wVc(this.V,"UploadFailureCount");c=this.Ti[a];(a=c.wia)&&!c.IC&&(CTc(ETc(xUc(a),c.gu),!1),b=(c=b&&b.$g)&&c.Oj(),c=c&&c.bp(),b?DTc(xUc(a),MXc.get(b)||13):c&&DTc(xUc(a),NXc.get(c)||0),a.xk())};
_.zN.prototype.ha=function(a){var b=this.Ti[a];if(!b.xK){b.xK=!0;a=this.Ti[a];var c=a.request,d=_.D(this.O,_.hRc,58);d&&_.E(d,4,!1)&&(d=c.getTitle().match(OXc))&&(!d[1]||a.gu<Number(d[1].substr(1)))&&(c=_.Uk(c),_.qa(_.Kd(c,3),"$#@! Invalid parent ID."));a=c;c=(c=b.request.YC())?_.C(c,1)||0:0;var e=b.file&&b.file.size||c;c=this.O.Sf();d=_.wk(c,33,1048576);d=b.file&&b.file&&e>d?2:b.file?1:3;if(this.ma&&3!==d){var f=this.ma.O(106012);if(f){b.wia=f;f=xUc(f);f=_.A(f,1,2===d?2:1);f=_.A(f,4,!!b.metadata);
var h=!!_.C(a,12);f=_.A(f,5,h);e=_.A(f,6,e);c=_.wk(c,32,1073741824);_.A(e,7,c)}}switch(d){case 2:b.file&&PXc(this,new _.PRc(a,b.file,b.$N,b.metadata),b.kg,a.Qj());break;case 1:b.file&&(c=b.kg,d=b.file,e=b.metadata,b=b.$N,f=_.D(this.O,_.fSc,2),PXc(this,new _.vM(a,d,b,f&&_.CM(f)?e:void 0),c,a.Qj()));break;case 3:PXc(this,a,b.kg,a.Qj());break;default:throw new _.Ub("Upload type ${uploadType} not supported.");}}};
var PXc=function(a,b,c,d){bVc(a.ta,d,a.ka.bind(a,d));_.oi(a.W.then(function(e){return e.hh(b,{requestId:d})}).then(null,function(e){return QXc(a,b,e)}),function(){cVc(a.ta,[d])}).then(c.callback,c.Rd,c)},QXc=function(a,b,c){var d=_.yL(c),e=b instanceof _.vM&&b.request.Gc()||"";c=d.$g;if(e&&8===c.Oj()){a.log("Create failed with 409 Conflict, re-querying: "+e);var f=_.sp(new _.qp,[e]);return _.xi(a.W.then(function(h){return h.hh(f)}).then(function(h){h=h.zo().Cd()[0];var k=b.request;if(h&&!h.Ah()&&
(h.getMimeType()||"").replace(/\s/g,"")===(k.getMimeType()||"").replace(/\s/g,"")&&h.getTitle()===k.getTitle())return a.log("Matching item found for: "+e),_.KTc((new _.yM).setItem(h),e).Ac(1);a.log("No matching item found for: "+e);return _.ji(d)}))}return _.yi(d)};_.g=_.zN.prototype;
_.g.cancel=function(a){var b=this,c=this.Ti[a];if(c&&(!c.IC||0!==c.children.length))if(c.IC=!0,c.kg.xf())this.log('[Cancel] Response for "'+c.request.getTitle()+'" already received. Cannot cancel.'+(c.children.length?" Attempting to cancel children.":"")),_.Ka(c.children,this.cancel,this);else{var d=c.wia;d&&(DTc(CTc(ETc(xUc(d),c.gu),!1),2),d.xk());var e=_.ni();c.xK?this.W.then(function(f){return void e.resolve(f.cancel(a))}):(c.xK=!0,d=new _.yM,d.Ac(8),c.kg.callback(d),e.resolve(!0));e.promise.then(function(f){return b.log('[Cancel] Upload of "'+
c.request.getTitle()+'" was '+(f?"cancelled.":"in-flight. Cannot cancel."))})}};_.g.pS=function(){var a=this;_.bg(this.Ti,function(b,c){a.cancel(c)})};
_.g.retry=function(a){var b=this,c=new Set(a),d=[],e={};a.forEach(function(f){if(!e[f])if(b.Ti[f]){var h=[];do{h.push(f);var k=(_.Kd(b.Ti[f].request,10)||[])[0];if(k){var l=b.Ti[k];if(l.success||!l.kg.xf()||e[k])break;else if(!c.has(k)){e[f]=new _.Ub("Unable to retry request due to failed parent upload.");break}}f=k}while(f);_.ja(h,function(n){var p=b.Ti[n];p.gu++;if(!e[n])if(!p.kg.xf()||p.success)e[n]=new _.Ub("Unable to retry request.");else{var t=(_.Kd(p.request,10)||[])[0];e[t]instanceof _.Ub?
e[n]=e[t]:(p.kg=KXc(b,n),p.xK=!1,p.IC=!1,(t=t?b.Ti[t]:null)?LXc(b,n,t,!0):d.push(n),e[n]=p.kg.nm())}})}else e[f]=new _.Ub("Retry request with unknown ID.")});a=a.map(function(f){f=e[f];return f instanceof _.ri?f:_.yi(f)});_.Ka(d,this.ha,this);return a};_.g.log=function(){this.isDisposed()};_.g.qd=function(a){return this.Ti[a]};var OXc=/^uploadTestFailMe(\.[1-9])?$/,NXc=new Map([[2,12],[5,1],[27,3],[29,4],[30,5],[31,6],[35,7],[36,8],[37,9],[38,10],[25,11]]),MXc=new Map([[3,14]]);

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy166");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy167");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy168");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy163");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy169");
var RXc=function(a,b){this.O=null;this.O=a;this.H=null;this.V=b};RXc.prototype.get=function(a){return SXc(this)[a]||null};RXc.prototype.set=function(a){SXc(this)[this.V(a)]=a;this.O=null};var SXc=function(a){a.H||(a.H=_.maa(a.O,a.V));return a.H};
_.AN=function(a,b){this.H=a;this.Gz=b};
_.AN.prototype.oy=function(a,b){a:{b:{var c=Math.min(a.length,b.length);for(var d=0;d<c;d++)if(!TXc(this,a[d],b[d])){c=d;break b}c=-1}if(-1==c){if(a.length==b.length){c=[];break a}if(a.length>b.length){c=[];for(var e=d=b.length;e<a.length;e++)c.push(this.H.iK(a[e],d));break a}if(a.length<b.length){c=[];for(d=a.length;d<b.length;d++)c.push(this.H.kK(b[d],d));break a}}d=a.length-1;for(e=b.length-1;0<=d&&0<=e&&TXc(this,a[d],b[e]);d--,e--);e=a.length-1-d;var f=a.length-e;d=a.slice(c,f);f=b.length-e;e=
b.slice(c,f);var h,k=[];for(f=0;f<d.length+1;f++)k[f]=[],k[f][0]=0;for(h=0;h<e.length+1;h++)k[0][h]=0;for(f=1;f<=d.length;f++)for(h=1;h<=e.length;h++)TXc(this,d[f-1],e[h-1])?k[f][h]=k[f-1][h-1]+1:k[f][h]=Math.max(k[f-1][h],k[f][h-1]);var l=[];f=d.length;for(h=e.length;0<f||0<h;)0<f&&0<h&&TXc(this,d[f-1],e[h-1])?(h--,f--):0<h&&(0==f||k[f][h-1]>k[f-1][h])?(l.unshift(this.H.kK(e[h-1],f)),h--):0<f&&(0==h||k[f][h-1]<=k[f-1][h])&&(l.unshift(this.H.iK(d[f-1],f-1)),f--);d=l;e={};for(f=0;f<d.length;f++)if(h=
this.Gz(this.H.HK(d[f])),void 0!==e[h]){h=e[h];l=d[h];var n=d[f];k=1==l.getType()?l:n;l=2==l.getType()?l:n;if(k=this.MC(l,k))d[h]=k,d.splice(f,1),f--}else e[h]=f;e=[];if(null!=d)for(f=0;f<d.length;f++){l=d[f];n=l.Wh()||0;var p=l.Sw()||0;l.setPosition((l.Wh()||0)+UXc(e,l.Wh()||0));d[f].setPosition((d[f].Wh()||0)+c);3==d[f].getType()&&(l.vx((l.Sw()||0)+UXc(e,l.Sw()||0)),d[f].vx((d[f].Sw()||0)+c));h=e;k=h.push;b:switch(l.getType()){case 1:l={offset:1,start:n,end:Number.MAX_VALUE};break b;case 2:l={offset:-1,
start:n,end:Number.MAX_VALUE};break b;case 3:l=n>p?{offset:-1,start:p,end:n}:{offset:1,start:n,end:p};break b;default:l={offset:0,start:-1,end:-1}}k.call(h,l)}c=d}d=[];a=new RXc(a,this.Gz);for(e=0;e<b.length;e++)f=b[e],(h=a.get(this.Gz(f)))&&!_.Tk(h,f)&&d.push(this.H.eO(f,e));return c.concat(d)};var UXc=function(a,b){for(var c=0,d=0;d<a.length;d++)a[d].start<=b&&b<=a[d].end&&(c+=a[d].offset);return c};
_.AN.prototype.MC=function(a,b){var c=b.Wh()||0;c>(a.Wh()||0)&&--c;return this.H.MC(this.H.HK(b),a.Wh()||0,c)};var TXc=function(a,b,c){return a.Gz(b)==a.Gz(c)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.VXc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.VXc,_.L);_.g=_.VXc.prototype;_.g.getType=function(){return _.C(this,1)};_.g.getItem=function(){return _.D(this,_.Dl,2)};_.g.setItem=function(a){return _.y(this,2,a)};_.g.Sw=function(){return _.C(this,3)};_.g.vx=function(a){return _.A(this,3,a)};_.g.Wh=function(){return _.C(this,4)};_.g.setPosition=function(a){return _.A(this,4,a)};_.WXc=function(a){var b=new _.VXc;return _.A(b,1,a)};_.r("sy16a");
var XXc=function(){};_.g=XXc.prototype;_.g.kK=function(a,b){return _.WXc(1).setItem(a).setPosition(b)};_.g.iK=function(a,b){return _.WXc(2).setPosition(b).setItem(a)};_.g.MC=function(a,b,c){return _.WXc(3).vx(b).setPosition(c).setItem(a)};_.g.eO=function(a,b){return _.WXc(4).setItem(a).setPosition(b)};_.g.HK=function(a){return a.getItem()};
var ZXc;_.YXc=function(){_.AN.call(this,new XXc,function(a){return a.getId()})};_.N(_.YXc,_.AN);_.$Xc=function(){ZXc||(ZXc=new _.YXc);return ZXc};

_.w();

}catch(e){_._DumpException(e)}
try{
_.BN=function(a,b){return _.A(a,33,b||[])};_.CN=function(a,b){return _.A(a,45,b)};_.aYc=function(a,b){return _.A(a,5,b)};_.Wb=function(a){_.Fi.call(this,_.Nc);this.error=a};_.N(_.Wb,_.Fi);_.r("sy16b");
_.bYc=new Map([[5,2],[4,3],[3,1],[2,4]]);

_.w();

}catch(e){_._DumpException(e)}
try{
var cYc;cYc=[1];_.DN=function(a){(0,_.S)(this,a,0,-1,cYc,null)};_.O(_.DN,_.L);_.DN.prototype.O=function(){return _.Kd(this,1)};_.r("sy165");
_.EN=function(a){(0,_.S)(this,a,0,-1,dYc,null)};_.O(_.EN,_.L);var dYc=[2];_.EN.prototype.Bb=function(){return _.C(this,1)};_.EN.prototype.Ac=function(a){return _.A(this,1,a)};_.EN.prototype.zk=function(){return _.Ok(this,_.Dl,2)};_.eYc=function(a,b){return _.kb(a,2,b)};_.EN.prototype.oq=function(a,b){return _.Rk(this,2,a,_.Dl,b)};_.EN.prototype.tf=function(){return _.C(this,4)};_.fYc=function(a,b){return _.A(a,4,b)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.FN=function(a,b){_.A(a,1,b)};_.r("sy16d");

_.w();

}catch(e){_._DumpException(e)}
try{
_.gYc=function(a){return _.Xd(a).zg(_.E(a.get(_.xq),19,!1)?_.fOc:_.Vd)};_.r("sy16g");

_.w();

}catch(e){_._DumpException(e)}
try{
var hYc,iYc,jYc,kYc,lYc,mYc,nYc,oYc,pYc,qYc,sYc,tYc,uYc,vYc,wYc,HN,BYc,CYc,IN,JN,DYc,EYc,GYc,HYc,IYc,KYc,LYc,NYc,OYc,PYc,QYc,RYc,SYc,UYc,$Yc,bZc,eZc,hZc,kZc,lZc,mZc,nZc,oZc,pZc,qZc,rZc,tZc,uZc,vZc,wZc,zZc,yZc,CZc,EZc,GZc,IZc,MZc,OZc,PZc,QZc,RZc,SZc,TZc,YZc,ZZc,$Zc,a_c,b_c,c_c,yYc,KN,xYc,zYc,AYc,w0c,x0c,SN,A0c,H0c,O0c,P0c,Q0c,xZc,T0c,U0c,V0c,W0c,X0c,q1c,s1c,t1c,u1c,v1c,w1c,UN,x1c,y1c,z1c,A1c,B1c,C1c,D1c,E1c,F1c,VN,I1c,J1c,K1c,WN,sZc,L1c,M1c,J2c,T2c,U2c,V2c,W2c,Z2c,a3c,k3c,n3c,o3c,v3c,w3c,F3c,W3c,Y3c,
a4c,e4c,l4c,p4c,v4c,N4c,P4c,Q4c,g5c,h5c,LZc,i5c,j5c,TYc,a6c,b6c,c6c,d6c,XYc,e6c,f$c,g$c,h$c,i$c,j$c,k$c,l$c,m$c,n$c,o$c;hYc=function(a){a={Title:a.getTitle(),Type:a.getMimeType(),Parents:_.Kd(a,3),Convert:_.H(a,8),ID:a.Qj()};var b=[];_.bg(a,function(c,d){c&&b.push(d+": "+c)});return b.join("; ")};
iYc=function(a){var b=[];b.push(hYc(a.request));if(a.file){var c=[];c.push("Size: "+a.file.size);a.file.type&&c.push("Type: "+a.file.type);a.file.lastModifiedDate&&c.push("Last modified: "+a.file.lastModifiedDate);b.push("File: "+c.join("; "))}a.gu&&b.push("# of retries by client: "+a.gu);var d="";a.xK?a.kg.xf()?a.kg.Yf(function(){d="Completed successfully."},function(e){d=e instanceof _.si?"Canceled.":"Completed with failure. See attachment."}):d="In progress.":d="Not yet executed.";b.push("State: "+
d);return b.join("\n")};
jYc=function(a,b,c,d,e,f){var h=_.vx("Drive Upload Report: %d/%d failed",_.fg(f),_.fg(e));a=a.Sf();d.push("Batch query interval: "+_.wk(a,12,10)+"ms");d.push("Max resumable upload chunk size: "+_.wk(a,32,1073741824)/1024/1024+" MiB");d.push("Max batch upload file size: "+_.wk(a,33,1048576)/1024/1024+" MiB");d.push("Max files in an upload batch: "+_.wk(a,35,10)+" files");d.push("Max files in a non-upload batch: "+_.wk(a,10,50)+" files");d=d.join("\n");var k=[],l=[];_.bg(e,function(n){l.push(iYc(n))});k.push({name:"AllUploadRequests.txt",
content:l.join("\n---------\n")});k.push({name:"DataserviceLogs.txt",content:_.WTc(b)});_.bg(f,function(n,p){var t=k.push;p=e[p].request;p=_.vx('ErrorResponseFor"%s"(ID:%s).txt',p.getTitle()||"",p.Qj()||"");var u=n.$g;u=u?_.C(u,4):"No detail.";t.call(k,{name:p,content:n.toString()+"\n"+u})});return{title:h,description:d,mY:k,Ed:152391,tga:c,N5:361003}};kYc=function(a){return Array.prototype.concat.apply([],arguments)};lYc=function(a,b,c){c=_.Ga(a,b,c);return 0>c?(_.Ba(a,-(c+1),0,b),!0):!1};
mYc=function(a){return String.fromCharCode(10>a?48+a:87+a)};nYc=function(a){var b=Array(18);b[0]="0";b[1]="x";for(var c=0;8>c;c++){var d=a.charCodeAt(7-c);b[2*c+2]=mYc(d>>4);b[2*c+3]=mYc(d&15)}return b.join("")};oYc=function(a){var b=new _.pq;b.append("kind,largestChangeId,nextPageToken,");b.append("items(deleted,fileId,id,kind,");b.append(_.AL(a,!0,"file"));a.G4&&(b.append(",teamDriveId,teamDrive("),b.append(a.G4),b.append(")"));b.append(")");return b.toString()};
pYc=function(a){var b=new _.pq;b.append("kind,nextPageToken,items(");b.append(_.AL(a,!0));b.append("),incompleteSearch");a.G4&&(b.append(","),b.append(a.G4));return b.toString()};
qYc=function(a,b){for(var c=0;c<b.length;c++){var d=a,e=b[c],f=d.getCapabilities(),h=_.D(d,_.DM,138),k=_.D(d,_.zl,111),l=_.D(d,_.FM,27),n=_.Nl(d),p=d.wf(),t=d.dh(),u=_.D(d,_.HM,103);switch(e){case 74:_.Dk(d,83);break;case 188:_.Bk(d,137);break;case 149:_.XG(d,128);break;case 148:_.Dk(d,127);break;case 138:_.Bk(d,126);break;case 184:_.XG(d,135);break;case 76:f&&_.Bk(f,1);break;case 223:f&&_.Bk(f,54);break;case 208:f&&_.Bk(f,48);break;case 185:f&&_.Bk(f,40);break;case 213:f&&_.Bk(f,50);break;case 156:f&&
_.Bk(f,39);break;case 61:f&&_.Bk(f,2);break;case 216:f&&_.Bk(f,52);break;case 217:f&&_.Bk(f,53);break;case 77:f&&_.Bk(f,4);break;case 134:f&&_.Bk(f,34);break;case 147:f&&_.Bk(f,38);break;case 81:f&&_.Bk(f,10);break;case 82:f&&_.Bk(f,11);break;case 114:f&&_.Bk(f,27);break;case 133:f&&_.Bk(f,33);break;case 202:f&&_.Bk(f,47);break;case 132:f&&_.Bk(f,32);break;case 101:f&&_.Bk(f,20);break;case 201:f&&_.Bk(f,46);break;case 131:f&&_.Bk(f,31);break;case 200:f&&_.Bk(f,45);break;case 130:f&&_.Bk(f,30);break;
case 93:f&&_.Bk(f,17);break;case 191:f&&_.Bk(f,44);break;case 146:f&&_.Bk(f,37);break;case 90:f&&_.Bk(f,16);break;case 78:f&&_.Bk(f,7);break;case 186:f&&_.Bk(f,41);break;case 222:f&&_.Bk(f,51);break;case 85:f&&_.Bk(f,12);break;case 137:f&&_.Bk(f,36);break;case 209:f&&_.Bk(f,49);break;case 79:f&&_.Bk(f,8);break;case 189:f&&_.Bk(f,42);break;case 190:f&&_.Bk(f,43);break;case 80:f&&_.Bk(f,9);break;case 135:f&&_.Bk(f,35);break;case 102:f&&_.Bk(f,21);break;case 69:_.Bk(d,74);break;case 194:h&&_.Ck(h,2);
break;case 193:h&&_.Bk(h,1);break;case 1004:_.Bk(d,108);break;case 136:_.Dk(d,125);break;case 115:k&&_.Bk(k,1);break;case 116:k&&_.Bk(k,2);break;case 34:_.Bk(d,30);f&&_.Bk(f,3);break;case 9:_.Bk(d,10);break;case 91:_.Ck(d,91);break;case 43:_.Bk(d,42);_.Bk(d,43);break;case 187:_.Bk(d,136);break;case 26:_.Bk(d,24);break;case 108:_.XG(d,104);break;case 41:_.Bk(d,40);f&&_.Bk(f,5);break;case 42:_.Bk(d,41);break;case 1005:_.Dk(d,117);break;case 59:f&&_.Bk(f,6);break;case 28:_.Bk(d,26);break;case 44:_.Bk(d,
45);break;case 13:_.Bk(d,14);break;case 48:_.Bk(d,36);break;case 38:_.Bk(d,34);break;case 49:_.XG(d,50);break;case 51:_.Bk(d,53);break;case 104:_.Bk(d,102);break;case 39:_.Bk(d,35);break;case 87:_.Bk(d,76);break;case 100:_.Bk(d,98);break;case 72:_.Bk(d,78);break;case 5:_.Bk(d,6);break;case 20:_.Bk(d,21);break;case 21:break;case 29:l&&_.Bk(l,1);break;case 31:l&&_.Bk(l,3);break;case 92:l&&_.Bk(l,4);break;case 30:l&&_.Bk(l,2);break;case 16:_.Ck(d,17);break;case 12:_.Bk(d,13);break;case 211:n&&_.Bk(n,
2);break;case 212:n&&_.Bk(n,3);break;case 220:n&&_.Bk(n,5);break;case 157:t&&_.Dk(t,8);break;case 3:_.Bk(d,4);break;case 11:_.Bk(d,12);break;case 10:_.Bk(d,11);break;case 50:_.Bk(d,49);_.Bk(d,51);_.Ck(d,81);break;case 18:_.Bk(d,19);break;case 95:_.Bk(d,93);break;case 58:_.Bk(d,63);break;case 14:_.Dk(d,15);break;case 103:_.Bk(d,101);break;case 1:_.XG(d,2);break;case 96:_.Bk(d,94);break;case 1003:_.Dk(d,107);break;case 75:_.Ck(d,85);break;case 94:_.Bk(d,92);break;case 45:_.Bk(d,46);break;case 124:_.Bk(d,
118);break;case 125:_.Bk(d,119);break;case 1002:_.Ck(d,100);break;case 32:_.Bk(d,28);break;case 67:_.Bk(d,70);break;case 68:_.Bk(d,71);break;case 73:_.Bk(d,79);break;case 71:_.Bk(d,77);break;case 221:t&&_.Bk(t,9);break;case 210:_.Bk(d,140);break;case 7:_.Bk(d,8);break;case 122:_.Ck(d,109);break;case 66:_.Bk(d,69);break;case 33:_.Bk(d,29);break;case 24:_.Bk(d,22);break;case 25:_.Bk(d,23);break;case 46:_.Ck(d,47);break;case 192:p&&_.Bk(p,6);break;case 159:p&&_.Ck(p,5);break;case 154:p&&_.Bk(p,1);break;
case 158:p&&_.Bk(p,4);break;case 155:p&&_.Bk(p,3);break;case 52:_.XG(d,56);break;case 56:_.Bk(d,61);break;case 55:_.Dk(d,60);break;case 4:_.Bk(d,5);break;case 35:_.Bk(d,31);break;case 57:_.Bk(d,62);break;case 83:_.Bk(d,72);break;case 84:_.Ck(d,86);break;case 19:_.Bk(d,20);_.Bk(d,44);_.Bk(d,90);break;case 2:_.Bk(d,3);break;case 6:_.Bk(d,7);break;case 98:_.Bk(d,96);break;case 97:_.Ck(d,95);break;case 27:_.Bk(d,25);break;case 70:_.Bk(d,75);break;case 107:u&&_.Bk(u,3);break;case 106:u&&_.Bk(u,2);break;
case 105:u&&_.Bk(u,1);break;case 8:_.Bk(d,9);break;case 126:_.XG(d,120);break;default:throw Error("zc`"+e);}}};sYc=function(a,b){if(0!=a.length){var c=new Set([].concat(_.Vc(a),_.Vc(rYc)));a=[].concat(_.Vc(_.U5a.keys())).filter(function(e){return!c.has(e)});for(var d=0;d<b.length;d++)qYc(b[d],a)}};
tYc=function(a,b){var c=a.getCapabilities()||new _.xl,d=_.D(a,_.DM,138),e=_.D(a,_.zl,111),f=_.D(a,_.FM,27),h=_.Nl(a),k=a.wf(),l=a.dh(),n=_.D(a,_.HM,103);switch(b){case 74:return 0<a.Ms().length;case 188:return null!=_.H(a,137);case 149:return 0<_.Kd(a,128).length;case 148:return 0<a.ka().length;case 138:return null!=a.V();case 184:return 0<_.Kd(a,135).length;case 76:return null!=_.yl(c);case 223:return null!=_.H(c,54);case 208:return null!=_.H(c,48);case 185:return null!=_.H(c,40);case 213:return null!=
_.H(c,50);case 156:return null!=_.H(c,39);case 61:return null!=_.H(c,2);case 216:return null!=_.H(c,52);case 217:return null!=_.H(c,53);case 77:return null!=_.H(c,4);case 134:return null!=_.H(c,34);case 147:return null!=_.H(c,38);case 81:return null!=_.H(c,10);case 82:return null!=_.H(c,11);case 114:return null!=_.H(c,27);case 133:return null!=_.H(c,33);case 202:return null!=_.H(c,47);case 132:return null!=_.H(c,32);case 101:return null!=_.H(c,20);case 201:return null!=_.H(c,46);case 131:return null!=
_.H(c,31);case 200:return null!=_.H(c,45);case 130:return null!=_.H(c,30);case 93:return null!=_.H(c,17);case 191:return null!=_.H(c,44);case 146:return null!=_.H(c,37);case 90:return null!=_.Md(c);case 78:return null!=_.H(c,7);case 186:return null!=_.H(c,41);case 222:return null!=_.H(c,51);case 85:return null!=_.H(c,12);case 137:return null!=_.H(c,36);case 209:return null!=_.H(c,49);case 79:return null!=_.H(c,8);case 189:return null!=_.H(c,42);case 190:return null!=_.H(c,43);case 80:return null!=
_.H(c,9);case 135:return null!=_.H(c,35);case 102:return null!=_.H(c,21);case 69:return null!=_.H(a,74);case 194:return null!=d&&null!=_.D(d,_.EM,2);case 193:return null!=d&&null!=_.C(d,1);case 1004:return null!=_.H(a,108);case 136:return 0<a.O().length;case 115:return null!=e&&null!=_.H(e,1);case 116:return null!=e&&null!=_.C(e,2);case 34:return null!=_.H(a,30)||null!=_.H(c,3);case 9:return null!=a.nB();case 91:return null!=a.Pp();case 43:return null!=_.C(a,42)||null!=_.C(a,43);case 187:return null!=
_.C(a,136);case 26:return null!=a.xg();case 108:return 0<_.Kd(a,104).length;case 41:return null!=_.H(c,5);case 42:return null!=_.C(a,41);case 1005:return 0<_.Ok(a,_.ul,117).length;case 59:return null!=_.H(c,6);case 28:return null!=a.IG();case 44:return null!=_.C(a,45);case 13:return null!=a.oE();case 48:return null!=_.H(a,36);case 38:return null!=a.Gi();case 49:return 0<_.Kd(a,50).length;case 51:return null!=_.H(a,53);case 104:return null!=_.H(a,102);case 39:return null!=a.gha();case 87:return null!=
_.Kl(a);case 100:return null!=_.H(a,98);case 72:return null!=_.C(a,78);case 5:return null!=a.Ql();case 20:return null!=a.Se();case 21:return null!=a.getId();case 29:return!(!f||null==_.C(f,1));case 31:return!(!f||null==_.C(f,3));case 92:return!(!f||null==_.C(f,4));case 30:return!(!f||null==f.Ae());case 16:return null!=a.Bl();case 12:return null!=a.Px();case 211:return null!=h&&null!=_.H(h,2);case 212:return null!=h&&null!=_.H(h,3);case 220:return null!=h&&null!=_.H(h,5);case 157:return!(!l||!_.Ok(l,
_.Cl,8));case 3:return null!=a.getMimeType();case 11:return null!=a.Jz();case 10:return null!=a.Gp();case 50:return null!=_.H(a,49)||null!=_.H(a,51)||null!=a.Sl();case 18:return null!=a.Wp();case 14:return 0<_.El(a).length;case 95:return null!=a.Vk();case 58:return null!=_.H(a,63);case 103:return null!=_.C(a,101);case 1:return 0<a.Ej().length;case 96:return null!=_.H(a,94);case 1003:return 0<_.Ml(a).length;case 75:return null!=a.Dv();case 94:return null!=a.WK();case 45:return null!=a.St();case 124:return null!=
_.H(a,118);case 125:return null!=_.C(a,119);case 1002:return null!=_.Ll(a);case 32:return null!=a.Dt();case 67:return null!=a.JH();case 68:return null!=_.C(a,71);case 73:return null!=_.C(a,79);case 71:return null!=a.$Z();case 221:return null!=l&&null!=_.H(l,9);case 210:return null!=_.Ol(a);case 7:return null!=a.n4();case 122:return null!=_.GN(a);case 66:return null!=_.C(a,69);case 33:return null!=_.H(a,29);case 24:return null!=a.Xi();case 25:return null!=a.Uw();case 46:return null!=a.Hu();case 192:return null!=
k&&null!=_.H(k,6);case 159:return null!=k&&null!=_.Pd(k);case 154:return null!=k&&null!=_.C(k,1);case 158:return null!=k&&null!=_.Sd(k);case 155:return null!=k&&null!=_.C(k,3);case 52:return 0<_.Kd(a,56).length;case 55:return 0<a.Vw().length;case 56:return null!=_.C(a,61);case 4:return null!=a.kz();case 35:return null!=_.H(a,31);case 57:return null!=_.C(a,62);case 83:return null!=a.zc();case 84:return null!=_.D(a,_.GM,86);case 2:return null!=a.getTitle();case 19:return null!=a.mw()||null!=_.H(a,44)||
null!=_.C(a,90);case 6:return null!=a.Ah();case 98:return null!=a.Ss();case 97:return null!=a.zB();case 27:return null!=a.ko();case 70:return null!=a.wi();case 107:return null!=n&&null!=_.C(n,3);case 106:return null!=n&&null!=_.C(n,2);case 105:return null!=n&&null!=n.Ae();case 8:return null!=_.H(a,9);case 126:return 0<_.Kd(a,120).length;default:throw Error("Ac`"+b);}};uYc=function(a,b){return b.every(function(c){return tYc(a,c)})};vYc=function(a,b,c){var d=a.concat((void 0===c?0:c)?_.uRc:[]);return b.every(function(e){return(new Set(d)).has(e)})};
wYc=function(a,b){var c=new Set(b.concat(_.uRc));return a.filter(function(d){return!c.has(d)})};
HN=function(a,b,c){b=b.clone();var d=b.getCapabilities();c.forEach(function(e){if(tYc(b,e))if(_.Y5a.has(e)){if(d){var f=a.getCapabilities()||new _.xl;_.JM(a,f);switch(e){case 76:_.kSc(f,_.yl(d));break;case 223:var h=_.H(d,54);_.A(f,54,h);break;case 208:_.FSc(f,_.H(d,48));break;case 185:var k=_.H(d,40);_.A(f,40,k);break;case 213:var l=_.H(d,50);_.A(f,50,l);break;case 156:var n=_.H(d,39);_.A(f,39,n);break;case 61:var p=_.H(d,2);_.A(f,2,p);break;case 216:var t=_.H(d,52);_.A(f,52,t);break;case 217:var u=
_.H(d,53);_.A(f,53,u);break;case 77:_.lSc(f,_.H(d,4));break;case 134:var z=_.H(d,34);_.A(f,34,z);break;case 147:var B=_.H(d,38);_.A(f,38,B);break;case 81:_.rSc(f,_.H(d,10));break;case 82:_.sSc(f,_.H(d,11));break;case 114:var F=_.H(d,27);_.A(f,27,F);break;case 133:_.ASc(f,_.H(d,33));break;case 202:_.ESc(f,_.H(d,47));_.zSc(f,_.H(d,32));break;case 132:_.zSc(f,_.H(d,32));break;case 101:_.wSc(f,_.H(d,20));break;case 201:_.DSc(f,_.H(d,46));break;case 131:_.ySc(f,_.H(d,31));break;case 200:var I=_.H(d,45);
_.A(f,45,I);break;case 130:var M=_.H(d,30);_.A(f,30,M);break;case 93:_.vSc(f,_.H(d,17));break;case 191:var U=_.H(d,44);_.A(f,44,U);break;case 146:var R=_.H(d,37);_.A(f,37,R);break;case 90:_.uSc(f,_.Md(d));break;case 78:_.oSc(f,_.H(d,7));break;case 186:var ca=_.H(d,41);_.A(f,41,ca);break;case 222:var va=_.H(d,51);_.A(f,51,va);break;case 85:_.tSc(f,_.H(d,12));break;case 137:var ua=_.H(d,36);_.A(f,36,ua);break;case 209:var za=_.H(d,49);_.A(f,49,za);break;case 79:_.pSc(f,_.H(d,8));break;case 189:_.BSc(f,
_.H(d,42));break;case 190:_.CSc(f,_.H(d,43));break;case 80:_.qSc(f,_.H(d,9));break;case 135:var ea=_.H(d,35);_.A(f,35,ea);break;case 102:_.xSc(f,_.H(d,21));break;case 34:var Ha=_.H(b,30);_.A(a,30,Ha);var Ra=_.H(d,3);_.A(f,3,Ra);break;case 41:var jb=_.H(b,40);_.A(a,40,jb);_.mSc(f,_.H(d,5));break;case 59:_.nSc(f,_.H(d,6))}}}else if(_.Z5a.has(e)){var Vb=_.D(b,_.DM,138);if(Vb){var cc=_.D(a,_.DM,138)||new _.DM;_.y(a,138,cc);switch(e){case 194:var Gc=_.D(Vb,_.EM,2);_.y(cc,2,Gc);break;case 193:var Ed=_.C(Vb,
1);_.A(cc,1,Ed)}}}else if(_.$5a.has(e)){var pc=_.D(b,_.zl,111);if(pc){var yd=_.D(a,_.zl,111)||new _.zl;_.y(a,111,yd);switch(e){case 115:_.GSc(yd,_.H(pc,1));break;case 116:_.HSc(yd,_.C(pc,2))}}}else if(_.a6a.has(e)){var le=_.D(b,_.FM,27);if(le){var Zc=_.D(a,_.FM,27)||new _.FM;_.y(a,27,Zc);switch(e){case 29:var Be=_.C(le,1);_.A(Zc,1,Be);break;case 31:Zc.Lg(_.C(le,3));break;case 92:var bd=_.C(le,4);_.A(Zc,4,bd);break;case 30:Zc.Ug(le.Ae())}}}else if(_.b6a.has(e)){var yb=_.Nl(b);if(yb){var sg=_.Nl(a)||
new _.lna;_.y(a,139,sg);switch(e){case 211:var pe=_.H(yb,2);_.A(sg,2,pe);break;case 212:var Pf=_.H(yb,3);_.A(sg,3,Pf);break;case 220:var Ej=_.H(yb,5);_.A(sg,5,Ej)}}}else if(_.c6a.has(e)){var ei=b.wf();if(ei){var lf=a.wf()||new _.tna;_.y(a,132,lf);switch(e){case 192:var jn=_.H(ei,6);_.A(lf,6,jn);break;case 159:var kn=_.Pd(ei);_.y(lf,5,kn);break;case 154:var yf=_.C(ei,1);_.A(lf,1,yf);break;case 158:var tg=_.Sd(ei);_.A(lf,4,tg);break;case 155:var vh=_.C(ei,3);_.A(lf,3,vh)}}}else if(_.d6a.has(e)){var qi=
b.dh();switch(e){case 157:if(qi){var qj=a.dh()||new _.rna;xYc(a,qj);yYc(qj,_.Ok(qi,_.Cl,8))}break;case 221:if(qi){var ql=a.dh()||new _.rna;xYc(a,ql);var Bi=_.H(qi,9);_.A(ql,9,Bi)}}}else if(_.e6a.has(e)){var Qj=_.D(b,_.HM,103);if(Qj){var Ne=_.D(a,_.HM,103)||new _.HM;_.y(a,103,Ne);switch(e){case 107:var rl=_.C(Qj,3);_.A(Ne,3,rl);break;case 106:Ne.Lg(_.C(Qj,2));break;case 105:Ne.Ug(Qj.Ae())}}}else switch(e){case 74:var nk=b.Ms();_.kb(a,83,nk);break;case 188:var dh=_.H(b,137);_.A(a,137,dh);break;case 149:var sl=
_.Kd(b,128);_.A(a,128,sl||[]);break;case 148:var bm=b.ka();_.kb(a,127,bm);break;case 138:var Fl=b.V();_.A(a,126,Fl);break;case 184:var ok=_.Kd(b,135);_.A(a,135,ok||[]);break;case 69:var Rg=_.H(b,74);_.A(a,74,Rg);break;case 1004:var Pi=_.H(b,108);_.A(a,108,Pi);break;case 136:var fi=b.O();_.kb(a,125,fi);break;case 9:var Qi=b.nB();_.A(a,10,Qi);break;case 91:var Qf=b.Pp();_.y(a,91,Qf);break;case 43:var Gg=_.C(b,42);_.A(a,42,Gg);var Lk=_.C(b,43);_.A(a,43,Lk);break;case 187:var fj=_.C(b,136);_.A(a,136,
fj);break;case 26:a.wl(b.xg());break;case 108:var Gl=_.Kd(b,104);_.A(a,104,Gl||[]);break;case 42:var zf=_.C(b,41);_.A(a,41,zf);break;case 1005:var rj=_.Ok(b,_.ul,117);_.kb(a,117,rj);break;case 28:_.QSc(a,b.IG());break;case 44:var cm=_.C(b,45);_.A(a,45,cm);break;case 13:var dm=b.oE();_.A(a,14,dm);break;case 48:var gi=_.H(b,36);_.A(a,36,gi);break;case 38:_.SSc(a,b.Gi());break;case 49:var Ri=_.Kd(b,50);_.A(a,50,Ri||[]);break;case 51:var Dc=_.H(b,53);_.A(a,53,Dc);break;case 104:var pk=_.H(b,102);_.A(a,
102,pk);break;case 39:var Hl=b.gha();_.A(a,35,Hl);break;case 87:var kh=_.Kl(b);_.A(a,76,kh);break;case 100:var qk=_.H(b,98);_.A(a,98,qk);break;case 72:var Hg=_.C(b,78);_.A(a,78,Hg);break;case 5:var ap=b.Ql();_.A(a,6,ap);break;case 20:var ln=b.Se();_.A(a,21,ln);break;case 21:a.Ob(b.getId());break;case 16:_.OSc(a,b.Bl());break;case 12:var Il=b.Px();_.A(a,13,Il);break;case 3:_.PK(a,b.getMimeType());break;case 11:var Mk=b.Jz();_.A(a,12,Mk);break;case 10:_.nOc(a,b.Gp());break;case 50:var co=_.H(b,49);
_.A(a,49,co);var Jl=_.H(b,51);_.A(a,51,Jl);var sj=b.Sl();_.y(a,81,sj);break;case 95:_.YSc(a,b.Vk());break;case 18:_.PSc(a,b.Wp());break;case 58:var eo=_.H(b,63);_.A(a,63,eo);break;case 14:_.NSc(a,_.El(b));break;case 1:_.IM(a,b.Ej());break;case 96:var fo=_.H(b,94);_.A(a,94,fo);break;case 103:var gj=_.C(b,101);_.A(a,101,gj);break;case 1003:zYc(a,_.Ml(b));break;case 75:_.WSc(a,b.Dv());break;case 94:_.XSc(a,b.WK());break;case 45:var Nk=b.St();_.A(a,46,Nk);break;case 124:var rk=_.H(b,118);_.A(a,118,rk);
break;case 125:var mn=_.C(b,119);_.A(a,119,mn);break;case 1002:var Sp=_.Ll(b);_.y(a,100,Sp);break;case 32:var nn=b.Dt();_.A(a,28,nn);break;case 67:var go=b.JH();_.A(a,70,go);break;case 68:var ho=_.C(b,71);_.A(a,71,ho);break;case 73:var Wr=_.C(b,79);_.A(a,79,Wr);break;case 71:var bw=b.$Z();_.A(a,77,bw);break;case 210:var Um=_.Ol(b);_.A(a,140,Um);break;case 7:_.MSc(a,b.n4());break;case 122:AYc(a,_.GN(b));break;case 66:var cw=_.C(b,69);_.A(a,69,cw);break;case 33:var eq=_.H(b,29);_.A(a,29,eq);break;case 24:var bt=
b.Xi();_.A(a,22,bt);break;case 25:var fq=b.Uw();_.A(a,23,fq);break;case 46:var gq=b.Hu();_.y(a,47,gq);break;case 52:var Xr=_.Kd(b,56);_.A(a,56,Xr||[]);break;case 56:var dw=_.C(b,61);_.A(a,61,dw);break;case 55:a.fC(b.Vw());break;case 4:a.iu(b.kz());break;case 35:_.RSc(a,_.H(b,31));break;case 57:var NB=_.C(b,62);_.A(a,62,NB);break;case 83:_.VSc(a,b.zc());break;case 84:var iE=_.D(b,_.GM,86);_.y(a,86,iE);break;case 98:a.iaa(b.Ss());break;case 97:var OB=b.zB();_.y(a,95,OB);break;case 19:var zx=b.mw();
_.A(a,20,zx);_.TSc(a,_.H(b,44));var jE=_.C(b,90);_.A(a,90,jE);break;case 2:a.setTitle(b.getTitle());break;case 6:a.Sm(b.Ah());break;case 27:_.oOc(a,b.ko());break;case 70:var Ax=b.wi();_.A(a,75,Ax);break;case 8:var Dz=_.H(b,9);_.A(a,9,Dz);break;case 126:var XL=_.Kd(b,120);_.A(a,120,XL||[]);break;default:throw Error("Bc`"+e);}})};BYc=function(a,b){var c=_.Iy[a];return b.filter(function(d){return!c||!c.has(d)})};CYc=function(a,b,c){a=BYc(c,a);return vYc(b,a,!0)};
IN=function(a){return a?"application/vnd.google-apps.shortcut"===a.getMimeType():!1};JN=function(a,b){b=void 0===b?!1:b;if(!a)return!1;var c=a.getMimeType();return b&&IN(a)?(a=a.wf(),!!a&&"application/vnd.google-apps.folder"===_.C(a,3)):"application/vnd.google-apps.folder"===c};DYc=function(a){var b=a&&a.getId()||null;a&&IN(a)&&(a=(a=a.wf())&&_.C(a,1))&&(b=a);return b};EYc=function(a){return!!_.H(a,31)&&!_.H(a,94)};GYc=function(a){return FYc.some(function(b){return tYc(a,b)})};
HYc=function(a){return a.filter(function(b){return b}).some(function(b){return[4,5,2].includes(KN(b))})};IYc=function(a){return HYc(a.filter(function(b){return b}).map(function(b){return b.getItem()}))};_.JYc=function(a,b){a=0===b?1:a/b;return 1<=a?6:.95<=a?5:.9<=a?4:.8<=a?3:.7<=a?2:1};KYc=function(a,b){var c=_.dRc(b||{}),d=new Map;a.forEach(function(e){d.set(e,c[e]||null)});return d};LYc=function(a,b){return 0<=b?!a||a<=b:!0};
NYc=function(a,b){if(b){var c=[];_.H(b,3)&&c.push("folder");var d=MYc()&&4===b.getType()?"title_natural":_.iQc[b.getType()];b=_.kQc[_.vk(b,2,1)];d&&(b&&(d+=" "+b),c.push(d));c.length&&(a.orderBy=c.join(","))}};OYc=function(a,b){var c=a.Sl();c||(c=new _.Al,b&&_.y(a,81,c));return c};PYc=function(a){if(JN(a))_.FN(OYc(a,!0),!0);else if(JN(a,!0)){var b=a.wf();if(b=b&&_.Pd(b))_.FN(OYc(b,!0),!0),_.FN(OYc(a,!0),!0)}};QYc=function(a){return!!a.Sl()&&!JN(a)};
RYc=function(a){var b=[];_.Ka(a,function(c){if(3!=KN(c)){var d=c;if(null!=_.H(d,49)||null!=_.H(d,51)||null!=d.Sl())c=_.Uk(c),_.Bk(c,49),_.Bk(c,51),_.Ck(c,81);b.push(c)}});return b};SYc=function(a){for(var b=0;b<a.length;b++){var c=a[b];c&&c instanceof _.L?a[b]=c.yc():c&&c instanceof _.eN&&(a[b]=c.yc(function(d){return d?d.yc():null}))}};UYc=function(a){var b=a.slice(0),c=new Set(b);TYc.forEach(function(d){c.has(d)||b.push(d)});b.sort();return b};
$Yc=function(a,b,c){var d=_.D(a,VYc,66),e=_.C(d,1),f=_.RM(a);a=_.nL(_.ZK(a));e=new _.Aj(e);var h=new _.Aj(window.location);var k=h.O+"://"+h.H;null!=h.W&&(k+=":"+h.W);h=_.Tj(k,3);_.Jj(e,"co",h);h=e.Ie();!f&&0<a&&(h+="u/"+a+"/");e.Mi(h+"_/dataservice/cacheproxy");f=_.C(d,5)||"";if(_.UQc(window.location.href,e.toString())&&f)return e=UYc(c),d=_.C(d,6),b="#"+b+"_",c=new _.RK,c.update(e.join(",")),b+=_.sOc(c.digest()),d&&(b+="&jobset="+d),b=_.Xx(f+"?"+b),_.q.SharedWorker?(d=new SharedWorker(_.Rfa(b),
void 0),b=new WYc(d.port),d.port.start()):b=new WYc(new Worker(_.Rfa(b),void 0)),new XYc(new YYc(b,!1,!0),!1,f,e);d=e.toString();b="cpiframe_"+_.ch();d=_.Ih("IFRAME",{name:b,id:b,src:d});d.style.cssText=_.wg(_.TQc(_.Mf("display: none;")));document.body.appendChild(d);d=_.mla(e.O,void 0,e.H,e.W).toString();return new XYc(new YYc(ZYc(window.frames[b],d),!1,!0),!0,e.toString())};
bZc=function(a){var b=new aZc;if(a instanceof _.BL)_.Qk(b,16,LN[0],a);else if(a instanceof _.CL)_.Qk(b,1,LN[0],a);else if(a instanceof _.DL)_.Qk(b,2,LN[0],a);else if("undefined"!=typeof _.MN&&a instanceof _.MN)_.Qk(b,17,LN[0],a);else if(a instanceof _.GL)_.Qk(b,3,LN[0],a);else if(a instanceof _.lN)_.Qk(b,4,LN[0],a);else if(a instanceof _.EL)_.Qk(b,5,LN[0],a);else if(a instanceof _.KL)_.Qk(b,6,LN[0],a);else if(a instanceof _.ML)_.Qk(b,7,LN[0],a);else if(a instanceof _.NL)_.Qk(b,8,LN[0],a);else if(a instanceof
_.QL)_.Qk(b,9,LN[0],a);else if(a instanceof _.lM)_.Qk(b,10,LN[0],a);else if("undefined"!=typeof _.mM&&a instanceof _.mM)_.Qk(b,11,LN[0],a);else if(a instanceof _.ERc)_.Qk(b,12,LN[0],a);else if(a instanceof _.pL)_.Qk(b,13,LN[0],a);else if(a instanceof _.rM)_.Qk(b,14,LN[0],a);else if(a instanceof _.sM)_.Qk(b,15,LN[0],a);else throw new _.Ub("Unsupported request type");return b};
eZc=function(a){a=a.map(function(c){var d=new cZc;if(c instanceof _.BL)_.Qk(d,6,NN[0],c);else if("undefined"!=typeof _.MN&&c instanceof _.MN)_.Qk(d,7,NN[0],c);else if(c instanceof _.KL)_.Qk(d,1,NN[0],c);else if(c instanceof _.lM)_.Qk(d,2,NN[0],c);else if("undefined"!=typeof _.mM&&c instanceof _.mM)_.Qk(d,3,NN[0],c);else if(c instanceof _.pL)_.Qk(d,4,NN[0],c);else if(c instanceof _.sM)_.Qk(d,5,NN[0],c);else throw new _.Ub("Unsupported request type");return d});var b=new dZc;_.kb(b,1,a);return b};
hZc=function(a){var b=new fZc;if("undefined"!=typeof _.CC&&a instanceof _.CC)_.Qk(b,1,gZc[0],a);else if("undefined"!=typeof _.DC&&a instanceof _.DC)_.Qk(b,2,gZc[0],a);else throw new _.Ub("Unsupported request type");return b};kZc=function(a){var b=new iZc;if(a instanceof _.HL)_.Qk(b,1,jZc[0],a);else if(a instanceof _.OL)_.Qk(b,2,jZc[0],a);else if(a instanceof _.tM)_.Qk(b,3,jZc[0],a);else throw new _.Ub("Unsupported request type");return b};lZc=function(a,b,c){return b?new c(JSON.parse(a)):a};
mZc=function(a){a=JSON.parse(a);return{title:a.t,description:a.d,Ed:a.c,tga:a.fi,N5:a.dti,mY:a.a?a.a.map(function(b){b=JSON.parse(b);return{name:b.n,content:b.c,contentType:b.ct,Xfa:b.ec}}):void 0}};nZc=function(a,b,c){a=a?1:2;a=_.Jc(_.Ic(new _.Hc,12),a);var d=(new _.Pe).Sm(!0);d=_.A(d,17,!0);a=_.Qe(d,a);c&&_.$l(a,c);c=new _.fQc;b&&_.lRc(c,b);return _.mRc(_.oRc(new _.eL,a),c)};oZc=function(a){return a.map(function(b){return b.getItem()})};
pZc=function(a){var b={};a.forEach(function(c){b[c.getId()]=c.getItem()});return b};qZc=function(a,b){var c=new _.Aj(_.G(b,16,"")+"/open"),d=a.getId();IN(a)&&(d=DYc(a));_.Jj(c,"id",d);_.Jj(c,"authuser",_.nL(_.ZK(b)));_.E(b,89,!1)&&_.sk(a,140)&&_.Jj(c,"resourcekey",_.Ol(a));return c.toString()};
rZc=function(a){_.xf("drive.DebugUtil.printFindById",function(c){a.VS(c).addCallback(function(d){window.console.log(JSON.stringify(d))})});_.xf("drive.DebugUtil.getLogs",function(){return _.WTc(a.$f())});_.xf("drive.DebugUtil.printLogs",function(){window.console.log(_.WTc(a.$f()))});_.xf("drive.DebugUtil.printRequestHistory",function(){a.E7().addCallback(function(c){c.forEach(function(d){window.console.log(_.C(d,1));window.console.log(_.C(d,2))})})});_.xf("drive.DebugUtil.getState",function(){return a.getState()});
var b=a.Ka();b&&_.E(b,1,!1)&&(_.xf("drive.DebugUtil.getContext",function(){return a.getContext()}),_.xf("drive.DebugUtil.setOffline",function(c){return void a.xm(c)}))};tZc=function(a,b){var c=new _.DN,d=new Set;if(6===a){a=_.m(b);for(b=a.next();!b.done;b=a.next())(b=b.value)?(b=_.bYc.get(KN(b)))&&d.add(b):d.add(1);0===d.size&&d.add(0)}sZc(c,[].concat(_.Vc(d)));return c};
uZc=function(a){var b=[],c={};a=_.m(a);for(var d=a.next();!d.done;c={Uba:c.Uba},d=a.next())if(d=d.value){c.Uba=new Map;[].concat(_.Vc(_.El(d)),[d.Bl(),d.Hu(),d.Pp()]).forEach(function(l){return function(n){n&&l.Uba.set(_.NF(n),n)}}(c));for(var e=[],f=_.m(c.Uba.values()),h=f.next();!h.done;h=f.next())if(h=h.value){var k=h.getName();e.push(_.NF(h)+"-"+((k?k.length:k)+"-")+_.vk(h,16,0))}b.push(d.getId()+","+KN(d)+","+(e.length?e.join(","):"-"))}return b.length?"People: "+b.join("|"):""};
vZc=function(a,b){var c={};a=_.cg(a,function(d){return!!d});b=_.cg(b,function(d){return!!d});_.bg(a,function(d,e){var f=b[e];f?_.Tk(d,f)||(d=_.WXc(4).setItem(f),c[e]=d):(d=_.WXc(2).setItem(d),c[e]=d)});_.bg(b,function(d,e){a[e]||(d=_.WXc(1).setItem(d),c[e]=d)});return c};wZc=function(a,b){return _.fg(a)!==_.fg(b)||!_.ig(vZc(a,b))};
zZc=function(a,b){b.info("drive.ds.sync.api.Dump","Requesting dump stats.");b=new _.af;_.bf(b,305);_.cf(b,!0);_.A(b,3,2);var c=new _.pC;_.y(c,1,b);xZc(c,[7]);a=a.then(function(d){return d.hh(c)}).then(yZc);return _.xi(a)};yZc=function(a){a=_.Ok(a,_.up,3);var b=new AZc;a.forEach(function(c){var d=c.getKey();d=d&&_.C(d,2);"corpusSize"===d?(c=_.mb(c.Xa()),_.A(b,3,c)):"linkedItems"===d?(c=_.mb(c.Xa()),_.A(b,2,c)):"linkedFolders"===d&&(c=_.mb(c.Xa()),_.A(b,1,c))});return"number"===typeof _.C(b,3)?b:null};
CZc=function(a,b){var c=BZc(a.Ll,b.Gc());if(c){var d=c.getItem(),e=d.Dv();if(e){var f=e.gP(),h=_.ta(f,function(k){return k.getId()===b.O()});_.JSc(e,f);h||(f=_.Ok(e,_.nl,3),_.ta(f,function(k){return k.getId()===b.O()}),_.KSc(e,f));_.ISc(e,(_.C(e,1)||1)-1);a.Fk([d],c.H)}}};
EZc=function(a,b,c){if(b=BZc(a.Ll,b.Gc())){var d=b.getItem(),e=d.Dv();if(e){if(1===c.getType()||2===c.getType()){var f=_.Ok(e,_.nl,3);f.push(c);_.Ia(f,DZc);_.KSc(e,f)}else f=e.gP(),f.push(c),_.Ia(f,DZc),_.JSc(e,f);_.ISc(e,(_.C(e,1)||0)+1);a.Fk([d],b.H)}}};GZc=function(a){return a.map(function(b){var c=new _.bsb;c=_.A(c,3,FZc[b.serviceName]);return _.A(c,2,Number(b.bytesUsed))})};
IZc=function(a){return(a.quotaBytesByService||[]).reduce(function(b,c){return HZc.has(c.serviceName)?b+Number(c.bytesUsed):b},0)};
MZc=function(a){var b=a.json.exportJob,c=JZc[b.status]||0,d=Number(a.json.percentDone),e=b.items?b.items.length:0;a=a.json.numFetchedFiles||0;var f=0,h=0,k=_.ib(b.archives||[],function(l){f=f+Number(l.sizeOfContents)||0;h=h+Number(l.compressedSize)||0;return l.storagePath});b=_.ib(b.failedItemInfos||[],function(l){var n=_.PK((new _.Dl).Ob(l.docId).setTitle(l.title),l.mediaType);n=(new _.KZc).setItem(n);n=_.A(n,3,l.relativePath);return _.A(n,4,l.cause)});return new LZc(c,d,k,f,h,e,a,b)};
OZc=function(a){var b={},c=a.getKey(),d=c&&_.C(c,2);b.key=d;b.value=a.Xa();(a=c&&_.vp(c))&&(b.namespace=NZc[a]);return b};PZc=function(a){for(var b=[],c=0;c<a.length;c++)b.push(NZc[a[c]]);return b};QZc=function(a){return"kind,defaultAppIds,items("+a+")"};RZc=function(a,b){return _.E(b,5,!1)?a+",graceQuotaInfo,quotaStatus":a};SZc=function(a,b){return _.E(b,93,!1)?a+",adminSecureLinkSetting":a};
TZc=function(){var a=!(!_.q.IDBObjectStore||!_.q.IDBObjectStore.prototype.getAll);return!!(_.q.indexedDB||_.q.mozIndexedDB||_.q.webkitIndexedDB||_.q.moz_indexedDB)&&a};YZc=function(a,b){_.A(b,75,1<_.q.devicePixelRatio);if(UZc(b))return b=new ON(a,b,3),new PN(b,b.Hg);_.A(b,61,!1);var c=_.YK(_.ZK(b))?2:1;a=new VZc(a,b,c,void 0,void 0,void 0);return _.YK(_.ZK(b))?new WZc(a):new XZc(a)};ZZc=function(a){return _.Xd(a).zg(_.E(a.get(_.xq),19,!1)?_.gOc:_.CUa)};
$Zc=function(a,b){a.H.push(b>>>0&255);a.H.push(b>>>8&255);a.H.push(b>>>16&255);a.H.push(b>>>24&255)};a_c=function(a,b){return _.kb(a,1,b)};b_c=[1];c_c=function(a){(0,_.S)(this,a,0,-1,b_c,null)};_.O(c_c,_.L);c_c.prototype.gea=function(a){_.Rk(this,1,a,_.nl,void 0)};var d_c=function(a){var b=new c_c;return _.kb(b,1,a)},e_c=function(a,b){return _.y(a,1,b)},f_c=function(a,b){_.kb(a,2,b)},g_c=function(a,b){_.y(a,6,b)},h_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(h_c,_.L);
var i_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(i_c,_.L);var QN=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(QN,_.L);var j_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(j_c,_.L);var k_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(k_c,_.L);var l_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(l_c,_.L);var m_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(m_c,_.L);var n_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(n_c,_.L);var o_c=function(a){(0,_.S)(this,a,0,-1,null,null)};
_.O(o_c,_.L);var p_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(p_c,_.L);var q_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(q_c,_.L);var r_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(r_c,_.L);var s_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(s_c,_.L);var t_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(t_c,_.L);var u_c=[[1,2,3,4]],v_c=function(a){(0,_.S)(this,a,0,-1,null,u_c)};_.O(v_c,_.L);var w_c=[[1]],x_c=function(a){(0,_.S)(this,a,0,-1,null,w_c)};_.O(x_c,_.L);
var y_c=[[1,2]],z_c=function(a){(0,_.S)(this,a,0,-1,null,y_c)};_.O(z_c,_.L);var A_c=[[1]],B_c=function(a){(0,_.S)(this,a,0,-1,null,A_c)};_.O(B_c,_.L);var C_c=[[1,2]],D_c=function(a){(0,_.S)(this,a,0,-1,null,C_c)};_.O(D_c,_.L);D_c.prototype.Aha=function(){return _.D(this,QN,1)};D_c.prototype.Mg=function(a){_.Qk(this,1,C_c[0],a)};var E_c=[1],F_c=function(a){(0,_.S)(this,a,0,-1,E_c,null)};_.O(F_c,_.L);F_c.prototype.Zp=function(){return _.C(this,2)};
var G_c=[[1]],H_c=function(a){(0,_.S)(this,a,0,-1,null,G_c)};_.O(H_c,_.L);var I_c=[2],J_c=function(a){(0,_.S)(this,a,0,-1,I_c,null)};_.O(J_c,_.L);var K_c=[[1]],L_c=function(a){(0,_.S)(this,a,0,-1,null,K_c)};_.O(L_c,_.L);L_c.prototype.Aha=function(){return _.D(this,j_c,1)};L_c.prototype.Mg=function(a){_.Qk(this,1,K_c[0],a)};var M_c=[[1,2]],N_c=function(a){(0,_.S)(this,a,0,-1,null,M_c)};_.O(N_c,_.L);var O_c=[[1]],P_c=function(a){(0,_.S)(this,a,0,-1,null,O_c)};_.O(P_c,_.L);
var Q_c=function(a,b){return _.Qk(a,3,_.tl[0],b)},R_c=function(a,b){_.kb(a,1,b)},S_c=function(a,b){return _.A(a,2,b)},T_c=function(a,b){return _.y(a,3,b)},U_c=function(a,b){return _.A(a,4,b)},V_c=function(a,b){_.kb(a,1,b)},Z_c=function(a,b){return _.y(a,2,b)},$_c=function(a,b){_.kb(a,1,b)},a0c=function(a,b){return _.y(a,4,b)},b0c=function(a,b){_.y(a,5,b)},c0c=function(a,b){_.kb(a,2,b)},d0c=function(a,b){_.kb(a,4,b)},e0c=function(a,b){return _.y(a,5,b)},f0c=function(a,b){_.kb(a,1,b)},g0c=function(a,
b){return _.y(a,2,b)},h0c=function(a,b){_.kb(a,2,b)},i0c=function(a){var b=new _.fna;return _.kb(b,3,a)},j0c=function(a,b){_.kb(a,1,b)},k0c=function(a,b){return _.A(a,2,b)},l0c=function(a,b){return _.y(a,3,b)},m0c=function(a,b){_.kb(a,2,b)},n0c=function(a,b){return _.y(a,3,b)},o0c=function(a,b){_.kb(a,1,b)},p0c=function(a,b){return _.kb(a,2,b)},q0c=function(a,b){_.kb(a,1,b)},r0c=function(a,b){return _.y(a,2,b)},s0c=function(a,b){return _.y(a,1,b)},t0c=function(a,b){return _.A(a,2,b)},u0c=function(a,
b){return _.A(a,3,b)},v0c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(v0c,_.L);yYc=function(a,b){_.kb(a,8,b)};KN=function(a){return _.vk(a,52,1)};xYc=function(a,b){return _.y(a,73,b)};zYc=function(a,b){_.kb(a,107,b)};_.GN=function(a){return _.D(a,v0c,109)};AYc=function(a,b){_.y(a,109,b)};w0c=function(a){var b=new _.ek;var c=_.C(a,1);null!=c&&_.jk(b,1,c);c=_.C(a,2);null!=c&&_.jk(b,2,c);return _.gk(b)};x0c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(x0c,_.L);
var VYc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(VYc,_.L);var y0c=[11],z0c=function(a){(0,_.S)(this,a,0,-1,y0c,null)};_.O(z0c,_.L);var RN=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(RN,_.L);RN.prototype.getKey=function(){return _.C(this,2)};RN.prototype.Hq=function(){return _.sk(this,2)};SN=function(a){return _.G(a,4,"en")};_.TN=function(a){return _.D(a,z0c,34,1)};A0c=function(a,b){return _.A(a,5,b)};_.B0c=function(a,b){return _.kb(a,5,b)};_.C0c=function(a,b){return _.A(a,6,b)};
_.D0c=function(a,b){return _.A(a,7,b)};_.E0c=function(a,b){return _.A(a,8,b)};_.F0c=function(a,b){return _.A(a,10,b)};_.G0c=function(a,b){return _.A(a,15,b)};H0c=[2];_.I0c=function(a){(0,_.S)(this,a,0,-1,H0c,null)};_.O(_.I0c,_.L);_.I0c.prototype.zh=function(){return _.C(this,1)};_.J0c=function(a,b){return _.A(a,2,b)};_.K0c=function(a,b){return _.A(a,3,b)};_.L0c=function(a,b){return _.A(a,1,b)};_.M0c=function(a,b){return _.A(a,2,b)};_.N0c=function(a,b){return _.y(a,1,b)};
O0c=function(a,b){return _.A(a,2,b)};P0c=function(a,b){return _.A(a,3,b)};Q0c=function(a,b){_.kb(a,4,b)};_.R0c=function(a,b){_.y(a,8,b)};_.S0c=function(a,b){_.y(a,9,b)};xZc=function(a,b){_.A(a,3,b||[])};T0c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(T0c,_.L);T0c.prototype.Xa=function(){return _.yk(this,1)};T0c.prototype.Jb=function(a){return _.Ek(this,1,a,0)};_.lN=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.lN,_.L);_.lN.prototype.getTitle=function(){return _.C(this,1)};
_.lN.prototype.setTitle=function(a){return _.A(this,1,a)};_.lN.prototype.re=function(){return _.D(this,_.af,2)};U0c=function(a,b){return _.A(a,9,b||[])};V0c=function(a,b){return _.A(a,10,b||[])};W0c=function(a,b){return _.A(a,36,b)};X0c=function(a,b){return _.kb(a,38,b)};_.Y0c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.Y0c,_.L);_.Y0c.prototype.getId=function(){return _.C(this,1)};_.Y0c.prototype.Ob=function(a){return _.A(this,1,a)};_.Y0c.prototype.Ae=function(){return _.C(this,4)};
_.Y0c.prototype.Ug=function(a){return _.A(this,4,a)};var Z0c=function(a,b){return _.A(a,2,b)},$0c=function(a,b){return _.y(a,3,b)},a1c=[1,3,5],b1c=function(a){(0,_.S)(this,a,0,-1,a1c,null)};_.O(b1c,_.L);b1c.prototype.cD=function(){return _.Kd(this,1)};b1c.prototype.Rz=function(){return _.H(this,2)};
var c1c=function(a,b){_.A(a,2,b)},d1c=function(a,b){_.Jk(a,5,b,void 0)},e1c=function(a,b){_.A(a,6,b)},f1c=function(a,b){_.A(a,7,b)},g1c=function(a,b){return _.A(a,1,b)},h1c=function(a,b){return _.A(a,3,b)},i1c=function(a,b){return _.A(a,4,b)},j1c=function(a,b){_.A(a,7,b)},k1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(k1c,_.L);var l1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(l1c,_.L);var m1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(m1c,_.L);
var n1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(n1c,_.L);var o1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(o1c,_.L);var p1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(p1c,_.L);p1c.prototype.Rz=function(){return _.H(this,2)};q1c=function(a,b){_.A(a,1,b)};_.r1c=function(a,b){_.y(a,2,b)};s1c=function(a,b){return _.A(a,1,b||[])};t1c=function(a,b,c){_.VM(a,b,c,"warning")};u1c=function(a){return[].concat(_.Vc(a.O))};v1c=function(a){return a.H.concat([].concat(_.Vc(a.O)))};
w1c=function(a,b){var c=new Set;b=_.m(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.H.includes(d)||a.O.has(d)||(a.O.add(d),c.add(d));return[].concat(_.Vc(c))};UN=function(a){var b=_.cN(a).qd();b||(b=new _.wTc,a=_.cN(a),_.y(a,1,b));return b};x1c=function(a){var b=_.D(_.cN(a),b1c,3);b||(b=new b1c,a=_.cN(a),_.y(a,3,b));return b};y1c=function(a){var b=_.D(_.cN(a),m1c,7);b||(b=new m1c,a=_.cN(a),_.y(a,7,b));return b};
z1c=function(a){var b=_.D(_.cN(a),o1c,12);b||(b=new o1c,a=_.cN(a),_.y(a,12,b));return b};A1c=function(a){var b=_.D(_.cN(a),p1c,17);b||(b=new p1c,a=_.cN(a),_.y(a,17,b));return b};
B1c=function(a){if(a instanceof _.SK)return 2;if(a instanceof _.yp)return 10;if(a instanceof _.Pe)return _.VL(a)?3:_.WL(a)?7:_.cM(a)?8:1;if(a instanceof _.qp)return 9;if(a instanceof _.OF)return 11;if(a instanceof _.jM)return 15;if(a instanceof _.$K)return 6;if(a instanceof _.eM){a=a.getType();if(1==a)return 5;if(2==a)return 16;if(4==a)return 17;if(3==a)return 18}else{if(a instanceof _.pC)return 4;if(a instanceof _.Ap)return 12;if("undefined"!=typeof _.uM&&a instanceof _.uM)return 13}return 0};
C1c=function(a){var b=null;a instanceof _.IA||"undefined"!=typeof _.eN&&a instanceof _.eN||"undefined"!=typeof _.fN&&a instanceof _.fN?b=a.Re()||0:"undefined"!=typeof _.hN&&a instanceof _.hN||"undefined"!=typeof _.iN&&a instanceof _.iN||"undefined"!=typeof _.jN&&a instanceof _.jN||"undefined"!=typeof _.kN&&a instanceof _.kN||"undefined"!=typeof _.OUc&&a instanceof _.OUc?b=a.Ve:"undefined"!=typeof _.gN&&a instanceof _.gN&&(b=a.Re());return b||0};
D1c=function(a,b){return a.V&&a.isRunning()?_.RUc(a.V,b,0):null};E1c=function(a,b){return _.y(a,1,b)};F1c=[2];VN=function(a){(0,_.S)(this,a,0,-1,F1c,null)};_.O(VN,_.L);VN.prototype.Bb=function(){return _.C(this,1)};VN.prototype.Ac=function(a){return _.A(this,1,a)};VN.prototype.gea=function(a){_.Rk(this,2,a,_.nl,void 0)};VN.prototype.Bj=function(){return _.C(this,3)};var G1c=[2],H1c=function(a){(0,_.S)(this,a,0,-1,G1c,null)};_.O(H1c,_.L);H1c.prototype.Bb=function(){return _.C(this,1)};
H1c.prototype.Ac=function(a){return _.A(this,1,a)};H1c.prototype.Bj=function(){return _.C(this,3)};I1c=function(a){return a.H?a.H.promise:a.O()?(a.H=new _.Bo,a.H.promise):null};J1c=function(a){var b=[];a.Ti.forEach(function(c){(c=c.fu.config.timestamp)&&b.push(c)});return b};K1c=function(a){var b=[];a.V.forEach(function(c){c.forEach(function(d){(d=d.fu.config.timestamp)&&b.push(d)})});a.buckets.forEach(function(c){_.ya(b,J1c(c))});return b};
WN=function(a,b,c){if(b.length!=c.length)return!0;for(a=0;a<b.length;a++)if(!_.Tk(b[a],c[a]))return!0;return!1};sZc=function(a,b){return _.A(a,1,b||[])};L1c=function(a,b){if(!(a instanceof b.constructor))throw Error("aa");var c=_.Pk(a,!0);b=_.Pk(b,!0);var d=[],e=0,f=c.length>b.length?c.length:b.length;a.Nc&&(d[0]=a.Nc,e=1);for(;e<f;e++)_.Xla(c[e],b[e])||(d[e]=b[e]);return new a.constructor(d)};M1c=[2,6];_.fN=function(a){(0,_.S)(this,a,0,-1,M1c,null)};_.O(_.fN,_.L);_.g=_.fN.prototype;
_.g.Bb=function(){return _.C(this,1)};_.g.Ac=function(a){return _.A(this,1,a)};_.g.Cd=function(){return _.Ok(this,_.Dl,2)};_.g.Bv=function(a){return _.kb(this,2,a)};_.g.Pg=function(a,b){return _.Rk(this,2,a,_.Dl,b)};_.g.Bj=function(){return _.C(this,3)};_.g.Mk=function(){return _.E(this,4,!0)};var N1c=function(a,b){return _.kb(a,6,b)};_.fN.prototype.tf=function(){return _.C(this,10)};_.fN.prototype.pN=function(a){return _.A(this,10,a)};_.fN.prototype.Re=function(){return _.C(this,9)};
_.fN.prototype.Ai=function(a){return _.A(this,9,a)};var O1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(O1c,_.L);var P1c=[1,2],Q1c=function(a){(0,_.S)(this,a,0,-1,P1c,null)};_.O(Q1c,_.L);
var R1c=[1,2,4],S1c={SUCCESS:1,L0b:2,VSb:3,SOb:4,X0b:5,vWb:6,mWb:7,rPb:8,L_b:9,$_b:10,K0b:11,TQb:12,xQb:13,WTb:14,oSb:15,BQb:16,AQb:17,GQb:18,DQb:19,EQb:20,q0b:21,U0b:22,MWb:23,UVb:24,kPb:25,PERMISSION_DENIED:26,mVb:27,wPb:28,vPb:29,INTERRUPTED:30,kXb:31,EXb:32,fRb:33,lRb:34,S_b:35,sRb:36,pSb:37,kRb:38,lWb:39,bQb:40,fXb:41,GXb:42,J_b:43,NPb:44,aQb:45,mSb:46,iVb:47,kWb:48,EWb:49,gXb:50,C_b:51,yQb:52,K_b:53,I_b:54,TPb:55,QPb:56,CRb:57,FVb:58,hXb:59,IUb:60,VYb:61,JZb:62,p_b:63,kUb:64,WVb:65,$0b:66,uRb:67,
qSb:68,J0b:69,oUb:70,uPb:71,FPb:72,RZb:73,q_b:74,m_b:75,k_b:76,FZb:190,j_b:191,SZb:192,YZb:126,UZb:128,VZb:129,WZb:130,XZb:131,ZZb:132,$Zb:133,dZb:127,aZb:134,bZb:135,fZb:136,gZb:137,hZb:138,cZb:194,eZb:195,iZb:196,$Yb:197,IZb:189,UYb:139,WYb:140,jZb:141,kZb:142,wZb:143,zZb:144,AZb:145,BZb:146,CZb:147,DZb:148,EZb:149,HZb:150,NZb:151,PZb:152,QZb:153,TZb:154,a_b:155,c_b:156,d_b:157,e_b:158,f_b:159,g_b:160,h_b:161,l_b:162,o_b:163,r_b:164,XYb:165,YYb:166,ZYb:167,SYb:168,TYb:169,nZb:170,lZb:171,mZb:172,
oZb:173,pZb:174,qZb:175,rZb:176,sZb:177,tZb:178,uZb:179,vZb:180,xZb:181,yZb:182,GZb:106,OZb:183,b_b:184,i_b:185,KZb:186,LZb:187,MZb:188,n_b:244,eXb:77,O0b:78,T0b:79,tVb:80,aUb:81,cUb:82,BRb:83,lSb:84,nVb:85,j0b:86,jRb:87,qUb:88,pUb:89,u_b:90,s_b:91,t_b:92,P0b:93,oQb:94,nQb:95,kQb:96,mQb:97,lQb:98,Z0b:99,EYb:100,JQb:101,CQb:102,HQb:103,FQb:104,IQb:105,rSb:107,X_b:108,yYb:109,D0b:110,uSb:111,tSb:112,NUb:113,OUb:114,KXb:115,UPb:116,VUb:117,LRb:118,Q0b:119,rWb:120,sWb:121,XTb:193,zQb:122,$Qb:123,$Tb:124,
QVb:125,rUb:198,pXb:199,hUb:200,vOb:201,mUb:202,lUb:203,xPb:204,x1b:205,bVb:206,hQb:207,oWb:208,FXb:209,AYb:210,WOb:211,LUb:212,SUb:213,N_b:214,M_b:215,jUb:216,VTb:217,iUb:218,wRb:219,a0b:220,xRb:221,JUb:222,U_b:223,i1b:224,$Vb:225,T_b:226,bRb:227,aVb:228,ARb:229,dQb:230,h0b:231,RVb:232,FILE_TOO_LARGE:233,nUb:234,vRb:235,jSb:236,AXb:237,XVb:238,hOb:239,eQb:240,dWb:241,KYb:242,hRb:243,tOb:245,dUb:246,GWb:247,bUb:248,sVb:249,VVb:250,nSb:251,bTb:252,MUb:253,RPb:254,sSb:255,Y0b:256,OSb:257,CVb:258,RXb:259,
oXb:260,wUb:261,OQb:262,iRb:263},rYc=[1004,1005,1002,1003],FYc=[1002,1003,1005],T1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(T1c,_.L);T1c.prototype.Bb=function(){return _.C(this,1)};T1c.prototype.Ac=function(a){return _.A(this,1,a)};T1c.prototype.wm=function(){return _.D(this,_.HA,2)};var U1c=function(a){_.Fi.call(this,a)};_.N(U1c,_.Fi);var V1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(V1c,_.L);V1c.prototype.O=function(){return _.D(this,_.YE,1)};
V1c.prototype.V=function(){return _.D(this,_.YE,2)};V1c.prototype.ka=function(){return _.D(this,_.YE,3)};var W1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(W1c,_.L);_.g=W1c.prototype;_.g.P5a=function(){return _.H(this,1)};_.g.Lj=function(a){return _.A(this,1,a)};_.g.Ql=function(){return _.H(this,2)};_.g.O5a=function(){return _.H(this,3)};_.g.Q5a=function(){return _.H(this,4)};var XN=[[13,19,12,11,10,15,14,9,8,18,17,16]],X1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(X1c,_.L);
X1c.prototype.O=function(){return _.H(this,1)};X1c.prototype.V=function(){return _.H(this,2)};var Y1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(Y1c,_.L);var Z1c=[1],$1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O($1c,_.L);$1c.prototype.O=function(){return _.H(this,1)};$1c.prototype.V=function(){return _.H(this,2)};var a2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(a2c,_.L);_.g=a2c.prototype;_.g.d6a=function(){return _.H(this,1)};_.g.Lj=function(a){return _.A(this,1,a)};
_.g.Ql=function(){return _.H(this,2)};_.g.a6a=function(){return _.D(this,V1c,3)};_.g.e6a=function(){return _.sk(this,3)};_.g.c6a=function(){return _.D(this,V1c,4)};_.g.g6a=function(){return _.sk(this,4)};_.g.b6a=function(){return _.C(this,5)};_.g.f6a=function(){return _.sk(this,5)};var b2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(b2c,_.L);_.g=b2c.prototype;_.g.getLabel=function(){return _.C(this,1)};_.g.Ad=function(a){return _.A(this,1,a)};_.g.Iq=function(){return _.sk(this,1)};
_.g.Xa=function(){return _.C(this,2)};_.g.Jb=function(a){return _.A(this,2,a)};_.g.mj=function(){return _.Bk(this,2)};_.g.mh=function(){return _.sk(this,2)};_.g.xg=function(){return _.C(this,5)};_.g.wl=function(a){return _.A(this,5,a)};_.g.$5a=function(){return _.sk(this,5)};_.g.getCapabilities=function(){return _.D(this,$1c,3)};_.g.Z5a=function(){return _.D(this,a2c,4)};var c2c=function(a){(0,_.S)(this,a,0,-1,Z1c,null)};_.O(c2c,_.L);c2c.prototype.O=function(){return _.Ok(this,b2c,1)};
var d2c=function(a,b){_.kb(a,1,b)},e2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(e2c,_.L);e2c.prototype.Qs=function(){return _.C(this,1)};e2c.prototype.WT=function(){return _.sk(this,1)};e2c.prototype.getOptions=function(){return _.D(this,c2c,2)};var f2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(f2c,_.L);f2c.prototype.V=function(){return _.C(this,1)};f2c.prototype.O=function(){return _.C(this,2)};var g2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(g2c,_.L);
g2c.prototype.Qs=function(){return _.C(this,1)};g2c.prototype.WT=function(){return _.sk(this,1)};g2c.prototype.getOptions=function(){return _.D(this,f2c,2)};var h2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(h2c,_.L);h2c.prototype.V=function(){return _.C(this,1)};h2c.prototype.O=function(){return _.C(this,2)};var i2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(i2c,_.L);var j2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(j2c,_.L);j2c.prototype.Qs=function(){return _.C(this,1)};
j2c.prototype.WT=function(){return _.sk(this,1)};j2c.prototype.getOptions=function(){return _.D(this,i2c,2)};var YN=[[3,4,5,6,7,8,9,10,11,12]],k2c=function(a){(0,_.S)(this,a,0,-1,null,YN)};_.O(k2c,_.L);_.g=k2c.prototype;_.g.haa=function(a){return _.Qk(this,3,YN[0],a)};_.g.W0a=function(a){return _.Qk(this,4,YN[0],a)};_.g.k0a=function(a){return _.Qk(this,5,YN[0],a)};_.g.j0a=function(a){return _.Qk(this,6,YN[0],a)};_.g.X_a=function(a){return _.Qk(this,7,YN[0],a)};
_.g.K0a=function(a){return _.Qk(this,8,YN[0],a)};_.g.J0a=function(a){return _.Qk(this,9,YN[0],a)};_.g.a1a=function(a){return _.Qk(this,10,YN[0],a)};_.g.fma=function(a){return _.Qk(this,11,YN[0],a)};_.g.Kla=function(a){return _.Qk(this,12,YN[0],a)};var l2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(l2c,_.L);var m2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(m2c,_.L);m2c.prototype.Qs=function(){return _.C(this,1)};m2c.prototype.WT=function(){return _.sk(this,1)};
m2c.prototype.getOptions=function(){return _.D(this,l2c,2)};var n2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(n2c,_.L);n2c.prototype.uRa=function(){return _.C(this,1)};n2c.prototype.O=function(){return _.C(this,4)};var o2c=function(a){(0,_.S)(this,a,0,-1,null,XN)};_.O(o2c,_.L);_.g=o2c.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Ob=function(a){return _.A(this,1,a)};_.g.T5a=function(){return _.C(this,2)};_.g.Je=function(){return _.C(this,4)};_.g.S5a=function(){return _.D(this,W1c,5)};
_.g.getCapabilities=function(){return _.D(this,X1c,6)};_.g.Y5a=function(){return _.C(this,7)};_.g.X_a=function(a){return _.Qk(this,13,XN[0],a)};_.g.R5a=function(){return _.D(this,n2c,19)};_.g.Kla=function(a){return _.Qk(this,19,XN[0],a)};_.g.j0a=function(a){return _.Qk(this,12,XN[0],a)};_.g.k0a=function(a){return _.Qk(this,11,XN[0],a)};_.g.gob=function(){return _.D(this,h2c,10)};_.g.U5a=function(){return _.D(this,e2c,15)};_.g.J0a=function(a){return _.Qk(this,15,XN[0],a)};
_.g.V5a=function(){return _.D(this,c2c,14)};_.g.K0a=function(a){return _.Qk(this,14,XN[0],a)};_.g.W0a=function(a){return _.Qk(this,9,XN[0],a)};_.g.W5a=function(){return _.D(this,f2c,8)};_.g.haa=function(a){return _.Qk(this,8,XN[0],a)};_.g.X5a=function(){return _.D(this,m2c,18)};_.g.fma=function(a){return _.Qk(this,18,XN[0],a)};_.g.a1a=function(a){return _.Qk(this,17,XN[0],a)};var p2c=[5],q2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(q2c,_.L);q2c.prototype.ka=function(){return _.H(this,1)};
q2c.prototype.O=function(){return _.H(this,2)};q2c.prototype.ma=function(){return _.H(this,3)};q2c.prototype.V=function(){return _.H(this,4)};var ZN=function(a){(0,_.S)(this,a,0,-1,p2c,null)};_.O(ZN,_.L);ZN.prototype.getName=function(){return _.C(this,1)};ZN.prototype.$c=function(a){return _.A(this,1,a)};ZN.prototype.Hm=function(){return _.C(this,2)};var r2c=function(a,b){return _.A(a,2,b)};ZN.prototype.V=function(){return _.C(this,14)};var s2c=function(a,b){return _.A(a,14,b)};_.g=ZN.prototype;
_.g.getTitle=function(){return _.C(this,3)};_.g.setTitle=function(a){return _.A(this,3,a)};_.g.xg=function(){return _.C(this,4)};_.g.wl=function(a){return _.A(this,4,a)};_.g.i6a=function(){return _.C(this,15)};_.g.h6a=function(){return _.Ok(this,o2c,5)};var t2c=function(a,b){_.kb(a,5,b)},u2c=function(a,b){_.y(a,6,b)},v2c=function(a,b){_.y(a,7,b)},w2c=function(a,b){_.y(a,8,b)};ZN.prototype.O=function(){return _.D(this,W1c,12)};var x2c=function(a,b){_.y(a,12,b)};
ZN.prototype.getCapabilities=function(){return _.D(this,q2c,13)};var y2c=function(a,b){_.y(a,13,b)},z2c=[5,7,9],A2c=function(a){(0,_.S)(this,a,0,-1,z2c,null)};_.O(A2c,_.L);_.g=A2c.prototype;_.g.getUser=function(){return _.D(this,_.nl,1)};_.g.fz=function(a){_.A(this,2,a)};_.g.setBooleanValue=function(a){return _.A(this,3,a)};_.g.setTextValue=function(a){return _.A(this,4,a)};_.g.bma=function(a){return _.A(this,5,a||[])};_.g.addTextValues=function(a,b){return _.Jk(this,5,a,b)};
_.g.setSelectionValue=function(a){return _.A(this,6,a)};_.g.Xla=function(a){return _.A(this,7,a||[])};_.g.addSelectionValues=function(a,b){return _.Jk(this,7,a,b)};_.g.setIntegerValue=function(a){return _.A(this,8,a)};_.g.Ola=function(a){return _.A(this,9,a||[])};_.g.addIntegerValues=function(a,b){return _.Jk(this,9,a,b)};var B2c=[7,10,12,16,13,3],$N=function(a){(0,_.S)(this,a,0,-1,B2c,null)};_.O($N,_.L);var aO=function(a){return _.C(a,4)};_.g=$N.prototype;_.g.fz=function(a){_.A(this,4,a)};
_.g.setBooleanValue=function(a){return _.A(this,5,a)};_.g.m6a=function(){return _.C(this,6)};_.g.setTextValue=function(a){return _.A(this,6,a)};_.g.bma=function(a){return _.A(this,7,a||[])};_.g.addTextValues=function(a,b){return _.Jk(this,7,a,b)};_.g.k6a=function(){return _.C(this,8)};_.g.setLongTextValue=function(a){return _.A(this,8,a)};_.g.l6a=function(){return _.C(this,9)};_.g.setSelectionValue=function(a){return _.A(this,9,a)};_.g.IIa=function(){return _.Kd(this,10)};
_.g.Xla=function(a){return _.A(this,10,a||[])};_.g.addSelectionValues=function(a,b){return _.Jk(this,10,a,b)};_.g.j6a=function(){return _.C(this,11)};_.g.setIntegerValue=function(a){return _.A(this,11,a)};_.g.Ola=function(a){return _.A(this,12,a||[])};_.g.addIntegerValues=function(a,b){return _.Jk(this,12,a,b)};_.g.JIa=function(){return _.D(this,_.nl,15)};_.g.setUserValue=function(a){return _.y(this,15,a)};_.g.txa=function(){return _.Ok(this,_.nl,16)};var C2c=function(a,b){_.kb(a,16,b)};
$N.prototype.addUserValues=function(a,b){return _.Rk(this,16,a,_.nl,b)};$N.prototype.O=function(){return _.C(this,17)};$N.prototype.setDateStringValue=function(a){return _.A(this,17,a)};$N.prototype.V=function(){return _.sk(this,17)};var D2c=function(a,b){_.kb(a,13,b)};$N.prototype.getId=function(){return _.C(this,14)};$N.prototype.Ob=function(a){return _.A(this,14,a)};$N.prototype.getName=function(){return _.C(this,1)};$N.prototype.$c=function(a){return _.A(this,1,a)};
var E2c=[2],bO=function(a){(0,_.S)(this,a,0,-1,E2c,null)};_.O(bO,_.L);bO.prototype.getName=function(){return _.C(this,1)};bO.prototype.$c=function(a){return _.A(this,1,a)};bO.prototype.O=function(){return _.Ok(this,$N,2)};var F2c=function(a,b){_.kb(a,2,b)};bO.prototype.Gc=function(){return _.C(this,3)};var G2c=function(a,b){return _.A(a,3,b)},H2c={R0b:0,DVb:1,NWb:2,CWb:3,sUb:4,TOb:5,EVb:6,DWb:7,BTb:8,jPb:9,AWb:10},cO=function(){this.map={};this.status=6;this.Ve=null};cO.prototype.Bb=function(){return this.status};
cO.prototype.Ac=function(a){this.status=a};cO.prototype.Re=function(){return this.Ve};cO.prototype.Ai=function(a){this.Ve=a};var I2c=function(a,b){a.map=b};cO.prototype.yc=function(a){var b=[];_.bg(this.map,function(c,d){b.push({k:d,v:c?a(c):null})});return JSON.stringify({s:this.status,d:this.Ve,me:b})};J2c=function(a,b,c){c=JSON.parse(c);a.Ac(c.s);a.Ai(c.d);var d={};c.me.forEach(function(e){d[e.k]=e.v?b(e.v):null});a.map=d};_.eN=function(){cO.apply(this,arguments)};_.N(_.eN,cO);
var K2c=function(){cO.apply(this,arguments)};_.N(K2c,cO);var L2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(L2c,_.L);L2c.prototype.getType=function(){return _.C(this,1)};var M2c=function(a){var b=new L2c;return _.A(b,1,a)},N2c=function(a,b){return _.y(a,2,b)};L2c.prototype.Sw=function(){return _.C(this,3)};L2c.prototype.vx=function(a){return _.A(this,3,a)};L2c.prototype.Wh=function(){return _.C(this,4)};L2c.prototype.setPosition=function(a){return _.A(this,4,a)};
var O2c=[2],P2c=function(a){(0,_.S)(this,a,0,-1,O2c,null)};_.O(P2c,_.L);P2c.prototype.Bb=function(){return _.C(this,1)};P2c.prototype.Ac=function(a){return _.A(this,1,a)};var Q2c=[2],dO=function(a){(0,_.S)(this,a,0,-1,Q2c,null)};_.O(dO,_.L);dO.prototype.Bb=function(){return _.C(this,1)};dO.prototype.Ac=function(a){return _.A(this,1,a)};dO.prototype.O=function(){return _.Ok(this,bO,2)};var R2c=function(a,b){return _.kb(a,2,b)};dO.prototype.Bj=function(){return _.C(this,3)};
var S2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(S2c,_.L);S2c.prototype.Bb=function(){return _.C(this,1)};S2c.prototype.Ac=function(a){return _.A(this,1,a)};S2c.prototype.N7=function(){return _.D(this,_.Dl,2)};T2c=function(a,b){return _.y(a,2,b)};U2c={0:"UNSPECIFIED_FEEDBACK",1:"IMPLICIT_REJECT",2:"NOT_HELPFUL_RIGHT_NOW"};V2c=function(a,b){return new _.WOc(_.XOc.bound(a,b,void 0,void 0))};
W2c=function(){var a=new _.ri,b=_.iPc().deleteDatabase("GoogleDriveDs");b.onsuccess=function(){a.callback()};b.onerror=function(c){a.Rd(_.WK(c.target,"deleting database GoogleDriveDs"))};b.onblocked=function(){};return a};_.X2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.X2c,_.L);_.X2c.prototype.ap=function(){return _.C(this,1)};_.X2c.prototype.Md=function(){return _.C(this,2)};_.X2c.prototype.setSize=function(a){return _.A(this,2,a)};_.X2c.prototype.getUrl=function(){return _.C(this,3)};
_.Y2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.Y2c,_.L);_.Y2c.prototype.getType=function(){return _.C(this,1)};Z2c=[2,3];_.$2c=function(a){(0,_.S)(this,a,0,-1,Z2c,null)};_.O(_.$2c,_.L);a3c=[4,5,6,17,18,24];_.eO=function(a){(0,_.S)(this,a,0,-1,a3c,null)};_.O(_.eO,_.L);_.eO.prototype.getId=function(){return _.C(this,1)};_.eO.prototype.Ob=function(a){return _.A(this,1,a)};_.eO.prototype.getName=function(){return _.C(this,2)};_.eO.prototype.$c=function(a){return _.A(this,2,a)};
var b3c=function(a,b){return _.A(a,4,b||[])},c3c=function(a,b){return _.A(a,5,b||[])};_.eO.prototype.CO=function(){return _.C(this,8)};_.eO.prototype.getType=function(){return _.C(this,23)};_.eO.prototype.Ql=function(){return _.H(this,33)};var d3c=[3],fO=function(a){(0,_.S)(this,a,0,-1,d3c,null)};_.O(fO,_.L);fO.prototype.Bo=function(){return _.C(this,1)};var e3c=function(a,b){return _.A(a,1,b)};fO.prototype.getTitle=function(){return _.C(this,2)};
fO.prototype.setTitle=function(a){return _.A(this,2,a)};fO.prototype.Cd=function(){return _.Ok(this,_.Dl,3)};var f3c=function(a,b){return _.kb(a,3,b)};fO.prototype.Pg=function(a,b){return _.Rk(this,3,a,_.Dl,b)};fO.prototype.V=function(){return _.C(this,4)};var g3c=function(a,b){return _.A(a,4,b)};fO.prototype.O=function(){return _.D(this,_.pl,5)};var h3c=function(a,b){return _.y(a,5,b)},AZc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(AZc,_.L);
var i3c=[2],gO=function(a){(0,_.S)(this,a,0,-1,i3c,null)};_.O(gO,_.L);gO.prototype.Bb=function(){return _.C(this,1)};gO.prototype.Ac=function(a){return _.A(this,1,a)};gO.prototype.dk=function(){return _.Ok(this,fO,2)};var j3c=function(a,b){return _.kb(a,2,b)};gO.prototype.tf=function(){return _.C(this,4)};k3c=function(a,b){return _.A(a,4,b)};_.gN=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.gN,_.L);_.g=_.gN.prototype;_.g.Bb=function(){return _.C(this,1)};
_.g.Ac=function(a){return _.A(this,1,a)};_.g.uR=function(){return _.zk(this,2,_.HA)};_.g.Bj=function(){return _.C(this,3)};_.g.Re=function(){return _.C(this,5)};_.g.Ai=function(a){return _.A(this,5,a)};var l3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(l3c,_.L);l3c.prototype.xg=function(){return _.G(this,1)};l3c.prototype.wl=function(a){return _.Hk(this,1,a)};l3c.prototype.getUrl=function(){return _.G(this,2)};_.m3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.m3c,_.L);
_.m3c.prototype.getType=function(){return _.vk(this,1,0)};_.m3c.prototype.getContext=function(){return _.D(this,l3c,2)};_.m3c.prototype.Uj=function(a){return _.y(this,2,a)};n3c=[1];o3c=[2];_.p3c=function(a){(0,_.S)(this,a,0,-1,o3c,null)};_.O(_.p3c,_.L);_.p3c.prototype.getLabel=function(){return _.G(this,1)};_.p3c.prototype.Ad=function(a){return _.Hk(this,1,a)};_.q3c=function(a){(0,_.S)(this,a,0,-1,n3c,null)};_.O(_.q3c,_.L);_.r3c=[[2,3,4]];_.hO=function(a){(0,_.S)(this,a,0,-1,null,null)};
_.O(_.hO,_.L);_.hO.prototype.Je=function(){return _.G(this,3)};_.hO.prototype.ym=function(a){return _.Hk(this,4,a)};_.s3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.s3c,_.L);_.t3c=function(a){(0,_.S)(this,a,0,-1,null,_.r3c)};_.O(_.t3c,_.L);var u3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(u3c,_.L);v3c=[3,5];_.iO=[[8,9,10,11,12,13,14]];w3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(w3c,_.L);var x3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(x3c,_.L);
_.y3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.y3c,_.L);_.z3c=function(a){(0,_.S)(this,a,0,-1,v3c,_.iO)};_.O(_.z3c,_.L);_.z3c.prototype.Bb=function(){return _.vk(this,6,0)};_.z3c.prototype.Ac=function(a){return _.Ik(this,6,a)};var A3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(A3c,_.L);var B3c=[1],C3c=function(a){(0,_.S)(this,a,0,-1,B3c,null)};_.O(C3c,_.L);var D3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(D3c,_.L);var E3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(E3c,_.L);
F3c=[7];_.G3c=[[1,2,3]];_.H3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.H3c,_.L);_.I3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.I3c,_.L);_.J3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.J3c,_.L);_.K3c=function(a){(0,_.S)(this,a,0,-1,F3c,_.G3c)};_.O(_.K3c,_.L);_.L3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.L3c,_.L);_.L3c.prototype.getName=function(){return _.G(this,1)};_.L3c.prototype.$c=function(a){return _.Hk(this,1,a)};
var M3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(M3c,_.L);M3c.prototype.getName=function(){return _.G(this,1)};M3c.prototype.$c=function(a){return _.Hk(this,1,a)};M3c.prototype.getTitle=function(){return _.G(this,2)};M3c.prototype.setTitle=function(a){return _.Hk(this,2,a)};var N3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(N3c,_.L);N3c.prototype.getName=function(){return _.G(this,1)};N3c.prototype.$c=function(a){return _.Hk(this,1,a)};
N3c.prototype.getTitle=function(){return _.G(this,2)};N3c.prototype.setTitle=function(a){return _.Hk(this,2,a)};var O3c=[[1,4]],P3c=function(a){(0,_.S)(this,a,0,-1,null,O3c)};_.O(P3c,_.L);P3c.prototype.getUser=function(){return _.D(this,_.t3c,1)};P3c.prototype.N7=function(){return _.D(this,N3c,2)};var Q3c=[[8,9,10]],R3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(R3c,_.L);var S3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(S3c,_.L);_.T3c=function(a){(0,_.S)(this,a,0,-1,null,null)};
_.O(_.T3c,_.L);_.T3c.prototype.getType=function(){return _.vk(this,6,0)};_.U3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.U3c,_.L);_.V3c=function(a){(0,_.S)(this,a,0,-1,null,Q3c)};_.O(_.V3c,_.L);_.g=_.V3c.prototype;_.g.getName=function(){return _.G(this,1)};_.g.$c=function(a){return _.Hk(this,1,a)};_.g.getTitle=function(){return _.G(this,2)};_.g.setTitle=function(a){return _.Hk(this,2,a)};_.g.getFile=function(){return _.D(this,R3c,3)};_.g.wi=function(){return _.wk(this,5)};
_.g.getMimeType=function(){return _.G(this,6)};_.g.VO=function(){return _.D(this,P3c,7)};W3c=[[8,9,10]];_.X3c=function(a){(0,_.S)(this,a,0,-1,null,W3c)};_.O(_.X3c,_.L);_.g=_.X3c.prototype;_.g.getName=function(){return _.G(this,1)};_.g.$c=function(a){return _.Hk(this,1,a)};_.g.getTitle=function(){return _.G(this,2)};_.g.setTitle=function(a){return _.Hk(this,2,a)};_.g.getFile=function(){return _.D(this,R3c,3)};Y3c=[[1,3]];_.Z3c=function(a){(0,_.S)(this,a,0,-1,null,Y3c)};_.O(_.Z3c,_.L);
_.Z3c.prototype.N7=function(){return _.D(this,N3c,2)};_.$3c=[[1,2,3]];a4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(a4c,_.L);var b4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(b4c,_.L);_.c4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.c4c,_.L);_.d4c=function(a){(0,_.S)(this,a,0,-1,null,_.$3c)};_.O(_.d4c,_.L);e4c=[2,3];_.f4c=function(a){(0,_.S)(this,a,0,-1,e4c,null)};_.O(_.f4c,_.L);_.f4c.prototype.getType=function(){return _.vk(this,1,0)};
_.g4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.g4c,_.L);_.g4c.prototype.getType=function(){return _.vk(this,1,0)};var h4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(h4c,_.L);h4c.prototype.getType=function(){return _.vk(this,1,0)};var i4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(i4c,_.L);_.j4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.j4c,_.L);var k4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(k4c,_.L);l4c=[1,2,4];_.m4c=function(a){(0,_.S)(this,a,0,-1,null,null)};
_.O(_.m4c,_.L);_.n4c=function(a){(0,_.S)(this,a,0,-1,l4c,null)};_.O(_.n4c,_.L);_.jO=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.jO,_.L);_.jO.prototype.getEmail=function(){return _.G(this,1)};_.jO.prototype.getTitle=function(){return _.G(this,2)};_.jO.prototype.setTitle=function(a){return _.Hk(this,2,a)};_.kO=[[2,3,4,5]];_.lO=function(a){(0,_.S)(this,a,0,-1,null,_.kO)};_.O(_.lO,_.L);_.lO.prototype.Jf=function(){return _.vk(this,1,0)};_.lO.prototype.getUser=function(){return _.D(this,_.t3c,2)};
var o4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(o4c,_.L);p4c=[1,2,3,4];_.q4c=function(a){(0,_.S)(this,a,0,-1,p4c,null)};_.O(_.q4c,_.L);_.r4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.r4c,_.L);_.s4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.s4c,_.L);_.t4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.t4c,_.L);_.u4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.u4c,_.L);_.u4c.prototype.getType=function(){return _.vk(this,1,0)};v4c=[1];
_.w4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.w4c,_.L);_.w4c.prototype.getFeature=function(){return _.vk(this,1,0)};_.x4c=function(a){(0,_.S)(this,a,0,-1,v4c,null)};_.O(_.x4c,_.L);var y4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(y4c,_.L);var z4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(z4c,_.L);var A4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(A4c,_.L);A4c.prototype.getType=function(){return _.vk(this,1,0)};_.mO=[[1,2,3,4,5,6,7,8,9,10,11,12,13,18,15,16,19,20,21]];
_.nO=function(a){(0,_.S)(this,a,0,-1,null,_.mO)};_.O(_.nO,_.L);_.nO.prototype.wy=function(){return _.D(this,A4c,10)};_.B4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.B4c,_.L);var C4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(C4c,_.L);_.D4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.D4c,_.L);_.E4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.E4c,_.L);_.E4c.prototype.getType=function(){return _.vk(this,1,0)};_.F4c=[[1,2,3,4,5]];_.G4c=function(a){(0,_.S)(this,a,0,-1,null,_.F4c)};
_.O(_.G4c,_.L);_.G4c.prototype.getUser=function(){return _.D(this,_.t3c,1)};var H4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(H4c,_.L);H4c.prototype.getType=function(){return _.vk(this,2,0)};H4c.prototype.ah=function(){return _.G(this,1)};_.I4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.I4c,_.L);_.g=_.I4c.prototype;_.g.getName=function(){return _.G(this,1)};_.g.$c=function(a){return _.Hk(this,1,a)};_.g.getTitle=function(){return _.G(this,2)};
_.g.setTitle=function(a){return _.Hk(this,2,a)};_.g.Na=function(){return _.D(this,_.V3c,3)};_.J4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.J4c,_.L);_.J4c.prototype.getParent=function(){return _.D(this,_.V3c,4)};_.J4c.prototype.Bg=function(a){return _.y(this,4,a)};var K4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(K4c,_.L);_.g=K4c.prototype;_.g.getName=function(){return _.G(this,1)};_.g.$c=function(a){return _.Hk(this,1,a)};_.g.getTitle=function(){return _.G(this,2)};
_.g.setTitle=function(a){return _.Hk(this,2,a)};_.g.Na=function(){return _.D(this,_.V3c,3)};_.L4c=[[1,5,3]];_.M4c=function(a){(0,_.S)(this,a,0,-1,null,_.L4c)};_.O(_.M4c,_.L);_.M4c.prototype.N7=function(){return _.D(this,K4c,2)};_.oO=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.oO,_.L);_.oO.prototype.RV=function(a){_.y(this,1,a)};_.oO.prototype.yq=function(){return _.D(this,_.tx,2)};_.oO.prototype.LD=function(a){_.y(this,2,a)};N4c=[[5,6]];_.O4c=function(a){(0,_.S)(this,a,0,-1,null,N4c)};
_.O(_.O4c,_.L);_.O4c.prototype.zh=function(){return _.D(this,H4c,2)};_.O4c.prototype.O=function(a){_.Qk(this,5,N4c[0],a)};P4c=[3,4,5];Q4c=[[6,7]];_.R4c=function(a){(0,_.S)(this,a,0,-1,P4c,Q4c)};_.O(_.R4c,_.L);_.R4c.prototype.O=function(a){_.Qk(this,6,Q4c[0],a)};var S4c=[1],dZc=function(a){(0,_.S)(this,a,0,-1,S4c,null)};_.O(dZc,_.L);var NN=[[1,2,3,4,5,6,7]],cZc=function(a){(0,_.S)(this,a,0,-1,null,NN)};_.O(cZc,_.L);var pO=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(pO,_.L);
pO.prototype.getQuery=function(){return _.D(this,_.Pe,1,1)};var T4c=function(a,b){return _.y(a,1,b)};pO.prototype.wo=function(){return _.C(this,4)};var U4c=function(a,b){return _.y(a,5,b)},V4c=[1,2,5,7,9,10,12],qO=function(a){(0,_.S)(this,a,0,-1,V4c,null)};_.O(qO,_.L);qO.prototype.Cd=function(){return _.Ok(this,_.Dl,1)};var W4c=function(a,b){return _.kb(a,1,b)};qO.prototype.Pg=function(a,b){return _.Rk(this,1,a,_.Dl,b)};qO.prototype.gea=function(a){_.Rk(this,2,a,_.nl,void 0)};
var X4c=function(a,b){return _.A(a,3,b)};qO.prototype.hn=function(){return _.C(this,4)};qO.prototype.pt=function(a){return _.A(this,4,a)};var Y4c=function(a,b){return _.kb(a,5,b)},Z4c=function(a,b){return _.A(a,6,b)};qO.prototype.wg=function(){return _.D(this,_.BB,8)};var $4c=function(a,b){return _.A(a,12,b||[])},a5c=function(a,b){return _.A(a,13,b)},b5c={mPb:0,lPb:1,UUb:2,V_b:3,Y_b:4},LN=[[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]],aZc=function(a){(0,_.S)(this,a,0,-1,null,LN)};_.O(aZc,_.L);
var gZc=[[1,2]],fZc=function(a){(0,_.S)(this,a,0,-1,null,gZc)};_.O(fZc,_.L);var jZc=[[1,2,3]],iZc=function(a){(0,_.S)(this,a,0,-1,null,jZc)};_.O(iZc,_.L);var c5c=[1],d5c=function(a){(0,_.S)(this,a,0,-1,c5c,null)};_.O(d5c,_.L);d5c.prototype.Rw=function(){return _.G(this,2)};
var e5c=function(a,b){return 1<a?2===b:a===b},f5c=function(a,b){if(0<=b)return!a||a<b?b:a;if(-1===b)return!a||1>=a?2:a+1;if(-2===b)return!a||2>=a?1:a-1;throw Error("Ce");},rO=function(a,b,c,d){this.item=a;this.count=void 0===b?0:b;this.H=void 0===c?1:c;this.O=d};_.g=rO.prototype;_.g.clone=function(){return new rO(this.item.clone(),this.count,this.H,this.O)};_.g.getId=function(){return this.item.getId()};_.g.Zb=function(){return this.count};_.g.getItem=function(){return this.item};
_.g.setItem=function(a){this.item=a};_.g.BM=function(a){this.H=a};_.g.equals=function(a){return this.count===a.Zb()&&this.H===a.H&&this.O===a.O&&_.Tk(this.item,a.getItem())};_.hN=function(a,b,c){this.response=a;this.Ve=void 0===b?0:b;this.O=void 0===c?null:c};_.IRc=function(a){this.H=a};g5c=function(){};h5c=function(a){this.H=a};_.JRc=function(a){this.H=a};LZc=function(a,b,c,d,e,f,h,k){this.status=a;this.O=b;this.V=c;this.ka=d;this.ha=e;this.Iy=f;this.H=h;this.W=k};
_.jN=function(a,b,c){this.response=a;this.Ve=void 0===b?0:b;this.O=void 0===c?null:c};_.QRc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};i5c=function(a){this.pageToken=void 0===a?"":a};_.TRc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.kN=function(a,b,c){this.response=a;this.Ve=void 0===b?0:b;this.O=void 0===c?null:c};_.OUc=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Ve=void 0===d?0:d};
_.iN=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Ve=void 0===d?0:d};j5c=function(a){_.iN.call(this,a,void 0,void 0,void 0);this.U_a=new _.Bo};_.N(j5c,_.iN);
var k5c=function(a,b){this.response=a;this.pageToken=void 0===b?"":b},MYc=function(){var a=_.q.Intl;return!(!a||!a.Collator)},l5c=function(a,b){return MYc()?(new _.q.Intl.Collator([a||"en-GB"],b||{})).compare:function(c,d){return c.localeCompare(d)}},m5c=function(a){return[].concat(_.Vc(new Set(a.map(function(b){return _.lQc.get(b)}).filter(function(b){return b})))).join(",")},sO=function(a,b,c){b=void 0===b?[]:b;c=void 0===c?!1:c;b=[].concat(_.Vc(b));b=m5c(b);var d=_.dL(a)?"kind,id,name,colorRgb,backgroundImageLink,creator(kind,permissionId,id,emailAddressFromAccount),permissionsSummary(entryCount,userEntryCount,groupEntryCount,memberCount,selectPermissions(kind,id,userId,emailAddress,domain,role,type,additionalRoles,view,audienceId,customerId)),trusted,primaryDomainName,organizationDisplayName,restrictions,backgroundImageGridViewLink,backgroundImageListViewLink,hidden":
_.E(a,80,!1)?"kind,id,name,colorRgb,backgroundImageLink,creator,permissionsSummary(entryCount,userEntryCount,groupEntryCount,memberCount,selectPermissions(kind,id,userId,emailAddress,domain,role,type,additionalRoles,view,audienceId,customerId,name,photoLink)),trusted,primaryDomainName,organizationDisplayName,restrictions,backgroundImageGridViewLink,backgroundImageListViewLink,hidden":"kind,id,name,colorRgb,backgroundImageLink,creator,permissionsSummary,trusted,primaryDomainName,organizationDisplayName,restrictions,backgroundImageGridViewLink,backgroundImageListViewLink,hidden";
c=c?"canAddChildren,canChangeDriveBackground,canComment,canCopy,canDeleteDrive,canDownload,canEdit,canManageMembers,canShare,canRename,canRenameDrive,canDeleteChildren,canTrashChildren":"canAddChildren,canAddFolderFromAnotherDrive,canChangeTeamDriveBackground,canComment,canCopy,canDeleteTeamDrive,canDownload,canEdit,canManageMembers,canManageVisitors,canRemoveChildren,canRename,canRenameTeamDrive,canShareOutsideDomain,canDeleteChildren,canTrashChildren";_.E(a,77,!1)&&(c+=",canChangeCategoryReferences");
_.E(a,93,!1)&&(c+=",canRemoveSecureLinkUpdateForAllFiles",d+=",removeSecureLinkUpdateForAllFiles");return(b.length?d+","+b:d)+",capabilities("+c+")"},n5c=function(a,b){b=void 0===b?[]:b;return"kind,nextPageToken,items("+sO(a,b,!1)+")"},tO=function(a){return a instanceof _.Dl?null!=a.getId()&&a.getId()==a.zc():null!=a.Gc()&&a.Gc()==a.zc()},o5c=function(a,b,c){c=void 0===c?[]:c;var d=_.Uk(a),e=b.dh();null!=e&&xYc(a,_.Uk(e));if((e=b.getCapabilities())&&null!=_.H(e,13)){var f=a.getCapabilities()||new _.xl,
h=_.H(e,13);_.A(f,13,h);_.JM(a,f)}e&&null!=_.H(e,18)&&(f=a.getCapabilities()||new _.xl,e=_.H(e,18),_.A(f,18,e),_.JM(a,f));HN(a,b,[76,208,156,61,77,134,81,82,101,93,90,78,222,85,79,189,190,80,135,102,34,91,41,59,95,75,94,221,122,2]);d.dh()&&HN(a,d,c)},p5c=function(a,b,c){c=void 0===c?[]:c;if(!b||!tO(a)&&!tO(b))return a;if(2==KN(a)){c=_.C(a,82);var d=_.Uk(b);o5c(d,a);_.USc(d,KN(b));_.sL(d,c);return d}a=_.Uk(a);o5c(a,b,c);return a},q5c=function(a){return(a=a?a.dh():null)&&a.Ql()||!1},r5c=function(a,
b){this.V=a;this.items={};this.fields=new Set;this.H={};this.O=new Set;this.W=new Set(b)},s5c=function(a,b,c,d){d.length&&(new Set(d.filter(function(e){return!a.W.has(e)&&!c.has(e)}))).forEach(function(e){a.log("Creating field cache for field: "+e);c.add(e);b[e]={}})},u5c=function(a,b,c){b.every(function(d){return tO(d)})?t5c(b,c,a.H,a.O):b.every(function(d){return!tO(d)})&&t5c(b,c,a.items,a.fields)},t5c=function(a,b,c,d){var e=_.wRc(b,[].concat(_.Vc(d)));0!==e.length&&a.forEach(function(f){e.forEach(function(h){var k=
c[h][f.getId()];k&&HN(f,k,[h])})})};r5c.prototype.update=function(a,b,c){b&&tO(b)?v5c(a,b,this.H,this.O,c):v5c(a,b,this.items,this.fields,c)};r5c.prototype.QE=function(a){var b=this;_.bg(this.items,function(c,d){_.jg(b.items[d],a)});_.bg(this.H,function(c,d){_.jg(b.H[d],a)})};var v5c=function(a,b,c,d,e){_.bg(c,function(f,h){h=Number(h);if(e.includes(h))if(f[a]&&!b)_.jg(f,a);else if(b&&uYc(b,[h])){var k=new _.Dl;k.Ob(b.getId());HN(k,b,[h]);f[a]=k}});b&&qYc(b,[].concat(_.Vc(d)))};
r5c.prototype.clear=function(){var a=this;_.bg(this.items,function(b,c){a.items[c]={}});_.bg(this.H,function(b,c){a.H[c]={}})};r5c.prototype.log=function(a){this.V.info("drive.ds.sync.cache.FieldsCache",a)};var w5c=function(a,b,c){var d=this;this.$u=b;this.Xv=c;this.Od=new Map;this.rootId="";a.addCallback(function(e){d.rootId=e})};_.g=w5c.prototype;_.g.iy=function(){return this.Od};
_.g.Tl=function(a){var b=new Map;a=_.m(a.Rl());for(var c=a.next();!c.done;c=a.next())c=c.value,this.Od.has(c)&&b.set(c,this.Od.get(c).getItem());return b};_.g.query=function(a,b){var c=[];if(x5c(a)){for(var d=_.m(this.Od.values()),e=d.next();!e.done;e=d.next())e=e.value,y5c(this.$u,a,e.getItem())&&(void 0===b||e5c(e.H,b))&&c.push(e);this.Xv.sort(a,c)}return c};_.g.get=function(a){return this.Od.get(a)};
_.g.getAll=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())(c=this.Od.get(c.value))&&b.push(c);return b};_.g.update=function(a){a.H?(a.H.count++,a.O&&a.O.count--,z5c(this,a.H)?(this.Od.delete(a.id),a.H.count--):this.Od.set(a.id,a.H)):(this.Od.delete(a.id),a.O.count--)};var z5c=function(a,b){return 1<b.Zb()||e5c(b.H,2)||b.getItem().IG()||QYc(b.getItem())?!1:"root"!==b.getId()&&b.getId()!==a.rootId};
w5c.prototype.QE=function(){for(var a=_.m(this.Od.values()),b=a.next();!b.done;b=a.next())b=b.value,z5c(this,b)&&(this.Od.delete(b.getId()),b.count--)};var A5c=function(a,b,c,d){this.Hg=a;this.W=b;this.O=c;this.V=d},BZc=function(a,b){return(b=a.O.get(b))?(b=b.clone(),u5c(a.V,[b.getItem()],v1c(a.Hg)),b):null};A5c.prototype.H=function(a){return(a=BZc(this,a))?a.getItem():null};
var B5c=function(a,b){var c={};b.forEach(function(d){var e=BZc(a,d);e&&(c[d]=e)});return c},C5c=function(a,b){return _.dg(B5c(a,b),function(c){return c.getItem()})},D5c=function(a,b){b=uO(a.W,b);return a.O.query(b).map(function(c){return c.clone()})};A5c.prototype.query=function(a){return D5c(this,a).map(function(b){return b.getItem()})};A5c.prototype.Md=function(){return this.O.iy().size};
var E5c=function(a){var b=new Set;a=_.m(a.O.iy().values());for(var c=a.next();!c.done;c=a.next()){c=c.value.getItem();for(var d=_.m(_.El(c)),e=d.next();!e.done;e=d.next())e=e.value,b.add(e.getId()||_.NF(e));(d=c.Bl())&&b.add(d.getId()||_.NF(d));(d=c.Hu())&&b.add(d.getId()||_.NF(d));(d=c.Pp())&&b.add(d.getId()||_.NF(d));(c=c.zB())&&b.add(c.getId()||_.NF(c))}return b.size},F5c=function(a){var b=new _.pq;_.aN(b,"hidden",a.Ql());a=_.H(a,6);null!=a&&_.aN(b,"canRemoveSecureLinkUpdateForAllFiles",a);return b.toString()},
G5c=function(a){switch(a?a.getType():-1){case 1:return[10];case 2:return[11];case 3:return[32];case 4:return[2];case 6:return[12];case 7:return[25];case 9:return[4];case 10:return[9];case 11:return[67];case 12:return[98];default:return null}},H5c=function(a){var b=MYc(),c={};b&&(c.numeric=b);this.H=l5c(a,c)};H5c.prototype.compare=function(a,b,c){b=I5c(b);c=I5c(c);a=a.Jc();var d=G5c(a);if(a&&d){d=J5c(this,a);var e=4===a.getType()?this.H:_.Fa;return K5c(a,d,e,b,c)}return _.Fa(b.getId(),c.getId())};
H5c.prototype.sort=function(a,b,c){a=a.Jc();var d=G5c(a);a&&d&&(d=J5c(this,a),d=L5c(b,d),_.Ia(b,M5c(this,a,d)));c&&0<c&&_.Ba(b,c,b.length-c)};
var I5c=function(a){return a instanceof _.Dl?a:a.getItem()},J5c=function(a,b){b=G5c(b);return _.v(a.O,a,b,_.Fa)},L5c=function(a,b){var c={};a.forEach(function(d){d=I5c(d);var e=d.getId();c[e]=b(d)});return c},M5c=function(a,b,c){return function(d,e){var f=4===b.getType()?a.H:_.Fa;d=I5c(d);e=I5c(e);return K5c(b,function(h){return c[h.getId()]},f,d,e)}},K5c=function(a,b,c,d,e){var f=1===_.vk(a,2,1)?1:-1;if(_.H(a,3)){a=JN(d,!0);var h=JN(e,!0);a=a===h?0:a?-1:1}else a=0;return a||f*(c(b(d),b(e))||_.Fa(d.getId(),
e.getId()))};H5c.prototype.O=function(a,b,c){for(var d=N5c(a[0],c),e=1;e<a.length;e++){var f=N5c(a[e],c);d=1===b(f,d)?f:d}return d};
var N5c=function(a,b){switch(a){case 21:return b.getId()||"";case 3:return b.getMimeType()||"";case 4:return b.kz()||!1;case 12:return b.Px()||0;case 11:return b.Jz()||0;case 10:return b.Gp()||0;case 2:return(b.getTitle()||"").toLowerCase();case 25:return b.Uw()||0;case 57:return _.C(b,62)||0;case 32:return b.Dt()||0;case 9:return b.nB()||0;case 67:return b.JH()||0;case 98:return b.Ss()||0;default:return""}},O5c=function(a,b){this.fields=a;this.rootId="";this.fields.sort();this.H=b;this.qq=_.YK(_.ZK(b));
a=_.oL(b);this.V=!(!a||!_.E(a,1,!1));this.O=!(!a||!_.E(a,8,!1))};O5c.prototype.pt=function(a){this.rootId=a||""};
var uO=function(a,b,c){b=_.Uk(b);"root"===b.getId()&&b.Ob(a.rootId);_.NM(b).filter(function(d){return"root"===d.Xa()}).forEach(function(d){return d.Jb(a.rootId)});_.Ve(b,_.MM(b).map(function(d){d.Jb(d.Xa().toLowerCase());return d}));c&&_.Zl(b,a.fields);b.O().sort();return b},vO=function(a,b,c){if(b instanceof _.Pe){b=uO(a,b);var d=_.rUc(b)}else if(b instanceof _.qp)d=b.Rl().sort().join(","),_.E(b,5,!1)&&(d+="|cachedOnly");else{if(b instanceof _.SK)return d=F5c(b),d+"|tdList";if(b instanceof _.yp)return d=
b.Rl().sort().join(","),b.O().length&&(d+="|"+m5c(b.O())),d+"|tdMap";throw Error("Ge");}return 3===c?d:d+"|"+P5c(a,b.O(),2===c)},P5c=function(a,b,c){var d="default";if(0===b.length)return d;var e=new Set(b),f=new Set(a.fields);c?(f.forEach(function(h){return e.delete(h)}),f.clear()):[].concat(_.Vc(e)).filter(function(h){return f.has(h)}).forEach(function(h){e.delete(h);f.delete(h)});f.size&&(d=d+" - "+_.AL({fields:[].concat(_.Vc(f)),qq:a.qq}));e.size&&(d=d+" + "+_.AL({fields:[].concat(_.Vc(e)),qq:a.qq}));
return d};O5c.prototype.equals=function(a,b,c){var d;c&&(d=3);return vO(this,a,d)===vO(this,b,d)};
var Q5c=function(a){if(!a.Rl().every(function(b){return!_.ld(b)}))throw new _.Ub("Invalid ids for FindByIdsRequest");},S5c=function(a,b,c){if(_.WL(b))throw new _.Ub("Did not expect a PeoplePredict request. Use peoplePredictQuery() for PeoplePredict requests. ");R5c(a,b,c)},R5c=function(a,b,c){var d;a.O||(d=_.wL(3));if(b.getId())throw new _.Ub("Use findByIds() for find by id queries.",d?d:_.wL(3));if(!b.ji()||0>=b.ji())throw new _.Ub("A positive limit is required on an ItemQueryRequest.",d?d:_.wL(3));
_.Kd(b,33);a.V&&c||(d=a.fields.slice(),c&&(d=d.concat(c)),T5c(a,d,b.O()));if(c=(c=b.Jc())&&G5c(c))d=b.O().length?b.O():a.fields,T5c(a,d,c);if(_.VL(b)){if(a.qq)throw new _.Ub("User must be authenticated for a Quick Access request.");if(!U5c(a)&&20<b.ji())throw new _.Ub("Limit must be in the range [1, 20].");c=2===_.OM(b);d=_.Kd(b,33).length;if(c&&1!==d||d&&!c)throw new _.Ub("A Team Drive Quick Access request must specify the Team Drive corpora and a single Team Drive id.");c=_.Dk(_.Bk(_.Bk(_.Bk(_.XG(_.Bk(_.Ck(_.XG(b.clone(),
1),30),32),33),45),47),48),6);d=new _.Pe;if(!_.Tk(c,d))throw new _.Ub("Some fields specified are not valid for a Quick Access request. Valid: field, request_descriptor, limit, team_drive, corpora, is_quick_access_request and mime_type. Extra: "+L1c(d,c));}if(_.cM(b)){if(a.qq)throw new _.Ub("User must be authenticated for a DrivePriority request.");if(2===_.OM(b))throw new _.Ub("Team Drive corpora is not valid for a Drive Priority request.");a=_.Bk(_.Bk(_.Bk(_.Ck(_.XG(b.clone(),1),30),32),45),52);
b=new _.Pe;if(!_.Tk(a,b))throw new _.Ub("Some fields specified are not valid for a Drive Priority request. Valid: field, request_descriptor, limit, corpora and is_drive_priority_request. Extra: "+L1c(b,a));}},V5c=function(a,b,c){if(!_.WL(b))throw new _.Ub("Expected a PeoplePredict request.");R5c(a,b,c);if(a.qq)throw new _.Ub("User must be authenticated for a People Predict request.");if(2===_.OM(b))throw new _.Ub("Team Drive corpora is not valid for a People Predict request.");a=_.Bk(_.Bk(_.Bk(_.Ck(_.XG(b.clone(),
1),30),32),45),49);b=new _.Pe;if(!_.Tk(a,b))throw new _.Ub("Some fields specified are not valid for a People Predict request. Valid: field, request_descriptor, limit, corpora and is_people_predict_request. Extra: "+L1c(b,a));},T5c=function(a,b,c){var d;a.O||(d=_.wL(3));if(!vYc(b,c,!0)){var e=_.AL({fields:c,qq:a.qq}),f=_.AL({fields:b,qq:a.qq});a=_.AL({fields:wYc(c,b),qq:a.qq});throw new _.Ub("Requested field was not previously specified. Needed "+e+", but had "+(f+". Missing: "+a+"."),d?d:_.wL(3));
}},U5c=function(a){return 200<=_.QM(a.H)&&300>_.QM(a.H)},W5c=function(a){var b=new Set;_.MM(a).forEach(function(c){switch(_.BUa(c.Xa())){case 7:b.add("IMAGE_ALL");break;case 2:b.add("AUDIO_ALL");break;case 14:b.add("VIDEO_ALL");break;case 4:b.add("DRAWING_ALL");break;case 10:b.add("PRESENTATION_ALL");break;case 12:b.add("SPREADSHEET_ALL");break;case 3:b.add("DOCUMENT_ALL");break;case 6:b.add("FORM_ALL")}});return[].concat(_.Vc(b))},X5c=function(a){switch(_.QM(a)){case 3:case 12:case 204:return"GOOGLE_DOCS";
case 4:case 13:case 207:return"GOOGLE_SHEETS";case 5:case 14:case 205:case 208:return"GOOGLE_SLIDES";case 6:case 203:return"GOOGLE_FORMS";case 232:return"GOOGLE_MEET";case 8:case 201:return"GOOGLE_SITES";case 229:case 216:return"GOOGLE_CLASSROOM";case 202:case 1:case 9:return"GOOGLE_DRIVE";case 228:return"GOOGLE_GMAIL";case 236:return"GOOGLE_CHAT";default:return"UNSPECIFIED_APPLICATION"}},Y5c=function(a){_.P.call(this);this.H=a};_.O(Y5c,_.P);_.g=Y5c.prototype;_.g.cancel=function(){this.H.cancel()};
_.g.connect=function(a){a&&a()};_.g.isConnected=function(){return!0};_.g.registerService=function(a,b,c){this.H.addCallback(function(d){d.registerService(a,b,c)})};_.g.kM=function(a){this.H.addCallback(function(b){b.kM(a)})};_.g.send=function(a,b){this.H.addCallback(function(c){c.send(a,b)})};_.g.Va=function(){this.cancel();Y5c.nb.Va.call(this)};var WYc=function(a){_.Zx.call(this);this.H=a;this.V=_.ce(this.H,"message",this.okb,!1,this)};_.O(WYc,_.Zx);_.g=WYc.prototype;_.g.zd=null;
_.g.send=function(a,b){var c=[];b=this.nva(c,b);a={serviceName:a,payload:b,"--goog.messaging.PortChannel":!0};_.sQc&&(a=(0,_.Ui)(a));this.H.postMessage(a,c)};_.g.okb=function(a){a=a.ye;var b=a.data;if(_.sQc)try{b=JSON.parse(b)}catch(e){return}if(_.Ca(b)&&b["--goog.messaging.PortChannel"]&&"serviceName"in b&&"payload"in b){var c=b.serviceName;b=b.payload;var d=this.getService(c,b);d&&(b=this.O(c,this.Bya(a.ports||[],b),d.rBa),null!=b&&d.callback(b))}};
_.g.nva=function(a,b){return b&&"[object MessagePort]"==Object.prototype.toString.call(b)?(a.push(b),{_port:{type:"real",index:a.length-1}}):Array.isArray(b)?_.ib(b,(0,_.v)(this.nva,this,a)):b&&b.constructor==Object?_.dg(b,function(c,d){c=this.nva(a,c);return"_port"==d?{type:"escaped",val:c}:c},this):b};
_.g.Bya=function(a,b){return Array.isArray(b)?_.ib(b,(0,_.v)(this.Bya,this,a)):b&&b.constructor==Object?b._port&&"real"==b._port.type?a[b._port.index]:_.dg(b,function(c,d){return this.Bya(a,"_port"==d?c.val:c)},this):b};_.g.Va=function(){_.Li(this.V);"[object MessagePort]"==Object.prototype.toString.call(this.H)?this.H.close():"[object Worker]"==Object.prototype.toString.call(this.H)&&this.H.terminate();delete this.H;WYc.nb.Va.call(this)};
var ZYc=function(a,b){if("*"==b)return new Y5c(_.yi(Error("He")));var c=new _.Ni(50),d=_.Wa(_.aa,c),e=new _.ri(d);_.ti(e,d);c.start();_.ce(c,"tick",function(){var f=new MessageChannel,h=function(){f.port1.removeEventListener("message",h,!0);c.isDisposed()||e.callback(new WYc(f.port1))};f.port1.start();f.port1.addEventListener("message",h,!0);a.postMessage({"--goog.messaging.PortChannel":!0},b,[f.port2])});return new Y5c(e)},Z5c=function(a){_.P.call(this);this.H=new _.COc(a);this.V={};this.O=_.EOc(this.H,
"private");this.W=_.EOc(this.H,"public");this.O.registerService("mics",(0,_.v)(this.Jhb,this),!0)};_.O(Z5c,_.P);_.g=Z5c.prototype;_.g.vAb=0;_.g.Va=function(){_.aa(this.H);delete this.H;delete this.W;delete this.O};_.g.send=function(a,b,c){var d=this.vAb++;this.V[d]=c;c={};c.signature=d;c.data=b;this.W.send(a,c)};_.g.Jhb=function(a){var b=a.signature;a=a.data;b in this.V&&((0,this.V[b])(a),delete this.V[b])};_.g.registerService=function(a,b){this.W.registerService(a,(0,_.v)(this.Ihb,this,b),!0)};
_.g.Ihb=function(a,b){a=a(b.data);var c=b.signature;_.ii(a).then((0,_.v)(function(d){var e={};e.data=d;e.signature=c;this.O&&this.O.send("mics",e)},this))};var YYc=function(a,b,c){_.P.call(this);this.W=c;this.started=!1;this.V=new _.COc(a);this.La(this.V);this.H=new Z5c(_.EOc(this.V,"direct"));this.La(this.H);a=_.EOc(this.V,"passthrough");this.O=b?a:new Z5c(a);this.La(this.O);this.oU=b};_.N(YYc,_.P);YYc.prototype.registerService=function(a,b){this.H.registerService(a,b)};
YYc.prototype.send=function(a,b,c){this.H.send(a,b||{},c||_.uf)};var wO=function(a,b,c){if(a.oU)throw Error("Ie");a.O.registerService(b,c,!0)},$5c=function(a,b,c,d){if(a.oU)throw Error("Je");a.O.send(b,c||{},d||_.uf)};YYc.prototype.start=function(){this.started||(this.started=!0);if(this.oU)throw Error("Ke");};TYc=[];a6c=function(a,b,c,d){this.clientId=a;this.method=b;this.args=c;this.requestId=d||null;this.yc=null};
b6c=function(a,b){b=void 0===b?!1:b;null==a.yc&&(a.yc=b)&&SYc(a.args);return{c:a.clientId,m:a.method,a:a.args,req:a.requestId,s:a.yc}};c6c=function(a,b,c){this.data=b?void 0:a;this.error=b;this.H=c;this.yc=null};d6c=function(a){var b=a.s,c=a.err&&b?new _.Tb(JSON.parse(a.err)):a.err;a=new c6c(c?void 0:a.d,c,a.uid);c||(a.yc=b);return a};XYc=function(a,b,c,d){this.channel=a;this.H=b;this.endpoint=c;this.O=d};e6c={gOb:0,zOb:1,fUb:3,j1b:5,meb:6,0:"ACCOUNT",1:"APPS",3:"ITEMS",5:"USER_PREFS",6:"PEOPLE"};
_.kM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.kM,_.L);_.kM.prototype.re=function(){return _.D(this,_.af,1)};var f6c=function(){var a=new _.kM,b=_.bf(new _.af,301);return _.y(a,1,b)};_.kM.prototype.zc=function(){return _.C(this,3)};_.RRc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.RRc,_.L);_.RRc.prototype.zc=function(){return _.C(this,1)};
var g6c=function(a){return _.D(a,_.eL,3)||_.D(a,_.wM,4)||_.D(a,_.lN,5)||_.D(a,_.sM,6)||_.D(a,_.NL,7)||_.D(a,_.GL,8)||_.D(a,_.KL,9)||_.D(a,_.pL,10)},h6c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(h6c,_.L);_.g=h6c.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Ob=function(a){return _.A(this,1,a)};_.g.ty=function(){return _.C(this,3)};_.g.Ie=function(){return _.C(this,4)};_.g.Mi=function(a){return _.A(this,4,a)};var i6c=function(a){this.zd=a;this.H=new Map;this.O=this.zd.W};
i6c.prototype.create=function(a,b){if(0!=B1c(b)){var c=this.zd.O(106001);if(c){var d=B1c(b),e=UN(c);_.A(e,2,d);d=UN(c);e=null;if(b instanceof _.OF||b instanceof _.qp||b instanceof _.Pe||b instanceof _.eM||b instanceof _.pC||b instanceof _.yp||b instanceof _.SK||b instanceof _.$K||"undefined"!=typeof _.uM&&b instanceof _.uM||b instanceof _.Ap)e=b.re();e=e&&_.E(e,2,!1);_.A(d,7,"boolean"==typeof e?e:void 0);d=UN(c);b=b instanceof _.Pe?0<_.NM(b).length:void 0;_.A(d,8,b);this.H.set(a,c)}}};
var j6c=function(a,b,c){if(a=a.H.get(b))a=UN(a),_.A(a,5,c)},k6c=function(a,b,c){(a=a.H.get(b))&&_.H(UN(a),8)&&(a=UN(a),_.A(a,9,c))},l6c=function(a,b,c,d,e){var f=a.H.get(b);f&&(UN(f).Ac(c),UN(f).Ai(d),null!=e&&(c=UN(f),_.A(c,6,e)),f.xk(),a.H.delete(b))},m6c=function(a,b,c){var d=a.H.get(b);if(d){var e=a.O.Bb(c);c=C1c(c);if(1==e||2==c)e=_.dN(_.vQc,c),d=UN(d),d=3==e||8==e?!_.H(d,5):0!=e?_.RQc.has(e):null,l6c(a,b,1,e,d)}},n6c=function(a,b,c){var d=a.O.Bb(c);d=_.dN(_.uQc,d||22);var e=C1c(c);e=_.dN(_.vQc,
e);l6c(a,b,d,e,"undefined"!=typeof _.hN&&c instanceof _.hN||"undefined"!=typeof _.jN&&c instanceof _.jN||"undefined"!=typeof _.kN&&c instanceof _.kN?c.O:null)},xO=function(a,b,c){c=void 0===c?3:c;var d=a.H.get(b);d&&(UN(d).Ac(c),d.xk(),a.H.delete(b))},yO=function(a,b){_.Fi.call(this,"Gb");this.error=a;this.H=b};_.N(yO,_.Fi);var o6c=[2,4],zO=function(a){(0,_.S)(this,a,0,-1,o6c,null)};_.O(zO,_.L);zO.prototype.Bb=function(){return _.C(this,1)};zO.prototype.Ac=function(a){return _.A(this,1,a)};
zO.prototype.Bj=function(){return _.C(this,3)};var p6c=[4,9],q6c=function(a){(0,_.S)(this,a,0,-1,p6c,null)};_.O(q6c,_.L);_.g=q6c.prototype;_.g.Bb=function(){return _.C(this,1)};_.g.Ac=function(a){return _.A(this,1,a)};_.g.fSa=function(){return _.C(this,2)};_.g.TIa=function(){return _.C(this,3)};_.g.Vnb=function(){return _.Ok(this,_.iL,4)};var r6c={S0b:0,yWb:1,BWb:2,OTHER:3,zWb:4},s6c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(s6c,_.L);s6c.prototype.getUrl=function(){return _.C(this,1)};
var AO=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(AO,_.L);var t6c=function(a,b){return _.A(a,1,b)};AO.prototype.getName=function(){return _.C(this,2)};AO.prototype.$c=function(a){return _.A(this,2,a)};AO.prototype.getEmail=function(){return _.C(this,3)};AO.prototype.jp=function(){return _.sk(this,3)};var u6c=[1],v6c=function(a){(0,_.S)(this,a,0,-1,u6c,null)};_.O(v6c,_.L);var w6c=function(a,b){return _.kb(a,1,b)},x6c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(x6c,_.L);_.g=x6c.prototype;
_.g.Gc=function(){return _.C(this,1)};_.g.Bb=function(){return _.C(this,2)};_.g.Ac=function(a){return _.A(this,2,a)};_.g.getError=function(){return _.D(this,_.Tb,3)};_.g.Oe=function(a){return _.y(this,3,a)};_.g.Fn=function(){return _.sk(this,3)};var y6c=[2],BO=function(a){(0,_.S)(this,a,0,-1,y6c,null)};_.O(BO,_.L);BO.prototype.Bb=function(){return _.C(this,1)};BO.prototype.Ac=function(a){return _.A(this,1,a)};BO.prototype.dk=function(){return _.Ok(this,_.HA,2)};
var z6c=function(a,b){return _.kb(a,2,b)};BO.prototype.Bj=function(){return _.C(this,3)};var A6c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(A6c,_.L);var B6c=[1],C6c=function(a){(0,_.S)(this,a,0,-1,B6c,null)};_.O(C6c,_.L);var D6c=function(a,b){return _.A(a,1,b||[])},E6c=function(a,b){this.O=a|0;this.H=b|0};E6c.prototype.equals=function(a){return this===a?!0:a instanceof E6c?this.O===a.O&&this.H===a.H:!1};E6c.prototype.Cc=function(){return 31*this.O+17*this.H|0};
var F6c=function(a,b){return new E6c(a,b)},G6c=function(a,b){b=~b;a?a=~a+1:b+=1;return F6c(a,b)},H6c=function(a){var b="-"===a[0];a=a.slice(b?3:2);return(b?G6c:F6c)(parseInt(a.slice(-8),16),parseInt(a.slice(-16,-8)||"",16))},I6c=function(){this.H=this.W=this.O=this.V=null},J6c=function(a,b,c){this.id=a;this.O=b;this.H=c},K6c=function(a,b){return new J6c((a?a:b).getId(),a,b)},CO=function(a){return new J6c(a.getId(),null,a)},L6c=function(a){this.W=a;this.O=new Map;this.V=new Set;this.enabled=!0;this.error=
null;this.started=!1},DO=function(a,b,c){if(a.started)throw Error("Te");c={In:new Set(b),callback:c};b=_.m(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=a.O.get(d)||[];e.push(c);a.O.set(d,e)}},EO=function(a,b){if(!a.started)throw Error("Ue");if(!a.enabled)throw Error("Ve`"+a.error+"`"+(a.error.stack?"\nOriginal stack: "+a.error.stack:""));a.log("Passing Milestone: "+b);a.V.add(b);var c=a.O.get(b);if(c){a.O.delete(b);for(var d=0;d<c.length;++d){var e=c[d];e.In.delete(b);if(0===e.In.size)try{e.callback()}catch(f){throw a.enabled=
!1,a.error=f,f;}}}};L6c.prototype.H=function(a){return this.V.has(a)};L6c.prototype.start=function(){this.started=!0};L6c.prototype.log=function(a){this.W.info("drive.ds.MilestoneManager",a)};var M6c=function(){_.Q.call(this);this.H=Date.now()};_.N(M6c,_.Q);M6c.prototype.ML=function(){this.H=Date.now();this.dispatchEvent("Hb")};var N6c=function(a,b,c){_.Q.call(this);this.va=a;this.ka=b;this.O=!0;this.H=this.timeout=this.W=null;this.V=!1;this.ha=c};_.N(N6c,_.Q);N6c.prototype.Yz=function(){return this.O};
N6c.prototype.g5=function(){var a=this;if(this.W)return this.W;var b=_.ni();this.W=b.promise;_.q.setTimeout(function(){a.W=null},5E3);O6c(this,b);return b.promise};N6c.prototype.ma=function(){!0===this.O&&(this.log("Became unauthenticated."),this.O=!1,this.V=!0,P6c(this))};N6c.prototype.ta=function(){!1===this.O&&(this.log("Became authenticated."),this.O=!0,this.H=null,this.V=!1,this.timeout&&(_.q.clearTimeout(this.timeout),this.timeout=null),this.dispatchEvent(new U1c("eb")))};
var P6c=function(a){a.H||(a.H=new _.jVc(5E3),a.timeout=_.q.setTimeout(function(){return Q6c(a)},a.H.Xa()))},Q6c=function(a){O6c(a);a.H&&(_.VG(a.H),a.timeout=_.q.setTimeout(function(){return Q6c(a)},a.H.Xa()))},O6c=function(a,b){_.ii().then(function(){return R6c(a,b)})},R6c=function(a,b){a.log("Checking authentication state.");var c=a.va.then(function(d){return d.hh(new _.SRc)});b?c.then(function(){var d=b.resolve;var e=new A6c;e=_.A(e,1,1);d.call(b,e)},function(d){var e=_.yL(d).$g;d=0;_.FQc(e)?(a.log("Checked authentication state: unauthenticated."),
d=2):(a.log("Checked authentication state: error occurred."),_.hr(e),_.A(e,21,"Checked authentication state: error occurred."),a.ha(e));e=new A6c;_.A(e,1,d);b.resolve(e)}):c.then(null,function(d){d=_.yL(d);_.FQc(d.$g)&&a.V&&(a.dispatchEvent(new U1c("fb")),a.V=!1)})};N6c.prototype.log=function(a){this.ka.info("drive.ds.sync.auth.StateManager",a)};var S6c=function(a,b){this.$u=a;this.Xv=b;this.sL=!0;this.v5=!1;this.Ve=0},T6c=function(a){a.sL=!1;a.QE()};_.g=S6c.prototype;
_.g.vxa=function(a,b){var c=this;if(5===this.UG(a))throw Error("We");var d=[];_.Ka(this.iy(),function(e){y5c(c.$u,a,e.getItem())&&d.push(e)});this.Xv.sort(a,d,b);return d};_.g.Md=function(){return this.iy().length};_.g.Tl=function(a){var b=this.vxa(a,void 0);b=oZc(b);var c=new _.IA;c.Bv(b);c.Ac(this.vP(a)?6:1);return c};_.g.update=function(a){var b=this.Zs(a.O),c=this.Zs(a.H);if(!b&&!c)return!1;b&&this.kH(a.O);c&&this.rP(a.H);return!0};_.g.UG=function(a){return this.sL&&this.v5?x5c(a)?1:5:5};
_.g.E0=function(){this.v5=!0};_.g.Zs=function(a){return!!a&&this.sL};_.g.Ai=function(a){this.Ve=a};_.g.Re=function(){return this.Ve};var FO=function(a,b,c,d,e,f){f=void 0===f?"":f;S6c.call(this,a,b);this.W=c;this.nextPageToken=f;this.Od=[];this.O={};this.request=uO(c,d,!0);this.H=!e;U6c(this,e);this.V=(0,_.v)(this.Xv.compare,this.Xv,this.request)};_.N(FO,S6c);_.g=FO.prototype;_.g.qd=function(){return this.request};
_.g.rP=function(a){var b=this.O[a.getId()];b&&this.kH(b);lYc(this.Od,a,this.V);this.O[a.getId()]=a;a.count++;this.Od.length>this.request.ji()&&(this.kH(_.ia(this.Od)),this.H=!1)};_.g.kH=function(a){var b=this.Od,c=_.Ga(b,a,this.V);0<=c&&_.ra(b,c);_.jg(this.O,a.getId());a.count--};_.g.QE=function(){this.Od.forEach(function(a){a.count--});this.Od=[];this.O={}};_.g.iy=function(){return this.Od};
_.g.UG=function(a){var b;if(b=this.W.equals(this.request,a,!0))a=a.O(),b=this.request.O(),b=vYc(b,a,!0);return b?this.H?1:6:5};_.g.vxa=function(a,b){if(5===this.UG(a))throw Error("We");b=b?Math.min(b,this.Od.length):this.Od.length;return _.Aa(this.Od,0,b)};_.g.Zs=function(a){if(!S6c.prototype.Zs.call(this,a)||!y5c(this.$u,this.request,a.getItem()))return!1;if(this.H||_.E(this.request,48,!1))return!0;var b=_.ia(this.Od);return!!b&&0>=this.V(a,b)};_.g.vP=function(){return this.H?!1:!0};
_.g.getType=function(){return"CacheHintCorpusCache"};_.g.Fk=function(a,b){var c=this,d=_.ia(this.Od);!this.H&&d&&_.la(a,function(e){return e.getId()===d.getId()})&&(b?(this.kH(d),U6c(this,_.ia(a))):this.H=!0);_.Ka(a,function(e){c.update(CO(e))})};var U6c=function(a,b){b&&y5c(a.$u,a.request,b.getItem())&&a.rP(b)};FO.prototype.Rw=function(){return this.nextPageToken};var GO=function(a,b){S6c.call(this,a,b);this.Od={}};_.N(GO,S6c);GO.prototype.rP=function(a){this.Od[a.getId()]=a;a.count++};
GO.prototype.kH=function(a){_.jg(this.Od,a.getId());a.count--};GO.prototype.QE=function(){_.bg(this.Od,function(a){a.count--});this.Od={}};GO.prototype.iy=function(){return Object.values(this.Od)};var HO=function(a,b,c,d,e){GO.call(this,a,b);var f=this;this.H=e;DO(c,["aU7Ts","BNEDtc"],function(){return f.E0()})};_.N(HO,GO);
HO.prototype.UG=function(a){var b=this,c=GO.prototype.UG.call(this,a);if(5==c)return c;if(0<_.Kd(a,33).length)return 5;a=_.NM(a);return 0<a.length&&!a.every(function(d){d=b.Od[d.Xa()];return null!=d&&!d.getItem().zc()&&EYc(d.getItem())&&!_.H(d.getItem(),108)})?5:1};HO.prototype.Zs=function(a){return GO.prototype.Zs.call(this,a)&&V6c(this,a.getItem())};var V6c=function(a,b){if(_.H(b,31)||!a.v5)return!0;var c=a.H();return b.Ej().some(function(d){var e=a.Od[d];return d==c||null!=e&&EYc(e.getItem())})};
HO.prototype.E0=function(){var a=this;GO.prototype.E0.call(this);_.bg(this.Od,function(b){V6c(a,b.getItem())||(b.count--,_.jg(a.Od,b.getId()))})};HO.prototype.qd=function(){return new _.Pe};HO.prototype.getType=function(){return"SubscribedCorpusCache"};HO.prototype.vP=function(){return!1};var W6c=/^[\x00-\x7F]*$/,X6c=function(){this.rootId=""};X6c.prototype.pt=function(a){this.rootId=a||""};
var x5c=function(a){return Y6c(a)&&0==_.Kd(a,40).length&&void 0==_.C(a,41)},Y6c=function(a){var b=!0;_.Ok(a,_.Re,13).forEach(function(d){"me"!=d.Xa()&&(b=!1)});var c=a.Jc();c=!c||5!=c.getType();return 0==_.Ok(a,_.Vl,5).length&&0==_.Ok(a,_.Re,14).length&&0==_.Ok(a,_.Re,15).length&&!_.sk(a,58)&&!_.H(a,18)&&!_.H(a,34)&&0==_.Ok(a,_.KM,35).length&&0==_.Ok(a,_.KM,38).length&&c&&b&&0==_.Kd(a,39).length&&!_.C(a,42)&&0==_.Ok(a,_.Pl,44).length&&!_.VL(a)&&!_.WL(a)&&!_.cM(a)&&0==_.Ok(a,_.Ql,57).length&&Z6c(a)&&
!_.D(a,_.Ona,59)&&null==_.H(a,60)&&0==_.Ok(a,_.Re,68).length&&0==_.Ok(a,_.Re,67).length&&null==_.H(a,69)},Z6c=function(a){return _.Ok(a,_.Wl,4).every(function(b){return W6c.test(b.Xa())})};X6c.prototype.q6=function(a,b){var c=this;return b.filter(function(d){return y5c(c,a,d)})};
var y5c=function(a,b,c){var d;if(d=!!c)d=c.getId()!=a.rootId&&!tO(c);if(d){d=!0;var e=_.Ok(b,_.Wl,4);if(Z6c(b))for(var f=0;f<e.length&&d;f++){var h=e[f];if(h.Xa()){var k=_.E(h,3,!1),l=(c.getTitle()||"").toLowerCase(),n=h.Xa().toLowerCase();if(2==_.C(h,1))l=n==l,d=d&&(k?!l:l);else{h=[];n=n.replace(/_/g," ");if(0<=n.indexOf("-"))for(var p=/\w*-[\w-]*/,t;t=n.match(p);)h.push(t[0]),n=n.replace(p,"");h.push.apply(h,_.Vc(n.split(/\b/)));for(n=0;n<h.length&&d;n++)p=h[n],t=!0,0!=(0,_.Zf)(p).length&&(0==p.replace(/\./g,
"").length&&(t=!1),p=!!l.match(new RegExp((t?"(^|[^\\w]|_)":"")+_.Yg(p))),d=d&&(k?!p:p))}}}else d=!0}if(d){l=_.MM(b);e=d=0;k=f=!1;l=_.m(l);for(h=l.next();!h.done;h=l.next())h=h.value,h.Xa()&&(p=c.getMimeType()||"",_.H(h,4)&&(p=(n=c.wf())&&_.C(n,3)||""),n=_.E(h,2,!1),h=_.AM(b)?h.Xa().toLowerCase()==p.toLowerCase():h.Xa()==p,n?(e++,k=k||h):(d++,f=f||h));d=d&&!f||e&&k?!1:!0}if(d)for(d=!0,e=_.Ok(b,_.Sl,7),e=_.m(e),f=e.next();!f.done;f=e.next())f=f.value,k=c.Gp(),d=d&&$6c(k,f);if(d)for(d=!0,e=_.Ok(b,_.Sl,
8),e=_.m(e),f=e.next();!f.done;f=e.next())f=f.value,k=c.Px(),d=d&&$6c(k,f);d&&(d=b.Ah(),e=(e=_.OM(b))&&(2==e||3==e),d=null==d||d==!!c.Ah()&&(!d||1==c.ko()||!!e));d&&(d=null==_.H(b,10)||_.H(b,10)==!!c.kz());d&&(d=null==b.Ql()||b.Ql()==!!c.Ql());if(d)a:{d=_.NM(b);d=_.m(d);for(e=d.next();!e.done;e=d.next())if(e=e.value,e.Xa()&&(f="root"==e.Xa()&&a.rootId||e.Xa(),f=c.Ej().includes(f),_.E(e,2,!1)?f:!f)){d=!1;break a}d=!0}if(a=d)a:{a=_.Ok(b,_.Re,13);a=_.m(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,
"me"==d.Xa()&&(e=1==c.ko(),_.E(d,2,!1)?e:!e)){a=!1;break a}a=!0}a&&(a=null==_.H(b,16)||(_.H(b,16)?null!=c.Uw():!0));a&&(a=_.H(b,17),d=(d=_.OM(b))&&(2==d||3==d),a=null==a||a==!!c.IG()&&(!a||1==c.ko()||!!d));a&&(a=OYc(c),a=null==_.H(b,19)||_.H(b,19)==!!_.Bl(a));a&&(a=!0);if(a=a&&a7c(b,c)&&b7c(b,c))a=_.Kd(b,33),a=!a.length||a.includes(c.zc()||"");if(a=a&&c7c(b,c))_.C(b,41)?(a=_.D(c,_.GM,86),a=null!=a&&_.C(b,41)==_.C(a,3)):a=!0;if(a=a&&d7c(b,c))a=_.OM(b),1==a?(a=_.H(c,31),a=!!_.NM(b).length||!!_.Ok(b,
_.KM,35).length||1==_.H(b,18)||_.VL(b)||_.WL(b)||_.cM(b)||!!b.Zp()||null==a||a):a=2==a?!!c.zc():!0;a&&(a=_.VL(b)?!!_.Ll(c)&&!c.Ah():!0);a&&(a=_.WL(b)?!!_.Ml(c).length&&!c.Ah():!0);a&&(a=_.cM(b)?!!_.Ok(c,_.ul,117).length&&!c.Ah():!0);a&&(a=_.sk(b,50)?_.E(b,50,!1)?_.sk(c,101)&&0!==_.C(c,101):!_.sk(c,101):!0);a&&(a=b.Zp(),a=!a||_.Kd(c,120).includes(a));a&&(c=_.D(c,_.DM,138),null==_.H(b,65)||null==c?a=!0:(c=2==_.C(c,1),a=_.H(b,65)==c));return a},$6c=function(a,b){if(null!=_.C(b,2))switch(_.C(b,1)){case 1:return a<=
_.C(b,2);case 2:return a<_.C(b,2);case 3:return a==_.C(b,2);case 4:return a>_.C(b,2);case 5:return a>=_.C(b,2);default:return!1}return!0},a7c=function(a,b){var c=_.og(_.Kd(b,56));a=_.Ok(a,_.LM,25);return 0==a.length?!0:a.every(function(d){return c[d.Xa()]})},b7c=function(a,b){if(0==a.Vw().length)return!0;var c=_.og(b.Vw().map(function(d){return _.C(d,1)}));a=_.og(a.Vw().map(function(d){return _.C(d,1)}));return _.eg(a,function(d,e){return c[e]})},c7c=function(a,b){var c=_.og(_.Kd(b,50));a=_.Ok(a,
_.Tl,37);return 0==a.length?!0:a.every(function(d){return c[d.Xa()]})},d7c=function(a,b){if(_.Kd(a,40).length){if(b=_.D(b,_.GM,86)){var c=_.og(_.Kd(b,2));return _.Kd(a,40).some(function(d){return c[d]})}return!1}return!0},IO=function(a,b,c){GO.call(this,a,b);this.teamDriveId=c};_.N(IO,GO);_.g=IO.prototype;
_.g.UG=function(a){var b=this,c=GO.prototype.UG.call(this,a);if(5==c)return c;c=_.NM(a);var d=c.every(function(e){var f=e.Xa();return(null!=b.Od[f]||b.teamDriveId==f)&&!_.E(e,2,!1)});if(0<c.length&&d)return 1;a=_.Kd(a,33);return 0!=a.length&&a.includes(this.teamDriveId)?1:5};_.g.Zs=function(a){return GO.prototype.Zs.call(this,a)&&!!a&&a.getItem().zc()==this.teamDriveId&&!tO(a.getItem())};_.g.vP=function(){return!1};_.g.qd=function(){var a=new _.Pe;_.BN(a,[this.teamDriveId]);_.CN(a,2);return a};
_.g.zc=function(){return this.teamDriveId};_.g.getType=function(){return"TeamDriveCorpusCache: "+this.teamDriveId};var e7c=function(a){this.W=a;this.V=[];this.H=null;this.O=[];a=new _.Pe;_.A(a,48,!0);var b=new _.Hc;_.Ic(b,11);_.Jc(b,2);_.Qe(a,b);this.ha=uO(this.W,a,!0)};e7c.prototype.addAll=function(a){var b=this;a.forEach(function(c){c instanceof HO?b.H=c:c instanceof FO?b.V.push(c):c instanceof IO&&b.O.push(c)})};
e7c.prototype.removeAll=function(a){var b=this;a.forEach(function(c){if(c instanceof HO)b.H&&(T6c(b.H),b.H=null);else if(c instanceof FO){var d=_.ka(b.V,function(e){return b.W.equals(e.qd(),c.qd())});0<=d&&(T6c(b.V[d]),_.ra(b.V,d))}else c instanceof IO&&(d=_.ka(b.O,function(e){return b.W.equals(e.qd(),c.qd())}),0<=d&&(T6c(b.O[d]),_.ra(b.O,d)))})};
var f7c=function(a){var b=[];a.H&&b.push(a.H);_.ya(b,_.xa(a.V));_.ya(b,_.xa(a.O));return b},g7c=function(a,b){b=void 0===b?!1:b;return a.V.filter(function(c){return a.H&&b?(c=_.Uk(c.qd()),_.Bk(c,32),_.Dk(c,26),!_.Tk(a.ha,c)):!0})};e7c.prototype.HT=function(){return _.xa(this.O)};
var h7c=function(a,b){return _.If(a.O,function(c){return c.zc()===b})},i7c=function(a,b){return g7c(a).find(function(c){return a.W.equals(c.qd(),uO(a.W,b,!0))})},j7c=function(a,b){_.Fi.call(this,"Ib");this.ids=a;this.error=b};_.N(j7c,_.Fi);j7c.prototype.getError=function(){return this.error};j7c.prototype.H=function(){return this.ids};var k7c=function(a){_.Fi.call(this,"Jb");this.people=a};_.N(k7c,_.Fi);k7c.prototype.getPeople=function(){return this.people};
var l7c=function(a){_.Fi.call(this,"Kb");this.people=a};_.N(l7c,_.Fi);l7c.prototype.getPeople=function(){return this.people};var n7c=function(a,b,c){this.person=a;this.Ve=void 0===c?0:c;this.O=this.V=null;this.H=new Set(b?[b]:[]);m7c(this)};n7c.prototype.Re=function(){return this.Ve};
var m7c=function(a){1===a.Ve?(a.V=Date.now(),a.O=null):4===a.Ve&&(a.O=Date.now())},p7c=function(a,b,c,d){_.Q.call(this);var e=this;this.O=a;this.V=b;this.W=c;this.ha=d;this.H=[];this.ka=new _.QK(function(){return o7c(e)},100,this)};_.N(p7c,_.Q);p7c.prototype.ih=function(a){a&&_.dL(this.O)&&(this.H.includes(a)||this.H.push(a),this.ka.ue())};
var o7c=function(a){a.ha.then(function(){for(;a.H.length;){var b=a.H.splice(0,50);a.log("Querying for people. Size: "+b.length+". Pending: "+(a.H.length+" "+b));a.sendRequest(b)}})};p7c.prototype.sendRequest=function(a){var b=this;return this.W.then(function(c){return c.hh(s1c(new _.jM,a))}).then(function(c){c=_.Ok(c,AO,1);b.dispatchEvent(new k7c(c))},function(c){c=_.yL(c);b.dispatchEvent(new j7c(a,c))})};p7c.prototype.log=function(a){this.V.info("drive.ds.sync.query.PeopleQueryRunner",a)};
var JO=function(a,b,c,d,e,f){_.Q.call(this);var h=this;this.H=new Map;this.W=new Map;this.Pc=new _.oe(this);this.La(this.Pc);this.ta=b;this.V=d;this.ma=e;this.O=!_.E(a,90,!1);(d=_.D(a,x0c,85))||(d=new x0c);this.ka=_.wk(d,1,864E5);this.ha=new p7c(a,b,c,f);this.va=new _.uD(function(){var k=D1c(h.ma,106015);if(k){var l=_.D(_.cN(k),n1c,11);if(!l){l=new n1c;var n=_.cN(k);_.y(n,11,l)}_.A(l,1,h.H.size);k.xk()}},500,this);this.Pc.listen(this.ha,"Jb",function(k){k=k.getPeople();q7c(h,k,1);h.va.ue()});this.Pc.listen(this.ha,
"Ib",function(k){r7c(h,k)})};_.N(JO,_.Q);JO.prototype.get=function(a){var b=this.O?_.bh():"";this.O&&this.V.create(b,s1c(new _.jM,[a]));var c=this.H.get(a);if(c)return s7c(this,c)?(this.O&&xO(this.V,b,this.oF(c)?6:5),t7c(this,a)):this.O&&l6c(this.V,b,1,_.dN(_.vQc,10),null),c;this.O&&xO(this.V,b,5);return null};var t7c=function(a,b){if(!b)return Promise.resolve();if(a.W.has(b))return a.W.get(b).promise;a.ha.ih(b);var c=new _.Bo;a.W.set(b,c);return c.promise};
JO.prototype.Pb=function(a){var b=this,c=this.O?_.bh():"";this.O&&this.V.create(c,s1c(new _.jM,[a]));return u7c(this,a)?(this.O&&l6c(this.V,c,1,_.dN(_.vQc,10),null),Promise.resolve(this.H.get(a))):t7c(this,a).then(function(){b.O&&(u7c(b,a)?l6c(b.V,c,1,_.dN(_.vQc,1),null):xO(b.V,c,3));return b.H.get(a)})};JO.prototype.uc=function(){return 0===this.H.size};JO.prototype.clear=function(){this.log("Clearing the PeopleCache.");this.H.clear()};
var v7c=function(a){return[].concat(_.Vc(a.H.values())).filter(function(b){return[1,4,2].includes(b.Re())&&4!==b.Re()}).map(function(b){return b.person.clone()})},w7c=function(a,b){return(a=a.H.get(b))?[].concat(_.Vc(a.H)):[]},x7c=function(a,b,c){c=_.m(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=a.H.get(d);e&&(e.H.delete(b),0===[].concat(_.Vc(e.H)).length&&a.H.delete(d))}},q7c=function(a,b,c){if(![1,2].includes(c))throw Error("Xe");0!==b.length&&(a.log("Importing "+b.length+" from "+
(Object.keys(r6c)[c]+".")),y7c(a,b,c))},z7c=function(a,b,c,d){0!==b.length&&a.import(b,c,void 0===d?0:d)},u7c=function(a,b){b=a.H.get(b);return!(!b||![1,4,2].includes(b.Re())||s7c(a,b))};
JO.prototype.import=function(a,b,c){c=void 0===c?0:c;var d=!1;a=_.m(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=this.H.get(_.C(e,1));if(f){var h=c;if(_.C(e,1)!==_.C(f.person.clone(),1))e=!1;else{var k=f.Re();if((k=4===h?!1:1===k?1===h:3===k||2===k||4===k?0!==h&&4!==h&&k!==h:!0)||4===h){var l=_.$Qc.get(f.Ve)||1,n=!1;k&&(n=!_.Tk(f.person,e),f.person=e.clone());f.Ve=h;m7c(f);e=n||l!==(_.$Qc.get(f.Ve)||1)}else e=!1}e&&(d=!0);b&&f.H.add(b)}else 4!==c&&(d=!0,f=c,h=b,1!==f&&t7c(this,_.C(e,
1)),f=new n7c(e,h,f),this.H.set(_.C(e,1),f))}return d};JO.prototype.oF=function(a){return 1===a.Re()&&Date.now()-Number(a.V)>this.ka};var s7c=function(a,b){switch(b.Re()){case 1:return Date.now()-Number(b.V)>a.ka;case 4:return 1E3<Date.now()-Number(b.O);default:return!0}};JO.prototype.log=function(a,b){this.ta.log("drive.ds.sync.cache.PeopleCache",a,void 0===b?"info":b)};
var r7c=function(a,b){b=b.H().map(function(c){var d=a.H.get(c);return d?d.person.clone():t6c(new AO,c)});y7c(a,b,4)},y7c=function(a,b,c){for(var d=_.m(b),e=d.next();!e.done;e=d.next()){e=_.C(e.value,1);var f=a.W.get(e);f&&(f.resolve(),a.W.delete(e))}a.import(b,void 0,c)&&a.dispatchEvent(new l7c(b))},A7c=function(a,b,c,d,e,f){_.Q.call(this);var h=this;this.Pc=new _.oe(this);this.La(this.Pc);this.H=new JO(a,b,c,d,e,f);this.O=_.oL(a)||new _.HQc;this.Pc.listen(this.H,"Kb",function(k){return h.dispatchEvent(k)})};
_.N(A7c,_.Q);A7c.prototype.UM=function(a){var b=this;if(a.H){var c=a.H.getItem(),d=KO(this,[c]).map(function(e){return B7c(b,e)});z7c(this.H,d,a.H.getId(),this.Re(_.C(c,82)))}a.O&&x7c(this.H,a.id,C7c(this,a))};A7c.prototype.Re=function(a){return _.aRc.get(a)||0};
var C7c=function(a,b){var c=D7c(a,b.O),d=D7c(a,b.H);return c.filter(function(e){return!d.includes(e)})},D7c=function(a,b){return b?KO(a,[b.getItem()]).map(function(c){return _.NF(c)}):[]},F7c=function(a,b){b=b.getUser();z7c(a.H,[B7c(a,b)],"ACCOUNT");E7c(a,b)},H7c=function(a,b){var c=_.Ok(b,_.UM,2).map(function(d){var e=_.D(d,_.nl,9,1);return a.H.Pb(_.NF(e)).then(function(){return void G7c(a,[e])})});return Promise.all(c).then(function(){return b})},G7c=function(a,b){b=_.m(b);for(var c=b.next();!c.done;c=
b.next())c=c.value,_.NF(c)&&E7c(a,c)},I7c=function(a,b,c){for(var d=new Set,e=_.m(b),f=e.next();!f.done;f=e.next())f=f.value,_.NF(f)&&(d.add(_.NF(f)),z7c(a.H,[B7c(a,f)],c));return Promise.all([].concat(_.Vc(d)).map(function(h){return a.H.Pb(h)})).then(function(){return G7c(a,b)})},K7c=function(a,b){return KO(a,[b]).some(function(c){return!J7c(a,_.NF(c))})},J7c=function(a,b){return u7c(a.H,b)},KO=function(a,b){return b.map(function(c){var d=c.Dv();d=d?[].concat(_.Vc(d.gP()),_.Vc(_.Ok(d,_.nl,3))):[];
var e=c.wf();e=(e=e&&_.Pd(e))?KO(a,[e]):[];return[].concat(_.Vc(_.El(c)),[c.Bl(),c.Hu(),c.Pp(),c.zB()],_.Vc(d),_.Vc(e))}).flat().filter(function(c){return c&&!!_.NF(c)})};A7c.prototype.getItems=function(a){return w7c(this.H,a).filter(function(b){return"ACCOUNT"!==b})};
var L7c=function(a,b){return b.map(function(c){c=c.clone();var d=KO(a,[c]);d=_.m(d);for(var e=d.next();!e.done;e=d.next())e=e.value,_.Bk(e,3),_.Bk(e,8),_.Bk(e,5);return c})},N7c=function(a,b){return b.some(function(c){return M7c(a,c)})},M7c=function(a,b){return KO(a,[b]).some(function(c){return _.sk(c,3)||c.jp()||_.sk(c,5)})},E7c=function(a,b){var c=a.H.get(_.NF(b));if(c){a=c.person.clone();var d=_.iSc(b.$c(a.getName()),a.getEmail());c=_.$Qc.get(c.Ve)||1;_.A(d,16,c);(a=_.D(a,s6c,4))&&b.ym(a.getUrl())}},
B7c=function(a,b){var c=_.NF(b);c=t6c(new AO,c).$c(b.getName());var d=b.getEmail();c=_.A(c,3,d);d=new s6c;var e=_.C(b,5);d=_.A(d,1,e);c=_.y(c,4,d);_.E(a.O,9,!1)&&(_.Bk(b,3),_.Bk(b,8),_.Bk(b,5));return c},O7c=function(){this.suggestionSessionId=this.W=null;this.V=[];this.incompleteSearch=!1;this.O=[];this.H=!0};O7c.prototype.tf=function(){return this.suggestionSessionId};O7c.prototype.Lwa=function(){return this.O};O7c.prototype.uc=function(){return this.H};
var P7c=function(a){if(!a)return null;a=a.split("/");return 2>a.length?null:a[1]},Q7c=function(a,b){a=P7c(a);b=P7c(b);return!(!a||!b||a!==b)},R7c=function(a){return a.Gc()+"_"+P7c(a.getName())},S7c=function(a,b){var c=a.O().map(function(d,e){return b[Number(e)].value.U_a.promise});return Promise.allSettled(c).then(function(d){return a.O().map(function(e,f){e=e.toString();var h=new x6c;e=_.A(h,1,e);f=d[Number(f)];"fulfilled"===f.status?e.Ac(1):(e.Ac(3),e.Oe(f.reason.$g));return e})})},LO=function(a,
b){_.P.call(this);this.O=a;this.request=b;this.ix=new Set;this.status=6;this.V=new Map;this.Ve=0};_.N(LO,_.P);_.g=LO.prototype;_.g.Pk=function(a){var b=this;this.ix.add(a);return this.resize().then(function(){return b.ZP(a)})};_.g.Um=function(a){this.ix.delete(a);0===this.ix.size&&this.dispose()};_.g.Re=function(){return this.Ve};_.g.Ai=function(a){this.Ve=a};
_.g.GB=function(a,b,c){var d=this;c=void 0===c?1:c;var e=!1;a.forEach(function(f){e=d.wt(f,c)||e});b||(e=1!==this.status||e,this.status=1);return e?this.sV():_.ii([])};_.g.sV=function(){for(var a=[],b=_.m(this.ix.values()),c=b.next();!c.done;c=b.next())a.push(this.ZP(c.value));return _.li(a)};
_.g.m1=function(a){this.status=3;for(var b=[],c={},d=_.m(this.ix.values()),e=d.next();!e.done;c={hoa:c.hoa},e=d.next())c.hoa=e.value,b.push(this.O.then(function(f){return function(h){return void h.m1(f.hoa,a)}}(c)));return _.li(b)};_.g.VB=function(){for(var a=this,b=[],c={},d=_.m(this.ix.values()),e=d.next();!e.done;c={ioa:c.ioa},e=d.next())c.ioa=e.value,b.push(this.O.then(function(f){return function(h){return void h.VB(f.ioa)}}(c)));return _.li(b).then(function(){a.Ai(0===a.Re()?1:6)})};
_.g.resize=function(){var a=this;return this.O.then(function(b){var c=0;a.ix.forEach(function(d){d=T7c(b,d).qd();c=Math.max(c,d.ji?d.ji()||0:0)});a.wca(c)})};var U7c=function(a,b){return b?a.V.get(a.lha(b))||null:null};_.g=LO.prototype;_.g.cG=function(a,b){var c=U7c(this,a);b=f5c(c,b);this.V.set(this.lha(a),b)};_.g.lha=function(a){return a};_.g.UIa=function(){return[]};_.g.ZP=function(a){var b=this;return this.O.then(function(c){return void c.ZP(a,b.Tl())})};_.g.removeItem=function(){};
var MO=function(a,b){_.Q.call(this);this.request=a;this.pageToken="";this.H=this.O=!1;this.data=[];this.limit=0;this.W=b};_.N(MO,_.Q);var V7c=function(a){return!a.O||""!==a.pageToken};MO.prototype.ih=function(a){this.limit=void 0===a?1E5:a;return!this.H&&this.data.length<=this.limit&&V7c(this)?W7c(this):_.ii()};
var W7c=function(a){a.O=!0;a.H=!0;var b=a.dfa(a.request,a.limit-a.data.length,a.pageToken);return a.W(b).then(function(c){return X7c(a,c)},function(c){return a.handleError(c)})},X7c=function(a,b){a.H=!1;a.pageToken=a.Cha(b);b=a.Oga(b);b.forEach(function(c){return a.data.push(c)});a.u3(b);return a.data.length<a.limit&&V7c(a)?_.li([_.ii(b),W7c(a)]).then(function(c){return c[0].concat(c[1])}):_.ii(b)};
MO.prototype.handleError=function(a){this.H=!1;a=_.mL(a);var b=new yO(a);this.VIa(b);this.dispatchEvent(b);return _.ji(a)};MO.prototype.u3=function(){};MO.prototype.VIa=function(){};var Y7c=function(a,b,c){MO.call(this,c,function(d){return a.then(function(e){return e.hh(d)}).eg(function(e){return void _.zL(e)})});this.V=b};_.N(Y7c,MO);_.g=Y7c.prototype;_.g.dfa=function(a,b,c){a=_.Uk(a);a.Yh(b);return new _.GRc(a,c)};_.g.Cha=function(a){return a.pageToken||""};_.g.Oga=function(a){return a.response.O()};
_.g.u3=function(a){this.V.GB(a,!1,1)};_.g.VIa=function(a){this.V.Sz(this.request,a)};var Z7c=function(a,b,c,d){LO.call(this,a,_.Uk(d));this.ha=b;this.W=c;this.data=[];this.H=null};_.N(Z7c,LO);_.g=Z7c.prototype;_.g.refresh=function(){this.VB();this.H=new Y7c(this.ha,this.W,this.request);return this.H.ih(this.request.ji()||100)};_.g.ap=function(a){return this.data.find(function(b){return Q7c(b.getName(),a)})};
_.g.wca=function(a){this.H&&a===this.request.ji()||(this.request.Yh(a),this.H?this.H.ih(a):this.refresh())};_.g.Tl=function(){var a=this,b=R2c((new dO).Ac(this.status),this.data.filter(function(c){return a.W.Bza(c)}).map(function(c){return c.clone()}));return new _.iN(b,void 0,void 0,this.Re())};_.g.GB=function(a,b,c){var d=this;a=a.filter(function(e){return e.Gc()===d.request.Gc()});return LO.prototype.GB.call(this,a,b,c)};
_.g.wt=function(a,b){b=void 0===b?1:b;if(!LYc(U7c(this,a.getName()),b))return!1;var c=-1===b?0:this.data.length,d=this.data.findIndex(function(e){return Q7c(e.getName(),a.getName())});-1<d&&(this.data.splice(d,1),c=d);this.data.splice(c,0,a);this.cG(a.getName(),b);return!0};_.g.removeItem=function(a){_.ta(this.data,function(b){return Q7c(b.getName(),a)})&&(this.V.delete(this.lha(a)),this.sV())};_.g.lha=function(a){return P7c(a)};_.g.cG=function(a,b){this.ap(a)&&LO.prototype.cG.call(this,a,b)};
_.g.UIa=function(a){var b=this;return a instanceof _.qM&&a.Gc()!==this.request.Gc()?[]:a.sT().map(function(c){return b.ap(c.Hm())}).filter(function(c){return c}).map(function(c){return c.clone()})};var NO=function(){this.H=new Map};NO.prototype.Pk=function(a,b){var c=this.getKey(b),d=this.H.get(c),e=!d;d||(d=this.gfa(b),this.H.set(c,d));d.Pk(a);return e};var $7c=function(a,b,c){var d=a.getKey(c),e=a.H.get(d),f=!e;e||(e=a.Mta(c),a.H.set(d,e));e.Pk(b);return f};
NO.prototype.Um=function(a,b){var c=this.H.get(this.getKey(b));c&&(c.Um(a),c.isDisposed()&&this.H.delete(this.getKey(b)))};var a8c=function(a,b){return a.H.get(b)};NO.prototype.GB=function(a,b,c){var d=this;c=void 0===c?1:c;var e=a.filter(function(f){return d.Bza(f)});this.H.forEach(function(f){f.GB(e,b,c)})};NO.prototype.removeItem=function(a,b){b=b?this.H.get(b):null;(b?[b]:this.H).forEach(function(c){c.removeItem(a)})};
var b8c=function(a,b){a=Array.from(a.H.values()).map(function(c){return c.UIa(b)});return[].concat.apply([],_.Vc(a))};NO.prototype.cG=function(a,b){this.H.forEach(function(c){c.cG(a,b)})};NO.prototype.Bza=function(){return!0};NO.prototype.Sz=function(a,b){(a=this.H.get(this.getKey(a)))&&a.m1(b)};NO.prototype.O_=function(a,b,c,d){var e=this.getKey(b),f=this.H.get(e);f||(f=this.gfa(b),f.Ai(c),this.H.set(e,f),this.GB(a,d))};var c8c=function(){this.V=new Set;this.O=0;this.H=[]},d8c=function(a,b){a.V.add(b)};
c8c.prototype.W=function(a){this.V.delete(a)};var e8c=function(a,b){var c;if(c=b instanceof _.Dl)c=b.Ss(),c=!!(b.Ah()&&c&&c<=Math.max.apply(Math,_.Vc([a.O].concat(_.Vc(a.H)))));if(c)return!0;b=b instanceof _.Dl?b.getId():b;return a.V.has(b)},f8c=function(a,b){return _.ta(a.H,function(c){return c===b})&&b>a.O?(a.O=b,!0):!1};c8c.prototype.q6=function(a){var b=this;return a.filter(function(c){return!e8c(b,c)})};var g8c=function(a,b){this.H=new Map;this.V=a;this.W=b;this.O=new c8c};_.N(g8c,NO);
var h8c=function(a,b){d8c(a.O,R7c(b));(a=a8c(a,b.Gc()))&&a.sV()};_.g=g8c.prototype;_.g.getKey=function(a){return a.Gc()};_.g.gfa=function(a){return new Z7c(this.V,this.W,this,a)};_.g.Mta=function(a){return new Z7c(this.V,this.W,this,a)};_.g.Fq=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next())(b=b.value.getItem())&&(b=a8c(this,b.getId()))&&b.refresh()};_.g.Bza=function(a){return!e8c(this.O,R7c(a))};
var i8c=function(a,b){this.O=a;this.H=b},j8c=function(a,b){b=_.aTb(b);var c=new Y7c(a.O,a.H,b);new Promise(function(d,e){return c.ih(100).then(d,e)})},k8c=function(){this.Od={}},OO=function(a,b){l8c(a,"subscribed");b&&l8c(a,b);return a.Od[b||"subscribed"].se.promise},l8c=function(a,b){a.Od[b]||(a.Od[b]={count:0,yP:[],VYa:[],se:_.ni()});a.Od[b].count++},n8c=function(a,b){b&&!m8c(a,b)||m8c(a,"subscribed")},m8c=function(a,b){if(!a.Od[b])return!1;a.Od[b].count--;0===a.Od[b].count&&(a.Od[b].se.resolve({items:a.Od[b].yP,
OFb:a.Od[b].VYa}),_.jg(a.Od,b));return!0};k8c.prototype.Fq=function(a,b){var c=this,d=b||"subscribed";a.forEach(function(e){var f=e.zc();f&&f===e.Gc()&&c.Od[f]&&c.Od[f].VYa.push(e);c.Od[d]&&c.Od[d].yP.push(e)})};var o8c=function(a,b,c){MO.call(this,a,c);this.V=b};_.N(o8c,MO);o8c.prototype.dfa=function(a,b){return _.Uk(a).Yh(b)};o8c.prototype.Cha=function(){return""};o8c.prototype.Oga=function(a){return[a]};o8c.prototype.u3=function(a){this.V(a)};
var p8c=function(a,b,c,d){LO.call(this,a,_.Uk(d));this.ha=b;this.H=this.HQ=null;this.W=c};_.N(p8c,LO);p8c.prototype.refresh=function(){var a=this;this.VB();this.H=new o8c(this.request,this.W,function(b){return a.ha.then(function(c){return c.hh(b)})});return this.H.ih(this.request.ji()||0)};p8c.prototype.wca=function(a){1===this.status||this.H&&a===this.request.ji()||(this.request.Yh(a),this.H?this.H.ih(a):this.refresh())};
p8c.prototype.Tl=function(){if(this.HQ)return this.HQ;var a=new gO;a.Ac(this.status);return a};p8c.prototype.wt=function(a){this.HQ=a;return!0};var q8c=function(a,b,c){this.H=new Map;this.O=a;this.W=b;this.V=c};_.N(q8c,NO);_.g=q8c.prototype;_.g.log=function(a){this.V.info("drive.ds.sync.cache.SuggestedWorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};_.g.gfa=function(a){var b=this;return new p8c(this.O,this.W,function(c){b.GB(c,!1)},a)};_.g.Mta=function(){throw Error("Ye");};
_.g.O_=function(a,b,c,d){var e=a[0].dk();this.log("Initialized "+e.length+" suggested workspaces: "+e.map(function(f){return f.Bo()}).join(", "));NO.prototype.O_.call(this,a,b,c,d)};var PO=function(a,b,c,d){_.Q.call(this);this.request=a;this.Fa=b;this.ta=c;this.Ba=d;this.ma=0;this.se=null;this.O=new Set};_.N(PO,_.Q);
PO.prototype.ih=function(){var a=this;if(this.se)return this.se.promise;this.se=_.ni();this.W(this.request).forEach(function(b,c){a.ma++;a.Fa.then(function(d){return d.hh(b)}).then(a.va.bind(a,c),a.handleError.bind(a,c))});return this.se.promise};PO.prototype.va=function(a,b){this.V(b);r8c(this,a)};var r8c=function(a,b){a.O.add(b);a.O.size===a.ma?(a.ha(a.request),a.dispatchEvent("Fb"),a.se.resolve()):a.dispatchEvent("Cb")};
PO.prototype.handleError=function(a,b){b=_.yL(b);var c=b.$g;5===c.Mr()||4===c.Oj()?(this.Ba.info("drive.ds.sync.query.SimpleFindByIdsRunner","Deleting "+a+" due to: "+b.message),this.ka(a),r8c(this,a)):(a=new yO(c,_.wk(this.ta.Sf(),1,1)),this.dispatchEvent(a),this.se.reject(b))};var s8c=function(a){var b=new _.HA;b.Ob(a);return b},t8c=function(a,b,c,d,e){PO.call(this,_.Uk(a),c,d,e);this.H=b};_.N(t8c,PO);
t8c.prototype.W=function(a){var b=new Map;a.Rl().forEach(function(c){var d=_.Uk(a).Wb([c]);b.set(c,d)});return b};t8c.prototype.V=function(a){var b=[];a.uR().forEach(function(c){b.push(c)});this.H(b,!0)};t8c.prototype.ha=function(){this.H([],!1)};t8c.prototype.ka=function(a){this.H([s8c(a)],!0)};var u8c=function(a,b,c,d,e,f){LO.call(this,a,_.Uk(f));this.ma=b;this.W=c;this.ka=d;this.ha=e;this.uk={};this.H=null};_.N(u8c,LO);
u8c.prototype.refresh=function(){this.H=new t8c(this.request,this.ha,this.ma,this.W,this.ka);return this.H.ih()};u8c.prototype.wca=function(){this.H||this.refresh()};u8c.prototype.Tl=function(){var a=new _.gN;a.Ac(this.status);_.bg(this.uk,function(b,c){a.uR().set(c,b||new _.HA)});a.Ai(this.Re());return a};u8c.prototype.wt=function(a){var b=a.getId();if(_.Tk(a,s8c(a.getId()))){if(this.uk[b])return delete this.uk[b],!0}else if(0<=this.request.Rl().indexOf(b))return this.uk[b]=a,!0;return!1};
var v8c=function(a,b){a=a.getState();return null==a||b.getState()==a},w8c=function(a,b,c){MO.call(this,a,c);this.V=b};_.N(w8c,MO);w8c.prototype.dfa=function(a,b,c){a=_.Uk(a);a.Yh(b);return new _.TRc(a,c)};w8c.prototype.Cha=function(a){return a.pageToken||""};w8c.prototype.Oga=function(a){return a.response.dk()};w8c.prototype.u3=function(a){this.V(a)};var x8c=function(a){this.H=l5c(a,{numeric:!0})};
x8c.prototype.O=function(a,b,c){var d=b.getTitle()||"",e=c.getTitle()||"",f;d!==e?f=this.H(d,e)*(a?1:-1):f=_.Fa(b.getId(),c.getId())*(a?1:-1);return f};x8c.prototype.V=function(a,b,c){var d=_.C(b,4),e=_.C(c,4),f;d!==e?f=_.Fa(d,e)*(a?1:-1):f=_.Fa(b.getId(),c.getId())*(a?1:-1);return f};var y8c=function(a,b,c,d,e){LO.call(this,a,_.Uk(e));this.ha=b;this.uk=[];this.H=null;this.W=d;a=new x8c(c);b=(c=this.request.Tt())?c.getType():0;c=c?_.C(c,2):0;this.ka=1===b?a.O.bind(a,2!==c):a.V.bind(a,1===c)};
_.N(y8c,LO);y8c.prototype.refresh=function(){var a=this;this.VB();this.H=new w8c(this.request,this.W,function(b){return a.ha.then(function(c){return c.hh(b)})});return this.H.ih(this.request.ji()||0)};y8c.prototype.wca=function(a){1===this.status||this.H&&a===this.request.ji()||(this.request.Yh(a),this.H?this.H.ih(a):this.refresh())};y8c.prototype.Tl=function(){var a=new BO;a.Ac(this.status);z6c(a,this.uk.map(function(b){return _.Uk(b)}));return new _.OUc(a,void 0,1!==this.status&&V7c(this.H),this.Re())};
y8c.prototype.wt=function(a){var b=_.ta(this.uk,function(c){return c.getId()===a.getId()});return a&&v8c(this.request,a)&&!_.Tk(a,s8c(a.getId()))?lYc(this.uk,a,this.ka):b};var z8c=function(a,b,c,d){this.H=new Map;this.V=a;this.ha=b;this.W=c;this.O=d};_.N(z8c,NO);_.g=z8c.prototype;_.g.log=function(a){this.W.info("drive.ds.sync.cache.WorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};
_.g.gfa=function(a){var b=this;return new y8c(this.V,this.ha,SN(_.ZK(this.O)),function(c){return void b.GB(c,!1)},a)};_.g.Mta=function(a){var b=this;return new u8c(this.V,this.ha,this.O,this.W,function(c,d){return b.GB(c,d)},a)};_.g.O_=function(a,b,c,d){this.log("Initialized "+a.length+" items for workspaces: "+a.map(function(e){return e.getId()}).join(", "));NO.prototype.O_.call(this,a,b,c,d)};
var A8c=function(a,b){b=void 0===b?!1:b;var c=a.getMimeType();IN(a)&&(c=(c=a.wf())?_.C(c,3):"");JN(a)&&(a.Gi()&&(c+="+"+String(a.Gi())),a.Xi()&&(c+="+shared"));return _.RSa(c,b?"32":"16")},B8c=function(a,b){b=Object.entries(b);return 0===b.length?a:a+"?"+b.map(function(c){var d=_.m(c);c=d.next().value;d=d.next().value;return c+"="+d}).join("&")},C8c=function(a,b){var c=_.H(a,44),d=a.wf();if(d){if(1!==_.Sd(d))return null;c=(c=_.Pd(d))?_.H(c,44):!0}if(!c)return null;c={};d=a.getId();IN(a)&&(d=DYc(a));
d=[_.G(b,65,"https://lh3.google.com"),"u",_.nL(_.ZK(b)),"d",d].join("/");d+="={size}";_.E(b,89,!1)&&_.sk(a,140)&&(c.resourcekey=_.Ol(a));return d=B8c(d,c)},D8c=function(a){this.H=a},F8c=function(a,b,c){if(c.includes(20)&&c.includes(3)){var d=A8c(b,_.E(a.H,75,!1));_.A(b,21,d)}c.includes(18)&&_.PSc(b,qZc(b,a.H));c.includes(19)&&(d=C8c(b,a.H),_.A(b,20,d));E8c(a,b,c);if(IN(b)){if(d=(d=b.wf())&&_.Pd(d)){if(c.includes(20)&&c.includes(3)){var e=A8c(d,_.E(a.H,75,!1));_.A(d,21,e)}c.includes(18)&&_.PSc(d,qZc(d,
a.H));c.includes(19)&&(e=C8c(d,a.H),_.A(d,20,e));E8c(a,d,c)}_.TSc(b,!!b.mw())}},E8c=function(a,b,c){var d=c.includes(41);c=c.includes(42);if(d||c){var e=b.getMimeType();e&&(e=!JN(b)&&!IN(b)&&!_.ud(e)&&(!b.n4()||2!==b.ko()),d&&_.A(b,40,e),e&&c&&(a=a.H,d=b.getId(),IN(b)&&(d=DYc(b)),c=new _.Aj(_.G(a,16,"")+"/uc"),_.Jj(c,"id",d),_.Jj(c,"authuser",_.nL(_.ZK(a))),_.Jj(c,"export","download"),_.E(a,89,!1)&&_.sk(b,140)&&_.Jj(c,"resourcekey",_.Ol(b)),_.A(b,41,c.toString())))}},G8c=function(a,b){this.qfa="";
this.startTime=b||new Date;this.qGa=a;this.l8=nYc(a)};G8c.prototype.clone=function(){return new G8c(this.qGa,this.startTime)};var H8c=function(){this.H=null;this.R1=[]},I8c=function(a){return _.ib(a.R1,function(b){return _.lg(b)})};H8c.prototype.G7=function(){return this.H};
H8c.prototype.O=function(a,b,c){if(this.H){var d=this.H;if(!a["X-Google-DapperTraceInfo"]){var e=new I6c;e.V=H6c(d.l8);var f=_.bh().substring(0,8);d=nYc(f);f=(new h6c).Ob(f);f=_.A(f,2,d);b=_.A(f,3,b).Mi(c);this.R1.push(b);e.O=H6c(d);e.H=F6c(808464432,808464432);e.W=41;b=String.fromCharCode;c=b.apply;d=new _.ek;if(e.V){f=e.V.O>>>0;var h=e.V.H>>>0;_.fk(d,1,1);var k=d.O;$Zc(k,f);$Zc(k,h)}e.O&&(f=e.O.O>>>0,h=e.O.H>>>0,_.fk(d,2,1),k=d.O,$Zc(k,f),$Zc(k,h));f=e.W;null!=f&&(_.fk(d,3,5),$Zc(d.O,f));e.H&&(f=
e.H.O>>>0,e=e.H.H>>>0,_.fk(d,4,1),h=d.O,$Zc(h,f),$Zc(h,e));e=_.gk(d);a["X-Google-DapperTraceInfo"]=_.q.btoa(c.call(b,null,e))}}};var J8c=function(){this.Db=[];this.O=this.H=0};J8c.prototype.discard=function(a){for(var b=this.H,c=this.O,d=this.Db,e=0;e<a;++e){b=b+1&255;c=c+d[b]&255;var f=d[b];d[b]=d[c];d[c]=f}this.H=b;this.O=c};
var K8c=function(a,b){if(!c)var c=b.length;for(var d=a.H,e=a.O,f=a.Db,h=0;h<c;++h){d=d+1&255;e=e+f[d]&255;var k=f[d];f[d]=f[e];f[e]=k;b[h]^=f[f[d]+f[e]&255]}a.H=d;a.O=e},L8c=function(a){this.key=a;this.H=new _.XQc;this.O=new _.VQc(new _.XQc,_.qla(a))};L8c.prototype.encrypt=function(a){for(var b=[],c=0;16>c;c++)b[c]=Math.floor(256*Math.random());b=_.rla(b);c=M8c(this,a);return b.concat(c,N8c(this,b,a,!0))};
var O8c=function(a,b){var c=N8c(a,b.substring(0,16),b.substring(36),!1);b=b.substring(16,36);a=M8c(a,c);if(b!==a)throw Error("Ze");return c},M8c=function(a,b){a=_.WQc(a.O,_.qRc(b));return _.rla(a)},N8c=function(a,b,c,d){a.H.reset();a.H.update(b);a.H.update(a.key);b=new J8c;a=a.H.digest();if(!e)var e=a.length;for(var f=b.Db,h=0;256>h;++h)f[h]=h;var k=0;for(h=0;256>h;++h){k=k+f[h]+a[h%e]&255;var l=f[h];f[h]=f[k];f[k]=l}b.H=0;b.O=0;b.discard(1536);if(d){d="";for(e=0;e<c.length/8192;e++)a=_.qRc(c.substring(8192*
e,8192*(e+1))),K8c(b,a),d+=_.rla(a);return d}d=[];for(e=0;e<c.length/8192;e++){a=c.substring(8192*e,8192*(e+1));f=_.q.Uint8Array?new Uint8Array(a.length):Array(a.length);for(h=0;h<a.length;h++)f[h]=a.charCodeAt(h)&255;a=f;K8c(b,a);d.push(a)}if(d.length){for(c=0;c<d.length-1;c++)if(8192!==d[c].length)throw Error("$e");c=8192*(d.length-1)+d[d.length-1].length;b=Array(c);for(a=e=0;e<c;)f=P8c(d,e++),128>f?b[a++]=String.fromCharCode(f):191<f&&224>f?(h=P8c(d,e++),b[a++]=String.fromCharCode((f&31)<<6|h&
63)):239<f&&365>f?(h=P8c(d,e++),k=P8c(d,e++),l=P8c(d,e++),f=((f&7)<<18|(h&63)<<12|(k&63)<<6|l&63)-65536,b[a++]=String.fromCharCode(55296+(f>>10)),b[a++]=String.fromCharCode(56320+(f&1023))):(h=P8c(d,e++),k=P8c(d,e++),b[a++]=String.fromCharCode((f&15)<<12|(h&63)<<6|k&63));b.length=a;d=b.join("")}else d="";return d},P8c=function(a,b){return a[Math.floor(b/8192)][b%8192]},Q8c=function(a,b,c){this.data=a;this.JVa=b;this.H=c;this.isEncrypted=!1};Q8c.prototype.getData=function(){return this.data};
Q8c.prototype.um=function(){return this.JVa};var R8c=function(a,b,c,d){this.O=a;this.H=_.ni();this.ln=!1;this.V=_.G(b,7,"");this.W=_.wk(_.TN(b),6,2E7);this.NE=_.dL(b);this.ha=_.wk(_.TN(b),12,0);this.ka=c;this.zd=d||null};R8c.prototype.initialize=function(){var a=this;this.ln||(this.ln=!0,this.O.initialize().then(function(){a.H.resolve()},function(b){a.H.reject(b)}));return _.xi(this.H.promise)};
R8c.prototype.qB=function(a){if(a instanceof _.BB)return 0;if(a instanceof zO)return 1;if(a instanceof Q1c)return 5;if(a instanceof qO)return 3;if(a instanceof v6c)return 6;throw new _.Ub("Unsupported dataShard in getDataType");};var S8c=function(a){if(0==a)return _.BB;if(1==a)return zO;if(5==a)return Q1c;if(3==a)return qO;if(6==a)return v6c;throw new _.Ub("Unsupported dataType:"+a+" in getDataTypeCtor");},T8c=function(a){if(a instanceof qO)return _.vk(a,13,0)};
R8c.prototype.um=function(a){if(a instanceof qO)return a.Cd().length};
var Y8c=function(a,b,c,d){if(0==c.length)return _.ii();var e=a.qB(c[0]);c.forEach(function(){});var f=T8c(c[0]),h=0;3==e&&U8c(a,c);var k=!!b;return V8c(a,c).then(function(l){if(k){var n=a.zd?a.zd.O(106023,d):null;h=l.reduce(function(t,u){return t+u.um()},0);var p=W8c(a,b,l.map(function(t){return t.getData()})).then(function(t){if(t.length!=l.length)return _.ji(Error("af"));t.forEach(function(u,z){z=l[z];z.data=u;z.isEncrypted=!0});return l});n&&(j1c(i1c(h1c(n.XC(),_.dN(_.BQc,e)),_.dN(_.yQc,f)),!0),
p.then(function(){var t=h;g1c(n.XC(),!0).bw(t);n.xk()},function(){var t=h;g1c(n.XC(),!1).bw(t);n.xk()}));return p}return l}).then(function(l){return a.H.promise.then(function(){return X8c(a.O,l,e,f,k,d)})})},V8c=function(a,b){return new _.hi(function(c,d){var e=!1,f=[];b.forEach(function(l){if(!e){var n=l.yc();if(n.length>a.W)e=!0;else{var p=f.push,t=a.um(l);l instanceof qO?(l=_.H(l,6),l=null!=l?l:void 0):l=void 0;p.call(f,new Q8c(n,t,l))}}});if(e){var h=Error("bf"),k=new _.Tb;_.kL(k,2);_.vL(k,23);
_.A(k,21,h.message);_.hr(k);a.ka(k);d(h)}c(f)})},U8c=function(a,b){T8c(b[0]);b.forEach(function(){});a.NE||Z8c(b);$8c(a,b)},QO=function(a,b,c,d,e,f){var h=_.ni(),k;_.oi(a.H.promise.then(function(){return a9c(a.O,c,d,e)}).then(function(l){var n=l.map(function(t){return t.data}),p=new _.ri;if(l[0]&&l[0].eZ){if(k=a.zd?a.zd.O(106022,f):null)j1c(i1c(h1c(k.XC(),_.dN(_.BQc,c)),_.dN(_.yQc,d)),!0),p.nm().then(function(t){var u=k;t=void 0!=t;g1c(u.XC(),t);_.tUc(u)});b9c(a,p,b,n)}else p.callback(n);return p.then()},
function(){}).then(function(l){var n=[];if(l){var p=0;l.forEach(function(t){t=new (S8c(c))(JSON.parse(t));p+=a.um(t);n.push(t)});3==c&&(a.NE||c9c(n),d9c(n));k&&k.XC().bw(p)}h.resolve(n)}),function(){k&&k.xk()}).eg(h.reject,h);return h.promise},Z8c=function(a){if(a.length){for(var b=0;b<a.length;b++)if(_.Ok(a[b],_.nl,2).length)return;var c=new Map,d=new Map;a.forEach(function(f){(f.Cd()||[]).forEach(function(h){_.NSc(h,e9c(_.El(h),c,d));_.OSc(h,e9c([h.Bl()],c,d)[0]);var k=e9c([h.Hu()],c,d)[0];_.y(h,
47,k);k=e9c([h.Pp()],c,d)[0];_.y(h,91,k);k=e9c([h.zB()],c,d)[0];_.y(h,95,k);if(h=h.Dv())_.JSc(h,e9c(h.gP(),c,d)),_.KSc(h,e9c(_.Ok(h,_.nl,3),c,d))})});var e=[];c.forEach(function(f){e.push(f)});_.kb(a[0],2,e)}},e9c=function(a,b,c){if(!a)return a;var d=[];a.forEach(function(e){if(e&&e.getId()){var f=e.getId();b.has(f)?_.Tk(e,b.get(f))?d.push(c.get(f)):d.push(e):(b.set(f,e.clone()),e=new _.nl,e.Ob(f),c.set(f,e),d.push(e))}else d.push(e)});return d},c9c=function(a){var b=new Map,c=new Map;a[0]&&_.Ok(a[0],
_.nl,2)&&_.Ok(a[0],_.nl,2).forEach(function(d){b.set(d.getId(),d);d=(new _.nl).Ob(d.getId());c.set(d.getId(),d)});b.size&&a.forEach(function(d){(d.Cd()||[]).forEach(function(e){_.NSc(e,f9c(_.El(e),b,c));_.OSc(e,f9c([e.Bl()],b,c)[0]);var f=f9c([e.Hu()],b,c)[0];_.y(e,47,f);f=f9c([e.Pp()],b,c)[0];_.y(e,91,f);f=f9c([e.zB()],b,c)[0];_.y(e,95,f);if(e=e.Dv())_.JSc(e,f9c(e.gP(),b,c)),_.KSc(e,f9c(_.Ok(e,_.nl,3),b,c))});_.Dk(d,2)})},f9c=function(a,b,c){if(!a)return a;var d=[];a.forEach(function(e){if(e&&e.getId()){var f=
e.getId();_.Tk(c.get(f),e)?d.push(_.Uk(b.get(f))):d.push(e)}else d.push(e)});return d},$8c=function(a,b){if(a.ha){a=a.ha;for(var c=b.length-1;0<=c;c--)if(_.vk(b[c],13,0)){for(var d=[],e=b[c].Cd();e.length>a;){var f=_.Ba(e,a-1,a);f=W4c(new qO,f);d.push(f)}W4c(b[c],e);d.length&&_.Wa(_.Ba,b,c+1,0).apply(null,d)}}},d9c=function(a){for(var b={},c=1;c<a.length;b={uba:b.uba},c++)if(!_.vk(a[c],13,0)){for(var d=0,e=c;e<a.length&&!_.vk(a[e],13,0);e++)d++;e=a[c-1];d=_.Ba(a,c,d);b.uba=e.Cd();d.forEach(function(f){return function(h){_.ya(f.uba,
h.Cd())}}(b));W4c(e,b.uba)}},W8c=function(a,b,c){if(!_.GQc()&&a.V){var d=new Worker(_.Rfa(_.Xx(a.V)),void 0),e=new _.ri;d.addEventListener("message",function(k){d.terminate();e.callback(k.data)},!1);d.addEventListener("error",function(k){d.terminate();e.Rd(Error(k))},!1);c=D6c(new C6c,c);d.postMessage({command:"encrypt",data:{request:c.yc(),key:b}});return e}try{a=[];var f=new L8c(b);for(b=0;b<c.length;b++)a.push(f.encrypt(c[b]));var h=_.wi(a)}catch(k){h=_.yi(k)}return h},b9c=function(a,b,c,d){for(var e=
0;e<d.length;e++)if(d[e].length>a.W){b.callback(void 0);return}if(!_.GQc()&&a.V){var f=new Worker(_.Rfa(_.Xx(a.V)),void 0);f.addEventListener("message",function(k){f.terminate();b.callback(k.data)},!1);f.addEventListener("error",function(){f.terminate();b.callback(void 0)},!1);f.postMessage({command:"decrypt",data:{dumps:d,key:c}})}else try{a=[];var h=new L8c(c);for(c=0;c<d.length;c++)a.push(O8c(h,d[c]));b.callback(a)}catch(k){b.callback(void 0)}},g9c=function(a,b,c){return[a.vy(),a.clientId,b?"#":
RO(a)].join(":")+":"+(c||"")},h9c=function(a,b,c){this.global=void 0===c?!1:c;this.key=a;this.value=b};h9c.prototype.getKey=function(){return this.key};h9c.prototype.Xa=function(){return this.value};
var i9c=function(a,b){a=g9c(a,b);return V2c(a+"A",a+"z")},j9c=function(a,b){this.H=a;this.O=b},k9c=function(a){return a?new j9c(a.versionKey,a.versionChangeTimestamp):null},l9c=function(a,b){return a+":"+b},m9c=function(a,b,c,d,e){this.data=a;this.index=b;this.size=c;this.timestamp=d;this.eZ=void 0===e?null:e},n9c=function(a){return{data:a.data,index:a.index,size:a.size,timestamp:a.timestamp,e:a.eZ}},o9c=function(a,b,c,d){a=RO(a)+"_"+b;3===b&&(a+="_"+d);return a+=_.vx(":%02d",c)},p9c=function(a,b,
c,d){c=o9c(a,b,void 0===c?0:c,d);a=RO(a)+"_"+b;3===b&&(a+="_"+d);return V2c(c,a+":a")},q9c=function(a){var b=RO(a)+"_";a=RO(a)+"_A";return V2c(b,a)},r9c=function(a){return a?new m9c(a.data,a.index,a.size,a.timestamp,a.e):null},s9c=function(a,b,c,d,e,f){f=void 0===f?Date.now():f;this.userId=a;this.clientId=b;this.W=c;this.V=d;this.O=null;this.ha=this.ka=!1;this.ma=void 0;this.fields=_.xa(e);_.Ia(this.fields);_.Ea(this.fields);this.H=f};s9c.prototype.vy=function(){return this.userId};
s9c.prototype.zg=function(){return _.xa(this.fields)};
var RO=function(a){if(!a.O){var b=new _.RK;b.update([a.userId,a.clientId,a.W,a.V].join(":"));b.update(a.fields);a.O=_.sOc(b.digest())}return a.O},t9c=function(a){return{versionKey:RO(a),versionInfo:{u:a.userId,c:a.clientId,pv:a.W,phk:a.V,f:a.fields},lastAccessedTimestamp:a.H}},u9c=function(a){var b=!0;b=void 0===b?!1:b;if(!a)return null;var c=a.versionInfo,d=a.versionKey;if(!c||!d)return null;a=new s9c(c.u,c.c,c.pv,c.phk,c.f,a.lastAccessedTimestamp);b?a.O=d:RO(a)!==d&&(a=null);return a},SO=function(a,
b,c,d){c=void 0===c?null:c;d=void 0===d?!1:d;_.P.call(this);var e=this;this.zd=b;this.W=c;this.readOnly=d;this.H=this.version=null;this.Ba=!1;this.va=!0;this.V=null;this.ka=!1;this.O="";this.ma=null;this.Qa=a.then(function(f){e.version=f});this.Kb=new _.oe(this);this.La(this.Kb)};_.N(SO,_.P);SO.prototype.initialize=function(){return v9c(this)};
var v9c=function(a,b){a.V||(a.V=_.ni(),a.Qa.then(function(){b?(a.va=!1,w9c(a,b),a.log("Initialized database GoogleDriveDs with existing IndexedDb"),a.V.resolve()):(a.W&&(a.ma=a.W.O(106004)),a.log("Opening database GoogleDriveDs (version 2)"),_.jPc("GoogleDriveDs",2,a.Fa.bind(a),a.ta.bind(a)).Yf(a.Ja.bind(a),a.ta.bind(a)),_.Ti(2E4).then(a.Ha.bind(a)))},function(c){a.V.reject(new _.Ub("Database version error",void 0,_.cL(c)?c:void 0))}));return a.V.promise},w9c=function(a,b){a.H=b;a.Kb.listen(a.H,"close",
a.ha.bind(a,"Browser closing database"));a.Kb.listen(a.H,"versionchange",a.ha.bind(a,"Database version change detected, closing"))};SO.prototype.Fa=function(a,b){this.log("Upgrading GoogleDriveDs to version "+a.newVersion);this.Ba=!0;_.Ka(b.H.objectStoreNames,function(c){return _.iTc(b,c)});_.bg(_.uL,function(c){var d=_.bRc.get(c);_.gPc(b,c,d?{keyPath:d}:void 0)})};
SO.prototype.ta=function(a){var b;a&&a instanceof _.UK&&"InvalidStateError"==a.getName()&&_.Rj.zv?b=Error("cf"):_.cL(a)&&(b=a);this.ha("Unable to open database GoogleDriveDs (version 2)");this.V.reject(b);x9c(this,!1)};SO.prototype.Ja=function(a){this.ka?a.dispose():(w9c(this,a),this.La(this.H),this.readOnly||y9c(this).eg(function(){}),this.log("Initialized database GoogleDriveDs"),this.V.resolve(),x9c(this,!0))};
var x9c=function(a,b){if(a.ma){var c=a.ma,d=_.D(_.cN(c),k1c,5);d||(d=new k1c,c=_.cN(c),_.y(c,5,d));d=_.A(d,1,2);c=a.wi().W;d=_.A(d,2,c);c=a.wi().ka;d=_.A(d,5,c);b=_.A(d,3,b);b=_.A(b,4,a.Ba);d=a.wi().ma;_.A(b,6,d);a.ma.xk();a.ma=null}};SO.prototype.Ha=function(){this.H||this.nh()||(this.ha("Opening database GoogleDriveDs timed out."),this.ta(Error("df")))};SO.prototype.ha=function(a){this.log(a);this.ka||(this.ka=!0,this.O="Database disabled: "+a,this.H&&this.va&&this.H.close())};SO.prototype.nh=function(){return this.ka};
var z9c=function(a){return a.ka?a.O:null};SO.prototype.wi=function(){return this.version};
var TO=function(a,b,c){c=void 0===c?"readonly":c;if(a.readOnly&&"readonly"!=c)return null;a=a.H;try{return _.hPc(a,[b],c)}catch(d){return null}},y9c=function(a){var b=_.uL.VX,c=TO(a,b,"readwrite");if(!c)return _.ji(Error("ef"));c.objectStore(b).put(t9c(a.wi()));return c.wait().then(function(){})},A9c=function(a){if(!a.H)return _.ji(Error("ff"));if(a.nh())return _.ji(Error(a.O));var b=_.uL.VX,c=TO(a,b,"readwrite");return c?c.objectStore(b).remove(RO(a.wi())).then():_.ji(Error("gf"))},B9c=function(a,
b,c){if(!a.length)return b.resolve([]),null;var d=[];a.forEach(function(h){(h=r9c(h))&&(d[h.index]=h)});if(!d[0])return b.reject(Error("hf")),0;a=d[0].timestamp;if(!a)return b.reject(Error("jf")),0;var e=d[0].size;if(!e)return b.reject(Error("kf")),0;if(e>d.length)return b.reject(Error("lf`"+e+"`"+d.length)),0;for(var f=0;f<e;f++)if(!d[f]||d[f].size!=e||d[f].timestamp!=a)return b.reject(Error("mf`"+e)),0;if(c&&a<c)return b.reject(Error("nf`"+a+"`"+c)),d.length>e?e:null;if(d.length>e)return b.resolve(d.slice(0,
e)),e;b.resolve(d);return null},a9c=function(a,b,c,d){if(!a.H||3==b&&void 0==c)return _.ji(Error("of"));if(a.nh())return _.ji(Error(a.O));var e=p9c(a.wi(),b,0,c),f=_.uL.i3,h=TO(a,f);if(!h)return _.ji(Error("pf"));e=h.objectStore(f).getAll(e);var k=_.ni();e.Yf(function(l){l=B9c(l,k,d);a.readOnly||null==l||C9c(a,b,c,l).eg(function(){})},k.reject);return k.promise},X8c=function(a,b,c,d,e,f){if(a.H){if(a.nh())return _.ji(Error(a.O));if(100<b.length||3==c&&void 0==d)return _.ji(Error("qf"))}else return _.ji(Error("rf"));
var h=Date.now(),k=b.length;b=b.map(function(t,u){return{key:o9c(a.wi(),c,u,d),data:new m9c(t.getData(),u,k,h,e),metadata:t}});var l=_.uL.i3,n=TO(a,l,"readwrite");if(!n)return _.ji(Error("sf"));var p=n.objectStore(l);b.forEach(function(t){var u=D9c(a,c,d,t.metadata,f);p.put(n9c(t.data),t.key).then(function(){u&&(g1c(u.XC(),!0),u.xk())},function(z){var B=z instanceof _.UK?z.code:_.JOc;u&&a.W&&(z=g1c(u.XC(),!1),B=_.dN(_.CQc,B),_.A(z,2,B),u.xk())})});return n.wait().then(function(){})},D9c=function(a,
b,c,d,e){if(a.W){if(a=a.W.O(106019,e))b=i1c(h1c(a.XC(),_.dN(_.BQc,b)),_.dN(_.yQc,c)),c=d.H,b=_.A(b,5,null==c?0:c?2:1),j1c(b,d.isEncrypted),void 0!=d.um()&&a.XC().bw(d.um());return a}return null},C9c=function(a,b,c,d){d=void 0===d?0:d;if(a.H){if(a.nh())return _.ji(Error(a.O));if(3==b&&void 0==c)return _.ji(Error("tf"))}else return _.ji(Error("uf"));b=p9c(a.wi(),b,d,c);c=_.uL.i3;a=TO(a,c,"readwrite");if(!a)return _.ji(Error("vf"));a.objectStore(c).remove(b);return a.wait().then(function(){})},E9c=function(a){if(!a.H)return _.ji(Error("wf"));
if(a.nh())return _.ji(Error(a.O));var b=q9c(a.wi()),c=_.uL.i3;a=TO(a,c,"readwrite");if(!a)return _.ji(Error("xf"));a.objectStore(c).remove(b);return a.wait().then(function(){})};
SO.prototype.getMetadata=function(a){if(this.H){if(this.nh())return _.ji(Error(this.O));if(a&&0==a.length)return _.ji(Error("yf"))}else return _.ji(Error("zf"));var b=this.wi(),c=_.uL.t4,d=TO(this,c);if(!d)return _.ji(Error("Af"));var e=d.objectStore(c);if(a){var f=[];a.forEach(function(k){f.push(e.get(g9c(b,k.global,k.key)).then())});a=_.li(f)}else a=_.li([e.getAll(i9c(b,!1)).then(),e.getAll(i9c(b,!0)).then()]).then(function(k){return kYc(k[0],k[1])});var h=_.ni();a.then(function(k){h.resolve(k.map(function(l){if(l){var n=
l.k.split(":"),p="#"===n[2];l=4!==n.length||!p&&n[2]!==RO(b)||n[0]!==b.vy()||n[1]!==String(b.clientId)?null:new h9c(n[3],l.v,p)}else l=null;return l}))},h.reject);return h.promise};
var F9c=function(a,b){if(a.H){if(a.nh())return _.ji(Error(a.O));if(0==b.length)return _.ji(Error("Bf"))}else return _.ji(Error("Cf"));var c=_.uL.t4,d=TO(a,c,"readwrite");if(!d)return _.ji(Error("Df"));var e=d.objectStore(c),f=[];b.forEach(function(h){var k=f.push,l=e.put,n=a.wi();h={k:g9c(n,h.global,h.key),v:h.value};k.call(f,l.call(e,h).then())});return _.li(f).then(function(){})},G9c=function(a,b){b=void 0===b?!1:b;if(a.H){if(a.nh())return _.ji(Error(a.O))}else return _.ji(Error("Ff"));var c=a.wi(),
d=_.uL.t4;a=TO(a,d,"readwrite");if(!a)return _.ji(Error("Gf"));d=a.objectStore(d);a=[];a.push(d.remove(i9c(c,!1)).then());b&&a.push(d.remove(i9c(c,!0)).then());return _.li(a).then(function(){})},H9c=function(a){if(!a.H)return _.ji(Error("Hf"));if(a.nh())return _.ji(Error(a.O));var b=l9c(a.wi().vy(),a.wi().clientId),c=_.uL.PR;return(a=TO(a,c))?a.objectStore(c).get(b).then(function(d){return k9c(d)}):_.ji(Error("If"))},I9c=function(a,b){b=void 0===b?!1:b;if(!a.H)return _.ji(Error("Jf"));if(a.nh())return _.ji(Error(a.O));
var c=a.wi(),d=l9c(c.vy(),c.clientId);b=new j9c(RO(c),b?Date.now():void 0);c=_.uL.PR;a=TO(a,c,"readwrite");if(!a)return _.ji(Error("Kf"));a.objectStore(c).put({versionKey:b.H,versionChangeTimestamp:b.O},d);return a.wait().then(function(){})};
SO.prototype.xm=function(a){var b=this;return this.H?this.nh()?_.ji(Error(this.O)):H9c(this).then(function(c){var d=RO(b.wi());if(c)if(a){if(!c.O&&d==c.H&&d!=RO(a))return I9c(b,!0);if(c.O&&d==RO(a))return I9c(b)}else{if(d!=c.H)return I9c(b)}else if(!a)return I9c(b)}):_.ji(Error("Lf"))};var J9c=function(a){if(!a.H)return _.ji(Error("Mf"));if(a.nh())return _.ji(Error(a.O));var b=a.wi(),c=l9c(b.vy(),b.clientId);return H9c(a).then(function(d){if(d){d=_.uL.PR;var e=TO(a,d,"readwrite");if(e)return e.objectStore(d).remove(c).then()}})};
SO.prototype.clear=function(a){var b=this;a=void 0===a?!1:a;return this.H?this.nh()?_.ji(Error(this.O)):H9c(this).then(function(c){var d=c&&c.H==RO(b.wi());return d&&!a?!1:(c&&d?J9c(b):_.ii()).then(function(){return _.li([G9c(b,a),E9c(b),A9c(b)]).then(function(){return!0},function(){return!1})},function(){return!1})}):_.ji(Error("Nf"))};SO.prototype.close=function(){this.ha("Closing database")};SO.prototype.log=function(a){this.zd.info("drive.ds.sync.storage.VersionedDb",a)};
var K9c=function(a){if(1>=a.wi())return!1;var b=a.H.objectStoreNames;return _.Xc(_.uL).every(function(c){return b&&b.contains(c)})},L9c=function(){var a=_.ni();_.jPc("GoogleDriveDs").Yf(function(b){b?K9c(b)?a.resolve(b):(b.close(),_.oi(W2c().then(),function(){a.resolve(null)})):a.resolve(null)},function(){a.resolve(null)});return a.promise},M9c=function(a,b,c){var d=_.ni();a?_.hPc(a,[_.uL.VX],"readonly").objectStore(_.uL.VX).getAll().Yf(function(e){e=_.Xc(e).map(function(f){return u9c(f)}).filter(function(f){return null!=
f});d.resolve(e.filter(function(f){return(!b||f.vy()==b)&&(!c||f.clientId==c)}))},d.reject):d.resolve([]);return d.promise},N9c=function(a,b,c){var d=_.ni();L9c().then(function(e){if(e){var f=_.uL.PR;_.hPc(e,[f],"readonly").objectStore(f).get(a+":"+b).then(function(h){return k9c(h)}).then(function(h){if(h){var k=0;"number"==typeof c&&"number"==typeof h.O&&(k=c+h.O-Date.now());var l=_.uL.VX,n=_.hPc(e,[l],"readonly");n.objectStore(l).get(h.H).then(function(p){(p=u9c(p))?(p.ka=!0,0>k?p.ha=!0:0<k&&(p.ma=
k),d.resolve(p)):d.resolve(null)});_.ti(n.wait(),function(){e.close()})}else d.resolve(null),e.close()},function(h){d.reject(h);e.close()})}else d.resolve(null)},d.reject);return d.promise},O9c=function(a,b,c){var d=_.ni(),e=new SO(_.ii(a),b);v9c(e,c).then(function(){return d.resolve(e)},d.reject);return d.promise},P9c=function(a,b,c,d,e){e=void 0===e?!1:e;var f=[];a.forEach(function(h){var k=O9c(h,b,c);f.push(k.then(function(l){return l.clear(e)}).then(function(l){return l?h:void 0}))});_.li(f).then(function(h){var k=
[];h.forEach(function(l){l&&(k.push(l),b.info("drive.ds.sync.storage.VersionedDb","Cleared version: "+RO(l)))});d.resolve(k)})},Q9c=function(a,b,c){var d=Date.now()-12096E5,e=_.ni();L9c().then(function(f){f?(_.oi(e.promise,function(){f.close()}),M9c(f,a,b).then(function(h){return h.filter(function(k){return k.H<d})},function(){return[]}).then(function(h){P9c(h,c,f,e)})):e.resolve([])});return e.promise},R9c=function(a,b,c){var d=_.ni();L9c().then(function(e){e?(_.oi(d.promise,function(){e.close()}),
M9c(e,a,b).then(function(f){P9c(f,c,e,d,!0)})):d.resolve([])});return d.promise},S9c=function(a,b,c,d){if(a.length){var e=_.uL.i3,f=a.shift(),h=o9c(f,3,0,1);try{_.hPc(c,[e],"readonly").objectStore(e).get(h).then(function(k){(k=r9c(k))&&(!k.eZ||k.eZ&&d.has(f.V))?b.resolve(f):S9c(a,b,c,d)},function(){return b.resolve(null)})}catch(k){b.resolve(null)}}else b.resolve(null)},T9c=function(a,b,c,d,e,f,h){var k=_.ni();L9c().then(function(l){l?(_.oi(k.promise,function(){l.close()}),M9c(l,a,b).then(function(n){return n.filter(function(p){return(!h||
h!=RO(p))&&p.W==c&&p.H>=e&&CYc(d.filter(function(t){return!_.cRc.has(t)}),p.zg(),b)})},function(){return[]}).then(function(n){n.length?(n.sort(function(p,t){return t.H-p.H}),S9c(n,k,l,new Set(f))):k.resolve(null)})):k.resolve(null)});return k.promise},U9c={key:"rid",global:!0},V9c={key:"ooi",global:!0},W9c={key:"rtds",global:!1},X9c={key:"dct",global:!1},Y9c={key:"pc",global:!1},Z9c=function(a){this.H=new _.hi(function(b){a?a.initialize().then(function(){return b(a)},function(){return b(null)}):b(null)})};
Z9c.prototype.get=function(a){return this.H.then(function(b){if(b&&!b.nh())return b.getMetadata([a]).then(function(c){return(c=c[0])?c.Xa():void 0},function(){})})};Z9c.prototype.set=function(a,b){return this.H.then(function(c){return c&&!c.nh()?F9c(c,[new h9c(a.key,b,a.global)]).then(function(){return!0},function(){return!1}):!1})};Z9c.prototype.hn=function(){return this.get(U9c).then(function(a){return a?a:null})};Z9c.prototype.pt=function(a){return this.set(U9c,a)};
var $9c=function(a){return a.get(V9c).then(function(b){return"boolean"===typeof b?b:null})};Z9c.prototype.PD=function(a){return this.set(V9c,a)};var a$c=function(a){return a.get(Y9c).then(function(b){return"boolean"===typeof b?b:null})},b$c=function(a){return a.get(W9c).then(function(b){return Array.isArray(b)?b:null})},c$c=function(a){return a.get(X9c).then(function(b){return"number"===typeof b?b:null})},d$c=function(){this.Ti=[]};_.N(d$c,_.qN);
d$c.prototype.add=function(a,b){var c=a.fu.request;return c instanceof _.vM&&_.C(c.request,12)?_.qN.prototype.add.call(this,a,b):!1};d$c.prototype.ppa=function(a){return this.Ti.splice(0,Math.min(a,1))};var e$c=function(a,b){this.Ti=[];this.H=b};_.N(e$c,_.qN);e$c.prototype.add=function(a,b){return a.fu.request instanceof _.vM?!1:_.qN.prototype.add.call(this,a,b)};
e$c.prototype.ppa=function(a){for(var b=[],c=[],d={},e=0,f=0;f<this.Ti.length&&b.length<a;f++){var h=this.Ti[f],k=h.fu.request;"undefined"!=typeof _.IL&&k instanceof _.IL||"undefined"!=typeof _.TL&&k instanceof _.TL||"undefined"!=typeof _.oM&&k instanceof _.oM?k="app|"+k.ah():k instanceof _.DL||k instanceof _.EL||k instanceof _.KL||k instanceof _.pL?k="item|"+(k instanceof _.DL?k.Gc():k.getId()):"undefined"!=typeof _.LL&&k instanceof _.LL||"undefined"!=typeof _.UL&&k instanceof _.UL?k="item|"+k.Gc():
k instanceof _.ML||k instanceof _.rM?k="item|"+k.Gc():"undefined"!=typeof _.DC&&k instanceof _.DC||"undefined"!=typeof _.CC&&k instanceof _.CC?(k="undefined"!=typeof _.DC&&k instanceof _.DC?k.O().getKey():k.getKey(),k="pref|"+_.C(k,2)+"|"+_.vp(k)):k=k instanceof _.NL?"td|"+k.getId():null;var l=h.fu.request;if(l instanceof _.GL)l=!!_.H(l,8);else if(l instanceof _.EL){l=this.H.H(l.getId());var n;if(n=!!l)n=!!(l&&l.getMimeType()&&_.f6a.has(l.getMimeType()));l=n}else l=!1;if(k&&d[k]||l&&5===e)break;b.push(h);
c.unshift(f);k&&(d[k]=!0);l&&e++}for(a=0;a<c.length;a++)_.ra(this.Ti,c[a]);return b};
f$c=function(a,b,c,d,e,f,h,k,l){a=a.Sf();h=new _.fWc(k,h,d,_.wk(a,32,1073741824),_.wk(a,21,1E3));h=new _.gWc(h);k=new _.GVc(_.wk(a,59,2E3),_.wk(a,60,2E4),_.wk(a,61,6));var n={};n[1]=_.iWc(b,d);n[2]=_.jWc(b,a,e,c,k,d,l);n[3]=_.kWc(b,a,e,c,k,d,l,"batch");var p=_.wk(a,10,50);if(l){var t=new _.OVc(l.getState());var u=new _.LVc(l)}else t=new _.FVc(e,c),u=new _.EVc(c);f=new _.sN(d,b,[t,new _.JVc(p,_.wk(a,11,100)),new _.rN(p),new _.pN(k,d)],[new e$c(a,f),new d$c,new _.qN],[u,new _.RVc(a,k,l?l.getState():
e,d)],"mutation");return n[4]=f,n[5]=_.lWc(h,a,d),n[6]=_.kWc(b,a,e,c,k,d,l,"find_by_ids_batch"),n[7]=_.kWc(b,a,e,c,k,d,l,"xd4_batch"),n[8]=_.kWc(b,a,e,c,k,d,l,"xd4_immediate_batch",1),n};g$c=function(a){return a.nextPageToken?a.nextPageToken:a.continuationToken?a.continuationToken:""};h$c=function(a){var b={};return b.parentId=a.kk(),b};i$c=function(a){var b={};_.ld(_.ah(a.getTitle()))||(b.title=a.getTitle());_.vXc(b,_.Kd(a,3));_.H(a,8)&&(b.description="",a={},b.labels=(a.starred=!1,a));return b};
j$c=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());null!=_.C(a,3)&&(b.workspaceToken=_.C(a,3));return b};k$c=function(a){var b={};b.sourceIds=a.request.O();b.destinationFolderId=a.request.V();a.pageToken&&(b.continuationToken=a.pageToken);return b};
l$c=function(a){var b={},c={};_.ld(_.ah(a.getTitle()))||(b.title=a.getTitle());null!=a.xg()&&(b.description=a.xg());null!=_.H(a,4)&&(c.starred=_.H(a,4));null!=a.Ah()&&(c.trashed=a.Ah());_.ld(_.ah(a.getMimeType()))||(b.mimeType=a.getMimeType());"number"===typeof _.C(a,7)&&(b.modifiedDate=_.fTc(_.dUc(_.C(a,7)||0)));null!=_.H(a,11)&&(c.restricted=_.H(a,11));_.fg(c)&&(b.labels=c);null!=a.Gi()&&(b.folderColor=a.Gi());null!=_.H(a,16)&&(b.subscribed=_.H(a,16));null!=_.H(a,40)&&(c={},b.linkShareMetadata=
(c.securityUpdateEnabled=_.H(a,40),c));if(c=_.D(a,_.zl,25)){b.contentRestrictions=[];var d={};null!=_.H(c,1)&&(d.readOnly=_.H(c,1));null!=_.C(c,2)&&(d.reason=_.C(c,2));b.contentRestrictions.push(d)}_.vXc(b,_.Kd(a,8));return b};m$c=function(a){var b={};null!=_.H(a,3)&&(b.pinned=_.H(a,3));return b};
n$c=function(a){var b={};null!=a.getTitle()&&(b.name=a.getTitle());if(null!=_.C(a,3))b.backgroundImageId=_.C(a,3);else{var c=_.C(a,6);null!=c&&(c=c.toString(16),b.colorRgb="#"+(0,_.Zg)("0",6-c.length)+c);c=_.D(a,_.Y0c,9);if(null!=c){a={};var d=c.getId();d&&(a.id=d);d=_.C(c,2);"number"===typeof d&&(a.xCoordinate=d);d=_.C(c,3);"number"===typeof d&&(a.yCoordinate=d);(c=c.Ae())&&(a.width=c);b.backgroundImageFile=a}}return b};
o$c=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());null!=a.getState()&&(a=_.yXc[a.getState()])&&(b.state=a);return b};_.p$c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.p$c,_.L);_.p$c.prototype.O=function(){return _.C(this,1)};var q$c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(q$c,_.L);q$c.prototype.O=function(){return _.H(this,1)};q$c.prototype.V=function(){return _.C(this,2)};_.UO=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.UO,_.L);_.g=_.UO.prototype;
_.g.getId=function(){return _.C(this,1)};_.g.Ob=function(a){return _.A(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.A(this,2,a)};_.g.spa=function(){return _.C(this,3)};_.g.Mx=function(){return _.C(this,4)};_.g.S7=function(){return _.D(this,q$c,6)};_.g.rnb=function(){return _.D(this,_.p$c,7)};_.g.FRa=function(){return _.C(this,8)};_.g.rpa=function(){return _.H(this,9)};_.VO=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.VO,_.L);_.g=_.VO.prototype;
_.g.getType=function(){return _.C(this,1)};_.g.getId=function(){return _.C(this,2)};_.g.Ob=function(a){return _.A(this,2,a)};_.g.getTitle=function(){return _.C(this,3)};_.g.setTitle=function(a){return _.A(this,3,a)};_.g.Md=function(){return _.C(this,5)};_.g.setSize=function(a){return _.A(this,5,a)};_.g.A6a=function(){return _.C(this,6)};_.r$c=function(a,b){return _.A(a,6,b)};_.VO.prototype.xg=function(){return _.C(this,8)};_.VO.prototype.wl=function(a){return _.A(this,8,a)};
_.VO.prototype.O=function(){return _.H(this,9)};var WO=function(a,b,c,d,e,f){_.Q.call(this);var h=this;this.W=a;this.ta=b;this.Ba=c;this.request=e;this.va=f;this.H=[];this.items=[];this.V=!0;this.O=!1;this.suggestionSessionId=null;this.Fa=d;this.status=6;this.ha=sZc(new _.DN,[1]);this.limit=e.ji();this.Ve=0;_.ee(this,function(){h.O=!1;h.H=[]})};_.N(WO,_.Q);_.g=WO.prototype;_.g.li=function(){return String(_.Da(this))};_.g.isActive=function(){return this.O};
_.g.activate=function(){this.O=!0;_.oa(this.items)&&6===this.Bb()&&this.oj()||s$c(this)};_.g.qd=function(){return this.request};_.g.ji=function(){return this.limit};_.g.Bb=function(){return this.status};_.g.mr=function(){return this.ha};_.g.oj=function(){return this.V};_.g.fr=function(){var a=_.$Xc().oy(this.H,this.items),b=(new _.yOc).Ac(this.Bb());a=_.kb(b,2,a);this.H=this.items;return a};_.g.Kq=function(a){this.O&&(this.limit+=a||50,this.Fa(this.li(),this.limit))};
var t$c=function(a,b){return a.Bb()!==b.Bb()||WN(_.$Xc(),a.items,b.Cd())},u$c=function(a,b){a.items=b.Cd();a.status=b.Bb();_.dL(a.va)&&(a.ha=tZc(a.status,a.items));a.V=b.Mk();a.Ve=b.Re()};WO.prototype.Sz=function(a){this.dispatchEvent(new _.Wb(new _.Ub("Error occurred running a query after "+a.H+" retries.",a.error)))};WO.prototype.UT=function(){this.dispatchEvent(new _.Fi(_.zFa))};
WO.prototype.ht=function(a,b){var c=this;b+="\n\n\nQuery:\n"+vO(this.W,this.qd());return _.xi(this.ta.then(function(d){return d.ZGb(a,b,c.qd(),c.ji(),c.items)}))};
var s$c=function(a){a.isActive()&&(a.log("Livelist "+a.li()+" returning "+a.items.length+". Status: "+(_.mg(S1c)[a.Bb()]+". Datasource: ")+(_.mg(H2c)[a.Ve]+". Query: ")+(vO(a.W,a.request)+" ")+uZc(a.items)),v$c(a,a.items,a.request),a.dispatchEvent(new _.Fi(_.Mc,a)))},v$c=function(a,b,c){if(_.VL(c))c="quick access";else if(_.WL(c))c="people predict";else if(_.cM(c))c="drive priority";else return;b=b.map(function(d){return d.getId()}).join(", ");a.log("Livelist "+a.li()+" returning "+a.items.length+
" for "+(c+": "+b))};WO.prototype.refresh=function(){};WO.prototype.log=function(a){this.Ba.info("drive.ds.sync.BaseViewCacheLiveList",a)};_.r("sy162");
var w$c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(w$c,_.L);
var x$c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(x$c,_.L);x$c.prototype.getType=function(){return _.C(this,1)};var y$c=function(a){var b=new x$c;return _.A(b,1,a)},z$c=function(a,b){return _.y(a,2,b)};x$c.prototype.Sw=function(){return _.C(this,3)};x$c.prototype.vx=function(a){return _.A(this,3,a)};x$c.prototype.Wh=function(){return _.C(this,4)};x$c.prototype.setPosition=function(a){return _.A(this,4,a)};
var XO=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(XO,_.L);XO.prototype.getType=function(){return _.C(this,1)};var A$c=function(a){var b=new XO;return _.A(b,1,a)};XO.prototype.wm=function(){return _.D(this,fO,2)};var B$c=function(a,b){return _.y(a,2,b)};XO.prototype.Sw=function(){return _.C(this,3)};XO.prototype.vx=function(a){return _.A(this,3,a)};XO.prototype.Wh=function(){return _.C(this,4)};XO.prototype.setPosition=function(a){return _.A(this,4,a)};
var YO=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(YO,_.L);YO.prototype.getType=function(){return _.C(this,1)};var C$c=function(a){var b=new YO;return _.A(b,1,a)};YO.prototype.wm=function(){return _.D(this,_.HA,2)};var D$c=function(a,b){return _.y(a,2,b)};YO.prototype.Sw=function(){return _.C(this,3)};YO.prototype.vx=function(a){return _.A(this,3,a)};YO.prototype.Wh=function(){return _.C(this,4)};YO.prototype.setPosition=function(a){return _.A(this,4,a)};
var E$c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(E$c,_.L);E$c.prototype.Bb=function(){return _.C(this,1)};E$c.prototype.Ac=function(a){return _.A(this,1,a)};E$c.prototype.Jr=function(){return _.D(this,_.eO,2)};
var G$c=function(a){(0,_.S)(this,a,0,-1,F$c,null)};_.O(G$c,_.L);var F$c=[2];G$c.prototype.Bb=function(){return _.C(this,1)};G$c.prototype.Ac=function(a){return _.A(this,1,a)};G$c.prototype.Bj=function(){return _.C(this,3)};
var H$c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(H$c,_.L);H$c.prototype.zo=function(){return _.D(this,VN,1)};H$c.prototype.wo=function(){return _.C(this,2)};
var I$c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(I$c,_.L);_.g=I$c.prototype;_.g.Bb=function(){return _.C(this,1)};_.g.Ac=function(a){return _.A(this,1,a)};_.g.Jr=function(){return _.D(this,_.eO,2)};_.g.Bj=function(){return _.C(this,3)};_.g.ah=function(){return _.C(this,4)};
var ZO=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(ZO,_.L);ZO.prototype.Bb=function(){return _.C(this,1)};ZO.prototype.Ac=function(a){return _.A(this,1,a)};ZO.prototype.Bj=function(){return _.C(this,3)};
var J$c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(J$c,_.L);_.g=J$c.prototype;_.g.Bb=function(){return _.C(this,1)};_.g.Ac=function(a){return _.A(this,1,a)};_.g.Bj=function(){return _.C(this,2)};_.g.ZIa=function(){return _.D(this,_.up,3)};_.g.getKey=function(){return _.D(this,_.wb,4)};_.g.Hq=function(){return _.sk(this,4)};
var L$c=function(a){(0,_.S)(this,a,0,-1,null,K$c)};_.O(L$c,_.L);var N$c=function(a){(0,_.S)(this,a,0,-1,M$c,null)};_.O(N$c,_.L);var K$c=[[2,4,6,10],[3,5,7,8,9]];L$c.prototype.getKey=function(){return _.C(this,1)};L$c.prototype.Hq=function(){return _.sk(this,1)};var M$c=[1];
var O$c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(O$c,_.L);
var $O=function(a){(0,_.S)(this,a,0,-1,P$c,null)};_.O($O,_.L);var P$c=[2];$O.prototype.Bb=function(){return _.C(this,1)};$O.prototype.Ac=function(a){return _.A(this,1,a)};$O.prototype.O=function(){return _.Ok(this,ZN,2)};var Q$c=function(a,b){return _.kb(a,2,b)};$O.prototype.Bj=function(){return _.C(this,3)};
var R$c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(R$c,_.L);R$c.prototype.Bb=function(){return _.C(this,1)};R$c.prototype.Ac=function(a){return _.A(this,1,a)};R$c.prototype.O=function(){return _.D(this,ZN,2)};R$c.prototype.Bj=function(){return _.C(this,3)};
var S$c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(S$c,_.L);S$c.prototype.Rw=function(){return _.C(this,2)};
var U$c=function(a){(0,_.S)(this,a,0,-1,T$c,null)};_.O(U$c,_.L);var T$c=[2];U$c.prototype.Bb=function(){return _.C(this,1)};U$c.prototype.Ac=function(a){return _.A(this,1,a)};U$c.prototype.zk=function(){return _.Ok(this,_.VXc,2)};U$c.prototype.oq=function(a,b){return _.Rk(this,2,a,_.VXc,b)};
var W$c=function(a){(0,_.S)(this,a,0,-1,V$c,null)};_.O(W$c,_.L);var V$c=[2];W$c.prototype.Bb=function(){return _.C(this,1)};W$c.prototype.Ac=function(a){return _.A(this,1,a)};W$c.prototype.dk=function(){return _.Ok(this,XO,2)};
_.aP=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.aP,_.L);_.aP.prototype.Bb=function(){return _.C(this,1)};_.aP.prototype.Ac=function(a){return _.A(this,1,a)};_.aP.prototype.wg=function(){return _.D(this,_.BB,2)};_.X$c=function(a,b){return _.y(a,2,b)};_.aP.prototype.Bj=function(){return _.C(this,3)};
var Y$c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(Y$c,_.L);Y$c.prototype.Bb=function(){return _.C(this,1)};Y$c.prototype.Ac=function(a){return _.A(this,1,a)};
var $$c=function(a){(0,_.S)(this,a,0,-1,Z$c,null)};_.O($$c,_.L);var Z$c=[2];$$c.prototype.Bb=function(){return _.C(this,1)};$$c.prototype.Ac=function(a){return _.A(this,1,a)};$$c.prototype.dk=function(){return _.Ok(this,YO,2)};
var aad=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(aad,_.L);aad.prototype.getType=function(){return _.C(this,1)};var bad=function(a){var b=new aad;return _.A(b,1,a)};aad.prototype.Sw=function(){return _.C(this,3)};aad.prototype.vx=function(a){return _.A(this,3,a)};aad.prototype.Wh=function(){return _.C(this,4)};aad.prototype.setPosition=function(a){return _.A(this,4,a)};
var dad=function(a){(0,_.S)(this,a,0,-1,cad,null)};_.O(dad,_.L);var cad=[2];dad.prototype.Bb=function(){return _.C(this,1)};dad.prototype.Ac=function(a){return _.A(this,1,a)};dad.prototype.Bj=function(){return _.C(this,3)};
var fad=function(a){(0,_.S)(this,a,0,-1,ead,null)};_.O(fad,_.L);var ead=[2,4];fad.prototype.Bb=function(){return _.C(this,1)};fad.prototype.Ac=function(a){return _.A(this,1,a)};fad.prototype.Bj=function(){return _.C(this,3)};
_.bP=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.bP,_.L);_.bP.prototype.getType=function(){return _.C(this,1)};var gad=function(a){var b=new _.bP;return _.A(b,1,a)},had=function(a,b){return _.y(a,2,b)};_.bP.prototype.Sw=function(){return _.C(this,3)};_.bP.prototype.vx=function(a){return _.A(this,3,a)};_.bP.prototype.Wh=function(){return _.C(this,4)};_.bP.prototype.setPosition=function(a){return _.A(this,4,a)};
_.KZc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.KZc,_.L);_.g=_.KZc.prototype;_.g.getItem=function(){return _.D(this,_.Dl,1)};_.g.setItem=function(a){return _.y(this,1,a)};_.g.getError=function(){return _.D(this,_.Tb,2)};_.g.Oe=function(a){return _.y(this,2,a)};_.g.Fn=function(){return _.sk(this,2)};_.g.Mr=function(){return _.C(this,4)};
var jad=function(a){(0,_.S)(this,a,0,-1,iad,null)};_.O(jad,_.L);var iad=[2,4];
var lad=function(a){(0,_.S)(this,a,0,-1,kad,null)};_.O(lad,_.L);var kad=[1];
var nad=function(a){(0,_.S)(this,a,0,-1,mad,null)};_.O(nad,_.L);var mad=[2];nad.prototype.Bb=function(){return _.C(this,1)};nad.prototype.Ac=function(a){return _.A(this,1,a)};nad.prototype.Bj=function(){return _.C(this,3)};
var pad=function(a){(0,_.S)(this,a,0,-1,oad,null)};_.O(pad,_.L);var oad=[2];pad.prototype.Bb=function(){return _.C(this,1)};pad.prototype.Ac=function(a){return _.A(this,1,a)};pad.prototype.Bj=function(){return _.C(this,3)};
var qad=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(qad,_.L);
var sad=function(a){(0,_.S)(this,a,0,-1,rad,null)};_.O(sad,_.L);var rad=[1];sad.prototype.O=function(){return _.C(this,2)};var tad=function(a,b){_.A(a,2,b)};
var uad=function(a){_.Fi.call(this,"Ob");this.dataType=a};_.N(uad,_.Fi);
var vad=function(a,b){_.Fi.call(this,"Pb");this.V=a;this.H=b};_.N(vad,_.Fi);
var wad=function(){};_.g=wad.prototype;_.g.kK=function(a,b){return N2c(M2c(1),a).setPosition(b)};_.g.iK=function(a,b){return N2c(M2c(2).setPosition(b),a)};_.g.MC=function(a,b,c){return N2c(M2c(3).vx(b).setPosition(c),a)};_.g.eO=function(a,b){return N2c(M2c(4),a).setPosition(b)};_.g.HK=function(a){return _.D(a,bO,2)};
var xad=function(){_.AN.call(this,new wad,function(a){return a&&a.getName()})};_.N(xad,_.AN);
var cP=function(a,b,c){c=void 0===c?50:c;_.Q.call(this);var d=this;this.W=a;this.ha=b;this.limit=c;this.active=!1;this.status=6;this.Ba=sZc(new _.DN,[1]);this.ka=this.H=!1;this.Pc=new _.oe(this);this.La(this.Pc);_.ee(this,function(){d.active=!1;d.Pc.removeAll()})};_.N(cP,_.Q);_.g=cP.prototype;_.g.li=function(){return String(_.Da(this))};_.g.af=function(){return this.W.af()||this.ha.af()};
_.g.activate=function(){var a=this;this.active||(this.active=!0,this.Pc.listen(this.W,"Ab",_.Wa(this.Hs)),this.Pc.listen(this.ha,[].concat(_.Vc(Object.values(_.gL))),_.Wa(this.Hs)),this.W.af()?this.Pc.Xc(this.W,"Ab",function(b){b.af()||(a.gF(),a.dispatchEvent(new _.Fi(_.mr)))}):this.ha.af()?this.Pc.Xc(this.ha,[_.gL.fX,_.gL.u4],function(){a.gF();a.dispatchEvent(new _.Fi(_.mr))}):(this.gF(),this.dispatchEvent(new _.Fi(_.mr))))};_.g.gF=function(){};
_.g.Kq=function(a){var b=this;if(this.oj()){var c=this.limit;this.limit+=a||50;this.Zb()>c&&this.Hs();this.W.af()?this.Pc.Xc(this.W,"Ab",function(d){d.af()||b.RM()}):this.RM()}};_.g.pJ=function(){this.af()&&!this.H?this.status=2:this.status=this.H?1:6};_.g.Bb=function(){return this.status};_.g.mr=function(){return this.Ba};_.g.handleError=function(a){this.dispatchEvent(new _.Wb(a))};_.g.UT=function(){this.dispatchEvent(new _.Fi(_.zFa))};_.g.oj=function(){return!this.H||this.ka};
_.g.refresh=function(){this.H=this.active=!1;this.status=6;this.Pc.removeAll();this.activate()};_.g.RM=function(){};
var yad=function(a,b,c,d,e){cP.call(this,a,b,e.ji()||void 0);this.ma=c;this.request=e;this.O=[];this.data=[];this.changed=!1;this.V=new xad;this.ta=d};_.N(yad,cP);_.g=yad.prototype;_.g.gF=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.Fi(_.Mc,this))};_.g.getData=function(){return R2c(new dO,this.data).Ac(this.status)};_.g.fr=function(){var a=this.V.oy(this.O,this.data);this.O=this.data;var b=(new P2c).Ac(this.status);return _.kb(b,2,a)};
_.g.RM=function(){this.ta(this.li(),this.limit)};_.g.Hs=function(){if(this.active){var a=this.status;this.pJ();if(this.changed||a!==this.status)this.changed=!1,zad(this)}};_.g.Zb=function(){return this.data.length};_.g.qd=function(){return this.request};_.g.update=function(a){var b=a.response;if(this.status!==b.Bb()||WN(0,this.data,b.O()))this.H=!0,this.status=b.Bb(),this.data=b.O(),this.ka=a.H,zad(this)};
var zad=function(a){a.log("Livelist "+a.li()+" returning "+a.data.length+" for "+(a.request.Gc()+". Status: ")+(_.mg(S1c)[a.Bb()]+"."));a.dispatchEvent(new _.Fi(_.Mc,a))};yad.prototype.Sz=function(a){this.dispatchEvent(new _.Wb(new _.Ub("Error occurred running a category metadata query after "+a.H+" retries.",a.error)))};yad.prototype.log=function(a){this.ma.info("drive.ds.sync.CategoryMetadataLiveList",a)};
var Aad=function(a,b,c,d,e,f){WO.call(this,a,b,c,e,f,d);this.ma=null;this.ka=void 0};_.N(Aad,WO);Aad.prototype.getData=function(){this.H=this.items;var a=A0c((new _.IA).Ac(this.Bb()).Bv(this.items),this.oj());a=_.y(a,7,this.ma);return _.gTc(a.pN(this.suggestionSessionId).Ai(this.Ve),this.ka)};Aad.prototype.update=function(a){t$c(this,a)&&(u$c(this,a),this.ma=a.t3(),this.suggestionSessionId=a.tf(),this.ka=a.sha(),s$c(this))};
var Bad=function(a,b){var c={};a=_.cg(a,function(d){return!!d});b=_.cg(b,function(d){return!!d});_.bg(a,function(d,e){var f=b[e];f?_.Tk(d,f)||(d=D$c(C$c(4),f),c[e]=d):(d=D$c(C$c(2),d),c[e]=d)});_.bg(b,function(d,e){a[e]||(d=D$c(C$c(1),d),c[e]=d)});return c},Cad=function(a,b){return _.fg(a)!==_.fg(b)||!_.ig(Bad(a,b))};
var Dad=function(a,b){_.Q.call(this);this.request=b;this.active=!1;this.status=6;this.H={};this.data={}};_.N(Dad,_.Q);_.g=Dad.prototype;_.g.activate=function(){this.active||(this.active=!0,_.ig(this.data)&&6===this.status||this.dispatchEvent(new _.Fi(_.Mc,this)))};_.g.Bb=function(){return this.status};_.g.mr=function(){return new _.DN};_.g.getData=function(){this.H=this.data;var a=(new _.gN).Ac(this.status);_.bg(this.data,function(b,c){a.uR().set(c,b||new _.HA)});return a};
_.g.fr=function(){var a=Bad(this.H,this.data);this.H=this.data;var b=(new Y$c).Ac(this.status);_.bg(a,function(c,d){_.zk(b,2,YO).set(d,c)});return b};_.g.WQ=function(){throw Error("Of");};_.g.li=function(){return String(_.Da(this))};_.g.qd=function(){return this.request};_.g.update=function(a){var b={};a.uR().forEach(function(c,d){c||(c=s8c(d));b[d]=c});if(this.status!==a.Bb()||Cad(this.H,b))this.status=a.Bb(),this.data=b,this.active&&this.dispatchEvent(new _.Fi(_.Mc,this))};
_.g.Sz=function(a){this.dispatchEvent(new _.Wb(new _.Ub("Error occurred running a Workspace find by id after "+a.H+" retries.",a.error)))};_.g.UT=function(){this.dispatchEvent(new _.Fi(_.zFa))};
var Ead=function(a,b,c,d,e,f){_.Q.call(this);var h=this;this.V=a;this.ka=b;this.ha=c;this.ma=d;this.ta=e;this.request=f;this.O=!1;this.H={};this.items={};this.status=6;this.W=sZc(new _.DN,[1]);this.log("Creating find by ids live map: "+this.request.Rl().join(", "));_.ee(this,function(){h.O=!1;h.H=[]})};_.N(Ead,_.Q);_.g=Ead.prototype;_.g.li=function(){return String(_.Da(this))};_.g.activate=function(){this.O=!0;_.ig(this.items)&&6===this.status||Fad(this)};_.g.qd=function(){return this.request};
_.g.getData=function(){this.H=this.items;var a=new _.eN;_.dL(this.V)?a.Ac(HYc(Object.values(this.items))?6:this.status):a.Ac(this.status);a.map=this.items;return a};_.g.fr=function(){var a=vZc(this.H,this.items),b=new K2c;b.Ac(this.status);b.map=a;this.H=this.items;return b};_.g.Bb=function(){return this.status};_.g.mr=function(){return this.W};_.g.WQ=function(a){Q5c(a);var b=this.request;this.request=a;this.ta(this.li(),b,a)};
_.g.update=function(a){var b=this;0<=_.ma(this.qd().Rl(),"root")?this.ma.addCallback(function(c){var d=a.map[c];d&&(_.jg(a.map,c),a.map.root=d);Gad(b,a)}):Gad(this,a)};var Gad=function(a,b){if(a.status!==b.Bb()||wZc(a.items,b.map))a.status=b.Bb(),a.items=b.map,_.dL(a.V)&&(a.W=tZc(a.status,Object.values(a.items))),Fad(a)};Ead.prototype.Sz=function(a){this.dispatchEvent(new _.Wb(new _.Ub("Error occurred running a find-by-IDs query after "+a.H+" retries.",a.error)))};Ead.prototype.UT=function(){this.dispatchEvent(new _.Fi(_.zFa))};
var Fad=function(a){a.O&&(a.log("Livelist "+a.li()+" returning "+(Object.values(a.items).length+". Status: ")+(_.mg(S1c)[a.Bb()]+". Query: ")+(vO(a.ka,a.request)+" ")+uZc(Object.values(a.items))),a.dispatchEvent(new _.Fi(_.Mc,a)))};Ead.prototype.log=function(a){this.ha.info("drive.ds.sync.IdViewCacheLiveMap",a)};
var Had=function(a,b,c,d,e,f){WO.call(this,a,b,c,d,e,f);this.ka=[]};_.N(Had,WO);Had.prototype.getData=function(){this.H=this.items;var a=(new _.fN).Ac(this.Bb()).Bv(this.items);var b=this.oj();a=_.A(a,4,b);return N1c(a,this.ka).pN(this.suggestionSessionId).Ai(this.Ve)};Had.prototype.update=function(a){t$c(this,a)&&(u$c(this,a),this.ka=_.Ok(a,_.nl,6),this.suggestionSessionId=a.tf(),s$c(this))};
var Iad=function(){};_.g=Iad.prototype;_.g.kK=function(a,b){return B$c(A$c(1),a).setPosition(b)};_.g.iK=function(a,b){return B$c(A$c(2).setPosition(b),a)};_.g.MC=function(a,b,c){return B$c(A$c(3).vx(b).setPosition(c),a)};_.g.eO=function(a,b){return B$c(A$c(4),a).setPosition(b)};_.g.HK=function(a){return a.wm()};
var Jad=function(){_.AN.call(this,new Iad,function(a){return a&&a.Bo()})};_.N(Jad,_.AN);
var Kad=function(a,b,c){cP.call(this,a.hk,a.Ml,b.ji()||10);this.request=b;this.O=[];this.data=[];this.changed=!1;this.V=new Jad;this.suggestionSessionId=null;this.ma=c};_.N(Kad,cP);_.g=Kad.prototype;_.g.gF=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.Fi(_.Mc,this))};_.g.getData=function(){this.O=this.data;return k3c(j3c((new gO).Ac(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.fr=function(){var a=this.V.oy(this.O,this.data);this.O=this.data;var b=(new W$c).Ac(this.status);return _.kb(b,2,a)};_.g.RM=function(){};_.g.Hs=function(){var a=this.status;this.pJ();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.Fi(_.Mc,this))};_.g.Zb=function(){return this.data.length};_.g.qd=function(){return this.request};
_.g.update=function(a){if(this.status!==a.Bb()||WN(0,this.data,a.dk())){this.changed=this.H=!0;this.data=a.dk();if(a=a.tf())this.suggestionSessionId=a;this.Hs()}};_.g.refresh=function(){this.ma()};_.g.Sz=function(a){this.dispatchEvent(new _.Wb(new _.Ub("Error occurred running a Suggested Workspace query after "+(a.H+" retries."),a.error)))};
var Lad=function(a,b,c){_.Q.call(this);var d=this;this.request=a;this.ka=b;this.ha=c;this.V=[];this.items=[];this.H=!1;this.status=6;this.W=sZc(new _.DN,[1]);this.O=!0;this.limit=a.ji();_.ee(this,function(){d.H=!1;d.V=[]})};_.N(Lad,_.Q);_.g=Lad.prototype;_.g.li=function(){return String(_.Da(this))};_.g.activate=function(){this.H=!0;_.oa(this.items)&&6===this.status&&this.O||this.dispatchEvent(new _.Fi(_.Mc,this))};_.g.qd=function(){return this.request};_.g.Bb=function(){return this.status};
_.g.mr=function(){return this.W};_.g.oj=function(){return this.O};_.g.getData=function(){this.V=this.items;return A0c((new _.IA).Ac(this.status).Bv(this.items),this.O)};_.g.fr=function(){var a=_.$Xc().oy(this.V,this.items),b=(new _.yOc).Ac(this.status);a=_.kb(b,2,a);this.V=this.items;return a};_.g.Kq=function(a){this.H&&(this.limit+=a||20,this.ka.WM(this.li(),this.limit))};
_.g.update=function(a){if(this.status!==a.Bb()||WN(_.$Xc(),this.items,a.Cd()))this.items=a.Cd(),this.status=a.Bb(),_.dL(this.ha)&&(this.W=tZc(this.status,this.items)),this.O=a.Mk(),this.H&&this.dispatchEvent(new _.Fi(_.Mc,this))};_.g.Sz=function(a){this.dispatchEvent(new _.Wb(new _.Ub("Error occurred running a Team Drive query after "+a.H+" retries.",a.error)))};_.g.UT=function(){this.dispatchEvent(new _.Fi(_.zFa))};_.g.ht=function(){throw Error("Pf");};_.g.refresh=function(){};
var Mad=function(a,b,c){_.Q.call(this);var d=this;this.context=a;this.ha=b;this.request=c;this.V=!1;this.O={};this.H={};this.status=6;this.W=sZc(new _.DN,[1]);this.context.$f().info("drive.ds.sync.TeamDriveLiveMap","Creating TD find by ids live map: "+this.request.Rl().join(", "));_.ee(this,function(){d.V=!1;d.O=[]})};_.N(Mad,_.Q);_.g=Mad.prototype;_.g.li=function(){return String(_.Da(this))};
_.g.activate=function(){this.V=!0;(0<Object.values(this.H).length||6!==this.status)&&this.dispatchEvent(new _.Fi(_.Mc,this))};_.g.qd=function(){return this.request};_.g.getData=function(){this.O=this.H;var a=new _.eN;a.Ac(this.status);a.map=this.H;return a};_.g.fr=function(){var a=vZc(this.O,this.H),b=new K2c;b.Ac(this.status);b.map=a;this.O=this.H;return b};_.g.Bb=function(){return this.status};_.g.mr=function(){return this.W};
_.g.WQ=function(a){var b=this.request;this.request=a;this.ha.Cna(this.li(),b,a)};_.g.update=function(a){if(this.status!==a.Bb()||wZc(this.H,a.map))this.status=a.Bb(),this.H=a.map,_.dL(this.context.Tc)&&(this.W=tZc(this.status,Object.values(this.H))),this.V&&this.dispatchEvent(new _.Fi(_.Mc,this))};_.g.Sz=function(a){this.dispatchEvent(new _.Wb(new _.Ub("Error occurred running a team drive find-by-IDs query after "+a.H+" retries.",a.error)))};_.g.UT=function(){this.dispatchEvent(new _.Fi(_.zFa))};
var Nad=function(){};_.g=Nad.prototype;_.g.kK=function(a,b){return D$c(C$c(1),a).setPosition(b)};_.g.iK=function(a,b){return D$c(C$c(2).setPosition(b),a)};_.g.MC=function(a,b,c){return D$c(C$c(3).vx(b).setPosition(c),a)};_.g.eO=function(a,b){return D$c(C$c(4),a).setPosition(b)};_.g.HK=function(a){return a.wm()};
var Oad=function(){_.AN.call(this,new Nad,function(a){return a&&a.getId()})};_.N(Oad,_.AN);
var Pad=function(a,b,c){cP.call(this,a.hk,a.Ml,b.ji()||10);this.request=b;this.ma=c;this.O=[];this.data=[];this.changed=!1;this.V=new Oad};_.N(Pad,cP);_.g=Pad.prototype;_.g.gF=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.Fi(_.Mc,this))};_.g.getData=function(){this.O=this.data;return z6c((new BO).Ac(this.status),this.data.slice(0))};_.g.fr=function(){var a=this.V.oy(this.O,this.data);this.O=this.data;var b=(new $$c).Ac(this.status);return _.kb(b,2,a)};
_.g.RM=function(){this.ma.WM(this.li(),this.limit)};_.g.Hs=function(){var a=this.status;this.pJ();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.Fi(_.Mc,this))};_.g.Zb=function(){return this.data.length};_.g.qd=function(){return this.request};_.g.update=function(a){var b=a.response;if(this.status!==b.Bb()||WN(0,this.data,b.dk()))this.H=!0,this.status=b.Bb(),this.data=b.dk(),this.ka=a.H,this.dispatchEvent(new _.Fi(_.Mc,this))};
_.g.Sz=function(a){this.dispatchEvent(new _.Wb(new _.Ub("Error occurred running a Workspace query after "+a.H+" retries.",a.error)))};
var Qad=function(a,b){this.context=a;this.ha=b;this.H={};this.ka={};this.ma={};this.V=null;this.W=a.ig;this.O=this.context.xpa;this.ta=this.context.zca};_.g=Qad.prototype;_.g.Nta=function(a){var b=this,c=new Aad(this.context.Bm,this.context.oS,this.context.$f(),this.context.Tc,function(d,e){b.WM(d,e)},a);this.Pk(c);_.ee(c,function(){b.Um(c)});return c};
_.g.Qta=function(a){var b=this,c=new Had(this.context.Bm,this.context.oS,this.context.$f(),function(d,e){b.WM(d,e)},a,this.context.Tc);this.Pk(c);_.ee(c,function(){b.Um(c)});return c};_.g.Kta=function(a){var b=this,c=new Ead(this.context.Tc,this.context.Bm,this.context.$f(),this.context.yca,this.Cna.bind(this),a);this.Pk(c);_.ee(c,function(){b.Um(c)});return c};_.g.Tta=function(a){var b=this,c=new Lad(a,this,this.context.Tc);this.Pk(c);_.ee(c,function(){b.Um(c)});return c};
_.g.Uta=function(a){var b=this,c=new Mad(this.context,this,a);this.Pk(c);_.ee(c,function(){b.Um(c)});return c};_.g.Xta=function(a){var b=this,c=new Pad(this.context,a,this);this.Pk(c);_.ee(c,function(){b.Um(c)});return c};_.g.Rta=function(a){var b=this,c=new Kad(this.context,a,function(){if(a instanceof _.xp){var d=Rad(b.context);a8c(d,d.getKey(a)).refresh()}});this.Pk(c);_.ee(c,function(){b.Um(c)});return c};
_.g.Yta=function(a){var b=this,c=new Dad(this.context,a);this.Pk(c);_.ee(c,function(){b.Um(c)});return c};_.g.Hta=function(a){var b=this,c=new yad(this.context.hk,this.context.Ml,this.context.$f(),function(d,e){b.WM(d,e)},a);this.Pk(c);_.ee(c,function(){b.Um(c)});return c};
_.g.Pk=function(a){var b=a.li();this.H[b]=a;this.ha.create(b,a.qd());a=a.qd()instanceof _.Ap?this.O.Pk(b,a.qd()):"undefined"!=typeof _.uM&&a.qd()instanceof _.uM?$7c(this.O,b,a.qd()):a.qd()instanceof _.xp?Rad(this.context).Pk(b,a.qd()):a.qd()instanceof _.OF?this.ta.Pk(b,a.qd()):this.W.Pk(b,a.qd());"boolean"===typeof a&&j6c(this.ha,b,a)};
_.g.Um=function(a){if(a.qd()instanceof _.Ap)this.O.Um(a.li(),a.qd());else if("undefined"!=typeof _.uM&&a.qd()instanceof _.uM){var b=this.O,c=a.li(),d=a.qd(),e=b.H.get(b.getKey(d));e&&(e.Um(c),e.isDisposed()&&b.H.delete(b.getKey(d)))}else a.qd()instanceof _.xp?Rad(this.context).Um(a.li(),a.qd()):a.qd()instanceof _.OF?this.ta.Um(a.li(),a.qd()):this.W.Um(a.li(),a.qd());xO(this.ha,a.li(),4);delete this.H[a.li()]};_.g.Cna=function(a,b,c){this.W.Um(a,b);this.W.Pk(a,c)};
_.g.WM=function(a,b){var c=T7c(this,a).qd();c.Yh(b);c instanceof _.Ap?this.O.Pk(a,c):"undefined"!=typeof _.uM&&c instanceof _.uM?$7c(this.O,a,c):c instanceof _.OF?this.ta.Pk(a,c):this.W.Pk(a,c)};_.g.ZP=function(a,b){this.ka[a]=b;this.V||(this.V=_.Oi(this.u6,50,this))};_.g.m1=function(a,b){this.ma[a]=b;this.V||(this.V=_.Oi(this.u6,50,this))};_.g.VB=function(a){(a=this.H[a])&&a.UT()};
_.g.u6=function(){_.Si(this.V);this.V=null;var a=Object.keys(this.ka),b=Object.keys(this.ma);a=_.m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=this.ka[c];if(d){delete this.ka[c];var e=this.H[c];e&&(m6c(this.ha,c,d),e.update(d))}}b=_.m(b);for(c=b.next();!c.done;c=b.next())if(a=c.value,c=this.ma[a])if(delete this.ma[a],d=this.H[a])xO(this.ha,a,3),d.Sz(c)};var T7c=function(a,b){if(!a.H[b])throw Error("Qf`"+b);return a.H[b]};
var dP=function(a,b){_.Q.call(this);this.O=a;this.request=b;this.se=_.ni();this.complete=!1;this.H=""};_.N(dP,_.Q);dP.prototype.start=function(){var a=this;this.O.then(function(b){return b.hh(a.request)}).then(this.W.bind(this)).eg(this.handleError.bind(this));return this.se.promise};dP.prototype.W=function(a){this.H=a.H;this.dispatchEvent(new vad(0,this.H));Sad(this)};
var Sad=function(a){_.q.setTimeout(function(){a.O.then(function(b){return b.hh(new _.JRc(a.H))}).then(a.ha.bind(a)).eg(a.handleError.bind(a))},5E3)};
dP.prototype.ha=function(a){if(1===a.status||3===a.status||2===a.status)this.dispatchEvent(new vad(a.O,this.H)),Sad(this);else{this.complete=!0;if(4===a.status){var b=new jad;b=_.A(b,2,a.V||[]);b=_.A(b,3,this.H);b=_.A(b,5,a.ka);b=_.A(b,6,a.ha);b=_.A(b,7,a.Iy);b=_.A(b,8,a.H);a=_.kb(b,4,a.W);this.se.resolve(a)}else a=_.lL(_.gr(_.fr(new _.Tb,"Export failed for request "+this.H+": "+a.status),JSON.stringify(a)),8),this.handleError(a);this.dispose()}};dP.prototype.cancel=function(){var a=this;this.O.then(function(b){return b.hh(new _.IRc(a.H))}).then(this.V.bind(this)).eg(this.handleError.bind(this))};
dP.prototype.V=function(){if(!this.complete){var a=new jad;a=_.A(a,3,this.H);a=_.A(a,1,!0);this.se.resolve(a);this.complete=!0;this.dispose()}};dP.prototype.handleError=function(a){this.complete=!0;this.se.reject(_.xL(a));this.dispose()};
var Tad=function(){_.Fi.call(this,"VbxEwf")};_.N(Tad,_.Fi);
var Uad=function(a,b){this.context=a;this.H=null;this.tc=b||null};_.g=Uad.prototype;_.g.Ka=function(){return _.D(this.context.Tc,_.hRc,58)};_.g.getContext=function(){return this.context};_.g.YC=function(){return this.context.lE.YC(this.H)};_.g.$f=function(){return this.context.$f()};_.g.VS=function(a){return _.wi(this.context.ig.Ll.H(a))};_.g.E7=function(){return _.wi(this.context.lE.E7())};
_.g.mna=function(a,b,c){var d=new _.ri;if(_.D(a,_.eL,3)||_.D(a,_.wM,4)||_.D(a,_.lN,5)||_.D(a,_.sM,6)||_.D(a,_.NL,7)||_.D(a,_.GL,8)||_.D(a,_.KL,9)||_.D(a,_.pL,10)){var e=g6c(a);this.context.Tn().then(function(f){return f.hh(e,{YLb:b,ZLb:c})}).then(this.Gub.bind(this,d),d.Rd,d);return d}throw Error("Rf");};
_.g.Gub=function(a,b){var c=[],d="";if(b instanceof _.mN){c=b.zo().Cd();var e=_.C(b,2);d=b.wo()}else if(b instanceof _.yM)b.getItem()&&c.push(b.getItem()),e=b.EO();else throw Error("Sf");a.callback({items:c,qfa:e,pageToken:d})};_.g.Q2a=function(){var a=this.context.Tc,b=a.Sf();a="email:"+_.ZK(a).getEmail().replace(/@.*$/,"");_.A(b,13,a)};_.g.sOa=function(){this.context.Eu.kV();var a=this.context.Tc;R9c(_.PM(_.ZK(a)),_.QM(a),this.context.$f()).eg(function(){})};
_.g.I6=function(){return _.LQc[_.vk(this.context.Tc.Sf(),8,0)]};_.g.lFa=function(){this.context.qX.H=new G8c(_.bh().substring(0,8))};_.g.W1=function(){var a=this.context.qX.G7(),b=null;a&&(b=I8c(this.context.qX),b={traceId:a,spanRecs:b});a=this.context.qX;a.H=null;a.R1=[];return _.wi(b)};_.g.G7=function(){return _.wi(this.context.qX.G7())};
_.g.getState=function(a){var b=this.context.Vj,c=b.H.bind(b);b={};b.b=this.context.Tc.Qi();b.m_ril=c("jroI5d");b.m_cil=c("T8oKm");b.m_icp=c("aU7Ts");b.m_idl=c("ZA9qG");b.m_il=c("W6J7De");b.m_if=c("DEJoH");b.m_pl=c("zaOY7");b.m_ps=c("mrK8ic");b.m_sls=c("Gv4zef");b.m_cp=c("BNEDtc");b.cs_cs=this.context.ig.Ll.Md();c=this.context.ig.Iv;var d=c.H;d&&(b.cs_sutd=d.v5,b.cs_ss=d.Md());b.cs_ch=g7c(c).length;b.cs_td=c.HT().length;(c=this.context.dJa)&&(b.t_cps=c.Lob().join(","));b.t_id=Vad(this.context);var e=
[];Wad(this.context.ET()).forEach(function(f,h){e.push(h+":"+f.join(";"))});b.t_ct=e.join(",");b.n_a=this.context.vR?this.context.Ml.isConnected():this.context.pX.Yz();b.n_o=this.context.vR?this.context.Ml.af():this.context.hk.af();b.n_csm=!!this.context.vR;a&&(b.csw_cc=a.O(),b.csw_ac=a.H(),b.csw_mcc=a.V());return _.wi(JSON.stringify(b))};_.g.L1a=function(){this.tc&&(this.tc.dispatchEvent(new Tad),this.tc.xx())};
_.g.xm=function(a){var b=this.context.vR;b&&a!==b.O&&(b.O=a,b.reset(),a?b.state.update(3):_.oVc(b))};
var Zad=function(a,b){this.context=a;this.Hg=b;this.H=_.wRc(v1c(this.Hg),Xad);this.O=_.wRc(v1c(this.Hg),Yad)};
Zad.prototype.Fk=function(a){var b=this,c=this.context.KN.wg().wg(),d=(c=c?c.getUser():null)?c.getId():null,e={};a.forEach(function(h){_.ARc(h);var k=h.getId(),l=b.context.hn();_.USc(h,3);_.sL(h,5);var n=OYc(h,!0);h.getCapabilities()||_.JM(h,new _.xl);_.H(n,2)&&((n=h.Ej())&&n.length?_.A(h,46,n[0]):(_.IM(h,[l]),_.A(h,46,l)),l=h.Gp(),_.A(h,12,l),l=new _.nl,l.Ob(d),_.A(l,6,1),_.hSc(l,!0),_.OSc(h,l),_.NSc(h,[l]),_.oOc(h,1));e[k]=h});a=Object.keys(e);c=this.context.ig;var f=B5c(c.Ll,a);_.bg(f,function(h,
k){HN(h.getItem(),e[k],b.H);(b.context.hk.af()||b.context.Ml.af()||3===KN(h.getItem()))&&HN(h.getItem(),e[k],b.O);_.jg(e,k)});_.bg(e,function(h){_.Bl(h.Sl())&&(f[h.getId()]=new rO(h))});$ad(c,Object.values(f))};var abd=function(a,b){var c=[];b.forEach(function(d){c.push(d.getItem())});a.Fk(c)},Xad=[50],Yad=[12,11,10,67,68];
var bbd=function(a){this.context=a;this.H=null;this.O=!1;this.V=new Zad(a,a.Hg)};_.g=bbd.prototype;
_.g.NV=function(a){this.H=a;this.O=!1;if(a){if(this.H){a=this.C6a.bind(this);var b=this.B6a.bind(this);this.log("Querying all offline items.");this.H.hT().Yf(a,b);this.O||(this.H.eY((0,_.v)(this.Csb,this)),this.O=!0)}}else{a=this.V.context.ig;b=new _.Pe;b.xm(!0);b=D5c(a.Ll,b);for(var c=[],d=[],e=0;e<b.length;e++){var f=b[e].getItem();if(3===KN(f)){var h=new _.iL;_.jL(h,f.getId());_.tL(h);d.push(h)}else h=new _.Al,_.FN(h,!1),_.A(h,2,!1),_.y(f,81,h),c.push(b[e])}$ad(a,c);a.Fq(d)}};
_.g.C6a=function(a){this.log("Processing all offline item(s): "+a.length);this.V.Fk(a);EO(this.context.Vj,"GZTDpc")};_.g.B6a=function(){this.log("Error fetching offline items.")};_.g.Csb=function(a){this.log("Handling offline change(s): "+a.length);abd(this.V,a)};_.g.log=function(a){this.context.$f().info("drive.ds.sync.offline.LocalDataService",a)};
var eP=function(a){_.Q.call(this);this.context=a;this.Ba="drive.ds.sync.BaseItemService";this.Pc=new _.oe(this);this.ma=null;this.Ta=this.va=!1;var b=new bbd(a);this.context.V=b;this.Fa=new Uad(a,this);rZc(this.Fa);(b=_.D(a.Tc,_.hRc,58))&&_.E(b,1,!1);this.La(this.Pc);this.O=this.context.Vj;this.W=a.xca;this.V=new Qad(a,this.W);a=this.context;b=this.V;a.ka=b;a.O.resolve(b);this.BOa()};_.N(eP,_.Q);_.g=eP.prototype;_.g.BOa=function(){};
_.g.initialize=function(){var a=this;if(!this.ma){this.ma=_.ni();var b=this.context.Gl().O(106E3);this.ma.promise.then(function(){b&&b.xk()},function(){_.VUc(a.context.Gl(),181008852)});var c=_.RM(this.context.Tc)?"(coldstart) ":"";this.context.$f().info(this.Ba,"Initializing "+c+"with client build: "+this.context.Tc.Qi());this.Pc.listen(this.context,_.Nc,this.aqb);this.Pc.listen(this.context.pX,["eb","fb"],function(d){return void a.dispatchEvent(d)});this.Pc.listen(this.context.Ml,[].concat(_.Vc(Object.values(_.gL))),
function(d){return void a.dispatchEvent(d)});this.Za();this.O.start();EO(this.O,"NSockf")}return this.ma.promise};_.g.cTa=function(){this.context.$f().info(this.Ba,"Ready to process requests.");this.va||(this.va=!0,this.ma.resolve())};_.g.aqb=function(a){var b=a.error,c=b.$g;c&&3===c.getType()&&!this.va?(this.va=!0,this.ma.reject(b)):this.dispatchEvent(a)};_.g.oW=function(){throw fP("teamDriveQuery");};_.g.bna=function(){throw fP("teamDriveFindByIds");};
_.g.cna=function(){throw fP("teamDriveMovePreflight");};_.g.qCa=function(){throw fP("peoplePredictQuery");};_.g.query=function(a){S5c(this.context.Bm,a,u1c(this.context.Hg));this.ML();var b=_.Uk(a);b=this.V.Nta(b);this.Ta||(a=a.re(),a&&121===_.C(a,1)||(this.Ta=!0,this.Pc.listen(b,_.Mc,this.$Ia)));return b};_.g.$Ia=function(a){a=a.currentTarget;if(1===a.Bb()){var b=this.O.H("W6J7De");this.Fa.H=b;this.Pc.Uc(a,_.Mc,this.$Ia)}};_.g.Yq=function(a){this.ML();Q5c(a);return this.V.Kta(_.Uk(a))};
_.g.Xra=function(){throw fP("activityQuery");};_.g.Gsa=function(){throw fP("backupsQuery");};_.g.$Ca=function(){throw fP("refreshBackups");};_.g.iT=function(){throw fP("getAndroidBackupItems");};_.g.sua=function(){throw fP("deleteBackup");};_.g.uCa=function(){throw fP("permissionQuery");};_.g.Eya=function(){throw fP("insertPermission");};_.g.vua=function(){throw fP("deletePermission");};_.g.ud=function(){throw fP("mutate");};_.g.SU=function(){throw fP("mutateWorkspace");};
_.g.YA=function(){throw fP("bulkMutate");};_.g.Jta=function(){throw fP("createFileUploader");};_.g.POa=function(a){return new dP(this.context.Tn(),a)};_.g.$q=function(a){if(3===a.getType())return _.xi(this.context.Tn().then(function(b){return b.hh(a)}).then(null,_.zL));throw fP("getApps with type "+a.getType());};_.g.Jr=function(){throw fP("getApp");};_.g.Fya=function(){throw fP("installApp");};_.g.rua=function(){throw fP("deleteApp");};_.g.q2=function(){throw fP("updateApp");};
_.g.LT=function(){throw fP("getUserAccount");};_.g.fL=function(){throw fP("getUserPrefs");};_.g.M0=function(){throw fP("mutateUserPref");};_.g.Vu=function(){throw fP("getRevisions");};_.g.gya=function(){return!1};_.g.xm=function(a){this.context.hk.xm(a)};_.g.PD=function(){throw fP("setOfflineOptIn");};_.g.NV=function(){throw fP("setLocalItemService");};_.g.ML=function(){};_.g.z9=function(){this.context.z9();this.context.Gl().H(106006)};_.g.Y6=function(){return this.Fa};_.g.P$=function(){};
_.g.Yz=function(){return this.context.pX.Yz()};_.g.g5=function(){return this.context.pX.g5()};_.g.isConnected=function(){return 1===this.context.vR.getState().get()};_.g.sync=function(){throw fP("sync");};_.g.xx=function(){return this.context.xx()};_.g.tBa=function(){throw fP("offlineDataLoaded");};_.g.AYa=function(a){return this.context.Tn().then(function(b){return b.hh(a)}).then(function(b){return b})};_.g.gta=function(){throw fP("categoryMetadataQuery");};
_.g.jta=function(){throw fP("changeCategoryLinks");};_.g.s2=function(){throw fP("updateCategoryMetadata");};_.g.LCa=function(){throw fP("publishedCategoriesQuery");};_.g.Yka=function(){throw fP("publishedCategoryQuery");};_.g.zHa=function(){throw fP("workspaceFindByIdsRequest");};_.g.Tna=function(){throw fP("workspaceQueryRequest");};_.g.TFa=function(){throw fP("suggestedWorkspaceItemQueryRequest");};_.g.Uma=function(){throw fP("suggestedWorkspaceQueryRequest");};
_.g.cea=function(){throw fP("addCacheHint");};_.g.ffa=function(){throw fP("createUserFeedback");};_.g.Fq=function(){throw fP("handleChanges");};var fP=function(a){return new _.Ub(a+" is unsupported",_.wL(3))};
var WZc=function(a){eP.call(this,a);this.Ba="drive.ds.sync.AnonymousItemService";a.pt("")};_.N(WZc,eP);WZc.prototype.Za=function(){DO(this.O,["NSockf"],this.cTa.bind(this))};
var cbd=new Set([1,2,4,5,6]),dbd=function(a,b,c,d,e){this.O=a;this.ka=b;this.ha=c;this.W=d;this.V=e;this.H=null;this.status=3;this.Ve=0};dbd.prototype.wg=function(){var a=new _.aP;a.Ac(this.status);this.H&&_.X$c(a,this.H?_.Uk(this.H):null);return a};
var ebd=function(a,b,c,d){d=void 0===d?!1:d;var e=cbd.has(c);if(1===a.status&&!e)return!1;a.Ve=c;var f=a.status;c=!a.H;if(_.dL(a.O)){var h=(h=b&&b.getUser())&&_.NF(h);h=!(!h||!J7c(a.ka,h));a.status=h&&e||d?1:6}f=!_.Tk(a.H,b)||(_.dL(a.O)?a.status!==f:6===a.status&&e);a.H=_.Uk(b);_.dL(a.O)||(a.status=e||d?1:6);c&&(EO(a.ha,"toquGd"),a.W.info("drive.ds.sync.account.InMemoryAccountCache","Account loaded from "+(e?"server":"cache")));f&&a.V.update(0);return f};dbd.prototype.Re=function(){return this.Ve};
var fbd=function(a){_.Q.call(this);this.W=a;this.Ve=0};_.N(fbd,_.Q);var gbd=function(a){a=_.Uk(a);var b=function(c){return c.toLowerCase()};b3c(a,_.Kd(a,4).map(b));c3c(a,_.Kd(a,5).map(b));return a};_.g=fbd.prototype;_.g.$q=function(){};_.g.put=function(){};_.g.remove=function(){};_.g.UN=function(){};_.g.DB=function(){return 0!==this.Ve};_.g.Re=function(){return this.Ve};
var hbd=new Set([1,2,4,5,6]),ibd=function(a,b,c){fbd.call(this,b);this.V=a;this.O=c;this.apps={};this.H=[];this.status=6;this.ln=!1};_.N(ibd,fbd);ibd.prototype.$q=function(){var a=new zO;if(!_.ig(this.apps)){_.A(a,4,this.H||[]);var b=[];_.bg(this.apps,function(c){b.push(_.Uk(c))});_.kb(a,2,b)}a.Ac(this.status);return a};ibd.prototype.put=function(a){this.apps[a.getId()]=gbd(a);this.O.update(1);this.dispatchEvent(new _.Fi("Qb",this))};ibd.prototype.remove=function(a){_.jg(this.apps,a)&&this.O.update(1)};
ibd.prototype.UN=function(a,b,c){c=void 0===c?!1:c;var d=!hbd.has(b);1===this.status&&d||(this.Ve=b,jbd(this,a,!d||c),d||this.O.update(1),this.ln||(this.ln=!0,this.V.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache","Apps initialized."),EO(this.W,"nVUlO")))};
var jbd=function(a,b,c){var d=!1,e=c?1:6;d=e!==a.status;a.status=e;e=_.Kd(b,4);if(!d)if(e.length!==a.H.length)d=!0;else{var f=e.concat(a.H);_.Ea(f);d=f.length!==a.H.length}a.H=e;var h=_.lg(a.apps);_.SQc(a.apps);b=_.Ok(b,_.eO,2);d||(d=b.length!==_.fg(h));b.forEach(function(k){var l=gbd(k);a.apps[k.getId()]=l;d||(k=h[k.getId()],d=!k||!_.Tk(l,k))});a.V.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache",(c?"Fresh":"Stale")+" apps loaded: "+b.length);d&&a.dispatchEvent(new _.Fi("Qb",a))};
var gP=function(a){_.P.call(this);this.context=a;this.ix=new Set;this.wn=6;this.Ve=0;this.Pc=new _.oe(this);this.La(this.Pc)};_.N(gP,_.P);_.g=gP.prototype;_.g.Pk=function(a){this.NNa(a);this.ix.add(a);this.resize(!0);this.ZP(a)};_.g.NNa=function(){};_.g.Um=function(a){this.ix.delete(a);0!=this.ix.size||this.nVa()?this.resize(!1):this.dispose()};_.g.Re=function(){return this.Ve};_.g.Ai=function(a){this.Ve=a};_.g.DK=function(){return this.wn};_.g.refresh=function(){};_.g.Tl=function(){};
var lbd=function(a,b,c){if(Array.isArray(c))c.forEach(function(f,h,k){k[h]=_.Uk(f)});else{for(var d in c){var e=c[d];c[d]=e?_.Uk(e):null}c=Object.values(c).filter(function(f){return null!=f})}kbd(a.context.ig,c,b);d=c.filter(function(f){return!tO(f)});sYc(b,d);c.forEach(function(f){F8c(a.context.eJa,f,b);if(f.zc()){var h=f.getCapabilities();tO(f)?h&&(_.tSc(h,_.H(h,13)),_.qSc(h,!1),_.xSc(h,!1)):JN(f)?(h&&_.A(h,3,!1),_.A(f,30,!1)):h&&(_.BSc(h,!1),_.CSc(h,!1))}f.getCapabilities()||_.JM(f,new _.xl)})};
gP.prototype.resize=function(){};gP.prototype.qd=function(){};gP.prototype.Fk=function(a,b){var c=this,d=!1;a.forEach(function(e){e=CO(e);d=c.wt(e,!0)||d});b||(1!=this.wn&&(d=!0),this.wn=1);d&&this.sV()};var mbd=function(a,b){var c=!1;b.forEach(function(d){c=a.wt(d)||c});c&&a.sV();return c};_.g=gP.prototype;_.g.update=function(a){return mbd(this,[a])};_.g.wt=function(){};_.g.sV=function(){var a=this;this.MNa();this.ix.forEach(function(b){a.ZP(b)})};_.g.MNa=function(){};
_.g.ZP=function(a){var b=hP(this.context);b=T7c(b,a).qd();this.BUa(b)||(b=this.Tl(b),hP(this.context).ZP(a,b))};_.g.m1=function(a){var b=this;this.wn=3;this.ix.forEach(function(c){hP(b.context).m1(c,a)})};_.g.VB=function(){var a=this;this.ix.forEach(function(b){hP(a.context).VB(b)});this.Ai(0==this.Re()?1:6)};_.g.nVa=function(){return!1};_.g.BUa=function(){return!1};
var nbd=function(a){_.Fi.call(this,"Db");this.id=a};_.N(nbd,_.Fi);
var obd=function(a,b,c,d){d=void 0===d?!1:d;_.Q.call(this);this.request=a;this.context=b;this.qHa=d;this.se=null;this.items={};this.W=[];this.V=[];this.H=null;this.originalRequest=c||a;this.O=new Set};_.N(obd,_.Q);
obd.prototype.ih=function(){var a=this;if(this.se)return this.se.promise;this.se=_.ni();this.request.Rl().forEach(function(b){var c=_.sp(_.Uk(a.request),[b]),d;a.qHa&&(d={qHa:!0});a.context.Tn().then(function(e){return e.hh(c,d)}).then(function(e){return void pbd(a,e)},function(e){e=_.yL(e);5===e.$g.Mr()||4===e.$g.Oj()?(a.context.$f().info("drive.ds.sync.query.ViewCacheFindByIdsRunner","Deleting "+b+" due to: "+e.message),a.V.push(b),qbd(a)):a.handleError(e)})});return this.se.promise};
var pbd=function(a,b){b.zo().Cd().forEach(function(c){_.sL(c,1);a.W.push(c)});qbd(a)},qbd=function(a){a.H||(a.H=_.q.setTimeout(a.ha.bind(a),10))};obd.prototype.ha=function(){_.q.clearTimeout(this.H);this.H=null;rbd(this);sbd(this);this.O.size===this.request.Rl().length?(this.context.ig.Fk([],1,this.originalRequest,!1),this.dispatchEvent("Fb"),this.se.resolve(this.items)):this.dispatchEvent("Cb")};
var rbd=function(a){var b=a.W;a.W=[];b=a.context.Aca.q6(b);if(_.YK(_.ZK(a.context.Tc))){var c=a.context.ig.Ll;_.Ka(b,function(d){var e=c.H(d.getId());e&&_.IM(d,e.Ej())})}b.forEach(function(d){a.O.add(d.getId());a.items[d.getId()]=d});a.context.ig.Fk(b,1,a.originalRequest,!0)},sbd=function(a){var b=a.V;a.V=[];b.forEach(function(c){var d=_.tL(_.jL(new _.iL,c));a.context.ig.Fq([d]);a.O.add(c);a.items[c]=null;a.dispatchEvent(new nbd(c))})};
obd.prototype.handleError=function(a){var b=new yO(a.$g,_.wk(this.context.Tc.Sf(),1,1));this.context.ig.Sz(this.request,b);this.dispatchEvent(b);this.se.reject(a)};
var tbd=function(a,b,c,d){gP.call(this,a);this.Hg=b;this.request=c;this.Od={};this.H=_.oL(a.Tc)||new _.HQc;d&&this.Fk(d,!0)};_.N(tbd,gP);
tbd.prototype.refresh=function(){var a=this;this.wn=6;if(_.E(this.request,5,!1))return this.wn=1,_.ii();var b=!vYc(_.XM(this.Hg),this.request.O()),c=[],d=this.context.hn();this.request.Rl().forEach(function(k){if("root"!==k&&k!==d){var l=a.Od[k],n=l&&l.getItem();if(l=!l||n&&1!==KN(n)||b)n=n&&n.Sl(),l=!(n&&_.H(n,2));l&&c.push(k)}});if(0===c.length)return this.Fk([],!1),_.ii();var e=this.request.clone();_.sp(e,c);var f=new obd(e,this.context,this.request),h=_.ni();this.context.hk.af()?(this.Pc.listen(this.context.hk,
"Ab",function(k){k.af()||(a.Pc.Uc(a.context.hk,"Ab"),ubd(a,f,h))}),this.wn=0<Object.values(this.Od).length?1:2):(this.context.Ml.af()&&(this.wn=0<Object.values(this.Od).length?1:2),ubd(this,f,h));return h.promise};var ubd=function(a,b,c){a.Pc.listen(b,"Db",function(d){a.Od[d.id]=null});a.VB();b.ih().then(function(){c.resolve()},c.reject)};_.g=tbd.prototype;
_.g.Nea=function(a){var b=this;return this.context.Bm.equals(a,this.request)?_.E(this.H,5,!1)&&_.E(this.H,3,!1)?a.Rl().every(function(c){return(c=b.Od[c])&&_.H(c.getItem(),31)}):vYc(_.XM(this.Hg),a.O()):!1};_.g.Tl=function(a){var b=new _.eN;_.dL(this.context.Tc)?b.Ac(IYc(Object.values(this.Od))?6:this.wn):b.Ac(this.wn);b.Ai(this.Re());I2c(b,_.dg(this.Od,function(c){return c?c.getItem():null}));lbd(this,a.O(),b.map);return b};_.g.resize=function(){};_.g.qd=function(){return this.request};
_.g.wt=function(a){var b=this.Zs(a.O),c=this.Zs(a.H);if(b||c)c?(this.Od[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Od[a.id]=null,a.O.count--);else return!1;return!0};_.g.Zs=function(a){return!!a&&_.na(this.request.Rl(),a.getId())};
var vbd=function(a,b){_.Fi.call(this,a);this.changes=b};_.N(vbd,_.Fi);
var wbd=function(a){var b=new O7c;if(a.tf()){var c=a.tf();b.H=!1;b.suggestionSessionId=c}a instanceof _.fN&&_.Ok(a,_.nl,6).length?(a=_.Ok(a,_.nl,6),b.H=!1,b.V=a):a instanceof _.IA&&(a.t3()||a.bpa()||a.sha().length)&&(c=a.t3(),b.H=!1,b.W=c,c=a.bpa()||!1,b.H=!1,b.incompleteSearch=c,a=a.sha(),b.H=!1,b.O=a);return b};
var iP=function(a,b,c,d,e){e=void 0===e?"":e;_.Q.call(this);this.context=a;this.request=b;this.nextPageToken=e;this.W=0;this.va=!1;this.V=[];this.O=!1;this.ka=0;this.Ja=a.$f();this.Ba=new Set;this.ma=c||!1;this.Ha=d||!1;this.Fa=this.ICa(b);this.ha=new O7c};_.N(iP,_.Q);var xbd=function(a){return!a.va||""!==a.nextPageToken},zbd=function(a,b){a.W=b;return a.V.length<a.W&&!a.O&&xbd(a)?ybd(a):_.wi()};iP.prototype.Zb=function(){return this.V.length};iP.prototype.H=function(){return this.V.slice()};
var ybd=function(a){var b=a.W-a.V.length+a.ka;a.log("Get more items called with limit of "+b);var c=a.nextPageToken,d=new _.ri;d.addCallback(function(f){return void Abd(a,c,f)});var e=_.nRc(_.oRc(new _.eL,a.Fa),c);b=_.lRc(new _.fQc,b);a.Ha&&_.A(b,10,!0);_.mRc(e,b);a.va=!0;a.O=!0;a.context.Tn().then(function(f){return f.hh(e)}).then(a.ta.bind(a,d),a.handleError.bind(a,d,b));return d};
iP.prototype.ta=function(a,b){this.O=!1;if(b instanceof _.fN)var c=b;else c=b.zo(),this.nextPageToken=b.wo()||"";this.ha=wbd(c);this.ha.uc()||this.dispatchEvent("Eb");a.callback(c.Cd())};
iP.prototype.handleError=function(a,b,c){c=_.yL(c);this.O=!1;if(5===c.$g.Mr())a.callback([]);else{if(10===c.$g.Mr()&&(_.lRc(b,Math.ceil(_.wk(b,1,1E3)/2-2E-15)),1<_.wk(b,1,1E3))){var d=_.mRc(_.nRc(_.oRc(new _.eL,this.Fa),this.nextPageToken),b);this.O=!0;this.context.Tn().then(function(e){return e.hh(d)}).then(this.ta.bind(this,a),this.handleError.bind(this,a,b));return}b=new yO(c.$g,_.wk(this.context.Tc.Sf(),1,1));this.aJa(b);this.dispatchEvent(b);a.Rd(c)}};
var Abd=function(a,b,c){for(var d=new Set,e=_.m(c),f=e.next();!f.done;f=e.next()){f=f.value;if(d.has(f.getId())){f="Encountered duplicate item in server query response. itemId: "+(f.getId()+", query: ")+(_.rUc(a.request)+" paginationToken: ")+b;b=_.hr(_.fr(_.lL(_.kL(new _.Tb,2),9),f));a.context.dispatchEvent(new _.Wb(new _.Ub(f,b)));break}d.add(f.getId())}f=c.filter(function(h){var k=a.Ba.has(h.getId());a.Ba.add(h.getId());return!k});a.ka+=c.length-f.length;c=_.m(f);for(b=c.next();!b.done;b=c.next())_.sL(b.value,
a.ma?2:1);c=[];b=_.m(a.UYa(f));for(f=b.next();!f.done;f=b.next())f=f.value,a.V.push(f.getId()),f=_.jL(new _.iL,f.getId()).setItem(f),c.push(f);c.length&&a.dispatchEvent(new vbd("Cb",c));if(a.V.length<a.W&&a.nextPageToken)return ybd(a);a.dispatchEvent("Fb")};_.g=iP.prototype;_.g.UYa=function(a){return a};_.g.aJa=function(){};_.g.qd=function(){return this.request};_.g.ICa=function(a){a=_.Uk(a);this.ma&&_.A(a,46,!0);return a};_.g.log=function(a){this.Ja.info("drive.ds.sync.query.QueryRunner",a)};
var Bbd=function(a,b,c,d){iP.call(this,a,b,void 0,c,d)};_.N(Bbd,iP);Bbd.prototype.UYa=function(a){a=this.context.Aca.q6(a);this.context.ig.Fk(a,1,this.request,xbd(this));return a};Bbd.prototype.aJa=function(a){this.context.ig.Sz(this.request,a)};Bbd.prototype.ICa=function(a){var b=a=iP.prototype.ICa.call(this,a),c=_.NM(b);0===_.Kd(b,33).length&&1===c.length&&(c=this.context.ig.Ll.H(c[0].Xa()))&&(c=c.zc())&&(_.BN(b,[c]),_.CN(b,2));Cbd(this,a);return a};
var Cbd=function(a,b){if(_.NM(b).some(function(d){return(d=a.context.ig.Ll.H(d.Xa()))&&_.H(d,108)})){var c=b.re();c||(c=new _.af,_.$l(b,c));_.bf(c,937)}};
var Dbd=function(a,b,c,d){this.context=a;this.Hg=b;this.W=d;this.Oka=0;this.H=c},Ebd=function(a){var b=_.Xc(a.H);b=b.filter(function(d){return d instanceof tbd});var c=new Set;b.forEach(function(d){d.qd().Rl().forEach(function(e){a.W.get(e)||c.add(e)})});b=_.bf(new _.af,310);a.log("Re-querying missing find-by-ids :"+c.size);a.cQ([].concat(_.Vc(c)),b)},Gbd=function(a,b){var c=[];(a.context.ig.RCa.dO[b||"subscribed"]||[]).forEach(function(d){_.bg(a.H,function(e){_.Tk(e.qd(),d)&&c.push(e)})});_.Ea(c);
0<c.length&&(Fbd(a),c.forEach(function(d){d=vO(a.context.Bm,d.qd(),3);a.log("Refreshing "+b+" cache: "+d)}),_.oi(_.li(c.map(function(d){return d.refresh().eg(_.uf)})),a.O.bind(a)))};Dbd.prototype.cQ=function(a,b,c,d){c=void 0===c?!1:c;a=a.filter(function(e){return!_.ld(e)});if(0===a.length)return _.ii({});a=_.A(_.rp(_.sp(new _.qp,a),d||_.XM(this.Hg)),7,!0);_.tp(a,b);Fbd(this);b=new obd(a,this.context,void 0,c);return _.oi(b.ih(),this.V.bind(this,b))};Dbd.prototype.V=function(a){a.dispose();this.O()};
var Fbd=function(a){a.Oka++;a.context.Eu.setActive(!1)};Dbd.prototype.O=function(){this.Oka--;0===this.Oka&&this.context.Eu.setActive(!0)};Dbd.prototype.log=function(a){this.context.$f().info("drive.ds.sync.cache.CacheRefresher",a)};
var Hbd=function(a,b,c){_.P.call(this);this.context=a;this.H=b;this.request=c;this.O=this.se=null;a=new _.af;_.cf(a,!1);_.bf(a,305);_.$l(this.request,a);this.Pc=new _.oe(this);this.La(this.Pc)};_.N(Hbd,_.P);
Hbd.prototype.ih=function(){if(!this.se){this.se=_.ni();if(_.E(this.request,48,!1))return this.H.Ai(9),this.se.resolve(this.H),this.se.promise;this.O=new iP(this.context,this.request,!0);this.Pc.listen(this.O,"Cb",this.W);this.Pc.listen(this.O,"Fb",this.V.bind(this));this.Pc.listen(this.O,"Gb",this.se.reject.bind(this.se));zbd(this.O,this.request.ji())}return this.se.promise};Hbd.prototype.W=function(a){var b=this;_.Ka(a.changes,function(c){c=c.getItem();b.H.update(CO(new rO(c)))})};
Hbd.prototype.V=function(){this.H instanceof FO?this.H.H=!xbd(this.O):xbd(this.O)&&T6c(this.H);this.H.Ai(5);this.se.resolve(this.H)};
var Jbd=function(a,b){_.Fi.call(this,Ibd);this.cache=a;this.changes=b};_.N(Jbd,_.Fi);var Ibd="Rb";
var Kbd=function(a,b){return new _.hi(function(c,d){b.then(function(e){var f={};a.iy().forEach(function(h){var k=h.getId();PYc(h.getItem());f[k]=new rO(h.getItem())});e.items.forEach(function(h){var k=h.Gc();k=f[k];h.Pj()?k&&a.update(new J6c(k.getId(),k,null)):(h=h.getItem(),PYc(h),a.update(K6c(k,new rO(h))))});a.E0();c(e.OFb)},d)})};
var Lbd=function(a,b){_.P.call(this);this.context=a;this.Hg=b};_.N(Lbd,_.P);
Lbd.prototype.ih=function(a){this.log("Running initial view populator (IVDP).");try{var b=new qO(JSON.parse(a))}catch(p){this.handleError("Error parsing initial view dump.",p);return}a=_.ZK(this.context.Tc);if(!_.YK(a)){var c=b.wg();if(c){var d=c.getUser();d&&d.getId()===_.G(a,6,"")&&ebd(this.context.KN,c,4)}(a=b.hn())&&this.context.pt(a,6)}var e=_.C(b,3)||void 0;e&&Mbd(this.context,e,!0);if((a=_.Ok(b,_.up,9))&&a.length){c=(c=this.context.Tc.Sf())&&_.Kd(c,30)||[];var f=new Set(c);a.forEach(function(p){(p=
(p=p.getKey())&&_.vp(p))&&f.add(p)});this.context.rC.UN(a,4,[].concat(_.Vc(f.values())))}a=b.Cd();a.forEach(function(p){_.ARc(p);_.sL(p,6)});if(c=_.Ok(b,pO,5)[0])if(b=this.context.Bm,CYc(_.XM(this.Hg),c.getQuery().O(),_.QM(this.context.Tc)))if((d=c.getQuery().Jc())&&4===d.getType()&&!MYc())this.handleError("Invalid initial view data, natural sort unsupported");else{if(0<a.length){d=uO(b,c.getQuery());var h=_.C(c,2)||void 0;d.Yh(h);h=a.map(function(p){return new rO(p,void 0,1,e)});var k=_.D(c,_.Dl,
3);if(k&&_.C(c,2)){var l=h[h.length-1];_.sL(k,6);if(!_.Tk(k,l.getItem())){this.handleError("Invalid last item in initial view data.");return}}c=(k=_.oL(this.context.Tc))&&_.E(k,2,!1)&&c.wo()||"";var n=new FO(this.context.$u,this.context.Xv,this.context.Bm,d,l,c);n.Ai(4);h.forEach(function(p){n.update(CO(p))});Nbd(this.context.ig,n);l=n.qd();this.log("Imported "+a.length+" initial view items (IVDP) into a cache\n                hint corpus cache. Query: "+vO(b,l));b=new _.eL;_.oRc(b,l);l=_.xVc(this.context.lE,
b,"IVDP");_.yVc(l,a);EO(this.context.Vj,"W6J7De")}}else this.handleError("Invalid initial view data, fields: "+P5c(b,c.getQuery().O()));else this.handleError("No initial query found")};Lbd.prototype.handleError=function(a,b){var c=b?void 0:_.hr(_.lL(_.kL(new _.Tb,2),6));b=new _.Ub(a,c,b);this.context.nH(b.$g);this.log("Initial view dump population failed. Message: "+a);EO(this.context.Vj,"DEJoH")};Lbd.prototype.log=function(a){this.context.$f().info("drive.ds.sync.cache.InitialViewPopulator",a)};
var Obd=function(a){_.Q.call(this);this.context=a;this.W="drive.ds.sync.cache.CorpusCachePopulator";this.V=0;this.O=new HO(a.$u,a.Xv,a.Vj,a.Tc,function(){return a.hn()})};_.N(Obd,_.Q);var Pbd=function(a,b){var c=_.wk(a.context.Tc,31,2E4);("number"===typeof _.C(b,3)?_.C(b,3):c+1)>c?(T6c(a.O),b="partialCorpus",a.log("Too many subscribed items; skipping cache.")):(b="fullCorpus",a.log("Caching all subscribed items."));a.context.lE.Jb("CachedCorpusType",b)};
Obd.prototype.log=function(a,b){this.context.$f().log(this.W,a,b||"info")};var Qbd=function(a,b){0===a.V&&(a.V=b)};
var Rbd=function(a,b){var c;if(c=!!b&&!!b.dh())a=a.Ql(),c=null==a||!!b.dh().Ql()==a;return c};
var Sbd=function(a,b){_.Q.call(this);this.context=a;this.request=b;this.V=[];this.nextPageToken="";this.H=this.O=!1};_.N(Sbd,_.Q);Sbd.prototype.ih=function(){return this.H||this.O&&""===this.nextPageToken?_.wi():Tbd(this)};Sbd.prototype.Zb=function(){return this.V.length};
var Tbd=function(a){a.O=!0;a.H=!0;var b=Z0c($0c(new _.wM,a.request),a.nextPageToken),c=_.xVc(a.context.lE,b);return _.xi(a.context.Tn().then(function(d){return d.hh(b)}).then(function(d){var e=d.zo().Cd();a.nextPageToken=d.wo()||"";Ubd(a,c,e)},function(d){return void a.handleError(d)}))},Ubd=function(a,b,c){_.yVc(b,c);for(b=0;b<c.length;b++)_.sL(c[b],1);a.context.ig.Fk(c,1,a.request,!a.O||""!==a.nextPageToken);var d=[];_.Ka(c,function(e){this.V.push(e.getId());e=_.jL(new _.iL,e.getId()).setItem(e);
d.push(e)},a);d.length&&a.dispatchEvent(new vbd("Cb",d));a.nextPageToken?Tbd(a):(a.H=!1,a.dispatchEvent("Fb"))};Sbd.prototype.handleError=function(a){this.H=!1;a=new yO(_.mL(a),_.wk(this.context.Tc.Sf(),1,1));this.dispatchEvent(a)};Sbd.prototype.qd=function(){return this.request};
var Vbd=function(a){this.H=l5c(a,{numeric:!0})};Vbd.prototype.sort=function(a){_.Ia(a,this.compare.bind(this))};Vbd.prototype.compare=function(a,b){a=a.getItem();b=b.getItem();var c=this.H(a.getTitle(),b.getTitle());return 0===c?_.Fa(a.getId(),b.getId()):c};
var Wbd=function(a,b,c,d){d=void 0===d?!1:d;gP.call(this,a);this.Hg=b;this.Od=[];this.se=null;this.request=_.Uk(c);this.jv=new Sbd(a,this.request);this.yKb=new Vbd(SN(_.ZK(a.Tc)));this.oU=null!=_.H(this.request,6);_.ee(this,this.uib,this);d&&(this.se=_.ni(),this.se.resolve())};_.N(Wbd,gP);_.g=Wbd.prototype;_.g.refresh=function(){3===this.wn&&(this.wn=6,this.se=null);return this.F$()};_.g.isInitialized=function(){return!!this.se};
_.g.F$=function(){var a=this;if(this.isInitialized())return this.se.promise;this.se=_.ni();this.context.hk.af()?this.Pc.listen(this.context.hk,"Ab",function(b){b.af()||(a.Pc.Uc(a.context.hk,"Ab"),a.VB(),a.jv.ih().Yf(a.se.resolve,a.se.reject,a.se))}):(this.VB(),this.jv.ih().Yf(this.se.resolve,this.se.reject,this.se));return this.se.promise};_.g.resize=function(){};_.g.qd=function(){return this.request};_.g.iy=function(){return this.Od};_.g.Nea=function(a){return this.context.Bm.equals(a,this.request)};
_.g.Tl=function(a){a=a.ji();this.yKb.sort(this.Od);var b=oZc(_.Aa(this.Od,0,Math.min(a,this.Od.length)));lbd(this,v1c(this.Hg),b);var c=new _.IA;c.Bv(b);c.Ac(this.xta(a));c.Ai(this.Re());A0c(c,a<this.Od.length||!(this.context.hk.af()||this.context.Ml.af())&&1!==this.wn);return c};_.g.xta=function(a){return 1===this.wn||a<=this.Od.length?1:this.context.hk.af()||this.context.Ml.af()?0<this.Od.length?1:2:6};_.g.Fk=function(a,b){this.isInitialized()&&gP.prototype.Fk.call(this,a,b)};
_.g.wt=function(a,b){b=void 0===b?!1:b;if(!this.isInitialized())return!1;var c=a.id,d=_.la(this.Od,function(h){return h.getId()===c}),e=!!d;b=this.Zs(a.H,b);var f=a.O;d&&(f=d,e=!0);if(e||b)e?b?this.YGa(f,a.H):this.kH(f):this.rP(a.H);else return!1;return!0};_.g.rP=function(a){this.Od.push(a);a.count++};_.g.kH=function(a){_.sa(this.Od,a);a.count--};_.g.wva=function(a){return _.ma(this.Od,a)};_.g.YGa=function(a,b){this.Od[this.wva(a)]=b;b.count++;a.count--};
_.g.Zs=function(a,b){b=void 0===b?!1:b;if(!a)return!1;if(this.oU&&null!=_.H(this.request,6)){if(b)return!0;var c=a.getId();b=!!this.Od.find(function(d){return c===d.getId()},this);a=tO(a.getItem())&&Rbd(this.request,a.getItem());return b&&a}return tO(a.getItem())&&Rbd(this.request,a.getItem())};_.g.uib=function(){this.Od.forEach(function(a){a.count--})};_.g.nVa=function(){return!0};_.g.getType=function(){return"TeamDriveViewCache"};_.g.Md=function(){return this.Od.length};
_.g.E0=function(){this.wn=1};
var Xbd=function(a){this.H=a},Zbd=function(a,b){return Ybd(a,b,null,0,5)},Ybd=function(a,b,c,d,e){if(0==e||null==b){var f=new S$c;_.A(f,2,b);_.A(f,1,d);return _.ii(f)}var h=f6c();_.A(h,2,b);c&&_.A(h,3,c);return a.H.then(function(k){return k.hh(h)}).then(function(k){var l=k.Rw();k=d+_.C(k,1);return Ybd(a,l,c,k,e-1)})};
var $bd=function(a,b){Obd.call(this,a);this.Hg=b;this.ha=void 0;this.ka=null;this.ma=!1;this.TB=void 0;this.W="drive.ds.sync.cache.LocalDumpPopulator";this.H=a.Tc};_.N($bd,Obd);$bd.prototype.handleError=function(){this.log("Local dump population failed.");EO(this.context.Vj,"mrK8ic")};
$bd.prototype.ih=function(){var a=this;if(this.ka)return this.ka;if(this.context.jO){var b=new _.ri;this.ka=b;this.initialize().then(function(){var c=_.Ok(_.TN(a.H),RN,11);c=c[0]&&c[0].getKey()||"";return acd(a,a.context.jO,c,4)}).eg(function(c){if(_.E(a.H,8,!0))return bcd(a);throw c;}).then(function(){_.dL(a.H)||a.context.ig.ws.H.clear();EO(a.context.Vj,"zaOY7");b.callback()},function(c){Qbd(a,8);a.handleError();b.Rd(c)});return b}this.handleError();return _.yi(Error("Tf"))};
$bd.prototype.initialize=function(){var a=this;return this.context.jO.initialize().then(function(){if(!_.RM(a.H)){var b=_.wk(_.TN(a.H),7,432E6);b&&(a.ha=Date.now()-b);return new _.hi(function(c,d){a$c(a.context.NB).then(function(e){e?c():d(Error("Uf"))})})}})};
var acd=function(a,b,c,d){var e=a.ha;ccd(a,b,c,e);dcd(a,b,c,e);ecd(a,b,c,e);return fcd(a,b,c,e).then(function(){return Promise.all([gcd(a,b,c,d,e),hcd(a,b,c,d,e),icd(a,b,c,d,e),jcd(a,b,c,d,e)])})},ccd=function(a,b,c,d){var e=function(){return a.log("Failed to load account from storage.")};QO(b,c,0,void 0,d,a.TB).then(function(f){f[0]?ebd(a.context.KN,f[0],a.Re(),_.RM(a.H)):e()},function(){return e()})},dcd=function(a,b,c,d){var e=function(){return a.log("Failed to load apps from storage.")};QO(b,
c,1,void 0,d,a.TB).then(function(f){f[0]?a.context.oX.UN(f[0],a.Re(),_.RM(a.H)):e()},function(){return e()})},ecd=function(a,b,c,d){var e=function(){return a.log("Failed to load user prefs from storage.")};QO(b,c,5,void 0,d,a.TB).then(function(f){if(f[0]){f=f[0];var h=_.Ok(f,_.up,1);h.length&&a.context.rC.UN(h,a.Re(),_.Kd(f,2),_.RM(a.H))}else e()},function(){return e()})},gcd=function(a,b,c,d,e){var f=new _.Bo;QO(b,c,3,1,e,a.TB).then(function(h){return kcd(a,h[0])}).then(function(h){if(h){b!==a.context.jO||
CYc(_.Kd(h,12),_.XM(a.Hg),_.QM(a.H))||(a.log("Disabling dump updater due to inconsistent fields.","warning"),a.context.Eu.kV());var k=_.C(h,3);if(!k||0>k)throw Error("Xf");a.context.pt(h.hn(),d);k=_.C(h,3);"number"===typeof k&&Mbd(a.context,Number(k));_.RM(a.H)&&(a.log("Coldstart: Firing INITIAL_CHANGES_PROCESSED."),a.context.sAa());a.Fk(h,d);f.resolve()}else f.reject("Failed to load cache hints from storage.")},f.reject,f);return f.promise},hcd=function(a,b,c,d,e){var f=new _.Bo;QO(b,c,3,2,e,a.TB).then(function(h){h[0]?
(a.Fk(h[0],d),f.resolve()):f.reject(Error("Vf"))},f.reject,f);return f.promise},icd=function(a,b,c,d,e){var f=new _.Bo;QO(b,c,3,4,e,a.TB).then(function(h){h.forEach(function(k){a.Fk(k,d)});f.resolve()},f.reject,f);return f.promise},jcd=function(a,b,c,d,e){var f=new _.Bo;QO(b,c,3,3,e,a.TB).then(function(h){h.length?h.forEach(function(k){a.Fk(k,d)}):EO(a.context.Vj,"rVezo");f.resolve()},f.reject,f);return f.promise},fcd=function(a,b,c,d){var e=new _.Bo;QO(b,c,6,void 0,d,a.TB).then(function(f){f=_.m(f);
for(var h=f.next();!h.done;h=f.next())h=h.value,_.Ok(h,AO,1).length&&(a.log("Importing "+_.Ok(h,AO,1).length+" people into the PeopleCache."),h=_.Ok(h,AO,1),q7c(a.context.ig.ws.H,h,2));e.resolve()},e.reject,e);return e.promise},kcd=function(a,b){var c=_.C(b,3);return c&&!_.RM(a.H)?Zbd(new Xbd(a.context.Tn()),c).then(function(d){return _.sk(d,2)?(a.log("Encrypted dump too stale."),a.context.Gl().H(106007),Qbd(a,9),null):b},function(){return b}):_.ii(b)},bcd=function(a){var b=RO(a.context.rJ.wi()),
c=_.Ok(_.TN(a.H),RN,11).filter(function(d){return d.Hq()});return T9c(_.PM(_.ZK(a.H)),_.QM(a.H),_.wk(_.TN(a.H),10,0)||0,_.XM(a.Hg),a.ha||0,c.map(function(d){return _.C(d,1)}),b).then(function(d){if(d){var e=c.find(function(k){return d.V===_.C(k,1)}),f=new SO(_.ii(d),a.context.$f(),null,!0),h=new R8c(f,a.H,function(k){a.context.nH(k)});h.initialize();a.ma=!0;return acd(a,h,e?e.getKey():null,8).then(function(){return f.getMetadata([Y9c])}).then(function(k){if(k[0])return k=k[0].Xa(),a.context.NB.set(Y9c,
k)}).then(function(){f.close()})}return _.ji(Error("Wf"))})},ocd=function(a,b,c){switch(_.vk(b,13,0)){case 1:return lcd(a,b,c);case 2:b=_.D(b,AZc,11);if(!b)throw Error("Yf");Pbd(a,b);a.O.sL?(a.O.Ai(a.Re()),a=[{cache:a.O,changes:OO(a.context.Xx,null)}]):a=[];return a;case 3:return mcd(a,b);case 4:return ncd(a,b);default:return null}},lcd=function(a,b,c){var d=[];_.Ok(b,pO,5).forEach(function(e){var f=void 0,h=_.D(e,_.Dl,3);h&&(_.ARc(h),_.H(a.H,67)&&qYc(h,FYc),_.sL(h,c),f=new rO(h));var k=e.getQuery();
if(!_.E(k,48,!1)||_.Ok(a.H,_.Pe,44).some(function(l){if(!_.E(l,48,!1))return!1;l=uO(a.context.Bm,l,!0);return _.Tk(l,k)}))e=new FO(a.context.$u,a.context.Xv,a.context.Bm,k,f),e.Ai(a.Re()),d.push({cache:e,changes:OO(a.context.Xx,null)})});return d},ncd=function(a,b){return _.Ok(b,pO,5).map(function(c){c=new Wbd(a.context,a.Hg,_.D(c,_.SK,5),!0);c.Ai(a.Re());return{cache:c,changes:OO(a.context.Xx,null)}})},mcd=function(a,b){var c=_.Kd(_.Ok(b,pO,5)[0].getQuery(),33)[0],d=_.C(b,3)||void 0;b=OO(a.context.Xx,
c);jP(a.context).addCallback(function(f){f.gsa(c,d)});var e=new IO(a.context.$u,a.context.Xv,c);e.Ai(a.Re());return[{cache:e,changes:b}]};
$bd.prototype.Fk=function(a,b){var c=this,d=ocd(this,a,b);d&&0!==d.length?(a.Cd().forEach(function(e){_.ARc(e);_.H(c.H,67)&&qYc(e,FYc);_.sL(e,b);if(!_.dL(c.H)&&!c.context.ig.ws.H.uc()){var f=c.context.ig.ws;G7c(f,KO(f,[e]))}e=new rO(e);for(f=0;f<d.length;f++)d[f].cache.update(CO(e))}),d.forEach(function(e){var f=e.cache;c.dispatchEvent(new Jbd(f,e.changes));c.log("Imported "+f.Md()+" items into the "+f.getType());var h=null;f instanceof IO&&(h=f.zc());c.context.Aia.promise.then(function(){n8c(c.context.Xx,
h)})}),1===_.vk(a,13,0)&&EO(this.context.Vj,"ZA9qG")):this.log("Ignoring corpus cache for "+_.vk(a,13,0)+".")};$bd.prototype.Re=function(){return this.ma?7:3};
var pcd=function(a){_.P.call(this);this.context=a};_.N(pcd,_.P);pcd.prototype.ih=function(a){try{qcd(this,new L$c(JSON.parse(a)))}catch(b){this.handleError("Error parsing prefetched request.",b)}};
var qcd=function(a,b){a.log("Running prefetched request populator for "+b.getKey()+".");switch(b.getKey()){case 1:case 3:rcd(a,b);break;case 4:scd(a,b);break;case 6:tcd(a,b);break;case 2:ucd(a,b);break;case 7:vcd(a,b);break;case 5:_.Ok(_.D(b,N$c,7),L$c,1).forEach(function(c){qcd(a,c)});break;default:a.handleError("Unsupported prefetched request.")}},rcd=function(a,b){var c=_.D(b,_.Pe,2);b=JSON.parse(_.C(b,3)||"{}");var d=new _.eL;_.oRc(d,c);b=a.context.ET().upa.LC(d,{headers:{},text:"",json:b}).zo();
wcd(a,c,b)},tcd=function(a,b){wcd(a,_.D(b,_.Pe,2),_.D(b,_.IA,9))},wcd=function(a,b,c){for(var d=c.Cd(),e=_.m(d),f=e.next();!f.done;f=e.next())_.sL(f.value,7);c=wbd(c);a=a.context.ig;b=uO(a.context.Bm,b);e=kP(a,b);a.log("Initializing cache with "+d.length+" items for key '"+e+"'");f=a.O[e];f||(f=new lP(a.context,b),f.Ai(2),a.O[e]=f);c.uc()||f.tpa(c);a.Fk(d,1,b)},ucd=function(a,b){b=_.D(b,_.wp,5);var c=a.context.Tc.Sf();c=c&&_.Kd(c,30)||[];var d=new Set(c);_.Ok(b,_.up,3).forEach(function(e){(e=(e=e.getKey())&&
_.vp(e))&&d.add(e)});a.context.rC.UN(_.Ok(b,_.up,3),2,[].concat(_.Vc(d.values())))},scd=function(a,b){a.context.xpa.O_(_.D(b,BO,8).dk(),_.D(b,_.Ap,6),2,!1)},vcd=function(a,b){var c=_.D(b,_.xp,10);b=JSON.parse(_.C(b,3)||"{}");b=a.context.ET().upa.LC(c,{headers:{},text:"",json:b});Rad(a.context).O_([b],c,2,!1)};pcd.prototype.handleError=function(a,b){var c=b?void 0:_.hr(_.lL(_.kL(new _.Tb,2),6));this.context.dispatchEvent(new _.Wb(new _.Ub(a,c,b)));this.log("Prefetched request population failed.")};
pcd.prototype.log=function(a){this.context.$f().info("drive.ds.sync.cache.PrefetchedRequestPopulator",a)};
var mP=function(a){Obd.call(this,a);this.H=[];this.ha=[];this.W="drive.ds.sync.cache.SdkCachePopulator";this.ma=Math.ceil(1.1*_.wk(a.Tc,31,2E4))};_.N(mP,Obd);mP.prototype.ih=function(){if(!_.E(this.context.Tc,45,!1))return Qbd(this,5),this.handleError(),_.yi(Error("Zf"));this.log("Drive SDK cache population initiated.");return this.context.PRa().addCallback(this.va,this).addCallback(this.ta,this).$e(this.handleError,this)};
mP.prototype.va=function(){var a=this;EO(this.context.Vj,"L6uQWd");jP(this.context).addCallback(function(b){b.Xaa()});if(_.E(this.context.Tc,46,!1))return zZc(this.context.Tn(),this.context.$f()).addCallback(function(b){if(!b)throw Qbd(a,4),Error("$f");Pbd(a,b)});this.log("Subscribed corpus cache population disabled.");T6c(this.O);return _.wi()};
mP.prototype.ta=function(){var a=this;this.context.sAa();var b=new _.ri;if(this.O.sL){this.log("Starting subscribed corpus cache population.");var c=this.O.qd();c.Yh(this.ma);this.O.Ai(5);xcd(this,this.O,c)}c=_.Ok(this.context.Tc,_.Pe,44);_.Ka(c,function(d){d=new FO(a.context.$u,a.context.Xv,a.context.Bm,d);d.Ai(5);xcd(a,d,d.qd());d=vO(a.context.Bm,d.qd());a.log("Starting "+d+" cache hint corpus cache population.")});_.li(this.ha).then(b.callback,this.ka.bind(this,b),b);return b};
var xcd=function(a,b,c){var d=OO(a.context.Xx,null);b=new Hbd(a.context,b,c);a.H.push(b);b=_.oi(b.ih().then(function(e){!e.sL&&e instanceof HO&&(a.log("Subscribed corpus cache disabled, too many backfill items."),a.context.lE.Jb("CachedCorpusType","errorUncachedCorpus"));a.dispatchEvent(new Jbd(e,d))}),function(){a.context.Aia.promise.then(function(){n8c(a.context.Xx,null)})});a.ha.push(b)};
mP.prototype.ka=function(a,b){_.Ka(this.H,function(d){d.dispose()});Qbd(this,7);var c=b;b instanceof yO?c=_.xL(b.error):_.cL(b)||(c=Error("ag`"+b));a.Rd(c)};mP.prototype.handleError=function(){this.log("Drive SDK cache population failed.");EO(this.context.Vj,"Gv4zef")};mP.prototype.Re=function(){return 5};
var ycd=function(a,b){_.P.call(this);this.context=a;this.V=b;this.Pc=new _.oe(this);this.impression=null;this.W=[];this.La(this.Pc);this.H=new $bd(this.context,this.context.Hg);this.La(this.H);this.O=new mP(this.context);this.La(this.O)};_.N(ycd,_.P);
ycd.prototype.ih=function(){var a=this;this.log("Corpus cache population initiated.");this.impression=this.context.Gl().O(106002);_.q._DRIVE_dsp&&zcd(this);_.q._DRIVE_dspc=function(c){zcd(a,c)};OO(this.context.Xx,null);_.E(this.context.Tc,24,!1)&&!_.RM(this.context.Tc)&&(_.q._DRIVE_ivd||null===_.q._DRIVE_ivd?Acd(this):_.q._DRIVE_ivdc=function(){Acd(a)});var b=this.context.jO;if(b)return this.Pc.listen(this.H,Ibd,this.ha),this.Pc.listen(this.O,Ibd,this.ha),(!_.E(this.context.Tc,10,!1)&&_.H(this.context.Tc,
69)?this.context.e1.promise:Promise.resolve()).then(function(){return b.initialize().then(function(){a.log("Dump storage initialized.");a.impression&&(a.H.TB=a.impression);return a.H.ih().Yf(function(){return Bcd(a,a.H.Re())},function(){Ccd(a,a.H.Re(),a.H.V);return _.RM(a.context.Tc)?a.handleError(Error("bg")):a.O.ih().then(function(){return Bcd(a,a.O.Re())},function(c){Ccd(a,a.O.Re(),a.O.V);return a.handleError(c)})})},function(c){a.handleError(_.cL(c)?c:void 0,!0)})});this.handleError(void 0,!0)};
var zcd=function(a,b){var c=new pcd(a.context);(_.q._DRIVE_dsp||[]).filter(function(d,e){return d&&[,!0,!0,!0,!0,,!0,!0][e]&&(!b||e===b)}).forEach(function(d){c.ih(d)});c.dispose()};ycd.prototype.ha=function(a){var b=a.cache;this.log("Cache populated: "+b.getType());this.W.push(Dcd(this,b,a.changes))};
var Bcd=function(a,b){n8c(a.context.Xx,null);EO(a.context.Vj,"L6uQWd");jP(a.context).addCallback(function(c){c.Xaa()});return Promise.all(a.W).then(function(){Ecd(a,b)})},Fcd=function(a){return(a=a.context.ig.Iv.H)&&a.sL?1:2},Ecd=function(a,b){if(!a.isDisposed()){_.RM(a.context.Tc)||Gcd(a.V,_.Ok(a.context.Tc,_.Pe,44));a.log("Corpus cache population complete.");var c=a.context.Vj;c.H("mrK8ic")?c.H("Gv4zef")||a.context.Eu.tAa():a$c(a.context.NB).then(function(d){d&&a.context.Eu.tAa()},function(){});
EO(c,"rVezo");EO(c,"BNEDtc");a.impression&&(b=_.dN(_.vQc,b),d1c(x1c(a.impression),b),c1c(x1c(a.impression),!0),e1c(x1c(a.impression),E5c(a.V.Ll)),f1c(x1c(a.impression),Fcd(a)),a.impression.xk());a.dispose()}},Ccd=function(a,b,c){a.impression&&(b=_.dN(_.vQc,b),d1c(x1c(a.impression),b),a=x1c(a.impression),_.Jk(a,3,c,void 0))};
ycd.prototype.handleError=function(a,b){b=void 0===b?!1:b;n8c(this.context.Xx,null);var c=this.context.Vj;EO(c,"L6uQWd");jP(this.context).addCallback(function(d){d.Xaa()});EO(c,"mrK8ic");EO(c,"Gv4zef");EO(c,"rVezo");EO(c,"BNEDtc");this.context.lE.Jb("CachedCorpusType","partialCorpus");c=!!this.H.context.jO||_.E(this.O.context.Tc,45,!1);a&&!b&&c?(c=void 0,b="Corpus population failed: ",_.cL(a)?(c=a,b+=c.message):b+=String(a),this.log(b),a=new _.Ub(b,void 0,c),c=a.$g,_.kL(c,_.RM(this.context.Tc)?3:
1),_.lL(c,6),_.fr(c,b),_.hr(c),this.context.dispatchEvent(new _.Wb(a))):this.log("Corpus population skipped");this.impression&&(c1c(x1c(this.impression),!1),this.impression.xk());this.dispose()};
var Dcd=function(a,b,c){return Kbd(b,c).then(function(d){d.some(function(e){return b instanceof IO&&e.Pj()&&e.Gc()===b.zc()})||Nbd(a.V,b,d)},function(){return a.handleError(Error("cg"))})},Acd=function(a){if(_.q._DRIVE_ivd){var b=new Lbd(a.context,a.context.Hg);a.La(b);b.ih(_.q._DRIVE_ivd)}else EO(a.context.Vj,"DEJoH")};ycd.prototype.log=function(a){this.context.$f().info("drive.ds.sync.cache.CorpusCachePopulatorManager",a)};
var Hcd=function(){GO.apply(this,arguments)};_.N(Hcd,GO);Hcd.prototype.Zs=function(a){var b;if(b=GO.prototype.Zs.call(this,a))a=a&&a.getItem()&&a.getItem().Sl(),b=!(!a||!_.H(a,3));return b};Hcd.prototype.qd=function(){};Hcd.prototype.getType=function(){};Hcd.prototype.vP=function(){};
var Icd=function(a,b){this.context=a;this.H=b;this.dO={}},Kcd=function(a,b){if(!_.VL(b)){var c=_.Kd(b,33);if(1===c.length)Jcd(a,c[0],b);else{c=_.NM(b);if(1===c.length&&!_.E(c[0],2,!1)){var d=c[0].Xa();c=a.H.get(d);if(!c){c=a.context.ig.qJ;var e=_.bf(new _.af,310);c.cQ([d],e).then(function(f){if((f=f[d])&&f.zc()){var h=f.getCapabilities();h&&_.Md(h)&&(f=f.zc(),Jcd(a,f,b))}else Jcd(a,null,b)});return}if(c.getItem().zc()&&_.Md(c.getItem().getCapabilities())){c=c.getItem().zc();Jcd(a,c,b);return}}Jcd(a,
null,b)}}},Jcd=function(a,b,c){if(b){var d=a.H.get(b);if(d&&!tO(d.getItem()))return}d=b||"subscribed";a.dO[d]||(a.dO[d]=[]);a.dO[d].push(c);b&&(jP(a.context).addCallback(function(e){e.gsa(b)}),Lcd(a.context.C2a,b))},Mcd=function(a,b){if(!_.VL(b)){var c={},d;for(d in a.dO){c.kR=d;for(var e=0;e<a.dO[c.kR].length;e++)if(_.Tk(b,a.dO[c.kR][e])){_.ra(a.dO[c.kR],e);"subscribed"!==c.kR&&jP(a.context).addCallback(function(f){return function(h){h.sDa(f.kR,!1)}}(c));return}c={kR:c.kR}}}};
var Ncd=function(){this.H=new Map;this.O=[];this.V=[]};
Ncd.prototype.update=function(a){var b=this,c=a.id,d=a.O;a=a.H;var e=(d||a).getItem();IN(e)&&(a?(e=a.getItem().wf())&&_.C(e,1)&&(1===_.Sd(e)||3===_.Sd(e))&&(e=_.C(e,1),this.H.has(e)||this.H.set(e,new Set),this.H.get(e).add(c)):!a&&d&&this.H.forEach(function(f,h,k){f.delete(c)&&0===f.size&&k.delete(h)}));!a&&d&&this.H.has(c)?(this.H.get(c).forEach(function(f){b.O.push(f)}),this.H.delete(c)):this.H.has(c)&&a&&(!d||d&&!_.Tk(a.getItem(),d.getItem()))&&this.H.get(c).forEach(function(f){b.V.push(f)})};
var Ocd=function(a){return a.V.filter(function(b){return!a.O.includes(b)})},Pcd=function(a){a.O=[];a.V=[]};
var Qcd=function(a,b){PO.call(this,_.Uk(a),b.Tn(),b.Tc,b.$f());this.context=b};_.N(Qcd,PO);Qcd.prototype.W=function(a){var b=new Map;a.Rl().forEach(function(c){var d=_.Gxa(_.Uk(a),[c]);b.set(c,d)});return b};Qcd.prototype.V=function(a){a=a.Cd()[0];this.context.ig.Fk([a],1,void 0,!0,this.request.O())};Qcd.prototype.ha=function(a){this.context.ig.Fk([],1,a,!1,this.request.O())};Qcd.prototype.ka=function(a){a=_.tL(_.jL(new _.iL,a));this.context.ig.Fq([a])};
var Rcd=function(a,b,c,d){gP.call(this,a);this.Hg=b;this.request=c;this.Od={};d&&this.Fk(d,!0)};_.N(Rcd,gP);_.g=Rcd.prototype;
_.g.refresh=function(){var a=this;this.wn=6;var b=sO(this.context.Tc)!==sO(this.context.Tc,this.request.O()),c=[];this.request.Rl().forEach(function(h){var k=a.Od[h];k&&k.getItem().dh()&&!b||c.push(h)});if(0===c.length)return this.Fk([],!1),_.ii();var d=_.Uk(this.request);_.Gxa(d,c);var e=new Qcd(d,this.context),f=_.ni();this.context.hk.af()?(this.Pc.listen(this.context.hk,"Ab",function(h){h.af()||(a.Pc.Uc(a.context.hk,"Ab"),a.VB(),e.ih().then(f.resolve,f.reject,f))}),this.wn=0<_.fg(this.Od)?1:2):
(this.context.Ml.af()&&(this.wn=0<_.fg(this.Od)?1:2),this.VB(),e.ih().then(f.resolve,f.reject,f));return f.promise};_.g.Nea=function(a){return this.context.Bm.equals(a,this.request)&&vYc(_.XM(this.Hg),a.O())};_.g.Tl=function(a){var b=new _.eN;b.Ac(this.wn);b.Ai(this.Re());I2c(b,_.dg(this.Od,function(c){return c?c.getItem():null}));lbd(this,a.O(),b.map);return b};_.g.resize=function(){};_.g.qd=function(){return this.request};
_.g.wt=function(a){var b=this.Zs(a.O),c=this.Zs(a.H);if(b||c)c?(this.Od[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Od[a.id]=null,a.O.count--);else return!1;return!0};_.g.Zs=function(a){return!!a&&this.request.Rl().includes(a.getId())};
var lP=function(a,b,c,d,e){gP.call(this,a);var f=this;this.V=0;this.Od=[];this.O={};this.ka=null;this.incompleteSearch=!1;this.ha=[];this.W=[];this.suggestionSessionId=null;this.count=0;this.va=null;this.ma=Date.now();this.request=_.Uk(b);this.jv=new Bbd(this.context,this.request,!1,e);b=this.request.Jc()&&G5c(this.request.Jc());e=this.context.Xv;this.H=b?(0,_.v)(e.compare,e,this.request):null;this.oU=!b||!x5c(this.request)||_.YK(_.ZK(a.Tc));this.Ba=Y6c(this.request);c&&this.Fk(c,!d);this.ta=_.wk(a.Tc.Sf(),
16,36E5);_.AM(this.request)&&this.Pc.listen(this.context.Yra,"Hb",this.Fa);_.ee(this,function(){_.aa(f.jv);f.clear()})};_.N(lP,gP);lP.prototype.refresh=function(){return Scd(this,!1)};var Scd=function(a,b){a.wn=6;if(_.E(a.request,48,!1))return a.wn=1,_.ii();if(_.AM(a.request)){var c=Tcd,d=a.context.Yra.H;d=Math.max(Date.now()-d,a.ta);c(a,Math.min(d,2592E5))}return Ucd(a,b)};lP.prototype.initialize=function(){return this.count>=this.request.ji()||1===this.wn?_.ii():this.refresh()};
lP.prototype.clear=function(){Vcd(this)};var Vcd=function(a){a.Od.forEach(function(b){b.count--});a.count=0;a.Od=[];a.O={}},Tcd=function(a,b){_.q.clearTimeout(a.va);a.va=_.q.setTimeout(function(){return Scd(a,!0)},b)};lP.prototype.Fa=function(){Date.now()-this.ma>this.ta&&Tcd(this,0)};
var Ucd=function(a,b){a.jv&&(a.Pc.Uc(a.jv,"Eb",a.tpa),a.Pc.Uc(a.jv,"Fb",a.bJa),a.jv.dispose());var c=a.request.re();c&&_.cf(c,!1);a.jv=new Bbd(a.context,a.request,b);a.V=0;a.Pc.listen(a.jv,"Eb",function(){return a.tpa(a.jv.ha)});a.Pc.listen(a.jv,"Fb",a.bJa);return a.F$()};lP.prototype.F$=function(){var a=this,b=_.ni();this.context.hk.af()?this.Pc.listen(this.context.hk,"Ab",function(c){c.af()||(a.Pc.Uc(a.context.hk,"Ab"),Wcd(a,b))}):Wcd(this,b);return b.promise};
var Wcd=function(a,b){a.VB();var c=a.request.ji()+a.V;_.ija(zbd(a.jv,c).Yf(b.resolve,b.reject,b),function(){return a.ma=Date.now()})};_.g=lP.prototype;
_.g.resize=function(a){var b=0;for(var c=_.m(new Set([].concat(_.Vc(this.ix)))),d=c.next();!d.done;d=c.next()){d=d.value;var e=hP(this.context);d=T7c(e,d).qd();b=Math.max(b,d.ji())}_.AM(this.request)?(this.request.Yh(b),2!==this.Re()&&!this.jv.O&&(b>this.count||a)?this.refresh():this.QE()):this.request.ji()!==b&&(this.request.Yh(b),b>this.count?this.F$():this.QE())};_.g.qd=function(){return this.request};_.g.Nea=function(a){return this.context.Bm.equals(a,this.request)};
_.g.Tl=function(a){var b=a.ji(),c,d=!1;if(_.WL(this.request)){var e=this.Od.slice();var f=this.W.slice(0,b);if(this.W.length>b){var h=f.map(function(l){return l.getId()});for(c=0;c<e.length;c++){var k=e[c];d=_.Ml(k.getItem()).filter(function(l){return h.includes(_.D(l,_.nl,1).getId())});k=k.clone();zYc(k.getItem(),d);e[c]=k}e=e.filter(function(l){return _.Ml(l.getItem()).length})}d=IYc(e);c=new _.fN;_.A(c,4,!1);N1c(c,f)}else e=this.Od.slice(0,b),c=new _.IA,A0c(c,b<this.Od.length||!(this.context.hk.af()||
this.context.Ml.af())&&1!==this.wn),_.y(c,7,this.ka),_.A(c,8,this.incompleteSearch),_.gTc(c,this.ha),d=IYc(e);e=oZc(e);lbd(this,a.O(),e);c.Bv(e);c.Ac(d?6:this.xta(b));c.Ai(this.Re());c.pN(this.suggestionSessionId);return c};_.g.xta=function(a){return 1===this.wn||a<=this.count?1:this.context.hk.af()||this.context.Ml.af()?0<this.Od.length?1:2:6};_.g.tpa=function(a){this.ka=a.W;this.incompleteSearch=a.incompleteSearch;this.ha=a.Lwa();this.W=a.V;this.suggestionSessionId=a.tf()};
_.g.bJa=function(){var a=this.request.ji()-this.count;0<a&&xbd(this.jv)&&(this.V+=a,this.F$())};_.g.Fk=function(a,b){_.AM(this.request)&&Vcd(this);var c=!1;a=_.m(a);for(var d=a.next();!d.done;d=a.next())d=CO(d.value),c=this.wt(d,!0)||c;b||(1!==this.wn&&(c=!0),this.wn=1);if(b=this.H){a:{b=this.Od;a=this.H||_.Fa;for(d=1;d<b.length;d++)if(0<a(b[d-1],b[d])){b=!1;break a}b=!0}b=!b}b&&(this.Qm("ViewCache unsorted after import"),this.context.Xv.sort(this.request,this.Od));c&&this.sV()};
_.g.wt=function(a,b){var c=this.O[a.id],d=!!c,e=this.Zs(a.H,b),f=a.O;c&&(d?a.O&&a.O!==c&&this.Qm("Updating different wrapper from the existing one"):this.Qm("Updating existing item but old wrapper did not match"),f=c,d=!0);if(d||e)if(d)e?this.YGa(f,a.H):(this.kH(f),_.AM(this.request)&&Tcd(this,0));else{if(_.AM(this.request)&&!b)return!1;this.rP(a.H)}else return!1;return!0};_.g.rP=function(a){this.H?lYc(this.Od,a,this.H):this.Od.push(a);a.count++;Xcd(a)&&this.count++;this.O[a.getId()]=a};
_.g.kH=function(a){if(this.H){var b=this.Od,c=_.Ga(b,a,this.H);0<=c&&_.ra(b,c)}else _.sa(this.Od,a);a.count--;Xcd(a)&&this.count--;_.jg(this.O,a.getId())};_.g.wva=function(a){return this.H?_.Ga(this.Od,a,this.H):_.ma(this.Od,a)};_.g.YGa=function(a,b){this.H&&0!==this.H(a,b)?(this.kH(a),this.rP(b)):(this.Od[this.wva(a)]=b,b.count++,Xcd(b)&&this.count++,a.count--,Xcd(a)&&this.count--,_.jg(this.O,a.getId()),this.O[b.getId()]=b)};
_.g.Zs=function(a,b){if(!a)return!1;if(this.oU&&!_.AM(this.request)){if(b)return!0;if(!this.Ba){var c=a.getId();b=!!this.Od.find(function(e){return c===e.getId()},this);a=y5c(this.context.$u,this.request,a.getItem());return b&&a}}if(!y5c(this.context.$u,this.request,a.getItem()))return!1;var d=1.2*this.request.ji();if(1===this.wn||!this.H||e5c(a.H,2)||this.count<d||b||QYc(a.getItem()))return!0;b=0===this.Od.length?null:this.Od[this.Od.length-1];return!!b&&0>=this.H(a,b)};
_.g.QE=function(){if(1!==this.wn&&!this.context.hk.af()&&!this.context.Ml.af()){var a=1.2*this.request.ji();if(!(a>=this.count||this.jv&&a>=this.jv.Zb())){a=this.count-this.request.ji();for(var b=this.Od.length-1;0<=b&&0<a;b--){var c=this.Od[b];e5c(c.H,2)||QYc(c.getItem())||(c.count--,Xcd(c)&&this.count--,_.jg(this.O,c.getId()),_.ra(this.Od,b),a--)}Ucd(this,!1)}}};_.g.Qm=function(a){var b=new _.Tb;_.kL(b,2);_.lL(b,6);_.hr(b);this.context.dispatchEvent(new _.Wb(new _.Ub(a,b)))};
var Xcd=function(a){return!e5c(a.H,2)&&3!==KN(a.getItem())};lP.prototype.NNa=function(a){var b=this,c=_.NM(this.request);c.length&&(c=c.some(function(d){return(d=b.context.ig.Ll.H(d.Xa()))&&_.H(d,108)}),k6c(this.context.xca,a,c))};lP.prototype.MNa=function(){this.QE()};lP.prototype.BUa=function(a){return 1!==this.wn&&a.ji()>this.count&&this.jv.O};
var nP=function(a,b){_.P.call(this);var c=this;this.O={};this.W=new Ncd;this.Pc=new _.oe(this);this.La(this.Pc);this.context=a;this.Hg=b;this.Iv=new e7c(a.Bm);this.H=new w5c(a.yca,a.$u,a.Xv);_.H(a.Tc,60)&&(this.Ba=new Hcd(a.$u,a.Xv));this.V=new r5c(a.$f(),_.XM(this.Hg));(b=_.oL(this.context.Tc))&&!_.E(b,1,!1)&&Ycd(this,_.Kd(this.context.Tc,28));this.Ll=new A5c(this.Hg,this.context.Bm,this.H,this.V);this.context.Gl().W.H=this.Ll;this.qJ=new Dbd(this.context,this.Hg,this.O,this.H);this.RCa=new Icd(this.context,
this.H);this.ka=new ycd(this.context,this);_.ee(this.ka,function(){c.ka=null});this.va=_.wRc(v1c(this.Hg),Zcd);DO(this.context.Vj,["NSockf"],function(){return c.initialize()});DO(this.context.Vj,["NSockf","jroI5d"],function(){var d=c.context.Tc;if(_.D(d,_.Dl,12))d=_.D(d,_.Dl,12);else{var e=_.hSc(_.jSc(new _.nl,_.PM(_.ZK(d))),!0);e=_.A(e,6,1);var f=_.G(_.ZK(d),6,"");f&&e.Ob(f);e=_.oOc(_.NSc(_.OSc(_.PK((new _.Dl).Ob(c.context.hn()).setTitle(_.G(d,38,"My Drive")),"application/vnd.google-apps.folder").Sm(!1),
e),[e]),1);e=_.A(e,29,!0);e=_.A(e,63,!0);d=_.kSc(new _.xl,_.E(d,6,!0));d=_.A(d,2,!1);d=_.JM(e,_.xSc(_.qSc(_.pSc(_.tSc(_.uSc(_.sSc(_.rSc(_.oSc(_.nSc(_.mSc(_.lSc(_.A(d,3,!1),!1),!1),!0),!0),!1),!1),!1),!1),!1),!1),!1))}c.Fk([d],1);EO(c.context.Vj,"hVFf7")});this.ha=_.ni();DO(this.context.Vj,["BNEDtc"],function(){c.ha.resolve()});this.ws=new A7c(this.context.Tc,this.context.$f(),a.Tn(),a.xca,this.context.Gl(),this.context.e1.promise);_.dL(this.context.Tc)&&this.Pc.listen(this.ws,"Kb",this.ta);this.cJa=
new _.kVc(this.context.Tc,this.Ll)};_.N(nP,_.P);
nP.prototype.ta=function(a){a=a.getPeople();this.log("Handling PeopleCache updated with "+a.length+".");var b=new Set;a=_.m(a);for(var c=a.next();!c.done;c=a.next())this.ws.getItems(_.C(c.value,1)).forEach(function(f){return b.add(f)});a=[];c=_.m(b);for(var d=c.next();!d.done;d=c.next()){var e=d.value;(d=this.H.get(e))?(e=d.getItem().clone(),$cd(this,e),a.push(K6c(d,new rO(e,void 0,1)))):this.log("b/154479164 Unexpected missing wrapper for "+e+".","warning")}add(this,a,[]);this.context.Eu.update(6)};
nP.prototype.initialize=function(){this.ka.ih()};
nP.prototype.Pk=function(a,b){if(b instanceof _.Pe)b=uO(this.context.Bm,b),bdd(this,b.O()),Kcd(this.RCa,b),b=cdd(this,b),b.cache.Pk(a);else if(b instanceof _.qp)b=ddd(this,b),bdd(this,b.O()),b=edd(this,b),b.cache.Pk(a);else if(b instanceof _.SK){var c=kP(this,b),d=this.O[c];d?(3==d.DK()?(this.log(c+" | TeamDriveQueryRequest backed by refreshing existing cache"),d.refresh()):this.log(c+" | TeamDriveQueryRequest backed by existing view cache"),b={cache:d,Yu:!1}):(this.log(c+" | ItemQueryRequest backed by new cache"),
d=new Wbd(this.context,this.Hg,b),d.refresh().eg(_.uf),this.O[c]=d,b={cache:d,Yu:!0});b.cache.Pk(a)}else if(b instanceof _.yp)c=b.O(),d=this.V,s5c(d,d.H,d.O,c),b=edd(this,b),b.cache.Pk(a);else throw Error("dg");return b.Yu};nP.prototype.Um=function(a,b){if(b instanceof _.Pe)b=uO(this.context.Bm,b),Mcd(this.RCa,b);else if(b instanceof _.qp)b=ddd(this,b);else if(!(b instanceof _.SK||b instanceof _.yp))throw Error("dg");b=kP(this,b);var c=this.O[b];c&&(c.Um(a),c.isDisposed()&&delete this.O[b])};
var kP=function(a,b){return vO(a.context.Bm,b,2)},cdd=function(a,b){var c=kP(a,b),d=a.O[c];if(d)return 3==d.DK()?(a.log(c+" | ItemQueryRequest backed by refreshing existing cache"),d.refresh()):a.log(c+" | ItemQueryRequest backed by existing view cache"),{cache:d,Yu:!1};d=[];for(var e=5,f,h,k=f7c(a.Iv),l=0;l<k.length;l++){var n=k[l];e=n.UG(b);if(5!=e){f=1==e?void 0:b.ji();d=n.vxa(b,f);f=n.Re();h=n instanceof FO?n.Rw():"";a.log(c+" | ItemQueryRequest backed by "+n.getType()+" | size "+(n.Md()+" | initial "+
d.length));break}}5==e&&a.log(c+" | ItemQueryRequest backed by new cache");if(a.context.hk.af()||a.context.Ml.af())d=d.concat(a.H.query(b,1)),_.Ea(d,void 0,function(p){return p.getId()}),e=(e=a.Iv.H)&&e.v5&&5!=e.UG(b)?e.UG(b):6,a.log("Offline: Populate with "+d.length+" initial items(s)");d=new lP(a.context,b,d,1==e,h);f&&d.Ai(f);d.Fk(a.H.query(b,2),1!=e);d.initialize().eg(function(p){p=_.mL(p);_.hr(p);a.context.dispatchEvent(new _.Wb(new _.Ub("Error during view cache init",p)))});a.O[c]=d;return{cache:d,
Yu:!0}},edd=function(a,b){var c=kP(a,b),d=!1,e=a.O[c];if(e)e.Nea(b)?a.log("FindByIdsRequest backed by existing query cache: "+c):(d=a.H.getAll(b.Rl()),b=fdd(a,b,d),d=!0,a.O[c]=b,gdd(e,b),e=b,a.log("FindByIdsRequest backed by recreated query cache: "+c));else{var f=a.H.getAll(b.Rl());e=fdd(a,b,f);d=!0;a.O[c]=e;a.log("FindByIdsRequest backed by new query cache: "+c+" with "+(f.length+" initial items."))}return{cache:e,Yu:d}},fdd=function(a,b,c){var d;b instanceof _.qp?d=new tbd(a.context,a.Hg,b,c):
d=new Rcd(a.context,a.Hg,b,c);c.length&&d.Ai(8);d.refresh().eg(_.uf);return d};nP.prototype.HT=function(){return Object.values(this.O).filter(function(a){return a.qd()instanceof _.SK})};
nP.prototype.kZa=function(a){for(var b=_.bf(new _.af,309),c=[],d=_.m(Object.entries(this.V.items)),e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;f=_.m(Object.entries(f));for(var h=f.next();!h.done;h=f.next()){h=_.m(h.value);var k=h.next().value;h.next();if(k===a){c.push(Number(e));break}}}c.length&&(d=P5c(this.context.Bm,c,!0),this.log("Refreshing "+a+" for secondary fields: "+d+"."),this.qJ.cQ([a],b,!1,c))};
var kbd=function(a,b,c){c&&c.length&&u5c(a.V,b,c);_.dL(a.context.Tc)&&(a=a.ws,G7c(a,KO(a,b)))},Nbd=function(a,b,c){if(b instanceof Wbd){var d=kP(a,b.qd());if(a.O[d]){a.log(d+" | Cache already exists, ignoring persisted data");return}}b instanceof S6c&&a.Iv.removeAll([b]);var e={},f=new Map;d=a.H.iy();for(var h=_.m(d.keys()),k=h.next();!k.done;k=h.next())k=k.value,f.set(k,d.get(k));var l=[];b.iy().forEach(function(p){var t=p.getId(),u=a.H.get(t);if(u){var z=KN(u.getItem());3==z||4==z?e[p.getId()]=
p.getItem():u!=p&&(z=l.push,u=new J6c(p.getId(),p,u),z.call(l,u));f.delete(t)}else t=CO(p),a.H.update(t),a.W.update(t),_.dL(a.context.Tc)&&a.ws.UM(t);_.dL(a.context.Tc)&&$cd(a,p.getItem())});d=_.m(f.values());for(h=d.next();!h.done;h=d.next())l.push(CO(h.value));d=_.m(l);for(h=d.next();!h.done;h=d.next())b.update(h.value);b instanceof Wbd?(d=kP(a,b.qd()),a.O[d]=b):a.Iv.addAll([b]);var n=[];_.bg(e,function(p){var t=new _.iL;_.jL(t,p.getId());t.setItem(p);n.push(t)});a.Fq(n);a.log("Merged cache: "+
b.getType());b instanceof IO&&c.forEach(function(p){hdd(a.context.wpa,p)});a.context.Eu.update(3)},gdd=function(a,b){(new Set([].concat(_.Vc(a.ix)))).forEach(function(c){b.Pk(c);a.Um(c)})};
nP.prototype.Fk=function(a,b,c,d,e){var f=this;e||(e=c?[].concat(_.Vc(c.O().filter(function(B){return!_.XM(f.Hg).includes(B)}))):[]);c&&c instanceof _.Pe&&_.AM(c)&&idd(this,a,c);for(var h=[],k=[],l=0;l<a.length;l++){var n=a[l],p=new rO(n,void 0,b),t=this.H.get(n.getId()),u=t?t.getItem():null,z=jdd(this,t,p);if(null!=z)p.BM(z),kdd(this,u,n),PYc(n),n=p5c(n,u,e),p.setItem(n);else if(null!=t)p=t,n=u;else continue;_.dL(this.context.Tc)&&$cd(this,n);!t||ldd(this,u,n,e)?(k.push(K6c(t,p)),h.push(p)):h.push(t)}a=
null;c&&(a=kP(this,c),a=this.O[a],c instanceof _.Pe&&(c=i7c(this.Iv,c))&&c.Fk(h,!!d),a&&a.Fk(h,!!d));0<k.length&&(_.dL(this.context.Tc)&&k.forEach(function(B){return f.ws.UM(B)}),add(this,k,e,a?[a]:[]),mdd(this,h));hP(this.context).u6()};
var $cd=function(a,b){K7c(a.ws,b)||5!=KN(b)||_.USc(b,1)},ldd=function(a,b,c,d){(b=b?_.Bk(b.clone(),82):null)&&kbd(a,[b],d);c=_.Bk(c.clone(),82);kbd(a,[c],[]);return!_.Tk(b,c)},idd=function(a,b,c){ndd(a,b,c);b.forEach(function(d,e){var f=a.Ll.H(d.getId());f&&(HN(f,d,[1002]),HN(f,d,[1003]),HN(f,d,[1005]),b[e]=f);_.VL(c)&&0<_.Kd(c,33).length&&_.VSc(d,_.Kd(c,33)[0])})},ndd=function(a,b,c){var d;_.VL(c)?d="quick access":_.WL(c)?d="people predict":_.cM(c)&&(d="drive priority");c=b.map(function(e){return e.getId()}).join(", ");
a.log("Got "+b.length+" items for "+d+": "+c)},$ad=function(a,b){var c={};b.forEach(function(d){c[d.H]||(c[d.H]=[]);c[d.H].push(d)});_.bg(c,function(d,e){e=Number(e);a.Fk(oZc(d),e)})};nP.prototype.ma=function(a){this.cJa.ma(a)};
nP.prototype.Fq=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a[d],f=e.Pj()?null:e.getItem(),h=e.Gc(),k=(h=this.H.get(h))?h.getItem():null,l=null;if(f){l=new rO(f,void 0,void 0,_.C(e,1)||void 0);var n=jdd(this,h,l);if(null==n)continue;l.BM(n);kdd(this,k,f);_.E(e,5,!1)&&qYc(f,FYc);PYc(f);f=p5c(f,k);l.setItem(f);_.dL(this.context.Tc)&&$cd(this,f)}this.context.C2a.Xw(e);(k&&!f||f&&ldd(this,k,f,[]))&&c.push(K6c(h,l))}_.dL(this.context.Tc)&&c.forEach(function(p){return b.ws.UM(p)});add(this,
c,[])};var kdd=function(a,b,c){b&&!c.Sl()&&HN(c,b,a.va);var d=b?b.wf():null,e=c.wf();e=e?_.Pd(e):null;d&&e&&kdd(a,_.Pd(d),e);b&&!_.Ll(c)&&HN(c,b,[1002]);b&&!_.Ml(c).length&&HN(c,b,[1003]);b&&!_.Ok(c,_.ul,117).length&&HN(c,b,[1005]);b&&null==c.$Z()&&HN(c,b,[71]);b&&null==_.C(c,79)&&HN(c,b,[73]);b&&_.H(b,31)&&!_.H(c,31)&&(qYc(c,FYc),a.log("Cleared Item Suggest data for "+b.getId()+"."))};
nP.prototype.Sz=function(a,b){if(a instanceof _.Pe||a instanceof _.qp||a instanceof _.SK)a=kP(this,a),(a=this.O[a])&&a.m1(b);else throw Error("dg");};var jdd=function(a,b,c){var d=c.getItem();if(e8c(a.context.Aca,d))return null;if(b){a=b.H;var e=c.H;if(!(0<=e?!a||a<=e:1))return null;a=b.getItem();if(3!=KN(a)&&!tO(a)&&!tO(d)&&a.zc()==d.zc())if(a.wi()&&d.wi()){if(a.wi()>d.wi())return null}else if(b.O&&c.O){if(b.O>c.O)return null}else if(a.Gp()>d.Gp())return null}return f5c(b&&b.H,c.H)};
nP.prototype.cG=function(a,b){(a=this.H.get(a))&&a.BM(f5c(a.H,b))};
var add=function(a,b,c,d){d=void 0===d?[]:d;var e=_.Xc(a.O),f=_.m(d);for(d=f.next();!d.done;d=f.next())_.sa(e,d.value);d=_.m(b);for(f=d.next();!f.done;f=d.next())f=f.value,a.V.update(f.id,f.H?f.H.getItem():null,c);c=_.m(e);for(d=c.next();!d.done;d=c.next())mbd(d.value,b);c=0;b=_.m(b);for(d=b.next();!d.done;d=b.next()){e=d.value;f=!1;d=f7c(a.Iv);var h=_.m(d);for(d=h.next();!d.done;d=h.next())d.value.update(e)&&(f=!0);f&&c++;_.H(a.context.Tc,60)&&a.Ba.update(e);a.H.update(e);a.W.update(e);a.H.get(e.id)||
a.V.QE(e.id)}0<c&&a.context.Eu.lka(c);odd(a)},odd=function(a){var b=a.W.O.slice(0),c=Ocd(a.W);Pcd(a.W);if(b.length){a.log("Refreshing shortcuts with unknown targets: "+b.join(", "));var d=new _.af;_.bf(d,308);a.qJ.cQ(b,d,!0)}if(c.length){a.log("Updating locally stale shortcuts: "+c.join(", "));b=B5c(a.Ll,c);var e=[];Object.values(b).forEach(function(f){var h=f.getItem().wf(),k=_.C(h,1);if(k=a.Ll.H(k))_.y(h,5,k),_.A(h,4,1),e.push(f)});$ad(a,e)}},ddd=function(a,b){_.Ia(b.O());var c=_.ma(b.Rl(),"root");
if(0>c)return b;b=_.Uk(b);b.Rl()[c]=a.context.hn();return b},Ycd=function(a,b){b=w1c(a.Hg,b);a=a.V;s5c(a,a.items,a.fields,b)},bdd=function(a,b){var c=_.oL(a.context.Tc);c&&_.E(c,1,!1)&&Ycd(a,b)},mdd=function(a,b){a.ha.promise.then(function(){var c=b.filter(function(e){return 4==KN(e.getItem())});if(c.length){c=c.map(function(e){return e.getId()});a.log("Refreshing "+c.length+" partial items. "+c);var d=_.bf(new _.af,311);a.qJ.cQ(c,d)}})},Gcd=function(a,b){a.ha.promise.then(function(){b.forEach(function(c){if(!i7c(a.Iv,
c)){a.log("Adding new cache hint for "+kP(a,c));var d=new FO(a.context.$u,a.context.Xv,a.context.Bm,c);c=new Hbd(a.context,d,c);var e=OO(a.context.Xx,null);_.oi(c.ih().then(function(){Kbd(d,e).then(function(f){Nbd(a,d,f)})}),function(){n8c(a.context.Xx,null)})}})})};nP.prototype.log=function(a,b){this.context.$f().log("drive.ds.sync.cache.CacheManager",a,void 0===b?"info":b)};var Zcd=[50];
var qdd=function(a){_.P.call(this);var b=this;this.context=a;this.H=[];this.V=new _.Gm;this.O=new Map;this.ka=-1;this.ha=0;var c=_.ni();this.va=c.promise;b$c(this.context.NB).then(function(d){b.H=d||[];c.resolve();pdd(b)},function(){return c.resolve()});DO(this.context.Vj,["rVezo"],(0,_.v)(this.W,this))};_.N(qdd,_.P);
var Lcd=function(a,b){_.E(a.context.Tc,46,!1)&&a.va.then(function(){if(a.H[0]!==b){_.sa(a.H,b);for(q5c(a.context.ig.Ll.H(b))?a.log(b,"Hidden TD, not tracking in recency list"):_.Ba(a.H,0,0,b);a.H.length>2*_.wk(a.context.Tc,47,5);)a.H.pop();a.context.NB.set(W9c,a.H)}a.context.ig.Iv.HT().length+a.O.size<_.wk(a.context.Tc,47,5)&&(pdd(a),a.W())})},rdd=function(a,b){_.sa(a.H,b)&&a.context.NB.set(W9c,a.H)};
qdd.prototype.Xw=function(a){hdd(this.context.wpa,a);if(tO(a)){var b=a.zc();a.Pj()?sdd(this,b):(a=a.getItem(),q5c(a)&&rdd(this,b))}};var sdd=function(a,b){rdd(a,b);a.V.contains(b)&&a.V.remove(b);var c=a.O.get(b);c&&c.dispose();a.O.delete(b);c=a.context.ig.Iv;for(var d=c.HT(),e=0;e<d.length;e++){var f=d[e];if(f.zc()===b){a.log(b,"Cache removed");c.removeAll([f]);a.context.Eu.update(3);break}}jP(a.context).addCallback(function(h){h.sDa(b,!0)});a.W()};
qdd.prototype.W=function(){if(this.context.Vj.H("rVezo")){var a=this.context.ig.Iv;tdd(this);for(var b={};this.V.Zb()&&!(this.ha>=_.wk(this.context.Tc,47,5));){var c=_.Hm(this.V);this.ha++;h7c(a,c)||this.O.has(c)||(this.O.set(c,null),b.Tba=new _.RRc,_.A(b.Tba,1,c),this.context.Tn().then(function(d){return function(e){return e.hh(d.Tba)}}(b)).then(this.ta.bind(this,c),this.ma.bind(this,c)));b={Tba:b.Tba}}}};
var pdd=function(a){a.H&&a.H.length&&(a.ha=0,a.V.clear(),a.H.forEach(function(b){a.V.enqueue(b)}))},tdd=function(a){_.q.clearTimeout(a.ka);a.ka=_.q.setTimeout(function(){pdd(a);a.W()},36E5)};qdd.prototype.ta=function(a,b){var c=_.C(b,1);c&&c>_.wk(this.context.Tc,48,1E3)?(this.log(a,"Too large to backfill: "+_.C(b,1)),udd(this,a,!1)):vdd(this,a)};
qdd.prototype.ma=function(a,b){(b=_.mL(b).Oj())&&4===b?(this.log(a,"Non-existent or inaccessible, removing from cache"),a=_.tL(_.ZQc(_.jL(new _.iL,a),a)),this.context.ig.Fq([a])):vdd(this,a)};
var vdd=function(a,b){var c=new IO(a.context.$u,a.context.Xv,b),d=_.Uk(c.qd());d.Yh(_.wk(a.context.Tc,48,1E3));d=new Hbd(a.context,c,d);a.O.set(b,d);a.log(b,"Backfill started");var e=OO(a.context.Xx,b);jP(a.context).addCallback(function(f){f.gsa(b)});_.oi(d.ih().then(function(){wdd(a,b,c,e)},function(){a.log(b,"Backfill failed");a.ha--;udd(a,b,!0)}),function(){n8c(a.context.Xx,b)})},wdd=function(a,b,c,d){c.sL?(c.E0(),Kbd(c,d).then(function(e){a.log(b,"Backfill complete, size: "+c.Md());Nbd(a.context.ig,
c,e);udd(a,b,!1)},function(){a.log(b,"Backfill changes failed");udd(a,b,!0)})):(a.log(b,"Backfill exceeded size limit"),udd(a,b,!0))},udd=function(a,b,c){var d=a.O.get(b);d&&d.dispose();a.O.delete(b);c&&jP(a.context).addCallback(function(e){e.sDa(b,!1)});a.W();0<a.O.size||a.context.ig.Iv.HT().map(function(e){return e.zc()}).filter(function(e){return!a.H.includes(e)}).forEach(function(e){sdd(a,e)})};
qdd.prototype.log=function(a,b){this.context.$f().info("drive.ds.sync.cache.TeamDriveCacheManager",a+" | "+b)};
var xdd=function(){_.P.apply(this,arguments)};_.N(xdd,_.P);
var Add=function(a,b){b=ydd(b);var c=a.getItem(),d=zdd(c.getCapabilities());b.T0.forEach(function(e){_.oOc(e.getItem(),c.ko());_.JM(e.getItem(),d.clone())});return b},Ddd=function(a,b,c){var d=Bdd(c);c=c.find(function(e){return e.getId()===b.getId()});c={ZH:c?c:new rO(b),children:[]};Cdd(a,d,c);return c},Bdd=function(a){var b={};a.map(function(c){c.getItem().Ej().map(function(d){b[d]||(b[d]=[]);b[d].push(c)})});return b},Cdd=function(a,b,c){var d=c.ZH.getItem();(b[d.getId()]||[]).forEach(function(e){c.children.push(Cdd(a,
b,{ZH:e,parent:c,children:[]}))});return c},Fdd=function(a,b){var c=b.children.filter(function(h){return!_.Kl(h.ZH.getItem())});b=new Map;for(var d=[];c.length;){var e=c.pop(),f=e.ZH.getItem();b.has(f.getId())||(_.oOc(f,a.ko()),Edd(a,f,e.parent?e.parent.ZH.getItem():void 0),e.children.map(function(h){_.Kl(h.ZH.getItem())||c.push(h)}),b.set(f.getId(),!0),d.push(e.ZH))}return d},Gdd=function(a){var b=a.children.filter(function(f){return!_.Kl(f.ZH.getItem())});a=new Map;for(var c=[];b.length;){var d=
b.pop(),e=d.ZH.getItem();a.has(e.getId())||(c.push(_.tL(_.jL(new _.iL,e.getId()))),d.children.map(function(f){_.Kl(f.ZH.getItem())||b.push(f)}),a.set(e.getId(),!0))}return c},ydd=function(a){var b=[],c=[];a.forEach(function(d){_.Kl(d.getItem())||_.H(d.getItem(),137)?c.push(d.getId()):b.push(d)});return{TY:c,T0:b}},zdd=function(a){a=a.clone();var b=null!=_.H(a,34)?_.H(a,34):_.H(a,7),c=null!=_.H(a,35)?_.H(a,35):_.H(a,7);_.A(a,45,c);_.DSc(a,b);_.A(a,30,c);_.ySc(a,b);_.ESc(a,c);_.zSc(a,c);_.ASc(a,b);
_.lSc(a,b);_.qSc(a,c);_.wSc(a,b);_.vSc(a,_.H(a,7));_.pSc(a,_.H(a,10)||_.H(a,11));_.xSc(a,_.yl(a));_.Bk(a,18);_.Bk(a,13);_.Bk(a,10);_.BSc(a,_.H(a,42));_.CSc(a,_.H(a,43));_.FSc(a,_.H(a,48));return a},Edd=function(a,b,c){var d=a.getCapabilities(),e=b.getCapabilities(),f=_.H(d,30);_.A(e,30,f);_.ySc(e,_.H(d,31));_.ESc(e,_.H(d,47));_.zSc(e,_.H(d,32));_.ASc(e,_.H(d,33));_.lSc(e,_.H(d,4));_.qSc(e,_.H(d,9));_.xSc(e,_.H(d,21));_.wSc(e,_.H(d,20));_.vSc(e,_.H(d,17));_.kSc(e,_.yl(d));_.oSc(e,_.H(d,7));_.rSc(e,
_.H(d,10));_.sSc(e,_.H(d,11));f=_.H(d,45);_.A(e,45,f);_.DSc(e,_.H(d,46));_.FSc(e,_.H(d,48));a=_.Kl(a);_.A(b,137,a);c&&(c=c.getCapabilities(),JN(b)?(_.pSc(e,_.H(c,43)),_.CSc(e,_.H(c,43)),_.BSc(e,_.H(c,42))):_.pSc(e,_.H(c,42)))};
var Hdd=function(a){this.context=a;this.V=new xdd;this.O=_.bf(new _.af,306);this.H=a.ig},hdd=function(a,b){if(tO(b))if(b.Pj())Idd(a,b);else{var c=b.Gc(),d=Jdd(a,c),e=a.H.Ll.H(c);b=Add(b,d);$ad(a.context.ig,b.T0);a.H.qJ.cQ(b.TY,a.O);a.log(c,"SD update | Update "+b.T0.length+" item(s), "+b.TY.length+" divergent items");if(d=D1c(a.context.Gl(),106017)){var f=z1c(d);_.A(f,1,b.TY.length);_.A(f,2,b.T0.length);d.xk()}e||(a=a.H.qJ,c&&(a.log("Processing potential rejoin for TD: "+c),b=_.CN(_.Zl(_.BN(new _.Pe,
[c]),_.XM(a.Hg)),1),e=_.bf(new _.af,306),_.$l(b,e),Fbd(a),b=new Bbd(a.context,b),zbd(b,5E3).addCallback(a.V.bind(a,b)),Ebd(a),Gbd(a,c)))}else if(_.E(a.context.Tc,86,!1)){c=b.Gc();e=a.H.Ll.H(c);if(e&&e.zc()&&JN(b.getItem()||e)){if(d=!!_.Kl(e),!b.Pj()){var h=b.getItem();f=_.Kl(e)!==_.Kl(h);h=h.ko()!==e.ko();d=f||d&&h}}else d=!1;if(d)if(b.Pj()){if(b=Jdd(a,e.zc()),e=a.V,d=(new _.Dl).Ob(c),b=(b=Ddd(e,d,b))?Gdd(b):[],a.context.ig.Fq(b),a.log(c,"SD shared folder delete | Removed "+b.length+" item(s)"),a=
D1c(a.context.Gl(),106009))c=y1c(a),_.A(c,2,b.length),a.xk()}else if(c=b.getItem(),e=Jdd(a,c.zc()),d=a.V,c=b.getItem(),c=(e=Ddd(d,c,e))?Fdd(c,e):[],$ad(a.context.ig,c),a.log(b.Gc(),"SD shared folder update | Updated "+c.length+" item(s)"),a=D1c(a.context.Gl(),106010))b=y1c(a),_.A(b,1,c.length),a.xk()}},Idd=function(a,b){var c=b.Gc();b=Jdd(a,c);b=ydd(b);var d=_.ib(b.T0,function(e){return _.tL(_.jL(new _.iL,e.getId()))});a.context.ig.Fq(d);a.H.qJ.cQ(b.TY,a.O);a.log(c,"SD delete | Remove "+d.length+
" item(s), "+b.TY.length+" divergent items");if(a=D1c(a.context.Gl(),106016))c=z1c(a),_.A(c,1,b.TY.length),_.A(c,2,b.T0.length),a.xk()},Jdd=function(a,b){var c=new _.Pe;_.BN(c,[b]);_.CN(c,2);return D5c(a.H.Ll,c)};Hdd.prototype.log=function(a,b){this.context.$f().info("drive.ds.sync.change.TdChangeProcessor",a+": "+b)};
var Kdd=function(a,b,c){this.H=a;this.V=b;this.nH=c};
Kdd.prototype.uw=function(a,b){var c=this;if(a.sT().length){var d=a8c(this.H,a.Gc());if(d){var e=d?b8c(this.H,a):[];for(var f={},h=_.m(a.sT()),k=h.next();!k.done;f={hJ:f.hJ},k=h.next())if(k=k.value,f.hJ=Ldd(e,k.Hm(),a.Gc()),_.H(k,3))h8c(this.H,f.hJ),_.oi(b,function(t){return function(){c.H.O.W(R7c(t.hJ))}}(f));else{for(var l=_.m(_.Ok(k,_.IF,2)),n=l.next();!n.done;n=l.next())Mdd(this,f.hJ,n.value);k=_.m(_.Kd(k,4));for(l=k.next();!l.done;l=k.next())Ndd(f.hJ,l.value);this.H.GB([f.hJ],!1,-1);b.then(function(t){return function(){return void c.H.cG(t.hJ.getName(),
-2)}}(f),function(t){return function(){c.H.cG(t.hJ.getName(),-2)}}(f))}e=this.zo(d.Tl().response)}}e=e?e:this.zo();var p=e.U_a;b.then(function(t){p.resolve(t)},function(t){p.reject(_.yL(t));c.handleError(a.Gc(),t)});return e};Kdd.prototype.zo=function(a){a=void 0===a?new dO:a;return new j5c(a.Ac(1))};var Ldd=function(a,b,c){var d=a.find(function(e){return Q7c(e.getName(),b)});d||(d=G2c((new bO).$c(b),c),a.push(d));return d};
Kdd.prototype.handleError=function(a,b){j8c(this.V,a);a=_.mL(b);_.A(a,21,"Server error updating metadata after optimistic application.");this.nH(a)};
var Mdd=function(a,b,c){var d=b.O().find(function(e){return e.getId()===c.getId()});d||(d=new $N,d.Ob(c.getId()),F2c(b,b.O().concat([d])),Odd(d,c));if(1===aO(d))d.setBooleanValue(_.H(c,3));else if(12===aO(d))d.setDateStringValue(_.C(c,17));else if(2===aO(d))d.setTextValue(_.C(c,4));else if(3===aO(d))_.Kd(c,6).length?d.bma(_.Kd(c,6)):_.Kd(c,5).length&&(a=_.Kd(d,7).concat(_.Kd(c,5)),d.bma(a));else if(4===aO(d))d.setLongTextValue(_.C(c,7));else if(5===aO(d))d.setSelectionValue(_.C(c,8));else if(6===
aO(d))_.Kd(c,10).length?d.Xla(_.Kd(c,10)):_.Kd(c,9).length&&(a=d.IIa().concat(_.Kd(c,9)),d.Xla(a));else if(7===aO(d))d.setIntegerValue(_.C(c,11));else if(8===aO(d))_.Kd(c,13).length?d.Ola(_.Kd(c,13)):_.Kd(c,12).length&&(a=_.Kd(d,12).concat(_.Kd(c,12)),d.Ola(a));else if(10===aO(d))d.setUserValue(a.O(_.C(c,14)));else if(11===aO(d))_.Kd(c,16).length?C2c(d,_.Kd(c,16).map(a.O)):_.Kd(c,15).length&&C2c(d,d.txa().concat(_.Kd(c,15).map(a.O)));else throw d="Optimistic Applier: Unsupported value type "+(aO(d)+
"."),new _.Ub(d,new _.Tb);},Ndd=function(a,b){if(a=a.O().find(function(c){return c.getId()===b}))if(1===aO(a))_.Bk(a,5);else if(12===aO(a))_.Bk(a,17);else if(2===aO(a))_.Bk(a,6);else if(3===aO(a))_.XG(a,7);else if(4===aO(a))_.Bk(a,8);else if(5===aO(a))_.Bk(a,9);else if(6===aO(a))_.XG(a,10);else if(7===aO(a))_.Bk(a,11);else if(8===aO(a))_.XG(a,12);else if(10===aO(a))_.Ck(a,15);else if(11===aO(a))_.Dk(a,16);else throw a="Optimistic Applier: Unsupported value type "+(aO(a)+"."),new _.Ub(a,new _.Tb);
},Odd=function(a,b){_.sk(b,3)?a.fz(1):_.sk(b,17)?a.fz(12):_.sk(b,4)?a.fz(2):_.Kd(b,6).length||_.Kd(b,5).length?a.fz(3):_.sk(b,7)?a.fz(4):_.sk(b,8)?a.fz(5):_.Kd(b,10).length||_.Kd(b,9).length?a.fz(6):_.sk(b,11)?a.fz(7):_.Kd(b,13).length||_.Kd(b,12).length?a.fz(8):_.sk(b,14)?a.fz(10):(_.Kd(b,16).length||_.Kd(b,15).length)&&a.fz(11)};Kdd.prototype.O=function(a){return _.iSc(_.gSc(1),a)};
var Pdd=function(a,b,c,d,e,f,h,k,l){this.H=a;this.ha=b;this.va=c;this.O=d;this.ka=e;this.Hg=f;this.W=0;this.V=k;this.ma=l;this.Ba=h};Pdd.prototype.apply=function(a,b){var c=this;if(!_.zM(a))return b;var d;a instanceof _.KL?d=Qdd(this,a,b):a instanceof _.RL?d=Rdd(this,a,b):a instanceof _.pL?d=this.uw(a,b):a instanceof _.FL?d=Sdd(this,a,b):a instanceof _.qM&&(d=this.va.uw(a,b));d&&(this.W++,this.ha.setActive(!1),_.oi(b,function(){c.W--;0==c.W&&c.ha.setActive(!0)}));return d?_.ii(d):b};
var Qdd=function(a,b,c){d8c(a.O,b.getId());var d=a.H.Ll.H(b.getId());_.oi(c.then(function(){return void a.ma("VMiG2e")},a.ta.bind(a,b.getId(),d)),a.O.W.bind(a.O,b.getId()));c.then(null,function(e){e=_.mL(e);_.A(e,21,"Server error deleting item after optimistic application.");a.V(e)});return(new _.yM).Ac(1)},Rdd=function(a,b,c){var d=b.Ss();d&&a.O.H.push(d);c.then(function(){d&&f8c(a.O,d)&&_.oi(Tdd(a,d,new _.jVc(1E4,3E5),Date.now()+72E5,5),function(){return void a.ma("VMiG2e")})},function(){d&&_.sa(a.O.H,
d)});c.then(null,function(e){e=_.mL(e);_.A(e,21,"Server error emptying trash after optimistic application.");a.V(e)});return(new _.yM).Ac(1)},Tdd=function(a,b,c,d,e){if(Date.now()>d||0>=e)return _.ii();var f=_.ni(),h=c.Xa();_.VG(c);setTimeout(function(){a.ka.then(function(k){var l=_.bf(new _.af,1425);l=nZc(!0,1,l);return k.hh(l).then(function(n){if(n=n.zo())if(n=n.Cd()[0],!n||(n.Ss()||0)>b){f.resolve();return}_.oi(Tdd(a,b,c,d,e),function(){return void f.resolve()})},function(){return _.oi(Tdd(a,b,
c,d,e-1),function(){return void f.resolve()})})})},h);return f.promise},Sdd=function(a,b,c){var d=b.zc(),e=a.H.Ll.H(d);if(!e)return null;e=_.Uk(e);kbd(a.H,[e],[157]);var f=e.dh();Udd(f,_.Ok(b,_.Cl,2));Vdd(f,_.Ok(b,_.Cl,3));a.H.Fk([e],-1,void 0,void 0,[157]);_.oi(c,function(){a.H.cG(d,-2)}).then(function(h){a.H.Fk([h.N7()],1,void 0,void 0,[157])},null);c.then(null,function(h){h=_.mL(h);_.A(h,21,"Server error updating item after optimistic application.");a.V(h)});return T2c(new S2c,e).Ac(1)},Udd=function(a,
b){var c={};b=_.m(b);for(var d=b.next();!d.done;c={Kba:c.Kba},d=b.next())c.Kba=d.value,_.Ok(a,_.Cl,8).some(function(e){return function(f){return f.Hm()==e.Kba.Hm()}}(c))||_.Rk(a,8,c.Kba,_.Cl,void 0)},Vdd=function(a,b){var c=b.map(function(d){return d.Hm()});b=_.Ok(a,_.Cl,8).filter(function(d){return!c.includes(d.Hm())});yYc(a,b)};
Pdd.prototype.uw=function(a,b){var c=this,d=this.H.Ll.H(a.getId());if(!d||d.zc()&&0==a.Ah()||null!=_.H(a,40))return null;var e=_.Kd(a,10),f=_.Kd(a,9);if(0<e.length&&0<f.length&&(e=Object.values(C5c(this.H.Ll,e.concat(f))).map(function(k){return k.zc()||"root"}),_.Ea(e),1<e.length))return null;var h=_.Uk(d);Wdd(this,a,h);this.H.Fk([h],-1,void 0,void 0,u1c(this.Hg));b.then(function(){return c.H.cG(a.getId(),-2)},function(){c.H.cG(a.getId(),-2);c.ta(a.getId(),d)});b.then(null,function(k){k=_.mL(k);if(63==
k.Oj()){var l=h.getId();_.A(k,22,l);_.A(k,23,f[0])}_.A(k,21,"Server error updating item after optimistic application.");c.V(k)});return _.KTc((new _.yM).setItem(h),h.getId()).Ac(1)};
var Wdd=function(a,b,c){null!=b.xg()&&c.wl(b.xg());null!=b.Gi()&&_.SSc(c,b.Gi());null!=b.getMimeType()&&_.PK(c,b.getMimeType());null!=_.C(b,7)&&_.nOc(c,_.C(b,7));null!=_.H(b,11)&&_.MSc(c,_.H(b,11));null!=_.H(b,4)&&c.iu(_.H(b,4));null!=_.H(b,16)&&_.RSc(c,_.H(b,16));null!=b.getTitle()&&c.setTitle(b.getTitle());null!=b.Ah()&&(c.Sm(b.Ah()),_.QSc(c,b.Ah()));null!=_.H(b,18)&&_.FN(OYc(c,!0),_.H(b,18));_.Kd(b,8).length&&_.IM(c,_.Kd(b,8));if(_.Kd(b,9).length){var d=new Set(c.Ej());_.Kd(b,9).forEach(function(n){return d.add(n)});
_.IM(c,[].concat(_.Vc(d)))}if(_.Kd(b,10).length){var e=new Set(c.Ej());_.Kd(b,10).forEach(function(n){return e.delete(n)});_.IM(c,[].concat(_.Vc(e)));var f=c.St();f&&_.Kd(b,10).includes(f)&&_.Bk(c,46)}if(!c.St()){var h=a.Ba();f=c.Ej().find(function(n){var p=a.H.Ll.H(n);return p&&!!p.St()||n==h});_.A(c,46,f||void 0)}c.Ej().length&&(f=a.H.Ll.H(c.Ej()[0]))&&_.VSc(c,f.zc());if(f=_.D(b,_.zl,25)){var k=_.D(c,_.zl,111)||new _.zl;null!=_.H(f,1)&&_.GSc(k,_.H(f,1));null!=_.C(f,2)&&_.HSc(k,_.C(f,2));_.y(c,111,
k)}var l=_.Kd(c,120);_.Kd(b,31).forEach(function(n){l.includes(n)||l.push(n)});_.Kd(b,32).forEach(function(n){_.sa(l,n)});_.A(c,120,l||[])};Pdd.prototype.ta=function(a,b){var c=this,d=_.sp(new _.qp,[a]);this.ka.then(function(e){return e.hh(d)}).then(function(e){e=e.zo().Cd()[0];c.H.Fk([_.Uk(e)],1)},function(){b&&c.H.Fk([_.Uk(b)],1)})};
var Xdd=function(a){this.H=a};_.N(Xdd,_.NWc);Xdd.prototype.execute=function(a,b,c){var d=_.NWc.prototype.execute.call(this,a,b,c);if(d)return d;if(c.qHa||b instanceof _.eL&&_.AM(b.qd()))if(c=I1c(this.H))return c;return b instanceof _.RL?(c=_.bf(new _.af,1424),a.hh(nZc(!1,1,c)).then(function(e){(e=e.zo())&&(e=e.Cd()[0])&&e.mUa()&&b.iaa(e.Ss())},function(){})):null};
var DZc=function(a,b){return[Ydd,Zdd,$dd,aed].reduce(function(c,d){var e;0!==c?e=c:e=_.Fa(d(a),d(b));return e},0)},Ydd=function(a){return bed[a.Jf()]},Zdd=function(a){return ced[a.getType()]},$dd=function(a){return a.getName()||""},aed=function(a){return a.getId()||""},oP={},bed=(oP[5]=0,oP[7]=1,oP[1]=2,oP[3]=3,oP[4]=4,oP[2]=5,oP[6]=6,oP),ded={},ced=(ded[1]=0,ded[2]=1,ded[3]=2,ded[4]=3,ded);
var eed=function(a,b,c,d,e,f,h,k,l){this.H=a;this.ma=b;this.O=c;this.W=d;this.ha=e;this.V=f;this.ka=h;this.ta=k;this.Hg=l};
eed.prototype.apply=function(a,b){var c=this;if(!(b instanceof _.yM&&8===b.Bb()))if(a instanceof _.EL||a instanceof _.GL||a instanceof _.HRc||a instanceof _.pL||a instanceof _.sM||a instanceof _.PRc||a instanceof _.vM||"undefined"!=typeof _.MN&&a instanceof _.MN){var d=_.sL(_.Uk(b.getItem()),9);this.H.Fk([d],1);F8c(this.ta,b.getItem(),_.XM(this.Hg))}else a instanceof _.KL?(b=_.tL(_.jL(new _.iL,a.getId())),this.H.Fq([b])):a instanceof _.NL?(b=_.tL(_.ZQc(_.jL(new _.iL,a.getId()),a.getId())),this.H.Fq([b]),
hdd(this.ma,b)):a instanceof _.RL?(b=nZc(!0).qd(),b=this.H.Ll.query(b).map(function(e){return _.tL(_.jL(new _.iL,e.getId()))}),this.H.Fq(b)):"undefined"!=typeof _.IL&&a instanceof _.IL?this.O.remove(a.ah()):"undefined"!=typeof _.TL&&a instanceof _.TL||"undefined"!=typeof _.oM&&a instanceof _.oM?this.O.put(b.Jr()):"undefined"!=typeof _.LL&&a instanceof _.LL?CZc(this.H,a):"undefined"!=typeof _.CC&&a instanceof _.CC?this.W.remove(a.getKey()):"undefined"!=typeof _.UL&&a instanceof _.UL?EZc(this.H,a,_.D(b,
_.nl,2)):"undefined"!=typeof _.DC&&a instanceof _.DC?this.W.put(b.ZIa()):a instanceof _.HL||a instanceof _.tM?this.ha.GB([b.wm()],!1):a instanceof _.OL?this.ha.GB([s8c(a.getId())],!1):a instanceof _.GRc?this.V.GB(b.response.O(),!1,1):a instanceof _.qM?(a.sT().filter(function(e){return _.H(e,3)}).forEach(function(e){return c.V.removeItem(e.Hm()||"",a.Gc())}),j8c(this.ka,a.Gc()),this.H.kZa(a.Gc())):"undefined"!=typeof _.bN&&a instanceof _.bN&&a.O().forEach(function(e){switch(e.getFeature()){case 3:case 1:switch(e=
e.O(),e.getType()){case 1:case 2:if(e=c.H.Ll.H(e.Gc())){var f=new _.iL;f=_.A(f,5,!0);e=_.jL(f,e.getId()).setItem(_.Uk(e));c.H.Fq([e])}}}})};
var fed=function(a){this.H=a};
fed.prototype.translate=function(a){if(a instanceof _.lM){var b=this.H.H(a.getId());if(!b)return new _.Tb;var c=(new _.pL).Ob(a.getId());if(b.zc()){var d=b.getCapabilities();_.Md(d)||_.H(d,9)?c.Sm(!0):_.qL(c,!1)}else d=a.getParent(),1===b.ko()?c.Sm(!0):d?(b=this.H.H(d),!b||_.H(b.getCapabilities(),7)?V0c(c,[d]):_.qL(c,!1)):_.qL(c,!1);return c}if("undefined"!=typeof _.mM&&a instanceof _.mM)return X0c(W0c(V0c(U0c((new _.pL).Ob(a.getId()),a.$cb()),a.adb()),a.bdb()),a.Zcb());if(a instanceof _.ERc){b=this.H.H(a.getId());
if(!b)return new _.Tb;c=(new _.pL).Ob(a.getId());b.zc()?(d=b.getCapabilities(),_.Md(d)||_.H(d,9)?c.Sm(!1):_.qL(c,!0)):(d=a.getParent(),1===b.ko()?c.Sm(!1):d?(b=this.H.H(d),!b||_.yl(b.getCapabilities())?U0c(c,[d]):_.qL(c,!0)):_.qL(c,!0));return c}if(a instanceof _.lN)return new _.HRc(a);if("undefined"!=typeof _.pP&&a instanceof _.pP)return a.O().map(function(f){var h=new _.qM;f=_.A(h,1,f);h=a.sT();f=_.kb(f,2,h);h=a.re();return _.y(f,3,h)});if(a instanceof _.QL){c=nZc(!1,1).qd();var e=0;this.H.query(c).forEach(function(f){(f=
f.Ss())&&(e=Math.max(e,f))});return E1c(new _.RL,a).iaa(e)}return a};
var ged=function(){};ged.prototype.validate=function(a){var b=null;"undefined"!=typeof _.dM&&a instanceof _.dM?(a=a.getId()||"",_.ld(a)&&(b="Tried to request backup with no id.")):"undefined"!=typeof _.JL&&a instanceof _.JL&&(a=a.getId()||"",_.ld(a)&&(b="Tried to delete backup with no id."));return b?_.mL(b):null};
var hed=function(a,b){this.O=a;this.H=b},led=function(a,b){_.uN(["drive#about"],b);var c=new _.aP,d=new _.BB;if(b.user){var e=_.wN(a.O,b.user);_.y(d,1,e)}a=ied(a,b);a=P0c(O0c(_.N0c(new _.gsb,a),b.rootFolderId),b.domainSharingPolicy);b.gsuiteSubscriptionInfo&&(e=b.gsuiteSubscriptionInfo,_.R0c(a,_.K0c(_.J0c((new _.AB).Ac(jed[e.status]),Number(e.trialMillisRemaining)),_.vN(e.trialEndTime))));b.teamDashboardCapabilities&&(e=b.teamDashboardCapabilities,_.S0c(a,_.M0c(_.L0c(new _.fsb,e.canAdministerTeam),
e.canManageInvites)));b.importFormats&&Q0c(a,b.importFormats.map(function(f){var h=new _.I0c;h=_.A(h,1,f.source);return _.A(h,2,f.targets||[])}));b.adminSecureLinkSetting&&_.A(a,10,ked[b.adminSecureLinkSetting]);_.y(d,3,a);_.X$c(c,d);b=b.largestChangeId;null!=b&&_.A(c,4,Number(b));return c},ied=function(a,b){var c=new _.esb;c=_.A(c,1,Number(b.quotaBytesTotal));c=_.A(c,2,Number(b.quotaBytesUsed));c=_.A(c,3,Number(b.quotaBytesUsedAggregate));c=_.A(c,4,Number(b.quotaBytesUsedInTrash));c=_.C0c(_.B0c(c,
GZc(b.quotaBytesByService||[])),med[b.quotaType]);if(_.E(a.H,5,!1)){a=_.E0c(_.D0c(c,Number(b.quotaBytesTotal)),"-1"===b.quotaBytesTotal?-1:Math.max(Number(b.quotaBytesTotal)-Number(b.quotaBytesUsedAggregate),0));var d=Number(b.quotaBytesUsedAggregate)-IZc(b);a=_.A(a,9,d);a=_.F0c(a,Number(b.quotaBytesUsedAggregate));a=_.A(a,11,Number(b.quotaBytesUsedInTrash));a=_.A(a,13,_.JYc(Number(b.quotaBytesUsedAggregate),Number(b.quotaBytesTotal)));_.G0c(a,ned[b.quotaStatus]||0);b.graceQuotaInfo&&b.graceQuotaInfo.endDate&&
(a=new _.dsb,d=_.o0a(new Date(b.graceQuotaInfo.endDate)),a=_.y(a,1,d),b=_.A(a,2,Number(b.graceQuotaInfo.additionalQuotaBytes)),_.y(c,12,b));b=c}else b=c;return b},ned={softLimitExceeded:2,hardLimitExceeded:3,underLimit:1},HZc=new Set(["POOLED_STORAGE","FAMILY"]),jed={isInTrial:1,hasPaidContract:2,noSubscription:3,trialExpired:4},FZc={DRIVE:1,FAMILY:4,GMAIL:2,PHOTOS:3,POOLED_STORAGE:5},med={LIMITED:1,UNLIMITED:2,POOLED:3},ked={unknown:0,requireLessSecureLinks:1,removeLessSecureLinks:2,userCanChoose:3};
var oed={TYPE_UNSPECIFIED:0,MOBILE:1,SYNC_CLIENT:2,APP:3},ped={TYPE_UNSPECIFIED:0,MY_DRIVE_ROOT:1,SHARED_DRIVE_ROOT:2,STANDARD_FOLDER:3},qed={TYPE_UNSPECIFIED:0,USER_DELETION:1,TRASH_AUTO_PURGE:2},red={TYPE_UNSPECIFIED:0,TRASH:1,PERMANENT_DELETE:2},sed={TYPE_UNSPECIFIED:0,UNTRASH:1,REVIVE:2},ted={ROLE_UNSPECIFIED:0,OWNER:1,ORGANIZER:2,FILE_ORGANIZER:3,EDITOR:4,COMMENTER:5,VIEWER:6,PUBLISHED_VIEWER:7},ued={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,RESOLVED:5,REOPENED:6},
ved={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,RESOLVED:5,REOPENED:6,REASSIGNED:7},wed={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,ACCEPTED:7,REJECTED:8,ACCEPT_DELETED:9,REJECT_DELETED:10},xed={TYPE_UNSPECIFIED:0,FLAGGED:1,CLEARED:2},yed={TYPE_UNSPECIFIED:0,LOADED_FOR_VIEW:1,VIEWED_MORE_CONTENT:2,OPEN_WITH_APP_INITIATED:3},zed={DOMAIN_VISIBILITY_UNKNOWN:0,DOMAIN_VISIBILITY_CONSUMER:1,DOMAIN_VISIBILITY_SAME_DOMAIN:2,DOMAIN_VISIBILITY_ALL_DOMAINS:3,
DOMAIN_VISIBILITY_RESTRICTED:4},Aed={NAMED_PARTY_UNKNOWN:0,NAMED_PARTY_UNNAMED:1,NAMED_PARTY_NAMED:2},Bed={TYPE_UNSPECIFIED:0,DOWNLOADED:1,DOWNLOAD_INITIATED:2,PRINT_INITIATED:3},Ced={UNSPECIFIED_REFERENCE_TYPE:0,LINK:1,DISCUSS:2},Ded={FEATURE_UNSPECIFIED:0,SHARING_OUTSIDE_DOMAIN:1,DIRECT_SHARING:2,ITEM_DUPLICATION:3,DRIVE_FILE_STREAM:4},Eed={RESTRICTION_UNSPECIFIED:0,UNRESTRICTED:1,FULLY_RESTRICTED:2},Fed={STATUS_UNSPECIFIED:0,IN_PROGRESS:1,COMPLETED:2,CANCELLED:3},Ged={DECISION_UNSPECIFIED:0,APPROVED:1,
DECLINED:2},Hed={TYPE_UNSPECIFIED:0,LABEL_ADDED:1,LABEL_REMOVED:2,LABEL_FIELD_VALUE_CHANGED:3},Ied={PUBLISH_MODE_UNSPECIFIED:0,NONE:1,FIXED:2,AUTO:3},Jed={REASON_UNSPECIFIED:0,ORPHAN_REPARENTED:1},Qed=function(a){return a.map(function(b){var c=new _.R4c;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "primaryActionDetail":d=Ked(e);_.y(c,2,d);break;case "actors":d=Led(e);_.kb(c,3,d);break;case "actions":d=Med(e);_.kb(c,
4,d);break;case "targets":d=Ned(e);_.kb(c,5,d);break;case "timestamp":c.O(Oed(e));break;case "timeRange":d=Ped(e),_.Qk(c,7,Q4c[0],d)}}return c})},Med=function(a){return a.map(function(b){var c=new _.O4c;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "detail":d=Ked(e);_.y(c,1,d);break;case "source":d=new H4c;e=_.m(Object.entries(e));for(var f=e.next();!f.done;f=e.next()){var h=_.m(f.value);f=h.next().value;h=h.next().value;
switch(f){case "type":_.Ik(d,2,oed[h]);break;case "appId":_.Hk(d,1,h)}}_.y(c,2,d);break;case "actor":d=Red(e);_.y(c,3,d);break;case "target":d=Sed(e);_.y(c,4,d);break;case "timestamp":c.O(Oed(e));break;case "timeRange":d=Ped(e),_.Qk(c,6,N4c[0],d)}}return c})},Ned=function(a){return a.map(function(b){return Sed(b)})},Ued=function(a){return a.map(function(b){return Ted(b)})},Sed=function(a){var b=new _.M4c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;
d=d.next().value;switch(c){case "driveItem":c=Ved(d);_.Qk(b,1,_.L4c[0],c);break;case "drive":c=new _.I4c;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "name":c.$c(f);break;case "title":c.setTitle(f);break;case "root":e=Ved(f),_.y(c,3,e)}}_.Qk(b,5,_.L4c[0],c);break;case "fileComment":c=new _.J4c;d=_.m(Object.entries(d));for(e=d.next();!e.done;e=d.next())switch(f=_.m(e.value),e=f.next().value,f=f.next().value,e){case "legacyCommentId":_.Hk(c,
1,f);break;case "legacyDiscussionId":_.Hk(c,2,f);break;case "linkToDiscussion":_.Hk(c,3,f);break;case "parent":c.Bg(Ved(f))}_.Qk(b,3,_.L4c[0],c)}}return b},Ted=function(a){var b=new _.Z3c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "driveItem":c=new _.X3c;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "name":c.$c(f);break;case "title":c.setTitle(f);
break;case "driveFile":e=c;f=new S3c;_.Qk(e,8,W3c[0],f);break;case "driveFolder":e=Wed(f);_.Qk(c,9,W3c[0],e);break;case "driveShortcut":e=Xed(f),_.Qk(c,10,W3c[0],e)}}_.Qk(b,1,Y3c[0],c);break;case "drive":c=Yed(d),_.Qk(b,3,Y3c[0],c)}}return b},Ved=function(a){var b=new _.V3c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "name":b.$c(d);break;case "title":b.setTitle(d);break;case "mimeType":_.Hk(b,6,d);break;case "version":_.Fk(b,
5,d);break;case "owner":c=new P3c;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "domain":e=Zed(f);_.y(c,3,e);break;case "user":e=qP(f);_.Qk(c,1,O3c[0],e);break;case "drive":e=Yed(f),_.Qk(c,4,O3c[0],e)}}_.y(b,7,c);break;case "driveFile":c=new S3c;_.Qk(b,8,Q3c[0],c);break;case "driveFolder":c=Wed(d);_.Qk(b,9,Q3c[0],c);break;case "driveShortcut":c=Xed(d),_.Qk(b,10,Q3c[0],c)}}return b},Yed=function(a){var b=new M3c;
a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "name":b.$c(d);break;case "title":b.setTitle(d)}}return b},Wed=function(a){var b=new _.T3c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "type":_.Ik(b,6,ped[d])}}return b},Xed=function(a){var b=new _.U3c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);
c=d.next().value;d=d.next().value;switch(c){case "targetName":_.Hk(b,1,d);break;case "targetMimeType":_.Hk(b,2,d)}}return b},Led=function(a){return a.map(function(b){return Red(b)})},Red=function(a){var b=new _.G4c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "user":c=qP(d);_.Qk(b,1,_.F4c[0],c);break;case "anonymous":c=new C4c;_.Qk(b,2,_.F4c[0],c);break;case "impersonation":c=new _.D4c;d=_.m(Object.entries(d));
for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "impersonatedUser":e=qP(f),_.y(c,1,e)}}_.Qk(b,3,_.F4c[0],c);break;case "system":c=new _.E4c;d=_.m(Object.entries(d));for(e=d.next();!e.done;e=d.next())switch(f=_.m(e.value),e=f.next().value,f=f.next().value,e){case "type":_.Ik(c,1,qed[f])}_.Qk(b,4,_.F4c[0],c);break;case "administrator":c=new _.B4c,_.Qk(b,5,_.F4c[0],c)}}return b},$ed=function(a){return a.map(function(b){return qP(b)})},qP=function(a){var b=
new _.t3c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "knownUser":c=new _.hO;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "personName":_.Hk(c,1,f);break;case "isCurrentUser":_.Gk(c,2,f);break;case "displayName":_.Hk(c,3,f);break;case "photoUrl":c.ym(f)}}_.Qk(b,2,_.r3c[0],c);break;case "unknownUser":c=new u3c;_.Qk(b,4,_.r3c[0],
c);break;case "deletedUser":c=new _.s3c,_.Qk(b,3,_.r3c[0],c)}}return b},Oed=function(a){var b=(new Date(a)).getTime();a=Math.floor(b/1E3);b=b%1E3*1E6;return _.n0a((new _.tx).setSeconds(a),b)},Ped=function(a){var b=new _.oO;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "startTime":b.RV(Oed(d));break;case "endTime":b.LD(Oed(d))}}return b},Zed=function(a){var b=new _.L3c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=
a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "name":b.$c(d);break;case "legacyId":_.Hk(b,3,d);break;case "audienceDisplayName":_.Hk(b,4,d)}}return b},Ked=function(a){for(var b=new _.nO,c=_.m(Object.entries(a)),d=c.next();!d.done;d=c.next()){var e=_.m(d.value),f=e.next().value,h=e.next().value;switch(f){case "create":for(var k=new _.d4c,l=_.m(Object.entries(h)),n=l.next();!n.done;n=l.next()){var p=_.m(n.value),t=p.next().value,u=p.next().value;switch(t){case "new":var z=
k,B=new a4c;_.Qk(z,1,_.$3c[0],B);break;case "upload":var F=k,I=new b4c;_.Qk(F,2,_.$3c[0],I);break;case "copy":for(var M=u,U=new _.c4c,R=_.m(Object.entries(M)),ca=R.next();!ca.done;ca=R.next()){var va=_.m(ca.value),ua=va.next().value,za=va.next().value;switch(ua){case "originalObject":var ea=Ted(za);_.y(U,1,ea)}}_.Qk(k,3,_.$3c[0],U)}}_.Qk(b,1,_.mO[0],k);break;case "edit":var Ha=new i4c;_.Qk(b,2,_.mO[0],Ha);break;case "move":for(var Ra=new _.n4c,jb=_.m(Object.entries(h)),Vb=jb.next();!Vb.done;Vb=jb.next()){var cc=
_.m(Vb.value),Gc=cc.next().value,Ed=cc.next().value;switch(Gc){case "addedParents":var pc=Ued(Ed);_.kb(Ra,1,pc);break;case "removedParents":var yd=Ued(Ed);_.kb(Ra,2,yd);break;case "fromOwnershipTransfer":_.Gk(Ra,3,Ed);break;case "reparents":var le=Ed.map(afd);_.kb(Ra,4,le)}}_.Qk(b,3,_.mO[0],Ra);break;case "rename":for(var Zc=new _.t4c,Be=_.m(Object.entries(h)),bd=Be.next();!bd.done;bd=Be.next()){var yb=_.m(bd.value),sg=yb.next().value,pe=yb.next().value;switch(sg){case "oldTitle":_.Hk(Zc,1,pe);break;
case "newTitle":_.Hk(Zc,2,pe)}}_.Qk(b,4,_.mO[0],Zc);break;case "delete":for(var Pf=new _.g4c,Ej=_.m(Object.entries(h)),ei=Ej.next();!ei.done;ei=Ej.next()){var lf=_.m(ei.value),jn=lf.next().value,kn=lf.next().value;switch(jn){case "type":_.Ik(Pf,1,red[kn])}}_.Qk(b,5,_.mO[0],Pf);break;case "restore":for(var yf=new _.u4c,tg=_.m(Object.entries(h)),vh=tg.next();!vh.done;vh=tg.next()){var qi=_.m(vh.value),qj=qi.next().value,ql=qi.next().value;switch(qj){case "type":_.Ik(yf,1,sed[ql])}}_.Qk(b,6,_.mO[0],
yf);break;case "permissionChange":for(var Bi=new _.q4c,Qj=_.m(Object.entries(h)),Ne=Qj.next();!Ne.done;Ne=Qj.next()){var rl=_.m(Ne.value),nk=rl.next().value,dh=rl.next().value;switch(nk){case "addedPermissions":var sl=bfd(dh);_.kb(Bi,1,sl);break;case "removedPermissions":var bm=bfd(dh);_.kb(Bi,2,bm);break;case "resharedPermissions":var Fl=bfd(dh);_.kb(Bi,3,Fl);break;case "otherActivePermissions":var ok=bfd(dh);_.kb(Bi,4,ok)}}_.Qk(b,7,_.mO[0],Bi);break;case "comment":for(var Rg=new _.K3c,Pi=_.m(Object.entries(h)),
fi=Pi.next();!fi.done;fi=Pi.next()){var Qi=_.m(fi.value),Qf=Qi.next().value,Gg=Qi.next().value;switch(Qf){case "post":for(var Lk=Gg,fj=new _.H3c,Gl=_.m(Object.entries(Lk)),zf=Gl.next();!zf.done;zf=Gl.next()){var rj=_.m(zf.value),cm=rj.next().value,dm=rj.next().value;switch(cm){case "subtype":_.Ik(fj,1,ued[dm])}}_.Qk(Rg,1,_.G3c[0],fj);break;case "assignment":for(var gi=Gg,Ri=new _.I3c,Dc=_.m(Object.entries(gi)),pk=Dc.next();!pk.done;pk=Dc.next()){var Hl=_.m(pk.value),kh=Hl.next().value,qk=Hl.next().value;
switch(kh){case "subtype":_.Ik(Ri,1,ved[qk]);break;case "assignedUser":var Hg=qP(qk);_.y(Ri,7,Hg)}}_.Qk(Rg,2,_.G3c[0],Ri);break;case "suggestion":for(var ap=Gg,ln=new _.J3c,Il=_.m(Object.entries(ap)),Mk=Il.next();!Mk.done;Mk=Il.next()){var co=_.m(Mk.value),Jl=co.next().value,sj=co.next().value;switch(Jl){case "subtype":_.Ik(ln,1,wed[sj])}}_.Qk(Rg,3,_.G3c[0],ln);break;case "mentionedUsers":var eo=$ed(Gg);_.kb(Rg,7,eo)}}_.Qk(b,8,_.mO[0],Rg);break;case "dlpChange":for(var fo=new _.f4c,gj=_.m(Object.entries(h)),
Nk=gj.next();!Nk.done;Nk=gj.next()){var rk=_.m(Nk.value),mn=rk.next().value,Sp=rk.next().value;switch(mn){case "type":_.Ik(fo,1,xed[Sp])}}_.Qk(b,9,_.mO[0],fo);break;case "view":for(var nn=new A4c,go=_.m(Object.entries(h)),ho=go.next();!ho.done;ho=go.next()){var Wr=_.m(ho.value),bw=Wr.next().value,Um=Wr.next().value;switch(bw){case "type":_.Ik(nn,1,yed[Um]);break;case "viewHistoryVisibility":for(var cw=Um,eq=new z4c,bt=_.m(Object.entries(cw)),fq=bt.next();!fq.done;fq=bt.next()){var gq=_.m(fq.value),
Xr=gq.next().value,dw=gq.next().value;switch(Xr){case "domainPolicyVisibilityState":_.Ik(eq,1,zed[dw]);break;case "namedPartyState":_.Ik(eq,2,Aed[dw])}}_.y(nn,2,eq)}}_.Qk(b,10,_.mO[0],nn);break;case "download":for(var NB=new h4c,iE=_.m(Object.entries(h)),OB=iE.next();!OB.done;OB=iE.next()){var zx=_.m(OB.value),jE=zx.next().value,Ax=zx.next().value;switch(jE){case "type":_.Ik(NB,1,Bed[Ax])}}_.Qk(b,11,_.mO[0],NB);break;case "reference":for(var Dz=new _.m3c,XL=_.m(Object.entries(h)),kE=XL.next();!kE.done;kE=
XL.next()){var TH=_.m(kE.value),YL=TH.next().value,UH=TH.next().value;switch(YL){case "type":_.Ik(Dz,1,Ced[UH]);break;case "context":for(var ZL=Dz,$L=ZL.Uj,Bx=UH,al=new l3c,jq=_.m(Object.entries(Bx)),vn=jq.next();!vn.done;vn=jq.next()){var HQ=_.m(vn.value),VH=HQ.next().value,PB=HQ.next().value;switch(VH){case "description":al.wl(PB);break;case "url":_.Hk(al,2,PB)}}$L.call(ZL,al)}}_.Qk(b,12,_.mO[0],Dz);break;case "settingsChange":for(var ae=new _.x4c,sX=_.m(Object.entries(h)),Du=sX.next();!Du.done;Du=
sX.next()){var wn=_.m(Du.value),aM=wn.next().value,QB=wn.next().value;switch(aM){case "restrictionChanges":var RB=cfd(QB);_.kb(ae,1,RB)}}_.Qk(b,13,_.mO[0],ae);break;case "approvalChange":for(var Ul=new _.z3c,bM=_.m(Object.entries(h)),SB=bM.next();!SB.done;SB=bM.next()){var mw=_.m(SB.value),wE=mw.next().value,Gu=mw.next().value;switch(wE){case "approvalName":_.Hk(Ul,2,Gu);break;case "approvalEventNames":_.A(Ul,3,Gu||[]);break;case "initiator":var lxa=qP(Gu);_.y(Ul,4,lxa);break;case "reviewers":var nga=
$ed(Gu);_.kb(Ul,5,nga);break;case "status":Ul.Ac(Fed[Gu]);break;case "dueTime":var mxa=Oed(Gu);_.y(Ul,7,mxa);break;case "approvalRequested":var nxa=Ul,Hz=new w3c;_.Qk(nxa,8,_.iO[0],Hz);break;case "approvalCancelled":var OX=Ul,wYa=new x3c;_.Qk(OX,9,_.iO[0],wYa);break;case "reviewerResponded":for(var oga=Gu,oxa=new _.y3c,pga=_.m(Object.entries(oga)),qga=pga.next();!qga.done;qga=pga.next()){var p5=_.m(qga.value),rga=p5.next().value,pxa=p5.next().value;switch(rga){case "reviewerDecision":_.Ik(oxa,1,Ged[pxa])}}_.Qk(Ul,
10,_.iO[0],oxa);break;case "commentAdded":var aR=Ul,PX=new A3c;_.Qk(aR,11,_.iO[0],PX);break;case "reviewersChanged":for(var pM=Gu,ZH=new C3c,bR=_.m(Object.entries(pM)),$H=bR.next();!$H.done;$H=bR.next()){var q5=_.m($H.value),qxa=q5.next().value,r5=q5.next().value;switch(qxa){case "reviewerChanges":var s5=dfd(r5);_.kb(ZH,1,s5)}}_.Qk(Ul,12,_.iO[0],ZH);break;case "dueTimeChanged":for(var Rpc=Gu,Mwb=new E3c,Nwb=_.m(Object.entries(Rpc)),sga=Nwb.next();!sga.done;sga=Nwb.next()){var xYa=_.m(sga.value),Spc=
xYa.next().value,Owb=xYa.next().value;switch(Spc){case "oldDueTime":var yYa=Oed(Owb);_.y(Mwb,1,yYa)}}_.Qk(Ul,13,_.iO[0],Mwb)}}_.Qk(b,18,_.mO[0],Ul);break;case "lock":var aI=new k4c;_.Qk(b,15,_.mO[0],aI);break;case "unlock":var Pwb=new y4c;_.Qk(b,16,_.mO[0],Pwb);break;case "appliedLabelChange":for(var zYa=new _.q3c,AYa=_.m(Object.entries(h)),rxa=AYa.next();!rxa.done;rxa=AYa.next()){var BYa=_.m(rxa.value),Qwb=BYa.next().value,CYa=BYa.next().value;switch(Qwb){case "changes":var Rwb=efd(CYa);_.kb(zYa,
1,Rwb)}}_.Qk(b,19,_.mO[0],zYa);break;case "publishChange":for(var sxa=new _.s4c,Swb=_.m(Object.entries(h)),QX=Swb.next();!QX.done;QX=Swb.next()){var tga=_.m(QX.value),cR=tga.next().value,Twb=tga.next().value;switch(cR){case "oldPublishState":var Tpc=ffd(Twb);_.y(sxa,1,Tpc);break;case "newPublishState":var Upc=ffd(Twb);_.y(sxa,2,Upc)}}_.Qk(b,20,_.mO[0],sxa);break;case "linkShareMetadataChange":for(var bI=new _.j4c,DYa=_.m(Object.entries(h)),txa=DYa.next();!txa.done;txa=DYa.next()){var EYa=_.m(txa.value),
Uwb=EYa.next().value,Vpc=EYa.next().value;switch(Uwb){case "securityUpdateEnabled":_.Gk(bI,1,Vpc)}}_.Qk(b,21,_.mO[0],bI)}}return b},afd=function(a){var b=new _.m4c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "reason":_.Ik(b,1,Jed[d])}}return b},bfd=function(a){return a.map(function(b){var c=new _.lO;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;
switch(d){case "role":_.Ik(c,1,ted[e]);break;case "user":d=qP(e);_.Qk(c,2,_.kO[0],d);break;case "group":d=new _.jO;e=_.m(Object.entries(e));for(var f=e.next();!f.done;f=e.next()){var h=_.m(f.value);f=h.next().value;h=h.next().value;switch(f){case "email":_.Hk(d,1,h);break;case "title":d.setTitle(h)}}_.Qk(c,3,_.kO[0],d);break;case "domain":d=Zed(e);_.Qk(c,4,_.kO[0],d);break;case "anyone":d=new o4c;_.Qk(c,5,_.kO[0],d);break;case "allowDiscovery":_.Gk(c,6,e)}}return c})},cfd=function(a){return a.map(function(b){var c=
new _.w4c;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "feature":_.Ik(c,1,Ded[e]);break;case "newRestriction":_.Ik(c,2,Eed[e])}}return c})},dfd=function(a){return a.map(function(b){var c=new D3c;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "removedReviewer":d=qP(e);_.y(c,3,d);break;case "addedReviewer":d=qP(e),_.y(c,4,d)}}return c})},
efd=function(a){return a.map(function(b){var c=new _.p3c;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "label":c.Ad(e);break;case "types":d=gfd(e),_.A(c,2,d||[])}}return c})},gfd=function(a){return a.map(function(b){return Hed[b]})},ffd=function(a){var b=new _.r4c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "publishMode":_.Ik(b,
1,Ied[d]);break;case "signinRequired":_.Gk(b,2,d);break;case "publishedTime":c=Oed(d),_.y(b,3,c)}}return b};
var ifd=function(a,b){var c=new I$c;b=_.A(c,4,b);a&&"drive#app"==a.kind&&(a=hfd(a),_.y(b,2,a));return b},hfd=function(a){_.uN(["drive#app"],a);var b=(new _.eO).Ob(a.id);b=_.A(b,3,a.useByDefault).$c(a.name);b=_.A(b,7,a.openUrlTemplate);b=c3c(b3c(b,a.primaryMimeTypes),a.secondaryMimeTypes);b=_.A(b,8,a.createUrl);b=_.A(b,9,a.createInFolderTemplate);b=_.A(b,10,a.objectType);b=_.A(b,11,a.supportsCreate);b=_.A(b,12,a.supportsImport);b=_.A(b,13,a.supportsMultiOpen);b=_.A(b,27,a.supportsOfflineCreate);b=
_.A(b,14,a.installed);b=_.A(b,15,a.authorized);b=_.A(b,16,a.productUrl);b=_.A(b,17,a.primaryFileExtensions||[]);b=_.A(b,18,a.secondaryFileExtensions||[]);b=_.A(b,19,a.shortDescription);b=_.A(b,20,a.longDescription);b=_.A(b,21,a.productId);b=_.A(b,22,a.removable);b=_.A(b,23,jfd[a.type]);b=_.A(b,25,a.hasAppData);b=_.A(b,26,a.appDataQuotaBytesUsed);b=_.A(b,28,a.requiresAuthorizationBeforeOpenWith);b=_.A(b,30,a.hasDriveWideScope);b=_.A(b,31,a.driveSource);b=_.A(b,32,a.driveBranded);b=_.A(b,33,a.hidden);
b=_.A(b,34,a.supportsMobileBrowser);b=_.A(b,35,a.supportsTeamDrives);b=_.A(b,36,a.hasGsmListing);for(var c=a.icons||[],d=[],e=0;e<c.length;e++){var f=d,h=f.push,k=c[e],l=new _.X2c;l=_.A(l,3,k.iconUrl).setSize(k.size);k.category&&_.A(l,1,kfd[k.category]);h.call(f,l)}_.kb(b,6,d);c=a.chromeExtensionIds||[];d=[];for(e=0;e<c.length;e++)d.push(c[e]);_.A(b,24,d||[]);c=a.rankingInfo||{};a=new _.$2c;d=c.absoluteScore;null!=d&&_.A(a,1,Number(d));d=lfd(c.mimeTypeScores||[]);_.kb(a,2,d);c=lfd(c.fileExtensionScores||
[]);_.kb(a,3,c);_.y(b,29,a);return b},lfd=function(a){for(var b=[],c=0;c<a.length;c++){var d=new _.Y2c;d=_.A(d,1,a[c].type);d=_.A(d,2,Number(a[c].score));b.push(d)}return b},jfd={WEB_ONLY:1,WEB_AND_CHROME_EXTENSION:2,CHROME_EXTENSION_ONLY:3},kfd={application:1,document:2,documentShared:3};
var nfd=function(a){var b=new pad;if(!a.backups)return b;a=a.backups.map(function(c){var d=(new _.UO).Ob(c.id).setTitle(c.title);d=_.A(d,3,_.vN(c.updateTime));d=_.A(d,4,mfd[c.backupSource]);d=_.A(d,5,c.iconUri);d=_.A(d,8,_.vN(c.expiryTime));d=_.A(d,9,"boolean"===typeof c.hasGoogleoneBackup?c.hasGoogleoneBackup:!1);if(1===d.Mx()){var e=new q$c;e=_.A(e,1,c.whatsappOngoingBackupEnabled);c=_.A(e,2,c.whatsappPhoneNumber);_.y(d,6,c)}else 2===d.Mx()&&(e=new _.p$c,e=_.A(e,1,c.deviceName),e=_.A(e,2,c.deviceModelName),
e=_.A(e,3,c.shouldIncludeSpecialSyncItems),c=_.A(e,4,c.deviceAndroidId),_.y(d,7,c));return d});_.kb(b,2,a);return b},pfd=function(a){var b=new lad;if(!a.backupItems)return b;a=a.backupItems.map(function(c){var d=(new _.VO).Ob(c.id);d=_.A(d,1,ofd[c.type]).setTitle(c.title);d=_.A(d,4,c.iconUri);d=_.r$c(d.setSize(c.size),_.vN(c.updateTime));d=_.A(d,7,c.hasCustomBehavior).wl(c.description);return _.A(d,9,c.ongoingSyncEnabled)});_.kb(b,1,a);return b},mfd={BACKUP_SOURCE_UNSPECIFIED:0,BACKUP_SOURCE_WHATSAPP:1,
BACKUP_SOURCE_ANDROID:2},ofd={TYPE_UNSPECIFIED:0,TYPE_APP:1,TYPE_SYNC_CALENDAR:2,TYPE_SYNC_CONTACTS:3,TYPE_SYNC_PHOTOS_AND_VIDEOS:4,TYPE_CALL_HISTORY:5,TYPE_DEVICE_SETTINGS:6,TYPE_SMS:7,TYPE_MMS:8};
var qfd=function(a,b){this.H=a;this.O=b};
var rfd={read:2,write:3,comment:4},sfd=function(a,b,c){var d=c.itemId;c=c.driveItem;d=_.PK((new _.Dl).Ob(d).setTitle(c.title),c.mimeType);c.userCapabilities&&_.JM(d,_.PWc(c.userCapabilities));_.XM(b).includes(19)&&_.TSc(d,!0);F8c(a,d,_.XM(b));_.USc(d,4);return d},tfd=function(a,b,c){var d=[];(c.item||[]).forEach(function(e){if(e.driveItem){var f=new _.pna;f=_.A(f,2,e.predictionReason);e=sfd(a,b,e);e=_.y(e,100,f);d.push(e)}});c=(new _.IA).Bv(d).pN(c.suggestionSessionId);return _.zVc(new _.mN,c)},vfd=
function(a,b,c){var d=[],e=[];(c.item||[]).forEach(function(f){if(f.person){var h=f.itemId,k=ufd(f.person).Ob(h);(f.childItem||[]).forEach(function(l){e.some(function(t){return t.getId()===h})||e.push(k);var n=l.itemId,p=d.find(function(t){return t.getId()===n});p||(p=sfd(a,b,l),d.push(p));l=u0c(t0c(s0c(new _.mna,k.clone()),l.predictionReason),l.url);_.Rk(p,107,l,_.mna,void 0)})}});return N1c((new _.fN).Bv(d),e).pN(c.suggestionSessionId)},ufd=function(a){return _.iSc((new _.nl).Ob(a.id).$c(a.displayName),
a.emailAddress).ym(a.photoUrl)},xfd=function(a,b,c){var d=[];(c.item||[]).forEach(function(e){if(e.driveItem){var f=sfd(a,b,e);e=wfd(e);f=_.kb(f,117,e);d.push(f)}});c=(new _.IA).Bv(d).pN(c.suggestionSessionId);return _.zVc(new _.mN,c)},wfd=function(a){var b=a.action;return b?b.map(function(c){var d=new _.ul,e=yfd(c);e&&_.Qk(d,2,_.tl[0],e);(e=zfd(c))&&Q_c(d,e);(e=Afd(c))&&_.Qk(d,4,_.tl[0],e);(e=Bfd(c))&&_.Qk(d,5,_.tl[0],e);(e=Cfd(c))&&_.Qk(d,6,_.tl[0],e);(e=Dfd(c))&&_.Qk(d,7,_.tl[0],e);(e=Efd(c))&&
_.Qk(d,8,_.tl[0],e);(e=Ffd(c))&&_.Qk(d,9,_.tl[0],e);(e=Gfd(c))&&_.Qk(d,10,_.tl[0],e);(c=Hfd(c))&&_.Qk(d,11,_.tl[0],c);return d}):(a=rP(a),a=i0c([a]),[Q_c(new _.ul,a)])},Jfd=function(a){return(a.justification||[]).map(function(b){return Ifd(b)})},rP=function(a){return(a=a.justification)?Ifd(a):null},Ifd=function(a){var b=e_c(new _.pl,Kfd(a.displayText)),c=a.primaryPerson,d=a.allPeople;c?(c=ufd(c),_.Qk(b,3,_.Nma[0],c),f_c(b,[c])):d?(c=(d.person||[]).map(function(e){return ufd(e)}),d=d_c(c),_.Qk(b,4,
_.Nma[0],d),f_c(b,c)):(c=(a.person||[]).map(function(e){return ufd(e)}),c.length&&(d=d_c(c),_.Qk(b,4,_.Nma[0],d),f_c(b,c)));_.A(b,5,_.vN(a.eventTime));g_c(b,Kfd(a.justificationDescription));return b},Kfd=function(a){if(!a)return null;a=a.textSegment||[];return a_c(new _.ml,a.map(function(b){var c=(new _.Kma).Wg(b.text),d=b.link;if(d){var e=new _.Lma;d=_.A(e,1,d.url)}else d=null;c=_.y(c,2,d);c=_.A(c,3,b.bold);return _.A(c,4,b.italic)}))},yfd=function(a){a=a.documentDocosAction;if(!a)return null;var b=
a0c(new _.Vma,rP(a));$_c(b,(a.subAction||[]).map(function(c){var d=new _.Wma;c.reply?(c=new _.Pma,_.Qk(d,1,_.vl[0],c)):c.resolve?(c=new n_c,_.Qk(d,2,_.vl[0],c)):c.reassign?(c=new l_c,_.Qk(d,3,_.vl[0],c)):c.acceptSuggestion?(c=new h_c,_.Qk(d,4,_.vl[0],c)):c.rejectSuggestion?(c=new m_c,_.Qk(d,5,_.vl[0],c)):c.openThread&&(c=new _.Oma,_.Qk(d,6,_.vl[0],c));return d}));_.A(b,2,a.discussionId);_.A(b,3,a.postId);b0c(b,Kfd(a.anchorText));return b},Afd=function(a){a=a.documentShareAction;if(!a)return null;
var b=e0c(new _.Yma,rP(a));d0c(b,(a.subAction||[]).map(function(c){var d=new z_c;c.suggestedShare?(c=new r_c,_.Qk(d,1,y_c[0],c)):c.responseToRequest&&(c=new o_c,_.Qk(d,2,y_c[0],c));return d}));c0c(b,(a.sharee||[]).map(function(c){return ufd(c)}));_.A(b,3,rfd[a.shareeRole]);return b},zfd=function(a){a=a.documentViewAction;if(!a)return null;var b=i0c(Jfd(a));h0c(b,(a.subAction||[]).map(function(c){var d=new D_c;c.open?d.Mg(new QN):c.reviewEdits&&(c=new p_c,_.Qk(d,2,C_c[0],c));return d}));return b},
Bfd=function(a){a=a.emailViewAction;if(!a)return null;var b=n0c(new J_c,rP(a));m0c(b,(a.subAction||[]).map(function(c){var d=new L_c;c.openEmail&&d.Mg(new j_c);return d}));return b},Cfd=function(a){a=a.calendarEventAction;if(!a)return null;var b=U_c(T_c(S_c(new _.Rma,a.eventId),rP(a)),a.guestCount);R_c(b,(a.subAction||[]).map(function(c){var d=new v_c;if(c.viewCalendarEvent){var e=new s_c;_.Qk(d,1,u_c[0],e)}c.shareWithAttendees&&(e=new q_c,_.Qk(d,2,u_c[0],e));c.present&&(e=new k_c,_.Qk(d,3,u_c[0],
e));c.openDocument&&(c=new QN,_.Qk(d,4,u_c[0],c));return d}));return b},Dfd=function(a){a=a.documentWorkspaceAction;if(!a)return null;var b=l0c(k0c(new F_c,a.workspaceId),rP(a));j0c(b,(a.subAction||[]).map(function(c){var d=new H_c;c.addToWorkspace&&(c=new i_c,_.Qk(d,1,G_c[0],c));return d}));return b},Efd=function(a){a=a.documentTopicAction;if(!a)return null;var b=g0c(new _.$ma,rP(a));f0c(b,(a.subAction||[]).map(function(c){var d=new B_c;c.openDocument&&(c=new QN,_.Qk(d,1,A_c[0],c));return d}));return b},
Ffd=function(a){a=a.popularDocumentAction;if(!a)return null;var b=r0c(new _.jna,rP(a));q0c(b,(a.subAction||[]).map(function(c){var d=new P_c;c.openDocument&&(c=new QN,_.Qk(d,1,O_c[0],c));return d}));return b},Gfd=function(a){a=a.collaboratorActivityAction;if(!a)return null;var b=Z_c(new _.Tma,rP(a));V_c(b,(a.subAction||[]).map(function(c){var d=new x_c;c.openDocument&&(c=new QN,_.Qk(d,1,w_c[0],c));return d}));return b},Hfd=function(a){a=a.formResponseAction;if(!a)return null;var b=p0c(new _.hna,Jfd(a));
o0c(b,(a.subAction||[]).map(function(c){var d=new N_c;c.openDocument?(c=new QN,_.Qk(d,1,M_c[0],c)):c.viewResponses&&(c=new t_c,_.Qk(d,2,M_c[0],c));return d}));return b};
var Lfd=function(a,b){this.H=a;this.O=b},Nfd=function(a,b,c){_.uN(["drive#categoryMetadataList"],c);var d=new dO,e=Object.values(c.categoryMetadata||{});R2c(d,e.map(function(f){return Mfd(a,f,b.Gc())}));d.Ac(1);return new _.iN(d,g$c(c))},Pfd=function(a,b){var c=new $O;Q$c(c,(b.categories||[]).map(function(d){return Ofd(a,d)}));c.Ac(1);return new k5c(c,g$c(b))},Mfd=function(a,b,c){_.uN(["drive#categoryMetadata"],b);c=G2c((new bO).$c(b.categoryName),c);b=Object.values(b.attributeValues||[]);F2c(c,b.map(function(d){return Qfd(a,
d)}).filter(function(d){return d}));return c},Ofd=function(a,b){var c=s2c(r2c((new ZN).$c(b.name),b.categoryName),b.latestName).setTitle(b.title).wl(b.description);t2c(c,(b.attributes||[]).map(function(d){var e=d.type;var f=(new o2c).Ob(d.id);f=_.A(f,2,d.queryGuid);f=_.A(f,3,d.helpText);f=_.A(f,4,d.displayName);if(d.attributeDisplayHints){var h=Rfd(d.attributeDisplayHints);_.y(f,5,h)}if(d.capabilities){h=d.capabilities;var k=new X1c;k=_.A(k,1,h.canSearch);h=_.A(k,2,h.canWrite);_.y(f,6,h)}_.A(f,7,
Sfd[e]);d=d[Tfd(e)+"Options"];return Ufd(a,f,e,d)?f:null}).filter(function(d){return d}));b.createdBy&&u2c(c,Vfd(b.createdBy));b.updatedBy&&v2c(c,Vfd(b.updatedBy));b.publishedBy&&w2c(c,Vfd(b.publishedBy));_.A(c,9,_.vN(b.createTime));_.A(c,10,_.vN(b.updateTime));_.A(c,11,_.vN(b.publishTime));b.displayHints&&x2c(c,Rfd(b.displayHints));b.capabilities&&y2c(c,Wfd(b.capabilities));b.learnMoreUri&&_.A(c,15,b.learnMoreUri);return c},Qfd=function(a,b){_.uN(["drive#categoryAttributeValue"],b);var c=(new $N).Ob(b.id);
if(b.userScoped)b=Object.values(b.userScoped),D2c(c,b.map(function(d){_.uN(["drive#userScopedAttributeValue"],d);var e=new A2c,f=_.wN(a.H,d.scopedUser);e=_.y(e,1,f);return a.Jb(e,d)?e:null}).filter(function(d){return d})),c.fz(9);else if(!a.Jb(c,b))return null;return c},Rfd=function(a){var b=(new W1c).Lj(a.disabled);b=_.A(b,2,a.hidden);b=_.A(b,3,a.activatedInAllDrives);return _.A(b,4,!!a.required)},Wfd=function(a){var b=new q2c;b=_.A(b,1,a.canSearch);b=_.A(b,2,a.canApply);b=_.A(b,4,a.canRemove);return _.A(b,
3,a.canManageSharedDriveActivation)},Ufd=function(a,b,c,d){return Xfd(a,function(){Yfd(a)[c](b,d)},c,b)},Zfd=function(a){a=void 0===a?{}:a;var b=new f2c;b=_.A(b,1,a.minSize);return _.A(b,2,a.maxSize)},agd=function(a){var b=new c2c;d2c(b,(a.choices||[]).map(function(c){var d=(new b2c).Ad(c.label).Jb(c.value);c.description&&d.wl(c.description);if(c.capabilities){var e=c.capabilities;var f=new $1c;f=_.A(f,1,e.canSearch);e=_.A(f,2,e.canSelect);_.y(d,3,e)}c.displayHints&&(c=c.displayHints,e=(new a2c).Lj(c.disabled),
e=_.A(e,2,c.hidden),c.badgePriority&&_.A(e,5,c.badgePriority),c.badgeColors&&(f=$fd(c.badgeColors),_.y(e,3,f)),c.darkBadgeColors&&(c=$fd(c.darkBadgeColors),_.y(e,4,c)),_.y(d,4,e));return d}));return b},$fd=function(a){var b=new V1c;var c=bgd(a.backgroundColor);b=_.y(b,1,c);c=bgd(a.foregroundColor);b=_.y(b,2,c);a=bgd(a.soloColor);return _.y(b,3,a)},bgd=function(a){var b=new _.YE;b=_.Ek(b,1,a.red,0);b=_.Ek(b,2,a.green,0);b=_.Ek(b,3,a.blue,0);a.alpha&&(a=(new T0c).Jb(a.alpha),_.y(b,4,a));return b},cgd=
function(a){var b=new i2c;b=_.A(b,1,a.showThousandsSeparator);b=_.A(b,2,a.minValue);return _.A(b,3,a.maxValue)},dgd=function(a){var b=(new _.una).setYear(a.year).setMonth(a.month);return _.A(b,3,a.day)};Lfd.prototype.Jb=function(a,b){var c=this,d=b.valueType.replace(/([A-Z])/g,"_$1").toLowerCase().toUpperCase();a.fz(Sfd[d]);return Xfd(this,function(){egd(c)[d](a,b[b.valueType])},b.valueType)};
var Xfd=function(a,b,c,d){try{b()}catch(e){if(e instanceof TypeError&&!(d instanceof k2c))return t1c(a.O,"drive.ds.response.MetadataParser","Response Parser: Error parsing type "+c+"."),!1;throw e;}return!0},Vfd=function(a){return _.gSc(1).Ob(a.personName.split("/")[1])},Tfd=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},Yfd=function(a){return{BOOLEAN:function(b,c){var d=b.X_a;var e=new Y1c;e=_.A(e,1,c.trueLabel);c=_.A(e,2,c.falseLabel);return d.call(b,
c)},TEXT:function(b,c){return b.haa(Zfd(c))},TEXT_LIST:function(b,c){var d=b.W0a;var e=new g2c;e=_.A(e,1,c.maxEntries);c=Zfd(c.options);c=_.y(e,2,c);return d.call(b,c)},LONG_TEXT:function(b,c){var d=new h2c;d=_.A(d,1,c.minSize);c=_.A(d,2,c.maxSize);return _.Qk(b,10,XN[0],c)},SELECTION:function(b,c){return b.K0a(agd(c))},SELECTION_LIST:function(b,c){var d=b.J0a;var e=new e2c;e=_.A(e,1,c.maxEntries);c=agd(c.options);c=_.y(e,2,c);return d.call(b,c)},INTEGER:function(b,c){return b.k0a(cgd(c))},INTEGER_LIST:function(b,
c){var d=b.j0a;var e=new j2c;e=_.A(e,1,c.maxEntries);c=cgd(c.options);c=_.y(e,2,c);return d.call(b,c)},USER:function(b){return b.a1a(new l2c)},USER_LIST:function(b,c){var d=b.fma,e=new m2c;c=_.A(e,1,c.maxEntries);e=new l2c;c=_.y(c,2,e);return d.call(b,c)},DATE:function(b,c){var d=b.Kla;var e=new n2c;e=_.A(e,4,c.dateFormat);var f=dgd(c.minValue);e=_.y(e,2,f);c=dgd(c.maxValue);c=_.y(e,3,c);return d.call(b,c)},USER_SCOPED:function(b,c){var d=new k2c;d=_.A(d,1,c.canReadCollaboratorValues);var e=c.subtype;
_.A(d,2,Sfd[e]);c=c[Tfd(e)+"Options"];Ufd(a,d,e,c);return _.Qk(b,16,XN[0],d)}}},egd=function(a){return{BOOLEAN:function(b,c){return b.setBooleanValue(c)},TEXT:function(b,c){return b.setTextValue(c)},TEXT_LIST:function(b,c){return b.bma(c)},LONG_TEXT:function(b,c){return b.setLongTextValue(c)},SELECTION:function(b,c){return b.setSelectionValue(c)},SELECTION_LIST:function(b,c){return b.Xla(c)},INTEGER:function(b,c){return b.setIntegerValue(parseInt(c,10))},INTEGER_LIST:function(b,c){return b.Ola(c.map(function(d){return parseInt(d,
10)}))},USER:function(b,c){return b.setUserValue(_.wN(a.H,c))},USER_LIST:function(b,c){C2c(b,c.map(function(d){return _.wN(a.H,d)}))},DATE_STRING:function(b,c){return b.setDateStringValue(c)}}},Sfd={BOOLEAN:1,TEXT:2,TEXT_LIST:3,LONG_TEXT:4,SELECTION:5,SELECTION_LIST:6,INTEGER:7,INTEGER_LIST:8,USER_SCOPED:9,USER:10,USER_LIST:11,DATE:12,DATE_STRING:12};
var fgd=function(a){a=a.personResponse;return w6c(new v6c,a.map(function(b){var c=b.person;b=t6c(new AO,b.personId);var d=b.$c,e=c;e=void 0===e?{}:e;e=e.metadata;b=d.call(b,e?e.bestDisplayName.displayName:"");d=c;d=void 0===d?{}:d;d=d.email;b=_.A(b,3,d?d[0].value:"");c=void 0===c?{}:c;c=c.photo?c.photo[0]:null;d=new s6c;c=_.A(d,1,c&&!c.isDefault?c.url:null);return _.y(b,4,c)}))};
var ggd=function(a){this.H=a},igd=function(a,b){_.uN(["drive#teamDriveList","drive#driveList"],b);return(b.items||[]).map(function(c){return hgd(a,c)})},hgd=function(a,b){_.uN(["drive#teamDrive","drive#drive"],b);var c=new _.rna,d=b.colorRgb;d=d?parseInt(d.substring(1),16):0;_.A(c,2,d);_.A(c,1,b.backgroundImageLink);_.A(c,3,b.trusted);_.A(c,5,b.backgroundImageGridViewLink);_.A(c,6,b.backgroundImageListViewLink);_.A(c,7,b.hidden);_.A(c,9,b.removeSecureLinkUpdateForAllFiles);(d=b.categoryReferences)&&
yYc(c,d.map(function(e){_.uN(["drive#driveCategoryReference"],e);var f=new _.Cl;return _.A(f,1,e.category)}));c=_.YSc(_.XSc(_.USc(_.VSc(xYc(_.PK((new _.Dl).Ob(b.id).setTitle(b.name),"application/vnd.google-apps.folder"),c),b.id),2),b.primaryDomainName),b.organizationDisplayName);b.capabilities&&(d=_.uSc(_.PWc(b.capabilities),!0),_.JM(c,d));b.permissionsSummary&&_.WSc(c,_.eXc(a.H,b.permissionsSummary));b.restrictions&&AYc(c,jgd(b.restrictions));return c},jgd=function(a){var b=new v0c;b=_.A(b,1,a.copyRequiresWriterPermission);
b=_.A(b,2,a.disallowDriveFileStream);b=_.A(b,3,a.domainUsersOnly);return _.A(b,4,a.teamMembersOnly)};
var kgd={DRIVE_FE:2,DRIVE_BE:4,EXPLORER:1,GENERAL:3,PSYNCHO:5,SLACK:6,DRIVE_BE_EX:7,DRIVE_SHARING:9,TEAMKIT:10},NZc=_.mg(kgd);
var lgd=function(a){_.uN(["drive#setting"],a);var b=new _.wb;b=_.A(b,2,a.key);b=_.A(b,1,kgd[a.namespace]);return _.Cxa(new _.up,b).Jb(a.value)};
var ngd=function(a){_.uN(["drive#workspaceList"],a);var b=a.items||[];b=z6c(new BO,b.map(function(c){return mgd(c)}));return new _.OUc(b,g$c(a))},mgd=function(a){_.uN(["drive#workspace"],a);var b=(new _.HA).Ob(a.id).setTitle(a.title);b=_.A(b,3,_.vN(a.createdDate));return _.A(b,4,_.vN(a.modifiedDate)).Gd(ogd[a.state])},pgd=function(a,b,c){var d=c.item||[];return _.fYc(_.eYc(new _.EN,d.map(function(e){return sfd(a,b,e)})),c.suggestionSessionId)},rgd=function(a,b,c){var d=c.item||[];return k3c(j3c(new gO,
d.map(function(e){return qgd(a,b,e)})),c.suggestionSessionId)},qgd=function(a,b,c){var d=c.driveWorkspace,e=c.childItem||[];return h3c(f3c(g3c(e3c(new fO,c.predictionId).setTitle(d&&d.title),d&&d.workspaceToken),e.map(function(f){return sfd(a,b,f)})),rP(c))},sgd=function(a){var b=new T1c;a.kind&&(a=mgd(a),_.y(b,2,a));b.Ac(1);return b},ogd={active:1,archived:2};
var JZc={QUEUED:1,COUNTING:3,BUILDING:2,SUCCEEDED:4,FAILED:5};
var tgd=function(a,b,c,d){_.nXc.call(this,b);this.Hg=a;this.ka=c;this.O=d;this.W=null;this.ma=new hed(this.V,b);this.H=new ggd(this.zD);this.ta=new qfd(this.zD,this.H)};_.N(tgd,_.nXc);var ugd=function(a){a.W||(a.W=new Lfd(a.V,a.ka));return a.W};
tgd.prototype.ha=function(a,b){if(a instanceof _.BL)return _.XWc(_.sXc(a));if(a instanceof _.CL)return _.pXc(this,a,b);if(a instanceof _.GRc)return vgd(this,a.request,b);if(a instanceof _.DL)return _.pXc(this,a,b);if(a instanceof _.FL){if(!b.json)throw _.xN();return T2c((new S2c).Ac(1),hgd(this.H,b.json))}if(a instanceof _.EL)return _.pXc(this,a,b);if("undefined"!=typeof _.bN&&a instanceof _.bN)return new O1c;if(a instanceof _.HL)return wgd(a,b);if("undefined"!=typeof _.IL&&a instanceof _.IL)return ifd(void 0,
a.ah());if("undefined"!=typeof _.JL&&a instanceof _.JL)return new qad;if(a instanceof _.KL)return _.XWc(_.sXc(a));if("undefined"!=typeof _.LL&&a instanceof _.LL)return new ZO;if(a instanceof _.ML)return _.XWc(_.sXc(a));if(a instanceof _.NL)return _.XWc(_.sXc(a));if("undefined"!=typeof _.CC&&a instanceof _.CC)return b=new J$c,a=a.getKey(),_.y(b,4,a);if(a instanceof _.OL)return wgd(a,b);if(a instanceof _.RL)return _.XWc(_.sXc(a));if(a instanceof _.DRc){if(!b.json)throw _.xN();return new h5c(b.json.exportJob.id)}if("undefined"!=
typeof _.SL&&a instanceof _.SL){if(!b.json)throw _.xN();a=b.json;b=new E$c;a=hfd(a);return _.y(b,2,a).Ac(1)}if("undefined"!=typeof _.TL&&a instanceof _.TL)return xgd(a,b);if("undefined"!=typeof _.UL&&a instanceof _.UL){if(!b.json)throw _.xN();a=(new ZO).Ac(1);b=_.YWc(this.zD,b.json);return _.y(a,2,b)}if(a instanceof _.eL){a:{if(!b.json)throw _.xN();if(a instanceof _.eL){if((a=a.qd())&&_.VL(a)){b=tfd(this.O,this.Hg,b.json);break a}if(a&&_.WL(a)){b=vfd(this.O,this.Hg,b.json);break a}if(a&&_.cM(a)){b=
xfd(this.O,this.Hg,b.json);break a}}b=_.UWc(this.zD,b.json,b.headers)}return b}if("undefined"!=typeof _.dM&&a instanceof _.dM){if(!b.json)throw _.xN();return pfd(b.json)}if(a instanceof _.eM){if(!b.json)throw _.xN();b=b.json;_.uN(["drive#appList"],b);a=new zO;for(var c=[],d=b.items||[],e=0;e<d.length;e++)c.push(hfd(d[e]));a=_.kb(a,2,c);return _.A(a,4,b.defaultAppIds||[]).Ac(1)}if("undefined"!=typeof _.fM&&a instanceof _.fM){if(!b.json)throw _.xN();return nfd(b.json)}if(a instanceof _.rL)return ygd(this,
b);if(a instanceof _.gM){if(!b.json)throw _.xN();a=new H$c;d=this.zD;e=b.json;c=new VN;d=_.ZWc(d,e,"items");c=_.kb(c,2,d);a=_.y(a,1,c);return _.A(a,2,g$c(b.json))}if("undefined"!=typeof _.hM&&a instanceof _.hM){if(!b.json)throw _.xN();a=this.zD;d=b.json;b=new H1c;_.uN(["drive#revisionList"],d);c=[];d=d.items||[];for(e=0;e<d.length;e++){var f=_.VWc(a,d[e]);c.push(f)}return _.kb(b,2,c)}if("undefined"!=typeof _.tN&&a instanceof _.tN)return zgd(a,b);if(a instanceof _.jM){if(!b.json)throw _.xN();return fgd(b.json)}if(a instanceof
_.MRc){if(!b.json)throw _.xN();return Pfd(ugd(this),b.json)}if(a instanceof _.HF){if(!b.json)throw _.xN();a=ugd(this);c=b.json;b=new R$c;a=Ofd(a,c);return _.y(b,2,a).Ac(1)}if(a instanceof _.kM){if(!b.json)throw _.xN();b=b.json;_.uN(["drive#remainingCount"],b);a=new S$c;c=b.nextPageToken;null!=c&&_.A(a,2,Number(c));_.A(a,1,Number(b.remainingCount));return a}if(a instanceof _.yp){if(!b.json)throw _.xN();return(new _.IA).Bv([hgd(this.H,b.json)])}if(a instanceof _.wM){if(!b.json)throw _.xN();a=(new _.IA).Bv(igd(this.H,
b.json));a=_.zVc(new _.mN,a);return _.A(a,3,g$c(b.json))}if("undefined"!=typeof _.oM&&a instanceof _.oM)return xgd(a,b);if(a instanceof _.qM)return vgd(this,a,b);if(a instanceof _.pL)return _.pXc(this,a,b);if(a instanceof _.rM)return _.pXc(this,a,b);if(a instanceof _.sM)return Agd(this,b);if("undefined"!=typeof _.DC&&a instanceof _.DC){if(!b.json)throw _.xN();b=lgd(b.json);a=new J$c;a=_.y(a,3,b);b=b.getKey();return _.y(a,4,b)}if(a instanceof _.tM)return wgd(a,b);if(a instanceof _.$K){if(!b.json)throw _.xN();
return led(this.ma,b.json)}if("undefined"!=typeof _.uM&&a instanceof _.uM){if(!b.json)throw _.xN();b=mgd(b.json);a=new _.gN;a.uR().set(b.getId(),b);return a}if(a instanceof _.FRc){if(!b.json)throw _.xN();a=b.json;b=new d5c;a=_.m(Object.entries(a));for(c=a.next();!c.done;c=a.next())switch(d=_.m(c.value),c=d.next().value,d=d.next().value,c){case "nextPageToken":_.Hk(b,2,d);break;case "activities":c=Qed(d),_.kb(b,1,c)}return b}if(a instanceof _.HRc)return Agd(this,b);if("undefined"!=typeof _.LRc&&a instanceof
_.LRc)return ygd(this,b);if(a instanceof _.IRc){if(!b.json)throw _.xN();return new g5c}if(a instanceof _.JRc){if(!b.json)throw _.xN();return MZc(b)}if(a instanceof _.pC){if(!b.json)throw _.xN();c=b.json;b=new _.wp;_.uN(["drive#settingList"],c);a=[];c=c.items||[];for(d=0;d<c.length;d++)(e=lgd(c[d]))&&a.push(e);return _.Exa(b,a)}if(a instanceof _.xp){if(!b.json)throw _.xN();return rgd(this.O,this.Hg,b.json).Ac(1)}if("undefined"!=typeof _.nM&&a instanceof _.nM){if(!b.json)throw _.xN();return pgd(this.O,
this.Hg,b.json)}if(a instanceof _.RRc){if(!b.json)throw _.xN();a=b.json;_.uN(["drive#teamDrive"],a);b=a.recursiveFolderCount;a=a.recursiveFileCount;c=new w$c;a=_.A(c,1,a);return _.A(a,2,b)}if(a instanceof _.QRc)return new i5c(g$c(b.json?b.json:{}));if(a instanceof _.TRc){if(!b.json)throw _.xN();return ngd(b.json)}if("undefined"!=typeof _.MN&&a instanceof _.MN)return Agd(this,b)};
var wgd=function(a,b){if(!b.json){if(a instanceof _.OL)return sgd({});throw _.xN();}return sgd(b.json)},Agd=function(a,b){if(!b.json)throw _.xN();a=hgd(a.H,b.json);return(new _.yM).Ac(1).setItem(a)},vgd=function(a,b,c){if(!c.json)throw _.xN();return Nfd(ugd(a),b,c.json)},xgd=function(a,b){if(!b.json)throw _.xN();return ifd(b.json,a.ah())},ygd=function(a,b){if(!b.json)throw _.xN();a=a.ta;var c=b.json;_.uN(["drive#about","drive#changeList"],c);b=new q6c;var d=c.nextPageToken;null!=d&&_.A(b,2,Number(d));
d=c.largestChangeId;null!=d&&_.A(b,3,Number(d));if("drive#changeList"==c.kind){_.uN(["drive#changeList"],c);d=[];c=c.items||[];for(var e=0;e<c.length;e++){var f=a,h=c[e];_.uN(["drive#change"],h);var k=new _.iL;k=_.A(k,1,Number(h.id));h.teamDriveId?(_.ZQc(k,h.teamDriveId),_.jL(k,h.teamDriveId)):_.jL(k,h.fileId);h.file?k.setItem(_.RWc(f.H,h.file)):h.teamDrive&&k.setItem(hgd(f.O,h.teamDrive));h.deleted&&!k.getItem()&&_.tL(k);d.push(k)}_.kb(b,4,d)}return b},zgd=function(a,b){var c=new sad;if(a.O().length){var d=
[];KYc(a.O(),b.headers).forEach(function(e,f){var h=new _.iOc;e=_.A(h,1,f).Jb(e);d.push(e)});_.kb(c,1,d)}tad(c,b.json?JSON.stringify(b.json):b.text);return c};
var Cgd=function(a){var b=new _.pq;if(a=a.getState()){var c=[];c.push("state");c.push("=");c.push(Bgd[a]);_.ZM(b,c.join(" "))}return b.toString()},Dgd={},Bgd=(Dgd[1]="active",Dgd[2]="archived",Dgd);
var Egd=function(a,b,c,d){_.yN.call(this,b,c,a.cJa,d);this.ha=a;this.ka=new O5c(_.XM(c),b)};_.N(Egd,_.yN);
Egd.prototype.V=function(a,b,c){var d=this;try{return _.yN.prototype.V.call(this,a,b,c)}catch(R){}var e=0,f={},h="GET",k={},l=!1,n=!1;if(a instanceof _.CL){h="POST";var p="admin/files/"+a.getId()+"/migrateToTeamDrive";k.fields="kind,id,parentId,teamDriveId";k.fileId=a.getId();var t=h$c(a);f["content-type"]="application/json";l=n=!0}else if(a instanceof _.DL){h="POST";p="files/"+a.Gc()+"/authorize";k.appId=a.ah();_.H(a,3)&&(k.propagate=!0);var u=a.re();n=!0;_.WM(k);_.BM(this.H,[],[a.Gc()],this.O,f)}else if("undefined"!=
typeof _.MN&&a instanceof _.MN)p="drives/"+a.getId(),h="PUT",t={},t=(t.removeSecureLinkUpdateForAllFiles=a.O(),t),f["content-type"]="application/json",k.fields=sO(this.H,[],!0),u=a.re(),n=!0;else if(a instanceof _.HRc)h="POST",p="teamdrives/"+a.requestId,k.fields=sO(this.H),t={},t=(t.name=a.request.getTitle(),t),f["content-type"]="application/json",u=a.request.re(),n=!0;else if(a instanceof _.HL)h="POST",p="workspaces",k.fields="kind,id,title,createdDate,modifiedDate,state",t=j$c(a),f["content-type"]=
"application/json",u=a.re(),n=!0;else if(a instanceof _.EL)h="POST",p="files/"+a.getId()+"/copy",k.fields=_.vRc({fields:this.zg(c),qq:_.YK(_.ZK(this.H)),NE:_.dL(this.H)}),k.convert=_.E(a,4,!1),t=i$c(a),f["content-type"]="application/json",u=a.re(),a=_.Kd(a,3).concat([a.getId()]),_.BM(this.H,[],a,this.O,f),n=!0,_.WM(k),_.EXc(this.H,k);else if("undefined"!=typeof _.IL&&a instanceof _.IL)h="DELETE",p="apps/"+a.ah(),k.appId=a.ah(),k.deleteAppData=!!a.O(),u=a.re(),n=!0;else if("undefined"!=typeof _.JL&&
a instanceof _.JL)h="DELETE",p="backups/"+a.getId(),e=9;else if(a instanceof _.KL)h="DELETE",p="files/"+a.getId(),u=a.re(),n=!0,_.WM(k),_.EXc(this.H,k),_.BM(this.H,[],[a.getId()],this.O,f);else if("undefined"!=typeof _.LL&&a instanceof _.LL)h="DELETE",p="files/"+a.Gc()+"/permissions/"+a.O(),u=a.re(),n=!0,_.WM(k);else if(a instanceof _.ML)h="DELETE",p="files/"+a.Gc()+"/revisions/"+_.C(a,2),u=a.re(),n=!0,_.BM(this.H,[],[a.Gc()],this.O,f);else if(a instanceof _.NL)h="DELETE",p="teamdrives/"+a.getId(),
u=a.re(),n=!0;else if("undefined"!=typeof _.CC&&a instanceof _.CC)h="DELETE",u=a.getKey(),p="settings/"+_.C(u,2),_.vp(u)&&(k.namespace=NZc[_.vp(u)]),u=a.re(),n=!0;else if(a instanceof _.OL)h="DELETE",p="workspaces/"+a.getId(),u=a.re(),n=!0;else if(a instanceof _.RL)h="DELETE",p="files/trash",u=a.qd().re(),n=!0,_.EXc(this.H,k);else if("undefined"!=typeof _.SL&&a instanceof _.SL)p="apps/"+a.ah(),u=a.re(),n=!0,k.fields="kind,id,useByDefault,name,openUrlTemplate,primaryMimeTypes,secondaryMimeTypes,createUrl,createInFolderTemplate,objectType,supportsCreate,supportsImport,supportsMultiOpen,supportsOfflineCreate,installed,authorized,productUrl,primaryFileExtensions,secondaryFileExtensions,shortDescription,longDescription,productId,removable,icons(iconUrl,size,category),type,chromeExtensionIds,requiresAuthorizationBeforeOpenWith,hasDriveWideScope,driveBranded,driveSource,supportsMobileBrowser,supportsTeamDrives,hasGsmListing";
else if("undefined"!=typeof _.dM&&a instanceof _.dM)p="backups/"+a.getId()+"/items",e=9,k.languageCode=SN(_.ZK(this.H));else if("undefined"!=typeof _.TL&&a instanceof _.TL)h="POST",p="apps",k.appId=a.ah(),u=a.re(),n=!0;else if("undefined"!=typeof _.UL&&a instanceof _.UL)h="POST",p="files/"+a.Gc()+"/permissions",k.fields=_.dL(this.H)?"kind,type,id,userId,nameIfNotUser,emailAddress,withLink,role,additionalRoles,deleted,view,audienceId,customerId":"kind,type,id,userId,name,emailAddress,withLink,photoLink,role,additionalRoles,deleted,view,audienceId,customerId",
k.emailMessage=a.Hnb()||"",k.sendNotificationEmail=!a.Iob(),t={},1==a.Jf()?t.role="owner":3==a.Jf()?t.role="writer":4==a.Jf()?(t.role="reader",t.additionalRoles=["commenter"]):2==a.Jf()&&(t.role="reader"),1==a.getType()?t.type="user":2==a.getType()?t.type="group":3==a.getType()?t.type="domain":4==a.getType()?t.type="anyone":5==a.getType()&&(t.type="audience"),a.Xa()&&(t.value=a.Xa()),t.withLink=!a.Unb(),f["content-type"]="application/json",u=a.re(),n=!0,_.WM(k);else if(a instanceof _.DRc)e=8,h="POST",
p="/v1/exports",f["content-type"]="application/json",t=_.Kd(a,1).map(function(R){if(_.E(d.H,89,!1)){var ca=_.lVc(d.O,R);if(null!==ca)return{id:R,resource_key:{resource_key:ca}}}return{id:R}}),t={archiveFormat:null,archivePrefix:_.C(a,2),conversions:null,items:t,locale:null};else if(a instanceof _.eL||"undefined"!=typeof _.bN&&a instanceof _.bN||a instanceof _.xp||"undefined"!=typeof _.nM&&a instanceof _.nM)if(b=a instanceof _.eL?a.qd():a,_.AM(b)){e=10;h="POST";p="/v1/items";f["content-type"]="application/json";
t={};var z=9==_.QM(this.H)?"WEB_MOBILE":"WEB_DESKTOP",B={};B.applicationType=X5c(this.H);B.platformType=z;B.languageCode=SN(_.ZK(this.H));B.timeZone=(new _.mv).O7();B.requestType="LIVE_REQUEST";a instanceof _.eL&&(z=a.getOptions())&&_.E(z,10,!1)&&(B.requestType="BACKGROUND_REQUEST");b instanceof _.Pe?_.VL(b)?(U5c(this.ka)?B.scenarioType="ONE_PICK":B.scenarioType="QUICK_ACCESS",2==_.OM(b)&&(t.contextFeature={type:"DRIVE_TEAM_DRIVE_ROOT_ID",stringValue:_.Kd(b,33)[0]}),_.MM(b).length&&(t.itemType=W5c(b))):
_.WL(b)?B.scenarioType="DRIVE_PEOPLE_WITH_ACTIONS":_.cM(b)&&(B.scenarioType="DRIVE_PRIORITY"):"undefined"!=typeof _.bN&&b instanceof _.bN?(p="/v1/userfeedback",t.userFeedback=b.O().map(function(R){var ca=R.O(),va={},ua={};ua.feedbackType=U2c[ca.getType()];va.item=ua;va.clientInfo=B;switch(R.getFeature()){case 1:B.scenarioType="DRIVE_PRIORITY";ua.itemId=ca.Gc();break;case 3:B.scenarioType="QUICK_ACCESS";ua.itemId=ca.Gc();break;case 2:B.scenarioType="DRIVE_WORKSPACES",ua.itemId=ca.Gc(),ua.childItem=
ca.O().map(function(za){var ea={};ea.itemId=za.Gc();return ea})}return va})):b instanceof _.xp?B.scenarioType="DRIVE_WORKSPACES":"undefined"!=typeof _.nM&&b instanceof _.nM?(B.scenarioType="ITEMS_FOR_DRIVE_WORKSPACE",t.contextFeature=[{type:"GENERIC_TITLE",stringValue:b.getTitle()||""},{type:"DRIVE_WORKSPACE_ID",stringValue:b.Zp()||""},{type:"DRIVE_EMPTY_WORKSPACE",boolValue:b.O()}]):_.HXc(a);"undefined"!=typeof _.bN&&b instanceof _.bN||(t.maxSuggestions=b.ji(),t.clientInfo=B)}else{u=b.re();n=!0;
p="files";k.q=_.qUc(b);z=[];var F;(F=_.oL(this.H))&&_.E(F,4,!1)?(F=_.wa(this.zg(c),this.zg(c,b.O())),_.Ea(F)):F=_.xa(this.zg(c));var I=void 0,M=!1;0<_.Ok(b,_.Vl,5).length&&(I=_.C(this.H.Sf(),50),M=!0);k.fields=pYc({fields:F,qq:_.YK(_.ZK(this.H)),G4:I||void 0,NE:_.dL(this.H),gwb:M});k.appDataFilter="NO_APP_DATA";0<_.Ok(b,_.LM,25).length&&(k.sources=_.jUc(b));0<b.Vw().length&&(k.spaces=_.kUc(b));a.wo()&&(k.pageToken=a.wo());(a=a.getOptions())&&_.wk(a,1,1E3)&&(k.maxResults=_.wk(a,1,1E3));_.E(b,36,!1)&&
(k.includeUnsubscribed=!0);_.C(b,43)&&(k.rawUserQuery=_.C(b,43));_.WM(k);k.includeItemsFromAllDrives=_.E(b,66,!0);0<_.Kd(b,33).length&&2==_.OM(b)&&(a=_.Kd(b,33)[0],k.teamDriveId=a,z.push(a));k.corpora=_.MTc[_.OM(b)];_.H(b,18)&&(_.jg(k,"corpora"),k.corpus="DOMAIN");a=_.NM(b);F=_.Ok(b,_.KM,35);I=_.Ok(b,_.KM,38);z=z.concat(a.filter(function(R){return!_.E(R,2,!1)}).map(function(R){return R.Xa()})).concat(F.map(function(R){return R.Xa()})).concat(I.map(function(R){return R.Xa()}));_.BM(this.H,_.Ok(b,_.Xl,
63),z,this.O,f);NYc(k,b.Jc());_.FXc(this.H,k);_.GXc(this.H,k);_.D(b,_.ada,64)&&(a=w0c(_.D(b,_.ada,64)),a=_.Sj(a,4),k.searchSessionData=a)}else if(a instanceof _.eM){p="apps";switch(a.getType()){case 1:k.fields=Fgd;break;case 2:k.fields=Ggd;break;case 4:k.fields=Hgd;break;case 3:e=5,p="apps",k.fields="items(icons[category='application'],icons(size,iconUrl),id,name,openUrlTemplate,primaryFileExtensions,primaryMimeTypes,productId,rankingInfo,secondaryFileExtensions,secondaryMimeTypes,kind),kind",k.appQueryScope=
"all_webstore",b.Uv=!0}k.languageCode=SN(_.ZK(this.H));0<_.Kd(a,3).length&&(k.appFilterExtensions=_.Kd(a,3).join(","));0<_.Kd(a,4).length&&(k.appFilterMimeTypes=_.Kd(a,4).join(","));u=a.re();n=!0}else if("undefined"!=typeof _.fM&&a instanceof _.fM)p="backups",e=9,k.languageCode=SN(_.ZK(this.H));else if(a instanceof _.rL)p="changes",k.includeDeleted=_.E(a,3,!0),k.includeSubscribed=_.E(a,4,!0),k.maxResults=a.RO(),k.startChangeId=_.C(a,1),k.fields=oYc({fields:this.zg(c),G4:sO(this.H,_.Kd(a,5)),qq:_.YK(_.ZK(this.H)),
NE:_.dL(this.H)}),k.appDataFilter="NO_APP_DATA",a.zc()||(k.filters="DRIVE_DATASERVICE"),u=_.Kd(this.H.Sf(),31),u.length&&(k.spaces=_.ib(u,function(R){return _.kOc[R]}).join(",")),_.WM(k),k.includeCorpusRemovals=!0,k.includeItemsFromAllDrives=!0,a.zc()&&(k.teamDriveId=a.zc()),u=a.re(),n=!0;else if(a instanceof _.gM)b=a.qd(),p="files/"+b.getId()+"/permissions",k.fields=_.dL(this.H)?"kind,items(kind,type,id,userId,nameIfNotUser,emailAddress,withLink,role,additionalRoles,deleted,view,audienceId,customerId),nextPageToken":
"kind,items(kind,type,id,userId,name,emailAddress,withLink,photoLink,role,additionalRoles,deleted,view,audienceId,customerId),nextPageToken",a.wo()&&(k.pageToken=a.wo()),_.C(a,1)&&(k.maxResults=_.C(a,1)),u=b.re(),n=!0,_.WM(k),_.FXc(this.H,k),_.GXc(this.H,k),_.BM(this.H,[],[b.getId()],this.O,f);else if("undefined"!=typeof _.hM&&a instanceof _.hM)k.fields=_.dL(this.H)?"kind,items(kind,id,mimeType,modifiedDate,pinned,downloadUrl,originalFilename,fileSize,lastModifyingUser(kind,id,permissionId,emailAddressFromAccount,domain))":
"kind,items(kind,id,mimeType,modifiedDate,pinned,downloadUrl,originalFilename,fileSize,lastModifyingUser(kind,displayName,picture,permissionId,emailAddress))",k.maxResults=a.ji(),p="files/"+a.Gc()+"/revisions",u=a.re(),n=!0,_.BM(this.H,[],[a.Gc()],this.O,f);else if(a instanceof _.yp)p="teamdrives/"+a.Rl()[0],k.fields=sO(this.H,a.O()),u=a.re(),n=!0;else if(a instanceof _.QRc)h="POST",p="admin/files/migrateToTeamDrivePreFlight",a.request.ka()&&(k.useDomainAdminAccess=!0),t=k$c(a),f["content-type"]=
"application/json",n=l=!0,_.BM(this.H,[],a.request.O(),this.O,f);else if(a instanceof _.wM)u=a.qd(),p="teamdrives",k.fields=n5c(this.H,u.O()),k.q=F5c(u),a.wo()&&(k.pageToken=a.wo()),(u=(u=a.getOptions())&&_.wk(u,1,1E3))&&(k.maxResults=u),u=a.qd().re(),n=!0;else if(a instanceof _.RRc)p="teamdrives/"+a.zc(),k.fields="kind,id,recursiveFileCount,recursiveFolderCount",n=l=!0;else if("undefined"!=typeof _.oM&&a instanceof _.oM)h="PUT",p="apps/"+a.ah(),k.appId=a.ah(),t={},t.useByDefault=a.V(),a.O()&&(t.hasAppData=
!1),f["content-type"]="application/json",u=a.re(),n=!0;else if(a instanceof _.pL)h="PUT",p="files/"+a.getId(),k.fields=_.vRc({fields:this.zg(c),qq:_.YK(_.ZK(this.H)),NE:_.dL(this.H)}),k.modifiedDateBehavior="DRIVE_UI",k.updateViewedDate=!!_.H(a,15),k.fileId=a.getId(),_.Kd(a,9).length&&(k.addParents=_.Kd(a,9).join(",")),_.Kd(a,10).length&&(k.removeParents=_.Kd(a,10).join(",")),_.Kd(a,31).length&&(k.addWorkspaces=_.Kd(a,31).join(",")),_.Kd(a,32).length&&(k.removeWorkspaces=_.Kd(a,32).join(",")),null!=
_.H(a,24)&&(k.confirmed=_.H(a,24)),k.languageCode=SN(_.ZK(this.H)),t=l$c(a),f["content-type"]="application/json",u=a.re(),n=!0,_.WM(k),this.W(a.getId(),k),_.H(a,36)?k.bypassMultiparentingCheck=!0:_.EXc(this.H,k),b=_.Kd(a,9).concat(_.Kd(a,10)),b.push(a.getId()),_.BM(this.H,_.Ok(a,_.Xl,38),b,this.O,f);else if(a instanceof _.rM)h="PUT",p="files/"+a.Gc()+"/revisions/"+_.C(a,2),t=m$c(a),f["content-type"]="application/json",u=a.re(),_.BM(this.H,[],[a.Gc()],this.O,f);else if(a instanceof _.sM)p="teamdrives/"+
a.getId(),null!=a.Ql()?(h="POST",p+="/"+(a.Ql()?"hide":"unhide")):(h="PUT",t=n$c(a),f["content-type"]="application/json"),k.fields=sO(this.H),u=a.re(),n=!0;else if(a instanceof _.tM)h="PUT",p="workspaces/"+a.getId(),k.fields="kind,id,title,createdDate,modifiedDate,state",t=o$c(a),f["content-type"]="application/json",u=a.re(),n=!0;else if("undefined"!=typeof _.DC&&a instanceof _.DC)h="PUT",t=a.O(),u=t.getKey(),p="settings/"+_.C(u,2),(u=_.vp(u))&&(k.namespace=NZc[u]),t=OZc(t),f["content-type"]="application/json",
u=a.re(),n=!0;else if(a instanceof _.$K)p="about",k.fields=_.dL(this.H)?"kind,user(kind,id,permissionId,emailAddressFromAccount,domain),quotaBytesTotal,quotaBytesUsed,quotaBytesUsedAggregate,quotaBytesUsedInTrash,quotaBytesByService,quotaType,rootFolderId,domainSharingPolicy,largestChangeId,importFormats,gsuiteSubscriptionInfo(trialMillisRemaining,trialEndTime,status),teamDashboardCapabilities(canAdministerTeam,canManageInvites)":"kind,user,quotaBytesTotal,quotaBytesUsed,quotaBytesUsedAggregate,quotaBytesUsedInTrash,quotaBytesByService,quotaType,rootFolderId,domainSharingPolicy,largestChangeId,importFormats,gsuiteSubscriptionInfo(trialMillisRemaining,trialEndTime,status),teamDashboardCapabilities(canAdministerTeam,canManageInvites)",
k.fields=RZc(k.fields,this.H),k.fields=SZc(k.fields,this.H),u=a.re(),n=!0;else if("undefined"!=typeof _.tN&&a instanceof _.tN){e=11;h=a.ty();p=a.getUrl();var U=a.ma()||"";a.va().forEach(function(R){f[R.getKey()]=R.Xa()});a.Ba().forEach(function(R){k[R.getKey()]=R.Xa()});a.Fa()&&(b.aFb=!0);a.ka()&&(b.Uv=!0);a.V()&&(b.ika=!0)}else a instanceof _.GRc?(b=a.request.Gc(),p="files/"+b+"/listCategoryMetadata",u=a.request.re(),a.pageToken&&(k.pageToken=a.pageToken),a.request.ji()&&(k.maxResults=a.request.ji()),
k.fields="kind,nextPageToken,categoryMetadata",_.BM(this.H,[],[b],this.O,f)):a instanceof _.qM?(f["content-type"]="application/json",h="POST",b=a.Gc(),p="files/"+b+"/updateCategoryMetadata",u=a.re(),t={categoryMetadata:a.sT().map(function(R){var ca=_.Ok(R,_.IF,2).map(function(ua){return{id:ua.getId(),userId:ua.vy(),setBooleanValue:_.H(ua,3),setTextValue:_.C(ua,4),setTextValues:_.Kd(ua,6),addTextValues:_.Kd(ua,5),setLongTextValue:_.C(ua,7),setSelectionValue:_.C(ua,8),setSelectionValues:_.Kd(ua,10),
addSelectionValues:_.Kd(ua,9),setIntegerValue:_.C(ua,11),setIntegerValues:_.Kd(ua,13),addIntegerValues:_.Kd(ua,12),setUserValue:_.C(ua,14),setUserValues:_.Kd(ua,16),addUserValues:_.Kd(ua,15),setDateStringValue:_.C(ua,17)}}),va={categoryName:R.Hm()};ca.length?va.categoryAttributeValueDeltas=ca:_.Kd(R,4).length?va.revertAttributeIds=_.Kd(R,4):_.H(R,3)&&(va.removeCategory=_.H(R,3));return va})},_.BM(this.H,[],[b],this.O,f)):a instanceof _.jM?(e=13,p=_.YK(_.ZK(this.H))?"/v2/people/public":"/v2/people",
k.person_id=a.Rl(),k["request_mask.include_container"]=["PROFILE","DOMAIN_PROFILE"],k["request_mask.include_field.paths"]=["person.metadata.best_display_name","person.photo","person.email"],k["merged_person_source_options.included_profile_states"]=["DASHER_ADMIN_DISABLED"],_.YK(_.ZK(this.H))||(k["core_id_params.enable_private_names"]=!0)):a instanceof _.MRc?(e=12,p="/v1/categories/-/published",f["content-type"]="application/json",a.pageToken&&(k.pageToken=a.pageToken),a.request.ji()&&(k.maxResults=
a.request.ji()),k.$outputDefaults=!0,k.languageCode=SN(_.ZK(this.H))):a instanceof _.HF?(e=12,p="/v1/"+a.getName(),f["content-type"]="application/json",k.$outputDefaults=!0,k.languageCode=SN(_.ZK(this.H))):a instanceof _.FL?(f["content-type"]="application/json",h="POST",p="drives/"+a.zc()+"/changeCategoryReferences",u=a.re(),n=!0,k.fields=sO(this.H,[157],!0),t={},b=_.Ok(a,_.Cl,2),b.length&&(t.addCategoryReferences=b.map(function(R){return{category:R.Hm()}})),a=_.Ok(a,_.Cl,3),a.length&&(t.removeCategoryReferences=
a.map(function(R){return R.Hm()}))):"undefined"!=typeof _.uM&&a instanceof _.uM?(p="workspaces/"+a.Rl()[0],k.fields="kind,id,title,createdDate,modifiedDate,state",u=a.re(),n=!0):a instanceof _.FRc?(e=7,h="POST",p="/v2/activity:query",f["content-type"]="application/json",t={},t.pageSize=a.pageSize,a.pageToken&&(t.pageToken=a.pageToken),b="items/"+a.request.getId(),a.request.zob()?t.ancestorName=b:t.itemName=b,t.consolidationStrategy={legacy:{}}):a instanceof _.IRc?(e=8,h="POST",p="/v1/exports/"+a.H+
":cancel"):a instanceof _.JRc?(e=8,p="/v1/exports/"+a.H):"undefined"!=typeof _.LRc&&a instanceof _.LRc?(p="changes",k.fields="kind,largestChangeId",_.WM(k),k.includeItemsFromAllDrives=!0,a.teamDriveId&&(k.teamDriveId=a.teamDriveId),u=a.H,n=!0):a instanceof _.pC?(p="settings",u=_.Kd(a,3),k.namespace=PZc(u),u=a.re(),n=!0):a instanceof _.TRc?(p="workspaces",k.fields="kind,nextPageToken,items(kind,id,title,createdDate,modifiedDate,state)",a.pageToken&&(k.pageToken=a.pageToken),a.request.ji()&&(k.maxResults=
a.request.ji()),k.q=Cgd(a.request),(u=a.request.Tt())&&1==u.getType()&&(k.orderBy="title"),u=a.request.re(),n=!0):a instanceof _.kM?(p="changes/getRemainingCount",k.pageToken=_.C(a,2),_.sk(a,3)&&(k.supportsTeamDrives=!0,k.includeItemsFromAllDrives=!0,k.teamDriveId=a.zc()),u=a.re()):a instanceof _.BL?(f["content-type"]="application/json",h="POST",p="files/"+a.Gc()+"/sendAccessRequest",t={},l=!0):_.HXc(a);n&&_.IXc(c,k);0!=e||l||u&&_.C(u,1)||_.VUc(this.zd,74438989);return _.JXc(e,p,k,f,h,u,t,U)};
Egd.prototype.W=function(a,b){a=this.ha.Ll.H(a);b.expectedParentIds=a?a.Ej().join(","):[]};
var Fgd=QZc("kind,id,useByDefault,name,openUrlTemplate,primaryMimeTypes,secondaryMimeTypes,createUrl,createInFolderTemplate,objectType,supportsCreate,supportsImport,supportsMultiOpen,supportsOfflineCreate,installed,authorized,productUrl,primaryFileExtensions,secondaryFileExtensions,shortDescription,longDescription,productId,removable,icons(iconUrl,size,category),type,chromeExtensionIds,requiresAuthorizationBeforeOpenWith,hasDriveWideScope,driveBranded,driveSource,supportsMobileBrowser,supportsTeamDrives,hasGsmListing"),Ggd=
QZc("kind,id,useByDefault,name,openUrlTemplate,primaryMimeTypes,secondaryMimeTypes,createUrl,createInFolderTemplate,objectType,supportsCreate,supportsImport,supportsMultiOpen,supportsOfflineCreate,installed,authorized,productUrl,primaryFileExtensions,secondaryFileExtensions,shortDescription,longDescription,productId,removable,icons(iconUrl,size,category),type,chromeExtensionIds,requiresAuthorizationBeforeOpenWith,hasDriveWideScope,driveBranded,driveSource,supportsMobileBrowser,supportsTeamDrives,hasGsmListing,hasAppData"),
Hgd=QZc("kind,id,useByDefault,name,openUrlTemplate,primaryMimeTypes,secondaryMimeTypes,createUrl,createInFolderTemplate,objectType,supportsCreate,supportsImport,supportsMultiOpen,supportsOfflineCreate,installed,authorized,productUrl,primaryFileExtensions,secondaryFileExtensions,shortDescription,longDescription,productId,removable,icons(iconUrl,size,category),type,chromeExtensionIds,requiresAuthorizationBeforeOpenWith,hasDriveWideScope,driveBranded,driveSource,supportsMobileBrowser,supportsTeamDrives,hasGsmListing,hasAppData,appDataQuotaBytesUsed");
var Igd=function(a,b,c,d,e,f,h,k,l,n,p,t,u,z,B,F,I,M,U,R,ca,va,ua){this.xla=_.ni();this.vpa=new _.aVc;var za=new _.BVc(this.OH.bind(this),function(){return ca("w8KrJc")}),ea=new fed(b.Ll),Ha=new Xdd(za);c=new Pdd(b,f,new Kdd(d,e,c),h,this.xla.promise,k,l,c,ca);d=new eed(b,n,p,t,u,d,e,F,k);this.O=new _.dVc(a,z);z=new Egd(b,a,k,va);this.upa=new tgd(k,a,B,F);this.H=f$c(a,new _.LWc(this.O,this.vpa,z,this.upa,I,M,U),M,B,R,b.Ll,this.vpa,this.xla.promise,U||void 0);this.xla.resolve(ua?ua:new _.mWc(new ged,
ea,Ha,this.H,za,c,d,a))};Igd.prototype.OH=function(){return _.eg(this.H,function(a){return a.OH()})};var Wad=function(a){var b=new Map,c=Date.now();_.bg(a.H,function(d,e){d=K1c(d);d.length&&b.set(e,d.map(function(f){return f?c-f:null}))});return b};
var Jgd=function(a,b){var c=this;this.context=a;this.Hg=b;this.ha=null;this.yP=0;this.ka=this.active=!1;this.H=this.ta=null;this.V={};this.Fa=this.Ba=!1;this.zd=a.Gl();this.W=_.ni();this.O=a.Tc;this.Ha=_.oL(this.O)||new _.HQc;b=_.TN(this.O);this.va=new _.jVc(_.wk(b,2,37500),_.wk(b,3,6E5));this.ma=a.jO;_.bg(e6c,function(d){c.V[d]=[]});DO(a.Vj,["hVFf7","T8oKm","BNEDtc"],function(){c.log("Initializing: loaded from local dump");c.initialize()});DO(a.Vj,["hVFf7","T8oKm","mrK8ic"],function(){c.log("Initializing: loaded from sdk backfill");
c.initialize()});DO(a.Vj,["mrK8ic","BNEDtc"],function(){c.log("Updating: sdk backfill complete");c.SQ().eg(_.uf)})};_.g=Jgd.prototype;_.g.initialize=function(){var a=this;this.Ba||(this.Ba=!0,jP(this.context).addCallback(function(b){a.ma.initialize().Yf(function(){a.ha=b;a.setActive(!0)},function(c){c&&t1c(a.context.$f(),"drive.ds.sync.storage.LiveDumpUpdater","Error initializing dump storage",_.xL(c));a.log("Error initializing dump storage");a.kV()})}))};
_.g.isInitialized=function(){return!!this.ha||this.ka};_.g.lka=function(a){this.active&&(this.yP+=a,this.yP>_.wk(_.TN(this.O),1,500)&&this.update(3))};_.g.setActive=function(a){if(this.isInitialized()&&this.active!==a){var b=this.context;a&&(b.ET().OH()||0<b.ig.qJ.Oka||b.hk.af()||b.Ml.af())||((this.active=a)?(this.W.resolve(),this.H||this.SQ().eg(_.uf)):(this.W=_.ni(),_.q.clearTimeout(this.ta)))}};_.g.kV=function(){this.ka=!0};_.g.LSa=function(){return this.H?this.H.promise:_.ii()};
_.g.SQ=function(){var a=this;if(this.H)return this.H.promise;this.H=_.ni();_.oi(this.H.promise,function(){a.H=null});var b=this.zd.O(106021)||void 0;this.W.promise.then(function(){return $9c(a.context.NB)}).then(function(c){var d=!c;return a.ka?d:_.li([Kgd(a,3,d,void 0,void 0,b),Kgd(a,0,d,void 0,!0,b),Kgd(a,1,d,void 0,!0,b),Kgd(a,5,d,void 0,!0,b),Kgd(a,6,d,void 0,!0,b)]).then(function(){return d},function(e){e=new _.Ub("Failed to update dump",void 0,_.xL(e));return _.ji(e)})},function(){return _.ji(Error("eg"))}).then(function(c){a.H.resolve(c);
b&&(c=A1c(b),_.A(c,2,!0),b.xk())},function(c){a.H.reject(c);b&&(c=A1c(b),_.A(c,2,!1),b.xk())});return this.H.promise};_.g.update=function(a,b){var c=this,d=new _.ri,e=this.zd.O(106021)||void 0;e&&(q1c(A1c(e),_.dN(_.BQc,a)),d.then(function(){var f=A1c(e);_.A(f,2,!0);e.xk()},function(){var f=A1c(e);_.A(f,2,!1);e.xk()}));this.W.promise.then(function(){return $9c(c.context.NB)}).then(function(f){f=!f;c.ka?d.callback():_.ui(Kgd(c,a,f,b,void 0,e),d)});return d};
var Kgd=function(a,b,c,d,e,f){var h=_.ia(a.V[b]);if(h){if(h.encrypt===c&&1<a.V[b].length)return h.kg.nm();var k=new _.ri;_.ti(h.kg,function(){_.ui(a.wt(b,c,d,e,f),k)})}else k=a.wt(b,c,d,e,f);var l={encrypt:c,kg:k};a.V[b].push(l);_.ti(k,function(){_.ta(a.V[b],function(n){return l===n})});k.$e(function(n){a.ma.O.nh()?a.kV():n instanceof _.Ub&&(n=n.O||null,n instanceof _.UK&&"InvalidStateError"==n.getName()&&n.message&&-1<n.message.indexOf("The database connection is closing.")&&a.kV());return null});
return k};
Jgd.prototype.wt=function(a,b,c,d,e){var f=this,h=new _.ri;this.W.promise.then(function(){if(3===a)_.ui(Lgd(f,c||!1,b,e),h);else{switch(a){case 0:var k=f.context.KN;k=k.H?_.Uk(k.H):null;break;case 1:k=f.context.oX.$q();break;case 5:k=Mgd(f.context.rC);break;case 6:k=f.context.ig.ws;k=w6c(new v6c,v7c(k.H));break;default:h.Rd("Invalid data type to write to storage.");return}if(k){var l=_.Ok(_.TN(f.O),RN,11)[0].getKey();!l&&b?(f.log("Skipping dump update, encrypted and no key"),h.callback()):Y8c(f.ma,
b?l:null,[k],e).then(h.callback,h.Rd,h)}else d?(f.log("Skipping dump update: "+a),h.callback()):h.Rd("Failed to get data to write to dump.")}});return h};
var Lgd=function(a,b,c,d){_.q.clearTimeout(a.ta);a.ta=_.q.setTimeout((0,_.v)(a.Ja,a),a.va.Xa());if(b&&0===a.yP)return _.wi();a.yP=0;var e=_.Ok(_.TN(a.O),RN,11)[0].getKey();if(!e&&c)return a.log("Skipping dump update, encrypted and no key"),_.wi();var f=[];_.bg(b5c,function(k){0<k&&(k=Ngd(a,k),k.length&&f.push(Y8c(a.ma,c?e:null,k,d)))});var h=new _.ri;_.li(f).then(function(){a.Fa&&a.context.NB.set(Y9c,!0);h.callback()},h.Rd,h);return h};Jgd.prototype.Ja=function(){_.VG(this.va);this.update(3,!0)};
var Ngd=function(a,b){switch(b){case 1:return[Ogd(a)];case 2:var c=(b=a.context.ig.Iv.H)?b.iy():[];c=Pgd(a,_.Xc(pZc(c)));a.log("Exporting "+c.length+" secondary dump items.");c.length>_.wk(_.TN(a.O),5,2E4)&&(b&&T6c(b),c=[]);c=W4c(new qO,Qgd(c));var d=a.context.ig.Iv;a=new AZc;(d=d.H)&&d.sL&&(d=d.iy(),_.A(a,3,d.length));c=_.y(c,11,a);c=a5c(c,2);b&&Z4c(c,b.vP());return[c];case 3:return Rgd(a);case 4:return Sgd(a);default:throw new _.Ub("Unsupported CacheType");}},Ogd=function(a){for(var b={},c=[],d=
g7c(a.context.ig.Iv,!0),e=!0,f=0;f<d.length;f++){var h=d[f],k=h.iy(),l=Pgd(a,oZc(k));k=l.length;var n=0<k?l[k-1]:null;_.Ka(l,function(p){b[p.getId()]=p});if(0<k||h.H)l=T4c(new pO,h.qd()),h.H||(_.A(l,2,k),_.y(l,3,n),e=!1),c.push(l)}d=_.Xc(b);a.log("Exporting "+d.length+" initial dump items.");return Z4c(a5c(Y4c(W4c(X4c($4c((new qO).pt(a.context.hn()),_.XM(a.Hg)),a.ha.ZZ(null)),Qgd(d)),c),1),!e)},Rgd=function(a){var b=[],c=a.ha;a.context.ig.Iv.HT().forEach(function(d){var e=c.ZZ(d.zc());if(e){var f=
Pgd(a,oZc(d.iy()));a.log("Exporting "+f.length+" TD dump items for: "+d.zc());e=Z4c(a5c(X4c(W4c(new qO,Qgd(f)),e),3),d.vP(d.qd()));d=T4c(new pO,d.qd());Y4c(e,[d]);b.push(e)}});return b},Sgd=function(a){var b={},c=[];a.context.ig.HT().forEach(function(d){1===d.DK()&&null==_.H(d.qd(),6)&&(oZc(d.iy()).forEach(function(e){b[e.getId()]=e}),d=U4c(T4c(new pO,new _.Pe),d.qd()),c.push(d))});return[Z4c(a5c(Y4c(W4c(new qO,Qgd(Object.values(b))),c),4),!1)]},Pgd=function(a,b){b=RYc(b);_.H(a.O,67)&&(b=Tgd(b));
_.dL(a.O)&&(_.E(a.Ha,9,!1)?N7c(a.context.ig.ws,b)&&(_.VUc(a.zd,179490965),a.log("b/179490965 Unexpected people data when writing to disk cache.","warning"),b=L7c(a.context.ig.ws,b)):b=L7c(a.context.ig.ws,b));return b.filter(function(c){return 4!==KN(c)})},Tgd=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,GYc(c)?(c=c.clone(),qYc(c,FYc),b.push(c)):b.push(c);return b},Qgd=function(a){return a.map(function(b){return _.Uk(b)})};
Jgd.prototype.log=function(a,b){this.context.$f().log("drive.ds.sync.storage.LiveDumpUpdater",a,void 0===b?"info":b)};Jgd.prototype.tAa=function(){this.Fa=!0};
var Ugd=function(){};_.g=Ugd.prototype;_.g.setActive=function(){};_.g.kV=function(){};_.g.update=function(){return _.wi()};_.g.LSa=function(){return _.ii()};_.g.SQ=function(){return _.ii()};_.g.lka=function(){};_.g.tAa=function(){};
var ON=function(a,b,c,d){_.Q.call(this);var e=this;this.Aa=a;this.rootId=null;this.va=!0;this.V=null;this.W=[];this.ta=d||new _.TTc;this.Tc=b.clone();this.Hg=new _.bUc(this.Tc);this.Bm=new O5c(_.XM(this.Hg),this.Tc);Vgd(this);this.e1=new _.Bo;this.hb=_.q.setTimeout(function(){e.$f().info("drive.ds.sync.ThinContext","Page stable timed out.");e.e1.resolve();e.Gl().H(106020)},1E4);this.yca=new _.ri;this.hk=new _.FUc(_.RM(this.Tc),_.E(this.Tc.Sf(),52,!1));this.Ml=new _.yUc(_.RM(this.Tc)?3:1,!_.E(this.Tc.Sf(),
52,!1));this.zd=_.WUc(this.Tc,this.hk,this.Ml,this.ta,this.e1.promise,c);this.xca=new i6c(this.zd);this.oS=new _.ri;Wgd(this)};_.N(ON,_.Q);ON.prototype.z9=function(){this.$f().info("drive.ds.sync.ThinContext","Notified of page stable.");_.q.clearTimeout(this.hb);this.e1.resolve()};var Wgd=function(a){var b=function(){a.xx().eg(_.uf)},c=a.Aa;(c=c&&_.Qb(c,_.el))?_.te(c,"A",b):_.GQc()||_.te(_.q,"unload",b)};
ON.prototype.xx=function(){this.zd.H(106005);this.zd.Gw();var a=this.W.map(function(b){return b()});_.pa(this.W);return _.mi(a).then()};var Xgd=function(a,b){a.W.push(b)};_.g=ON.prototype;_.g.$f=function(){return this.ta};_.g.pt=function(a,b){"string"===typeof a&&null===this.rootId&&(this.rootId=a,this.yca.callback(a),a.length&&this.F0a(a,b||null))};_.g.F0a=function(){};_.g.hn=function(){return this.rootId};_.g.Gl=function(){return this.zd};
var Ygd=function(a){if(!a.V)throw Error("fg");return a.V},Zgd=function(a,b){a.V=b};ON.prototype.Yz=function(){return this.va||this.Ml.isConnected()};ON.prototype.vIb=function(a){this.oS.callback(a)};
var Vgd=function(a){var b=a.Tc.Sf();0===_.Kd(b,30).length&&(a.log("No user pref namespaces provided, user prefs disabled."),_.A(b,19,3));if(!_.G(b,37,""))throw Error("gg");_.C(b,57)||(a.log("No root URI provided; using prod default."),_.A(b,57,"https://clients6.google.com"));if(_.E(_.TN(a.Tc),9,!1))if(b=_.Ok(_.TN(a.Tc),RN,11),0<b.length){if(!_.C(b[0],1)||!b[0].getKey()&&!_.RM(a.Tc)&&!_.E(a.Tc,10,!1))throw Error("hg");}else _.A(_.TN(a.Tc),9,!1),a.log("Disabling IndexedDB support, missing configuration.");
if(!_.E(_.TN(a.Tc),9,!1)&&(_.RM(a.Tc)||_.E(a.Tc,10,!1)))throw Error("ig");var c=_.ZK(a.Tc);b=!(!c||!_.YK(c));c=c&&_.PM(c)||"";if(!b&&!c)throw Error("jg");b&&_.Dk(a.Tc,44);_.Ok(a.Tc,_.Pe,44).forEach(function(d){try{S5c(a.Bm,d)}catch(e){if(e instanceof _.Ub&&(d=e.$g)&&3===d.Mr())throw Error("kg");throw e;}})};ON.prototype.nH=function(a){this.dispatchEvent(new _.Wb(new _.Ub(void 0,a)))};ON.prototype.log=function(a){this.$f().info("drive.ds.sync.ThinContext",a)};
var $gd=function(a,b){this.H=a;this.Ve=b};
var ahd=new Set([5,4,1,6,2]),bhd=new Map([[3,1],[7,1],[2,2],[4,2],[5,3],[1,4],[6,5]]),chd=function(a,b,c){_.Q.call(this);this.ha=a;this.V=b;this.W=c;this.bE=new Map;this.O=new Map;this.status=6;this.H=null};_.N(chd,_.Q);
chd.prototype.UN=function(a,b,c,d){var e=this;if((d=void 0===d?!1:d)&&!c.length){var f=new Set;a.forEach(function(p){(p=(p=p.getKey())&&_.vp(p))&&f.add(p)});[].concat(_.Vc(f.values())).forEach(function(p){return void c.push(p)})}if(c.length){var h=ahd.has(b),k=new Map;c.forEach(function(p){k.set(p,new Map)});a.forEach(function(p){var t=p.getKey(),u=t&&_.vp(t);t=t&&_.C(t,2);u=k.get(u);t&&u&&u.set(t,dhd(p))});var l=0,n=0;[].concat(_.Vc(k.keys())).forEach(function(p){var t=k.get(p),u=e.bE.get(p);u?h&&
(t.forEach(function(z){var B=z.getKey();(B=u.get(B&&_.C(B,2)))&&_.Tk(z,B)||l++}),[].concat(_.Vc(u.values())).forEach(function(z){z=z.getKey();t.has(_.C(z,2))||n++}),e.bE.set(p,t),e.O.set(p,b)):(l+=t.size,e.bE.set(p,t),e.O.set(p,b))});this.ha.info("drive.ds.sync.userprefs.InMemoryUserPrefsCache","Loaded "+l+"/"+a.length+" user prefs from "+b+(n?" (removed "+n+")":""));if(1!==this.status||l){if(h||d)this.status=1,EO(this.V,"px2C2c");EO(this.V,"rkYxSd")}(l||n)&&ehd(this,!h)}};
chd.prototype.DB=function(){return 0<this.bE.size};var ehd=function(a,b){b||a.H||(a.H=_.q.setTimeout(function(){_.q.clearTimeout(a.H);a.H=null;a.W.update(5)},1E3));a.dispatchEvent(new _.Fi("WPi0i"))};chd.prototype.put=function(a){var b=a.getKey(),c=b&&_.vp(b);b=b&&_.C(b,2);if(c&&b&&(c=this.bE.get(c))){var d=c.get(b);a=dhd(a);d&&_.Tk(a,d)||(c.set(b,a),ehd(this))}};chd.prototype.remove=function(a){var b=a&&_.vp(a);a=a&&_.C(a,2);b&&a&&(b=this.bE.get(b))&&b.delete(a)&&ehd(this)};
var Mgd=function(a,b){var c=[];(b||[].concat(_.Vc(a.bE.keys()))).forEach(function(e){(e=a.bE.get(e))&&[].concat(_.Vc(e.values())).forEach(function(f){return void c.push(f.clone())})});b=b?b.filter(function(e){return a.bE.has(e)}):[].concat(_.Vc(a.bE.keys()));var d=new Q1c;_.kb(d,1,c);_.A(d,2,b||[]);return d};
chd.prototype.fL=function(a){var b=this,c=Mgd(this,a),d=new _.wp;d.Ac(this.status);_.Exa(d,_.Ok(c,_.up,1));_.y(d,4,c);var e=0;a.forEach(function(f){f=b.O.get(f);bhd.has(f)&&Infinity>bhd.get(f)&&(e=f)});return new $gd(d,e)};var dhd=function(a){a=a.clone();a.mh()||a.Jb("");return a};
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var fhd=function(a){var b=a.a,c=a.b,d=a.c;b=b-c-d^d>>>13;c=c-d-b^b<<8;d-=b;d=d-c^c>>>13;b-=c;b-=d;b^=d>>>12;c=c-d-b^b<<16;d-=b;d=d-c^c>>>5;b-=c;b-=d;b^=d>>>3;c=c-d-b^b<<10;d-=b;d=d-c^c>>>15;a.a=b;a.b=c;return a.c=d},hhd=function(a,b){return ghd(a[b])+(ghd(a[b+1])<<8)+(ghd(a[b+2])<<16)+(ghd(a[b+3])<<24)},ghd=function(a){return 127<a?a-256:a};
var VZc=function(a,b,c,d,e,f){ON.call(this,a,b,c,d);var h=this;this.Qa=_.ni();this.$u=new X6c;this.ka=null;this.O=_.ni();this.Fa=new _.ri;this.dJa=null;this.Aca=new c8c;this.H=null;this.Ta=_.ni();this.ha=new _.ri;this.qX=new H8c;this.Xx=new k8c;this.Yra=new M6c;this.Aia=_.ni();this.Ha=!1;this.Ba=_.ni();this.ma=null;this.Kb=new _.oe;this.La(this.Kb);this.Vj=e?e:new L6c(this.$f());this.Gl().W.O=this.Vj;this.rJ=_.E(_.TN(b),9,!1)&&TZc()?ihd(this,b):null;this.Xv=new H5c(SN(_.ZK(b)));this.NB=jhd(this,this.rJ);
this.jO=khd(this,this.rJ,b);this.Eu=lhd(this);this.ig=new nP(this,this.Hg);(a=(a=_.D(this.Tc,_.Dl,12))&&a.getId())&&this.pt(a,6);this.KN=new dbd(this.Tc,this.ig.ws,this.Vj,this.$f(),this.Eu);this.oX=new ibd(this.$f(),this.Vj,this.Eu);this.rC=new chd(this.$f(),this.Vj,this.Eu);this.pX=new N6c(this.Tn(),this.$f(),function(k){return void h.nH(k)});this.vR=_.E(this.Tc.Sf(),52,!1)?new _.mVc(this.Ml,this.Tn(),this.$f()):null;DO(this.Vj,["mrK8ic"],function(){h.Ta.promise.then(function(){Mbd(h,h.H)})});this.eJa=
new D8c(this.Tc);this.lE=new _.uVc(this.Tc,this.ig.Ll);this.wpa=new Hdd(this);this.zca=new g8c(this.O.promise,this.Tn());this.Za=new i8c(this.Tn(),this.zca);this.xpa=new z8c(this.O.promise,this.Tn(),this.$f(),this.Tc);this.Ja=new Igd(this.Tc,this.ig,this.nH.bind(this),this.zca,this.Za,this.Eu,this.Aca,this.Hg,this.hn.bind(this),this.wpa,this.oX,this.rC,this.xpa,this.qX,this.$f(),this.eJa,this.lE,this.pX,this.vR,this.hk,this.Nkb.bind(this),this.Gl(),f);this.Qa.resolve(this.Ja);this.C2a=new qdd(this);
DO(this.Vj,["BNEDtc"],function(){return h.Ba.resolve()});Xgd(this,function(){h.Eu.kV();return _.ii()})};_.N(VZc,ON);
var ihd=function(a,b){var c=_.PM(_.ZK(b)),d=_.QM(b),e=function(){},f=_.Ok(_.TN(b),RN,11);f=f[0]&&_.C(f[0],1);var h=new s9c(c,d,_.wk(_.TN(b),10,0)||0,f||"",_.XM(a.Hg));_.RM(b)?c=N9c(c,d).then(function(l){return l?l:h}):_.E(b,10,!1)&&0<_.wk(_.TN(b),8,432E6)?(b=mhd(a,c),c=N9c(c,d,b).then(function(l){return l&&(e=function(n){return n.xm(h).eg(function(){return null})},!l.ha)?l:h})):c=_.ii(h);var k=new SO(c,a.$f(),a.Gl());k.initialize().then(function(){return e(k)},function(){return null});return k},mhd=
function(a,b){var c=_.wk(_.TN(a.Tc),8,432E6);if(!_.RM(a.Tc)&&0<c){a=Math;var d=a.abs;b=_.qla(b);var e=0,f=b.length,h={a:-1640531527,b:-1640531527,c:314159265},k;for(k=f;12<=k;k-=12,e+=12)h.a+=hhd(b,e),h.b+=hhd(b,e+4),h.c+=hhd(b,e+8),fhd(h);h.c+=f;switch(k){case 11:h.c+=b[e+10]<<24;case 10:h.c+=(b[e+9]&255)<<16;case 9:h.c+=(b[e+8]&255)<<8;case 8:h.b+=hhd(b,e+4);h.a+=hhd(b,e);break;case 7:h.b+=(b[e+6]&255)<<16;case 6:h.b+=(b[e+5]&255)<<8;case 5:h.b+=b[e+4]&255;case 4:h.a+=hhd(b,e);break;case 3:h.a+=
(b[e+2]&255)<<16;case 2:h.a+=(b[e+1]&255)<<8;case 1:h.a+=b[e]&255}b=fhd(h);return d.call(a,b)%c}};VZc.prototype.PD=function(a){var b=this;return this.rJ?this.rJ.nh()?_.ji(Error("lg`"+z9c(this.rJ))):$9c(this.NB).then(function(c){var d=b.rJ,e=[];e.push(b.Eu.LSa());e.push(a?d.xm():J9c(d));if(a===c)return _.li(e).then(function(){return!1});!1===a&&(e.push(y9c(d)),(c=b.hn())&&e.push(b.NB.pt(c)));return _.li(e).then(function(){return b.NB.PD(a)},function(){return!1})}):_.ji(Error("mg"))};
var khd=function(a,b,c){var d=null;b&&(d=new R8c(b,c,function(e){a.nH(e)},a.Gl()),d.initialize());return d},jhd=function(a,b){var c=new Z9c(b||void 0);c.hn().then(function(d){d&&a.pt(d,5)});b&&($9c(c).then(function(d){a.hk.PD(d)}),_.li([b.initialize(),a.e1.promise]).then(function(){nhd(a,c)},function(){}));return c},nhd=function(a,b){c$c(b).then(function(c){(!c||c<Date.now()-864E5)&&Q9c(_.PM(_.ZK(a.Tc)),_.QM(a.Tc),a.$f()).then(function(d){d&&(d=Date.now(),b.set(X9c,d))},function(){})})},lhd=function(a){if(!a.jO)return new Ugd;
var b=new Jgd(a,a.Hg);a.Kb.listen(a.hk,"Ab",function(c){return void b.setActive(!c.af())});a.Kb.listen(a.Ml,[].concat(_.Vc(Object.values(_.gL))),function(){return void b.setActive(a.Ml.isConnected())});return b};VZc.prototype.P$=function(a){this.dJa=a;this.Fa.callback(a)};var jP=function(a){return a.Fa.nm()},Vad=function(a){return a.rJ?a.rJ.nh():null},ohd=function(a,b){a.Vj.H("NSockf")?EO(a.Vj,b):DO(a.Vj,["NSockf"],function(){EO(a.Vj,b)})};
VZc.prototype.F0a=function(a,b){this.log("Setting Root ID: "+a);a&&(this.$u.pt(a),this.Bm.pt(a),6!==b&&1!==b||this.NB.pt(a),ohd(this,"jroI5d"))};VZc.prototype.PRa=function(){return this.ha.nm()};var Mbd=function(a,b,c){0>b||((void 0===c?0:c)?a.H?a.H=Math.max(a.H,b):(a.H=b,a.Ta.resolve()):a.ha.xf()||(a.ha.callback(b),ohd(a,"T8oKm")))},hP=function(a){if(!a.ka)throw Error("ng");return a.ka};_.g=VZc.prototype;_.g.ET=function(){return this.Ja};_.g.Tn=function(){return this.Qa.promise.then(function(a){return a.xla.promise})};
_.g.sAa=function(){this.Ha||(this.Ha=!0,this.Aia.resolve(),EO(this.Vj,"aU7Ts"))};_.g.Yz=function(){throw Error("og");};_.g.Nkb=function(a){this.dispatchEvent(a)};var Rad=function(a){a.ma||(a.ma=new q8c(a.O.promise,a.Tn(),a.$f()));return a.ma};
var sP=function(a,b,c){_.Q.call(this);var d=this;this.Ba=a;this.hb=b;this.ta=new _.ri;this.va=this.channel=this.clientId=null;c.then(function(e){return phd(d,e)})};_.N(sP,_.Q);var phd=function(a,b){a.clientId=b.clientId;a.channel=b.channel;a.va=b.H;wO(a.channel,a.Ba,function(c){c=d6c(c);a.mia(c.H,!(!c.data||!c.yc),c.data,c.error)});a.log("Service initialized: "+a.Ba);a.ta.callback()};sP.prototype.mia=function(){};
sP.prototype.send=function(a,b,c,d){var e=this,f=new _.ri;this.ta.addCallback(function(){var h=e.channel;$5c(h,e.Ba,b6c(new a6c(e.clientId,a,b,d),h.W),function(k){return void qhd(k,a,f,c||function(){})})});return f};var qhd=function(a,b,c,d){a=d6c(a);a.data?c.callback(d(a.data,a.yc)):(a.error?d=a.error:(d=new _.Tb,_.kL(d,2),_.lL(d,6),_.A(d,21,"Worker["+b+"]: An invalid response was received")),c.Rd(new _.Ub(void 0,d)))};sP.prototype.log=function(a){this.va&&this.va.info(this.hb,a)};
var rhd=function(a,b,c,d){this.clientId=a;this.channel=b;this.H=c;this.O=d};
var shd=function(a,b,c){sP.call(this,"LRM","drive.ds.sync.cache.LiveRequestManagerProxy",a);this.context=b;this.H=c;this.O={}};_.N(shd,sP);shd.prototype.Nta=function(a){var b=this;a=new Aad(this.context.Bm,this.context.oS,this.context.$f(),this.context.Tc,function(c,d){return b.WM(c,d)},a);thd(this,a);return a};shd.prototype.Qta=function(a){var b=this;a=new Had(this.context.Bm,this.context.oS,this.context.$f(),function(c,d){return b.WM(c,d)},a,this.context.Tc);thd(this,a);return a};
var thd=function(a,b){a.Pk(b);_.ee(b,function(){a.Um(b);a.send("4.3",[b.qd()],void 0,b.li())});a.send("4.1",[b.qd()],void 0,b.li())};_.g=shd.prototype;_.g.Kta=function(a){var b=this,c=new Ead(this.context.Tc,this.context.Bm,this.context.$f(),this.context.yca,this.Cna.bind(this),a);this.Pk(c);_.ee(c,function(){b.Um(c);b.send("4.4",[c.qd()],void 0,c.li())});this.send("4.2",[c.qd()],void 0,c.li());return c};
_.g.Tta=function(a){var b=this,c=new Lad(a,this,this.context.Tc);this.Pk(c);_.ee(c,function(){b.Um(c);b.send("4.11",[c.qd()],void 0,c.li())});this.send("4.9",[c.qd()],void 0,c.li());return c};_.g.Uta=function(a){var b=this,c=new Mad(this.context,this,a);this.Pk(c);_.ee(c,function(){b.Um(c);b.send("4.12",[c.qd()],void 0,c.li())});this.send("4.10",[c.qd()],void 0,c.li());return c};
_.g.Xta=function(a){var b=this,c=new Pad(this.context,a,this);this.Pk(c);_.ee(c,function(){b.Um(c);b.send("4.15",[c.qd()],void 0,c.li())});this.send("4.13",[c.qd()],void 0,c.li());return c};_.g.Yta=function(a){var b=this,c=new Dad(this.context,a);this.Pk(c);_.ee(c,function(){b.Um(c);b.send("4.16",[c.qd()],void 0,c.li())});this.send("4.14",[c.qd()],void 0,c.li());return c};
_.g.Rta=function(a){var b=this,c=new Kad(this.context,a,function(){b.send("4.21",[],void 0,c.li())});this.Pk(c);_.ee(c,function(){b.Um(c);b.send("4.23",[c.qd()],void 0,c.li())});this.send("4.22",[c.qd()],void 0,c.li());return c};_.g.Hta=function(a){var b=this,c=new yad(this.context.hk,this.context.Ml,this.context.$f(),function(d,e){return b.WM(d,e)},a);this.Pk(c);_.ee(c,function(){b.Um(c);b.send("4.19",[c.qd()],void 0,c.li())});this.send("4.18",[c.qd()],void 0,c.li());return c};
_.g.Pk=function(a){this.H.create(a.li(),a.qd());this.O[a.li()]=a};_.g.Um=function(a){xO(this.H,a.li(),4);delete this.O[a.li()]};_.g.Cna=function(a,b,c){if(b instanceof _.qp&&c instanceof _.qp)this.send("4.5",[b,c],void 0,a);else if(b instanceof _.yp&&c instanceof _.yp)this.send("4.6",[b,c],void 0,a);else throw Error("pg");};
_.g.WM=function(a,b){if(!this.O[a])throw Error("Qf`"+a);var c=this.O[a];if(c.qd()instanceof _.Pe)var d="4.7";else if(c.qd()instanceof _.SK)d="4.8";else if(c.qd()instanceof _.OF)d="4.20";else if(c.qd()instanceof _.Ap)d="4.17";else throw Error("qg");c.qd().Yh(b);this.send(d,[b],void 0,a)};
_.g.mia=function(a,b,c,d){if(a=this.O[a]){var e,f=0;if(d)b=new yO(d,d.p4()),a.Sz(b),xO(this.H,a.li(),3);else if(c&&c[f]){d=c[f++];if("cacheRefresh"===d){a.UT();return}var h=a.qd();if(h instanceof _.Pe||h instanceof _.SK)h instanceof _.Pe&&_.WL(h)?e=lZc(d,b,_.fN):e=lZc(d,b,_.IA);else if(h instanceof _.qp||h instanceof _.yp)b?(e=new _.eN,J2c(e,function(k){return new _.Dl(JSON.parse(k))},d)):e=d;else if(h instanceof _.OF)e=new _.iN(lZc(d,b,dO),c[f++],c[f++],c[f++]);else if(h instanceof _.Ap)e=new _.OUc(lZc(d,
b,BO),c[f++],c[f++],c[f++]);else if("undefined"!=typeof _.uM&&h instanceof _.uM)e=lZc(d,b,_.gN);else if(h instanceof _.xp)e=lZc(d,b,gO);else throw Error("rg");}e&&(b=f,c&&"boolean"===typeof c[b]&&j6c(this.H,a.li(),!!c[b]),m6c(this.H,a.li(),e),a.update(e))}};
var uhd=function(a,b){sP.call(this,"DU","drive.ds.sync.DebugUtilProxy",a);this.context=b;this.H=null};_.N(uhd,sP);_.g=uhd.prototype;_.g.Ka=function(){return _.D(this.context.Tc,_.hRc,58)};_.g.getContext=function(){return this.context};_.g.YC=function(){return this.send("5.4",[this.H],function(a){return new _.RTc(JSON.parse(a[0]))})};_.g.$f=function(){return this.context.$f()};_.g.VS=function(a){return this.send("5.2",[a],function(b){return(b=JSON.parse(b[0]))&&new _.Dl(b)})};
_.g.E7=function(){return this.send("5.5",[],function(a){a=JSON.parse(a[0]);for(var b=[],c=0;c<a.length;c++)b.push(new _.gQc(a[c]));return b})};_.g.mna=function(a,b,c){return this.send("5.8",[a.yc(),b,c],function(d){var e=JSON.parse(d[0]),f=d[1];d=d[2];for(var h=[],k=0;k<e.length;k++)h.push(new _.Dl(e[k]));return{items:h,qfa:f,pageToken:d}})};_.g.Q2a=function(){this.send("5.9",[])};_.g.sOa=function(){this.send("5.1",[])};_.g.I6=function(){return _.LQc[_.vk(this.context.Tc.Sf(),8,0)]};
_.g.lFa=function(){this.send("5.6",[])};_.g.W1=function(){return this.send("5.7",[],function(a){if(0===a.length)return null;var b=a[0],c=new Date(a[1]),d=[];a=JSON.parse(a[2]);for(var e=0;e<a.length;e++)d.push(new h6c(a[e]));return{traceId:new G8c(b,c),spanRecs:d}})};_.g.G7=function(){return this.send("5.10",[],function(a){return 0===a.length?null:new G8c(a[0],new Date(a[1]))})};_.g.getState=function(){return this.send("5.12",[],function(a){return a[0]})};_.g.L1a=function(){this.send("5.11",[])};
_.g.xm=function(a){this.send("5.13",[a])};
var vhd=function(a,b){sP.call(this,"IE","drive.ds.sync.itemexport.ItemExportSessionProxy",a);this.request=b;this.promise=null;this.id=String(_.Da(this))};_.N(vhd,sP);vhd.prototype.start=function(){var a=this;this.promise||(this.promise=this.send("9.1",[this.request.yc()],function(b){return new jad(JSON.parse(b[0]))},this.id).then(),this.promise.then(function(){return a.dispose()},function(){return a.dispose()}));return this.promise};
vhd.prototype.cancel=function(){this.send("9.2",[this.request.yc()],void 0,this.id)};vhd.prototype.mia=function(a,b,c){this.dispatchEvent(new vad(c[0],c[1]))};
var whd=function(a){sP.call(this,"ODS","drive.ds.sync.offline.DataServiceProxy",a);this.H=null};_.N(whd,sP);whd.prototype.NV=function(a){if(this.H=a){a=this.V.bind(this);var b=this.O.bind(this);this.log("Querying all offline items.");this.H.hT().Yf(a,b);this.H.eY((0,_.v)(this.W,this))}else this.send("6.3",[])};whd.prototype.V=function(a){var b=[];_.Ka(a,function(c){b.push(c.yc())});this.log("Forwarding all offline items response, count:"+a.length);this.send("6.1",b)};whd.prototype.O=function(){this.log("Error fetching offline items.")};
whd.prototype.W=function(a){var b=[];_.Ka(a,function(c){b.push(c.yc())});this.log("Forwarding offline items changes, count:"+a.length);this.send("6.2",b)};
var xhd=function(a,b){MO.call(this,a,b)};_.N(xhd,MO);xhd.prototype.dfa=function(a,b,c){return new _.MRc(a,c)};xhd.prototype.Cha=function(a){return a.pageToken||""};xhd.prototype.Oga=function(a){return a.response.O()};xhd.prototype.u3=function(){};
var yhd=function(a,b,c){cP.call(this,a.hk,a.Ml,b.ji()||void 0);this.request=b;this.O=[];this.changed=!1;this.ma=c;this.V=new xhd(this.request,this.ma)};_.N(yhd,cP);_.g=yhd.prototype;_.g.gF=function(){this.V.ih().then(this.D6a.bind(this),this.handleError.bind(this))};_.g.getData=function(){return Q$c(new $O,this.O).Ac(this.status)};_.g.fr=function(){return new O$c};_.g.oj=function(){return!this.af()&&(!this.H||V7c(this.V))};_.g.D6a=function(a){this.changed=this.H=!0;this.O=a;this.Hs()};
_.g.Hs=function(){if(this.active){var a=this.status;this.pJ();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.Fi(_.Mc,this))}};_.g.Zb=function(){return this.O.length};
var zhd=function(a,b,c){cP.call(this,a.hk,a.Ml,b.ji()||10);this.request=b;this.O=[];this.data=[];this.changed=!1;this.V=new _.YXc;this.suggestionSessionId=null;this.ma=c};_.N(zhd,cP);_.g=zhd.prototype;_.g.gF=function(){var a=this;this.ma(this.request).then(function(b){a.H=!0;a.changed=!0;a.data=b.zk();a.suggestionSessionId=b.tf();a.Hs()},this.handleError.bind(this))};_.g.getData=function(){this.O=this.data;return _.fYc(_.eYc((new _.EN).Ac(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.fr=function(){var a=this.V.oy(this.O,this.data);this.O=this.data;var b=(new U$c).Ac(this.status);return _.kb(b,2,a)};_.g.RM=function(){};_.g.Hs=function(){var a=this.status;this.pJ();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.Fi(_.Mc,this))};_.g.Zb=function(){return this.data.length};
var Ahd=function(){};_.g=Ahd.prototype;_.g.kK=function(a,b){b=bad(1).setPosition(b);_.y(b,2,a);return b};_.g.iK=function(a,b){b=bad(2).setPosition(b);_.y(b,2,a);return b};_.g.MC=function(a,b,c){b=bad(3).vx(b).setPosition(c);_.y(b,2,a);return b};_.g.eO=function(a,b){b=bad(4).setPosition(b);_.y(b,2,a);return b};_.g.HK=function(a){return _.D(a,_.R4c,2)};
var Chd=function(){_.AN.call(this,new Ahd,function(a){return Bhd(a)})};_.N(Chd,_.AN);var Bhd=function(a){switch(_.mk(a,Q4c[0])){case 6:return _.ux(_.D(a,_.tx,6)).getTime().toString();case 7:var b=_.D(a,_.oO,7);a=_.D(b,_.tx,1);b=b.yq();return a&&b?(a=_.ux(a).getTime(),_.ux(b).getTime()+"--"+a):"";default:return""}},Ehd=function(){Dhd||(Dhd=new Chd);return Dhd},Dhd;
var Fhd=function(a,b,c,d){cP.call(this,b.hk,b.Ml,d);this.request=a;this.V=!1;this.ma=[];this.O=[];this.token="";this.changed=!1;this.ta=new _.jVc(_.wk(b.Tc.Sf(),6,1E3));this.va=c};_.N(Fhd,cP);_.g=Fhd.prototype;_.g.activate=function(){cP.prototype.activate.call(this);this.Hs()};_.g.gF=function(){this.request.iSa()?this.page():this.poll()};_.g.Kq=function(a){if(a=a||50,this.O.length>this.limit)this.changed=!0;cP.prototype.Kq.call(this,a)};
_.g.getData=function(){var a=(new fad).Ac(this.status);_.kb(a,2,this.O.slice(0,this.limit));this.ma=_.xa(this.O);return a};_.g.fr=function(){var a=Ehd().oy(this.ma,this.O),b=new dad;a=_.kb(b,2,a).Ac(this.status);this.ma=_.xa(this.O);return a};_.g.oj=function(){return!this.af()&&(!this.H||this.O.length>this.limit||!!this.token)};_.g.qd=function(){return this.request};_.g.fJa=function(a){this.dispatchEvent(new _.Wb(a));this.V=!1};
_.g.Ksb=function(a,b){this.H=!0;var c=_.Ok(b,_.R4c,1);this.O=this.O.concat(c);this.token=b.Rw()||"";0<c.length&&(this.changed=!0);this.Hs();this.page(a)};_.g.btb=function(a){Ehd();this.H=!0;var b=_.Ok(a,_.R4c,1);WN(0,this.O.slice(0,b.length),b)?(this.O=b,this.token=a.Rw()||"",this.changed=!0,this.Hs(),this.page()):(this.V=!1,Ghd(this))};
_.g.page=function(a){this.active?(this.V=!0,this.oj()&&this.O.length<this.limit?this.va(this.request,this.limit-this.O.length,this.token).Yf(_.Wa(this.Ksb,a),this.fJa,this):(this.V=!1,a&&a.callback(),Ghd(this))):this.V=!1};_.g.poll=function(){this.active&&(this.V=!0,this.va(this.request,this.limit).Yf(this.btb,this.fJa,this))};_.g.Hs=function(){if(this.active){var a=this.status;this.pJ();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.Fi(_.Mc,this))}};
_.g.pJ=function(){this.af()&&!this.H?this.status=2:this.status=this.O.length<this.limit&&(!this.H||this.token)?6:1};_.g.RM=function(){this.active&&this.oj()&&!this.V&&this.page(new _.ri)};var Ghd=function(a){a.request.iSa()||(_.VG(a.ta),_.q.setTimeout((0,_.v)(a.poll,a),a.ta.Xa()))};Fhd.prototype.Zb=function(){return this.O.length};
var Hhd=function(){};_.g=Hhd.prototype;_.g.kK=function(a,b){return had(gad(1),a).setPosition(b)};_.g.iK=function(a,b){return had(gad(2).setPosition(b),a)};_.g.MC=function(a,b,c){return had(gad(3).vx(b).setPosition(c),a)};_.g.eO=function(a,b){return had(gad(4),a).setPosition(b)};_.g.HK=function(a){return _.D(a,_.UO,2)};
var Ihd=function(){_.AN.call(this,new Hhd,function(a){return a.getId()})};_.N(Ihd,_.AN);var Khd=function(){Jhd||(Jhd=new Ihd);return Jhd},Jhd;
var Lhd=function(a,b,c){cP.call(this,b.hk,b.Ml);this.request=a;this.ma=[];this.O=[];this.changed=!1;this.V=new _.jVc(_.wk(b.Tc.Sf(),54,1E3));this.ta=c};_.N(Lhd,cP);_.g=Lhd.prototype;_.g.activate=function(){cP.prototype.activate.call(this);this.Hs()};_.g.gF=function(){this.poll()};_.g.getData=function(){var a=new pad;a=_.kb(a,2,this.O).Ac(this.status);this.ma=_.xa(this.O);return a};_.g.fr=function(){var a=Khd().oy(this.ma,this.O),b=new nad;a=_.kb(b,2,a).Ac(this.status);this.ma=_.xa(this.O);return a};
_.g.oj=function(){return!this.af()&&!this.H};_.g.poll=function(){var a=new _.ri;this.ta(this.request).Yf(_.Wa(this.F6a,a),_.Wa(this.E6a,a),this);return a};_.g.E6a=function(a,b){this.dispatchEvent(new _.Wb(b));a.Rd(b);Mhd(this)};_.g.F6a=function(a,b){this.H=!0;b=_.Ok(b,_.UO,2);WN(Khd(),this.O,b)&&(this.changed=!0,this.O=b,this.V.reset());this.Hs();a.callback();Mhd(this)};
_.g.Hs=function(){if(this.active){var a=this.status;this.pJ();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.Fi(_.Mc,this))}};_.g.RM=function(){};var Mhd=function(a){a.active&&(_.q.setTimeout((0,_.v)(a.poll,a),a.V.Xa()),_.VG(a.V))};Lhd.prototype.Zb=function(){return this.O.length};
var Nhd=function(){};_.g=Nhd.prototype;_.g.kK=function(a,b){return z$c(y$c(1),a).setPosition(b)};_.g.iK=function(a,b){return z$c(y$c(2).setPosition(b),a)};_.g.MC=function(a,b,c){return z$c(y$c(3).vx(b).setPosition(c),a)};_.g.eO=function(a,b){return z$c(y$c(4),a).setPosition(b)};_.g.HK=function(a){return _.D(a,_.nl,2)};
var Ohd=function(){_.AN.call(this,new Nhd,function(a){return a.getId()})};_.N(Ohd,_.AN);_.vf(Ohd);
var tP=function(a,b,c){_.Q.call(this);this.context=a;this.request=b;this.nextPageToken="";this.H=this.O=!1;this.limit=0;this.permissions=[];this.V=c};_.N(tP,_.Q);tP.prototype.Yh=function(a){this.limit=a};tP.prototype.ih=function(){return this.H||this.O&&""===this.nextPageToken?Promise.resolve():Phd(this)};tP.prototype.Eha=function(){return this.permissions};
var Phd=function(a){a.O=!0;a.H=!0;var b=Math.min(a.limit-a.permissions.length,100);var c=new _.gM;c=_.y(c,3,a.request);c=_.A(c,2,a.nextPageToken);b=_.A(c,1,b);return a.V(b).then(a.W.bind(a)).then(null,a.handleError.bind(a))};tP.prototype.W=function(a){this.H=!1;this.nextPageToken=a.wo()||"";a=_.Ok(a.zo(),_.nl,2);this.permissions=_.wa(this.permissions,a);a.length&&this.dispatchEvent("Cb");if(this.nextPageToken&&this.permissions.length<this.limit)return Phd(this);this.dispatchEvent("Fb")};
tP.prototype.handleError=function(a){this.H=!1;a=new yO(_.mL(a),_.wk(this.context.Tc.Sf(),1,1));this.dispatchEvent(a)};
var Qhd=function(a,b,c,d){cP.call(this,b.hk,b.Ml,d||100);var e=this;this.request=a;this.context=b;this.ma=[];this.permissions=[];this.changed=!1;this.V=null;this.ta=c;this.O=new tP(b,this.request,this.ta);_.ee(this,function(){e.V&&(_.q.clearTimeout(e.V),e.V=null)})};_.N(Qhd,cP);_.g=Qhd.prototype;_.g.activate=function(){cP.prototype.activate.call(this);this.Hs()};_.g.gF=function(){this.query()};_.g.Kq=function(a){cP.prototype.Kq.call(this,a||100)};
_.g.getData=function(){var a=new VN;a=_.kb(a,2,this.permissions.slice(0,this.limit)).Ac(this.status);this.ma=_.xa(this.permissions);return a};_.g.fr=function(){var a=Ohd.Fb().oy(this.ma,this.permissions),b=new G$c;a=_.kb(b,2,a).Ac(this.status);this.ma=_.xa(this.permissions);return a};_.g.oj=function(){var a;(a=!this.af())&&!(a=!this.H)&&(a=this.O,a=!a.O||""!==a.nextPageToken);return a};_.g.qd=function(){return this.request};
_.g.query=function(){var a=this;this.O=new tP(this.context,this.request,this.ta);this.O.Yh(this.limit);return this.O.ih().then(function(){return Rhd(a)},function(b){return a.handleError(b)})};_.g.handleError=function(a){cP.prototype.handleError.call(this,a);Shd(this)};var Rhd=function(a){a.H=!0;var b=a.O.Eha();WN(Ohd.Fb(),a.permissions,b)&&(a.changed=!0,a.permissions=b);a.Hs();Shd(a)};
Qhd.prototype.Hs=function(){if(this.active){var a=this.status;this.pJ();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.Fi(_.Mc,this))}};Qhd.prototype.RM=function(){var a=this;this.O.Yh(this.limit);this.O.ih().then(function(){return Rhd(a)},function(b){return a.handleError(b)})};var Shd=function(a){if(a.active){var b=a.context.Tc.Sf();a.V=_.q.setTimeout((0,_.v)(a.query,a),Math.ceil(_.wk(b,7,9E5)*Math.random())+_.wk(b,15,36E5))}};Qhd.prototype.Zb=function(){return this.permissions.length};
var Thd=function(a){6!==a.status&&_.q.setTimeout(function(){a.dispatchEvent(new _.Fi(_.Mc,a))},0)};
var Uhd=function(a,b){sP.call(this,"TM","drive.ds.sync.TeamDriveMovePreflightRunnerProxy",a);this.request=b;this.H=null;this.id=String(_.Da(this))};_.N(Uhd,sP);Uhd.prototype.ih=function(){var a=this;this.H||(this.H=_.ni(),this.send("10.1",[this.request.yc()],function(b){a.H.resolve(b[0])},this.id).$e(function(b){a.H.reject(b)}));return this.H.promise};Uhd.prototype.cancel=function(){this.send("10.2",[this.request.yc()],void 0,this.id)};
var Vhd=function(a,b,c,d,e,f,h){_.zN.call(this,a,b,c,d,f,h);this.H=e;this.zd=null};_.N(Vhd,_.zN);Vhd.prototype.xS=function(a,b){var c=this;return _.xi(this.H.then(function(d){return d.RZa(jYc(c.O,c.Ba,a,b,c.Ti,c.va))},null))};Vhd.prototype.ka=function(a,b){var c=this.qd(a);if(c){var d=0;if(c.file){var e=c.request&&c.request.YC();e&&(d=_.C(e,1));0===d&&(d=c.file.size)}this.dispatchEvent(new _.AVc(a,b,d))}};
var Whd=function(a,b,c){_.Q.call(this);this.instanceId=a;this.H=b;this.O=c;this.gu={};this.files={};_.ee(this,(0,_.v)(this.rib,this))};_.N(Whd,_.Q);_.g=Whd.prototype;_.g.getId=function(){return this.instanceId};_.g.AS=function(){return _.ch()};_.g.upload=function(a,b){!_.C(a,26)&&b&&b.lastModified&&_.A(a,26,b.lastModified);var c;b&&(c=b.type?b:new File([b],b.name,{type:b.type}));if(b){var d=new _.kTc;_.A(d,1,b.size);_.y(a,15,d);this.files[a.Qj()]=b}return this.H("7.1",[a.yc(),c],function(e){return new _.yM(JSON.parse(e[0]))})};
_.g.cancel=function(a){this.H("7.2",[a])};_.g.pS=function(){this.H("7.3",[])};_.g.retry=function(a){var b={};_.Ka(a,function(d){b[d]=new _.ri});var c=this.AS();this.gu[c]=b;this.H("7.4",[c].concat(_.Vc(a)));return _.Xc(b)};_.g.xS=function(a,b){var c=this;return this.H("7.5",[a].concat(_.Vc(b)),function(d){return mZc(d[0])}).addCallback(function(d){return _.xi(c.O.then(function(e){return e.RZa(d)}))})};_.g.rib=function(){this.H("7.6",[])};
var Xhd=function(a,b,c,d){if(a.gu[b]&&a.gu[b][c]){var e=a.gu[b][c];d instanceof _.yM?e.callback(d):e.Rd(d);delete a.gu[b][c];_.ig(a.gu[b])&&delete a.gu[b]}};
var Yhd=function(a,b){sP.call(this,"FU","drive.ds.sync.upload.FileUploaderProxyManager",a);this.O=b;this.H=new Map};_.N(Yhd,sP);var Zhd=function(a){var b=_.ch(),c=new Whd(b,function(d,e,f){return a.send(d,e,f,b)},a.O);a.H.set(b,c);_.ee(c,function(){return void a.H.delete(b)});return c};
Yhd.prototype.mia=function(a,b,c){if((a=this.H.get(a))&&c){b=c[1];var d=c.slice(2);switch(c[0]){case 3:c=d[0];d=d[1];d=Math.min(d,1073741824);var e=a.files[b];a.H("7.7",[b,_.rRc(e,c,Math.min(e.size,c+d))]);break;case 0:c=new _.yM(JSON.parse(d[1]));Xhd(a,b,d[0],c);break;case 1:c=new _.Ub(void 0,new _.Tb(JSON.parse(d[1])));Xhd(a,b,d[0],c);break;case 2:a.dispatchEvent(new _.AVc(b,d[0],d[1]));break;default:throw Error("sg");}}};
var $hd=function(a,b){if(0===a.length)throw new _.Ub("mutateUserPref requires a namespace.",_.wL(3));var c=null;"undefined"!=typeof _.DC&&b instanceof _.DC?c=(b=(b=b.O())&&b.getKey())&&_.vp(b)||null:"undefined"!=typeof _.CC&&b instanceof _.CC&&(c=(b=b.getKey())&&_.vp(b)||null);if(!c||!a.find(function(d){return d===c}))throw new _.Ub("mutateUserPref unsupported for namespace: "+c,_.wL(3));};
var aid=function(a){this.H=a};
var PN=function(a,b){sP.call(this,"IS","drive.ds.sync.ItemServiceProxy",(bid=_.ni()).promise);var c=this;this.Ja=this.Qa=this.ma=this.Ta=this.ln=!1;this.ha=this.ka=this.W=null;this.V=bid;bid=void 0;this.context=a;Zgd(this.context,new whd(this.V.promise));this.Hg=b;w1c(this.Hg,_.Kd(this.context.Tc,28));this.H=a.xca;this.O=new shd(this.V.promise,a,this.H);this.ob=new Yhd(this.V.promise,this.context.oS);this.Fa=new uhd(this.V.promise,a);rZc(this.Fa);this.Ha=_.ii(this.ta);this.Pc=new _.oe(this);this.La(this.Pc);
this.Za=_.ni();this.Pc.listen(this.context.Ml,[].concat(_.Vc(Object.values(_.gL))),function(d){return void c.dispatchEvent(d)})},bid;_.N(PN,sP);
PN.prototype.initialize=function(){var a=this;if(!this.ln){this.ln=!0;var b=this.context.Gl().O(106E3);this.Ha.then(function(){b&&b.xk();a.HYa()},function(){_.VUc(a.context.Gl(),181008852)});var c=_.D(this.context.Tc,VYc,66);if(!c||!_.C(c,1))return c=new _.Ub("Dataservice URL not provided."),this.ta.Rd(c),this.Ha;c=_.RM(this.context.Tc)?"(coldstart) ":"";this.context.$f().info("drive.ds.sync.ItemServiceProxy","Initializing "+c+"with client build: "+this.context.Tc.Qi());var d=$Yc(this.context.Tc,
this.li(),_.XM(this.Hg));cid(this,d);this.context.$f().info("drive.ds.sync.ItemServiceProxy","Connecting to worker: "+d.endpoint);d.channel.start();Xgd(this.context,function(){return did(d.channel)})}return this.Ha};
var did=function(a){return _.ki([new _.hi(function(b){a.isDisposed()||$5c(a,"8.1",void 0,function(){a.dispose();b()})}),_.Ti(1E4)])},cid=function(a,b){var c=b.channel;if(b.H)c.registerService("2.0",(0,_.v)(a.Ab,a));else{var d=function(){var e=new _.Dfb(document),f={};f.__SAPISID=e.get("SAPISID")||e.get("__Secure-3PAPISID");f.__APISID=e.get("APISID")||e.get("__Secure-APISID");return{ac:f,bl:a.context.Tc.Qi(),ufds:b.O}};c.registerService("1.1",function(){return d()});c.send("8.5",d())}$5c(c,"8.4",{dsc:a.context.Tc.yc()});
eid(c);fid(a,c);wO(c,"2.1",function(){return{dsc:a.context.Tc.yc()}});wO(c,"2.2",function(e){"number"===typeof e.id?(a.V.resolve(new rhd(e.id,c,a.context.$f(),e.clients)),e.dsp&&eid(c),e.ivd&&fid(a,c)):(e=new _.Tb(JSON.parse(e.err)),a.ta.Rd(new _.Ub("Unable to initialize dataservice.",e)))});wO(c,"2.15",function(e){a.dispatchEvent(new uad(e.dt))});wO(c,"2.5",function(e){a.context.pt(e.id)});wO(c,"2.6",function(e){a.context.hk.xm(e.os)});wO(c,"2.18",function(e){a.context.hk.PD(e.oois)});wO(c,"2.7",
function(){a.ma=!1});wO(c,"2.8",function(e){a.context.va=e.au;a.dispatchEvent(new U1c(e.au?"eb":"fb"))});wO(c,"2.19",function(e){a.context.Ml.update(e.cs)});wO(c,"2.9",function(e){var f=e.logName,h=e.level;e=_.vx("[CSW %s] %s",e.totalTime,e.message);switch(h){case "config":a.context.$f().config(f,e);break;case "fine":_.VM(a.context.$f(),f,e,"fine");break;case "finer":_.VM(a.context.$f(),f,e,"finer");break;case "finest":_.VM(a.context.$f(),f,e,"finest");break;case "info":a.context.$f().info(f,e);break;
case "warning":case "severe":t1c(a.context.$f(),f,e);break;default:t1c(a.context.$f(),"drive.ds.sync.ItemServiceProxy","Unknown log level: "+h),t1c(a.context.$f(),f,e)}});wO(c,"2.10",function(e){return void a.Lxa(e)});wO(c,"2.12",function(){a.Ja=!0;uP(a)});wO(c,"2.14",function(){return a.Za.resolve()});wO(c,"2.16",function(){return a.Ta=!0});wO(c,"2.17",function(e){a.context.$f().info("drive.ds.sync.ItemServiceProxy","Prefetched request loaded for: "+e.t.join(","))})},eid=function(a){_.q._DRIVE_dsp&&
$5c(a,"8.3",{dsp:gid(_.q._DRIVE_dsp)});_.q._DRIVE_dspc=function(b){if(_.q._DRIVE_dsp){var c=[];c[b]=_.q._DRIVE_dsp[b];$5c(a,"8.3",{dsp:gid(c)})}}},fid=function(a,b){_.E(a.context.Tc,24,!1)&&(_.q._DRIVE_ivd?$5c(b,"8.2",{ivd:_.q._DRIVE_ivd}):void 0===_.q._DRIVE_ivd&&(_.q._DRIVE_ivdc=function(){_.q._DRIVE_ivd&&$5c(b,"8.2",{ivd:_.q._DRIVE_ivd})}))};PN.prototype.Ab=function(){return{uid:this.li(),fds:_.XM(this.Hg)}};
PN.prototype.li=function(){var a=_.Dk(_.Dk(_.XG(_.Uk(this.context.Tc),28),44),91),b=new _.RK;b.update(_.PM(_.ZK(a)));b.update(String(_.nL(_.ZK(a))));b.update(a.yc());return _.sOc(b.digest())};var gid=function(a){var b=[],c=[,!0,!0,!0,!0,,!0,!0];a.forEach(function(d,e){d&&c[e]&&(b[e]=d)});return 0<b.length?b:null};_.g=PN.prototype;_.g.Lxa=function(a){this.dispatchEvent(new _.Wb(new _.Ub(void 0,new _.Tb(JSON.parse(a.p)))))};
_.g.query=function(a){uP(this);S5c(this.context.Bm,a,u1c(this.Hg));this.ML();var b=this.O.Nta(a);this.Qa||(a=a.re(),a&&121===_.C(a,1)||(this.Qa=!0,this.Pc.listen(b,_.Mc,this.gJa)));return b};_.g.gJa=function(a){a=a.currentTarget;1===a.Bb()&&(this.Fa.H=this.Ta,this.Pc.Uc(a,_.Mc,this.gJa))};_.g.Yq=function(a){uP(this);Q5c(a);this.ML();return this.O.Kta(a)};
_.g.Xra=function(a,b){var c=this;uP(this);if(this.ka&&_.Tk(this.ka.qd(),a))return this.ka;var d=(0,_.v)(PN.prototype.tmb,this);this.ka=new Fhd(_.Uk(a),this.context,d,b);_.q.setTimeout(function(){c.ka=null},3E3);return this.ka};_.g.tmb=function(a,b,c){return this.send("3.17",[a.yc(),b,c],function(d){return new d5c(JSON.parse(d[0]))})};
_.g.uCa=function(a,b){var c=this;uP(this);if(this.ha&&_.Tk(this.ha.qd(),a))return Thd(this.ha),this.ha;var d=(0,_.v)(PN.prototype.vmb,this);this.ha=new Qhd(a,this.context,d,b);_.q.setTimeout(function(){c.ha=null},3E3);return this.ha};_.g.vmb=function(a){return this.send("3.18",[a.yc()],function(b){return new H$c(JSON.parse(b[0]))})};_.g.Eya=function(a){uP(this);return this.send("3.14",[a.yc()],function(b){return new ZO(JSON.parse(b[0]))})};
_.g.vua=function(a){uP(this);return this.send("3.15",[a.yc()],function(b){return new ZO(JSON.parse(b[0]))})};_.g.ud=function(a){uP(this);!this.ma&&_.zM(a)&&(this.ma=!0);a=bZc(a);return this.send("3.3",[a.yc()],function(b){if(!_.ld(b))return new _.yM(JSON.parse(b[0]))})};_.g.SU=function(a){uP(this);a=kZc(a);return this.send("3.35",[a.yc()],function(b){return new T1c(JSON.parse(b[0]))}).then()};
_.g.YA=function(a){uP(this);for(var b=0;b<a.length;b++)!this.ma&&_.zM(a[b])&&(this.ma=!0);a=eZc(a);return this.send("3.4",[a.yc()],function(c){var d={};c=JSON.parse(c[0]);_.bg(c[0],function(e,f){d[f]=new _.yM(JSON.parse(e))});_.bg(c[1],function(e,f){e=new _.Tb(JSON.parse(e));d[f]=_.xL(e)});return d})};_.g.Jta=function(){uP(this);return Zhd(this.ob)};_.g.POa=function(a){uP(this);return new vhd(this.V.promise,a)};
_.g.$q=function(a,b){var c=this;uP(this);var d=_.bh();this.H.create(d,a);return this.send("3.5",[a.yc(),!!b],function(e){e=JSON.parse(e);var f=new zO(JSON.parse(e[0]));return new _.hN(f,e[1],e[2])}).addCallback(function(e){n6c(c.H,d,e);return e.response}).$e(function(e){xO(c.H,d);return e})};_.g.Jr=function(a){uP(this);return this.send("3.10",[a.yc()],function(b){return new E$c(JSON.parse(b[0]))})};_.g.Fya=function(a){uP(this);return this.send("3.11",[a.yc()],function(b){return new I$c(JSON.parse(b[0]))})};
_.g.rua=function(a){uP(this);return this.send("3.12",[a.yc()],function(b){return new I$c(JSON.parse(b[0]))})};_.g.q2=function(a){uP(this);return this.send("3.13",[a.yc()],function(b){return new I$c(JSON.parse(b[0]))})};
_.g.LT=function(a,b){var c=this;uP(this);var d=_.bh();this.H.create(d,a);return this.send("3.1",[a.yc(),!!b],function(e){e=JSON.parse(e);var f=new _.aP(JSON.parse(e[0]));return new _.kN(f,e[1],e[2])}).addCallback(function(e){n6c(c.H,d,e);return e.response}).$e(function(e){xO(c.H,d);return e})};
_.g.fL=function(a,b){var c=this,d=_.Kd(this.context.Tc.Sf(),30);if(!d||0===d.length)return _.yi(new _.Ub("getUserPrefs requires a namespace.",_.wL(3)));0===_.Kd(a,3).length&&xZc(a,d);uP(this);var e=_.bh();this.H.create(e,a);return this.send("3.2",[a.yc(),!!b],function(f){f=JSON.parse(f);var h=new _.wp(JSON.parse(f[0]));return new _.jN(h,f[1],f[2])}).addCallback(function(f){n6c(c.H,e,f);return f.response}).$e(function(f){xO(c.H,e);return f})};
_.g.M0=function(a){uP(this);$hd(_.Kd(this.context.Tc.Sf(),30),a);a=hZc(a);return this.send("3.6",[a.yc()],function(b){return new J$c(JSON.parse(b[0]))})};_.g.Vu=function(a){uP(this);return this.send("3.16",[a.yc()],function(b){return new H1c(JSON.parse(b[0]))})};_.g.gya=function(){return this.ma};_.g.xm=function(a){uP(this);this.send("3.8",[a])};_.g.PD=function(a){uP(this);return this.send("3.36",[a],function(b){return!!b[0]}).then()};_.g.NV=function(a){uP(this);Ygd(this.context).NV(a);this.PD(!!a)};
_.g.ML=function(){uP(this);this.send("3.9",[])};_.g.z9=function(){uP(this);this.send("3.41",[]);this.context.z9();var a=D1c(this.context.Gl(),106006);a&&this.V.promise.then(function(b){var c=_.D(_.cN(a),l1c,6);if(!c){c=new l1c;var d=_.cN(a);_.y(d,6,c)}c=_.A(c,1,b.clientId);_.A(c,2,b.O);a.xk()},function(){})};_.g.Yz=function(){uP(this);return this.context.Yz()};_.g.g5=function(){uP(this);return hid(this.send("3.19",[],function(a){return new A6c(JSON.parse(a[0]))}))};_.g.isConnected=function(){return this.context.Ml.isConnected()};
_.g.Y6=function(){return this.Fa};_.g.sync=function(){uP(this);return this.send("3.28",[]).then()};_.g.xx=function(){return this.context.xx()};_.g.P$=function(){};_.g.bna=function(a){uP(this);return this.O.Uta(a)};_.g.oW=function(a){uP(this);return this.O.Tta(a)};_.g.qCa=function(a){uP(this);V5c(this.context.Bm,a,u1c(this.Hg));return this.O.Qta(a)};_.g.cna=function(a){uP(this);return new Uhd(this.V.promise,a)};
_.g.Gsa=function(a){uP(this);if(!this.W||this.W.isDisposed()){var b=PN.prototype.umb.bind(this);this.W=new Lhd(a,this.context,b)}return this.W};_.g.umb=function(a){return this.send("3.20",[a.yc()],function(b){return new pad(JSON.parse(b[0]))})};_.g.$Ca=function(){this.W&&!this.W.isDisposed()?this.W.poll().then():_.ii()};_.g.iT=function(a){uP(this);return this.send("3.25",[a.yc()],function(b){return new lad(JSON.parse(b[0]))})};_.g.sua=function(a){uP(this);return this.send("3.22",[a.yc()],function(){return new qad})};
_.g.tBa=function(){return this.Za.promise};_.g.AYa=function(a){var b=_.ni();this.send("3.30",[a.yc()],function(c){c[0]?b.resolve(new sad(JSON.parse(c[0]))):b.reject(new _.Ub(void 0,new _.Tb(JSON.parse(c[1]))))}).$e(function(c){return void b.reject(c)});return b.promise};_.g.gta=function(a){uP(this);return this.O.Hta(a)};_.g.jta=function(a){uP(this);return this.send("3.42",[a.yc()],function(b){return new S2c(JSON.parse(b[0]))}).then()};
_.g.s2=function(a){uP(this);var b=new _.Bo;this.send("3.39",[a.yc()],function(c){return JSON.parse(c).map(function(d){return new x6c(JSON.parse(d))})}).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)});return Promise.resolve(new aid(b.promise))};_.g.LCa=function(a){var b=this;uP(this);return new yhd(this.context,a,function(c){return b.send("3.37",[c.request.yc(),c.pageToken],function(d){d=JSON.parse(d);return new k5c(new $O(JSON.parse(d[0])),d[1])}).then()})};
_.g.Yka=function(a){uP(this);return this.send("3.38",[a.yc()],function(b){return new R$c(JSON.parse(b[0]))}).then()};_.g.zHa=function(a){uP(this);return this.O.Yta(a)};_.g.Tna=function(a){uP(this);return this.O.Xta(a)};_.g.TFa=function(a){var b=this;uP(this);return new zhd(this.context,a,function(){return b.send("3.40",[a.yc()],function(c){return new _.EN(JSON.parse(c[0]))}).then()})};_.g.Uma=function(a){uP(this);return this.O.Rta(a)};_.g.cea=function(a){uP(this);this.send("3.43",[a.yc()])};
_.g.ffa=function(a){uP(this);return this.send("3.44",[a.yc()],function(){return new O1c}).then()};_.g.Fq=function(a){uP(this);if(1!==_.QM(this.context.Tc))return Promise.reject(Error("tg"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.Gc())return Promise.reject(Error("ug"));if(!c.Pj()&&!c.getItem())return Promise.reject(Error("vg"))}return Promise.resolve(this.send("3.45",[a.map(function(d){return d.yc()})]))};
_.g.HYa=function(){var a=this,b=[_.Ti(1E4,!1),this.send("3.29",[],function(c){return!!c[0]}).then()];_.ki(b).then(function(c){c?_.Oi(a.HYa.bind(a),6E4):(a.Ja=!0,uP(a))})};var uP=function(a){a.Ja&&a.dispatchEvent(new Tad)},UZc=function(a){if(_.E(a,61,!1)&&_.q.SharedWorker)if(_.D(a,VYc,66)){if(_.YK(_.ZK(a))||_.RM(a)&&!_.E(a,52,!1))return!1}else return!1;else return!1;return!0},hid=function(a){var b=_.ni();a.Yf(b.resolve,b.reject,b);return b.promise};
var vP=function(){_.Q.apply(this,arguments);this.commands=new _.Gm;this.ha=this.active=this.ln=!1};_.N(vP,_.Q);vP.prototype.initialize=function(){this.ln||(this.ln=!0,this.V(),this.setActive(!0))};vP.prototype.V=function(){};vP.prototype.setActive=function(a){this.active=a;iid(this)};var iid=function(a){if(a.active&&!a.ha){var b=_.Hm(a.commands);if(b)if(a.va()){do a.ka(b);while(b=_.Hm(a.commands))}else a.ha=!0,_.oi(a.Ba(b),function(){a.ha=!1;iid(a)})}};vP.prototype.ka=function(){};
vP.prototype.Ba=function(){};vP.prototype.va=function(){return!0};vP.prototype.enqueue=function(a){try{var b=new _.ri;this.commands.enqueue(new jid(a,b));iid(this);return b}catch(c){return _.yi(_.xL(c))}};var jid=function(a,b){this.H=a;this.kg=b};jid.prototype.getCommand=function(){return this.H};jid.prototype.WE=function(){return this.kg};
var mid=function(a){vP.call(this);var b=this;this.context=a;this.O=null;this.Pc=new _.oe(this);this.La(this.Pc);this.Pc.listen(this.context,"VMiG2e",function(){return void kid(b)});this.H=this.context.ig.ws;_.dL(this.context.Tc)&&this.Pc.listen(this.H,"Kb",this.W);var c=a.Vj;DO(c,["toquGd"],function(){return b.initialize()});var d=["NSockf"];1!==_.vk(a.Tc.Sf(),17,1)&&(d.push("iuEtc"),DO(c,["mrK8ic"],function(){EO(c,"iuEtc")}));DO(c,d,function(){return lid(b)})};_.N(mid,vP);mid.prototype.V=function(){nid(this)};
var lid=function(a){if(1===a.context.KN.wg().Bb())return Promise.resolve();var b=_.bf(_.cf(new _.af,!0),301);b=_.aL(new _.$K,b);return a.refresh(b).then(null,function(c){c=_.mL(c);_.A(c,21,"Initial account request failed.");a.context.nH(c)})},kid=function(a){var b=_.bf(new _.af,304);b=_.aL(new _.$K,b);a.refresh(b).then(null,function(){})};
mid.prototype.refresh=function(a,b){var c=this;this.O||(this.O=_.oi(this.context.Tn().then(function(d){return d.hh(a,b)}).then(function(d){var e=d.wg(),f=e.getUser();if(f&&!1===_.ol(f))d=_.nL(_.ZK(c.context.Tc)),d=Error("wg`"+d+"`"+_.NF(f)),_.Ta(d),_.VUc(c.context.Gl(),73301807),d=Promise.reject(d);else{f=c.context.KN;var h=0===f.Re()?1:6;_.dL(c.context.Tc)&&F7c(c.H,e);h=ebd(f,e,h);(e=e.getMetadata())&&c.context.pt(_.C(e,2),1);(d=_.C(d,4))&&Mbd(c.context,d,!0);h&&c.dispatchEvent(new _.Fi("WPi0i"));
d=Promise.resolve(new _.kN(f.wg(),f.Re(),!1))}return d}).then(function(d){return d},function(d){d=_.mL(d);_.A(d,5,1);return Promise.reject(new _.Ub("Error fetching account from server.",d))}),function(){c.O=null}));return this.O};
mid.prototype.ka=function(a){var b=a.getCommand();if(b.H){var c={};b.xD&&(c.xD=b.xD);this.refresh(b.request,c).then(function(e){return a.WE().callback(e)},function(e){return void a.WE().Rd(e)})}else if(b=this.context.KN,c=b.wg(),_.dL(this.context.Tc)){c=c.wg();var d=c.getUser();d=J7c(this.H,_.NF(d));F7c(this.H,c);ebd(b,c,b.Re())&&this.dispatchEvent(new _.Fi("WPi0i"));a.WE().callback(new _.kN(b.wg(),b.Re(),d))}else c.Bb(),b=new _.kN(c,b.Re(),!0),a.WE().callback(b)};
var nid=function(a){var b=a.context.Tc.Sf();_.q.setTimeout(function(){var c=_.bf(new _.af,306);c=_.aL(new _.$K,c);a.refresh(c).then(function(){nid(a)},function(){nid(a)})},Math.ceil(_.wk(b,7,9E5)*Math.random())+_.wk(b,3,72E5))};mid.prototype.W=function(a){var b=this.context.KN,c=b.wg().wg();c&&a.getPeople().find(function(d){return _.C(d,1)===_.NF(c.getUser())})&&(F7c(this.H,c),ebd(b,c,b.Re())&&this.dispatchEvent(new _.Fi("WPi0i")))};var oid=function(a,b){this.request=a;this.H=!!b;this.xD=null};
var qid=function(a){vP.call(this);this.context=a;this.ta=this.W=!1;this.O=null;this.H=1;this.ma=0;this.error=null;this.Pc=new _.oe(this);this.La(this.Pc);this.Pc.listen(this.context.oX,"Qb",_.Wa(this.dispatchEvent,new _.Fi("Qb",this)));pid(this)};_.N(qid,vP);
var pid=function(a){var b=a.context.Vj;DO(b,["nVUlO"],function(){a.ta=!0;a.setActive(!0)});if(!_.RM(a.context.Tc)){var c=_.vk(a.context.Tc.Sf(),18,1);DO(b,["NSockf"],function(){1===c?rid(a):a.setActive(!0)});2===c&&DO(b,["mrK8ic"],function(){a.W||rid(a)})}},rid=function(a){var b=new _.af;_.cf(b,!0);_.bf(b,301);var c=new _.eM;_.r1c(c,b);_.A(c,1,1);a.refresh(c).eg(function(){return null})};
qid.prototype.refresh=function(a,b){var c=this;_.q.clearTimeout(this.ma);this.ma=0;var d=_.ni();this.O=d.promise;_.oi(this.O,function(){c.O=null;sid(c)});var e=this.H;this.H=a.getType()||e;var f=!this.W;this.W=!0;var h=new _.eM;_.A(h,1,this.H);_.r1c(h,a.re());this.context.Tn().then(function(k){return k.hh(h,b)}).then(function(k){c.error=null;var l=c.context.oX;l.UN(k,l.DB()?6:1);d.resolve()},function(k){c.H=e;k=_.yL(k);var l=k.$g;_.A(l,5,2);f?(_.kL(l,1),k.message="Initial app settings refresh failed.",
_.A(k.$g,21,"Initial app settings refresh failed."),c.context.nH(l),c.setActive(!0)):(_.kL(l,2),k.message="Error occurred while loading the latest set of apps.",_.A(k.$g,21,"Error occurred while loading the latest set of apps."));c.error=k;d.reject(k)});return this.O};qid.prototype.va=function(){return!1};
qid.prototype.Ba=function(a){var b=this,c=a.getCommand(),d=c.request,e=c.rga,f=c.xD?{xD:c.xD}:void 0;if(!tid(d))return this.context.Tn().then(function(l){return l.hh(d,f)}).then(function(l){a.WE().callback(new _.hN(l,1,!1))},function(l){a.WE().Rd(_.xL(l))}),_.ii();c=_.ii();var h=!1;this.O?uid(this,d.getType())?e=this.O:c=e=new _.hi(function(l,n){b.O.then(function(){b.refresh(d,f).then(function(){return l()},n)})}):!e&&this.ta&&uid(this,d.getType())&&!this.error?(h=!0,e=_.ii()):e=this.refresh(d,f);
var k=a.WE();e.then(function(){var l=b.context.oX;k.callback(new _.hN(l.$q(),l.Re(),h))},function(l){k.Rd(l)});return c.then()};
var tid=function(a){var b=a.getType();return 1===b||2===b||4===b?(b=_.Kd(a,4),a=_.Kd(a,3),!(b&&b.length)&&!(a&&a.length)):!1},uid=function(a,b){return a.H===b||4===a.H||2===a.H&&1===b},sid=function(a){var b=a.context.Tc.Sf(),c=new _.af;_.bf(c,306);var d=new _.eM;_.A(d,1,1);_.r1c(d,c);a.ma=_.q.setTimeout(function(){return void a.refresh(d)},Math.ceil(_.wk(b,7,9E5)*Math.random())+_.wk(b,4,72E5))},vid=function(a,b){this.request=a;this.rga=!!b;this.xD=null};
var wid=function(a,b){this.request=a;this.O=b;this.status="UNKNOWN_PREFLIGHT_STATUS";this.H=_.ni();this.pageToken="";this.IC=this.isRunning=!1};_.g=wid.prototype;_.g.ih=function(){this.isRunning||(this.isRunning=!0,this.sendRequest());return this.H.promise};_.g.sendRequest=function(){if(this.IC)this.status="CANCELLED",this.H.resolve(this.status);else{var a=new _.QRc(this.request,this.pageToken);this.O.then(function(b){return b.hh(a)}).then(this.G6a.bind(this),this.handleError.bind(this))}};
_.g.G6a=function(a){var b=this;(this.pageToken=a.pageToken)?setTimeout(function(){b.sendRequest()},1E4):(this.status="MOVE_ALLOWED",this.H.resolve(this.status))};_.g.handleError=function(a){a=_.yL(a);var b=a.$g.Oj();53===b?(this.status="TOO_MANY_FILES",this.H.resolve(this.status)):54===b?(this.status="TOO_MANY_UNMOVABLE_FILES",this.H.resolve(this.status)):40===b?(this.status="TEAM_DRIVE_FILE_LIMIT_EXCEEDED",this.H.resolve(this.status)):this.H.reject(a)};_.g.cancel=function(){this.IC=!0};
var yid=function(a){vP.call(this);var b=this;this.context=a;this.error=null;this.Pc=new _.oe(this);this.La(this.Pc);this.Pc.listen(this.context.rC,"WPi0i",function(){return b.dispatchEvent(new _.Fi("WPi0i"))});this.H=_.ni();this.O=_.Kd(this.context.Tc.Sf(),30);xid(this)};_.N(yid,vP);
var xid=function(a){var b=a.context.Vj;DO(b,["rkYxSd"],function(){return a.initialize()});DO(b,["px2C2c"],function(){a.context.$f().info("drive.ds.sync.userprefs.UserPrefsManager","All user prefs loaded.");a.H.resolve();a.H=null});var c=["NSockf"],d=_.vk(a.context.Tc.Sf(),19,1);1!==d&&(c.push("OZvrNc"),2===d&&DO(b,["mrK8ic"],function(){EO(b,"OZvrNc")}));!_.E(a.context.Tc,11,!1)&&_.E(a.context.Tc,24,!1)&&(c.push("DEJoH"),_.q.setTimeout(function(){0<_.Ok(Mgd(a.context.rC),_.up,1).length||(b.H("NSockf")?
EO(b,"DEJoH"):DO(b,["NSockf"],function(){EO(b,"DEJoH")}))},12E3));DO(b,c,function(){if(!b.H("px2C2c")){var e=new _.af;_.cf(e,!0);_.bf(e,301);var f=new _.pC;_.y(f,1,e);xZc(f,zid(a));a.query(f).eg(function(){a.initialize()})}})};yid.prototype.V=function(){var a="User prefs detected: "+_.Ok(Mgd(this.context.rC),_.up,1).length;this.context.$f().info("drive.ds.sync.userprefs.UserPrefsManager",a);Aid(this)};
yid.prototype.query=function(a,b){var c=this,d=b?{xD:b}:void 0;return this.context.Tn().then(function(e){return e.hh(a,d)}).then(function(e){c.error=null;var f=c.context.rC;f.UN(_.Ok(e,_.up,3),f.DB()?6:1,_.Kd(a,3))}).then(null,function(e){e=_.yL(e);_.A(e.$g,5,4);0<c.commands.Zb()||c.context.nH(e.$g);c.error=e;throw e;})};
yid.prototype.ka=function(a){var b=this,c=a.getCommand(),d=a.WE(),e=new Set([].concat(_.Vc(this.context.rC.bE.keys()))),f=_.Kd(c.request,3);f.find(function(h){return!e.has(h)})&&(c.rga=!0);this.error?d.Rd(this.error):c.rga?(xZc(c.request,zid(this,f)),_.oi(this.H?this.H.promise:this.query(c.request,c.xD||void 0),function(){b.getData(d,f,!1)})):this.getData(d,f,!0)};var zid=function(a,b){b=void 0===b?[]:b;a=new Set([].concat(_.Vc(a.O),_.Vc([].concat(_.Vc(a.context.rC.bE.keys()))),_.Vc(b)));return[].concat(_.Vc(a.values()))};
yid.prototype.getData=function(a,b,c){b=this.context.rC.fL(b);a.callback(new _.jN(b.H,b.Ve,c))};var Aid=function(a){var b=a.context.Tc.Sf();_.q.setTimeout(function(){var c=new _.pC,d=new _.af;_.bf(d,306);_.y(c,1,d);xZc(c,zid(a));_.oi(a.query(c).eg(_.uf),function(){Aid(a)})},Math.ceil(_.wk(b,7,9E5)*Math.random())+_.wk(b,5,72E5))},Bid=function(a,b){this.request=a;this.rga=!!b;this.xD=null};
var XZc=function(a){eP.call(this,a);this.ha=this.ka=this.ta=null;this.hb=_.ni();this.H=a.Tn()};_.N(XZc,eP);XZc.prototype.BOa=function(){this.Ha=new mid(this.context);this.La(this.Ha);this.Ja=new qid(this.context);this.La(this.Ja);this.Qa=new yid(this.context);this.La(this.Qa)};
XZc.prototype.Za=function(){var a=this,b=["hVFf7"];_.RM(this.context.Tc)&&b.push("BNEDtc");DO(this.O,b,function(){return void a.cTa()});DO(this.O,["T8oKm","ZA9qG"],function(){return void Cid(a)});DO(this.O,["T8oKm","mrK8ic"],function(){return void Cid(a)});this.Pc.listen(this.Ha,"WPi0i",this.ypa.bind(this,1));this.Pc.listen(this.Ja,"Qb",this.ypa.bind(this,2));this.Pc.listen(this.Qa,"WPi0i",this.ypa.bind(this,4));DO(this.O,["GZTDpc"],function(){return a.hb.resolve()})};var Cid=function(a){jP(a.context).addCallback(function(b){b.start()})};
_.g=XZc.prototype;_.g.ypa=function(a){_.na(R1c,a)&&this.dispatchEvent(new uad(a))};_.g.oW=function(a){return this.V.Tta(_.Uk(a))};_.g.qCa=function(a){V5c(this.context.Bm,a,u1c(this.context.Hg));return this.V.Qta(_.Uk(a))};_.g.bna=function(a){return this.V.Uta(_.Uk(a))};_.g.cna=function(a){return new wid(a,this.context.Tn())};
_.g.Xra=function(a,b){var c=this;if(this.ta&&_.Tk(this.ta.qd(),a))return this.ta;this.ta=new Fhd(_.Uk(a),this.context,this.yfb.bind(this),b);_.q.setTimeout(function(){c.ta=null},3E3);return this.ta};_.g.yfb=function(a,b,c){var d=new _.FRc(a,b,c);return _.xi(this.H.then(function(e){return e.hh(d)}).eg(function(e){return _.zL(e)}))};_.g.Gsa=function(a){var b=this;if(!this.ha||this.ha.isDisposed())this.ha=new Lhd(a,this.context,function(c){return Did(b,c)});return this.ha};var Did=function(a,b){return _.xi(a.H.then(function(c){return c.hh(b)}).eg(function(c){return _.zL(c)}))};
_.g=XZc.prototype;_.g.$Ca=function(){this.ha&&!this.ha.isDisposed()?this.ha.poll().then():_.ii()};_.g.iT=function(a){return _.xi(this.H.then(function(b){return b.hh(a)}))};_.g.sua=function(a){return _.xi(this.H.then(function(b){return b.hh(a)}))};_.g.uCa=function(a,b){var c=this;if(this.ka&&_.Tk(this.ka.qd(),a))return Thd(this.ka),this.ka;this.ka=new Qhd(_.Uk(a),this.context,this.oFb.bind(this),b);_.q.setTimeout(function(){c.ka=null},3E3);return this.ka};
_.g.oFb=function(a){var b=this;return this.H.then(function(c){return c.hh(a)}).then(function(c){return _.dL(b.context.Tc)?I7c(b.context.ig.ws,_.Ok(c.zo(),_.nl,2),a.qd().getId()).then(function(){return c}):c},_.zL)};_.g.Eya=function(a){var b=this;return _.xi(this.H.then(function(c){return c.hh(a)}).then(function(c){return _.dL(b.context.Tc)?I7c(b.context.ig.ws,[_.D(c,_.nl,2)],a.Gc()).then(function(){return c}):c},_.zL))};
_.g.vua=function(a){return _.xi(this.H.then(function(b){return b.hh(a)}).then(null,_.zL))};_.g.gta=function(a){return this.V.Hta(_.Uk(a))};_.g.jta=function(a){return this.H.then(function(b){return b.hh(a)}).then(null,_.zL)};_.g.s2=function(a){return this.H.then(function(b){return b.hh(a)}).then(function(b){var c=new _.Bo;S7c(a,b).then(function(d){return c.resolve(d)});return new aid(c.promise)},function(b){return void _.zL(b)})};_.g.LCa=function(a){var b=this;return new yhd(this.context,a,function(c){return b.H.then(function(d){return d.hh(c)}).eg(function(d){return _.zL(d)})})};
_.g.Yka=function(a){return this.H.then(function(b){return b.hh(a)}).then(null,_.zL)};_.g.ud=function(a){return _.xi(this.H.then(function(b){return b.hh(a)}).then(null,_.zL))};_.g.SU=function(a){return this.H.then(function(b){return b.hh(a)}).then(null,_.zL)};_.g.YA=function(a){for(var b=[],c=[],d=0;d<a.length;d++)c.push(this.ud(a[d])),b.push(String(a[d].getId()));a=new _.Np(c);c=new _.ri;a.addCallback(this.aib.bind(this,c,b));return c};
_.g.Jta=function(){return new Vhd(this.context.Tc,this.context.lE,this.context.ET().vpa,this.context.Tn(),this.context.oS,this.context.$f(),this.context.Gl())};_.g.$q=function(a,b){var c=this,d=_.bh();this.W.create(d,a);3===a.getType()?a=eP.prototype.$q.call(this,a).addCallback(function(e){return new _.hN(e,1,!1)}):(EO(this.O,"Qubz4b"),a=this.Ja.enqueue(new vid(a,b)));return a.addCallback(function(e){n6c(c.W,d,e);return e.response}).$e(function(){xO(c.W,d)})};
_.g.Jr=function(a){return _.xi(this.H.then(function(b){return b.hh(a)}).then(null,_.zL))};_.g.Fya=function(a){return _.xi(this.H.then(function(b){return b.hh(a)}).then(null,_.zL))};_.g.rua=function(a){return _.xi(this.H.then(function(b){return b.hh(a)}).then(null,_.zL))};_.g.q2=function(a){return _.xi(this.H.then(function(b){return b.hh(a)}).then(null,_.zL))};
_.g.LT=function(a,b){var c=this;EO(this.O,"iuEtc");var d=_.bh();this.W.create(d,a);return this.Ha.enqueue(new oid(a,b)).addCallback(function(e){n6c(c.W,d,e);return e.response}).$e(function(){xO(c.W,d)})};
_.g.fL=function(a,b){var c=this,d=_.Kd(this.context.Tc.Sf(),30);if(!d||0===d.length)return _.yi(new _.Ub("getUserPrefs requires a namespace.",_.wL(3)));0===_.Kd(a,3).length&&xZc(a,d);var e=_.bh();this.W.create(e,a);EO(this.O,"OZvrNc");return this.Qa.enqueue(new Bid(a,b)).addCallback(function(f){n6c(c.W,e,f);return f.response}).$e(function(){xO(c.W,e)})};_.g.M0=function(a){$hd(_.Kd(this.context.Tc.Sf(),30),a);return _.xi(this.H.then(function(b){return b.hh(a)}).then(null,_.zL))};
_.g.Vu=function(a){var b=this;return _.xi(this.H.then(function(c){return c.hh(a)}).then(function(c){return _.dL(b.context.Tc)?H7c(b.context.ig.ws,c):c},_.zL))};_.g.zHa=function(a){return this.V.Yta(_.Uk(a))};_.g.Tna=function(a){return this.V.Xta(_.Uk(a))};_.g.TFa=function(a){var b=this;return new zhd(this.context,a,function(c){return b.H.then(function(d){return d.hh(c)}).eg(function(d){return _.zL(d)})})};_.g.Uma=function(a){return this.V.Rta(_.Uk(a))};_.g.cea=function(a){Gcd(this.context.ig,[a])};
_.g.ffa=function(a){return this.H.then(function(b){return b.hh(a)}).then(null,_.zL)};_.g.Fq=function(a){if(1!==_.QM(this.context.Tc))return Promise.reject(Error("tg"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.Gc())return Promise.reject(Error("ug"));if(!c.Pj()&&!c.getItem())return Promise.reject(Error("vg"))}this.context.ig.Fq(a);a=this.context.ig;hP(a.context).u6();a.H.QE();return Promise.resolve()};_.g.gya=function(){return this.context.ET().OH()};
_.g.PD=function(a){var b=this;return this.context.PD(a).then(function(c){return c?(b.context.hk.PD(a),b.context.Eu.SQ()):_.ii(!a)})};_.g.NV=function(a){Ygd(this.context).NV(a);this.PD(!!a)};_.g.ML=function(){jP(this.context).addCallback(function(a){a&&a.y$()});this.context.Yra.ML()};_.g.P$=function(a){a.Uj(this.context)};_.g.aib=function(a,b,c){for(var d={},e=0;e<c.length;e++)d[b[e]]=c[e][1];b=this.context.ig;hP(b.context).u6();b.H.QE();a.callback(d)};
_.g.sync=function(){var a=this;return _.li([this.context.Aia.promise,this.context.Ba.promise]).then(function(){return a.context.Eu.SQ()}).then()};_.g.xx=function(){jP(this.context).addCallback(function(a){a&&a.dispose()});return eP.prototype.xx.call(this)};_.g.tBa=function(){return this.hb.promise};
var Eid=function(){var a='<div class="'+_.J("la-r")+'">';a=a+'Something went wrong. Please reload.</div><button class="'+(_.J("la-Y-A")+" "+_.J("kc-A")+'" data-target="reload">');return(0,_.K)(a+"Reload</button>")};
_.Dp({id:_.gl,callback:function(a){var b=_.gYc(a),c=ZZc(a),d=_.D(a.get(_.km),_.Cb,10);_.eTc(d,b);_.A(d,28,c||[]);b=YZc(a,d);a.registerService(_.hl,b.Y6());_.te(b,"VbxEwf",function(){var e={};_.fc(_.Dx.getService(a),new _.or(new _.nr(Eid,{}),"d",(e.reload=function(){_.q.window.location.reload()},e),4))});return b}});

_.w();

}catch(e){_._DumpException(e)}
try{
var Gid,Lid,Nid;_.Fid=function(a,b){return _.y(a,17,b)};Gid=[3];_.wP=function(a){(0,_.S)(this,a,0,-1,Gid,null)};_.O(_.wP,_.L);_.wP.prototype.getType=function(){return _.C(this,1)};_.wP.prototype.Gc=function(){return _.C(this,2)};_.Hid=function(a,b){return _.A(a,2,b)};_.wP.prototype.O=function(){return _.Ok(this,_.wP,3)};_.Iid=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.Iid,_.L);_.Iid.prototype.getFeature=function(){return _.C(this,1)};_.Jid=function(a,b){return _.A(a,1,b)};
_.Iid.prototype.O=function(){return _.D(this,_.wP,2)};_.Kid=function(a,b){return _.y(a,2,b)};Lid=[1];_.bN=function(a){(0,_.S)(this,a,0,-1,Lid,null)};_.O(_.bN,_.L);_.bN.prototype.O=function(){return _.Ok(this,_.Iid,1)};_.Mid=function(a,b){return _.kb(a,1,b)};Nid=[1,2];_.pP=function(a){(0,_.S)(this,a,0,-1,Nid,null)};_.O(_.pP,_.L);_.pP.prototype.O=function(){return _.Kd(this,1)};_.Oid=function(a,b){return _.A(a,1,b||[])};_.pP.prototype.sT=function(){return _.Ok(this,_.hSb,2)};
_.Pid=function(a,b){return _.kb(a,2,b)};_.pP.prototype.re=function(){return _.D(this,_.af,3)};_.Qid=function(a,b){return _.y(a,3,b)};_.r("RsR2Mc");



_.w();

}catch(e){_._DumpException(e)}
})(this._D);
// Google Inc.
