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


_.u();

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


_.u();

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


_.u();

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


_.u();

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


_.u();

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


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("WxwHof");


_.u();

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


_.u();

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


_.u();

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

_.Ecc=function(a,b){return _.pd(a,b)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy11s");

_.bmb=function(a,b){a.filters.push(new _.bu(1,b));return a};_.cmb=function(a){a.approvalSummaries||(a.approvalSummaries=_.aSa(a.jg,a.getItem().jBa));return a.approvalSummaries};_.dmb=function(a){null===a.contentRestrictions&&(a.contentRestrictions=_.aSa(a.jg,a.getItem().d2));return a.contentRestrictions};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy11t");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy12p");

_.EA=function(a){if(Array.isArray(a))return a.map(_.EA).join("");if(_.fl(a)){if(!a.getId())throw Error("Td");return a.getId()+"/"+_.fl(a)+","}return""};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy14s");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.qvb=function(a,b,c){_.Uq(a,b)&&(_.Sd(a,b),_.Vq(a,c))};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy14t");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var svb;_.rvb=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")};svb=function(a){var b=_.Caa(_.gFa,function(c){return a==c});if(void 0===b)throw Error("Kb`"+a);return b};_.tvb=function(a,b){void 0!==a.name?(this.name=a.name,this.code=_.gFa[a.name]):(this.code=a=a.code,this.name=svb(a));_.ja.call(this,_.rvb("%s %s",this.name,b))};_.gg(_.tvb,_.ja);var uvb=function(a,b){_.hi.call(this,a.type,b)};
_.gg(uvb,_.hi);_.vvb=function(){_.qi.call(this);this.H=new FileReader;this.H.onloadstart=(0,_.L)(this.m1,this);this.H.onprogress=(0,_.L)(this.m1,this);this.H.onload=(0,_.L)(this.m1,this);this.H.onabort=(0,_.L)(this.m1,this);this.H.onerror=(0,_.L)(this.m1,this);this.H.onloadend=(0,_.L)(this.m1,this)};_.gg(_.vvb,_.qi);_.g=_.vvb.prototype;_.g.abort=function(){try{this.H.abort()}catch(a){throw new _.tvb(a,"aborting read");}};_.g.ak=function(){return this.H.result};
_.g.getError=function(){return this.H.error&&new _.tvb(this.H.error,"reading file")};_.g.m1=function(a){this.dispatchEvent(new uvb(a,this))};_.g.Ya=function(){_.vvb.ub.Ya.call(this);delete this.H};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy156");

var Jwb,Mwb;Jwb=[4,5,6,7];_.TB=function(a){_.J.call(this,a)};_.K(_.TB,_.J);_.TB.prototype.Cb=function(){return _.z(this,1)};_.TB.prototype.Dc=function(a){return _.x(this,1,a)};_.TB.prototype.uaa=function(){return _.z(this,2)};_.TB.prototype.Tb="JmcaR";_.Kwb=function(a){_.J.call(this,a)};_.K(_.Kwb,_.J);_.Kwb.prototype.H=function(){return _.Q(this,1)};_.Kwb.prototype.Tb="dvhrqe";_.Lwb=function(a){_.J.call(this,a)};_.K(_.Lwb,_.J);_.Lwb.prototype.Wo=function(){return _.z(this,2)};
_.Lwb.prototype.S2=function(){return _.z(this,3)};Mwb=[5];_.Nwb=function(a){_.J.call(this,a)};_.K(_.Nwb,_.J);_.Nwb.prototype.H=function(){return _.Q(this,4)};_.Nwb.prototype.setActive=function(a){return _.x(this,4,a)};_.Owb=function(a){_.J.call(this,a,-1,Mwb)};_.K(_.Owb,_.J);_.g=_.Owb.prototype;_.g.K_=function(){return _.z(this,1)};_.g.cM=function(){return _.z(this,3)};_.g.tK=function(){return _.yb(this,_.Lwb,5)};_.g.yk=function(){return _.z(this,6)};_.g.oq=function(){return _.z(this,7)};
_.g.cK=function(){return _.z(this,9)};_.g.kt=function(){return _.z(this,10)};_.g.gK=function(){return _.y(this,_.Nwb,12)};_.g.Mk=function(){return _.z(this,13)};_.g.Ww=function(){return _.z(this,16)};_.g.sDb=function(){return _.ej(this,16)};_.g.Jv=function(){return _.z(this,17)};_.g.Tb="dzR11e";_.Pwb=function(a){_.J.call(this,a,-1,Jwb)};_.K(_.Pwb,_.J);_.Pwb.prototype.ul=function(){return _.y(this,_.Owb,1)};_.Pwb.prototype.yN=function(){return _.y(this,_.TB,8)};
_.Pwb.prototype.H=function(){return _.y(this,_.Kwb,9)};_.UB=function(a){_.J.call(this,a,-1,Qwb)};_.K(_.UB,_.J);_.UB.prototype.getUser=function(){return _.y(this,_.mk,1)};_.UB.prototype.getMetadata=function(){return _.y(this,_.Pwb,3)};_.UB.prototype.Eo=function(){return _.ej(this,3)};var Qwb=[2];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy157");

_.Rwb=function(a,b,c,d,e,f,h){return(0,_.F)(_.sn("b",b,!1)({fillColor:d,ab:c,color:"#000000",nb:!0,Hr:e,size:f,Sd:h},a))};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy158");

_.VB={$L:"bb",eia:"cb",bV:"db",aV:"eb"};_.Swb=new Map([[_.VB.$L,1],[_.VB.eia,2],[_.VB.bV,2],[_.VB.aV,3]]);

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy15y");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy16f");

_.azb=function(a){a=parseInt(a.H()||"0",10);return 100<=a?"over":90<=a?"near":"under"};_.czb=function(a,b,c,d){var e=_.pf.getService(a);a=e.Yf(a,c);_.bzb(a.H.zj,b,d);e.Pf(a)};_.bzb=function(a,b,c){var d=new _.dzb;b.TQ&&_.x(d,2,b.TQ);b.VE&&0<=b.VE&&_.x(d,1,b.VE);b.quotaType&&_.x(d,3,b.quotaType);_.ezb(a,d);c&&(b=new _.fzb,_.x(b,1,c),_.gzb(a,b))};_.hzb=function(a){return isNaN(a)?0:100<=a?6:95<=a?5:90<=a?4:80<=a?3:70<=a?2:1};_.ezb=function(a,b){b&&(a=a.Rc(),_.G(a,29,b))};
_.gzb=function(a,b){b&&(a=a.Rc(),_.G(a,38,b))};_.dzb=function(a){_.J.call(this,a)};_.K(_.dzb,_.J);_.dzb.prototype.yk=function(){return _.z(this,3)};_.fzb=function(a){_.J.call(this,a)};_.K(_.fzb,_.J);_.fzb.prototype.mi=function(){return _.z(this,1)};
var izb;_.jzb=function(a,b,c){var d=_.C(a.get(_.SDa),1,"");a=_.azb(b);d=new _.Ti(d);a:switch(a){case "over":var e="o";break a;case "near":e="u";break a;default:e="m"}return _.Vi(_.Yi(_.Yi(_.Yi(_.Yi(d,"i",e),"utm_source","drive"),"utm_medium","web"),"utm_campaign",izb(a,c)),-1!==parseInt(String(b.V()),10)?"upgrade":"")};
izb=function(a,b){switch(b){case "settings":return"settings";case "upload_dialog":return"upload_dialog_oos";case "widget":switch(a){case "over":return"widget_oos";case "near":return"widget_near_quota";default:return"widget_normal"}default:switch(a){case "near":case "over":return"upsell";default:return"manage"}}};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy17t");

_.SC=function(a){_.J.call(this,a)};_.K(_.SC,_.J);_.SC.prototype.wa=function(){return _.jj(this,1)};_.SC.prototype.V=function(){return _.jj(this,2)};_.SC.prototype.H=function(){return _.jj(this,3)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy18e");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy18k");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy18j");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy18m");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy19a");

_.oD=function(a){_.J.call(this,a)};_.K(_.oD,_.J);_.oD.prototype.getKey=function(){return _.y(this,_.Lc,1)};_.oD.prototype.wt=function(){return _.ej(this,1)};_.oD.prototype.re=function(){return _.y(this,_.Lf,2)};
_.pD=function(a){_.J.call(this,a)};_.K(_.pD,_.J);_.pD.prototype.re=function(){return _.y(this,_.Lf,2)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy19b");

_.nD=function(a){_.J.call(this,a,-1,dCb)};_.K(_.nD,_.J);_.nD.prototype.re=function(){return _.y(this,_.Lf,1)};var dCb=[3];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy19h");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.BD=function(a,b,c){_.P.call(this);this.an=null!=c?(0,_.L)(a,c):a;this.ka=b;this.qg=(0,_.L)(this.lcb,this);this.O=!1;this.V=0;this.W=this.H=null;this.ha=[]};_.gg(_.BD,_.P);_.g=_.BD.prototype;_.g.oe=function(a){this.ha=arguments;this.O=!1;this.H?this.W=_.eg()+this.ka:this.H=_.si(this.qg,this.ka)};_.g.stop=function(){this.H&&(_.ti(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.an.apply(null,this.ha)))};_.g.Ya=function(){this.stop();_.BD.ub.Ya.call(this)};_.g.lcb=function(){this.H&&(_.ti(this.H),this.H=null);this.W?(this.H=_.si(this.qg,this.W-_.eg()),this.W=null):this.V?this.O=!0:(this.O=!1,this.an.apply(null,this.ha))};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1c7");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1c8");

_.YF=function(a){_.J.call(this,a,-1,OVb)};_.K(_.YF,_.J);_.YF.prototype.getId=function(){return _.z(this,1)};_.YF.prototype.Nb=function(a){return _.x(this,1,a)};_.YF.prototype.Fu=function(){return _.z(this,2)};_.YF.prototype.BK=function(){return _.ej(this,2)};var OVb=[5,6,9,10,12,13,15,16];
var PVb;_.ZF=function(a){_.J.call(this,a,-1,PVb)};_.K(_.ZF,_.J);_.ZF.prototype.Km=function(){return _.z(this,1)};_.QVb=function(a,b){return _.x(a,1,b)};PVb=[2,4];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1ca");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1cb");

_.$F=function(a){_.J.call(this,a)};_.K(_.$F,_.J);_.$F.prototype.getName=function(){return _.z(this,1)};_.$F.prototype.$c=function(a){return _.x(this,1,a)};_.$F.prototype.re=function(){return _.y(this,_.Lf,2)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1cc");

_.XVb=function(a){_.J.call(this,a)};_.K(_.XVb,_.J);_.XVb.prototype.xi=function(){return _.z(this,3)};_.XVb.prototype.cj=function(a){return _.x(this,3,a)};_.XVb.prototype.re=function(){return _.y(this,_.Lf,5)};_.XVb.prototype.getCustomer=function(){return _.z(this,6)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1ce");

var YVb;_.Ic=function(a){_.hi.call(this,_.bd);this.error=a};_.K(_.Ic,_.hi);_.aG=function(a){_.J.call(this,a,-1,YVb)};_.K(_.aG,_.J);_.aG.prototype.H=function(){return _.re(this,1)};_.bG=function(a,b){return _.kj(a,1,b)};_.aG.prototype.V=function(){return _.re(this,2)};_.cG=function(a,b){return _.kj(a,2,b)};_.aG.prototype.re=function(){return _.y(this,_.Lf,3)};_.dG=function(a,b){return _.G(a,3,b)};_.ZVb=function(a,b){return _.x(a,5,b)};YVb=[1,2,6,11];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1cg");

_.eG=function(a){_.J.call(this,a)};_.K(_.eG,_.J);_.g=_.eG.prototype;_.g.xi=function(){return _.z(this,1)};_.g.cj=function(a){return _.x(this,1,a)};_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.x(this,2,a)};_.g.re=function(){return _.y(this,_.Lf,3)};_.g.Yq=function(){return _.z(this,4)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1cf");

_.fG=function(a){_.J.call(this,a,-1,$Vb)};_.K(_.fG,_.J);_.fG.prototype.H=function(){return _.re(this,1)};_.fG.prototype.V=function(){return _.re(this,2)};_.fG.prototype.re=function(){return _.y(this,_.Lf,3)};var $Vb=[1,2];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1ch");

_.gG=function(a){_.J.call(this,a,-1,aWb)};_.K(_.gG,_.J);_.bWb=function(a,b){return _.kj(a,1,b)};_.gG.prototype.re=function(){return _.y(this,_.Lf,2)};var aWb=[1,3];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1cj");

_.hG=function(a,b){return _.x(a,4,b)};_.cWb=function(a,b){return _.x(a,25,b)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1cd");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1cr");

_.nG=function(a){_.J.call(this,a)};_.K(_.nG,_.J);_.nG.prototype.qc=function(){return _.z(this,1)};_.WWb=function(a){var b=new _.nG;return _.x(b,1,a)};_.nG.prototype.xi=function(){return _.z(this,2)};_.nG.prototype.cj=function(a){return _.x(this,2,a)};_.nG.prototype.re=function(){return _.y(this,_.Lf,3)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1ft");

_.PH=function(a){_.J.call(this,a)};_.K(_.PH,_.J);_.PH.prototype.re=function(){return _.y(this,_.Lf,1)};_.QH=function(a,b){return _.G(a,1,b)};_.PH.prototype.hh=function(){return _.z(this,4)};_.PH.prototype.rKa=function(a){return _.x(this,4,a)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1fv");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1g4");

var Fcc;_.RH=function(a){_.J.call(this,a,-1,Fcc)};_.K(_.RH,_.J);_.RH.prototype.H=function(){return _.re(this,1)};_.RH.prototype.re=function(){return _.y(this,_.Lf,2)};_.Gcc=function(a,b){return _.G(a,2,b)};_.RH.prototype.xi=function(){return _.xj(this,3,20)};_.RH.prototype.cj=function(a){return _.x(this,3,a)};_.Hcc=function(a,b){return _.x(a,4,b)};Fcc=[1];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gi");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Jcc=function(a,b){return _.Icc()?(new _.n.Intl.Collator([a||"en-CA"],b||{})).compare:function(c,d){return c.localeCompare(d)}};_.Icc=function(){var a=_.n.Intl;return!(!a||!a.Collator)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gj");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Kcc=function(a){_.P.call(this);this.O=a;this.H={};this.O.XO((0,_.L)(this.V,this))};_.gg(_.Kcc,_.P);_.Mcc=function(a,b){if(-1!=b.indexOf(":"))throw Error("ef`"+b);if(b in a.H)throw Error("ff`"+b);var c=new Lcc(a,b);return a.H[b]=c};_.Kcc.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)}};_.Kcc.prototype.Ya=function(){_.Ta(this.H,function(a){_.ba(a)});_.ba(this.O);delete this.H;delete this.O};
var Lcc=function(a,b){_.P.call(this);this.Ig=a;this.H=b};_.gg(Lcc,_.P);_.g=Lcc.prototype;_.g.connect=function(a){a&&a()};_.g.isConnected=function(){return!0};_.g.registerService=function(a,b,c){this.Ig.O.registerService(this.H+":"+a,(0,_.L)(this.EWa,this,b),c)};_.g.XO=function(a){this.O=(0,_.L)(this.EWa,this,a)};_.g.send=function(a,b){if(this.isDisposed())throw Error("gf");this.Ig.O.send(this.H+":"+a,b)};_.g.EWa=function(a,b){this.isDisposed()||a.apply({},Array.prototype.slice.call(arguments,1))};
_.g.Ya=function(){this.Ig=this.Ig.H[this.H]=null};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gk");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Ncc=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a;return c};_.Occ=function(){this.blockSize=-1};
_.SH=function(){this.blockSize=-1;this.blockSize=64;this.H=Array(4);this.W=Array(this.blockSize);this.V=this.O=0;this.reset()};_.gg(_.SH,_.Occ);_.SH.prototype.reset=function(){this.H[0]=1732584193;this.H[1]=4023233417;this.H[2]=2562383102;this.H[3]=271733878;this.V=this.O=0};
var Pcc=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.H[0];c=a.H[1];e=a.H[2];var f=a.H[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.H[0]=a.H[0]+b&4294967295;a.H[1]=a.H[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.H[2]=a.H[2]+e&4294967295;a.H[3]=a.H[3]+f&4294967295};
_.SH.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=this.W,e=this.O,f=0;f<b;){if(0==e)for(;f<=c;)Pcc(this,a,f),f+=this.blockSize;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.blockSize){Pcc(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.blockSize){Pcc(this,d);e=0;break}}this.O=e;this.V+=b};
_.SH.prototype.digest=function(){var a=Array((56>this.O?this.blockSize:2*this.blockSize)-this.O);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.V;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.H[b]>>>d&255;return a};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gl");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Qcc,TH,Rcc,VH,Tcc,Scc;Qcc=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(_.gha);try{delete a[_.gha]}catch(b){}};
TH=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(_.Ea(f)){f[_.gha]||c.push(f);var l=_.Fa(f);if(d[l])b.push("*** reference loop detected (id="+l+") ***");else{d[l]=!0;b.push("{");for(var p in f)"function"!==typeof f[p]&&(b.push("\n"),b.push(k),b.push(p+" = "),e(f[p],k));b.push("\n"+
h+"}");delete d[l]}}else b.push(f)}catch(q){b.push("*** "+q+" ***")}};e(a,"");for(a=0;a<c.length;a++)Qcc(c[a]);return b.join("")};_.UH=function(a,b,c){if("number"===typeof a)var d={name:Scc(a)};else d=a,a=Tcc(a.name);this.code=a;this.O=d;b="Error "+b+": "+this.getName();c&&(b+=", "+c);_.ja.call(this,b)};_.gg(_.UH,_.ja);_.UH.prototype.getName=function(){return this.O.name||""};
VH={Fmb:1,Flb:2,NOT_FOUND_ERR:3,Nab:4,Sab:5,Hlb:6,Amb:7,ABORT_ERR:8,Ylb:9,nac:10,TIMEOUT_ERR:11,Vlb:12,INVALID_ACCESS_ERR:13,INVALID_STATE_ERR:14};_.Ucc=(_.n.H||_.n.O||VH).Fmb;_.Vcc=(_.n.H||_.n.O||VH).Flb;_.Wcc=(_.n.H||_.n.O||VH).NOT_FOUND_ERR;_.Xcc=(_.n.H||_.n.O||VH).Nab;_.Ycc=(_.n.H||_.n.O||VH).Sab;_.Zcc=(_.n.H||_.n.O||VH).Hlb;_.$cc=(_.n.H||_.n.O||VH).Amb;_.adc=(_.n.H||_.n.O||VH).ABORT_ERR;_.bdc=(_.n.H||_.n.O||VH).Ylb;_.cdc=(_.n.H||_.n.O||VH).TIMEOUT_ERR;_.ddc=(_.n.H||_.n.O||VH).Vlb;
_.edc=(_.n.DOMException||VH).INVALID_ACCESS_ERR;_.fdc=(_.n.DOMException||VH).INVALID_STATE_ERR;
Tcc=function(a){switch(a){case "UnknownError":return _.Ucc;case "NotFoundError":return _.Wcc;case "ConstraintError":return _.Xcc;case "DataError":return _.Ycc;case "TransactionInactiveError":return _.$cc;case "AbortError":return _.adc;case "ReadOnlyError":return _.bdc;case "TimeoutError":return _.cdc;case "QuotaExceededError":return _.ddc;case "InvalidAccessError":return _.edc;case "InvalidStateError":return _.fdc;default:return _.Ucc}};
Scc=function(a){switch(a){case _.Ucc:return"UnknownError";case _.Wcc:return"NotFoundError";case _.Xcc:return"ConstraintError";case _.Ycc:return"DataError";case _.$cc:return"TransactionInactiveError";case _.adc:return"AbortError";case _.bdc:return"ReadOnlyError";case _.cdc:return"TimeoutError";case _.ddc:return"QuotaExceededError";case _.edc:return"InvalidAccessError";case _.fdc:return"InvalidStateError";default:return"UnknownError"}};
_.WH=function(a,b){return"error"in a?new _.UH(a.error,b):new _.UH({name:"UnknownError"},b)};_.XH=function(a,b){if("name"in a)return b=b+": "+a.message,new _.UH(a,b);if("code"in a){var c=Scc(a.code);b=b+": "+a.message;return new _.UH({name:c},b)}return new _.UH({name:"UnknownError"},b)};
_.gdc=function(a){this.H=a};_.hdc=_.n.IDBKeyRange||_.n.webkitIDBKeyRange;_.gdc.prototype.range=function(){return this.H};
var idc=function(a){this.H=a};idc.prototype.getName=function(){return this.H.name};var jdc=function(a,b,c,d){var e=new _.Uh;try{var f=a.H[b](d)}catch(h){return c+=" with key "+TH(d),e.Gd(_.XH(h,c)),e}f.onsuccess=function(h){e.callback(h.target.result)};f.onerror=function(h){c+=" with key "+TH(d);e.Gd(_.WH(h.target,c))};return e};idc.prototype.get=function(a){return jdc(this,"get","getting from index "+this.getName(),a)};
idc.prototype.getKey=function(a){return jdc(this,"getKey","getting key from index "+this.getName(),a)};idc.prototype.getAll=function(a,b){return _.kdc(this,"getAll","getting all from index "+this.getName(),a,b)};
_.kdc=function(a,b,c,d,e){var f;void 0===d?f=void 0:f=d instanceof _.gdc?d.range():(new _.gdc(_.hdc.only(d))).range();var h=new _.Uh;try{var k=a.H[b](f,e)}catch(l){return c+=" for range "+(f?TH(f):"<all>"),h.Gd(_.XH(l,c)),h}k.onsuccess=function(){h.callback(k.result)};k.onerror=function(l){c+=" for range "+(f?TH(f):"<all>");h.Gd(_.WH(l.target,c))};return h};
var ldc=function(a){this.H=a};ldc.prototype.getName=function(){return this.H.name};var mdc=function(a,b,c,d,e){var f=new _.Uh;try{var h=e?a.H[b](d,e):a.H[b](d)}catch(k){return c+=TH(d),e&&(c+=", with key "+TH(e)),f.Gd(_.XH(k,c)),f}h.onsuccess=function(k){f.callback(k.target.result)};h.onerror=function(k){c+=TH(d);e&&(c+=", with key "+TH(e));f.Gd(_.WH(k.target,c))};return f};_.g=ldc.prototype;_.g.put=function(a,b){return mdc(this,"put","putting into "+this.getName()+" with value",a,b)};
_.g.add=function(a,b){return mdc(this,"add","adding into "+this.getName()+" with value ",a,b)};_.g.remove=function(a){var b=new _.Uh;try{var c=this.H["delete"](a instanceof _.gdc?a.range():a)}catch(e){return c="removing from "+this.getName()+" with key "+TH(a),b.Gd(_.XH(e,c)),b}c.onsuccess=function(){b.callback()};var d=this;c.onerror=function(e){var f="removing from "+d.getName()+" with key "+TH(a);b.Gd(_.WH(e.target,f))};return b};
_.g.get=function(a){var b=new _.Uh;try{var c=this.H.get(a)}catch(e){return c="getting from "+this.getName()+" with key "+TH(a),b.Gd(_.XH(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 "+TH(a);b.Gd(_.WH(e.target,f))};return b};_.g.getAll=function(a,b){return ndc(this,"getting all from index "+this.getName(),a,b)};
var ndc=function(a,b,c,d){var e;void 0===c?e=void 0:e=c instanceof _.gdc?c.range():(new _.gdc(_.hdc.only(c))).range();var f=new _.Uh;try{var h=a.H.getAll(e,d)}catch(k){return b+=" for range "+(e?TH(e):"<all>"),f.Gd(_.XH(k,b)),f}h.onsuccess=function(){f.callback(h.result)};h.onerror=function(k){b+=" for range "+(e?TH(e):"<all>");f.Gd(_.WH(k.target,b))};return f};
ldc.prototype.clear=function(){var a="clearing store "+this.getName(),b=new _.Uh;try{var c=this.H.clear()}catch(d){return b.Gd(_.XH(d,a)),b}c.onsuccess=function(){b.callback()};c.onerror=function(d){b.Gd(_.WH(d.target,a))};return b};ldc.prototype.getIndex=function(a){try{return new idc(this.H.index(a))}catch(b){throw _.XH(b,"getting index "+a);}};
ldc.prototype.count=function(a){var b=new _.Uh;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.Gd(_.WH(e.target,d.getName()))}}catch(e){b.Gd(_.XH(e,this.getName()))}return b};
var odc=function(a,b){_.qi.call(this);this.H=a;this.O=b;this.Eb=new _.nf(this);this.Eb.listen(this.H,"complete",(0,_.L)(this.dispatchEvent,this,"complete"));this.Eb.listen(this.H,"abort",(0,_.L)(this.dispatchEvent,this,"abort"));this.Eb.listen(this.H,"error",this.Ocb)};_.gg(odc,_.qi);_.g=odc.prototype;_.g.Ocb=function(a){a.target instanceof _.UH?this.dispatchEvent({type:"error",target:a.target}):this.dispatchEvent({type:"error",target:_.WH(a.target,"in transaction")})};_.g.Fg=function(){return this.H.mode};
_.g.objectStore=function(a){try{return new ldc(this.H.objectStore(a))}catch(b){throw _.XH(b,"getting object store "+a);}};_.g.commit=function(a){if(this.H.commit||!a)try{this.H.commit()}catch(b){throw _.XH(b,"cannot commit the transaction");}};
_.g.wait=function(){var a=new _.Uh;_.li(this,"complete",(0,_.L)(a.callback,a));var b=_.li(this,"abort",function(){_.oi(c);a.Gd(new _.UH(_.adc,"waiting for transaction to complete"))});var c=_.li(this,"error",function(e){_.oi(b);a.Gd(e.target)});var d=this.O;return a.addCallback(function(){return d})};_.g.abort=function(){this.H.abort()};_.g.Ya=function(){odc.ub.Ya.call(this);this.Eb.dispose()};
var pdc=function(a){_.qi.call(this);this.H=a;this.Eb=new _.nf(this);this.Eb.listen(this.H,"abort",(0,_.L)(this.dispatchEvent,this,"abort"));this.Eb.listen(this.H,"error",this.Pcb);this.Eb.listen(this.H,"versionchange",this.Msb);this.Eb.listen(this.H,"close",(0,_.L)(this.dispatchEvent,this,"close"))};_.gg(pdc,_.qi);_.g=pdc.prototype;_.g.cua=!0;_.g.Pcb=function(a){a=(a=a.target)&&a.error;this.dispatchEvent({type:"error",errorCode:a&&a.severity})};
_.g.Msb=function(a){this.dispatchEvent(new qdc(a.oldVersion,a.newVersion))};_.g.close=function(){this.cua&&(this.H.close(),this.cua=!1)};_.g.Dg=function(){return this.cua};_.g.getName=function(){return this.H.name};_.g.nj=function(){return Number(this.H.version)};_.rdc=function(a,b,c){try{return new ldc(a.H.createObjectStore(b,c))}catch(d){throw _.XH(d,"creating object store "+b);}};
_.sdc=function(a,b,c){try{var d=c?a.H.transaction(b,c):a.H.transaction(b);return new odc(d,a)}catch(e){throw _.XH(e,"creating transaction");}};pdc.prototype.Ya=function(){pdc.ub.Ya.call(this);this.Eb.dispose()};var qdc=function(a,b){_.hi.call(this,"versionchange");this.oldVersion=a;this.newVersion=b};_.gg(qdc,_.hi);
_.tdc=function(){void 0==Rcc&&(Rcc=_.n.indexedDB||_.n.mozIndexedDB||_.n.webkitIndexedDB||_.n.moz_indexedDB);return Rcc};
_.udc=function(a,b,c,d){var e=new _.Uh;b=b?_.tdc().open(a,b):_.tdc().open(a);b.onsuccess=function(f){f=new pdc(f.target.result);e.callback(f)};b.onerror=function(f){e.Gd(_.WH(f.target,"opening database "+a))};b.onupgradeneeded=function(f){if(c){var h=new pdc(f.target.result);c(new qdc(f.oldVersion,f.newVersion),h,new odc(f.target.transaction,h))}};b.onblocked=function(f){d&&d(new qdc(f.oldVersion,f.newVersion))};return e};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gm");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.YH=function(a,b,c,d){this.ha=a;this.W=b;this.H=this.V=a;this.ka=c||0;this.ma=d||2};_.YH.prototype.O=0;_.YH.prototype.reset=function(){this.H=this.V=this.ha;this.O=0};_.YH.prototype.Wa=function(){return this.V};_.ZH=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++};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gg");

_.vdc=function(a,b,c){_.zma(a.url,function(d){d=d.target;d.vA()?b(d.Wk()):c(d.Cb())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};_.wdc=function(a,b,c,d){return _.C(a,1).split("/").pop()==d?(d=_.z(a,2),Array.isArray(d)?new b(d):c(_.tb(a.Wa()))):null};_.ydc=function(a){_.J.call(this,a,-1,xdc)};_.K(_.ydc,_.J);var xdc=[2];
_.zdc=function(a){_.J.call(this,a)};_.K(_.zdc,_.J);var Adc=function(){var a=new _.zdc,b=document.documentElement.getAttribute("lang");return _.x(a,5,b)};_.zdc.prototype.Ki=function(){return _.z(this,7)};
_.Bdc=function(a){_.J.call(this,a)};_.K(_.Bdc,_.J);
var Cdc;_.$H=function(a){_.J.call(this,a,31,Cdc)};_.K(_.$H,_.J);_.aI=function(a,b){return _.x(a,8,b)};Cdc=[3,20,27];
var Edc=function(a){_.J.call(this,a,17,Ddc)};_.K(Edc,_.J);var Fdc=function(a){var b=Date.now().toString();return _.x(a,4,b)},Gdc=function(a,b){return _.mj(a,3,b)},Hdc=function(a,b){return _.x(a,14,b)},Ddc=[3,5];
var Jdc=function(a){_.J.call(this,a,6,Idc)};_.K(Jdc,_.J);var Idc=[5];
var Kdc=function(a){_.J.call(this,a)};_.K(Kdc,_.J);
var Ldc=_.Eb(175237375,Kdc);
_.bI=function(a,b,c,d,e,f,h,k,l,p,q){_.qi.call(this);var r=this;this.Ia="";this.O=[];this.Ec="";this.Gb=this.Kb=this.ha=!1;this.Nc=this.ob=-1;this.Qb=!1;this.Ba=this.V=null;this.ta=0;this.le=1;this.timeoutMillis=0;this.kb=!1;_.qi.call(this);this.Vc=a;this.jc=b||_.cg;this.ka=new Edc;this.Ad=d;this.yb=q;this.he=_.Ob(_.Jja,0,1);this.wa=e||null;this.Fa=c||null;this.Pa=h||!1;this.$a=l||null;this.Xf=null;this.withCredentials=!k;this.tc=f||!1;this.Rd=!this.tc&&(_.cj.xo&&_.Qb(65)||_.cj.gv&&_.Qb(45)||_.cj.yx&&
_.Qb(12)||_.Sa()&&0<=_.Ra(_.zaa(),12))&&!!_.If()&&!!_.If().navigator&&!!_.If().navigator.sendBeacon;a=_.x(new _.Bdc,1,1);f||(f=Adc(),_.G(a,11,f));_.G(this.ka,1,a);_.x(this.ka,2,this.Vc);this.ma=new _.YH(1E4,3E5,.1);this.H=new _.ri(this.ma.Wa());this.Ja(this.H);_.cf(this.H,"tick",_.uha(Mdc(this,p)),!1,this);this.Ka=new _.ri(6E5);this.Ja(this.Ka);_.cf(this.Ka,"tick",_.uha(Mdc(this,p)),!1,this);this.Pa||this.Ka.start();this.tc||(_.cf(document,"visibilitychange",function(){"hidden"===document.visibilityState&&
r.Ua()}),_.cf(document,"pagehide",this.Ua,!1,this))};_.K(_.bI,_.qi);var Mdc=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};_.bI.prototype.Ya=function(){this.Ua();_.qi.prototype.Ya.call(this)};var Ndc=function(a){a.wa||(a.wa=.01>a.he()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.wa};_.bI.prototype.W=function(a){a instanceof _.$H?this.log(a):(a=_.aI(new _.$H,a.Hc()),this.log(a))};
_.Odc=function(a,b){b?(a.V||(a.V=new _.ydc),b=b.Hc(),_.x(a.V,4,b)):a.V&&_.vb(a.V,4)};_.Pdc=function(a){a.Kb=a.Rd};_.Qdc=function(a,b){a.ma=new _.YH(1>b?1:b,3E5,.1);a.H.setInterval(a.ma.Wa())};
_.bI.prototype.log=function(a){a=a.clone();var b=this.le++;_.x(a,21,b);this.Ia&&_.x(a,26,this.Ia);if(!_.z(a,1)){b=a;var c=Date.now().toString();_.x(b,1,c)}_.ej(a,15)||_.x(a,15,60*(new Date).getTimezoneOffset());this.V&&(b=this.V.clone(),_.G(a,16,b));for(;1E3<=this.O.length;)this.O.shift(),++this.ta;this.O.push(a);this.dispatchEvent(new Rdc(a));this.Pa||this.H.enabled||this.H.start()};
_.bI.prototype.flush=function(a,b){var c=this;if(0===this.O.length)a&&a();else if(this.kb)Sdc(this);else{var d=Date.now();if(this.Nc>d&&this.ob<d)b&&b("throttled");else{var e=Hdc(Gdc(Fdc(this.ka.clone()),this.O),this.ta);d={};var f=this.jc();f&&(d.Authorization=f);var h=Ndc(this);this.Fa&&(d["X-Goog-AuthUser"]=this.Fa,h=_.Mi(h,"authuser",this.Fa));this.$a&&(d["X-Goog-PageId"]=this.$a,h=_.Mi(h,"pageId",this.$a));if(f&&this.Ec===f)b&&b("stale-auth-token");else if(this.O=[],this.H.enabled&&this.H.stop(),
this.ta=0,this.ha)a&&a();else{var k=e.Hc(),l;this.Ba&&this.Ba.Lu(k.length)&&(l=this.Ba.gcc(k));var p={url:h,body:k,Wob:1,requestHeaders:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},q=function(w){c.ma.reset();c.H.setInterval(c.ma.Wa());if(w){var A=null;try{var B=JSON.parse(w.replace(")]}'\n",""));A=new Jdc(B)}catch(E){}A&&(w=Number(_.rna(A,1,"-1")),0<w&&(c.ob=Date.now(),c.Nc=c.ob+w),A=_.tj(A,Ldc))&&(A=_.xj(A,1,-1),-1!=A&&(c.Qb||_.Qdc(c,A)))}a&&a()},r=
function(w){var A=_.yb(e,_.$H,3);_.ZH(c.ma);c.H.setInterval(c.ma.Wa());401===w&&f&&(c.Ec=f);if(500<=w&&600>w||401===w||0===w)c.O=A.concat(c.O),c.Pa||c.H.enabled||c.H.start();b&&b("net-send-failed",w)},v=function(){c.yb?c.yb.send(p,q,r):c.Ad(p,q,r)};l?l.then(function(w){p.requestHeaders["Content-Encoding"]="gzip";p.requestHeaders["Content-Type"]="application/binary";p.body=w;p.Wob=2;v()},function(){v()}):v()}}}};_.bI.prototype.Ua=function(){this.ha||(this.Kb&&Sdc(this),this.Gb&&Tdc(this),this.flush())};
var Sdc=function(a){Udc(a,32,10,function(b,c){b=_.Mi(b,"format","json");b=_.If().navigator.sendBeacon(b,c.Hc());a.kb&&!b&&(a.kb=!1);return b})},Tdc=function(a){Udc(a,6,5,function(b,c){b=_.Ki(b,"format","base64json","p",_.dj(c.Hc(),3));if(15360<b.length)return!1;_.Ug(new Image,b);return!0})},Udc=function(a,b,c,d){if(0!==a.O.length){var e=_.uma(Ndc(a),"format");e=_.Ki(e,"auth",a.jc(),"authuser",a.Fa||"0");for(var f=0;f<c&&a.O.length;++f){var h=a.O.slice(0,b),k=Gdc(Fdc(a.ka.clone()),h);0===f&&Hdc(k,
a.ta);if(!d(e,k))break;a.O=a.O.slice(h.length)}a.H.enabled&&a.H.stop();a.ta=0}},Rdc=function(){_.hi.call(this,"event-logged",void 0)};_.K(Rdc,_.hi);

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gh");

var Vdc=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;q=p=0}function b(r){for(var v=h,w=0;64>w;w+=4)v[w/4]=r[w]<<24|r[w+1]<<16|r[w+2]<<8|r[w+3];for(w=16;80>w;w++)r=v[w-3]^v[w-8]^v[w-14]^v[w-16],v[w]=(r<<1|r>>>31)&4294967295;r=e[0];var A=e[1],B=e[2],E=e[3],I=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var M=E^A&(B^E);var N=1518500249}else M=A^B^E,N=1859775393;else 60>w?(M=A&B|E&(A|B),N=2400959708):(M=A^B^E,N=3395469782);M=((r<<5|r>>>27)&4294967295)+
M+I+N+v[w]&4294967295;I=E;E=B;B=(A<<30|A>>>2)&4294967295;A=r;r=M}e[0]=e[0]+r&4294967295;e[1]=e[1]+A&4294967295;e[2]=e[2]+B&4294967295;e[3]=e[3]+E&4294967295;e[4]=e[4]+I&4294967295}function c(r,v){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var w=[],A=0,B=r.length;A<B;++A)w.push(r.charCodeAt(A));r=w}v||(v=r.length);w=0;if(0==p)for(;w+64<v;)b(r.slice(w,w+64)),w+=64,q+=64;for(;w<v;)if(f[p++]=r[w++],q++,64==p)for(p=0,b(f);w+64<v;)b(r.slice(w,w+64)),w+=64,q+=64}function d(){var r=[],
v=8*q;56>p?c(k,56-p):c(k,64-(p-56));for(var w=63;56<=w;w--)f[w]=v&255,v>>>=8;b(f);for(w=v=0;5>w;w++)for(var A=24;0<=A;A-=8)r[v++]=e[w]>>A&255;return r}for(var e=[],f=[],h=[],k=[128],l=1;64>l;++l)k[l]=0;var p,q;a();return{reset:a,update:c,digest:d,digestString:function(){for(var r=d(),v="",w=0;w<r.length;w++)v+="0123456789ABCDEF".charAt(Math.floor(r[w]/16))+"0123456789ABCDEF".charAt(r[w]%16);return v}}},Wdc=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("hf`"+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("jf`"+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 Ydc=function(a,b,c){var d=String(_.n.location.href);return d&&a&&b?[b,Xdc(Wdc(d),a,c||null)].join(" "):null},Xdc=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],_.Ma(d,function(k){e.push(k)}),Zdc(e.join(" "));var f=[],h=[];_.Ma(c,function(k){h.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=_.qa(f)?[c,b,a]:[f.join(":"),c,b,a];_.Ma(d,function(k){e.push(k)});a=Zdc(e.join(" "));a=[c,a];_.qa(h)||a.push(h.join(""));return a.join("_")},Zdc=function(a){var b=
Vdc();b.update(a);return b.digestString().toLowerCase()};
var $dc={};
var aec,cec;aec=function(a){return!!$dc.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};_.bec=function(a){a=void 0===a?!1:a;var b=_.n.__SAPISID||_.n.__APISID||_.n.__3PSAPISID||_.n.__OVERRIDE_SID;aec(a)&&(b=b||_.n.__1PSAPISID);if(b)return!0;var c=new _.vNa(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");aec(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};cec=function(a,b,c,d){(a=_.n[a])||(a=(new _.vNa(document)).get(b));return a?Ydc(a,c,d):null};
_.dec=function(a,b){b=void 0===b?!1:b;var c=Wdc(String(_.n.location.href)),d=[];if(_.bec(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?_.n.__SAPISID:_.n.__APISID;e||(e=new _.vNa(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?Ydc(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&aec(b)&&((b=cec("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=cec("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",
a))&&d.push(a))}return 0==d.length?null:d.join(" ")};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gn");

_.eec=function(a,b){this.ka=a;this.wa=b;this.V="https://play.google.com/log?format=json&hasfast=true";this.W=!1;this.ma=_.vdc;this.H=""};
_.eec.prototype.build=function(){var a=new _.bI(this.ka,this.Ka?this.Ka:_.dec,this.wa,this.ma,this.V,this.W,!1,void 0,void 0,void 0,this.ta?this.ta:void 0);if(this.Fa){var b=this.Fa;_.z(b,1)||_.x(b,1,1);_.G(a.ka,1,b)}if(this.O){b=this.O;var c=_.y(a.ka,_.Bdc,1),d=_.y(c,_.zdc,11);d||(d=new _.zdc);_.x(d,7,b);_.G(c,11,d);_.z(c,1)||_.x(c,1,1);_.G(a.ka,1,c)}this.ha&&(a.Ba=this.ha);this.H&&(a.Ia=this.H);this.Ba&&_.Odc(a,this.Ba);this.Pa&&(b=this.Pa,a.V||(a.V=new _.ydc),_.kj(a.V,2,b));this.Ia&&(b=this.Ia,
a.Qb=!0,_.Qdc(a,b));return a};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1go");

_.fec=function(a,b,c){a.O[b.getId()]=c;a.H&&c.O(a.H)};_.gec=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null};_.gec.prototype.PA=function(a){var b=this.H?this.H.W.bind(this.H):this.O.log.bind(this.O),c=this.H?this.H.flush.bind(this.H):this.O.flush.bind(this.O);a=_.aI(new _.$H,a.Hc());b(a);return new _.Oh(function(d){c(d,function(){d()})}.bind(this))};
_.hec=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null;this.O&&_.Pdc(this.O)};_.hec.prototype.PA=function(a){var b=this.H?this.H.W.bind(this.H):this.O.log.bind(this.O),c=this.H?this.H.flush.bind(this.H):this.O.flush.bind(this.O);a=_.aI(new _.$H,a.Hc());b(a);c()};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gc");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gb");

var iec;iec=[1];_.cI=function(a){_.J.call(this,a,-1,iec)};_.K(_.cI,_.J);_.cI.prototype.H=function(){return _.re(this,1)};_.jec=function(a,b){return _.kj(a,1,b)};_.dI=function(a){_.J.call(this,a)};_.K(_.dI,_.J);_.g=_.dI.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.x(this,2,a)};_.g.getState=function(){return _.z(this,5)};_.g.Id=function(a){return _.x(this,5,a)};
_.g.xt=function(){return _.ej(this,5)};_.kec=function(a){_.J.call(this,a)};_.K(_.kec,_.J);_.kec.prototype.H=function(){return _.z(this,1)};_.kec.prototype.Cb=function(){return _.z(this,2)};_.kec.prototype.Dc=function(a){return _.x(this,2,a)};_.kec.prototype.V=function(){return _.z(this,3)};_.mec=function(a){_.J.call(this,a,-1,lec)};_.K(_.mec,_.J);_.mec.prototype.H=function(){return _.re(this,1)};var lec=[1];
_.oec=function(a){_.J.call(this,a,-1,nec)};_.K(_.oec,_.J);_.oec.prototype.H=function(){return _.yb(this,_.kec,1)};var nec=[1];
_.qec=function(a){_.J.call(this,a,-1,pec)};_.K(_.qec,_.J);_.qec.prototype.H=function(){return _.yb(this,_.oec,1)};var pec=[1];
_.rec=function(a){_.J.call(this,a)};_.K(_.rec,_.J);_.rec.prototype.V=function(){return _.y(this,_.qec,1)};_.rec.prototype.H=function(){return _.y(this,_.mec,2)};
_.eI=function(a){_.J.call(this,a,-1,sec)};_.K(_.eI,_.J);_.g=_.eI.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.Bd=function(){return _.yb(this,_.Bk,2)};_.g.iB=function(a){return _.mj(this,2,a)};_.g.dh=function(a,b){return _.rj(this,2,a,_.Bk,b)};_.g.Yj=function(){return _.z(this,3)};_.g.Tl=function(){return _.R(this,5,!0)};_.g.i7=function(){return _.y(this,_.rec,7)};_.g.dua=function(){return _.Q(this,8)};_.g.Vf=function(){return _.z(this,17)};
_.g.gQ=function(a){return _.x(this,17,a)};_.g.We=function(){return _.z(this,12)};_.g.ti=function(a){return _.x(this,12,a)};_.g.Zn=function(){return _.z(this,15)};_.g.Ila=function(){return _.re(this,18)};var sec=[2,14,18];_.eI.prototype.Tb="eO39Zd";

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1g2");

var tec=function(a){_.J.call(this,a)};_.K(tec,_.J);tec.prototype.getEmail=function(){return _.C(this,3,"")};tec.prototype.xq=function(){return _.ej(this,3)};_.fI=function(a){return _.y(a,tec,36,1)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1g8");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gr");

_.gI=function(a,b){return _.x(a,b,_.ona)};_.uec=function(a){if(_.gna)return _.n.atob(a);var b="";_.ina(a,function(c){b+=String.fromCharCode(c)});return b};_.hI=function(a,b,c,d,e,f,h){_.bI.call(this,a,_.dec,b,_.vdc,c,d,e,void 0,f,h)};_.K(_.hI,_.bI);

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gp");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var vec;_.iI=function(a,b,c){if(0!==a.O)return!1;_.x(b,c,a.H.ka());return!0};vec=[3,42];_.wec=function(a){_.J.call(this,a,-1,vec)};_.K(_.wec,_.J);_.wec.prototype.getMimeType=function(){return _.z(this,27)};var xec=function(a,b){if(b&&a in b)return a;var c=_.PFa();return c?(c=c.toLowerCase(),a=c+_.Zja(a),void 0===b||a in b?a:null):null};
var yec=function(a){_.hi.call(this,"visibilitychange");this.hidden=a};_.K(yec,_.hi);
_.zec=function(a){_.qi.call(this);this.xd=a||_.tc();if(this.Uz=this.Cvb())this.H=_.cf(this.xd.Vb(),this.Uz,(0,_.L)(this.Qcb,this))};_.gg(_.zec,_.qi);_.g=_.zec.prototype;_.g.Cvb=_.sea(function(){var a=this.Lu(),b="hidden"!=this.TBa();if(a){var c;b?c=((_.PFa()||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});_.g.TBa=_.sea(function(){return xec("hidden",this.xd.Vb())});_.g.uxb=_.sea(function(){return xec("visibilityState",this.xd.Vb())});_.g.Lu=function(){return!!this.TBa()};
_.g.VB=function(){return!!this.xd.Vb()[this.TBa()]};_.g.Qcb=function(){var a=this.Lu()?this.xd.Vb()[this.uxb()]:null;a=new yec(this.VB(),a);this.dispatchEvent(a)};_.g.Ya=function(){_.oi(this.H);_.zec.ub.Ya.call(this)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gq");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Aec=function(a,b,c,d,e,f){var h=new _.Ti(null,void 0);a&&h.Pr(a);b&&_.Qma(h,b);c&&h.On(c);d&&h.TA(d);e&&h.Bi(e);f&&_.Ui(h,f);return h};_.Bec=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};_.jI=function(a){return new _.Oh(function(b){var c=a.length,d=[];if(c)for(var e=function(k,l,p){c--;d[k]=l?{p$:!0,value:p}:{p$:!1,reason:p};0==c&&b(d)},f=0,h;f<a.length;f++)h=a[f],_.Fka(h,_.Ob(e,f,!0),_.Ob(e,f,!1));else b(d)})};
_.kI=function(a,b,c){_.P.call(this);this.an=null!=c?a.bind(c):a;this.ha=b;this.W=null;this.O=!1;this.V=0;this.H=null};_.K(_.kI,_.P);_.g=_.kI.prototype;_.g.oe=function(a){this.W=arguments;this.H||this.V?this.O=!0:Cec(this)};_.g.stop=function(){this.H&&(_.ti(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,Cec(this))};_.g.Ya=function(){_.P.prototype.Ya.call(this);this.stop()};
var Cec=function(a){a.H=_.si(function(){a.H=null;a.O&&!a.V&&(a.O=!1,Cec(a))},a.ha);var b=a.W;a.W=null;a.an.apply(null,b)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gf");

var Dec=function(a){_.J.call(this,a)},Iec;_.K(Dec,_.J);var Eec=function(a){_.J.call(this,a)};_.K(Eec,_.J);_.lI=function(a){_.J.call(this,a)};_.K(_.lI,_.J);_.lI.prototype.A5=function(a){_.x(this,3,a)};_.lI.prototype.Ll=function(a){return _.G(this,5,a)};_.lI.prototype.getMimeType=function(){return _.z(this,7)};var Fec=[2],Gec=function(a){_.J.call(this,a,-1,Fec)};_.K(Gec,_.J);var Hec=function(a){_.J.call(this,a)};_.K(Hec,_.J);Iec=function(a){this.H=a};_.Jec=function(a){this.Ld=a};
_.Jec.prototype.getId=function(){return this.Ld};var Kec=function(a){_.J.call(this,a)};_.K(Kec,_.J);Kec.prototype.nj=function(){return _.z(this,1)};var Lec=function(a){_.J.call(this,a)};_.K(Lec,_.J);
var Nec=function(){this.H=this.W=!1;this.No=null;for(var a=this.V=this.O=0;a<_.VBa.length;a++){var b=_.VBa[a];if(b&&b.chrome&&b.chrome.runtime&&b.chrome.runtime.connect){this.W=!0;Mec(this,b);break}}},Mec=function(a,b){a.No=b.chrome.runtime.connect("ciiamoeghmklpofjbocenebdfbgjapaa");a.H=!0;a.No.onDisconnect.addListener(function(){a.H=!1});document.addEventListener("mousemove",function(c){a.O=c.clientX;a.V=c.clientY})};
Nec.prototype.PA=function(a){if(this.W&&this.H){var b=_.y(a,_.oc,2)||new _.oc,c=_.y(a,_.wo,5)||new _.wo,d=_.y(a,_.lI,3)||new _.lI;a=_.yb(a,_.jo,1);a=_.m(a);for(var e=a.next();!e.done;e=a.next())this.No.postMessage({detail:{impression:e.value.Hc(),session_info:b.Hc(),session_invariants:c.Hc(),client_info:d.Hc()}});document.dispatchEvent(new CustomEvent("ripple",{detail:{clientX:this.O,clientY:this.V}}))}};
var Oec=function(){_.po.call(this)};_.K(Oec,_.po);Oec.prototype.Sv=function(){return 1==_.z(_.y(this.H,Dec,7),1)};var Pec=new _.lo("high_frequency_builder");
var Qec=function(a,b,c){a=new _.ri(a);c.Ja(a);var d=new _.nf(c);c.Ja(d);d.listen(a,"tick",b);a.start()};
var Rec=function(){_.po.call(this)};_.K(Rec,_.po);var Sec=function(a,b,c){var d=1E3*Date.now();if(0==b){b=new _.co;var e=new _.Lza;e=_.x(e,1,d);_.G(b,1,e);_.x(b,3,1);_.G(a.H,8,b);_.x(a.H,12,c);_.x(a.H,13,c);_.x(a.H,4,d);_.x(a.H,3,c)}else 1==b&&(b=new _.co,e=new _.Mza,d=_.x(e,1,d),_.G(b,2,d),_.x(b,3,2),_.G(a.H,8,b),_.x(a.H,12,c),_.x(a.H,3,c));return a},Tec=new _.lo("system_builder");
var Uec=function(a,b){_.P.call(this);this.O=a;this.H=new _.zec(b);this.Ja(this.H);this.Eb=new _.nf(this);this.Ja(this.Eb);this.H.Lu()&&this.Eb.listen(this.H,"visibilitychange",this.V)};_.K(Uec,_.P);Uec.prototype.V=function(){if(this.O.hQ()){var a=this.H.VB()?102001:102E3;a=this.O.rG(a,0);this.O.en(a)}};
var Vec=function(a,b,c){c=void 0===c?!1:c;_.P.call(this);this.H=a;this.O=b;this.Ja(this.O);this.W=c;this.V=null};_.K(Vec,_.P);_.g=Vec.prototype;_.g.en=function(a){var b=this.H;_.x(a.H,6,b.W);a=a.build();b.H.add(a);b.V=!0;b=this.O;3<=b.H.H.$b()&&b.O.oe();return new Iec(a)};_.g.rG=function(a,b){a=Sec(Wec(this.H,a),b,this.H.ha++);1==b&&this.H.ka.add(a);return a};_.g.dM=function(){return this.H.O};
_.g.Mw=function(a){var b=this.H,c=_.qo(a,Tec),d=b.ha++,e=_.y(_.y(c.H,_.co,8),_.Mza,2),f=1E3*Date.now();_.x(e,2,f);_.x(c.H,13,d);b.ka.remove(_.z(a.H,12))};_.g.M_=function(){var a=this.O;if(!a.ha||a.H.V){var b=Xec(a.H,691).build();b=Yec(a.H,[b]);a.ka.PA(b)}a.W();this.H.ma=!1;this.V&&(_.ba(this.V),this.V=null)};_.g.N_=function(){var a=this.H,b=Xec(a,716);Zec(a,b);b=b.build();a.H.add(b);a.wa=!0;a.ma=!0;this.O.initialize();this.O.O.oe();this.W&&(this.V=new Uec(this))};_.g.j7=function(){this.O.W();return _.jI(Array.from(this.O.V)).then()};
_.g.hQ=function(){var a=this.H;return a.wa&&a.ma&&!0};
var $ec=function(a,b,c,d,e){_.P.call(this);this.H=a;this.ta=b;this.ka=c;this.O=new _.kI(this.W,3E3,this);this.V=new Set;this.ha=d;this.ma=e||6E4};_.K($ec,_.P);$ec.prototype.initialize=function(){Qec(this.ma,this.O.oe,this.O);Qec(36E5,this.wa,this)};$ec.prototype.W=function(){var a=this;if(0!=this.H.H.$b()&&(!this.ha||this.H.V)){var b=afc(this.H),c=this.ta.PA(b);c&&(_.Th(c,function(){return void a.V.delete(c)}),this.V.add(c))}};
$ec.prototype.wa=function(){var a=this.H,b=Xec(a,1153).build();a.H.add(b);this.O.oe()};
var bfc=function(a){_.P.call(this);this.H=a;this.Ja(this.H)};_.K(bfc,_.P);_.g=bfc.prototype;_.g.en=function(a){a=this.H.en(a);this.j7();return a};_.g.rG=function(a,b){return this.H.rG(a,b)};_.g.dM=function(){return this.H.dM()};_.g.Mw=function(a){return this.H.Mw(a)};_.g.M_=function(){return this.H.M_()};_.g.N_=function(){return this.H.N_()};_.g.j7=function(){return this.H.j7()};_.g.hQ=function(){return this.H.hQ()};
var cfc=function(){};cfc.prototype.AR=function(){return new Oec};
var dfc=function(){this.H=[]};dfc.prototype.add=function(a){this.H.push(a)};dfc.prototype.$b=function(){return this.H.length};
var efc=function(){this.H={}};efc.prototype.add=function(a){this.H[_.z(a.H,12)]=a};efc.prototype.remove=function(a){delete this.H[a]};
var ffc=function(a,b){this.O=a;this.Ba=b;this.ha=1;this.ta=this.W=null;this.ka=new efc;this.H=new dfc;this.ma=this.wa=this.V=!1},Wec=function(a,b){a=_.qo((new _.po).initialize(new _.jo,a.Ba),Tec);_.x(a.H,10,b);return a},afc=function(a){var b=a.H,c=b.H;b.H=[];return Yec(a,c)},Yec=function(a,b){var c=new _.jBa;var d=a.O.O.clone();c=_.G(c,2,d);d=a.O;(d=d.V?d.V.clone():null)&&_.G(c,5,d);var e;d=a.O;for(var f,h=b.length-1;0<=h;h--){var k=_.y(b[h],_.io,5);if(k&&_.y(k,_.wec,1)){k=_.y(k,_.wec,1);_.ej(k,12)&&
void 0===e&&(e=_.Q(k,12));k=_.y(k,Eec,20);if(void 0!==k&&void 0===f){f=new Lec;var l=_.Q(k,2);void 0!==l&&_.x(f,2,l);k=_.Q(k,1);void 0!==k&&_.x(f,1,k)}if(void 0!==e&&void 0!==f)break}}d=d.H?d.H.clone():null;if(void 0!==e||void 0!==f)d||(d=new _.lI),void 0!==e&&_.x(d,6,e),void 0!==f&&_.G(d,13,f);(e=d)&&_.G(c,3,e);a=a.O.ha.clone();_.G(c,4,a);_.mj(c,1,b);return c},Xec=function(a,b){var c=Sec(Wec(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],p=new Hec;k=_.x(p,1,k);l=_.x(k,2,_.z(l.H,10));f.push(l)}d=f}716!=b&&(b=a.ta,_.x(c.H,6,a.W),e=new Gec,b=_.x(e,1,b),d&&_.mj(b,2,d),d=_.ro(c),_.G(d,3,b));Zec(a,c);return c},Zec=function(a,b){a.W=_.z(b.H,12);a.ta=_.z(_.y(_.y(b.H,_.co,8),_.Lza,1),1)};
var gfc=function(){};gfc.prototype.AR=function(){return new Rec};
var hfc=function(){this.H=this.O=null};hfc.prototype.build=function(){null==this.H&&(this.H=new _.KAa);_.to(this.H,Tec,new gfc);_.to(this.H,Pec,new cfc);var a=this.H;var b=this.O;if(!_.ej(_.ifc(b),1)){var c=_.ifc(b),d=new _.$Aa;_.G(c,1,d)}b=_.y(_.ifc(b),_.$Aa,1);a.H=b;b=_.Ya(a.O);for(c=0;c<b.length;c++)b[c].O(a.H);return new ffc(this.O,this.H)};
var jfc=function(){this.O=new _.oc;this.V=null;this.ha=new Kec;_.x(this.ha,1,6);this.H=this.W=null};jfc.prototype.setSessionId=function(a){this.O.setSessionId(a);return this};_.kfc=function(a,b){_.x(a.O,2,b);return a};_.lfc=function(a,b){if(null==a.W){a.W=new _.hBa;var c=_.ifc(a);_.G(c,2,a.W)}_.x(a.W,1,b)};_.ifc=function(a){null==a.V&&(a.V=new _.wo);return a.V};_.mfc=function(a){null==a.H&&(a.H=new _.lI);return a.H};
_.nfc=function(){this.H=this.ha=null;this.W=new jfc;this.V=null;this.ka=this.ma=!1;this.O=null};_.ofc=function(a,b){a.ha=b;return a};_.pfc=function(a,b){a.H=b;return a};_.qfc=function(a,b){a.V=b;return a};_.nfc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.rfc=function(a,b){_.x(a.W.O,6,b);return a};
_.nfc.prototype.build=function(){var a=new hfc;a.O=this.W;null!=this.V&&(a.H=this.V);a=a.build();if(this.ka){var b=new Nec;this.H=this.ha=b}b=new $ec(a,this.ha,this.H,this.ma,this.O);a=new Vec(a,b,!1);this.ka&&(a=new bfc(a));return a};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1fw");

_.mI=function(a){return _.R(a,84,!1)};
_.sfc=function(a){_.J.call(this,a)};_.K(_.sfc,_.J);
_.nI=function(a){_.J.call(this,a)};_.K(_.nI,_.J);_.nI.prototype.getOptions=function(){return _.y(this,_.sfc,1)};_.nI.prototype.Zn=function(){return _.z(this,2)};_.nI.prototype.jd=function(){return _.y(this,_.Af,3)};
_.tfc=function(a){_.J.call(this,a)};_.K(_.tfc,_.J);_.oI=[3,4,5,6,7,8,9,10];
_.ufc=new Map([[157,"categoryReferences"],[5,"hidden"]]);
var xfc;_.vfc={drive:1,appDataFolder:2,photos:3,androidBackup:4};_.wfc=_.fb(_.vfc);xfc={};_.yfc=(xfc[0]="UNSPECIFIED_FEEDBACK",xfc[1]="IMPLICIT_REJECT",xfc[2]="NOT_HELPFUL_RIGHT_NOW",xfc);
var pI,Afc;pI={};_.zfc=(pI[1]="modifiedDate",pI[2]="modifiedByMeDate",pI[3]="quotaBytesUsed",pI[4]="title",pI[6]="lastViewedByMeDate",pI[10]="createdDate",pI[7]="sharedWithMeDate",pI[9]="starred",pI[11]="recency",pI[5]="relevance",pI[12]="trashedDate",pI[13]="lastViewedByMeDate",pI);Afc={};_.Bfc=(Afc[1]="asc",Afc[2]="desc",Afc);
var Cfc,Efc;Cfc={};_.Dfc=(Cfc[1]="0",Cfc[2]="1",Cfc[3]="2",Cfc);Efc={};_.Ffc=(Efc[1]="asc",Efc[2]="desc",Efc);
_.Gfc=new _.lo("drive_dataservice_builder");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Hfc=_.Bg&&0>_.Ra(_.Eg,"533");
_.Ifc=new _.Jec("drive_dataservice_invariants");
_.Jfc=new Map([[[1],1],[[6],7],[[2],2]]);_.Kfc=new Map([[[1],3],[[2],4],[[3],5],[[4],6],[[5],7],[[6],8],[[10],12],[[7],9],[[8],10],[[9],11]]);
_.Lfc=new Map([[12,function(a){return _.Q(a,69)}],[24,function(a){return _.R(a,3,!1)}],[9,function(a){return _.R(a,17,!1)}],[21,function(a){return _.mI(a)}],[13,function(a){return _.Q(a,60)}],[2,function(a){return _.R(a,8,!0)}],[6,function(a){return _.R(a,11,!1)}],[14,function(){return!0}],[16,function(a){return _.R(a,56,!1)}],[17,function(a){return _.R(a,57,!1)}],[18,function(a){return _.R(a,54,!1)}],[19,function(a){return _.R(a,53,!1)}],[23,function(){return!0}],[28,function(){return!0}]]);
_.Mfc=new Map([[34,function(a){return _.R(a,9,!1)}],[33,function(a){return _.R(a,8,!1)}],[29,function(a){return _.R(a,4,!1)}],[32,function(a){return _.R(a,7,!1)}],[40,function(a){return _.R(a,15,!1)}],[43,function(a){return _.R(a,18,!1)}],[42,function(a){return _.R(a,17,!1)}],[44,function(a){return _.R(a,19,!1)}],[45,function(a){return _.R(a,20,!1)}],[30,function(a){return _.R(a,5,!1)}],[31,function(a){return _.R(a,6,!1)}],[35,function(a){return _.R(a,10,!1)}],[39,function(a){return _.R(a,14,!1)}],
[41,function(a){return _.R(a,16,!1)}],[46,function(a){return _.R(a,21,!1)}],[47,function(a){return _.R(a,22,!1)}],[48,function(a){return _.R(a,23,!1)}]]);_.Nfc=new Map([[[1],1],[[2],2],[[3],3],[[4],4],[[5],5]]);
_.Ofc=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],[[251],251],[[243],243],[[244],244],[[245],245],[[246],246],[[247],247],[[248],248],[[249],249],[[250],250],[[252],252],[[253],253],[[254],254],[[255],255],[[256],256],[[257],257],[[258],258]]);_.Pfc=new Map([[[2],3],[[1],2],[[0],1]]);_.Qfc=new Map([[[0],1],[[1],2],[[3],3],[[5],4],[[6],5]]);
_.Rfc=new Map([[[_.Vcc],1],[[_.Wcc],2],[[_.Xcc],3],[[_.Ycc],4],[[_.Zcc],5],[[_.$cc],6],[[_.adc],7],[[_.bdc],8],[[_.cdc],10],[[_.ddc],11],[[_.edc],12],[[_.fdc],13]]);_.Sfc=new Map([[[0],1],[[1],2],[[2],3],[[3],4],[[4],5],[[5],6],[[6],7]]);

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1fz");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1g0");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1g1");

_.qI=function(a){_.J.call(this,a,-1,Tfc)};_.K(_.qI,_.J);_.qI.prototype.qc=function(){return _.z(this,2)};_.rI=function(a,b){return _.x(a,2,b)};_.g=_.qI.prototype;_.g.getItem=function(){return _.y(this,_.Bk,4)};_.g.setItem=function(a){return _.G(this,4,a)};_.g.uc=function(){return _.z(this,7)};_.g.Ela=function(){return _.z(this,13)};_.g.xKa=function(a){_.x(this,13,a)};var Tfc=[8,17];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gd");

var Ufc;Ufc="Y Z E P T G M K  m u n".split(" ");_.Vfc=function(a,b){var c=a;a=c;var d="",e=1;0>c&&(c=-c);if(Infinity===c)b=(Infinity*Math.sign(a)).toString();else{for(var f=0;f<Ufc.length;f++){var h=Ufc[f];e=_.Rwa[h];if(c>=e||1>=e&&c>.1*e){d=h;break}}d||(e=1);b=Math.pow(10,void 0!==b?b:2);b=Math.round(a/e*b)/b+""+d}return b};_.Wfc=function(a){return _.je().get(a,16,void 0)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gs");

_.sI=function(a){return a instanceof Error};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1fy");

var Zfc;_.vI=function(a){if(a instanceof _.Gc)return a;if(_.sI(a)){if(a=_.zda(a))return a}else a="string"===typeof a?_.ZBa(a):_.ZBa("Converting an unexpected reason type to drive.ds.Error which should be drive.ds.Error, Error, or string. Found:"+a);_.tI(a,2);_.uI(a,6);return a};_.Xfc=function(a){var b=a.Wj();a=a.oG();return 15===b||32===b||33===b||401===a};_.Yfc=function(){return _.n.WorkerGlobalScope&&self instanceof _.n.WorkerGlobalScope};_.wI=function(a){return _.xj(a,1,0)};
_.tI=function(a,b){return _.x(a,1,b)};_.uI=function(a,b){return _.x(a,2,b)};Zfc=[8,9,10,13,14,27,28,29,31,32,33,34,38];_.xI=function(a){_.J.call(this,a,-1,Zfc)};_.K(_.xI,_.J);_.g=_.xI.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.x(this,2,a)};_.g.Bf=function(){return _.z(this,3)};_.g.kl=function(a){return _.x(this,3,a)};_.g.px=function(a){return _.x(this,4,a)};
_.g.Qh=function(){return _.Q(this,5)};_.g.Ro=function(a){return _.x(this,5,a)};_.g.getMimeType=function(){return _.z(this,6)};_.g.UE=function(a,b){_.oj(this,8,a,b)};_.g.Mi=function(){return _.z(this,12)};_.g.re=function(){return _.y(this,_.Lf,17)};_.g.nj=function(){return _.z(this,20)};_.g.uc=function(){return _.z(this,21)};_.yI=function(a,b){return _.x(a,16,b)};
_.zI=function(a){_.J.call(this,a,-1,$fc)};_.K(_.zI,_.J);_.zI.prototype.NR=function(){return _.xj(this,2,100)};_.zI.prototype.oP=function(a){return _.x(this,2,a)};_.zI.prototype.re=function(){return _.y(this,_.Lf,6)};_.zI.prototype.uc=function(){return _.z(this,8)};var $fc=[5];
_.agc=new Map([[1,"connected"],[2,"unauthenticated/online"],[3,"offline"]]);
var bgc;bgc={};_.cgc=(bgc[0]="/drive/v2internal",bgc[1]="/drive/v2internal.corp",bgc[2]="/drive/v2internal.scary",bgc[4]="/drive/v2internal.scary",bgc[5]="/drive/v2beta",bgc[6]="/drive/v2.1beta",bgc);
_.dgc=new Set([0,1,2,3]);
_.egc=_.x(new _.xI,15,!0);_.fgc=_.yI(new _.xI,!0);_.ggc=_.yI(new _.xI,!1);
_.hgc=new Map([["CacheSize","Number of items currently in the in-memory cache."],["SecondaryFields","List of secondary fields"],["CachedCorpusType","Type of corpus cached (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."]]);

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1g3");

_.igc=new Set([7,4,5,9,6,10,11,12]);

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gt");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.jgc=function(a){a=_.lb(a);return 0===a.length?_.ija:new _.Ig(a,_.gja)};_.kgc=function(a,b,c){this.blockSize=-1;this.H=a;this.blockSize=c||a.blockSize||16;this.V=Array(this.blockSize);this.O=Array(this.blockSize);a=b;a.length>this.blockSize&&(this.H.update(a),a=this.H.digest(),this.H.reset());for(c=0;c<this.blockSize;c++)b=c<a.length?a[c]:0,this.V[c]=b^92,this.O[c]=b^54;this.H.update(this.O)};_.gg(_.kgc,_.Occ);_.kgc.prototype.reset=function(){this.H.reset();this.H.update(this.O)};
_.kgc.prototype.update=function(a,b){this.H.update(a,b)};_.kgc.prototype.digest=function(){var a=this.H.digest();this.H.reset();this.H.update(this.V);this.H.update(a);return this.H.digest()};_.lgc=function(a,b){a.reset();a.update(b);return a.digest()};
_.mgc=function(){this.blockSize=-1;this.blockSize=64;this.H=[];this.ha=[];this.ka=[];this.W=[];this.W[0]=128;for(var a=1;a<this.blockSize;++a)this.W[a]=0;this.V=this.O=0;this.reset()};_.gg(_.mgc,_.Occ);_.mgc.prototype.reset=function(){this.H[0]=1732584193;this.H[1]=4023233417;this.H[2]=2562383102;this.H[3]=271733878;this.H[4]=3285377520;this.V=this.O=0};
var ngc=function(a,b,c){c||(c=0);var d=a.ka;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.H[0];c=a.H[1];var h=a.H[2],k=a.H[3],l=a.H[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=k^c&(h^k);var p=1518500249}else f=c^h^k,p=1859775393;else 60>e?(f=c&h|k&(c|h),p=2400959708):
(f=c^h^k,p=3395469782);f=(b<<5|b>>>27)+f+l+p+d[e]&4294967295;l=k;k=h;h=(c<<30|c>>>2)&4294967295;c=b;b=f}a.H[0]=a.H[0]+b&4294967295;a.H[1]=a.H[1]+c&4294967295;a.H[2]=a.H[2]+h&4294967295;a.H[3]=a.H[3]+k&4294967295;a.H[4]=a.H[4]+l&4294967295};
_.mgc.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.ha,f=this.O;d<b;){if(0==f)for(;d<=c;)ngc(this,a,d),d+=this.blockSize;if("string"===typeof a)for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.blockSize){ngc(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.blockSize){ngc(this,e);f=0;break}}this.O=f;this.V+=b}};
_.mgc.prototype.digest=function(){var a=[],b=8*this.V;56>this.O?this.update(this.W,56-this.O):this.update(this.W,this.blockSize-(this.O-56));for(var c=this.blockSize-1;56<=c;c--)this.ha[c]=b&255,b/=256;ngc(this,this.ha);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.H[c]>>d&255,++b;return a};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1fx");

_.AI=function(a,b){return _.x(a,82,b)};_.BI=function(a){return _.R(a,3,!1)};_.CI=function(a){return _.x(a,3,!0)};_.ogc=function(a,b){return _.x(a,7,b)};
_.pgc=new Map([[1,6],[2,6],[3,6],[9,6],[4,2],[8,2],[6,7],[7,8]]);
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.DI={q0:"Versions",d8:"Metadata",S6:"Data",aV:"Offline"};_.qgc=new Map([[_.DI.q0,"versionKey"],[_.DI.d8,"k"]]);_.rgc=new Set([1004]);

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1ga");

_.sgc=function(a){_.J.call(this,a)};_.K(_.sgc,_.J);_.g=_.sgc.prototype;_.g.getKey=function(){return _.z(this,1)};_.g.wt=function(){return _.ej(this,1)};_.g.Wa=function(){return _.z(this,2)};_.g.Hb=function(a){return _.x(this,2,a)};_.g.Di=function(){return _.vb(this,2)};_.g.Ng=function(){return _.ej(this,2)};
_.EI=function(a){_.J.call(this,a,-1,tgc)};_.K(_.EI,_.J);_.EI.prototype.fA=function(){return _.z(this,1)};_.EI.prototype.getUrl=function(){return _.z(this,3)};var tgc=[2,4,6];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gv");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.ugc=function(a,b,c){c&&(a=_.ch(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=_.bh(a));return a};_.FI=function(){return"goog_"+_.Wja++};_.vgc=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};
_.GI=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};_.GI.prototype.clone=function(){return new _.GI(this.start,this.end)};_.HI=function(a){return a.end-a.start};
_.wgc=function(a,b,c){void 0===c&&(c=a.size);return a.slice?a.slice(b,c):null};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gw");

var Bgc,Dgc;_.xgc=function(a){var b={};_.Ta(a,function(c,d){b[d.toLowerCase()]=c});return b};_.ygc=function(a){return(a=a&&_.xgc(a))&&a["x-guploader-uploadid"]};_.zgc=function(a){return(a=a&&_.xgc(a))&&a["x-google-trace"]};_.II=function(a,b){return _.x(a,14,b)};
_.Cgc=function(a,b,c,d,e,f,h,k,l){l=void 0===l?!1:l;if(!_.Agc(a))return null;e=Bgc(e)||new _.Gc;_.x(e,8,!0);k&&(k=_.Ui(new _.Ti(k),void 0).toString(),_.x(e,19,k));e.oG()||_.x(e,15,a||f);e.getMessage()||_.Co(e,["HTTP status code: "+a,"HTTP status text: "+b,"XHR error code: "+f,"XHR error text: "+h].join(", "));_.z(e,4)||_.Do(e,d);e.Wj()||(5===f?_.II(e,7):0!==a||d?403===a?_.II(e,22):503===a||429===a?_.II(e,24):(_.vb(e,14),_.x(e,10,1),_.x(e,8,!0)):l||_.II(e,2));e.Sda(_.ygc(c));e.Hda(_.zgc(c));return e};
Bgc=function(a){if(!_.Ea(a))return null;var b=new _.Gc,c=a.error;if(!c)return _.Do(b,JSON.stringify(a)),null;_.x(b,15,c.code);_.Co(b,c.message);a=c.errors&&c.errors[0];if(!a)return b;c=a.reason;var d=Dgc[c];d?_.x(b,10,d):c&&!d&&_.x(b,10,2);(a=a.debugInfo)&&_.Do(b,a);return b};_.Agc=function(a){return 200===a||204===a||308===a||206===a?!1:!0};
Dgc={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,expiredMoveValidationToken:66,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,tooManySourceIdsForMove:65,tooManyUnmovableFiles:54,transientError:13,userCannotCreateFileForMimeType:51,userRateLimitExceeded:7,richContentLimitExceeded:55,numChildrenLimitExceeded:56,
sharedDriveInitializationInProgress:68,shortcutLimitExceeded:57,shortcutPerCreatorLimitExceeded:58,simultaneousPreflightLimitExceeded:67,mimeTypeSizeExceeded:60,onlyCriticalWritesAllowed:61,wrappedKeyExceededLimit:62,permissionDenied:69};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1g6");

_.Egc=function(a){for(var b in a)delete a[b]};_.JI=function(a,b){if(a.H)return a=a.H.responseText,b&&0==a.indexOf(b)&&(a=a.substring(b.length)),(0,_.cma)(a)};_.KI=function(a){return _.R(a,5,!1)};_.Fgc=function(a,b){var c=_.y(a.H,_.Nza,9);null==c&&(c=new _.Nza);var d=_.x(c,5,_.z(b.H,10));_.x(d,2,_.z(b.H,12));_.G(a.H,9,c)};_.Ggc=function(a,b){a=_.yi(a);b=_.yi(b);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]};
_.Hgc=function(a){var b=_.Oma(a);if("undefined"==typeof b)throw Error("V");var c=new _.Wi(null,void 0);a=_.Nma(a);for(var d=0;d<b.length;d++){var e=b[d],f=a[d];Array.isArray(f)?_.Yma(c,e,f):c.add(e,f)}return c};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1g7");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1g9");

var Igc,Jgc,Mgc,Qgc,Rgc,Sgc,Tgc,Ugc,lhc,FJ,mhc,nhc,uhc,Ahc,Mhc,Ngc,iic,kic,mic,oic,Kic,Oic,Pic,Qic,Sic,Uic,cK,eK,Xic,Yic,ajc,bjc,cjc,djc,ejc,fjc,ijc,kjc,ljc,Djc,Hjc,Jjc,Kjc,Ljc,Rjc,Sjc,Bhc,akc,bkc,Xjc,ckc,Yjc,ekc,fkc,lkc,kkc,jkc,hkc,ikc,ehc,fhc,ohc,mkc,phc,qhc,rhc,shc,thc,nkc,pkc;_.LI=function(){var a=_.gc.apply(0,arguments);return function(b){return a.some(function(c){return c(b)})}};_.MI=function(a,b,c){var d=new _.Gc,e=_.fla(_.MI);_.x(d,20,e);_.uI(d,a);_.tI(d,b?b:2);c&&_.II(d,c);return d};
_.NI=function(a){var b;a instanceof _.Gc?b=new _.Hc(null,a):_.sI(a)?b=a:b=_.n.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=_.fla(_.NI));return b};Igc=function(a){return 7===a.Wj()||24===a.Jp()&&(a=a.oG(),503===a||429===a)?!0:!1};Jgc=function(a,b){return b?b+"("+a+")":a};
_.OI=function(a,b,c){var d={},e=[];b&&e.push("kind");a.sEb&&e.push("searchResultSource");a.fields.forEach(function(p){if(!_.Kgc.includes(p)){var q=_.qjb.get(p);if(q){var r=_.tjb[p];a.iF&&r&&(q=r);a.anonymous&&(a.iF?(p=_.sjb[p])&&(q=p):(p=_.rjb[p])&&(q=p));q.split(",").forEach(function(v){var w=_.$ja(v,"/",1);1<w.length?(d[w[0]]||(d[w[0]]=[]),d[w[0]].push(w[1])):e.push(v)})}}});for(var f={},h=_.m(Object.entries(d)),k=h.next();!k.done;f={K6:f.K6},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;
f.K6=[];l.forEach(function(p){return function(q){p.K6.push(q)}}(f));"owners"==k&&b&&f.K6.push("kind");e.push(Jgc(f.K6.join(","),k))}return Jgc(e.join(","),c)};_.Lgc=function(a){var b=new _.so;b.append(_.OI(a,!0));return b.toString()};Mgc=function(a){a=a.filter(function(b){return!_.qjb.has(b)});if(a.length)throw Error("nd`"+a.join(", "));};
_.Pgc=function(a){if(a){var b=a.getMimeType();b&&_.hG(a,b.toLowerCase());Ngc(a,_.yb(a,Ogc,58).map(function(c){var d=c.getMimeType();d&&_.x(c,1,d.toLowerCase());return c}))}};Qgc=function(a,b){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;_.Zi(b,c,d)}};Rgc=function(a,b){b&&Qgc({openDrive:!!_.R(b,2,!1),reason:_.z(b,1)||0,syncType:_.z(b,3)||0,errorRecovery:!!_.R(b,4,!1)},a)};Sgc=function(a){return 10>a?"0"+a:""+a};
Tgc=function(a){if(_.ab(a))return"\r\n";var b="";_.Ta(a,function(c,d){b+=d+": "+c+"\r\n"});return b};Ugc=function(a){a=_.Co(_.II(_.tI(new _.Gc,2),39),"Multiple resource key definitions found for itemId "+a);throw _.xd(a);};
lhc=function(a){if(a instanceof _.PI)return"request access";if(a instanceof _.QI)return"admin migrate to TD";if(a instanceof _.RI)return"authorize app";if(a instanceof _.SI)return"copy item";if(a instanceof _.TI)return"change category links";if(a instanceof _.UI)return"create item";if(a instanceof _.VI)return"create ws";if("undefined"!=typeof _.WI&&a instanceof _.WI)return"delete app";if("undefined"!=typeof _.XI&&a instanceof _.XI)return"delete backup";if(a instanceof _.YI)return"delete item";if("undefined"!=
typeof _.ZI&&a instanceof _.ZI)return"delete permission";if(a instanceof _.$I)return"delete revision";if(a instanceof _.aJ)return"delete TD";if(a instanceof _.oD)return"delete pref";if(a instanceof _.bJ)return"delete ws";if(a instanceof _.cJ)return"download item";if(a instanceof _.dJ||a instanceof _.eJ)return"empty trash";if(a instanceof _.fJ)return"find by ID";if(a instanceof _.aG)return"find by IDs";if(a instanceof _.Vgc)return"item export start";if("undefined"!=typeof _.gJ&&a instanceof _.gJ)return"get app";
if("undefined"!=typeof _.hJ&&a instanceof _.hJ)return"insert app";if("undefined"!=typeof _.iJ&&a instanceof _.iJ)return"insert permission";if(a instanceof _.nI)return a=a.jd(),_.jJ(a)?"quick access item query":_.kJ(a)?"people predict item query":_.lJ(a)?"drive priority query":"item query";if("undefined"!=typeof _.mJ&&a instanceof _.mJ)return"list android backup items request";if(a instanceof _.oJ){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 _.Wgc&&a instanceof _.Wgc?"list backups":a instanceof _.zI?"list changes":a instanceof _.pJ?"list permissions":"undefined"!=typeof _.qJ&&a instanceof _.qJ?"list revisions":a instanceof _.rJ?"migrate to shared drive":a instanceof _.sJ?"partial download item":a instanceof _.tJ?"people api":a instanceof _.$F?"get published category":"undefined"!=typeof _.uJ&&a instanceof _.uJ?"get remaining changes":
a instanceof _.vJ?"remove item":"undefined"!=typeof _.wJ&&a instanceof _.wJ?"reparent item":a instanceof _.xJ?"restore item":a instanceof _.eG?"list suggested workspace items":a instanceof _.$z?"list suggested workspaces":"undefined"!=typeof _.yJ&&a instanceof _.yJ?"update app":a instanceof _.zJ?"update category metadata":a instanceof _.xI?"update item":a instanceof _.AJ?"update revision":a instanceof _.BJ?"update TD":a instanceof _.pD?"update pref":a instanceof _.CJ?"update ws":a instanceof _.PH?
"get account":a instanceof _.gG?"get workspace":a instanceof _.Xgc?"list activity":a instanceof _.Ygc?"list category metadata":a instanceof _.Zgc?"create TD":"undefined"!=typeof _.$gc&&a instanceof _.$gc?"item export cancel":"undefined"!=typeof _.ahc&&a instanceof _.ahc?"item export status":"undefined"!=typeof _.bhc&&a instanceof _.bhc?"generate cse token":"undefined"!=typeof _.chc&&a instanceof _.chc?"get largest change ID":a instanceof _.nD?"list prefs":a instanceof _.DJ?"multipart upload":a instanceof
_.dhc?"list published categories":a instanceof ehc?"init resumable upload":a instanceof fhc?"resumable upload chunk":a instanceof _.ghc?"resumable upload":a instanceof _.fG?"get TD":"undefined"!=typeof _.hhc&&a instanceof _.hhc?"move TD preflight":a instanceof _.EJ?"list TDs":"undefined"!=typeof _.ihc&&a instanceof _.ihc?"get TD stats":a instanceof _.jhc?"test connection":"undefined"!=typeof _.khc&&a instanceof _.khc?"list workspaces":"unknown"};
FJ=function(a,b,c){null!=c&&(Array.isArray(c)?0<c.length&&a.push(b+": "+c.join(", ")):a.push(b+": "+c))};mhc=function(a){if(a instanceof _.UI||a instanceof _.DJ||a instanceof _.ghc||a instanceof ehc||a instanceof fhc)return(new _.GJ).Dc(8);throw Error("wf");};nhc=function(a){if(a instanceof _.xI){var b=_.lj(_.vb(a.clone(),1),17);b=_.wj(b,_.egc)}else b=!1;b||(a instanceof _.xI?(a=_.lj(_.vb(a.clone(),1),17),b=_.wj(a,_.fgc)||_.wj(a,_.ggc)):b=!1);return b?!1:!0};
_.HJ=function(a){return ohc.includes(a.constructor)?nhc(a):!1};
uhc=function(a,b){var c;if(phc.includes(a.constructor))return!0;if(b){if(_.R(b,54,!1)&&qhc.includes(a.constructor))return!0;var d=_.IJ(b);if(d&&!_.R(d,7,!1)&&rhc.includes(a.constructor)&&!_.JJ(a)||_.R(b,56,!1)&&_.JJ(a)||_.R(b,57,!1)&&shc.includes(a.constructor)||!(!_.R(b,53,!1)||qhc.includes(a.constructor)||rhc.includes(a.constructor)||_.JJ(a)||shc.includes(a.constructor)||thc.includes(a.constructor))||(null===(c=_.IJ(b))||void 0===c?0:_.R(c,20,!1))&&a.constructor===_.tJ)return!0}return!1};
Ahc=function(a,b){var c,d={};_.Se(_.hh(a.getTitle()))||(_.z(a,12)?d.originalFilename=a.getTitle():d.title=a.getTitle());if(a.getMimeType()&&(d.mimeType=a.getMimeType(),a.qc()&&_.Bga(a.getMimeType())&&b)){var e=b.mma(),f=b.H(),h={encryptionState:"encrypted"};h.decryptionMetadata={wrappedKey:_.dj(b.V()),kaclsId:null!==(c=b.wa())&&void 0!==c?c:void 0,aes256GcmChunkSize:vhc[e?e.H():0],keyFormat:whc[f?f.H():0]};d.clientEncryptionDetails=h}_.xhc(d,_.re(a,3));if(b=a.qc())d.id=b;_.z(a,16)&&(d.embeddingParent=
_.z(a,16));a.U2()&&(d.shortcutDetails={targetId:a.U2()});"number"===typeof _.z(a,26)&&(d.modifiedDate=_.yhc(_.zhc(_.z(a,26)||0)));return d};_.xhc=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)}}};
_.KJ=function(a,b,c,d,e){if(_.R(a,89,!1)){if(c&&c.length&&d){c=b.concat(Bhc(d,c));var f=void 0===f?!1:f;a=new Map;b=[];c=_.m(c);for(d=c.next();!d.done;d=c.next()){d=d.value;var h=d.getId();a.has(h)?f&&a.get(h)!==_.fl(d)&&Ugc(h):(a.set(h,_.fl(d)),b.push(d))}f=b}else f=b;f.length&&(f=_.EA(f),f.length&&(e["X-Goog-Drive-Resource-Keys"]=f))}};_.Chc=function(a){var b=new _.mk;return _.x(b,1,a)};_.Dhc=function(a,b){return _.x(a,7,b)};_.Ehc=function(a,b){return _.x(a,8,b)};
_.Fhc=function(a,b){return _.x(a,11,b)};_.Ghc=function(a,b){return _.x(a,16,b)};_.LJ=function(a){_.J.call(this,a)};_.K(_.LJ,_.J);_.Hhc=function(a){_.J.call(this,a)};_.K(_.Hhc,_.J);var Ogc=function(a){_.J.call(this,a)};_.K(Ogc,_.J);Ogc.prototype.getMimeType=function(){return _.z(this,1)};Ogc.prototype.getUrl=function(){return _.z(this,2)};_.MJ=function(a){_.J.call(this,a)};_.K(_.MJ,_.J);_.MJ.prototype.Ce=function(){return _.z(this,2)};_.MJ.prototype.oh=function(a){return _.x(this,2,a)};
_.MJ.prototype.Ah=function(a){return _.x(this,3,a)};_.Ihc=function(a){_.J.call(this,a)};_.K(_.Ihc,_.J);_.Jhc=function(a,b){return _.x(a,1,b)};_.Khc=function(a,b){return _.mj(a,2,b)};_.Lhc=function(a,b){return _.mj(a,3,b)};Mhc=[2];_.NJ=function(a){_.J.call(this,a,-1,Mhc)};_.K(_.NJ,_.J);_.NJ.prototype.Bf=function(){return _.z(this,1)};_.NJ.prototype.kl=function(a){return _.x(this,1,a)};_.NJ.prototype.Wwa=function(a,b){return _.oj(this,2,a,b)};_.OJ=function(a){_.J.call(this,a)};_.K(_.OJ,_.J);
_.OJ.prototype.Ce=function(){return _.z(this,1)};_.OJ.prototype.oh=function(a){return _.x(this,1,a)};_.OJ.prototype.Ah=function(a){return _.x(this,2,a)};_.PJ=function(a,b){return _.kj(a,2,b)};_.Nhc=function(a,b){return _.mj(a,15,b)};_.Ohc=function(a,b){return _.G(a,17,b)};_.Phc=function(a,b){return _.x(a,19,b)};_.Qhc=function(a,b){_.x(a,34,b)};_.Rhc=function(a,b){_.G(a,47,b)};_.Shc=function(a,b){return _.x(a,52,b)};Ngc=function(a,b){_.mj(a,58,b)};_.Thc=function(a,b){return _.x(a,72,b)};
_.QJ=function(a,b){return _.G(a,84,b)};_.Uhc=function(a,b){_.G(a,85,b)};_.Vhc=function(a,b){_.G(a,91,b)};_.Whc=function(a,b){return _.x(a,92,b)};_.Xhc=function(a,b){return _.x(a,93,b)};_.Yhc=function(a,b){_.G(a,95,b)};_.Zhc=function(a,b){return _.x(a,136,b)};_.$hc=function(a){_.J.call(this,a)};_.K(_.$hc,_.J);_.RJ=function(a){return _.R(a,2,!1)};_.aic=function(a){_.J.call(this,a)};_.K(_.aic,_.J);var bic=[3],cic=function(a){_.J.call(this,a,-1,bic)};_.K(cic,_.J);
cic.prototype.yi=function(){var a=_.re(this,3,!1);this.ka||(this.ka={});if(!this.ka[3]){for(var b=0;b<a.length;b++)a[b]=!!a[b];this.ka[3]=!0}_.qb(this)&&_.rb(a);return a};cic.prototype.An=function(a){return _.kj(this,3,a)};var dic=[3],eic=function(a){_.J.call(this,a,-1,dic)};_.K(eic,_.J);eic.prototype.yi=function(){return _.re(this,3)};eic.prototype.An=function(a){return _.kj(this,3,a)};var fic=[3],gic=function(a){_.J.call(this,a,-1,fic)};_.K(gic,_.J);
gic.prototype.yi=function(){return _.re(this,3)};gic.prototype.An=function(a){return _.kj(this,3,a)};_.SJ=function(a){_.J.call(this,a)};_.K(_.SJ,_.J);_.SJ.prototype.Wa=function(){return _.z(this,1)};_.SJ.prototype.Hb=function(a){return _.x(this,1,a)};_.SJ.prototype.Di=function(){return _.vb(this,1)};_.SJ.prototype.Ng=function(){return _.ej(this,1)};_.TJ=function(a){return _.ij(a,45,1)};_.jJ=function(a){return _.R(a,47,!1)};_.kJ=function(a){return _.R(a,49,!1)};_.lJ=function(a){return _.R(a,52,!1)};
_.UJ=function(a){return _.C(a,2,"")};_.IJ=function(a){return _.y(a,_.aic,4)};_.VJ=function(a){return _.R(a,10,!1)};_.hic=function(a,b){return _.kj(a,27,b)};_.WJ=function(a){return _.ij(a,39,0)};_.XJ=function(a){return _.R(a,40,!1)};_.yhc=function(a){return _.kt.prototype.AP.call(a,!0)+"T"+_.gh(a.getHours(),2)+":"+_.gh(a.getMinutes(),2)+":"+_.gh(a.getSeconds(),2)+a.saa()};iic=function(a,b){return _.kdc(a,"getAllKeys","getting all keys index "+a.getName(),b,void 0)};
_.jic=function(a,b){try{a.H.deleteObjectStore(b)}catch(c){throw _.XH(c,"deleting object store "+b);}};kic=function(){var a=new _.nfc;a.O=12E4;a.ma=!0;return a};_.lic=function(a){_.J.call(this,a)};_.K(_.lic,_.J);mic=[3,4,10,18,19,28];_.UI=function(a){_.J.call(this,a,-1,mic)};_.K(_.UI,_.J);_.g=_.UI.prototype;_.g.getMimeType=function(){return _.z(this,1)};_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.x(this,2,a)};_.g.UE=function(a,b){_.oj(this,3,a,b)};
_.g.re=function(){return _.y(this,_.Lf,7)};_.g.mj=function(){return _.z(this,9)};_.g.uc=function(){return _.z(this,14)};_.g.Zz=function(){return _.y(this,_.lic,15)};_.g.U2=function(){return _.z(this,21)};_.g.qc=function(){return _.z(this,23)};_.g.Li=function(){return _.z(this,33)};_.YJ=function(a,b){return _.x(a,1,b)};_.ZJ=function(a,b){return _.kj(a,3,b)};_.nic=function(a,b){return _.x(a,12,b)};_.YI=function(a){_.J.call(this,a)};_.K(_.YI,_.J);_.YI.prototype.getId=function(){return _.z(this,1)};
_.YI.prototype.Nb=function(a){return _.x(this,1,a)};_.YI.prototype.re=function(){return _.y(this,_.Lf,3)};_.aJ=function(a){_.J.call(this,a)};_.K(_.aJ,_.J);_.aJ.prototype.getId=function(){return _.z(this,1)};_.aJ.prototype.Nb=function(a){return _.x(this,1,a)};_.aJ.prototype.re=function(){return _.y(this,_.Lf,2)};oic=[7,8];_.BJ=function(a){_.J.call(this,a,-1,oic)};_.K(_.BJ,_.J);_.g=_.BJ.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};
_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.x(this,2,a)};_.g.re=function(){return _.y(this,_.Lf,4)};_.EJ=function(a){_.J.call(this,a)};_.K(_.EJ,_.J);_.EJ.prototype.getOptions=function(){return _.y(this,_.sfc,1)};_.EJ.prototype.Zn=function(){return _.z(this,2)};_.EJ.prototype.jd=function(){return _.y(this,_.RH,3)};var pic=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}},qic=null,ric=function(){this.O=0;this.H=[]};_.g=ric.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=sic(this,a);return this.H[a]};_.g.set=function(a,b){a=sic(this,a);this.H[a]=b};_.g.$b=function(){return this.H.length};_.g.lc=function(){return 0==this.H.length};_.g.clear=function(){this.O=this.H.length=0};_.g.jh=function(){var a=this.$b(),b=this.$b(),c=[];for(a=this.$b()-a;a<b;a++)c.push(this.get(a));return c};_.g.Qf=function(){for(var a=[],b=this.$b(),c=0;c<b;c++)a[c]=c;return a};
_.g.qf=function(a){return a<this.$b()};_.g.Rq=function(a){for(var b=this.$b(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};var sic=function(a,b){if(b>=a.H.length)throw Error("na");return 40>a.H.length?b:(a.O+Number(b))%40},tic=function(a){_.J.call(this,a)};_.K(tic,_.J);_.uic=function(a){_.J.call(this,a)};_.K(_.uic,_.J);_.uic.prototype.We=function(){return _.z(this,1)};_.uic.prototype.ti=function(a){return _.x(this,1,a)};_.uic.prototype.Cb=function(){return _.z(this,4)};
_.uic.prototype.Dc=function(a){return _.x(this,4,a)};var vic=function(a){_.J.call(this,a)};_.K(vic,_.J);vic.prototype.Xo=function(){return _.z(this,5)};var wic=function(a,b){_.x(a,6,b)},xic=function(a){_.J.call(this,a)};_.K(xic,_.J);_.g=xic.prototype;_.g.Qkb=function(a){return _.x(this,1,a)};_.g.OSb=function(a){return _.x(this,2,a)};_.g.Py=function(){return _.Q(this,3)};_.g.Rkb=function(a){return _.x(this,3,a)};_.g.oSb=function(a){return _.x(this,4,a)};_.g.qSb=function(a){return _.x(this,5,a)};
_.g.ASb=function(a){return _.x(this,6,a)};_.g.QSb=function(a){_.x(this,7,a)};var yic=function(a){_.J.call(this,a)};_.K(yic,_.J);yic.prototype.Py=function(){return _.Q(this,2)};var zic=function(a,b){return _.x(a,2,b)},Aic=function(a,b){_.x(a,3,b)};yic.prototype.LB=function(){return _.z(this,6)};var Bic=function(a,b){return _.x(a,8,b)},Cic=function(a){_.J.call(this,a)};_.K(Cic,_.J);var Dic=function(a){_.J.call(this,a)};_.K(Dic,_.J);var Eic=function(a,b){_.x(a,4,b)},Fic=function(a){_.J.call(this,a)};
_.K(Fic,_.J);Fic.prototype.jd=function(){return _.y(this,_.uic,1)};Fic.prototype.getState=function(){return _.y(this,vic,2)};Fic.prototype.Id=function(a){return _.G(this,2,a)};Fic.prototype.xt=function(){return _.ej(this,2)};var Gic=function(a){_.J.call(this,a)};_.K(Gic,_.J);Gic.prototype.Hj=function(){return _.z(this,1)};Gic.prototype.getEnvironment=function(){return _.z(this,2)};Gic.prototype.setEnvironment=function(a){return _.x(this,2,a)};_.zhc=function(a){var b=new _.$Ma;b.setTime(a);return b};
_.Hic=function(){var a=void 0===a?3E3:a;this.O=new _.Kk;this.H=new _.Kk;this.startTime=Date.now();this.V=!1;this.W=Math.ceil(a/2);this.ha=Math.floor(a/2)};_.Iic=function(a){var b=a.O.jh();a.V&&b.push({logName:"...",message:"...",level:"...",totalTime:"..."});_.Ca(b,a.H.jh());return b};_.Jic=function(a){var b=[];a=_.Iic(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")};
_.Hic.prototype.info=function(a,b){_.$J(this,a,b,"info")};_.Hic.prototype.config=function(a,b){_.$J(this,a,b,"config")};_.Hic.prototype.log=function(a,b,c){if(!qic){qic={};for(var d=0,e;e=_.kla[d];d++)qic[e.value]=e,qic[e.name]=e}_.$J(this,a,b,c)};_.$J=function(a,b,c,d){a.H.$b()>=a.ha&&(a.V=!0,_.Lk(a.H));var e=Date.now()-a.startTime;b={logName:b,message:c,level:d,totalTime:1E3<e?(e/1E3).toFixed(1)+"s":e+"ms"};a.O.$b()<a.W?a.O.enqueue(b):a.H.enqueue(b)};_.Kgc=[42,1005,20,50,18,1003,1002];
_.aK=function(a){_.J.call(this,a)};_.K(_.aK,_.J);_.aK.prototype.getId=function(){return _.z(this,1)};_.aK.prototype.Nb=function(a){return _.x(this,1,a)};_.aK.prototype.getMimeType=function(){return _.z(this,2)};Kic=[22];_.GJ=function(a){_.J.call(this,a,-1,Kic)};_.K(_.GJ,_.J);_.g=_.GJ.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.getItem=function(){return _.y(this,_.Bk,2)};_.g.setItem=function(a){return _.G(this,2,a)};
_.g.Yj=function(){return _.z(this,3)};_.g.JB=function(){return _.y(this,_.aK,4)};_.g.qc=function(){return _.z(this,5)};_.Lic=function(a,b){return _.x(a,5,b)};_.g=_.GJ.prototype;_.g.rK=function(){return _.z(this,7)};_.g.Sda=function(a){return _.x(this,7,a)};_.g.Ega=function(a){_.x(this,9,a)};_.g.jPa=function(a){_.x(this,10,a)};_.g.tN=function(){return _.z(this,16)};_.g.Hda=function(a){return _.x(this,16,a)};
var Mic=function(a){var b=new _.Uh;a.listen("loadend",_.Ob(function(c,d){var e=d.ak(),f=d.getError();null==e||f?c.Gd(f):c.callback(e);d.dispose()},b,a));return b},Nic=function(a){_.hi.call(this,a);this.H=_.Swb.get(a)};_.K(Nic,_.hi);_.RI=function(a){_.J.call(this,a)};_.K(_.RI,_.J);_.RI.prototype.Jh=function(){return _.z(this,1)};_.RI.prototype.qc=function(){return _.z(this,2)};_.RI.prototype.re=function(){return _.y(this,_.Lf,4)};_.PI=function(a){_.J.call(this,a)};_.K(_.PI,_.J);
_.PI.prototype.qc=function(){return _.z(this,1)};_.QI=function(a){_.J.call(this,a)};_.K(_.QI,_.J);_.QI.prototype.getId=function(){return _.z(this,1)};_.QI.prototype.Nb=function(a){return _.x(this,1,a)};_.QI.prototype.Zj=function(){return _.z(this,2)};_.QI.prototype.H=function(a){_.x(this,4,a)};Oic=[3,7];_.SI=function(a){_.J.call(this,a,-1,Oic)};_.K(_.SI,_.J);_.g=_.SI.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};
_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.x(this,2,a)};_.g.UE=function(a,b){_.oj(this,3,a,b)};_.g.re=function(){return _.y(this,_.Lf,5)};_.$I=function(a){_.J.call(this,a)};_.K(_.$I,_.J);_.$I.prototype.qc=function(){return _.z(this,1)};_.$I.prototype.re=function(){return _.y(this,_.Lf,3)};_.dJ=function(a){_.J.call(this,a)};_.K(_.dJ,_.J);_.dJ.prototype.re=function(){return _.y(this,_.Lf,1)};_.vJ=function(a){_.J.call(this,a)};_.K(_.vJ,_.J);_.g=_.vJ.prototype;
_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};_.g.getParent=function(){return _.z(this,2)};_.g.Ug=function(a){return _.x(this,2,a)};_.g.re=function(){return _.y(this,_.Lf,3)};_.xJ=function(a){_.J.call(this,a)};_.K(_.xJ,_.J);_.g=_.xJ.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};_.g.getParent=function(){return _.z(this,2)};_.g.Ug=function(a){return _.x(this,2,a)};_.g.re=function(){return _.y(this,_.Lf,3)};
_.AJ=function(a){_.J.call(this,a)};_.K(_.AJ,_.J);_.AJ.prototype.qc=function(){return _.z(this,1)};_.AJ.prototype.re=function(){return _.y(this,_.Lf,4)};_.VI=function(a){_.J.call(this,a)};_.K(_.VI,_.J);_.VI.prototype.getTitle=function(){return _.z(this,1)};_.VI.prototype.setTitle=function(a){return _.x(this,1,a)};_.VI.prototype.re=function(){return _.y(this,_.Lf,2)};_.bJ=function(a){_.J.call(this,a)};_.K(_.bJ,_.J);_.bJ.prototype.getId=function(){return _.z(this,1)};
_.bJ.prototype.Nb=function(a){return _.x(this,1,a)};_.bJ.prototype.re=function(){return _.y(this,_.Lf,3)};_.CJ=function(a){_.J.call(this,a)};_.K(_.CJ,_.J);_.g=_.CJ.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.x(this,2,a)};_.g.getState=function(){return _.z(this,3)};_.g.Id=function(a){return _.x(this,3,a)};_.g.xt=function(){return _.ej(this,3)};
_.g.re=function(){return _.y(this,_.Lf,5)};Pic=[2,3];_.TI=function(a){_.J.call(this,a,-1,Pic)};_.K(_.TI,_.J);_.TI.prototype.uc=function(){return _.z(this,1)};_.TI.prototype.re=function(){return _.y(this,_.Lf,4)};Qic=[3,4];_.oJ=function(a){_.J.call(this,a,-1,Qic)};_.K(_.oJ,_.J);_.oJ.prototype.getType=function(){return _.z(this,1)};_.oJ.prototype.re=function(){return _.y(this,_.Lf,2)};_.Ric=function(a){_.J.call(this,a)};_.K(_.Ric,_.J);_.g=_.Ric.prototype;_.g.getKey=function(){return _.z(this,1)};
_.g.wt=function(){return _.ej(this,1)};_.g.Wa=function(){return _.z(this,2)};_.g.Hb=function(a){return _.x(this,2,a)};_.g.Di=function(){return _.vb(this,2)};_.g.Ng=function(){return _.ej(this,2)};_.g.Bf=function(){return _.z(this,3)};_.g.kl=function(a){return _.x(this,3,a)};_.g.getType=function(){return _.z(this,4)};Sic=[1];_.Tic=function(a){_.J.call(this,a,-1,Sic)};_.K(_.Tic,_.J);_.rJ=function(a){_.J.call(this,a)};_.K(_.rJ,_.J);_.rJ.prototype.H=function(a){_.x(this,4,a)};Uic=[1];
_.tJ=function(a){_.J.call(this,a,-1,Uic)};_.K(_.tJ,_.J);_.Vic=function(a){this.O=new Set;this.H=[].concat(_.fc(_.re(a,27)));this.initialize(a)};_.Vic.prototype.initialize=function(a){this.H.push(21);this.H.push(70);this.H.push(83);this.H.push(87);_.KI(_.fI(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));_.Ga(this.H);this.H.sort();Mgc(this.H)};_.bK=function(a){return[].concat(_.fc(a.H))};
_.Wic={1:"default",2:"teamDrive",3:"default,allTeamDrives"};cK=function(a){return"'"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"};_.dK=function(a,b,c){0!==b.length&&(a.SI.length&&a.append(" "+(c||"and")+" "),a.append(b))};eK=function(a,b,c,d){if(c){var e=[];(void 0===d?0:d)&&e.push("not");e.push(cK(c));e.push("in");e.push(b);_.dK(a,e.join(" "))}};_.fK=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());_.dK(a,e.join(" "),d)}};
Xic=function(a,b,c){if(b.length){var d=[];d.push(c?"not (":"(");d.push(b.join(" or "));d.push(")");_.dK(a,d.join(""))}};Yic=function(a,b){b=_.re(b,33)[0];if(null!=b){var c=[];c.push("teamDriveId");c.push("=");c.push(cK(b));_.dK(a,c.join(" "))}};_.Zic=function(a){a=_.yb(a,_.SJ,25);if(null==a||0==a.length)return"";for(var b=[],c=0;c<a.length;c++)b.push(a[c].Wa());return b.join(",")};_.$ic=function(a){a=a.lA();return null==a||0==a.length?"":a.map(function(b){b=b.$R();if(0==b)throw Error("lf");return _.wfc[b]}).join(",")};
ajc=function(a,b){if(a.length){var c=new _.so;a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=[];e.push(b?"shortcutDetails.targetMimeType":"mimeType");e.push("contains");e.push(cK(d.Wa()));_.dK(c,e.join(" "),"or")}return c.toString()}return""};bjc=function(a,b,c){if(a.length){var d=[];b&&d.push("not");d.push(c?"shortcutDetails.targetMimeType":"mimeType");d.push("in");a=a.map(function(e){return cK(e.Wa())});d.push(a.join(", "));return d.join(" ")}return""};
cjc=function(a){if(_.Q(a,2))return"any";switch(a.Wa()){case 0:return"mentions";case 1:return"suggestions";case 2:return"todos";default:return""}};djc=function(a){switch(a){case 1:return"<=";case 2:return"<";case 3:return"=";case 4:return">";case 5:return">=";default:return""}};ejc=function(a,b,c){if(null!=_.z(c,2)){var d=djc(_.z(c,1));c=cK(_.yhc(_.zhc(_.z(c,2)||0)));_.dK(a,[b,d,c].join(" "))}};
fjc=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""};
_.gjc=function(a,b){b=void 0===b?!1:b;for(var c=new _.so,d=_.yb(a,_.dl,4),e=0;e<d.length;e++){var f=d[e],h=f.Wa();if(h){var k=_.z(f,1),l=_.R(f,3,!1),p=[];l&&1==k&&p.push("not");p.push("title");p.push(1==k?"contains":l?"!=":"=");p.push(cK(h));_.dK(c,p.join(" "))}}for(var q=_.yb(a,_.al,5),r=0;r<q.length;r++){var v=q[r],w=v.Wa();if(w){var A=[];_.R(v,2,!1)&&A.push("not");A.push("fullText");A.push("contains");A.push(cK(w));_.dK(c,A.join(" "))}}var B=_.il(a);if(B&&0!=B.length){for(var E=[],I=[],M=[],N=
[],S=[],da=[],aa=0;aa<B.length;aa++){var fa=B[aa];fa.Wa()&&(1===_.ij(fa,3,0)?_.Q(fa,4)?I.push(fa):E.push(fa):_.Q(fa,4)?_.R(fa,2,!1)?da.push(fa):S.push(fa):_.R(fa,2,!1)?N.push(fa):M.push(fa))}var ha=ajc(E,!1),xa=ajc(I,!0),ua=bjc(M,!1,!1),Ja=bjc(N,!0,!1),ib=bjc(S,!1,!0),Ub=bjc(da,!0,!0),cc=new _.so;if(ua||ib||ha||xa)_.dK(cc,ua,"or"),_.dK(cc,ib,"or"),_.dK(cc,ha,"or"),_.dK(cc,xa,"or");cc.SI.length&&_.dK(c,"("+cc.toString()+")","and");var Pc=new _.so;if(Ja||Ub)_.dK(Pc,Ja,"and"),_.dK(Pc,Ub,"and");Pc.SI.length&&
_.dK(c,"("+Pc.toString()+")","and")}for(var yc=_.yb(a,_.Vk,7),Hb=0;Hb<yc.length;Hb++)ejc(c,"modifiedDate",yc[Hb]);for(var Ee=_.yb(a,_.Vk,8),$d=0;$d<Ee.length;$d++)ejc(c,"lastViewedByMeDate",Ee[$d]);_.fK(c,"trashed",a.Qh());_.fK(c,"explicitlyTrashed",_.Q(a,17));_.fK(c,"starred",_.Q(a,10));_.fK(c,"hidden",_.Q(a,11));for(var Gh=_.kl(a),sd=0;sd<Gh.length;sd++){var Sb=Gh[sd];eK(c,"parents",Sb.Wa(),_.R(Sb,2,!1))}var vi=b;vi=void 0===vi?!1:vi;for(var bk=_.yb(a,_.Cf,13),ug=0;ug<bk.length;ug++){var vj=bk[ug];
if(vi){if(vj.Wa()){var Kj=[],im=[];_.R(vj,2,!1)?Kj.push("not ("):Kj.push("(");im.push(cK(vj.Wa()));im.push("in");im.push("owners");im.push("or");im.push("creator");im.push("=");im.push(cK(vj.Wa()));Kj.push(im.join(" "));Kj.push(")");_.dK(c,Kj.join(""))}}else eK(c,"owners",vj.Wa(),_.R(vj,2,!1))}for(var Ei=_.yb(a,_.Cf,14),Ip=0;Ip<Ei.length;Ip++){var Re=Ei[Ip];eK(c,"writers",Re.Wa(),_.R(Re,2,!1))}for(var wi=_.yb(a,_.Cf,15),Wk=0;Wk<wi.length;Wk++){var Jp=wi[Wk];eK(c,"readers",Jp.Wa(),_.R(Jp,2,!1))}_.Q(a,
16)&&_.dK(c,"sharedWithMe");_.fK(c,"unparented",_.Q(a,34));for(var ck=_.yb(a,_.Sk,35)||[],Bq=_.m(ck),Cq=Bq.next();!Cq.done;Cq=Bq.next())eK(c,"ancestors",Cq.value.Wa(),!1);for(var gn=_.yb(a,_.Sk,38)||[],Hm=_.m(gn),Al=Hm.next();!Al.done;Al=Hm.next())eK(c,"descendants",Al.value.Wa(),!1);for(var Nr=_.yb(a,_.$k,37)||[],gj=_.m(Nr),Or=gj.next();!Or.done;Or=gj.next())eK(c,"folderFeatures",Or.value.Wa(),!1);for(var Kp=_.re(a,39),Dq=_.m(Kp),Pr=Dq.next();!Pr.done;Pr=Dq.next()){var Lp=Pr.value,Qr=[];Qr.push("templateData.description");
Qr.push("contains");Qr.push(cK(Lp));_.dK(c,Qr.join(" "))}for(var Vn=_.re(a,40),uk=0;uk<Vn.length;uk++){var vk=[];0==uk&&vk.push("(");vk.push(cK(Vn[uk]));vk.push("in");vk.push("templateData.categories");uk==Vn.length-1&&vk.push(")");_.dK(c,vk.join(" "),0==uk?"and":"or")}var Sc=_.z(a,41);if(null!=Sc){var hn=[];hn.push("templateData.galleryState");hn.push("=");hn.push(cK(_.Dfc[Sc]||""));_.dK(c,hn.join(" "))}var Ys=_.z(a,42);if(null!=Ys){var Eq=[];Eq.push("visibility");Eq.push("=");Eq.push(cK(fjc(Ys)));
_.dK(c,Eq.join(" "))}for(var Rr=_.yb(a,_.Rk,44),Du=0;Du<Rr.length;++Du){var Sr=Rr[Du];eK(c,"actionItems",cjc(Sr),_.R(Sr,3,!1))}if(_.ej(a,50)){var Rl=[];Rl.push("pairedDocType");Rl.push(_.R(a,50,!1)?"!=":"=");Rl.push(cK("NONE"));_.dK(c,Rl.join(" "))}eK(c,"workspaceIds",a.Yq(),!1);for(var So=_.yb(a,_.Tk,57),Wn=0;Wn<So.length;Wn++){var Xn=[];0==Wn&&Xn.push("(");Xn.push(cK(So[Wn].Wa()));Xn.push("in");Xn.push("approvals");Wn==So.length-1&&Xn.push(")");_.dK(c,Xn.join(" "),0==Wn?"and":"or")}if(_.ej(a,58)){var Px=
a.pq(),nw=Px.Wa();if(nw){var Mp=[];_.R(Px,2,!1)&&Mp.push("not");Mp.push("creator");Mp.push("=");Mp.push(cK(nw));_.dK(c,Mp.join(" "))}}var Mz=_.y(a,_.zpa,59);if(Mz)for(var Eu=_.m(_.yb(Mz,_.wpa,1)),Tr=Eu.next();!Tr.done;Tr=Eu.next()){var Ur=Tr.value;eK(c,"categoryMetadata",Ur.Km());for(var Zs=_.m(Ur.Xj()),Xk=Zs.next();!Xk.done;Xk=Zs.next()){var Fi=Xk.value,jm=_.z(Fi,1),Pg=_.Bb(Fi,_.Uk);if(10==Pg){_.Aj(Fi,_.npa,10,_.Uk);var ow=_.Q(Fi,15);(void 0===ow?0:ow)?_.dK(c,jm+" is null"):_.dK(c,"not ("+jm+" is null)")}else{var Gi=
new _.so,Yk=void 0;switch(Pg){case 3:Yk=_.Aj(Fi,cic,3,_.Uk);for(var Fu=_.m(Yk.yi()),Zk=Fu.next();!Zk.done;Zk=Fu.next())_.fK(Gi,jm,Zk.value,"or");break;case 14:for(var $s=Yk=_.Aj(Fi,_.gpa,14,_.Uk),pw=new Map([[1,"="],[2,">"],[3,"<"]]),at=_.m($s.yi()),Gu=at.next();!Gu.done;Gu=at.next()){var Vr=Gu.value,Np=pw.get(_.z($s,2));if(!Np)throw Error("mf");_.dK(Gi,[jm,Np,cK(Vr.getYear()+"-"+Sgc(Vr.getMonth())+"-"+Sgc(Vr.getDay()))].join(" "),"or")}break;case 8:for(var dv=Yk=_.Aj(Fi,_.mpa,8,_.Uk),ev=new Map([[1,
"="],[2,">"],[3,"<"]]),fv=_.m(dv.yi()),my=fv.next();!my.done;my=fv.next()){var Rw=my.value,tN=ev.get(_.z(dv,2));if(!tN)throw Error("mf");_.dK(Gi,[jm,tN,Rw].join(" "),"or")}break;case 9:for(var yg=Yk=_.Aj(Fi,eic,9,_.Uk),br=new Map([[1,"in"]]),nJ=_.m(yg.yi()),uN=nJ.next();!uN.done;uN=nJ.next()){var vN=uN.value,hS=br.get(_.z(yg,2));if(!hS)throw Error("mf");_.dK(Gi,[vN,hS,jm].join(" "),"or")}break;case 6:for(var ny=Yk=_.Aj(Fi,_.rpa,6,_.Uk),nZ=new Map([[1,"="]]),wN=_.m(ny.yi()),oZ=wN.next();!oZ.done;oZ=
wN.next()){var pZ=oZ.value,iS=nZ.get(_.z(ny,2));if(!iS)throw Error("mf");_.dK(Gi,[jm,iS,cK(pZ)].join(" "),"or")}break;case 7:for(var ZC=Yk=_.Aj(Fi,_.ppa,7,_.Uk),qZ=new Map([[1,"in"]]),rZ=_.m(ZC.yi()),HF=rZ.next();!HF.done;HF=rZ.next()){var MA=HF.value,sZ=qZ.get(_.z(ZC,2));if(!sZ)throw Error("mf");_.dK(Gi,[cK(MA),sZ,jm].join(" "),"or")}break;case 4:for(var tZ=Yk=_.Aj(Fi,_.tpa,4,_.Uk),f7=new Map([[1,"="],[2,"contains"],[3,"starts with"]]),uZ=_.m(tZ.yi()),vZ=uZ.next();!vZ.done;vZ=uZ.next()){var wZ=vZ.value,
g7=f7.get(_.z(tZ,2));if(!g7)throw Error("mf");_.dK(Gi,[jm,g7,cK(wZ)].join(" "),"or")}break;case 5:for(var xZ=Yk=_.Aj(Fi,gic,5,_.Uk),mha=new Map([[1,"in"]]),iwb=_.m(xZ.yi()),qXa=iwb.next();!qXa.done;qXa=iwb.next()){var rXa=qXa.value,sXa=mha.get(_.z(xZ,2));if(!sXa)throw Error("mf");_.dK(Gi,[cK(rXa),sXa,jm].join(" "),"or")}break;case 12:for(var IF=Yk=_.Aj(Fi,_.kpa,12,_.Uk),Bkc=new Map([[1,"="]]),jwb=_.m(IF.yi()),jS=jwb.next();!jS.done;jS=jwb.next()){var Sw=jS.value,h7=Bkc.get(_.z(IF,2));if(!h7)throw Error("mf");
_.dK(Gi,[jm,h7,cK(Sw)].join(" "),"or")}break;case 11:for(var nha=Yk=_.Aj(Fi,_.ipa,11,_.Uk),yZ=new Map([[1,"in"]]),Fxa=_.m(nha.yi()),Gxa=Fxa.next();!Gxa.done;Gxa=Fxa.next()){var oha=Gxa.value,kwb=yZ.get(_.z(nha,2));if(!kwb)throw Error("mf");_.dK(Gi,[cK(oha),kwb,jm].join(" "),"or")}}_.Q(Fi,15)?_.dK(c,"not ("+Gi+")"):_.dK(c,1<Yk.yi().length?"("+Gi+")":""+Gi)}}}null!=_.Q(a,60)&&_.fK(c,"linkShareMetadata.securityUpdateEligible",_.Q(a,60));var pha=_.Q(a,65);if(null!=pha){var Hxa=[];Hxa.push("clientEncryptionDetails.encryptionState");
Hxa.push("=");Hxa.push(cK(pha?"encrypted":"unencrypted"));_.dK(c,Hxa.join(" "))}var lwb=_.yb(a,_.Cf,68);if(lwb.length){for(var mwb=[],nwb=[],Ixa=_.m(lwb),tXa=Ixa.next();!tXa.done;tXa=Ixa.next()){var i7=tXa.value,qha="sharedFrom = "+cK(i7.Wa());_.R(i7,2,!1)?nwb.push(qha):mwb.push(qha)}Xic(c,mwb,!1);Xic(c,nwb,!0)}var j7=_.yb(a,_.Cf,67);if(j7.length){for(var uXa=[],owb=[],zZ=_.m(j7),vXa=zZ.next();!vXa.done;vXa=zZ.next()){var pwb=vXa.value,wXa="sharedTo = "+cK(pwb.Wa());_.R(pwb,2,!1)?owb.push(wXa):uXa.push(wXa)}Xic(c,
uXa,!1);Xic(c,owb,!0)}null!=_.Q(a,69)&&_.fK(c,"linkShareMetadata.securityUpdateEnabled",_.Q(a,69));null!=_.Q(a,72)&&_.fK(c,"canAcceptOwnership",_.Q(a,72));if(_.Q(a,73)){var xXa=(new _.bl).Hb("application/vnd.google-apps.shortcut");_.fK(c,"impactedByMultiparentingMigration",!0);_.dK(c,bjc([xXa],!1,!1))}1==_.TJ(a)&&Yic(c,a);return c.toString()};
_.hjc=function(a){var b=new _.so(_.gjc(a));_.R(a,74,!1)?_.dK(b,"isQuickAccessForSharedFilesRequest"):_.jJ(a)?_.dK(b,"isQuickAccessRequest"):_.kJ(a)?_.dK(b,"isPeoplePredictRequest"):_.lJ(a)&&_.dK(b,"isDrivePriorityRequest");var c=a.Lc();if(c){var d=[];d.push("sortBy");d.push(_.zfc[c.getType()]);d.push(_.Ffc[c.Uf()]);_.Q(c,3)&&d.push("foldersFirst");_.dK(b,d.join(" "))}_.fK(b,"domainSearch",_.Q(a,18));_.fK(b,"offline",_.Q(a,19));_.yb(a,_.SJ,25).length&&(c=[],c.push("sources"),c.push("contains"),c.push(_.Zic(a)),
_.dK(b,c.join(" ")));a.lA().length&&(c=[],c.push("spaces"),c.push("contains"),c.push(_.$ic(a)),_.dK(b,c.join(" ")));if(c=_.TJ(a))d=[],d.push("corpora"),d.push("="),d.push(cK(_.Wic[c])),_.dK(b,d.join(" "));_.R(a,66,!0)||_.fK(b,"includeItemsFromAllDrives",_.R(a,66,!0));1!=_.TJ(a)&&Yic(b,a);_.R(a,48,!1)&&_.dK(b,"cachedOnly");return b.toString()};
_.JJ=function(a){if(a instanceof _.nI)a=a.jd();else if(!a)return!1;return a instanceof _.$z||a instanceof _.eG||"undefined"!=typeof _.gK&&a instanceof _.gK||a instanceof _.Af&&(_.jJ(a)||_.kJ(a)||_.lJ(a))};ijc=function(){_.po.call(this);this.V=this.O=null;this.ka=!1;this.ha=null};_.K(ijc,_.po);_.jjc=function(a){!a.ka&&a.V&&(a.V(),a.ka=!0)};kjc=function(a,b){a.V||(a.V=b)};ijc.prototype.Bj=function(){_.jjc(this);(0,this.ha)()};ljc=function(a,b){a.ha||(a.ha=b)};
_.hK=function(a){if(!a.O){a.O=new Fic;var b=_.ro(a);_.G(b,56,a.O)}return a.O};ijc.prototype.getState=function(){var a=_.hK(this).getState();a||(a=new vic,_.hK(this).Id(a));return a};var mjc=function(a,b){var c=new tic;_.x(c,1,b);a=_.ro(a);_.G(a,12,c)};ijc.prototype.ma=function(){var a=_.y(_.hK(this),xic,4);if(!a){a=new xic;var b=_.hK(this);_.G(b,4,a)}return a};
var njc=function(a){var b=_.y(_.hK(a),yic,8);b||(b=new yic,a=_.hK(a),_.G(a,8,b));return b},ojc=function(a){var b=_.y(_.hK(a),Dic,19);b||(b=new Dic,a=_.hK(a),_.G(a,19,b));return b},pjc=function(a){_.hi.call(this,"rb");this.H=a};_.K(pjc,_.hi);pjc.prototype.Me=function(){return this.H};_.qjc=function(a,b){a=void 0===a?1:a;b=void 0===b?!1:b;_.qi.call(this);this.O=!1;this.H=b?1:a;this.V=b?!0:1===a;this.W=b};_.K(_.qjc,_.qi);_.g=_.qjc.prototype;_.g.isConnected=function(){return!this.O&&1===this.H};
_.g.Ik=function(){return 1===this.H||2===this.H};_.g.Me=function(){return 3===this.H};_.g.get=function(){return this.H};_.g.update=function(a){if(this.W)return!1;if(this.H!==a||this.O&&1===a){if(2===a)var b=3===this.H?_.VB.bV:_.VB.eia;else 1===a?(b=_.VB.$L,this.V=!0):3===a&&(b=_.VB.aV);if(b)return b=new Nic(b),this.H=a,this.O=!1,this.dispatchEvent(b),!0}return!1};
var rjc=function(a,b){this.userId=a;this.H=b;this.db=null},tjc=function(a,b){a.H.info("drive.ds.sync.logging.ImpressionPersister","Persisting offline impressions.");return sjc(a,function(c){return c.count().then(function(d){return 1E3>d?a.add(c,b):a.handleError(Error("pf"))},function(d){return a.handleError(d)})},"readwrite")};rjc.prototype.add=function(a,b){var c=this,d={};return a.add((d.userId=this.userId,d.pEb=b.toJSON(),d)).then(null,function(e){c.handleError(e)})};
var ujc=function(a){return new _.Oh(function(b){var c=new Map;sjc(a,function(d){return iic(d.getIndex("userId"),a.userId).then(function(e){e=new Map(e.map(function(p){return[p,d.get(p)]}));for(var f={},h=_.m(e),k=h.next();!k.done;f={Asa:f.Asa},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;f.Asa=k;l.then(function(p){return function(q){q&&c.set(p.Asa,new _.jBa(q.pEb))}}(f))}return _.jI([].concat(_.fc(e.values()))).then(function(){return b(c)})})})})},vjc=function(a,b){return sjc(a,
function(c){return c.remove(b)},"readwrite")},sjc=function(a,b,c){c=void 0===c?"readonly":c;return wjc(a).then(function(d){try{var e=_.sdc(d,["OfflineImpressions"],c).objectStore("OfflineImpressions");return b(e)}catch(f){return a.handleError(f?_.NI(f):void 0)}},function(d){return a.handleError(d)})},wjc=function(a){return a.db?_.Ph(a.db):_.udc("GoogleDriveDsImpressions",2,function(b,c){c.H.objectStoreNames.contains("OfflineImpressions")&&_.jic(c,"OfflineImpressions");b=_.rdc(c,"OfflineImpressions",
{autoIncrement:!0});try{b.H.createIndex("userId","userId",void 0)}catch(d){throw _.XH(d,"creating new index userId with key path userId");}},function(){return a.handleError(Error("qf"))}).then(function(b){return a.db=b},function(b){return _.Qh(_.NI(b))})};rjc.prototype.handleError=function(a){a||(a=Error("rf"));_.$J(this.H,"drive.ds.sync.logging.ImpressionPersister",a.message,"severe");return _.Ph()};
_.xjc=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;_.qi.call(this);this.V=b;this.O=null;this.H=b?!1:a};_.K(_.xjc,_.qi);_.xjc.prototype.Me=function(){return this.H};_.xjc.prototype.Ll=function(a){var b=this.H!==a;!this.V&&b&&(this.H=a,this.dispatchEvent(new pjc(a)))};_.xjc.prototype.nz=function(a){this.O=a};
var zjc=function(a,b,c,d,e,f){_.qi.call(this);var h=this;this.V=a;this.H=b;this.W=c;this.O=d;this.Jb=new _.nf(this);this.Jb.listen(b,"rb",function(k){k.Me()||yjc(h)});this.Jb.listen(c,[_.VB.$L,_.VB.bV],function(){return void yjc(h)});this.ha=e;f.then(function(){return yjc(h)})};_.K(zjc,_.qi);zjc.prototype.PA=function(a){return(a=(this.H.Me()||this.W.Me())&&this.H.O?tjc(this.O,a):this.V.PA(a))?a:void 0};
var yjc=function(a){return a.H.O?ujc(a.O).then(function(b){b.forEach(function(c,d){a.V.PA(c).then(function(){return Ajc(a,d)},function(){a.log("Unable to send offline impression batch "+d+".")})})}):Promise.resolve()},Ajc=function(a,b){a.log("Sent offline impression batch "+b+".");a.dispatchEvent("sb");return vjc(a.O,b).then(function(){a.log("Removed offline impression batch "+b+".")},function(){a.log("Unable to remove offline impression batch "+b+".")})};
zjc.prototype.log=function(a){this.ha.info("drive.ds.sync.logging.ClearcutOfflineTransport",a)};var Bjc=function(){};Bjc.prototype.AR=function(){return new ijc};var Cjc=function(){this.H=new Gic};Cjc.prototype.O=function(a){_.G(a,13,this.H)};Cjc.prototype.setEnvironment=function(a){this.H.setEnvironment(a);return this};
var Ejc=function(a,b,c,d){this.ka=b;this.ha=c;this.Nw=d;this.O=this.H=this.V=null;this.client=_.iK(_.Ofc,_.WJ(a));this.ma=_.z(a,94);this.ta=_.iK(_.Sfc,_.ij(a.Tf(),8,0));this.Oya=_.iK(_.Pfc,_.ij(a.Tf(),9,2));this.wa=_.VJ(a);this.Ku=_.KI(_.fI(a));this.uEa=_.XJ(a);this.W=Djc(a);this.buildLabel=a.Ki()};Ejc.prototype.Hj=function(){return this.client};
Djc=function(a){var b=[].concat(_.fc(_.Lfc.keys())),c=[].concat(_.fc(_.Mfc.keys())),d=_.IJ(a);return b.filter(function(e){return _.Lfc.get(e)(a)}).concat(c.filter(function(e){return d&&_.Mfc.get(e)(d)}))};_.iK=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};Ejc.prototype.Xo=function(a){return null==a?0:a?2:1};var Fjc=function(a){if(a.O)return a.O.H("aU7Ts")};
Ejc.prototype.Cb=function(a){return a instanceof _.eI||"undefined"!=typeof _.jK&&a instanceof _.jK||"undefined"!=typeof _.kK&&a instanceof _.kK||"undefined"!=typeof _.lK&&a instanceof _.lK?a.Cb():"undefined"!=typeof _.mK&&a instanceof _.mK||"undefined"!=typeof _.nK&&a instanceof _.nK||"undefined"!=typeof _.oK&&a instanceof _.oK||"undefined"!=typeof _.pK&&a instanceof _.pK||"undefined"!=typeof _.qK&&a instanceof _.qK?a.response?a.response.Cb():null:null};Ejc.prototype.Ki=function(){return this.buildLabel};
var Gjc=function(a){return a.ka.Me()||a.ha.Me()?2:1};Ejc.prototype.getEnvironment=function(){return this.Nw};Hjc=function(a,b){this.H=a;var c=new _.Zza;_.$za(c,b.W);a=this.H.dM();var d=_.mfc(a);_.G(d,10,c);(c=b.Ki())&&_.lfc(a,c);this.H.N_();this.O=b};
_.Ijc=function(a,b,c){var d=_.qo(a.H.rG(b,c),_.Gfc);mjc(d,Gjc(a.O));b=Fjc(a.O);"boolean"===typeof b&&wic(d.getState(),b);1===c&&kjc(d,function(){return void a.H.Mw(d)});ljc(d,function(){var e;var f=null===(e=a.O.V)||void 0===e?void 0:e.getSize();e=d.getState();_.x(e,1,f);var h,k;f=null===(k=null===(h=a.O.H)||void 0===h?void 0:h.H)||void 0===k?void 0:k.getSize();h=d.getState();_.x(h,2,f);var l,p;h=null===(p=null===(l=a.O.H)||void 0===l?void 0:l.O)||void 0===p?void 0:p.getSize();l=d.getState();_.x(l,
7,h);a.H.en(d)});return d};Jjc=function(a){var b=new _.KAa,c=new Cjc,d=a.Hj();_.x(c.H,1,d);_.x(c.H,8,a.ma);_.x(c.H,3,a.ta);_.x(c.H,4,a.Oya);_.x(c.H,5,a.wa);_.x(c.H,6,a.Ku);_.x(c.H,7,a.uEa);a=c.setEnvironment(a.getEnvironment());_.fec(b,_.Ifc,a);_.to(b,_.Gfc,new Bjc);return b};
Kjc=function(a,b,c,d,e,f,h,k){k=void 0===k?!1:k;var l=new _.hI(906,b,void 0,_.Yfc());l.ha=!1;var p=new _.gec(l);b=new Date;l=_.rfc(_.qfc(_.pfc(kic(),new _.hec(l)),Jjc(c)),109).setSessionId(b.getTime()+"_"+_.ih());if(k){a=new zjc(p,d,e,new rjc(a,f),f,h);_.ofc(l,a);d=l.build();_.kfc(d.dM(),1E3*b.getTime());var q=new Hjc(d,c);(new _.nf).listen(a,"sb",function(){_.Ijc(q,106008,0).Bj()});return q}_.ofc(l,p);a=l.build();_.kfc(a.dM(),1E3*b.getTime());return new Hjc(a,c)};
Ljc=function(a,b){this.V=a;this.W=b};Ljc.prototype.O=function(a,b){this.V&&_.Mjc(this)&&(a=_.Ijc(this.V,a,0),b&&_.Fgc(a,b),a.Bj())};_.rK=function(a,b){if(a.V&&_.Mjc(a)){a=_.Ijc(a.V,106018,0);var c=_.y(_.hK(a),Cic,15);if(!c){c=new Cic;var d=_.hK(a);_.G(d,15,c)}c=_.x(c,1,1);_.x(c,2,b);a.Bj()}};Ljc.prototype.H=function(a,b){return this.V&&_.Mjc(this)?(a=_.Ijc(this.V,a,1),b&&_.Fgc(a,b),a):null};_.Mjc=function(a){return!(!a.V||!a.V.H.hQ())};
_.Njc=function(a,b,c,d,e,f){var h=_.Q(a,59),k=_.wI(_.fI(a)).toString(),l=_.UJ(_.fI(a));f=new Ejc(a,b,c,f);a=h?Kjc(l,k,f,b,c,d,e,_.R(a,17,!1)):null;return new Ljc(a,f)};_.Ojc=function(a){_.J.call(this,a)};_.K(_.Ojc,_.J);_.Ojc.prototype.xk=function(){return _.z(this,1)};_.Pjc=function(a){var b=new _.Ojc;return _.x(b,1,a)};_.cJ=function(a){_.J.call(this,a)};_.K(_.cJ,_.J);_.cJ.prototype.getId=function(){return _.z(this,1)};_.cJ.prototype.Nb=function(a){return _.x(this,1,a)};
_.Qjc=function(a,b){return _.x(a,2,b)};Rjc=[1];_.Vgc=function(a){_.J.call(this,a,-1,Rjc)};_.K(_.Vgc,_.J);_.sJ=function(a){_.J.call(this,a)};_.K(_.sJ,_.J);_.sJ.prototype.jd=function(){return _.y(this,_.cJ,1)};Sjc=[2];_.zJ=function(a){_.J.call(this,a,-1,Sjc)};_.K(_.zJ,_.J);_.zJ.prototype.qc=function(){return _.z(this,1)};_.zJ.prototype.uW=function(){return _.yb(this,_.ZF,2)};_.zJ.prototype.re=function(){return _.y(this,_.Lf,3)};_.eJ=function(a){_.J.call(this,a)};_.K(_.eJ,_.J);
_.eJ.prototype.jd=function(){return _.y(this,_.dJ,1)};_.eJ.prototype.Wda=function(a){return _.x(this,2,a)};_.Tjc=function(a){_.J.call(this,a)};_.K(_.Tjc,_.J);_.Tjc.prototype.getId=function(){return _.z(this,1)};_.Tjc.prototype.Nb=function(a){return _.x(this,1,a)};_.Tjc.prototype.re=function(){return _.y(this,_.Lf,2)};_.pJ=function(a){_.J.call(this,a)};_.K(_.pJ,_.J);_.pJ.prototype.Zn=function(){return _.z(this,2)};_.pJ.prototype.jd=function(){return _.y(this,_.Tjc,3)};
_.fJ=function(a){_.J.call(this,a)};_.K(_.fJ,_.J);_.Ujc=function(a,b){this.O=b;this.H=new Map;this.Xma(_.yb(a,_.el,91))};_.Ujc.prototype.Xma=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;b=c.getId();c=_.fl(c);if(!b||!c)break;var d=_.Vjc(this,b);if(d){d!==c&&Ugc(b);break}this.H.set(b,c)}};
Bhc=function(a,b){return[].concat(_.fc(new Set(b))).map(function(c){var d=(new _.el).Nb(c);a.H.has(c)?_.gl(d,a.H.get(c)):a.O&&(c=a.O.H(c))&&_.gl(d,_.Hk(c));return d}).filter(function(c){return _.ej(c,2)})};_.Vjc=function(a,b){return a.H.has(b)?String(a.H.get(b)):a.O&&(a=a.O.H(b))&&_.ej(a,140)?_.Hk(a):null};_.Ygc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.dhc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.jhc=function(){this.H=_.Mf(new _.Lf,312)};
_.Wjc=function(a,b){_.YH.call(this,a?a:500,b?b:6E5)};_.K(_.Wjc,_.YH);_.sK=function(a,b,c,d){this.state=a;this.ma=b;this.ka=c;this.Xf=d;this.ha=this.O=this.timeout=this.W=null;this.V=!1;this.H=null};_.sK.prototype.getState=function(){return this.state};
_.sK.prototype.NM=function(a){var b=this;if(this.W)return this.W;var c=_.Sh();this.W=c.promise.then(function(){return _.Pjc(1)},function(d){d=_.xd(d).tg;var e=0;2===d.Jp()?e=3:_.Xfc(d)&&(e=2);return _.Pjc(e)});a&&this.W.then(function(d){3===d.xk()&&_.rK(b.Xf,186469046)});this.H&&(a=_.z(ojc(this.H),4)||0,Eic(ojc(this.H),a+1));setTimeout(function(){b.W=null},5E3);Xjc(this,c);return this.W};_.$jc=function(a,b){Yjc(a,3)&&_.Zjc(a,b)};_.sK.prototype.reset=function(){this.O=null;akc(this)};
akc=function(a){a.timeout&&(clearTimeout(a.timeout),a.timeout=null)};_.Zjc=function(a,b){if(!a.O&&!a.V){a.H=a.Xf.H(106025);if(a.H){var c=ojc(a.H);var d=!(!a.state.isConnected()&&a.state.Ik());c=_.x(c,1,d);c=_.x(c,2,a.state.V);_.x(c,5,!!b)}a.O=new _.Wjc(5E3,6E4);bkc(a)}};bkc=function(a){akc(a);Xjc(a);a.O&&(a.timeout=setTimeout(function(){return void bkc(a)},a.O.Wa()),_.ZH(a.O))};
Xjc=function(a,b){var c=function(){if(a.H){var d=_.z(ojc(a.H),3)||0,e=ojc(a.H);_.x(e,3,d+1)}ckc(a,b)};(a.ha?a.ha():_.Ph(void 0)).then(null,function(){return null}).then(c,c)};ckc=function(a,b){a.log("Checking connection state.");var c=a.ma.then(function(d){return d.Qe(new _.jhc)}).then(null,function(d){d=_.xd(d);_.Xfc(d.tg)&&Yjc(a,2);return _.Qh(d)});b?b.resolve(c):c.then(null,function(){return null})};_.sK.prototype.log=function(a){this.ka.info("drive.ds.sync.connection.StateManager",a)};
Yjc=function(a,b){return!a.V&&a.state.update(b)?(a.log("Connection status: "+_.agc.get(b)),!0):!1};_.dkc=function(){this.H={}};ekc=function(a,b,c){if(a.H[b])throw Error("sf");a.H[b]=c};_.dkc.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){_.n.setTimeout(function(){throw d;},0)}};fkc=function(a,b){for(var c=0;c<b.length;c++)delete a.H[b[c]]};_.gkc=function(a,b){this.H=a;this.V=b;this.O=_.cgc[_.ij(a.Tf(),8,0)];this.W=_.cgc[_.ij(a.Tf(),51,5)]};
_.gkc.prototype.kc=function(a,b){if(b.jO)hkc(this,a,b),ikc(this,a,b);else{var c={};if(11===a.nn){if(b.yOb){var d=b.bE||_.C(this.H.Tf(),37,"");c.key=d;Qgc(c,a.uri)}hkc(this,a,b);jkc(this,a,b)}else switch(a.uri=kkc(this,a.nn,a.uri),a.nn){case 1:jkc(this,a,b);hkc(this,a,b);break;case 0:b.Ku||_.KI(_.fI(this.H))||_.R(this.H,83,!1)&&Qgc({dsNonce:_.ih()},a.uri);jkc(this,a,b);ikc(this,a,b);hkc(this,a,b);break;case 2:case 3:case 4:case 5:jkc(this,a,b);ikc(this,a,b);hkc(this,a,b);break;case 8:case 9:case 10:case 13:case 12:case 7:jkc(this,
a,b);ikc(this,a,b);break;default:throw Error("tf`"+a.nn);}}};lkc=function(a,b){var c=kkc(a,b,new _.Ti);if(!c.zH())throw Error("vf");return(new _.Ti).Pr(c.Po).On(c.ik()).TA(c.My()).Bi(_.dgc.has(b)?"/batch"+a.O:"/batch")};
kkc=function(a,b,c){var d=_.z(a.H.Tf(),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=_.C(a.H.Tf(),62,"");break;case 8:a=_.z(a.H.Tf(),53);break;case 9:a=_.z(a.H.Tf(),56);break;case 10:a=_.z(a.H.Tf(),22);break;case 13:a=_.z(a.H.Tf(),55);break;case 12:a=_.z(a.H.Tf(),43);break;default:throw Error("tf`"+b);}a&&a.endsWith("/")&&(a=a.slice(0,-1));c=c.toString();if(!c)return new _.Ti(a);
_.fe(c,"/")&&(c=c.slice(1));return new _.Ti(a+"/"+c)};jkc=function(a,b,c){a=_.fI(a.H);c.Ku||_.KI(a)||(b.headers.authorization=_.dec([{key:"u",value:_.UJ(a)}])||"",c=_.wI(a),0<=c&&(b.headers["x-goog-authuser"]=String(c)))};
hkc=function(a,b,c){var d=_.fI(a.H),e=a.H.Tf(),f=c.T9a||_.R(e,14,!1),h=11===b.nn;if(c.S9a||_.z(e,13)){c=_.z(e,13);var k={};c&&_.fe(c,"email:")?k.trace=c:c&&"trace:true"===c?k.$trace="true":k.trace=c?"token:"+c:"email:"+d.getEmail().replace(/(@|\+).*$/,"");h||(k["trace.deb"]="genoa:3:all,driveService:3:all"+(2===_.ij(e,9,2)?"":",cospel:3:all,DriveService:3:all"));Qgc(k,b.uri)}f&&!h&&a.V&&a.V.O(b.headers,b.method,b.uri.toString())};
ikc=function(a,b,c){a=c.Ku||_.KI(_.fI(a.H))?_.C(a.H.Tf(),36,""):c.bE||_.C(a.H.Tf(),37,"");Qgc({key:a},b.uri)};_.Xgc=function(a,b,c){this.request=a;this.pageSize=b;this.pageToken=c};_.Zgc=function(a){this.request=a;this.requestId=_.ih()};_.ghc=function(a,b,c,d){this.request=a;this.file=b;this.aR=void 0===c?null:c;this.metadata=d};ehc=function(a,b){this.request=a;this.metadata=b};fhc=function(a,b,c,d,e,f,h){this.V=a;this.blob=b;this.H=c;this.O=d;this.B1a=e;this.contentType=f;this.revisionId=h};
_.DJ=function(a,b,c,d){this.request=a;this.file=b;this.aR=void 0===c?null:c;this.metadata=d};ohc=[_.PI,_.RI,_.QI,_.TI,_.SI,_.UI,_.VI,_.YI,_.$I,_.aJ,_.bJ,_.dJ,_.eJ,_.rJ,_.vJ,_.xJ,_.zJ,_.xI,_.AJ,_.BJ,_.CJ,_.Zgc,_.DJ];mkc=[_.zI];phc=[_.$F,_.dhc];qhc=[_.pJ,_.PH,_.nD,_.EJ];rhc=[_.nI,_.fJ,_.aG,_.zI,_.Ygc];shc=[_.EJ,_.fG];thc=[_.cJ,_.Vgc,_.oJ,_.sJ,_.tJ,_.Xgc,_.DJ,fhc,ehc];
nkc=function(a){return a instanceof _.nI||a instanceof _.EJ||"undefined"!=typeof _.tK&&a instanceof _.tK||a instanceof _.BJ||a instanceof _.aJ||a instanceof _.UI||a instanceof _.YI||a instanceof _.xI&&_.HJ(a)};_.okc=function(a,b,c){this.O=a;this.H=b;this.Bg=c;this.i5={};this.aj=new ric;this.Hb("SdkBackfillEnabled",!!_.R(a,45,!1)+" (Include corpus cache: "+!!_.R(a,46,!1)+")")};_.okc.prototype.Hb=function(a,b){this.i5[a]=pkc(a,b)};
var qkc=function(a,b){var c=a.i5[b];c||(c=pkc(b,0,2),a.i5[b]=c);c.Hb(String(Number(c.Wa())+1))};_.okc.prototype.Zz=function(a){var b=_.Ya(this.i5);this.H&&b.push(pkc("CacheSize",this.H.getSize()));this.Bg&&b.push(pkc("SecondaryFields",_.OI({fields:[].concat(_.fc(this.Bg.O)),anonymous:_.KI(_.fI(this.O))})));b.push(pkc("InitialViewDataLoaded",a));a=new _.Tic;_.mj(a,1,b);return _.Zh(a)};pkc=function(a,b,c){var d=new _.Ric;_.x(d,1,a);_.x(d,4,c||1);d.Hb(String(b));d.kl(_.hgc.get(a));return d};
_.rkc=function(a,b,c){var d=new _.tfc;_.x(d,2,"Pending...");b instanceof _.nI?_.qj(d,3,_.oI,b):b instanceof _.EJ?_.qj(d,4,_.oI,b):"undefined"!=typeof _.tK&&b instanceof _.tK?_.qj(d,5,_.oI,b):b instanceof _.BJ?_.qj(d,6,_.oI,b):b instanceof _.aJ?_.qj(d,7,_.oI,b):b instanceof _.UI?_.qj(d,8,_.oI,b):b instanceof _.YI?_.qj(d,9,_.oI,b):b instanceof _.xI&&_.qj(d,10,_.oI,b);var e=lhc(b),f=[];if(b instanceof _.QI)FJ(f,"ID",b.getId()),FJ(f,"Parent ID",b.Zj());else if(b instanceof _.aJ)FJ(f,"TD ID",b.getId());
else if(b instanceof _.nI)b=_.hjc(b.jd()),FJ(f,"Query",b);else if(b instanceof _.EJ)FJ(f,"Query","All");else if(b instanceof _.BJ)FJ(f,"TD ID",b.getId()),FJ(f,"Title",b.getTitle()),FJ(f,"Theme Image ID",_.z(b,3));else if(b instanceof _.UI)FJ(f,"MimeType",b.getMimeType()),FJ(f,"Title",b.getTitle()),FJ(f,"Parents",_.re(b,3)),FJ(f,"Convert",_.Q(b,8)),FJ(f,"Request ID",b.mj()),FJ(f,"Parent Request IDs",_.re(b,10)),FJ(f,"Revision Item ID",_.z(b,12)),FJ(f,"Pinned",_.Q(b,8));else if(b instanceof _.VI)FJ(f,
"Title",b.getTitle());else if(b instanceof _.YI)FJ(f,"ID",b.getId());else if(b instanceof _.bJ)FJ(f,"WS ID",b.getId());else if(b instanceof _.rJ)FJ(f,"Source ID",_.z(b,1)),FJ(f,"Destination Parent ID",_.z(b,2)),FJ(f,"validation token",_.z(b,4));else if(b instanceof _.xI){if(FJ(f,"ID",b.getId()),FJ(f,"Title",b.getTitle()),FJ(f,"Description",b.Bf()),FJ(f,"Starred",_.Q(b,4)),FJ(f,"Trashed",b.Qh()),FJ(f,"MimeType",b.getMimeType()),FJ(f,"Parents",_.re(b,8)),FJ(f,"Parents to add",_.re(b,9)),FJ(f,"Parents to remove",
_.re(b,10)),FJ(f,"Restricted",_.Q(b,11)),FJ(f,"Folder Color",b.Mi()),FJ(f,"Update Last Viewed",_.Q(b,15)),FJ(f,"Subscribed",_.Q(b,16)),FJ(f,"Available Offline",_.Q(b,18)),FJ(f,"Wksp to add",_.re(b,31)),FJ(f,"Wksp to remove",_.re(b,32)),b=_.y(b,_.wk,25))FJ(f,"Read Only",_.Q(b,1)),FJ(f,"Reason",_.z(b,2))}else b instanceof _.CJ?(FJ(f,"WS ID",b.getId()),FJ(f,"Title",b.getTitle()),FJ(f,"State",b.getState())):b instanceof _.Zgc&&FJ(f,"Title",b.request.getTitle());_.x(d,1,"Request: "+e+(c?" ("+c+")":"")+
"\n"+f.join("\n"));a.aj.add(d);return d};_.skc=function(a,b){for(var c=new _.so,d=0;d<b.length&&20>d;d++){var e=b[d];c.append(e.getId()+":"+_.ugc(e.getTitle()||"",20)+"\n")}20<b.length&&c.append(b.length-20+" more item(s)");_.x(a,2,c.toString()||"Done.")};_.okc.prototype.ZR=function(){return this.aj.jh()};
_.uK=function(a){_.J.call(this,a)};_.K(_.uK,_.J);_.uK.prototype.Zc=function(){return _.y(this,_.eI,1)};_.tkc=function(a,b){return _.G(a,1,b)};_.uK.prototype.Zn=function(){return _.z(this,3)};
_.ukc=function(a,b,c){_.hi.call(this,"Cb");this.requestId=a;this.progress=b;this.totalBytes=c};_.K(_.ukc,_.hi);
var wkc;_.vkc=function(a,b){this.O=a;this.V=b;this.H=null};wkc=function(a){a.O()||(a.H&&(a.H.resolve(),a.H=null),a.V())};
var vK=function(a){_.qi.call(this);this.name=a};_.K(vK,_.qi);_.g=vK.prototype;_.g.Y4=function(){};_.g.dHa=function(){};_.g.S3a=function(){};_.g.iPa=function(){};_.g.R3a=function(){};_.g.sG=function(){this.dispatchEvent(new _.hi("Db"))};_.g.toString=function(){return this.name+": "+this.max(Infinity)};
var xkc=function(a,b){vK.call(this,"Online");var c=this;this.O=a;this.H=b;this.Oc=new _.nf(this);this.Ja(this.Oc);this.Oc.listen(this.O,"rb",function(d){d.Me()||c.sG()});this.Oc.listen(this.H,"fb",this.sG)};_.K(xkc,vK);xkc.prototype.max=function(){var a=this.O.Me(),b=this.H.UB();return!a&&b?Infinity:0};xkc.prototype.Y4=function(){this.sG()};
var ykc=function(a){vK.call(this,"Online");var b=this;this.H=a;this.Oc=new _.nf(this);this.Ja(this.Oc);this.Oc.listen(this.H,[_.VB.$L,_.VB.eia,_.VB.bV],function(){return b.sG()})};_.K(ykc,vK);ykc.prototype.max=function(){return this.H.isConnected()?Infinity:0};ykc.prototype.Y4=function(){this.sG()};
_.zkc=function(a,b){this.H=a;this.O=b};_.Akc=function(a){return a.H instanceof _.sK?new ykc(a.H.getState()):new xkc(a.O,a.H)};_.zkc.prototype.Ij=function(){return this.H instanceof _.sK?this.H.getState():this.O};
var Dkc;_.Ckc=function(a,b,c){this.WK=c;this.O=!0;this.V=0;this.H=new _.YH(a,b,.5)};Dkc=function(a){return a.H.O+a.V};
_.wK=function(a,b){vK.call(this,"Backoff");this.H=a;this.O=b};_.K(_.wK,vK);_.wK.prototype.max=function(){return this.H.O?Infinity:0};_.wK.prototype.iPa=function(){var a=this.H;a.V=0;a.H.reset()};_.wK.prototype.R3a=function(a){var b=this;Ekc(a)&&this.H.O&&(this.H.O=!1,a=this.H.H.Wa(),this.log("Stopping new requests for "+a+" ms."),_.n.setTimeout(function(){b.log("Backoff complete, allowing requests.");b.H.O=!0;b.sG()},a),_.ZH(this.H.H))};
var Ekc=function(a){var b;return(a=null===(b=_.ka(a.eE))||void 0===b?void 0:b.response)?Igc(_.zda(a)):!1};_.wK.prototype.log=function(a){this.O.info("drive.ds.network.queue.BackoffState",a)};
_.Fkc=function(a,b){vK.call(this,"Batch");this.O=a;this.V=b;this.H=null};_.K(_.Fkc,vK);_.Fkc.prototype.max=function(a){return a>=this.O?this.O:null!=this.H?this.V<=Date.now()-this.H?this.O:0:0};_.Fkc.prototype.Y4=function(a){a>=this.O?this.sG():null==this.H&&Gkc(this)};_.Fkc.prototype.dHa=function(a,b){0<b?Gkc(this):this.H=null};var Gkc=function(a){a.H=Date.now()-1;_.n.setTimeout(a.sG.bind(a),a.V)};
_.xK=function(){this.aj=[]};_.g=_.xK.prototype;_.g.add=function(a,b){b?this.aj.unshift(a):this.aj.push(a);return!0};_.g.gua=function(a){return _.ta(this.aj,0,a)};_.g.getSize=function(){return this.aj.length};_.g.cancel=function(a){return _.za(this.aj,function(b){return b.Zv.config.requestId===a?(b.ee.resolve(mhc(b.Zv.lx)),!0):!1})};_.g.zK=function(){return _.tg(this.aj,function(a){return _.HJ(a.Zv.lx)})};
var Hkc=function(){vK.call(this,"Immediate")};_.K(Hkc,vK);Hkc.prototype.max=function(){return Infinity};Hkc.prototype.Y4=function(){this.sG()};
var Ikc=function(){vK.call(this,"One Request")};_.K(Ikc,vK);Ikc.prototype.max=function(){return 1};
_.yK=function(a){vK.call(this,"Parallel");this.limit=a;this.H=0};_.K(_.yK,vK);_.yK.prototype.max=function(){return Math.max(0,this.limit-this.H)};_.yK.prototype.Y4=function(){this.H<this.limit&&this.sG()};_.yK.prototype.dHa=function(a){this.H+=a.length};_.yK.prototype.S3a=function(a){this.H-=a.length;this.H<this.limit&&this.sG()};
var Jkc=function(){_.qi.apply(this,arguments)};_.K(Jkc,_.qi);var Lkc=function(a,b){a.dispatchEvent(new Kkc(b))};Jkc.prototype.O=function(){};var Kkc=function(a){_.hi.call(this,"Eb");this.request=a};_.K(Kkc,_.hi);
_.zK=function(a,b,c,d,e,f){_.qi.call(this);var h=this;this.ha=a;this.V=b;this.H=c;this.buckets=d;this.O=e;this.ka=0;this.W=new Map;this.Oc=new _.nf(this);this.Ja(this.Oc);for(a=0;a<this.H.length;a++)this.Oc.listen(this.H[a],"Db",this.$2a);for(a=0;a<this.O.length;a++)this.Oc.listen(this.O[a],"Eb",function(k){Mkc(h,!0,k.request)});this.logName=(0,_.Ws)("drive.ds.network.queue.Queue [%s]",f)};_.K(_.zK,_.qi);_.zK.prototype.add=function(a){return Mkc(this,!1,{Zv:a,ee:_.Sh(),eE:[]})};
_.zK.prototype.cancel=function(a){var b=this.V.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};_.zK.prototype.zK=function(){return this.V.zK()?!0:this.buckets.some(function(a){return a.zK()})};
var Mkc=function(a,b,c){if(!a.buckets.some(function(f){return f.add(c,b)}))return a=_.Co(new _.Gc,"No queue bucket accepted request."),_.Qh(_.xd(a));for(var d=Nkc(a),e=0;e<a.H.length;e++)a.H[e].Y4(d);return c.ee.promise};_.g=_.zK.prototype;
_.g.$2a=function(){var a=Nkc(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].gua(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.ka++);this.W.set(c,a);for(var d=this.V.execute(a),e=0;e<a.length;e++)d[e].then(this.qzb.bind(this,a[e]),this.pzb.bind(this,a[e]));e=Nkc(this);for(var f=0;f<this.H.length;f++)this.H[f].dHa(a,e);_.Th(_.jI(d).then(this.ozb.bind(this,a)),function(){b.W.delete(c)});_.n.setTimeout(this.$2a.bind(this),0)};
_.g.qzb=function(a,b){var c=a.Zv.config;this.log(lhc(a.Zv.lx)+" request completed successfully. xd4: "+!(!c||!c.jO));this.H.forEach(function(d){return d.iPa()});this.O.forEach(function(d){return d.O(a)});a.ee.resolve(b)};
_.g.pzb=function(a,b){b=_.xd(b);this.log(lhc(a.Zv.lx)+(" request failed with error: "+b.ha+"."));a.eE.push({response:b,tVb:Date.now()});for(var c=0;c<this.H.length;c++)this.H[c].R3a(a);a.Zv.config.$Ga||!this.O.some(function(d){return d.intercept(a)})?a.ee.reject(b):this.log(lhc(a.Zv.lx)+" encountered an error, but was intercepted to be retried.")};_.g.ozb=function(a){Nkc(this);for(var b=0;b<this.H.length;b++)this.H[b].S3a(a)};
var Nkc=function(a){for(var b=0,c=0;c<a.buckets.length;c++)if(a.buckets[c].getSize()){b=a.buckets[c].getSize();break}return b};_.zK.prototype.log=function(a){this.ha.info(this.logName,a)};
_.Okc=function(a,b,c,d){Jkc.call(this);this.V=b;this.ka=c;this.W=d;this.H=new Map;this.ha=_.xj(a,21,1E3);this.ta=_.xj(a,1,1);this.ma=function(){return new _.Ckc(_.xj(a,63,1E3),_.xj(a,64,3E5),_.xj(a,65,10))}};_.K(_.Okc,Jkc);
_.Okc.prototype.intercept=function(a){var b=a.eE.length,c=0<b&&_.ka(a.eE).response||null;if(c){c=_.vI(c);if(2===c.Jp())return Pkc(this,a);if(_.Xfc(c))return 2>=b?(Lkc(this,a),a=!0):a=!1,a;var d=c.Wj();if(3===d||31===d||13===d||9===d)return Qkc(this,a,b);if(Igc(c))return b=Dkc(this.V),c=this.V,Dkc(c)<c.WK?(this.log("Backoff number "+b+" for a User Rate Limit error."),Lkc(this,a),a=!0):(this.log("Done retrying User Rate Limit errors after "+(b+" backoffs.")),a=!1),a}return!1};
var Pkc=function(a,b){var c=Rkc(a,b),d=Dkc(c);if(Dkc(c)<c.WK)return a.log("Retry "+(d+1)+" for a failed request due to an offline error."),a.ka.Me()?(d=c.H.Wa(),_.n.setTimeout(function(){return Lkc(a,b)},d),_.ZH(c.H)):(_.n.setTimeout(function(){return Lkc(a,b)}),c.V++),!0;a.H.delete(b);return!1},Rkc=function(a,b){a.H.has(b)||a.H.set(b,a.ma());return a.H.get(b)},Qkc=function(a,b,c){var d=a.ta;if(c<=d)return a.log("Retry number "+(c+1)+" for a retryable error."),_.n.setTimeout(function(){return Lkc(a,
b)},a.ha*Math.pow(2,c)),!0;a.log("Done retrying retriable requests after "+d+" retries.");return!1};_.Okc.prototype.O=function(a){this.H.delete(a)};_.Okc.prototype.log=function(a){this.W.info("drive.ds.network.queue.RetryInterceptor",a)};
var Skc=function(a){try{if("undefined"!==typeof FileReaderSync&&_.Yfc()){var b=new FileReaderSync;return Promise.resolve(b.readAsDataURL(a))}var c=new _.vvb,d=Mic(c);c.H.readAsDataURL(a);return d.then()}catch(e){return Promise.reject(new _.tvb(_.NI(e),"reading data"))}},Tkc=function(a){return Skc(a.size?a.slice(0,1):a).then(function(){return null},function(b){return b.name})};
var Ukc=function(a,b,c,d,e,f,h){this.Ia=a;this.H=b;this.Ka=c;this.W=d;this.Pa=e;this.request=f;this.config=h;this.O=this.ta=this.progress=0;this.Fa=this.wa=this.ha=null;this.ee=_.Sh();this.finished=!1;this.Ba=this.Qu=0;this.ka=null;this.ma=!1;this.V=null;a=f.request.Zz();a=_.Yfc()&&a?_.z(a,1):null;this.fileSize="number"===typeof a?a:f.file.size;this.requestId=h.requestId;this.TO="progress_"+this.requestId;h.TO=this.TO;this.ma=!!f.metadata};
Ukc.prototype.log=function(a){this.Ka.info("drive.ds.sync.request.ResumableUpload",a)};Ukc.prototype.start=function(){var a=this,b=new ehc(this.request.request,this.request.metadata),c=Vkc(this);this.Ia.then(function(d){return d.Qe(b,c)}).then(function(d){a.ha=d.O;a.wa=d.H;a.Fa=d.V;Wkc(a)},function(d){return void a.ee.reject(d)});return _.Th(this.ee.promise.then(function(d){Xkc(a,d);return d},function(d){d=_.xd(d);Xkc(a,d.tg);return _.Qh(d)}),function(){fkc(a.H,[a.TO])})};
var Vkc=function(a){var b=_.eb(a.config);ekc(a.H,a.TO,pic(function(){return void a.H.notify([a.requestId],0)}));return b};Ukc.prototype.cancel=function(){return this.finished?!1:(this.finished=!0,this.ee.resolve(mhc(this.request)),!0)};
var Wkc=function(a){a.finished||(a.log("Uploading chunk "+a.Ba+" for "+a.ha+"."),Ykc(a,4))},Ykc=function(a,b){Zkc(a).then(function(c){if(c){var d=$kc(a,c.blob.size);a.Ia.then(function(f){return f.Qe(c,d)}).then(function(f){a.V=null;var h=c.blob.size;a.progress+=a.O;a.ta+=h;a.Ba++;f.rK()&&(a.wa=f.rK());f.tN()&&(a.Fa=f.tN());a.progress<a.fileSize?Wkc(a):a.ee.resolve(f)},function(f){if(d.$Ga)a.cancel();else{var h=_.vI(f);h.ODa()||h.Nma()||a.ma?alc(a,b,h,!1):Tkc(c.blob).then(function(k){k=k?_.hFa.get(k)||
25:38;_.II(h,k);alc(a,b,h,38===h.Jp(),38!==h.Jp()&&25!==h.Jp())},function(){})}})}else{var e=_.xd(_.II(_.Co(new _.Gc,"Could not read more of the file. Read "+a.progress+"/"+a.fileSize+" bytes."),5));a.ee.reject(e)}})},alc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=4-b;c.Ega(f);!e&&0<b?(a.Qu++,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+"."));Ykc(a,b)},a.Pa*Math.pow(1.5,f))):a.ee.reject(_.xd(c))},Zkc=function(a,b){return a.ma&&a.V?_.Ph(a.V):blc(a,b).then(function(c){if(!c)return null;if(a.ma&&0<a.fileSize&&0===c.size)return Zkc(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 fhc(a.ha,c,a.ta,a.ta+c.size-1,a.finished,a.request.request.getMimeType(),_.z(a.request.request,12)||
void 0);return a.V})},blc=function(a,b){a.O=b?b:Math.min(a.fileSize-a.progress,a.W);b=a.progress;return a.request.aR?a.request.aR(b,a.O):_.Ph(_.wgc(a.request.file,b,b+a.O))},$kc=function(a,b){var c=_.eb(a.config);c.wUa=!0;var d=a.progress/a.fileSize,e=b/a.fileSize;fkc(a.H,[a.TO]);ekc(a.H,a.TO,function(f){a.H.notify([a.requestId],Math.min(d+e*f,1))});return c},Xkc=function(a,b){b.jPa(3);b.Ega(a.Qu);b.rK()||b.Sda(a.wa);b.tN()||b.Hda(a.Fa)};
_.clc=function(a,b,c,d,e){this.ha=a;this.V=b;this.H=c;this.W=d;this.O=e};_.clc.prototype.create=function(a,b){return new Ukc(this.ha,this.V,this.H,this.W,this.O,a,b)};
_.dlc=function(a){this.O=a;this.H={}};_.dlc.prototype.execute=function(a){for(var b=[],c=0;c<a.length;c++)if(a[c].Zv.lx instanceof _.ghc)b.push(elc(this,a[c].Zv));else{var d=_.Co(new _.Gc,"ResumableUploadExecutor only supports ResumableUploadRequests.");b.push(Promise.reject(_.xd(d)))}return b};_.dlc.prototype.cancel=function(a){return!!this.H[a]&&this.H[a].cancel()};_.dlc.prototype.zK=function(){return!_.ab(this.H)};
var elc=function(a,b){var c=a.O.create(b.lx,b.config),d=c.start(),e=b.config.requestId;a.H[e]=c;d.then(function(){delete a.H[e]},function(){delete a.H[e]});return d};
_.flc=function(a,b){return new _.zK(b,a,[new Hkc],[new _.xK],[],"immediate")};_.glc=function(a,b,c,d,e){return new _.zK(e,a,[_.Akc(d),new _.wK(c,e),new Ikc],[new _.xK],[new _.Okc(b,c,d.Ij(),e)],"connected")};_.hlc=function(a,b,c,d,e,f,h){h=void 0===h?_.xj(b,10,50):h;return new _.zK(e,a,[_.Akc(d),new _.Fkc(h,_.xj(b,12,10)),new _.yK(3*h),new _.wK(c,e)],[new _.xK],[new _.Okc(b,c,d.Ij(),e)],f)};_.ilc=function(a,b,c){return new _.zK(c,a,[new _.yK(_.xj(b,46,1))],[new _.xK],[],"resumable_upload")};
_.jlc=function(a,b,c,d,e,f,h,k){this.GI=a;this.ma=b;this.W=c;this.H=d;this.V=e;this.ha=f;this.ka=h;this.O=k};_.jlc.prototype.Qe=function(a,b){return klc(this,a,b).then(null,function(c){c=_.xd(c);var d=c.tg;nhc(a)||_.Eo(d);return _.Qh(c)})};
var klc=function(a,b,c){c=void 0===c?{}:c;var d=a.GI.validate(b);if(d)return _.Qh(_.xd(d));var e=a.ma.translate(b);e instanceof _.Gc?d=void 0:Array.isArray(e)?(d=e.map(function(f){return a.W.execute(a,f,c)}).filter(function(f){return!!f}),d=0<d.length?Promise.all(d):void 0):d=a.W.execute(a,e,c)||void 0;return _.Ph(d).then(function(){if(e instanceof _.Gc)return _.Qh(_.xd(e));if(Array.isArray(e)){var f=e.map(function(h){return llc(a,b,h,c)});return _.jI(f)}return llc(a,b,e,c)},function(f){return _.Qh(_.xd(f))})},
llc=function(a,b,c,d){var e=mlc(a,c);if(!e)return b=_.II(_.Co(new _.Gc,"Failed to choose a queue for server request."),18),_.Qh(_.xd(b));if(e===a.H[7]||e===a.H[8])d.jO=!0;d=e.add({lx:c,config:d});(_.HJ(b)||_.HJ(c))&&d.then(function(){wkc(a.V)},function(){wkc(a.V)});b=a.ha.apply(c,d);d.then(function(f){a.ka.apply(c,f)},function(){});return b};_.jlc.prototype.cancel=function(a){return _.Wa(this.H,function(b){return b.cancel(a)})};
var mlc=function(a,b){var c,d=!1;b instanceof _.fJ?d=!(null===(c=_.y(b,_.aG,2))||void 0===c||!_.Q(c,7)):b instanceof _.aG?d=!!_.Q(b,7):b instanceof _.nI&&(d=(d=b.jd())&&!!_.Q(d,46));return(b instanceof _.jhc||b instanceof _.EI&&_.Q(b,9))&&a.H[1]?a.H[1]:b instanceof _.ghc&&a.H[5]?a.H[5]:d&&uhc(b,a.O)&&a.H[7]?a.H[7]:uhc(b,a.O)&&a.H[8]?a.H[8]:d&&(b instanceof _.fJ||b instanceof _.aG)&&a.H[6]?a.H[6]:(d||mkc.includes(b.constructor))&&a.H[3]?a.H[3]:ohc.includes(b.constructor)&&a.H[4]?a.H[4]:a.H[2]||a.H[1]};
var nlc=function(a){this.H=a};nlc.prototype.build=function(a,b){var c="====="+_.ih()+"=====",d=a[0].nn,e=b.every(function(l){return l.jO});if(e){var f=d;var h={"content-type":"text/plain; charset=UTF-8"};d="POST";var k=lkc(this.H,a[0].nn);_.Yi(k,"$ct",'multipart/mixed; boundary="'+c+'"')}else f=olc[d],h=plc[d]||{},h["content-type"]=(0,_.Ws)('multipart/mixed; boundary="%s"',c),d=qlc[d],k=new _.Ti("");a=rlc(this,a,b,c,e);return{nn:f,body:a,headers:h,method:d,uri:k}};
var rlc=function(a,b,c,d,e){for(var f=Tgc(slc[b[0].nn]||{}),h="",k=0;k<b.length;k++){e&&jkc(a.H,b[k],c[k]);var l=b[k],p=a.H,q=l,r=c[k];q.uri=kkc(p,q.nn,q.uri);switch(q.nn){case 0:case 5:ikc(p,q,r);hkc(p,q,r);break;case 2:jkc(p,q,r);ikc(p,q,r);var v=q,w=_.z(p.H.Tf(),57);v.headers.host=_.aj(w).ik();v.headers.origin=_.n.location.origin?_.n.location.origin:_.n.location.protocol+"//"+_.n.location.host;hkc(p,q,r);break;case 12:case 10:case 13:break;case 8:case 7:throw Error("uf`"+q.nn);default:throw Error("tf`"+
q.nn);}p=l;q=p.uri.clone();q.Pr("");q.On("");q.TA(null);l=f+"\r\n"+(p.method+" "+q+" HTTP/1.1\r\n")+Tgc(l.headers)+"\r\n"+(l.body?l.body+"\r\n":"");h+="--"+d+"\r\n";h+=l}return h+("--"+d+"--\r\n")},tlc={},olc=(tlc[0]=1,tlc[2]=3,tlc),ulc={},qlc=(ulc[0]="POST",ulc[2]="PUT",ulc[12]="POST",ulc),vlc={},wlc={},plc=(wlc[2]=(vlc["x-goog-upload-protocol"]="batch",vlc),wlc),xlc={},ylc={},zlc={},Alc={},Blc={},slc=(Blc[0]=(xlc["content-type"]="application/http",xlc["content-transfer-encoding"]="binary",xlc),
Blc[13]=(ylc["content-type"]="application/http",ylc["content-transfer-encoding"]="binary",ylc),Blc[12]=(zlc["content-type"]="application/http",zlc["content-transfer-encoding"]="binary",zlc),Blc[2]=(Alc["content-type"]="application/http",Alc),Blc);
var Clc=/^HTTP\/1\.1 (\d+) ([\w ]+)/,Dlc=/^multipart\/mixed; boundary="?([^"]+)"?$/;
var Elc=function(a,b,c,d,e){this.V=a;this.W=b;this.ha=c;this.H=d;this.O=e;this.aj=new Map};Elc.prototype.add=function(a,b){var c="DEFAULT";b.jO&&(c=lkc(this.V,a.nn).toString());this.aj.has(c)||this.aj.set(c,[]);c=this.aj.get(c);if(1<=c.length&&!b.jO&&!olc[a.nn])return a=_.Co(new _.Gc,"Unsupported batch API: "+a.nn),_.Qh(_.xd(a));var d=_.Sh();c.push({request:a,config:b,ee:d});return d.promise};
Elc.prototype.send=function(){for(var a={},b=_.m(this.aj.entries()),c=b.next();!c.done;a={Jsa:a.Jsa},c=b.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;try{Flc(this,d)}catch(f){var e=_.NI(f);e=_.Do(_.Co(new _.Gc,"Error executing XHR: "+e.message),e.stack);a.Jsa=_.xd(e);d.forEach(function(h){return function(k){k.ee.reject(h.Jsa)}}(a));this.aj.delete(c)}}};
var Flc=function(a,b){if(1===b.length){var c=b[0];if(!c.config.rEa&&!c.config.jO){var d=!1;if(olc[c.request.nn]){var e={nn:c.request.nn,headers:{},method:c.request.method,uri:c.request.uri.clone()};a.V.kc(e,c.config);2E3<e.uri.toString().length&&(d=!0)}if(!d){Glc(a,c);return}}}Hlc(a,b)},Glc=function(a,b){var c=b.ee;a.W.nh(b.request,b.config).then(function(d){c.resolve(d);Ilc(a,b)},function(d){a.handleError(b,d);c.reject(d)})},Hlc=function(a,b){var c=[],d=[];b.forEach(function(e){c.push(e.request);
d.push(e.config)});a.W.nh(a.ha.build(c,d),{rEa:!0,jO:d.every(function(e){return e.jO})}).then(function(e){e.headers=_.xgc(e.headers);var f=Dlc.exec(e.headers["content-type"]);var h=f&&f[1]?"--"+f[1]:null;if(!h)throw new _.Hc("Could not extract batch boundary.",_.II(_.Do(new _.Gc,JSON.stringify(e)),14));f=h+"\r\n";h=e.text.split(h+"--");if(2===h.length&&_.fe(_.Rja(h[0]),f)&&_.Se(h[1]))h=_.Rja(h[0]).substring(f.length);else throw new _.Hc("Could not parse batch response; did not begin and end with boundary.",
_.II(_.Do(new _.Gc,JSON.stringify(e)),15));f=h.split(f);h=c.length===f.length;for(var k=[],l=0;l<f.length;l++){var p=h?c[l]:void 0,q=k,r=q.push;var v=void 0;var w,A=e.headers,B=f[l],E=p&&p.uri,I=B.split("\r\n\r\n");if(2>I.length)v=new _.Hc("Individual batch response contained too few parts.",_.II(_.Do(new _.Gc,B),17));else{var M=I[1].split("\r\n");if(w=Clc.exec(M[0])){p=_.kh(w[1]);w=w[2];M.shift();A=_.eb(A);for(var N=Object,S=N.assign,da={},aa=0;aa<M.length;aa++){var fa=_.$ja(M[aa],":",1);fa&&2===
fa.length&&(da[(0,_.wg)(fa[0])]=(0,_.wg)(fa[1]))}M=_.xgc(da);S.call(N,A,M);try{v=_.Se(_.hh(I[2]))?void 0:JSON.parse(I[2])}catch(ha){}v=(p=_.Cgc(p,w,A,B,v,void 0,void 0,E&&E.toString()))?_.xd(p):{headers:A,text:B,json:v||void 0}}else v=new _.Hc("Could not extract HTTP status code and text.",_.II(_.Do(new _.Gc,B),16))}r.call(q,v)}return k}).then(null,function(e){e=_.xd(e);return _.Ncc(e,b.length)}).then(function(e){for(var f=!1,h=0;h<b.length;h++){var k=b[h].ee,l=e[h];l instanceof _.Gc||l instanceof
_.Hc?(l=_.xd(l),f||(f=a.handleError(b[h],l)),k.reject(l)):k.resolve(l)}f||Ilc(a,b[0])})},Ilc=function(a,b){var c=b.request.nn;b=!b.config.Ku&&_.pa(Jlc,c);if(a.H){if(a=a.H,c=b?1:2,!a.state.isConnected()||b)c=Yjc(a,c),b&&c&&a.reset(),a.H&&c&&(b||!a.state.V)&&(a.H.Bj(),a.H=null)}else a.O&&b&&a.O.wa()};
Elc.prototype.handleError=function(a,b){a=_.zda(b);if(2===a.Jp()){if(this.H)return _.$jc(this.H),!0}else if(_.Xfc(a)){if(this.H){a=this.H;if(b=!a.V)b=a.state,b=!b.W&&b.isConnected()?b.O=!0:!1;b&&_.Zjc(a);return!0}if(this.O)return this.O.ta(),!0}return!1};var Jlc=[0,2,4,7,8];
var Klc=function(){_.Qi.apply(this,arguments)};_.K(Klc,_.Qi);Klc.prototype.getAllResponseHeaders=function(){return _.Rja(_.Qi.prototype.getAllResponseHeaders.call(this))};
var Llc=function(a,b){this.ha=a;this.W=b;this.V={};this.O={};this.H={}};
Llc.prototype.nh=function(a,b){var c=this;try{this.ha.kc(a,b);var d=new Klc;d.MC=!0;var e=b.requestId||"",f=_.Sh();d.listen("complete",function(){var h=b.rEa,k=4===a.nn;h=void 0===h?!1:h;k=void 0===k?!1:k;e&&(delete c.V[e],delete c.O[e],delete c.H[e]);var l={headers:_.Jma(d),text:d.Wk()};if((!b.eUb||_.Agc(d.Cb()))&&!h)try{l.json=_.JI(d)}catch(p){}h=_.Cgc(d.Cb(),_.Gma(d),l.headers,l.text,l.json,d.O,_.Kma(d),String(d.ta),k);d.dispose();h?f.reject(_.xd(h)):f.resolve(l)});e&&b.xOb&&(this.H[e]=0,d.listen("readystatechange",
function(){if(3===_.Ri(d)&&d.vA()&&200===d.Cb()){var h=d.Wk(),k=c.H[e];h.length>k&&(k=h.substring(k),c.H[e]=h.length,b.xOb(k))}}));e&&b.TO&&!b.jO&&(this.V[e]=d,this.O[e]=b,d.Gb=!0,d.listen("uploadprogress",function(h){h.lengthComputable&&c.W.notify([b.TO],b.wUa?h.loaded/h.total:h.loaded/h.total/2)}),b.wUa||d.listen("downloadprogress",function(h){h.lengthComputable&&c.W.notify([b.TO],h.loaded/h.total/2+.5)}));d.send(a.uri,a.method,a.body,a.headers);return f.promise}catch(h){return _.Qh(_.xd(h))}};
Llc.prototype.cancel=function(a){var b=this.V[a];a=this.O[a];return b&&b.isActive()?(a.$Ga=!0,b.abort(),!0):!1};
_.Mlc=function(a,b,c,d,e,f,h){this.O=a;this.wa=b;this.Ba=c;this.ta=d;this.ma=e;this.ha=f;this.H=h;this.V=[];this.ka=new nlc(this.O);this.W=new Llc(this.O,this.wa)};_.g=_.Mlc.prototype;
_.g.execute=function(a){for(var b=[],c=[],d=0;d<a.length;d++){var e=a[d].Zv;this.V.push(e);b.push(this.Ba.convert(e,a[d].eE));c.push(nkc(e.lx)?_.rkc(this.ma,e.lx):void 0)}if(this.H&&this.H.V){var f=Promise.reject(_.xd(_.Cgc(0,"",{},"",void 0,-99)));return a.map(function(){return f})}var h=new Elc(this.O,this.W,this.ka,this.H||void 0,this.ha||void 0);d=[];e={};for(var k=0;k<a.length;e={osa:e.osa},k++){e.osa=a[k].Zv.config;var l=b[k].then(function(p){return function(q){return h.add(q,p.osa)}}(e));d.push(l)}Promise.allSettled(b).then(function(){h.send()});
b=[];for(e=0;e<a.length;e++)k=a[e].Zv,l=d[e].then(this.$qb.bind(this,k.lx,c[e],a[e].eE)).then(null,function(p){return Promise.reject(_.xd(p))}),l.then(this.kPa.bind(this,k),this.kPa.bind(this,k)),b.push(l);return b};_.g.$qb=function(a,b,c,d){a=this.ta.convert(a,d,c);b&&a.then(function(e){e=e.Bd?e.Bd():[];_.skc(b,e)});return a};_.g.cancel=function(a){return this.W.cancel(a)};_.g.zK=function(){return this.V.some(function(a){return _.HJ(a.lx)})};_.g.kPa=function(a){_.ya(this.V,a)};
_.Nlc=function(){};_.Nlc.prototype.execute=function(){return null};
var Olc=function(){};
var Plc=function(a,b){this.H=a;this.retryCount=b};
_.AK=function(a){return function(b){return b.kind===a}};
_.Qlc=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};
var Rlc;Rlc=function(a){this.H=a};_.BK=function(a,b){if(!_.Ea(b)||null===b)throw new _.Hc("Expected an object, but got a "+_.fha(b)+".",_.MI(11,void 0,8));if(null===b||void 0===b||void 0===b.kind)throw new _.Hc("Expected 'kind' parameter in response: "+JSON.stringify(b),_.MI(11,void 0,21));var c=b.kind;if(!a(b))throw new _.Hc("Unexpected response type: "+c+".",_.MI(11,void 0,9));};_.CK=function(a){return null!=a?(new Date(a)).getTime():void 0};
_.Slc=function(a){var b=null!=a.canDelete?a.canDelete:a.canDeleteTeamDrive;var c=new _.sk;c=_.x(c,1,a.canAddChildren);c=_.x(c,18,a.canChangeTeamDriveBackground);c=_.x(c,2,a.canComment);c=_.x(c,3,a.canCopy);b=_.x(c,4,b);b=_.x(b,5,a.canDownload);b=_.x(b,6,a.canEdit);b=_.x(b,10,a.canManageMembers);b=_.x(b,11,a.canManageVisitors);b=_.x(b,20,a.canMoveItemIntoTeamDrive);b=_.x(b,17,a.canMoveTeamDriveItem);b=_.Ghc(b,a.canReadTeamDrive);b=_.x(b,7,a.canRemoveChildren);b=_.x(b,12,a.canRename);b=_.x(b,13,a.canRenameTeamDrive);
b=_.x(b,8,a.canShare);b=_.x(b,9,a.canTrash);b=_.x(b,21,a.canUntrash);b=_.x(b,27,a.canModifyContentRestriction);b=_.x(b,26,a.canShareOutsideDomain);b=_.x(b,30,a.canMoveItemWithinTeamDrive);b=_.x(b,31,a.canMoveItemOutOfTeamDrive);b=_.x(b,32,a.canMoveChildrenWithinTeamDrive);b=_.x(b,33,a.canMoveChildrenOutOfTeamDrive);b=_.x(b,34,a.canDeleteChildren);b=_.x(b,35,a.canTrashChildren);b=_.x(b,36,a.canRequestApproval);b=_.x(b,37,a.canReadCategoryMetadata);b=_.x(b,38,a.canEditCategoryMetadata);b=_.x(b,39,a.canChangeCategoryReferences);
b=_.x(b,49,a.canSetMissingRequiredFields);b=_.x(b,40,a.canAddMyDriveParent);b=_.x(b,41,a.canRemoveMyDriveParent);b=_.x(b,42,a.canShareChildFiles);b=_.x(b,43,a.canShareChildFolders);b=_.x(b,44,a.canRead);b=_.x(b,45,a.canMoveItemWithinDrive);b=_.x(b,46,a.canMoveItemOutOfDrive);b=_.x(b,47,a.canMoveChildrenWithinDrive);b=_.x(b,48,a.canAddFolderFromAnotherDrive);b=_.x(b,50,a.canChangeSecurityUpdateEnabled);b=_.x(b,51,a.canRemoveSecureLinkUpdateForAllFiles);b=_.x(b,52,a.canCreateDecryptedCopy);b=_.x(b,
53,a.canCreateEncryptedCopy);b=_.x(b,54,void 0===a.canAddEncryptedChildren?a.canAddChildren:a.canAddEncryptedChildren);return _.x(b,55,a.canBlockOwner)};_.DK=function(a,b){_.BK(_.AK("drive#user"),b);var c=_.Ehc(_.Fhc(_.Chc(1).Nb(b.permissionId),b.id).$c(b.displayName),b.emailAddress);b.picture&&c.Pn(b.picture.url);_.mI(a.H)&&_.Ehc(c,b.emailAddressFromAccount||b.emailAddress);_.Dhc(c,a.mf(b.id));c.On(b.domain);return c};Rlc.prototype.mf=function(a){if(a)return _.UJ(_.fI(this.H))==a};
var Tlc,Ylc,fmc,lmc,amc,$lc,cmc,emc,gmc,Vlc,imc,hmc,jmc,kmc,nmc,omc,mmc,dmc;Tlc=function(a,b){this.H=a;this.O=b};
_.Wlc=function(a,b,c){var d=new _.uK,e=new _.eI,f=e.iB,h=[];if(_.AK("drive#file")(b))(a=_.Ulc(a,b))&&h.push(a);else if(_.AK("drive#fileList")(b))for(var k=b.items||[],l=0;l<k.length;l++){var p=_.Ulc(a,k[l]);h.push(p)}e=f.call(e,h);if(_.AK("drive#fileList")(b)){_.x(e,8,b.incompleteSearch);if(h=b.spellResponse){f=[];var q=_.m(h.spellCorrections);for(a=q.next();!a.done;a=q.next()){h=[];a=_.m(a.value.spellFragments);for(k=a.next();!k.done;k=a.next())k=k.value,l=(new _.kec).Dc(Vlc.get(k.status)),l=_.x(l,
1,k.original),k=_.x(l,3,k.correction),h.push(k);a=new _.oec;h=_.mj(a,1,h);f.push(h)}q=new _.qec;_.mj(q,1,f)}if((f=b.suggestedNlpQueries)&&0<f.length){var r=new _.mec;_.kj(r,1,f)}q||r?(f=new _.rec,q&&_.G(f,1,q),r&&_.G(f,2,r),r=f):r=null;_.G(e,7,r);r=[];f=_.m(b.items||[]);for(q=f.next();!q.done;q=f.next())q=q.value,h=q.id,!h||"1"!=q.searchResultSource&&"3"!=q.searchResultSource||r.push(h);_.kj(e,18,r)}d=_.tkc(d,e);c=_.zgc(c);c=_.x(d,2,c);_.AK("drive#fileList")(b)&&b.nextPageToken&&_.x(c,3,b.nextPageToken);
return c};Ylc=function(a,b,c,d,e){var f=_.Lic(new _.GJ,c);_.AK("drive#adminFile")(b)?(c=(new _.Bk).Nb(b.id),b.parentId&&_.PJ(c,[b.parentId]),_.Thc(c,b.teamDriveId),f.setItem(c),_.Lic(f,c.getId())):_.AK("drive#file")(b)?(b=_.Ulc(a,b),f.setItem(b),c||_.Lic(f,b.getId())):_.AK("drive#revision")(b)&&(b=_.Xlc(a,b),_.G(f,4,b));f.Sda(_.ygc(d));f.Hda(_.zgc(d));(d=(d=d&&_.xgc(d))&&d["x-server-object-version"])&&e&&(e=(new _.aK).Nb(d),_.G(f,4,e));f.Dc(1);return f};_.Zlc=function(a,b){return _.Lic(new _.GJ,a).Dc(1).Sda(_.ygc(b)).Hda(_.zgc(b))};
_.bmc=function(a,b){var c=_.Dhc(_.Fhc(_.Chc($lc.get(b.type)).Nb(b.id),b.userId),a.H.mf(b.userId));c=_.x(c,4,b.withLink);c=_.Ehc(c.$c(b.name).Pn(b.photoLink),b.emailAddress).On(b.domain);c=_.x(c,10,b.deleted);c=_.x(c,12,b.audienceId);c=_.x(c,13,b.customerId);_.mI(a.O)&&c.$c(b.nameIfNotUser);b.role&&(a=amc.get(b.role),2==a&&b.additionalRoles&&"commenter"==b.additionalRoles[0]?a=4:2==a&&"published"==b.view&&(a=6),_.x(c,6,a));return c};
_.Ulc=function(a,b){var c=b.title,d=(new _.Bk).Nb(b.id),e=[];if(b&&b.parents)for(var f=_.m(b.parents),h=f.next();!h.done;h=f.next())e.push(h.value.id);c=_.Phc(_.hG(_.PJ(d,e).setTitle(c),b.mimeType),b.alternateLink);c=_.x(c,44,b.hasThumbnail);null!=b.thumbnailVersion&&_.x(c,90,Number(b.thumbnailVersion));_.x(c,21,b.iconLink);c.kl(b.description);_.x(c,26,b.explicitlyTrashed);_.x(c,22,b.shared);null!=b.quotaBytesUsed&&_.x(c,28,Number(b.quotaBytesUsed));null!=b.fileSize&&_.x(c,14,Number(b.fileSize));
_.x(c,30,b.copyable);b.labels&&(d=b.labels,c.px(d.starred),_.x(c,6,d.hidden),c.Ro(d.trashed),_.x(c,8,d.restricted),_.x(c,9,d.viewed));_.x(c,10,_.CK(b.createdDate));_.x(c,69,_.CK(b.serverCreatedDate));_.x(c,11,_.CK(b.modifiedDate));_.x(c,12,_.CK(b.modifiedByMeDate));_.x(c,13,_.CK(b.lastViewedByMeDate));_.x(c,23,_.CK(b.sharedWithMeDate));_.x(c,62,_.CK(b.lfc));_.x(c,70,_.CK(b.recency));b.recencyReason&&(d=cmc.get(b.recencyReason)||0,_.x(c,71,d));d=[];if(b&&b.owners)for(e=b.owners,f=0;f<e.length;f++)(h=
_.DK(a.H,e[f]))&&d.push(h);_.Nhc(c,d);b.lastModifyingUser&&(d=_.DK(a.H,b.lastModifyingUser),_.Ohc(c,d));b.userPermission&&(d=amc.get(b.userPermission.role),_.cWb(c,d));b.imageMediaMetadata&&(e=b.imageMediaMetadata,d=(new _.MJ).oh(e.width).Ah(e.height),d=_.x(d,4,e.rotation),e.date&&(e=e.date,f=new _.$Ma,f.setMilliseconds(0),dmc.parse(e,f),_.x(d,1,f.getTime())),_.G(c,27,d));null!=b.folderColor&&_.Qhc(c,Number(b.folderColor));_.x(c,31,b.subscribed);_.x(c,45,b.fileExtension);_.kj(c,50,b.folderFeatures);
_.x(c,36,b.flaggedForAbuse);_.x(c,53,b.gplusMedia);_.x(c,46,b.primarySyncParentId||void 0);_.x(c,35,b.hasChildFolders);b.source&&(_.x(c,42,b.source.client_service_id),_.x(c,43,b.source.value));b.sharingUser&&(d=_.DK(a.H,b.sharingUser),_.Rhc(c,d));b.sources?_.kj(c,56,b.sources):b.gplusMedia&&_.kj(c,56,["GOOGLE_PHOTOS"]);if(b.spaces){d=b.spaces;e=[];for(f=0;f<d.length;f++)h=d[f],_.vfc[h]&&(h=_.yf(new _.xf,_.vfc[h]),e.push(h));c.UA(e)}_.x(c,63,b.ownedByMe);_.x(c,29,b.shareable);b.sourceAppId&&_.x(c,
61,b.sourceAppId);_.x(c,74,b.changed);if(b.actionItems){d=b.actionItems;e=[];for(f=0;f<d.length;f++){var k=d[f];k.id&&k.type&&(h=(new _.Foa).Nb(k.id),k=emc.get(k.type),h=_.x(h,2,k),e.push(h))}_.mj(c,83,e)}b.capabilities&&_.QJ(c,_.Slc(b.capabilities));b.permissionsSummary&&_.Uhc(c,fmc(a,b.permissionsSummary));b.headRevisionId&&_.x(c,78,b.headRevisionId);b.templateData&&(d=b.templateData,e=(new _.NJ).kl(d.description),f=gmc.get(d.galleryState),e=_.x(e,3,f),d=_.kj(e,2,d.category),_.G(c,86,d));_.Thc(c,
b.teamDriveId);_.x(c,76,b.hasAugmentedPermissions);_.x(c,137,b.ancestorHasAugmentedPermissions);b.creator&&(d=_.DK(a.H,b.creator),_.Vhc(c,d));_.Whc(c,b.primaryDomainName);_.Xhc(c,b.organizationDisplayName);_.x(c,94,b.passivelySubscribed);b.trashingUser&&_.Yhc(c,_.DK(a.H,b.trashingUser));c.Wda(_.CK(b.trashedDate));b.version&&_.x(c,75,Number(b.version));_.x(c,98,b.hasVisitorPermissions);_.x(c,102,b.hasAppsScriptAddOn);if(d=b.pairedDocType)d=hmc.get(d),_.x(c,101,d);b.videoMediaMetadata&&(d=b.videoMediaMetadata,
e=(new _.OJ).oh(d.width).Ah(d.height),d.durationMillis&&_.x(e,3,Number(d.durationMillis)),_.G(c,103,e));_.kj(c,104,b.detectors);_.x(c,108,b.containsUnsubscribedChildren);if(b.contentRestrictions){d=[];e=_.m(b.contentRestrictions);for(f=e.next();!f.done;f=e.next())f=f.value,h=(new _.wk).rP(f.readOnly),f=_.x(h,2,f.reason),d.push(f);_.mj(c,125,d)}if(d=b.publishingInfo)_.x(c,118,d.published),_.x(c,119,d.publishedUrl);_.kj(c,120,b.workspaceIds);b.approvalMetadata&&b.approvalMetadata.approvalVersion&&_.x(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 _.Hoa).Nb(f.approvalId).Dc(imc.get(f.status)),d.push(f);_.mj(c,127,d)}b.shortcutDetails&&(d=b.shortcutDetails,e=new _.Qoa,e=_.x(e,1,d.targetId),e=_.x(e,3,d.targetMimeType),e=_.x(e,6,d.canRequestAccessToTarget),d.targetLookupStatus&&(f=jmc.get(d.targetLookupStatus)||0,_.x(e,4,f)),d.targetFile&&(d=_.Ulc(a,
d.targetFile),_.G(e,5,d)),_.G(c,132,e));b.clientEncryptionDetails&&(d=b.clientEncryptionDetails,e=new _.LJ,f=kmc.get(d.encryptionState),e=_.x(e,1,f),d.decryptionMetadata&&(d=lmc(d.decryptionMetadata),_.G(e,2,d)),_.G(c,138,e));b.linkShareMetadata&&(d=b.linkShareMetadata,e=new _.Ihc,e=_.x(e,2,d.securityUpdateEligible),e=_.x(e,3,d.securityUpdateEnabled),d=_.x(e,5,d.securityUpdateExplicitlySet),_.G(c,139,d));_.x(c,140,b.resourceKey);_.kj(c,135,b.authorizedAppIds);_.Zhc(c,b.customerId);_.x(c,144,b.abuseIsAppealable);
b.abuseNoticeReason&&(b=mmc.get(b.abuseNoticeReason)||0,_.x(c,145,b));_.Pgc(c);_.mI(a.O)&&_.Shc(c,5);return c};_.Xlc=function(a,b){var c=(new _.aK).Nb(b.id);c=_.x(c,2,b.mimeType);c=_.x(c,3,_.CK(b.modifiedDate));c=_.x(c,4,b.pinned);c=_.x(c,5,b.downloadUrl);c=_.x(c,7,b.originalFilename);null!=b.fileSize&&_.x(c,8,Number(b.fileSize));b.lastModifyingUser&&(a=_.DK(a.H,b.lastModifyingUser),_.G(c,9,a));b.decryptionMetadata&&(b=lmc(b.decryptionMetadata),_.G(c,10,b));return c};
fmc=function(a,b){return _.Lhc(_.Khc(_.Jhc(new _.Loa,b.entryCount),(b.visibility||[]).map(function(c){var d=_.Chc($lc.get(c.type)).On(c.domain);d=_.x(d,4,c.withLink).Nb(c.type+"|"+(c.domain||"")+"|"+c.withLink);if(c.role){var e=amc.get(c.role);2==e&&c.additionalRoles&&"commenter"==c.additionalRoles[0]&&(e=4);_.x(d,6,e)}return d})),(b.selectPermissions||[]).map(function(c){return _.bmc(a,c)}))};
lmc=function(a){var b=a.wrappedKey;var c=new _.Hhc;b=b?_.uec(b):void 0;c=_.x(c,1,b);c=_.x(c,2,Number(a.kaclsId));c=_.x(c,5,a.kaclsName);b=nmc.get(a.aes256GcmChunkSize);c=_.x(c,3,b);b=omc.get(a.keyFormat);c=_.x(c,6,b);return _.x(c,4,a.jwt)};amc=new Map([["fileOrganizer",7],["organizer",5],["owner",1],["reader",2],["writer",3]]);$lc=new Map([["anyone",4],["audience",5],["domain",3],["group",2],["user",1]]);cmc=new Map([["createdByMe",1],["modifiedByMe",2],["modified",3],["viewedByMe",4]]);
emc=new Map([["MENTION",0],["SUGGESTION",1],["ASSIGNMENT",2]]);gmc=new Map([["UNAVAILABLE",1],["AVAILABLE",2],["PENDING",3]]);Vlc=new Map([["CORRECT",1],["INCORRECT",2],["SUSPICIOUS",3]]);imc=new Map([["IN_PROGRESS",1],["APPROVED",2],["CANCELLED",3]]);hmc=new Map([["docs",1],["sheets",2],["slides",3]]);jmc=new Map([["ok",1],["notFound",2],["permissionDenied",3]]);kmc=new Map([["unencrypted",1],["encrypted",2]]);nmc=new Map([["unset",0],["default",1],["small",2],["size16kb",3]]);
omc=new Map([["unsetKeyFormat",0],["tinkKeyset",1],["tinkAesGcmKey",2]]);mmc=new Map([["unknownReason",0],["accessibleOnlyToOwner",1],["accessibleOnlyToOwningCustomer",2],["suspiciousOther",3],["suspiciousPhishing",4],["suspiciousMalware",5],["accessibleOnlyToOwnerInSomeRegions",6],["accessibleOnlyToOwningCustomerInSomeRegions",7],["suspiciousInSomeRegions",8]]);dmc=new _.DVa("yyyy:MM:dd HH:mm:ss");
var pmc=function(a,b,c){this.O=a;this.H=b;this.V=c};
var rmc,tmc;_.qmc=function(a){this.V=a;this.W=new Rlc(a);this.NF=new Tlc(this.W,a);this.V=a};
_.qmc.prototype.convert=function(a,b,c){c=void 0===c?[]:c;try{var d=this.ka(a,b);if(d)var e=Promise.resolve(d);else{if(a instanceof _.UI)var f=Promise.resolve(_.EK(this,a,b));else{if(a instanceof _.cJ)var h=rmc(this,0,b,c);else{if(a instanceof _.aG||a instanceof _.fJ){var k=Promise,l=k.resolve;if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#fileList"),_.AK("drive#file")),b.json);var p=_.Wlc(this.NF,b.json,b.headers);var q=l.call(k,p)}else{if(a instanceof _.DJ)k=Promise.resolve(_.EK(this,a,b));else{if("undefined"!=
typeof _.bhc&&a instanceof _.bhc){var r=Promise,v=r.resolve;if(!b.json)throw _.FK();_.BK(_.AK("drive#generateCseTokenResponse"),b.json);var w=b.json;var A=v.call(r,new _.Qlc(w.fileId,w.jwt,Number(w.currentKaclsId),w.currentKaclsName,w.customerId))}else{if("undefined"!=typeof _.smc&&a instanceof _.smc){var B=Promise,E=B.resolve;if(!b.json)throw _.FK();_.BK(_.AK("drive#revision"),b.json);var I=_.Xlc(this.NF,b.json);r=E.call(B,I)}else{if(a instanceof _.sJ)B=rmc(this,a.jd(),b,c);else{if(a instanceof fhc){l=
Promise;var M=l.resolve;if(a.B1a){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#file"),_.AK("drive#adminFile"),_.AK("drive#revision")),b.json);var N=Ylc(this.NF,b.json,null,b.headers,!!a.revisionId)}else N=_.Zlc(null,b.headers);var S=M.call(l,N)}else{if(a instanceof ehc){a=Promise;var da=a.resolve,aa=_.xgc(b.headers),fa=aa.location;if(!fa){var ha=_.II(new _.Gc,10);throw new _.Hc("No upload session URI included.",ha);}var xa=new pmc(fa,_.ygc(aa),_.zgc(aa));var ua=da.call(a,xa)}else ua=a instanceof
_.jhc?Promise.resolve(new Olc):Promise.reject(new _.Hc("FromXhrConverter: Unsupported request type.",new _.Gc));S=ua}B=S}r=B}A=r}k=A}q=k}h=q}f=h}e=f}return e}catch(Ja){return Promise.reject(_.xd(Ja))}};_.qmc.prototype.ka=function(){return null};
rmc=function(a,b,c,d){b=c.headers["x-goog-safety-encoding"];return"base64"===b?0<_.xj(a.V,95,0)?tmc(c.text,_.xj(a.V,95,0)).then(function(e){return new Plc(e,d.length)}):Promise.resolve(new Plc(_.eba(c.text),d.length)):b?Promise.reject(Error("rg")):Promise.resolve(new Plc(new Uint8Array(_.bna(c.text)),d.length))};
tmc=function(a,b){return new Promise(function(c){for(var d=[],e={i_:0};e.i_<Math.floor(a.length/b);e={i_:e.i_},e.i_++)_.si(function(f){return function(){d.push(_.eba(a.slice(f.i_*b,(f.i_+1)*b)))}}(e),0);_.si(function(){d.push(_.eba(a.slice(Math.floor(a.length/b)*b,a.length)))},0);_.si(function(){var f=d.map(function(l){return l.byteLength}).reduce(function(l,p){return l+p});f=new Uint8Array(f);for(var h=0,k=0;k<d.length;k++)f.set(d[k],h),h+=d[k].byteLength;c(f)},0)})};
_.EK=function(a,b,c){if(!c.json){if(b instanceof _.xI)return _.Zlc(_.umc(b));throw _.FK();}var d=!1;b instanceof _.DJ&&(d=!!_.z(b.request,12));_.BK(_.LI(_.AK("drive#file"),_.AK("drive#adminFile"),_.AK("drive#revision")),c.json);return Ylc(a.NF,c.json,_.umc(b),c.headers,d)};_.FK=function(){var a=_.II(new _.Gc,11);return new _.Hc("FromXhrConverter: JSON required, but none found",a)};_.umc=function(a){return a.getId?a.getId():a.qc?a.qc():null};
var vmc,xmc,vhc,ymc,whc;vmc={};_.wmc=(vmc[1]="active",vmc[2]="archived",vmc);xmc={};vhc=(xmc[0]="unset",xmc[1]="default",xmc[2]="small",xmc[3]="size16kb",xmc);ymc={};whc=(ymc[0]="unsetKeyFormat",ymc[1]="tinkKeyset",ymc[2]="tinkAesGcmKey",ymc);
var Bmc=function(a,b,c){return(a.aR?a.aR(0,a.file.size):Promise.resolve(a.file)).then(function(d){return Skc(d)}).then(function(d){return zmc(a,b,d,c)},Amc)},zmc=function(a,b,c,d){var e=!!_.z(a.request,12),f={},h="files";e&&(h+="/"+_.z(a.request,12));h=new _.Ti(h);f.uploadType="multipart";f.supportsTeamDrives=!0;f.pinned=!!_.R(a.request,13,!1);null!=_.Q(a.request,8)&&(f.convert=_.Q(a.request,8));f.fields=_.Lgc({fields:_.bK(b).filter(function(q){return 194!=q}),anonymous:!1});Qgc(f,h);Rgc(h,a.request.re());
var k=Ahc(a.request,a.metadata);f=_.ih();b={};b=(b["content-type"]=(0,_.Ws)('multipart/related; boundary="%s"',f),b);var l=c.indexOf(",");c=0<=l?c.substring(l+1):"";k=JSON.stringify(k);l={};l=(l["content-type"]="application/json; charset=UTF-8",l);var p={};p=(p["content-transfer-encoding"]="base64",p);a.request.getMimeType()&&(p["content-type"]=a.request.getMimeType());_.KJ(d,_.yb(a.request,_.el,28),[],null,b);a="--"+f;a=a+"\r\n"+Tgc(l)+"\r\n"+k+"\r\n"+a+"\r\n"+Tgc(p)+"\r\n"+c+"\r\n"+a+"--";return{nn:2,
headers:b,method:e?"PUT":"POST",uri:h,body:a}},Amc=function(a){if(a instanceof _.tvb){var b=new _.Gc;_.Co(b,"fs.Error: "+a.message);a=(a=a.name)?_.hFa.get(a)||25:38;_.II(b,a);b=_.xd(b)}else b=_.NI(a);return Promise.reject(b)};
_.GK=function(a,b,c,d){this.H=a;this.Bg=b;this.O=c;this.Xf=d};_.GK.prototype.convert=function(a,b){try{return a.lx instanceof _.DJ?Bmc(a.lx,this.Bg,this.H):Promise.resolve(this.V(a.lx,a.config,b))}catch(c){return c instanceof _.Hc?a=c.tg:(a=new _.Gc,_.Co(a,"Error converting XHR: "+c.message),_.Do(a,c.stack),_.II(a,4)),Promise.reject(a)}};
_.GK.prototype.V=function(a,b,c){var d,e=0,f,h={},k="GET",l={},p=!1,q=!1;if(a instanceof _.UI){k=(f=!!_.z(a,12))?"PUT":"POST";var r="files";f&&(r+="/"+_.z(a,12),l.pinned=!!_.R(a,13,!1));null!=_.Q(a,8)&&(l.convert=_.Q(a,8));l.fields=_.Lgc({fields:this.hh(),anonymous:_.KI(_.fI(this.H)),iF:_.mI(this.H)});f=Ahc(a);h["content-type"]="application/json";var v=a.re();q=!0;l.supportsTeamDrives=!0;_.R(this.H,3,!1)&&(l.enforceSingleParent=!0);_.KJ(this.H,_.yb(a,_.el,28),_.re(a,3).concat([_.z(a,16),a.U2(),a.qc()]),
this.O,h)}else if(a instanceof _.cJ||a instanceof _.sJ)a instanceof _.sJ?(p=a.jd(),_.ej(a,2)&&(r="bytes="+_.z(a,2)+"-",_.ej(a,3)&&(r+=_.z(a,3)),h.range=r)):p=a,b.eUb=!0,r="files/"+p.getId(),_.z(p,2)&&(l.revisionId=_.z(p,2)),l.alt="media",h["X-Goog-Encode-Response-If-Executable"]="base64",_.KJ(this.H,[_.gl((new _.el).Nb(p.getId()),_.z(p,3))],[p.getId()],this.O,h),q=p=!0;else if(a instanceof _.fJ||a instanceof _.aG){if(a instanceof _.fJ){r=_.z(a,1);var w=_.y(a,_.aG,2)}else if(a instanceof _.aG)r=0,
w=a,a.V(),_.rK(this.Xf,190196159);else throw Error("sg");var A=w.V()[r];r="files/"+A;a=_.Aa(this.hh(),this.hh(w.H()));_.Ga(a);l.fields=_.Lgc({fields:a,anonymous:_.KI(_.fI(this.H)),iF:_.mI(this.H)});l.supportsTeamDrives=!0;_.R(this.H,14,!1)&&(l.useLegacyDomainPermissionBehavior=!1);this.W(A,l);v=w.re();q=!0;_.Q(w,7)&&(b.rEa=!0);10!=_.WJ(this.H)||(null===(d=_.IJ(this.H))||void 0===d?0:_.R(d,22,!1))?_.KJ(this.H,_.yb(w,_.el,11).filter(function(E){return E.getId()==A}),[A],this.O,h):_.KJ(this.H,_.yb(w,
_.el,11),w.V(),this.O,h)}else if("undefined"!=typeof _.bhc&&a instanceof _.bhc)r="files/generateCseToken",a.id&&(l.fileId=a.id),l.role=a.role,v=a.H;else if("undefined"!=typeof _.smc&&a instanceof _.smc)l.fields="kind,id,modifiedDate,originalFilename,fileSize,mimeType,decryptionMetadata(wrappedKey,kaclsId,aes256GcmChunkSize,jwt,keyFormat)",r="files/"+a.id+"/revisions/"+a.revisionId,q=p=!0;else if(a instanceof fhc){e=4;k="PUT";r=a.V;a.contentType&&(h["content-type"]=a.contentType);if(a.O>=a.H){var B=
a.H;b=a.O;h["content-range"]=a.B1a?(0,_.Ws)("bytes %d-%d/%d",B,b,b+1):(0,_.Ws)("bytes %d-%d/*",B,b)}B=a.blob;q=!0}else a instanceof ehc?(e=2,k=(f=!!_.z(a.request,12))?"PUT":"POST",r="files",f&&(r+="/"+_.z(a.request,12)),l.uploadType="resumable",l.pinned=!!_.R(a.request,13,!1),null!=_.Q(a.request,8)&&(l.convert=_.Q(a.request,8)),l.fields=_.Lgc({fields:this.hh().filter(function(E){return 194!=E}),anonymous:_.KI(_.fI(this.H)),iF:_.mI(this.H)}),l.supportsTeamDrives=!0,f=Ahc(a.request,a.metadata),h["content-type"]=
"application/json",null!=a.request.getMimeType()&&(h["x-upload-content-type"]=a.request.getMimeType()),_.KJ(this.H,[],_.re(a.request,3),this.O,h),v=a.request.re(),q=!0):a instanceof _.jhc?(r="about",l.fields="kind",v=a.H,q=!0):_.Cmc(a);q&&_.Dmc(c,l);0!=e||p||v&&_.z(v,1)||_.rK(this.Xf,74438989);return _.Emc(this,e,r,l,h,k,v,f,B)};
_.Emc=function(a,b,c,d,e,f,h,k,l){c=new _.Ti(c);[10,12,13].includes(b)||Rgc(c,h);(a=a.H.Ki())&&(e["X-Goog-Drive-Client-Version"]=a);d=_.m(Object.entries(d));for(a=d.next();!a.done;a=d.next())h=_.m(a.value),a=h.next().value,h=h.next().value,_.Zi(c,a,h);return{nn:b,headers:e,method:f,uri:c,body:k?JSON.stringify(k):l}};_.GK.prototype.W=function(){};_.Dmc=function(a,b){a&&a.length?(b.retryCount=a.length,b.msSinceLastAttempt=Date.now()-_.ka(a).tVb):b.retryCount=0};
_.GK.prototype.hh=function(a){a||(a=_.bK(this.Bg));return a};_.Cmc=function(a){var b=_.II(new _.Gc,4);throw new _.Hc("ToXhrConverter: Unsupported request type: "+lhc(a),b);};
_.HK=function(a,b,c,d,e,f){_.qi.call(this);var h=this;this.O=a;this.V=b;this.W=c;this.ha=d;this.Ba=e;this.wa=f;this.aj={};this.ka={};this.Xf=null;_.ef(this,function(){h.IG()})};_.K(_.HK,_.qi);_.HK.prototype.fR=function(){return _.FI()};
_.HK.prototype.upload=function(a,b,c,d){qkc(this.V,"UploadTotalCount");var e=a.mj();if(e&&this.aj[e])throw new _.Hc("Upload requested with a duplicate request ID.");var f=_.re(a,10);if(f&&f.length){if(1!==f.length)throw new _.Hc("Multi-parented uploads are not supported.");var h=this.aj[f[0]];if(!h)throw new _.Hc("The parent upload request must precede this request.");}!_.z(a,26)&&b&&b.lastModified&&_.x(a,26,b.lastModified);e||(e=this.fR(),_.x(a,9,e));a=a.clone();f=Fmc(this,e);this.aj[e]={request:a,
file:b,Ee:f,hN:!1,Qu:0,success:!1,ZE:!1,children:[],metadata:c,Yma:void 0,aR:d};h?Gmc(this,e,h):this.ma(e);return f.qn()};
var Fmc=function(a,b){var c=new _.Uh;c.dg(_.Ob(a.Fa,b),_.Ob(a.Ia,b),a);return c},Gmc=function(a,b,c,d){var e=a.aj[b];c.children.push(b);_.Ga(c.children);c.Ee.then(function(f){if(1===f.Cb()&&(f=f.qc(),_.re(e.request,3).push(f),_.gI(e.request,10),!c.ZE||d)){a.ma(b);return}a.log('[Cancel] Upload of "'+e.request.getTitle()+'" was cancelled due to parent upload cancellation.');a.cancel(b)},function(f){e.Ee.Gd(_.sI(f)?f:Error(f))})};
_.HK.prototype.Fa=function(a,b){qkc(this.V,"UploadSuccessCount");a=this.aj[a];a.success=1===b.Cb();(b=a.Yma)&&!a.ZE&&(zic(Bic(njc(b),a.Qu),!0),b.Bj())};_.HK.prototype.Ia=function(a,b){var c=this.O.dH();c&&_.R(c,1,!1)&&(this.ka[a]=b);qkc(this.V,"UploadFailureCount");c=this.aj[a];(a=c.Yma)&&!c.ZE&&(zic(Bic(njc(a),c.Qu),!1),b=(c=b&&b.tg)&&c.Wj(),c=c&&c.Jp(),b?Aic(njc(a),Hmc.get(b)||13):c&&Aic(njc(a),Imc.get(c)||0),a.Bj())};
_.HK.prototype.ma=function(a){var b=this.aj[a];if(!b.hN){b.hN=!0;a=this.aj[a];var c=a.request,d=this.O.dH();d&&_.R(d,4,!1)&&(d=c.getTitle().match(Jmc))&&(!d[1]||a.Qu<Number(d[1].substr(1)))&&(c=c.clone(),_.sa(_.re(c,3),"$#@! Invalid parent ID."));a=c;c=(c=b.request.Zz())?_.z(c,1)||0:0;d=b.file&&b.file.size||c;c=this.O.Tf();var e=_.xj(c,33,1048576);e=b.file&&b.file&&d>e?2:b.file?1:3;if(this.wa&&3!==e){var f=this.wa.H(106012);f&&(b.Yma=f,f=njc(f),f=_.x(f,1,2===e?2:1),f=_.x(f,4,!!b.metadata),f=_.x(f,
5,!!_.z(a,12)),d=_.x(f,6,d),_.x(d,7,_.xj(c,32,1073741824)))}switch(e){case 2:b.file&&Kmc(this,new _.ghc(a,b.file,b.aR,b.metadata),b.Ee,a.mj());break;case 1:b.file&&(c=b.Ee,d=b.file,e=b.metadata,b=b.aR,f=_.y(this.O,_.$hc,2),Kmc(this,new _.DJ(a,d,b,f&&_.RJ(f)?e:void 0),c,a.mj()));break;case 3:Kmc(this,a,b.Ee,a.mj());break;default:throw new _.Hc("Upload type ${uploadType} not supported.");}}};
var Kmc=function(a,b,c,d){ekc(a.W,d,a.ta.bind(a,d));var e=a.ha.then(function(f){return f.Qe(b,{requestId:d})}).then(null,function(f){return Lmc(a,b,f)});e.then(function(){fkc(a.W,[d])},function(){fkc(a.W,[d])});e.then(function(f){c.callback(f)},function(f){c.Gd(f)})},Lmc=function(a,b,c){var d=_.xd(c),e=b instanceof _.DJ&&b.request.qc()||"";c=d.tg;if(e&&8===c.Wj()){a.log("Create failed with 409 Conflict, re-querying: "+e);var f=_.cG(new _.aG,[e]);return _.$h(a.ha.then(function(h){return h.Qe(f)}).then(function(h){h=
h.Zc().Bd()[0];var k=b.request;if(h&&!h.Qh()&&(h.getMimeType()||"").replace(/\s/g,"")===(k.getMimeType()||"").replace(/\s/g,"")&&h.getTitle()===k.getTitle())return a.log("Matching item found for: "+e),_.Lic((new _.GJ).setItem(h),e).Dc(1);a.log("No matching item found for: "+e);return _.Qh(d)}))}return _.ai(d)};_.g=_.HK.prototype;
_.g.cancel=function(a){var b=this,c=this.aj[a];if(c&&(!c.ZE||0!==c.children.length))if(c.ZE=!0,c.Ee.Wf())this.log('[Cancel] Response for "'+c.request.getTitle()+'" already received. Cannot cancel.'+(c.children.length?" Attempting to cancel children.":"")),_.Ma(c.children,this.cancel,this);else{var d=c.Yma;d&&(Aic(zic(Bic(njc(d),c.Qu),!1),2),d.Bj());var e=_.Sh();c.hN?this.ha.then(function(f){return void e.resolve(f.cancel(a))}):(c.hN=!0,c.Ee.callback(mhc(c.request)),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.IG=function(){var a=this;_.Ta(this.aj,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.aj[f]){var h=[];do{h.push(f);var k=(_.re(b.aj[f].request,10)||[])[0];if(k){var l=b.aj[k];if(l.success||!l.Ee.Wf()||e[k])break;else if(!c.has(k)){e[f]=new _.Hc("Unable to retry request due to failed parent upload.");break}}f=k}while(f);_.la(h,function(p){var q=b.aj[p];q.Qu++;if(!e[p])if(!q.Ee.Wf()||q.success)e[p]=new _.Hc("Unable to retry request.");else{var r=(_.re(q.request,10)||[])[0];e[r]instanceof _.Hc?
e[p]=e[r]:(q.Ee=Fmc(b,p),q.hN=!1,q.ZE=!1,(r=r?b.aj[r]:null)?Gmc(b,p,r,!0):d.push(p),e[p]=q.Ee.qn())}})}else e[f]=new _.Hc("Retry request with unknown ID.")});a=a.map(function(f){f=e[f];return f instanceof _.Uh?f:_.ai(f)});_.Ma(d,this.ma,this);return a};_.g.log=function(){this.isDisposed()};_.g.jd=function(a){return this.aj[a]};var Jmc=/^uploadTestFailMe(\.[1-9])?$/,Imc=new Map([[2,12],[5,1],[27,3],[29,4],[30,5],[31,6],[35,7],[36,8],[37,9],[38,10],[25,11]]),Hmc=new Map([[3,14]]);

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gu");

_.Mmc=function(a,b){return _.x(a,1,b)};_.Nmc=function(a,b){return _.G(a,1,b)};_.Omc=function(a,b){return _.x(a,2,b)};_.Pmc=function(a,b){return _.G(a,3,b)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1g5");


_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1ge");

var Qmc;_.IK=function(a){_.J.call(this,a,-1,Qmc)};_.K(_.IK,_.J);_.IK.prototype.Cb=function(){return _.z(this,1)};_.IK.prototype.Dc=function(a){return _.x(this,1,a)};_.IK.prototype.Nh=function(){return _.yb(this,_.Bk,2)};_.Rmc=function(a,b){return _.mj(a,2,b)};_.IK.prototype.Pq=function(a,b){return _.rj(this,2,a,_.Bk,b)};_.IK.prototype.Vf=function(){return _.z(this,4)};_.Smc=function(a,b){return _.x(a,4,b)};Qmc=[2];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gx");

_.JK=function(a,b){_.x(a,1,b)};

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1gy");

var Tmc;_.Umc=function(a){return _.Xe(a).hh(_.R(a.get(_.Ko),19,!1)?Tmc:_.Ve)};Tmc=[9,42,41,44,38,20,21,16,12,3,10,11,18,14,32,1,67,68,210,7,24,25,159,154,158,155,55,4,83,19,2,6,27];

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("sy1fu");

var Vmc,Wmc,Xmc,Ymc,Zmc,KK,$mc,anc,bnc,cnc,dnc,enc,fnc,hnc,inc,jnc,knc,lnc,NK,qnc,rnc,snc,OK,PK,tnc,unc,wnc,xnc,ync,Anc,Bnc,Cnc,Dnc,Enc,Fnc,Hnc,Jnc,Qnc,Snc,Vnc,Wnc,Znc,boc,TK,coc,doc,eoc,foc,goc,hoc,ioc,joc,koc,loc,moc,noc,ooc,poc,qoc,soc,toc,uoc,xoc,woc,Aoc,Coc,Eoc,Goc,Koc,Qoc,Poc,Xoc,Yoc,Zoc,$oc,apc,epc,gpc,hpc,ipc,LK,jpc,kpc,nnc,mnc,onc,pnc,Hqc,YK,aL,Xqc,$qc,arc,brc,erc,voc,frc,Hrc,Irc,Jrc,Krc,Lrc,Nrc,bL,Orc,cL,Prc,Qrc,Rrc,Src,Trc,Urc,dL,Vrc,Wrc,Xrc,Yrc,Zrc,$rc,asc,msc,Lsc,Nsc,Osc,Tsc,Usc,btc,
ltc,utc,Ctc,Itc,Ptc,Rtc,Wtc,buc,quc,ruc,uuc,wuc,Quc,Rvc,Mnc,Svc,Tvc,Uvc,Zvc,gwc,hwc,kAc,fpc;Vmc=function(a){a={Title:a.getTitle(),Type:a.getMimeType(),Parents:_.re(a,3),Convert:_.Q(a,8),ID:a.mj()};var b=[];_.Ta(a,function(c,d){c&&b.push(d+": "+c)});return b.join("; ")};
Wmc=function(a){var b=[];b.push(Vmc(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.Qu&&b.push("# of retries by client: "+a.Qu);var d="";a.hN?a.Ee.Wf()?a.Ee.dg(function(){d="Completed successfully."},function(e){d=e instanceof _.Vh?"Canceled.":"Completed with failure. See attachment."}):d="In progress.":d="Not yet executed.";b.push("State: "+
d);return b.join("\n")};
Xmc=function(a,b,c,d,e,f){var h=_.Xa(e),k=_.Xa(f);h=(0,_.Ws)("Drive Upload Report: %d/%d failed",k,h);a=a.Tf();d.push("Batch query interval: "+_.xj(a,12,10)+"ms");d.push("Max resumable upload chunk size: "+_.xj(a,32,1073741824)/1024/1024+" MiB");d.push("Max batch upload file size: "+_.xj(a,33,1048576)/1024/1024+" MiB");d.push("Max files in an upload batch: "+_.xj(a,35,10)+" files");d.push("Max files in a non-upload batch: "+_.xj(a,10,50)+" files");d=d.join("\n");var l=[],p=[];_.Ta(e,function(q){p.push(Wmc(q))});
l.push({name:"AllUploadRequests.txt",content:p.join("\n---------\n")});l.push({name:"DataserviceLogs.txt",content:_.Jic(b)});_.Ta(f,function(q,r){var v=l.push;r=e[r].request;r=(0,_.Ws)('ErrorResponseFor"%s"(ID:%s).txt',r.getTitle()||"",r.mj()||"");var w=q.tg;v.call(l,{name:r,content:q.toString()+"\n"+(w?_.z(w,4):"No detail.")})});return{title:h,description:d,NQ:l,Ed:152391,m$:c,f1:361003}};Ymc=function(a){return Array.prototype.concat.apply([],arguments)};
Zmc=function(a,b,c){c=_.Ia(a,b,c);return 0>c?(_.va(a,b,-(c+1)),!0):!1};KK=function(a){throw _.xd(a);};$mc=function(a,b){var c=new _.cI,d=new Set;if(6===a){a=_.m(b);for(b=a.next();!b.done;b=a.next())(b=b.value)?(b=_.c7a.get(b.Lv()))&&d.add(b):d.add(1);0===d.size&&d.add(0)}_.jec(c,[].concat(_.fc(d)));return c};
anc=function(a){var b=[],c={};a=_.m(a);for(var d=a.next();!d.done;c={$fa:c.$fa},d=a.next())if(d=d.value){c.$fa=new Map;[].concat(_.fc(_.Ck(d)),[d.Em(),d.Yr(),d.pq()]).forEach(function(p){return function(q){q&&p.$fa.set(LK(q),q)}}(c));for(var e=[],f=_.m(c.$fa.values()),h=f.next();!h.done;h=f.next())if(h=h.value){var k=h.getName(),l=h.getEmail();e.push(LK(h)+"-"+((k?k.length:k)+"-")+((l?l.length:l)+"-")+_.ok(h))}b.push(d.getId()+","+d.Lv()+","+(e.length?e.join(","):"-"))}return b.length?"People: "+
b.join("|"):""};bnc=function(a,b){var c={};a=_.Ua(a,function(d){return!!d});b=_.Ua(b,function(d){return!!d});_.Ta(a,function(d,e){var f=b[e];f?_.wj(d,f)||(d=_.zEa(4).setItem(f),c[e]=d):(d=_.zEa(2).setItem(d),c[e]=d)});_.Ta(b,function(d,e){a[e]||(d=_.zEa(1).setItem(d),c[e]=d)});return c};cnc=function(a,b){return _.Xa(a)!==_.Xa(b)||!_.ab(bnc(a,b))};
dnc=function(a){var b=new _.so;b.append("kind,largestChangeId,nextPageToken,");b.append("items(deleted,fileId,id,kind,");b.append(_.OI(a,!0,"file"));a.v8&&(b.append(",teamDriveId,teamDrive("),b.append(a.v8),b.append(")"));b.append(")");return b.toString()};enc=function(a){var b=new _.so;b.append("kind,nextPageToken,items(");b.append(_.OI(a,!0));b.append("),incompleteSearch");a.v8&&(b.append(","),b.append(a.v8));return b.toString()};
fnc=function(a,b){for(var c=0;c<b.length;c++){var d=a,e=b[c],f=d.getCapabilities(),h=_.y(d,_.LJ,138),k=_.y(d,_.wk,111),l=_.y(d,_.MJ,27),p=_.y(d,_.Ihc,139),q=d.yf(),r=d.Vh(),v=_.y(d,_.OJ,103);switch(e){case 227:_.vb(d,144);break;case 228:_.vb(d,145);break;case 74:_.nj(d,83);break;case 188:_.vb(d,137);break;case 149:_.gI(d,128);break;case 148:_.nj(d,127);break;case 138:_.vb(d,126);break;case 184:_.gI(d,135);break;case 76:f&&_.vb(f,1);break;case 223:f&&_.vb(f,54);break;case 208:f&&_.vb(f,48);break;case 185:f&&
_.vb(f,40);break;case 224:f&&_.vb(f,55);break;case 213:f&&_.vb(f,50);break;case 156:f&&_.vb(f,39);break;case 61:f&&_.vb(f,2);break;case 216:f&&_.vb(f,52);break;case 217:f&&_.vb(f,53);break;case 77:f&&_.vb(f,4);break;case 134:f&&_.vb(f,34);break;case 147:f&&_.vb(f,38);break;case 81:f&&_.vb(f,10);break;case 82:f&&_.vb(f,11);break;case 114:f&&_.vb(f,27);break;case 133:f&&_.vb(f,33);break;case 202:f&&_.vb(f,47);break;case 132:f&&_.vb(f,32);break;case 101:f&&_.vb(f,20);break;case 201:f&&_.vb(f,46);break;
case 131:f&&_.vb(f,31);break;case 200:f&&_.vb(f,45);break;case 130:f&&_.vb(f,30);break;case 93:f&&_.vb(f,17);break;case 191:f&&_.vb(f,44);break;case 146:f&&_.vb(f,37);break;case 90:f&&_.vb(f,16);break;case 78:f&&_.vb(f,7);break;case 186:f&&_.vb(f,41);break;case 222:f&&_.vb(f,51);break;case 85:f&&_.vb(f,12);break;case 137:f&&_.vb(f,36);break;case 209:f&&_.vb(f,49);break;case 79:f&&_.vb(f,8);break;case 189:f&&_.vb(f,42);break;case 190:f&&_.vb(f,43);break;case 80:f&&_.vb(f,9);break;case 135:f&&_.vb(f,
35);break;case 102:f&&_.vb(f,21);break;case 69:_.vb(d,74);break;case 194:h&&_.lj(h,2);break;case 193:h&&_.vb(h,1);break;case 1004:_.vb(d,108);break;case 136:_.nj(d,125);break;case 115:k&&_.vb(k,1);break;case 116:k&&_.vb(k,2);break;case 34:_.vb(d,30);f&&_.vb(f,3);break;case 9:_.vb(d,10);break;case 91:_.lj(d,91);break;case 43:_.vb(d,42);_.vb(d,43);break;case 187:_.vb(d,136);break;case 26:_.vb(d,24);break;case 108:_.gI(d,104);break;case 41:_.vb(d,40);f&&_.vb(f,5);break;case 42:_.vb(d,41);break;case 1005:_.nj(d,
117);break;case 59:f&&_.vb(f,6);break;case 28:_.vb(d,26);break;case 44:_.vb(d,45);break;case 13:_.vb(d,14);break;case 48:_.vb(d,36);break;case 38:_.vb(d,34);break;case 49:_.gI(d,50);break;case 51:_.vb(d,53);break;case 104:_.vb(d,102);break;case 39:_.vb(d,35);break;case 87:_.vb(d,76);break;case 100:_.vb(d,98);break;case 72:_.vb(d,78);break;case 5:_.vb(d,6);break;case 20:_.vb(d,21);break;case 21:break;case 29:l&&_.vb(l,1);break;case 31:l&&_.vb(l,3);break;case 92:l&&_.vb(l,4);break;case 30:l&&_.vb(l,
2);break;case 16:_.lj(d,17);break;case 12:_.vb(d,13);break;case 211:p&&_.vb(p,2);break;case 212:p&&_.vb(p,3);break;case 220:p&&_.vb(p,5);break;case 157:r&&_.nj(r,8);break;case 3:_.vb(d,4);break;case 11:_.vb(d,12);break;case 10:_.vb(d,11);break;case 50:_.vb(d,49);_.vb(d,51);_.lj(d,81);break;case 18:_.vb(d,19);break;case 95:_.vb(d,93);break;case 58:_.vb(d,63);break;case 14:_.nj(d,15);break;case 103:_.vb(d,101);break;case 1:_.gI(d,2);break;case 96:_.vb(d,94);break;case 1003:_.nj(d,107);break;case 75:_.lj(d,
85);break;case 94:_.vb(d,92);break;case 45:_.vb(d,46);break;case 124:_.vb(d,118);break;case 125:_.vb(d,119);break;case 1002:_.lj(d,100);break;case 32:_.vb(d,28);break;case 67:_.vb(d,70);break;case 68:_.vb(d,71);break;case 221:r&&_.vb(r,9);break;case 210:_.vb(d,140);break;case 7:_.vb(d,8);break;case 122:_.lj(d,109);break;case 66:_.vb(d,69);break;case 33:_.vb(d,29);break;case 24:_.vb(d,22);break;case 25:_.vb(d,23);break;case 46:_.lj(d,47);break;case 192:q&&_.vb(q,6);break;case 159:q&&_.lj(q,5);break;
case 154:q&&_.vb(q,1);break;case 158:q&&_.vb(q,4);break;case 155:q&&_.vb(q,3);break;case 52:_.gI(d,56);break;case 56:_.vb(d,61);break;case 55:_.nj(d,60);break;case 4:_.vb(d,5);break;case 35:_.vb(d,31);break;case 57:_.vb(d,62);break;case 83:_.vb(d,72);break;case 84:_.lj(d,86);break;case 19:_.vb(d,20);_.vb(d,44);_.vb(d,90);break;case 2:_.vb(d,3);break;case 6:_.vb(d,7);break;case 98:_.vb(d,96);break;case 97:_.lj(d,95);break;case 27:_.vb(d,25);break;case 70:_.vb(d,75);break;case 107:v&&_.vb(v,3);break;
case 106:v&&_.vb(v,2);break;case 105:v&&_.vb(v,1);break;case 8:_.vb(d,9);break;case 126:_.gI(d,120);break;default:throw Error("kd`"+e);}}};hnc=function(a,b){if(0!=a.length){var c=new Set([].concat(_.fc(a),_.fc(gnc)));a=[].concat(_.fc(_.qjb.keys())).filter(function(e){return!c.has(e)});for(var d=0;d<b.length;d++)fnc(b[d],a)}};
inc=function(a,b){var c=a.getCapabilities()||new _.sk,d=_.y(a,_.LJ,138),e=_.y(a,_.wk,111),f=_.y(a,_.MJ,27),h=_.y(a,_.Ihc,139),k=a.yf(),l=a.Vh(),p=_.y(a,_.OJ,103);switch(b){case 227:return null!=_.Q(a,144);case 228:return null!=_.z(a,145);case 74:return 0<a.wu().length;case 188:return null!=_.Q(a,137);case 149:return 0<_.re(a,128).length;case 148:return 0<a.jBa().length;case 138:return null!=a.t$();case 184:return 0<_.re(a,135).length;case 76:return null!=_.tk(c);case 223:return null!=_.Q(c,54);case 208:return null!=
_.Q(c,48);case 185:return null!=_.Q(c,40);case 224:return null!=_.Q(c,55);case 213:return null!=_.Q(c,50);case 156:return null!=_.Q(c,39);case 61:return null!=_.Q(c,2);case 216:return null!=_.Q(c,52);case 217:return null!=_.Q(c,53);case 77:return null!=_.Q(c,4);case 134:return null!=_.Q(c,34);case 147:return null!=_.Q(c,38);case 81:return null!=_.Q(c,10);case 82:return null!=_.Q(c,11);case 114:return null!=_.Q(c,27);case 133:return null!=_.Q(c,33);case 202:return null!=_.Q(c,47);case 132:return null!=
_.Q(c,32);case 101:return null!=_.Q(c,20);case 201:return null!=_.Q(c,46);case 131:return null!=_.Q(c,31);case 200:return null!=_.Q(c,45);case 130:return null!=_.Q(c,30);case 93:return null!=_.Q(c,17);case 191:return null!=_.Q(c,44);case 146:return null!=_.Q(c,37);case 90:return null!=_.Oe(c);case 78:return null!=_.Q(c,7);case 186:return null!=_.Q(c,41);case 222:return null!=_.Q(c,51);case 85:return null!=_.Q(c,12);case 137:return null!=_.Q(c,36);case 209:return null!=_.Q(c,49);case 79:return null!=
_.Q(c,8);case 189:return null!=_.Q(c,42);case 190:return null!=_.Q(c,43);case 80:return null!=_.Q(c,9);case 135:return null!=_.Q(c,35);case 102:return null!=_.Q(c,21);case 69:return null!=_.Q(a,74);case 194:return null!=d&&null!=_.y(d,_.Hhc,2);case 193:return null!=d&&null!=_.z(d,1);case 1004:return null!=_.Q(a,108);case 136:return 0<a.d2().length;case 115:return null!=e&&null!=_.Q(e,1);case 116:return null!=e&&null!=_.z(e,2);case 34:return null!=_.Q(a,30)||null!=_.Q(c,3);case 9:return null!=a.oD();
case 91:return null!=a.pq();case 43:return null!=_.z(a,42)||null!=_.z(a,43);case 187:return null!=a.Li();case 26:return null!=a.Bf();case 108:return 0<_.re(a,104).length;case 41:return null!=_.Q(c,5);case 42:return null!=_.z(a,41);case 1005:return 0<_.Gk(a).length;case 59:return null!=_.Q(c,6);case 28:return null!=a.kJ();case 44:return null!=_.z(a,45);case 13:return null!=a.sM();case 48:return null!=_.Q(a,36);case 38:return null!=a.Mi();case 49:return 0<_.re(a,50).length;case 51:return null!=_.Q(a,
53);case 104:return null!=_.Q(a,102);case 39:return null!=a.wla();case 87:return null!=_.Dk(a);case 100:return null!=_.Q(a,98);case 72:return null!=_.z(a,78);case 5:return null!=_.Q(a,6);case 20:return null!=a.sf();case 21:return null!=a.getId();case 29:return!(!f||null==_.z(f,1));case 31:return!(!f||null==_.z(f,3));case 92:return!(!f||null==_.z(f,4));case 30:return!(!f||null==f.Ce());case 16:return null!=a.Em();case 12:return null!=a.Fz();case 211:return null!=h&&null!=_.Q(h,2);case 212:return null!=
h&&null!=_.Q(h,3);case 220:return null!=h&&null!=_.Q(h,5);case 157:return!(!l||!_.yb(l,_.zk,8));case 3:return null!=a.getMimeType();case 11:return null!=a.GB();case 10:return null!=a.Oq();case 50:return null!=_.Q(a,49)||null!=_.Q(a,51)||null!=a.Xm();case 18:return null!=a.rq();case 14:return 0<_.Ck(a).length;case 95:return null!=a.Gl();case 58:return null!=_.Q(a,63);case 103:return null!=_.z(a,101);case 1:return 0<a.vk().length;case 96:return null!=_.Q(a,94);case 1003:return 0<_.Fk(a).length;case 75:return null!=
a.Bw();case 94:return null!=a.GN();case 45:return null!=a.Zw();case 124:return null!=_.Q(a,118);case 125:return null!=_.z(a,119);case 1002:return null!=_.Ek(a);case 32:return null!=a.rv();case 67:return null!=_.z(a,70);case 68:return null!=_.z(a,71);case 221:return null!=l&&null!=_.Q(l,9);case 210:return null!=_.Hk(a);case 7:return null!=a.c8();case 122:return null!=_.MK(a);case 66:return null!=_.z(a,69);case 33:return null!=_.Q(a,29);case 24:return null!=a.xj();case 25:return null!=a.Oy();case 46:return null!=
a.Yr();case 192:return null!=k&&null!=_.Q(k,6);case 159:return null!=k&&null!=_.we(k);case 154:return null!=k&&null!=_.z(k,1);case 158:return null!=k&&null!=_.ye(k);case 155:return null!=k&&null!=_.z(k,3);case 52:return 0<_.re(a,56).length;case 55:return 0<a.lA().length;case 56:return null!=_.z(a,61);case 4:return null!=a.oB();case 35:return null!=_.Q(a,31);case 57:return null!=_.z(a,62);case 83:return null!=a.uc();case 84:return null!=_.y(a,_.NJ,86);case 2:return null!=a.getTitle();case 19:return null!=
a.Gz()||null!=_.Q(a,44)||null!=_.z(a,90);case 6:return null!=a.Qh();case 98:return null!=a.Cw();case 97:return null!=a.ED();case 27:return null!=a.Cp();case 70:return null!=a.nj();case 107:return null!=p&&null!=_.z(p,3);case 106:return null!=p&&null!=_.z(p,2);case 105:return null!=p&&null!=p.Ce();case 8:return null!=_.Q(a,9);case 126:return 0<_.re(a,120).length;default:throw Error("ld`"+b);}};jnc=function(a,b){return b.every(function(c){return inc(a,c)})};
knc=function(a,b,c){c=void 0===c?[]:c;var d=a.concat(c);return b.every(function(e){return(new Set(d)).has(e)})};lnc=function(a,b){var c=new Set(b.concat(_.Kgc));return a.filter(function(d){return!c.has(d)})};
NK=function(a,b,c){var d,e;b=b.clone();var f=b.getCapabilities();c=_.m(c);for(var h=c.next();!h.done;h=c.next())if(h=h.value,inc(b,h))if(_.ujb.has(h)){if(f){var k=a.getCapabilities()||new _.sk;_.QJ(a,k);switch(h){case 76:_.x(k,1,_.tk(f));break;case 223:_.x(k,54,_.Q(f,54));break;case 208:_.x(k,48,_.Q(f,48));break;case 185:_.x(k,40,_.Q(f,40));break;case 224:_.x(k,55,_.Q(f,55));break;case 213:_.x(k,50,_.Q(f,50));break;case 156:_.x(k,39,_.Q(f,39));break;case 61:_.x(k,2,_.Q(f,2));break;case 216:_.x(k,
52,_.Q(f,52));break;case 217:_.x(k,53,_.Q(f,53));break;case 77:_.x(k,4,_.Q(f,4));break;case 134:_.x(k,34,_.Q(f,34));break;case 147:_.x(k,38,_.Q(f,38));break;case 81:_.x(k,10,_.Q(f,10));break;case 82:_.x(k,11,_.Q(f,11));break;case 114:_.x(k,27,_.Q(f,27));break;case 133:_.x(k,33,_.Q(f,33));break;case 202:_.x(k,47,_.Q(f,47));_.x(k,32,_.Q(f,32));break;case 132:_.x(k,32,_.Q(f,32));break;case 101:_.x(k,20,_.Q(f,20));break;case 201:_.x(k,46,_.Q(f,46));break;case 131:_.x(k,31,_.Q(f,31));break;case 200:_.x(k,
45,_.Q(f,45));break;case 130:_.x(k,30,_.Q(f,30));break;case 93:_.x(k,17,_.Q(f,17));break;case 191:_.x(k,44,_.Q(f,44));break;case 146:_.x(k,37,_.Q(f,37));break;case 90:_.Ghc(k,_.Oe(f));break;case 78:_.x(k,7,_.Q(f,7));break;case 186:_.x(k,41,_.Q(f,41));break;case 222:_.x(k,51,_.Q(f,51));break;case 85:_.x(k,12,_.Q(f,12));break;case 137:_.x(k,36,_.Q(f,36));break;case 209:_.x(k,49,_.Q(f,49));break;case 79:_.x(k,8,_.Q(f,8));break;case 189:_.x(k,42,_.Q(f,42));break;case 190:_.x(k,43,_.Q(f,43));break;case 80:_.x(k,
9,_.Q(f,9));break;case 135:_.x(k,35,_.Q(f,35));break;case 102:_.x(k,21,_.Q(f,21));break;case 34:_.x(a,30,_.Q(b,30));_.x(k,3,_.Q(f,3));break;case 41:_.x(a,40,_.Q(b,40));_.x(k,5,_.Q(f,5));break;case 59:_.x(k,6,_.Q(f,6))}}}else if(_.vjb.has(h)){var l=_.y(b,_.LJ,138);if(l)switch(k=_.y(a,_.LJ,138)||new _.LJ,_.G(a,138,k),h){case 194:h=_.y(l,_.Hhc,2);_.G(k,2,h);break;case 193:_.x(k,1,_.z(l,1))}}else if(_.wjb.has(h)){if(k=_.y(b,_.wk,111))switch(l=_.y(a,_.wk,111)||new _.wk,_.G(a,111,l),h){case 115:l.rP(_.Q(k,
1));break;case 116:_.x(l,2,_.z(k,2))}}else if(_.xjb.has(h)){if(k=_.y(b,_.MJ,27))switch(l=_.y(a,_.MJ,27)||new _.MJ,_.G(a,27,l),h){case 29:_.x(l,1,_.z(k,1));break;case 31:l.Ah(_.z(k,3));break;case 92:_.x(l,4,_.z(k,4));break;case 30:l.oh(k.Ce())}}else if(_.yjb.has(h)){if(k=_.y(b,_.Ihc,139))switch(l=_.y(a,_.Ihc,139)||new _.Ihc,_.G(a,139,l),h){case 211:_.x(l,2,_.Q(k,2));break;case 212:_.x(l,3,_.Q(k,3));break;case 220:_.x(l,5,_.Q(k,5))}}else if(_.zjb.has(h)){if(l=b.yf())switch(k=a.yf()||new _.Qoa,_.G(a,
132,k),h){case 192:_.x(k,6,_.Q(l,6));break;case 159:h=_.we(l);_.G(k,5,h);break;case 154:_.x(k,1,_.z(l,1));break;case 158:_.x(k,4,_.ye(l));break;case 155:_.x(k,3,_.z(l,3))}}else if(_.Ajb.has(h))switch(k=b.Vh(),h){case 157:k&&(h=a.Vh()||new _.Ooa,mnc(a,h),nnc(h,_.yb(k,_.zk,8)));break;case 221:k&&(h=a.Vh()||new _.Ooa,mnc(a,h),_.x(h,9,_.Q(k,9)))}else if(_.Bjb.has(h)){if(k=_.y(b,_.OJ,103))switch(l=_.y(a,_.OJ,103)||new _.OJ,_.G(a,103,l),h){case 107:_.x(l,3,_.z(k,3));break;case 106:l.Ah(_.z(k,2));break;
case 105:l.oh(k.Ce())}}else switch(h){case 227:_.x(a,144,_.Q(b,144));break;case 228:_.x(a,145,_.z(b,145));break;case 74:h=b.wu();_.mj(a,83,h);break;case 188:_.x(a,137,_.Q(b,137));break;case 149:h=_.re(b,128);_.kj(a,128,h);break;case 148:h=b.jBa();_.mj(a,127,h);break;case 138:_.x(a,126,b.t$());break;case 184:h=_.re(b,135);_.kj(a,135,h);break;case 69:_.x(a,74,_.Q(b,74));break;case 1004:_.x(a,108,_.Q(b,108));break;case 136:h=b.d2();_.mj(a,125,h);break;case 9:_.x(a,10,b.oD());break;case 91:_.Vhc(a,b.pq());
break;case 43:_.x(a,42,_.z(b,42));_.x(a,43,_.z(b,43));break;case 187:_.Zhc(a,b.Li());break;case 26:a.kl(b.Bf());break;case 108:h=_.re(b,104);_.kj(a,104,h);break;case 42:_.x(a,41,_.z(b,41));break;case 1005:h=_.Gk(b);_.mj(a,117,h);break;case 28:_.x(a,26,b.kJ());break;case 44:_.x(a,45,_.z(b,45));break;case 13:_.x(a,14,b.sM());break;case 48:_.x(a,36,_.Q(b,36));break;case 38:_.Qhc(a,b.Mi());break;case 49:h=_.re(b,50);_.kj(a,50,h);break;case 51:_.x(a,53,_.Q(b,53));break;case 104:_.x(a,102,_.Q(b,102));break;
case 39:_.x(a,35,b.wla());break;case 87:_.x(a,76,_.Dk(b));break;case 100:_.x(a,98,_.Q(b,98));break;case 72:_.x(a,78,_.z(b,78));break;case 5:_.x(a,6,_.Q(b,6));break;case 20:h=b.sf();_.x(a,21,h);break;case 21:a.Nb(b.getId());break;case 16:_.Ohc(a,b.Em());break;case 12:_.x(a,13,b.Fz());break;case 3:_.hG(a,b.getMimeType());break;case 11:_.x(a,12,b.GB());break;case 10:_.x(a,11,b.Oq());break;case 50:_.x(a,49,_.Q(b,49));_.x(a,51,_.Q(b,51));h=b.Xm();_.G(a,81,h);break;case 95:_.Xhc(a,b.Gl());break;case 18:_.Phc(a,
b.rq());break;case 58:_.x(a,63,_.Q(b,63));break;case 14:_.Nhc(a,_.Ck(b));break;case 1:_.PJ(a,b.vk());break;case 96:_.x(a,94,_.Q(b,94));break;case 103:_.x(a,101,_.z(b,101));break;case 1003:onc(a,_.Fk(b));break;case 75:_.Uhc(a,b.Bw());break;case 94:_.Whc(a,b.GN());break;case 45:_.x(a,46,b.Zw());break;case 124:_.x(a,118,_.Q(b,118));break;case 125:_.x(a,119,_.z(b,119));break;case 1002:h=_.Ek(b).clone();(null===(d=_.Ek(a))||void 0===d?0:_.Q(d,3))&&_.x(h,3,!0);(null===(e=_.Ek(a))||void 0===e?0:_.Q(e,4))&&
_.x(h,4,!0);_.G(a,100,h);break;case 32:_.x(a,28,b.rv());break;case 67:_.x(a,70,_.z(b,70));break;case 68:_.x(a,71,_.z(b,71));break;case 210:_.x(a,140,_.Hk(b));break;case 7:_.x(a,8,b.c8());break;case 122:pnc(a,_.MK(b));break;case 66:_.x(a,69,_.z(b,69));break;case 33:_.x(a,29,_.Q(b,29));break;case 24:_.x(a,22,b.xj());break;case 25:_.x(a,23,b.Oy());break;case 46:_.Rhc(a,b.Yr());break;case 52:h=_.re(b,56);_.kj(a,56,h);break;case 56:_.x(a,61,_.z(b,61));break;case 55:a.UA(b.lA());break;case 4:a.px(b.oB());
break;case 35:_.x(a,31,_.Q(b,31));break;case 57:_.x(a,62,_.z(b,62));break;case 83:_.Thc(a,b.uc());break;case 84:h=_.y(b,_.NJ,86);_.G(a,86,h);break;case 98:a.Wda(b.Cw());break;case 97:_.Yhc(a,b.ED());break;case 19:_.x(a,20,b.Gz());_.x(a,44,_.Q(b,44));_.x(a,90,_.z(b,90));break;case 2:a.setTitle(b.getTitle());break;case 6:a.Ro(b.Qh());break;case 27:_.cWb(a,b.Cp());break;case 70:_.x(a,75,b.nj());break;case 8:_.x(a,9,_.Q(b,9));break;case 126:h=_.re(b,120);_.kj(a,120,h);break;default:throw Error("md`"+
h);}};qnc=function(a,b){return a.filter(function(c){return b.includes(c)})};rnc=function(a,b){var c=_.Yz[a];return b.filter(function(d){return!c||!c.has(d)})};snc=function(a,b,c){a=rnc(c,a);return knc(b,a,_.Kgc)};OK=function(a){return a?"application/vnd.google-apps.shortcut"===a.getMimeType():!1};PK=function(a,b){b=void 0===b?!1:b;if(!a)return!1;var c=a.getMimeType();return b&&OK(a)?(a=a.yf(),!!a&&"application/vnd.google-apps.folder"===_.z(a,3)):"application/vnd.google-apps.folder"===c};
tnc=function(a){var b=a&&a.getId()||null;a&&OK(a)&&(a=(a=a.yf())&&_.z(a,1))&&(b=a);return b};unc=function(a){return!!_.Q(a,31)&&!_.Q(a,94)};wnc=function(a){return vnc.some(function(b){return inc(a,b)})};xnc=function(a){return a.filter(function(b){return!!b}).some(function(b){return[4,5,2].includes(b.Lv())})};ync=function(a){return xnc(a.filter(function(b){return b}).map(function(b){return b.getItem()}))};_.znc=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};
Anc=function(a,b){return 0<=b?!a||a<=b:!0};Bnc=function(a,b){var c=a.Xm();c||(c=new _.Ioa,b&&_.G(a,81,c));return c};Cnc=function(a){if(PK(a))_.JK(Bnc(a,!0),!0);else if(PK(a,!0)){var b=a.yf();if(b=b&&_.we(b))_.JK(Bnc(b,!0),!0),_.JK(Bnc(a,!0),!0)}};Dnc=function(a){return!!a.Xm()&&!PK(a)};Enc=function(a){var b=[];_.Ma(a,function(c){if(3!=c.Lv()){if(null!=_.Q(c,49)||null!=_.Q(c,51)||null!=c.Xm())c=c.clone(),_.vb(c,49),_.vb(c,51),_.lj(c,81);b.push(c)}});return b};
Fnc=function(a,b){if(b){var c=[];_.Q(b,3)&&c.push("folder");var d=_.Icc()&&4===b.getType()?"title_natural":_.zfc[b.getType()];b=_.Bfc[b.Uf()];d&&(b&&(d+=" "+b),c.push(d));c.length&&(a.orderBy=c.join(","))}};Hnc=function(a){for(var b=0;b<a.length;b++){var c=a[b];c&&c instanceof _.J?a[b]=c.Hc():c&&c instanceof _.jK?a[b]=c.Hc(function(d){return d?d.Hc():null}):c&&c instanceof Gnc&&(a[b]=c.Hc())}};Jnc=function(a){var b=a.slice(0),c=new Set(b);Inc.forEach(function(d){c.has(d)||b.push(d)});b.sort();return b};
Qnc=function(a,b,c){var d=_.y(a,Knc,66);if(d){var e=_.XJ(a),f=_.wI(_.fI(a));a=new _.Ti(_.z(d,1));var h=new _.Ti(window.location);var k=h.Po+"://"+h.ik();null!=h.No&&(k+=":"+h.My());h=_.dj(k,3);_.Yi(a,"co",h);h=a.He();!e&&0<f&&(h+="u/"+f+"/");a.Bi(h+"_/dataservice/cacheproxy");e=_.z(d,5)||"";if(_.Ggc(window.location.href,a.toString())&&e)return a=Jnc(c),c=_.z(d,6),b="#"+b+"_",d=new _.SH,d.update(a.join(",")),b+=_.Bec(d.digest()),c&&(b+="&jobset="+c),b=_.Ky(e+"?"+b),_.n.SharedWorker?(c=new SharedWorker(_.rca(b),
void 0),b=new Lnc(c.port),c.port.start()):b=new Lnc(new Worker(_.rca(b),void 0)),new Mnc(new Nnc(b,!0),1,e,a);c=a.toString();b="cpiframe_"+_.FI();c=_.th("IFRAME",{name:b,id:b,src:c});c.style.cssText=_.hja(_.jgc(_.lg("display: none;")));document.body.appendChild(c);c=_.Aec(a.Po,void 0,a.ik(),a.My()).toString();return new Mnc(new Nnc(Onc(window.frames[b],c),!0),0,a.toString())}a=new Pnc;return new Mnc(new Nnc(a.O,!1),2,"inline",c,new Nnc(a.H,!1))};
Snc=function(a){var b=new Rnc;if(a instanceof _.PI)_.qj(b,16,QK,a);else if(a instanceof _.QI)_.qj(b,1,QK,a);else if(a instanceof _.RI)_.qj(b,2,QK,a);else if(a instanceof RK)_.qj(b,17,QK,a);else if(a instanceof _.UI)_.qj(b,3,QK,a);else if(a instanceof _.tK)_.qj(b,4,QK,a);else if(a instanceof _.SI)_.qj(b,5,QK,a);else if(a instanceof _.YI)_.qj(b,6,QK,a);else if(a instanceof _.$I)_.qj(b,7,QK,a);else if(a instanceof _.aJ)_.qj(b,8,QK,a);else if(a instanceof _.dJ)_.qj(b,9,QK,a);else if(a instanceof _.rJ)_.qj(b,
18,QK,a);else if(a instanceof _.vJ)_.qj(b,10,QK,a);else if(a instanceof _.wJ)_.qj(b,11,QK,a);else if(a instanceof _.xJ)_.qj(b,12,QK,a);else if(a instanceof _.xI)_.qj(b,13,QK,a);else if(a instanceof _.AJ)_.qj(b,14,QK,a);else if(a instanceof _.BJ)_.qj(b,15,QK,a);else throw new _.Hc("Unsupported request type");return b};
Vnc=function(a){a=a.map(function(c){var d=new Tnc;if(c instanceof _.PI)_.qj(d,6,SK,c);else if(c instanceof RK)_.qj(d,7,SK,c);else if(c instanceof _.YI)_.qj(d,1,SK,c);else if(c instanceof _.vJ)_.qj(d,2,SK,c);else if(c instanceof _.wJ)_.qj(d,3,SK,c);else if(c instanceof _.xI)_.qj(d,4,SK,c);else if(c instanceof _.BJ)_.qj(d,5,SK,c);else throw new _.Hc("Unsupported request type");return d});var b=new Unc;_.mj(b,1,a);return b};
Wnc=function(a){return _.yb(a,Tnc,1).map(function(b){return _.Aj(b,_.PI,6,SK)||_.Aj(b,_.YI,1,SK)||_.Aj(b,_.vJ,2,SK)||_.Aj(b,_.wJ,3,SK)||_.Aj(b,_.xI,4,SK)||_.Aj(b,_.BJ,5,SK)||_.Aj(b,RK,7,SK)})};Znc=function(a){var b=new Xnc;if(a instanceof _.oD)_.qj(b,1,Ync,a);else if(a instanceof _.pD)_.qj(b,2,Ync,a);else throw new _.Hc("Unsupported request type");return b};
boc=function(a){var b=new $nc;if(a instanceof _.VI)_.qj(b,1,aoc,a);else if(a instanceof _.bJ)_.qj(b,2,aoc,a);else if(a instanceof _.CJ)_.qj(b,3,aoc,a);else throw new _.Hc("Unsupported request type");return b};TK=function(a,b,c){return b?new c(JSON.parse(a)):a};coc=function(a){a={t:a.title,d:a.description,c:a.Ed,fi:a.m$,dti:a.f1,a:a.NQ?a.NQ.map(function(b){return JSON.stringify({n:b.name,c:b.content,ct:b.contentType,ec:b.U9})}):void 0};return JSON.stringify(a)};
doc=function(a){a=JSON.parse(a);return{title:a.t,description:a.d,Ed:a.c,m$:a.fi,f1:a.dti,NQ:a.a?a.a.map(function(b){b=JSON.parse(b);return{name:b.n,content:b.c,contentType:b.ct,U9:b.ec}}):void 0}};eoc=function(a,b){var c=_.xgc(b||{}),d=new Map;a.forEach(function(e){d.set(e,c[e]||null)});return d};foc=function(a,b,c){a=a?1:2;a=_.td(_.ud(new _.vd,12),a);var d=(new _.Af).Ro(!0);d=_.x(d,17,!0);a=_.Bf(d,a);c&&_.ll(a,c);c=new _.sfc;b&&_.Mmc(c,b);return _.Nmc(_.Pmc(new _.nI,a),c)};goc=function(a){return a.map(function(b){return b.getItem()})};
hoc=function(a){var b={};a.forEach(function(c){b[c.getId()]=c.getItem()});return b};ioc=function(a,b){var c=new _.Ti(_.C(b,16,"")+"/open"),d=a.getId();OK(a)&&(d=tnc(a));_.Yi(c,"id",d);_.Yi(c,"authuser",_.wI(_.fI(b)));_.R(b,89,!1)&&_.ej(a,140)&&_.Yi(c,"resourcekey",_.Hk(a));return c.toString()};joc=function(a){return String.fromCharCode(10>a?48+a:87+a)};koc=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]=joc(d>>4);b[2*c+3]=joc(d&15)}return b.join("")};
loc=function(a){var b={};_.xhc(b,[_.z(a,2)||""]);return b};moc=function(a){var b={};_.Se(_.hh(a.getTitle()))||(b.title=a.getTitle());_.xhc(b,_.re(a,3));_.Q(a,8)&&(b.description="",b.labels={starred:!1});return b};noc=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());null!=_.z(a,3)&&(b.workspaceToken=_.z(a,3));return b};
ooc=function(a){var b,c={};c.sourceIds=_.re(a.request,1);c.destinationFolderId=null!==(b=_.z(a.request,2))&&void 0!==b?b:void 0;a.pageToken&&(c.continuationToken=a.pageToken);return c};
poc=function(a){var b={},c={};_.Se(_.hh(a.getTitle()))||(b.title=a.getTitle());null!=a.Bf()&&(b.description=a.Bf());null!=_.Q(a,4)&&(c.starred=_.Q(a,4));null!=a.Qh()&&(c.trashed=a.Qh());_.Se(_.hh(a.getMimeType()))||(b.mimeType=a.getMimeType());"number"===typeof _.z(a,7)&&(b.modifiedDate=_.yhc(_.zhc(_.z(a,7)||0)));null!=_.Q(a,11)&&(c.restricted=_.Q(a,11));_.Xa(c)&&(b.labels=c);null!=a.Mi()&&(b.folderColor=a.Mi());null!=_.Q(a,16)&&(b.subscribed=_.Q(a,16));null!=_.Q(a,40)&&(b.linkShareMetadata={securityUpdateEnabled:_.Q(a,
40)});if(c=_.y(a,_.wk,25)){b.contentRestrictions=[];var d={};null!=_.Q(c,1)&&(d.readOnly=_.Q(c,1));null!=_.z(c,2)&&(d.reason=_.z(c,2));b.contentRestrictions.push(d)}_.xhc(b,_.re(a,8));return b};qoc=function(a){var b={};null!=_.Q(a,3)&&(b.pinned=_.Q(a,3));return b};
soc=function(a){var b={};null!=a.getTitle()&&(b.name=a.getTitle());if(null!=_.z(a,3))b.backgroundImageId=_.z(a,3);else{var c=_.z(a,6);null!=c&&(c=c.toString(16),b.colorRgb="#"+(0,_.fh)("0",6-c.length)+c);c=_.y(a,_.roc,9);if(null!=c){a={};var d=c.getId();d&&(a.id=d);d=_.z(c,2);"number"===typeof d&&(a.xCoordinate=d);d=_.z(c,3);"number"===typeof d&&(a.yCoordinate=d);if(c=c.Ce())a.width=c;b.backgroundImageFile=a}}return b};
toc=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());null!=a.getState()&&(a=_.wmc[a.getState()])&&(b.state=a);return b};
uoc=function(a){_.fg("drive.DebugUtil.printFindById",function(c){a.mN(c).then(function(d){window.console.log(JSON.stringify(d))})});_.fg("drive.DebugUtil.getLogs",function(){return _.Jic(a.Be())});_.fg("drive.DebugUtil.printLogs",function(){window.console.log(_.Jic(a.Be()))});_.fg("drive.DebugUtil.printRequestHistory",function(){a.ZR().then(function(c){c.forEach(function(d){window.console.log(_.z(d,1));window.console.log(_.z(d,2))})})});_.fg("drive.DebugUtil.getState",function(){return a.getState()});
var b=a.La();b&&_.R(b,1,!1)&&(_.fg("drive.DebugUtil.getContext",function(){return a.getContext()}),_.fg("drive.DebugUtil.setOffline",function(c){return void a.Ll(c)}))};xoc=function(a,b){b.info("drive.ds.sync.api.Dump","Requesting dump stats.");b=new _.Lf;_.Mf(b,305);_.Nf(b,!0);_.x(b,3,2);var c=new _.nD;_.G(c,1,b);voc(c,[7]);a=a.then(function(d){return d.Qe(c)}).then(woc);return _.$h(a)};
woc=function(a){a=_.yb(a,_.Ro,3);var b=new yoc;a.forEach(function(c){var d=c.getKey();"corpusSize"===(d&&_.Uo(d))&&(c=_.kh(c.Wa()),_.x(b,3,c))});return"number"===typeof _.z(b,3)?b:null};Aoc=function(a,b){var c=zoc(a.bm,b.qc());if(c){var d=c.getItem(),e=d.Bw();if(e){var f=e.bS(),h=_.za(f,function(k){return k.getId()===_.z(b,2)});_.Khc(e,f);h||(f=_.yb(e,_.mk,3),_.za(f,function(k){return k.getId()===_.z(b,2)}),_.Lhc(e,f));_.Jhc(e,(_.z(e,1)||1)-1);a.$k([d],c.V)}}};
Coc=function(a,b,c){if(b=zoc(a.bm,b.qc())){var d=b.getItem(),e=d.Bw();if(e){if(1===c.getType()||2===c.getType()){var f=_.yb(e,_.mk,3);f.push(c);_.Ka(f,Boc);_.Lhc(e,f)}else f=e.bS(),f.push(c),_.Ka(f,Boc),_.Khc(e,f);_.Jhc(e,(_.z(e,1)||0)+1);a.$k([d],b.V)}}};Eoc=function(a){return a.map(function(b){var c=new _.Lwb;var d=b.serviceName?Doc.get(b.serviceName):void 0;c=_.x(c,3,d);return _.x(c,2,Number(b.bytesUsed))})};
Goc=function(a){return(a.quotaBytesByService||[]).reduce(function(b,c){return c.serviceName&&Foc.has(c.serviceName)?b+Number(c.bytesUsed):b},0)};
Koc=function(a){var b=a.exportJob,c=b.status;c=c?Hoc.get(c)||0:0;var d=Number(a.percentDone),e=b.items?b.items.length:0;a=a.numFetchedFiles||0;var f=0,h=0,k=(b.archives||[]).map(function(l){f+=Number(l.sizeOfContents)||0;h+=Number(l.compressedSize)||0;return l.storagePath});b=(b.failedItemInfos||[]).map(function(l){var p=_.hG((new _.Bk).Nb(l.docId).setTitle(l.title),l.mediaType);p=(new _.Ioc).setItem(p);p=_.x(p,3,l.relativePath);return _.x(p,4,l.cause)});return new Joc(c,d,k,f,h,e,a,b)};
Qoc=function(a){var b=Loc(new UK,Moc(a)),c=a.result;a=a.processedFileCount;if(c){var d=c.status;(d=d&&Noc[d])&&b.Dc(d);c.sourceResults&&Ooc(b,c.sourceResults.map(function(e){return Poc(e)}));c.validationToken&&_.x(b,4,c.validationToken)}void 0!==a&&_.x(b,2,a);return b};Poc=function(a){var b=Roc(Soc(new _.Toc,a.sourceId),a.fileCount);a.unmovableFileReasons&&Uoc(b,a.unmovableFileReasons.map(function(c){var d=new _.Voc;d=_.x(d,1,c.unmovableReason);return _.x(d,2,c.count)}));return b};
Xoc=function(a){var b={},c=a.getKey();b.key=c&&_.Uo(c);b.value=a.Wa();(a=c&&_.To(c))&&(b.namespace=Woc[a]);return b};Yoc=function(a){for(var b=[],c=0;c<a.length;c++)b.push(Woc[a[c]]);return b};Zoc=function(a){return"kind,defaultAppIds,items("+a+")"};$oc=function(a,b){var c;return(null===(c=_.IJ(b))||void 0===c?0:_.R(c,16,!1))?a+",individualQuotaBytesTotal,individualQuotaBytesUsedAggregate":a};
apc=function(){var a=!(!_.n.IDBObjectStore||!_.n.IDBObjectStore.prototype.getAll);return!!(_.n.indexedDB||_.n.mozIndexedDB||_.n.webkitIndexedDB||_.n.moz_indexedDB)&&a};
epc=function(a,b){var c,d,e;b=b.clone();if((null===(c=_.IJ(b))||void 0===c?0:_.R(c,18,!1))||(null===(d=_.IJ(b))||void 0===d?0:_.R(d,17,!1)))null===(e=_.IJ(b))||void 0===e?void 0:_.x(e,15,!0);_.x(b,75,1<_.n.devicePixelRatio);var f=b;var h=_.R(f,61,!1),k=_.IJ(f),l=!!k&&_.R(k,10,!1);if(_.KI(_.fI(f))||!h&&!l)_.x(f,61,!1),_.lj(f,66),k&&_.x(k,10,!1),f=!1;else{if(h){_.n.SharedWorker||(h=!1);var p=_.y(f,Knc,66);p&&_.z(p,1)||(h=!1);_.XJ(f)&&!_.R(f,52,!1)&&(h=!1)}h?k&&_.x(k,10,!1):(_.x(f,61,!1),_.lj(f,66));
f=h||l}if(f)return b=new VK(a,b,_.R(b,61,!1)?3:5),new bpc(b);f=_.KI(_.fI(b))?2:1;a=new WK(a,b,f,void 0,void 0,void 0);return _.KI(_.fI(b))?new cpc(a):new dpc(a)};gpc=function(a){return _.Xe(a).hh(_.R(a.get(_.Ko),19,!1)?fpc:_.RUa)};hpc=function(a,b){a.push(b>>>0&255);a.push(b>>>8&255);a.push(b>>>16&255);a.push(b>>>24&255)};ipc=function(a,b){return _.mj(a,1,b)};LK=function(a){return _.z(a,11)};jpc=[1];kpc=function(a){_.J.call(this,a,-1,jpc)};_.K(kpc,_.J);
kpc.prototype.EN=function(){return _.yb(this,_.mk,1)};kpc.prototype.wia=function(a){_.rj(this,1,a,_.mk,void 0)};var lpc=function(a){var b=new kpc;return _.mj(b,1,a)},mpc=function(a,b){return _.G(a,1,b)},npc=function(a,b){_.mj(a,2,b)},opc=function(a,b){_.G(a,6,b)},ppc=function(a,b){_.G(a,7,b)},qpc=function(a,b){return _.qj(a,3,_.qk,b)},rpc=function(a){_.J.call(this,a)};_.K(rpc,_.J);var spc=function(a){_.J.call(this,a)};_.K(spc,_.J);var tpc=function(a){_.J.call(this,a)};_.K(tpc,_.J);
var upc=function(a){_.J.call(this,a)};_.K(upc,_.J);var vpc=function(a){_.J.call(this,a)};_.K(vpc,_.J);var wpc=function(a){_.J.call(this,a)};_.K(wpc,_.J);var xpc=function(a){_.J.call(this,a)};_.K(xpc,_.J);var ypc=function(a){_.J.call(this,a)};_.K(ypc,_.J);var zpc=function(a){_.J.call(this,a)};_.K(zpc,_.J);var Apc=function(a){_.J.call(this,a)};_.K(Apc,_.J);var Bpc=function(a){_.J.call(this,a)};_.K(Bpc,_.J);var Cpc=function(a){_.J.call(this,a)};_.K(Cpc,_.J);var Dpc=function(a){_.J.call(this,a)};
_.K(Dpc,_.J);var Epc=function(a){_.J.call(this,a)};_.K(Epc,_.J);var Fpc=function(a,b){_.mj(a,1,b)},Gpc=function(a,b){return _.x(a,2,b)},Hpc=function(a,b){return _.G(a,3,b)},Ipc=function(a,b){return _.x(a,4,b)},Jpc=function(a){_.J.call(this,a)};_.K(Jpc,_.J);var Kpc=function(a,b){_.mj(a,1,b)},Lpc=function(a,b){return _.G(a,2,b)},Mpc=function(a){_.J.call(this,a)};_.K(Mpc,_.J);
var Npc=function(a,b){_.mj(a,1,b)},Opc=function(a,b){return _.G(a,4,b)},Ppc=function(a,b){_.G(a,5,b)},Qpc=function(a,b){_.mj(a,2,b)},Rpc=function(a,b){_.x(a,3,b)},Spc=function(a,b){_.mj(a,4,b)},Tpc=function(a,b){return _.G(a,5,b)},Upc=function(a){_.J.call(this,a)};_.K(Upc,_.J);var Vpc=function(a,b){_.mj(a,1,b)},Wpc=function(a,b){return _.G(a,2,b)},Xpc=function(a){_.J.call(this,a)};_.K(Xpc,_.J);
var Ypc=function(a,b){_.mj(a,2,b)},Zpc=function(a){var b=new _.Aoa;return _.mj(b,3,a)},$pc=[1,2],aqc=function(a){_.J.call(this,a)};_.K(aqc,_.J);aqc.prototype.Ff=function(a){return _.qj(this,1,$pc,a)};var bqc=[1],cqc=function(a){_.J.call(this,a,-1,bqc)};_.K(cqc,_.J);cqc.prototype.Yq=function(){return _.z(this,2)};var dqc=function(a,b){_.mj(a,1,b)},eqc=function(a,b){return _.x(a,2,b)},fqc=function(a,b){return _.G(a,3,b)},gqc=function(a){_.J.call(this,a)};_.K(gqc,_.J);
var hqc=[2],iqc=function(a){_.J.call(this,a,-1,hqc)};_.K(iqc,_.J);var jqc=function(a,b){_.mj(a,2,b)},kqc=function(a,b){return _.G(a,3,b)},lqc=[1],mqc=function(a){_.J.call(this,a)};_.K(mqc,_.J);mqc.prototype.Ff=function(a){return _.qj(this,1,lqc,a)};var nqc=function(a,b){_.mj(a,1,b)},oqc=function(a,b){return _.mj(a,2,b)},pqc=function(a){_.J.call(this,a)};_.K(pqc,_.J);var qqc=function(a,b){_.mj(a,1,b)},rqc=function(a,b){return _.G(a,2,b)},sqc=function(a){_.J.call(this,a)};_.K(sqc,_.J);
var tqc=[1,2,3,4],uqc=[1],vqc=[1,2],wqc=[1],xqc=[1],yqc=[1,2],zqc=[1],Aqc=function(a,b){return _.G(a,1,b)},Bqc=function(a,b){return _.x(a,2,b)},Cqc=function(a,b){return _.x(a,3,b)},Dqc=function(a,b){return _.x(a,4,b)},Eqc=function(a,b){return _.x(a,5,b)},Fqc=function(a,b){return _.x(a,6,b)},Gqc=function(a){_.J.call(this,a)};_.K(Gqc,_.J);nnc=function(a,b){_.mj(a,8,b)};mnc=function(a,b){return _.G(a,73,b)};onc=function(a,b){_.mj(a,107,b)};_.MK=function(a){return _.y(a,Gqc,109)};
pnc=function(a,b){_.G(a,109,b)};Hqc=function(a){_.J.call(this,a)};_.K(Hqc,_.J);var Iqc=function(a){_.J.call(this,a)};_.K(Iqc,_.J);var Jqc=function(a,b){_.Rj(b,a,1);_.Rj(b,a,2);_.Jj(a,b)},Kqc=function(a){_.J.call(this,a)};_.K(Kqc,_.J);var Knc=function(a){_.J.call(this,a)};_.K(Knc,_.J);var Lqc=[11],Mqc=function(a){_.J.call(this,a,-1,Lqc)};_.K(Mqc,_.J);var XK=function(a){_.J.call(this,a)};_.K(XK,_.J);XK.prototype.getKey=function(){return _.z(this,2)};XK.prototype.wt=function(){return _.ej(this,2)};
YK=function(a){return _.C(a,4,"en")};_.ZK=function(a){return _.y(a,Mqc,34,1)};aL=function(a,b,c){if(b.length!=c.length)return!0;for(var d=0;d<b.length;d++)if(!a.O(b[d]||void 0,c[d]||void 0))return!0;return!1};_.Nqc=function(a,b){return _.x(a,2,b)};_.Oqc=function(a,b){return _.x(a,3,b)};_.Pqc=function(a,b){return _.x(a,1,b)};_.Qqc=function(a,b){return _.x(a,2,b)};_.Rqc=function(a,b){return _.mj(a,5,b)};_.Sqc=function(a,b){return _.x(a,6,b)};_.Tqc=function(a,b){return _.x(a,7,b)};
_.Uqc=function(a,b){return _.x(a,8,b)};_.Vqc=function(a,b){return _.x(a,10,b)};_.Wqc=function(a,b){return _.x(a,15,b)};Xqc=[2];_.Yqc=function(a){_.J.call(this,a,-1,Xqc)};_.K(_.Yqc,_.J);_.Yqc.prototype.mi=function(){return _.z(this,1)};_.Zqc=function(a,b){return _.G(a,1,b)};$qc=function(a,b){return _.x(a,2,b)};arc=function(a,b){return _.x(a,3,b)};brc=function(a,b){_.mj(a,4,b)};_.crc=function(a,b){_.G(a,8,b)};_.drc=function(a,b){_.G(a,9,b)};erc=function(a){_.J.call(this,a)};_.K(erc,_.J);
erc.prototype.Wa=function(){return _.jj(this,1)};erc.prototype.Hb=function(a){return _.wb(this,1,a,0)};voc=function(a,b){_.kj(a,3,b)};frc=function(a,b){return _.x(a,5,b)};_.roc=function(a){_.J.call(this,a)};_.K(_.roc,_.J);_.roc.prototype.getId=function(){return _.z(this,1)};_.roc.prototype.Nb=function(a){return _.x(this,1,a)};_.roc.prototype.Ce=function(){return _.z(this,4)};_.roc.prototype.oh=function(a){return _.x(this,4,a)};_.tK=function(a){_.J.call(this,a)};_.K(_.tK,_.J);
_.tK.prototype.getTitle=function(){return _.z(this,1)};_.tK.prototype.setTitle=function(a){return _.x(this,1,a)};_.tK.prototype.re=function(){return _.y(this,_.Lf,2)};var grc=function(a,b){return _.kj(a,9,b)},hrc=function(a,b){return _.kj(a,10,b)},irc=function(a,b){return _.x(a,36,b)},jrc=function(a,b){return _.mj(a,38,b)},krc=function(a,b){return _.x(a,2,b)},lrc=function(a,b){return _.G(a,3,b)},mrc=function(){var a=new _.qI;return _.x(a,5,!0)},nrc=function(a){_.J.call(this,a)};_.K(nrc,_.J);
var orc=function(a){_.J.call(this,a)};_.K(orc,_.J);var prc=function(a){_.J.call(this,a)};_.K(prc,_.J);var qrc=function(a){_.J.call(this,a)};_.K(qrc,_.J);var rrc=function(a){_.J.call(this,a)};_.K(rrc,_.J);var src=function(a){_.J.call(this,a)};_.K(src,_.J);src.prototype.Py=function(){return _.Q(this,1)};src.prototype.Xo=function(){return _.z(this,5)};src.prototype.Wm=function(){return _.z(this,6)};src.prototype.gw=function(a){return _.x(this,6,a)};
var trc=function(a,b){return _.x(a,1,b)},urc=function(a,b){return _.x(a,3,b)},vrc=function(a,b){return _.x(a,4,b)},wrc=function(a,b){_.x(a,7,b)},xrc=function(a){_.J.call(this,a)};_.K(xrc,_.J);xrc.prototype.Py=function(){return _.Q(this,2)};var yrc=function(a,b){_.x(a,1,b)},zrc=function(a){_.J.call(this,a)};_.K(zrc,_.J);zrc.prototype.Wm=function(){return _.z(this,3)};zrc.prototype.gw=function(a){return _.x(this,3,a)};zrc.prototype.Xo=function(){return _.z(this,4)};
var Arc=function(a){_.J.call(this,a)};_.K(Arc,_.J);var Brc=function(a){_.J.call(this,a)};_.K(Brc,_.J);var Crc=function(a,b){return _.x(a,1,b)},Drc=function(a,b){return _.x(a,2,b)},Erc=function(a,b){_.x(a,3,b)},Frc=[1,3,5],Grc=function(a){_.J.call(this,a,-1,Frc)};_.K(Grc,_.J);Grc.prototype.AD=function(){return _.re(this,1)};Grc.prototype.Py=function(){return _.Q(this,2)};Grc.prototype.Xo=function(){return _.z(this,7)};Hrc=function(a,b){_.x(a,2,b)};Irc=function(a,b){_.oj(a,5,b,void 0)};
Jrc=function(a,b){_.x(a,6,b)};Krc=function(a,b){_.x(a,7,b)};Lrc=function(a,b,c){_.$J(a,b,c,"warning")};_.Mrc=function(a,b){_.G(a,2,b)};Nrc=function(a){return a.H.concat([].concat(_.fc(a.O)))};bL=function(a){var b=_.hK(a).jd();b||(b=new _.uic,a=_.hK(a),_.G(a,1,b));return b};Orc=function(a){var b=_.y(_.hK(a),Grc,3);b||(b=new Grc,a=_.hK(a),_.G(a,3,b));return b};cL=function(a){var b=_.y(_.hK(a),src,16);b||(b=new src,a=_.hK(a),_.G(a,16,b));return b};
Prc=function(a){var b=_.y(_.hK(a),prc,7);b||(b=new prc,a=_.hK(a),_.G(a,7,b));return b};Qrc=function(a){var b=_.y(_.hK(a),rrc,12);b||(b=new rrc,a=_.hK(a),_.G(a,12,b));return b};Rrc=function(a){var b=_.y(_.hK(a),xrc,17);b||(b=new xrc,a=_.hK(a),_.G(a,17,b));return b};Src=function(a){var b=_.y(_.hK(a),Brc,21);b||(b=new Brc,a=_.hK(a),_.G(a,21,b));return b};
Trc=function(a){if(a instanceof _.RH)return 2;if(a instanceof _.fG)return 10;if(a instanceof _.Af)return _.jJ(a)?3:_.kJ(a)?7:_.lJ(a)?8:1;if(a instanceof _.aG)return 9;if(a instanceof _.nG)return 11;if(a instanceof _.tJ)return 15;if(a instanceof _.PH)return 6;if(a instanceof _.oJ){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 _.nD)return 4;if(a instanceof _.bA)return 12;if(a instanceof _.gG)return 13}return 0};
Urc=function(a){var b=null;a instanceof _.eI||"undefined"!=typeof _.jK&&a instanceof _.jK||"undefined"!=typeof _.kK&&a instanceof _.kK?b=a.We()||0:"undefined"!=typeof _.mK&&a instanceof _.mK||"undefined"!=typeof _.nK&&a instanceof _.nK||"undefined"!=typeof _.oK&&a instanceof _.oK||"undefined"!=typeof _.pK&&a instanceof _.pK||"undefined"!=typeof _.qK&&a instanceof _.qK?b=a.Pe:"undefined"!=typeof _.lK&&a instanceof _.lK&&(b=a.We());return b||0};
dL=function(a,b,c){return a.V&&_.Mjc(a)?(a=_.Ijc(a.V,b,0),c&&_.Fgc(a,c),a):null};Vrc=function(a){a.V&&_.Mjc(a)&&(a=a.V,a.H.hQ()&&a.H.M_())};Wrc=function(a,b){return _.G(a,1,b)};Xrc=function(a){var b=new _.fJ;return _.x(b,1,a)};Yrc=function(a,b){return _.G(a,2,b)};Zrc=function(a,b){a.ha=b};$rc=[2];asc=function(a){_.J.call(this,a,-1,$rc)};_.K(asc,_.J);_.g=asc.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.EN=function(){return _.yb(this,_.mk,2)};
_.g.wia=function(a){_.rj(this,2,a,_.mk,void 0)};_.g.Yj=function(){return _.z(this,3)};var bsc=function(a,b){return _.mj(a,2,b)},csc=[2],dsc=function(a){_.J.call(this,a,-1,csc)};_.K(dsc,_.J);dsc.prototype.Cb=function(){return _.z(this,1)};dsc.prototype.Dc=function(a){return _.x(this,1,a)};dsc.prototype.Yj=function(){return _.z(this,3)};
var esc=function(a){return a.H?a.H.promise:a.O()?(a.H=new _.cn,a.H.promise):null},fsc=function(a){for(var b=[],c=_.m(a.W),d=c.next();!d.done;d=c.next()){d=_.m(d.value);d.next();d=d.next().value;d=_.m(d);for(var e=d.next();!e.done;e=d.next())(e=e.value.Zv.config.timestamp)&&b.push(e)}a=_.m(a.buckets);for(d=a.next();!d.done;d=a.next()){c=[];d=_.m(d.value.aj);for(e=d.next();!e.done;e=d.next())(e=e.value.Zv.config.timestamp)&&c.push(e);_.Ca(b,c)}return b},gsc=function(a,b){return bsc(new asc,(b.items||
[]).map(function(c){return _.bmc(a,c)}))},hsc=function(a,b){return Fqc(Eqc(Dqc(_.Lhc(_.Jhc(new _.Loa,b.entryCount),(b.selectPermissions||[]).map(function(c){return _.bmc(a,c)})),b.memberCount),b.userEntryCount),b.groupEntryCount)},isc=function(a){if(8192>=a.length)return String.fromCharCode.apply(null,a);for(var b="",c=0;c<a.length;c+=8192)b+=String.fromCharCode.apply(null,Array.prototype.slice.call(a,c,c+8192));return b},jsc=function(a,b){if(!(a instanceof b.constructor))throw Error("$");var c=a.Ms();
b=b.Ms();var d=[],e=0,f=c.length>b.length?c.length:b.length;a.constructor.messageId&&(d[0]=a.constructor.messageId,e=1);for(;e<f;e++)_.fba(c[e],b[e])||(d[e]=b[e]);return _.jba(a.constructor,d)},ksc=[2],lsc=function(a){_.J.call(this,a,-1,ksc)};_.K(lsc,_.J);lsc.prototype.Cb=function(){return _.z(this,1)};lsc.prototype.Dc=function(a){return _.x(this,1,a)};lsc.prototype.DYa=function(){return _.yb(this,_.yEa,2)};lsc.prototype.Yj=function(){return _.z(this,3)};msc=[2,6];
_.kK=function(a){_.J.call(this,a,-1,msc)};_.K(_.kK,_.J);_.g=_.kK.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.Bd=function(){return _.yb(this,_.Bk,2)};_.g.iB=function(a){return _.mj(this,2,a)};_.g.dh=function(a,b){return _.rj(this,2,a,_.Bk,b)};_.g.Yj=function(){return _.z(this,3)};_.g.Tl=function(){return _.R(this,4,!0)};var nsc=function(a,b){return _.mj(a,6,b)};_.kK.prototype.Vf=function(){return _.z(this,10)};
_.kK.prototype.gQ=function(a){return _.x(this,10,a)};_.kK.prototype.We=function(){return _.z(this,9)};_.kK.prototype.ti=function(a){return _.x(this,9,a)};
var osc={SUCCESS:1,xac:2,l2b:3,LYb:4,Kac:5,Z5b:6,N5b:7,xZb:8,t$b:9,I$b:10,wac:11,c0b:12,H_b:13,n3b:14,E1b:15,L_b:16,K_b:17,Q_b:18,N_b:19,O_b:20,$$b:21,Gac:22,s6b:23,w5b:24,pZb:25,PERMISSION_DENIED:26,L4b:27,DZb:28,CZb:29,INTERRUPTED:30,S6b:31,m7b:32,r0b:33,x0b:34,A$b:35,E0b:36,F1b:37,w0b:38,M5b:39,i_b:40,N6b:41,o7b:42,r$b:43,VZb:44,h_b:45,C1b:46,G4b:47,K5b:48,i6b:49,O6b:50,k$b:51,I_b:52,s$b:53,q$b:54,a_b:55,YZb:56,P0b:57,e5b:58,P6b:59,b4b:60,D8b:61,r9b:62,Y9b:63,D3b:64,y5b:65,Nac:66,G0b:67,G1b:68,
vac:69,I3b:70,BZb:71,QZb:72,z9b:73,Z9b:74,V9b:75,T9b:76,n9b:190,S9b:191,A9b:192,G9b:126,C9b:128,D9b:129,E9b:130,F9b:131,H9b:132,I9b:133,M8b:127,J8b:134,K8b:135,O8b:136,P8b:137,Q8b:138,L8b:194,N8b:195,R8b:196,I8b:197,q9b:189,C8b:139,E8b:140,S8b:141,T8b:142,e9b:143,h9b:144,i9b:145,j9b:146,k9b:147,l9b:148,m9b:149,p9b:150,v9b:151,x9b:152,y9b:153,B9b:154,J9b:155,L9b:156,M9b:157,N9b:158,O9b:159,P9b:160,Q9b:161,U9b:162,X9b:163,$9b:164,F8b:165,G8b:166,H8b:167,A8b:168,B8b:169,W8b:170,U8b:171,V8b:172,X8b:173,
Y8b:174,Z8b:175,$8b:176,a9b:177,b9b:178,c9b:179,d9b:180,f9b:181,g9b:182,o9b:106,w9b:183,K9b:184,R9b:185,s9b:186,t9b:187,u9b:188,W9b:244,M6b:77,Aac:78,Fac:79,S4b:80,s3b:81,u3b:82,O0b:83,B1b:84,M4b:85,T$b:86,v0b:87,K3b:88,J3b:89,c$b:90,a$b:91,b$b:92,Bac:93,x_b:94,w_b:95,t_b:96,v_b:97,u_b:98,Mac:99,m8b:100,T_b:101,M_b:102,R_b:103,P_b:104,S_b:105,H1b:107,F$b:108,g8b:109,pac:110,K1b:111,J1b:112,g4b:113,h4b:114,s7b:115,b_b:116,o4b:117,$0b:118,Cac:119,S5b:120,T5b:121,o3b:193,J_b:122,l0b:123,r3b:124,r5b:125,
L3b:198,X6b:199,A3b:200,oYb:201,G3b:202,E3b:203,GZb:204,kbc:205,x4b:206,q_b:207,P5b:208,n7b:209,i8b:210,PYb:211,e4b:212,l4b:213,v$b:214,u$b:215,C3b:216,m3b:217,B3b:218,I0b:219,J$b:220,J0b:221,c4b:222,C$b:223,Wac:224,C5b:225,B$b:226,n0b:227,v4b:228,N0b:229,l_b:230,R$b:231,t5b:232,FILE_TOO_LARGE:233,H3b:234,H0b:235,y1b:236,i7b:237,z5b:238,$Xb:239,m_b:240,G5b:241,t8b:242,t0b:243,mYb:245,v3b:246,l6b:247,t3b:248,R4b:249,x5b:250,D1b:251,s2b:252,f4b:253,ZZb:254,I1b:255,Lac:256,e2b:257,a5b:258,A7b:259,W6b:260,
S3b:261,Y_b:262,u0b:263,oZb:264,K4b:265,Jac:266,dYb:267,eZb:268,dZb:269,L5b:270,YXb:271,ZXb:272,rZb:273,p_b:274,gZb:275,fZb:276,w4b:277,L1b:278,x3b:279,t7b:280,N$b:281,b5b:282,y4b:283,z4b:284,k_b:285,QYb:286,X5b:287,AZb:288,EZb:289,FZb:290,l3b:291},psc={Dac:0,c5b:1,u6b:2,g6b:3,N3b:4,MYb:5,d5b:6,h6b:7,T2b:8,nZb:9,e6b:10},qsc=function(){this.map={};this.status=6;this.Pe=null};_.g=qsc.prototype;_.g.Cb=function(){return this.status};_.g.Dc=function(a){this.status=a};_.g.We=function(){return this.Pe};
_.g.ti=function(a){this.Pe=a};_.g.lt=function(){return this.map};var rsc=function(a,b){a.map=b};qsc.prototype.Hc=function(a){var b=[];_.Ta(this.map,function(c,d){b.push({k:d,v:c?a(c):null})});return JSON.stringify({s:this.status,d:this.Pe,me:b})};var ssc=function(a,b,c){c=JSON.parse(c);a.Dc(c.s);a.ti(c.d);var d={};c.me.forEach(function(e){d[e.k]=e.v?b(e.v):null});a.map=d},tsc=function(){qsc.apply(this,arguments)};_.K(tsc,qsc);_.jK=function(){qsc.apply(this,arguments)};_.K(_.jK,qsc);
var eL=function(a){_.qi.call(this);var b=this;this.wa=a;this.active=!1;_.ef(this,function(){b.active=!1})};_.K(eL,_.qi);eL.prototype.Oi=function(){return String(_.Fa(this))};eL.prototype.activate=function(){this.active||(this.log("livelist "+this.Oi()+" activated."),this.active=!0,this.bQ())};eL.prototype.isActive=function(){return this.active};eL.prototype.log=function(a,b){this.wa.log(this.logName,a,void 0===b?"info":b)};
_.fL=function(a,b,c,d,e,f){eL.call(this,c);var h=this;this.O=a;this.ma=b;this.request=e;this.ta=f;this.H=[];this.items=[];this.status=6;this.W=_.jec(new _.cI,[1]);this.V=!0;this.Pe=0;this.Ba=d;this.limit=e.xi();_.ef(this,function(){h.H=[]});_.d7a++};_.K(_.fL,eL);_.g=_.fL.prototype;_.g.activate=function(){eL.prototype.activate.call(this);_.qa(this.items)&&6===this.Cb()&&this.nk()||usc(this)};_.g.bQ=function(){};_.g.jd=function(){return this.request};_.g.xi=function(){return this.limit};_.g.Cb=function(){return this.status};
_.g.vs=function(){return this.W};_.g.nk=function(){return this.V};_.g.ks=function(){var a=_.Hy(_.b7a(),this.H,this.items),b=(new lsc).Dc(this.Cb());a=_.mj(b,2,a);this.H=this.items;return a};_.g.Ju=function(a){this.isActive()&&(this.limit+=a||50,this.log("incrementMaxCount with "+a+" called on Livelist "+(this.Oi()+". New limit is ")+(this.limit+".")),this.Ba(this.Oi(),this.limit))};
var vsc=function(a,b){return a.Cb()!==b.Cb()||aL(_.b7a(),a.items,b.Bd())},wsc=function(a,b){a.items=b.Bd();a.status=b.Cb();_.mI(a.ta)&&(a.W=$mc(a.status,a.items));a.V=b.Tl();a.Pe=b.We()};_.fL.prototype.PB=function(a){this.dispatchEvent(new _.Ic(new _.Hc("Error occurred running a query after "+a.retryCount+" retries.",a.error)))};_.fL.prototype.bX=function(){this.dispatchEvent(new _.hi(_.XEa))};
_.fL.prototype.Pu=function(a,b){var c=this;b+="\n\n\nQuery:\n"+gL(this.O,this.jd());return this.ma.then(function(d){return d.tQb(a,b,c.jd(),c.xi(),c.items)})};
var usc=function(a){if(a.isActive()){var b=a.vs().H();a.log("Livelist "+a.Oi()+" returning "+a.items.length+". Status: "+(_.fb(osc)[a.Cb()]+". ")+(6===a.Cb()?"MissingTypes: "+b.join(",")+". ":"")+("Datasource: "+_.fb(psc)[a.Pe]+". Query: ")+(gL(a.O,a.request)+" ")+anc(a.items));xsc(a,a.items,a.request);a.dispatchEvent(new _.hi(_.cd,a))}},xsc=function(a,b,c){if(_.jJ(c))c="quick access";else if(_.kJ(c))c="people predict";else if(_.lJ(c))c="drive priority";else return;b=b.map(function(d){return d.getId()}).join(", ");
a.log("Livelist "+a.Oi()+" returning "+a.items.length+" for "+(c+": "+b))};_.fL.prototype.refresh=function(){};_.fL.prototype.Ya=function(){_.e7a++;eL.prototype.Ya.call(this)};var ysc=[1,2],zsc=function(a){_.J.call(this,a,-1,ysc)};_.K(zsc,_.J);
var gnc=[1004,1005,1002,1003],vnc=[1002,1003,1005],Asc=function(a,b,c,d,e,f){eL.call(this,c);var h=this;this.O=a;this.W=b;this.ha=d;this.ka=e;this.request=f;this.logName="drive.ds.sync.IdViewCacheLiveMap";this.H={};this.items={};this.status=6;this.V=_.jec(new _.cI,[1]);this.log("Creating find by ids live map: "+this.request.V().join(", "));_.ef(this,function(){h.H={}});_.Djb++};_.K(Asc,eL);_.g=Asc.prototype;_.g.bQ=function(){_.ab(this.items)&&6===this.status||Bsc(this)};_.g.jd=function(){return this.request};
_.g.getData=function(){this.H=this.items;var a=new _.jK;_.mI(this.O)?a.Dc(xnc(Object.values(this.items))?6:this.status):a.Dc(this.status);a.map=this.items;return a};_.g.ks=function(){var a=bnc(this.H,this.items),b=new tsc;b.Dc(this.status);b.map=a;this.H=this.items;return b};_.g.Cb=function(){return this.status};_.g.vs=function(){return this.V};_.g.$T=function(a){Csc(a);var b=this.request;this.request=a;this.ka(this.Oi(),b,a)};
_.g.update=function(a){var b=this;0<=_.oa(this.jd().V(),"root")?this.ha.addCallback(function(c){var d=a.lt()[c];d&&(_.bb(a.map,c),a.map.root=d);Dsc(b,a)}):Dsc(this,a)};var Dsc=function(a,b){if(a.status!==b.Cb()||cnc(a.items,b.lt()))a.status=b.Cb(),a.items=b.lt(),_.mI(a.O)&&(a.V=$mc(a.status,Object.values(a.items))),Bsc(a)};Asc.prototype.PB=function(a){this.dispatchEvent(new _.Ic(new _.Hc("Error occurred running a find-by-IDs query after "+a.retryCount+" retries.",a.error)))};Asc.prototype.bX=function(){this.dispatchEvent(new _.hi(_.XEa))};
var Bsc=function(a){a.isActive()&&(a.log("Livelist "+a.Oi()+" returning "+(Object.values(a.items).length+". Status: ")+(_.fb(osc)[a.Cb()]+". Query: ")+(gL(a.W,a.request)+" ")+anc(Object.values(a.items))),a.dispatchEvent(new _.hi(_.cd,a)))};Asc.prototype.Ya=function(){_.Ejb++;eL.prototype.Ya.call(this)};_.Esc=function(a){_.J.call(this,a)};_.K(_.Esc,_.J);_.Esc.prototype.Cb=function(){return _.z(this,1)};_.Esc.prototype.Dc=function(a){return _.x(this,1,a)};
_.Esc.prototype.vn=function(){return _.y(this,_.dI,2)};var Fsc=function(a){_.hi.call(this,a)};_.K(Fsc,_.hi);var Gsc=[5,7,9],Hsc=function(a){_.J.call(this,a,-1,Gsc)};_.K(Hsc,_.J);_.g=Hsc.prototype;_.g.getUser=function(){return _.y(this,_.mk,1)};_.g.jB=function(a){_.x(this,2,a)};_.g.setBooleanValue=function(a){return _.x(this,3,a)};_.g.setTextValue=function(a){return _.x(this,4,a)};_.g.zqa=function(a){return _.kj(this,5,a)};_.g.addTextValues=function(a,b){return _.oj(this,5,a,b)};
_.g.setSelectionValue=function(a){return _.x(this,6,a)};_.g.vqa=function(a){return _.kj(this,7,a)};_.g.addSelectionValues=function(a,b){return _.oj(this,7,a,b)};_.g.setIntegerValue=function(a){return _.x(this,8,a)};_.g.mqa=function(a){return _.kj(this,9,a)};_.g.addIntegerValues=function(a,b){return _.oj(this,9,a,b)};var Isc=[7,10,12,16,13,3],hL=function(a){_.J.call(this,a,-1,Isc)};_.K(hL,_.J);var iL=function(a){return _.z(a,4)};_.g=hL.prototype;_.g.jB=function(a){_.x(this,4,a)};
_.g.setBooleanValue=function(a){return _.x(this,5,a)};_.g.ucb=function(){return _.z(this,6)};_.g.setTextValue=function(a){return _.x(this,6,a)};_.g.zqa=function(a){return _.kj(this,7,a)};_.g.addTextValues=function(a,b){return _.oj(this,7,a,b)};_.g.scb=function(){return _.z(this,8)};_.g.setLongTextValue=function(a){return _.x(this,8,a)};_.g.tcb=function(){return _.z(this,9)};_.g.setSelectionValue=function(a){return _.x(this,9,a)};_.g.aPa=function(){return _.re(this,10)};
_.g.vqa=function(a){return _.kj(this,10,a)};_.g.addSelectionValues=function(a,b){return _.oj(this,10,a,b)};_.g.rcb=function(){return _.z(this,11)};_.g.setIntegerValue=function(a){return _.x(this,11,a)};_.g.mqa=function(a){return _.kj(this,12,a)};_.g.addIntegerValues=function(a,b){return _.oj(this,12,a,b)};_.g.vcb=function(){return _.y(this,_.mk,15)};_.g.setUserValue=function(a){return _.G(this,15,a)};_.g.a_a=function(){return _.yb(this,_.mk,16)};var Jsc=function(a,b){_.mj(a,16,b)};
hL.prototype.addUserValues=function(a,b){return _.rj(this,16,a,_.mk,b)};hL.prototype.H=function(){return _.z(this,17)};hL.prototype.setDateStringValue=function(a){return _.x(this,17,a)};hL.prototype.V=function(){return _.ej(this,17)};var Ksc=function(a,b){_.mj(a,13,b)};hL.prototype.getId=function(){return _.z(this,14)};hL.prototype.Nb=function(a){return _.x(this,14,a)};hL.prototype.getName=function(){return _.z(this,1)};hL.prototype.$c=function(a){return _.x(this,1,a)};Lsc=[3];
_.jL=function(a){_.J.call(this,a,-1,Lsc)};_.K(_.jL,_.J);_.jL.prototype.getType=function(){return _.z(this,1)};_.jL.prototype.qc=function(){return _.z(this,2)};_.Msc=function(a){_.J.call(this,a)};_.K(_.Msc,_.J);_.Msc.prototype.getFeature=function(){return _.z(this,1)};Nsc=[1];_.gK=function(a){_.J.call(this,a,-1,Nsc)};_.K(_.gK,_.J);var RK=function(a){_.J.call(this,a)};_.K(RK,_.J);RK.prototype.getId=function(){return _.z(this,1)};RK.prototype.Nb=function(a){return _.x(this,1,a)};
RK.prototype.re=function(){return _.y(this,_.Lf,3)};Osc=[2,3,8];_.wJ=function(a){_.J.call(this,a,-1,Osc)};_.K(_.wJ,_.J);_.wJ.prototype.getId=function(){return _.z(this,1)};_.wJ.prototype.Nb=function(a){return _.x(this,1,a)};_.wJ.prototype.re=function(){return _.y(this,_.Lf,4)};_.wJ.prototype.uc=function(){return _.z(this,5)};var Psc=function(a){_.J.call(this,a)};_.K(Psc,_.J);var Qsc=[1,2,4],Rsc=function(a){_.J.call(this,a)};_.K(Rsc,_.J);Rsc.prototype.Bf=function(){return _.C(this,1)};
Rsc.prototype.kl=function(a){return _.Dj(this,1,a)};Rsc.prototype.getUrl=function(){return _.C(this,2)};_.Ssc=function(a){_.J.call(this,a)};_.K(_.Ssc,_.J);_.Ssc.prototype.getType=function(){return _.ij(this,1,0)};_.Ssc.prototype.getContext=function(){return _.y(this,Rsc,2)};Tsc=[1];Usc=[2,4];_.Vsc=function(a){_.J.call(this,a,-1,Usc)};_.K(_.Vsc,_.J);_.Vsc.prototype.getLabel=function(){return _.C(this,1)};_.Vsc.prototype.getTitle=function(){return _.C(this,3)};
_.Vsc.prototype.setTitle=function(a){return _.Dj(this,3,a)};_.Wsc=function(a){_.J.call(this,a,-1,Tsc)};_.K(_.Wsc,_.J);_.Xsc=[2,3,4];_.Ysc=function(a){_.J.call(this,a)};_.K(_.Ysc,_.J);_.Ysc.prototype.te=function(){return _.C(this,3)};_.Ysc.prototype.Pn=function(a){return _.Dj(this,4,a)};_.Zsc=function(a){_.J.call(this,a)};_.K(_.Zsc,_.J);_.$sc=function(a){_.J.call(this,a)};_.K(_.$sc,_.J);var atc=function(a){_.J.call(this,a)};_.K(atc,_.J);btc=[3,5];_.kL=[8,9,10,11,12,13,14];
_.ctc=function(a){_.J.call(this,a)};_.K(_.ctc,_.J);_.dtc=function(a){_.J.call(this,a,-1,btc)};_.K(_.dtc,_.J);_.dtc.prototype.Cb=function(){return _.ij(this,6,0)};_.dtc.prototype.Dc=function(a){return _.Ej(this,6,a)};var etc=function(a){_.J.call(this,a)};_.K(etc,_.J);var ftc=function(a){_.J.call(this,a)};_.K(ftc,_.J);var gtc=function(a){_.J.call(this,a)};_.K(gtc,_.J);var htc=[1],itc=function(a){_.J.call(this,a,-1,htc)};_.K(itc,_.J);var jtc=function(a){_.J.call(this,a)};_.K(jtc,_.J);
var ktc=function(a){_.J.call(this,a)};_.K(ktc,_.J);ltc=[7];_.mtc=[1,2,3];_.ntc=function(a){_.J.call(this,a)};_.K(_.ntc,_.J);_.otc=function(a){_.J.call(this,a)};_.K(_.otc,_.J);_.ptc=function(a){_.J.call(this,a)};_.K(_.ptc,_.J);_.qtc=function(a){_.J.call(this,a,-1,ltc)};_.K(_.qtc,_.J);var rtc=function(a){_.J.call(this,a)};_.K(rtc,_.J);rtc.prototype.getName=function(){return _.C(this,1)};rtc.prototype.$c=function(a){return _.Dj(this,1,a)};var stc=function(a){_.J.call(this,a)};_.K(stc,_.J);
stc.prototype.getName=function(){return _.C(this,1)};stc.prototype.$c=function(a){return _.Dj(this,1,a)};stc.prototype.getTitle=function(){return _.C(this,2)};stc.prototype.setTitle=function(a){return _.Dj(this,2,a)};_.ttc=[1,4];utc=function(a){_.J.call(this,a)};_.K(utc,_.J);utc.prototype.getUser=function(){return _.Aj(this,_.$sc,1,_.ttc)};utc.prototype.ik=function(){return _.y(this,rtc,3)};utc.prototype.On=function(a){return _.G(this,3,a)};utc.prototype.zH=function(){return _.ej(this,3)};
var vtc=[8,9,10],wtc=function(a){_.J.call(this,a)};_.K(wtc,_.J);wtc.prototype.getType=function(){return _.ij(this,6,0)};var xtc=function(a){_.J.call(this,a)};_.K(xtc,_.J);_.ytc=function(a){_.J.call(this,a)};_.K(_.ytc,_.J);_.g=_.ytc.prototype;_.g.getName=function(){return _.C(this,1)};_.g.$c=function(a){return _.Dj(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.Dj(this,2,a)};_.g.mla=function(){return _.Aj(this,wtc,9,vtc)};
_.g.KYa=function(){return _.Aj(this,xtc,10,vtc)};_.g.nj=function(){return _.xj(this,5)};_.g.getMimeType=function(){return _.C(this,6)};_.g.hA=function(){return _.y(this,utc,7)};var ztc=function(a){_.J.call(this,a)};_.K(ztc,_.J);var Atc=[8,9,10],Btc=function(a){_.J.call(this,a)};_.K(Btc,_.J);_.g=Btc.prototype;_.g.getName=function(){return _.C(this,1)};_.g.$c=function(a){return _.Dj(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.Dj(this,2,a)};
_.g.mla=function(){return _.Aj(this,wtc,9,Atc)};_.g.KYa=function(){return _.Aj(this,xtc,10,Atc)};Ctc=[1,3];_.lL=function(a){_.J.call(this,a)};_.K(_.lL,_.J);_.lL.prototype.Mh=function(){return _.Aj(this,Btc,1,Ctc)};_.Dtc=[1,2,3];_.Etc=function(a){_.J.call(this,a)};_.K(_.Etc,_.J);_.Ftc=function(a){_.J.call(this,a)};_.K(_.Ftc,_.J);var Gtc=function(a){_.J.call(this,a)};_.K(Gtc,_.J);var Htc=function(a){_.J.call(this,a)};_.K(Htc,_.J);Itc=[2,3];_.Jtc=function(a){_.J.call(this,a,-1,Itc)};_.K(_.Jtc,_.J);
_.Jtc.prototype.getType=function(){return _.ij(this,1,0)};_.Ktc=function(a){_.J.call(this,a)};_.K(_.Ktc,_.J);_.Ktc.prototype.getType=function(){return _.ij(this,1,0)};var Ltc=function(a){_.J.call(this,a)};_.K(Ltc,_.J);Ltc.prototype.getType=function(){return _.ij(this,1,0)};var Mtc=function(a){_.J.call(this,a)};_.K(Mtc,_.J);_.Ntc=function(a){_.J.call(this,a)};_.K(_.Ntc,_.J);_.Ntc.prototype.H=function(){return _.R(this,1)};var Otc=function(a){_.J.call(this,a)};_.K(Otc,_.J);Ptc=[1,2,4];
_.Qtc=function(a){_.J.call(this,a)};_.K(_.Qtc,_.J);Rtc=[1,2];_.Stc=function(a){_.J.call(this,a)};_.K(_.Stc,_.J);_.Stc.prototype.getParent=function(){return _.y(this,_.lL,1)};_.Stc.prototype.Ug=function(a){return _.G(this,1,a)};_.Ttc=function(a){_.J.call(this,a,-1,Rtc)};_.K(_.Ttc,_.J);_.Utc=function(a){_.J.call(this,a,-1,Ptc)};_.K(_.Utc,_.J);_.mL=function(a){_.J.call(this,a)};_.K(_.mL,_.J);_.mL.prototype.getEmail=function(){return _.C(this,1)};_.mL.prototype.getTitle=function(){return _.C(this,2)};
_.mL.prototype.setTitle=function(a){return _.Dj(this,2,a)};_.nL=[2,3,4,5];_.oL=function(a){_.J.call(this,a)};_.K(_.oL,_.J);_.g=_.oL.prototype;_.g.Df=function(){return _.ij(this,1,0)};_.g.getUser=function(){return _.Aj(this,_.$sc,2,_.nL)};_.g.ik=function(){return _.Aj(this,rtc,4,_.nL)};_.g.On=function(a){return _.qj(this,4,_.nL,a)};_.g.zH=function(){return _.fj(this,4,_.nL)};var Vtc=function(a){_.J.call(this,a)};_.K(Vtc,_.J);Wtc=[1,2,3,4];_.Xtc=function(a){_.J.call(this,a,-1,Wtc)};_.K(_.Xtc,_.J);
_.Ytc=function(a){_.J.call(this,a)};_.K(_.Ytc,_.J);_.Ztc=function(a){_.J.call(this,a)};_.K(_.Ztc,_.J);_.$tc=function(a){_.J.call(this,a)};_.K(_.$tc,_.J);_.auc=function(a){_.J.call(this,a)};_.K(_.auc,_.J);_.auc.prototype.getType=function(){return _.ij(this,1,0)};buc=[1];_.cuc=function(a){_.J.call(this,a)};_.K(_.cuc,_.J);_.cuc.prototype.getFeature=function(){return _.ij(this,1,0)};_.duc=function(a){_.J.call(this,a,-1,buc)};_.K(_.duc,_.J);var euc=function(a){_.J.call(this,a)};_.K(euc,_.J);
var fuc=function(a){_.J.call(this,a)};_.K(fuc,_.J);var guc=function(a){_.J.call(this,a)};_.K(guc,_.J);guc.prototype.getType=function(){return _.ij(this,1,0)};_.pL=[1,2,3,4,5,6,7,8,9,10,11,12,13,18,15,16,19,20,21];_.qL=function(a){_.J.call(this,a)};_.K(_.qL,_.J);_.qL.prototype.bx=function(){return _.Aj(this,guc,10,_.pL)};var huc=function(a){_.J.call(this,a)};_.K(huc,_.J);huc.prototype.getType=function(){return _.ij(this,2,0)};huc.prototype.Jh=function(){return _.C(this,1)};
_.iuc=function(a){_.J.call(this,a)};_.K(_.iuc,_.J);var juc=function(a){_.J.call(this,a)};_.K(juc,_.J);_.kuc=function(a){_.J.call(this,a)};_.K(_.kuc,_.J);_.luc=function(a){_.J.call(this,a)};_.K(_.luc,_.J);_.luc.prototype.getType=function(){return _.ij(this,1,0)};_.rL=[1,2,3,4,5];_.muc=function(a){_.J.call(this,a)};_.K(_.muc,_.J);_.muc.prototype.getUser=function(){return _.Aj(this,_.$sc,1,_.rL)};_.nuc=function(a){_.J.call(this,a)};_.K(_.nuc,_.J);_.g=_.nuc.prototype;
_.g.getName=function(){return _.C(this,1)};_.g.$c=function(a){return _.Dj(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.Dj(this,2,a)};_.g.Ma=function(){return _.y(this,_.ytc,3)};_.ouc=function(a){_.J.call(this,a)};_.K(_.ouc,_.J);_.ouc.prototype.getParent=function(){return _.y(this,_.ytc,4)};_.ouc.prototype.Ug=function(a){return _.G(this,4,a)};_.sL=[1,5,3];_.puc=function(a){_.J.call(this,a)};_.K(_.puc,_.J);
_.puc.prototype.Mh=function(){return _.Aj(this,_.ytc,1,_.sL)};quc=function(a,b){return new _.gdc(_.hdc.bound(a,b,void 0,void 0))};ruc=function(){var a=new _.Uh,b=_.tdc().deleteDatabase("GoogleDriveDs");b.onsuccess=function(){a.callback()};b.onerror=function(c){a.Gd(_.WH(c.target,"deleting database GoogleDriveDs"))};b.onblocked=function(){};return a};_.suc=function(a){_.J.call(this,a)};_.K(_.suc,_.J);_.suc.prototype.Ip=function(){return _.z(this,1)};
_.suc.prototype.getSize=function(){return _.z(this,2)};_.suc.prototype.setSize=function(a){return _.x(this,2,a)};_.suc.prototype.getUrl=function(){return _.z(this,3)};_.tuc=function(a){_.J.call(this,a)};_.K(_.tuc,_.J);_.tuc.prototype.getType=function(){return _.z(this,1)};uuc=[2,3];_.vuc=function(a){_.J.call(this,a,-1,uuc)};_.K(_.vuc,_.J);wuc=[4,5,6,17,18,24];_.tL=function(a){_.J.call(this,a,-1,wuc)};_.K(_.tL,_.J);_.tL.prototype.getId=function(){return _.z(this,1)};
_.tL.prototype.Nb=function(a){return _.x(this,1,a)};_.tL.prototype.getName=function(){return _.z(this,2)};_.tL.prototype.$c=function(a){return _.x(this,2,a)};var xuc=function(a,b){return _.kj(a,4,b)},yuc=function(a,b){return _.kj(a,5,b)};_.tL.prototype.FR=function(){return _.z(this,8)};_.tL.prototype.getType=function(){return _.z(this,23)};var uL=function(a){_.J.call(this,a)};_.K(uL,_.J);uL.prototype.getQuery=function(){return _.y(this,_.Af,1,1)};uL.prototype.Vg=function(a){return _.G(this,1,a)};
uL.prototype.AK=function(){return _.ej(this,1)};uL.prototype.Zn=function(){return _.z(this,4)};var zuc=function(a,b){return _.G(a,5,b)},yoc=function(a){_.J.call(this,a)};_.K(yoc,_.J);var Auc=[1,2,5,7,9,10,12,14],vL=function(a){_.J.call(this,a,-1,Auc)};_.K(vL,_.J);vL.prototype.Bd=function(){return _.yb(this,_.Bk,1)};var Buc=function(a,b){return _.mj(a,1,b)};vL.prototype.dh=function(a,b){return _.rj(this,1,a,_.Bk,b)};vL.prototype.EN=function(){return _.yb(this,_.mk,2)};
vL.prototype.wia=function(a){_.rj(this,2,a,_.mk,void 0)};var Cuc=function(a,b){return _.x(a,3,b)};vL.prototype.Du=function(){return _.z(this,4)};vL.prototype.qz=function(a){return _.x(this,4,a)};var Duc=function(a,b){return _.mj(a,5,b)};vL.prototype.Lv=function(){return _.Q(this,6)};var Euc=function(a,b){return _.x(a,6,b)};vL.prototype.Hf=function(){return _.y(this,_.UB,8)};var Fuc=function(a,b){return _.kj(a,12,b)};vL.prototype.Xo=function(){return _.ij(this,13,0)};
var Guc=function(a,b){return _.x(a,13,b)},Huc={sZb:0,qZb:1,n4b:2,D$b:3,G$b:4,Y5b:5},Iuc=[1],SK=[1,2,3,4,5,6,7],Tnc=function(a){_.J.call(this,a)};_.K(Tnc,_.J);var Unc=function(a){_.J.call(this,a,-1,Iuc)};_.K(Unc,_.J);var QK=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],Rnc=function(a){_.J.call(this,a)};_.K(Rnc,_.J);var Ync=[1,2],Xnc=function(a){_.J.call(this,a)};_.K(Xnc,_.J);var aoc=[1,2,3],$nc=function(a){_.J.call(this,a)};_.K($nc,_.J);var Juc=[3],wL=function(a){_.J.call(this,a,-1,Juc)};_.K(wL,_.J);
wL.prototype.uq=function(){return _.z(this,1)};var Kuc=function(a,b){return _.x(a,1,b)};wL.prototype.getTitle=function(){return _.z(this,2)};wL.prototype.setTitle=function(a){return _.x(this,2,a)};wL.prototype.Bd=function(){return _.yb(this,_.Bk,3)};var Luc=function(a,b){return _.mj(a,3,b)};wL.prototype.dh=function(a,b){return _.rj(this,3,a,_.Bk,b)};wL.prototype.V=function(){return _.z(this,4)};var Muc=function(a,b){return _.x(a,4,b)};wL.prototype.H=function(){return _.y(this,_.pk,5)};
var Nuc=function(a,b){return _.G(a,5,b)},Ouc=[2],xL=function(a){_.J.call(this,a,-1,Ouc)};_.K(xL,_.J);xL.prototype.Cb=function(){return _.z(this,1)};xL.prototype.Dc=function(a){return _.x(this,1,a)};xL.prototype.Zk=function(){return _.yb(this,wL,2)};var Puc=function(a,b){return _.mj(a,2,b)};xL.prototype.Vf=function(){return _.z(this,4)};Quc=function(a,b){return _.x(a,4,b)};_.lK=function(a){_.J.call(this,a)};_.K(_.lK,_.J);_.g=_.lK.prototype;_.g.Cb=function(){return _.z(this,1)};
_.g.Dc=function(a){return _.x(this,1,a)};_.g.EU=function(){return _.Ab(this,2,void 0,_.dI)};_.g.Yj=function(){return _.z(this,3)};_.g.We=function(){return _.z(this,5)};_.g.ti=function(a){return _.x(this,5,a)};var Ruc=function(a,b){return 1<a?2===b:a===b},Suc=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("kf");},yL=function(a,b,c,d,e){this.item=a;this.count=void 0===b?0:b;this.V=void 0===c?1:c;this.O=d;this.H=e};_.g=yL.prototype;
_.g.clone=function(){return new yL(this.item.clone(),this.count,this.V,this.O,this.H)};_.g.getId=function(){return this.item.getId()};_.g.$b=function(){return this.count};_.g.getItem=function(){return this.item};_.g.setItem=function(a){this.item=a;return this};_.g.VA=function(a){this.V=a};_.g.equals=function(a){return this.count===a.$b()&&this.V===a.V&&this.O===a.O&&this.H===a.H&&_.wj(this.item,a.getItem())};
var Tuc=function(a,b){a.H=b;return a},zL=function(a){return a instanceof _.Bk?null!=a.getId()&&a.getId()==a.uc():null!=a.qc()&&a.qc()==a.uc()},Uuc=function(a,b,c){c=void 0===c?[]:c;var d=a.clone(),e=b.Vh();null!=e&&mnc(a,e.clone());if((e=b.getCapabilities())&&null!=_.Q(e,13)){var f=a.getCapabilities()||new _.sk;_.x(f,13,_.Q(e,13));_.QJ(a,f)}e&&null!=_.Q(e,18)&&(f=a.getCapabilities()||new _.sk,_.x(f,18,_.Q(e,18)),_.QJ(a,f));NK(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.Vh()&&NK(a,d,c)},Vuc=function(a,b,c){c=void 0===c?[]:c;if(!b||!zL(a)&&!zL(b))return a;if(2==a.Lv()){c=_.z(a,82);var d=b.clone();Uuc(d,a);_.Shc(d,b.Lv());_.AI(d,c);return d}a=a.clone();Uuc(a,b,c);return a},Wuc=function(a){return(a=a?a.Vh():null)&&_.Q(a,7)||!1},Xuc=function(a,b){this.V=a;this.Bg=b;this.items={};this.fields=new Set;this.H={};this.O=new Set;this.W=new Set(_.bK(this.Bg))},Zuc=function(a,b){var c=a.Bg;var d=new Set;b=_.m(b);for(var e=b.next();!e.done;e=
b.next())e=e.value,c.H.includes(e)||c.O.has(e)||(c.O.add(e),d.add(e));c=[].concat(_.fc(d));Yuc(a,a.items,a.fields,c)},Yuc=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]={}})},avc=function(a,b,c){b.every(function(d){return zL(d)})?$uc(b,c,a.H,a.O):b.every(function(d){return!zL(d)})&&$uc(b,c,a.items,a.fields)},$uc=function(a,b,c,d){b=qnc(b,[].concat(_.fc(d)));if(0!==b.length)for(a=
_.m(a),d=a.next();!d.done;d=a.next()){d=d.value;var e=d.yf();e=e?_.we(e):null;for(var f=_.m(b),h=f.next();!h.done;h=f.next()){h=h.value;var k=c[h][d.getId()];k&&NK(d,k,[h]);e&&(k=c[h][e.getId()])&&NK(e,k,[h])}}};Xuc.prototype.update=function(a,b,c){b&&zL(b)?bvc(a,b,this.H,this.O,c):bvc(a,b,this.items,this.fields,c)};Xuc.prototype.NJ=function(a){var b=this;_.Ta(this.items,function(c,d){_.bb(b.items[d],a)});_.Ta(this.H,function(c,d){_.bb(b.H[d],a)})};
var bvc=function(a,b,c,d,e){_.Ta(c,function(f,h){h=Number(h);if(e.includes(h)&&(f[a]&&!b?_.bb(f,a):b&&jnc(b,[h])&&(f[a]=cvc(b,h)),b)){var k=b.yf();(k=k?_.we(k):null)&&jnc(k,[h])&&(f[k.getId()]=cvc(k,h))}});b&&fnc(b,[].concat(_.fc(d)))},cvc=function(a,b){var c=new _.Bk;c.Nb(a.getId());NK(c,a,[b]);return c};Xuc.prototype.clear=function(){var a=this;_.Ta(this.items,function(b,c){a.items[c]={}});_.Ta(this.H,function(b,c){a.H[c]={}})};
Xuc.prototype.log=function(a){this.V.info("drive.ds.sync.cache.FieldsCache",a)};var dvc=function(a,b,c){var d=this;this.Ct=b;this.Uv=c;this.Dd=new Map;this.rootId="";a.addCallback(function(e){d.rootId=e})};_.g=dvc.prototype;_.g.Ey=function(){return this.Dd};_.g.lk=function(a){var b=new Map;a=_.m(a.V());for(var c=a.next();!c.done;c=a.next())c=c.value,this.Dd.has(c)&&b.set(c,this.Dd.get(c).getItem());return b};
_.g.query=function(a,b){var c=[];if(evc(a)){for(var d=_.m(this.Dd.values()),e=d.next();!e.done;e=d.next())e=e.value,AL(this.Ct,a,e.getItem())&&(void 0===b||Ruc(e.V,b))&&c.push(e);this.Uv.sort(a,c)}return c};_.g.get=function(a){return this.Dd.get(a)||null};_.g.getAll=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())(c=this.Dd.get(c.value))&&b.push(c);return b};
_.g.update=function(a){a.H?(a.H.count++,a.O&&a.O.count--,fvc(this,a.H)?(this.Dd.delete(a.id),a.H.count--):this.Dd.set(a.id,a.H)):(this.Dd.delete(a.id),a.O.count--)};var fvc=function(a,b){return 1<b.$b()||Ruc(b.V,2)||b.getItem().kJ()||Dnc(b.getItem())?!1:"root"!==b.getId()&&b.getId()!==a.rootId};dvc.prototype.NJ=function(){for(var a=_.m(this.Dd.values()),b=a.next();!b.done;b=a.next())b=b.value,fvc(this,b)&&(this.Dd.delete(b.getId()),b.count--)};
var gvc=function(a,b,c,d){this.Bg=a;this.W=b;this.O=c;this.V=d},zoc=function(a,b){return(b=a.O.get(b))?(b=b.clone(),avc(a.V,[b.getItem()],Nrc(a.Bg)),b):null};gvc.prototype.H=function(a){return(a=zoc(this,a))?a.getItem():null};var hvc=function(a,b){var c={};b=_.m(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=zoc(a,d);e&&(c[d]=e)}return c},ivc=function(a,b){return _.Va(hvc(a,b),function(c){return c.getItem()})},jvc=function(a,b){b=BL(a.W,b);return a.O.query(b).map(function(c){return c.clone()})};
gvc.prototype.query=function(a){return jvc(this,a).map(function(b){return b.getItem()})};gvc.prototype.getSize=function(){return this.O.Ey().size};
var kvc=function(a){var b=new Set;a=_.m(a.O.Ey().values());for(var c=a.next();!c.done;c=a.next()){c=c.value.getItem();for(var d=_.m(_.Ck(c)),e=d.next();!e.done;e=d.next())e=e.value,b.add(e.getId()||LK(e));(d=c.Em())&&b.add(d.getId()||LK(d));(d=c.Yr())&&b.add(d.getId()||LK(d));(d=c.pq())&&b.add(d.getId()||LK(d));(c=c.ED())&&b.add(c.getId()||LK(c))}return b.size},lvc=function(a){return[].concat(_.fc(new Set(a.map(function(b){return _.ufc.get(b)}).filter(function(b){return b})))).join(",")},CL=function(a,
b,c){b=void 0===b?[]:b;c=void 0===c?!1:c;b=[].concat(_.fc(b));b=lvc(b);var d=_.mI(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,customerId":
_.R(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,customerId":"kind,id,name,colorRgb,backgroundImageLink,creator,permissionsSummary,trusted,primaryDomainName,organizationDisplayName,restrictions,backgroundImageGridViewLink,backgroundImageListViewLink,hidden,customerId";
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";_.R(a,77,!1)&&(c+=",canChangeCategoryReferences");
return(b.length?d+","+b:d)+",capabilities("+c+")"},mvc=function(a,b){b=void 0===b?[]:b;return"kind,nextPageToken,items("+CL(a,b,!1)+")"},nvc=function(a){var b=new _.so;_.fK(b,"hidden",_.Q(a,4));a=_.Q(a,6);null!=a&&_.fK(b,"canRemoveSecureLinkUpdateForAllFiles",a);return b.toString()},ovc=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}},pvc=function(a,b){switch(a){case 21:return b.getId()||"";case 3:return b.getMimeType()||"";case 4:return b.oB()||!1;case 12:return b.Fz()||0;case 11:return b.GB()||0;case 10:return b.Oq()||0;case 2:return(b.getTitle()||"").toLowerCase();case 25:return b.Oy()||0;case 57:return _.z(b,62)||0;case 32:return b.rv()||0;case 9:return b.oD()||0;case 67:return _.z(b,70)||0;case 98:return b.Cw()||0;default:return""}},qvc=function(a){var b=_.Icc(),c={};b&&(c.numeric=b);this.H=_.Jcc(a,c)};
qvc.prototype.compare=function(a,b,c){b=rvc(b);c=rvc(c);a=a.Lc();var d=ovc(a);if(a&&d){d=svc(this,a);var e=4===a.getType()?this.H:_.Ha;return tvc(a,d,e,b,c)}return _.Ha(b.getId(),c.getId())};qvc.prototype.sort=function(a,b,c){a=a.Lc();var d=ovc(a);a&&d&&(d=svc(this,a),d=uvc(b,d),_.Ka(b,vvc(this,a,d)));c&&0<c&&_.ta(b,c,b.length-c)};
var rvc=function(a){return a instanceof _.Bk?a:a.getItem()},svc=function(a,b){b=ovc(b);return _.L(a.O,a,b,_.Ha)},uvc=function(a,b){var c={};a.forEach(function(d){d=rvc(d);var e=d.getId();c[e]=b(d)});return c},vvc=function(a,b,c){return function(d,e){var f=4===b.getType()?a.H:_.Ha;d=rvc(d);e=rvc(e);return tvc(b,function(h){return c[h.getId()]},f,d,e)}},tvc=function(a,b,c,d,e){var f=1===a.Uf()?1:-1;if(_.Q(a,3)){a=PK(d,!0);var h=PK(e,!0);a=a===h?0:a?-1:1}else a=0;return a||f*(c(b(d),b(e))||_.Ha(d.getId(),
e.getId()))};qvc.prototype.O=function(a,b,c){for(var d=pvc(a[0],c),e=1;e<a.length;e++){var f=pvc(a[e],c);d=1===b(f,d)?f:d}return d};var wvc=function(a,b){this.fields=a;this.rootId="";this.fields.sort();this.H=b;this.anonymous=_.KI(_.fI(b));a=_.IJ(b);this.O=!(!a||!_.R(a,8,!1))};wvc.prototype.qz=function(a){this.rootId=a||""};
var BL=function(a,b,c){b=b.clone();"root"===b.getId()&&b.Nb(a.rootId);_.kl(b).filter(function(d){return"root"===d.Wa()}).forEach(function(d){return d.Hb(a.rootId)});_.jl(b,_.il(b).map(function(d){d.Hb(d.Wa().toLowerCase());return d}));c&&_.hl(b,a.fields);b.H().sort();return b},gL=function(a,b,c){if(b instanceof _.Af){b=BL(a,b);var d=_.hjc(b)}else if(b instanceof _.aG)d=b.V().sort().join(","),_.R(b,5,!1)&&(d+="|cachedOnly");else{if(b instanceof _.RH)return d=nvc(b),d+"|tdList";if(b instanceof _.fG)return d=
b.V().sort().join(","),b.H().length&&(d+="|"+lvc(b.H())),d+"|tdMap";throw Error("nf");}return 3===c?d:d+"|"+xvc(a,b.H(),2===c)},xvc=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(_.fc(e)).filter(function(h){return f.has(h)}).forEach(function(h){e.delete(h);f.delete(h)});f.size&&(d=d+" - "+_.OI({fields:[].concat(_.fc(f)),anonymous:a.anonymous}));e.size&&(d=d+" + "+_.OI({fields:[].concat(_.fc(e)),
anonymous:a.anonymous}));return d};wvc.prototype.equals=function(a,b,c){var d;c&&(d=3);return gL(this,a,d)===gL(this,b,d)};
var Csc=function(a){if(!a.V().every(function(b){return!_.Se(b)}))throw new _.Hc("Invalid ids for FindByIdsRequest");},zvc=function(a,b){if(_.kJ(b))throw new _.Hc("Did not expect a PeoplePredict request. Use peoplePredictQuery() for PeoplePredict requests. ");yvc(a,b)},yvc=function(a,b){var c;a.O||(c=_.MI(3));if(b.getId())throw new _.Hc("Use findByIds() for find by id queries.",c?c:_.MI(3));if(!b.xi()||0>=b.xi())throw new _.Hc("A positive limit is required on an ItemQueryRequest.",c?c:_.MI(3));_.re(b,
33);if(c=(c=b.Lc())&&ovc(c)){var d=b.H().length?b.H():a.fields;Avc(a,d,c)}if(_.jJ(b)){if(a.anonymous)throw new _.Hc("User must be authenticated for a Quick Access request.");if(!Bvc(a)&&20<b.xi())throw new _.Hc("Limit must be in the range [1, 20].");c=2===_.TJ(b);d=_.re(b,33).length;if(c&&1!==d||d&&!c)throw new _.Hc("A Team Drive Quick Access request must specify the Team Drive corpora and a single Team Drive id.");c=_.nj(_.vb(_.lj(_.vb(_.vb(_.vb(_.gI(_.vb(_.lj(_.gI(b.clone(),1),30),32),33),45),47),
74),75),48),6);d=new _.Af;if(!_.wj(c,d))throw new _.Hc("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: "+jsc(d,c));}else if(_.R(b,74,!1))throw new _.Hc("If is_quick_access_for_shared_files_request is set to true, is_quick_access_request must also be true.");if(_.lJ(b)){if(a.anonymous)throw new _.Hc("User must be authenticated for a DrivePriority request.");if(2===_.TJ(b))throw new _.Hc("Team Drive corpora is not valid for a Drive Priority request.");
a=_.vb(_.vb(_.vb(_.lj(_.gI(b.clone(),1),30),32),45),52);b=new _.Af;if(!_.wj(a,b))throw new _.Hc("Some fields specified are not valid for a Drive Priority request. Valid: field, request_descriptor, limit, corpora and is_drive_priority_request. Extra: "+jsc(b,a));}},Cvc=function(a,b){yvc(a,b);Avc(a,a.fields.slice(),b.H())},Dvc=function(a,b){if(!_.kJ(b))throw new _.Hc("Expected a PeoplePredict request.");yvc(a,b);if(a.anonymous)throw new _.Hc("User must be authenticated for a People Predict request.");
if(2===_.TJ(b))throw new _.Hc("Team Drive corpora is not valid for a People Predict request.");a=_.vb(_.vb(_.vb(_.lj(_.gI(b.clone(),1),30),32),45),49);b=new _.Af;if(!_.wj(a,b))throw new _.Hc("Some fields specified are not valid for a People Predict request. Valid: field, request_descriptor, limit, corpora and is_people_predict_request. Extra: "+jsc(b,a));},Avc=function(a,b,c){var d;a.O||(d=_.MI(3));if(!knc(b,c,_.Kgc)){var e=_.OI({fields:c,anonymous:a.anonymous}),f=_.OI({fields:b,anonymous:a.anonymous});
a=_.OI({fields:lnc(c,b),anonymous:a.anonymous});throw new _.Hc("Requested field was not previously specified. Needed "+e+", but had "+(f+". Missing: "+a+"."),d?d:_.MI(3));}},Bvc=function(a){return 200<=_.WJ(a.H)&&300>_.WJ(a.H)},Evc=function(a){var b=new Set;a=_.m(_.il(a));for(var c=a.next();!c.done;c=a.next())switch(_.yMa(c.value.Wa())){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("DRIVE_FORM")}return[].concat(_.fc(b))},Fvc=function(a){switch(_.WJ(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"}},Gvc=function(a){a=_.kl(a);return 1===a.length?a[0].Wa():null},Hvc=function(a){_.P.call(this);this.H=a};_.gg(Hvc,_.P);_.g=Hvc.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.XO=function(a){this.H.addCallback(function(b){b.XO(a)})};
_.g.send=function(a,b){this.H.addCallback(function(c){c.send(a,b)})};_.g.Ya=function(){this.cancel();Hvc.ub.Ya.call(this)};var Lnc=function(a){_.Qy.call(this);this.No=a;this.H=_.cf(this.No,"message",this.jsb,!1,this)};_.gg(Lnc,_.Qy);_.g=Lnc.prototype;_.g.Xf=null;_.g.send=function(a,b){var c=[];b=this.CAa(c,b);a={serviceName:a,payload:b,"--goog.messaging.PortChannel":!0};_.Hfc&&(a=(0,_.xi)(a));this.No.postMessage(a,c)};
_.g.jsb=function(a){a=a.ze;var b=a.data;if(_.Hfc)try{b=JSON.parse(b)}catch(e){return}if(_.Ea(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.mEa(a.ports||[],b),d.jHa),null!=b&&d.callback(b))}};
_.g.CAa=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)?b.map((0,_.L)(this.CAa,this,a)):b&&b.constructor==Object?_.Va(b,function(c,d){c=this.CAa(a,c);return"_port"==d?{type:"escaped",val:c}:c},this):b};
_.g.mEa=function(a,b){return Array.isArray(b)?b.map((0,_.L)(this.mEa,this,a)):b&&b.constructor==Object?b._port&&"real"==b._port.type?a[b._port.index]:_.Va(b,function(c,d){return this.mEa(a,"_port"==d?c.val:c)},this):b};_.g.Ya=function(){_.oi(this.H);"[object MessagePort]"==Object.prototype.toString.call(this.No)?this.No.close():"[object Worker]"==Object.prototype.toString.call(this.No)&&this.No.terminate();delete this.No;Lnc.ub.Ya.call(this)};
var Onc=function(a,b){if("*"==b)return new Hvc(_.ai(Error("of")));var c=new _.ri(50),d=_.Ob(_.ba,c),e=new _.Uh(d);_.Wh(e,d);c.start();_.cf(c,"tick",function(){var f=new MessageChannel,h=function(){f.port1.removeEventListener("message",h,!0);c.isDisposed()||e.callback(new Lnc(f.port1))};f.port1.start();f.port1.addEventListener("message",h,!0);a.postMessage({"--goog.messaging.PortChannel":!0},b,[f.port2])});return new Hvc(e)},Ivc=function(a){_.P.call(this);this.H=new _.Kcc(a);this.V={};this.O=_.Mcc(this.H,
"private");this.W=_.Mcc(this.H,"public");this.O.registerService("mics",(0,_.L)(this.Hpb,this),!0)};_.gg(Ivc,_.P);_.g=Ivc.prototype;_.g.KJb=0;_.g.Ya=function(){_.ba(this.H);delete this.H;delete this.W;delete this.O};_.g.send=function(a,b,c){var d=this.KJb++;this.V[d]=c;c={signature:d};c.data=b;this.W.send(a,c)};_.g.Hpb=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,_.L)(this.Gpb,this,b),!0)};
_.g.Gpb=function(a,b){a=a(b.data);var c=b.signature;_.Ph(a).then((0,_.L)(function(d){var e={};e.data=d;e.signature=c;this.O&&this.O.send("mics",e)},this))};var Jvc=function(a,b){_.P.call(this);this.W=b;this.started=!1;this.V=new _.Kcc(a);this.Ja(this.V);this.H=new Ivc(_.Mcc(this.V,"direct"));this.Ja(this.H)};_.K(Jvc,_.P);Jvc.prototype.registerService=function(a,b){this.H.registerService(a,function(c){return b(c)})};Jvc.prototype.send=function(a,b,c){this.H.send(a,b||{},function(d){return(c||_.cg)(d)})};
var Nnc=function(a,b){Jvc.call(this,a,b);this.O=new Ivc(_.Mcc(this.V,"passthrough"));this.Ja(this.O)};_.K(Nnc,Jvc);var DL=function(a,b,c){a.O.registerService(b,function(d){return c(d)})},EL=function(a,b,c,d){a.O.send(b,c||{},d?function(e){return d(e)}:_.cg)};Nnc.prototype.start=function(){this.started||(this.started=!0)};var Inc=[],Kvc=function(){_.Qy.call(this);this.H=null};_.K(Kvc,_.Qy);Kvc.prototype.send=function(a,b){_.d8a(this.H,a,b)};
var Pnc=function(){this.O=new Kvc;this.H=new Kvc;var a=this.O;a.H||(a.H=this.H);a=this.H;a.H||(a.H=this.O)},Lvc=function(a,b,c,d){this.clientId=a;this.method=b;this.args=c;this.requestId=d;this.H=void 0},Mvc=function(a,b){b=void 0===b?!1:b;void 0===a.H&&(a.H=b)&&Hnc(a.args);return{c:a.clientId,m:a.method,a:a.args,req:a.requestId,s:a.H}},Nvc=function(a){var b=new Lvc(a.c,a.m,a.a,a.req);b.H=a.s;return b},Ovc=function(a,b,c){this.data=b?void 0:a;this.error=b;this.O=c;this.H=void 0},Pvc=function(a,b){b=
void 0===b?!1:b;void 0===a.H&&a.data&&(a.H=b)&&Hnc(a.data);return{d:a.data,err:a.error&&b?a.error.Hc():a.error,uid:a.O,s:b}},Qvc=function(a){var b=a.s,c=a.err;c=void 0===c?void 0:b?new _.Gc(JSON.parse(a.err)):c;a=new Ovc(c?void 0:a.d,c,a.uid);c||(a.H=b);return a},Gnc=function(a,b){this.H=a;this.eE=b};Gnc.prototype.get=function(){for(var a={},b=0;b<this.H.length;b++)a[this.H[b]]=this.eE[b];return a};
Gnc.prototype.Hc=function(){for(var a={},b={},c=0;c<this.eE.length;c++){var d=this.eE[c],e=this.H[c];d instanceof Error?b[e]=_.vI(d).Hc():a[e]=d.Hc()}return{r:a,e:b}};Rvc=function(a,b){if(b){var c=[],d=[];_.Ta(a.r,function(e,f){c.push(f);d.push(new _.GJ(JSON.parse(e)))});_.Ta(a.e,function(e,f){c.push(f);e=new _.Gc(JSON.parse(e));d.push(_.NI(e))});return new Gnc(c,d)}return a};Mnc=function(a,b,c,d,e){this.channel=a;this.H=b;this.endpoint=c;this.V=d;this.O=e};
_.mK=function(a,b,c){this.response=a;this.Pe=void 0===b?0:b;this.O0=void 0===c?null:c};_.nK=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Pe=void 0===d?0:d};Svc=function(a){_.nK.call(this,a,void 0,void 0,void 0);this.f7a=new _.cn};_.K(Svc,_.nK);Tvc=function(a,b){this.response=a;this.pageToken=void 0===b?"":b};_.pK=function(a,b,c){this.response=a;this.Pe=void 0===b?0:b;this.O0=void 0===c?null:c};
_.oK=function(a,b,c){this.response=a;this.Pe=void 0===b?0:b;this.O0=void 0===c?null:c};_.qK=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Pe=void 0===d?0:d};Uvc={XXb:0,sYb:1,y3b:3,Xac:5,Qlb:6,0:"ACCOUNT",1:"APPS",3:"ITEMS",5:"USER_PREFS",6:"PEOPLE"};_.Vvc=function(a){_.J.call(this,a)};_.K(_.Vvc,_.J);_.Vvc.prototype.H=function(){return _.z(this,1)};var Wvc=function(a){_.J.call(this,a)};_.K(Wvc,_.J);Wvc.prototype.H=function(){return _.Q(this,1)};
Wvc.prototype.V=function(){return _.z(this,2)};_.FL=function(a){_.J.call(this,a)};_.K(_.FL,_.J);_.g=_.FL.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.x(this,2,a)};_.g.fua=function(){return _.z(this,3)};_.g.Bz=function(){return _.z(this,4)};_.g.waa=function(){return _.y(this,Wvc,6)};_.g.yvb=function(){return _.y(this,_.Vvc,7)};_.g.PYa=function(){return _.z(this,8)};
_.g.eua=function(){return _.Q(this,9)};_.GL=function(a){_.J.call(this,a)};_.K(_.GL,_.J);_.g=_.GL.prototype;_.g.getType=function(){return _.z(this,1)};_.g.getId=function(){return _.z(this,2)};_.g.Nb=function(a){return _.x(this,2,a)};_.g.getTitle=function(){return _.z(this,3)};_.g.setTitle=function(a){return _.x(this,3,a)};_.g.getSize=function(){return _.z(this,5)};_.g.setSize=function(a){return _.x(this,5,a)};_.g.Rcb=function(){return _.z(this,6)};_.Xvc=function(a,b){return _.x(a,6,b)};
_.GL.prototype.Bf=function(){return _.z(this,8)};_.GL.prototype.kl=function(a){return _.x(this,8,a)};_.GL.prototype.H=function(){return _.Q(this,9)};_.WI=function(a){_.J.call(this,a)};_.K(_.WI,_.J);_.WI.prototype.Jh=function(){return _.z(this,1)};_.WI.prototype.re=function(){return _.y(this,_.Lf,3)};_.gJ=function(a){_.J.call(this,a)};_.K(_.gJ,_.J);_.gJ.prototype.Jh=function(){return _.z(this,1)};_.gJ.prototype.re=function(){return _.y(this,_.Lf,2)};_.hJ=function(a){_.J.call(this,a)};_.K(_.hJ,_.J);
_.hJ.prototype.Jh=function(){return _.z(this,1)};_.hJ.prototype.re=function(){return _.y(this,_.Lf,2)};_.yJ=function(a){_.J.call(this,a)};_.K(_.yJ,_.J);_.yJ.prototype.Jh=function(){return _.z(this,1)};_.yJ.prototype.re=function(){return _.y(this,_.Lf,4)};var Yvc=function(a){_.J.call(this,a)};_.K(Yvc,_.J);Zvc=function(a,b){return _.x(a,1,b)};_.XI=function(a){_.J.call(this,a)};_.K(_.XI,_.J);_.XI.prototype.getId=function(){return _.z(this,1)};_.XI.prototype.Nb=function(a){return _.x(this,1,a)};
_.mJ=function(a){_.J.call(this,a)};_.K(_.mJ,_.J);_.mJ.prototype.getId=function(){return _.z(this,1)};_.mJ.prototype.Nb=function(a){return _.x(this,1,a)};_.Wgc=function(a){_.J.call(this,a)};_.K(_.Wgc,_.J);_.uJ=function(a){_.J.call(this,a)};_.K(_.uJ,_.J);_.uJ.prototype.re=function(){return _.y(this,_.Lf,1)};var $vc=function(){var a=new _.uJ,b=_.Mf(new _.Lf,301);return _.G(a,1,b)};_.uJ.prototype.uc=function(){return _.z(this,3)};_.ZI=function(a){_.J.call(this,a)};_.K(_.ZI,_.J);
_.ZI.prototype.qc=function(){return _.z(this,1)};_.ZI.prototype.re=function(){return _.y(this,_.Lf,3)};_.iJ=function(a){_.J.call(this,a)};_.K(_.iJ,_.J);_.g=_.iJ.prototype;_.g.qc=function(){return _.z(this,1)};_.g.Df=function(){return _.z(this,2)};_.g.getType=function(){return _.z(this,3)};_.g.Wa=function(){return _.z(this,4)};_.g.Hb=function(a){return _.x(this,4,a)};_.g.Di=function(){return _.vb(this,4)};_.g.Ng=function(){return _.ej(this,4)};_.g.re=function(){return _.y(this,_.Lf,7)};
_.ihc=function(a){_.J.call(this,a)};_.K(_.ihc,_.J);_.ihc.prototype.uc=function(){return _.z(this,1)};_.qJ=function(a){_.J.call(this,a)};_.K(_.qJ,_.J);_.qJ.prototype.qc=function(){return _.z(this,1)};_.qJ.prototype.re=function(){return _.y(this,_.Lf,2)};_.qJ.prototype.xi=function(){return _.xj(this,3,1E3)};_.qJ.prototype.cj=function(a){return _.x(this,3,a)};var awc=function(a,b,c){_.qi.call(this);this.Ba=a;this.ma=b;this.O=!0;this.ha=this.H=this.timeout=this.W=null;this.V=!1;this.ka=c};_.K(awc,_.qi);
awc.prototype.UB=function(){return this.O};awc.prototype.YQ=function(){var a=this;if(this.W)return this.W;var b=_.Sh();this.W=b.promise;_.n.setTimeout(function(){a.W=null},5E3);bwc(this,b);return b.promise};awc.prototype.ta=function(){!0===this.O&&(this.log("Became unauthenticated."),this.O=!1,this.V=!0,cwc(this))};awc.prototype.wa=function(){!1===this.O&&(this.log("Became authenticated."),this.O=!0,this.H=null,this.V=!1,this.timeout&&(_.n.clearTimeout(this.timeout),this.timeout=null),this.dispatchEvent(new Fsc("fb")))};
var dwc=function(a,b){a.ha=b},cwc=function(a){a.H||(a.H=new _.Wjc(5E3),a.timeout=_.n.setTimeout(function(){return ewc(a)},a.H.Wa()))},ewc=function(a){bwc(a);a.H&&(_.ZH(a.H),a.timeout=_.n.setTimeout(function(){return ewc(a)},a.H.Wa()))},bwc=function(a,b){var c=_.Ph();a.ha&&(c=a.ha());c.then(function(){return fwc(a,b)})},fwc=function(a,b){a.log("Checking authentication state.");var c=a.Ba.then(function(d){return d.Qe(new _.jhc)});b?c.then(function(){b.resolve(Zvc(new Yvc,1))},function(d){var e=_.xd(d).tg;
d=0;_.Xfc(e)?(a.log("Checked authentication state: unauthenticated."),d=2):(a.log("Checked authentication state: error occurred."),_.Eo(e),_.x(e,21,"Checked authentication state: error occurred."),a.ka(e));e=new Yvc;Zvc(e,d);b.resolve(e)}):c.then(null,function(d){d=_.xd(d);_.Xfc(d.tg)&&a.V&&(a.dispatchEvent(new Fsc("gb")),a.V=!1)})};awc.prototype.log=function(a){this.ma.info("drive.ds.sync.auth.StateManager",a)};_.khc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};
_.$gc=function(a){this.H=a;this.type=1};_.ahc=function(a){this.H=a;this.type=0};_.hhc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};gwc=function(a){return _.Aj(a,_.nI,3,_.oI)||_.Aj(a,_.EJ,4,_.oI)||_.Aj(a,_.tK,5,_.oI)||_.Aj(a,_.BJ,6,_.oI)||_.Aj(a,_.aJ,7,_.oI)||_.Aj(a,_.UI,8,_.oI)||_.Aj(a,_.YI,9,_.oI)||_.Aj(a,_.xI,10,_.oI)};hwc=function(a){_.J.call(this,a)};_.K(hwc,_.J);_.g=hwc.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};
_.g.fA=function(){return _.z(this,3)};_.g.He=function(){return _.z(this,4)};_.g.Bi=function(a){return _.x(this,4,a)};_.g.Oma=function(){return _.ej(this,4)};var iwc=function(a){this.Xf=a;this.H=new Map;this.O=this.Xf.W};
iwc.prototype.create=function(a,b){if(0!=Trc(b)){var c=this.Xf.H(106001);if(c){var d=Trc(b),e=bL(c);_.x(e,2,d);d=bL(c);e=null;if(b instanceof _.nG||b instanceof _.aG||b instanceof _.Af||b instanceof _.oJ||b instanceof _.nD||b instanceof _.fG||b instanceof _.RH||b instanceof _.PH||b instanceof _.gG||b instanceof _.bA)e=b.re();e=e&&_.R(e,2,!1);_.x(d,7,"boolean"==typeof e?e:void 0);d=bL(c);b=b instanceof _.Af?0<_.kl(b).length:void 0;_.x(d,8,b);this.H.set(a,c)}}};
var jwc=function(a,b,c){if(a=a.H.get(b))a=bL(a),_.x(a,5,c)},kwc=function(a,b,c){(a=a.H.get(b))&&_.Q(bL(a),8)&&(a=bL(a),_.x(a,9,c))},lwc=function(a,b,c,d,e){var f=a.H.get(b);f&&(bL(f).Dc(c),bL(f).ti(d),null!=e&&(c=bL(f),_.x(c,6,e)),f.Bj(),a.H.delete(b))},mwc=function(a,b,c){var d=a.H.get(b);if(d){var e=a.O.Cb(c);c=Urc(c);if(1==e||2==c)e=_.iK(_.Kfc,c),d=bL(d),d=3==e||8==e?!_.Q(d,5):0!=e?_.igc.has(e):null,lwc(a,b,1,e,d)}},nwc=function(a,b,c){var d=a.O.Cb(c);d=_.iK(_.Jfc,d||22);var e=Urc(c);e=_.iK(_.Kfc,
e);lwc(a,b,d,e,"undefined"!=typeof _.mK&&c instanceof _.mK||"undefined"!=typeof _.oK&&c instanceof _.oK||"undefined"!=typeof _.pK&&c instanceof _.pK?c.O0:null)},HL=function(a,b,c){c=void 0===c?3:c;var d=a.H.get(b);d&&(bL(d).Dc(c),d.Bj(),a.H.delete(b))},owc=[2,4],IL=function(a){_.J.call(this,a,-1,owc)};_.K(IL,_.J);IL.prototype.Cb=function(){return _.z(this,1)};IL.prototype.Dc=function(a){return _.x(this,1,a)};IL.prototype.Yj=function(){return _.z(this,3)};
var pwc=[4,9],qwc=function(a){_.J.call(this,a,-1,pwc)};_.K(qwc,_.J);_.g=qwc.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.sZa=function(){return _.z(this,2)};_.g.fPa=function(){return _.z(this,3)};_.g.pwb=function(){return _.yb(this,_.qI,4)};var rwc=[2],JL=function(a){_.J.call(this,a,-1,rwc)};_.K(JL,_.J);JL.prototype.getName=function(){return _.z(this,1)};JL.prototype.$c=function(a){return _.x(this,1,a)};JL.prototype.H=function(){return _.yb(this,hL,2)};
var swc=function(a,b){_.mj(a,2,b)};JL.prototype.qc=function(){return _.z(this,3)};var twc=function(a,b){return _.x(a,3,b)},uwc=[2],KL=function(a){_.J.call(this,a,-1,uwc)};_.K(KL,_.J);KL.prototype.Cb=function(){return _.z(this,1)};KL.prototype.Dc=function(a){return _.x(this,1,a)};KL.prototype.H=function(){return _.yb(this,JL,2)};var vwc=function(a,b){return _.mj(a,2,b)};KL.prototype.Yj=function(){return _.z(this,3)};var wwc=function(a){_.J.call(this,a)};_.K(wwc,_.J);_.g=wwc.prototype;
_.g.qc=function(){return _.z(this,1)};_.g.Cb=function(){return _.z(this,2)};_.g.Dc=function(a){return _.x(this,2,a)};_.g.getError=function(){return _.y(this,_.Gc,3)};_.g.Re=function(a){return _.G(this,3,a)};_.g.eo=function(){return _.ej(this,3)};var xwc={Eac:0,c6b:1,f6b:2,d6b:4,F3b:5,M0b:6,M3b:7,t6b:8},ywc=function(a){_.J.call(this,a)};_.K(ywc,_.J);ywc.prototype.getUrl=function(){return _.z(this,1)};var LL=function(a){_.J.call(this,a)};_.K(LL,_.J);var zwc=function(a,b){return _.x(a,1,b)};
LL.prototype.getName=function(){return _.z(this,2)};LL.prototype.$c=function(a){return _.x(this,2,a)};LL.prototype.getEmail=function(){return _.z(this,3)};var Awc=function(a,b){return _.x(a,3,b)};LL.prototype.xq=function(){return _.ej(this,3)};var Bwc=[1],Cwc=function(a){_.J.call(this,a,-1,Bwc)};_.K(Cwc,_.J);var Dwc=function(a,b){return _.mj(a,1,b)},Ewc=[2],ML=function(a){_.J.call(this,a,-1,Ewc)};_.K(ML,_.J);ML.prototype.Cb=function(){return _.z(this,1)};
ML.prototype.Dc=function(a){return _.x(this,1,a)};ML.prototype.Zk=function(){return _.yb(this,_.dI,2)};var Fwc=function(a,b){return _.mj(a,2,b)};ML.prototype.Yj=function(){return _.z(this,3)};var Gwc=function(a,b){this.O=a|0;this.H=b|0};Gwc.prototype.equals=function(a){return this===a?!0:a instanceof Gwc?this.O===a.O&&this.H===a.H:!1};Gwc.prototype.Ac=function(){return 31*this.O+17*this.H|0};
var Hwc=function(a,b){return new Gwc(a,b)},Iwc=function(a,b){b=~b;a?a=~a+1:b+=1;return Hwc(a,b)},Jwc=function(a){var b="-"===a[0];a=a.slice(b?3:2);return(b?Iwc:Hwc)(parseInt(a.slice(-8),16),parseInt(a.slice(-16,-8)||"",16))},Kwc=function(){this.H=this.W=this.O=this.V=null},Lwc=[1],Mwc=function(a){_.J.call(this,a,-1,Lwc)};_.K(Mwc,_.J);
var Nwc=function(a,b){return _.kj(a,1,b)},Owc=function(a){this.W=a;this.O=new Map;this.V=new Set;this.enabled=!0;this.error=null;this.started=!1},NL=function(a,b,c){if(a.started)throw Error("xf");c={Lo: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)}},OL=function(a,b){if(!a.started)throw Error("yf");if(!a.enabled)throw Error("zf`"+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.Lo.delete(b);if(0===e.Lo.size)try{e.callback()}catch(f){throw a.enabled=!1,a.error=f?_.NI(f):null,f;}}}};Owc.prototype.H=function(a){return this.V.has(a)};Owc.prototype.start=function(){this.started=!0};Owc.prototype.log=function(a){this.W.info("drive.ds.MilestoneManager",a)};
var Pwc=function(a,b,c){this.id=a;this.O=b;this.H=c},Qwc=function(a,b){return new Pwc((a?a:b).getId(),a,b)},PL=function(a){return new Pwc(a.getId(),null,a)},Rwc=function(a,b){this.Ct=a;this.Uv=b;this.ND=!0;this.l9=!1;this.Pe=0},QL=function(a,b){(a.ND=b)||a.NJ()};_.g=Rwc.prototype;_.g.sma=function(a,b){if(5===this.XE(a))throw Error("Af");for(var c=[],d=_.m(this.Ey()),e=d.next();!e.done;e=d.next())e=e.value,AL(this.Ct,a,e.getItem())&&c.push(e);this.Uv.sort(a,c,b);return c};_.g.getSize=function(){return this.Ey().length};
_.g.lk=function(a,b){a=this.sma(a,b);a=goc(a);b=new _.eI;b.iB(a);b.Dc(this.gO()?6:1);return b};_.g.update=function(a){var b=this.As(a.O),c=this.As(a.H);if(!b&&!c)return!1;b&&this.DJ(a.O);c&&this.qS(a.H);return!0};_.g.XE=function(a){return this.ND&&this.l9?evc(a)?1:5:5};_.g.aY=function(){this.l9=!0};_.g.As=function(a){return!!a&&this.ND};_.g.ti=function(a){this.Pe=a};_.g.We=function(){return this.Pe};
var RL=function(a,b,c,d,e,f){f=void 0===f?"":f;Rwc.call(this,a,b);var h=this;this.ha=c;this.nextPageToken=f;this.Dd=[];this.O={};this.request=BL(c,d,!0);this.W=gL(c,d);this.H=!e;Swc(this,e);this.V=function(k,l){return h.Uv.compare(h.request,k,l)}};_.K(RL,Rwc);_.g=RL.prototype;_.g.jd=function(){return this.request};_.g.pN=function(){return this.W};
_.g.qS=function(a){var b=this.O[a.getId()];b&&this.DJ(b);Zmc(this.Dd,a,this.V);this.O[a.getId()]=a;a.count++;this.Dd.length>this.request.xi()&&(this.DJ(_.ka(this.Dd)),this.H=!1)};_.g.DJ=function(a){var b=this.Dd,c=_.Ia(b,a,this.V);0<=c&&_.wa(b,c);_.bb(this.O,a.getId());a.count--};_.g.NJ=function(){this.Dd.forEach(function(a){a.count--});this.Dd=[];this.O={}};_.g.Ey=function(){return this.Dd};
_.g.XE=function(a){var b;if(b=this.ha.equals(this.request,a,!0))a=a.H(),b=this.request.H(),b=knc(b,a,_.Kgc);return b?this.H?1:6:5};_.g.sma=function(a,b){if(5===this.XE(a))throw Error("Af");b=b?Math.min(b,this.Dd.length):this.Dd.length;return _.Da(this.Dd,0,b)};_.g.As=function(a){if(!Rwc.prototype.As.call(this,a)||!AL(this.Ct,this.request,a.getItem()))return!1;if(this.H||_.R(this.request,48,!1))return!0;var b=_.ka(this.Dd);return!!b&&0>=this.V(a,b)};_.g.gO=function(){return this.H?!1:!0};
_.g.getType=function(){return"CacheHintCorpusCache"};_.g.$k=function(a,b){var c=this,d=_.ka(this.Dd);!this.H&&d&&_.na(a,function(e){return e.getId()===d.getId()})&&(b?(this.DJ(d),Swc(this,_.ka(a))):this.H=!0);_.Ma(a,function(e){c.update(PL(e))})};var Swc=function(a,b){b&&AL(a.Ct,a.request,b.getItem())&&a.qS(b)};RL.prototype.Ky=function(){return this.nextPageToken};var SL=function(a,b){Rwc.call(this,a,b);this.Dd=new Map};_.K(SL,Rwc);SL.prototype.qS=function(a){this.Dd.set(a.getId(),a);a.count++};
SL.prototype.DJ=function(a){this.Dd.delete(a.getId());a.count--};SL.prototype.NJ=function(){for(var a=_.m(this.Dd.values()),b=a.next();!b.done;b=a.next())b.value.count--;this.Dd=new Map};SL.prototype.Ey=function(){return Array.from(this.Dd.values())};var Twc=function(a,b){SL.call(this,a,b);this.aY()};_.K(Twc,SL);_.g=Twc.prototype;
_.g.XE=function(a){var b=this,c=SL.prototype.XE.call(this,a);if(5===c)return c;if(0<_.re(a,33).length)return 5;a=_.kl(a);return 0<a.length?a.every(function(d){return(d=b.Dd.get(d.Wa()))&&!d.getItem().uc()&&d.H})?1:5:5};_.g.As=function(a){return SL.prototype.As.call(this,a)&&!(null===a||void 0===a?0:a.getItem().uc())};_.g.sma=function(a,b){for(var c=[],d=_.m(this.Ey()),e=d.next();!e.done;e=d.next())e=e.value,AL(this.Ct,a,e.getItem())&&c.push(e);this.Uv.sort(a,c,b);return c};_.g.jd=function(){return new _.Af};
_.g.pN=function(){return null};_.g.getType=function(){return"MyDriveCorpusCache"};_.g.gO=function(){return!1};var Uwc=function(a){return[].concat(_.fc(a.Dd.values())).filter(function(b){return b.H}).map(function(b){return b.getId()})},TL=function(a,b,c,d){SL.call(this,a,b);var e=this;this.H=d;NL(c,["aU7Ts","BNEDtc"],function(){return e.aY()})};_.K(TL,SL);
TL.prototype.XE=function(a){var b=this,c=SL.prototype.XE.call(this,a);if(5==c)return c;if(0<_.re(a,33).length)return 5;a=_.kl(a);return 0<a.length&&!a.every(function(d){d=b.Dd.get(d.Wa());return null!=d&&!d.getItem().uc()&&unc(d.getItem())&&!_.Q(d.getItem(),108)})?5:1};TL.prototype.As=function(a){return SL.prototype.As.call(this,a)&&Vwc(this,a.getItem())};var Vwc=function(a,b){if(_.Q(b,31)||!a.l9)return!0;var c=a.H();return b.vk().some(function(d){var e=a.Dd.get(d);return d==c||null!=e&&unc(e.getItem())})};
_.g=TL.prototype;_.g.aY=function(){SL.prototype.aY.call(this);for(var a=_.m(this.Dd),b=a.next();!b.done;b=a.next()){var c=_.m(b.value);b=c.next().value;c=c.next().value;Vwc(this,c.getItem())||(c.count--,this.Dd.delete(b))}};_.g.jd=function(){return new _.Af};_.g.pN=function(){return null};_.g.getType=function(){return"SubscribedCorpusCache"};_.g.gO=function(){return!1};
var Wwc=/^[\x00-\x7F]*$/,UL=function(){this.H=[this.W,this.O,this.V,this.ha,this.IIb,this.EIb,this.uIb,this.xIb,this.wIb,this.BIb,this.sIb,this.vIb,this.CIb,this.DIb,this.FIb,this.tIb,this.HIb,this.GIb,this.pIb,this.zIb,this.yIb,this.qIb,this.AIb,this.JIb,this.rIb];this.rootId=""};UL.prototype.qz=function(a){this.rootId=a||""};
var evc=function(a){return Xwc(a)&&0==_.re(a,40).length&&void 0==_.z(a,41)},Xwc=function(a){var b=!0;_.yb(a,_.Cf,13).forEach(function(d){"me"!=d.Wa()&&(b=!1)});var c=a.Lc();c=!c||5!=c.getType();return 0==_.yb(a,_.al,5).length&&0==_.yb(a,_.Cf,14).length&&0==_.yb(a,_.Cf,15).length&&!_.ej(a,58)&&!_.Q(a,18)&&!_.Q(a,34)&&0==_.yb(a,_.Sk,35).length&&0==_.yb(a,_.Sk,38).length&&c&&b&&0==_.re(a,39).length&&!_.z(a,42)&&0==_.yb(a,_.Rk,44).length&&!_.jJ(a)&&!_.kJ(a)&&!_.lJ(a)&&0==_.yb(a,_.Tk,57).length&&Ywc(a)&&
!_.y(a,_.zpa,59)&&null==_.Q(a,60)&&0==_.yb(a,_.Cf,68).length&&0==_.yb(a,_.Cf,67).length&&null==_.Q(a,69)&&!_.Q(a,73)},Ywc=function(a){return _.yb(a,_.dl,4).every(function(b){b=b.Wa();return!b||!b.includes("*")&&Wwc.test(b)})};UL.prototype.e$=function(a,b){var c=this;return b.filter(function(d){return AL(c,a,d)})};var AL=function(a,b,c){return!!c&&Zwc(a,c)&&a.H.every(function(d){return d.call(a,b,c)})},Zwc=function(a,b){return b.getId()!=a.rootId&&!zL(b)};
UL.prototype.W=function(a,b){var c=!0,d=_.yb(a,_.dl,4);if(!Ywc(a))return!0;for(a=0;a<d.length&&c;a++){var e=d[a];if(e.Wa()){var f=_.R(e,3,!1),h=(b.getTitle()||"").toLowerCase(),k=e.Wa().toLowerCase();if(2==_.z(e,1))h=k==h,c=c&&(f?!h:h);else{e=[];if(0<=k.indexOf("-"))for(var l=RegExp("\\w*-[\\w-]*"),p=_.m(k.match(l)||[]),q=p.next();!q.done;q=p.next())e.push(q.value),k=k.replace(l,"");e.push.apply(e,_.fc(k.split(RegExp("\\b"))));for(k=0;k<e.length&&c;k++)l=e[k],p=!0,0!=(0,_.wg)(l).length&&(0==l.replace(/\./g,
"").length&&(p=!1),l=!!h.match(p?new RegExp("(^|[^\\w])"+_.eh(l)+"($|[^\\w])|(^|[ ])"+_.eh(l)):new RegExp(_.eh(l))),c=c&&(f?!l:l))}}}return c};
UL.prototype.O=function(a,b){var c=_.il(a),d=0,e=0,f=!1,h=!1;c=_.m(c);for(var k=c.next();!k.done;k=c.next())if(k=k.value,k.Wa()){var l=b.getMimeType()||"";if(_.Q(k,4)){var p=b.yf();l=p&&_.z(p,3)||""}p=_.R(k,2,!1);var q=k.Wa();_.JJ(a)&&(q=q.toLowerCase(),l=l.toLowerCase());k=0===_.ij(k,3,0)?q===l:l.includes(q);p?(e++,h=h||k):(d++,f=f||k)}return d&&!f||e&&h?!1:!0};
UL.prototype.V=function(a,b){var c=!0;a=_.yb(a,_.Vk,7);a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b.Oq();c=c&&$wc(e,d)}return c};UL.prototype.ha=function(a,b){var c=!0;a=_.yb(a,_.Vk,8);a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b.Fz();c=c&&$wc(e,d)}return c};var $wc=function(a,b){if(null!=_.z(b,2))switch(_.z(b,1)){case 1:return a<=_.z(b,2);case 2:return a<_.z(b,2);case 3:return a==_.z(b,2);case 4:return a>_.z(b,2);case 5:return a>=_.z(b,2);default:return!1}return!0};
_.g=UL.prototype;_.g.IIb=function(a,b){var c=a.Qh();a=_.TJ(a);return null==c||c==!!b.Qh()&&(!c||1==b.Cp()||!(!a||2!=a&&3!=a))};_.g.EIb=function(a,b){return null==_.Q(a,10)||_.Q(a,10)==!!b.oB()};_.g.uIb=function(a,b){return null==_.Q(a,11)||_.Q(a,11)==!!_.Q(b,6)};_.g.xIb=function(a,b){a=_.kl(a);a=_.m(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.Wa()){var d="root"==c.Wa()&&this.rootId||c.Wa();d=b.vk().includes(d);if(_.R(c,2,!1)?d:!d)return!1}return!0};
_.g.wIb=function(a,b){a=_.yb(a,_.Cf,13);a=_.m(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,"me"==c.Wa()){var d=1==b.Cp();if(_.R(c,2,!1)?d:!d)return!1}return!0};_.g.BIb=function(a,b){return null==_.Q(a,16)||(_.Q(a,16)?null!=b.Oy():!0)};_.g.sIb=function(a,b){var c=_.Q(a,17);a=_.TJ(a);return null==c||c==!!b.kJ()&&(!c||1==b.Cp()||!(!a||2!=a&&3!=a))};_.g.vIb=function(a,b){b=Bnc(b);return null==_.Q(a,19)||_.Q(a,19)==!!_.xk(b)};
_.g.CIb=function(a,b){a=_.yb(a,_.SJ,25);if(0==a.length)return!0;var c=new Set(_.re(b,56));return a.every(function(d){return c.has(d.Wa())})};_.g.DIb=function(a,b){if(0==a.lA().length)return!0;if(0==b.lA().length)return!1;var c=new Set(b.lA().map(function(d){return d.$R()}));return a.lA().some(function(d){return c.has(d.$R())})};_.g.FIb=function(a,b){a=_.re(a,33);return!a.length||a.includes(b.uc()||"")};_.g.tIb=function(a,b){a=_.yb(a,_.$k,37);if(0==a.length)return!0;var c=new Set(_.re(b,50));return a.every(function(d){return c.has(d.Wa())})};
_.g.HIb=function(a,b){return _.z(a,41)?(b=_.y(b,_.NJ,86),null!=b&&_.z(a,41)==_.z(b,3)):!0};_.g.GIb=function(a,b){if(_.re(a,40).length){if(b=_.y(b,_.NJ,86)){var c=new Set(_.re(b,2));return _.re(a,40).some(function(d){return c.has(d)})}return!1}return!0};_.g.pIb=function(a,b){var c=_.TJ(a);return 1==c?(b=_.Q(b,31),!!_.kl(a).length||!!_.yb(a,_.Sk,35).length||1==_.Q(a,18)||_.jJ(a)||_.kJ(a)||_.lJ(a)||!!a.Yq()||null==b||b):2==c?!!b.uc():!0};
_.g.zIb=function(a,b){return _.jJ(a)?!_.ej(b,100)||b.Qh()?!1:_.R(a,74,!1)?!!_.Q(_.Ek(b),4):!!_.Q(_.Ek(b),3):!0};_.g.yIb=function(a,b){return _.kJ(a)?!!_.Fk(b).length&&!b.Qh():!0};_.g.qIb=function(a,b){return _.lJ(a)?!!_.Gk(b).length&&!b.Qh():!0};_.g.AIb=function(a,b){return _.ej(a,50)?_.R(a,50,!1)?_.ej(b,101)&&0!==_.z(b,101):!_.ej(b,101):!0};_.g.JIb=function(a,b){a=a.Yq();return!a||_.re(b,120).includes(a)};
_.g.rIb=function(a,b){b=_.y(b,_.LJ,138);return null==_.Q(a,65)||null==b?!0:_.Q(a,65)==(2==_.z(b,1))};var VL=function(a,b,c,d){d=void 0===d?5E3:d;SL.call(this,a,b);this.teamDriveId=c;this.limit=d};_.K(VL,SL);_.g=VL.prototype;
_.g.XE=function(a){var b=this,c=SL.prototype.XE.call(this,a);if(5==c)return c;c=_.kl(a);var d=c.every(function(e){var f=e.Wa();return(null!=b.Dd.get(f)||b.teamDriveId==f)&&!_.R(e,2,!1)});if(0<c.length&&d)return 1;a=_.re(a,33);return 0!=a.length&&a.includes(this.teamDriveId)?1:5};_.g.As=function(a){return SL.prototype.As.call(this,a)&&!!a&&a.getItem().uc()==this.teamDriveId&&!zL(a.getItem())};_.g.gO=function(){return!1};_.g.jd=function(){var a=new _.Af;_.ml(a,[this.teamDriveId]);_.nl(a,2);return a};
_.g.pN=function(){return null};_.g.uc=function(){return this.teamDriveId};_.g.getType=function(){return"TeamDriveCorpusCache: "+this.teamDriveId};var axc=function(a,b){this.W=a;this.ka=b;this.ha=[];this.O=this.H=null;this.V=[];a=new _.Af;_.x(a,48,!0);b=new _.vd;_.ud(b,11);_.td(b,2);_.Bf(a,b);this.ma=BL(this.W,a,!0)};
axc.prototype.add=function(a){a instanceof TL?this.H=a:a instanceof Twc?this.O=a:a instanceof RL?(this.log("Adding new cache hint for "+gL(this.W,a.jd(),2)),this.ha.push(a)):a instanceof VL&&this.V.push(a)};
axc.prototype.remove=function(a){var b=this;if(a instanceof TL)this.H&&(QL(this.H,!1),this.H=null);else if(a instanceof Twc)this.O&&(QL(this.O,!1),this.O=null);else if(a instanceof RL){var c=_.ma(this.ha,function(d){return b.W.equals(d.jd(),a.jd())});0<=c&&(QL(this.ha[c],!1),_.wa(this.ha,c))}else a instanceof VL&&(c=_.ma(this.V,function(d){return b.W.equals(d.jd(),a.jd())}),0<=c&&(QL(this.V[c],!1),_.wa(this.V,c)))};
var bxc=function(a){var b=[];a.H&&b.push(a.H);a.O&&b.push(a.O);_.Ca(b,_.Ba(a.ha));_.Ca(b,_.Ba(a.V));return b},cxc=function(a,b){b=void 0===b?!1:b;return a.ha.filter(function(c){return a.H&&b?(c=c.jd().clone(),_.vb(c,32),_.nj(c,26),!_.wj(a.ma,c)):!0})};axc.prototype.SW=function(){return _.Ba(this.V)};var dxc=function(a,b){return _.tg(a.V,function(c){return c.uc()===b})},exc=function(a,b){return cxc(a).find(function(c){return a.W.equals(c.jd(),BL(a.W,b,!0))})};
axc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.CorpusCacheList",a,void 0===b?"info":b)};var fxc=function(a,b){_.hi.call(this,"tb");this.ids=a;this.error=b};_.K(fxc,_.hi);fxc.prototype.getError=function(){return this.error};fxc.prototype.H=function(){return this.ids};var gxc=function(a){_.hi.call(this,"ub");this.people=a};_.K(gxc,_.hi);gxc.prototype.getPeople=function(){return this.people};var hxc=function(a){_.hi.call(this,"vb");this.people=a};_.K(hxc,_.hi);
hxc.prototype.getPeople=function(){return this.people};var ixc=function(a,b,c){c=void 0===c?0:c;this.person=a;this.Pe=c;this.O=!1;this.H=new Set(b?[b]:[]);6===c&&(this.O=!0)};ixc.prototype.We=function(){return this.Pe};
var jxc=function(a){return 0===a.Pe?1:2===a.Pe||(1===a.Pe||4===a.Pe)&&(a.person.xq()||a.O)?3:2},kxc=function(a,b,c){if(_.z(b,1)!==_.z(a.person.clone(),1))return!1;6===c&&(a.O=!0);var d=jxc(a),e=a.We();if(4===c?0:1===e?1===c:5===e||6===e||2===e||4===e?0!==c&&e!==c:1)return b=Awc(b.clone(),a.getEmail(b)),e=!_.wj(a.person,b),a.person=b,a.Pe=c,e||d!==jxc(a);if(4===c)return a.Pe=c,_.x(a.person,6,_.z(b,6)),d!==jxc(a);c=b;return!a.person.getEmail()&&c.getEmail()?(Awc(a.person,a.getEmail(b)),!0):!1};
ixc.prototype.getEmail=function(a){var b=this.person.getEmail();a=a.getEmail();return!a&&b&&0!==b.length?b:a};var mxc=function(a,b,c,d){var e;_.qi.call(this);var f=this;this.O=a;this.V=b;this.W=c;this.ka=d;this.H=[];this.ha=(null===(e=_.IJ(a))||void 0===e?0:_.R(e,20,!1))?450:50;this.ma=new _.kI(function(){return lxc(f)},100,this)};_.K(mxc,_.qi);mxc.prototype.nh=function(a){a&&_.mI(this.O)&&(this.H.includes(a)||this.H.push(a),this.ma.oe())};
var lxc=function(a){a.ka.then(function(){for(;a.H.length;){var b=a.H.splice(0,a.ha);a.log("Querying for people. Size: "+b.length+". Pending: "+(a.H.length+" "+b));a.sendRequest(b)}})};mxc.prototype.sendRequest=function(a){var b=this;return this.W.then(function(c){var d=c.Qe;var e=new _.tJ;e=_.kj(e,1,a);return d.call(c,e)}).then(function(c){c=_.yb(c,LL,1);b.dispatchEvent(new gxc(c))},function(c){c=_.xd(c);b.dispatchEvent(new fxc(a,c))})};
mxc.prototype.log=function(a){this.V.info("drive.ds.sync.query.PeopleQueryRunner",a)};
var pxc=function(a,b,c,d,e){_.qi.call(this);var f=this;this.H=new Map;this.O=new Set;this.V=new Map;this.Oc=new _.nf(this);this.Ja(this.Oc);this.ka=b;this.ha=d;this.ta=_.xj(_.y(a,Kqc,85)||new Kqc,1,864E5);this.W=new mxc(a,b,c,e);this.ma=new _.BD(function(){var h,k=null===(h=f.ha)||void 0===h?void 0:dL(h,106015);if(k){h=_.y(_.hK(k),qrc,11);if(!h){h=new qrc;var l=_.hK(k);_.G(l,11,h)}h=_.x(h,1,f.H.size);_.x(h,2,f.O.size);k.Bj()}},500,this);this.Oc.listen(this.W,"ub",function(h){h=h.getPeople();nxc(f,
h,1);f.ma.oe()});this.Oc.listen(this.W,"tb",function(h){oxc(f,h)})};_.K(pxc,_.qi);pxc.prototype.get=function(a){var b=this.H.get(a);return b?(qxc(this,b)&&rxc(this,a),b):null};var rxc=function(a,b){if(!b)return Promise.resolve();if(a.V.has(b))return a.V.get(b).promise;a.W.nh(b);var c=new _.cn;a.V.set(b,c);return c.promise};pxc.prototype.Sb=function(a){var b=this;return sxc(this,a)?Promise.resolve(this.H.get(a)):rxc(this,a).then(function(){return b.H.get(a)})};
pxc.prototype.lc=function(){return 0===this.H.size};pxc.prototype.clear=function(){this.log("Clearing the PeopleCache.");this.H.clear();this.O.clear()};
var txc=function(a){return[].concat(_.fc(a.H.values())).filter(function(b){return 3===jxc(b)&&4!==b.We()}).map(function(b){return b.person.clone()})},uxc=function(a,b){return(a=a.H.get(b))?[].concat(_.fc(a.H)):[]},vxc=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(_.fc(e.H)).length&&(a.H.delete(d),a.O.delete(d)))}},nxc=function(a,b,c){if(![1,2].includes(c))throw Error("Bf");0!==b.length&&(a.log("Importing "+b.length+" from "+
(Object.keys(xwc)[c]+".")),wxc(a,b,c))},yxc=function(a,b,c,d){0!==b.length&&xxc(a,b,c,void 0===d?0:d)},sxc=function(a,b){b=a.H.get(b);return!(!b||3!==jxc(b)||qxc(a,b))},xxc=function(a,b,c,d){d=void 0===d?0:d;var e=!1;b=_.m(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var h=_.z(f,1),k=a.H.get(h);if(k)kxc(k,f,d)&&(e=!0),c&&k.H.add(c);else if(4!==d){e=!0;k=a;var l=d,p=c;1!==l&&2!==l&&rxc(k,_.z(f,1));k.H.set(_.z(f,1),new ixc(f,p,l))}e&&1===d&&(f.getName()?a.O.delete(h):a.O.add(h))}return e},qxc=
function(a,b){switch(b.We()){case 1:case 2:return null==_.z(b.person.clone(),5)||Date.now()-Number(_.z(b.person.clone(),5))>a.ta;case 4:return 1E3<Date.now()-Number(_.z(b.person.clone(),6));default:return!0}};pxc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.PeopleCache",a,void 0===b?"info":b)};
var oxc=function(a,b){b=b.H().map(function(c){var d=a.H.get(c);return d?d.person.clone():zwc(new LL,c)});wxc(a,b,4)},wxc=function(a,b,c){for(var d=Date.now(),e=_.m(b),f=e.next();!f.done;f=e.next()){var h=f.value;f=_.z(h,1);1===c?_.x(h,5,d):4===c&&_.x(h,6,d);if(h=a.V.get(f))h.resolve(),a.V.delete(f)}xxc(a,b,void 0,c)&&a.dispatchEvent(new hxc(b))},zxc=function(a,b,c,d,e){_.qi.call(this);var f=this;this.Oc=new _.nf(this);this.Ja(this.Oc);this.H=new pxc(a,b,c,d,e);this.O=_.IJ(a)||new _.aic;this.Oc.listen(this.H,
"vb",function(h){return f.dispatchEvent(h)})};_.K(zxc,_.qi);zxc.prototype.GP=function(a){var b=this;if(a.H){var c=a.H.getItem(),d=Axc(this,[c]).map(function(e){return Bxc(b,e)});yxc(this.H,d,a.H.getId(),this.We(_.z(c,82)))}a.O&&vxc(this.H,a.id,Cxc(this,a))};zxc.prototype.We=function(a){return _.pgc.get(a)||0};
var Cxc=function(a,b){var c=Dxc(a,b.O),d=Dxc(a,b.H);return c.filter(function(e){return!d.includes(e)})},Dxc=function(a,b){return b?Exc(a,[b.getItem()]):[]},Gxc=function(a,b){b=b.getUser();yxc(a.H,[Bxc(a,b)],"ACCOUNT");Fxc(a,b)},Ixc=function(a,b){var c=_.yb(b,_.aK,2).map(function(d){var e=_.y(d,_.mk,9,1);return a.H.Sb(LK(e)).then(function(){return void Hxc(a,[e])})});return Promise.all(c).then(function(){return b})},Jxc=function(a,b){Hxc(a,Axc(a,b))},Hxc=function(a,b){b=_.m(b);for(var c=b.next();!c.done;c=
b.next())c=c.value,LK(c)&&Fxc(a,c)},Kxc=function(a,b,c){for(var d=new Set,e=_.m(b),f=e.next();!f.done;f=e.next())f=f.value,LK(f)&&(d.add(LK(f)),yxc(a.H,[Bxc(a,f)],c));return Promise.all([].concat(_.fc(d)).map(function(h){return a.H.Sb(h)})).then(function(){return Hxc(a,b)})},Lxc=function(a,b){return Exc(a,[b]).some(function(c){return!sxc(a.H,c)})},Exc=function(a,b){var c=new Set;a=Axc(a,b);a=_.m(a);for(b=a.next();!b.done;b=a.next())(b=LK(b.value))&&c.add(b);return[].concat(_.fc(c))},Axc=function(a,
b){return b.map(function(c){var d=c.Bw();d=d?[].concat(_.fc(d.bS()),_.fc(_.yb(d,_.mk,3))):[];var e=c.yf();e=(e=e&&_.we(e))?Axc(a,[e]):[];return[].concat(_.fc(_.Ck(c)),[c.Em(),c.Yr(),c.pq(),c.ED()],_.fc(d),_.fc(e))}).flat().filter(function(c){return c&&!!LK(c)})};zxc.prototype.Hd=function(a){return uxc(this.H,a).filter(function(b){return"ACCOUNT"!==b})};
var Mxc=function(a){return Dwc(new Cwc,txc(a.H))},Nxc=function(a,b){return b.map(function(c){c=c.clone();var d=Axc(a,[c]);d=_.m(d);for(var e=d.next();!e.done;e=d.next())e=e.value,_.vb(e,3),_.vb(e,8),_.vb(e,5);return c})},Pxc=function(a,b){return b.some(function(c){return Oxc(a,c)})},Oxc=function(a,b){return Axc(a,[b]).some(function(c){return _.ej(c,3)||c.xq()||_.ej(c,5)})},Fxc=function(a,b){var c=a.H.get(LK(b));if(c){a=c.person.clone();var d=_.Ehc(b.$c(a.getName()),a.getEmail());c=jxc(c);_.x(d,16,
c);(a=_.y(a,ywc,4))&&b.Pn(a.getUrl())}},Bxc=function(a,b){var c=LK(b);c=Awc(zwc(new LL,c).$c(b.getName()),b.getEmail());var d=new ywc;d=_.x(d,1,_.z(b,5));c=_.G(c,4,d);_.R(a.O,9,!1)&&(_.vb(b,3),_.vb(b,8),_.vb(b,5));return c},Qxc=function(){this.suggestionSessionId=this.W=null;this.V=[];this.incompleteSearch=!1;this.O=[];this.H=!0};Qxc.prototype.Vf=function(){return this.suggestionSessionId};Qxc.prototype.hCa=function(){return this.O};Qxc.prototype.lc=function(){return this.H};
var Rxc=function(a){if(!a)return null;a=a.split("/");return 2>a.length?null:a[1]},Sxc=function(a,b){a=Rxc(a);b=Rxc(b);return!(!a||!b||a!==b)},Txc=function(a){return a.qc()+"_"+Rxc(a.getName())},Uxc=function(a,b){var c=_.re(a,1).map(function(d,e){return b[Number(e)].value.f7a.promise});return Promise.allSettled(c).then(function(d){return _.re(a,1).map(function(e,f){e=e.toString();var h=new wwc;e=_.x(h,1,e);f=d[Number(f)];"fulfilled"===f.status?e.Dc(1):(e.Dc(3),e.Re(f.reason.tg));return e})})},WL=function(a,
b){_.P.call(this);this.O=a;this.request=b;this.Xy=new Set;this.status=6;this.W=new Map;this.Pe=0};_.K(WL,_.P);_.g=WL.prototype;_.g.Zh=function(a){var b=this;this.Xy.add(a);return this.resize().then(function(){return b.VO(a)})};_.g.dk=function(a){this.Xy.delete(a);0===this.Xy.size&&this.dispose()};_.g.We=function(){return this.Pe};_.g.ti=function(a){this.Pe=a};
_.g.KD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=!1;a.forEach(function(f){e=d.sw(f,c)||e});b||(e=1!==this.status||e,this.status=1);return e?this.IY():_.Ph([])};_.g.IY=function(){for(var a=[],b=_.m(this.Xy.values()),c=b.next();!c.done;c=b.next())a.push(this.VO(c.value));return _.Rh(a)};
_.g.HY=function(a){this.status=3;for(var b=[],c={},d=_.m(this.Xy.values()),e=d.next();!e.done;c={tsa:c.tsa},e=d.next())c.tsa=e.value,b.push(this.O.then(function(f){return function(h){return void h.HY(f.tsa,a)}}(c)));return _.Rh(b)};_.g.KA=function(){for(var a=this,b=[],c={},d=_.m(this.Xy.values()),e=d.next();!e.done;c={usa:c.usa},e=d.next())c.usa=e.value,b.push(this.O.then(function(f){return function(h){return void h.KA(f.usa)}}(c)));return _.Rh(b).then(function(){a.ti(0===a.We()?1:6)})};
_.g.resize=function(){var a=this;return this.O.then(function(b){var c=0;a.Xy.forEach(function(d){d=b.Yla(d);c=Math.max(c,d.xi?d.xi()||0:0)});a.Dga(c)})};var Vxc=function(a,b){return b?a.W.get(a.zla(b))||null:null};_.g=WL.prototype;_.g.fG=function(a,b){var c=Vxc(this,a);b=Suc(c,b);this.W.set(this.zla(a),b)};_.g.zla=function(a){return a};_.g.gPa=function(){return[]};_.g.VO=function(a){var b=this;return this.O.then(function(c){return void c.VO(a,b.lk())})};_.g.removeItem=function(){};
var XL=function(a,b){_.hi.call(this,"Ab");this.error=a;this.retryCount=b};_.K(XL,_.hi);var YL=function(a,b){_.qi.call(this);this.request=a;this.pageToken="";this.H=this.O=!1;this.data=[];this.limit=0;this.W=b};_.K(YL,_.qi);var Wxc=function(a){return!a.O||""!==a.pageToken};YL.prototype.nh=function(a){this.limit=void 0===a?1E5:a;return!this.H&&this.data.length<=this.limit&&Wxc(this)?Xxc(this):_.Ph([])};
var Xxc=function(a){a.O=!0;a.H=!0;var b=a.Eja(a.request,a.limit-a.data.length,a.pageToken);return a.W(b).then(function(c){return Yxc(a,c)},function(c){return a.handleError(c)})},Yxc=function(a,b){a.H=!1;a.pageToken=a.Rla(b);b=a.dla(b);b.forEach(function(c){return a.data.push(c)});a.k7(b);return a.data.length<a.limit&&Wxc(a)?_.Rh([_.Ph(b),Xxc(a)]).then(function(c){return c[0].concat(c[1])}):_.Ph(b)};
YL.prototype.handleError=function(a){this.H=!1;a=_.vI(a);var b=new XL(a);this.hPa(b);this.dispatchEvent(b);return _.Qh(a)};YL.prototype.k7=function(){};YL.prototype.hPa=function(){};var Zxc=function(a,b,c){YL.call(this,c,function(d){return a.then(function(e){return e.Qe(d)}).then(null,function(e){KK(e)})});this.V=b};_.K(Zxc,YL);_.g=Zxc.prototype;_.g.Eja=function(a,b,c){a=a.clone();a.cj(b);return new _.Ygc(a,c)};_.g.Rla=function(a){return a.pageToken||""};_.g.dla=function(a){return a.response.H()};
_.g.k7=function(a){this.V.KD(a,!1,1)};_.g.hPa=function(a){this.V.PB(this.request,a)};var $xc=function(a,b,c,d){WL.call(this,a,d.clone());this.ha=b;this.V=c;this.data=[];this.H=null};_.K($xc,WL);_.g=$xc.prototype;_.g.refresh=function(){this.KA();this.H=new Zxc(this.ha,this.V,this.request);return this.H.nh(this.request.xi()||100)};_.g.Ip=function(a){return this.data.find(function(b){return Sxc(b.getName(),a)})};
_.g.Dga=function(a){this.H&&a===this.request.xi()||(this.request.cj(a),this.H?this.H.nh(a):this.refresh())};_.g.lk=function(){var a=this,b=vwc((new KL).Dc(this.status),this.data.filter(function(c){return a.V.qFa(c)}).map(function(c){return c.clone()}));return new _.nK(b,void 0,void 0,this.We())};_.g.KD=function(a,b,c){var d=this;a=a.filter(function(e){return e.qc()===d.request.qc()});return WL.prototype.KD.call(this,a,b,c)};
_.g.sw=function(a,b){b=void 0===b?1:b;if(!Anc(Vxc(this,a.getName()),b))return!1;var c=-1===b?0:this.data.length,d=this.data.findIndex(function(e){return Sxc(e.getName(),a.getName())});-1<d&&(this.data.splice(d,1),c=d);this.data.splice(c,0,a);this.fG(a.getName(),b);return!0};_.g.removeItem=function(a){_.za(this.data,function(b){return Sxc(b.getName(),a)})&&(this.W.delete(this.zla(a)),this.IY())};_.g.zla=function(a){return Rxc(a)};_.g.fG=function(a,b){this.Ip(a)&&WL.prototype.fG.call(this,a,b)};
_.g.gPa=function(a){var b=this;return a instanceof _.zJ&&a.qc()===this.request.qc()?a.uW().map(function(c){return b.Ip(c.Km())}).filter(function(c){return!!c}).map(function(c){return c.clone()}):[]};var ZL=function(){this.H=new Map};ZL.prototype.Zh=function(a,b){var c=this.getKey(b),d=this.H.get(c),e=!d;d||(d=this.Hja(b),this.H.set(c,d));d.Zh(a);return e};var ayc=function(a,b,c){var d=a.getKey(c),e=a.H.get(d),f=!e;e||(e=a.Xya(c),a.H.set(d,e));e.Zh(b);return f};
ZL.prototype.dk=function(a,b){var c=this.H.get(this.getKey(b));c&&(c.dk(a),c.isDisposed()&&this.H.delete(this.getKey(b)))};var byc=function(a,b,c){var d=a.H.get(a.getKey(c));d&&(d.dk(b),d.isDisposed()&&a.H.delete(a.getKey(c)))},cyc=function(a,b){return a.H.get(b)};ZL.prototype.KD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=a.filter(function(f){return d.qFa(f)});this.H.forEach(function(f){f.KD(e,b,c)})};ZL.prototype.removeItem=function(a,b){b=b?this.H.get(b):null;(b?[b]:this.H).forEach(function(c){c.removeItem(a)})};
var dyc=function(a,b){a=Array.from(a.H.values()).map(function(c){return c.gPa(b)});return[].concat.apply([],_.fc(a))};ZL.prototype.fG=function(a,b){this.H.forEach(function(c){c.fG(a,b)})};ZL.prototype.qFa=function(){return!0};ZL.prototype.PB=function(a,b){(a=this.H.get(this.getKey(a)))&&a.HY(b)};ZL.prototype.I3=function(a,b,c,d){var e=this.getKey(b),f=this.H.get(e);f||(f=this.Hja(b),f.ti(c),this.H.set(e,f),this.KD(a,d))};
var eyc=function(){this.H=new Set;this.V=0;this.O=[]},fyc=function(a,b){a.H.add(b)},gyc=function(a,b){var c;if(c=b instanceof _.Bk)c=b.Cw(),c=!!(b.Qh()&&c&&c<=Math.max.apply(Math,_.fc([a.V].concat(_.fc(a.O)))));if(c)return!0;b=b instanceof _.Bk?b.getId():b;return a.H.has(b)},hyc=function(a,b){return _.za(a.O,function(c){return c===b})&&b>a.V?(a.V=b,!0):!1};eyc.prototype.e$=function(a){var b=this;return a.filter(function(c){return!gyc(b,c)})};
var iyc=function(a,b){this.H=new Map;this.V=a;this.W=b;this.O=new eyc};_.K(iyc,ZL);var jyc=function(a,b){fyc(a.O,Txc(b));(a=cyc(a,b.qc()))&&a.IY()};_.g=iyc.prototype;_.g.getKey=function(a){return a.qc()};_.g.Hja=function(a){return new $xc(this.V,this.W,this,a)};_.g.Xya=function(a){return new $xc(this.V,this.W,this,a)};_.g.Do=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next())(b=b.value.getItem())&&(b=cyc(this,b.getId()))&&b.refresh()};_.g.qFa=function(a){return!gyc(this.O,Txc(a))};
var kyc=function(a){var b=new _.dI;b.Nb(a);return b},lyc=function(){_.qi.call(this);this.H=Date.now()};_.K(lyc,_.qi);lyc.prototype.IF=function(){this.H=Date.now();this.dispatchEvent("Bb")};
var myc=function(a,b){this.O=a;this.H=b},nyc=function(a,b){b=_.WWb(b);var c=new Zxc(a.O,a.H,b);new Promise(function(d,e){return c.nh(100).then(d,e)})},oyc=function(){this.Dd={}},$L=function(a,b){pyc(a,"subscribed");b&&pyc(a,b);return a.Dd[b||"subscribed"].ee.promise},pyc=function(a,b){a.Dd[b]||(a.Dd[b]={count:0,yS:[],f5a:[],ee:_.Sh()});a.Dd[b].count++},aM=function(a,b){b&&!qyc(a,b)||qyc(a,"subscribed")},qyc=function(a,b){if(!a.Dd[b])return!1;a.Dd[b].count--;0===a.Dd[b].count&&(a.Dd[b].ee.resolve({items:a.Dd[b].yS,
rPb:a.Dd[b].f5a}),_.bb(a.Dd,b));return!0};oyc.prototype.Do=function(a,b){var c=this,d=b||"subscribed";a.forEach(function(e){var f=e.uc();f&&f===e.qc()&&c.Dd[f]&&c.Dd[f].f5a.push(e);c.Dd[d]&&c.Dd[d].yS.push(e)})};var ryc=function(a,b,c){YL.call(this,a,c);this.V=b};_.K(ryc,YL);ryc.prototype.Eja=function(a,b){return a.clone().cj(b)};ryc.prototype.Rla=function(){return""};ryc.prototype.dla=function(a){return[a]};ryc.prototype.k7=function(a){this.V(a)};
var syc=function(a,b,c,d){WL.call(this,a,d.clone());this.ka=b;this.H=this.V=null;this.ha=c};_.K(syc,WL);syc.prototype.refresh=function(){var a=this;this.KA();this.H=new ryc(this.request,this.ha,function(b){return a.ka.then(function(c){return c.Qe(b)})});return this.H.nh(this.request.xi()||0)};syc.prototype.Dga=function(a){1===this.status||this.H&&a===this.request.xi()||(this.request.cj(a),this.H?this.H.nh(a):this.refresh())};
syc.prototype.lk=function(){if(this.V)return this.V;var a=new xL;a.Dc(this.status);return a};syc.prototype.sw=function(a){this.V=a;return!0};var tyc=function(a,b,c){this.H=new Map;this.O=a;this.W=b;this.V=c};_.K(tyc,ZL);_.g=tyc.prototype;_.g.log=function(a){this.V.info("drive.ds.sync.cache.SuggestedWorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};_.g.Hja=function(a){var b=this;return new syc(this.O,this.W,function(c){b.KD(c,!1)},a)};_.g.Xya=function(){throw Error("Cf");};
_.g.I3=function(a,b,c,d){var e=a[0].Zk();this.log("Initialized "+e.length+" suggested workspaces: "+e.map(function(f){return f.uq()}).join(", "));ZL.prototype.I3.call(this,a,b,c,d)};var uyc=function(a,b,c,d){_.qi.call(this);this.request=a;this.Ba=b;this.ta=c;this.wa=d;this.ma=0;this.ee=null;this.O=new Set};_.K(uyc,_.qi);
uyc.prototype.nh=function(){var a=this;if(this.ee)return this.ee.promise;this.ee=_.Sh();for(var b={},c=_.m(this.W(this.request)),d=c.next();!d.done;b={Ksa:b.Ksa,Hfa:b.Hfa},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.Hfa=d;b.Ksa=e;this.ma++;this.Ba.then(function(f){return function(h){return h.Qe(f.Ksa)}}(b)).then(function(f){return function(h){var k=f.Hfa;a.V(h);vyc(a,k)}}(b),function(f){return function(h){return void a.handleError(f.Hfa,h)}}(b))}return this.ee.promise};
var vyc=function(a,b){a.O.add(b);a.O.size===a.ma?(a.ha(a.request),a.dispatchEvent("zb"),a.ee.resolve()):a.dispatchEvent("wb")};uyc.prototype.handleError=function(a,b){b=_.xd(b);var c=b.tg;5===c.gB()||4===c.Wj()?(this.wa.info("drive.ds.sync.query.SimpleFindByIdsRunner","Deleting "+a+" due to: "+b.message),this.ka(a),vyc(this,a)):(a=new XL(c,_.xj(this.ta.Tf(),1,1)),this.dispatchEvent(a),this.ee.reject(b))};var wyc=function(a,b,c,d,e){uyc.call(this,a.clone(),c,d,e);this.H=b};_.K(wyc,uyc);
wyc.prototype.W=function(a){for(var b=new Map,c=_.m(_.re(a,1)),d=c.next();!d.done;d=c.next()){d=d.value;var e=_.bWb(a.clone(),[d]);b.set(d,e)}return b};wyc.prototype.V=function(a){var b=[];a=_.m(a.EU().values());for(var c=a.next();!c.done;c=a.next())b.push(c.value);this.H(b,!0)};wyc.prototype.ha=function(){this.H([],!1)};wyc.prototype.ka=function(a){this.H([kyc(a)],!0)};var xyc=function(a,b,c,d,e,f){WL.call(this,a,f.clone());this.ma=b;this.V=c;this.ka=d;this.ha=e;this.Sk={};this.H=null};_.K(xyc,WL);
xyc.prototype.refresh=function(){this.H=new wyc(this.request,this.ha,this.ma,this.V,this.ka);return this.H.nh()};xyc.prototype.Dga=function(){this.H||this.refresh()};xyc.prototype.lk=function(){var a=new _.lK;a.Dc(this.status);_.Ta(this.Sk,function(b,c){a.EU().set(c,b||new _.dI)});a.ti(this.We());return a};xyc.prototype.sw=function(a){var b=a.getId();if(_.wj(a,kyc(a.getId()))){if(this.Sk[b])return delete this.Sk[b],!0}else if(0<=_.re(this.request,1).indexOf(b))return this.Sk[b]=a,!0;return!1};
var yyc=function(a,b){a=a.getState();return null==a||b.getState()==a},zyc=function(a,b,c){YL.call(this,a,c);this.V=b};_.K(zyc,YL);zyc.prototype.Eja=function(a,b,c){a=a.clone();a.cj(b);return new _.khc(a,c)};zyc.prototype.Rla=function(a){return a.pageToken||""};zyc.prototype.dla=function(a){return a.response.Zk()};zyc.prototype.k7=function(a){this.V(a)};var Ayc=function(a){this.H=_.Jcc(a,{numeric:!0})};
Ayc.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=_.Ha(b.getId(),c.getId())*(a?1:-1);return f};Ayc.prototype.V=function(a,b,c){var d=_.z(b,4),e=_.z(c,4),f;d!==e?f=_.Ha(d,e)*(a?1:-1):f=_.Ha(b.getId(),c.getId())*(a?1:-1);return f};var Byc=function(a,b,c,d,e){WL.call(this,a,e.clone());this.ha=b;this.Sk=[];this.H=null;this.V=d;a=new Ayc(c);b=(c=this.request.MB())?c.getType():0;c=c?c.Uf():0;this.ka=1===b?a.O.bind(a,2!==c):a.V.bind(a,1===c)};
_.K(Byc,WL);Byc.prototype.refresh=function(){var a=this;this.KA();this.H=new zyc(this.request,this.V,function(b){return a.ha.then(function(c){return c.Qe(b)})});return this.H.nh(this.request.xi()||0)};Byc.prototype.Dga=function(a){1===this.status||this.H&&a===this.request.xi()||(this.request.cj(a),this.H?this.H.nh(a):this.refresh())};Byc.prototype.lk=function(){var a=new ML;a.Dc(this.status);Fwc(a,this.Sk.map(function(b){return b.clone()}));return new _.qK(a,void 0,1!==this.status&&Wxc(this.H),this.We())};
Byc.prototype.sw=function(a){var b=_.za(this.Sk,function(c){return c.getId()===a.getId()});return a&&yyc(this.request,a)&&!_.wj(a,kyc(a.getId()))?Zmc(this.Sk,a,this.ka):b};var Cyc=function(a,b,c,d){this.H=new Map;this.V=a;this.ha=b;this.W=c;this.O=d;this.logName="drive.ds.sync.cache.WorkspaceCacheManager"};_.K(Cyc,ZL);_.g=Cyc.prototype;_.g.log=function(a){this.W.info(this.logName,a)};_.g.getKey=function(a){return a.toString()};
_.g.Hja=function(a){var b=this;return new Byc(this.V,this.ha,YK(_.fI(this.O)),function(c){return void b.KD(c,!1)},a)};_.g.Xya=function(a){var b=this;return new xyc(this.V,this.ha,this.O,this.W,function(c,d){return b.KD(c,d)},a)};_.g.I3=function(a,b,c,d){this.log("Initialized "+a.length+" items for workspaces: "+a.map(function(e){return e.getId()}).join(", "));ZL.prototype.I3.call(this,a,b,c,d)};
var Dyc=function(a,b){b=void 0===b?!1:b;var c=a.getMimeType();OK(a)&&(c=(c=a.yf())?_.z(c,3):"");PK(a)&&(a.Mi()&&(c+="+"+String(a.Mi())),a.xj()&&(c+="+shared"));return _.zfa(c,b?"32":"16")},Eyc=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("&")},Fyc=function(a,b){var c=_.Q(a,44),d=a.yf();if(d){if(1!==_.ye(d))return null;c=(c=_.we(d))?_.Q(c,44):!0}if(!c)return null;c={};d=a.getId();OK(a)&&(d=tnc(a));
d=[_.C(b,65,"https://lh3.google.com"),"u",_.wI(_.fI(b)),"d",d].join("/");_.R(b,89,!1)&&_.ej(a,140)&&(c.resourcekey=_.Hk(a));return d=Eyc(d+"={size}",c)},Gyc=function(a){this.H=a},Iyc=function(a,b,c){if(c.includes(20)&&c.includes(3)){var d=Dyc(b,_.R(a.H,75,!1));_.x(b,21,d)}c.includes(18)&&_.Phc(b,ioc(b,a.H));c.includes(19)&&(d=Fyc(b,a.H),_.x(b,20,d));Hyc(a,b,c);if(OK(b)){if(d=(d=b.yf())&&_.we(d)){if(c.includes(20)&&c.includes(3)){var e=Dyc(d,_.R(a.H,75,!1));_.x(d,21,e)}c.includes(18)&&_.Phc(d,ioc(d,
a.H));c.includes(19)&&(e=Fyc(d,a.H),_.x(d,20,e));Hyc(a,d,c)}_.x(b,44,!!b.Gz())}},Hyc=function(a,b,c){var d=c.includes(41);c=c.includes(42);if(d||c){var e=b.getMimeType();e&&(e=!PK(b)&&!OK(b)&&!_.ee(e)&&(!b.c8()||2!==b.Cp()),d&&_.x(b,40,e),e&&c&&(a=a.H,d=b.getId(),OK(b)&&(d=tnc(b)),c=new _.Ti(_.C(a,16,"")+"/uc"),_.Yi(c,"id",d),_.Yi(c,"authuser",_.wI(_.fI(a))),_.Yi(c,"export","download"),_.R(a,89,!1)&&_.ej(b,140)&&_.Yi(c,"resourcekey",_.Hk(b)),_.x(b,41,c.toString())))}},Jyc=function(a,b){this.Rja="";
this.startTime=b||new Date;this.H=a;this.Uaa=koc(a)};Jyc.prototype.clone=function(){return new Jyc(this.H,this.startTime)};var Kyc=function(){this.H=null;this.yZ=[]},Lyc=function(a){return _.zf(a.yZ,function(b){return _.eb(b)})};Kyc.prototype.LN=function(){return this.H};
Kyc.prototype.O=function(a,b,c){if(this.H){var d=this.H;if(!a["X-Google-DapperTraceInfo"]){var e=new Kwc;e.V=Jwc(d.Uaa);var f=_.ih().substring(0,8);d=koc(f);f=(new hwc).Nb(f);f=_.x(f,2,d);b=_.x(f,3,b).Bi(c);this.yZ.push(b);e.O=Jwc(d);e.H=Hwc(808464432,808464432);e.W=41;b=String.fromCharCode;c=b.apply;d=new _.Kna;if(e.V){f=e.V.O>>>0;var h=e.V.H>>>0;_.Ij(d,1,1);var k=d.H;hpc(k,f);hpc(k,h)}e.O&&(f=e.O.O>>>0,h=e.O.H>>>0,_.Ij(d,2,1),k=d.H,hpc(k,f),hpc(k,h));f=e.W;null!=f&&(_.Ij(d,3,5),hpc(d.H,f));e.H&&
(f=e.H.O>>>0,e=e.H.H>>>0,_.Ij(d,4,1),h=d.H,hpc(h,f),hpc(h,e));e=_.Pna(d);a["X-Google-DapperTraceInfo"]=_.n.btoa(c.call(b,null,e))}}};var Myc=function(){this.Fb=[];this.O=this.H=0};Myc.prototype.discard=function(a){for(var b=this.H,c=this.O,d=this.Fb,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 Nyc=function(a,b){if(!c)var c=b.length;for(var d=a.H,e=a.O,f=a.Fb,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},Oyc=function(a){this.key=a;this.H=new _.mgc;this.O=new _.kgc(new _.mgc,_.bna(a))};Oyc.prototype.encrypt=function(a){for(var b=[],c=0;16>c;c++)b[c]=Math.floor(256*Math.random());b=isc(b);c=Pyc(this,a);return b.concat(c,Qyc(this,b,a,!0))};
var Ryc=function(a,b){var c=Qyc(a,b.substring(0,16),b.substring(36),!1);b=b.substring(16,36);a=Pyc(a,c);if(b!==a)throw Error("Df");return c},Pyc=function(a,b){a=_.lgc(a.O,_.vgc(b));return isc(a)},Qyc=function(a,b,c,d){a.H.reset();a.H.update(b);a.H.update(a.key);b=new Myc;a=a.H.digest();if(!e)var e=a.length;for(var f=b.Fb,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=_.vgc(c.substring(8192*
e,8192*(e+1))),Nyc(b,a),d+=isc(a);return d}d=[];for(e=0;e<c.length/8192;e++){a=c.substring(8192*e,8192*(e+1));f=_.n.Uint8Array?new Uint8Array(a.length):Array(a.length);for(h=0;h<a.length;h++)f[h]=a.charCodeAt(h)&255;a=f;Nyc(b,a);d.push(a)}if(d.length){for(c=0;c<d.length-1;c++)if(8192!==d[c].length)throw Error("Ef");c=8192*(d.length-1)+d[d.length-1].length;b=Array(c);for(a=e=0;e<c;)f=Syc(d,e++),128>f?b[a++]=String.fromCharCode(f):191<f&&224>f?(h=Syc(d,e++),b[a++]=String.fromCharCode((f&31)<<6|h&63)):
239<f&&365>f?(h=Syc(d,e++),k=Syc(d,e++),l=Syc(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=Syc(d,e++),k=Syc(d,e++),b[a++]=String.fromCharCode((f&15)<<12|(h&63)<<6|k&63));b.length=a;d=b.join("")}else d="";return d},Syc=function(a,b){return a[Math.floor(b/8192)][b%8192]},Tyc=function(a,b,c){this.data=a;this.c2a=b;this.H=c;this.isEncrypted=!1};Tyc.prototype.getData=function(){return this.data};
Tyc.prototype.Wm=function(){return this.c2a};var Uyc=function(a,b,c,d){this.O=a;this.H=_.Sh();this.vp=!1;this.V=_.C(b,7,"");this.W=_.xj(_.ZK(b),6,2E7);this.iF=_.mI(b);this.ha=_.xj(_.ZK(b),12,0);this.ka=c;this.Xf=d||null};Uyc.prototype.initialize=function(){var a=this;this.vp||(this.vp=!0,this.O.initialize().then(function(){a.H.resolve()},function(b){a.H.reject(b)}));return _.$h(this.H.promise)};
Uyc.prototype.EB=function(a){if(a instanceof _.UB)return 0;if(a instanceof IL)return 1;if(a instanceof zsc)return 5;if(a instanceof vL)return 3;if(a instanceof Cwc)return 6;throw new _.Hc("Unsupported dataShard in getDataType");};var Vyc=function(a){if(0==a)return _.UB;if(1==a)return IL;if(5==a)return zsc;if(3==a)return vL;if(6==a)return Cwc;throw new _.Hc("Unsupported dataType:"+a+" in getDataTypeCtor");};Uyc.prototype.Xo=function(a){if(a instanceof vL)return a.Xo()};
Uyc.prototype.Wm=function(a){if(a instanceof vL)return a.Bd().length};Uyc.prototype.Lv=function(a){if(a instanceof vL)return a=a.Lv(),null!=a?a:void 0};
var $yc=function(a,b,c,d){if(0==c.length)return _.Ph();for(var e=a.EB(c[0]),f=_.m(c),h=f.next();!h.done;h=f.next())a.EB(h.value);var k=a.Xo(c[0]),l=0;3==e&&Wyc(a,c);var p=!!b;return Xyc(a,c).then(function(q){if(p){var r=a.Xf?a.Xf.H(106023,d):null;l=q.reduce(function(w,A){(A=A.Wm())&&(w+=A);return w},0);var v=Yyc(a,b,q.map(function(w){return w.getData()})).then(function(w){if(w.length!=q.length)return _.Qh(Error("Ff"));w=_.m(w.entries());for(var A=w.next();!A.done;A=w.next()){var B=_.m(A.value);A=
B.next().value;B=B.next().value;A=q[A];A.data=B;A.isEncrypted=!0}return q});r&&(wrc(vrc(urc(cL(r),_.iK(_.Qfc,e)),_.iK(_.Nfc,k)),!0),v.then(function(){var w=l;trc(cL(r),!0).gw(w);r.Bj()},function(){var w=l;trc(cL(r),!1).gw(w);r.Bj()}));return v}return q}).then(function(q){return a.H.promise.then(function(){return Zyc(a.O,q,e,k,p,d)})})},Xyc=function(a,b){return new _.Oh(function(c,d){var e=!1,f=[];b.forEach(function(l){if(!e){var p=l.Hc();p.length>a.W?e=!0:f.push(new Tyc(p,a.Wm(l),a.Lv(l)))}});if(e){var h=
Error("Gf"),k=new _.Gc;_.tI(k,2);_.II(k,23);_.x(k,21,h.message);_.Eo(k);a.ka(k);d(h)}c(f)})},Wyc=function(a,b){for(var c=_.m(b),d=c.next();!d.done;d=c.next());a.iF||azc(b);if(a.ha)for(a=a.ha,c=b.length-1;0<=c;c--)if(b[c].Xo()){d=[];for(var e=b[c].Bd();e.length>a;){var f=_.ta(e,a-1,a);f=Buc(new vL,f);d.push(f)}Buc(b[c],e);d.length&&_.Ob(_.ta,b,c+1,0).apply(null,d)}},bM=function(a,b,c,d,e,f){var h=_.Sh(),k;_.Th(a.H.promise.then(function(){return bzc(a.O,c,d,e)}).then(function(l){var p=l.map(function(r){return r.data}),
q=new _.Uh;if(l[0]&&l[0].B1){if(k=a.Xf?a.Xf.H(106022,f):null)wrc(vrc(urc(cL(k),_.iK(_.Qfc,c)),_.iK(_.Nfc,d)),!0),q.qn().then(function(r){var v=k;r=void 0!=r;trc(cL(v),r);_.jjc(v)});czc(a,q,b,p)}else q.callback(p);return _.Ph(q)},function(){}).then(function(l){var p=[];if(l){var q=0;l=_.m(l);for(var r=l.next();!r.done;r=l.next())r=r.value,r=new (Vyc(c))(JSON.parse(r)),q+=a.Wm(r),p.push(r);3==c&&(a.iF||dzc(p),ezc(p));k&&cL(k).gw(q)}h.resolve(p)}),function(){k&&k.Bj()}).fj(h.reject,h);return h.promise},
azc=function(a){if(a.length){for(var b=0;b<a.length;b++)if(a[b].EN().length)return;b=new Map;for(var c=new Map,d=_.m(a),e=d.next();!e.done;e=d.next()){e=e.value.Bd()||[];e=_.m(e);for(var f=e.next();!f.done;f=e.next())if(f=f.value,_.Nhc(f,fzc(_.Ck(f),b,c)),_.Ohc(f,fzc([f.Em()],b,c)[0]),_.Rhc(f,fzc([f.Yr()],b,c)[0]),_.Vhc(f,fzc([f.pq()],b,c)[0]),_.Yhc(f,fzc([f.ED()],b,c)[0]),f=f.Bw())_.Khc(f,fzc(f.bS(),b,c)),_.Lhc(f,fzc(_.yb(f,_.mk,3),b,c))}var h=[];b.forEach(function(k){h.push(k)});_.mj(a[0],2,h)}},
fzc=function(a,b,c){if(!a)return a;var d=[];a=_.m(a);for(var e=a.next();!e.done;e=a.next()){var f=e.value;f&&f.getId()?(e=f.getId(),b.has(e)?_.wj(f,b.get(e))?d.push(c.get(e)):d.push(f):(b.set(e,f.clone()),f=new _.mk,f.Nb(e),c.set(e,f),d.push(f))):d.push(f)}return d},dzc=function(a){var b=new Map,c=new Map;a[0]&&a[0].EN()&&a[0].EN().forEach(function(h){b.set(h.getId(),h);h=(new _.mk).Nb(h.getId());c.set(h.getId(),h)});if(b.size){a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Bd()||
[];e=_.m(e);for(var f=e.next();!f.done;f=e.next())if(f=f.value,_.Nhc(f,gzc(_.Ck(f),b,c)),_.Ohc(f,gzc([f.Em()],b,c)[0]),_.Rhc(f,gzc([f.Yr()],b,c)[0]),_.Vhc(f,gzc([f.pq()],b,c)[0]),_.Yhc(f,gzc([f.ED()],b,c)[0]),f=f.Bw())_.Khc(f,gzc(f.bS(),b,c)),_.Lhc(f,gzc(_.yb(f,_.mk,3),b,c));_.nj(d,2)}}},gzc=function(a,b,c){if(!a)return a;var d=[];a=_.m(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&e.getId()){var f=e.getId();_.wj(c.get(f),e)?d.push(b.get(f).clone()):d.push(e)}else d.push(e);return d},ezc=
function(a){for(var b={},c=1;c<a.length;b={pfa:b.pfa},c++)if(!a[c].Xo()){for(var d=0,e=c;e<a.length&&!a[e].Xo();e++)d++;e=a[c-1];d=_.ta(a,c,d);b.pfa=e.Bd();d.forEach(function(f){return function(h){_.Ca(f.pfa,h.Bd())}}(b));Buc(e,b.pfa)}},Yyc=function(a,b,c){if(!_.Yfc()&&a.V){var d=new Worker(_.rca(_.Ky(a.V)),void 0),e=new _.Uh;d.addEventListener("message",function(k){d.terminate();e.callback(k.data)},!1);d.addEventListener("error",function(k){d.terminate();e.Gd(Error(String(k)))},!1);c=Nwc(new Mwc,
c);d.postMessage({command:"encrypt",data:{request:c.Hc(),key:b}});return e}try{a=[];var f=new Oyc(b);for(b=0;b<c.length;b++)a.push(f.encrypt(c[b]));var h=_.Zh(a)}catch(k){h=_.ai(k)}return h},czc=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(!_.Yfc()&&a.V){var f=new Worker(_.rca(_.Ky(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 Oyc(c);for(c=0;c<d.length;c++)a.push(Ryc(h,d[c]));b.callback(a)}catch(k){b.callback(void 0)}},hzc=/^[\w]+$/,izc=function(a,b,c){return[a.Fu(),a.clientId,b?"#":cM(a)].join(":")+":"+(c||"")},jzc=function(a,b,c){this.global=void 0===c?!1:c;a.match(hzc);this.key=a;this.value=b};jzc.prototype.getKey=function(){return this.key};jzc.prototype.Wa=function(){return this.value};
var kzc=function(a,b){return{k:izc(b,a.global,a.key),v:a.value}},lzc=function(a,b){a=izc(a,b);return quc(a+"A",a+"z")},mzc=function(a,b){this.H=a;this.O=b},nzc=function(a){return a?new mzc(a.versionKey,a.versionChangeTimestamp):null},ozc=function(a,b){return a+":"+b},pzc=function(a,b,c,d,e){this.data=a;this.index=b;this.size=c;this.timestamp=d;this.B1=void 0===e?null:e},qzc=function(a){return{data:a.data,index:a.index,size:a.size,timestamp:a.timestamp,e:a.B1}},rzc=function(a,b,c,d){a=cM(a)+"_"+b;
3===b&&(a+="_"+d);return a+=(0,_.Ws)(":%02d",c)},szc=function(a,b,c,d){c=rzc(a,b,void 0===c?0:c,d);a=cM(a)+"_"+b;3===b&&(a+="_"+d);return quc(c,a+":a")},tzc=function(a){var b=cM(a)+"_";a=cM(a)+"_A";return quc(b,a)},uzc=function(a){return a?new pzc(a.data,a.index,a.size,a.timestamp,a.e):null},vzc=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=_.Ba(e);_.Ka(this.fields);_.Ga(this.fields);this.H=
f};vzc.prototype.Fu=function(){return this.userId};vzc.prototype.hh=function(){return _.Ba(this.fields)};
var cM=function(a){if(!a.O){var b=new _.SH;b.update([a.userId,a.clientId,a.W,a.V].join(":"));b.update(a.fields);a.O=_.Bec(b.digest())}return a.O},wzc=function(a){return{versionKey:cM(a),versionInfo:{u:a.userId,c:a.clientId,pv:a.W,phk:a.V,f:a.fields},lastAccessedTimestamp:a.H}},xzc=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 vzc(c.u,c.c,c.pv,c.phk,c.f,a.lastAccessedTimestamp);b?a.O=d:cM(a)!==d&&(a=null);return a},dM=function(a,
b,c,d){c=void 0===c?null:c;d=void 0===d?!1:d;_.P.call(this);var e=this;this.Xf=b;this.W=c;this.readOnly=d;this.H=this.version=null;this.Ba=!1;this.wa=!0;this.V=null;this.ka=!1;this.O="";this.ma=null;this.Pa=a.then(function(f){e.version=f});this.Jb=new _.nf(this);this.Ja(this.Jb)};_.K(dM,_.P);dM.prototype.initialize=function(){return yzc(this)};
var yzc=function(a,b){a.V||(a.V=_.Sh(),a.Pa.then(function(){b?(a.wa=!1,zzc(a,b),a.log("Initialized database GoogleDriveDs with existing IndexedDb"),a.V.resolve()):(a.W&&(a.ma=a.W.H(106004)),a.log("Opening database GoogleDriveDs (version 2)"),_.udc("GoogleDriveDs",2,a.Fa.bind(a),a.ta.bind(a)).dg(a.Ka.bind(a),a.ta.bind(a)),_.ui(2E4).then(a.Ia.bind(a)))},function(c){a.V.reject(new _.Hc("Database version error",void 0,_.sI(c)?c:void 0))}));return a.V.promise},zzc=function(a,b){a.H=b;a.Jb.listen(a.H,"close",
a.ha.bind(a,"Browser closing database"));a.Jb.listen(a.H,"versionchange",a.ha.bind(a,"Database version change detected, closing"))};dM.prototype.Fa=function(a,b){this.log("Upgrading GoogleDriveDs to version "+a.newVersion);this.Ba=!0;_.Ma(b.H.objectStoreNames,function(c){return _.jic(b,c)});_.Ta(_.DI,function(c){var d=_.qgc.get(c);_.rdc(b,c,d?{keyPath:d}:void 0)})};
dM.prototype.ta=function(a){var b;a&&a instanceof _.UH&&"InvalidStateError"==a.getName()&&_.cj.gv?b=Error("Hf"):_.sI(a)&&(b=a);this.ha("Unable to open database GoogleDriveDs (version 2)");this.V.reject(b);Azc(this,!1)};dM.prototype.Ka=function(a){this.ka?a.dispose():(zzc(this,a),this.Ja(this.H),this.readOnly||Bzc(this).then(null,function(){}),this.log("Initialized database GoogleDriveDs"),this.V.resolve(),Azc(this,!0))};
var Azc=function(a,b){if(a.ma){var c=a.ma,d=_.y(_.hK(c),nrc,5);d||(d=new nrc,c=_.hK(c),_.G(c,5,d));d=_.x(d,1,2);d=_.x(d,2,a.nj().W);d=_.x(d,5,a.nj().ka);b=_.x(d,3,b);b=_.x(b,4,a.Ba);_.x(b,6,a.nj().ma);a.ma.Bj();a.ma=null}};dM.prototype.Ia=function(){this.H||this.If()||(this.ha("Opening database GoogleDriveDs timed out."),this.ta(Error("If")))};dM.prototype.ha=function(a){this.log(a);this.ka||(this.ka=!0,this.O="Database disabled: "+a,this.H&&this.wa&&this.H.close())};dM.prototype.If=function(){return this.ka};
var Czc=function(a){return a.ka?a.O:null};dM.prototype.nj=function(){return this.version};
var eM=function(a,b,c){c=void 0===c?"readonly":c;if(a.readOnly&&"readonly"!=c)return null;a=a.H;try{return _.sdc(a,[b],c)}catch(d){return null}},Bzc=function(a){var b=_.DI.q0,c=eM(a,b,"readwrite");if(!c)return _.Qh(Error("Jf"));c.objectStore(b).put(wzc(a.nj()));return _.Ph(c.wait()).then(function(){})},Dzc=function(a){if(!a.H)return _.Qh(Error("Kf"));if(a.If())return _.Qh(Error(a.O));var b=_.DI.q0,c=eM(a,b,"readwrite");if(!c)return _.Qh(Error("Lf"));b=c.objectStore(b);return _.Ph(b.remove(cM(a.nj())))},
Ezc=function(a,b,c){if(!a.length)return b.resolve([]),null;var d=[];a=_.m(a);for(var e=a.next();!e.done;e=a.next())(e=uzc(e.value))&&(d[e.index]=e);if(!d[0])return b.reject(Error("Mf")),0;a=d[0].timestamp;if(!a)return b.reject(Error("Nf")),0;e=d[0].size;if(!e)return b.reject(Error("Of")),0;if(e>d.length)return b.reject(Error("Pf`"+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("Qf`"+e)),0;if(c&&a<c)return b.reject(Error("Rf`"+a+"`"+c)),d.length>
e?e:null;if(d.length>e)return b.resolve(d.slice(0,e)),e;b.resolve(d);return null},bzc=function(a,b,c,d){if(!a.H||3==b&&void 0==c)return _.Qh(Error("Sf"));if(a.If())return _.Qh(Error(a.O));var e=szc(a.nj(),b,0,c),f=_.DI.S6,h=eM(a,f);if(!h)return _.Qh(Error("Tf"));e=h.objectStore(f).getAll(e);var k=_.Sh();e.dg(function(l){l=Ezc(l,k,d);a.readOnly||null==l||Fzc(a,b,c,l).then(null,function(){})},k.reject);return k.promise},Zyc=function(a,b,c,d,e,f){if(a.H){if(a.If())return _.Qh(Error(a.O));if(100<b.length||
3==c&&void 0==d)return _.Qh(Error("Uf"))}else return _.Qh(Error("Vf"));var h=Date.now(),k=b.length,l=b.map(function(v,w){return{key:rzc(a.nj(),c,w,d),data:new pzc(v.getData(),w,k,h,e),metadata:v}}),p=_.DI.S6;b=eM(a,p,"readwrite");if(!b)return _.Qh(Error("Wf"));p=b.objectStore(p);var q={};l=_.m(l);for(var r=l.next();!r.done;q={Ifa:q.Ifa},r=l.next())r=r.value,q.Ifa=Gzc(a,c,d,r.metadata,f),p.put(qzc(r.data),r.key).then(function(v){return function(){var w=v.Ifa;w&&(trc(cL(w),!0),w.Bj())}}(q),function(v){return function(w){var A=
v.Ifa,B=w instanceof _.UH?w.code:_.Ucc;A&&a.W&&(w=trc(cL(A),!1),B=_.iK(_.Rfc,B),_.x(w,2,B),A.Bj())}}(q));return _.Ph(b.wait()).then(function(){})},Gzc=function(a,b,c,d,e){if(a.W){var f=a.W.W;if(a=a.W.H(106019,e))b=vrc(urc(cL(a),_.iK(_.Qfc,b)),_.iK(_.Nfc,c)),f=_.x(b,5,f.Xo(d.H)),wrc(f,d.isEncrypted),void 0!=d.Wm()&&cL(a).gw(d.Wm());return a}return null},Fzc=function(a,b,c,d){d=void 0===d?0:d;if(a.H){if(a.If())return _.Qh(Error(a.O));if(3==b&&void 0==c)return _.Qh(Error("Xf"))}else return _.Qh(Error("Yf"));
b=szc(a.nj(),b,d,c);c=_.DI.S6;a=eM(a,c,"readwrite");if(!a)return _.Qh(Error("Zf"));a.objectStore(c).remove(b);return _.Ph(a.wait()).then(function(){})},Hzc=function(a){if(!a.H)return _.Qh(Error("$f"));if(a.If())return _.Qh(Error(a.O));var b=tzc(a.nj()),c=_.DI.S6;a=eM(a,c,"readwrite");if(!a)return _.Qh(Error("ag"));a.objectStore(c).remove(b);return _.Ph(a.wait()).then(function(){})};
dM.prototype.getMetadata=function(a){if(this.H){if(this.If())return _.Qh(Error(this.O));if(a&&0==a.length)return _.Qh(Error("bg"))}else return _.Qh(Error("cg"));var b=this.nj(),c=_.DI.d8,d=eM(this,c);if(!d)return _.Qh(Error("dg"));c=d.objectStore(c);if(a){d=[];a=_.m(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d.push(_.Ph(c.get(izc(b,e.global,e.key))));c=_.Rh(d)}else c=_.Rh([c.getAll(lzc(b,!1)).then(),c.getAll(lzc(b,!0)).then()]).then(function(f){var h=_.m(f);f=h.next().value;h=h.next().value;
return Ymc(f,h)});return c.then(function(f){return f.map(function(h){a:{if(h){var k=h.k.split(":"),l="#"===k[2];if(4===k.length&&(l||k[2]===cM(b))){h=k[0]!==b.Fu()||k[1]!==String(b.clientId)?void 0:new jzc(k[3],h.v,l);break a}}h=void 0}return h})})};
var Izc=function(a,b){if(a.H){if(a.If())return _.Qh(Error(a.O));if(0==b.length)return _.Qh(Error("eg"))}else return _.Qh(Error("fg"));var c=_.DI.d8,d=eM(a,c,"readwrite");if(!d)return _.Qh(Error("gg"));c=d.objectStore(c);d=[];b=_.m(b);for(var e=b.next();!e.done;e=b.next())d.push(c.put(kzc(e.value,a.nj())).then());return _.Rh(d).then(function(){})},Jzc=function(a,b){b=void 0===b?!1:b;if(a.H){if(a.If())return _.Qh(Error(a.O))}else return _.Qh(Error("ig"));var c=a.nj(),d=_.DI.d8;a=eM(a,d,"readwrite");
if(!a)return _.Qh(Error("jg"));d=a.objectStore(d);a=[];a.push(d.remove(lzc(c,!1)).then());b&&a.push(d.remove(lzc(c,!0)).then());return _.Rh(a).then(function(){})},Kzc=function(a){if(!a.H)return _.Qh(Error("kg"));if(a.If())return _.Qh(Error(a.O));var b=ozc(a.nj().Fu(),a.nj().clientId),c=_.DI.aV;a=eM(a,c);if(!a)return _.Qh(Error("lg"));c=a.objectStore(c);return _.Ph(c.get(b)).then(function(d){return nzc(d)})},Lzc=function(a,b){b=void 0===b?!1:b;if(!a.H)return _.Qh(Error("mg"));if(a.If())return _.Qh(Error(a.O));
var c=a.nj(),d=ozc(c.Fu(),c.clientId);b=new mzc(cM(c),b?Date.now():void 0);c=_.DI.aV;a=eM(a,c,"readwrite");if(!a)return _.Qh(Error("ng"));a.objectStore(c).put({versionKey:b.H,versionChangeTimestamp:b.O},d);return _.Ph(a.wait())};dM.prototype.Ll=function(a){var b=this;return this.H?this.If()?_.Qh(Error(this.O)):Kzc(this).then(function(c){var d=cM(b.nj());if(c)if(a){if(!c.O&&d==c.H&&d!=cM(a))return Lzc(b,!0);if(c.O&&d==cM(a))return Lzc(b)}else{if(d!=c.H)return Lzc(b)}else if(!a)return Lzc(b)}):_.Qh(Error("og"))};
var Mzc=function(a){if(!a.H)return _.Qh(Error("pg"));if(a.If())return _.Qh(Error(a.O));var b=a.nj(),c=ozc(b.Fu(),b.clientId);return Kzc(a).then(function(d){if(d){d=_.DI.aV;var e=eM(a,d,"readwrite");if(e)return e.objectStore(d).remove(c).then()}})};
dM.prototype.clear=function(a){var b=this;a=void 0===a?!1:a;return this.H?this.If()?_.Qh(Error(this.O)):Kzc(this).then(function(c){var d=c&&c.H==cM(b.nj());return d&&!a?!1:(c&&d?Mzc(b):_.Ph()).then(function(){return _.Rh([Jzc(b,a),Hzc(b),Dzc(b)]).then(function(){return!0},function(){return!1})},function(){return!1})}):_.Qh(Error("qg"))};dM.prototype.close=function(){this.ha("Closing database")};dM.prototype.log=function(a){this.Xf.info("drive.ds.sync.storage.VersionedDb",a)};
var Nzc=function(a){if(1>=a.nj())return!1;var b=a.H.objectStoreNames;return _.Ya(_.DI).every(function(c){return b&&b.contains(c)})},Ozc=function(){var a=_.Sh();_.udc("GoogleDriveDs").dg(function(b){b?Nzc(b)?a.resolve(b):(b.close(),_.Ph(ruc()).then(function(){return void a.resolve(null)},function(){return void a.resolve(null)})):a.resolve(null)},function(){return void a.resolve(null)});return a.promise},Pzc=function(a,b,c){var d=_.Sh();a?_.sdc(a,[_.DI.q0],"readonly").objectStore(_.DI.q0).getAll().dg(function(e){e=
_.Ya(e).map(function(f){return xzc(f)}).filter(function(f){return null!=f});d.resolve(e.filter(function(f){return(!b||f.Fu()==b)&&(!c||f.clientId==c)}))},d.reject):d.resolve([]);return d.promise},Qzc=function(a,b,c){var d=_.Sh();Ozc().then(function(e){if(e){var f=_.DI.aV;_.sdc(e,[f],"readonly").objectStore(f).get(a+":"+b).then(function(h){return nzc(h)}).then(function(h){if(h){var k=0;"number"==typeof c&&"number"==typeof h.O&&(k=c+h.O-Date.now());var l=_.DI.q0,p=_.sdc(e,[l],"readonly");p.objectStore(l).get(h.H).then(function(q){(q=
xzc(q))?(q.ka=!0,0>k?q.ha=!0:0<k&&(q.ma=k),d.resolve(q)):d.resolve(null)});_.Wh(p.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},Rzc=function(a,b,c){var d=_.Sh(),e=new dM(_.Ph(a),b);yzc(e,c).then(function(){return d.resolve(e)},d.reject);return d.promise},Szc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=[];a.forEach(function(h){var k=Rzc(h,b,c);f.push(k.then(function(l){return l.clear(e)}).then(function(l){return l?
h:void 0}))});_.Rh(f).then(function(h){var k=[];h.forEach(function(l){l&&(k.push(l),b.info("drive.ds.sync.storage.VersionedDb","Cleared version: "+cM(l)))});d.resolve(k)})},Tzc=function(a,b,c){var d=Date.now()-12096E5,e=_.Sh();Ozc().then(function(f){f?(_.Th(e.promise,function(){f.close()}),Pzc(f,a,b).then(function(h){return h.filter(function(k){return k.H<d})},function(){return[]}).then(function(h){Szc(h,c,f,e)})):e.resolve([])});return e.promise},Uzc=function(a,b,c){var d=_.Sh();Ozc().then(function(e){e?
(_.Th(d.promise,function(){e.close()}),Pzc(e,a,b).then(function(f){Szc(f,c,e,d,!0)})):d.resolve([])});return d.promise},Vzc=function(a,b,c,d){if(a.length){var e=_.DI.S6,f=a.shift(),h=rzc(f,3,0,1);try{_.sdc(c,[e],"readonly").objectStore(e).get(h).then(function(k){(k=uzc(k))&&(!k.B1||k.B1&&d.has(f.V))?b.resolve(f):Vzc(a,b,c,d)},function(){return b.resolve(null)})}catch(k){b.resolve(null)}}else b.resolve(null)},Wzc=function(a,b,c,d,e,f,h){var k=_.Sh();Ozc().then(function(l){l?(_.Th(k.promise,function(){l.close()}),
Pzc(l,a,b).then(function(p){return p.filter(function(q){return(!h||h!=cM(q))&&q.W==c&&q.H>=e&&snc(d.filter(function(r){return!_.rgc.has(r)}),q.hh(),b)})},function(){return[]}).then(function(p){p.length?(p.sort(function(q,r){return r.H-q.H}),Vzc(p,k,l,new Set(f))):k.resolve(null)})):k.resolve(null)});return k.promise},Xzc={key:"rid",global:!0},Yzc={key:"ooi",global:!0},Zzc={key:"rtds",global:!1},$zc={key:"dct",global:!1},aAc={key:"pc",global:!1},bAc=function(a){this.H=new _.Oh(function(b){a?a.initialize().then(function(){return b(a)},
function(){return b(null)}):b(null)})};bAc.prototype.get=function(a){return this.H.then(function(b){if(b&&!b.If())return b.getMetadata([a]).then(function(c){return(c=c[0])?c.Wa():void 0},function(){})})};bAc.prototype.set=function(a,b){return this.H.then(function(c){return c&&!c.If()?Izc(c,[new jzc(a.key,b,a.global)]).then(function(){return!0},function(){return!1}):!1})};bAc.prototype.Du=function(){return this.get(Xzc).then(function(a){return a?a:null})};
bAc.prototype.qz=function(a){return this.set(Xzc,a)};var cAc=function(a){return a.get(Yzc).then(function(b){return"boolean"===typeof b?b:null})};bAc.prototype.nz=function(a){return this.set(Yzc,a)};var dAc=function(a){return a.get(aAc).then(function(b){return"boolean"===typeof b?b:null})},eAc=function(a){return a.get(Zzc).then(function(b){return Array.isArray(b)?b:null})},fAc=function(a){return a.get($zc).then(function(b){return"number"===typeof b?b:null})},gAc=function(){this.aj=[]};_.K(gAc,_.xK);
gAc.prototype.add=function(a,b){var c=a.Zv.lx;return c instanceof _.DJ&&_.z(c.request,12)?_.xK.prototype.add.call(this,a,b):!1};gAc.prototype.gua=function(a){return this.aj.splice(0,Math.min(a,1))};var hAc=function(a,b){this.aj=[];this.H=b};_.K(hAc,_.xK);hAc.prototype.add=function(a,b){return a.Zv.lx instanceof _.DJ?!1:_.xK.prototype.add.call(this,a,b)};
hAc.prototype.gua=function(a){for(var b=[],c=[],d={},e=0,f=0;f<this.aj.length&&b.length<a;f++){var h=this.aj[f],k=h.Zv.lx;k instanceof _.WI||k instanceof _.hJ||k instanceof _.yJ?k="app|"+k.Jh():k instanceof _.RI||k instanceof _.SI||k instanceof _.YI||k instanceof _.xI?k="item|"+(k instanceof _.RI?k.qc():k.getId()):k instanceof _.ZI||k instanceof _.iJ?k="item|"+k.qc():k instanceof _.$I||k instanceof _.AJ?k="item|"+k.qc():k instanceof _.pD||k instanceof _.oD?(k=k instanceof _.pD?_.y(k,_.Ro,1).getKey():
k.getKey(),k="pref|"+_.Uo(k)+"|"+_.To(k)):k=k instanceof _.aJ?"td|"+k.getId():null;var l=h.Zv.lx;if(l instanceof _.UI)l=!!_.Q(l,8);else if(l instanceof _.SI){l=this.H.H(l.getId());var p;if(p=!!l)p=!!(l&&l.getMimeType()&&_.Cjb.has(l.getMimeType()));l=p}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++)_.wa(this.aj,c[a]);return b};
var iAc=function(a,b,c,d,e,f,h,k,l){a=a.Tf();h=new _.dlc(new _.clc(k,h,d,_.xj(a,32,1073741824),_.xj(a,21,1E3)));k=new _.Ckc(_.xj(a,59,2E3),_.xj(a,60,2E4),_.xj(a,61,6));c=new _.zkc(l?l:c,l?void 0:e);e={};e[1]=_.flc(b,d);e[2]=_.glc(b,a,k,c,d);e[3]=_.hlc(b,a,k,c,d,"batch");l=_.xj(a,10,50);f=new _.zK(d,b,[_.Akc(c),new _.Fkc(l,_.xj(a,11,100)),new _.yK(l),new _.wK(k,d)],[new hAc(a,f),new gAc,new _.xK],[new _.Okc(a,k,c.Ij(),d)],"mutation");return e[4]=f,e[5]=_.ilc(h,a,d),e[6]=_.hlc(b,a,k,c,d,"find_by_ids_batch"),
e[7]=_.hlc(b,a,k,c,d,"xd4_batch"),e[8]=_.hlc(b,a,k,c,d,"xd4_batch_one",1),e},Moc=function(a){return a.nextPageToken?a.nextPageToken:a.continuationToken?a.continuationToken:""},jAc=function(a){_.J.call(this,a)};_.K(jAc,_.J);jAc.prototype.Cb=function(){return _.z(this,1)};jAc.prototype.Dc=function(a){return _.x(this,1,a)};kAc=function(a,b){return _.G(a,2,b)};fpc=[90,59,75];_.fM=function(a){_.J.call(this,a)};_.K(_.fM,_.J);_.fM.prototype.Cb=function(){return _.z(this,1)};
_.fM.prototype.Dc=function(a){return _.x(this,1,a)};_.fM.prototype.Hf=function(){return _.y(this,_.UB,2)};_.lAc=function(a,b){return _.G(a,2,b)};_.fM.prototype.Yj=function(){return _.z(this,3)};
_.gM=function(a){_.J.call(this,a)};_.K(_.gM,_.J);_.gM.prototype.lZ=function(a){_.G(this,1,a)};_.gM.prototype.Iv=function(){return _.y(this,_.Fy,2)};_.gM.prototype.lP=function(a){_.G(this,2,a)};
_.mAc=function(a){_.J.call(this,a)};_.K(_.mAc,_.J);_.mAc.prototype.mi=function(){return _.y(this,huc,2)};_.mAc.prototype.V=function(a){_.qj(this,5,_.nAc,a)};_.nAc=[5,6];
var oAc;_.pAc=function(a){_.J.call(this,a,-1,oAc)};_.K(_.pAc,_.J);_.pAc.prototype.V=function(a){_.qj(this,6,_.hM,a)};oAc=[3,4,5];_.hM=[6,7];
var qAc=function(a){_.J.call(this,a)};_.K(qAc,_.J);qAc.prototype.getType=function(){return _.z(this,1)};var rAc=function(a){var b=new qAc;return _.x(b,1,a)};qAc.prototype.Ny=function(){return _.z(this,3)};qAc.prototype.oz=function(a){return _.x(this,3,a)};qAc.prototype.Fi=function(){return _.z(this,4)};qAc.prototype.setPosition=function(a){return _.x(this,4,a)};
var tAc=function(a){_.J.call(this,a,-1,sAc)};_.K(tAc,_.J);tAc.prototype.Cb=function(){return _.z(this,1)};tAc.prototype.Dc=function(a){return _.x(this,1,a)};tAc.prototype.Yj=function(){return _.z(this,3)};var sAc=[2];
_.uAc=function(a){_.J.call(this,a)};_.K(_.uAc,_.J);_.uAc.prototype.getId=function(){return _.z(this,1)};_.uAc.prototype.Nb=function(a){return _.x(this,1,a)};_.uAc.prototype.re=function(){return _.y(this,_.Lf,4)};
var wAc=function(a){_.J.call(this,a,-1,vAc)};_.K(wAc,_.J);wAc.prototype.Cb=function(){return _.z(this,1)};wAc.prototype.Dc=function(a){return _.x(this,1,a)};wAc.prototype.Yj=function(){return _.z(this,3)};var vAc=[2];
var xAc=function(a){_.J.call(this,a)};_.K(xAc,_.J);xAc.prototype.Cb=function(){return _.z(this,1)};xAc.prototype.Dc=function(a){return _.x(this,1,a)};xAc.prototype.yr=function(){return _.y(this,_.tL,2)};
var yAc=function(a){_.J.call(this,a)};_.K(yAc,_.J);_.g=yAc.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.yr=function(){return _.y(this,_.tL,2)};_.g.Yj=function(){return _.z(this,3)};_.g.Jh=function(){return _.z(this,4)};
_.iM=function(a){_.J.call(this,a)};_.K(_.iM,_.J);_.iM.prototype.getType=function(){return _.z(this,1)};var zAc=function(a){var b=new _.iM;return _.x(b,1,a)},AAc=function(a,b){return _.G(a,2,b)};_.iM.prototype.Ny=function(){return _.z(this,3)};_.iM.prototype.oz=function(a){return _.x(this,3,a)};_.iM.prototype.Fi=function(){return _.z(this,4)};_.iM.prototype.setPosition=function(a){return _.x(this,4,a)};
var CAc=function(a){_.J.call(this,a,-1,BAc)};_.K(CAc,_.J);var BAc=[1];
var EAc=function(a){_.J.call(this,a,-1,DAc)};_.K(EAc,_.J);EAc.prototype.Cb=function(){return _.z(this,1)};EAc.prototype.Dc=function(a){return _.x(this,1,a)};EAc.prototype.Yj=function(){return _.z(this,3)};var DAc=[2];
var GAc=function(a){_.J.call(this,a,-1,FAc)};_.K(GAc,_.J);GAc.prototype.Cb=function(){return _.z(this,1)};GAc.prototype.Dc=function(a){return _.x(this,1,a)};GAc.prototype.Yj=function(){return _.z(this,3)};var FAc=[2];
var HAc=function(a){_.J.call(this,a)};_.K(HAc,_.J);
var IAc=function(a){_.J.call(this,a)};_.K(IAc,_.J);IAc.prototype.Ky=function(){return _.z(this,2)};
var JAc=function(a){_.J.call(this,a)};_.K(JAc,_.J);JAc.prototype.H=function(){return _.y(this,_.SC,1)};JAc.prototype.V=function(){return _.y(this,_.SC,2)};JAc.prototype.wa=function(){return _.y(this,_.SC,3)};
var KAc=function(a){_.J.call(this,a)};_.K(KAc,_.J);KAc.prototype.H=function(){return _.Q(this,1)};KAc.prototype.V=function(){return _.Q(this,3)};KAc.prototype.wa=function(){return _.Q(this,4)};
var LAc=function(a){_.J.call(this,a)};_.K(LAc,_.J);_.g=LAc.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};_.g.Ucb=function(){return _.z(this,2)};_.g.te=function(){return _.z(this,4)};_.g.Tcb=function(){return _.y(this,KAc,5)};_.g.getCapabilities=function(){return _.y(this,MAc,6)};_.g.Zcb=function(){return _.z(this,7)};_.g.j7a=function(a){return _.qj(this,13,jM,a)};_.g.Scb=function(){return _.Aj(this,NAc,19,jM)};
_.g.qPa=function(a){return _.qj(this,19,jM,a)};_.g.v7a=function(a){return _.qj(this,12,jM,a)};_.g.w7a=function(a){return _.qj(this,11,jM,a)};_.g.Awb=function(){return _.Aj(this,OAc,10,jM)};_.g.Vcb=function(){return _.Aj(this,PAc,15,jM)};_.g.V7a=function(a){return _.qj(this,15,jM,a)};_.g.Wcb=function(){return _.Aj(this,QAc,14,jM)};_.g.W7a=function(a){return _.qj(this,14,jM,a)};_.g.h8a=function(a){return _.qj(this,9,jM,a)};_.g.Xcb=function(){return _.Aj(this,RAc,8,jM)};
_.g.rPa=function(a){return _.qj(this,8,jM,a)};_.g.Ycb=function(){return _.Aj(this,SAc,18,jM)};_.g.sPa=function(a){return _.qj(this,18,jM,a)};_.g.m8a=function(a){return _.qj(this,17,jM,a)};var MAc=function(a){_.J.call(this,a)};_.K(MAc,_.J);MAc.prototype.H=function(){return _.Q(this,1)};MAc.prototype.V=function(){return _.Q(this,2)};var TAc=function(a){_.J.call(this,a)};_.K(TAc,_.J);var QAc=function(a){_.J.call(this,a,-1,UAc)};_.K(QAc,_.J);QAc.prototype.H=function(){return _.yb(this,VAc,1)};
var WAc=function(a,b){_.mj(a,1,b)},VAc=function(a){_.J.call(this,a)};_.K(VAc,_.J);_.g=VAc.prototype;_.g.getLabel=function(){return _.z(this,1)};_.g.Rp=function(){return _.ej(this,1)};_.g.Wa=function(){return _.z(this,2)};_.g.Hb=function(a){return _.x(this,2,a)};_.g.Di=function(){return _.vb(this,2)};_.g.Ng=function(){return _.ej(this,2)};_.g.Bf=function(){return _.z(this,5)};_.g.kl=function(a){return _.x(this,5,a)};_.g.adb=function(){return _.ej(this,5)};
_.g.getCapabilities=function(){return _.y(this,XAc,3)};_.g.$cb=function(){return _.y(this,YAc,4)};var XAc=function(a){_.J.call(this,a)};_.K(XAc,_.J);XAc.prototype.H=function(){return _.Q(this,1)};XAc.prototype.V=function(){return _.Q(this,2)};var YAc=function(a){_.J.call(this,a)};_.K(YAc,_.J);_.g=YAc.prototype;_.g.edb=function(){return _.Q(this,1)};_.g.fdb=function(){return _.Q(this,2)};_.g.bdb=function(){return _.y(this,JAc,3)};_.g.gdb=function(){return _.ej(this,3)};
_.g.ddb=function(){return _.y(this,JAc,4)};_.g.idb=function(){return _.ej(this,4)};_.g.cdb=function(){return _.z(this,5)};_.g.hdb=function(){return _.ej(this,5)};var PAc=function(a){_.J.call(this,a)};_.K(PAc,_.J);PAc.prototype.H=function(){return _.z(this,1)};PAc.prototype.eX=function(){return _.ej(this,1)};PAc.prototype.getOptions=function(){return _.y(this,QAc,2)};var RAc=function(a){_.J.call(this,a)};_.K(RAc,_.J);RAc.prototype.V=function(){return _.z(this,1)};
RAc.prototype.H=function(){return _.z(this,2)};var ZAc=function(a){_.J.call(this,a)};_.K(ZAc,_.J);ZAc.prototype.eX=function(){return _.ej(this,1)};ZAc.prototype.getOptions=function(){return _.y(this,RAc,2)};var OAc=function(a){_.J.call(this,a)};_.K(OAc,_.J);OAc.prototype.V=function(){return _.z(this,1)};OAc.prototype.H=function(){return _.z(this,2)};var $Ac=function(a){_.J.call(this,a)};_.K($Ac,_.J);var aBc=function(a){_.J.call(this,a)};_.K(aBc,_.J);aBc.prototype.eX=function(){return _.ej(this,1)};
aBc.prototype.getOptions=function(){return _.y(this,$Ac,2)};var bBc=function(a){_.J.call(this,a)};_.K(bBc,_.J);_.g=bBc.prototype;_.g.rPa=function(a){return _.qj(this,3,kM,a)};_.g.h8a=function(a){return _.qj(this,4,kM,a)};_.g.w7a=function(a){return _.qj(this,5,kM,a)};_.g.v7a=function(a){return _.qj(this,6,kM,a)};_.g.j7a=function(a){return _.qj(this,7,kM,a)};_.g.W7a=function(a){return _.qj(this,8,kM,a)};_.g.V7a=function(a){return _.qj(this,9,kM,a)};_.g.m8a=function(a){return _.qj(this,10,kM,a)};
_.g.sPa=function(a){return _.qj(this,11,kM,a)};_.g.qPa=function(a){return _.qj(this,12,kM,a)};var cBc=function(a){_.J.call(this,a)};_.K(cBc,_.J);var SAc=function(a){_.J.call(this,a)};_.K(SAc,_.J);SAc.prototype.H=function(){return _.z(this,1)};SAc.prototype.eX=function(){return _.ej(this,1)};SAc.prototype.getOptions=function(){return _.y(this,cBc,2)};var NAc=function(a){_.J.call(this,a)};_.K(NAc,_.J);NAc.prototype.H=function(){return _.z(this,4)};
var jM=[13,19,12,11,10,15,14,9,8,18,17,16],UAc=[1],kM=[3,4,5,6,7,8,9,10,11,12];
var dBc=function(a){_.J.call(this,a)};_.K(dBc,_.J);dBc.prototype.getType=function(){return _.z(this,1)};var eBc=function(a){var b=new dBc;return _.x(b,1,a)},fBc=function(a,b){return _.G(a,2,b)};dBc.prototype.Ny=function(){return _.z(this,3)};dBc.prototype.oz=function(a){return _.x(this,3,a)};dBc.prototype.Fi=function(){return _.z(this,4)};dBc.prototype.setPosition=function(a){return _.x(this,4,a)};
var hBc=function(a){_.J.call(this,a,-1,gBc)};_.K(hBc,_.J);hBc.prototype.Cb=function(){return _.z(this,1)};hBc.prototype.Dc=function(a){return _.x(this,1,a)};var gBc=[2];
var iBc=function(a){_.J.call(this,a)};_.K(iBc,_.J);
var lM=function(a){_.J.call(this,a,-1,jBc)};_.K(lM,_.J);lM.prototype.getName=function(){return _.z(this,1)};lM.prototype.$c=function(a){return _.x(this,1,a)};lM.prototype.Km=function(){return _.z(this,2)};var kBc=function(a,b){return _.x(a,2,b)};lM.prototype.V=function(){return _.z(this,14)};var lBc=function(a,b){return _.x(a,14,b)};_.g=lM.prototype;_.g.getTitle=function(){return _.z(this,3)};_.g.setTitle=function(a){return _.x(this,3,a)};_.g.Bf=function(){return _.z(this,4)};
_.g.kl=function(a){return _.x(this,4,a)};_.g.jdb=function(){return _.z(this,15)};_.g.Xj=function(){return _.yb(this,LAc,5)};var mBc=function(a,b){return _.mj(a,5,b)},nBc=function(a,b){_.G(a,6,b)},oBc=function(a,b){_.G(a,7,b)},pBc=function(a,b){_.G(a,8,b)},qBc=function(a,b){return _.x(a,9,b)},rBc=function(a,b){return _.x(a,10,b)},sBc=function(a,b){return _.x(a,11,b)};lM.prototype.H=function(){return _.y(this,KAc,12)};var tBc=function(a,b){_.G(a,12,b)};
lM.prototype.getCapabilities=function(){return _.y(this,uBc,13)};var vBc=function(a,b){_.G(a,13,b)};lM.prototype.getCustomer=function(){return _.z(this,16)};var wBc=function(a,b){return _.x(a,16,b)},uBc=function(a){_.J.call(this,a)};_.K(uBc,_.J);uBc.prototype.wa=function(){return _.Q(this,1)};uBc.prototype.H=function(){return _.Q(this,2)};uBc.prototype.Ba=function(){return _.Q(this,3)};uBc.prototype.V=function(){return _.Q(this,4)};var jBc=[5];
var mM=function(a){_.J.call(this,a,-1,xBc)};_.K(mM,_.J);mM.prototype.Cb=function(){return _.z(this,1)};mM.prototype.Dc=function(a){return _.x(this,1,a)};mM.prototype.H=function(){return _.yb(this,lM,2)};var yBc=function(a,b){return _.mj(a,2,b)};mM.prototype.Yj=function(){return _.z(this,3)};var xBc=[2];
var zBc=function(a){_.J.call(this,a)};_.K(zBc,_.J);zBc.prototype.Cb=function(){return _.z(this,1)};zBc.prototype.Dc=function(a){return _.x(this,1,a)};zBc.prototype.H=function(){return _.y(this,lM,2)};zBc.prototype.Yj=function(){return _.z(this,3)};
_.nM=function(a){_.J.call(this,a,-1,ABc)};_.K(_.nM,_.J);_.nM.prototype.uW=function(){return _.yb(this,_.ZF,2)};_.nM.prototype.re=function(){return _.y(this,_.Lf,3)};var ABc=[1,2];
_.Ioc=function(a){_.J.call(this,a)};_.K(_.Ioc,_.J);_.g=_.Ioc.prototype;_.g.getItem=function(){return _.y(this,_.Bk,1)};_.g.setItem=function(a){return _.G(this,1,a)};_.g.getError=function(){return _.y(this,_.Gc,2)};_.g.Re=function(a){return _.G(this,2,a)};_.g.eo=function(){return _.ej(this,2)};
var CBc=function(a){_.J.call(this,a,-1,BBc)};_.K(CBc,_.J);var BBc=[2,4];
var EBc=function(a){_.J.call(this,a,-1,DBc)};_.K(EBc,_.J);EBc.prototype.H=function(){return _.z(this,2)};var FBc=function(a,b){_.x(a,2,b)},DBc=[1];
var GBc=function(a){_.J.call(this,a)};_.K(GBc,_.J);GBc.prototype.getType=function(){return _.z(this,1)};var HBc=function(a){var b=new GBc;return _.x(b,1,a)},IBc=function(a,b){return _.G(a,2,b)};GBc.prototype.Ny=function(){return _.z(this,3)};GBc.prototype.oz=function(a){return _.x(this,3,a)};GBc.prototype.Fi=function(){return _.z(this,4)};GBc.prototype.setPosition=function(a){return _.x(this,4,a)};
var KBc=function(a){_.J.call(this,a,-1,JBc)};_.K(KBc,_.J);KBc.prototype.Cb=function(){return _.z(this,1)};KBc.prototype.Dc=function(a){return _.x(this,1,a)};KBc.prototype.Yj=function(){return _.z(this,3)};var JBc=[2];
var LBc=function(a){_.J.call(this,a)};_.K(LBc,_.J);LBc.prototype.Zc=function(){return _.y(this,asc,1)};LBc.prototype.Zn=function(){return _.z(this,2)};
var oM=function(a){_.J.call(this,a)};_.K(oM,_.J);oM.prototype.Cb=function(){return _.z(this,1)};oM.prototype.Dc=function(a){return _.x(this,1,a)};oM.prototype.Yj=function(){return _.z(this,3)};
var MBc=function(a){_.J.call(this,a)};_.K(MBc,_.J);MBc.prototype.getKey=function(){return _.z(this,1)};MBc.prototype.wt=function(){return _.ej(this,1)};var OBc=function(a){_.J.call(this,a,-1,NBc)};_.K(OBc,_.J);var PBc=[2,4,6,10],QBc=[3,5,7,8,9],NBc=[1];
var RBc=function(a){_.J.call(this,a)};_.K(RBc,_.J);
_.TBc=function(a){_.J.call(this,a,-1,SBc)};_.K(_.TBc,_.J);var SBc=[1];
var UK=function(a){_.J.call(this,a,-1,UBc)},Ooc;_.K(UK,_.J);UK.prototype.Zn=function(){return _.z(this,1)};var Loc=function(a,b){return _.x(a,1,b)};UK.prototype.Cb=function(){return _.z(this,3)};UK.prototype.Dc=function(a){return _.x(this,3,a)};Ooc=function(a,b){_.mj(a,5,b)};_.Voc=function(a){_.J.call(this,a)};_.K(_.Voc,_.J);_.Voc.prototype.$b=function(){return _.z(this,2)};_.Toc=function(a){_.J.call(this,a,-1,VBc)};_.K(_.Toc,_.J);
var Soc=function(a,b){return _.x(a,1,b)},Roc=function(a,b){return _.x(a,2,b)},Uoc=function(a,b){_.mj(a,3,b)},UBc=[5],VBc=[3];
var WBc=function(a){_.J.call(this,a)};_.K(WBc,_.J);_.g=WBc.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.Yj=function(){return _.z(this,2)};_.g.lPa=function(){return _.y(this,_.Ro,3)};_.g.getKey=function(){return _.y(this,_.Lc,4)};_.g.wt=function(){return _.ej(this,4)};
var pM=function(a){_.J.call(this,a)};_.K(pM,_.J);pM.prototype.getType=function(){return _.z(this,1)};var XBc=function(a){var b=new pM;return _.x(b,1,a)};pM.prototype.vn=function(){return _.y(this,wL,2)};var YBc=function(a,b){return _.G(a,2,b)};pM.prototype.Ny=function(){return _.z(this,3)};pM.prototype.oz=function(a){return _.x(this,3,a)};pM.prototype.Fi=function(){return _.z(this,4)};pM.prototype.setPosition=function(a){return _.x(this,4,a)};
var qM=function(a){_.J.call(this,a)};_.K(qM,_.J);qM.prototype.getType=function(){return _.z(this,1)};var ZBc=function(a){var b=new qM;return _.x(b,1,a)};qM.prototype.vn=function(){return _.y(this,_.dI,2)};var $Bc=function(a,b){return _.G(a,2,b)};qM.prototype.Ny=function(){return _.z(this,3)};qM.prototype.oz=function(a){return _.x(this,3,a)};qM.prototype.Fi=function(){return _.z(this,4)};qM.prototype.setPosition=function(a){return _.x(this,4,a)};
var bCc=function(a){_.J.call(this,a,-1,aCc)};_.K(bCc,_.J);bCc.prototype.Cb=function(){return _.z(this,1)};bCc.prototype.Dc=function(a){return _.x(this,1,a)};bCc.prototype.Nh=function(){return _.yb(this,_.yEa,2)};bCc.prototype.Pq=function(a,b){return _.rj(this,2,a,_.yEa,b)};var aCc=[2];
var dCc=function(a){_.J.call(this,a,-1,cCc)};_.K(dCc,_.J);dCc.prototype.Cb=function(){return _.z(this,1)};dCc.prototype.Dc=function(a){return _.x(this,1,a)};dCc.prototype.Zk=function(){return _.yb(this,pM,2)};var cCc=[2];
var eCc=function(a){_.J.call(this,a)};_.K(eCc,_.J);eCc.prototype.Cb=function(){return _.z(this,1)};eCc.prototype.Dc=function(a){return _.x(this,1,a)};
var gCc=function(a){_.J.call(this,a,-1,fCc)};_.K(gCc,_.J);gCc.prototype.Cb=function(){return _.z(this,1)};gCc.prototype.Dc=function(a){return _.x(this,1,a)};gCc.prototype.Zk=function(){return _.yb(this,qM,2)};var fCc=[2];
var iCc=function(a){_.J.call(this,a,-1,hCc)};_.K(iCc,_.J);iCc.prototype.Ky=function(){return _.C(this,2)};var hCc=[1];
var jCc=function(a){_.hi.call(this,"Fb");this.dataType=a};_.K(jCc,_.hi);
var kCc=function(a,b){_.hi.call(this,"Gb");this.percentDone=a;this.Mva=b};_.K(kCc,_.hi);
var lCc=function(){};_.g=lCc.prototype;_.g.ZM=function(a,b){return fBc(eBc(1),a).setPosition(b)};_.g.XM=function(a,b){return fBc(eBc(2).setPosition(b),a)};_.g.bF=function(a,b,c){return fBc(eBc(3).oz(b).setPosition(c),a)};_.g.gR=function(a,b){return fBc(eBc(4),a).setPosition(b)};_.g.uN=function(a){return _.y(a,JL,2)};
var mCc=function(){_.Iy.call(this,new lCc,function(a){return a&&a.getName()})};_.K(mCc,_.Iy);
var rM=function(a,b,c,d){d=void 0===d?50:d;eL.call(this,a);var e=this;this.V=b;this.W=c;this.limit=d;this.active=!1;this.status=6;this.Ba=_.jec(new _.cI,[1]);this.ka=this.H=!1;this.Oc=new _.nf(this);this.Ja(this.Oc);_.ef(this,function(){e.Oc.removeAll()})};_.K(rM,eL);_.g=rM.prototype;_.g.Me=function(){return this.V.Me()||this.W.Me()};
_.g.bQ=function(){var a=this;this.Oc.listen(this.V,"rb",function(){return void a.iu()});this.Oc.listen(this.W,[].concat(_.fc(Object.values(_.VB))),function(){return void a.iu()});this.V.Me()?this.Oc.hd(this.V,"rb",function(b){b.Me()||(a.tH(),a.dispatchEvent(new _.hi(_.Sp)))}):this.W.Me()?this.Oc.hd(this.W,[_.VB.$L,_.VB.bV],function(){a.tH();a.dispatchEvent(new _.hi(_.Sp))}):(this.tH(),this.dispatchEvent(new _.hi(_.Sp)))};_.g.tH=function(){};
_.g.Ju=function(a){var b=this;if(this.nk()){var c=this.limit;this.limit+=a||50;this.$b()>c&&this.iu();this.V.Me()?this.Oc.hd(this.V,"rb",function(d){d.Me()||b.DP()}):this.DP()}};_.g.eM=function(){this.Me()&&!this.H?this.status=2:this.status=this.H?1:6};_.g.Cb=function(){return this.status};_.g.vs=function(){return this.Ba};_.g.handleError=function(a){this.dispatchEvent(new _.Ic(a))};_.g.bX=function(){this.dispatchEvent(new _.hi(_.XEa))};_.g.nk=function(){return!this.H||this.ka};
_.g.refresh=function(){this.H=this.active=!1;this.status=6;this.Oc.removeAll();this.activate()};_.g.DP=function(){};
var nCc=function(a,b,c,d,e){rM.call(this,c,a,b,e.xi()||void 0);this.request=e;this.logName="drive.ds.sync.CategoryMetadataLiveList";this.ha=[];this.data=[];this.changed=!1;this.O=new mCc;this.ma=d};_.K(nCc,rM);_.g=nCc.prototype;_.g.tH=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.hi(_.cd,this))};_.g.getData=function(){return vwc(new KL,this.data).Dc(this.status)};
_.g.ks=function(){var a=_.Hy(this.O,this.ha,this.data);this.ha=this.data;var b=(new hBc).Dc(this.status);return _.mj(b,2,a)};_.g.DP=function(){this.ma(this.Oi(),this.limit)};_.g.iu=function(){if(this.active){var a=this.status;this.eM();if(this.changed||a!==this.status)this.changed=!1,oCc(this)}};_.g.$b=function(){return this.data.length};_.g.jd=function(){return this.request};
_.g.update=function(a){var b=a.response;if(this.status!==b.Cb()||aL(this.O,this.data,b.H()))this.H=!0,this.status=b.Cb(),this.data=b.H(),this.ka=a.H,oCc(this)};var oCc=function(a){a.log("Livelist "+a.Oi()+" returning "+a.data.length+" for "+(a.request.qc()+". Status: ")+(_.fb(osc)[a.Cb()]+"."));a.dispatchEvent(new _.hi(_.cd,a))};nCc.prototype.PB=function(a){this.dispatchEvent(new _.Ic(new _.Hc("Error occurred running a category metadata query after "+a.retryCount+" retries.",a.error)))};
var pCc=function(a,b,c,d,e,f,h){_.fL.call(this,a,b,c,e,f,d);this.Xf=h;this.logName="drive.ds.sync.ViewCacheLiveList";this.ka=null;this.ha=void 0;this.suggestionSessionId=null};_.K(pCc,_.fL);pCc.prototype.getData=function(){this.H=this.items;var a=frc((new _.eI).Dc(this.Cb()).iB(this.items),this.nk());a=_.G(a,7,this.ka).gQ(this.suggestionSessionId).ti(this.Pe);return _.kj(a,18,this.ha)};
pCc.prototype.update=function(a){if(vsc(this,a)&&(wsc(this,a),this.ka=a.i7(),this.suggestionSessionId=a.Vf(),this.ha=a.Ila(),usc(this),this.suggestionSessionId&&Bvc(this.O)&&(a=this.Xf.H(106027)))){var b=_.y(_.hK(a),Arc,20);if(!b){b=new Arc;var c=_.hK(a);_.G(c,20,b)}_.x(b,1,this.suggestionSessionId);a.Bj()}};
var qCc=function(a,b){var c={};a=_.Ua(a,function(d){return!!d});b=_.Ua(b,function(d){return!!d});_.Ta(a,function(d,e){var f=b[e];f?_.wj(d,f)||(d=$Bc(ZBc(4),f),c[e]=d):(d=$Bc(ZBc(2),d),c[e]=d)});_.Ta(b,function(d,e){a[e]||(d=$Bc(ZBc(1),d),c[e]=d)});return c},rCc=function(a,b){return _.Xa(a)!==_.Xa(b)||!_.ab(qCc(a,b))};
var sCc=function(a,b){eL.call(this,a);this.request=b;this.logName="drive.ds.sync.WorkspaceFindByIdsLiveMap";this.status=6;this.H={};this.data={}};_.K(sCc,eL);_.g=sCc.prototype;_.g.bQ=function(){_.ab(this.data)&&6===this.status||this.dispatchEvent(new _.hi(_.cd,this))};_.g.Cb=function(){return this.status};_.g.vs=function(){return new _.cI};_.g.getData=function(){this.H=this.data;var a=(new _.lK).Dc(this.status);_.Ta(this.data,function(b,c){a.EU().set(c,b||new _.dI)});return a};
_.g.ks=function(){var a=qCc(this.H,this.data);this.H=this.data;var b=(new eCc).Dc(this.status);_.Ta(a,function(c,d){_.Ab(b,2,void 0,qM).set(d,c)});return b};_.g.$T=function(){throw Error("tg");};_.g.jd=function(){return this.request};_.g.update=function(a){var b={};a.EU().forEach(function(c,d){c||(c=kyc(d));b[d]=c});if(this.status!==a.Cb()||rCc(this.H,b))this.status=a.Cb(),this.data=b,this.active&&this.dispatchEvent(new _.hi(_.cd,this))};
_.g.PB=function(a){this.dispatchEvent(new _.Ic(new _.Hc("Error occurred running a Workspace find by id after "+a.retryCount+" retries.",a.error)))};_.g.bX=function(){this.dispatchEvent(new _.hi(_.XEa))};
var tCc=function(a,b,c,d,e,f){_.fL.call(this,a,b,c,d,e,f);this.ha=[];this.suggestionSessionId=null;this.logName="drive.ds.sync.PeoplePredictLiveList"};_.K(tCc,_.fL);tCc.prototype.getData=function(){this.H=this.items;var a=(new _.kK).Dc(this.Cb()).iB(this.items);var b=this.nk();a=_.x(a,4,b);return nsc(a,this.ha).gQ(this.suggestionSessionId).ti(this.Pe)};tCc.prototype.update=function(a){vsc(this,a)&&(wsc(this,a),this.ha=_.yb(a,_.mk,6),this.suggestionSessionId=a.Vf(),usc(this))};
var uCc=function(){};_.g=uCc.prototype;_.g.ZM=function(a,b){return YBc(XBc(1),a).setPosition(b)};_.g.XM=function(a,b){return YBc(XBc(2).setPosition(b),a)};_.g.bF=function(a,b,c){return YBc(XBc(3).oz(b).setPosition(c),a)};_.g.gR=function(a,b){return YBc(XBc(4),a).setPosition(b)};_.g.uN=function(a){return a.vn()};
var vCc=function(){_.Iy.call(this,new uCc,function(a){return a&&a.uq()})};_.K(vCc,_.Iy);
var wCc=function(a,b,c){rM.call(this,a.Be(),a.Ij(),a.xk(),b.xi()||10);this.request=b;this.logName="drive.ds.sync.SuggestedWorkspaceQueryLiveList";this.O=[];this.data=[];this.changed=!1;this.ha=new vCc;this.suggestionSessionId=null;this.ma=c};_.K(wCc,rM);_.g=wCc.prototype;_.g.tH=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.hi(_.cd,this))};_.g.getData=function(){this.O=this.data;return Quc(Puc((new xL).Dc(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.ks=function(){var a=_.Hy(this.ha,this.O,this.data);this.O=this.data;var b=(new dCc).Dc(this.status);return _.mj(b,2,a)};_.g.DP=function(){};_.g.iu=function(){var a=this.status;this.eM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.hi(_.cd,this))};_.g.$b=function(){return this.data.length};_.g.jd=function(){return this.request};
_.g.update=function(a){if(this.status!==a.Cb()||aL(this.ha,this.data,a.Zk())){this.changed=this.H=!0;this.data=a.Zk();if(a=a.Vf())this.suggestionSessionId=a;this.iu()}};_.g.refresh=function(){this.ma()};_.g.PB=function(a){this.dispatchEvent(new _.Ic(new _.Hc("Error occurred running a Suggested Workspace query after "+(a.retryCount+" retries."),a.error)))};
var xCc=function(a,b,c,d){eL.call(this,a);var e=this;this.request=b;this.ha=c;this.W=d;this.logName="drive.ds.sync.TeamDriveLiveList";this.O=[];this.items=[];this.status=6;this.V=_.jec(new _.cI,[1]);this.H=!0;this.limit=b.xi();_.ef(this,function(){e.O=[]})};_.K(xCc,eL);_.g=xCc.prototype;_.g.bQ=function(){_.qa(this.items)&&6===this.status&&this.H||this.dispatchEvent(new _.hi(_.cd,this))};_.g.jd=function(){return this.request};_.g.Cb=function(){return this.status};_.g.vs=function(){return this.V};
_.g.nk=function(){return this.H};_.g.getData=function(){this.O=this.items;return frc((new _.eI).Dc(this.status).iB(this.items),this.H)};_.g.ks=function(){var a=_.Hy(_.b7a(),this.O,this.items),b=(new lsc).Dc(this.status);a=_.mj(b,2,a);this.O=this.items;return a};_.g.Ju=function(a){this.isActive()&&(this.limit+=a||20,this.ha.gG(this.Oi(),this.limit))};
_.g.update=function(a){if(this.status!==a.Cb()||aL(_.b7a(),this.items,a.Bd()))this.items=a.Bd(),this.status=a.Cb(),_.mI(this.W)&&(this.V=$mc(this.status,this.items)),this.H=a.Tl(),this.isActive()&&this.dispatchEvent(new _.hi(_.cd,this))};_.g.PB=function(a){this.dispatchEvent(new _.Ic(new _.Hc("Error occurred running a Team Drive query after "+a.retryCount+" retries.",a.error)))};_.g.bX=function(){this.dispatchEvent(new _.hi(_.XEa))};_.g.Pu=function(){throw Error("ug");};_.g.refresh=function(){};
var yCc=function(a,b,c){eL.call(this,a.Be());var d=this;this.context=a;this.W=b;this.request=c;this.logName="drive.ds.sync.TeamDriveLiveMap";this.O={};this.H={};this.status=6;this.V=_.jec(new _.cI,[1]);this.log("Creating TD find by ids live map: "+this.request.V().join(", "));_.ef(this,function(){d.O={}})};_.K(yCc,eL);_.g=yCc.prototype;_.g.bQ=function(){(0<Object.values(this.H).length||6!==this.status)&&this.dispatchEvent(new _.hi(_.cd,this))};_.g.jd=function(){return this.request};
_.g.getData=function(){this.O=this.H;var a=new _.jK;a.Dc(this.status);a.map=this.H;return a};_.g.ks=function(){var a=bnc(this.O,this.H),b=new tsc;b.Dc(this.status);b.map=a;this.O=this.H;return b};_.g.Cb=function(){return this.status};_.g.vs=function(){return this.V};_.g.$T=function(a){var b=this.request;this.request=a;this.W.OZ(this.Oi(),b,a)};
_.g.update=function(a){if(this.status!==a.Cb()||cnc(this.H,a.lt()))this.status=a.Cb(),this.H=a.lt(),_.mI(this.context.Xc)&&(this.V=$mc(this.status,Object.values(this.H))),this.isActive()&&this.dispatchEvent(new _.hi(_.cd,this))};_.g.PB=function(a){this.dispatchEvent(new _.Ic(new _.Hc("Error occurred running a team drive find-by-IDs query after "+a.retryCount+" retries.",a.error)))};_.g.bX=function(){this.dispatchEvent(new _.hi(_.XEa))};
var zCc=function(){};_.g=zCc.prototype;_.g.ZM=function(a,b){return $Bc(ZBc(1),a).setPosition(b)};_.g.XM=function(a,b){return $Bc(ZBc(2).setPosition(b),a)};_.g.bF=function(a,b,c){return $Bc(ZBc(3).oz(b).setPosition(c),a)};_.g.gR=function(a,b){return $Bc(ZBc(4),a).setPosition(b)};_.g.uN=function(a){return a.vn()};
var ACc=function(){_.Iy.call(this,new zCc,function(a){return a&&a.getId()})};_.K(ACc,_.Iy);
var BCc=function(a,b,c){rM.call(this,a.Be(),a.Ij(),a.xk(),b.xi()||10);this.request=b;this.ma=c;this.logName="drive.ds.sync.WorkspaceQueryLiveList";this.O=[];this.data=[];this.changed=!1;this.ha=new ACc};_.K(BCc,rM);_.g=BCc.prototype;_.g.tH=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.hi(_.cd,this))};_.g.getData=function(){this.O=this.data;return Fwc((new ML).Dc(this.status),this.data.slice(0))};
_.g.ks=function(){var a=_.Hy(this.ha,this.O,this.data);this.O=this.data;var b=(new gCc).Dc(this.status);return _.mj(b,2,a)};_.g.DP=function(){this.ma.gG(this.Oi(),this.limit)};_.g.iu=function(){var a=this.status;this.eM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.hi(_.cd,this))};_.g.$b=function(){return this.data.length};_.g.jd=function(){return this.request};
_.g.update=function(a){var b=a.response;if(this.status!==b.Cb()||aL(this.ha,this.data,b.Zk()))this.H=!0,this.status=b.Cb(),this.data=b.Zk(),this.ka=a.H,this.dispatchEvent(new _.hi(_.cd,this))};_.g.PB=function(a){this.dispatchEvent(new _.Ic(new _.Hc("Error occurred running a Workspace query after "+a.retryCount+" retries.",a.error)))};
var CCc=function(a,b){this.context=a;this.ha=b;this.H={};this.ka={};this.ma={};this.V=null;this.W=a.Jf;this.O=this.context.Iga;this.ta=this.context.l7};_.g=CCc.prototype;_.g.Yya=function(a){var b=this,c=new pCc(this.context.Pl,this.context.RQ,this.context.Be(),this.context.Xc,function(d,e){b.gG(d,e)},a,this.context.kk());this.Zh(c);_.ef(c,function(){b.dk(c)});return c};
_.g.aza=function(a){var b=this,c=new tCc(this.context.Pl,this.context.RQ,this.context.Be(),function(d,e){b.gG(d,e)},a,this.context.Xc);this.Zh(c);_.ef(c,function(){b.dk(c)});return c};_.g.Vya=function(a){var b=this,c=new Asc(this.context.Xc,this.context.Pl,this.context.Be(),this.context.O_,this.OZ.bind(this),a);this.Zh(c);_.ef(c,function(){b.dk(c)});return c};_.g.dza=function(a){var b=this,c=new xCc(this.context.Be(),a,this,this.context.Xc);this.Zh(c);_.ef(c,function(){b.dk(c)});return c};
_.g.eza=function(a){var b=this,c=new yCc(this.context,this,a);this.Zh(c);_.ef(c,function(){b.dk(c)});return c};_.g.hza=function(a){var b=this,c=new BCc(this.context,a,this);this.Zh(c);_.ef(c,function(){b.dk(c)});return c};_.g.bza=function(a){var b=this,c=new wCc(this.context,a,function(){if(a instanceof _.$z){var d=DCc(b.context);cyc(d,d.getKey(a)).refresh()}});this.Zh(c);_.ef(c,function(){b.dk(c)});return c};
_.g.iza=function(a){var b=this,c=new sCc(this.context.Be(),a);this.Zh(c);_.ef(c,function(){b.dk(c)});return c};_.g.Rya=function(a){var b=this,c=new nCc(this.context.Ij(),this.context.xk(),this.context.Be(),function(d,e){b.gG(d,e)},a);this.Zh(c);_.ef(c,function(){b.dk(c)});return c};
_.g.Zh=function(a){var b=a.Oi();this.H[b]=a;this.ha.create(b,a.jd());if(a.jd()instanceof _.bA)a=this.O.Zh(b,a.jd());else if(a.jd()instanceof _.gG)a=ayc(this.O,b,a.jd());else if(a.jd()instanceof _.$z)a=DCc(this.context).Zh(b,a.jd());else if(a.jd()instanceof _.nG)a=this.ta.Zh(b,a.jd());else{var c=a.jd(),d=gL(this.context.Pl,c,2);this.log("Registering LiveList "+a.Oi()+" "+d);a=this.W.Zh(b,c)}"boolean"===typeof a&&jwc(this.ha,b,a)};
_.g.dk=function(a){if(a.jd()instanceof _.bA)this.O.dk(a.Oi(),a.jd());else if(a.jd()instanceof _.gG)byc(this.O,a.Oi(),a.jd());else if(a.jd()instanceof _.$z)DCc(this.context).dk(a.Oi(),a.jd());else if(a.jd()instanceof _.nG)this.ta.dk(a.Oi(),a.jd());else{var b=a.jd(),c=gL(this.context.Pl,b,2);this.log("Unregistering LiveList "+a.Oi()+" "+c);this.W.dk(a.Oi(),b)}HL(this.ha,a.Oi(),4);delete this.H[a.Oi()]};_.g.OZ=function(a,b,c){this.W.dk(a,b);this.W.Zh(a,c)};
_.g.gG=function(a,b){var c=ECc(this,a).jd();c.cj(b);c instanceof _.bA?this.O.Zh(a,c):c instanceof _.gG?ayc(this.O,a,c):c instanceof _.nG?this.ta.Zh(a,c):this.W.Zh(a,c)};_.g.VO=function(a,b){var c=this.H[a]&&this.H[a].jd();c&&(c instanceof _.Af?hnc(c.H(),b.Bd().filter(function(d){return!zL(d)})):c instanceof _.aG&&hnc(c.H(),Object.values(b.lt()).filter(function(d){return d&&!zL(d)})));this.ka[a]=b;this.V||(this.V=_.si(this.i$,50,this))};
_.g.HY=function(a,b){this.ma[a]=b;this.V||(this.V=_.si(this.i$,50,this))};_.g.KA=function(a){(a=this.H[a])&&a.bX()};_.g.i$=function(){_.ti(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&&(mwc(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])HL(this.ha,a,3),d.PB(c)};
_.g.Yla=function(a){return ECc(this,a).jd()};var ECc=function(a,b){if(!a.H[b])throw Error("vg`"+b);return a.H[b]};CCc.prototype.log=function(a,b){this.context.Be().log("drive.ds.sync.cache.LocalLiveRequestManager",a,void 0===b?"info":b)};
var FCc=function(){},GCc=function(a){this.H=a},Joc=function(a,b,c,d,e,f,h,k){this.status=a;this.percentDone=b;this.H=c;this.W=d;this.V=e;this.FA=f;this.numFetchedFiles=h;this.O=k};
var sM=function(a,b){_.qi.call(this);this.O=a;this.request=b;this.ee=_.Sh();this.complete=!1;this.H=""};_.K(sM,_.qi);sM.prototype.start=function(){var a=this;this.O.then(function(b){return b.Qe(a.request)}).then(this.W.bind(this)).then(null,this.handleError.bind(this));return this.ee.promise};sM.prototype.W=function(a){this.H=a.H;this.dispatchEvent(new kCc(0,this.H));HCc(this)};
var HCc=function(a){_.n.setTimeout(function(){a.O.then(function(b){return b.Qe(new _.ahc(a.H))}).then(function(b){if(a.complete||1!==b.status&&3!==b.status&&2!==b.status){a.complete=!0;if(4===b.status){var c=new CBc;c=_.kj(c,2,b.H);c=_.x(c,3,a.H);c=_.x(c,5,b.W);c=_.x(c,6,b.V);c=_.x(c,7,b.FA);c=_.x(c,8,b.numFetchedFiles);b=_.mj(c,4,b.O);a.ee.resolve(b)}else b=_.uI(_.Do(_.Co(new _.Gc,"Export failed for request "+a.H+": "+b.status),JSON.stringify(b)),8),a.handleError(b);a.dispose()}else a.dispatchEvent(new kCc(b.percentDone,
a.H)),HCc(a)}).then(null,function(b){a.handleError(b)})},5E3)};sM.prototype.cancel=function(){var a=this;this.O.then(function(b){return b.Qe(new _.$gc(a.H))}).then(this.V.bind(this)).then(null,this.handleError.bind(this))};sM.prototype.V=function(){if(!this.complete){var a=new CBc;a=_.x(a,3,this.H);a=_.x(a,1,!0);this.ee.resolve(a);this.complete=!0;this.dispose()}};sM.prototype.handleError=function(a){this.complete=!0;this.ee.reject(_.NI(a));this.dispose()};
var ICc=function(){_.hi.call(this,"VbxEwf")};_.K(ICc,_.hi);
var JCc=function(a,b){this.context=a;this.H=null;this.oc=b||null};_.g=JCc.prototype;_.g.La=function(){return this.context.Xc.dH()};_.g.getContext=function(){return this.context};_.g.Zz=function(){return this.context.kB.Zz(this.H)};_.g.Be=function(){return this.context.Be()};_.g.mN=function(a){return _.Zh(this.context.Jf.bm.H(a))};_.g.ZR=function(){return _.Zh(this.context.kB.ZR())};
_.g.Y5=function(a,b,c){var d=new _.Uh;if(_.Aj(a,_.nI,3,_.oI)||_.Aj(a,_.EJ,4,_.oI)||_.Aj(a,_.tK,5,_.oI)||_.Aj(a,_.BJ,6,_.oI)||_.Aj(a,_.aJ,7,_.oI)||_.Aj(a,_.UI,8,_.oI)||_.Aj(a,_.YI,9,_.oI)||_.Aj(a,_.xI,10,_.oI)){var e=gwc(a);this.context.Mm().then(function(f){return f.Qe(e,{S9a:b,T9a:c})}).then(function(f){var h=[],k="";if(f instanceof _.uK){h=f.Zc().Bd();var l=_.z(f,2);k=f.Zn()}else if(f instanceof _.GJ)f.getItem()&&h.push(f.getItem()),l=f.tN();else throw Error("xg");d.callback({items:h,Rja:l,pageToken:k})},
function(f){return void d.Gd(f)});return d}throw Error("wg");};_.g.tra=function(){var a=this.context.Xc,b=a.Tf();a="email:"+_.fI(a).getEmail().replace(/@.*$/,"");_.x(b,13,a)};_.g.lja=function(){this.context.Us.dT();var a=this.context.Xc;Uzc(_.UJ(_.fI(a)),_.WJ(a),this.context.Be()).then(null,function(){})};_.g.Rka=function(){return _.cgc[_.ij(this.context.Xc.Tf(),8,0)]};_.g.oea=function(){this.context.tG.H=new Jyc(_.ih().substring(0,8))};
_.g.KT=function(){var a=this.context.tG.LN(),b=null;a&&(b=Lyc(this.context.tG),b={traceId:a,spanRecs:b});a=this.context.tG;a.H=null;a.yZ=[];return _.Zh(b)};_.g.LN=function(){return _.Zh(this.context.tG.LN())};
_.g.getState=function(a){var b=this.context.Oj,c=b.H.bind(b);b={};b.b=this.context.Xc.Ki();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.Jf.bm.getSize();c=this.context.Jf.Tt;var d=c.H;d&&(b.cs_sutd=d.l9,b.cs_ss=d.getSize());b.cs_ch=cxc(c).length;b.cs_td=c.SW().length;if(c=this.context.m7)b.t_cps=c.RZa().getStats().join(",");b.t_id=KCc(this.context);
var e=[];LCc(this.context.YR()).forEach(function(f,h){e.push(h+":"+f.join(";"))});b.t_ct=e.join(",");b.n_a=this.context.Cz?this.context.xk().isConnected():this.context.ZI.UB();b.n_o=this.context.Cz?this.context.xk().Me():this.context.Ij().Me();b.n_csm=!!this.context.Cz;a&&(b.csw_cc=_.Xa(a.channels),b.csw_ac=a.O,b.csw_mcc=a.H);return _.Zh(JSON.stringify(b))};_.g.Oqa=function(){this.oc&&(this.oc.dispatchEvent(new ICc),this.oc.Lt())};
_.g.Ll=function(a){var b=this.context.Cz;b&&a!==b.V&&(b.V=a,b.reset(),a?b.state.update(3):_.Zjc(b))};
var OCc=function(a,b){this.context=a;this.Bg=b;this.H=qnc(_.bK(this.Bg),MCc);this.O=qnc(_.bK(this.Bg),NCc)};
OCc.prototype.$k=function(a){var b=this,c=this.context.KQ.Hf().Hf(),d=(c=c?c.getUser():null)?c.getId():null,e={};a.forEach(function(h){_.Pgc(h);var k=h.getId(),l=b.context.Du();_.Shc(h,3);_.AI(h,5);var p=Bnc(h,!0);h.getCapabilities()||_.QJ(h,new _.sk);_.Q(p,2)&&((p=h.vk())&&p.length?_.x(h,46,p[0]):(_.PJ(h,[l]),_.x(h,46,l)),_.x(h,12,h.Oq()),l=new _.mk,l.Nb(d),_.x(l,6,1),_.Dhc(l,!0),_.Ohc(h,l),_.Nhc(h,[l]),_.cWb(h,1));e[k]=h});a=Object.keys(e);c=this.context.Jf;var f=hvc(c.bm,a);_.Ta(f,function(h,k){NK(h.getItem(),
e[k],b.H);(b.context.Ij().Me()||b.context.xk().Me()||3===h.getItem().Lv())&&NK(h.getItem(),e[k],b.O);_.bb(e,k)});_.Ta(e,function(h){_.xk(h.Xm())&&(f[h.getId()]=new yL(h))});PCc(c,Object.values(f))};
var QCc=function(a,b){var c=[];b.forEach(function(d){c.push(d.getItem())});a.$k(c)},RCc=function(a){a=a.context.Jf;var b=new _.Af;b.Ll(!0);b=jvc(a.bm,b);for(var c=[],d=[],e=0;e<b.length;e++){var f=b[e].getItem();if(3===f.Lv()){var h=new _.qI;_.rI(h,f.getId());_.CI(h);d.push(h)}else h=new _.Ioa,_.JK(h,!1),_.x(h,2,!1),_.G(f,81,h),c.push(b[e])}PCc(a,c);a.Do(d)},MCc=[50],NCc=[12,11,10,67,68];
var SCc=function(a){this.context=a;this.H=null;this.V=!1;this.O=new OCc(a,a.Bg)};_.g=SCc.prototype;_.g.iZ=function(a){this.H=a;this.V=!1;if(a){if(this.H){a=this.mdb.bind(this);var b=this.kdb.bind(this);this.log("Querying all offline items.");this.H.hW().dg(a,b);this.V||(this.H.A0((0,_.L)(this.NAb,this)),this.V=!0)}}else RCc(this.O)};_.g.mdb=function(a){this.log("Processing all offline item(s): "+a.length);this.O.$k(a);OL(this.context.Oj,"GZTDpc")};_.g.kdb=function(){this.log("Error fetching offline items.")};
_.g.NAb=function(a){this.log("Handling offline change(s): "+a.length);QCc(this.O,a)};_.g.log=function(a){this.context.Be().info("drive.ds.sync.offline.LocalDataService",a)};
var tM=function(a){_.qi.call(this);this.context=a;this.Ba="drive.ds.sync.BaseItemService";this.Oc=new _.nf(this);this.ma=null;this.Ua=this.wa=!1;var b=new SCc(a);this.context.ha=b;this.Fa=new JCc(a,this);uoc(this.Fa);a.Xc.dH();this.Ja(this.Oc);this.O=this.context.Oj;this.W=a.jua;this.V=new CCc(a,this.W);a=this.context;b=this.V;a.W=b;a.O.resolve(b);this.jVa()};_.K(tM,_.qi);_.g=tM.prototype;_.g.jVa=function(){};
_.g.initialize=function(){var a=this;if(!this.ma){this.ma=_.Sh();var b=this.context.kk().H(106E3);this.ma.promise.then(function(){b&&b.Bj()},function(){_.rK(a.context.kk(),181008852)});this.context.Be().info(this.Ba,"Initializing "+(_.XJ(this.context.Xc)?"(coldstart) ":"")+" with client build: "+this.context.Xc.Ki());this.Oc.listen(this.context,_.bd,this.syb);this.Oc.listen(this.context.ZI,["fb","gb"],function(c){return void a.dispatchEvent(c)});this.Oc.listen(this.context.xk(),[].concat(_.fc(Object.values(_.VB))),
function(c){return void a.dispatchEvent(c)});this.$a();this.O.start();OL(this.O,"NSockf")}return this.ma.promise};_.g.u_a=function(){this.context.Be().info(this.Ba,"Ready to process requests.");this.wa||(this.wa=!0,this.ma.resolve())};_.g.syb=function(a){var b=a.error,c=b.tg;c&&3===c.getType()&&!this.wa?(this.wa=!0,this.ma.reject(b)):this.dispatchEvent(a)};_.g.Q5=function(){throw uM("teamDriveQuery");};_.g.jra=function(){throw uM("teamDriveFindByIds");};
_.g.kra=function(){throw uM("teamDriveMovePreflight");};_.g.iIa=function(){throw uM("peoplePredictQuery");};_.g.query=function(a){zvc(this.context.Pl,a);this.IF();var b=a.clone();b=this.V.Yya(b);this.Ua||(a=a.re(),a&&121===_.z(a,1)||(this.Ua=!0,this.Oc.listen(b,_.cd,this.mPa)));return b};_.g.mPa=function(a){a=a.currentTarget;if(1===a.Cb()){var b=this.O.H("W6J7De");this.Fa.H=b;this.Oc.Uc(a,_.cd,this.mPa)}};_.g.gt=function(a){this.IF();Csc(a);return this.V.Vya(a.clone())};
_.g.Uwa=function(){throw uM("activityQuery");};_.g.Jxa=function(){throw uM("backupsQuery");};_.g.XIa=function(){throw uM("refreshBackups");};_.g.iW=function(){throw uM("getAndroidBackupItems");};_.g.y9=function(){throw uM("deleteBackup");};_.g.lIa=function(){throw uM("permissionQuery");};_.g.gba=function(){throw uM("insertPermission");};_.g.z9=function(){throw uM("deletePermission");};_.g.ad=function(){throw uM("mutate");};_.g.uO=function(){throw uM("mutateWorkspace");};
_.g.YC=function(){throw uM("bulkMutate");};_.g.Uya=function(){throw uM("createFileUploader");};_.g.DVa=function(a){return new sM(this.context.Mm(),a)};_.g.jt=function(a){if(3===a.getType())return _.$h(this.context.Mm().then(function(b){return b.Qe(a)}).then(null,KK));throw uM("getApps with type "+a.getType());};_.g.yr=function(){throw uM("getApp");};_.g.iba=function(){throw uM("installApp");};_.g.x9=function(){throw uM("deleteApp");};_.g.WT=function(){throw uM("updateApp");};
_.g.RN=function(){throw uM("getUserAccount");};_.g.rH=function(){throw uM("getUserPrefs");};_.g.TS=function(){throw uM("mutateUserPref");};_.g.Cu=function(){throw uM("getRevisions");};_.g.RDa=function(){return!1};_.g.Ll=function(a){this.context.Cz?a?_.$jc(this.context.Cz,!0):this.context.xk().Me()&&this.context.Cz.NM(!0).then(null,function(){}):this.context.Ij().Ll(a)};_.g.nz=function(){throw uM("setOfflineOptIn");};_.g.iZ=function(){throw uM("setLocalItemService");};_.g.IF=function(){};
_.g.WS=function(){this.context.WS();this.context.kk().O(106006)};_.g.J$=function(){return this.Fa};_.g.fZ=function(){};_.g.UB=function(){return this.context.ZI.UB()};_.g.YQ=function(){return _.R(this.context.Xc.Tf(),52,!1)?_.Ph(Zvc(new Yvc,0)):this.context.ZI.YQ()};_.g.isConnected=function(){return 1===this.context.xk().get()};_.g.U8=function(){var a=this.context.Cz;return a?a.NM():_.Ph(_.Pjc(0))};_.g.sync=function(){throw uM("sync");};_.g.Lt=function(){return this.context.Lt()};
_.g.yca=function(){throw uM("offlineDataLoaded");};_.g.npa=function(a){return this.context.Mm().then(function(b){return b.Qe(a)}).then(function(b){return b})};_.g.jya=function(){throw uM("categoryMetadataQuery");};_.g.T8=function(){throw uM("changeCategoryLinks");};_.g.FP=function(){throw uM("updateCategoryMetadata");};_.g.IIa=function(){throw uM("publishedCategoriesQuery");};_.g.JIa=function(){throw uM("publishedCategoryQuery");};_.g.zNa=function(){throw uM("workspaceFindByIdsRequest");};
_.g.dsa=function(){throw uM("workspaceQueryRequest");};_.g.TLa=function(){throw uM("suggestedWorkspaceItemQueryRequest");};_.g.ULa=function(){throw uM("suggestedWorkspaceQueryRequest");};_.g.y0=function(){throw uM("addCacheHint");};_.g.Z0=function(){throw uM("createUserFeedback");};_.g.Do=function(){throw uM("handleChanges");};var uM=function(a){return new _.Hc(a+" is unsupported",_.MI(3))};
var cpc=function(a){tM.call(this,a);this.Ba="drive.ds.sync.AnonymousItemService";a.qz("")};_.K(cpc,tM);cpc.prototype.$a=function(){NL(this.O,["NSockf"],this.u_a.bind(this))};
var TCc=new Set([1,2,4,5,6]),UCc=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.Pe=0};UCc.prototype.Hf=function(){var a=new _.fM;a.Dc(this.status);this.H&&_.lAc(a,VCc(this));return a};
var WCc=function(a,b,c,d){d=void 0===d?!1:d;var e=TCc.has(c);if(1===a.status&&!e)return!1;a.Pe=c;var f=a.status;c=!a.H;if(_.mI(a.O)){var h=(h=b&&b.getUser())&&LK(h);h=!(!h||!sxc(a.ka.H,h));a.status=h&&e||d?1:6}f=!_.wj(a.H,b)||(_.mI(a.O)?a.status!==f:6===a.status&&e);a.H=b.clone();_.mI(a.O)||(a.status=e||d?1:6);c&&(OL(a.ha,"toquGd"),a.W.info("drive.ds.sync.account.InMemoryAccountCache","Account loaded from "+(e?"server":"cache")));f&&a.V.update(0);return f};UCc.prototype.We=function(){return this.Pe};
var VCc=function(a){return a.H?a.H.clone():null};
var XCc=function(a){_.qi.call(this);this.W=a;this.Pe=0};_.K(XCc,_.qi);var YCc=function(a){a=a.clone();var b=function(c){return c.toLowerCase()};xuc(a,_.re(a,4).map(b));yuc(a,_.re(a,5).map(b));return a};XCc.prototype.SQ=function(){};XCc.prototype.yH=function(){return 0!==this.Pe};XCc.prototype.We=function(){return this.Pe};
var ZCc=new Set([1,2,4,5,6]),$Cc=function(a,b,c){XCc.call(this,b);this.V=a;this.O=c;this.apps={};this.H=[];this.status=6;this.vp=!1};_.K($Cc,XCc);$Cc.prototype.jt=function(){var a=new IL;if(!_.ab(this.apps)){_.kj(a,4,this.H);var b=[];_.Ta(this.apps,function(c){b.push(c.clone())});_.mj(a,2,b)}a.Dc(this.status);return a};$Cc.prototype.put=function(a){this.apps[a.getId()]=YCc(a);this.O.update(1);this.dispatchEvent(new _.hi("Hb",this))};$Cc.prototype.remove=function(a){_.bb(this.apps,a)&&this.O.update(1)};
$Cc.prototype.SQ=function(a,b,c){c=void 0===c?!1:c;var d=!ZCc.has(b);1===this.status&&d||(this.Pe=b,aDc(this,a,!d||c),d||this.O.update(1),this.vp||(this.vp=!0,this.V.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache","Apps initialized."),OL(this.W,"nVUlO")))};
var aDc=function(a,b,c){var d=!1,e=c?1:6;d=e!==a.status;a.status=e;e=_.re(b,4);if(!d)if(e.length!==a.H.length)d=!0;else{var f=e.concat(a.H);_.Ga(f);d=f.length!==a.H.length}a.H=e;var h=_.eb(a.apps);_.Egc(a.apps);b=_.yb(b,_.tL,2);d||(d=b.length!==_.Xa(h));b.forEach(function(k){var l=YCc(k);a.apps[k.getId()]=l;d||(k=h[k.getId()],d=!k||!_.wj(l,k))});a.V.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache",(c?"Fresh":"Stale")+" apps loaded: "+b.length);d&&a.dispatchEvent(new _.hi("Hb",a))};
var vM=function(a){_.P.call(this);this.context=a;this.Xy=new Set;this.Dp=6;this.JEa=!0;this.Pe=0;this.Oc=new _.nf(this);this.Ja(this.Oc)};_.K(vM,_.P);_.g=vM.prototype;_.g.Zh=function(a){this.vUa(a);this.Xy.add(a);this.resize(!0);this.VO(a)};_.g.vUa=function(){};_.g.dk=function(a){this.Xy.delete(a);0!=this.Xy.size||this.J1a()?this.resize(!1):this.dispose()};_.g.We=function(){return this.Pe};_.g.ti=function(a){this.Pe=a};_.g.wT=function(a){this.JEa=!1;this.Dp=a};_.g.pW=function(){return this.Dp};
var cDc=function(a,b,c){if(Array.isArray(c)){c.forEach(function(k,l,p){p[l]=k.clone()});var d=c}else{d=[];for(var e=_.m(Object.entries(c)),f=e.next();!f.done;f=e.next()){var h=_.m(f.value);f=h.next().value;if(h=h.next().value)h=h.clone(),c[f]=h,d.push(h)}}bDc(a.context.Jf,d,b);d.forEach(function(k){Iyc(a.context.tPa,k,b);if(k.uc()){var l=k.getCapabilities();zL(k)?l&&(_.x(l,12,_.Q(l,13)),_.x(l,9,!1),_.x(l,21,!1)):PK(k)?(l&&_.x(l,3,!1),_.x(k,30,!1)):l&&(_.x(l,42,!1),_.x(l,43,!1))}k.getCapabilities()||
_.QJ(k,new _.sk)})};vM.prototype.jd=function(){};vM.prototype.$k=function(a,b){var c=this,d=!1;a.forEach(function(e){e=PL(e);d=c.sw(e,!0)||d});b||(1!=this.pW()&&(d=!0),this.wT(1));d&&this.IY()};var dDc=function(a,b){var c=!1;b.forEach(function(d){c=a.sw(d)||c});c&&a.IY();return c};_.g=vM.prototype;_.g.update=function(a){return dDc(this,[a])};_.g.IY=function(){var a=this;this.uUa();this.Xy.forEach(function(b){a.VO(b)})};_.g.uUa=function(){};
_.g.VO=function(a){var b=eDc(this.context).Yla(a);this.W0a(b)||(b=this.lk(b),eDc(this.context).VO(a,b))};_.g.HY=function(a){var b=this;this.wT(3);this.Xy.forEach(function(c){eDc(b.context).HY(c,a)})};_.g.KA=function(){var a=this;this.Xy.forEach(function(b){eDc(a.context).KA(b)});this.ti(0==this.We()?1:6)};_.g.J1a=function(){return!1};_.g.W0a=function(){return!1};
var fDc=function(a){_.hi.call(this,"xb");this.id=a};_.K(fDc,_.hi);
var gDc=function(a,b,c,d){d=void 0===d?!1:d;_.qi.call(this);this.request=a;this.context=b;this.pNa=d;this.ee=null;this.items={};this.W=[];this.V=[];this.H=null;this.originalRequest=c||a;this.O=new Set};_.K(gDc,_.qi);
gDc.prototype.nh=function(){var a=this;if(this.ee)return this.ee.promise;this.ee=_.Sh();for(var b={},c=_.m(this.request.V().entries()),d=c.next();!d.done;b={Lsa:b.Lsa,zfa:b.zfa,vsa:b.vsa},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.vsa=e;b.Lsa=Yrc(Xrc(d),this.request);b.zfa=void 0;this.pNa&&(b.zfa={pNa:!0});this.context.Mm().then(function(f){return function(h){return h.Qe(f.Lsa,f.zfa)}}(b)).then(function(f){return void hDc(a,f)},function(f){return function(h){var k=f.vsa;h=
_.xd(h);5===h.tg.gB()||4===h.tg.Wj()?(a.context.Be().info("drive.ds.sync.query.ViewCacheFindByIdsRunner","Deleting "+k+" due to: "+h.message),a.V.push(k),iDc(a)):a.handleError(h)}}(b))}return this.ee.promise};var hDc=function(a,b){b.Zc().Bd().forEach(function(c){_.AI(c,1);a.W.push(c)});iDc(a)},iDc=function(a){a.H||(a.H=_.n.setTimeout(a.ha.bind(a),10))};
gDc.prototype.ha=function(){_.n.clearTimeout(this.H);this.H=null;jDc(this);kDc(this);this.O.size===this.request.V().length?(this.context.Jf.$k([],1,this.originalRequest,!1),this.dispatchEvent("zb"),this.ee.resolve(this.items)):this.dispatchEvent("wb")};
var jDc=function(a){var b=a.W;a.W=[];b=a.context.Hga.e$(b);if(_.KI(_.fI(a.context.Xc))){var c=a.context.Jf.bm;_.Ma(b,function(d){var e=c.H(d.getId());e&&_.PJ(d,e.vk())})}b.forEach(function(d){a.O.add(d.getId());a.items[d.getId()]=d});a.context.Jf.$k(b,1,a.originalRequest,!0)},kDc=function(a){var b=a.V;a.V=[];b.forEach(function(c){var d=_.CI(_.rI(new _.qI,c));a.context.Jf.Do([d]);a.O.add(c);a.items[c]=null;a.dispatchEvent(new fDc(c))})};
gDc.prototype.handleError=function(a){var b=new XL(a.tg,_.xj(this.context.Xc.Tf(),1,1));this.context.Jf.PB(this.request,b);this.dispatchEvent(b);this.ee.reject(a)};
var lDc=function(a,b,c,d){vM.call(this,a);this.Bg=b;this.request=c;this.Dd={};this.H=null;this.O=_.IJ(a.Xc)||new _.aic;d&&this.$k(d,!0)};_.K(lDc,vM);
lDc.prototype.refresh=function(){var a=this;if(this.H)return this.H.promise;this.Dp=6;if(_.R(this.request,5,!1))return this.wT(1),_.Ph();var b=this.JEa?!knc(_.bK(this.Bg),this.request.H()):!1,c=[],d=this.context.Du();this.request.V().forEach(function(h){if("root"!==h&&h!==d){var k=a.Dd[h],l=k&&k.getItem();if(k=!k||l&&1!==l.Lv()||b)l=l&&l.Xm(),k=!(l&&_.Q(l,2));k&&c.push(h)}});if(0===c.length)return this.$k([],!1),_.Ph();this.H=_.Sh();this.H.promise.then(function(){a.H=null},function(){a.H=null});var e=
this.request.clone();_.cG(e,c);var f=new gDc(e,this.context,this.request);this.context.Ij().Me()?(this.Oc.listen(this.context.Ij(),"rb",function(h){h.Me()||(a.Oc.Uc(a.context.Ij(),"rb"),mDc(a,f,a.H))}),this.Dp=0<Object.values(this.Dd).length?1:2):(this.context.xk().Me()&&(this.Dp=0<Object.values(this.Dd).length?1:2),mDc(this,f,this.H));return this.H.promise};var mDc=function(a,b,c){a.Oc.listen(b,"xb",function(d){a.Dd[d.id]=null});a.KA();b.nh().then(function(){c.resolve()},c.reject)};_.g=lDc.prototype;
_.g.ija=function(a){var b=this;if(this.context.Pl.equals(a,this.request,!0)){if(knc(_.bK(this.Bg),a.H()))return!0;if(knc(this.request.H(),a.H(),_.bK(this.Bg))){if(this.JEa)return!0;if(_.R(this.O,5,!1))return this.request.V().every(function(c){return(c=b.Dd[c])&&_.Q(c.getItem(),31)})}}return!1};
_.g.lk=function(a){var b=new _.jK;_.mI(this.context.Xc)?b.Dc(ync(Object.values(this.Dd))?6:this.Dp):b.Dc(this.Dp);b.ti(this.We());rsc(b,_.Va(this.Dd,function(c){return c?c.getItem():null}));cDc(this,a.H(),b.lt());return b};_.g.resize=function(){};_.g.jd=function(){return this.request};_.g.getSize=function(){return Object.values(this.Dd).length};
_.g.sw=function(a){var b=this.As(a.O),c=this.As(a.H);if(b||c)c?(this.Dd[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Dd[a.id]=null,a.O.count--);else return!1;return!0};_.g.As=function(a){return!!a&&_.pa(this.request.V(),a.getId())};
var nDc=function(a,b){_.hi.call(this,a);this.changes=b};_.K(nDc,_.hi);
var oDc=function(a){var b=new Qxc;if(a.Vf()){var c=a.Vf();b.H=!1;b.suggestionSessionId=c}a instanceof _.kK&&_.yb(a,_.mk,6).length?(a=_.yb(a,_.mk,6),b.H=!1,b.V=a):a instanceof _.eI&&(a.i7()||a.dua()||a.Ila().length)&&(c=a.i7(),b.H=!1,b.W=c,c=a.dua()||!1,b.H=!1,b.incompleteSearch=c,a=a.Ila(),b.H=!1,b.O=a);return b};
var wM=function(a,b,c,d,e,f,h,k,l){l=void 0===l?"":l;_.qi.call(this);this.Ua=a;this.Ba=b;this.Pa=c;this.ta=d;this.$a=e;this.request=f;this.nextPageToken=l;this.W=0;this.wa=!1;this.V=[];this.O=!1;this.ka=0;this.Fa=new Set;this.ma=h||!1;this.Ka=k||!1;this.Ia=this.EIa(f);this.ha=new Qxc};_.K(wM,_.qi);var pDc=function(a){return!a.wa||""!==a.nextPageToken},rDc=function(a,b){a.W=b;return a.V.length<a.W&&!a.O&&pDc(a)?qDc(a):_.Zh()};wM.prototype.$b=function(){return this.V.length};wM.prototype.H=function(){return this.V.slice()};
var qDc=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 _.Uh;d.addCallback(function(h){sDc(a,c,h)});var e=_.Omc(_.Pmc(new _.nI,a.Ia),c),f=_.Mmc(new _.sfc,b);a.Ka&&_.x(f,10,!0);_.Nmc(e,f);a.wa=!0;a.O=!0;a.Ba.then(function(h){return h.Qe(e)}).then(function(h){tDc(a,d,h)},function(h){a.handleError(d,f,h)});return d},tDc=function(a,b,c){a.O=!1;if(c instanceof _.kK)var d=c;else d=c.Zc(),a.nextPageToken=c.Zn()||"";a.ha=oDc(d);a.ha.lc()||
a.dispatchEvent("yb");b.callback(d.Bd())};wM.prototype.handleError=function(a,b,c){var d=this;c=_.xd(c);this.O=!1;if(5===c.tg.gB())a.callback([]);else{if(10===c.tg.gB()&&(_.Mmc(b,Math.ceil(_.xj(b,1,1E3)/2-2E-15)),1<_.xj(b,1,1E3))){var e=_.Nmc(_.Omc(_.Pmc(new _.nI,this.Ia),this.nextPageToken),b);this.O=!0;this.Ba.then(function(h){return h.Qe(e)}).then(function(h){tDc(d,a,h)},function(h){d.handleError(a,b,h)});return}var f=new XL(c.tg,_.xj(this.Pa.Tf(),1,1));this.nPa(f);this.dispatchEvent(f);a.Gd(c)}};
var sDc=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: ")+(_.hjc(a.request)+" paginationToken: ")+b;b=_.Eo(_.Co(_.uI(_.tI(new _.Gc,2),9),f));a.$a(new _.Ic(new _.Hc(f,b)));break}d.add(f.getId())}f=c.filter(function(h){var k=a.Fa.has(h.getId());a.Fa.add(h.getId());return!k});a.ka+=c.length-f.length;c=_.m(f);for(b=c.next();!b.done;b=c.next())_.AI(b.value,a.ma?
2:1);c=[];b=_.m(a.d5a(f));for(f=b.next();!f.done;f=b.next())f=f.value,a.V.push(f.getId()),f=_.rI(new _.qI,f.getId()).setItem(f),c.push(f);c.length&&a.dispatchEvent(new nDc("wb",c));a.V.length<a.W&&a.nextPageToken?qDc(a):a.dispatchEvent("zb")};_.g=wM.prototype;_.g.d5a=function(a){return a};_.g.nPa=function(){};_.g.jd=function(){return this.request};_.g.EIa=function(a){a=a.clone();this.ma&&_.x(a,46,!0);return a};_.g.log=function(a){this.Ua.info("drive.ds.sync.query.QueryRunner",a)};
var uDc=function(a,b,c,d){wM.call(this,a.Be(),a.Mm(),a.Xc,a.Jf.bm,a.dispatchEvent,b,void 0,c,d);this.context=a};_.K(uDc,wM);uDc.prototype.d5a=function(a){a=this.context.Hga.e$(a);this.context.Jf.$k(a,1,this.request,pDc(this));return a};uDc.prototype.nPa=function(a){this.context.Jf.PB(this.request,a)};uDc.prototype.EIa=function(a){var b=a=wM.prototype.EIa.call(this,a),c=_.kl(b);0===_.re(b,33).length&&1===c.length&&(c=this.ta.H(c[0].Wa()))&&(c=c.uc())&&(_.ml(b,[c]),_.nl(b,2));vDc(this,a);return a};
var vDc=function(a,b){if(_.kl(b).some(function(d){return(d=a.ta.H(d.Wa()))&&_.Q(d,108)})){var c=b.re();c||(c=new _.Lf,_.ll(b,c));_.Mf(c,937)}};
var wDc=function(a,b,c,d){this.context=a;this.Bg=b;this.V=d;this.ppa=0;this.O=c},ADc=function(a,b){if(b){a.log("Processing potential rejoin for TD: "+b);var c=_.nl(_.hl(_.ml(new _.Af,[b]),_.bK(a.Bg)),1),d=_.Mf(new _.Lf,306);_.ll(c,d);xDc(a);c=new uDc(a.context,c);rDc(c,5E3).addCallback(a.H.bind(a,c));yDc(a);zDc(a,b)}},yDc=function(a){var b=_.Ya(a.O).filter(function(d){return d instanceof lDc}),c=new Set;b.forEach(function(d){d.jd().V().forEach(function(e){a.V.get(e)||c.add(e)})});b=_.Mf(new _.Lf,
310);a.log("Re-querying missing find-by-ids :"+c.size);a.WO([].concat(_.fc(c)),b)},zDc=function(a,b){var c=[];(a.context.Jf.OIa.eR[b||"subscribed"]||[]).forEach(function(d){_.Ta(a.O,function(e){_.wj(e.jd(),d)&&c.push(e)})});_.Ga(c);0<c.length&&(xDc(a),c.forEach(function(d){d=gL(a.context.Pl,d.jd(),3);a.log("Refreshing "+b+" cache: "+d)}),_.Rh(c.map(function(d){return d.refresh().then(null,_.cg)})).then(function(){BDc(a)},function(){BDc(a)}))};
wDc.prototype.WO=function(a,b,c,d,e){var f=this;c=void 0===c?!1:c;a=a.filter(function(k){return!_.Se(k)});if(0===a.length)return _.Ph({});a=_.x(_.bG(_.cG(new _.aG,a),d||_.bK(this.Bg)),7,!0);_.dG(a,b);e&&e.length&&_.mj(a,11,e);xDc(this);var h=new gDc(a,this.context,void 0,c);b=h.nh();b.then(function(){f.H(h)},function(){f.H(h)});return b};wDc.prototype.H=function(a){a.dispose();BDc(this)};var xDc=function(a){a.ppa++;a.context.Us.setActive(!1)},BDc=function(a){a.ppa--;0===a.ppa&&a.context.Us.setActive(!0)};
wDc.prototype.log=function(a){this.context.Be().info("drive.ds.sync.cache.CacheRefresher",a)};
var CDc=function(a,b,c){_.P.call(this);this.context=a;this.H=b;this.request=c;this.O=this.ee=null;a=new _.Lf;_.Nf(a,!1);_.Mf(a,305);_.ll(this.request,a);this.Oc=new _.nf(this);this.Ja(this.Oc)};_.K(CDc,_.P);
CDc.prototype.nh=function(){if(!this.ee){this.ee=_.Sh();if(_.R(this.request,48,!1))return this.H.ti(9),this.ee.resolve(this.H),this.ee.promise;this.O=new wM(this.context.Be(),this.context.Mm(),this.context.Xc,this.context.Jf.bm,this.context.dispatchEvent,this.request,!0);this.Oc.listen(this.O,"wb",this.W);this.Oc.listen(this.O,"zb",this.V.bind(this));this.Oc.listen(this.O,"Ab",this.ee.reject.bind(this.ee));rDc(this.O,this.request.xi())}return this.ee.promise};
CDc.prototype.W=function(a){a=_.m(a.changes);for(var b=a.next();!b.done;b=a.next())b=b.value.getItem(),this.H.update(PL(new yL(b)))};CDc.prototype.V=function(){this.H instanceof RL?this.H.H=!pDc(this.O):pDc(this.O)&&QL(this.H,!1);this.H.ti(5);this.ee.resolve(this.H)};
var EDc=function(a,b){_.hi.call(this,DDc);this.cache=a;this.changes=b};_.K(EDc,_.hi);var DDc="Ib";
var FDc=function(a,b){return new _.Oh(function(c,d){b.then(function(e){for(var f=new Map,h=_.m(a.Ey()),k=h.next();!k.done;k=h.next()){k=k.value;var l=k.getId();Cnc(k.getItem());f.set(l,Tuc(new yL(k.getItem()),k.H))}h=_.m(e.items);for(k=h.next();!k.done;k=h.next())k=k.value,l=k.qc(),l=f.get(l)||null,_.BI(k)?l&&a.update(new Pwc(l.getId(),l,null)):(k=k.getItem(),Cnc(k),a.update(Qwc(l,Tuc(new yL(k),null===l||void 0===l?void 0:l.H))));a.aY();c(e.rPb)},d)})};
var GDc=function(a,b){_.P.call(this);this.context=a;this.Bg=b};_.K(GDc,_.P);
GDc.prototype.nh=function(a){this.log("Running initial view populator (IVDP).");try{var b=new vL(JSON.parse(a))}catch(l){this.handleError("Error parsing initial view dump.",_.NI(l));return}a=_.fI(this.context.Xc);if(!_.KI(a)){var c=b.Hf();if(c){var d=c.getUser();d&&d.getId()===_.C(a,6,"")&&WCc(this.context.KQ,c,4)}(a=b.Du())&&this.context.qz(a,6)}var e=_.z(b,3)||void 0;e&&HDc(this.context,e,!0);if((a=_.yb(b,_.Ro,9))&&a.length){c=(c=this.context.Xc.Tf())&&_.re(c,30)||[];var f=new Set(c);a.forEach(function(l){(l=
(l=l.getKey())&&_.To(l))&&f.add(l)});this.context.FE.SQ(a,4,[].concat(_.fc(f.values())))}a=b.Bd();a.forEach(function(l){_.Pgc(l);_.AI(l,6)});if(c=_.yb(b,uL,5)[0])if(b=this.context.Pl,snc(_.bK(this.Bg),c.getQuery().H(),_.WJ(this.context.Xc)))if((d=c.getQuery().Lc())&&4===d.getType()&&!_.Icc())this.handleError("Invalid initial view data, natural sort unsupported");else{if(0<a.length){d=BL(b,c.getQuery());d.cj(_.z(c,2)||void 0);b=a.map(function(l){return new yL(l,void 0,1,e)});var h=_.y(c,_.Bk,3);if(h&&
_.z(c,2)){var k=b[b.length-1];_.AI(h,6);if(!_.wj(h,k.getItem())){this.handleError("Invalid last item in initial view data.");return}}k=new RL(this.context.Ct,this.context.Uv,this.context.Pl,d,k,c.Zn()||"");k.ti(4);d=c=0;b=_.m(b);for(h=b.next();!h.done;h=b.next())k.update(PL(h.value))?c++:d++;IDc(this.context.Jf,k);b=k.jd();this.log("Imported "+c+" initial view items (IVDP) successfully ("+d+" failed) into the cache hint corpus cache. Query: "+k.pN());k=new _.nI;_.Pmc(k,b);k=_.rkc(this.context.kB,
k,"IVDP");_.skc(k,a);OL(this.context.Oj,"W6J7De")}}else this.handleError("Invalid initial view data, fields: "+xvc(b,c.getQuery().H()));else this.handleError("No initial query found")};GDc.prototype.handleError=function(a,b){var c=b?void 0:_.Eo(_.uI(_.tI(new _.Gc,2),6));b=new _.Hc(a,c,b);this.context.HJ(b.tg);this.log("Initial view dump population failed. Message: "+a);OL(this.context.Oj,"DEJoH")};GDc.prototype.log=function(a){this.context.Be().info("drive.ds.sync.cache.InitialViewPopulator",a)};
var JDc=function(a){_.qi.call(this);this.context=a;this.W="drive.ds.sync.cache.CorpusCachePopulator";this.V=0;this.O=new TL(a.Ct,a.Uv,a.Oj,function(){return a.Du()});this.H=this.context.Xc;this.ta=new Twc(a.Ct,a.Uv)};_.K(JDc,_.qi);
var KDc=function(a,b){var c=_.xj(a.H,31,2E4);b="number"===typeof _.z(b,3)?_.z(b,3):c+1;b>c?(QL(a.O,!1),c="partialCorpus",a.log("Too many subscribed items at "+b+"; skipping subscribed cache.")):(c="fullCorpus",a.log("Caching all subscribed items."));a.context.kB.Hb("CachedCorpusType",c)};JDc.prototype.log=function(a,b){this.context.Be().log(this.W,a,b||"info")};var LDc=function(a,b){0===a.V&&(a.V=b)};
var MDc=function(a,b){var c;if(c=!!b&&!!b.Vh())a=_.Q(a,4),c=null==a||!!_.Q(b.Vh(),7)==a;return c};
var NDc=function(a,b){_.qi.call(this);this.context=a;this.request=b;this.V=[];this.nextPageToken="";this.H=this.O=!1};_.K(NDc,_.qi);NDc.prototype.nh=function(){return this.H||this.O&&""===this.nextPageToken?_.Zh():ODc(this)};NDc.prototype.$b=function(){return this.V.length};
var ODc=function(a){a.O=!0;a.H=!0;var b=krc(lrc(new _.EJ,a.request),a.nextPageToken),c=_.rkc(a.context.kB,b);return _.$h(a.context.Mm().then(function(d){return d.Qe(b)}).then(function(d){var e=d.Zc().Bd();a.nextPageToken=d.Zn()||"";PDc(a,c,e)},function(d){return void a.handleError(d)}))},PDc=function(a,b,c){_.skc(b,c);for(b=0;b<c.length;b++)_.AI(c[b],1);a.context.Jf.$k(c,1,a.request,!a.O||""!==a.nextPageToken);var d=[];_.Ma(c,function(e){this.V.push(e.getId());e=_.rI(new _.qI,e.getId()).setItem(e);
d.push(e)},a);d.length&&a.dispatchEvent(new nDc("wb",d));a.nextPageToken?ODc(a):(a.H=!1,a.dispatchEvent("zb"))};NDc.prototype.handleError=function(a){this.H=!1;a=new XL(_.vI(a),_.xj(this.context.Xc.Tf(),1,1));this.dispatchEvent(a)};NDc.prototype.jd=function(){return this.request};
var QDc=function(a){this.H=_.Jcc(a,{numeric:!0})};QDc.prototype.sort=function(a){_.Ka(a,this.compare.bind(this))};QDc.prototype.compare=function(a,b){a=a.getItem();b=b.getItem();var c=this.H(a.getTitle(),b.getTitle());return 0===c?_.Ha(a.getId(),b.getId()):c};
var RDc=function(a,b,c,d){d=void 0===d?!1:d;vM.call(this,a);this.Bg=b;this.Dd=[];this.ee=null;this.request=c.clone();this.cw=new NDc(a,this.request);this.jUb=new QDc(YK(_.fI(a.Xc)));this.VEa=null!=_.Q(this.request,6);_.ef(this,this.lqb,this);d&&(this.ee=_.Sh(),this.ee.resolve())};_.K(RDc,vM);_.g=RDc.prototype;_.g.refresh=function(){3===this.Dp&&(this.Dp=6,this.ee=null);return this.vda()};_.g.isInitialized=function(){return!!this.ee};
_.g.vda=function(){var a=this;if(this.isInitialized())return this.ee.promise;this.ee=_.Sh();this.context.Ij().Me()?this.Oc.listen(this.context.Ij(),"rb",function(b){b.Me()||(a.Oc.Uc(a.context.Ij(),"rb"),a.KA(),a.cw.nh().dg(a.ee.resolve,a.ee.reject,a.ee))}):this.context.xk().Me()?this.Oc.hd(this.context.xk(),[_.VB.$L,_.VB.bV],function(){a.KA();a.cw.nh().dg(a.ee.resolve,a.ee.reject,a.ee)}):(this.KA(),this.cw.nh().dg(this.ee.resolve,this.ee.reject,this.ee));return this.ee.promise};_.g.resize=function(){};
_.g.jd=function(){return this.request};_.g.Ey=function(){return this.Dd};_.g.ija=function(a){return this.context.Pl.equals(a,this.request)};_.g.lk=function(a){a=a.xi();this.jUb.sort(this.Dd);var b=goc(_.Da(this.Dd,0,Math.min(a,this.Dd.length)));cDc(this,Nrc(this.Bg),b);var c=new _.eI;c.iB(b);c.Dc(this.Bya(a));c.ti(this.We());frc(c,a<this.Dd.length||!(this.context.Ij().Me()||this.context.xk().Me())&&1!==this.Dp);return c};
_.g.Bya=function(a){return 1===this.Dp||a<=this.Dd.length?1:this.context.Ij().Me()||this.context.xk().Me()?0<this.Dd.length?1:2:6};_.g.$k=function(a,b){this.isInitialized()&&vM.prototype.$k.call(this,a,b)};_.g.sw=function(a,b){b=void 0===b?!1:b;if(!this.isInitialized())return!1;var c=a.id,d=_.na(this.Dd,function(h){return h.getId()===c}),e=!!d;b=this.As(a.H,b);var f=a.O;d&&(f=d,e=!0);if(e||b)e?b?this.UMa(f,a.H):this.DJ(f):this.qS(a.H);else return!1;return!0};_.g.qS=function(a){this.Dd.push(a);a.count++};
_.g.DJ=function(a){_.ya(this.Dd,a);a.count--};_.g.LAa=function(a){return _.oa(this.Dd,a)};_.g.UMa=function(a,b){this.Dd[this.LAa(a)]=b;b.count++;a.count--};_.g.As=function(a,b){b=void 0===b?!1:b;if(!a)return!1;if(this.VEa&&null!=_.Q(this.request,6)){if(b)return!0;var c=a.getId();b=!!this.Dd.find(function(d){return c===d.getId()},this);a=zL(a.getItem())&&MDc(this.request,a.getItem());return b&&a}return zL(a.getItem())&&MDc(this.request,a.getItem())};_.g.lqb=function(){this.Dd.forEach(function(a){a.count--})};
_.g.J1a=function(){return!0};_.g.getType=function(){return"TeamDriveViewCache"};_.g.getSize=function(){return this.Dd.length};_.g.aY=function(){this.Dp=1};
var SDc=function(a){this.H=a},TDc=function(a,b,c,d,e){if(0===e||null===b){var f=new IAc;_.x(f,2,b);_.x(f,1,d);return _.Ph(f)}var h=$vc();_.x(h,2,b);c&&_.x(h,3,c);return a.H.then(function(k){return k.Qe(h)}).then(function(k){var l,p=null!==(l=k.Ky())&&void 0!==l?l:null;return TDc(a,p,c,d+_.z(k,1),e-1)})};
var UDc=function(a,b){JDc.call(this,a);this.Bg=b;this.ha=void 0;this.ka=null;this.ma=!1;this.cE=void 0;this.W="drive.ds.sync.cache.LocalDumpPopulator"};_.K(UDc,JDc);UDc.prototype.handleError=function(){this.log("Local dump population failed.");OL(this.context.Oj,"mrK8ic")};
UDc.prototype.nh=function(){var a=this;if(this.ka)return this.ka;if(this.context.mR){var b=new _.Uh;this.ka=b;this.initialize().then(function(){var c=_.yb(_.ZK(a.H),XK,11);c=c[0]&&c[0].getKey()||"";return VDc(a,a.context.mR,c,4)}).then(null,function(c){if(_.R(a.H,8,!0))return WDc(a,c);throw c;}).then(function(){_.mI(a.H)||a.context.Jf.Lq.H.clear();OL(a.context.Oj,"zaOY7");b.callback()},function(c){LDc(a,8);a.handleError();b.Gd(c)});return b}this.handleError();return _.ai(Error("yg"))};
UDc.prototype.initialize=function(){var a=this;return _.Ph(this.context.mR.initialize()).then(function(){if(!_.XJ(a.H)){var b=_.xj(_.ZK(a.H),7,432E6);b&&(a.ha=Date.now()-b);return new _.Oh(function(c,d){dAc(a.context.UD).then(function(e){e?c():d(Error("zg"))})})}})};
var VDc=function(a,b,c,d){var e;return _.Zf(function(f){return 1==f.H?(e=a.ha,XDc(a,b,c,e),YDc(a,b,c,e),ZDc(a,b,c,e),_.Sf(f,$Dc(a,b,c,e),2)):_.Sf(f,Promise.all([aEc(a,b,c,d,e),bEc(a,b,c,d,e),cEc(a,b,c,d,e),dEc(a,b,c,d,e)]),0)})},XDc=function(a,b,c,d){var e=function(){return a.log("Failed to load account from storage.")};bM(b,c,0,void 0,d,a.cE).then(function(f){f[0]?WCc(a.context.KQ,f[0],a.We(),_.XJ(a.H)):e()},function(){return e()})},YDc=function(a,b,c,d){var e=function(){return a.log("Failed to load apps from storage.")};
bM(b,c,1,void 0,d,a.cE).then(function(f){f[0]?a.context.P_.SQ(f[0],a.We(),_.XJ(a.H)):e()},function(){return e()})},ZDc=function(a,b,c,d){var e=function(){return a.log("Failed to load user prefs from storage.")};bM(b,c,5,void 0,d,a.cE).then(function(f){if(f[0]){f=f[0];var h=_.yb(f,_.Ro,1);h.length&&a.context.FE.SQ(h,a.We(),_.re(f,2),_.XJ(a.H))}else e()},function(){return e()})},aEc=function(a,b,c,d,e){var f=new _.cn;bM(b,c,3,1,e,a.cE).then(function(h){return eEc(a,h[0])}).then(function(h){if(h){b!==
a.context.mR||snc(_.re(h,12),_.bK(a.Bg),_.WJ(a.H))||(a.log("Disabling dump updater due to inconsistent fields.","warning"),a.context.Us.dT());var k=_.z(h,3);if(!k||0>k)throw Error("Cg");a.context.qz(h.Du(),d);k=_.z(h,3);"number"===typeof k&&HDc(a.context,Number(k));if(_.XJ(a.H)||_.VJ(a.H))a.log((_.XJ(a.H)?"Coldstart":"Background")+": Firing INITIAL_CHANGES_PROCESSED."),a.context.hGa();a.$k(h,d);f.resolve()}else f.reject("Failed to load cache hints from storage.")},function(h){return f.reject(h)});
return f.promise},bEc=function(a,b,c,d,e){return fEc(a,2,b,c,d,e).then(function(){var f,h;return null===(f=_.IJ(a.H))||void 0===f||!_.R(f,17,!1)||null!==(h=a.O)&&void 0!==h&&h.ND?Promise.resolve():fEc(a,5,b,c,d,e)},function(){var f;return(null===(f=_.IJ(a.H))||void 0===f?0:_.R(f,17,!1))?fEc(a,5,b,c,d,e):Promise.reject(Error("Ag"))})},fEc=function(a,b,c,d,e,f){var h=new _.cn;bM(c,d,3,b,f,a.cE).then(function(k){k[0]?(a.$k(k[0],e),h.resolve()):h.reject(Error("Bg"))},function(k){return h.reject(k)});
return h.promise},cEc=function(a,b,c,d,e){var f=new _.cn;bM(b,c,3,4,e,a.cE).then(function(h){h.forEach(function(k){a.$k(k,d)});f.resolve()},function(h){return f.reject(h)});return f.promise},dEc=function(a,b,c,d,e){var f=new _.cn;bM(b,c,3,3,e,a.cE).then(function(h){h.length?h.forEach(function(k){a.$k(k,d)}):OL(a.context.Oj,"rVezo");f.resolve()},function(h){return f.reject(h)});return f.promise},$Dc=function(a,b,c,d){var e=new _.cn;bM(b,c,6,void 0,d,a.cE).then(function(f){f=_.m(f);for(var h=f.next();!h.done;h=
f.next())h=h.value,_.yb(h,LL,1).length&&(a.log("Importing "+_.yb(h,LL,1).length+" people into the PeopleCache."),h=_.yb(h,LL,1),nxc(a.context.Jf.Lq.H,h,2));e.resolve()},function(f){return e.reject(f)});return e.promise},eEc=function(a,b){var c=_.z(b,3);if(c&&!_.XJ(a.H)){var d=new SDc(a.context.Mm()),e=_.xj(_.ZK(a.H),13,5);return TDc(d,c,null,0,e).then(function(f){return _.ej(f,2)?(a.log("Encrypted dump too stale."),a.context.kk().O(106007),LDc(a,9),null):b},function(){return b})}return _.Ph(b)},WDc=
function(a,b){var c=cM(a.context.fM.nj()),d=_.yb(_.ZK(a.H),XK,11).filter(function(e){return e.wt()});return Wzc(_.UJ(_.fI(a.H)),_.WJ(a.H),_.xj(_.ZK(a.H),10,0)||0,_.bK(a.Bg),a.ha||0,d.map(function(e){return _.z(e,1)}),c).then(function(e){if(e){var f=d.find(function(l){return e.V===_.z(l,1)}),h=new dM(_.Ph(e),a.context.Be(),null,!0),k=new Uyc(h,a.H,function(l){a.context.HJ(l)});k.initialize();a.ma=!0;return VDc(a,k,f?f.getKey():null,8).then(function(){return h.getMetadata([aAc])}).then(function(l){l[0]?
(l=l[0].Wa(),l=a.context.UD.set(aAc,l)):l=Promise.resolve();return l}).then(function(){h.close()})}return _.Qh(new _.Hc("No compatible dumps to forklift were found.",null,b))})},kEc=function(a,b,c){var d;switch(b.Xo()){case 1:return gEc(a,b,c);case 2:return hEc(a,b,a.O);case 5:return(null===(d=_.IJ(a.H))||void 0===d?0:_.R(d,17,!1))?hEc(a,b,a.ta):null;case 3:return iEc(a,b);case 4:return jEc(a,b);default:return null}},gEc=function(a,b,c){var d=[];_.yb(b,uL,5).forEach(function(e){var f=void 0,h=_.y(e,
_.Bk,3);h&&(_.Pgc(h),_.Q(a.H,67)&&fnc(h,vnc),_.AI(h,c),f=new yL(h));var k=e.getQuery();if(!_.R(k,48,!1)||_.yb(a.H,_.Af,44).some(function(l){if(!_.R(l,48,!1))return!1;l=BL(a.context.Pl,l,!0);return _.wj(l,k)}))e=new RL(a.context.Ct,a.context.Uv,a.context.Pl,k,f),e.ti(a.We()),d.push({cache:e,changes:$L(a.context.Cx,null)})});return d},hEc=function(a,b,c){b=_.y(b,yoc,11);if(!b)throw Error("Dg");KDc(a,b);return c.ND?(c.ti(a.We()),[{cache:c,changes:$L(a.context.Cx,null)}]):[]},jEc=function(a,b){return _.yb(b,
uL,5).map(function(c){c=new RDc(a.context,a.Bg,_.y(c,_.RH,5),!0);c.ti(a.We());return{cache:c,changes:$L(a.context.Cx,null)}})},iEc=function(a,b){var c=_.re(_.yb(b,uL,5)[0].getQuery(),33)[0],d=_.z(b,3)||void 0;b=$L(a.context.Cx,c);xM(a.context).addCallback(function(f){f.dxa(c,d)});var e=new VL(a.context.Ct,a.context.Uv,c);e.ti(a.We());return[{cache:e,changes:b}]};
UDc.prototype.$k=function(a,b){var c=this,d=kEc(this,a,b);if(d&&0!==d.length){for(var e=_.m(a.Bd()),f=e.next();!f.done;f=e.next()){var h=f.value;_.Pgc(h);_.Q(this.H,67)&&fnc(h,vnc);_.AI(h,b);_.mI(this.H)||this.context.Jf.Lq.H.lc()||Jxc(this.context.Jf.Lq,[h]);f=new yL(h);_.re(a,14).includes(h.getId())&&Tuc(f,!0);for(h=0;h<d.length;h++)d[h].cache.update(PL(f))}d.forEach(function(k){var l=k.cache;c.dispatchEvent(new EDc(l,k.changes));c.log("Imported "+l.getSize()+" items into the "+l.getType());var p=
null;l instanceof VL&&(p=l.uc());c.context.eba.promise.then(function(){aM(c.context.Cx,p)})});1===a.Xo()&&OL(this.context.Oj,"ZA9qG")}else this.log("Ignoring corpus cache for "+a.Xo()+".")};UDc.prototype.We=function(){return this.ma?7:3};
var lEc=function(a){_.P.call(this);this.context=a};_.K(lEc,_.P);lEc.prototype.nh=function(a){try{return mEc(this,new MBc(JSON.parse(a)))}catch(b){return this.handleError("Error parsing prefetched request.",b),Promise.resolve()}};
var mEc=function(a,b){a.log("Running prefetched request populator for "+b.getKey()+".");switch(b.getKey()){case 1:case 3:b=nEc(a,b);break;case 4:b=oEc(a,b);break;case 6:b=pEc(a,b);break;case 2:b=qEc(a,b);break;case 7:b=rEc(a,b);break;case 5:b=Promise.all(_.yb(_.Aj(b,OBc,7,QBc),MBc,1).map(function(c){mEc(a,c)}));break;default:return a.handleError("Unsupported prefetched request."),Promise.resolve()}return b},nEc=function(a,b){var c=_.Aj(b,_.Af,2,PBc);b=JSON.parse(_.zj(b,3,QBc)||"{}");var d=new _.nI;
_.Pmc(d,c);return a.context.YR().iua.convert(d,{headers:{},text:"",json:b}).then(function(e){sEc(a,c,e.Zc())})},pEc=function(a,b){return sEc(a,_.Aj(b,_.Af,2,PBc),_.Aj(b,_.eI,9,QBc))},sEc=function(a,b,c){for(var d=c.Bd(),e=_.m(d),f=e.next();!f.done;f=e.next())_.AI(f.value,7);c=oDc(c);a=a.context.Jf;b=BL(a.context.Pl,b);e=yM(a,b);a.log("Initializing cache with "+d.length+" items for key '"+e+"'");f=a.V[e];f||(f=new zM(a.context,b),f.ti(2),tEc(a,e,f));c.lc()||f.hua(c);a.$k(d,1,b);return Promise.resolve()},
qEc=function(a,b){_.Aj(b,_.nD,4,PBc);b=_.Aj(b,_.Xz,5,QBc);var c=a.context.Xc.Tf();c=c&&_.re(c,30)||[];var d=new Set(c);_.yb(b,_.Ro,3).forEach(function(e){(e=(e=e.getKey())&&_.To(e))&&d.add(e)});a.context.FE.SQ(_.yb(b,_.Ro,3),2,[].concat(_.fc(d.values())));return Promise.resolve()},oEc=function(a,b){a.context.Iga.I3(_.Aj(b,ML,8,QBc).Zk(),_.Aj(b,_.bA,6,PBc),2,!1);return Promise.resolve()},rEc=function(a,b){var c=_.Aj(b,_.$z,10,PBc);b=JSON.parse(_.zj(b,3,QBc)||"{}");return a.context.YR().iua.convert(c,
{headers:{},text:"",json:b}).then(function(d){DCc(a.context).I3([d],c,2,!1)})};lEc.prototype.handleError=function(a,b){var c=b?void 0:_.Eo(_.uI(_.tI(new _.Gc,2),6));this.context.dispatchEvent(new _.Ic(new _.Hc(a,c,b instanceof Error?b:null)));this.log("Prefetched request population failed.")};lEc.prototype.log=function(a){this.context.Be().info("drive.ds.sync.cache.PrefetchedRequestPopulator",a)};
var uEc=function(a){JDc.call(this,a);this.ha=[];this.ka=[];this.W="drive.ds.sync.cache.SdkCachePopulator";this.ma=Math.ceil(1.1*_.xj(a.Xc,31,2E4))};_.K(uEc,JDc);uEc.prototype.nh=function(){if(!_.R(this.H,45,!1))return LDc(this,5),this.handleError(),_.ai(Error("Eg"));this.log("Drive SDK cache population initiated.");return this.context.bZa().addCallback(this.Ba,this).addCallback(this.wa,this).Ag(this.handleError,this)};
uEc.prototype.Ba=function(){var a=this;OL(this.context.Oj,"L6uQWd");xM(this.context).addCallback(function(b){b.Rea()});if(_.R(this.H,46,!1))return xoc(this.context.Mm(),this.context.Be()).addCallback(function(b){if(!b)throw LDc(a,4),Error("Fg");KDc(a,b)});this.log("Subscribed corpus cache population disabled.");QL(this.O,!1);return _.Zh()};
uEc.prototype.wa=function(){var a=this;this.context.hGa();var b=new _.Uh;if(this.O.ND){this.log("Starting subscribed corpus cache population.");var c=this.O.jd();c.cj(this.ma);this.O.ti(5);vEc(this,this.O,c)}c=_.yb(this.H,_.Af,44);c=_.m(c);for(var d=c.next();!d.done;d=c.next())d=new RL(this.context.Ct,this.context.Uv,this.context.Pl,d.value),d.ti(5),vEc(this,d,d.jd()),d=gL(this.context.Pl,d.jd()),this.log("Starting "+d+" cache hint corpus cache population.");_.Rh(this.ka).then(function(e){b.callback(e)},
function(e){for(var f=_.m(a.ha),h=f.next();!h.done;h=f.next())h.value.dispose();LDc(a,7);f=e;e instanceof XL?f=_.NI(e.error):_.sI(e)||(f=Error("Gg`"+e));b.Gd(f)});return b};
var vEc=function(a,b,c){var d=$L(a.context.Cx,null);b=new CDc(a.context,b,c);a.ha.push(b);b=b.nh().then(function(e){!e.ND&&e instanceof TL&&(a.log("Subscribed corpus cache disabled, too many backfill items."),a.context.kB.Hb("CachedCorpusType","errorUncachedCorpus"));a.dispatchEvent(new EDc(e,d))});b.then(function(){wEc(a)},function(){wEc(a)});a.ka.push(b)},wEc=function(a){a.context.eba.promise.then(function(){aM(a.context.Cx,null)})};
uEc.prototype.handleError=function(){this.log("Drive SDK cache population failed.");OL(this.context.Oj,"Gv4zef")};uEc.prototype.We=function(){return 5};
var xEc=function(a,b){_.P.call(this);this.context=a;this.V=b;this.Oc=new _.nf(this);this.impression=null;this.W=[];this.Ja(this.Oc);this.H=new UDc(this.context,this.context.Bg);this.Ja(this.H);this.O=new uEc(this.context);this.Ja(this.O)};_.K(xEc,_.P);
xEc.prototype.nh=function(){var a=this;this.log("Corpus cache population initiated.");this.impression=this.context.kk().H(106002);_.n._DRIVE_dsp&&yEc(this);_.n._DRIVE_dspc=function(c){yEc(a,c)};$L(this.context.Cx,null);_.R(this.context.Xc,24,!1)&&!_.XJ(this.context.Xc)&&(_.n._DRIVE_ivd||null===_.n._DRIVE_ivd?zEc(this):_.n._DRIVE_ivdc=function(){zEc(a)});var b=this.context.mR;if(b)return this.Oc.listen(this.H,DDc,this.ha),this.Oc.listen(this.O,DDc,this.ha),(!_.VJ(this.context.Xc)&&_.Q(this.context.Xc,
69)?this.context.wY.promise:Promise.resolve()).then(function(){return b.initialize().then(function(){a.log("Dump storage initialized.");a.impression&&(a.H.cE=a.impression);return a.H.nh().dg(function(){return AEc(a,a.H.We())},function(){BEc(a,a.H.We(),a.H.V);return _.XJ(a.context.Xc)?a.handleError(Error("Hg")):a.O.nh().then(function(){return AEc(a,a.O.We())},function(c){BEc(a,a.O.We(),a.O.V);return a.handleError(c)})})},function(c){a.handleError(_.sI(c)?c:void 0,!0)})});this.handleError(void 0,!0)};
var yEc=function(a,b){a=new lEc(a.context);var c=[,!0,!0,!0,!0,,!0,!0],d=(_.n._DRIVE_dsp||[]).filter(function(f,h){return f&&c[h]&&(!b||h===Number(b))});d=_.m(d);for(var e=d.next();!e.done;e=d.next())a.nh(e.value);a.dispose()};xEc.prototype.ha=function(a){var b=a.cache;this.log("Cache populated: "+b.getType());this.W.push(CEc(this,b,a.changes))};
var AEc=function(a,b){aM(a.context.Cx,null);OL(a.context.Oj,"L6uQWd");xM(a.context).addCallback(function(c){c.Rea()});return Promise.all(a.W).then(function(){DEc(a,b)})},DEc=function(a,b){if(!a.isDisposed()){_.XJ(a.context.Xc)||EEc(a.V,_.yb(a.context.Xc,_.Af,44));a.log("Corpus cache population complete.");var c=a.context.Oj;c.H("mrK8ic")?c.H("Gv4zef")||a.context.Us.iGa():dAc(a.context.UD).then(function(d){d&&a.context.Us.iGa()},function(){});OL(c,"rVezo");OL(c,"BNEDtc");a.impression&&(b=_.iK(_.Kfc,
b),Irc(Orc(a.impression),b),Hrc(Orc(a.impression),!0),Jrc(Orc(a.impression),kvc(a.V.bm)),Krc(Orc(a.impression),a.context.Jf.Xo()),a.impression.Bj());a.dispose()}},BEc=function(a,b,c){a.impression&&(b=_.iK(_.Kfc,b),Irc(Orc(a.impression),b),a=Orc(a.impression),_.oj(a,3,c,void 0))};
xEc.prototype.handleError=function(a,b){b=void 0===b?!1:b;aM(this.context.Cx,null);var c=this.context.Oj;OL(c,"L6uQWd");xM(this.context).addCallback(function(d){d.Rea()});OL(c,"mrK8ic");OL(c,"Gv4zef");OL(c,"rVezo");OL(c,"BNEDtc");this.context.kB.Hb("CachedCorpusType","partialCorpus");c=!!this.H.context.mR||_.R(this.O.H,45,!1);a&&!b&&c?(c=void 0,b="Corpus population failed: ",_.sI(a)?(c=a,b+=c.message):b+=String(a),this.log(b),a=new _.Hc(b,void 0,c),c=a.tg,_.tI(c,_.XJ(this.context.Xc)?3:1),_.uI(c,
6),_.Co(c,b),_.Eo(c),this.context.dispatchEvent(new _.Ic(a))):this.log("Corpus population skipped");this.impression&&(Hrc(Orc(this.impression),!1),this.impression.Bj());this.dispose()};var CEc=function(a,b,c){return FDc(b,c).then(function(d){d.some(function(e){return b instanceof VL&&_.BI(e)&&e.qc()===b.uc()})||IDc(a.V,b,d)},function(){return a.handleError(Error("Ig"))})},zEc=function(a){if(_.n._DRIVE_ivd){var b=new GDc(a.context,a.context.Bg);a.Ja(b);b.nh(_.n._DRIVE_ivd)}else OL(a.context.Oj,"DEJoH")};
xEc.prototype.log=function(a){this.context.Be().info("drive.ds.sync.cache.CorpusCachePopulatorManager",a)};
var FEc=function(){SL.apply(this,arguments)};_.K(FEc,SL);_.g=FEc.prototype;_.g.As=function(a){var b;if(b=SL.prototype.As.call(this,a))a=a&&a.getItem()&&a.getItem().Xm(),b=!(!a||!_.Q(a,3));return b};_.g.jd=function(){};_.g.pN=function(){return null};_.g.getType=function(){};_.g.gO=function(){};
var GEc=function(a,b){this.context=a;this.H=b;this.eR={}},IEc=function(a,b){if(!_.jJ(b)){var c=_.re(b,33);if(1===c.length)HEc(a,c[0],b);else{c=_.kl(b);if(1===c.length&&!_.R(c[0],2,!1)){var d=c[0].Wa();c=a.H.get(d);if(!c){c=a.context.Jf.YI;var e=_.Mf(new _.Lf,310);c.WO([d],e).then(function(f){if((f=f[d])&&f.uc()){var h=f.getCapabilities();h&&_.Oe(h)&&(f=f.uc(),HEc(a,f,b))}else HEc(a,null,b)});return}if(c.getItem().uc()&&_.Oe(c.getItem().getCapabilities())){c=c.getItem().uc();HEc(a,c,b);return}}HEc(a,
null,b)}}},HEc=function(a,b,c){if(b){var d=a.H.get(b);if(d&&!zL(d.getItem()))return}d=b||"subscribed";a.eR[d]||(a.eR[d]=[]);a.eR[d].push(c);b&&(xM(a.context).addCallback(function(e){e.dxa(b)}),JEc(a.context.dMa,b))},KEc=function(a,b){if(!_.jJ(b)){var c={},d;for(d in a.eR){c.sU=d;for(var e=0;e<a.eR[c.sU].length;e++)if(_.wj(b,a.eR[c.sU][e])){_.wa(a.eR[c.sU],e);"subscribed"!==c.sU&&xM(a.context).addCallback(function(f){return function(h){h.rJa(f.sU,!1)}}(c));return}c={sU:c.sU}}}};
var LEc=function(){this.H=new Map;this.O=[];this.V=[]};
LEc.prototype.update=function(a){var b=this,c=a.id,d=a.O;a=a.H;var e=(d||a).getItem();OK(e)&&(a?(e=a.getItem().yf())&&_.z(e,1)&&(1===_.ye(e)||3===_.ye(e))&&(e=_.z(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&&!_.wj(a.getItem(),d.getItem()))&&this.H.get(c).forEach(function(f){b.V.push(f)})};
var MEc=function(a){return a.V.filter(function(b){return!a.O.includes(b)})},NEc=function(a){a.O=[];a.V=[]};
var OEc=function(a,b){uyc.call(this,a.clone(),b.Mm(),b.Xc,b.Be());this.context=b};_.K(OEc,uyc);OEc.prototype.W=function(a){var b=new Map;a.V().forEach(function(c){var d=a.clone();d=_.kj(d,2,[c]);b.set(c,d)});return b};OEc.prototype.V=function(a){a=a.Bd()[0];this.context.Jf.$k([a],1,void 0,!0,this.request.H())};OEc.prototype.ha=function(a){this.context.Jf.$k([],1,a,!1,this.request.H())};OEc.prototype.ka=function(a){a=_.CI(_.rI(new _.qI,a));this.context.Jf.Do([a])};
var PEc=function(a,b,c,d){vM.call(this,a);this.Bg=b;this.request=c;this.Dd={};d&&this.$k(d,!0)};_.K(PEc,vM);_.g=PEc.prototype;
_.g.refresh=function(){var a=this;this.Dp=6;var b=CL(this.context.Xc)!==CL(this.context.Xc,this.request.H()),c=[];this.request.V().forEach(function(h){var k=a.Dd[h];k&&k.getItem().Vh()&&!b||c.push(h)});if(0===c.length)return this.$k([],!1),_.Ph();var d=this.request.clone();_.kj(d,2,c);var e=new OEc(d,this.context),f=_.Sh();this.context.Ij().Me()?(this.Oc.listen(this.context.Ij(),"rb",function(h){h.Me()||(a.Oc.Uc(a.context.Ij(),"rb"),a.KA(),e.nh().then(f.resolve,f.reject,f))}),this.Dp=0<_.Xa(this.Dd)?
1:2):(this.context.xk().Me()&&(this.Dp=0<_.Xa(this.Dd)?1:2),this.KA(),e.nh().then(f.resolve,f.reject,f));return f.promise};_.g.ija=function(a){return this.context.Pl.equals(a,this.request)&&knc(_.bK(this.Bg),a.H())};_.g.lk=function(a){var b=new _.jK;b.Dc(this.Dp);b.ti(this.We());rsc(b,_.Va(this.Dd,function(c){return c?c.getItem():null}));cDc(this,a.H(),b.lt());return b};_.g.resize=function(){};_.g.jd=function(){return this.request};_.g.getSize=function(){return _.Xa(this.Dd)};
_.g.sw=function(a){var b=this.As(a.O),c=this.As(a.H);if(b||c)c?(this.Dd[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Dd[a.id]=null,a.O.count--);else return!1;return!0};_.g.As=function(a){return!!a&&this.request.V().includes(a.getId())};
var zM=function(a,b,c,d,e){vM.call(this,a);var f=this;this.V=0;this.Dd=[];this.O=new Map;this.ka=null;this.incompleteSearch=!1;this.ha=[];this.W=[];this.suggestionSessionId=null;this.count=0;this.ma=this.Ba=null;this.ta=Date.now();this.request=b.clone();this.Fa=gL(this.context.Pl,b);this.cw=new uDc(this.context,this.request,!1,e);b=this.request.Lc()&&ovc(this.request.Lc());var h=this.context.Uv;this.H=b?function(k,l){return h.compare(f.request,k,l)}:null;this.VEa=!b||!evc(this.request)||_.KI(_.fI(a.Xc));
this.Ia=Xwc(this.request);c&&this.$k(c,!d);this.wa=_.xj(a.Xc.Tf(),16,36E5);_.JJ(this.request)&&this.Oc.listen(this.context.qia,"Bb",this.Ka);_.ef(this,function(){(0,_.ba)(f.cw);f.clear()})};_.K(zM,vM);zM.prototype.refresh=function(){this.log(this.pN()+" | Refresh called, currently "+this.getSize()+" items cached");return QEc(this,!1)};
var QEc=function(a,b){a.Dp=6;if(_.R(a.request,48,!1))return a.Dp=1,_.Ph();if(_.JJ(a.request)){var c=REc,d=a.context.qia.H;d=Math.max(Date.now()-d,a.wa);c(a,Math.min(d,2592E5))}return SEc(a,b)};zM.prototype.initialize=function(){return this.count>=this.request.xi()||1===this.Dp?_.Ph():this.refresh()};zM.prototype.clear=function(){TEc(this)};
var TEc=function(a){a.Dd.forEach(function(b){b.count--});a.count=0;a.Dd=[];a.O.clear()},REc=function(a,b){_.n.clearTimeout(a.Ba);a.Ba=_.n.setTimeout(function(){return QEc(a,!0)},b)};zM.prototype.Ka=function(){Date.now()-this.ta>this.wa&&REc(this,0)};
var SEc=function(a,b){a.cw&&(a.Oc.Uc(a.cw,"yb",a.hua),a.Oc.Uc(a.cw,"zb",a.oPa),a.cw.dispose());var c=a.request.re();c&&_.Nf(c,!1);a.cw=new uDc(a.context,a.request,b);a.V=0;a.Oc.listen(a.cw,"yb",function(){return a.hua(a.cw.ha)});a.Oc.listen(a.cw,"zb",a.oPa);return a.vda()};
zM.prototype.vda=function(){var a=this,b=_.Sh();this.context.Ij().Me()?this.Oc.listen(this.context.Ij(),"rb",function(c){c.Me()||(a.Oc.Uc(a.context.Ij(),"rb"),UEc(a,b))}):this.context.xk().Me()?this.Oc.hd(this.context.xk(),[_.VB.$L,_.VB.bV],function(){UEc(a,b)}):UEc(this,b);return b.promise};var UEc=function(a,b){a.KA();_.Vka(rDc(a.cw,a.request.xi()+a.V).dg(b.resolve,b.reject,b),function(){return a.ta=Date.now()})};_.g=zM.prototype;
_.g.resize=function(a){this.log(this.pN()+" | Resize called");var b=0;for(var c=_.m(new Set([].concat(_.fc(this.Xy)))),d=c.next();!d.done;d=c.next())d=d.value,d=eDc(this.context).Yla(d),b=Math.max(b,d.xi());_.JJ(this.request)?(this.request.cj(b),2!==this.We()&&!this.cw.O&&(b>this.count||a)?this.refresh():this.NJ()):this.request.xi()!==b&&(this.request.cj(b),b>this.count?this.vda():this.NJ())};_.g.jd=function(){return this.request};_.g.pN=function(){return this.Fa};_.g.getSize=function(){return this.Dd.length};
_.g.ija=function(a){return this.context.Pl.equals(a,this.request)};
_.g.lk=function(a){var b=a.xi(),c,d=!1;if(_.kJ(this.request)){var e=this.Dd.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=_.Fk(k.getItem()).filter(function(l){return h.includes(_.y(l,_.mk,1).getId())});k=k.clone();onc(k.getItem(),d);e[c]=k}e=e.filter(function(l){return _.Fk(l.getItem()).length})}d=ync(e);c=new _.kK;_.x(c,4,!1);nsc(c,f)}else e=this.Dd.slice(0,b),c=new _.eI,frc(c,b<this.Dd.length||!(this.context.Ij().Me()||
this.context.xk().Me())&&1!==this.Dp),_.G(c,7,this.ka),_.x(c,8,this.incompleteSearch),_.kj(c,18,this.ha),d=ync(e);e=goc(e);cDc(this,a.H(),e);c.iB(e);c.Dc(d?6:this.Bya(b));c.ti(this.We());c.gQ(this.suggestionSessionId);return c};_.g.Bya=function(a){return 1===this.Dp||a<=this.count?1:this.context.Ij().Me()||this.context.xk().Me()?0<this.Dd.length?1:2:6};_.g.hua=function(a){this.ka=a.W;this.incompleteSearch=a.incompleteSearch;this.ha=a.hCa();this.W=a.V;this.suggestionSessionId=a.Vf()};
_.g.oPa=function(){var a=this.request.xi()-this.count;0<a&&pDc(this.cw)&&(this.V+=a,this.vda())};_.g.$k=function(a,b){_.JJ(this.request)&&TEc(this);var c=!1;a=_.m(a);for(var d=a.next();!d.done;d=a.next())d=PL(d.value),c=this.sw(d,!0)||c;b||(1!==this.Dp&&(c=!0),this.Dp=1);if(a=this.H){a:{a=this.Dd;d=this.H||_.Ha;for(var e=1;e<a.length;e++)if(0<d(a[e-1],a[e])){a=!1;break a}a=!0}a=!a}a&&(this.wp("ViewCache unsorted after import"),this.context.Uv.sort(this.request,this.Dd));c&&(this.IY(),VEc(this,b))};
var VEc=function(a,b){_.kl(a.request).length&&a.Dd.length&&a.context.O_.then(function(c){var d=dL(a.context.kk(),106024,a.ma);if(d){var e=_.kl(a.request)[0].Wa(),f=_.y(_.hK(d),zrc,18);if(!f){f=new zrc;var h=_.hK(d);_.G(h,18,f)}f=_.x(f,1,!b);c=_.x(f,2,c===e).gw(a.Dd.length);_.x(c,4,a.context.Jf.Xo());a.ma=d;d.Bj()}})};_.g=zM.prototype;
_.g.sw=function(a,b){var c=this.O.get(a.id),d=!!c,e=this.As(a.H,b),f=a.O;c&&(d?a.O&&a.O!==c&&this.wp("Updating different wrapper from the existing one"):this.wp("Updating existing item but old wrapper did not match"),f=c,d=!0);if(d||e)if(d)e?this.UMa(f,a.H):(this.DJ(f),_.JJ(this.request)&&REc(this,0));else{if(_.JJ(this.request)&&!b)return!1;this.qS(a.H)}else return!1;return!0};_.g.qS=function(a){this.H?Zmc(this.Dd,a,this.H):this.Dd.push(a);a.count++;WEc(a)&&this.count++;this.O.set(a.getId(),a)};
_.g.DJ=function(a){if(this.H){var b=this.Dd,c=_.Ia(b,a,this.H);0<=c&&_.wa(b,c)}else _.ya(this.Dd,a);a.count--;WEc(a)&&this.count--;this.O.delete(a.getId())};_.g.LAa=function(a){return this.H?_.Ia(this.Dd,a,this.H):_.oa(this.Dd,a)};_.g.UMa=function(a,b){this.H&&0!==this.H(a,b)?(this.DJ(a),this.qS(b)):(this.Dd[this.LAa(a)]=b,b.count++,WEc(b)&&this.count++,a.count--,WEc(a)&&this.count--,this.O.delete(a.getId()),this.O.set(b.getId(),b))};
_.g.As=function(a,b){if(!a)return!1;if(this.VEa&&!_.JJ(this.request)){if(b)return!0;if(!this.Ia){var c=a.getId();b=!!this.Dd.find(function(e){return c===e.getId()},this);a=AL(this.context.Ct,this.request,a.getItem());return b&&a}}if(!AL(this.context.Ct,this.request,a.getItem()))return!1;var d=1.2*this.request.xi();if(1===this.Dp||!this.H||Ruc(a.V,2)||this.count<d||b||Dnc(a.getItem()))return!0;b=0===this.Dd.length?null:this.Dd[this.Dd.length-1];return!!b&&0>=this.H(a,b)};
_.g.NJ=function(){this.log(this.pN()+" | Evict called");if(1!==this.Dp&&!this.context.Ij().Me()&&!this.context.xk().Me()){var a=1.2*this.request.xi();if(!(a>=this.count||this.cw&&a>=this.cw.$b())){a=this.count-this.request.xi();for(var b=this.Dd.length-1;0<=b&&0<a;b--){var c=this.Dd[b];Ruc(c.V,2)||Dnc(c.getItem())||(c.count--,WEc(c)&&this.count--,this.O.delete(c.getId()),_.wa(this.Dd,b),a--)}SEc(this,!1)}}};
_.g.wp=function(a){var b=new _.Gc;_.tI(b,2);_.uI(b,6);_.Eo(b);this.context.dispatchEvent(new _.Ic(new _.Hc(a,b)))};var WEc=function(a){return!Ruc(a.V,2)&&3!==a.getItem().Lv()};zM.prototype.log=function(a,b){this.context.Be().log("drive.ds.sync.cache.ViewCache",a,void 0===b?"info":b)};zM.prototype.vUa=function(a){var b=this,c=_.kl(this.request);c.length&&(c=c.some(function(d){return(d=b.context.Jf.bm.H(d.Wa()))&&_.Q(d,108)}),kwc(this.context.jua,a,c))};zM.prototype.uUa=function(){this.NJ()};
zM.prototype.W0a=function(a){return 1!==this.Dp&&a.xi()>this.count&&this.cw.O};
var XEc=function(a,b,c,d,e,f){_.P.call(this);this.V=a;this.ka=b;this.H=c;this.W=d;this.O=e;this.ha=f;this.Oc=new _.nf(this);this.Ja(this.Oc)};_.K(XEc,_.P);
var $Ec=function(a,b,c){var d,e,f,h;if(null===(d=_.IJ(a.H))||void 0===d?0:_.R(d,15,!1))if(null===(e=a.O.get(b))||void 0===e||!e.H){if(c&&(null===(h=null===(f=a.H)||void 0===f?void 0:_.IJ(f))||void 0===h?0:_.R(h,19,!1)))return YEc(a,b);void 0!==c&&ZEc(a,b,!c)}return Promise.resolve([])},YEc=function(a,b){var c=_.pga(new _.Af,[(new _.Kd).Hb(b)]),d=new wM(a.V,a.ka,a.H,a.W,a.ha,c,!1,!0);a.log("Paginating to cache more items for "+b);var e=new _.cn;a.Oc.listen(d,"wb",function(f){e.resolve(f.changes)});
rDc(d,1E3).then(function(){e.resolve([]);ZEc(a,b,!pDc(d))},function(f){e.reject(f);a.log("Error trying to backfill "+b+" "+f)});return e.promise},ZEc=function(a,b,c){var d;a.log("Setting hasAllImmediateChildren for "+b+" to "+c);null===(d=a.O.get(b))||void 0===d?void 0:Tuc(d,c)};XEc.prototype.log=function(a,b){this.V.log("drive.ds.sync.ProgressiveSyncer",a,void 0===b?"info":b)};
var AM=function(a,b){var c;_.P.call(this);var d=this;this.V={};this.ha=new LEc;this.Oc=new _.nf(this);this.Ja(this.Oc);this.context=a;this.Bg=b;this.H=this.context.Xc;this.Tt=new axc(a.Pl,a.Be());this.context.kk().W.H=this.Tt;if(null===(c=_.IJ(this.H))||void 0===c?0:_.R(c,15,!1))b=new Twc(a.Ct,a.Uv),this.Tt.add(b),a.Gga.promise.then(function(){var e,f,h,k;null===(f=null===(e=d.Tt)||void 0===e?void 0:e.O)||void 0===f?void 0:QL(f,!(null===(k=null===(h=d.Tt)||void 0===h?void 0:h.H)||void 0===k?0:k.ND))});
this.O=new dvc(a.O_,a.Ct,a.Uv);_.Q(a.Xc,60)&&(this.Ba=new FEc(a.Ct,a.Uv));this.W=new Xuc(a.Be(),this.Bg);this.bm=new gvc(this.Bg,this.context.Pl,this.O,this.W);this.context.kk().W.V=this.bm;this.YI=new wDc(this.context,this.Bg,this.V,this.O);this.OIa=new GEc(this.context,this.O);this.ma=new xEc(this.context,this);_.ef(this.ma,function(){d.ma=null});this.wa=qnc(_.bK(this.Bg),aFc);NL(this.context.Oj,["NSockf"],function(){return d.initialize()});NL(this.context.Oj,["NSockf","jroI5d"],function(){if(_.y(d.H,
_.Bk,12))var e=_.y(d.H,_.Bk,12);else{e=_.Dhc(_.Fhc(new _.mk,_.UJ(_.fI(d.H))),!0);e=_.x(e,6,1);var f=_.C(_.fI(d.H),6,"");f&&e.Nb(f);e=_.cWb(_.Nhc(_.Ohc(_.hG((new _.Bk).Nb(d.context.Du()).setTitle(_.C(d.H,38,"My Drive")),"application/vnd.google-apps.folder").Ro(!1),e),[e]),1);e=_.x(e,29,!0);e=_.x(e,63,!0);f=new _.sk;f=_.x(f,1,_.R(d.H,6,!0));f=_.x(f,2,!1);f=_.x(f,3,!1);f=_.x(f,4,!1);f=_.x(f,5,!1);f=_.x(f,6,!0);f=_.x(f,7,!0);f=_.x(f,10,!1);f=_.x(f,11,!1);f=_.Ghc(f,!1);f=_.x(f,12,!1);f=_.x(f,8,!1);f=_.x(f,
9,!1);f=_.x(f,21,!1);e=_.QJ(e,f)}d.$k([e],1);OL(d.context.Oj,"hVFf7")});this.ka=_.Sh();NL(this.context.Oj,["BNEDtc"],function(){d.ka.resolve()});this.Lq=new zxc(this.H,this.context.Be(),a.Mm(),this.context.kk(),this.context.wY.promise);_.mI(this.H)&&this.Oc.listen(this.Lq,"vb",this.ta);this.pPa=new _.Ujc(this.H,this.bm);this.Fa=new XEc(a.Be(),a.Mm(),a.Xc,this.bm,this.O,a.dispatchEvent)};_.K(AM,_.P);
AM.prototype.ta=function(a){var b=a.getPeople();this.log("Handling PeopleCache updated with "+b.length+".");var c=new Set;a=new Set;b=_.m(b);for(var d=b.next();!d.done;d=b.next()){d=_.z(d.value,1);for(var e=this.Lq.Hd(d),f=_.m(e),h=f.next();!h.done;h=f.next())c.add(h.value);if(e=h=e[e.length-1])d=this.Lq.H.get(d),e=!(!d||1!==d.We()&&4!==d.We()||3===jxc(d));e&&a.add(h)}b=[];c=_.m(c);for(h=c.next();!h.done;h=c.next())h=h.value,(d=this.O.get(h))?(h=d.getItem().clone(),bFc(this,h),b.push(Qwc(d,new yL(h,
void 0,1)))):this.log("b/154479164 Unexpected missing wrapper for "+h+".","warning");cFc(this,b,[]);this.context.Us.update(6);a.size&&this.YI.WO([].concat(_.fc(a)),_.Mf(new _.Lf,311))};AM.prototype.initialize=function(){this.ma.nh()};
AM.prototype.Zh=function(a,b){if(b instanceof _.Af){b=BL(this.context.Pl,b);var c=b.H();Zuc(this.W,c);IEc(this.OIa,b);b=dFc(this,b);b.cache.Zh(a)}else if(b instanceof _.aG)b=eFc(this,b),c=b.H(),Zuc(this.W,c),b=fFc(this,b),b.cache.Zh(a);else if(b instanceof _.RH){c=yM(this,b);var d=this.V[c];d?(3==d.pW()?(this.log(c+" | TeamDriveQueryRequest backed by refreshing existing cache"),d.refresh()):this.log(c+" | TeamDriveQueryRequest backed by existing view cache"),b={cache:d,Sv:!1}):(this.log(c+" | ItemQueryRequest backed by new cache"),
d=new RDc(this.context,this.Bg,b),d.refresh().then(null,_.cg),tEc(this,c,d),b={cache:d,Sv:!0});b.cache.Zh(a)}else if(b instanceof _.fG)c=b.H(),d=this.W,Yuc(d,d.H,d.O,c),b=fFc(this,b),b.cache.Zh(a);else throw Error("Jg");return b.Sv};AM.prototype.dk=function(a,b){if(b instanceof _.Af)b=BL(this.context.Pl,b),KEc(this.OIa,b);else if(b instanceof _.aG)b=eFc(this,b);else if(!(b instanceof _.RH||b instanceof _.fG))throw Error("Jg");b=yM(this,b);var c=this.V[b];c&&(c.dk(a),c.isDisposed()&&delete this.V[b])};
var yM=function(a,b){return gL(a.context.Pl,b,2)},dFc=function(a,b){var c,d,e=yM(a,b),f=a.V[e];if(f)return 3==f.pW()?(a.log(e+" | ItemQueryRequest backed by refreshing existing cache"),f.refresh()):a.log(e+" | ItemQueryRequest backed by existing view cache"),{cache:f,Sv:!1};var h=[],k=5;f=!1;for(var l=bxc(a.Tt),p=0;p<l.length;p++){var q=l[p];k=q.XE(b);if(5!=k){l=1==k?void 0:b.xi();if((null===(c=_.IJ(a.H))||void 0===c?0:_.R(c,18,!1))&&q instanceof Twc){f=!0;k=5;a.log("Partial Caching dark launch: Skipped returning from the MyDrive cache for "+
(e+"."));break}h=q.sma(b,l);var r=q.We();var v=q instanceof RL?q.Ky():"";a.log(e+" | ItemQueryRequest backed by "+q.getType()+" | size "+(q.getSize()+" | initial "+h.length));break}}5==k&&a.log(e+" | ItemQueryRequest backed by new cache");if(a.context.Ij().Me()||a.context.xk().Me())h=h.concat(a.O.query(b,1)),_.Ga(h,void 0,function(A){return A.getId()}),k=(k=a.Tt.H)&&k.l9&&5!=k.XE(b)?k.XE(b):6,a.log("Offline: Populate with "+h.length+" initial items(s)");var w=new zM(a.context,b,h,1==k,v);r&&w.ti(r);
w.$k(a.O.query(b,2),1!=k);r=w.initialize();(null===(d=_.IJ(a.H))||void 0===d?0:_.R(d,18,!1))&&f&&r.then(function(){return xM(a.context)}).then(function(A){return A.RZa().AXb()}).then(function(){var A,B;if(w.isDisposed())a.log("Partial Caching dark launch: ViewCache is disposed skipping match check for "+e);else{var E=w.lk(b).Bd().map(function(S){return S.getId()}),I=(null===(B=null===(A=a.Tt)||void 0===A?void 0:A.O)||void 0===B?void 0:B.lk(b,b.xi()).Bd().map(function(S){return S.getId()}))||[],M=
_.La(E.sort(),I.sort()),N=dL(a.context.kk(),106030);N&&(Erc(Drc(Crc(Src(N),E.length),I.length),M),N.Bj());M?a.log("Partial Caching dark launch: Network/Cache match for "+e):a.log("Partial Caching dark launch: Network/Cache mismatch for "+e+("\nNetwork: "+E.length+".  Cache: ")+(I.length+".\nNetwork: ")+(E+".\nCache: ")+(I+"."),"warning")}},function(){a.log("Partial Caching dark launch: Error waiting for changelog processing.Won't be checking match for "+e,"warning")});r.then(null,function(A){A=_.vI(A);
_.Eo(A);a.context.dispatchEvent(new _.Ic(new _.Hc("Error during view cache init",A)))});tEc(a,e,w);return{cache:w,Sv:!0}},fFc=function(a,b){var c=yM(a,b),d=!1,e=a.V[c];if(e&&e.ija(b))a.log("FindByIdsRequest backed by existing query cache: "+c);else{var f=a.O.getAll(b.V()),h;b instanceof _.aG?h=new lDc(a.context,a.Bg,b,f):h=new PEc(a.context,a.Bg,b,f);f.length&&h.ti(8);h.refresh().then(null,_.cg);b=h;d=!0;tEc(a,c,b);e?(gFc(e,b),e=b,a.log("FindByIdsRequest backed by recreated query cache: "+c)):(e=
b,a.log("FindByIdsRequest backed by new query cache: "+c+" with "+(f.length+" initial items.")))}return{cache:e,Sv:d}};AM.prototype.SW=function(){return Object.values(this.V).filter(function(a){return a.jd()instanceof _.RH})};
AM.prototype.x5a=function(a){for(var b=_.Mf(new _.Lf,309),c=[],d=_.m(Object.entries(this.W.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=xvc(this.context.Pl,c,!0),this.log("Refreshing "+a+" for secondary fields: "+d+"."),this.YI.WO([a],b,!1,c))};
var bDc=function(a,b,c){c&&c.length&&avc(a.W,b,c);_.mI(a.H)&&Jxc(a.Lq,b)},IDc=function(a,b,c){var d,e,f;if(b instanceof RDc){var h=yM(a,b.jd());if(a.V[h]){a.log(h+" | Cache already exists, ignoring persisted data");return}}b instanceof Rwc&&a.Tt.remove(b);h=new Map;var k=a.O.Ey(),l=new Map(k);k=[];for(var p=_.m(b.Ey()),q=p.next();!q.done;q=p.next()){q=q.value;var r=q.getId(),v=a.O.get(r);if(v){var w=v.getItem().Lv();(null===(d=_.IJ(a.H))||void 0===d?0:_.R(d,15,!1))&&!0===q.H&&Tuc(v,q.H);3==w||4==
w?h.set(q.getId(),q.getItem()):v!=q&&k.push(new Pwc(q.getId(),q,v));l.delete(r)}else{r=PL(q);if(null===(e=_.IJ(a.H))||void 0===e?0:_.R(e,15,!1))null===(f=a.Tt.O)||void 0===f?void 0:f.update(r);a.O.update(r);a.ha.update(r);_.mI(a.H)&&a.Lq.GP(r)}_.mI(a.H)&&bFc(a,q.getItem())}l=_.m(l.values());for(q=l.next();!q.done;q=l.next())k.push(PL(q.value));a.log("Applying "+k.length+" updates to newly added CorpusCache");k=_.m(k);for(l=k.next();!l.done;l=k.next())b.update(l.value);b instanceof RDc?(k=yM(a,b.jd()),
tEc(a,k,b)):a.Tt.add(b);k=[];h=_.m(h.values());for(l=h.next();!l.done;l=h.next())l=l.value,p=new _.qI,_.rI(p,l.getId()),p.setItem(l),k.push(p);a.Do(k);a.log("Merged cache: "+b.getType());b instanceof VL&&c.forEach(function(A){a.context.kua.propagate(A)});b instanceof RL&&hFc(a,b.jd(),!b.H);a.context.Us.update(3)},hFc=function(a,b,c){var d;(null===(d=_.IJ(a.H))||void 0===d?0:_.R(d,15,!1))&&(b=Gvc(b))&&$Ec(a.Fa,b,c).then(function(e){a.Do(e)})},gFc=function(a,b){(new Set([].concat(_.fc(a.Xy)))).forEach(function(c){b.Zh(c);
a.dk(c)})};
AM.prototype.$k=function(a,b,c,d,e){var f=this;this.log("Importing "+a.length+" items");e||(e=c?[].concat(_.fc(c.H().filter(function(A){return!_.bK(f.Bg).includes(A)}))):[]);c&&c instanceof _.Af&&_.JJ(c)&&iFc(this,a,c);for(var h=[],k=[],l=0;l<a.length;l++){var p=a[l],q=new yL(p,void 0,b),r=this.O.get(p.getId()),v=r?r.getItem():null,w=jFc(this,r,q);if(null!=w)q.VA(w),kFc(this,v,p),Cnc(p),p=Vuc(p,v,e),q.setItem(p);else if(null!=r)q=r,p=v;else continue;_.mI(this.H)&&bFc(this,p);!r||lFc(this,v,p,e)?(k.push(Qwc(r,
q)),h.push(q)):h.push(r)}a=null;c&&(c instanceof _.Af&&(hFc(this,c,d),(a=exc(this.Tt,c))&&a.$k(h,!!d)),c=yM(this,c),(a=this.V[c])&&a.$k(h,!!d));0<k.length&&(_.mI(this.H)&&k.forEach(function(A){return f.Lq.GP(A)}),cFc(this,k,e,a?[a]:[]),mFc(this,h));eDc(this.context).i$()};
var bFc=function(a,b){Lxc(a.Lq,b)||5!=b.Lv()||_.Shc(b,1)},lFc=function(a,b,c,d){(b=b?_.vb(b.clone(),82):null)&&bDc(a,[b],d);c=_.vb(c.clone(),82);bDc(a,[c],[]);return!_.wj(b,c)},iFc=function(a,b,c){nFc(a,b,c);b.forEach(function(d,e){var f=a.bm.H(d.getId());f&&(NK(f,d,[1002]),NK(f,d,[1003]),NK(f,d,[1005]),b[e]=f);_.jJ(c)&&0<_.re(c,33).length&&_.Thc(d,_.re(c,33)[0])})},nFc=function(a,b,c){var d;_.jJ(c)?d="quick access":_.kJ(c)?d="people predict":_.lJ(c)&&(d="drive priority");c=b.map(function(e){return e.getId()}).join(", ");
a.log("Got "+b.length+" ItemSuggest items for "+d+": "+c)},PCc=function(a,b){var c=new Map;b=_.m(b);for(var d=b.next();!d.done;d=b.next())d=d.value,c.get(d.V)||c.set(d.V,[]),c.get(d.V).push(d);c=_.m(c);for(b=c.next();!b.done;b=c.next())d=_.m(b.value),b=d.next().value,d=d.next().value,a.$k(goc(d),b)};AM.prototype.Xma=function(a){this.pPa.Xma(a)};
AM.prototype.Do=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a[d],f=_.BI(e)?null:e.getItem(),h=e.qc(),k=(h=this.O.get(h))?h.getItem():null,l=null;if(f){l=new yL(f,void 0,void 0,_.z(e,1)||void 0);var p=jFc(this,h,l);if(null==p)continue;l.VA(p);kFc(this,k,f);_.R(e,5,!1)&&fnc(f,vnc);Cnc(f);f=Vuc(f,k);l.setItem(f);_.mI(this.H)&&bFc(this,f)}if(k&&!f||f&&lFc(this,k,f,[]))this.context.dMa.Qy(e),c.push(Qwc(h,l))}_.mI(this.H)&&c.forEach(function(q){return b.Lq.GP(q)});cFc(this,c,[])};
var kFc=function(a,b,c){b&&!c.Xm()&&NK(c,b,a.wa);var d=b?b.yf():null,e=c.yf();e=e?_.we(e):null;d&&e&&kFc(a,_.we(d),e);b&&!_.Ek(c)&&NK(c,b,[1002]);b&&!_.Fk(c).length&&NK(c,b,[1003]);b&&!_.Gk(c).length&&NK(c,b,[1005]);b&&_.Q(b,31)&&!_.Q(c,31)&&(fnc(c,vnc),a.log("Cleared Item Suggest data for "+b.getId()+"."))};AM.prototype.PB=function(a,b){if(a instanceof _.Af||a instanceof _.aG||a instanceof _.RH)a=yM(this,a),(a=this.V[a])&&a.HY(b);else throw Error("Jg");};
var jFc=function(a,b,c){var d=c.getItem();if(gyc(a.context.Hga,d))return null;if(b){a=b.V;var e=c.V;if(!(0<=e?!a||a<=e:1))return null;a=b.getItem();if(3!=a.Lv()&&!zL(a)&&!zL(d)&&a.uc()==d.uc())if(a.nj()&&d.nj()){if(a.nj()>d.nj())return null}else if(b.O&&c.O){if(b.O>c.O)return null}else if(a.Oq()>d.Oq())return null}return Suc(b&&b.V,c.V)};AM.prototype.fG=function(a,b){(a=this.O.get(a))&&a.VA(Suc(a.V,b))};
var cFc=function(a,b,c,d){d=void 0===d?[]:d;var e;if(null===(e=_.IJ(a.H))||void 0===e?0:_.R(e,15,!1))for(var f=_.m(b),h=f.next();!h.done;h=f.next())h=h.value,h.O&&h.H&&Tuc(h.H,h.O.H);h=_.m(b);for(f=h.next();!f.done;f=h.next())f=f.value,a.W.update(f.id,f.H?f.H.getItem():null,c);c=Object.values(a.V);d=_.m(d);for(h=d.next();!h.done;h=d.next())_.ya(c,h.value);d=_.m(c);for(h=d.next();!h.done;h=d.next())dDc(h.value,b);d=new Set;h=bxc(a.Tt);c=_.m(h);for(h=c.next();!h.done;h=c.next()){f=h.value;var k=_.m(b);
for(h=k.next();!h.done;h=k.next())h=h.value,f.update(h)&&d.add(h.id);f instanceof VL&&f.getSize()>=1.2*f.limit&&oFc(a.context.dMa,f.uc(),!1)}b=_.m(b);for(h=b.next();!h.done;h=b.next())h=h.value,_.Q(a.H,60)&&a.Ba.update(h),a.O.update(h),a.O.get(h.id)||a.W.NJ(h.id),a.ha.update(h);d.size&&a.context.Us.Loa(d.size);pFc(a)},pFc=function(a){var b=a.ha.O.slice(0),c=MEc(a.ha);NEc(a.ha);if(b.length){a.log("Refreshing shortcuts with unknown targets: "+b.join(", "));var d=new _.Lf;_.Mf(d,308);a.YI.WO(b,d,!0)}if(c.length){a.log("Updating locally stale shortcuts: "+
c.join(", "));b=hvc(a.bm,c);var e=[];Object.values(b).forEach(function(f){var h=f.getItem().yf(),k=a.bm.H(_.z(h,1));k&&(_.G(h,5,k),_.x(h,4,1),e.push(f))});PCc(a,e)}},qFc=function(a){eDc(a.context).i$();a.O.NJ()},eFc=function(a,b){_.Ka(b.H());var c=_.oa(b.V(),"root");if(0>c)return b;b=b.clone();b.V()[c]=a.context.Du();return b},mFc=function(a,b){a.ka.promise.then(function(){var c=b.filter(function(e){return 4==e.getItem().Lv()});if(c.length){c=c.map(function(e){return e.getId()});a.log("Refreshing "+
c.length+" partial items. "+c);var d=_.Mf(new _.Lf,311);a.YI.WO(c,d)}})},EEc=function(a,b){a.ka.promise.then(function(){for(var c={},d=_.m(b),e=d.next();!e.done;c={r6:c.r6,nsa:c.nsa},e=d.next()){e=e.value;if(exc(a.Tt,e))break;c.r6=new RL(a.context.Ct,a.context.Uv,a.context.Pl,e);e=new CDc(a.context,c.r6,e);c.nsa=$L(a.context.Cx,null);e.nh().then(function(f){return function(){FDc(f.r6,f.nsa).then(function(h){IDc(a,f.r6,h)})}}(c)).then(function(){aM(a.context.Cx,null)},function(){aM(a.context.Cx,null)})}})};
AM.prototype.Xo=function(){var a=this.Tt.H;return a&&a.ND?1:2};AM.prototype.log=function(a,b){this.context.Be().log("drive.ds.sync.cache.CacheManager",a,void 0===b?"info":b)};var tEc=function(a,b,c){a.V[b]=c;a.log(b+" | Set cache with "+c.getSize()+" items")},aFc=[50];
var sFc=function(a){_.P.call(this);var b=this;this.context=a;this.H=[];this.V=new _.Kk;this.O=new Map;this.ka=-1;this.ha=0;var c=_.Sh();this.wa=c.promise;eAc(this.context.UD).then(function(d){b.H=d||[];c.resolve();rFc(b)},function(){return c.resolve()});NL(this.context.Oj,["rVezo"],(0,_.L)(this.W,this))};_.K(sFc,_.P);
var JEc=function(a,b){_.R(a.context.Xc,46,!1)&&a.wa.then(function(){if(a.H[0]!==b){_.ya(a.H,b);for(Wuc(a.context.Jf.bm.H(b))?a.log(b,"Hidden TD, not tracking in recency list"):_.va(a.H,b,0);a.H.length>2*_.xj(a.context.Xc,47,5);)a.H.pop();a.context.UD.set(Zzc,a.H)}a.context.Jf.Tt.SW().length+a.O.size<_.xj(a.context.Xc,47,5)&&(rFc(a),a.W())})},tFc=function(a,b){_.ya(a.H,b)&&a.context.UD.set(Zzc,a.H)};
sFc.prototype.Qy=function(a){this.context.kua.propagate(a);if(zL(a)){var b=a.uc();_.BI(a)?oFc(this,b,!0):(a=a.getItem(),Wuc(a)&&tFc(this,b))}};var oFc=function(a,b,c){tFc(a,b);a.V.contains(b)&&a.V.remove(b);var d=a.O.get(b);d&&d.dispose();a.O.delete(b);d=a.context.Jf.Tt;for(var e=d.SW(),f=0;f<e.length;f++){var h=e[f];if(h.uc()===b){a.log(b,"Cache removed");d.remove(h);a.context.Us.update(3);break}}xM(a.context).addCallback(function(k){k.rJa(b,c)});a.W()};
sFc.prototype.W=function(){if(this.context.Oj.H("rVezo")){var a=this.context.Jf.Tt;uFc(this);for(var b={};this.V.$b()&&!(this.ha>=_.xj(this.context.Xc,47,5));){var c=_.Lk(this.V);this.ha++;dxc(a,c)||this.O.has(c)||(this.O.set(c,null),b.Zfa=new _.ihc,_.x(b.Zfa,1,c),this.context.Mm().then(function(d){return function(e){return e.Qe(d.Zfa)}}(b)).then(this.ta.bind(this,c),this.ma.bind(this,c)));b={Zfa:b.Zfa}}}};
var rFc=function(a){a.H&&a.H.length&&(a.ha=0,a.V.clear(),a.H.forEach(function(b){a.V.enqueue(b)}))},uFc=function(a){_.n.clearTimeout(a.ka);a.ka=_.n.setTimeout(function(){rFc(a);a.W()},36E5)};sFc.prototype.ta=function(a,b){var c=_.z(b,1);c&&c>_.xj(this.context.Xc,48,1E3)?(this.log(a,"Too large to backfill: "+_.z(b,1)),vFc(this,a,!1)):wFc(this,a)};
sFc.prototype.ma=function(a,b){(b=_.vI(b).Wj())&&4===b?(this.log(a,"Non-existent or inaccessible, removing from cache"),a=_.CI(_.ogc(_.rI(new _.qI,a),a)),this.context.Jf.Do([a])):wFc(this,a)};
var wFc=function(a,b){var c=new VL(a.context.Ct,a.context.Uv,b),d=c.jd().clone();d.cj(_.xj(a.context.Xc,48,1E3));d=new CDc(a.context,c,d);a.O.set(b,d);a.log(b,"Backfill started");var e=$L(a.context.Cx,b);xM(a.context).addCallback(function(f){f.dxa(b)});d.nh().then(function(){xFc(a,b,c,e)},function(){a.log(b,"Backfill failed");a.ha--;vFc(a,b,!0)}).then(function(){aM(a.context.Cx,b)},function(){aM(a.context.Cx,b)})},xFc=function(a,b,c,d){c.ND?(c.aY(),FDc(c,d).then(function(e){a.log(b,"Backfill complete, size: "+
c.getSize());IDc(a.context.Jf,c,e);vFc(a,b,!1)},function(){a.log(b,"Backfill changes failed");vFc(a,b,!0)})):(a.log(b,"Backfill exceeded size limit"),vFc(a,b,!0))},vFc=function(a,b,c){var d=a.O.get(b);d&&d.dispose();a.O.delete(b);c&&xM(a.context).addCallback(function(e){e.rJa(b,!1)});a.W();0<a.O.size||a.context.Jf.Tt.SW().map(function(e){return e.uc()}).filter(function(e){return!a.H.includes(e)}).forEach(function(e){oFc(a,e,!0)})};
sFc.prototype.log=function(a,b){this.context.Be().info("drive.ds.sync.cache.TeamDriveCacheManager",a+" | "+b)};
var yFc=function(){_.P.apply(this,arguments)};_.K(yFc,_.P);
var BFc=function(a,b){b=zFc(b);var c=a.getItem(),d=AFc(c.getCapabilities());b.V4.forEach(function(e){_.cWb(e.getItem(),c.Cp());_.QJ(e.getItem(),d.clone())});return b},EFc=function(a,b,c){var d=CFc(c);c=c.find(function(e){return e.getId()===b.getId()});c={MK:c?c:new yL(b),children:[]};DFc(a,d,c);return c},CFc=function(a){var b={};a=_.m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=_.m(c.getItem().vk()),e=d.next();!e.done;e=d.next())e=e.value,b[e]||(b[e]=[]),b[e].push(c)}return b},DFc=
function(a,b,c){var d=c.MK.getItem();(b[d.getId()]||[]).forEach(function(e){c.children.push(DFc(a,b,{MK:e,parent:c,children:[]}))});return c},GFc=function(a,b){b=b.children.filter(function(l){return!_.Dk(l.MK.getItem())});for(var c=new Map,d=[];b.length;){var e=b.pop(),f=e.MK.getItem();if(!c.has(f.getId())){_.cWb(f,a.Cp());FFc(a,f,e.parent?e.parent.MK.getItem():void 0);for(var h=_.m(e.children),k=h.next();!k.done;k=h.next())k=k.value,_.Dk(k.MK.getItem())||b.push(k);c.set(f.getId(),!0);d.push(e.MK)}}return d},
HFc=function(a){a=a.children.filter(function(h){return!_.Dk(h.MK.getItem())});for(var b=new Map,c=[];a.length;){var d=a.pop(),e=d.MK.getItem();if(!b.has(e.getId())){c.push(_.CI(_.rI(new _.qI,e.getId())));d=_.m(d.children);for(var f=d.next();!f.done;f=d.next())f=f.value,_.Dk(f.MK.getItem())||a.push(f);b.set(e.getId(),!0)}}return c},zFc=function(a){var b=[],c=[];a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.getItem();_.Dk(e)||_.Q(e,137)?c.push(e):b.push(d)}return{jR:c,V4:b}},AFc=
function(a){a=a.clone();var b=null!=_.Q(a,34)?_.Q(a,34):_.Q(a,7),c=null!=_.Q(a,35)?_.Q(a,35):_.Q(a,7);_.x(a,45,c);_.x(a,46,b);_.x(a,30,c);_.x(a,31,b);_.x(a,47,c);_.x(a,32,c);_.x(a,33,b);_.x(a,4,b);_.x(a,9,c);_.x(a,20,b);_.x(a,17,_.Q(a,7));_.x(a,8,_.Q(a,10)||_.Q(a,11));_.x(a,21,_.tk(a));_.vb(a,18);_.vb(a,13);_.vb(a,10);_.x(a,42,_.Q(a,42));_.x(a,43,_.Q(a,43));_.x(a,48,_.Q(a,48));return a},FFc=function(a,b,c){var d=a.getCapabilities(),e=b.getCapabilities();_.x(e,30,_.Q(d,30));_.x(e,31,_.Q(d,31));_.x(e,
47,_.Q(d,47));_.x(e,32,_.Q(d,32));_.x(e,33,_.Q(d,33));_.x(e,4,_.Q(d,4));_.x(e,9,_.Q(d,9));_.x(e,21,_.Q(d,21));_.x(e,20,_.Q(d,20));_.x(e,17,_.Q(d,17));_.x(e,1,_.tk(d));_.x(e,7,_.Q(d,7));_.x(e,10,_.Q(d,10));_.x(e,11,_.Q(d,11));_.x(e,45,_.Q(d,45));_.x(e,46,_.Q(d,46));_.x(e,48,_.Q(d,48));_.x(b,137,_.Dk(a));c&&(a=c.getCapabilities(),PK(b)?(_.x(e,8,_.Q(a,43)),_.x(e,43,_.Q(a,43)),_.x(e,42,_.Q(a,42))):_.x(e,8,_.Q(a,42)))};
var IFc=function(a){this.context=a;this.V=new yFc;this.logName="drive.ds.sync.change.TdChangeProcessor";this.O=_.Mf(new _.Lf,306);this.H=a.Jf};
IFc.prototype.propagate=function(a){if(zL(a))_.BI(a)?JFc(this,a):KFc(this,a);else if(_.R(this.context.Xc,86,!1)){var b=a.qc(),c=this.H.bm.H(b);var d=c&&c.uc();var e=a.getItem()&&a.getItem().uc();if(!c||!d||!PK(a.getItem()||c)||e&&e!==d)d=!1;else if(d=!!_.Dk(c),!_.BI(a)){e=a.getItem();var f=e.Cp()!==c.Cp();d=_.Dk(c)!==_.Dk(e)||d&&f}if(d)if(_.BI(a)){if(a=LFc(this,c.uc()),c=this.V,d=(new _.Bk).Nb(b),a=(a=EFc(c,d,a))?HFc(a):[],this.context.Jf.Do(a),this.log(b,"SD shared folder delete | Removed "+a.length+
" item(s)"),b=dL(this.context.kk(),106009))c=Prc(b),_.x(c,2,a.length),b.Bj()}else if(b=a.getItem(),c=LFc(this,b.uc()),d=this.V,b=a.getItem(),b=(c=EFc(d,b,c))?GFc(b,c):[],PCc(this.context.Jf,b),this.log(a.qc(),"SD shared folder update | Updated "+b.length+" item(s)"),a=dL(this.context.kk(),106010))c=Prc(a),_.x(c,1,b.length),a.Bj()}};
var JFc=function(a,b){var c=b.qc();b=LFc(a,c);b=zFc(b);var d=_.zf(b.V4,function(e){return _.CI(_.rI(new _.qI,e.getId()))});a.context.Jf.Do(d);a.H.YI.WO(b.jR.map(function(e){return e.getId()}),a.O,void 0,void 0,b.jR.map(function(e){return _.gl((new _.el).Nb(e.getId()),_.Hk(e))}));a.log(c,"SD delete | Remove "+d.length+" item(s), "+(b.jR.length+" divergent items"));if(a=dL(a.context.kk(),106016))c=Qrc(a),_.x(c,1,b.jR.length),_.x(c,2,b.V4.length),a.Bj()},KFc=function(a,b){var c=b.qc(),d=LFc(a,c),e=a.H.bm.H(c);
b=BFc(b,d);PCc(a.context.Jf,b.V4);a.H.YI.WO(b.jR.map(function(h){return h.getId()}),a.O,void 0,void 0,b.jR.map(function(h){return _.gl((new _.el).Nb(h.getId()),_.Hk(h))}));a.log(c,"SD update | Update "+b.V4.length+" item(s), "+(b.jR.length+" divergent items"));if(d=dL(a.context.kk(),106017)){var f=Qrc(d);_.x(f,1,b.jR.length);_.x(f,2,b.V4.length);d.Bj()}e||ADc(a.H.YI,c)},LFc=function(a,b){var c=new _.Af;_.ml(c,[b]);_.nl(c,2);return jvc(a.H.bm,c)};
IFc.prototype.log=function(a,b){this.context.Be().info(this.logName,a+": "+b)};
var MFc=function(a,b,c){this.H=a;this.V=b;this.HJ=c},QFc=function(a,b,c){if(b.uW().length){var d=cyc(a.H,b.qc());if(d){var e=d?dyc(a.H,b):[];for(var f={},h=_.m(b.uW()),k=h.next();!k.done;f={NI:f.NI},k=h.next())if(k=k.value,f.NI=NFc(e,k.Km(),b.qc()),_.Q(k,3))jyc(a.H,f.NI),c.then(function(r){return function(){var v=Txc(r.NI);a.H.O.H.delete(v)}}(f),function(r){return function(){var v=Txc(r.NI);a.H.O.H.delete(v)}}(f));else{for(var l=_.m(_.yb(k,_.YF,2)),p=l.next();!p.done;p=l.next())OFc(a,f.NI,p.value);
k=_.m(_.re(k,4));for(l=k.next();!l.done;l=k.next())PFc(f.NI,l.value);a.H.KD([f.NI],!1,-1);c.then(function(r){return function(){return void a.H.fG(r.NI.getName(),-2)}}(f),function(r){return function(){a.H.fG(r.NI.getName(),-2)}}(f))}e=a.Zc(d.lk().response)}}e=e?e:a.Zc();var q=e.f7a;c.then(function(r){q.resolve(r)},function(r){q.reject(_.xd(r));a.handleError(b.qc(),r)});return e};MFc.prototype.Zc=function(a){a=void 0===a?new KL:a;return new Svc(a.Dc(1))};
var NFc=function(a,b,c){var d=a.find(function(e){return Sxc(e.getName(),b)});d||(d=twc((new JL).$c(b),c),a.push(d));return d};MFc.prototype.handleError=function(a,b){nyc(this.V,a);a=_.vI(b);_.x(a,21,"Server error updating metadata after optimistic application.");this.HJ(a)};
var OFc=function(a,b,c){var d=b.H().find(function(e){return e.getId()===c.getId()});d||(d=new hL,d.Nb(c.getId()),swc(b,b.H().concat([d])),RFc(d,c));if(1===iL(d))d.setBooleanValue(_.Q(c,3));else if(12===iL(d))d.setDateStringValue(_.z(c,17));else if(2===iL(d))d.setTextValue(_.z(c,4));else if(3===iL(d))_.re(c,6).length?d.zqa(_.re(c,6)):_.re(c,5).length&&(a=_.re(d,7).concat(_.re(c,5)),d.zqa(a));else if(4===iL(d))d.setLongTextValue(_.z(c,7));else if(5===iL(d))d.setSelectionValue(_.z(c,8));else if(6===
iL(d))_.re(c,10).length?d.vqa(_.re(c,10)):_.re(c,9).length&&(a=d.aPa().concat(_.re(c,9)),d.vqa(a));else if(7===iL(d))d.setIntegerValue(_.z(c,11));else if(8===iL(d))_.re(c,13).length?d.mqa(_.re(c,13)):_.re(c,12).length&&(a=_.re(d,12).concat(_.re(c,12)),d.mqa(a));else if(10===iL(d))d.setUserValue(a.O(_.z(c,14)));else if(11===iL(d))_.re(c,16).length?Jsc(d,_.re(c,16).map(a.O)):_.re(c,15).length&&Jsc(d,d.a_a().concat(_.re(c,15).map(a.O)));else throw new _.Hc("Optimistic Applier: Unsupported value type "+
(iL(d)+"."),new _.Gc);},PFc=function(a,b){if(a=a.H().find(function(c){return c.getId()===b}))if(1===iL(a))_.vb(a,5);else if(12===iL(a))_.vb(a,17);else if(2===iL(a))_.vb(a,6);else if(3===iL(a))_.gI(a,7);else if(4===iL(a))_.vb(a,8);else if(5===iL(a))_.vb(a,9);else if(6===iL(a))_.gI(a,10);else if(7===iL(a))_.vb(a,11);else if(8===iL(a))_.gI(a,12);else if(10===iL(a))_.lj(a,15);else if(11===iL(a))_.nj(a,16);else throw new _.Hc("Optimistic Applier: Unsupported value type "+(iL(a)+"."),new _.Gc);},RFc=function(a,
b){_.ej(b,3)?a.jB(1):_.ej(b,17)?a.jB(12):_.ej(b,4)?a.jB(2):_.re(b,6).length||_.re(b,5).length?a.jB(3):_.ej(b,7)?a.jB(4):_.ej(b,8)?a.jB(5):_.re(b,10).length||_.re(b,9).length?a.jB(6):_.ej(b,11)?a.jB(7):_.re(b,13).length||_.re(b,12).length?a.jB(8):_.ej(b,14)?a.jB(10):(_.re(b,16).length||_.re(b,15).length)&&a.jB(11)};MFc.prototype.O=function(a){return _.Ehc(_.Chc(1),a)};
var SFc=function(a,b,c,d,e,f,h,k,l){this.H=a;this.ka=b;this.wa=c;this.O=d;this.ma=e;this.Bg=f;this.ha=0;this.V=k;this.W=l;this.Ba=h};
SFc.prototype.apply=function(a,b){var c=this;if(!_.HJ(a))return b;var d=null;a instanceof _.YI?d=TFc(this,a,b):a instanceof _.eJ?d=UFc(this,a,b):a instanceof _.xI?d=VFc(this,a,b):a instanceof _.TI?d=WFc(this,a,b):a instanceof _.zJ&&(d=QFc(this.wa,a,b));d&&(this.ha++,this.ka.setActive(!1),a=function(){c.ha--;0==c.ha&&c.ka.setActive(!0)},b.then(a,a));return d?_.Ph(d):b};
var TFc=function(a,b,c){fyc(a.O,b.getId());var d=a.H.bm.H(b.getId());c.then(function(){a.W("VMiG2e")},a.ta.bind(a,b.getId(),d)).then(function(){var e=b.getId();a.O.H.delete(e)},function(){var e=b.getId();a.O.H.delete(e)});c.then(null,function(e){e=_.vI(e);_.x(e,21,"Server error deleting item after optimistic application.");a.V(e)});return(new _.GJ).Dc(1)},UFc=function(a,b,c){var d=_.z(b,2);d&&a.O.O.push(d);c.then(function(){d&&hyc(a.O,d)&&XFc(a,d,new _.Wjc(1E4,3E5),Date.now()+72E5,5).then(function(){a.W("VMiG2e")},
function(){a.W("VMiG2e")})},function(){d&&_.ya(a.O.O,d)});c.then(null,function(e){e=_.vI(e);_.x(e,21,"Server error emptying trash after optimistic application.");a.V(e)});return(new _.GJ).Dc(1)},XFc=function(a,b,c,d,e){if(Date.now()>d||0>=e)return _.Ph();var f=_.Sh(),h=c.Wa();_.ZH(c);setTimeout(function(){a.ma.then(function(k){var l=_.Mf(new _.Lf,1425);l=foc(!0,1,l);return k.Qe(l).then(function(p){if(p=p.Zc())if(p=p.Bd()[0],!p||(p.Cw()||0)>b){f.resolve();return}XFc(a,b,c,d,e).then(function(){f.resolve()},
function(){f.resolve()})},function(){var p=XFc(a,b,c,d,e-1);p.then(function(){f.resolve()},function(){f.resolve()});return p})})},h);return f.promise},WFc=function(a,b,c){var d=b.uc(),e=a.H.bm.H(d);if(!e)return null;e=e.clone();bDc(a.H,[e],[157]);var f=e.Vh();YFc(f,_.yb(b,_.zk,2));ZFc(f,_.yb(b,_.zk,3));a.H.$k([e],-1,void 0,void 0,[157]);c.then(function(){a.H.fG(d,-2)},function(){a.H.fG(d,-2)});c.then(function(h){a.H.$k([_.y(h,_.Bk,2)],1,void 0,void 0,[157])},null);c.then(null,function(h){h=_.vI(h);
_.x(h,21,"Server error updating item after optimistic application.");a.V(h)});return kAc(new jAc,e).Dc(1)},YFc=function(a,b){var c={};b=_.m(b);for(var d=b.next();!d.done;c={Pfa:c.Pfa},d=b.next())c.Pfa=d.value,_.yb(a,_.zk,8).some(function(e){return function(f){return f.Km()==e.Pfa.Km()}}(c))||_.rj(a,8,c.Pfa,_.zk,void 0)},ZFc=function(a,b){var c=b.map(function(d){return d.Km()});b=_.yb(a,_.zk,8).filter(function(d){return!c.includes(d.Km())});nnc(a,b)},VFc=function(a,b,c){var d=a.H.bm.H(b.getId());if(!d||
d.uc()&&0==b.Qh()||null!=_.Q(b,40))return null;var e=_.re(b,10),f=_.re(b,9);if(0<e.length&&0<f.length&&(e=Object.values(ivc(a.H.bm,e.concat(f))).map(function(k){return k.uc()||"root"}),_.Ga(e),1<e.length))return null;var h=d.clone();$Fc(a,b,h);a.H.$k([h],-1,void 0,void 0,[].concat(_.fc(a.Bg.O)));c.then(function(){return a.H.fG(b.getId(),-2)},function(){a.H.fG(b.getId(),-2);a.ta(b.getId(),d)});c.then(null,function(k){k=_.vI(k);if(63==k.Wj()){var l=h.getId();_.x(k,22,l);_.x(k,23,f[0])}_.x(k,21,"Server error updating item after optimistic application.");
a.V(k)});return _.Lic((new _.GJ).setItem(h),h.getId()).Dc(1)},$Fc=function(a,b,c){null!=b.Bf()&&c.kl(b.Bf());null!=b.Mi()&&_.Qhc(c,b.Mi());null!=b.getMimeType()&&_.hG(c,b.getMimeType());null!=_.z(b,7)&&_.x(c,11,_.z(b,7));null!=_.Q(b,11)&&_.x(c,8,_.Q(b,11));null!=_.Q(b,4)&&c.px(_.Q(b,4));null!=_.Q(b,16)&&_.x(c,31,_.Q(b,16));null!=b.getTitle()&&c.setTitle(b.getTitle());null!=b.Qh()&&(c.Ro(b.Qh()),_.x(c,26,b.Qh()));null!=_.Q(b,18)&&_.JK(Bnc(c,!0),_.Q(b,18));_.re(b,8).length&&_.PJ(c,_.re(b,8));if(_.re(b,
9).length){var d=new Set(c.vk());_.re(b,9).forEach(function(p){return d.add(p)});_.PJ(c,[].concat(_.fc(d)))}if(_.re(b,10).length){var e=new Set(c.vk());_.re(b,10).forEach(function(p){return e.delete(p)});_.PJ(c,[].concat(_.fc(e)));var f=c.Zw();f&&_.re(b,10).includes(f)&&_.vb(c,46)}if(!c.Zw()){var h=a.Ba();f=c.vk().find(function(p){var q=a.H.bm.H(p);return q&&!!q.Zw()||p==h});_.x(c,46,f||void 0)}c.vk().length&&(f=a.H.bm.H(c.vk()[0]))&&_.Thc(c,f.uc());if(f=_.y(b,_.wk,25)){var k=_.y(c,_.wk,111)||new _.wk;
null!=_.Q(f,1)&&k.rP(_.Q(f,1));null!=_.z(f,2)&&_.x(k,2,_.z(f,2));_.G(c,111,k)}var l=_.re(c,120);_.re(b,31).forEach(function(p){l.includes(p)||l.push(p)});_.re(b,32).forEach(function(p){_.ya(l,p)});_.kj(c,120,l)};SFc.prototype.ta=function(a,b){var c=this,d=_.cG(new _.aG,[a]);this.ma.then(function(e){return e.Qe(d)}).then(function(e){e=e.Zc().Bd()[0];c.H.$k([e.clone()],1)},function(){b&&c.H.$k([b.clone()],1)})};
var aGc=function(a){this.H=a};_.K(aGc,_.Nlc);aGc.prototype.execute=function(a,b,c){var d=_.Nlc.prototype.execute.call(this,a,b,c);if(d)return d;if(c.pNa||b instanceof _.nI&&_.JJ(b.jd()))if(c=esc(this.H))return c;return b instanceof _.eJ?(c=_.Mf(new _.Lf,1424),a.Qe(foc(!1,1,c)).then(function(e){(e=e.Zc())&&(e=e.Bd()[0])&&_.ej(e,96)&&b.Wda(e.Cw())},_.cg)):null};
var Boc=function(a,b){return[bGc,cGc,dGc,eGc].reduce(function(c,d){var e;0!==c?e=c:e=_.Ha(d(a),d(b));return e},0)},bGc=function(a){return fGc[a.Df()]},cGc=function(a){return gGc[a.getType()]},dGc=function(a){return a.getName()||""},eGc=function(a){return a.getId()||""},BM={},fGc=(BM[5]=0,BM[7]=1,BM[1]=2,BM[3]=3,BM[4]=4,BM[2]=5,BM[6]=6,BM),hGc={},gGc=(hGc[1]=0,hGc[2]=1,hGc[3]=2,hGc[4]=3,hGc);
var iGc=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.Bg=l};
iGc.prototype.apply=function(a,b){var c=this;if(!(b instanceof _.GJ&&8===b.Cb()))if(a instanceof _.SI||a instanceof _.UI||a instanceof _.Zgc||a instanceof _.rJ||a instanceof _.xI||a instanceof _.BJ||a instanceof _.ghc||a instanceof _.DJ||a instanceof RK){var d=_.AI(b.getItem().clone(),9);this.H.$k([d],1);Iyc(this.ta,b.getItem(),_.bK(this.Bg))}else if(a instanceof _.YI)b=_.CI(_.rI(new _.qI,a.getId())),this.H.Do([b]);else if(a instanceof _.aJ)b=_.CI(_.ogc(_.rI(new _.qI,a.getId()),a.getId())),this.H.Do([b]),
this.ma.propagate(b);else if(a instanceof _.eJ)b=foc(!0).jd(),b=this.H.bm.query(b).map(function(e){return _.CI(_.rI(new _.qI,e.getId()))}),this.H.Do(b);else if(a instanceof _.WI)this.O.remove(a.Jh());else if(a instanceof _.hJ||a instanceof _.yJ)this.O.put(b.yr());else if(a instanceof _.ZI)Aoc(this.H,a);else if(a instanceof _.oD)this.W.remove(a.getKey());else if(a instanceof _.iJ)Coc(this.H,a,_.y(b,_.mk,2));else if(a instanceof _.pD)this.W.put(b.lPa());else if(a instanceof _.VI||a instanceof _.CJ)this.ha.KD([b.vn()],
!1);else if(a instanceof _.bJ)this.ha.KD([kyc(a.getId())],!1);else if(a instanceof _.Ygc)this.V.KD(b.response.H(),!1,1);else if(a instanceof _.zJ)a.uW().filter(function(e){return _.Q(e,3)}).forEach(function(e){return c.V.removeItem(e.Km()||"",a.qc())}),nyc(this.ka,a.qc()),this.H.x5a(a.qc());else if(a instanceof _.gK)for(b=_.m(_.yb(a,_.Msc,1)),d=b.next();!d.done;d=b.next())switch(d=d.value,d.getFeature()){case 3:case 4:case 1:switch(d=_.y(d,_.jL,2),d.getType()){case 1:case 2:if(d=this.H.bm.H(d.qc()))d=
_.rI(mrc(),d.getId()).setItem(d.clone()),this.H.Do([d])}}};
var jGc=function(a){this.H=a};
jGc.prototype.translate=function(a){if(a instanceof _.vJ){var b=this.H.H(a.getId());if(!b)return new _.Gc;var c=(new _.xI).Nb(a.getId());if(b.uc()){var d=b.getCapabilities();_.Oe(d)||_.Q(d,9)?c.Ro(!0):_.yI(c,!1)}else d=a.getParent(),1===b.Cp()?c.Ro(!0):d?(b=this.H.H(d),!b||_.Q(b.getCapabilities(),7)?hrc(c,[d]):_.yI(c,!1)):_.yI(c,!1);return c}if(a instanceof _.wJ)return jrc(irc(hrc(grc((new _.xI).Nb(a.getId()),_.re(a,2)),_.re(a,3)),_.Q(a,6)),_.yb(a,_.el,8));if(a instanceof _.xJ){b=this.H.H(a.getId());
if(!b)return new _.Gc;c=(new _.xI).Nb(a.getId());b.uc()?(d=b.getCapabilities(),_.Oe(d)||_.Q(d,9)?c.Ro(!1):_.yI(c,!0)):(d=a.getParent(),1===b.Cp()?c.Ro(!1):d?(b=this.H.H(d),!b||_.tk(b.getCapabilities())?grc(c,[d]):_.yI(c,!0)):_.yI(c,!0));return c}if(a instanceof _.tK)return new _.Zgc(a);if(a instanceof _.nM)return _.re(a,1).map(function(f){var h=new _.zJ;f=_.x(h,1,f);h=a.uW();f=_.mj(f,2,h);h=a.re();return _.G(f,3,h)});if(a instanceof _.dJ){c=foc(!1,1).jd();var e=0;this.H.query(c).forEach(function(f){(f=
f.Cw())&&(e=Math.max(e,f))});return Wrc(new _.eJ,a).Wda(e)}return a};
var kGc=function(){};kGc.prototype.validate=function(a){var b=null;a instanceof _.mJ?(a=a.getId()||"",_.Se(a)&&(b="Tried to request backup with no id.")):a instanceof _.XI&&(a=a.getId()||"",_.Se(a)&&(b="Tried to delete backup with no id."));return b?_.vI(b):null};
var lGc=function(a,b){this.H=a;this.O=b},oGc=function(a,b){var c=new _.fM,d=new _.UB;if(b.user){var e=_.DK(a.H,b.user);_.G(d,1,e)}a=mGc(a,b);a=arc($qc(_.Zqc(new _.Pwb,a),b.rootFolderId),b.domainSharingPolicy);b.gsuiteSubscriptionInfo&&(e=b.gsuiteSubscriptionInfo,_.crc(a,_.Oqc(_.Nqc((new _.TB).Dc(nGc.get(e.status)),Number(e.trialMillisRemaining)),_.CK(e.trialEndTime))));b.teamDashboardCapabilities&&(e=b.teamDashboardCapabilities,_.drc(a,_.Qqc(_.Pqc(new _.Kwb,e.canAdministerTeam),e.canManageInvites)));
b.importFormats&&brc(a,b.importFormats.map(function(f){var h=new _.Yqc;h=_.x(h,1,f.source);return _.kj(h,2,f.targets)}));_.G(d,3,a);_.lAc(c,d);b=b.largestChangeId;null!=b&&_.x(c,4,Number(b));return c},mGc=function(a,b){var c;var d=new _.Owb;d=_.x(d,1,Number(b.quotaBytesTotal));d=_.x(d,2,Number(b.quotaBytesUsed));d=_.x(d,3,Number(b.quotaBytesUsedAggregate));d=_.x(d,4,Number(b.quotaBytesUsedInTrash));d=_.Uqc(_.Tqc(_.Sqc(_.Rqc(d,Eoc(b.quotaBytesByService||[])),b.quotaType?pGc.get(b.quotaType):void 0),
Number(b.quotaBytesTotal)),"-1"===b.quotaBytesTotal?-1:Math.max(Number(b.quotaBytesTotal)-Number(b.quotaBytesUsedAggregate),0));var e=Number(b.quotaBytesUsedAggregate)-Goc(b);d=_.x(d,9,e);d=_.Vqc(d,Number(b.quotaBytesUsedAggregate));d=_.x(d,11,Number(b.quotaBytesUsedInTrash));d=_.x(d,13,_.znc(Number(b.quotaBytesUsedAggregate),Number(b.quotaBytesTotal)));d=_.Wqc(d,qGc.get(b.quotaStatus)||0);if(b.graceQuotaInfo&&b.graceQuotaInfo.endDate){e=new _.Nwb;var f=_.U6a(new Date(b.graceQuotaInfo.endDate));e=
_.G(e,1,f);e=_.x(e,2,Number(b.graceQuotaInfo.additionalQuotaBytes));_.G(d,12,e)}if(null===(c=_.IJ(a.O))||void 0===c?0:_.R(c,16,!1)){var h;(a=d.gK())&&(null===(h=null===b||void 0===b?void 0:b.graceQuotaInfo)||void 0===h?0:h.gracePeriodActive)&&a.setActive(!!b.graceQuotaInfo.gracePeriodActive);isNaN(Number(b.individualQuotaBytesTotal))||(h=_.x(d,16,Number(b.individualQuotaBytesTotal)),_.x(h,17,_.znc(Number(b.individualQuotaBytesUsedAggregate),Number(b.individualQuotaBytesTotal))));b=_.x(d,9,Number(b.individualQuotaBytesUsedAggregate))}else b=
d;return b},qGc=new Map([["softLimitExceeded",2],["hardLimitExceeded",3],["underLimit",1]]),Foc=new Set(["POOLED_STORAGE","FAMILY"]),nGc=new Map([["isInTrial",1],["hasPaidContract",2],["noSubscription",3],["trialExpired",4]]),Doc=new Map([["DRIVE",1],["FAMILY",4],["GMAIL",2],["PHOTOS",3],["POOLED_STORAGE",5]]),pGc=new Map([["LIMITED",1],["UNLIMITED",2],["POOLED",3]]);
var rGc=new Map([["TYPE_UNSPECIFIED",0],["MOBILE",1],["SYNC_CLIENT",2],["APP",3]]),sGc=new Map([["TYPE_UNSPECIFIED",0],["MY_DRIVE_ROOT",1],["SHARED_DRIVE_ROOT",2],["STANDARD_FOLDER",3]]),tGc=new Map([["TYPE_UNSPECIFIED",0],["USER_DELETION",1],["TRASH_AUTO_PURGE",2],["MULTIPARENTING_MIGRATION",4]]),uGc=new Map([["TYPE_UNSPECIFIED",0],["TRASH",1],["PERMANENT_DELETE",2]]),vGc=new Map([["TYPE_UNSPECIFIED",0],["UNTRASH",1],["REVIVE",2]]),wGc=new Map([["ROLE_UNSPECIFIED",0],["OWNER",1],["ORGANIZER",2],
["FILE_ORGANIZER",3],["EDITOR",4],["COMMENTER",5],["VIEWER",6],["PUBLISHED_VIEWER",7]]),xGc=new Map([["SUBTYPE_UNSPECIFIED",0],["ADDED",1],["DELETED",2],["REPLY_ADDED",3],["REPLY_DELETED",4],["RESOLVED",5],["REOPENED",6]]),yGc=new Map([["SUBTYPE_UNSPECIFIED",0],["ADDED",1],["DELETED",2],["REPLY_ADDED",3],["REPLY_DELETED",4],["RESOLVED",5],["REOPENED",6],["REASSIGNED",7]]),zGc=new Map([["SUBTYPE_UNSPECIFIED",0],["ADDED",1],["DELETED",2],["REPLY_ADDED",3],["REPLY_DELETED",4],["ACCEPTED",7],["REJECTED",
8],["ACCEPT_DELETED",9],["REJECT_DELETED",10]]),AGc=new Map([["TYPE_UNSPECIFIED",0],["FLAGGED",1],["CLEARED",2]]),BGc=new Map([["TYPE_UNSPECIFIED",0],["LOADED_FOR_VIEW",1],["VIEWED_MORE_CONTENT",2],["OPEN_WITH_APP_INITIATED",3]]),CGc=new Map([["DOMAIN_VISIBILITY_UNKNOWN",0],["DOMAIN_VISIBILITY_CONSUMER",1],["DOMAIN_VISIBILITY_SAME_DOMAIN",2],["DOMAIN_VISIBILITY_ALL_DOMAINS",3],["DOMAIN_VISIBILITY_RESTRICTED",4]]),DGc=new Map([["NAMED_PARTY_UNKNOWN",0],["NAMED_PARTY_UNNAMED",1],["NAMED_PARTY_NAMED",
2]]),EGc=new Map([["TYPE_UNSPECIFIED",0],["DOWNLOADED",1],["DOWNLOAD_INITIATED",2],["PRINT_INITIATED",3]]),FGc=new Map([["UNSPECIFIED_REFERENCE_TYPE",0],["LINK",1],["DISCUSS",2]]),GGc=new Map([["FEATURE_UNSPECIFIED",0],["SHARING_OUTSIDE_DOMAIN",1],["DIRECT_SHARING",2],["ITEM_DUPLICATION",3],["DRIVE_FILE_STREAM",4]]),HGc=new Map([["RESTRICTION_UNSPECIFIED",0],["UNRESTRICTED",1],["FULLY_RESTRICTED",2]]),IGc=new Map([["STATUS_UNSPECIFIED",0],["IN_PROGRESS",1],["COMPLETED",2],["CANCELLED",3]]),JGc=new Map([["DECISION_UNSPECIFIED",
0],["APPROVED",1],["DECLINED",2]]),KGc=new Map([["TYPE_UNSPECIFIED",0],["LABEL_ADDED",1],["LABEL_REMOVED",2],["LABEL_FIELD_VALUE_CHANGED",3]]),LGc=new Map([["PUBLISH_MODE_UNSPECIFIED",0],["NONE",1],["FIXED",2],["AUTO",3]]),MGc=new Map([["REASON_UNSPECIFIED",0],["ORPHAN_REPARENTED",1]]),TGc=function(a){return a.map(function(b){var c=new _.pAc;if(b.primaryActionDetail){var d=NGc(b.primaryActionDetail);_.G(c,2,d)}b.actors&&(d=OGc(b.actors),_.mj(c,3,d));b.actions&&(d=PGc(b.actions),_.mj(c,4,d));b.targets&&
(d=QGc(b.targets),_.mj(c,5,d));b.timestamp&&c.V(RGc(b.timestamp));b.timeRange&&(b=SGc(b.timeRange),_.qj(c,7,_.hM,b));return c})},PGc=function(a){return a.map(function(b){var c=new _.mAc;if(b.detail){var d=NGc(b.detail);_.G(c,1,d)}if(b.source){d=b.source;var e=new huc;if(d.type){var f=rGc.get(d.type);_.Ej(e,2,f)}d.appId&&_.Dj(e,1,d.appId);_.G(c,2,e)}b.actor&&(d=UGc(b.actor),_.G(c,3,d));b.target&&(d=VGc(b.target),_.G(c,4,d));b.timestamp&&c.V(RGc(b.timestamp));b.timeRange&&(b=SGc(b.timeRange),_.qj(c,
6,_.nAc,b));return c})},QGc=function(a){return a.map(function(b){return VGc(b)})},XGc=function(a){return a.map(function(b){return WGc(b)})},YGc=function(a){return a.map(function(b){var c=new _.Stc;b.parent&&c.Ug(WGc(b.parent));b.shortcut&&(b=WGc(b.shortcut),_.G(c,2,b));return c})},VGc=function(a){var b=new _.puc;if(a.driveItem){var c=ZGc(a.driveItem);_.qj(b,1,_.sL,c)}if(a.drive){var d=a.drive;c=new _.nuc;d.name&&c.$c(d.name);d.title&&c.setTitle(d.title);d.root&&(d=ZGc(d.root),_.G(c,3,d));_.qj(b,5,
_.sL,c)}a.fileComment&&(a=a.fileComment,c=new _.ouc,a.legacyCommentId&&_.Dj(c,1,a.legacyCommentId),a.legacyDiscussionId&&_.Dj(c,2,a.legacyDiscussionId),a.linkToDiscussion&&_.Dj(c,3,a.linkToDiscussion),a.parent&&c.Ug(ZGc(a.parent)),_.qj(b,3,_.sL,c));return b},WGc=function(a){var b=new _.lL;if(a.driveItem){var c=a.driveItem,d=new Btc;c.name&&d.$c(c.name);c.title&&d.setTitle(c.title);if(c.driveFile){var e=new ztc;_.qj(d,8,Atc,e)}c.driveFolder&&(e=$Gc(c.driveFolder),_.qj(d,9,Atc,e));c.driveShortcut&&
(c=aHc(c.driveShortcut),_.qj(d,10,Atc,c));_.qj(b,1,Ctc,d)}a.drive&&(a=bHc(a.drive),_.qj(b,3,Ctc,a));return b},ZGc=function(a){var b=new _.ytc;a.name&&b.$c(a.name);a.title&&b.setTitle(a.title);a.mimeType&&_.Dj(b,6,a.mimeType);var c=Number(a.version);isFinite(c)&&_.Cj(b,5,c);if(a.owner){var d=a.owner;c=new utc;d.domain&&c.On(cHc(d.domain));if(d.user){var e=CM(d.user);_.qj(c,1,_.ttc,e)}d.drive&&(d=bHc(d.drive),_.qj(c,4,_.ttc,d));_.G(b,7,c)}a.driveFile&&(c=new ztc,_.qj(b,8,vtc,c));a.driveFolder&&(c=$Gc(a.driveFolder),
_.qj(b,9,vtc,c));a.driveShortcut&&(a=aHc(a.driveShortcut),_.qj(b,10,vtc,a));return b},bHc=function(a){var b=new stc;a.name&&b.$c(a.name);a.title&&b.setTitle(a.title);return b},$Gc=function(a){var b=new wtc;a.type&&(a=sGc.get(a.type),_.Ej(b,6,a));return b},aHc=function(a){var b=new xtc;a.targetName&&_.Dj(b,1,a.targetName);a.targetMimeType&&_.Dj(b,2,a.targetMimeType);return b},OGc=function(a){return a.map(function(b){return UGc(b)})},UGc=function(a){var b=new _.muc;if(a.user){var c=CM(a.user);_.qj(b,
1,_.rL,c)}a.anonymous&&(c=new juc,_.qj(b,2,_.rL,c));if(a.impersonation){var d=a.impersonation;c=new _.kuc;d.impersonatedUser&&(d=CM(d.impersonatedUser),_.G(c,1,d));_.qj(b,3,_.rL,c)}a.system&&(d=a.system,c=new _.luc,d.type&&(d=tGc.get(d.type),_.Ej(c,1,d)),_.qj(b,4,_.rL,c));a.administrator&&(a=new _.iuc,_.qj(b,5,_.rL,a));return b},dHc=function(a){return a.map(function(b){return CM(b)})},CM=function(a){var b=new _.$sc;if(a.knownUser){var c=a.knownUser,d=new _.Ysc;c.personName&&_.Dj(d,1,c.personName);
c.isCurrentUser&&_.Bj(d,2,c.isCurrentUser);c.displayName&&_.Dj(d,3,c.displayName);c.photoUrl&&d.Pn(c.photoUrl);_.qj(b,2,_.Xsc,d)}a.unknownUser&&(c=new atc,_.qj(b,4,_.Xsc,c));a.deletedUser&&(a=new _.Zsc,_.qj(b,3,_.Xsc,a));return b},RGc=function(a){var b=(new Date(a)).getTime();a=Math.floor(b/1E3);b=b%1E3*1E6;return _.T6a((new _.Fy).setSeconds(a),b)},SGc=function(a){var b=new _.gM;a.startTime&&b.lZ(RGc(a.startTime));a.endTime&&b.lP(RGc(a.endTime));return b},cHc=function(a){var b=new rtc;a.name&&b.$c(a.name);
a.legacyId&&_.Dj(b,3,a.legacyId);a.audienceDisplayName&&_.Dj(b,4,a.audienceDisplayName);return b},NGc=function(a){var b=new _.qL;if(a.create){var c=a.create,d=new _.Ftc;if(c.new){var e=new Gtc;_.qj(d,1,_.Dtc,e)}c.upload&&(e=new Htc,_.qj(d,2,_.Dtc,e));c.copy&&(e=c.copy,c=new _.Etc,e.originalObject&&(e=WGc(e.originalObject),_.G(c,1,e)),_.qj(d,3,_.Dtc,c));_.qj(b,1,_.pL,d)}a.edit&&(d=new Mtc,_.qj(b,2,_.pL,d));if(a.move){c=a.move;d=new _.Utc;c.addedParents&&(e=XGc(c.addedParents),_.mj(d,1,e));c.removedParents&&
(e=XGc(c.removedParents),_.mj(d,2,e));c.fromOwnershipTransfer&&_.Bj(d,3,c.fromOwnershipTransfer);c.reparents&&(e=c.reparents.map(eHc),_.mj(d,4,e));if(c.multiparentingMigration){e=c.multiparentingMigration;c=new _.Ttc;if(e.removedParents){var f=XGc(e.removedParents);_.mj(c,2,f)}e.migratedParents&&(e=YGc(e.migratedParents),_.mj(c,1,e));_.G(d,5,c)}_.qj(b,3,_.pL,d)}a.rename&&(d=a.rename,c=new _.$tc,d.oldTitle&&_.Dj(c,1,d.oldTitle),d.newTitle&&_.Dj(c,2,d.newTitle),_.qj(b,4,_.pL,c));a.delete&&(c=a.delete,
d=new _.Ktc,c.type&&(c=uGc.get(c.type),_.Ej(d,1,c)),_.qj(b,5,_.pL,d));a.restore&&(c=a.restore,d=new _.auc,c.type&&(c=vGc.get(c.type),_.Ej(d,1,c)),_.qj(b,6,_.pL,d));a.permissionChange&&(c=a.permissionChange,d=new _.Xtc,c.addedPermissions&&(e=fHc(c.addedPermissions),_.mj(d,1,e)),c.removedPermissions&&(e=fHc(c.removedPermissions),_.mj(d,2,e)),c.resharedPermissions&&(e=fHc(c.resharedPermissions),_.mj(d,3,e)),c.otherActivePermissions&&(c=fHc(c.otherActivePermissions),_.mj(d,4,c)),_.qj(b,7,_.pL,d));if(a.comment){c=
a.comment;d=new _.qtc;c.post&&(f=c.post,e=new _.ntc,f.subtype&&(f=xGc.get(f.subtype),_.Ej(e,1,f)),_.qj(d,1,_.mtc,e));if(c.assignment){f=c.assignment;e=new _.otc;if(f.subtype){var h=yGc.get(f.subtype);_.Ej(e,1,h)}f.assignedUser&&(f=CM(f.assignedUser),_.G(e,7,f));_.qj(d,2,_.mtc,e)}c.suggestion&&(f=c.suggestion,e=new _.ptc,f.subtype&&(f=zGc.get(f.subtype),_.Ej(e,1,f)),_.qj(d,3,_.mtc,e));c.mentionedUsers&&(c=dHc(c.mentionedUsers),_.mj(d,7,c));_.qj(b,8,_.pL,d)}a.dlpChange&&(c=a.dlpChange,d=new _.Jtc,c.type&&
(c=AGc.get(c.type),_.Ej(d,1,c)),_.qj(b,9,_.pL,d));if(c=a.view){d=new guc;(e=BGc.get(c.type))&&_.Ej(d,1,e);if(e=c.viewHistoryVisibility)c=new fuc,(f=CGc.get(e.domainPolicyVisibilityState))&&_.Ej(c,1,f),(e=DGc.get(e.namedPartyState))&&_.Ej(c,2,e),_.G(d,2,c);_.qj(b,10,_.pL,d)}if(c=a.download)d=new Ltc,(c=EGc.get(c.type))&&_.Ej(d,1,c),_.qj(b,11,_.pL,d);a.reference&&(c=a.reference,d=new _.Ssc,c.type&&(e=FGc.get(c.type),_.Ej(d,1,e)),c.context&&(c=c.context,e=new Rsc,c.description&&e.kl(c.description),c.url&&
_.Dj(e,2,c.url),_.G(d,2,e)),_.qj(b,12,_.pL,d));a.settingsChange&&(c=a.settingsChange,d=new _.duc,c.restrictionChanges&&(c=gHc(c.restrictionChanges),_.mj(d,1,c)),_.qj(b,13,_.pL,d));a.approvalChange&&(c=a.approvalChange,d=new _.dtc,c.approvalName&&_.Dj(d,2,c.approvalName),c.approvalEventNames&&_.kj(d,3,c.approvalEventNames),c.initiator&&(e=CM(c.initiator),_.G(d,4,e)),c.reviewers&&(e=dHc(c.reviewers),_.mj(d,5,e)),c.status&&d.Dc(IGc.get(c.status)),c.dueTime&&(e=RGc(c.dueTime),_.G(d,7,e)),c.approvalRequested&&
(e=new etc,_.qj(d,8,_.kL,e)),c.approvalCancelled&&(e=new ftc,_.qj(d,9,_.kL,e)),c.reviewerResponded&&(f=c.reviewerResponded,e=new _.ctc,f.reviewerDecision&&(f=JGc.get(f.reviewerDecision),_.Ej(e,1,f)),_.qj(d,10,_.kL,e)),c.commentAdded&&(e=new gtc,_.qj(d,11,_.kL,e)),c.reviewersChanged&&(f=c.reviewersChanged,e=new itc,f.reviewerChanges&&(f=hHc(f.reviewerChanges),_.mj(e,1,f)),_.qj(d,12,_.kL,e)),c.dueTimeChanged&&(e=c.dueTimeChanged,c=new ktc,e.oldDueTime&&(e=RGc(e.oldDueTime),_.G(c,1,e)),_.qj(d,13,_.kL,
c)),_.qj(b,18,_.pL,d));a.lock&&(d=new Otc,_.qj(b,15,_.pL,d));a.unlock&&(d=new euc,_.qj(b,16,_.pL,d));a.appliedLabelChange&&(c=a.appliedLabelChange,d=new _.Wsc,c.changes&&(c=iHc(c.changes),_.mj(d,1,c)),_.qj(b,19,_.pL,d));a.publishChange&&(c=a.publishChange,d=new _.Ztc,c.oldPublishState&&(e=jHc(c.oldPublishState),_.G(d,1,e)),c.newPublishState&&(c=jHc(c.newPublishState),_.G(d,2,c)),_.qj(b,20,_.pL,d));a.linkShareMetadataChange&&(a=a.linkShareMetadataChange,d=new _.Ntc,a.securityUpdateEnabled&&_.Bj(d,
1,a.securityUpdateEnabled),_.qj(b,21,_.pL,d));return b},eHc=function(a){var b=new _.Qtc;a.reason&&(a=MGc.get(a.reason),_.Ej(b,1,a));return b},fHc=function(a){return a.map(function(b){var c=new _.oL;if(b.role){var d=wGc.get(b.role);_.Ej(c,1,d)}b.user&&(d=CM(b.user),_.qj(c,2,_.nL,d));if(b.group){d=b.group;var e=new _.mL;d.email&&_.Dj(e,1,d.email);d.title&&e.setTitle(d.title);_.qj(c,3,_.nL,e)}b.domain&&c.On(cHc(b.domain));b.anyone&&(d=new Vtc,_.qj(c,5,_.nL,d));b.allowDiscovery&&_.Bj(c,6,b.allowDiscovery);
return c})},gHc=function(a){return a.map(function(b){var c=new _.cuc;if(b.feature){var d=GGc.get(b.feature);_.Ej(c,1,d)}b.newRestriction&&(b=HGc.get(b.newRestriction),_.Ej(c,2,b));return c})},hHc=function(a){return a.map(function(b){var c=new jtc;if(b.removedReviewer){var d=CM(b.removedReviewer);_.G(c,3,d)}b.addedReviewer&&(b=CM(b.addedReviewer),_.G(c,4,b));return c})},iHc=function(a){return a.map(function(b){var c=new _.Vsc;b.label&&_.Dj(c,1,b.label);b.types&&(b=kHc(b.types),_.kj(c,2,b));return c})},
kHc=function(a){return a.map(function(b){return KGc.get(b)})},jHc=function(a){var b=new _.Ytc;if(a.publishMode){var c=LGc.get(a.publishMode);_.Ej(b,1,c)}a.signinRequired&&_.Bj(b,2,a.signinRequired);a.publishedTime&&(a=RGc(a.publishedTime),_.G(b,3,a));return b};
var mHc=function(a){return(a.items||[]).map(function(b){return lHc(b)})},nHc=function(a,b){var c=new yAc;b=_.x(c,4,b);a&&(a=lHc(a),_.G(b,2,a));return b},lHc=function(a){var b=(new _.tL).Nb(a.id);b=_.x(b,3,a.useByDefault).$c(a.name);b=_.x(b,7,a.openUrlTemplate);b=yuc(xuc(b,a.primaryMimeTypes),a.secondaryMimeTypes);b=_.x(b,8,a.createUrl);b=_.x(b,9,a.createInFolderTemplate);b=_.x(b,10,a.objectType);b=_.x(b,11,a.supportsCreate);b=_.x(b,12,a.supportsImport);b=_.x(b,13,a.supportsMultiOpen);b=_.x(b,27,a.supportsOfflineCreate);
b=_.x(b,14,a.installed);b=_.x(b,15,a.authorized);b=_.x(b,16,a.productUrl);b=_.kj(b,17,a.primaryFileExtensions);b=_.kj(b,18,a.secondaryFileExtensions);b=_.x(b,19,a.shortDescription);b=_.x(b,20,a.longDescription);b=_.x(b,21,a.productId);b=_.x(b,22,a.removable);var c=oHc.get(a.type);b=_.x(b,23,c);b=_.x(b,25,a.hasAppData);b=_.x(b,26,Number(a.appDataQuotaBytesUsed));b=_.x(b,28,a.requiresAuthorizationBeforeOpenWith);b=_.x(b,30,a.hasDriveWideScope);b=_.x(b,31,a.driveSource);b=_.x(b,32,a.driveBranded);b=
_.x(b,33,a.hidden);b=_.x(b,34,a.supportsMobileBrowser);b=_.x(b,35,a.supportsTeamDrives);b=_.x(b,36,a.hasGsmListing);c=a.icons||[];for(var d=[],e=0;e<c.length;e++){var f=d,h=f.push,k=c[e],l=new _.suc;l=_.x(l,3,k.iconUrl).setSize(k.size);k.category&&(k=pHc.get(k.category),_.x(l,1,k));h.call(f,l)}_.mj(b,6,d);c=a.chromeExtensionIds||[];d=[];for(e=0;e<c.length;e++)d.push(c[e]);_.kj(b,24,d);c=a.rankingInfo||{};a=new _.vuc;d=c.absoluteScore;null!=d&&_.x(a,1,Number(d));d=qHc(c.mimeTypeScores||[]);_.mj(a,
2,d);c=qHc(c.fileExtensionScores||[]);_.mj(a,3,c);_.G(b,29,a);return b},qHc=function(a){return a.map(function(b){var c=b.type;b=b.score;var d=new _.tuc;c=_.x(d,1,c);return _.x(c,2,Number(b))})},oHc=new Map([["WEB_ONLY",1],["WEB_AND_CHROME_EXTENSION",2],["CHROME_EXTENSION_ONLY",3]]),pHc=new Map([["application",1],["document",2],["documentShared",3]]);
var sHc=function(a){var b=new GAc;if(!a.backups)return b;a=a.backups.map(function(c){var d=(new _.FL).Nb(c.id).setTitle(c.title);d=_.x(d,3,_.CK(c.updateTime));var e=rHc.get(c.backupSource);d=_.x(d,4,e);d=_.x(d,5,c.iconUri);d=_.x(d,8,_.CK(c.expiryTime));d=_.x(d,9,"boolean"===typeof c.hasGoogleoneBackup?c.hasGoogleoneBackup:!1);if(1===d.Bz())e=new Wvc,e=_.x(e,1,c.whatsappOngoingBackupEnabled),c=_.x(e,2,c.whatsappPhoneNumber),_.G(d,6,c);else if(2===d.Bz()){e=Number(c.deviceAndroidId);var f=new _.Vvc;
f=_.x(f,1,c.deviceName);f=_.x(f,2,c.deviceModelName);c=_.x(f,3,c.shouldIncludeSpecialSyncItems);c=_.x(c,4,isNaN(e)?void 0:e);_.G(d,7,c)}return d});_.mj(b,2,a);return b},uHc=function(a){var b=new CAc;if(!a.backupItems)return b;a=a.backupItems.map(function(c){var d=(new _.GL).Nb(c.id);var e=tHc.get(c.type);d=_.x(d,1,e).setTitle(c.title);d=_.x(d,4,c.iconUri);d=_.Xvc(d.setSize(c.size?Number(c.size):void 0),_.CK(c.updateTime));d=_.x(d,7,c.hasCustomBehavior).kl(c.description);return _.x(d,9,c.ongoingSyncEnabled)});
_.mj(b,1,a);return b},rHc=new Map([["BACKUP_SOURCE_UNSPECIFIED",0],["BACKUP_SOURCE_WHATSAPP",1],["BACKUP_SOURCE_ANDROID",2]]),tHc=new Map([["TYPE_UNSPECIFIED",0],["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 vHc=function(a,b){this.H=a;this.O=b};
var Hoc=new Map([["QUEUED",1],["COUNTING",3],["BUILDING",2],["SUCCEEDED",4],["FAILED",5]]);
var wHc=new Map([["READ",2],["WRITE",3],["COMMENT",4]]),xHc=function(a,b,c){var d=c.itemId;c=c.driveItem;d=(new _.Bk).Nb(d);c&&(_.hG(d.setTitle(c.title),c.mimeType),c.userCapabilities&&_.QJ(d,_.Slc(c.userCapabilities)));_.bK(b).includes(19)&&_.x(d,44,!0);Iyc(a,d,_.bK(b));_.Shc(d,4);return d},AHc=function(a,b,c){for(var d=[],e=[],f={},h=_.m(c.item||[]),k=h.next();!k.done;f={Vfa:f.Vfa},k=h.next()){var l=k.value;if(l.person){f.Vfa=l.itemId;k=yHc(l.person).Nb(f.Vfa);var p={};l=_.m(l.childItem||[]);for(var q=
l.next();!q.done;p={ysa:p.ysa},q=l.next()){var r=q.value;e.some(function(v){return function(w){return w.getId()===v.Vfa}}(f))||e.push(k);p.ysa=r.itemId;q=d.find(function(v){return function(w){return w.getId()===v.ysa}}(p));void 0===q&&(q=xHc(a,b,r),d.push(q));r=Cqc(Bqc(Aqc(new _.Joa,k.clone()),zHc(r)),r.url);_.rj(q,107,r,_.Joa,void 0)}}}return nsc((new _.kK).iB(d),e).gQ(c.suggestionSessionId)},yHc=function(a){return _.Ehc((new _.mk).Nb(a.id).$c(a.displayName),a.emailAddress).Pn(a.photoUrl)},LHc=function(a){var b=
a.action;return b?b.map(function(c){var d=new _.loa,e=BHc(c);e&&_.qj(d,2,_.qk,e);(e=CHc(c))&&qpc(d,e);(e=DHc(c))&&_.qj(d,4,_.qk,e);(e=EHc(c))&&_.qj(d,5,_.qk,e);(e=FHc(c))&&_.qj(d,6,_.qk,e);(e=GHc(c))&&_.qj(d,7,_.qk,e);(e=HHc(c))&&_.qj(d,8,_.qk,e);(e=IHc(c))&&_.qj(d,9,_.qk,e);(e=JHc(c))&&_.qj(d,10,_.qk,e);(c=KHc(c))&&_.qj(d,11,_.qk,c);return d}):(a=DM(a),a=Zpc([a]),[qpc(new _.loa,a)])},NHc=function(a){return(a.justification||[]).map(function(b){return MHc(b)})},DM=function(a){return(a=a.justification)?
MHc(a):null},MHc=function(a){var b=mpc(new _.pk,OHc(a.displayText)),c=a.primaryPerson,d=a.allPeople;c?(c=yHc(c),_.qj(b,3,_.koa,c),npc(b,[c])):d?(c=(d.person||[]).map(function(e){return yHc(e)}),d=lpc(c),_.qj(b,4,_.koa,d),npc(b,c)):(c=(a.person||[]).map(function(e){return yHc(e)}),c.length&&(d=lpc(c),_.qj(b,4,_.koa,d),npc(b,c)));_.x(b,5,_.CK(a.eventTime));opc(b,OHc(a.justificationDescription));ppc(b,OHc(a.unstructuredJustificationDescription));return b},OHc=function(a){if(!a)return null;a=a.textSegment||
[];return ipc(new _.jk,a.map(function(b){var c=(new _.kk).mh(b.text),d=b.link;if(d){var e=new _.lk;d=_.x(e,1,d.url)}else d=null;c=_.G(c,2,d);c=_.x(c,3,b.bold);return _.x(c,4,b.italic)}))},BHc=function(a){a=a.documentDocosAction;if(!a)return null;var b=Opc(new _.toa,DM(a));Npc(b,(a.subAction||[]).map(function(c){var d=new _.uoa;c.reply?(c=new _.noa,_.qj(d,1,_.rk,c)):c.resolve?(c=new ypc,_.qj(d,2,_.rk,c)):c.reassign?(c=new wpc,_.qj(d,3,_.rk,c)):c.acceptSuggestion?(c=new rpc,_.qj(d,4,_.rk,c)):c.rejectSuggestion?
(c=new xpc,_.qj(d,5,_.rk,c)):c.openThread&&(c=new _.moa,_.qj(d,6,_.rk,c));return d}));_.x(b,2,a.discussionId);_.x(b,3,a.postId);Ppc(b,OHc(a.anchorText));return b},DHc=function(a){a=a.documentShareAction;if(!a)return null;var b=Tpc(new _.woa,DM(a));Spc(b,(a.subAction||[]).map(function(c){var d=new Upc;c.suggestedShare?(c=new Cpc,_.qj(d,1,vqc,c)):c.responseToRequest&&(c=new zpc,_.qj(d,2,vqc,c));return d}));Qpc(b,(a.sharee||[]).map(function(c){return yHc(c)}));Rpc(b,wHc.get(a.shareeRole));return b},
CHc=function(a){a=a.documentViewAction;if(!a)return null;var b=Zpc(NHc(a));Ypc(b,(a.subAction||[]).map(function(c){var d=new aqc;c.open?d.Ff(new tpc):c.reviewEdits&&(c=new Apc,_.qj(d,2,$pc,c));return d}));return b},EHc=function(a){a=a.emailViewAction;if(!a)return null;var b=kqc(new iqc,DM(a));jqc(b,(a.subAction||[]).map(function(c){var d=new mqc;c.open&&d.Ff(new upc);return d}));return b},FHc=function(a){a=a.calendarEventAction;if(!a)return null;var b=Ipc(Hpc(Gpc(new _.poa,a.eventId),DM(a)),a.guestCount);
Fpc(b,(a.subAction||[]).map(function(c){var d=new Jpc;if(c.viewCalendarEvent){var e=new Dpc;_.qj(d,1,tqc,e)}c.shareWithAttendees&&(e=new Bpc,_.qj(d,2,tqc,e));c.present&&(e=new vpc,_.qj(d,3,tqc,e));c.openDocument&&(c=new tpc,_.qj(d,4,tqc,c));return d}));return b},GHc=function(a){a=a.documentWorkspaceAction;if(!a)return null;var b=fqc(eqc(new cqc,a.workspaceId),DM(a));dqc(b,(a.subAction||[]).map(function(c){var d=new gqc;c.addToWorkspace&&(c=new spc,_.qj(d,1,xqc,c));return d}));return b},HHc=function(a){a=
a.documentTopicAction;if(!a)return null;var b=Wpc(new _.yoa,DM(a));Vpc(b,(a.subAction||[]).map(function(c){var d=new Xpc;c.openDocument&&(c=new tpc,_.qj(d,1,wqc,c));return d}));return b},IHc=function(a){a=a.popularDocumentAction;if(!a)return null;var b=rqc(new _.Eoa,DM(a));qqc(b,(a.subAction||[]).map(function(c){var d=new sqc;c.openDocument&&(c=new tpc,_.qj(d,1,zqc,c));return d}));return b},JHc=function(a){a=a.collaboratorActivityAction;if(!a)return null;var b=Lpc(new _.roa,DM(a));Kpc(b,(a.subAction||
[]).map(function(c){var d=new Mpc;c.openDocument&&(c=new tpc,_.qj(d,1,uqc,c));return d}));return b},KHc=function(a){a=a.formResponseAction;if(!a)return null;var b=oqc(new _.Coa,NHc(a));nqc(b,(a.subAction||[]).map(function(c){var d=new pqc;c.openDocument?(c=new tpc,_.qj(d,1,yqc,c)):c.viewResponses&&(c=new Epc,_.qj(d,2,yqc,c));return d}));return b},zHc=function(a){a=((a.justification||{}).displayText||{}).textSegment||[];return 0<a.length?(a[0]||{}).text||"":""};
var PHc=function(a,b){this.H=a;this.O=b},RHc=function(a,b,c){var d=new KL,e=Object.values(c.categoryMetadata||{});vwc(d,e.map(function(f){return QHc(a,f,b.qc())}));d.Dc(1);return new _.nK(d,Moc(c))},THc=function(a,b){var c=new mM;yBc(c,(b.categories||[]).map(function(d){return SHc(a,d)}));c.Dc(1);return new Tvc(c,Moc(b))},QHc=function(a,b,c){c=twc((new JL).$c(b.categoryName),c);b=Object.values(b.attributeValues||[]);swc(c,b.map(function(d){return UHc(a,d)}).filter(function(d){return null!==d}));return c},
SHc=function(a,b){var c,d=wBc(mBc(sBc(rBc(qBc(lBc(kBc((new lM).$c(b.name),b.categoryName),b.latestName).setTitle(b.title).kl(b.description),_.CK(b.createTime)),_.CK(b.updateTime)),_.CK(b.publishTime)),(null!==(c=b.attributes)&&void 0!==c?c:[]).map(function(e){a:{var f=e.type;var h=(new LAc).Nb(e.id);h=_.x(h,2,e.queryGuid);h=_.x(h,3,e.helpText);h=_.x(h,4,e.displayName);if(e.attributeDisplayHints){var k=VHc(e.attributeDisplayHints);_.G(h,5,k)}if(e.capabilities){k=e.capabilities;var l=new MAc;l=_.x(l,
1,k.canSearch);k=_.x(l,2,k.canWrite);_.G(h,6,k)}if(f&&(_.x(h,7,WHc[f]),e=e[XHc(f)+"Options"],!YHc(a,h,f,e))){f=null;break a}f=h}return f}).filter(function(e){return null!==e})),b.customer);b.createdBy&&nBc(d,ZHc(b.createdBy));b.TWb&&oBc(d,ZHc(b.TWb));b.publishedBy&&pBc(d,ZHc(b.publishedBy));b.displayHints&&tBc(d,VHc(b.displayHints));b.capabilities&&vBc(d,$Hc(b.capabilities));b.learnMoreUri&&_.x(d,15,b.learnMoreUri);return d},UHc=function(a,b){var c=(new hL).Nb(b.id);if(b.userScoped)b=Object.values(b.userScoped),
Ksc(c,b.map(function(d){if(d.scopedUser){var e=new Hsc;var f=_.DK(a.H,d.scopedUser);e=_.G(e,1,f);d=a.Hb(e,d)?e:null}else d=null;return d}).filter(function(d){return null!==d})),c.jB(9);else if(!a.Hb(c,b))return null;return c},VHc=function(a){var b=new KAc;b=_.x(b,1,a.disabled);b=_.x(b,2,a.hidden);b=_.x(b,3,a.activatedInAllDrives);return _.x(b,4,!!a.required)},$Hc=function(a){var b=new uBc;b=_.x(b,1,a.canSearch);b=_.x(b,2,a.canApply);b=_.x(b,4,a.canRemove);return _.x(b,3,a.canManageSharedDriveActivation)},
YHc=function(a,b,c,d){return aIc(a,function(){bIc(a)[c](b,d)},c,b)},cIc=function(a){a=void 0===a?{}:a;var b=new RAc;b=_.x(b,1,a.minSize);return _.x(b,2,a.maxSize)},eIc=function(a){var b=new QAc;WAc(b,(a.choices||[]).map(function(c){var d=new VAc;d=_.x(d,1,c.label).Hb(c.value);c.description&&d.kl(c.description);if(c.capabilities){var e=c.capabilities;var f=new XAc;f=_.x(f,1,e.canSearch);e=_.x(f,2,e.canSelect);_.G(d,3,e)}c.displayHints&&(c=c.displayHints,e=new YAc,e=_.x(e,1,c.disabled),e=_.x(e,2,c.hidden),
c.badgePriority&&_.x(e,5,c.badgePriority),c.badgeColors&&(f=dIc(c.badgeColors),_.G(e,3,f)),c.darkBadgeColors&&(c=dIc(c.darkBadgeColors),_.G(e,4,c)),_.G(d,4,e));return d}));return b},dIc=function(a){var b=new JAc;var c=fIc(a.backgroundColor);b=_.G(b,1,c);c=fIc(a.foregroundColor);b=_.G(b,2,c);a=fIc(a.soloColor);return _.G(b,3,a)},fIc=function(a){var b=new _.SC;b=_.wb(b,1,a.red,0);b=_.wb(b,2,a.green,0);b=_.wb(b,3,a.blue,0);a.alpha&&(a=(new erc).Hb(a.alpha),_.G(b,4,a));return b},gIc=function(a){var b=
new $Ac;b=_.x(b,1,a.showThousandsSeparator);b=_.x(b,2,Number(a.minValue));return _.x(b,3,Number(a.maxValue))},hIc=function(a){var b=(new _.epa).setYear(a.year).setMonth(a.month);return _.x(b,3,a.day)};PHc.prototype.Hb=function(a,b){var c=this,d=b.valueType.replace(/([A-Z])/g,"_$1").toLowerCase().toUpperCase();a.jB(WHc[d]);return aIc(this,function(){iIc(c)[d](a,b[b.valueType])},b.valueType)};
var aIc=function(a,b,c,d){try{b()}catch(e){if(e instanceof TypeError&&!(d instanceof bBc))return Lrc(a.O,"drive.ds.response.MetadataParser","Response Parser: Error parsing type "+c+"."),!1;throw e;}return!0},ZHc=function(a){return _.Chc(1).Nb(a.personName.split("/")[1])},XHc=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},bIc=function(a){return{BOOLEAN:function(b,c){var d=b.j7a;var e=new TAc;e=_.x(e,1,c.trueLabel);c=_.x(e,2,c.falseLabel);return d.call(b,
c)},TEXT:function(b,c){return b.rPa(cIc(c))},TEXT_LIST:function(b,c){var d=b.h8a;var e=new ZAc;e=_.x(e,1,c.maxEntries);c=cIc(c.options);c=_.G(e,2,c);return d.call(b,c)},LONG_TEXT:function(b,c){var d=new OAc;d=_.x(d,1,c.minSize);c=_.x(d,2,c.maxSize);return _.qj(b,10,jM,c)},SELECTION:function(b,c){return b.W7a(eIc(c))},SELECTION_LIST:function(b,c){var d=b.V7a;var e=new PAc;e=_.x(e,1,c.maxEntries);c=eIc(c.options);c=_.G(e,2,c);return d.call(b,c)},INTEGER:function(b,c){return b.w7a(gIc(c))},INTEGER_LIST:function(b,
c){var d=b.v7a;var e=new aBc;e=_.x(e,1,c.maxEntries);c=gIc(c.options);c=_.G(e,2,c);return d.call(b,c)},USER:function(b){return b.m8a(new cBc)},USER_LIST:function(b,c){var d=b.sPa,e=new SAc;c=_.x(e,1,c.maxEntries);e=new cBc;c=_.G(c,2,e);return d.call(b,c)},DATE:function(b,c){var d=b.qPa;var e=new NAc;e=_.x(e,4,c.dateFormat);var f=hIc(c.minValue);e=_.G(e,2,f);c=hIc(c.maxValue);c=_.G(e,3,c);return d.call(b,c)},USER_SCOPED:function(b,c){var d=new bBc;d=_.x(d,1,c.canReadCollaboratorValues);var e=c.subtype;
_.x(d,2,WHc[e]);var f=XHc(e)+"Options";YHc(a,d,e,c[f]);return _.qj(b,16,jM,d)}}},iIc=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.zqa(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.vqa(c)},INTEGER:function(b,c){return b.setIntegerValue(parseInt(c,10))},INTEGER_LIST:function(b,c){return b.mqa(c.map(function(d){return parseInt(d,
10)}))},USER:function(b,c){return b.setUserValue(_.DK(a.H,c))},USER_LIST:function(b,c){Jsc(b,c.map(function(d){return _.DK(a.H,d)}))},DATE_STRING:function(b,c){return b.setDateStringValue(c)}}},WHc={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 Noc={movable:1,deadlineExceeded:2,exceedsSourceLimit:3,exceedsDestinationDepthLimit:4,exceedsDestinationSizeLimit:5,tooManyUnmovableFiles:6,tooHighProportionUnmovableFiles:7};
var kIc=function(a){a=a.personResponse||[];return Dwc(new Cwc,a.map(function(b){var c=b.person;b=zwc(new LL,b.personId);var d=b.$c;var e=c;e=void 0===e?{}:e;var f,h;e=e.metadata;e=null!==(h=null===(f=null===e||void 0===e?void 0:e.bestDisplayName)||void 0===f?void 0:f.displayName)&&void 0!==h?h:"";f=Awc(d.call(b,e),jIc(c));c=void 0===c?{}:c;c=c.photo?c.photo[0]:null;h=new ywc;c=_.x(h,1,c&&!c.isDefault?c.url:null);return _.G(f,4,c)}))},jIc=function(a){a=void 0===a?{}:a;var b;a=(a.email||[]).find(function(c){return"SIGNUP_EMAIL"===
c.classification&&!0===c.metadata.primary});return null!==(b=null===a||void 0===a?void 0:a.value)&&void 0!==b?b:""};
var lIc=function(a){this.H=a},nIc=function(a,b){return(b.items||[]).map(function(c){return mIc(a,c)})},mIc=function(a,b){var c=new _.Ooa,d=b.colorRgb;d?(d=d.substring(1),d=/^[a-fA-F0-9]+$/.test(d)?parseInt(d,16):0):d=0;_.x(c,2,d);_.x(c,1,b.backgroundImageLink);_.x(c,3,b.trusted);_.x(c,5,b.backgroundImageGridViewLink);_.x(c,6,b.backgroundImageListViewLink);_.x(c,7,b.hidden);_.x(c,9,b.removeSecureLinkUpdateForAllFiles);(d=b.categoryReferences)&&nnc(c,d.map(function(e){var f=new _.zk;return _.x(f,1,
e.category)}));c=_.Zhc(_.Xhc(_.Whc(_.Shc(_.Thc(mnc(_.hG((new _.Bk).Nb(b.id).setTitle(b.name),"application/vnd.google-apps.folder"),c),b.id),2),b.primaryDomainName),b.organizationDisplayName),b.customerId);b.capabilities&&(d=_.Ghc(_.Slc(b.capabilities),!0),_.QJ(c,d));b.permissionsSummary&&_.Uhc(c,hsc(a.H,b.permissionsSummary));b.restrictions&&pnc(c,oIc(b.restrictions));return c},oIc=function(a){var b=new Gqc;b=_.x(b,1,a.copyRequiresWriterPermission);b=_.x(b,2,a.disallowDriveFileStream);b=_.x(b,3,a.domainUsersOnly);
"teamMembersOnly"in a&&_.x(b,4,a.teamMembersOnly);return b};
var pIc={DRIVE_FE:2,DRIVE_BE:4,EXPLORER:1,GENERAL:3,PSYNCHO:5,SLACK:6,DRIVE_BE_EX:7,DRIVE_SHARING:9,TEAMKIT:10},Woc=_.fb(pIc);
var qIc=function(a){var b=new _.Lc;b=_.x(b,2,a.key);b=_.x(b,1,a.namespace?pIc[a.namespace]:void 0);return _.zCa(new _.Ro,b).Hb(a.value)};
var sIc=function(a){var b=a.items||[];b=Fwc(new ML,b.map(function(c){return rIc(c)}));return new _.qK(b,Moc(a))},rIc=function(a){var b=(new _.dI).Nb(a.id).setTitle(a.title);b=_.x(b,3,_.CK(a.createdDate));return _.x(b,4,_.CK(a.modifiedDate)).Id(a.state?tIc[a.state]:void 0)},uIc=function(a,b,c){var d=c.item||[];return _.Smc(_.Rmc(new _.IK,d.map(function(e){return xHc(a,b,e)})),c.suggestionSessionId)},wIc=function(a,b,c){var d=c.item||[];return Quc(Puc(new xL,d.map(function(e){return vIc(a,b,e)})),c.suggestionSessionId)},
vIc=function(a,b,c){var d=c.driveWorkspace,e=c.childItem||[];return Nuc(Luc(Muc(Kuc(new wL,c.predictionId).setTitle(d&&d.title),d&&d.workspaceToken),e.map(function(f){return xHc(a,b,f)})),DM(c))},xIc=function(a){var b=new _.Esc;a.kind&&(a=rIc(a),_.G(b,2,a));b.Dc(1);return b},tIc={active:1,archived:2};
var yIc=function(a,b,c,d){_.qmc.call(this,b);this.Bg=a;this.ma=c;this.O=d;this.ha=null;this.ta=new lGc(this.W,b);this.H=new lIc(this.NF);this.wa=new vHc(this.NF,this.H)};_.K(yIc,_.qmc);var zIc=function(a){a.ha||(a.ha=new PHc(a.W,a.ma));return a.ha};
yIc.prototype.ka=function(a,b){if(a instanceof _.PI)var c=_.Zlc(_.umc(a));else{if(a instanceof _.QI)var d=_.EK(this,a,b);else{if(a instanceof _.Ygc)var e=AIc(this,a.request,b);else{if(a instanceof _.RI)var f=_.EK(this,a,b);else{if(a instanceof _.TI){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#teamDrive"),_.AK("drive#drive")),b.json);var h=kAc((new jAc).Dc(1),mIc(this.H,b.json))}else{if(a instanceof _.SI)var k=_.EK(this,a,b);else{if(a instanceof _.gK)var l=new Psc;else{if(a instanceof _.VI)var p=
BIc(a,b);else{if(a instanceof _.WI)var q=nHc(void 0,a.Jh());else{if(a instanceof _.XI)var r=new HAc;else{if(a instanceof _.YI)var v=_.Zlc(_.umc(a));else{if(a instanceof _.ZI)var w=new oM;else{if(a instanceof _.$I)var A=_.Zlc(_.umc(a));else{if(a instanceof _.aJ)var B=_.Zlc(_.umc(a));else{if(a instanceof _.oD){var E=new WBc,I=a.getKey();var M=_.G(E,4,I)}else{if(a instanceof _.bJ)var N=BIc(a,b);else{if(a instanceof _.eJ)var S=_.Zlc(_.umc(a));else{if(a instanceof _.Vgc){if(!b.json)throw _.FK();var da=
new GCc(b.json.exportJob.id)}else{if(a instanceof _.gJ){if(!b.json)throw _.FK();_.BK(_.AK("drive#app"),b.json);var aa=b.json,fa=new xAc,ha=lHc(aa);var xa=_.G(fa,2,ha).Dc(1)}else{if(a instanceof _.hJ)var ua=CIc(a,b);else{if(a instanceof _.iJ){if(!b.json)throw _.FK();_.BK(_.AK("drive#permission"),b.json);var Ja=(new oM).Dc(1),ib=_.bmc(this.NF,b.json);var Ub=_.G(Ja,2,ib)}else{if(a instanceof _.nI)a:{if(!b.json)throw _.FK();if(a instanceof _.nI){var cc=a.jd();if(cc&&_.jJ(cc)){for(var Pc=this.O,yc=this.Bg,
Hb=b.json,Ee=[],$d=_.m(Hb.item||[]),Gh=$d.next();!Gh.done;Gh=$d.next()){var sd=Gh.value;if(sd.driveItem){var Sb=new _.Moa,vi=_.x(Sb,2,zHc(sd));_.R(cc,74,!1)?_.x(vi,4,!0):_.x(vi,3,!0);var bk=xHc(Pc,yc,sd);var ug=_.G(bk,100,vi);Ee.push(ug)}}var vj=(new _.eI).iB(Ee).gQ(Hb.suggestionSessionId);var Kj=_.tkc(new _.uK,vj);break a}if(cc&&_.kJ(cc)){Kj=AHc(this.O,this.Bg,b.json);break a}if(cc&&_.lJ(cc)){for(var im=this.O,Ei=this.Bg,Ip=b.json,Re=[],wi=_.m(Ip.item||[]),Wk=wi.next();!Wk.done;Wk=wi.next()){var Jp=
Wk.value;if(Jp.driveItem){var ck=xHc(im,Ei,Jp),Bq=LHc(Jp);var Cq=_.mj(ck,117,Bq);Re.push(Cq)}}var gn=(new _.eI).iB(Re).gQ(Ip.suggestionSessionId);Kj=_.tkc(new _.uK,gn);break a}}_.BK(_.AK("drive#fileList"),b.json);Kj=_.Wlc(this.NF,b.json,b.headers)}else{if(a instanceof _.mJ){if(!b.json)throw _.FK();var Hm=uHc(b.json)}else{if(a instanceof _.oJ){if(!b.json)throw _.FK();_.BK(_.AK("drive#appList"),b.json);var Al=b.json,Nr=new IL,gj=mHc(Al);var Or=_.mj(Nr,2,gj);var Kp=_.kj(Or,4,Al.defaultAppIds).Dc(1)}else{if(a instanceof
_.Wgc){if(!b.json)throw _.FK();var Dq=sHc(b.json)}else{if(a instanceof _.zI)var Pr=DIc(this,b);else{if(a instanceof _.pJ){var Lp=b.json;if(!Lp)throw _.FK();_.BK(_.AK("drive#permissionList"),Lp);var Qr=new LBc,Vn=gsc(this.NF,Lp);var uk=_.G(Qr,1,Vn);var vk=_.x(uk,2,Moc(Lp))}else{if(a instanceof _.qJ){if(!b.json)throw _.FK();_.BK(_.AK("drive#revisionList"),b.json);for(var Sc=this.NF,hn=b.json,Ys=new dsc,Eq=[],Rr=hn.items||[],Du=0;Du<Rr.length;Du++){var Sr=_.Xlc(Sc,Rr[Du]);Eq.push(Sr)}var Rl=_.mj(Ys,
2,Eq)}else{if(a instanceof _.rJ)var So=_.EK(this,a,b);else{if(a instanceof _.EI)var Wn=EIc(a,b);else{if(a instanceof _.tJ){if(!b.json)throw _.FK();var Xn=kIc(b.json)}else{if(a instanceof _.dhc){if(!b.json)throw _.FK();var Px=THc(zIc(this),b.json)}else{if(a instanceof _.$F){if(!b.json)throw _.FK();var nw=zIc(this),Mp=b.json,Mz=new zBc,Eu=SHc(nw,Mp);var Tr=_.G(Mz,2,Eu).Dc(1)}else{if(a instanceof _.uJ){if(!b.json)throw _.FK();_.BK(_.AK("drive#remainingCount"),b.json);var Ur=b.json,Zs=new IAc,Xk=Ur.nextPageToken;
null!=Xk&&_.x(Zs,2,Number(Xk));_.x(Zs,1,Number(Ur.remainingCount));var Fi=Zs}else{if(a instanceof _.fG){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#teamDrive"),_.AK("drive#drive")),b.json);var jm=(new _.eI).iB([mIc(this.H,b.json)])}else{if(a instanceof _.EJ){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#teamDriveList"),_.AK("drive#driveList")),b.json);var Pg=(new _.eI).iB(nIc(this.H,b.json)),ow=_.tkc(new _.uK,Pg);var Gi=_.x(ow,3,Moc(b.json))}else{if(a instanceof _.yJ)var Yk=CIc(a,b);else{if(a instanceof
_.zJ)var Fu=AIc(this,a,b);else{if(a instanceof _.xI)var Zk=_.EK(this,a,b);else{if(a instanceof _.AJ)var $s=_.EK(this,a,b);else{if(a instanceof _.BJ)var pw=FIc(this,b);else{if(a instanceof _.pD){if(!b.json)throw _.FK();_.BK(_.AK("drive#setting"),b.json);var at=qIc(b.json),Gu=new WBc;var Vr=_.G(Gu,3,at);var Np=at.getKey();var dv=_.G(Vr,4,Np)}else{if(a instanceof _.CJ)var ev=BIc(a,b);else{if(a instanceof _.PH){if(!b.json)throw _.FK();_.BK(_.AK("drive#about"),b.json);var fv=oGc(this.ta,b.json)}else{if(a instanceof
_.gG){if(!b.json)throw _.FK();_.BK(_.AK("drive#workspace"),b.json);var my=rIc(b.json),Rw=new _.lK;Rw.EU().set(my.getId(),my);var tN=Rw}else{if(a instanceof _.Xgc){if(!b.json)throw _.FK();var yg=b.json,br;null!==(br=_.IJ(this.V))&&void 0!==br&&_.R(br,21,!1)&&(tGc.set("HIERARCHY_RECONCILIATION",3),MGc.set("UNMOVABLE_ITEM_REPARENTED",3));var nJ=new iCc;yg.nextPageToken&&_.Dj(nJ,2,yg.nextPageToken);if(yg.activities){var uN=TGc(yg.activities);_.mj(nJ,1,uN)}var vN=nJ}else{if(a instanceof _.Zgc)var hS=FIc(this,
b);else{if("undefined"!=typeof _.chc&&a instanceof _.chc)var ny=DIc(this,b);else{if(a instanceof _.$gc){if(!b.json)throw _.FK();var nZ=new FCc}else{if(a instanceof _.ahc){if(!b.json)throw _.FK();var wN=Koc(b.json)}else{if(a instanceof _.nD){if(!b.json)throw _.FK();_.BK(_.AK("drive#settingList"),b.json);for(var oZ=b.json,pZ=new _.Xz,iS=[],ZC=oZ.items||[],qZ=0;qZ<ZC.length;qZ++){var rZ=qIc(ZC[qZ]);rZ&&iS.push(rZ)}var HF=_.pjb(pZ,iS)}else{if(a instanceof _.$z){if(!b.json)throw _.FK();var MA=wIc(this.O,
this.Bg,b.json).Dc(1)}else{if(a instanceof _.eG){if(!b.json)throw _.FK();var sZ=uIc(this.O,this.Bg,b.json)}else{if(a instanceof _.ihc){if(!b.json)throw _.FK();_.BK(_.AK("drive#teamDrive"),b.json);var tZ=b.json,f7=tZ.recursiveFolderCount,uZ=tZ.recursiveFileCount,vZ=new RBc;var wZ=_.x(vZ,1,uZ);var g7=_.x(wZ,2,f7)}else{if(a instanceof _.hhc){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#migrateToDrivePreFlightResponse"),_.AK("drive#migrateToTeamDrivePreFlightResponse")),b.json);var xZ=Qoc(b.json)}else{if(a instanceof
_.khc){if(!b.json)throw _.FK();_.BK(_.AK("drive#workspaceList"),b.json);var mha=sIc(b.json)}else mha=a instanceof RK?FIc(this,b):null;xZ=mha}g7=xZ}sZ=g7}MA=sZ}HF=MA}wN=HF}nZ=wN}ny=nZ}hS=ny}vN=hS}tN=vN}fv=tN}ev=fv}dv=ev}pw=dv}$s=pw}Zk=$s}Fu=Zk}Yk=Fu}Gi=Yk}jm=Gi}Fi=jm}Tr=Fi}Px=Tr}Xn=Px}Wn=Xn}So=Wn}Rl=So}vk=Rl}Pr=vk}Dq=Pr}Kp=Dq}Hm=Kp}Kj=Hm}Ub=Kj}ua=Ub}xa=ua}da=xa}S=da}N=S}M=N}B=M}A=B}w=A}v=w}r=v}q=r}p=q}l=p}k=l}h=k}f=h}e=f}d=e}c=d}return c};
var BIc=function(a,b){if(!b.json){if(a instanceof _.bJ)return xIc({});throw _.FK();}_.BK(_.AK("drive#workspace"),b.json);return xIc(b.json)},FIc=function(a,b){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#teamDrive"),_.AK("drive#drive")),b.json);a=mIc(a.H,b.json);return(new _.GJ).Dc(1).setItem(a)},AIc=function(a,b,c){if(!c.json)throw _.FK();_.BK(_.AK("drive#categoryMetadataList"),c.json);return RHc(zIc(a),b,c.json)},CIc=function(a,b){if(!b.json)throw _.FK();_.BK(_.AK("drive#app"),b.json);return nHc(b.json,
a.Jh())},DIc=function(a,b){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#about"),_.AK("drive#changeList")),b.json);a=a.wa;var c=b.json;b=new qwc;var d=c.largestChangeId;null!=d&&_.x(b,3,Number(d));if(_.AK("drive#changeList")(c)){d=c.nextPageToken;null!=d&&_.x(b,2,Number(d));d=[];c=c.items||[];for(var e=0;e<c.length;e++){var f=a,h=c[e];var k=new _.qI;k=_.x(k,1,Number(h.id));h.teamDriveId?(_.ogc(k,h.teamDriveId),_.rI(k,h.teamDriveId)):_.rI(k,h.fileId);h.file?k.setItem(_.Ulc(f.H,h.file)):h.teamDrive&&
k.setItem(mIc(f.O,h.teamDrive));h.deleted&&!k.getItem()&&_.CI(k);d.push(k)}_.mj(b,4,d)}return b},EIc=function(a,b){var c=new EBc;if(_.re(a,6).length){var d=[];eoc(_.re(a,6),b.headers).forEach(function(e,f){var h=new _.sgc;e=_.x(h,1,f).Hb(e);d.push(e)});_.mj(c,1,d)}FBc(c,b.json?JSON.stringify(b.json):b.text);return c};
var HIc=function(a){var b=new _.so;if(a=a.getState()){var c=[];c.push("state");c.push("=");c.push(GIc[a]);_.dK(b,c.join(" "))}return b.toString()},IIc={},GIc=(IIc[1]="active",IIc[2]="archived",IIc);
var JIc=function(a,b,c,d){_.GK.call(this,b,c,a.pPa,d);this.ka=a;this.ha=new wvc(_.bK(c),b)};_.K(JIc,_.GK);
JIc.prototype.V=function(a,b,c){var d=this,e,f,h,k,l,p;try{return _.GK.prototype.V.call(this,a,b,c)}catch(xa){}var q=0,r={},v="GET",w={},A=!1,B=!1;if(a instanceof _.QI){v="POST";var E="admin/files/"+a.getId()+"/migrateToTeamDrive";_.Q(a,3)&&(w.useDomainAdminAccess=!0);w.fields="kind,id,parentId,teamDriveId";w.fileId=a.getId();_.ej(a,4)&&(w.preFlightValidationToken=_.z(a,4));var I={parentId:a.Zj()};r["content-type"]="application/json";A=B=!0;_.KJ(this.H,[],[a.getId(),a.Zj()],this.O,r)}else if(a instanceof
_.RI){v="POST";E="files/"+a.qc()+"/authorize";w.appId=a.Jh();_.Q(a,3)&&(w.propagate=!0);var M=a.re();B=!0;w.supportsTeamDrives=!0;_.KJ(this.H,[],[a.qc()],this.O,r)}else if(a instanceof RK)E="drives/"+a.getId(),v="PUT",I={removeSecureLinkUpdateForAllFiles:_.R(a,2,!1)},r["content-type"]="application/json",w.fields=CL(this.H,[],!0),M=a.re(),B=!0;else if(a instanceof _.Zgc)v="POST",E="teamdrives/"+a.requestId,w.fields=CL(this.H),I={name:a.request.getTitle()},r["content-type"]="application/json",M=a.request.re(),
B=!0;else if(a instanceof _.VI)v="POST",E="workspaces",w.fields="kind,id,title,createdDate,modifiedDate,state",I=noc(a),r["content-type"]="application/json",M=a.re(),B=!0;else if(a instanceof _.SI)v="POST",E="files/"+a.getId()+"/copy",w.fields=_.Lgc({fields:this.hh(),anonymous:_.KI(_.fI(this.H)),iF:_.mI(this.H)}),w.convert=_.R(a,4,!1),I=moc(a),r["content-type"]="application/json",M=a.re(),a=_.re(a,3).concat([a.getId()]),_.KJ(this.H,[],a,this.O,r),B=!0,w.supportsTeamDrives=!0,_.R(this.H,3,!1)&&(w.enforceSingleParent=
!0);else if(a instanceof _.WI)v="DELETE",E="apps/"+a.Jh(),w.appId=a.Jh(),w.deleteAppData=!!_.Q(a,2),M=a.re(),B=!0;else if(a instanceof _.XI)v="DELETE",E="backups/"+a.getId(),q=9;else if(a instanceof _.YI)v="DELETE",E="files/"+a.getId(),M=a.re(),B=!0,w.supportsTeamDrives=!0,_.R(this.H,3,!1)&&(w.enforceSingleParent=!0),_.KJ(this.H,[],[a.getId()],this.O,r);else if(a instanceof _.ZI)v="DELETE",E="files/"+a.qc()+"/permissions/"+_.z(a,2),M=a.re(),B=!0,w.supportsTeamDrives=!0;else if(a instanceof _.$I)v=
"DELETE",E="files/"+a.qc()+"/revisions/"+_.z(a,2),M=a.re(),B=!0,_.KJ(this.H,[],[a.qc()],this.O,r);else if(a instanceof _.aJ)v="DELETE",E="teamdrives/"+a.getId(),M=a.re(),B=!0;else if(a instanceof _.oD)v="DELETE",M=a.getKey(),E="settings/"+_.Uo(M),_.To(M)&&(w.namespace=Woc[_.To(M)]),M=a.re(),B=!0;else if(a instanceof _.bJ)v="DELETE",E="workspaces/"+a.getId(),M=a.re(),B=!0;else if(a instanceof _.eJ)v="DELETE",E="files/trash",M=a.jd().re(),B=!0,_.R(this.H,3,!1)&&(w.enforceSingleParent=!0);else if(a instanceof
_.gJ)E="apps/"+a.Jh(),M=a.re(),B=!0,w.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(a instanceof _.mJ)E="backups/"+a.getId()+"/items",q=9,w.languageCode=YK(_.fI(this.H));else if(a instanceof _.hJ)v="POST",E="apps",w.appId=a.Jh(),M=a.re(),B=!0;else if(a instanceof _.iJ)v="POST",E="files/"+a.qc()+"/permissions",w.fields=_.mI(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",w.emailMessage=
_.z(a,5)||"",w.sendNotificationEmail=!_.R(a,6,!1),M={},B=a.Df(),1==B?M.role="owner":3==B?M.role="writer":4==B?(M.role="reader",M.additionalRoles=["commenter"]):2==B&&(M.role="reader"),B=a.getType(),1==B?M.type="user":2==B?M.type="group":3==B?M.type="domain":4==B?M.type="anyone":5==B&&(M.type="audience"),a.Wa()&&(M.value=a.Wa()),M.withLink=!_.R(a,8,!1),I=M,r["content-type"]="application/json",M=a.re(),B=!0,w.supportsTeamDrives=!0;else if(a instanceof _.Vgc)q=8,v="POST",E="/v1/exports",r["content-type"]=
"application/json",I=_.re(a,1).map(function(xa){if(_.R(d.H,89,!1)){var ua=_.Vjc(d.O,xa);if(null!==ua)return{id:xa,resource_key:{resource_key:ua}}}return{id:xa}}),I={archiveFormat:null,archivePrefix:_.z(a,2),conversions:null,items:I,locale:null};else if(a instanceof _.nI||a instanceof _.gK||a instanceof _.$z||a instanceof _.eG)if(b=a instanceof _.nI?a.jd():a,_.JJ(b)){q=10;v="POST";E="/v1/items";r["content-type"]="application/json";var N=9==_.WJ(this.H)?"WEB_MOBILE":"WEB_DESKTOP",S={};I={};S.applicationType=
Fvc(this.H);S.platformType=N;S.languageCode=YK(_.fI(this.H));S.timeZone=(new _.kt).saa();S.requestType="LIVE_REQUEST";a instanceof _.nI&&(N=a.getOptions())&&_.R(N,10,!1)&&(S.requestType="BACKGROUND_REQUEST");if(b instanceof _.Af)if(_.jJ(b)){if(Bvc(this.ha)){S.scenarioType="ONE_PICK";if(a=null===(f=null===(e=_.y(b,Hqc,75))||void 0===e?void 0:_.y(e,Iqc,1))||void 0===f?void 0:_.z(f,1))S.clientTags=S.clientTags||[],S.clientTags.push({name:a});this.Xf.O(106026)}else _.R(b,74,!1)?S.scenarioType="QUICK_ACCESS_FOR_SHARED_FILES":
S.scenarioType="QUICK_ACCESS";2==_.TJ(b)&&(_.re(b,33),Bvc(this.ha)||(S.scenarioType="QUICK_ACCESS_FOR_SHARED_DRIVE"),I.contextFeature=[{type:"DRIVE_TEAM_DRIVE_ROOT_ID",stringValue:_.re(b,33)[0]}]);_.il(b).length&&(I.itemType=Evc(b))}else _.kJ(b)?S.scenarioType="DRIVE_PEOPLE_WITH_ACTIONS":_.lJ(b)&&(S.scenarioType="DRIVE_PRIORITY");else b instanceof _.gK?(E="/v1/userfeedback",I.userFeedback=_.yb(b,_.Msc,1).map(function(xa){var ua=_.y(xa,_.jL,2),Ja={},ib={};ib.feedbackType=[_.yfc[ua.getType()]];Ja.item=
ib;Ja.clientInfo=S;switch(xa.getFeature()){case 1:S.scenarioType="DRIVE_PRIORITY";ib.itemId=ua.qc();break;case 3:S.scenarioType="QUICK_ACCESS";ib.itemId=ua.qc();break;case 4:S.scenarioType="QUICK_ACCESS_FOR_SHARED_FILES";ib.itemId=ua.qc();break;case 2:S.scenarioType="DRIVE_WORKSPACES",ib.itemId=ua.qc(),ib.childItem=_.yb(ua,_.jL,3).map(function(Ub){var cc;return{itemId:null!==(cc=Ub.qc())&&void 0!==cc?cc:void 0}})}return Ja})):b instanceof _.$z?S.scenarioType="DRIVE_WORKSPACES":b instanceof _.eG?(S.scenarioType=
"ITEMS_FOR_DRIVE_WORKSPACE",I.contextFeature=[{type:"GENERIC_TITLE",stringValue:b.getTitle()||""},{type:"DRIVE_WORKSPACE_ID",stringValue:b.Yq()||""},{type:"DRIVE_EMPTY_WORKSPACE",boolValue:null!==(h=_.Q(b,5))&&void 0!==h?h:void 0}]):_.Cmc(a);b instanceof _.gK||(I.maxSuggestions=b.xi(),I.clientInfo=S)}else{M=b.re();B=!0;b.getId();E="files";w.q=_.gjc(b,null===(k=_.IJ(this.H))||void 0===k?void 0:_.R(k,23,!1));N=[];var da;(da=_.IJ(this.H))&&_.R(da,4,!1)?(da=_.Aa(this.hh(),this.hh(b.H())),_.Ga(da)):da=
_.Ba(this.hh());var aa=void 0,fa=!1;0<_.yb(b,_.al,5).length&&(aa=_.z(this.H.Tf(),50),fa=!0);w.fields=enc({fields:da,anonymous:_.KI(_.fI(this.H)),v8:aa||void 0,iF:_.mI(this.H),sEb:fa});w.appDataFilter="NO_APP_DATA";0<_.yb(b,_.SJ,25).length&&(w.sources=_.Zic(b));0<b.lA().length&&(w.spaces=_.$ic(b));a.Zn()&&(w.pageToken=a.Zn());(a=a.getOptions())&&_.xj(a,1,1E3)&&(w.maxResults=_.xj(a,1,1E3));_.R(b,36,!1)&&(w.includeUnsubscribed=!0);_.z(b,43)&&(w.rawUserQuery=_.z(b,43));w.supportsTeamDrives=!0;w.includeItemsFromAllDrives=
_.R(b,66,!0);0<_.re(b,33).length&&2==_.TJ(b)&&(a=_.re(b,33)[0],w.teamDriveId=a,N.push(a));w.corpora=_.Wic[_.TJ(b)];_.Q(b,18)&&(delete w.corpora,w.corpus="DOMAIN");a=_.kl(b);da=_.yb(b,_.Sk,35);aa=_.yb(b,_.Sk,38);N=N.concat(a.filter(function(xa){return!_.R(xa,2,!1)}).map(function(xa){return xa.Wa()})).concat(da.map(function(xa){return xa.Wa()})).concat(aa.map(function(xa){return xa.Wa()}));_.KJ(this.H,_.yb(b,_.el,63),N,this.O,r);Fnc(w,b.Lc());_.R(this.H,14,!1)&&(w.useLegacyDomainPermissionBehavior=
!1);_.y(b,_.Bpa,64)&&(a=_.Mj(_.y(b,_.Bpa,64),Jqc),a=_.sb(a,4),w.searchSessionData=a)}else if(a instanceof _.oJ){E="apps";switch(a.getType()){case 1:w.fields=KIc;break;case 2:w.fields=LIc;break;case 4:w.fields=MIc;break;case 3:q=5,E="apps",w.fields="items(icons[category='application'],icons(size,iconUrl),id,name,openUrlTemplate,primaryFileExtensions,primaryMimeTypes,productId,rankingInfo,secondaryFileExtensions,secondaryMimeTypes,kind),kind",w.appQueryScope="all_webstore",b.Ku=!0}w.languageCode=YK(_.fI(this.H));
0<_.re(a,3).length&&(w.appFilterExtensions=_.re(a,3).join(","));0<_.re(a,4).length&&(w.appFilterMimeTypes=_.re(a,4).join(","));M=a.re();B=!0}else if(a instanceof _.Wgc)E="backups",q=9,w.languageCode=YK(_.fI(this.H));else if(a instanceof _.zI)E="changes",w.includeDeleted=_.R(a,3,!0),w.includeSubscribed=_.R(a,4,!0),w.maxResults=a.NR(),w.startChangeId=_.z(a,1),w.fields=dnc({fields:this.hh(),v8:CL(this.H,_.re(a,5)),anonymous:_.KI(_.fI(this.H)),iF:_.mI(this.H)}),w.appDataFilter="NO_APP_DATA",a.uc()||(w.filters=
"DRIVE_DATASERVICE"),M=_.re(this.H.Tf(),31),M.length&&(w.spaces=_.zf(M,function(xa){return _.wfc[xa]}).join(",")),w.supportsTeamDrives=!0,w.includeCorpusRemovals=!0,w.includeItemsFromAllDrives=!0,a.uc()&&(w.teamDriveId=a.uc()),M=a.re(),B=!0;else if(a instanceof _.pJ)b=a.jd(),E="files/"+b.getId()+"/permissions",w.fields=_.mI(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.Zn()&&(w.pageToken=a.Zn()),_.z(a,1)&&(w.maxResults=_.z(a,1)),M=b.re(),B=!0,w.supportsTeamDrives=!0,_.R(this.H,14,!1)&&(w.useLegacyDomainPermissionBehavior=!1),_.KJ(this.H,[],[b.getId()],this.O,r);else if(a instanceof _.qJ)w.fields=_.mI(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))",
w.maxResults=a.xi(),E="files/"+a.qc()+"/revisions",M=a.re(),B=!0,_.KJ(this.H,[],[a.qc()],this.O,r);else if(a instanceof _.rJ)v="POST",E="files/"+(_.z(a,1)||"")+"/migrateToDrive",_.Q(a,3)&&(w.useDomainAdminAccess=!0),w.fields=_.Lgc({fields:this.hh(),anonymous:_.KI(_.fI(this.H)),iF:_.mI(this.H)}),w.fileId=null!==(l=_.z(a,1))&&void 0!==l?l:void 0,_.ej(a,4)&&(w.preFlightValidationToken=_.z(a,4)),I=loc(a),r["content-type"]="application/json",A=B=!0,_.KJ(this.H,[],[_.z(a,1)||"",_.z(a,2)||""],this.O,r);
else if(a instanceof _.fG)a.V(),E="teamdrives/"+a.V()[0],w.fields=CL(this.H,a.H()),M=a.re(),B=!0;else if(a instanceof _.hhc)v="POST",E="admin/files/migrateToTeamDrivePreFlight",_.Q(a.request,3)&&(w.useDomainAdminAccess=!0),I=ooc(a),r["content-type"]="application/json",B=A=!0,_.KJ(this.H,[],_.re(a.request,1),this.O,r);else if(a instanceof _.EJ){M=a.jd();E="teamdrives";w.fields=mvc(this.H,M.H());w.q=nvc(M);a.Zn()&&(w.pageToken=a.Zn());if(M=(M=a.getOptions())&&_.xj(M,1,1E3))w.maxResults=M;M=a.jd().re();
B=!0}else if(a instanceof _.ihc)E="teamdrives/"+a.uc(),w.fields="kind,id,recursiveFileCount,recursiveFolderCount",B=A=!0;else if(a instanceof _.yJ)v="PUT",E="apps/"+a.Jh(),w.appId=a.Jh(),B={},B.useByDefault=null!==(p=_.Q(a,2))&&void 0!==p?p:void 0,_.Q(a,3)&&(B.hasAppData=!1),r["content-type"]="application/json",M=a.re(),I=B,B=!0;else if(a instanceof _.xI)v="PUT",E="files/"+a.getId(),w.fields=_.Lgc({fields:this.hh(),anonymous:_.KI(_.fI(this.H)),iF:_.mI(this.H)}),w.modifiedDateBehavior="DRIVE_UI",w.updateViewedDate=
!!_.Q(a,15),w.fileId=a.getId(),_.re(a,9).length&&(w.addParents=_.re(a,9).join(",")),_.re(a,10).length&&(w.removeParents=_.re(a,10).join(",")),_.re(a,31).length&&(w.addWorkspaces=_.re(a,31).join(",")),_.re(a,32).length&&(w.removeWorkspaces=_.re(a,32).join(",")),null!=_.Q(a,24)&&(w.confirmed=_.Q(a,24)),w.languageCode=YK(_.fI(this.H)),I=poc(a),r["content-type"]="application/json",M=a.re(),B=!0,w.supportsTeamDrives=!0,this.W(a.getId(),w),_.Q(a,36)?w.bypassMultiparentingCheck=!0:_.R(this.H,3,!1)&&(w.enforceSingleParent=
!0),b=_.re(a,9).concat(_.re(a,10)),b.push(a.getId()),_.KJ(this.H,_.yb(a,_.el,38),b,this.O,r);else if(a instanceof _.AJ)v="PUT",E="files/"+a.qc()+"/revisions/"+_.z(a,2),I=qoc(a),r["content-type"]="application/json",M=a.re(),_.KJ(this.H,[],[a.qc()],this.O,r);else if(a instanceof _.BJ)E="teamdrives/"+a.getId(),null!=_.Q(a,15)?(v="POST",E+="/"+(_.Q(a,15)?"hide":"unhide")):(v="PUT",I=soc(a),r["content-type"]="application/json"),w.fields=CL(this.H),M=a.re(),B=!0;else if(a instanceof _.CJ)v="PUT",E="workspaces/"+
a.getId(),w.fields="kind,id,title,createdDate,modifiedDate,state",I=toc(a),r["content-type"]="application/json",M=a.re(),B=!0;else if(a instanceof _.pD){v="PUT";M=_.y(a,_.Ro,1);B=M.getKey();E="settings/"+_.Uo(B);if(B=_.To(B))w.namespace=Woc[B];I=Xoc(M);r["content-type"]="application/json";M=a.re();B=!0}else if(a instanceof _.PH)E="about",w.fields=_.mI(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),graceQuotaInfo,quotaStatus":
"kind,user,quotaBytesTotal,quotaBytesUsed,quotaBytesUsedAggregate,quotaBytesUsedInTrash,quotaBytesByService,quotaType,rootFolderId,domainSharingPolicy,largestChangeId,importFormats,gsuiteSubscriptionInfo(trialMillisRemaining,trialEndTime,status),teamDashboardCapabilities(canAdministerTeam,canManageInvites),graceQuotaInfo,quotaStatus",w.fields=$oc(w.fields,this.H),M=a.re(),B=!0;else if(a instanceof _.EI){q=11;v=a.fA();E=a.getUrl();var ha=_.z(a,5)||"";_.yb(a,_.sgc,2).forEach(function(xa){r[xa.getKey()]=
xa.Wa()});N=_.m(_.yb(a,_.sgc,4));for(da=N.next();!da.done;da=N.next())da=da.value,w[da.getKey()]=da.Wa();_.Q(a,7)&&(b.yOb=!0);_.Q(a,8)&&(b.Ku=!0);_.Q(a,9)&&(b.$Ga=!0)}else a instanceof _.Ygc?(b=a.request.qc(),E="files/"+b+"/listCategoryMetadata",M=a.request.re(),a.pageToken&&(w.pageToken=a.pageToken),a.request.xi()&&(w.maxResults=a.request.xi()),w.fields="kind,nextPageToken,categoryMetadata",_.KJ(this.H,[],[b],this.O,r)):a instanceof _.zJ?(r["content-type"]="application/json",v="POST",b=a.qc(),E=
"files/"+b+"/updateCategoryMetadata",M=a.re(),I={categoryMetadata:a.uW().map(function(xa){var ua=_.yb(xa,_.YF,2).map(function(ib){return{id:ib.getId(),userId:ib.Fu(),setBooleanValue:_.Q(ib,3),setTextValue:_.z(ib,4),setTextValues:_.re(ib,6),addTextValues:_.re(ib,5),setLongTextValue:_.z(ib,7),setSelectionValue:_.z(ib,8),setSelectionValues:_.re(ib,10),addSelectionValues:_.re(ib,9),setIntegerValue:_.z(ib,11),setIntegerValues:_.re(ib,13),addIntegerValues:_.re(ib,12),setUserValue:_.z(ib,14),setUserValues:_.re(ib,
16),addUserValues:_.re(ib,15),setDateStringValue:_.z(ib,17)}}),Ja={categoryName:xa.Km()};ua.length?Ja.categoryAttributeValueDeltas=ua:_.re(xa,4).length?Ja.revertAttributeIds=_.re(xa,4):_.Q(xa,3)&&(Ja.removeCategory=_.Q(xa,3));return Ja})},_.KJ(this.H,[],[b],this.O,r)):a instanceof _.tJ?(q=13,E=_.KI(_.fI(this.H))?"/v2/people/public":"/v2/people",r["content-type"]="application/json",w.person_id=_.re(a,1),w["request_mask.include_container"]=["PROFILE","DOMAIN_PROFILE"],w["request_mask.include_field.paths"]=
["person.metadata.best_display_name","person.photo","person.email"],w["merged_person_source_options.included_profile_states"]=["DASHER_ADMIN_DISABLED"],_.KI(_.fI(this.H))||(w["core_id_params.enable_private_names"]=!0)):a instanceof _.dhc?(q=12,E="/v1/categories/-/published",r["content-type"]="application/json",a.pageToken&&(w.pageToken=a.pageToken),a.request.xi()&&(w.maxResults=a.request.xi()),a.request.getCustomer()&&(w.customer=a.request.getCustomer()),w.$outputDefaults=!0,w.languageCode=YK(_.fI(this.H))):
a instanceof _.$F?(q=12,E="/v1/"+a.getName(),r["content-type"]="application/json",w.$outputDefaults=!0,w.languageCode=YK(_.fI(this.H))):a instanceof _.TI?(r["content-type"]="application/json",v="POST",E="drives/"+a.uc()+"/changeCategoryReferences",M=a.re(),B=!0,w.fields=CL(this.H,[157],!0),I={},b=_.yb(a,_.zk,2),b.length&&(I.addCategoryReferences=b.map(function(xa){return{category:xa.Km()}})),a=_.yb(a,_.zk,3),a.length&&(I.removeCategoryReferences=a.map(function(xa){return xa.Km()}))):a instanceof _.gG?
(_.re(a,1),E="workspaces/"+_.re(a,1)[0],w.fields="kind,id,title,createdDate,modifiedDate,state",M=a.re(),B=!0):a instanceof _.Xgc?(q=7,v="POST",E="/v2/activity:query",r["content-type"]="application/json",I={},I.pageSize=a.pageSize,a.pageToken&&(I.pageToken=a.pageToken),b="items/"+a.request.getId(),_.R(a.request,2,!1)?I.ancestorName=b:I.itemName=b,I.consolidationStrategy={legacy:{}},a=["MULTIPARENTING_MIGRATION"],b=_.IJ(this.H),(null===b||void 0===b?0:_.R(b,21,!1))&&a.push("HIERARCHY_RECONCILIATION"),
I.filter="actor.type_case:(USER IMPERSONATION ADMINISTRATOR SYSTEM) actor.system.type:("+(a.join(" ")+")")):a instanceof _.$gc?(q=8,v="POST",E="/v1/exports/"+a.H+":cancel"):a instanceof _.ahc?(q=8,E="/v1/exports/"+a.H):"undefined"!=typeof _.chc&&a instanceof _.chc?(E="changes",w.fields="kind,largestChangeId",w.supportsTeamDrives=!0,w.includeItemsFromAllDrives=!0,a.teamDriveId&&(w.teamDriveId=a.teamDriveId),M=a.H,B=!0):a instanceof _.nD?(E="settings",M=_.re(a,3),w.namespace=Yoc(M),M=a.re(),B=!0):a instanceof
_.khc?(E="workspaces",w.fields="kind,nextPageToken,items(kind,id,title,createdDate,modifiedDate,state)",a.pageToken&&(w.pageToken=a.pageToken),a.request.xi()&&(w.maxResults=a.request.xi()),w.q=HIc(a.request),(M=a.request.MB())&&1==M.getType()&&(w.orderBy="title"),M=a.request.re(),B=!0):a instanceof _.uJ?(E="changes/getRemainingCount",w.pageToken=_.z(a,2),_.ej(a,3)&&(w.supportsTeamDrives=!0,w.includeItemsFromAllDrives=!0,w.teamDriveId=a.uc()),M=a.re()):a instanceof _.PI?(r["content-type"]="application/json",
v="POST",E="files/"+a.qc()+"/sendAccessRequest",I={},A=!0):_.Cmc(a);B&&_.Dmc(c,w);0!=q||A||M&&_.z(M,1)||_.rK(this.Xf,74438989);return _.Emc(this,q,E,w,r,v,M,I,ha)};JIc.prototype.W=function(a,b){a=this.ka.bm.H(a);b.expectedParentIds=a?a.vk().join(","):[]};
var KIc=Zoc("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"),LIc=
Zoc("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"),
MIc=Zoc("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 NIc=function(a,b,c,d,e,f,h,k,l,p,q,r,v,w,A,B,E,I,M,N,S,da,aa){this.Zpa=_.Sh();this.Fga=new _.dkc;var fa=new _.vkc(this.zK.bind(this),function(){return S("w8KrJc")}),ha=new jGc(b.bm),xa=new aGc(fa);c=new SFc(b,f,new MFc(d,e,c),h,this.Zpa.promise,k,l,c,S);d=new iGc(b,p,q,r,v,d,e,B,k);this.O=new _.gkc(a,w);w=new JIc(b,a,k,da);this.iua=new yIc(k,a,A,B);this.H=iAc(a,new _.Mlc(this.O,this.Fga,w,this.iua,E,I,M),I,A,N,b.bm,this.Fga,this.Zpa.promise,M||void 0);this.Zpa.resolve(aa?aa:new _.jlc(new kGc,
ha,xa,this.H,fa,c,d,a))};NIc.prototype.zK=function(){return _.Wa(this.H,function(a){return a.zK()})};var LCc=function(a){var b=new Map,c=Date.now();_.Ta(a.H,function(d,e){d=fsc(d);d.length&&b.set(e,d.map(function(f){return f?c-f:null}))});return b};
var OIc=function(a,b){var c=this;this.context=a;this.Bg=b;this.ka=null;this.yS=0;this.ma=this.active=!1;this.H=this.wa=null;this.W={};this.Ia=this.Fa=!1;this.Xf=a.kk();this.ha=_.Sh();this.O=a.Xc;this.Ka=_.IJ(this.O)||new _.aic;b=_.ZK(this.O);this.Ba=new _.Wjc(_.xj(b,2,37500),_.xj(b,3,6E5));this.ta=a.mR;_.Ta(Uvc,function(d){c.W[d]=[]});this.V=a.Jf.Tt;NL(a.Oj,["hVFf7","T8oKm","BNEDtc"],function(){c.log("Initializing: loaded from local dump");c.initialize()});NL(a.Oj,["hVFf7","T8oKm","mrK8ic"],function(){c.log("Initializing: loaded from sdk backfill");
c.initialize()});NL(a.Oj,["mrK8ic","BNEDtc"],function(){c.log("Updating: sdk backfill complete");c.HL().then(null,_.cg)})};_.g=OIc.prototype;_.g.initialize=function(){var a=this;this.Fa||(this.Fa=!0,xM(this.context).addCallback(function(b){a.ta.initialize().dg(function(){a.ka=b;a.setActive(!0)},function(c){c&&Lrc(a.context.Be(),"drive.ds.sync.storage.LiveDumpUpdater","Error initializing dump storage",_.NI(c));a.log("Error initializing dump storage");a.dT()})}))};
_.g.isInitialized=function(){return!!this.ka||this.ma};_.g.Loa=function(a){this.active&&(this.yS+=a,this.yS>_.xj(_.ZK(this.O),1,500)&&this.update(3))};_.g.setActive=function(a){if(this.isInitialized()&&this.active!==a){var b=this.context;a&&(b.YR().zK()||0<b.Jf.YI.ppa||b.Ij().Me()||b.xk().Me())||((this.active=a)?(this.ha.resolve(),this.H||this.HL().then(null,_.cg)):(this.ha=_.Sh(),_.n.clearTimeout(this.wa)))}};_.g.dT=function(){this.ma=!0};_.g.$Za=function(){return this.H?this.H.promise:_.Ph()};
_.g.HL=function(){var a=this;if(this.H)return this.H.promise;this.H=_.Sh();_.Th(this.H.promise,function(){a.H=null});var b=this.Xf.H(106021)||void 0;this.ha.promise.then(function(){return cAc(a.context.UD)}).then(function(c){var d=!c;return a.ma?d:_.Rh([PIc(a,3,d,void 0,void 0,b),PIc(a,0,d,void 0,!0,b),PIc(a,1,d,void 0,!0,b),PIc(a,5,d,void 0,!0,b),PIc(a,6,d,void 0,!0,b)]).then(function(){return d},function(e){e=new _.Hc("Failed to update dump",void 0,_.NI(e));return _.Qh(e)})},function(){return _.Qh(Error("Kg"))}).then(function(c){a.H.resolve(c);
b&&(c=Rrc(b),_.x(c,2,!0),b.Bj())},function(c){a.H.reject(c);b&&(c=Rrc(b),_.x(c,2,!1),b.Bj())});return this.H.promise};_.g.update=function(a,b){var c=this,d=new _.Uh,e=this.Xf.H(106021)||void 0;e&&(yrc(Rrc(e),_.iK(_.Qfc,a)),d.then(function(){var f=Rrc(e);_.x(f,2,!0);e.Bj()},function(){var f=Rrc(e);_.x(f,2,!1);e.Bj()}));this.ha.promise.then(function(){return cAc(c.context.UD)}).then(function(f){f=!f;c.ma?d.callback():_.Xh(PIc(c,a,f,b,void 0,e),d)});return d};
var PIc=function(a,b,c,d,e,f){var h=_.ka(a.W[b]);if(h){if(h.encrypt===c&&1<a.W[b].length)return h.Ee.qn();var k=new _.Uh;_.Wh(h.Ee,function(){_.Xh(a.sw(b,c,d,e,f),k)})}else k=a.sw(b,c,d,e,f);var l={encrypt:c,Ee:k};a.W[b].push(l);_.Wh(k,function(){_.za(a.W[b],function(p){return l===p})});k.Ag(function(p){a.ta.O.If()?a.dT():p instanceof _.Hc&&(p=p.O||null,p instanceof _.UH&&"InvalidStateError"==p.getName()&&p.message&&-1<p.message.indexOf("The database connection is closing.")&&a.dT());return null});
return k};
OIc.prototype.sw=function(a,b,c,d,e){var f=this,h=new _.Uh;this.ha.promise.then(function(){if(3===a)_.Xh(QIc(f,c||!1,b,e),h);else{switch(a){case 0:var k=VCc(f.context.KQ);break;case 1:k=f.context.P_.jt();break;case 5:k=RIc(f.context.FE);break;case 6:k=Mxc(f.context.Jf.Lq);break;default:h.Gd("Invalid data type to write to storage.");return}if(k){var l=_.yb(_.ZK(f.O),XK,11)[0].getKey();!l&&b?(f.log("Skipping dump update, encrypted and no key"),h.callback()):$yc(f.ta,b?l:null,[k],e).then(function(){return void h.callback()},function(p){return void h.Gd(p)})}else d?
(f.log("Skipping dump update: "+a),h.callback()):h.Gd("Failed to get data to write to dump.")}});return h};
var QIc=function(a,b,c,d){_.VJ(a.O)||(_.n.clearTimeout(a.wa),a.wa=_.n.setTimeout(function(){_.ZH(a.Ba);a.update(3,!0)},a.Ba.Wa()));if(b&&0===a.yS)return _.Zh();a.yS=0;b=_.yb(_.ZK(a.O),XK,11)[0].getKey();if(!b&&c)return a.log("Skipping dump update, encrypted and no key"),_.Zh();for(var e=[],f=_.m(SIc(a)),h=f.next();!h.done;h=f.next())h=TIc(a,h.value),h.length&&e.push($yc(a.ta,c?b:null,h,d));var k=new _.Uh;Promise.all(e).then(function(){a.Ia&&a.context.UD.set(aAc,!0);k.callback()},function(l){return void k.Gd(l)});
return k},SIc=function(a){var b,c,d,e=Object.values(Huc).filter(function(f){return 0<f&&!UIc.includes(f)});(null===(b=_.IJ(a.context.Xc))||void 0===b?0:_.R(b,17,!1))?(null===(c=a.V.H)||void 0===c?0:c.ND)||null===(d=a.V.O)||void 0===d||!d.ND?e.push(2):e.push(5):e.push(2);return e},TIc=function(a,b){switch(b){case 1:return[VIc(a)];case 2:return b=a.V.H,a=Guc(WIc(a,b),2),b&&Euc(a,b.gO()),[a];case 5:return b=a.V.O,a=Guc(WIc(a,b),5),b&&(Euc(a,b.gO()),b=Uwc(b),_.kj(a,14,b)),[a];case 3:return XIc(a);case 4:return YIc(a);
default:throw new _.Hc("Unsupported CacheType");}},VIc=function(a){for(var b={},c=[],d=cxc(a.V,!0),e=!0,f=0;f<d.length;f++){var h=d[f],k=h.Ey(),l=ZIc(a,goc(k));k=l.length;var p=0<k?l[k-1]:null;_.Ma(l,function(q){b[q.getId()]=q});if(0<k||h.H)l=(new uL).Vg(h.jd()),h.H||(_.x(l,2,k),_.G(l,3,p),e=!1),c.push(l)}d=_.Ya(b);a.log("Exporting "+d.length+" initial dump items.");return Euc(Guc(Duc(Buc(Cuc(Fuc((new vL).qz(a.context.Du()),_.bK(a.Bg)),a.ka.mH(null)),$Ic(d)),c),1),!e)},WIc=function(a,b){var c=b?b.Ey():
[];c=ZIc(a,_.Ya(hoc(c)));a.log("Exporting "+c.length+" secondary dump items.");c.length>_.xj(_.ZK(a.O),5,2E4)&&(b&&QL(b,!1),c=[]);c=Buc(new vL,$Ic(c));var d=new yoc;(a=a.V.H)&&a.ND&&(a=a.Ey(),_.x(d,3,a.length));a=_.G(c,11,d);b&&Euc(a,b.gO());return a},XIc=function(a){var b=[],c=a.ka;a.V.SW().forEach(function(d){var e=c.mH(d.uc());if(e){var f=ZIc(a,goc(d.Ey()));a.log("Exporting "+f.length+" TD dump items for: "+d.uc());e=Euc(Guc(Cuc(Buc(new vL,$Ic(f)),e),3),d.gO());d=(new uL).Vg(d.jd());Duc(e,[d]);
b.push(e)}});return b},YIc=function(a){var b={},c=[];a.context.Jf.SW().forEach(function(d){1===d.pW()&&null==_.Q(d.jd(),6)&&(goc(d.Ey()).forEach(function(e){b[e.getId()]=e}),d=zuc((new uL).Vg(new _.Af),d.jd()),c.push(d))});return[Euc(Guc(Duc(Buc(new vL,$Ic(Object.values(b))),c),4),!1)]},ZIc=function(a,b){b=Enc(b);_.Q(a.O,67)&&(b=aJc(b));_.mI(a.O)&&(_.R(a.Ka,9,!1)?Pxc(a.context.Jf.Lq,b)&&(_.rK(a.Xf,179490965),a.log("b/179490965 Unexpected people data when writing to disk cache.","warning"),b=Nxc(a.context.Jf.Lq,
b)):b=Nxc(a.context.Jf.Lq,b));return b.filter(function(c){return 4!==c.Lv()})},aJc=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,wnc(c)?(c=c.clone(),fnc(c,vnc),b.push(c)):b.push(c);return b},$Ic=function(a){return a.map(function(b){return b.clone()})};OIc.prototype.log=function(a,b){this.context.Be().log("drive.ds.sync.storage.LiveDumpUpdater",a,void 0===b?"info":b)};OIc.prototype.iGa=function(){this.Ia=!0};var UIc=[2,5];
var bJc=function(){};_.g=bJc.prototype;_.g.setActive=function(){};_.g.dT=function(){};_.g.update=function(){return _.Zh()};_.g.$Za=function(){return _.Ph()};_.g.HL=function(){return _.Ph()};_.g.Loa=function(){};_.g.iGa=function(){};
var VK=function(a,b,c,d){_.qi.call(this);var e=this;this.Aa=a;this.Nw=c;this.rootId=null;this.Ia=!0;this.ha=null;this.ta=[];this.Ba=d||new _.Hic;this.Xc=b.clone();_.gI(this.Xc,28);this.Bg=new _.Vic(this.Xc);this.Pl=new wvc(_.bK(this.Bg),this.Xc);cJc(this);this.wY=new _.cn;this.yb=_.n.setTimeout(function(){e.Be().info("drive.ds.sync.ThinContext","Page stable timed out.");e.wY.resolve();e.kk().O(106020)},1E4);this.O_=new _.Uh;this.Fa=new _.xjc(_.XJ(this.Xc),_.R(this.Xc.Tf(),52,!1));this.ka=new _.qjc(_.XJ(this.Xc)?
3:1,!_.R(this.Xc.Tf(),52,!1));this.Xf=_.Njc(this.Xc,this.Fa,this.ka,this.Ba,this.wY.promise,this.Nw);this.jua=new iwc(this.Xf);this.RQ=new _.Uh;this.log("Enabled experiments: "+this.kk().W.W);dJc(this)};_.K(VK,_.qi);VK.prototype.getEnvironment=function(){return this.Nw};VK.prototype.WS=function(){this.Be().info("drive.ds.sync.ThinContext","Notified of page stable.");_.n.clearTimeout(this.yb);this.wY.resolve()};
var dJc=function(a){var b=function(){a.Lt().then(null,_.cg)},c=a.Aa;(c=c&&_.Dc(c,_.El))?_.li(c,"w",b):_.Yfc()||_.li(_.n,"unload",b)};VK.prototype.Lt=function(){this.Xf.O(106005);Vrc(this.Xf);var a=this.ta.map(function(b){return b()});_.ra(this.ta);return Promise.all(a).then()};var eJc=function(a,b){a.ta.push(b)};_.g=VK.prototype;_.g.Be=function(){return this.Ba};_.g.qz=function(a,b){"string"===typeof a&&null===this.rootId&&(this.rootId=a,this.O_.callback(a),a.length&&this.R7a(a,b||null))};
_.g.R7a=function(){};_.g.Du=function(){return this.rootId};_.g.kk=function(){return this.Xf};var fJc=function(a){if(!a.ha)throw Error("Lg");return a.ha},gJc=function(a,b){a.ha=b};VK.prototype.UB=function(){return this.Ia||this.ka.isConnected()};VK.prototype.Ij=function(){return this.Fa};VK.prototype.xk=function(){return this.ka};VK.prototype.QRb=function(a){this.RQ.callback(a)};
var cJc=function(a){var b=a.Xc.Tf();0===_.re(b,30).length&&(a.log("No user pref namespaces provided, user prefs disabled."),_.x(b,19,3));if(!_.C(b,37,""))throw Error("Mg");_.z(b,57)||(a.log("No root URI provided; using prod default."),_.x(b,57,"https://clients6.google.com"));if(_.R(_.ZK(a.Xc),9,!1))if(b=_.yb(_.ZK(a.Xc),XK,11),0<b.length){if(!_.z(b[0],1)||!b[0].getKey()&&!_.XJ(a.Xc)&&!_.VJ(a.Xc))throw Error("Ng");}else _.x(_.ZK(a.Xc),9,!1),a.log("Disabling IndexedDB support, missing configuration.");
if(!_.R(_.ZK(a.Xc),9,!1)&&(_.XJ(a.Xc)||_.VJ(a.Xc)))throw Error("Og");var c=_.fI(a.Xc);b=!(!c||!_.KI(c));c=c&&_.UJ(c)||"";if(!b&&!c)throw Error("Pg");b&&_.nj(a.Xc,44);_.yb(a.Xc,_.Af,44).forEach(function(d){try{Cvc(a.Pl,d)}catch(e){if(e instanceof _.Hc&&(d=e.tg)&&3===d.gB())throw Error("Qg");throw e;}})};VK.prototype.HJ=function(a){this.dispatchEvent(new _.Ic(new _.Hc(void 0,a)))};VK.prototype.log=function(a){this.Be().info("drive.ds.sync.ThinContext",a)};
var hJc=function(a,b){this.H=a;this.Pe=b};
var iJc=new Set([5,4,1,6,2]),jJc=new Map([[3,1],[7,1],[2,2],[4,2],[5,3],[1,4],[6,5]]),kJc=function(a,b,c){_.qi.call(this);this.ha=a;this.V=b;this.W=c;this.hG=new Map;this.O=new Map;this.status=6;this.H=null};_.K(kJc,_.qi);
kJc.prototype.SQ=function(a,b,c,d){var e=this;if((d=void 0===d?!1:d)&&!c.length){var f=new Set;a.forEach(function(q){(q=(q=q.getKey())&&_.To(q))&&f.add(q)});[].concat(_.fc(f.values())).forEach(function(q){return void c.push(q)})}if(c.length){var h=iJc.has(b),k=new Map;c.forEach(function(q){k.set(q,new Map)});a.forEach(function(q){var r=q.getKey(),v=r&&_.Uo(r);r=k.get(r&&_.To(r));v&&r&&r.set(v,lJc(q))});var l=0,p=0;[].concat(_.fc(k.keys())).forEach(function(q){var r=k.get(q),v=e.hG.get(q);v?h&&(r.forEach(function(w){var A=
w.getKey();(A=v.get(A&&_.Uo(A)))&&_.wj(w,A)||l++}),[].concat(_.fc(v.values())).forEach(function(w){w=w.getKey();r.has(_.Uo(w))||p++}),e.hG.set(q,r),e.O.set(q,b)):(l+=r.size,e.hG.set(q,r),e.O.set(q,b))});this.ha.info("drive.ds.sync.userprefs.InMemoryUserPrefsCache","Loaded "+l+"/"+a.length+" user prefs from "+b+(p?" (removed "+p+")":""));if(1!==this.status||l){if(h||d)this.status=1,OL(this.V,"px2C2c");OL(this.V,"rkYxSd")}(l||p)&&mJc(this,!h)}};kJc.prototype.yH=function(){return 0<this.hG.size};
var mJc=function(a,b){b||a.H||(a.H=_.n.setTimeout(function(){_.n.clearTimeout(a.H);a.H=null;a.W.update(5)},1E3));a.dispatchEvent(new _.hi("WPi0i"))};kJc.prototype.put=function(a){var b=a.getKey(),c=b&&_.To(b);b=b&&_.Uo(b);if(c&&b&&(c=this.hG.get(c))){var d=c.get(b);a=lJc(a);d&&_.wj(a,d)||(c.set(b,a),mJc(this))}};kJc.prototype.remove=function(a){var b=a&&_.To(a);a=a&&_.Uo(a);b&&a&&(b=this.hG.get(b))&&b.delete(a)&&mJc(this)};
var RIc=function(a,b){var c=[];(b||[].concat(_.fc(a.hG.keys()))).forEach(function(e){(e=a.hG.get(e))&&[].concat(_.fc(e.values())).forEach(function(f){return void c.push(f.clone())})});b=b?b.filter(function(e){return a.hG.has(e)}):[].concat(_.fc(a.hG.keys()));var d=new zsc;_.mj(d,1,c);_.kj(d,2,b);return d};
kJc.prototype.rH=function(a){var b=this,c=RIc(this,a),d=new _.Xz;d.Dc(this.status);_.pjb(d,_.yb(c,_.Ro,1));_.G(d,4,c);var e=0;a.forEach(function(f){f=b.O.get(f);jJc.has(f)&&Infinity>jJc.get(f)&&(e=f)});return new hJc(d,e)};var lJc=function(a){a=a.clone();a.Ng()||a.Hb("");return a};
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var nJc=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},pJc=function(a,b){return oJc(a[b])+(oJc(a[b+1])<<8)+(oJc(a[b+2])<<16)+(oJc(a[b+3])<<24)},oJc=function(a){return 127<a?a-256:a};
var WK=function(a,b,c,d,e,f){VK.call(this,a,b,c,d);var h=this;this.$a=_.Sh();this.Ct=new UL;this.W=null;this.O=_.Sh();this.Ka=new _.Uh;this.m7=null;this.Hga=new eyc;this.V=null;this.kb=_.Sh();this.wa=new _.Uh;this.tG=new Kyc;this.Cx=new oyc;this.qia=new lyc;this.eba=new _.cn;this.Pa=!1;this.Gga=new _.cn;this.H={};this.ma=null;this.Jb=new _.nf;this.Ja(this.Jb);this.Oj=e?e:new Owc(this.Be());this.kk().W.O=this.Oj;this.fM=_.R(_.ZK(b),9,!1)&&apc()?qJc(this,b):null;this.Uv=new qvc(YK(_.fI(b)));this.UD=
rJc(this,this.fM);this.mR=sJc(this,this.fM,b);this.Jf=new AM(this,this.Bg);this.Us=tJc(this);(a=(a=_.y(this.Xc,_.Bk,12))&&a.getId())&&this.qz(a,6);this.KQ=new UCc(this.Xc,this.Jf.Lq,this.Oj,this.Be(),this.Us);this.P_=new $Cc(this.Be(),this.Oj,this.Us);this.FE=new kJc(this.Be(),this.Oj,this.Us);this.ZI=new awc(this.Mm(),this.Be(),function(k){return void h.HJ(k)});this.Cz=_.R(this.Xc.Tf(),52,!1)?new _.sK(this.xk(),this.Mm(),this.Be(),this.kk()):null;NL(this.Oj,["mrK8ic"],function(){h.kb.promise.then(function(){HDc(h,
h.V)})});this.tPa=new Gyc(this.Xc);this.kB=new _.okc(this.Xc,this.Jf.bm,this.Bg);this.kua=new IFc(this);this.l7=new iyc(this.O.promise,this.Mm());this.ob=new myc(this.Mm(),this.l7);this.Iga=new Cyc(this.O.promise,this.Mm(),this.Be(),this.Xc);this.Ua=new NIc(this.Xc,this.Jf,this.HJ.bind(this),this.l7,this.ob,this.Us,this.Hga,this.Bg,this.Du.bind(this),this.kua,this.P_,this.FE,this.Iga,this.tG,this.Be(),this.tPa,this.kB,this.ZI,this.Cz,this.Ij(),this.Lsb.bind(this),this.kk(),f);this.$a.resolve(this.Ua);
this.dMa=new sFc(this);NL(this.Oj,["BNEDtc"],function(){return h.Gga.resolve()});eJc(this,function(){h.Us.dT();return _.Ph()})};_.K(WK,VK);
var qJc=function(a,b){var c=_.UJ(_.fI(b)),d=_.WJ(b),e=function(){},f=_.yb(_.ZK(b),XK,11);f=f[0]&&_.z(f[0],1);var h=new vzc(c,d,_.xj(_.ZK(b),10,0)||0,f||"",_.bK(a.Bg));_.XJ(b)?c=Qzc(c,d).then(function(l){return l?l:h}):_.VJ(b)&&0<_.xj(_.ZK(b),8,432E6)?(b=uJc(a,c),c=Qzc(c,d,b).then(function(l){return l&&(e=function(p){return p.Ll(h).then(null,_.cg)},!l.ha)?l:h})):c=_.Ph(h);var k=new dM(c,a.Be(),a.kk());k.initialize().then(function(){return e(k)},function(){return null});return k},uJc=function(a,b){var c=
_.xj(_.ZK(a.Xc),8,432E6);if(!_.XJ(a.Xc)&&0<c){a=Math;var d=a.abs;b=_.bna(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+=pJc(b,e),h.b+=pJc(b,e+4),h.c+=pJc(b,e+8),nJc(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+=pJc(b,e+4);h.a+=pJc(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+=pJc(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=nJc(h);return d.call(a,b)%c}};WK.prototype.nz=function(a){var b=this;return this.fM?this.fM.If()?_.Qh(Error("Rg`"+Czc(this.fM))):cAc(this.UD).then(function(c){var d=b.fM,e=[];e.push(b.Us.$Za());e.push(a?d.Ll():Mzc(d));if(a===c)return _.Rh(e).then(function(){return!1});!1===a&&(e.push(Bzc(d)),(c=b.Du())&&e.push(b.UD.qz(c)));return _.Rh(e).then(function(){return b.UD.nz(a)},function(){return!1})}):_.Qh(Error("Sg"))};
var sJc=function(a,b,c){var d=null;b&&(d=new Uyc(b,c,function(e){a.HJ(e)},a.kk()),d.initialize());return d},rJc=function(a,b){var c=new bAc(b||void 0);c.Du().then(function(d){d&&a.qz(d,5)});b&&(cAc(c).then(function(d){a.Ij().nz(d)}),_.Rh([b.initialize(),a.wY.promise]).then(function(){vJc(a,c)},function(){}));return c},vJc=function(a,b){fAc(b).then(function(c){(!c||c<Date.now()-864E5)&&Tzc(_.UJ(_.fI(a.Xc)),_.WJ(a.Xc),a.Be()).then(function(d){d&&(d=Date.now(),b.set($zc,d))},function(){})})},tJc=function(a){if(!a.mR)return new bJc;
var b=new OIc(a,a.Bg);a.Jb.listen(a.Ij(),"rb",function(c){return void b.setActive(!c.Me())});a.Jb.listen(a.xk(),[].concat(_.fc(Object.values(_.VB))),function(){return void b.setActive(a.xk().isConnected())});return b};WK.prototype.fZ=function(a){this.m7=a;this.Ka.callback(a)};var xM=function(a){return a.Ka.qn()},KCc=function(a){return a.fM?a.fM.If():null},wJc=function(a,b){a.Oj.H("NSockf")?OL(a.Oj,b):NL(a.Oj,["NSockf"],function(){OL(a.Oj,b)})};
WK.prototype.R7a=function(a,b){this.log("Setting Root ID: "+a);a&&(this.Ct.qz(a),this.Pl.qz(a),6!==b&&1!==b||this.UD.qz(a),wJc(this,"jroI5d"))};WK.prototype.bZa=function(){return this.wa.qn()};var HDc=function(a,b,c){0>b||((void 0===c?0:c)?a.V?a.V=Math.max(a.V,b):(a.V=b,a.kb.resolve()):a.wa.Wf()||(a.wa.callback(b),wJc(a,"T8oKm")))},eDc=function(a){if(!a.W)throw Error("Tg");return a.W};_.g=WK.prototype;_.g.YR=function(){return this.Ua};_.g.Mm=function(){return this.$a.promise.then(function(a){return a.Zpa.promise})};
_.g.hGa=function(){this.Pa||(this.Pa=!0,this.eba.resolve(),OL(this.Oj,"aU7Ts"))};_.g.UB=function(){throw Error("Ug");};_.g.Lsb=function(a){this.dispatchEvent(a)};var xJc=function(a,b,c){a.H[b]=c},DCc=function(a){a.ma||(a.ma=new tyc(a.O.promise,a.Mm(),a.Be()));return a.ma};
var EM=function(a,b,c){_.qi.call(this);var d=this;this.Fa=a;this.logName=b;this.wa=_.Sh();this.Ba=this.channel=this.clientId=null;c.then(function(e){return yJc(d,e)})};_.K(EM,_.qi);var yJc=function(a,b){a.clientId=b.clientId;a.channel=b.channel;a.Ba=b.H;DL(a.channel,a.Fa,function(c){c=Qvc(c);a.Kaa(c.O,!(!c.data||!c.H),c.data,c.error)});a.log("Service initialized: "+a.Fa);a.wa.resolve()};EM.prototype.Kaa=function(){};
EM.prototype.send=function(a,b,c,d){var e=this,f=_.Sh();this.wa.promise.then(function(){var h=e.channel;EL(h,e.Fa,Mvc(new Lvc(e.clientId,a,b,d),h.W),function(k){return void zJc(k,a,f,c||function(){})})});return f.promise};var zJc=function(a,b,c,d){a=Qvc(a);a.data?c.resolve(d(a.data,a.H)):(a.error?d=a.error:(d=new _.Gc,_.tI(d,2),_.uI(d,6),_.x(d,21,"Worker["+b+"]: An invalid response was received")),c.reject(new _.Hc(void 0,d)))};EM.prototype.log=function(a){this.Ba&&this.Ba.info(this.logName,a)};
var AJc=function(a,b,c,d){this.clientId=a;this.channel=b;this.H=c;this.O=d};
var FM=function(a,b){_.P.call(this);this.V=a;this.wa=b;this.Ka=this.BV()};_.K(FM,_.P);_.g=FM.prototype;_.g.registerService=function(a){var b=this;DL(a,this.V,function(c){return b.gx(c)})};
_.g.gx=function(a){var b=this;a=Nvc(a);var c=a.H,d=this.Ka[a.method],e=null;if(d)try{var f=d(a);if(f instanceof Ovc)return Pvc(f,c);if(f.then)return f.then(function(h){return Pvc(h,c)},function(h){h=_.vI(h);return Pvc(b.Zc(void 0,h),c)})}catch(h){e=_.NI(h)}f=new _.Gc;_.tI(f,2);_.uI(f,3);_.Co(f,this.V+":"+a.method+": "+(e?e.message:"unsupported method"));e&&e.stack&&_.x(f,20,e.stack);return Pvc(this.Zc(void 0,f),c)};
_.g.Zc=function(a,b,c){if(a&&!b)return new Ovc(a,void 0,c);a=_.vI(b);return new Ovc(void 0,a,c)};_.g.update=function(a,b,c,d){(a=this.wa.channels[a]||null)&&EL(a,this.V,Pvc(this.Zc(c,d,b),a.W))};_.g.Lt=function(){return Promise.resolve()};
var BJc=function(){this.channels={};this.H=this.O=this.V=0},CJc=function(a,b){var c=a.V++;a.channels[c]=b;a.O++;a.H=Math.max(a.H,_.Xa(a.channels));return c},DJc=function(a,b){var c=a.channels[b];return c?(delete a.channels[b],c):null};
var EJc=function(a,b){FM.call(this,"LRM",b);this.context=a;this.H={};a=this.context;a.W=this;a.O.resolve(this);this.ha=this.context.Jf;this.O=this.context.Iga;this.W=DCc(this.context);this.ka=this.context.l7};_.K(EJc,FM);
EJc.prototype.BV=function(){var a=this,b={};return b["4.1"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.Af);return a.Zh(d,c)},b["4.9"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.RH);return a.Zh(d,c)},b["4.2"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.aG);return a.Zh(d,c)},b["4.10"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.fG);return a.Zh(d,c)},b["4.3"]=function(c){var d=c.clientId+":"+c.requestId;
c=TK(c.args[0],!!c.H,_.Af);return a.dk(d,c)},b["4.11"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.RH);return a.dk(d,c)},b["4.4"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.aG);return a.dk(d,c)},b["4.12"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.fG);return a.dk(d,c)},b["4.5"]=function(c){var d=c.clientId+":"+c.requestId,e=TK(c.args[0],!!c.H,_.aG);c=TK(c.args[1],!!c.H,_.aG);return a.OZ(d,e,c)},b["4.6"]=function(c){var d=c.clientId+
":"+c.requestId,e=TK(c.args[0],!!c.H,_.fG);c=TK(c.args[1],!!c.H,_.fG);return a.OZ(d,e,c)},b["4.7"]=function(c){return a.gG(c)},b["4.8"]=function(c){return a.gG(c)},b["4.13"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.bA);return a.Zh(d,c)},b["4.14"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.gG);return a.Zh(d,c)},b["4.15"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.bA);return a.dk(d,c)},b["4.16"]=function(c){var d=c.clientId+
":"+c.requestId;c=TK(c.args[0],!!c.H,_.gG);return a.dk(d,c)},b["4.18"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.nG);return a.Zh(d,c)},b["4.19"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.nG);return a.dk(d,c)},b["4.22"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.$z);return a.Zh(d,c)},b["4.23"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.$z);return a.dk(d,c)},b["4.21"]=function(c){c=a.H[c.clientId+":"+
c.requestId].query;if(c instanceof _.$z){var d=a.W;cyc(d,d.getKey(c)).refresh()}return a.Zc([])},b};EJc.prototype.Zh=function(a,b){var c=this,d=new _.cn;this.H[a]={query:b,kXb:d.promise};b instanceof _.bA?d.resolve(this.O.Zh(a,b)):b instanceof _.gG?d.resolve(ayc(this.O,a,b)):b instanceof _.$z?d.resolve(this.W.Zh(a,b)):b instanceof _.nG?d.resolve(this.ka.Zh(a,b)):d.resolve(this.ha.Zh(a,b));return d.promise.then(function(){return c.Zc([])})};EJc.prototype.dk=function(a,b){FJc(this,a,b);return this.Zc([])};
var FJc=function(a,b,c){delete a.H[b];c instanceof _.bA?a.O.dk(b,c):c instanceof _.gG?byc(a.O,b,c):c instanceof _.$z?a.W.dk(b,c):c instanceof _.nG?a.ka.dk(b,c):a.ha.dk(b,c)};_.g=EJc.prototype;_.g.OZ=function(a,b,c){FJc(this,a,b);return this.Zh(a,c)};_.g.gG=function(a){var b=a.clientId+":"+a.requestId,c=this.H[b].query;c.cj(a.args[0]);c instanceof _.bA?this.O.Zh(b,c):c instanceof _.gG?ayc(this.O,b,c):c instanceof _.$z?this.W.Zh(b,c):c instanceof _.nG?this.ka.Zh(b,c):this.ha.Zh(b,c);return this.Zc([])};
_.g.VO=function(a,b){var c=this,d=this.H[a];if(d){a=a.split(":");var e=_.jh(a[0]),f=a[1];d.kXb.then(function(h){b instanceof _.qK||b instanceof _.nK?c.update(e,f,[b.response,b.pageToken,b.H,b.Pe,h]):(d.query instanceof _.Af?hnc(d.query.H(),b.Bd().filter(function(k){return!zL(k)})):d.query instanceof _.aG&&hnc(d.query.H(),Object.values(b.lt()).filter(function(k){return k&&!zL(k)})),c.update(e,f,[b,h]))})}};
_.g.HY=function(a,b){if(this.H[a]){var c=a.split(":");a=_.jh(c[0]);c=c[1];var d=b.error;d.Ega(b.retryCount);this.update(a,c,void 0,d)}};_.g.KA=function(a){this.H[a]&&(a=a.split(":"),this.update(_.jh(a[0]),a[1],["cacheRefresh"]))};_.g.i$=function(){};_.g.Yla=function(a){if(!this.H[a])throw Error("vg`"+a);return this.H[a].query};var GJc=function(a,b){_.Ta(a.H,function(c,d){_.jh(d.split(":")[0])===b&&FJc(a,d,c.query)})};
var HJc=function(a,b,c){EM.call(this,"LRM","drive.ds.sync.cache.LiveRequestManagerProxy",a);this.context=b;this.H=c;this.O={}};_.K(HJc,EM);HJc.prototype.Yya=function(a){var b=this;a=new pCc(this.context.Pl,this.context.RQ,this.context.Be(),this.context.Xc,function(c,d){return b.gG(c,d)},a,this.context.kk());IJc(this,a);return a};HJc.prototype.aza=function(a){var b=this;a=new tCc(this.context.Pl,this.context.RQ,this.context.Be(),function(c,d){return b.gG(c,d)},a,this.context.Xc);IJc(this,a);return a};
var IJc=function(a,b){a.Zh(b);_.ef(b,function(){a.dk(b);a.send("4.3",[b.jd()],void 0,b.Oi())});a.send("4.1",[b.jd()],void 0,b.Oi())};_.g=HJc.prototype;_.g.Vya=function(a){var b=this,c=new Asc(this.context.Xc,this.context.Pl,this.context.Be(),this.context.O_,this.OZ.bind(this),a);this.Zh(c);_.ef(c,function(){b.dk(c);b.send("4.4",[c.jd()],void 0,c.Oi())});this.send("4.2",[c.jd()],void 0,c.Oi());return c};
_.g.dza=function(a){var b=this,c=new xCc(this.context.Be(),a,this,this.context.Xc);this.Zh(c);_.ef(c,function(){b.dk(c);b.send("4.11",[c.jd()],void 0,c.Oi())});this.send("4.9",[c.jd()],void 0,c.Oi());return c};_.g.eza=function(a){var b=this,c=new yCc(this.context,this,a);this.Zh(c);_.ef(c,function(){b.dk(c);b.send("4.12",[c.jd()],void 0,c.Oi())});this.send("4.10",[c.jd()],void 0,c.Oi());return c};
_.g.hza=function(a){var b=this,c=new BCc(this.context,a,this);this.Zh(c);_.ef(c,function(){b.dk(c);b.send("4.15",[c.jd()],void 0,c.Oi())});this.send("4.13",[c.jd()],void 0,c.Oi());return c};_.g.iza=function(a){var b=this,c=new sCc(this.context.Be(),a);this.Zh(c);_.ef(c,function(){b.dk(c);b.send("4.16",[c.jd()],void 0,c.Oi())});this.send("4.14",[c.jd()],void 0,c.Oi());return c};
_.g.bza=function(a){var b=this,c=new wCc(this.context,a,function(){b.send("4.21",[],void 0,c.Oi())});this.Zh(c);_.ef(c,function(){b.dk(c);b.send("4.23",[c.jd()],void 0,c.Oi())});this.send("4.22",[c.jd()],void 0,c.Oi());return c};_.g.Rya=function(a){var b=this,c=new nCc(this.context.Ij(),this.context.xk(),this.context.Be(),function(d,e){return b.gG(d,e)},a);this.Zh(c);_.ef(c,function(){b.dk(c);b.send("4.19",[c.jd()],void 0,c.Oi())});this.send("4.18",[c.jd()],void 0,c.Oi());return c};
_.g.Zh=function(a){this.H.create(a.Oi(),a.jd());this.O[a.Oi()]=a};_.g.dk=function(a){HL(this.H,a.Oi(),4);delete this.O[a.Oi()]};_.g.OZ=function(a,b,c){if(b instanceof _.aG&&c instanceof _.aG)this.send("4.5",[b,c],void 0,a);else if(b instanceof _.fG&&c instanceof _.fG)this.send("4.6",[b,c],void 0,a);else throw Error("Vg");};
_.g.gG=function(a,b){if(!this.O[a])throw Error("vg`"+a);var c=this.O[a];if(c.jd()instanceof _.Af)var d="4.7";else if(c.jd()instanceof _.RH)d="4.8";else if(c.jd()instanceof _.nG)d="4.20";else if(c.jd()instanceof _.bA)d="4.17";else throw Error("Wg");c.jd().cj(b);this.send(d,[b],void 0,a)};
_.g.Kaa=function(a,b,c,d){if(a=this.O[a]){var e,f=0;if(d)a.PB(new XL(d,d.Z6())),HL(this.H,a.Oi(),3);else if(c&&c[f]){d=c[f++];if("cacheRefresh"===d){a.bX();return}var h=a.jd();if(h instanceof _.Af||h instanceof _.RH)h instanceof _.Af&&_.kJ(h)?e=TK(d,b,_.kK):e=TK(d,b,_.eI);else if(h instanceof _.aG||h instanceof _.fG)b?(e=new _.jK,ssc(e,function(k){return new _.Bk(JSON.parse(k))},d)):e=d;else if(h instanceof _.nG)e=new _.nK(TK(d,b,KL),c[f++],c[f++],c[f++]);else if(h instanceof _.bA)e=new _.qK(TK(d,
b,ML),c[f++],c[f++],c[f++]);else if(h instanceof _.gG)e=TK(d,b,_.lK);else if(h instanceof _.$z)e=TK(d,b,xL);else throw Error("Xg");}e&&(b=f,c&&"boolean"===typeof c[b]&&jwc(this.H,a.Oi(),!!c[b]),mwc(this.H,a.Oi(),e),a.update(e))}};
var GM=function(){_.qi.apply(this,arguments);this.commands=new _.Kk;this.ha=this.active=this.vp=!1};_.K(GM,_.qi);GM.prototype.initialize=function(){this.vp||(this.vp=!0,this.V(),this.setActive(!0))};GM.prototype.V=function(){};GM.prototype.setActive=function(a){this.active=a;JJc(this)};var JJc=function(a){if(a.active&&!a.ha){var b=_.Lk(a.commands);if(b)if(a.wa()){do a.ka(b);while(b=_.Lk(a.commands))}else{a.ha=!0;var c=function(){a.ha=!1;JJc(a)};a.Ba(b).then(c,c)}}};GM.prototype.ka=function(){};
GM.prototype.Ba=function(){};GM.prototype.wa=function(){return!0};GM.prototype.enqueue=function(a){try{var b=new _.Uh;this.commands.enqueue(new KJc(a,b));JJc(this);return b}catch(c){return _.ai(_.NI(c))}};var KJc=function(a,b){this.H=a;this.Ee=b};KJc.prototype.getCommand=function(){return this.H};
var NJc=function(a){GM.call(this);var b=this;this.context=a;this.H=null;this.Oc=new _.nf(this);this.Ja(this.Oc);this.Oc.listen(this.context,"VMiG2e",function(){return void LJc(b)});this.O=this.context.Jf.Lq;_.mI(this.context.Xc)&&this.Oc.listen(this.O,"vb",this.W);var c=a.Oj;NL(c,["toquGd"],function(){return b.initialize()});var d=["NSockf"];1!==_.ij(a.Xc.Tf(),17,1)&&(d.push("iuEtc"),NL(c,["mrK8ic"],function(){OL(c,"iuEtc")}));NL(c,d,function(){MJc(b)})};_.K(NJc,GM);NJc.prototype.V=function(){OJc(this)};
var MJc=function(a){if(1===a.context.KQ.Hf().Cb())Promise.resolve();else{var b=_.Mf(_.Nf(new _.Lf,!0),301);b=_.QH(new _.PH,b);a.refresh(b).then(null,function(c){c=_.vI(c);_.x(c,21,"Initial account request failed.");a.context.HJ(c)})}},LJc=function(a){var b=_.Mf(new _.Lf,304);b=_.QH(new _.PH,b);a.refresh(b).then(null,function(){})};
NJc.prototype.refresh=function(a,b){var c=this;this.H||(this.H=this.context.Mm().then(function(d){return d.Qe(a,b)}).then(function(d){var e=d.Hf(),f=e.getUser();if(f&&!1===_.nk(f))d=_.wI(_.fI(c.context.Xc)),d=Error("Yg`"+d+"`"+LK(f)),_.Lb(d),_.rK(c.context.kk(),73301807),d=Promise.reject(d);else{f=c.context.KQ;var h=0===f.We()?1:6;_.mI(c.context.Xc)&&Gxc(c.O,e);h=WCc(f,e,h);(e=e.getMetadata())&&c.context.qz(_.z(e,2),1);(d=_.z(d,4))&&HDc(c.context,d,!0);h&&c.dispatchEvent(new _.hi("WPi0i"));d=Promise.resolve(new _.pK(f.Hf(),
f.We(),!1))}return d}).then(function(d){return d},function(d){d=_.vI(d);_.x(d,5,1);return Promise.reject(new _.Hc("Error fetching account from server.",d))}),this.H.then(function(){c.H=null},function(){c.H=null}));return this.H};
NJc.prototype.ka=function(a){var b=a.getCommand();if(b.H){var c={};b.bE&&(c.bE=b.bE);this.refresh(b.request,c).then(function(e){return a.Ee.callback(e)},function(e){a.Ee.Gd(e)})}else if(b=this.context.KQ,c=b.Hf(),_.mI(this.context.Xc)){c=c.Hf();var d=c.getUser();d=sxc(this.O.H,LK(d));Gxc(this.O,c);WCc(b,c,b.We())&&this.dispatchEvent(new _.hi("WPi0i"));a.Ee.callback(new _.pK(b.Hf(),b.We(),d))}else c.Cb(),b=new _.pK(c,b.We(),!0),a.Ee.callback(b)};
var OJc=function(a){var b=a.context.Xc.Tf();_.n.setTimeout(function(){var c=_.Mf(new _.Lf,306);c=_.QH(new _.PH,c);a.refresh(c).then(function(){OJc(a)},function(){OJc(a)})},Math.ceil(_.xj(b,7,9E5)*Math.random())+_.xj(b,3,72E5))};NJc.prototype.W=function(a){var b=this.context.KQ,c=b.Hf().Hf();c&&a.getPeople().find(function(d){return _.z(d,1)===LK(c.getUser())})&&(Gxc(this.O,c),WCc(b,c,b.We())&&this.dispatchEvent(new _.hi("WPi0i")))};var PJc=function(a,b,c){this.request=a;this.H=!!b;this.bE=c||null};
var RJc=function(a){GM.call(this);this.context=a;this.ta=this.W=!1;this.O=null;this.H=1;this.ma=0;this.error=null;this.Oc=new _.nf(this);this.Ja(this.Oc);this.Oc.listen(this.context.P_,"Hb",_.Ob(this.dispatchEvent,new _.hi("Hb",this)));QJc(this)};_.K(RJc,GM);
var QJc=function(a){var b=a.context.Oj;NL(b,["nVUlO"],function(){a.ta=!0;a.setActive(!0)});if(!_.XJ(a.context.Xc)){var c=_.ij(a.context.Xc.Tf(),18,1);NL(b,["NSockf"],function(){1===c?SJc(a):a.setActive(!0)});2===c&&NL(b,["mrK8ic"],function(){a.W||SJc(a)})}},SJc=function(a){var b=new _.Lf;_.Nf(b,!0);_.Mf(b,301);var c=new _.oJ;_.Mrc(c,b);_.x(c,1,1);a.refresh(c).then(null,function(){return null})};
RJc.prototype.refresh=function(a,b){var c=this;_.n.clearTimeout(this.ma);this.ma=0;var d=_.Sh();this.O=d.promise;this.O.then(function(){TJc(c)},function(){TJc(c)});var e=this.H;this.H=a.getType()||e;var f=!this.W;this.W=!0;var h=new _.oJ;_.x(h,1,this.H);_.Mrc(h,a.re());this.context.Mm().then(function(k){return k.Qe(h,b)}).then(function(k){c.error=null;var l=c.context.P_;l.SQ(k,l.yH()?6:1);d.resolve()},function(k){c.H=e;k=_.xd(k);var l=k.tg;_.x(l,5,2);f?(_.tI(l,1),k.message="Initial app settings refresh failed.",
_.x(k.tg,21,"Initial app settings refresh failed."),c.context.HJ(l),c.setActive(!0)):(_.tI(l,2),k.message="Error occurred while loading the latest set of apps.",_.x(k.tg,21,"Error occurred while loading the latest set of apps."));c.error=k;d.reject(k)});return this.O};RJc.prototype.wa=function(){return!1};
RJc.prototype.Ba=function(a){var b=this,c=a.getCommand(),d=c.request,e=c.Nka,f=c.bE?{bE:c.bE}:void 0;if(!UJc(d))return this.context.Mm().then(function(l){return l.Qe(d,f)}).then(function(l){a.Ee.callback(new _.mK(l,1,!1))},function(l){a.Ee.Gd(_.NI(l))}),_.Ph(void 0);c=_.Ph();var h=!1;this.O?VJc(this,d.getType())?e=this.O:c=e=new _.Oh(function(l,p){b.O.then(function(){b.refresh(d,f).then(function(){return l()},p)})}):!e&&this.ta&&VJc(this,d.getType())&&!this.error?(h=!0,e=_.Ph()):e=this.refresh(d,
f);var k=a.Ee;e.then(function(){var l=b.context.P_;k.callback(new _.mK(l.jt(),l.We(),h))},function(l){k.Gd(l)});return c.then()};
var UJc=function(a){var b=a.getType();return 1===b||2===b||4===b?(b=_.re(a,4),a=_.re(a,3),!(b&&b.length)&&!(a&&a.length)):!1},VJc=function(a,b){return a.H===b||4===a.H||2===a.H&&1===b},TJc=function(a){a.O=null;var b=a.context.Xc.Tf(),c=new _.Lf;_.Mf(c,306);var d=new _.oJ;_.x(d,1,1);_.Mrc(d,c);a.ma=_.n.setTimeout(function(){return void a.refresh(d)},Math.ceil(_.xj(b,7,9E5)*Math.random())+_.xj(b,4,72E5))},WJc=function(a,b,c){this.V=a;this.H=!!b;this.O=c||null};
_.Pf.Object.defineProperties(WJc.prototype,{request:{configurable:!0,enumerable:!0,get:function(){return this.V}},Nka:{configurable:!0,enumerable:!0,get:function(){return this.H}},bE:{configurable:!0,enumerable:!0,get:function(){return this.O}}});
var YJc=function(a){GM.call(this);var b=this;this.context=a;this.error=null;this.Oc=new _.nf(this);this.Ja(this.Oc);this.Oc.listen(this.context.FE,"WPi0i",function(){return b.dispatchEvent(new _.hi("WPi0i"))});this.H=_.Sh();this.O=_.re(this.context.Xc.Tf(),30);XJc(this)};_.K(YJc,GM);
var XJc=function(a){var b=a.context.Oj;NL(b,["rkYxSd"],function(){return a.initialize()});NL(b,["px2C2c"],function(){a.context.Be().info("drive.ds.sync.userprefs.UserPrefsManager","All user prefs loaded.");a.H.resolve();a.H=null});var c=["NSockf"],d=_.ij(a.context.Xc.Tf(),19,1);1!==d&&(c.push("OZvrNc"),2===d&&NL(b,["mrK8ic"],function(){OL(b,"OZvrNc")}));!_.R(a.context.Xc,11,!1)&&_.R(a.context.Xc,24,!1)&&(c.push("DEJoH"),_.n.setTimeout(function(){0<_.yb(RIc(a.context.FE),_.Ro,1).length||(b.H("NSockf")?
OL(b,"DEJoH"):NL(b,["NSockf"],function(){OL(b,"DEJoH")}))},12E3));NL(b,c,function(){if(!b.H("px2C2c")){var e=new _.Lf;_.Nf(e,!0);_.Mf(e,301);var f=new _.nD;_.G(f,1,e);voc(f,ZJc(a));a.query(f).then(null,function(){a.initialize()})}})};YJc.prototype.V=function(){var a="User prefs detected: "+_.yb(RIc(this.context.FE),_.Ro,1).length;this.context.Be().info("drive.ds.sync.userprefs.UserPrefsManager",a);$Jc(this)};
YJc.prototype.query=function(a,b){var c=this,d=b?{bE:b}:void 0;return this.context.Mm().then(function(e){return e.Qe(a,d)}).then(function(e){c.error=null;var f=c.context.FE;f.SQ(_.yb(e,_.Ro,3),f.yH()?6:1,_.re(a,3))}).then(null,function(e){e=_.xd(e);_.x(e.tg,5,4);0<c.commands.$b()||c.context.HJ(e.tg);c.error=e;throw e;})};
YJc.prototype.ka=function(a){var b=this,c=a.getCommand(),d=a.Ee,e=new Set([].concat(_.fc(this.context.FE.hG.keys()))),f=_.re(c.request,3);f.find(function(h){return!e.has(h)})&&(c.Nka=!0);this.error?d.Gd(this.error):c.Nka?(voc(c.request,ZJc(this,f)),(this.H?this.H.promise:this.query(c.request,c.bE||void 0)).then(function(){b.getData(d,f,!1)},function(){b.getData(d,f,!1)})):this.getData(d,f,!0)};
var ZJc=function(a,b){b=void 0===b?[]:b;a=new Set([].concat(_.fc(a.O),_.fc([].concat(_.fc(a.context.FE.hG.keys()))),_.fc(b)));return[].concat(_.fc(a.values()))};YJc.prototype.getData=function(a,b,c){b=this.context.FE.rH(b);a.callback(new _.oK(b.H,b.Pe,c))};
var $Jc=function(a){var b=a.context.Xc.Tf();_.n.setTimeout(function(){var c=new _.nD,d=new _.Lf;_.Mf(d,306);_.G(c,1,d);voc(c,ZJc(a));a.query(c).then(null,_.cg).then(function(){$Jc(a)},function(){$Jc(a)})},Math.ceil(_.xj(b,7,9E5)*Math.random())+_.xj(b,5,72E5))},aKc=function(a,b,c){this.request=a;this.Nka=!!b;this.bE=c||null};
var bKc=function(a,b,c,d){FM.call(this,"IS",b);this.context=a;this.Oc=new _.nf(this);this.Ba=_.Sh();this.O=null;this.ha=!1;this.W=null;this.Fa=new JCc(a);uoc(this.Fa);this.Ja(this.Oc);this.ka=new NJc(a);this.Ja(this.ka);this.Oc.listen(this.ka,"WPi0i",function(){return c(new jCc(1))});this.ma=new RJc(a);this.Ja(this.ma);this.Oc.listen(this.ma,"Hb",function(){return c(new jCc(2))});this.ta=new YJc(a);this.Ja(this.ta);this.Oc.listen(this.ta,"WPi0i",function(){return c(new jCc(4))});this.Ia=d;this.H=
this.context.Mm()};_.K(bKc,FM);_.g=bKc.prototype;
_.g.BV=function(){var a={};return a["3.43"]=this.y0.bind(this),a["3.42"]=this.T8.bind(this),a["3.1"]=this.RN.bind(this),a["3.2"]=this.rH.bind(this),a["3.3"]=this.ad.bind(this),a["3.35"]=this.uO.bind(this),a["3.4"]=this.YC.bind(this),a["3.5"]=this.jt.bind(this),a["3.6"]=this.TS.bind(this),a["3.8"]=this.Ll.bind(this),a["3.36"]=this.nz.bind(this),a["3.9"]=this.IF.bind(this),a["3.10"]=this.yr.bind(this),a["3.11"]=this.iba.bind(this),a["3.12"]=this.x9.bind(this),a["3.13"]=this.WT.bind(this),a["3.14"]=
this.gba.bind(this),a["3.15"]=this.z9.bind(this),a["3.16"]=this.Cu.bind(this),a["3.17"]=this.iHb.bind(this),a["3.18"]=this.mHb.bind(this),a["3.19"]=this.YQ.bind(this),a["3.20"]=this.kHb.bind(this),a["3.25"]=this.jHb.bind(this),a["3.22"]=this.y9.bind(this),a["3.28"]=this.sync.bind(this),a["3.30"]=this.npa.bind(this),a["3.29"]=this.gBb.bind(this),a["3.40"]=this.oHb.bind(this),a["3.33"]=this.pHb.bind(this),a["3.39"]=this.FP.bind(this),a["3.37"]=this.nHb.bind(this),a["3.38"]=this.ndb.bind(this),a["3.41"]=
this.WS.bind(this),a["3.44"]=this.Z0.bind(this),a["3.45"]=this.Do.bind(this),a["3.46"]=this.U8.bind(this),a};_.g.RN=function(a){var b=this,c=TK(a.args[0],!!a.H,_.PH);a=new PJc(c,a.args[1],this.context.H[a.clientId]);OL(this.context.Oj,"iuEtc");return this.ka.enqueue(a).then(function(d){return b.Zc([d.response,d.Pe,d.O0])},function(d){return b.Zc(void 0,d)})};
_.g.rH=function(a){var b=this,c=TK(a.args[0],!!a.H,_.nD);a=new aKc(c,a.args[1],this.context.H[a.clientId]);OL(this.context.Oj,"OZvrNc");return this.ta.enqueue(a).then(function(d){return b.Zc([d.response,d.Pe,d.O0])},function(d){return b.Zc(void 0,d)})};
_.g.ad=function(a){var b=this,c=TK(a.args[0],!!a.H,Rnc),d=_.Aj(c,_.PI,16,QK)||_.Aj(c,_.QI,1,QK)||_.Aj(c,_.RI,2,QK)||_.Aj(c,_.UI,3,QK)||_.Aj(c,_.tK,4,QK)||_.Aj(c,_.SI,5,QK)||_.Aj(c,_.YI,6,QK)||_.Aj(c,_.$I,7,QK)||_.Aj(c,_.aJ,8,QK)||_.Aj(c,_.dJ,9,QK)||_.Aj(c,_.rJ,18,QK)||_.Aj(c,_.vJ,10,QK)||_.Aj(c,_.wJ,11,QK)||_.Aj(c,_.xJ,12,QK)||_.Aj(c,_.xI,13,QK)||_.Aj(c,_.AJ,14,QK)||_.Aj(c,_.BJ,15,QK)||_.Aj(c,RK,17,QK),e=HM(this,a);return this.H.then(function(f){return f.Qe(d,e)}).then(function(f){return b.Zc([f])},
function(f){return b.Zc(void 0,f)})};_.g.uO=function(a){var b=this,c=TK(a.args[0],!!a.H,$nc),d=_.Aj(c,_.VI,1,aoc)||_.Aj(c,_.bJ,2,aoc)||_.Aj(c,_.CJ,3,aoc),e=HM(this,a);return this.H.then(function(f){return f.Qe(d,e)}).then(function(f){return b.Zc([f])},function(f){return b.Zc(void 0,f)})};
_.g.YC=function(a){var b=this,c=TK(a.args[0],!!a.H,Unc),d=HM(this,a),e=[],f=[];Wnc(c).forEach(function(h){h instanceof _.PI?e.push(String(h.qc())):e.push(String(h.getId()));f.push(b.H.then(function(k){return k.Qe(h,d)}))});a=_.jI(f).then(function(h){return h.map(function(k){return k.value||k.reason})});_.Th(a,function(){return void qFc(b.context.Jf)});return a.then(function(h){return b.Zc([new Gnc(e,h)])})};
_.g.jt=function(a){var b=this,c=TK(a.args[0],!!a.H,_.oJ),d=a.args[1];if(3===c.getType())if(!d&&this.W)a=this.W;else{var e=HM(this,a);a=this.H.then(function(f){return f.Qe(c,e)}).then(function(f){return new _.mK(f,1,!1)});this.W||(this.W=a.then(function(f){return new _.mK(f.response,f.Pe,!0)}),setTimeout(function(){b.W=null},9E5))}else a=new WJc(c,d,this.context.H[a.clientId]),OL(this.context.Oj,"Qubz4b"),a=this.ma.enqueue(a);return a.then(function(f){return b.Zc([f.response,f.Pe,f.O0])},function(f){return b.Zc(void 0,
f)})};_.g.TS=function(a){var b=this,c=TK(a.args[0],!!a.H,Xnc),d=_.Aj(c,_.oD,1,Ync)||_.Aj(c,_.pD,2,Ync),e=HM(this,a);return this.H.then(function(f){return f.Qe(d,e)}).then(function(f){return b.Zc([f])},function(f){return b.Zc(void 0,f)})};_.g.Ll=function(a){a=a.args[0];if(this.context.Cz)a?_.$jc(this.context.Cz,!0):this.context.xk().Me()&&this.context.Cz.NM(!0).then(null,function(){});else try{this.context.Ij().Ll(a)}catch(b){return this.Zc(void 0,b)}return this.Zc([])};
_.g.nz=function(a){var b=this,c=a.args[0];return this.context.nz(c).then(function(d){return d?(b.context.Ij().nz(c),b.Ia(c),b.context.Us.HL().then(null,function(){return!c})):_.Ph(!c)}).then(function(d){return b.Zc([d])},function(d){return b.Zc(void 0,d)})};
_.g.sync=function(){var a=this;return _.Rh([this.context.eba.promise,this.context.Gga.promise]).then(function(){return xM(a.context).then()}).then(function(b){return new _.Oh(function(c,d){b.sync().then(function(){return c()},function(e){return d(e)})})}).then(function(){return a.context.Us.HL()}).then(function(){return a.Zc([])},function(b){return a.Zc(void 0,b)})};_.g.IF=function(){try{var a=this.context.m7;a&&a.Tpa();this.context.qia.IF();return this.Zc([])}catch(b){return this.Zc(void 0,b)}};
_.g.WS=function(){this.context.WS();return this.Zc([])};_.g.yr=function(a){var b=this,c=TK(a.args[0],!!a.H,_.gJ),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.iba=function(a){var b=this,c=TK(a.args[0],!!a.H,_.hJ),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};
_.g.x9=function(a){var b=this,c=TK(a.args[0],!!a.H,_.WI),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.WT=function(a){var b=this,c=TK(a.args[0],!!a.H,_.yJ),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};
_.g.gba=function(a){var b=this,c=TK(a.args[0],!!a.H,_.iJ),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return _.mI(b.context.Xc)?Kxc(b.context.Jf.Lq,[_.y(e,_.mk,2)],c.qc()).then(function(){return e}):e}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.z9=function(a){var b=this,c=TK(a.args[0],!!a.H,_.ZI),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};
_.g.Cu=function(a){var b=this,c=TK(a.args[0],!!a.H,_.qJ),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d).then(function(f){return _.mI(b.context.Xc)?Ixc(b.context.Jf.Lq,f):f})}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.iHb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.uAc),d=new _.Xgc(c,a.args[1],a.args[2]||void 0),e=HM(this,a);return this.H.then(function(f){return f.Qe(d,e)}).then(function(f){return b.Zc([f])},function(f){return b.Zc(void 0,f)})};
_.g.mHb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.pJ),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d).then(function(f){return _.mI(b.context.Xc)?Kxc(b.context.Jf.Lq,f.Zc().EN(),c.jd().getId()).then(function(){return f}):f})}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.YQ=function(){var a=this;return(_.R(this.context.Xc.Tf(),52,!1)?_.Ph(Zvc(new Yvc,0)):this.context.ZI.YQ()).then(function(b){return a.Zc([b])},function(b){return a.Zc(void 0,b)})};
_.g.kHb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.Wgc),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.jHb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.mJ),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};
_.g.y9=function(a){var b=this,c=TK(a.args[0],!!a.H,_.XI),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.npa=function(a){var b=this,c=TK(a.args[0],!!a.H,_.EI),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e,null])},function(e){return b.Zc([null,_.vI(e)])})};_.g.gBb=function(){return this.Zc([!0])};
_.g.oHb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.eG),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.pHb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.$z),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.y0=function(a){a=TK(a.args[0],!!a.H,_.Af);EEc(this.context.Jf,[a]);return this.Zc([])};
_.g.T8=function(a){var b=this,c=TK(a.args[0],!!a.H,_.TI),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.FP=function(a){var b=this,c=TK(a.args[0],!!a.H,_.nM),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return Uxc(c,e)}).then(function(e){return b.Zc(e)},function(e){return b.Zc(void 0,e)})};
_.g.nHb=function(a){var b=this,c=new _.dhc(TK(a.args[0],!!a.H,_.XVb),a.args[1]),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e.response,e.pageToken])},function(e){return b.Zc(void 0,e)})};_.g.ndb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.$F),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};
_.g.Z0=function(a){var b=this,c=TK(a.args[0],!!a.H,_.gK),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.Do=function(a){var b=a.args.map(function(c){return TK(c,!!a.H,_.qI)});this.context.Jf.Do(b);qFc(this.context.Jf);return this.Zc([])};_.g.U8=function(){var a=this,b=this.context.Cz;return(b?b.NM():_.Ph(_.Pjc(0))).then(function(c){return a.Zc([c])},function(c){return a.Zc(void 0,c)})};
_.g.initialize=function(){var a=this;if(!this.O){this.O=_.Sh();this.context.Be().info("drive.ds.sync.cacheproxy.WorkerSyncedItemService","Initializing with client build: "+this.context.Xc.Ki());this.Oc.listen(this.context,_.bd,function(e){e=e.error;var f=e.tg;f&&3===f.getType()&&!a.ha?(a.ha=!0,a.O.reject(e)):Lrc(a.context.Be(),"drive.ds.sync.cacheproxy.WorkerSyncedItemService","An error occurred in the Shared Worker")});var b=this.context.Oj,c=["hVFf7"];_.XJ(this.context.Xc)&&c.push("BNEDtc");NL(b,
c,function(){a.ha||(a.ha=!0,a.O.resolve())});NL(b,["GZTDpc"],function(){return a.Ba.resolve()});var d=function(){xM(a.context).then(function(e){return void e.start()})};NL(b,["T8oKm",_.VJ(this.context.Xc)?"BNEDtc":"ZA9qG"],function(){return void d()});NL(b,["T8oKm","mrK8ic"],function(){return void d()});b.start();OL(b,"NSockf")}return this.O.promise};_.g.yca=function(){return this.Ba.promise};_.g.Lt=function(){var a=this.context.m7;a&&a.dispose();return this.context.Lt()};
var HM=function(a,b){return(a=a.context.H[b.clientId])?{bE:a}:{}};
var cKc=function(a,b,c){FM.call(this,"DU",b);this.context=a;this.O=c;this.H=new JCc(a)};_.K(cKc,FM);_.g=cKc.prototype;
_.g.BV=function(){var a=this,b={};return b["5.1"]=function(){return a.lja()},b["5.2"]=function(c){return a.mN(c)},b["5.4"]=function(c){return a.Zz(c)},b["5.5"]=function(){return a.ZR()},b["5.10"]=function(){return a.LN()},b["5.6"]=function(){return a.oea()},b["5.7"]=function(){return a.KT()},b["5.9"]=function(c){return a.tra(c)},b["5.8"]=function(c){return a.Y5(c)},b["5.11"]=function(){return a.Oqa()},b["5.12"]=function(c){return a.getState(c)},b["5.13"]=function(c){return a.Ll(c)},b};
_.g.lja=function(){var a=this;this.context.Us.dT();var b=this.context.Xc;return Uzc(_.UJ(_.fI(b)),_.WJ(b),this.context.Be()).then(null,function(){}).then(function(){return a.Zc([])})};_.g.mN=function(a){a=this.context.Jf.bm.H(a.args[0]);return this.Zc([a])};_.g.Zz=function(a){var b=this;return this.context.kB.Zz(a.args[0]).then(function(c){return b.Zc([c])})};_.g.ZR=function(){return this.Zc(this.context.kB.ZR())};
_.g.Y5=function(a){var b=this,c=TK(a.args[0],!!a.H,_.tfc),d=a.args[1],e=a.args[2];if(_.Aj(c,_.nI,3,_.oI)||_.Aj(c,_.EJ,4,_.oI)||_.Aj(c,_.tK,5,_.oI)||_.Aj(c,_.BJ,6,_.oI)||_.Aj(c,_.aJ,7,_.oI)||_.Aj(c,_.UI,8,_.oI)||_.Aj(c,_.YI,9,_.oI)||_.Aj(c,_.xI,10,_.oI)){var f=gwc(c);return this.context.Mm().then(function(h){return h.Qe(f,{S9a:d,T9a:e})}).then(function(h){a:{var k=[],l="";if(h instanceof _.uK){k=h.Zc().Bd();var p=_.z(h,2);l=h.Zn()}else if(h instanceof _.GJ)h.getItem()&&k.push(h.getItem()),p=h.tN();
else{h=b.Zc(void 0,Error("xg"));break a}h=b.Zc([p,l].concat(_.fc(k)))}return h},function(h){return b.Zc(void 0,h)})}return _.Ph(this.Zc(void 0,Error("wg")))};_.g.tra=function(){var a=this.context.Xc,b=a.Tf();a="email:"+_.fI(a).getEmail().replace(/@.*$/,"");_.x(b,13,a);return this.Zc([])};_.g.oea=function(){this.context.tG.H=new Jyc(_.ih().substring(0,8));return this.Zc([])};
_.g.KT=function(){var a=this.context.tG.LN();if(a){var b=Lyc(this.context.tG);a=[a.H,a.startTime].concat(_.fc(b))}else a=[];b=this.context.tG;b.H=null;b.yZ=[];return this.Zc(a)};_.g.LN=function(){var a=this.context.tG.LN();return this.Zc(a?[a.H,a.startTime]:[])};_.g.getState=function(){var a=this;return this.H.getState(this.wa).then(function(b){return a.Zc([b])})};_.g.Oqa=function(){var a=[this.O.Lt(),_.ui(3E4)];_.Th(_.Gka(a),function(){_.n.setTimeout(function(){self.close()})});return this.Zc([])};
_.g.Ll=function(a){this.H.Ll(a.args[0]);return this.Zc([])};
var dKc=function(a,b,c,d,e,f,h){_.HK.call(this,a,b,c,d,f,h);this.H=e;this.Xf=null};_.K(dKc,_.HK);dKc.prototype.WM=function(a,b){var c=this;return _.$h(this.H.then(function(d){return d.e6a(Xmc(c.O,c.Ba,a,b,c.aj,c.ka))},null))};dKc.prototype.ta=function(a,b){var c=this.jd(a);if(c){var d=0;if(c.file){var e=c.request&&c.request.Zz();e&&(d=_.z(e,1));0===d&&(d=c.file.size)}this.dispatchEvent(new _.ukc(a,b,d))}};
var eKc=function(a,b,c,d,e,f,h,k){FM.call(this,"FU",k);this.ka=a;this.ha=b;this.ta=c;this.Ba=d;this.W=e;this.ma=f;this.Xf=h;this.H={};this.O={};this.Oc=new _.nf(this);this.Ja(this.Oc)};_.K(eKc,FM);_.g=eKc.prototype;
_.g.BV=function(){var a=this,b={};return b["7.1"]=function(c){return a.upload(c)},b["7.2"]=function(c){return a.cancel(c)},b["7.3"]=function(c){return a.IG(c)},b["7.4"]=function(c){return a.retry(c)},b["7.5"]=function(c){return a.WM(c)},b["7.6"]=function(c){c=c.clientId+":"+c.requestId;a.H[c]&&(a.H[c].dispose(),delete a.H[c]);return a.Zc([])},b["7.7"]=function(c){c=c.args;var d=c[0];a.O[d].resolve(null!=c[1]?c[1]:null);delete a.O[d];return a.Zc([])},b};
_.g.upload=function(a){var b=this,c=a.clientId+":"+a.requestId,d=TK(a.args[0],!!a.H,_.UI),e=a.args[1];if(!this.H[c]){var f=new dKc(this.ka,this.ha,this.ta,this.Ba,this.W,this.ma,this.Xf);this.Oc.listen(f,"Cb",_.Ob(this.odb,a.clientId,a.requestId));this.Ja(f);this.H[c]=f}return this.H[c].upload(d,e,void 0,function(h,k){var l=a.clientId,p=a.requestId,q=d.mj(),r=_.Sh();b.O[q]=r;b.update(l,p,fKc(3,q,[h,k]));return r.promise}).then(function(h){return b.Zc([h])},function(h){return b.Zc(void 0,h)})};
_.g.cancel=function(a){var b=a.clientId+":"+a.requestId;this.H[b]&&this.H[b].cancel(a.args[0]);return this.Zc([])};_.g.IG=function(a){a=a.clientId+":"+a.requestId;this.H[a]&&this.H[a].IG();return this.Zc([])};
_.g.retry=function(a){var b=this,c=a.requestId,d=a.clientId+":"+c;if(this.H[d]){var e=a.args[0],f=a.args.slice(1),h=this.H[d].retry(f),k={},l=0;_.Ma(f,function(p){k[p]=h[l++]});_.Ta(k,function(p,q){p.dg(function(r){b.update(a.clientId,c,fKc(0,e,[q,r]))},function(r){b.update(a.clientId,c,fKc(1,e,[q,r.tg]))})});return this.Zc([])}return this.Zc(void 0,_.vI("Could not retry upload."))};
_.g.WM=function(a){var b=a.clientId+":"+a.requestId,c=a.args[0];a=a.args.slice(1);return this.H[b]?(b=this.H[b],c=Xmc(b.O,b.Ba,c,a,b.aj,b.ka),this.Zc([coc(c)])):this.Zc(void 0,_.vI("FileUploader not found."))};_.g.odb=function(a,b,c){this.update(a,b,fKc(2,c.requestId,[c.progress,c.totalBytes]))};var fKc=function(a,b,c){return[Number(a),b].concat(_.fc(c))};
var gKc=function(a,b){FM.call(this,"IE",b);this.O=a;this.H=new Map};_.K(gKc,FM);gKc.prototype.BV=function(){var a=this,b={};return b["9.1"]=function(c){return a.export(c)},b["9.2"]=function(c){return a.cancel(c)},b};
gKc.prototype.export=function(a){var b=this,c=a.requestId,d=a.clientId+":"+c,e=TK(a.args[0],!!a.H,_.Vgc);e=new sM(this.O,e);var f=_.cf(e,"Gb",function(h){b.update(a.clientId,c,[h.percentDone,h.Mva])});_.ef(e,function(){_.oi(f);b.H.delete(d)});this.H.set(d,e);return e.start().then(function(h){return b.Zc([h])},function(h){return b.Zc(void 0,h)})};gKc.prototype.cancel=function(a){(a=this.H.get(a.clientId+":"+a.requestId))&&a.cancel();return this.Zc([])};
var hKc=function(a,b){FM.call(this,"ODS",b);this.context=a;this.H=!1;this.W=_.Sh();this.O=new OCc(a,a.Bg)};_.K(hKc,FM);hKc.prototype.BV=function(){var a=this,b={};return b["6.1"]=function(c){return iKc(a,c)},b["6.2"]=function(c){return jKc(a,c)},b["6.3"]=function(){a.H&&(RCc(a.O),a.H=!1,a.W=_.Sh());return a.Zc([])},b};
var iKc=function(a,b){if(!a.H){a.H=!0;var c=b.args.map(function(d){return TK(d,!!b.H,_.Bk)});a.O.$k(c);OL(a.context.Oj,"GZTDpc");a.W.resolve()}return a.Zc([])},jKc=function(a,b){return a.W.promise.then(function(){var c=b.args.map(function(d){return TK(d,!!b.H,_.qI)});QCc(a.O,c);return a.Zc([])})};
var kKc=function(){var a=this;this.services=new Map;"IS LRM DU ODS FU IE TM".split(" ").forEach(function(b){if(a.services.has(b))throw Error("Zg`"+b);a.services.set(b,new _.Uh)})};kKc.prototype.activate=function(a){var b=this.services.get(a.V);if(b&&!b.Wf())b.callback(a);else throw Error("$g`"+a.V);};var lKc=function(a,b){a=_.m(a.services);for(var c=a.next();!c.done;c=a.next())c=_.m(c.value),c.next(),c.next().value.addCallback(function(d){d.registerService(b)})};kKc.prototype.Ho=function(){return[].concat(_.fc(this.services.values())).every(function(a){return a.Wf()})};
var mKc=function(){},nKc={0:2E3,1:3E3,2:5E3},oKc=function(a,b){this.request=a;this.ha=b;this.O=_.Sh();this.continuationToken="";this.V=0;this.ZE=this.W=!1;this.H=mKc};oKc.prototype.nh=function(a){var b=this;this.W||(this.W=!0,this.sendRequest());a&&(this.H=a);return this.O.promise.then(function(c){b.H=mKc;b.V=0;return c},function(c){b.H=mKc;b.V=0;return Promise.reject(c)})};
oKc.prototype.sendRequest=function(){var a=this;if(this.ZE)this.O.resolve((new UK).Dc(8));else{var b=new _.hhc(this.request,this.continuationToken);this.ha.then(function(c){return c.Qe(b)}).then(function(c){pKc(a,c)},function(c){a.handleError(c)})}};var pKc=function(a,b){var c;a.continuationToken=null!==(c=b.Zn())&&void 0!==c?c:"";a.H(b);a.continuationToken?setTimeout(function(){a.sendRequest()},qKc(a.V++,a.ka)):a.O.resolve(b)};oKc.prototype.handleError=function(a){a=_.xd(a);this.O.reject(a)};
oKc.prototype.cancel=function(){this.ZE=!0};var qKc=function(a,b){return b?b:(a=nKc[a])?a:1E4};
var rKc=function(a,b){FM.call(this,"TM",b);this.O=a;this.H=new Map};_.K(rKc,FM);rKc.prototype.BV=function(){var a=this,b={};return b["10.1"]=function(c){return sKc(a,c)},b["10.2"]=function(c){return a.cancel(c)},b};
var sKc=function(a,b){var c=b.clientId+":"+b.requestId,d=TK(b.args[0],!!b.H,_.TBc);d=new oKc(d,a.O);a.H.set(c,d);d=d.nh(function(e){var f;a.update(b.clientId,null!==(f=b.requestId)&&void 0!==f?f:"",[e])}).then(function(e){return a.Zc([e])},function(e){return a.Zc(void 0,e)});d.then(function(){a.H.delete(c)},function(){a.H.delete(c)});return d};rKc.prototype.cancel=function(a){this.H.get(a.clientId+":"+a.requestId).cancel();return this.Zc([])};
var IM=function(a,b,c){_.P.call(this);this.H=a;this.Nw=b;this.kb=c;this.fields=null;this.Ia=!1;this.Ka=_.Sh();this.W=!1;this.Ba=_.Sh();this.O=_.Sh();this.ta=null;this.wa=this.Ua=!1;this.yb=_.Sh();this.ha=new Set;this.Fa=new Set;this.V=new Map;this.ma=new Set;this.rz=Date.now();this.services=new kKc;this.Jb=new _.nf(this);this.Ja(this.Jb)};_.K(IM,_.P);IM.prototype.fZ=function(a){this.O.promise.then(function(b){b.m7||a.NPa(b)})};
var wKc=function(a,b){var c=CJc(a.H,b),d=a.Qb.bind(a,c);DL(b,"8.1",d);b.registerService("8.1",d);DL(b,"8.4",a.Pa.bind(a,c));b.registerService("8.5",function(f){return tKc(a,c,f)});DL(b,"8.2",a.Gb.bind(a,c));DL(b,"8.3",a.Kb.bind(a,c));lKc(a.services,b);b.start();uKc(a,c,b);a.ka(c,b);var e=[];a.ta||(a.ta=_.Rh([a.Ka.promise,a.Ba.promise]).then(function(f){return a.initialize(f)}));e.push(a.ta);_.Rh(e).then(function(){return void vKc(a,c,b)},function(f){a.Ua=!0;EL(b,"2.2",{err:_.vI(f).Hc()},d)})},xKc=
function(a){return Math.floor((Date.now()-a.rz)/1E3)},yKc=function(a,b,c){var d=function(e){EL(b,"2.8",{au:"fb"===e.type})};a.Jb.listen(c.ZI,["fb","gb"],d);_.ef(b,function(){return a.Jb.Uc(c.ZI,["fb","gb"],d)})},zKc=function(a,b,c){var d=c.xk(),e=[].concat(_.fc(Object.values(_.VB))),f=function(h){EL(b,"2.19",{cs:h.H})};a.Jb.listen(d,e,f);_.ef(b,function(){a.Jb.Uc(d,e,f)})};
IM.prototype.Qb=function(a){var b=DJc(this.H,a);if(b&&((this.services.services.get("LRM")||null).addCallback(function(d){GJc(d,a)}),b.dispose(),this.log((0,_.Ws)("Client %d disconnected (num clients remaining: %d)",a,_.Xa(this.H.channels))),0===_.Xa(this.H.channels))){var c=function(){_.n.setTimeout(function(){self.close()})};this.Ua?c():(this.services.services.get("IS")||null).addCallback(function(d){d.Lt().then(c,c)})}};
IM.prototype.Pa=function(a,b){if(this.ha.has(a))return _.Ph();var c=new _.Qc(JSON.parse(b.dsc));_.x(c,24,!1);this.Ia||(this.Ia=!0,this.Ka.resolve(c));this.ha.add(a);return this.O.promise.then(function(d){xJc(d,a,_.C(c.Tf(),37,""));d.Jf.Xma(_.yb(c,_.el,91));return d.wY.promise.then(function(){EEc(d.Jf,_.yb(c,_.Af,44))})},function(){})};
IM.prototype.Gb=function(a,b){var c=this;if(!this.ma.has(a)){this.ma.add(a);var d=b.ivd;d&&this.O.promise.then(function(e){e=new GDc(e,e.Bg);e.nh(d);e.dispose();(e=c.H.channels[a]||null)&&EL(e,"2.16")})}};IM.prototype.Kb=function(a,b){var c=this;this.V.has(a)||this.V.set(a,new Set);var d=this.V.get(a),e=b.dsp;if(e){var f=[];for(b=0;b<e.length;b++)e[b]&&(d.has(b)?e[b]=void 0:(f.push(b),d.add(b)));f.length&&this.O.promise.then(function(h){AKc(new lEc(h),e);(h=c.H.channels[a]||null)&&EL(h,"2.17",{t:f})})}};
var AKc=function(a,b){b=b.filter(function(d){return void 0!==d});if(b.length){b=_.m(b);for(var c=b.next();!c.done;c=b.next())a.nh(c.value);a.dispose()}};IM.prototype.$a=function(){for(var a=[],b={},c=_.m(_.Ya(this.H.channels)),d=c.next();!d.done;b={sfa:b.sfa,Xfa:b.Xfa},d=c.next())b.sfa=d.value,b.Xfa=_.Sh(),EL(b.sfa,"2.12",void 0,function(e){return function(){e.sfa.dispose();e.Xfa.resolve()}}(b)),a.push(b.Xfa.promise);return _.Rh(a).then()};
IM.prototype.initialize=function(a){var b=this;a=a[0];_.hic(a,this.fields);var c=a.dH();c=c&&_.R(c,1,!1)?this.kb:void 0;try{var d=new WK(null,a,this.Nw,c,void 0,void 0),e=d.kk().H(106E3);eJc(d,this.$a.bind(this));this.Jb.listen(d.Ij(),"rb",function(k){k={os:k.Me()};for(var l=_.m(_.Ya(b.H.channels)),p=l.next();!p.done;p=l.next())EL(p.value,"2.6",k)});this.Jb.listen(d,_.bd,this.ob);this.Jb.listen(d,"w8KrJc",this.jc);dwc(d.ZI,this.ka.bind(this));var f=d.Cz;f&&Zrc(f,function(){return b.ka()});this.O.resolve(d);
var h=BKc(this,d,new bKc(d,this.H,function(k){k={dt:k.dataType};for(var l=_.m(_.Ya(b.H.channels)),p=l.next();!p.done;p=l.next())EL(p.value,"2.15",k)},function(k){return CKc(b,k)}));e&&h.then(function(){return e&&e.Bj()});return h}catch(k){return _.Qh(k)}};
var BKc=function(a,b,c){a.services.activate(c);a.services.activate(new EJc(b,a.H));a.services.activate(new cKc(b,a.H,c));a.services.activate(new hKc(b,a.H));a.services.activate(new eKc(b.Xc,b.kB,b.YR().Fga,b.Mm(),b.RQ,b.Be(),b.kk(),a.H));a.services.activate(new gKc(b.Mm(),a.H));a.services.activate(new rKc(b.Mm(),a.H));return c.initialize()},vKc=function(a,b,c){var d=_.Xa(a.H.channels);a.log((0,_.Ws)("Client %d connected (num clients: %d, added: %d, max concurrent: %d)",b,d,a.H.O,a.H.H));EL(c,"2.2",
{id:b,clients:d,uptimeSec:xKc(a),dsp:!a.V.has(b),ivd:!a.ma.has(b)});a.O.promise.then(function(e){e.O_.addCallback(function(f){c.isDisposed()||EL(c,"2.5",{id:f})});1<d&&xM(e).addCallback(function(f){return f.nya()});(a.services.services.get("IS")||null).addCallback(function(f){f.yca().then(function(){c.isDisposed()||EL(c,"2.14")})});yKc(a,c,e);zKc(a,c,e)})},CKc=function(a,b){var c={oois:b};_.Ya(a.H.channels).forEach(function(d){EL(d,"2.18",c)})};
IM.prototype.ob=function(a){a={p:a.error.tg.Hc()};for(var b=_.m(_.Ya(this.H.channels)),c=b.next();!c.done;c=b.next())EL(c.value,"2.10",a)};IM.prototype.jc=function(){for(var a=_.m(_.Ya(this.H.channels)),b=a.next();!b.done;b=a.next())EL(b.value,"2.7")};var uKc=function(a,b,c){a.ha.has(b)?_.Ph():new _.Oh(function(d){EL(c,"2.1",void 0,function(e){d(a.Pa(b,e))})})};
IM.prototype.ka=function(a,b){var c=this;if("number"===typeof a){if(!b)return _.Qh(Error("ah"));if(this.W&&this.Fa.has(a))return _.Ph(void 0)}b=b||_.Ya(this.H.channels)[0];if(!b)return _.Qh(Error("bh"));var d=_.Sh();b.send("1.1",void 0,function(e){tKc(c,a,e);d.resolve()});return d.promise};var tKc=function(a,b,c){_.Ta(c.ac,function(d,e){_.n[e]=d});"number"===typeof b&&a.Fa.add(b);a.W||(c.bl&&!a.wa&&(a.wa=!0,a.yb.resolve(c.bl)),a.fields||(a.fields=c.ufds),a.W=!0,a.Ba.resolve())};
IM.prototype.log=function(a){this.O.promise.then(function(b){return b.Be().info("drive.ds.sync.cacheproxy.Worker",a)})};
var DKc=function(a,b){EM.call(this,"DU","drive.ds.sync.DebugUtilProxy",a);this.context=b;this.H=null};_.K(DKc,EM);_.g=DKc.prototype;_.g.La=function(){return this.context.Xc.dH()};_.g.getContext=function(){return this.context};_.g.Zz=function(){return _.$h(this.send("5.4",[this.H],function(a,b){return TK(a[0],b,_.Tic)}))};_.g.Be=function(){return this.context.Be()};_.g.mN=function(a){return _.$h(this.send("5.2",[a],function(b,c){return b[0]?TK(b[0],c,_.Bk):null}))};
_.g.ZR=function(){return _.$h(this.send("5.5",[],function(a,b){return a.map(function(c){return TK(c,b,_.tfc)})}))};_.g.Y5=function(a,b,c){return _.$h(this.send("5.8",[a,b,c],function(d,e){var f=d[0],h=d[1];return{items:d.slice(2).map(function(k){return TK(k,e,_.Bk)}),Rja:f,pageToken:h}}))};_.g.tra=function(){this.send("5.9",[])};_.g.lja=function(){this.send("5.1",[])};_.g.Rka=function(){return _.cgc[_.ij(this.context.Xc.Tf(),8,0)]};_.g.oea=function(){this.send("5.6",[])};
_.g.KT=function(){return _.$h(this.send("5.7",[],function(a,b){if(0===a.length)return null;var c=a[0],d=new Date(a[1]);a=a.slice(2).map(function(e){return TK(e,b,hwc)});return{traceId:new Jyc(c,d),spanRecs:a}}))};_.g.LN=function(){return _.$h(this.send("5.10",[],function(a){return 0===a.length?null:new Jyc(a[0],new Date(a[1]))}))};_.g.getState=function(){return _.$h(this.send("5.12",[],function(a){return a[0]}))};_.g.Oqa=function(){this.send("5.11",[])};_.g.Ll=function(a){this.send("5.13",[a])};
var EKc=function(a,b){EM.call(this,"IE","drive.ds.sync.itemexport.ItemExportSessionProxy",a);this.request=b;this.promise=null;this.id=String(_.Fa(this))};_.K(EKc,EM);EKc.prototype.start=function(){var a=this;this.promise||(this.promise=this.send("9.1",[this.request],function(b,c){return TK(b[0],c,CBc)},this.id).then(),this.promise.then(function(){return a.dispose()},function(){return a.dispose()}));return this.promise};EKc.prototype.cancel=function(){this.send("9.2",[],void 0,this.id)};
EKc.prototype.Kaa=function(a,b,c){this.dispatchEvent(new kCc(c[0],c[1]))};
var FKc=function(a){EM.call(this,"ODS","drive.ds.sync.offline.DataServiceProxy",a);this.H=null};_.K(FKc,EM);FKc.prototype.iZ=function(a){var b=this;(this.H=a)?(this.log("Querying all offline items."),this.H.hW().dg(function(c){b.log("Forwarding all offline items response, count:"+c.length);b.send("6.1",c)},function(){b.log("Error fetching offline items.")}),this.H.A0(function(c){b.log("Forwarding offline items changes, count:"+c.length);b.send("6.2",c)})):this.send("6.3",[])};
var GKc=function(a,b){YL.call(this,a,b)};_.K(GKc,YL);GKc.prototype.Eja=function(a,b,c){return new _.dhc(a,c)};GKc.prototype.Rla=function(a){return a.pageToken||""};GKc.prototype.dla=function(a){return a.response.H()};GKc.prototype.k7=function(){};
var HKc=function(a,b,c){rM.call(this,a.Be(),a.Ij(),a.xk(),b.xi()||void 0);this.request=b;this.logName="drive.ds.sync.PublishedCategoriesLiveList";this.O=[];this.changed=!1;this.ma=c;this.ha=new GKc(this.request,this.ma)};_.K(HKc,rM);_.g=HKc.prototype;_.g.tH=function(){this.ha.nh().then(this.pdb.bind(this),this.handleError.bind(this))};_.g.getData=function(){return yBc(new mM,this.O).Dc(this.status)};_.g.ks=function(){return new iBc};_.g.nk=function(){return!this.Me()&&(!this.H||Wxc(this.ha))};
_.g.pdb=function(a){this.changed=this.H=!0;this.O=a;this.iu()};_.g.iu=function(){if(this.active){var a=this.status;this.eM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.hi(_.cd,this))}};_.g.$b=function(){return this.O.length};
var IKc=function(a,b,c){rM.call(this,a.Be(),a.Ij(),a.xk(),b.xi()||10);this.request=b;this.logName="drive.ds.sync.SuggestedWorkspaceItemQueryLiveList";this.O=[];this.data=[];this.changed=!1;this.ha=new _.$6a;this.suggestionSessionId=null;this.ma=c};_.K(IKc,rM);_.g=IKc.prototype;_.g.tH=function(){var a=this;this.ma(this.request).then(function(b){a.H=!0;a.changed=!0;a.data=b.Nh();a.suggestionSessionId=b.Vf();a.iu()},this.handleError.bind(this))};
_.g.getData=function(){this.O=this.data;return _.Smc(_.Rmc((new _.IK).Dc(this.status),this.data.slice(0)),this.suggestionSessionId)};_.g.ks=function(){var a=_.Hy(this.ha,this.O,this.data);this.O=this.data;var b=(new bCc).Dc(this.status);return _.mj(b,2,a)};_.g.DP=function(){};_.g.iu=function(){var a=this.status;this.eM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.hi(_.cd,this))};_.g.$b=function(){return this.data.length};
var JKc=function(){};_.g=JKc.prototype;_.g.ZM=function(a,b){b=rAc(1).setPosition(b);_.G(b,2,a);return b};_.g.XM=function(a,b){b=rAc(2).setPosition(b);_.G(b,2,a);return b};_.g.bF=function(a,b,c){b=rAc(3).oz(b).setPosition(c);_.G(b,2,a);return b};_.g.gR=function(a,b){b=rAc(4).setPosition(b);_.G(b,2,a);return b};_.g.uN=function(a){return _.y(a,_.pAc,2)};
var KKc=function(){_.Iy.call(this,new JKc,function(a){a:switch(_.Bb(a,_.hM)){case 6:a=_.Gy(_.Aj(a,_.Fy,6,_.hM)).getTime().toString();break a;case 7:var b=_.Aj(a,_.gM,7,_.hM);a=_.y(b,_.Fy,1);b=b.Iv();a=a&&b?_.Gy(b).getTime()+"--"+_.Gy(a).getTime():"";break a;default:a=""}return a})};_.K(KKc,_.Iy);var MKc=function(){LKc||(LKc=new KKc);return LKc},LKc;
var NKc=function(a,b,c,d){rM.call(this,b.Be(),b.Ij(),b.xk(),d);this.request=a;this.logName="drive.ds.sync.SyncedActivityQueryLiveList";this.O=!1;this.ha=[];this.activities=[];this.token="";this.changed=!1;this.ma=new _.Wjc(_.xj(b.Xc.Tf(),6,1E3));this.ta=c};_.K(NKc,rM);_.g=NKc.prototype;_.g.bQ=function(){rM.prototype.bQ.call(this);this.iu()};_.g.tH=function(){_.Q(this.request,3)?this.page():this.poll()};
_.g.Ju=function(a){if(a=a||50,this.activities.length>this.limit)this.changed=!0;rM.prototype.Ju.call(this,a)};_.g.getData=function(){var a=(new wAc).Dc(this.status);_.mj(a,2,this.activities.slice(0,this.limit));this.ha=_.Ba(this.activities);return a};_.g.ks=function(){var a=_.Hy(MKc(),this.ha,this.activities),b=new tAc;a=_.mj(b,2,a).Dc(this.status);this.ha=_.Ba(this.activities);return a};_.g.nk=function(){return!this.Me()&&(!this.H||this.activities.length>this.limit||!!this.token)};_.g.jd=function(){return this.request};
_.g.page=function(a){var b=this;this.active?(this.O=!0,this.nk()&&this.activities.length<this.limit?this.ta(this.request,this.limit-this.activities.length,this.token).then(function(c){b.H=!0;var d=_.yb(c,_.pAc,1);b.activities=b.activities.concat(d);b.token=c.Ky()||"";0<d.length&&(b.changed=!0);b.iu();b.page(a)},function(c){b.dispatchEvent(new _.Ic(c));b.O=!1}):(this.O=!1,a&&a.callback(),OKc(this))):this.O=!1};
_.g.poll=function(){var a=this;this.active&&(this.O=!0,this.ta(this.request,this.limit).then(function(b){var c=MKc();a.H=!0;var d=_.yb(b,_.pAc,1);aL(c,a.activities.slice(0,d.length),d)?(a.activities=d,a.token=b.Ky()||"",a.changed=!0,a.iu(),a.page()):(a.O=!1,OKc(a))},function(b){a.dispatchEvent(new _.Ic(b));a.O=!1}))};_.g.iu=function(){if(this.active){var a=this.status;this.eM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.hi(_.cd,this))}};
_.g.eM=function(){this.Me()&&!this.H?this.status=2:this.status=this.activities.length<this.limit&&(!this.H||this.token)?6:1};_.g.DP=function(){this.active&&this.nk()&&!this.O&&this.page(new _.Uh)};var OKc=function(a){_.Q(a.request,3)||(_.ZH(a.ma),_.n.setTimeout((0,_.L)(a.poll,a),a.ma.Wa()))};NKc.prototype.$b=function(){return this.activities.length};
var PKc=function(){};_.g=PKc.prototype;_.g.ZM=function(a,b){return AAc(zAc(1),a).setPosition(b)};_.g.XM=function(a,b){return AAc(zAc(2).setPosition(b),a)};_.g.bF=function(a,b,c){return AAc(zAc(3).oz(b).setPosition(c),a)};_.g.gR=function(a,b){return AAc(zAc(4),a).setPosition(b)};_.g.uN=function(a){return _.y(a,_.FL,2)};
var QKc=function(){_.Iy.call(this,new PKc,function(a){return a.getId()})};_.K(QKc,_.Iy);var SKc=function(){RKc||(RKc=new QKc);return RKc},RKc;
var TKc=function(a,b,c){rM.call(this,b.Be(),b.Ij(),b.xk());this.request=a;this.logName="drive.ds.sync.SyncedBackupsQueryLiveList";this.ha=[];this.backups=[];this.changed=!1;this.O=new _.Wjc(_.xj(b.Xc.Tf(),54,1E3));this.ma=c};_.K(TKc,rM);_.g=TKc.prototype;_.g.activate=function(){rM.prototype.activate.call(this);this.iu()};_.g.tH=function(){this.poll()};_.g.getData=function(){var a=new GAc;a=_.mj(a,2,this.backups).Dc(this.status);this.ha=_.Ba(this.backups);return a};
_.g.ks=function(){var a=_.Hy(SKc(),this.ha,this.backups),b=new EAc;a=_.mj(b,2,a).Dc(this.status);this.ha=_.Ba(this.backups);return a};_.g.nk=function(){return!this.Me()&&!this.H};_.g.poll=function(){var a=this,b=new _.Uh;this.ma(this.request).then(function(c){a.H=!0;c=_.yb(c,_.FL,2);aL(SKc(),a.backups,c)&&(a.changed=!0,a.backups=c,a.O.reset());a.iu();b.callback();UKc(a)},function(c){a.dispatchEvent(new _.Ic(c));b.Gd(c);UKc(a)});return b};
_.g.iu=function(){if(this.active){var a=this.status;this.eM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.hi(_.cd,this))}};_.g.DP=function(){};var UKc=function(a){a.active&&(_.n.setTimeout((0,_.L)(a.poll,a),a.O.Wa()),_.ZH(a.O))};TKc.prototype.$b=function(){return this.backups.length};
var VKc=function(){};_.g=VKc.prototype;_.g.ZM=function(a,b){return IBc(HBc(1),a).setPosition(b)};_.g.XM=function(a,b){return IBc(HBc(2).setPosition(b),a)};_.g.bF=function(a,b,c){return IBc(HBc(3).oz(b).setPosition(c),a)};_.g.gR=function(a,b){return IBc(HBc(4),a).setPosition(b)};_.g.uN=function(a){return _.y(a,_.mk,2)};
var WKc=function(){_.Iy.call(this,new VKc,function(a){return a.getId()})};_.K(WKc,_.Iy);
var JM=function(a,b,c){_.qi.call(this);this.context=a;this.request=b;this.nextPageToken="";this.H=this.O=!1;this.limit=0;this.permissions=[];this.V=c};_.K(JM,_.qi);JM.prototype.cj=function(a){this.limit=a};JM.prototype.nh=function(){return this.H||this.O&&""===this.nextPageToken?Promise.resolve():XKc(this)};JM.prototype.Tla=function(){return this.permissions};
var XKc=function(a){a.O=!0;a.H=!0;var b=Math.min(a.limit-a.permissions.length,100);var c=new _.pJ;c=_.G(c,3,a.request);c=_.x(c,2,a.nextPageToken);b=_.x(c,1,b);return a.V(b).then(a.W.bind(a)).then(null,a.handleError.bind(a))};JM.prototype.W=function(a){this.H=!1;this.nextPageToken=a.Zn()||"";a=a.Zc().EN();this.permissions=_.Aa(this.permissions,a);a.length&&this.dispatchEvent("wb");if(this.nextPageToken&&this.permissions.length<this.limit)return XKc(this);this.dispatchEvent("zb")};
JM.prototype.handleError=function(a){this.H=!1;a=new XL(_.vI(a),_.xj(this.context.Xc.Tf(),1,1));this.dispatchEvent(a)};
var YKc=function(a,b,c,d){rM.call(this,b.Be(),b.Ij(),b.xk(),d||100);var e=this;this.request=a;this.context=b;this.logName="drive.ds.sync.SyncedPermissionQueryLiveList";this.ma=[];this.permissions=[];this.changed=!1;this.ha=null;this.ta=c;this.O=new JM(b,this.request,this.ta);_.ef(this,function(){e.ha&&(_.n.clearTimeout(e.ha),e.ha=null)})};_.K(YKc,rM);_.g=YKc.prototype;_.g.activate=function(){rM.prototype.activate.call(this);this.iu()};_.g.tH=function(){this.query()};
_.g.Ju=function(a){rM.prototype.Ju.call(this,a||100)};_.g.getData=function(){var a=bsc(new asc,this.permissions.slice(0,this.limit)).Dc(this.status);this.ma=_.Ba(this.permissions);return a};_.g.ks=function(){var a=_.Hy(_.Tl(WKc),this.ma,this.permissions),b=new KBc;a=_.mj(b,2,a).Dc(this.status);this.ma=_.Ba(this.permissions);return a};_.g.nk=function(){var a;(a=!this.Me())&&!(a=!this.H)&&(a=this.O,a=!a.O||""!==a.nextPageToken);return a};_.g.jd=function(){return this.request};
_.g.query=function(){var a=this;this.O=new JM(this.context,this.request,this.ta);this.O.cj(this.limit);return this.O.nh().then(function(){return ZKc(a)},function(b){return a.handleError(b)})};_.g.handleError=function(a){rM.prototype.handleError.call(this,a);$Kc(this)};var ZKc=function(a){a.H=!0;var b=a.O.Tla();aL(_.Tl(WKc),a.permissions,b)&&(a.changed=!0,a.permissions=b);a.iu();$Kc(a)};
YKc.prototype.iu=function(){if(this.active){var a=this.status;this.eM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.hi(_.cd,this))}};YKc.prototype.DP=function(){var a=this;this.O.cj(this.limit);this.O.nh().then(function(){return ZKc(a)},function(b){return a.handleError(b)})};var $Kc=function(a){if(a.active){var b=a.context.Xc.Tf();a.ha=_.n.setTimeout((0,_.L)(a.query,a),Math.ceil(_.xj(b,7,9E5)*Math.random())+_.xj(b,15,36E5))}};YKc.prototype.$b=function(){return this.permissions.length};
var aLc=function(a){6!==a.status&&_.n.setTimeout(function(){a.dispatchEvent(new _.hi(_.cd,a))},0)};
var bLc=function(){},cLc=function(a,b){EM.call(this,"TM","drive.ds.sync.TeamDriveMovePreflightRunnerProxy",a);this.request=b;this.O=bLc;this.H=null;this.id=String(_.Fa(this))};_.K(cLc,EM);cLc.prototype.Kaa=function(a,b,c){a===this.id&&(a=_.m(c).next().value,this.O(TK(a,b,UK)))};cLc.prototype.nh=function(a){a=void 0===a?bLc:a;if(!this.H){this.O=a;var b=_.Sh();this.H=b;this.send("10.1",[this.request],function(c,d){return TK(c[0],d,UK)},this.id).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)})}return this.H.promise};
cLc.prototype.cancel=function(){this.send("10.2",[this.request],void 0,this.id)};
var dLc=function(a,b,c){_.qi.call(this);var d=this;this.instanceId=a;this.H=b;this.O=c;this.Qu={};this.files={};_.ef(this,function(){d.H("7.6",[])})};_.K(dLc,_.qi);_.g=dLc.prototype;_.g.getId=function(){return this.instanceId};_.g.fR=function(){return _.FI()};
_.g.upload=function(a,b){!_.z(a,26)&&b&&b.lastModified&&_.x(a,26,b.lastModified);var c;b&&(c=b.type?b:new File([b],b.name,{type:b.type}));if(b){var d=new _.lic;_.x(d,1,b.size);_.G(a,15,d);this.files[a.mj()]=b}return _.$h(this.H("7.1",[a,c],function(e,f){return TK(e[0],f,_.GJ)}))};_.g.cancel=function(a){this.H("7.2",[a])};_.g.IG=function(){this.H("7.3",[])};
_.g.retry=function(a){for(var b={},c=_.m(a),d=c.next();!d.done;d=c.next())b[d.value]=new _.Uh;c=this.fR();this.Qu[c]=b;b=_.Ya(b);this.H("7.4",[c].concat(_.fc(a)));return b};_.g.WM=function(a,b){var c=this;return _.$h(this.H("7.5",[a].concat(_.fc(b)),function(d){return doc(d[0])}).then(function(d){return c.O.addCallback(function(e){return e.e6a(d)})}))};var eLc=function(a,b,c,d){if(a.Qu[b]&&a.Qu[b][c]){var e=a.Qu[b][c];d instanceof _.GJ?e.callback(d):e.Gd(d);delete a.Qu[b][c];_.ab(a.Qu[b])&&delete a.Qu[b]}};
var fLc=function(a,b){EM.call(this,"FU","drive.ds.sync.upload.FileUploaderProxyManager",a);this.O=b;this.H=new Map};_.K(fLc,EM);var gLc=function(a){var b=_.FI(),c=new dLc(b,function(d,e,f){return a.send(d,e,f,b)},a.O);a.H.set(b,c);_.ef(c,function(){return void a.H.delete(b)});return c};
fLc.prototype.Kaa=function(a,b,c){if((a=this.H.get(a))&&c){var d=c[1],e=c.slice(2);switch(c[0]){case 3:b=e[0];e=e[1];e=Math.min(e,1073741824);c=a.files[d];a.H("7.7",[d,_.wgc(c,b,Math.min(c.size,b+e))]);break;case 0:b=TK(e[1],b,_.GJ);eLc(a,d,e[0],b);break;case 1:b=new _.Hc(void 0,TK(e[1],b,_.Gc));eLc(a,d,e[0],b);break;case 2:a.dispatchEvent(new _.ukc(d,e[0],e[1]));break;default:throw Error("ch");}}};
var hLc=function(a,b){if(0===a.length)throw new _.Hc("mutateUserPref requires a namespace.",_.MI(3));var c=null;b instanceof _.pD?c=(b=(b=_.y(b,_.Ro,1))&&b.getKey())&&_.To(b)||null:b instanceof _.oD&&(c=(b=b.getKey())&&_.To(b)||null);if(!c||!a.find(function(d){return d===c}))throw new _.Hc("mutateUserPref unsupported for namespace: "+c,_.MI(3));};
var iLc=function(a){this.H=a};
var bpc=function(a){EM.call(this,"IS","drive.ds.sync.ItemServiceProxy",(jLc=_.Sh()).promise);var b=this;this.ta=null;this.Pa=this.Ua=this.$a=this.ma=!1;this.ha=this.ka=this.W=null;this.kb=new _.cn;this.Ka=new _.cn;this.V=jLc;jLc=void 0;this.context=a;gJc(this.context,new FKc(this.V.promise));this.H=this.context.jua;this.O=new HJc(this.V.promise,this.context,this.H);this.ob=new fLc(this.V.promise,this.context.RQ);this.Ia=new DKc(this.V.promise,this.context);this.Oc=new _.nf(this);this.Ja(this.Oc);
this.Oc.listen(this.context.xk(),[].concat(_.fc(Object.values(_.VB))),function(c){return void b.dispatchEvent(c)})},jLc;_.K(bpc,EM);
bpc.prototype.initialize=function(){var a=this;if(!this.ta){this.ta=this.wa.promise;var b=this.context.kk().H(106E3);this.ta.then(function(){b&&b.Bj();a.Q4a()},function(){_.rK(a.context.kk(),181008852)});this.context.Be().info("drive.ds.sync.ItemServiceProxy","Initializing "+(_.XJ(this.context.Xc)?"(coldstart) ":"")+"with client build: "+this.context.Xc.Ki());var c=Qnc(this.context.Xc,this.Oi(),_.bK(this.context.Bg));kLc(this,c);if(2===c.H){var d=new IM(new BJc,6,this.context.Be());wKc(d,c.O);this.Ka.resolve(d)}else uoc(this.Ia);
this.context.Be().info("drive.ds.sync.ItemServiceProxy","Connecting to worker: "+c.endpoint);c.channel.start();eJc(this.context,function(){return lLc(c.channel)})}return this.ta};
var lLc=function(a){return _.Gka([new _.Oh(function(b){a.isDisposed()||EL(a,"8.1",void 0,function(){a.dispose();b()})}),_.ui(1E4)])},kLc=function(a,b){var c=b.channel;0===b.H?c.registerService("2.0",function(){return{uid:a.Oi(),fds:_.bK(a.context.Bg)}}):c.registerService("1.1",function(){return mLc(a,b)});2===b.H?a.Ka.promise.then(function(){return void nLc(a,b)}):nLc(a,b);DL(c,"2.1",function(){return{dsc:a.context.Xc.Hc()}});DL(c,"2.2",function(d){"number"===typeof d.id?(a.V.resolve(new AJc(d.id,
c,a.context.Be(),d.clients)),d.dsp&&oLc(c),d.ivd&&pLc(a,c)):(d=new _.Gc(JSON.parse(d.err)),a.wa.reject(new _.Hc("Unable to initialize dataservice.",d)))});DL(c,"2.15",function(d){a.dispatchEvent(new jCc(d.dt))});DL(c,"2.5",function(d){a.context.qz(d.id)});DL(c,"2.6",function(d){a.context.Ij().Ll(d.os)});DL(c,"2.18",function(d){a.context.Ij().nz(d.oois)});DL(c,"2.7",function(){a.ma=!1});DL(c,"2.8",function(d){a.context.Ia=d.au;a.dispatchEvent(new Fsc(d.au?"fb":"gb"))});DL(c,"2.19",function(d){a.context.xk().update(d.cs)});
DL(c,"2.9",function(d){var e=d.logName,f=d.level;d=(0,_.Ws)("[CSW %s] %s",d.totalTime,d.message);switch(f){case "config":a.context.Be().config(e,d);break;case "fine":_.$J(a.context.Be(),e,d,"fine");break;case "finer":_.$J(a.context.Be(),e,d,"finer");break;case "finest":_.$J(a.context.Be(),e,d,"finest");break;case "info":a.context.Be().info(e,d);break;case "warning":case "severe":Lrc(a.context.Be(),e,d);break;default:Lrc(a.context.Be(),"drive.ds.sync.ItemServiceProxy","Unknown log level: "+f),Lrc(a.context.Be(),
e,d)}});DL(c,"2.10",function(d){return void a.Gaa(d)});DL(c,"2.12",function(){a.Pa=!0;KM(a)});DL(c,"2.14",function(){return a.kb.resolve()});DL(c,"2.16",function(){return a.$a=!0});DL(c,"2.17",function(d){a.context.Be().info("drive.ds.sync.ItemServiceProxy","Prefetched request loaded for: "+d.t.join(","))})},nLc=function(a,b){1!==b.H&&2!==b.H||b.channel.send("8.5",mLc(a,b));EL(b.channel,"8.4",{dsc:a.context.Xc.Hc()});oLc(b.channel);pLc(a,b.channel)},oLc=function(a){_.n._DRIVE_dsp&&EL(a,"8.3",{dsp:qLc(_.n._DRIVE_dsp)});
_.n._DRIVE_dspc=function(b){if(_.n._DRIVE_dsp){var c=[];c[b]=_.n._DRIVE_dsp[b];EL(a,"8.3",{dsp:qLc(c)})}}},pLc=function(a,b){_.R(a.context.Xc,24,!1)&&(_.n._DRIVE_ivd?EL(b,"8.2",{ivd:_.n._DRIVE_ivd}):void 0===_.n._DRIVE_ivd&&(_.n._DRIVE_ivdc=function(){_.n._DRIVE_ivd&&EL(b,"8.2",{ivd:_.n._DRIVE_ivd})}))},mLc=function(a,b){var c={};if(1===b.H){var d=new _.vNa(document);c.__SAPISID=d.get("SAPISID")||d.get("__Secure-3PAPISID");c.__APISID=d.get("APISID")||d.get("__Secure-APISID")}return{ac:c,bl:a.context.Xc.Ki(),
ufds:b.V}};bpc.prototype.Oi=function(){var a=_.nj(_.nj(_.gI(this.context.Xc.clone(),28),44),91),b=new _.SH;b.update(_.UJ(_.fI(a)));b.update(String(_.wI(_.fI(a))));b.update(a.Hc());return _.Bec(b.digest())};var qLc=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=bpc.prototype;_.g.Gaa=function(a){this.dispatchEvent(new _.Ic(new _.Hc(void 0,new _.Gc(JSON.parse(a.p)))))};
_.g.query=function(a){KM(this);zvc(this.context.Pl,a);this.IF();var b=this.O.Yya(a);this.Ua||(a=a.re(),a&&121===_.z(a,1)||(this.Ua=!0,this.Oc.listen(b,_.cd,this.uPa)));return b};_.g.uPa=function(a){a=a.currentTarget;1===a.Cb()&&(this.Ia.H=this.$a,this.Oc.Uc(a,_.cd,this.uPa))};_.g.gt=function(a){KM(this);Csc(a);this.IF();return this.O.Vya(a)};
_.g.Uwa=function(a,b){var c=this;KM(this);if(this.ka&&_.wj(this.ka.jd(),a))return this.ka;this.ka=new NKc(a.clone(),this.context,function(d,e,f){return c.send("3.17",[d,e,f],function(h,k){return TK(h[0],k,iCc)})},b);_.n.setTimeout(function(){c.ka=null},3E3);return this.ka};
_.g.lIa=function(a,b){var c=this;KM(this);if(this.ha&&_.wj(this.ha.jd(),a))return aLc(this.ha),this.ha;this.ha=new YKc(a,this.context,function(d){return c.send("3.18",[d],function(e,f){return TK(e[0],f,LBc)})},b);_.n.setTimeout(function(){c.ha=null},3E3);return this.ha};_.g.gba=function(a){KM(this);return _.$h(this.send("3.14",[a],function(b,c){return TK(b[0],c,oM)}))};_.g.z9=function(a){KM(this);return _.$h(this.send("3.15",[a],function(b,c){return TK(b[0],c,oM)}))};
_.g.ad=function(a){KM(this);!this.ma&&_.HJ(a)&&(this.ma=!0);a=Snc(a);return _.$h(this.send("3.3",[a],function(b,c){return TK(b[0],c,_.GJ)}))};_.g.uO=function(a){KM(this);a=boc(a);return this.send("3.35",[a],function(b,c){return TK(b[0],c,_.Esc)})};_.g.YC=function(a){KM(this);for(var b=0;b<a.length;b++)!this.ma&&_.HJ(a[b])&&(this.ma=!0);a=Vnc(a);return _.$h(this.send("3.4",[a],function(c,d){return Rvc(c[0],d).get()}))};_.g.Uya=function(){KM(this);return gLc(this.ob)};
_.g.DVa=function(a){KM(this);return new EKc(this.V.promise,a)};_.g.jt=function(a,b){var c=this;KM(this);var d=_.ih();this.H.create(d,a);return _.$h(this.send("3.5",[a,!!b],function(e,f){f=TK(e[0],f,IL);return new _.mK(f,e[1],e[2])})).addCallback(function(e){nwc(c.H,d,e);return e.response}).Ag(function(e){HL(c.H,d);return e})};_.g.yr=function(a){KM(this);return this.send("3.10",[a],function(b,c){return TK(b[0],c,xAc)})};
_.g.iba=function(a){KM(this);return _.$h(this.send("3.11",[a],function(b,c){return TK(b[0],c,yAc)}))};_.g.x9=function(a){KM(this);return _.$h(this.send("3.12",[a],function(b,c){return TK(b[0],c,yAc)}))};_.g.WT=function(a){KM(this);return _.$h(this.send("3.13",[a],function(b,c){return TK(b[0],c,yAc)}))};
_.g.RN=function(a,b){var c=this;KM(this);var d=_.ih();this.H.create(d,a);return _.$h(this.send("3.1",[a,!!b],function(e,f){f=TK(e[0],f,_.fM);return new _.pK(f,e[1],e[2])})).addCallback(function(e){nwc(c.H,d,e);return e.response}).Ag(function(e){HL(c.H,d);return e})};
_.g.rH=function(a,b){var c=this,d=_.re(this.context.Xc.Tf(),30);if(!d||0===d.length)return _.ai(new _.Hc("getUserPrefs requires a namespace.",_.MI(3)));0===_.re(a,3).length&&voc(a,d);KM(this);var e=_.ih();this.H.create(e,a);return _.$h(this.send("3.2",[a,!!b],function(f,h){h=TK(f[0],h,_.Xz);return new _.oK(h,f[1],f[2])})).addCallback(function(f){nwc(c.H,e,f);return f.response}).Ag(function(f){HL(c.H,e);return f})};
_.g.TS=function(a){KM(this);hLc(_.re(this.context.Xc.Tf(),30),a);a=Znc(a);return this.send("3.6",[a],function(b,c){return TK(b[0],c,WBc)})};_.g.Cu=function(a){KM(this);return _.$h(this.send("3.16",[a],function(b,c){return TK(b[0],c,dsc)}))};_.g.RDa=function(){return this.ma};_.g.Ll=function(a){KM(this);this.send("3.8",[a])};_.g.nz=function(a){KM(this);return _.Ph(this.send("3.36",[a],function(b){return!!b[0]}))};_.g.iZ=function(a){KM(this);fJc(this.context).iZ(a);this.nz(!!a)};
_.g.IF=function(){KM(this);this.send("3.9",[])};_.g.WS=function(){KM(this);this.send("3.41",[]);this.context.WS();var a=dL(this.context.kk(),106006);a&&this.V.promise.then(function(b){var c=_.y(_.hK(a),orc,6);if(!c){c=new orc;var d=_.hK(a);_.G(d,6,c)}c=_.x(c,1,b.clientId);_.x(c,2,b.O);a.Bj()},function(){})};_.g.UB=function(){KM(this);return this.context.UB()};_.g.YQ=function(){KM(this);return _.Ph(this.send("3.19",[],function(a,b){return TK(a[0],b,Yvc)}))};_.g.isConnected=function(){return this.context.xk().isConnected()};
_.g.U8=function(){return this.send("3.46",[],function(a,b){return TK(a[0],b,_.Ojc)})};_.g.J$=function(){return this.Ia};_.g.sync=function(){KM(this);return _.Ph(this.send("3.28",[]))};_.g.Lt=function(){return this.context.Lt()};_.g.fZ=function(a){this.Ka.promise.then(function(b){return void b.fZ(a)})};_.g.jra=function(a){KM(this);return this.O.eza(a)};_.g.Q5=function(a){KM(this);return this.O.dza(a)};_.g.iIa=function(a){KM(this);Dvc(this.context.Pl,a);return this.O.aza(a)};
_.g.kra=function(a){KM(this);return new cLc(this.V.promise,a)};_.g.Jxa=function(a){var b=this;KM(this);if(!this.W||this.W.isDisposed())this.W=new TKc(a,this.context,function(c){return b.send("3.20",[c],function(d,e){return TK(d[0],e,GAc)})});return this.W};_.g.XIa=function(){this.W&&!this.W.isDisposed()?this.W.poll():_.Ph()};_.g.y9=function(a){KM(this);return _.$h(this.send("3.22",[a],function(b,c){return TK(b[0],c,HAc)}))};
_.g.iW=function(a){KM(this);return _.$h(this.send("3.25",[a],function(b,c){return TK(b[0],c,CAc)}))};_.g.yca=function(){return this.kb.promise};_.g.npa=function(a){var b=_.Sh();_.$h(this.send("3.30",[a],function(c,d){c[0]?b.resolve(TK(c[0],d,EBc)):b.reject(new _.Hc(void 0,TK(c[1],d,_.Gc)))})).Ag(function(c){return void b.reject(c)});return b.promise};_.g.jya=function(a){KM(this);return this.O.Rya(a)};_.g.T8=function(a){KM(this);return this.send("3.42",[a],function(b,c){return TK(b[0],c,jAc)})};
_.g.FP=function(a){KM(this);var b=new _.cn;this.send("3.39",[a],function(c,d){return c.map(function(e){return TK(e,d,wwc)})}).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)});return Promise.resolve(new iLc(b.promise))};_.g.IIa=function(a){var b=this;KM(this);return new HKc(this.context,a,function(c){return _.Ph(b.send("3.37",[c.request,c.pageToken],function(d,e){return new Tvc(TK(d[0],e,mM),d[1])}))})};
_.g.JIa=function(a){KM(this);return this.send("3.38",[a],function(b,c){return TK(b[0],c,zBc)})};_.g.zNa=function(a){KM(this);return this.O.iza(a)};_.g.dsa=function(a){KM(this);return this.O.hza(a)};_.g.TLa=function(a){var b=this;KM(this);return new IKc(this.context,a,function(){return _.Ph(b.send("3.40",[a],function(c,d){return TK(c[0],d,_.IK)}))})};_.g.ULa=function(a){KM(this);return this.O.bza(a)};_.g.y0=function(a){KM(this);Cvc(this.context.Pl,a);this.send("3.43",[a])};
_.g.Z0=function(a){KM(this);return _.Ph(this.send("3.44",[a],function(b,c){return TK(b[0],c,Psc)}))};_.g.Do=function(a){KM(this);if(1!==_.WJ(this.context.Xc))return Promise.reject(Error("dh"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.qc())return Promise.reject(Error("eh"));if(!_.BI(c)&&!c.getItem())return Promise.reject(Error("fh"))}return Promise.resolve(this.send("3.45",a))};
_.g.Q4a=function(){var a=this;if(3===this.context.getEnvironment()){var b=[_.ui(1E4,!1),this.send("3.29",[],function(c){return!!c[0]}).then()];_.Gka(b).then(function(c){c?_.si(a.Q4a.bind(a),6E4):(a.Pa=!0,KM(a))})}};var KM=function(a){a.Pa&&a.dispatchEvent(new ICc)};
var dpc=function(a){tM.call(this,a);this.ha=this.ka=this.ta=null;this.kb=_.Sh();this.logName="drive.ds.sync.SyncedItemService";this.H=a.Mm()};_.K(dpc,tM);dpc.prototype.jVa=function(){this.Ia=new NJc(this.context);this.Ja(this.Ia);this.Ka=new RJc(this.context);this.Ja(this.Ka);this.Pa=new YJc(this.context);this.Ja(this.Pa)};
dpc.prototype.$a=function(){var a=this,b=["hVFf7"];_.XJ(this.context.Xc)&&b.push("BNEDtc");NL(this.O,b,function(){return void a.u_a()});NL(this.O,["T8oKm",_.VJ(this.context.Xc)?"BNEDtc":"ZA9qG"],function(){return void rLc(a)});NL(this.O,["T8oKm","mrK8ic"],function(){return void rLc(a)});this.Oc.listen(this.Ia,"WPi0i",this.lua.bind(this,1));this.Oc.listen(this.Ka,"Hb",this.lua.bind(this,2));this.Oc.listen(this.Pa,"WPi0i",this.lua.bind(this,4));NL(this.O,["GZTDpc"],function(){return a.kb.resolve()})};
var rLc=function(a){xM(a.context).addCallback(function(b){b.start()})};_.g=dpc.prototype;_.g.lua=function(a){_.pa(Qsc,a)&&this.dispatchEvent(new jCc(a))};_.g.Q5=function(a){return this.V.dza(a.clone())};_.g.iIa=function(a){Dvc(this.context.Pl,a);return this.V.aza(a.clone())};_.g.jra=function(a){return this.V.eza(a.clone())};_.g.kra=function(a){return new oKc(a,this.context.Mm())};
_.g.Uwa=function(a,b){var c=this;if(this.ta&&_.wj(this.ta.jd(),a))return this.ta;this.ta=new NKc(a.clone(),this.context,this.lnb.bind(this),b);_.n.setTimeout(function(){c.ta=null},3E3);return this.ta};_.g.lnb=function(a,b,c){var d=new _.Xgc(a,b,c);return _.$h(this.H.then(function(e){return e.Qe(d)}).then(null,function(e){return KK(e)}))};_.g.Jxa=function(a){var b=this;if(!this.ha||this.ha.isDisposed())this.ha=new TKc(a,this.context,function(c){return sLc(b,c)});return this.ha};
var sLc=function(a,b){return _.$h(a.H.then(function(c){return c.Qe(b)}).then(null,function(c){return KK(c)}))};_.g=dpc.prototype;_.g.XIa=function(){this.ha&&!this.ha.isDisposed()?this.ha.poll().then():_.Ph()};_.g.iW=function(a){return _.$h(this.H.then(function(b){return b.Qe(a)}))};_.g.y9=function(a){return _.$h(this.H.then(function(b){return b.Qe(a)}))};
_.g.lIa=function(a,b){var c=this;if(this.ka&&_.wj(this.ka.jd(),a))return aLc(this.ka),this.ka;this.ka=new YKc(a.clone(),this.context,this.NOb.bind(this),b);_.n.setTimeout(function(){c.ka=null},3E3);return this.ka};_.g.NOb=function(a){var b=this;return this.H.then(function(c){return c.Qe(a)}).then(function(c){return _.mI(b.context.Xc)?Kxc(b.context.Jf.Lq,c.Zc().EN(),a.jd().getId()).then(function(){return c}):c},KK)};
_.g.gba=function(a){var b=this;return _.$h(this.H.then(function(c){return c.Qe(a)}).then(function(c){return _.mI(b.context.Xc)?Kxc(b.context.Jf.Lq,[_.y(c,_.mk,2)],a.qc()).then(function(){return c}):c},KK))};_.g.z9=function(a){return _.$h(this.H.then(function(b){return b.Qe(a)}).then(null,KK))};_.g.jya=function(a){return this.V.Rya(a.clone())};_.g.T8=function(a){return this.H.then(function(b){return b.Qe(a)}).then(null,KK)};
_.g.FP=function(a){return this.H.then(function(b){return b.Qe(a)}).then(function(b){var c=new _.cn;Uxc(a,b).then(function(d){return c.resolve(d)});return new iLc(c.promise)},function(b){KK(b)})};_.g.IIa=function(a){var b=this;return new HKc(this.context,a,function(c){return b.H.then(function(d){return d.Qe(c)}).then(null,function(d){return KK(d)})})};_.g.JIa=function(a){return this.H.then(function(b){return b.Qe(a)}).then(null,KK)};
_.g.ad=function(a){return _.$h(this.H.then(function(b){return b.Qe(a)}).then(null,KK))};_.g.uO=function(a){return this.H.then(function(b){return b.Qe(a)}).then(null,KK)};_.g.YC=function(a){var b=this,c=[],d=[];a.forEach(function(f){f instanceof _.PI?c.push(String(f.qc())):c.push(String(f.getId()));d.push(b.ad(f))});a=new _.Qn(d);var e=new _.Uh;a.addCallback(this.Vpb.bind(this,e,c));return e};
_.g.Uya=function(){return new dKc(this.context.Xc,this.context.kB,this.context.YR().Fga,this.context.Mm(),this.context.RQ,this.context.Be(),this.context.kk())};_.g.jt=function(a,b){var c=this,d=_.ih();this.W.create(d,a);3===a.getType()?a=tM.prototype.jt.call(this,a).addCallback(function(e){return new _.mK(e,1,!1)}):(OL(this.O,"Qubz4b"),a=this.Ka.enqueue(new WJc(a,b)));return a.addCallback(function(e){nwc(c.W,d,e);return e.response}).Ag(function(){HL(c.W,d)})};
_.g.yr=function(a){return _.$h(this.H.then(function(b){return b.Qe(a)}).then(null,KK))};_.g.iba=function(a){return _.$h(this.H.then(function(b){return b.Qe(a)}).then(null,KK))};_.g.x9=function(a){return _.$h(this.H.then(function(b){return b.Qe(a)}).then(null,KK))};_.g.WT=function(a){return _.$h(this.H.then(function(b){return b.Qe(a)}).then(null,KK))};
_.g.RN=function(a,b){var c=this;OL(this.O,"iuEtc");var d=_.ih();this.W.create(d,a);return this.Ia.enqueue(new PJc(a,b)).addCallback(function(e){nwc(c.W,d,e);return e.response}).Ag(function(){HL(c.W,d)})};
_.g.rH=function(a,b){var c=this,d=_.re(this.context.Xc.Tf(),30);if(!d||0===d.length)return _.ai(new _.Hc("getUserPrefs requires a namespace.",_.MI(3)));0===_.re(a,3).length&&voc(a,d);var e=_.ih();this.W.create(e,a);OL(this.O,"OZvrNc");return this.Pa.enqueue(new aKc(a,b)).addCallback(function(f){nwc(c.W,e,f);return f.response}).Ag(function(){HL(c.W,e)})};_.g.TS=function(a){hLc(_.re(this.context.Xc.Tf(),30),a);return _.$h(this.H.then(function(b){return b.Qe(a)}).then(null,KK))};
_.g.Cu=function(a){var b=this;return _.$h(this.H.then(function(c){return c.Qe(a)}).then(function(c){return _.mI(b.context.Xc)?Ixc(b.context.Jf.Lq,c):c},KK))};_.g.zNa=function(a){return this.V.iza(a.clone())};_.g.dsa=function(a){return this.V.hza(a.clone())};_.g.TLa=function(a){var b=this;return new IKc(this.context,a,function(c){return b.H.then(function(d){return d.Qe(c)}).then(null,function(d){return KK(d)})})};_.g.ULa=function(a){return this.V.bza(a.clone())};
_.g.y0=function(a){Cvc(this.context.Pl,a);EEc(this.context.Jf,[a])};_.g.Z0=function(a){return this.H.then(function(b){return b.Qe(a)}).then(null,KK)};_.g.Do=function(a){if(1!==_.WJ(this.context.Xc))return Promise.reject(Error("dh"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.qc())return Promise.reject(Error("eh"));if(!_.BI(c)&&!c.getItem())return Promise.reject(Error("fh"))}this.context.Jf.Do(a);qFc(this.context.Jf);return Promise.resolve()};_.g.RDa=function(){return this.context.YR().zK()};
_.g.nz=function(a){var b=this;return this.context.nz(a).then(function(c){return c?(b.context.Ij().nz(a),b.context.Us.HL()):_.Ph(!a)})};_.g.iZ=function(a){fJc(this.context).iZ(a);this.nz(!!a)};_.g.IF=function(){xM(this.context).addCallback(function(a){a&&a.Tpa()});this.context.qia.IF()};_.g.fZ=function(a){a.NPa(this.context)};_.g.Vpb=function(a,b,c){for(var d={},e=0;e<c.length;e++)d[b[e]]=c[e][1];qFc(this.context.Jf);a.callback(d)};
_.g.sync=function(){var a=this;return _.Rh([this.context.eba.promise,this.context.Gga.promise]).then(function(){return xM(a.context).then()}).then(function(b){return new _.Oh(function(c,d){b.sync().then(function(){return c()},function(e){return d(e)})})}).then(function(){return a.context.Us.HL()}).then()};_.g.Lt=function(){xM(this.context).addCallback(function(a){a&&a.dispose()});return tM.prototype.Lt.call(this)};_.g.yca=function(){return this.kb.promise};
var tLc=function(){var a='<div class="'+_.D("la-r")+'">';a=a+'Something went wrong. Please reload.</div><button class="'+(_.D("la-Y-A")+" "+_.D("kc-A")+'" data-target="reload">');return(0,_.F)(a+"Reload</button>")};
_.an({id:_.Fl,callback:function(a){var b=_.Umc(a),c=gpc(a),d=_.y(a.get(_.Hd),_.Qc,10);_.hic(d,b);_.kj(d,28,c);b=epc(a,d);a.registerService(_.Gl,b.J$());_.li(b,"VbxEwf",function(){var e={};_.Cd(_.$q.getService(a),new _.Zp(new _.Yp(tLc,{}),"d",(e.reload=function(){_.n.window.location.reload()},e),4))});return b}});

_.u();

}catch(e){_._DumpException(e)}
try{
_.t("RsR2Mc");

_.uLc=function(a,b){return _.x(a,2,b)};_.vLc=function(a,b){return _.x(a,1,b)};_.wLc=function(a,b){return _.G(a,2,b)};_.xLc=function(a,b){return _.mj(a,1,b)};_.yLc=function(a,b){return _.kj(a,1,b)};_.zLc=function(a,b){return _.mj(a,2,b)};_.ALc=function(a,b){return _.G(a,3,b)};

_.u();

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