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");

_.bdc=function(a,b){return _.od(a,b)};

_.u();

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

_.Dmb=function(a,b){a.filters.push(new _.du(1,b));return a};_.Emb=function(a){a.approvalSummaries||(a.approvalSummaries=_.ESa(a.Xf,a.getItem().nAa));return a.approvalSummaries};_.Fmb=function(a){null===a.contentRestrictions&&(a.contentRestrictions=_.ESa(a.Xf,a.getItem().S1));return a.contentRestrictions};

_.u();

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


_.u();

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

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

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Rvb=function(a,b,c){_.Wq(a,b)&&(_.Td(a,b),_.Xq(a,c))};

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Tvb;_.Svb=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")};Tvb=function(a){var b=_.Caa(_.HFa,function(c){return a==c});if(void 0===b)throw Error("Jb`"+a);return b};_.Uvb=function(a,b){void 0!==a.name?(this.name=a.name,this.code=_.HFa[a.name]):(this.code=a=a.code,this.name=Tvb(a));_.ia.call(this,_.Svb("%s %s",this.name,b))};_.lg(_.Uvb,_.ia);var Vvb=function(a,b){_.ni.call(this,a.type,b)};
_.lg(Vvb,_.ni);_.Wvb=function(){_.yi.call(this);this.H=new FileReader;this.H.onloadstart=(0,_.L)(this.b1,this);this.H.onprogress=(0,_.L)(this.b1,this);this.H.onload=(0,_.L)(this.b1,this);this.H.onabort=(0,_.L)(this.b1,this);this.H.onerror=(0,_.L)(this.b1,this);this.H.onloadend=(0,_.L)(this.b1,this)};_.lg(_.Wvb,_.yi);_.g=_.Wvb.prototype;_.g.abort=function(){try{this.H.abort()}catch(a){throw new _.Uvb(a,"aborting read");}};_.g.ek=function(){return this.H.result};
_.g.getError=function(){return this.H.error&&new _.Uvb(this.H.error,"reading file")};_.g.b1=function(a){this.dispatchEvent(new Vvb(a,this))};_.g.Ya=function(){_.Wvb.ub.Ya.call(this);delete this.H};

_.u();

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

var jxb,mxb;jxb=[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.haa=function(){return _.z(this,2)};_.TB.prototype.Tb="JmcaR";_.kxb=function(a){_.J.call(this,a)};_.K(_.kxb,_.J);_.kxb.prototype.H=function(){return _.Q(this,1)};_.kxb.prototype.Tb="dvhrqe";_.lxb=function(a){_.J.call(this,a)};_.K(_.lxb,_.J);_.lxb.prototype.Wo=function(){return _.z(this,2)};
_.lxb.prototype.I2=function(){return _.z(this,3)};mxb=[5];_.nxb=function(a){_.J.call(this,a)};_.K(_.nxb,_.J);_.nxb.prototype.H=function(){return _.Q(this,4)};_.nxb.prototype.setActive=function(a){return _.x(this,4,a)};_.oxb=function(a){_.J.call(this,a,-1,mxb)};_.K(_.oxb,_.J);_.g=_.oxb.prototype;_.g.E_=function(){return _.z(this,1)};_.g.BU=function(){return _.z(this,3)};_.g.sK=function(){return _.yb(this,_.lxb,5)};_.g.zk=function(){return _.z(this,6)};_.g.pq=function(){return _.z(this,7)};
_.g.aK=function(){return _.z(this,9)};_.g.nt=function(){return _.z(this,10)};_.g.eK=function(){return _.y(this,_.nxb,12)};_.g.Nk=function(){return _.z(this,13)};_.g.Xw=function(){return _.z(this,16)};_.g.oCb=function(){return _.lj(this,16)};_.g.Jv=function(){return _.z(this,17)};_.g.Tb="dzR11e";_.pxb=function(a){_.J.call(this,a,-1,jxb)};_.K(_.pxb,_.J);_.pxb.prototype.wl=function(){return _.y(this,_.oxb,1)};_.pxb.prototype.vN=function(){return _.y(this,_.TB,8)};
_.pxb.prototype.H=function(){return _.y(this,_.kxb,9)};_.UB=function(a){_.J.call(this,a,-1,qxb)};_.K(_.UB,_.J);_.UB.prototype.getUser=function(){return _.y(this,_.vk,1)};_.UB.prototype.getMetadata=function(){return _.y(this,_.pxb,3)};_.UB.prototype.Go=function(){return _.lj(this,3)};var qxb=[2];

_.u();

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

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

_.u();

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

_.VB={ZL:"bb",Gha:"cb",aV:"db",$U:"eb"};_.sxb=new Map([[_.VB.ZL,1],[_.VB.Gha,2],[_.VB.aV,2],[_.VB.$U,3]]);

_.u();

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


_.u();

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

_.Bzb=function(a){a=parseInt(a.H()||"0",10);return 100<=a?"over":90<=a?"near":"under"};_.Dzb=function(a,b,c,d){var e=_.qf.getService(a);a=e.Zf(a,c);_.Czb(a.H.Bj,b,d);e.Pf(a)};_.Czb=function(a,b,c){var d=new _.Ezb;b.PQ&&_.x(d,2,b.PQ);b.ZE&&0<=b.ZE&&_.x(d,1,b.ZE);b.quotaType&&_.x(d,3,b.quotaType);_.Fzb(a,d);c&&(b=new _.Gzb,_.x(b,1,c),_.Hzb(a,b))};_.Izb=function(a){return isNaN(a)?0:100<=a?6:95<=a?5:90<=a?4:80<=a?3:70<=a?2:1};_.Fzb=function(a,b){b&&(a=a.Rc(),_.G(a,29,b))};
_.Hzb=function(a,b){b&&(a=a.Rc(),_.G(a,38,b))};_.Ezb=function(a){_.J.call(this,a)};_.K(_.Ezb,_.J);_.Ezb.prototype.zk=function(){return _.z(this,3)};_.Gzb=function(a){_.J.call(this,a)};_.K(_.Gzb,_.J);_.Gzb.prototype.mi=function(){return _.z(this,1)};
var Jzb;_.Kzb=function(a,b,c){var d=_.C(a.get(_.qEa),1,"");a=_.Bzb(b);d=new _.Zi(d);a:switch(a){case "over":var e="o";break a;case "near":e="u";break a;default:e="m"}return _.aj(_.dj(_.dj(_.dj(_.dj(d,"i",e),"utm_source","drive"),"utm_medium","web"),"utm_campaign",Jzb(a,c)),-1!==parseInt(String(b.V()),10)?"upgrade":"")};
Jzb=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("sy17o");

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

_.u();

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


_.u();

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


_.u();

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


_.u();

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


_.u();

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

_.oD=function(a){_.J.call(this,a)};_.K(_.oD,_.J);_.oD.prototype.getKey=function(){return _.y(this,_.Kc,1)};_.oD.prototype.yt=function(){return _.lj(this,1)};_.oD.prototype.se=function(){return _.y(this,_.Qf,2)};
_.pD=function(a){_.J.call(this,a)};_.K(_.pD,_.J);_.pD.prototype.se=function(){return _.y(this,_.Qf,2)};

_.u();

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

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

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.CD=function(a,b,c){_.N.call(this);this.$m=null!=c?(0,_.L)(a,c):a;this.ka=b;this.qg=(0,_.L)(this.Vab,this);this.O=!1;this.V=0;this.W=this.H=null;this.ha=[]};_.lg(_.CD,_.N);_.g=_.CD.prototype;_.g.qe=function(a){this.ha=arguments;this.O=!1;this.H?this.W=_.jg()+this.ka:this.H=_.Ai(this.qg,this.ka)};_.g.stop=function(){this.H&&(_.Bi(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.$m.apply(null,this.ha)))};_.g.Ya=function(){this.stop();_.CD.ub.Ya.call(this)};_.g.Vab=function(){this.H&&(_.Bi(this.H),this.H=null);this.W?(this.H=_.Ai(this.qg,this.W-_.jg()),this.W=null):this.V?this.O=!0:(this.O=!1,this.$m.apply(null,this.ha))};

_.u();

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


_.u();

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

_.TF=function(a){_.J.call(this,a,-1,kVb)};_.K(_.TF,_.J);_.TF.prototype.getId=function(){return _.z(this,1)};_.TF.prototype.Nb=function(a){return _.x(this,1,a)};_.TF.prototype.Fu=function(){return _.z(this,2)};_.TF.prototype.zK=function(){return _.lj(this,2)};var kVb=[5,6,9,10,12,13,15,16];
var lVb;_.UF=function(a){_.J.call(this,a,-1,lVb)};_.K(_.UF,_.J);_.UF.prototype.Hm=function(){return _.z(this,1)};_.mVb=function(a,b){return _.x(a,1,b)};lVb=[2,4];

_.u();

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


_.u();

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

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

_.u();

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

_.tVb=function(a){_.J.call(this,a)};_.K(_.tVb,_.J);_.tVb.prototype.wi=function(){return _.z(this,3)};_.tVb.prototype.Gi=function(a){return _.x(this,3,a)};_.tVb.prototype.se=function(){return _.y(this,_.Qf,5)};_.tVb.prototype.getCustomer=function(){return _.z(this,6)};

_.u();

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

var uVb;_.Hc=function(a){_.ni.call(this,_.ad);this.error=a};_.K(_.Hc,_.ni);_.WF=function(a){_.J.call(this,a,-1,uVb)};_.K(_.WF,_.J);_.WF.prototype.H=function(){return _.se(this,1)};_.XF=function(a,b){return _.qj(a,1,b)};_.WF.prototype.V=function(){return _.se(this,2)};_.YF=function(a,b){return _.qj(a,2,b)};_.WF.prototype.se=function(){return _.y(this,_.Qf,3)};_.ZF=function(a,b){return _.G(a,3,b)};_.vVb=function(a,b){return _.x(a,5,b)};uVb=[1,2,6,11];

_.u();

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

_.$F=function(a){_.J.call(this,a)};_.K(_.$F,_.J);_.g=_.$F.prototype;_.g.wi=function(){return _.z(this,1)};_.g.Gi=function(a){return _.x(this,1,a)};_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.x(this,2,a)};_.g.se=function(){return _.y(this,_.Qf,3)};_.g.$q=function(){return _.z(this,4)};

_.u();

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

_.aG=function(a){_.J.call(this,a,-1,wVb)};_.K(_.aG,_.J);_.aG.prototype.H=function(){return _.se(this,1)};_.aG.prototype.V=function(){return _.se(this,2)};_.aG.prototype.se=function(){return _.y(this,_.Qf,3)};var wVb=[1,2];

_.u();

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

_.bG=function(a){_.J.call(this,a,-1,xVb)};_.K(_.bG,_.J);_.yVb=function(a,b){return _.qj(a,1,b)};_.bG.prototype.se=function(){return _.y(this,_.Qf,2)};var xVb=[1,3];

_.u();

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

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

_.u();

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


_.u();

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

_.iG=function(a){_.J.call(this,a)};_.K(_.iG,_.J);_.iG.prototype.qc=function(){return _.z(this,1)};_.sWb=function(a){var b=new _.iG;return _.x(b,1,a)};_.iG.prototype.wi=function(){return _.z(this,2)};_.iG.prototype.Gi=function(a){return _.x(this,2,a)};_.iG.prototype.se=function(){return _.y(this,_.Qf,3)};

_.u();

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

_.OH=function(a){_.J.call(this,a)};_.K(_.OH,_.J);_.OH.prototype.se=function(){return _.y(this,_.Qf,1)};_.PH=function(a,b){return _.G(a,1,b)};_.OH.prototype.eh=function(){return _.z(this,4)};_.OH.prototype.wJa=function(a){return _.x(this,4,a)};

_.u();

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


_.u();

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

var cdc;_.QH=function(a){_.J.call(this,a,-1,cdc)};_.K(_.QH,_.J);_.QH.prototype.H=function(){return _.se(this,1)};_.QH.prototype.se=function(){return _.y(this,_.Qf,2)};_.ddc=function(a,b){return _.G(a,2,b)};_.QH.prototype.wi=function(){return _.Dj(this,3,20)};_.QH.prototype.Gi=function(a){return _.x(this,3,a)};_.edc=function(a,b){return _.x(a,4,b)};cdc=[1];

_.u();

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

/*

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

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.hdc=function(a){_.N.call(this);this.O=a;this.H={};this.O.UO((0,_.L)(this.V,this))};_.lg(_.hdc,_.N);_.jdc=function(a,b){if(-1!=b.indexOf(":"))throw Error("df`"+b);if(b in a.H)throw Error("ef`"+b);var c=new idc(a,b);return a.H[b]=c};_.hdc.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)}};_.hdc.prototype.Ya=function(){_.Ta(this.H,function(a){_.ca(a)});_.ca(this.O);delete this.H;delete this.O};
var idc=function(a,b){_.N.call(this);this.Ig=a;this.H=b};_.lg(idc,_.N);_.g=idc.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.uVa,this,b),c)};_.g.UO=function(a){this.O=(0,_.L)(this.uVa,this,a)};_.g.send=function(a,b){if(this.isDisposed())throw Error("ff");this.Ig.O.send(this.H+":"+a,b)};_.g.uVa=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("sy1gf");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.kdc=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a;return c};_.ldc=function(){this.blockSize=-1};
_.RH=function(){this.blockSize=-1;this.blockSize=64;this.H=Array(4);this.W=Array(this.blockSize);this.V=this.O=0;this.reset()};_.lg(_.RH,_.ldc);_.RH.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 mdc=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};
_.RH.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;)mdc(this,a,f),f+=this.blockSize;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.blockSize){mdc(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.blockSize){mdc(this,d);e=0;break}}this.O=e;this.V+=b};
_.RH.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("sy1gg");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var ndc,SH,odc,UH,qdc,pdc;ndc=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(_.Zga);try{delete a[_.Zga]}catch(b){}};
SH=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[_.Zga]||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++)ndc(c[a]);return b.join("")};_.TH=function(a,b,c){if("number"===typeof a)var d={name:pdc(a)};else d=a,a=qdc(a.name);this.code=a;this.O=d;b="Error "+b+": "+this.getName();c&&(b+=", "+c);_.ia.call(this,b)};_.lg(_.TH,_.ia);_.TH.prototype.getName=function(){return this.O.name||""};
UH={rlb:1,rkb:2,NOT_FOUND_ERR:3,v$a:4,B$a:5,tkb:6,mlb:7,ABORT_ERR:8,Lkb:9,k$b:10,TIMEOUT_ERR:11,Ikb:12,INVALID_ACCESS_ERR:13,INVALID_STATE_ERR:14};_.rdc=(_.n.H||_.n.O||UH).rlb;_.sdc=(_.n.H||_.n.O||UH).rkb;_.tdc=(_.n.H||_.n.O||UH).NOT_FOUND_ERR;_.udc=(_.n.H||_.n.O||UH).v$a;_.vdc=(_.n.H||_.n.O||UH).B$a;_.wdc=(_.n.H||_.n.O||UH).tkb;_.xdc=(_.n.H||_.n.O||UH).mlb;_.ydc=(_.n.H||_.n.O||UH).ABORT_ERR;_.zdc=(_.n.H||_.n.O||UH).Lkb;_.Adc=(_.n.H||_.n.O||UH).TIMEOUT_ERR;_.Bdc=(_.n.H||_.n.O||UH).Ikb;
_.Cdc=(_.n.DOMException||UH).INVALID_ACCESS_ERR;_.Ddc=(_.n.DOMException||UH).INVALID_STATE_ERR;
qdc=function(a){switch(a){case "UnknownError":return _.rdc;case "NotFoundError":return _.tdc;case "ConstraintError":return _.udc;case "DataError":return _.vdc;case "TransactionInactiveError":return _.xdc;case "AbortError":return _.ydc;case "ReadOnlyError":return _.zdc;case "TimeoutError":return _.Adc;case "QuotaExceededError":return _.Bdc;case "InvalidAccessError":return _.Cdc;case "InvalidStateError":return _.Ddc;default:return _.rdc}};
pdc=function(a){switch(a){case _.rdc:return"UnknownError";case _.tdc:return"NotFoundError";case _.udc:return"ConstraintError";case _.vdc:return"DataError";case _.xdc:return"TransactionInactiveError";case _.ydc:return"AbortError";case _.zdc:return"ReadOnlyError";case _.Adc:return"TimeoutError";case _.Bdc:return"QuotaExceededError";case _.Cdc:return"InvalidAccessError";case _.Ddc:return"InvalidStateError";default:return"UnknownError"}};
_.VH=function(a,b){return"error"in a?new _.TH(a.error,b):new _.TH({name:"UnknownError"},b)};_.WH=function(a,b){if("name"in a)return b=b+": "+a.message,new _.TH(a,b);if("code"in a){var c=pdc(a.code);b=b+": "+a.message;return new _.TH({name:c},b)}return new _.TH({name:"UnknownError"},b)};
_.Edc=function(a){this.H=a};_.Fdc=_.n.IDBKeyRange||_.n.webkitIDBKeyRange;_.Edc.prototype.range=function(){return this.H};
var Gdc=function(a){this.H=a};Gdc.prototype.getName=function(){return this.H.name};var Hdc=function(a,b,c,d){var e=new _.$h;try{var f=a.H[b](d)}catch(h){return c+=" with key "+SH(d),e.Gd(_.WH(h,c)),e}f.onsuccess=function(h){e.callback(h.target.result)};f.onerror=function(h){c+=" with key "+SH(d);e.Gd(_.VH(h.target,c))};return e};Gdc.prototype.get=function(a){return Hdc(this,"get","getting from index "+this.getName(),a)};
Gdc.prototype.getKey=function(a){return Hdc(this,"getKey","getting key from index "+this.getName(),a)};Gdc.prototype.getAll=function(a,b){return _.Idc(this,"getAll","getting all from index "+this.getName(),a,b)};
_.Idc=function(a,b,c,d,e){var f;void 0===d?f=void 0:f=d instanceof _.Edc?d.range():(new _.Edc(_.Fdc.only(d))).range();var h=new _.$h;try{var k=a.H[b](f,e)}catch(l){return c+=" for range "+(f?SH(f):"<all>"),h.Gd(_.WH(l,c)),h}k.onsuccess=function(){h.callback(k.result)};k.onerror=function(l){c+=" for range "+(f?SH(f):"<all>");h.Gd(_.VH(l.target,c))};return h};
var Jdc=function(a){this.H=a};Jdc.prototype.getName=function(){return this.H.name};var Kdc=function(a,b,c,d,e){var f=new _.$h;try{var h=e?a.H[b](d,e):a.H[b](d)}catch(k){return c+=SH(d),e&&(c+=", with key "+SH(e)),f.Gd(_.WH(k,c)),f}h.onsuccess=function(k){f.callback(k.target.result)};h.onerror=function(k){c+=SH(d);e&&(c+=", with key "+SH(e));f.Gd(_.VH(k.target,c))};return f};_.g=Jdc.prototype;_.g.put=function(a,b){return Kdc(this,"put","putting into "+this.getName()+" with value",a,b)};
_.g.add=function(a,b){return Kdc(this,"add","adding into "+this.getName()+" with value ",a,b)};_.g.remove=function(a){var b=new _.$h;try{var c=this.H["delete"](a instanceof _.Edc?a.range():a)}catch(e){return c="removing from "+this.getName()+" with key "+SH(a),b.Gd(_.WH(e,c)),b}c.onsuccess=function(){b.callback()};var d=this;c.onerror=function(e){var f="removing from "+d.getName()+" with key "+SH(a);b.Gd(_.VH(e.target,f))};return b};
_.g.get=function(a){var b=new _.$h;try{var c=this.H.get(a)}catch(e){return c="getting from "+this.getName()+" with key "+SH(a),b.Gd(_.WH(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 "+SH(a);b.Gd(_.VH(e.target,f))};return b};_.g.getAll=function(a,b){return Ldc(this,"getting all from index "+this.getName(),a,b)};
var Ldc=function(a,b,c,d){var e;void 0===c?e=void 0:e=c instanceof _.Edc?c.range():(new _.Edc(_.Fdc.only(c))).range();var f=new _.$h;try{var h=a.H.getAll(e,d)}catch(k){return b+=" for range "+(e?SH(e):"<all>"),f.Gd(_.WH(k,b)),f}h.onsuccess=function(){f.callback(h.result)};h.onerror=function(k){b+=" for range "+(e?SH(e):"<all>");f.Gd(_.VH(k.target,b))};return f};
Jdc.prototype.clear=function(){var a="clearing store "+this.getName(),b=new _.$h;try{var c=this.H.clear()}catch(d){return b.Gd(_.WH(d,a)),b}c.onsuccess=function(){b.callback()};c.onerror=function(d){b.Gd(_.VH(d.target,a))};return b};Jdc.prototype.getIndex=function(a){try{return new Gdc(this.H.index(a))}catch(b){throw _.WH(b,"getting index "+a);}};
Jdc.prototype.count=function(a){var b=new _.$h;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(_.VH(e.target,d.getName()))}}catch(e){b.Gd(_.WH(e,this.getName()))}return b};
var Mdc=function(a,b){_.yi.call(this);this.H=a;this.O=b;this.Eb=new _.of(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.xbb)};_.lg(Mdc,_.yi);_.g=Mdc.prototype;_.g.xbb=function(a){a.target instanceof _.TH?this.dispatchEvent({type:"error",target:a.target}):this.dispatchEvent({type:"error",target:_.VH(a.target,"in transaction")})};_.g.Fg=function(){return this.H.mode};
_.g.objectStore=function(a){try{return new Jdc(this.H.objectStore(a))}catch(b){throw _.WH(b,"getting object store "+a);}};_.g.commit=function(a){if(this.H.commit||!a)try{this.H.commit()}catch(b){throw _.WH(b,"cannot commit the transaction");}};
_.g.wait=function(){var a=new _.$h;_.ri(this,"complete",(0,_.L)(a.callback,a));var b=_.ri(this,"abort",function(){_.ui(c);a.Gd(new _.TH(_.ydc,"waiting for transaction to complete"))});var c=_.ri(this,"error",function(e){_.ui(b);a.Gd(e.target)});var d=this.O;return a.addCallback(function(){return d})};_.g.abort=function(){this.H.abort()};_.g.Ya=function(){Mdc.ub.Ya.call(this);this.Eb.dispose()};
var Ndc=function(a){_.yi.call(this);this.H=a;this.Eb=new _.of(this);this.Eb.listen(this.H,"abort",(0,_.L)(this.dispatchEvent,this,"abort"));this.Eb.listen(this.H,"error",this.ybb);this.Eb.listen(this.H,"versionchange",this.Drb);this.Eb.listen(this.H,"close",(0,_.L)(this.dispatchEvent,this,"close"))};_.lg(Ndc,_.yi);_.g=Ndc.prototype;_.g.uta=!0;_.g.ybb=function(a){a=(a=a.target)&&a.error;this.dispatchEvent({type:"error",errorCode:a&&a.severity})};
_.g.Drb=function(a){this.dispatchEvent(new Odc(a.oldVersion,a.newVersion))};_.g.close=function(){this.uta&&(this.H.close(),this.uta=!1)};_.g.Bg=function(){return this.uta};_.g.getName=function(){return this.H.name};_.g.nj=function(){return Number(this.H.version)};_.Pdc=function(a,b,c){try{return new Jdc(a.H.createObjectStore(b,c))}catch(d){throw _.WH(d,"creating object store "+b);}};
_.Qdc=function(a,b,c){try{var d=c?a.H.transaction(b,c):a.H.transaction(b);return new Mdc(d,a)}catch(e){throw _.WH(e,"creating transaction");}};Ndc.prototype.Ya=function(){Ndc.ub.Ya.call(this);this.Eb.dispose()};var Odc=function(a,b){_.ni.call(this,"versionchange");this.oldVersion=a;this.newVersion=b};_.lg(Odc,_.ni);
_.Rdc=function(){void 0==odc&&(odc=_.n.indexedDB||_.n.mozIndexedDB||_.n.webkitIndexedDB||_.n.moz_indexedDB);return odc};
_.Sdc=function(a,b,c,d){var e=new _.$h;b=b?_.Rdc().open(a,b):_.Rdc().open(a);b.onsuccess=function(f){f=new Ndc(f.target.result);e.callback(f)};b.onerror=function(f){e.Gd(_.VH(f.target,"opening database "+a))};b.onupgradeneeded=function(f){if(c){var h=new Ndc(f.target.result);c(new Odc(f.oldVersion,f.newVersion),h,new Mdc(f.target.transaction,h))}};b.onblocked=function(f){d&&d(new Odc(f.oldVersion,f.newVersion))};return e};

_.u();

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

/*

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

_.Tdc=function(a,b,c){_.rma(a.url,function(d){d=d.target;d.tA()?b(d.Wk()):c(d.Cb())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};_.Udc=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};_.Wdc=function(a){_.J.call(this,a,-1,Vdc)};_.K(_.Wdc,_.J);var Vdc=[2];
_.Xdc=function(a){_.J.call(this,a)};_.K(_.Xdc,_.J);var Ydc=function(){var a=new _.Xdc,b=document.documentElement.getAttribute("lang");return _.x(a,5,b)};_.Xdc.prototype.Li=function(){return _.z(this,7)};
_.Zdc=function(a){_.J.call(this,a)};_.K(_.Zdc,_.J);
var $dc;_.ZH=function(a){_.J.call(this,a,31,$dc)};_.K(_.ZH,_.J);_.$H=function(a,b){return _.x(a,8,b)};$dc=[3,20,27];
var bec=function(a){_.J.call(this,a,17,aec)};_.K(bec,_.J);var cec=function(a){var b=Date.now().toString();return _.x(a,4,b)},dec=function(a,b){return _.sj(a,3,b)},eec=function(a,b){return _.x(a,14,b)},aec=[3,5];
var gec=function(a){_.J.call(this,a,6,fec)};_.K(gec,_.J);var fec=[5];
var hec=function(a){_.J.call(this,a)};_.K(hec,_.J);
var iec=_.Eb(175237375,hec);
_.aI=function(a,b,c,d,e,f,h,k,l,p,q){_.yi.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;_.yi.call(this);this.Uc=a;this.jc=b||_.hg;this.ka=new bec;this.Ad=d;this.yb=q;this.he=_.Ob(_.Bja,0,1);this.wa=e||null;this.Ga=c||null;this.Qa=h||!1;this.$a=l||null;this.Yf=null;this.withCredentials=!k;this.tc=f||!1;this.Rd=!this.tc&&(_.jj.yo&&_.Rb(65)||_.jj.jv&&_.Rb(45)||_.jj.xx&&
_.Rb(12)||_.Sa()&&0<=_.Ra(_.zaa(),12))&&!!_.Of()&&!!_.Of().navigator&&!!_.Of().navigator.sendBeacon;a=_.x(new _.Zdc,1,1);f||(f=Ydc(),_.G(a,11,f));_.G(this.ka,1,a);_.x(this.ka,2,this.Uc);this.ma=new _.XH(1E4,3E5,.1);this.H=new _.zi(this.ma.Wa());this.Ja(this.H);_.df(this.H,"tick",_.hha(jec(this,p)),!1,this);this.La=new _.zi(6E5);this.Ja(this.La);_.df(this.La,"tick",_.hha(jec(this,p)),!1,this);this.Qa||this.La.start();this.tc||(_.df(document,"visibilitychange",function(){"hidden"===document.visibilityState&&
r.Ua()}),_.df(document,"pagehide",this.Ua,!1,this))};_.K(_.aI,_.yi);var jec=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};_.aI.prototype.Ya=function(){this.Ua();_.yi.prototype.Ya.call(this)};var kec=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};_.aI.prototype.W=function(a){a instanceof _.ZH?this.log(a):(a=_.$H(new _.ZH,a.Hc()),this.log(a))};
_.lec=function(a,b){b?(a.V||(a.V=new _.Wdc),b=b.Hc(),_.x(a.V,4,b)):a.V&&_.vb(a.V,4)};_.mec=function(a){a.Kb=a.Rd};_.nec=function(a,b){a.ma=new _.XH(1>b?1:b,3E5,.1);a.H.setInterval(a.ma.Wa())};
_.aI.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)}_.lj(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 oec(a));this.Qa||this.H.enabled||this.H.start()};
_.aI.prototype.flush=function(a,b){var c=this;if(0===this.O.length)a&&a();else if(this.kb)pec(this);else{var d=Date.now();if(this.Nc>d&&this.ob<d)b&&b("throttled");else{var e=eec(dec(cec(this.ka.clone()),this.O),this.ta);d={};var f=this.jc();f&&(d.Authorization=f);var h=kec(this);this.Ga&&(d["X-Goog-AuthUser"]=this.Ga,h=_.Si(h,"authuser",this.Ga));this.$a&&(d["X-Goog-PageId"]=this.$a,h=_.Si(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.dbc(k));var p={url:h,body:k,Mnb: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 gec(B)}catch(E){}A&&(w=Number(_.kna(A,1,"-1")),0<w&&(c.ob=Date.now(),c.Nc=c.ob+w),A=_.Aj(A,iec))&&(A=_.Dj(A,1,-1),-1!=A&&(c.Qb||_.nec(c,A)))}a&&a()},r=
function(w){var A=_.yb(e,_.ZH,3);_.YH(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.Qa||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.Mnb=2;v()},function(){v()}):v()}}}};_.aI.prototype.Ua=function(){this.ha||(this.Kb&&pec(this),this.Gb&&qec(this),this.flush())};
var pec=function(a){rec(a,32,10,function(b,c){b=_.Si(b,"format","json");b=_.Of().navigator.sendBeacon(b,c.Hc());a.kb&&!b&&(a.kb=!1);return b})},qec=function(a){rec(a,6,5,function(b,c){b=_.Qi(b,"format","base64json","p",_.kj(c.Hc(),3));if(15360<b.length)return!1;_.$g(new Image,b);return!0})},rec=function(a,b,c,d){if(0!==a.O.length){var e=_.mma(kec(a),"format");e=_.Qi(e,"auth",a.jc(),"authuser",a.Ga||"0");for(var f=0;f<c&&a.O.length;++f){var h=a.O.slice(0,b),k=dec(cec(a.ka.clone()),h);0===f&&eec(k,
a.ta);if(!d(e,k))break;a.O=a.O.slice(h.length)}a.H.enabled&&a.H.stop();a.ta=0}},oec=function(){_.ni.call(this,"event-logged",void 0)};_.K(oec,_.ni);

_.u();

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

var sec=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 P=1518500249}else M=A^B^E,P=1859775393;else 60>w?(M=A&B|E&(A|B),P=2400959708):(M=A^B^E,P=3395469782);M=((r<<5|r>>>27)&4294967295)+
M+I+P+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}}},tec=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("gf`"+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("hf`"+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 vec=function(a,b,c){var d=String(_.n.location.href);return d&&a&&b?[b,uec(tec(d),a,c||null)].join(" "):null},uec=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)}),wec(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=wec(e.join(" "));a=[c,a];_.qa(h)||a.push(h.join(""));return a.join("_")},wec=function(a){var b=
sec();b.update(a);return b.digestString().toLowerCase()};
var xec={};
var yec,Aec;yec=function(a){return!!xec.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};_.zec=function(a){a=void 0===a?!1:a;var b=_.n.__SAPISID||_.n.__APISID||_.n.__3PSAPISID||_.n.__OVERRIDE_SID;yec(a)&&(b=b||_.n.__1PSAPISID);if(b)return!0;var c=new _.YNa(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");yec(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};Aec=function(a,b,c,d){(a=_.n[a])||(a=(new _.YNa(document)).get(b));return a?vec(a,c,d):null};
_.Bec=function(a,b){b=void 0===b?!1:b;var c=tec(String(_.n.location.href)),d=[];if(_.zec(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 _.YNa(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?vec(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&yec(b)&&((b=Aec("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=Aec("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",
a))&&d.push(a))}return 0==d.length?null:d.join(" ")};

_.u();

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

_.Cec=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=_.Tdc;this.H=""};
_.Cec.prototype.build=function(){var a=new _.aI(this.ka,this.La?this.La:_.Bec,this.wa,this.ma,this.V,this.W,!1,void 0,void 0,void 0,this.ta?this.ta:void 0);if(this.Ga){var b=this.Ga;_.z(b,1)||_.x(b,1,1);_.G(a.ka,1,b)}if(this.O){b=this.O;var c=_.y(a.ka,_.Zdc,1),d=_.y(c,_.Xdc,11);d||(d=new _.Xdc);_.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&&_.lec(a,this.Ba);this.Qa&&(b=this.Qa,a.V||(a.V=new _.Wdc),_.qj(a.V,2,b));this.Ia&&(b=this.Ia,
a.Qb=!0,_.nec(a,b));return a};

_.u();

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

_.Dec=function(a,b,c){a.O[b.getId()]=c;a.H&&c.O(a.H)};_.Eec=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null};_.Eec.prototype.QA=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=_.$H(new _.ZH,a.Hc());b(a);return new _.Uh(function(d){c(d,function(){d()})}.bind(this))};
_.Fec=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null;this.O&&_.mec(this.O)};_.Fec.prototype.QA=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=_.$H(new _.ZH,a.Hc());b(a);c()};

_.u();

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


_.u();

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

var Gec;Gec=[1];_.bI=function(a){_.J.call(this,a,-1,Gec)};_.K(_.bI,_.J);_.bI.prototype.H=function(){return _.se(this,1)};_.Hec=function(a,b){return _.qj(a,1,b)};_.cI=function(a){_.J.call(this,a)};_.K(_.cI,_.J);_.g=_.cI.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.zt=function(){return _.lj(this,5)};_.Iec=function(a){_.J.call(this,a)};_.K(_.Iec,_.J);_.Iec.prototype.H=function(){return _.z(this,1)};_.Iec.prototype.Cb=function(){return _.z(this,2)};_.Iec.prototype.Dc=function(a){return _.x(this,2,a)};_.Iec.prototype.V=function(){return _.z(this,3)};_.Kec=function(a){_.J.call(this,a,-1,Jec)};_.K(_.Kec,_.J);_.Kec.prototype.H=function(){return _.se(this,1)};var Jec=[1];
_.Mec=function(a){_.J.call(this,a,-1,Lec)};_.K(_.Mec,_.J);_.Mec.prototype.H=function(){return _.yb(this,_.Iec,1)};var Lec=[1];
_.Oec=function(a){_.J.call(this,a,-1,Nec)};_.K(_.Oec,_.J);_.Oec.prototype.H=function(){return _.yb(this,_.Mec,1)};var Nec=[1];
_.Pec=function(a){_.J.call(this,a)};_.K(_.Pec,_.J);_.Pec.prototype.V=function(){return _.y(this,_.Oec,1)};_.Pec.prototype.H=function(){return _.y(this,_.Kec,2)};
_.dI=function(a){_.J.call(this,a,-1,Qec)};_.K(_.dI,_.J);_.g=_.dI.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.Bd=function(){return _.yb(this,_.Ik,2)};_.g.iB=function(a){return _.sj(this,2,a)};_.g.dh=function(a,b){return _.yj(this,2,a,_.Ik,b)};_.g.$j=function(){return _.z(this,3)};_.g.Rl=function(){return _.R(this,5,!0)};_.g.X6=function(){return _.y(this,_.Pec,7)};_.g.vta=function(){return _.Q(this,8)};_.g.Vf=function(){return _.z(this,17)};
_.g.bQ=function(a){return _.x(this,17,a)};_.g.We=function(){return _.z(this,12)};_.g.ri=function(a){return _.x(this,12,a)};_.g.ao=function(){return _.z(this,15)};_.g.gla=function(){return _.se(this,18)};var Qec=[2,14,18];_.dI.prototype.Tb="eO39Zd";

_.u();

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

var Rec=function(a){_.J.call(this,a)};_.K(Rec,_.J);Rec.prototype.getEmail=function(){return _.C(this,3,"")};Rec.prototype.yq=function(){return _.lj(this,3)};_.eI=function(a){return _.y(a,Rec,36,1)};

_.u();

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


_.u();

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

_.fI=function(a,b){return _.x(a,b,_.hna)};_.Sec=function(a){if(_.Zma)return _.n.atob(a);var b="";_.ana(a,function(c){b+=String.fromCharCode(c)});return b};_.gI=function(a,b,c,d,e,f,h){_.aI.call(this,a,_.Bec,b,_.Tdc,c,d,e,void 0,f,h)};_.K(_.gI,_.aI);

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Tec;_.hI=function(a,b,c){if(0!==a.O)return!1;_.x(b,c,a.H.ka());return!0};Tec=[3,42];_.Uec=function(a){_.J.call(this,a,-1,Tec)};_.K(_.Uec,_.J);_.Uec.prototype.getMimeType=function(){return _.z(this,27)};var Vec=function(a,b){if(b&&a in b)return a;var c=_.pGa();return c?(c=c.toLowerCase(),a=c+_.Rja(a),void 0===b||a in b?a:null):null};
var Wec=function(a){_.ni.call(this,"visibilitychange");this.hidden=a};_.K(Wec,_.ni);
_.Xec=function(a){_.yi.call(this);this.xd=a||_.sc();if(this.Sz=this.vub())this.H=_.df(this.xd.Vb(),this.Sz,(0,_.L)(this.zbb,this))};_.lg(_.Xec,_.yi);_.g=_.Xec.prototype;_.g.vub=_.gea(function(){var a=this.Lu(),b="hidden"!=this.XAa();if(a){var c;b?c=((_.pGa()||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});_.g.XAa=_.gea(function(){return Vec("hidden",this.xd.Vb())});_.g.nwb=_.gea(function(){return Vec("visibilityState",this.xd.Vb())});_.g.Lu=function(){return!!this.XAa()};
_.g.SB=function(){return!!this.xd.Vb()[this.XAa()]};_.g.zbb=function(){var a=this.Lu()?this.xd.Vb()[this.nwb()]:null;a=new Wec(this.SB(),a);this.dispatchEvent(a)};_.g.Ya=function(){_.ui(this.H);_.Xec.ub.Ya.call(this)};

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Yec=function(a,b,c,d,e,f){var h=new _.Zi(null,void 0);a&&h.Rr(a);b&&_.Ima(h,b);c&&h.Nn(c);d&&h.TA(d);e&&h.Ai(e);f&&_.$i(h,f);return h};_.Zec=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};_.iI=function(a){return new _.Uh(function(b){var c=a.length,d=[];if(c)for(var e=function(k,l,p){c--;d[k]=l?{c$:!0,value:p}:{c$:!1,reason:p};0==c&&b(d)},f=0,h;f<a.length;f++)h=a[f],_.xka(h,_.Ob(e,f,!0),_.Ob(e,f,!1));else b(d)})};
_.jI=function(a,b,c){_.N.call(this);this.$m=null!=c?a.bind(c):a;this.ha=b;this.W=null;this.O=!1;this.V=0;this.H=null};_.K(_.jI,_.N);_.g=_.jI.prototype;_.g.qe=function(a){this.W=arguments;this.H||this.V?this.O=!0:$ec(this)};_.g.stop=function(){this.H&&(_.Bi(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,$ec(this))};_.g.Ya=function(){_.N.prototype.Ya.call(this);this.stop()};
var $ec=function(a){a.H=_.Ai(function(){a.H=null;a.O&&!a.V&&(a.O=!1,$ec(a))},a.ha);var b=a.W;a.W=null;a.$m.apply(null,b)};

_.u();

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

var afc=function(a){_.J.call(this,a)},ffc;_.K(afc,_.J);var bfc=function(a){_.J.call(this,a)};_.K(bfc,_.J);_.kI=function(a){_.J.call(this,a)};_.K(_.kI,_.J);_.kI.prototype.s5=function(a){_.x(this,3,a)};_.kI.prototype.Jl=function(a){return _.G(this,5,a)};_.kI.prototype.getMimeType=function(){return _.z(this,7)};var cfc=[2],dfc=function(a){_.J.call(this,a,-1,cfc)};_.K(dfc,_.J);var efc=function(a){_.J.call(this,a)};_.K(efc,_.J);ffc=function(a){this.H=a};_.gfc=function(a){this.Ld=a};
_.gfc.prototype.getId=function(){return this.Ld};var hfc=function(a){_.J.call(this,a)};_.K(hfc,_.J);hfc.prototype.nj=function(){return _.z(this,1)};var ifc=function(a){_.J.call(this,a)};_.K(ifc,_.J);
var kfc=function(){this.H=this.W=!1;this.Po=null;for(var a=this.V=this.O=0;a<_.HBa.length;a++){var b=_.HBa[a];if(b&&b.chrome&&b.chrome.runtime&&b.chrome.runtime.connect){this.W=!0;jfc(this,b);break}}},jfc=function(a,b){a.Po=b.chrome.runtime.connect("ciiamoeghmklpofjbocenebdfbgjapaa");a.H=!0;a.Po.onDisconnect.addListener(function(){a.H=!1});document.addEventListener("mousemove",function(c){a.O=c.clientX;a.V=c.clientY})};
kfc.prototype.QA=function(a){if(this.W&&this.H){var b=_.y(a,_.nc,2)||new _.nc,c=_.y(a,_.yo,5)||new _.yo,d=_.y(a,_.kI,3)||new _.kI;a=_.yb(a,_.lo,1);a=_.m(a);for(var e=a.next();!e.done;e=a.next())this.Po.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 lfc=function(){_.ro.call(this)};_.K(lfc,_.ro);lfc.prototype.Sv=function(){return 1==_.z(_.y(this.H,afc,7),1)};var mfc=new _.no("high_frequency_builder");
var nfc=function(a,b,c){a=new _.zi(a);c.Ja(a);var d=new _.of(c);c.Ja(d);d.listen(a,"tick",b);a.start()};
var ofc=function(){_.ro.call(this)};_.K(ofc,_.ro);var pfc=function(a,b,c){var d=1E3*Date.now();if(0==b){b=new _.fo;var e=new _.xza;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 _.fo,e=new _.yza,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},qfc=new _.no("system_builder");
var rfc=function(a,b){_.N.call(this);this.O=a;this.H=new _.Xec(b);this.Ja(this.H);this.Eb=new _.of(this);this.Ja(this.Eb);this.H.Lu()&&this.Eb.listen(this.H,"visibilitychange",this.V)};_.K(rfc,_.N);rfc.prototype.V=function(){if(this.O.cQ()){var a=this.H.SB()?102001:102E3;a=this.O.tG(a,0);this.O.an(a)}};
var sfc=function(a,b,c){c=void 0===c?!1:c;_.N.call(this);this.H=a;this.O=b;this.Ja(this.O);this.W=c;this.V=null};_.K(sfc,_.N);_.g=sfc.prototype;_.g.an=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.Yb()&&b.O.qe();return new ffc(a)};_.g.tG=function(a,b){a=pfc(tfc(this.H,a),b,this.H.ha++);1==b&&this.H.ka.add(a);return a};_.g.bM=function(){return this.H.O};
_.g.Nw=function(a){var b=this.H,c=_.so(a,qfc),d=b.ha++,e=_.y(_.y(c.H,_.fo,8),_.yza,2),f=1E3*Date.now();_.x(e,2,f);_.x(c.H,13,d);b.ka.remove(_.z(a.H,12))};_.g.G_=function(){var a=this.O;if(!a.ha||a.H.V){var b=ufc(a.H,691).build();b=vfc(a.H,[b]);a.ka.QA(b)}a.W();this.H.ma=!1;this.V&&(_.ca(this.V),this.V=null)};_.g.H_=function(){var a=this.H,b=ufc(a,716);wfc(a,b);b=b.build();a.H.add(b);a.wa=!0;a.ma=!0;this.O.initialize();this.O.O.qe();this.W&&(this.V=new rfc(this))};_.g.Y6=function(){this.O.W();return _.iI(Array.from(this.O.V)).then()};
_.g.cQ=function(){var a=this.H;return a.wa&&a.ma&&!0};
var xfc=function(a,b,c,d,e){_.N.call(this);this.H=a;this.ta=b;this.ka=c;this.O=new _.jI(this.W,3E3,this);this.V=new Set;this.ha=d;this.ma=e||6E4};_.K(xfc,_.N);xfc.prototype.initialize=function(){nfc(this.ma,this.O.qe,this.O);nfc(36E5,this.wa,this)};xfc.prototype.W=function(){var a=this;if(0!=this.H.H.Yb()&&(!this.ha||this.H.V)){var b=yfc(this.H),c=this.ta.QA(b);c&&(_.Zh(c,function(){return void a.V.delete(c)}),this.V.add(c))}};
xfc.prototype.wa=function(){var a=this.H,b=ufc(a,1153).build();a.H.add(b);this.O.qe()};
var zfc=function(a){_.N.call(this);this.H=a;this.Ja(this.H)};_.K(zfc,_.N);_.g=zfc.prototype;_.g.an=function(a){a=this.H.an(a);this.Y6();return a};_.g.tG=function(a,b){return this.H.tG(a,b)};_.g.bM=function(){return this.H.bM()};_.g.Nw=function(a){return this.H.Nw(a)};_.g.G_=function(){return this.H.G_()};_.g.H_=function(){return this.H.H_()};_.g.Y6=function(){return this.H.Y6()};_.g.cQ=function(){return this.H.cQ()};
var Afc=function(){};Afc.prototype.xR=function(){return new lfc};
var Bfc=function(){this.H=[]};Bfc.prototype.add=function(a){this.H.push(a)};Bfc.prototype.Yb=function(){return this.H.length};
var Cfc=function(){this.H={}};Cfc.prototype.add=function(a){this.H[_.z(a.H,12)]=a};Cfc.prototype.remove=function(a){delete this.H[a]};
var Dfc=function(a,b){this.O=a;this.Ba=b;this.ha=1;this.ta=this.W=null;this.ka=new Cfc;this.H=new Bfc;this.ma=this.wa=this.V=!1},tfc=function(a,b){a=_.so((new _.ro).initialize(new _.lo,a.Ba),qfc);_.x(a.H,10,b);return a},yfc=function(a){var b=a.H,c=b.H;b.H=[];return vfc(a,c)},vfc=function(a,b){var c=new _.WAa;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],_.ko,5);if(k&&_.y(k,_.Uec,1)){k=_.y(k,_.Uec,1);_.lj(k,12)&&
void 0===e&&(e=_.Q(k,12));k=_.y(k,bfc,20);if(void 0!==k&&void 0===f){f=new ifc;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 _.kI),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);_.sj(c,1,b);return c},ufc=function(a,b){var c=pfc(tfc(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 efc;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 dfc,b=_.x(e,1,b),d&&_.sj(b,2,d),d=_.to(c),_.G(d,3,b));wfc(a,c);return c},wfc=function(a,b){a.W=_.z(b.H,12);a.ta=_.z(_.y(_.y(b.H,_.fo,8),_.xza,1),1)};
var Efc=function(){};Efc.prototype.xR=function(){return new ofc};
var Ffc=function(){this.H=this.O=null};Ffc.prototype.build=function(){null==this.H&&(this.H=new _.wAa);_.vo(this.H,qfc,new Efc);_.vo(this.H,mfc,new Afc);var a=this.H;var b=this.O;if(!_.lj(_.Gfc(b),1)){var c=_.Gfc(b),d=new _.MAa;_.G(c,1,d)}b=_.y(_.Gfc(b),_.MAa,1);a.H=b;b=_.Ya(a.O);for(c=0;c<b.length;c++)b[c].O(a.H);return new Dfc(this.O,this.H)};
var Hfc=function(){this.O=new _.nc;this.V=null;this.ha=new hfc;_.x(this.ha,1,6);this.H=this.W=null};Hfc.prototype.setSessionId=function(a){this.O.setSessionId(a);return this};_.Ifc=function(a,b){_.x(a.O,2,b);return a};_.Jfc=function(a,b){if(null==a.W){a.W=new _.UAa;var c=_.Gfc(a);_.G(c,2,a.W)}_.x(a.W,1,b)};_.Gfc=function(a){null==a.V&&(a.V=new _.yo);return a.V};_.Kfc=function(a){null==a.H&&(a.H=new _.kI);return a.H};
_.Lfc=function(){this.H=this.ha=null;this.W=new Hfc;this.V=null;this.ka=this.ma=!1;this.O=null};_.Mfc=function(a,b){a.ha=b;return a};_.Nfc=function(a,b){a.H=b;return a};_.Ofc=function(a,b){a.V=b;return a};_.Lfc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.Pfc=function(a,b){_.x(a.W.O,6,b);return a};
_.Lfc.prototype.build=function(){var a=new Ffc;a.O=this.W;null!=this.V&&(a.H=this.V);a=a.build();if(this.ka){var b=new kfc;this.H=this.ha=b}b=new xfc(a,this.ha,this.H,this.ma,this.O);a=new sfc(a,b,!1);this.ka&&(a=new zfc(a));return a};

_.u();

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

_.lI=function(a){return _.R(a,84,!1)};
_.Qfc=function(a){_.J.call(this,a)};_.K(_.Qfc,_.J);
_.mI=function(a){_.J.call(this,a)};_.K(_.mI,_.J);_.mI.prototype.getOptions=function(){return _.y(this,_.Qfc,1)};_.mI.prototype.ao=function(){return _.z(this,2)};_.mI.prototype.jd=function(){return _.y(this,_.Df,3)};
_.Rfc=function(a){_.J.call(this,a)};_.K(_.Rfc,_.J);_.nI=[3,4,5,6,7,8,9,10];
_.Sfc=new Map([[157,"categoryReferences"],[5,"hidden"]]);
var Vfc;_.Tfc={drive:1,appDataFolder:2,photos:3,androidBackup:4};_.Ufc=_.fb(_.Tfc);Vfc={};_.Wfc=(Vfc[0]="UNSPECIFIED_FEEDBACK",Vfc[1]="IMPLICIT_REJECT",Vfc[2]="NOT_HELPFUL_RIGHT_NOW",Vfc);
var oI,Yfc;oI={};_.Xfc=(oI[1]="modifiedDate",oI[2]="modifiedByMeDate",oI[3]="quotaBytesUsed",oI[4]="title",oI[6]="lastViewedByMeDate",oI[10]="createdDate",oI[7]="sharedWithMeDate",oI[9]="starred",oI[11]="recency",oI[5]="relevance",oI[12]="trashedDate",oI[13]="lastViewedByMeDate",oI);Yfc={};_.Zfc=(Yfc[1]="asc",Yfc[2]="desc",Yfc);
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.$fc=function(a,b,c,d,e,f,h){a="number"===typeof a?Date.UTC(a,b||0,c||1,d||0,e||0,f||0,h||0):a?a.getTime():_.jg();this.date=new Date(a)};_.lg(_.$fc,_.mt);_.g=_.$fc.prototype;_.g.clone=function(){var a=new _.$fc(this.date);a.$G=this.$G;a.XV=this.XV;return a};_.g.add=function(a){(a.W||a.V)&&_.lt.prototype.add.call(this,new _.kt(a.W,a.V));this.date=new Date(this.date.getTime()+1E3*(a.seconds+60*(a.O+60*(a.H+24*a.Iw))))};_.g.getTimezoneOffset=function(){return 0};_.g.getFullYear=_.mt.prototype.getUTCFullYear;
_.g.getMonth=_.mt.prototype.getUTCMonth;_.g.getDate=_.mt.prototype.getUTCDate;_.g.getHours=_.mt.prototype.getUTCHours;_.g.getMinutes=_.mt.prototype.getUTCMinutes;_.g.getSeconds=_.mt.prototype.zab;_.g.getMilliseconds=_.mt.prototype.yab;_.g.getDay=_.mt.prototype.getUTCDay;_.g.setFullYear=_.mt.prototype.setUTCFullYear;_.g.setMonth=_.mt.prototype.setUTCMonth;_.g.setDate=_.mt.prototype.setUTCDate;_.g.setHours=_.mt.prototype.DNa;_.g.setMinutes=_.mt.prototype.ENa;_.g.setSeconds=_.mt.prototype.FNa;
_.g.setMilliseconds=_.mt.prototype.Aab;
var agc,cgc;agc={};_.bgc=(agc[1]="0",agc[2]="1",agc[3]="2",agc);cgc={};_.dgc=(cgc[1]="asc",cgc[2]="desc",cgc);
_.egc=new _.no("drive_dataservice_builder");
_.fgc=_.Hg&&0>_.Ra(_.Kg,"533");
_.ggc=new _.gfc("drive_dataservice_invariants");
_.hgc=new Map([[[1],1],[[6],7],[[2],2]]);_.igc=new Map([[[1],3],[[2],4],[[3],5],[[4],6],[[5],7],[[6],8],[[10],12],[[7],9],[[8],10],[[9],11]]);
_.jgc=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 _.lI(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}]]);
_.kgc=new Map([[34,function(a){return _.R(a,9,!1)}],[25,function(a){return _.R(a,1,!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)}],
[38,function(a){return _.R(a,13,!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)}]]);_.lgc=new Map([[[1],1],[[2],2],[[3],3],[[4],4],[[5],5]]);
_.mgc=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]]);_.ngc=new Map([[[2],3],[[1],2],[[0],1]]);_.ogc=new Map([[[0],1],[[1],2],[[3],3],[[5],4],[[6],5]]);
_.pgc=new Map([[[_.sdc],1],[[_.tdc],2],[[_.udc],3],[[_.vdc],4],[[_.wdc],5],[[_.xdc],6],[[_.ydc],7],[[_.zdc],8],[[_.Adc],10],[[_.Bdc],11],[[_.Cdc],12],[[_.Ddc],13]]);_.qgc=new Map([[[0],1],[[1],2],[[2],3],[[3],4],[[4],5],[[5],6],[[6],7]]);

_.u();

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


_.u();

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


_.u();

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

_.pI=function(a){_.J.call(this,a,-1,rgc)};_.K(_.pI,_.J);_.pI.prototype.qc=function(){return _.z(this,2)};_.qI=function(a,b){return _.x(a,2,b)};_.g=_.pI.prototype;_.g.getItem=function(){return _.y(this,_.Ik,4)};_.g.setItem=function(a){return _.G(this,4,a)};_.g.uc=function(){return _.z(this,7)};_.g.bla=function(){return _.z(this,13)};_.g.CJa=function(a){_.x(this,13,a)};var rgc=[8,17];

_.u();

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

var sgc;sgc="Y Z E P T G M K  m u n".split(" ");_.tgc=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<sgc.length;f++){var h=sgc[f];e=_.Dwa[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};_.ugc=function(a){return _.ke().get(a,16,void 0)};

_.u();

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

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

_.u();

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

var xgc;_.uI=function(a){if(a instanceof _.Fc)return a;if(_.rI(a)){if(a=_.xda(a))return a}else a="string"===typeof a?_.LBa(a):_.LBa("Converting an unexpected reason type to drive.ds.Error which should be drive.ds.Error, Error, or string. Found:"+a);_.sI(a,2);_.tI(a,6);return a};_.vgc=function(a){var b=a.Yj();a=a.rG();return 15===b||32===b||33===b||401===a};_.wgc=function(){return _.n.WorkerGlobalScope&&self instanceof _.n.WorkerGlobalScope};_.vI=function(a){return _.Dj(a,1,0)};
_.sI=function(a,b){return _.x(a,1,b)};_.tI=function(a,b){return _.x(a,2,b)};xgc=[8,9,10,13,14,27,28,29,31,32,33,34,38];_.wI=function(a){_.J.call(this,a,-1,xgc)};_.K(_.wI,_.J);_.g=_.wI.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.zf=function(){return _.z(this,3)};_.g.ll=function(a){return _.x(this,3,a)};_.g.hw=function(a){return _.x(this,4,a)};
_.g.Qh=function(){return _.Q(this,5)};_.g.Pn=function(a){return _.x(this,5,a)};_.g.getMimeType=function(){return _.z(this,6)};_.g.YE=function(a,b){_.uj(this,8,a,b)};_.g.Mi=function(){return _.z(this,12)};_.g.se=function(){return _.y(this,_.Qf,17)};_.g.nj=function(){return _.z(this,20)};_.g.uc=function(){return _.z(this,21)};_.xI=function(a,b){return _.x(a,16,b)};
_.yI=function(a){_.J.call(this,a,-1,ygc)};_.K(_.yI,_.J);_.yI.prototype.KR=function(){return _.Dj(this,2,100)};_.yI.prototype.lP=function(a){return _.x(this,2,a)};_.yI.prototype.se=function(){return _.y(this,_.Qf,6)};_.yI.prototype.uc=function(){return _.z(this,8)};var ygc=[5];
_.zgc=new Map([[1,"connected"],[2,"unauthenticated/online"],[3,"offline"]]);
var Agc;Agc={};_.Bgc=(Agc[0]="/drive/v2internal",Agc[1]="/drive/v2internal.corp",Agc[2]="/drive/v2internal.scary",Agc[4]="/drive/v2internal.scary",Agc[5]="/drive/v2beta",Agc[6]="/drive/v2.1beta",Agc);
_.Cgc=new Set([0,1,2,3]);
_.Dgc=_.x(new _.wI,15,!0);_.Egc=_.xI(new _.wI,!0);_.Fgc=_.xI(new _.wI,!1);
_.Ggc=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("sy1fz");

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

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Igc=function(a){a=_.lb(a);return 0===a.length?_.aja:new _.Og(a,_.Zia)};_.Jgc=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)};_.lg(_.Jgc,_.ldc);_.Jgc.prototype.reset=function(){this.H.reset();this.H.update(this.O)};
_.Jgc.prototype.update=function(a,b){this.H.update(a,b)};_.Jgc.prototype.digest=function(){var a=this.H.digest();this.H.reset();this.H.update(this.V);this.H.update(a);return this.H.digest()};_.Kgc=function(a,b){a.reset();a.update(b);return a.digest()};
_.Lgc=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()};_.lg(_.Lgc,_.ldc);_.Lgc.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 Mgc=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};
_.Lgc.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;)Mgc(this,a,d),d+=this.blockSize;if("string"===typeof a)for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.blockSize){Mgc(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.blockSize){Mgc(this,e);f=0;break}}this.O=f;this.V+=b}};
_.Lgc.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;Mgc(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("sy1ft");

_.zI=function(a,b){return _.x(a,82,b)};_.AI=function(a){return _.R(a,3,!1)};_.BI=function(a){return _.x(a,3,!0)};_.Ngc=function(a,b){return _.x(a,7,b)};
_.Ogc=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
*/
_.CI={i0:"Versions",T7:"Metadata",I6:"Data",$U:"Offline"};_.Pgc=new Map([[_.CI.i0,"versionKey"],[_.CI.T7,"k"]]);_.Qgc=new Set([1004]);

_.u();

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

_.Rgc=function(a){_.J.call(this,a)};_.K(_.Rgc,_.J);_.g=_.Rgc.prototype;_.g.getKey=function(){return _.z(this,1)};_.g.yt=function(){return _.lj(this,1)};_.g.Wa=function(){return _.z(this,2)};_.g.Hb=function(a){return _.x(this,2,a)};_.g.Ci=function(){return _.vb(this,2)};_.g.Ng=function(){return _.lj(this,2)};
_.DI=function(a){_.J.call(this,a,-1,Sgc)};_.K(_.DI,_.J);_.DI.prototype.dA=function(){return _.z(this,1)};_.DI.prototype.getUrl=function(){return _.z(this,3)};var Sgc=[2,4,6];

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Tgc=function(a,b,c){c&&(a=_.ih(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=_.hh(a));return a};_.EI=function(){return"goog_"+_.Oja++};_.Ugc=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};
_.FI=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};_.FI.prototype.clone=function(){return new _.FI(this.start,this.end)};_.GI=function(a){return a.end-a.start};
_.Vgc=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("sy1gr");

var Zgc,ahc,chc;_.Wgc=function(a){var b={};_.Ta(a,function(c,d){b[d.toLowerCase()]=c});return b};_.Xgc=function(a){return(a=a&&_.Wgc(a))&&a["x-guploader-uploadid"]};_.Ygc=function(a){return(a=a&&_.Wgc(a))&&a["x-google-trace"]};Zgc=[6];_.HI=function(a){_.J.call(this,a,-1,Zgc)};_.K(_.HI,_.J);_.II=function(a,b){return _.x(a,14,b)};
_.bhc=function(a,b,c,d,e,f,h,k,l){l=void 0===l?!1:l;if(!_.$gc(a))return null;e=ahc(e)||new _.Fc;_.x(e,8,!0);k&&(k=_.$i(new _.Zi(k),void 0).toString(),_.x(e,19,k));e.rG()||_.x(e,15,a||f);e.getMessage()||_.Eo(e,["HTTP status code: "+a,"HTTP status text: "+b,"XHR error code: "+f,"XHR error text: "+h].join(", "));_.z(e,4)||_.Fo(e,d);e.Yj()||(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.Eda(_.Xgc(c));e.tda(_.Ygc(c));return e};
ahc=function(a){if(!_.Ea(a))return null;var b=new _.Fc,c=a.error;if(!c)return _.Fo(b,JSON.stringify(a)),null;_.x(b,15,c.code);_.Eo(b,c.message);a=c.errors&&c.errors[0];if(!a)return b;c=a.reason;var d=chc[c];d?_.x(b,10,d):c&&!d&&_.x(b,10,2);(a=a.debugInfo)&&_.Fo(b,a);return b};_.$gc=function(a){return 200===a||204===a||308===a||206===a?!1:!0};
chc={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("sy1g2");

_.dhc=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,_.Vla)(a)};_.KI=function(a){return _.R(a,5,!1)};_.ehc=function(a,b){var c=_.y(a.H,_.zza,9);null==c&&(c=new _.zza);var d=_.x(c,5,_.z(b.H,10));_.x(d,2,_.z(b.H,12));_.G(a.H,9,c)};_.fhc=function(a,b){a=_.Ei(a);b=_.Ei(b);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]};
_.ghc=function(a){var b=_.Gma(a);if("undefined"==typeof b)throw Error("V");var c=new _.bj(null,void 0);a=_.Fma(a);for(var d=0;d<b.length;d++){var e=b[d],f=a[d];Array.isArray(f)?_.Qma(c,e,f):c.add(e,f)}return c};

_.u();

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

var hhc,ihc,mhc,qhc,rhc,shc,thc,uhc,Mhc,FJ,Nhc,Ohc,Vhc,aic,mic,nhc,Jic,Lic,Nic,Pic,kjc,ojc,pjc,qjc,sjc,ujc,cK,eK,xjc,yjc,Bjc,Cjc,Djc,Ejc,Fjc,Gjc,Jjc,Ljc,Mjc,dkc,hkc,jkc,kkc,lkc,rkc,skc,bic,Bkc,Ckc,xkc,Dkc,ykc,Fkc,Gkc,Mkc,Lkc,Kkc,Ikc,Jkc,Fhc,Ghc,Phc,Nkc,Qhc,Rhc,Shc,Thc,Uhc,Pkc,Rkc;_.LI=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return function(d){return b.some(function(e){return e(d)})}};
_.MI=function(a,b,c){var d=new _.Fc,e=_.Yka(_.MI);_.x(d,20,e);_.tI(d,a);_.sI(d,b?b:2);c&&_.II(d,c);return d};_.NI=function(a){var b;a instanceof _.Fc?b=new _.Gc(null,a):_.rI(a)?b=a:b=_.n.ErrorEvent&&a instanceof ErrorEvent?a.error instanceof Error?a.error:Error(a.message):"string"===typeof a?Error(a):Error("Kb`"+a);b.stack||(b.stack=_.Yka(_.NI));return b};hhc=function(a){return 7===a.Yj()||24===a.Kp()&&(a=a.rG(),503===a||429===a)?!0:!1};ihc=function(a,b){return b?b+"("+a+")":a};
_.OI=function(a,b,c){var d={},e=[];b&&e.push("kind");a.oDb&&e.push("searchResultSource");a.fields.forEach(function(p){if(!_.jhc.includes(p)){var q=_.Bdb.get(p);if(q){var r=_.Edb[p];a.mF&&r&&(q=r);a.anonymous&&(a.mF?(p=_.Ddb[p])&&(q=p):(p=_.Cdb[p])&&(q=p));q.split(",").forEach(function(v){var w=_.Sja(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={z6:f.z6},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;
f.z6=[];l.forEach(function(p){return function(q){p.z6.push(q)}}(f));"owners"==k&&b&&f.z6.push("kind");e.push(ihc(f.z6.join(","),k))}return ihc(e.join(","),c)};_.khc=function(a){var b=new _.uo;b.append(_.OI(a,!0));return b.toString()};_.lhc=function(a,b){return a.filter(function(c){return b.includes(c)})};mhc=function(a){a=a.filter(function(b){return!_.Bdb.has(b)});if(a.length)throw Error("hd`"+a.join(", "));};
_.phc=function(a){if(a){var b=a.getMimeType();b&&_.cG(a,b.toLowerCase());nhc(a,_.yb(a,ohc,58).map(function(c){var d=c.getMimeType();d&&_.x(c,1,d.toLowerCase());return c}))}};qhc=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;_.ej(b,c,d)}};rhc=function(a,b){b&&qhc({openDrive:!!_.R(b,2,!1),reason:_.z(b,1)||0,syncType:_.z(b,3)||0,errorRecovery:!!_.R(b,4,!1)},a)};shc=function(a){return 10>a?"0"+a:""+a};
thc=function(a){if(_.ab(a))return"\r\n";var b="";_.Ta(a,function(c,d){b+=d+": "+c+"\r\n"});return b};uhc=function(a){a=_.Eo(_.II(_.sI(new _.Fc,2),39),"Multiple resource key definitions found for itemId "+a);throw _.wd(a);};
Mhc=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 _.WF)return"find by IDs";if(a instanceof _.vhc)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 _.mI)return a=a.jd(),_.kJ(a)?"quick access item query":_.lJ(a)?"people predict item query":_.mJ(a)?"drive priority query":"item query";if("undefined"!=typeof _.nJ&&a instanceof _.nJ)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 _.whc&&a instanceof _.whc?"list backups":a instanceof _.yI?"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 _.VF?"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 _.$F?"list suggested workspace items":a instanceof _.bA?"list suggested workspaces":"undefined"!=typeof _.yJ&&a instanceof _.yJ?"update app":a instanceof _.zJ?"update category metadata":a instanceof _.wI?"update item":a instanceof _.AJ?"update revision":a instanceof _.BJ?"update TD":a instanceof _.pD?"update pref":a instanceof _.CJ?"update ws":a instanceof _.OH?
"get account":a instanceof _.bG?"get workspace":a instanceof _.xhc?"list activity":a instanceof _.yhc?"list category metadata":a instanceof _.zhc?"create TD":"undefined"!=typeof _.Ahc&&a instanceof _.Ahc?"item export cancel":"undefined"!=typeof _.Bhc&&a instanceof _.Bhc?"item export status":"undefined"!=typeof _.Chc&&a instanceof _.Chc?"generate cse token":"undefined"!=typeof _.Dhc&&a instanceof _.Dhc?"get largest change ID":a instanceof _.nD?"list prefs":a instanceof _.DJ?"multipart upload":a instanceof
_.Ehc?"list published categories":a instanceof Fhc?"init resumable upload":a instanceof Ghc?"resumable upload chunk":a instanceof _.Hhc?"resumable upload":a instanceof _.aG?"get TD":"undefined"!=typeof _.Ihc&&a instanceof _.Ihc?"move TD preflight":a instanceof _.EJ?"list TDs":"undefined"!=typeof _.Jhc&&a instanceof _.Jhc?"get TD stats":a instanceof _.Khc?"test connection":"undefined"!=typeof _.Lhc&&a instanceof _.Lhc?"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))};Nhc=function(a){if(a instanceof _.UI||a instanceof _.DJ||a instanceof _.Hhc||a instanceof Fhc||a instanceof Ghc)return(new _.GJ).Dc(8);throw Error("wf");};Ohc=function(a){if(a instanceof _.wI){var b=_.rj(_.vb(a.clone(),1),17);b=_.Cj(b,_.Dgc)}else b=!1;b||(a instanceof _.wI?(a=_.rj(_.vb(a.clone(),1),17),b=_.Cj(a,_.Egc)||_.Cj(a,_.Fgc)):b=!1);return b?!1:!0};
_.HJ=function(a){return Phc.includes(a.constructor)?Ohc(a):!1};
Vhc=function(a,b){var c;if(Qhc.includes(a.constructor))return!0;if(b){if(_.R(b,54,!1)&&Rhc.includes(a.constructor))return!0;var d=_.IJ(b);if(d&&!_.R(d,7,!1)&&Shc.includes(a.constructor)&&!_.JJ(a)||_.R(b,56,!1)&&_.JJ(a)||_.R(b,57,!1)&&Thc.includes(a.constructor)||!(!_.R(b,53,!1)||Rhc.includes(a.constructor)||Shc.includes(a.constructor)||_.JJ(a)||Thc.includes(a.constructor)||Uhc.includes(a.constructor))||(null===(c=_.IJ(b))||void 0===c?0:_.R(c,20,!1))&&a.constructor===_.tJ)return!0}return!1};
aic=function(a,b){var c,d={};_.Te(_.nh(a.getTitle()))||(_.z(a,12)?d.originalFilename=a.getTitle():d.title=a.getTitle());if(a.getMimeType()&&(d.mimeType=a.getMimeType(),a.qc()&&_.$fa(a.getMimeType())&&b)){var e=b.Kla(),f=b.H(),h={encryptionState:"encrypted"};h.decryptionMetadata={wrappedKey:_.kj(b.V()),kaclsId:null!==(c=b.wa())&&void 0!==c?c:void 0,aes256GcmChunkSize:Whc[e?e.H():0],keyFormat:Xhc[f?f.H():0]};d.clientEncryptionDetails=h}_.Yhc(d,_.se(a,3));if(b=a.qc())d.id=b;_.z(a,16)&&(d.embeddingParent=
_.z(a,16));a.K2()&&(d.shortcutDetails={targetId:a.K2()});"number"===typeof _.z(a,26)&&(d.modifiedDate=_.Zhc(_.$hc(_.z(a,26)||0)));return d};_.Yhc=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(bic(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)!==_.kl(d)&&uhc(h):(a.set(h,_.kl(d)),b.push(d))}f=b}else f=b;f.length&&(f=_.GA(f),f.length&&(e["X-Goog-Drive-Resource-Keys"]=f))}};_.cic=function(a){var b=new _.vk;return _.x(b,1,a)};_.dic=function(a,b){return _.x(a,7,b)};_.eic=function(a,b){return _.x(a,8,b)};
_.fic=function(a,b){return _.x(a,11,b)};_.gic=function(a,b){return _.x(a,16,b)};_.LJ=function(a){_.J.call(this,a)};_.K(_.LJ,_.J);_.hic=function(a){_.J.call(this,a)};_.K(_.hic,_.J);var ohc=function(a){_.J.call(this,a)};_.K(ohc,_.J);ohc.prototype.getMimeType=function(){return _.z(this,1)};ohc.prototype.getUrl=function(){return _.z(this,2)};_.MJ=function(a){_.J.call(this,a)};_.K(_.MJ,_.J);_.MJ.prototype.De=function(){return _.z(this,2)};_.MJ.prototype.nh=function(a){return _.x(this,2,a)};
_.MJ.prototype.Ah=function(a){return _.x(this,3,a)};_.iic=function(a){_.J.call(this,a)};_.K(_.iic,_.J);_.jic=function(a,b){return _.x(a,1,b)};_.kic=function(a,b){return _.sj(a,2,b)};_.lic=function(a,b){return _.sj(a,3,b)};mic=[2];_.NJ=function(a){_.J.call(this,a,-1,mic)};_.K(_.NJ,_.J);_.NJ.prototype.zf=function(){return _.z(this,1)};_.NJ.prototype.ll=function(a){return _.x(this,1,a)};_.NJ.prototype.awa=function(a,b){return _.uj(this,2,a,b)};_.OJ=function(a){_.J.call(this,a)};_.K(_.OJ,_.J);
_.OJ.prototype.De=function(){return _.z(this,1)};_.OJ.prototype.nh=function(a){return _.x(this,1,a)};_.OJ.prototype.Ah=function(a){return _.x(this,2,a)};_.PJ=function(a,b){return _.qj(a,2,b)};_.nic=function(a,b){return _.sj(a,15,b)};_.oic=function(a,b){return _.G(a,17,b)};_.pic=function(a,b){return _.x(a,19,b)};_.qic=function(a,b){_.x(a,34,b)};_.ric=function(a,b){_.G(a,47,b)};_.sic=function(a,b){return _.x(a,52,b)};nhc=function(a,b){_.sj(a,58,b)};_.tic=function(a,b){return _.x(a,72,b)};
_.QJ=function(a,b){return _.G(a,84,b)};_.uic=function(a,b){_.G(a,85,b)};_.vic=function(a,b){_.G(a,91,b)};_.wic=function(a,b){return _.x(a,92,b)};_.xic=function(a,b){return _.x(a,93,b)};_.yic=function(a,b){_.G(a,95,b)};_.zic=function(a,b){return _.x(a,136,b)};_.Aic=function(a){_.J.call(this,a)};_.K(_.Aic,_.J);_.RJ=function(a){return _.R(a,2,!1)};_.Bic=function(a){_.J.call(this,a)};_.K(_.Bic,_.J);var Cic=[3],Dic=function(a){_.J.call(this,a,-1,Cic)};_.K(Dic,_.J);
Dic.prototype.xi=function(){var a=_.se(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}_.pb(this)&&_.qb(a);return a};Dic.prototype.zn=function(a){return _.qj(this,3,a)};var Eic=[3],Fic=function(a){_.J.call(this,a,-1,Eic)};_.K(Fic,_.J);Fic.prototype.xi=function(){return _.se(this,3)};Fic.prototype.zn=function(a){return _.qj(this,3,a)};var Gic=[3],Hic=function(a){_.J.call(this,a,-1,Gic)};_.K(Hic,_.J);
Hic.prototype.xi=function(){return _.se(this,3)};Hic.prototype.zn=function(a){return _.qj(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.Ci=function(){return _.vb(this,1)};_.SJ.prototype.Ng=function(){return _.lj(this,1)};_.TJ=function(a){return _.oj(a,45,1)};_.kJ=function(a){return _.R(a,47,!1)};_.lJ=function(a){return _.R(a,49,!1)};_.mJ=function(a){return _.R(a,52,!1)};
_.UJ=function(a){return _.C(a,2,"")};_.IJ=function(a){return _.y(a,_.Bic,4)};_.VJ=function(a){return _.R(a,10,!1)};_.Iic=function(a,b){return _.qj(a,27,b)};_.WJ=function(a){return _.oj(a,39,0)};_.XJ=function(a){return _.R(a,40,!1)};_.Zhc=function(a){return _.lt.prototype.wP.call(a,!0)+"T"+_.mh(a.getHours(),2)+":"+_.mh(a.getMinutes(),2)+":"+_.mh(a.getSeconds(),2)+a.faa()};Jic=function(a,b){return _.Idc(a,"getAllKeys","getting all keys index "+a.getName(),b,void 0)};
_.Kic=function(a,b){try{a.H.deleteObjectStore(b)}catch(c){throw _.WH(c,"deleting object store "+b);}};Lic=function(){var a=new _.Lfc;a.O=12E4;a.ma=!0;return a};_.Mic=function(a){_.J.call(this,a)};_.K(_.Mic,_.J);Nic=[3,4,10,18,19,28];_.UI=function(a){_.J.call(this,a,-1,Nic)};_.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.YE=function(a,b){_.uj(this,3,a,b)};
_.g.se=function(){return _.y(this,_.Qf,7)};_.g.mj=function(){return _.z(this,9)};_.g.uc=function(){return _.z(this,14)};_.g.Xz=function(){return _.y(this,_.Mic,15)};_.g.K2=function(){return _.z(this,21)};_.g.qc=function(){return _.z(this,23)};_.g.Wi=function(){return _.z(this,33)};_.YJ=function(a,b){return _.x(a,1,b)};_.ZJ=function(a,b){return _.qj(a,3,b)};_.Oic=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.se=function(){return _.y(this,_.Qf,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.se=function(){return _.y(this,_.Qf,2)};Pic=[7,8];_.BJ=function(a){_.J.call(this,a,-1,Pic)};_.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.se=function(){return _.y(this,_.Qf,4)};_.EJ=function(a){_.J.call(this,a)};_.K(_.EJ,_.J);_.EJ.prototype.getOptions=function(){return _.y(this,_.Qfc,1)};_.EJ.prototype.ao=function(){return _.z(this,2)};_.EJ.prototype.jd=function(){return _.y(this,_.QH,3)};var Qic=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}},Ric=null,Sic=function(){this.O=0;this.H=[]};_.g=Sic.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=Tic(this,a);return this.H[a]};_.g.set=function(a,b){a=Tic(this,a);this.H[a]=b};_.g.Yb=function(){return this.H.length};_.g.lc=function(){return 0==this.H.length};_.g.clear=function(){this.O=this.H.length=0};_.g.ih=function(){var a=this.Yb(),b=this.Yb(),c=[];for(a=this.Yb()-a;a<b;a++)c.push(this.get(a));return c};_.g.Qf=function(){for(var a=[],b=this.Yb(),c=0;c<b;c++)a[c]=c;return a};
_.g.qf=function(a){return a<this.Yb()};_.g.Rq=function(a){for(var b=this.Yb(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};var Tic=function(a,b){if(b>=a.H.length)throw Error("na");return 40>a.H.length?b:(a.O+Number(b))%40},Uic=function(a){_.J.call(this,a)};_.K(Uic,_.J);_.Vic=function(a){_.J.call(this,a)};_.K(_.Vic,_.J);_.Vic.prototype.We=function(){return _.z(this,1)};_.Vic.prototype.ri=function(a){return _.x(this,1,a)};_.Vic.prototype.Cb=function(){return _.z(this,4)};
_.Vic.prototype.Dc=function(a){return _.x(this,4,a)};var Wic=function(a){_.J.call(this,a)};_.K(Wic,_.J);Wic.prototype.Xo=function(){return _.z(this,5)};var Xic=function(a,b){_.x(a,6,b)},Yic=function(a){_.J.call(this,a)};_.K(Yic,_.J);_.g=Yic.prototype;_.g.Bjb=function(a){return _.x(this,1,a)};_.g.ORb=function(a){return _.x(this,2,a)};_.g.Oy=function(){return _.Q(this,3)};_.g.Cjb=function(a){return _.x(this,3,a)};_.g.oRb=function(a){return _.x(this,4,a)};_.g.qRb=function(a){return _.x(this,5,a)};
_.g.ARb=function(a){return _.x(this,6,a)};_.g.QRb=function(a){_.x(this,7,a)};var Zic=function(a){_.J.call(this,a)};_.K(Zic,_.J);Zic.prototype.Oy=function(){return _.Q(this,2)};var $ic=function(a,b){return _.x(a,2,b)},ajc=function(a,b){_.x(a,3,b)};Zic.prototype.JB=function(){return _.z(this,6)};var bjc=function(a,b){return _.x(a,8,b)},cjc=function(a){_.J.call(this,a)};_.K(cjc,_.J);var djc=function(a){_.J.call(this,a)};_.K(djc,_.J);var ejc=function(a,b){_.x(a,4,b)},fjc=function(a){_.J.call(this,a)};
_.K(fjc,_.J);fjc.prototype.jd=function(){return _.y(this,_.Vic,1)};fjc.prototype.getState=function(){return _.y(this,Wic,2)};fjc.prototype.Id=function(a){return _.G(this,2,a)};fjc.prototype.zt=function(){return _.lj(this,2)};var gjc=function(a){_.J.call(this,a)};_.K(gjc,_.J);gjc.prototype.Jj=function(){return _.z(this,1)};gjc.prototype.getEnvironment=function(){return _.z(this,2)};gjc.prototype.setEnvironment=function(a){return _.x(this,2,a)};
_.hjc=function(){var a=void 0===a?3E3:a;this.O=new _.Rk;this.H=new _.Rk;this.startTime=Date.now();this.V=!1;this.W=Math.ceil(a/2);this.ha=Math.floor(a/2)};_.ijc=function(a){var b=a.O.ih();a.V&&b.push({logName:"...",message:"...",level:"...",totalTime:"..."});_.Ca(b,a.H.ih());return b};_.jjc=function(a){var b=[];a=_.ijc(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")};
_.hjc.prototype.info=function(a,b){_.$J(this,a,b,"info")};_.hjc.prototype.config=function(a,b){_.$J(this,a,b,"config")};_.hjc.prototype.log=function(a,b,c){if(!Ric){Ric={};for(var d=0,e;e=_.cla[d];d++)Ric[e.value]=e,Ric[e.name]=e}_.$J(this,a,b,c)};_.$J=function(a,b,c,d){a.H.Yb()>=a.ha&&(a.V=!0,_.Sk(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.Yb()<a.W?a.O.enqueue(b):a.H.enqueue(b)};_.jhc=[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)};kjc=[22];_.GJ=function(a){_.J.call(this,a,-1,kjc)};_.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,_.Ik,2)};_.g.setItem=function(a){return _.G(this,2,a)};
_.g.$j=function(){return _.z(this,3)};_.g.HB=function(){return _.y(this,_.aK,4)};_.g.qc=function(){return _.z(this,5)};_.ljc=function(a,b){return _.x(a,5,b)};_.g=_.GJ.prototype;_.g.qK=function(){return _.z(this,7)};_.g.Eda=function(a){return _.x(this,7,a)};_.g.jga=function(a){_.x(this,9,a)};_.g.kOa=function(a){_.x(this,10,a)};_.g.pN=function(){return _.z(this,16)};_.g.tda=function(a){return _.x(this,16,a)};
var mjc=function(a){var b=new _.$h;a.listen("loadend",_.Ob(function(c,d){var e=d.ek(),f=d.getError();null==e||f?c.Gd(f):c.callback(e);d.dispose()},b,a));return b},njc=function(a){_.ni.call(this,a);this.connectionState=_.sxb.get(a)};_.K(njc,_.ni);_.RI=function(a){_.J.call(this,a)};_.K(_.RI,_.J);_.RI.prototype.Ih=function(){return _.z(this,1)};_.RI.prototype.qc=function(){return _.z(this,2)};_.RI.prototype.se=function(){return _.y(this,_.Qf,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.ak=function(){return _.z(this,2)};_.QI.prototype.H=function(a){_.x(this,4,a)};ojc=[3,7];_.SI=function(a){_.J.call(this,a,-1,ojc)};_.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.YE=function(a,b){_.uj(this,3,a,b)};_.g.se=function(){return _.y(this,_.Qf,5)};_.$I=function(a){_.J.call(this,a)};_.K(_.$I,_.J);_.$I.prototype.qc=function(){return _.z(this,1)};_.$I.prototype.se=function(){return _.y(this,_.Qf,3)};_.dJ=function(a){_.J.call(this,a)};_.K(_.dJ,_.J);_.dJ.prototype.se=function(){return _.y(this,_.Qf,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.se=function(){return _.y(this,_.Qf,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.se=function(){return _.y(this,_.Qf,3)};
_.AJ=function(a){_.J.call(this,a)};_.K(_.AJ,_.J);_.AJ.prototype.qc=function(){return _.z(this,1)};_.AJ.prototype.se=function(){return _.y(this,_.Qf,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.se=function(){return _.y(this,_.Qf,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.se=function(){return _.y(this,_.Qf,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.zt=function(){return _.lj(this,3)};
_.g.se=function(){return _.y(this,_.Qf,5)};pjc=[2,3];_.TI=function(a){_.J.call(this,a,-1,pjc)};_.K(_.TI,_.J);_.TI.prototype.uc=function(){return _.z(this,1)};_.TI.prototype.se=function(){return _.y(this,_.Qf,4)};qjc=[3,4];_.oJ=function(a){_.J.call(this,a,-1,qjc)};_.K(_.oJ,_.J);_.oJ.prototype.getType=function(){return _.z(this,1)};_.oJ.prototype.se=function(){return _.y(this,_.Qf,2)};_.rjc=function(a){_.J.call(this,a)};_.K(_.rjc,_.J);_.g=_.rjc.prototype;_.g.getKey=function(){return _.z(this,1)};
_.g.yt=function(){return _.lj(this,1)};_.g.Wa=function(){return _.z(this,2)};_.g.Hb=function(a){return _.x(this,2,a)};_.g.Ci=function(){return _.vb(this,2)};_.g.Ng=function(){return _.lj(this,2)};_.g.zf=function(){return _.z(this,3)};_.g.ll=function(a){return _.x(this,3,a)};_.g.getType=function(){return _.z(this,4)};sjc=[1];_.tjc=function(a){_.J.call(this,a,-1,sjc)};_.K(_.tjc,_.J);_.rJ=function(a){_.J.call(this,a)};_.K(_.rJ,_.J);_.rJ.prototype.H=function(a){_.x(this,4,a)};ujc=[1];
_.tJ=function(a){_.J.call(this,a,-1,ujc)};_.K(_.tJ,_.J);_.vjc=function(a){this.O=new Set;this.H=[].concat(_.fc(_.se(a,27)));this.initialize(a)};_.vjc.prototype.initialize=function(a){var b=_.lhc(this.H,_.se(a,28));if(0<b.length)throw Error("kf`"+b.join(","));this.H.push(21);this.H.push(70);this.H.push(83);this.H.push(87);_.KI(_.eI(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();mhc(this.H)};
_.bK=function(a){return[].concat(_.fc(a.H))};_.wjc={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.OI.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)}};xjc=function(a,b,c){if(b.length){var d=[];d.push(c?"not (":"(");d.push(b.join(" or "));d.push(")");_.dK(a,d.join(""))}};_.$hc=function(a){var b=new _.$fc;b.setTime(a);return b};yjc=function(a,b){b=_.se(b,33)[0];if(null!=b){var c=[];c.push("teamDriveId");c.push("=");c.push(cK(b));_.dK(a,c.join(" "))}};
_.zjc=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(",")};_.Ajc=function(a){a=a.jA();return null==a||0==a.length?"":a.map(function(b){b=b.XR();if(0==b)throw Error("lf");return _.Ufc[b]}).join(",")};
Bjc=function(a,b){if(a.length){var c=new _.uo;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""};Cjc=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""};
Djc=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""}};Ejc=function(a){switch(a){case 1:return"<=";case 2:return"<";case 3:return"=";case 4:return">";case 5:return">=";default:return""}};Fjc=function(a,b,c){if(null!=_.z(c,2)){var d=Ejc(_.z(c,1));c=cK(_.Zhc(_.$hc(_.z(c,2)||0)));_.dK(a,[b,d,c].join(" "))}};
Gjc=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""};
_.Hjc=function(a,b){b=void 0===b?!1:b;for(var c=new _.uo,d=_.yb(a,_.il,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,_.hl,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=_.nl(a);if(B&&0!=B.length){for(var E=[],I=[],M=[],P=
[],S=[],aa=[],ba=0;ba<B.length;ba++){var ma=B[ba];ma.Wa()&&(1===_.oj(ma,3,0)?_.Q(ma,4)?I.push(ma):E.push(ma):_.Q(ma,4)?_.R(ma,2,!1)?aa.push(ma):S.push(ma):_.R(ma,2,!1)?P.push(ma):M.push(ma))}var ea=Bjc(E,!1),xa=Bjc(I,!0),Ba=Cjc(M,!1,!1),Ja=Cjc(P,!0,!1),hb=Cjc(S,!1,!0),Sb=Cjc(aa,!0,!0),ac=new _.uo;if(Ba||hb||ea||xa)_.dK(ac,Ba,"or"),_.dK(ac,hb,"or"),_.dK(ac,ea,"or"),_.dK(ac,xa,"or");ac.OI.length&&_.dK(c,"("+ac.toString()+")","and");var Nc=new _.uo;if(Ja||Sb)_.dK(Nc,Ja,"and"),_.dK(Nc,Sb,"and");Nc.OI.length&&
_.dK(c,"("+Nc.toString()+")","and")}for(var wc=_.yb(a,_.fl,7),Gb=0;Gb<wc.length;Gb++)Fjc(c,"modifiedDate",wc[Gb]);for(var De=_.yb(a,_.fl,8),Yd=0;Yd<De.length;Yd++)Fjc(c,"lastViewedByMeDate",De[Yd]);_.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 Hh=_.ol(a),pd=0;pd<Hh.length;pd++){var Pb=Hh[pd];eK(c,"parents",Pb.Wa(),_.R(Pb,2,!1))}var vi=b;vi=void 0===vi?!1:vi;for(var Zj=_.yb(a,_.Ff,13),ug=0;ug<Zj.length;ug++){var xj=Zj[ug];
if(vi){if(xj.Wa()){var Kj=[],im=[];_.R(xj,2,!1)?Kj.push("not ("):Kj.push("(");im.push(cK(xj.Wa()));im.push("in");im.push("owners");im.push("or");im.push("creator");im.push("=");im.push(cK(xj.Wa()));Kj.push(im.join(" "));Kj.push(")");_.dK(c,Kj.join(""))}}else eK(c,"owners",xj.Wa(),_.R(xj,2,!1))}for(var Fi=_.yb(a,_.Ff,14),Kp=0;Kp<Fi.length;Kp++){var Re=Fi[Kp];eK(c,"writers",Re.Wa(),_.R(Re,2,!1))}for(var wi=_.yb(a,_.Ff,15),Vk=0;Vk<wi.length;Vk++){var Lp=wi[Vk];eK(c,"readers",Lp.Wa(),_.R(Lp,2,!1))}_.Q(a,
16)&&_.dK(c,"sharedWithMe");_.fK(c,"unparented",_.Q(a,34));for(var ak=_.yb(a,_.cl,35)||[],Dq=_.m(ak),Eq=Dq.next();!Eq.done;Eq=Dq.next())eK(c,"ancestors",Eq.value.Wa(),!1);for(var gn=_.yb(a,_.cl,38)||[],Hm=_.m(gn),zl=Hm.next();!zl.done;zl=Hm.next())eK(c,"descendants",zl.value.Wa(),!1);for(var Or=_.yb(a,_.gl,37)||[],fj=_.m(Or),Pr=fj.next();!Pr.done;Pr=fj.next())eK(c,"folderFeatures",Pr.value.Wa(),!1);for(var Mp=_.se(a,39),Fq=_.m(Mp),Qr=Fq.next();!Qr.done;Qr=Fq.next()){var Np=Qr.value,Rr=[];Rr.push("templateData.description");
Rr.push("contains");Rr.push(cK(Np));_.dK(c,Rr.join(" "))}for(var Vn=_.se(a,40),tk=0;tk<Vn.length;tk++){var uk=[];0==tk&&uk.push("(");uk.push(cK(Vn[tk]));uk.push("in");uk.push("templateData.categories");tk==Vn.length-1&&uk.push(")");_.dK(c,uk.join(" "),0==tk?"and":"or")}var Qc=_.z(a,41);if(null!=Qc){var hn=[];hn.push("templateData.galleryState");hn.push("=");hn.push(cK(_.bgc[Qc]||""));_.dK(c,hn.join(" "))}var Zs=_.z(a,42);if(null!=Zs){var Gq=[];Gq.push("visibility");Gq.push("=");Gq.push(cK(Gjc(Zs)));
_.dK(c,Gq.join(" "))}for(var Sr=_.yb(a,_.bl,44),Eu=0;Eu<Sr.length;++Eu){var Tr=Sr[Eu];eK(c,"actionItems",Djc(Tr),_.R(Tr,3,!1))}if(_.lj(a,50)){var Ql=[];Ql.push("pairedDocType");Ql.push(_.R(a,50,!1)?"!=":"=");Ql.push(cK("NONE"));_.dK(c,Ql.join(" "))}eK(c,"workspaceIds",a.$q(),!1);for(var To=_.yb(a,_.dl,57),Wn=0;Wn<To.length;Wn++){var Xn=[];0==Wn&&Xn.push("(");Xn.push(cK(To[Wn].Wa()));Xn.push("in");Xn.push("approvals");Wn==To.length-1&&Xn.push(")");_.dK(c,Xn.join(" "),0==Wn?"and":"or")}if(_.lj(a,58)){var Nx=
a.qq(),tw=Nx.Wa();if(tw){var Op=[];_.R(Nx,2,!1)&&Op.push("not");Op.push("creator");Op.push("=");Op.push(cK(tw));_.dK(c,Op.join(" "))}}var Nz=_.y(a,_.npa,59);if(Nz)for(var Fu=_.m(_.yb(Nz,_.kpa,1)),Ur=Fu.next();!Ur.done;Ur=Fu.next()){var Vr=Ur.value;eK(c,"categoryMetadata",Vr.Hm());for(var $s=_.m(Vr.Zj()),Wk=$s.next();!Wk.done;Wk=$s.next()){var Gi=Wk.value,jm=_.z(Gi,1),Pg=_.Bb(Gi,_.el);if(10==Pg){_.Gj(Gi,_.bpa,10,_.el);var uw=_.Q(Gi,15);(void 0===uw?0:uw)?_.dK(c,jm+" is null"):_.dK(c,"not ("+jm+" is null)")}else{var Hi=
new _.uo,Xk=void 0;switch(Pg){case 3:Xk=_.Gj(Gi,Dic,3,_.el);for(var Gu=_.m(Xk.xi()),Yk=Gu.next();!Yk.done;Yk=Gu.next())_.fK(Hi,jm,Yk.value,"or");break;case 14:for(var at=Xk=_.Gj(Gi,_.Voa,14,_.el),vw=new Map([[1,"="],[2,">"],[3,"<"]]),bt=_.m(at.xi()),Hu=bt.next();!Hu.done;Hu=bt.next()){var Wr=Hu.value,Pp=vw.get(_.z(at,2));if(!Pp)throw Error("mf");_.dK(Hi,[jm,Pp,cK(Wr.getYear()+"-"+shc(Wr.getMonth())+"-"+shc(Wr.getDay()))].join(" "),"or")}break;case 8:for(var gv=Xk=_.Gj(Gi,_.apa,8,_.el),hv=new Map([[1,
"="],[2,">"],[3,"<"]]),iv=_.m(gv.xi()),ny=iv.next();!ny.done;ny=iv.next()){var Tw=ny.value,sN=hv.get(_.z(gv,2));if(!sN)throw Error("mf");_.dK(Hi,[jm,sN,Tw].join(" "),"or")}break;case 9:for(var zg=Xk=_.Gj(Gi,Fic,9,_.el),cr=new Map([[1,"in"]]),jJ=_.m(zg.xi()),tN=jJ.next();!tN.done;tN=jJ.next()){var uN=tN.value,fS=cr.get(_.z(zg,2));if(!fS)throw Error("mf");_.dK(Hi,[uN,fS,jm].join(" "),"or")}break;case 6:for(var oy=Xk=_.Gj(Gi,_.fpa,6,_.el),gZ=new Map([[1,"="]]),vN=_.m(oy.xi()),hZ=vN.next();!hZ.done;hZ=
vN.next()){var iZ=hZ.value,gS=gZ.get(_.z(oy,2));if(!gS)throw Error("mf");_.dK(Hi,[jm,gS,cK(iZ)].join(" "),"or")}break;case 7:for(var $C=Xk=_.Gj(Gi,_.dpa,7,_.el),jZ=new Map([[1,"in"]]),kZ=_.m($C.xi()),GF=kZ.next();!GF.done;GF=kZ.next()){var LA=GF.value,lZ=jZ.get(_.z($C,2));if(!lZ)throw Error("mf");_.dK(Hi,[cK(LA),lZ,jm].join(" "),"or")}break;case 4:for(var mZ=Xk=_.Gj(Gi,_.hpa,4,_.el),c7=new Map([[1,"="],[2,"contains"],[3,"starts with"]]),nZ=_.m(mZ.xi()),oZ=nZ.next();!oZ.done;oZ=nZ.next()){var pZ=oZ.value,
d7=c7.get(_.z(mZ,2));if(!d7)throw Error("mf");_.dK(Hi,[jm,d7,cK(pZ)].join(" "),"or")}break;case 5:for(var qZ=Xk=_.Gj(Gi,Hic,5,_.el),jha=new Map([[1,"in"]]),uwb=_.m(qZ.xi()),uXa=uwb.next();!uXa.done;uXa=uwb.next()){var vXa=uXa.value,wXa=jha.get(_.z(qZ,2));if(!wXa)throw Error("mf");_.dK(Hi,[cK(vXa),wXa,jm].join(" "),"or")}break;case 12:for(var HF=Xk=_.Gj(Gi,_.Zoa,12,_.el),Okc=new Map([[1,"="]]),vwb=_.m(HF.xi()),hS=vwb.next();!hS.done;hS=vwb.next()){var Uw=hS.value,e7=Okc.get(_.z(HF,2));if(!e7)throw Error("mf");
_.dK(Hi,[jm,e7,cK(Uw)].join(" "),"or")}break;case 11:for(var kha=Xk=_.Gj(Gi,_.Xoa,11,_.el),rZ=new Map([[1,"in"]]),zxa=_.m(kha.xi()),Axa=zxa.next();!Axa.done;Axa=zxa.next()){var lha=Axa.value,wwb=rZ.get(_.z(kha,2));if(!wwb)throw Error("mf");_.dK(Hi,[cK(lha),wwb,jm].join(" "),"or")}}_.Q(Gi,15)?_.dK(c,"not ("+Hi+")"):_.dK(c,1<Xk.xi().length?"("+Hi+")":""+Hi)}}}null!=_.Q(a,60)&&_.fK(c,"linkShareMetadata.securityUpdateEligible",_.Q(a,60));var mha=_.Q(a,65);if(null!=mha){var Bxa=[];Bxa.push("clientEncryptionDetails.encryptionState");
Bxa.push("=");Bxa.push(cK(mha?"encrypted":"unencrypted"));_.dK(c,Bxa.join(" "))}var xwb=_.yb(a,_.Ff,68);if(xwb.length){for(var ywb=[],zwb=[],Cxa=_.m(xwb),xXa=Cxa.next();!xXa.done;xXa=Cxa.next()){var f7=xXa.value,nha="sharedFrom = "+cK(f7.Wa());_.R(f7,2,!1)?zwb.push(nha):ywb.push(nha)}xjc(c,ywb,!1);xjc(c,zwb,!0)}var g7=_.yb(a,_.Ff,67);if(g7.length){for(var yXa=[],Awb=[],sZ=_.m(g7),zXa=sZ.next();!zXa.done;zXa=sZ.next()){var Bwb=zXa.value,AXa="sharedTo = "+cK(Bwb.Wa());_.R(Bwb,2,!1)?Awb.push(AXa):yXa.push(AXa)}xjc(c,
yXa,!1);xjc(c,Awb,!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 BXa=(new _.Hf).Hb("application/vnd.google-apps.shortcut");_.fK(c,"impactedByMultiparentingMigration",!0);_.dK(c,Cjc([BXa],!1,!1))}1==_.TJ(a)&&yjc(c,a);return c.toString()};
_.Ijc=function(a){var b=new _.uo(_.Hjc(a));_.R(a,74,!1)?_.dK(b,"isQuickAccessForSharedFilesRequest"):_.kJ(a)?_.dK(b,"isQuickAccessRequest"):_.lJ(a)?_.dK(b,"isPeoplePredictRequest"):_.mJ(a)&&_.dK(b,"isDrivePriorityRequest");var c=a.Lc();if(c){var d=[];d.push("sortBy");d.push(_.Xfc[c.getType()]);d.push(_.dgc[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(_.zjc(a)),
_.dK(b,c.join(" ")));a.jA().length&&(c=[],c.push("spaces"),c.push("contains"),c.push(_.Ajc(a)),_.dK(b,c.join(" ")));if(c=_.TJ(a))d=[],d.push("corpora"),d.push("="),d.push(cK(_.wjc[c])),_.dK(b,d.join(" "));_.R(a,66,!0)||_.fK(b,"includeItemsFromAllDrives",_.R(a,66,!0));1!=_.TJ(a)&&yjc(b,a);_.R(a,48,!1)&&_.dK(b,"cachedOnly");return b.toString()};
_.JJ=function(a){if(a instanceof _.mI)a=a.jd();else if(!a)return!1;return a instanceof _.bA||a instanceof _.$F||"undefined"!=typeof _.gK&&a instanceof _.gK||a instanceof _.Df&&(_.kJ(a)||_.lJ(a)||_.mJ(a))};Jjc=function(){_.ro.call(this);this.V=this.O=null;this.ka=!1;this.ha=null};_.K(Jjc,_.ro);_.Kjc=function(a){!a.ka&&a.V&&(a.V(),a.ka=!0)};Ljc=function(a,b){a.V||(a.V=b)};Jjc.prototype.Dj=function(){_.Kjc(this);(0,this.ha)()};Mjc=function(a,b){a.ha||(a.ha=b)};
_.hK=function(a){if(!a.O){a.O=new fjc;var b=_.to(a);_.G(b,56,a.O)}return a.O};Jjc.prototype.getState=function(){var a=_.hK(this).getState();a||(a=new Wic,_.hK(this).Id(a));return a};var Njc=function(a,b){var c=new Uic;_.x(c,1,b);a=_.to(a);_.G(a,12,c)};Jjc.prototype.ma=function(){var a=_.y(_.hK(this),Yic,4);if(!a){a=new Yic;var b=_.hK(this);_.G(b,4,a)}return a};
var Ojc=function(a){var b=_.y(_.hK(a),Zic,8);b||(b=new Zic,a=_.hK(a),_.G(a,8,b));return b},Pjc=function(a){var b=_.y(_.hK(a),djc,19);b||(b=new djc,a=_.hK(a),_.G(a,19,b));return b},Qjc=function(a){_.ni.call(this,"rb");this.H=a};_.K(Qjc,_.ni);Qjc.prototype.Me=function(){return this.H};_.Rjc=function(a,b){a=void 0===a?1:a;b=void 0===b?!1:b;_.yi.call(this);this.H=!1;this.connectionState=b?1:a;this.O=b?!0:1===a;this.V=b};_.K(_.Rjc,_.yi);_.g=_.Rjc.prototype;
_.g.isConnected=function(){return!this.H&&1===this.connectionState};_.g.Kk=function(){return 1===this.connectionState||2===this.connectionState};_.g.Me=function(){return 3===this.connectionState};_.g.get=function(){return this.connectionState};
_.g.update=function(a){if(this.V)return!1;if(this.connectionState!==a||this.H&&1===a){if(2===a)var b=3===this.connectionState?_.VB.aV:_.VB.Gha;else 1===a?(b=_.VB.ZL,this.O=!0):3===a&&(b=_.VB.$U);if(b)return b=new njc(b),this.connectionState=a,this.H=!1,this.dispatchEvent(b),!0}return!1};
var Sjc=function(a,b){this.userId=a;this.H=b;this.db=null},Ujc=function(a,b){a.H.info("drive.ds.sync.logging.ImpressionPersister","Persisting offline impressions.");return Tjc(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")};Sjc.prototype.add=function(a,b){var c=this,d={};return a.add((d.userId=this.userId,d.lDb=b.toJSON(),d)).then(null,function(e){c.handleError(e)})};
var Vjc=function(a){return new _.Uh(function(b){var c=new Map;Tjc(a,function(d){return Jic(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={Xra:f.Xra},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;f.Xra=k;l.then(function(p){return function(q){q&&c.set(p.Xra,new _.WAa(q.lDb))}}(f))}return _.iI([].concat(_.fc(e.values()))).then(function(){return b(c)})})})})},Wjc=function(a,b){return Tjc(a,
function(c){return c.remove(b)},"readwrite")},Tjc=function(a,b,c){c=void 0===c?"readonly":c;return Xjc(a).then(function(d){try{var e=_.Qdc(d,["OfflineImpressions"],c).objectStore("OfflineImpressions");return b(e)}catch(f){return a.handleError(f?_.NI(f):void 0)}},function(d){return a.handleError(d)})},Xjc=function(a){return a.db?_.Vh(a.db):_.Sdc("GoogleDriveDsImpressions",2,function(b,c){c.H.objectStoreNames.contains("OfflineImpressions")&&_.Kic(c,"OfflineImpressions");b=_.Pdc(c,"OfflineImpressions",
{autoIncrement:!0});try{b.H.createIndex("userId","userId",void 0)}catch(d){throw _.WH(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 _.Wh(_.NI(b))})};Sjc.prototype.handleError=function(a){a||(a=Error("rf"));_.$J(this.H,"drive.ds.sync.logging.ImpressionPersister",a.message,"severe");return _.Vh()};
_.Yjc=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;_.yi.call(this);this.V=b;this.O=null;this.H=b?!1:a};_.K(_.Yjc,_.yi);_.Yjc.prototype.Me=function(){return this.H};_.Yjc.prototype.Jl=function(a){var b=this.H!==a;!this.V&&b&&(this.H=a,this.dispatchEvent(new Qjc(a)))};_.Yjc.prototype.kz=function(a){this.O=a};
var $jc=function(a,b,c,d,e,f){_.yi.call(this);var h=this;this.V=a;this.H=b;this.connectionState=c;this.O=d;this.Jb=new _.of(this);this.Jb.listen(b,"rb",function(k){k.Me()||Zjc(h)});this.Jb.listen(c,[_.VB.ZL,_.VB.aV],function(){return void Zjc(h)});this.W=e;f.then(function(){return Zjc(h)})};_.K($jc,_.yi);$jc.prototype.QA=function(a){return(a=(this.H.Me()||this.connectionState.Me())&&this.H.O?Ujc(this.O,a):this.V.QA(a))?a:void 0};
var Zjc=function(a){return a.H.O?Vjc(a.O).then(function(b){b.forEach(function(c,d){a.V.QA(c).then(function(){return akc(a,d)},function(){a.log("Unable to send offline impression batch "+d+".")})})}):Promise.resolve()},akc=function(a,b){a.log("Sent offline impression batch "+b+".");a.dispatchEvent("sb");return Wjc(a.O,b).then(function(){a.log("Removed offline impression batch "+b+".")},function(){a.log("Unable to remove offline impression batch "+b+".")})};
$jc.prototype.log=function(a){this.W.info("drive.ds.sync.logging.ClearcutOfflineTransport",a)};var bkc=function(){};bkc.prototype.xR=function(){return new Jjc};var ckc=function(){this.H=new gjc};ckc.prototype.O=function(a){_.G(a,13,this.H)};ckc.prototype.setEnvironment=function(a){this.H.setEnvironment(a);return this};
var ekc=function(a,b,c,d){this.ha=b;this.connectionState=c;this.Ow=d;this.O=this.H=this.V=null;this.client=_.iK(_.mgc,_.WJ(a));this.ka=_.z(a,94);this.ma=_.iK(_.qgc,_.oj(a.Tf(),8,0));this.Uxa=_.iK(_.ngc,_.oj(a.Tf(),9,2));this.ta=_.VJ(a);this.Ku=_.KI(_.eI(a));this.wDa=_.XJ(a);this.W=dkc(a);this.buildLabel=a.Li()};ekc.prototype.Jj=function(){return this.client};
dkc=function(a){var b=[].concat(_.fc(_.jgc.keys())),c=[].concat(_.fc(_.kgc.keys())),d=_.IJ(a);return b.filter(function(e){return _.jgc.get(e)(a)}).concat(c.filter(function(e){return d&&_.kgc.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};ekc.prototype.Xo=function(a){return null==a?0:a?2:1};var fkc=function(a){if(a.O)return a.O.H("aU7Ts")};
ekc.prototype.Cb=function(a){return a instanceof _.dI||"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};ekc.prototype.Li=function(){return this.buildLabel};
var gkc=function(a){return a.ha.Me()||a.connectionState.Me()?2:1};ekc.prototype.getEnvironment=function(){return this.Ow};hkc=function(a,b){this.H=a;var c=new _.Lza;_.Mza(c,b.W);a=this.H.bM();var d=_.Kfc(a);_.G(d,10,c);(c=b.Li())&&_.Jfc(a,c);this.H.H_();this.O=b};
_.ikc=function(a,b,c){var d=_.so(a.H.tG(b,c),_.egc);Njc(d,gkc(a.O));b=fkc(a.O);"boolean"===typeof b&&Xic(d.getState(),b);1===c&&Ljc(d,function(){return void a.H.Nw(d)});Mjc(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.an(d)});return d};jkc=function(a){var b=new _.wAa,c=new ckc,d=a.Jj();_.x(c.H,1,d);_.x(c.H,8,a.ka);_.x(c.H,3,a.ma);_.x(c.H,4,a.Uxa);_.x(c.H,5,a.ta);_.x(c.H,6,a.Ku);_.x(c.H,7,a.wDa);a=c.setEnvironment(a.getEnvironment());_.Dec(b,_.ggc,a);_.vo(b,_.egc,new bkc);return b};
kkc=function(a,b,c,d,e,f,h,k){k=void 0===k?!1:k;var l=new _.gI(906,b,void 0,_.wgc());l.ha=!1;var p=new _.Eec(l);b=new Date;l=_.Pfc(_.Ofc(_.Nfc(Lic(),new _.Fec(l)),jkc(c)),109).setSessionId(b.getTime()+"_"+_.oh());if(k){a=new $jc(p,d,e,new Sjc(a,f),f,h);_.Mfc(l,a);d=l.build();_.Ifc(d.bM(),1E3*b.getTime());var q=new hkc(d,c);(new _.of).listen(a,"sb",function(){_.ikc(q,106008,0).Dj()});return q}_.Mfc(l,p);a=l.build();_.Ifc(a.bM(),1E3*b.getTime());return new hkc(a,c)};
lkc=function(a,b){this.V=a;this.W=b};lkc.prototype.O=function(a,b){this.V&&_.mkc(this)&&(a=_.ikc(this.V,a,0),b&&_.ehc(a,b),a.Dj())};_.rK=function(a,b){if(a.V&&_.mkc(a)){a=_.ikc(a.V,106018,0);var c=_.y(_.hK(a),cjc,15);if(!c){c=new cjc;var d=_.hK(a);_.G(d,15,c)}c=_.x(c,1,1);_.x(c,2,b);a.Dj()}};lkc.prototype.H=function(a,b){return this.V&&_.mkc(this)?(a=_.ikc(this.V,a,1),b&&_.ehc(a,b),a):null};_.mkc=function(a){return!(!a.V||!a.V.H.cQ())};
_.nkc=function(a,b,c,d,e,f){var h=_.Q(a,59),k=_.vI(_.eI(a)).toString(),l=_.UJ(_.eI(a));f=new ekc(a,b,c,f);a=h?kkc(l,k,f,b,c,d,e,_.R(a,17,!1)):null;return new lkc(a,f)};_.okc=function(a){_.J.call(this,a)};_.K(_.okc,_.J);_.okc.prototype.yk=function(){return _.z(this,1)};_.pkc=function(a){var b=new _.okc;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)};
_.qkc=function(a,b){return _.x(a,2,b)};rkc=[1];_.vhc=function(a){_.J.call(this,a,-1,rkc)};_.K(_.vhc,_.J);_.sJ=function(a){_.J.call(this,a)};_.K(_.sJ,_.J);_.sJ.prototype.jd=function(){return _.y(this,_.cJ,1)};skc=[2];_.zJ=function(a){_.J.call(this,a,-1,skc)};_.K(_.zJ,_.J);_.zJ.prototype.qc=function(){return _.z(this,1)};_.zJ.prototype.sW=function(){return _.yb(this,_.UF,2)};_.zJ.prototype.se=function(){return _.y(this,_.Qf,3)};_.eJ=function(a){_.J.call(this,a)};_.K(_.eJ,_.J);
_.eJ.prototype.jd=function(){return _.y(this,_.dJ,1)};_.eJ.prototype.Ida=function(a){return _.x(this,2,a)};_.tkc=function(a){_.J.call(this,a)};_.K(_.tkc,_.J);_.tkc.prototype.getId=function(){return _.z(this,1)};_.tkc.prototype.Nb=function(a){return _.x(this,1,a)};_.tkc.prototype.se=function(){return _.y(this,_.Qf,2)};_.pJ=function(a){_.J.call(this,a)};_.K(_.pJ,_.J);_.pJ.prototype.ao=function(){return _.z(this,2)};_.pJ.prototype.jd=function(){return _.y(this,_.tkc,3)};
_.fJ=function(a){_.J.call(this,a)};_.K(_.fJ,_.J);_.ukc=function(a,b){this.O=b;this.H=new Map;this.uma(_.yb(a,_.jl,91))};_.ukc.prototype.uma=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;b=c.getId();c=_.kl(c);if(!b||!c)break;var d=_.vkc(this,b);if(d){d!==c&&uhc(b);break}this.H.set(b,c)}};
bic=function(a,b){return[].concat(_.fc(new Set(b))).map(function(c){var d=(new _.jl).Nb(c);a.H.has(c)?_.ll(d,a.H.get(c)):a.O&&(c=a.O.H(c))&&_.ll(d,_.Ok(c));return d}).filter(function(c){return _.lj(c,2)})};_.vkc=function(a,b){return a.H.has(b)?String(a.H.get(b)):a.O&&(a=a.O.H(b))&&_.lj(a,140)?_.Ok(a):null};_.yhc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.Ehc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.Khc=function(){this.H=_.Rf(new _.Qf,312)};
_.wkc=function(a,b){_.XH.call(this,a?a:500,b?b:6E5)};_.K(_.wkc,_.XH);_.sK=function(a,b,c,d){this.state=a;this.ma=b;this.ka=c;this.Yf=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.KM=function(a){var b=this;if(this.W)return this.W;var c=_.Yh();this.W=c.promise.then(function(){return _.pkc(1)},function(d){d=_.wd(d).tg;var e=0;2===d.Kp()?e=3:_.vgc(d)&&(e=2);return _.pkc(e)});a&&this.W.then(function(d){3===d.yk()&&_.rK(b.Yf,186469046)});this.H&&(a=_.z(Pjc(this.H),4)||0,ejc(Pjc(this.H),a+1));setTimeout(function(){b.W=null},5E3);xkc(this,c);return this.W};_.Akc=function(a,b){ykc(a,3)&&_.zkc(a,b)};_.sK.prototype.reset=function(){this.O=null;Bkc(this)};
Bkc=function(a){a.timeout&&(clearTimeout(a.timeout),a.timeout=null)};_.zkc=function(a,b){if(!a.O&&!a.V){a.H=a.Yf.H(106025);if(a.H){var c=Pjc(a.H);var d=!(!a.state.isConnected()&&a.state.Kk());c=_.x(c,1,d);c=_.x(c,2,a.state.O);_.x(c,5,!!b)}a.O=new _.wkc(5E3,6E4);Ckc(a)}};Ckc=function(a){Bkc(a);xkc(a);a.O&&(a.timeout=setTimeout(function(){return void Ckc(a)},a.O.Wa()),_.YH(a.O))};
xkc=function(a,b){var c=function(){if(a.H){var d=_.z(Pjc(a.H),3)||0,e=Pjc(a.H);_.x(e,3,d+1)}Dkc(a,b)};(a.ha?a.ha():_.Vh(void 0)).then(null,function(){return null}).then(c,c)};Dkc=function(a,b){a.log("Checking connection state.");var c=a.ma.then(function(d){return d.Pe(new _.Khc)}).then(null,function(d){d=_.wd(d);_.vgc(d.tg)&&ykc(a,2);return _.Wh(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)};
ykc=function(a,b){return!a.V&&a.state.update(b)?(a.log("Connection status: "+_.zgc.get(b)),!0):!1};_.Ekc=function(){this.H={}};Fkc=function(a,b,c){if(a.H[b])throw Error("sf");a.H[b]=c};_.Ekc.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)}};Gkc=function(a,b){for(var c=0;c<b.length;c++)delete a.H[b[c]]};_.Hkc=function(a,b){this.H=a;this.V=b;this.O=_.Bgc[_.oj(a.Tf(),8,0)];this.W=_.Bgc[_.oj(a.Tf(),51,5)]};
_.Hkc.prototype.kc=function(a,b){if(b.gO)Ikc(this,a,b),Jkc(this,a,b);else{var c={};if(11===a.mn){if(b.wNb){var d=b.dE||_.C(this.H.Tf(),37,"");c.key=d;qhc(c,a.uri)}Ikc(this,a,b);Kkc(this,a,b)}else switch(a.uri=Lkc(this,a.mn,a.uri),a.mn){case 1:Kkc(this,a,b);Ikc(this,a,b);break;case 0:b.Ku||_.KI(_.eI(this.H))||_.R(this.H,83,!1)&&qhc({dsNonce:_.oh()},a.uri);Kkc(this,a,b);Jkc(this,a,b);Ikc(this,a,b);break;case 2:case 3:case 4:case 5:Kkc(this,a,b);Jkc(this,a,b);Ikc(this,a,b);break;case 8:case 9:case 10:case 13:case 12:case 7:Kkc(this,
a,b);Jkc(this,a,b);break;default:throw Error("tf`"+a.mn);}}};Mkc=function(a,b){var c=Lkc(a,b,new _.Zi);if(!c.yH())throw Error("vf");return(new _.Zi).Rr(c.Ro).Nn(c.kk()).TA(c.Ky()).Ai(_.Cgc.has(b)?"/batch"+a.O:"/batch")};
Lkc=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 _.Zi(a);
_.ge(c,"/")&&(c=c.slice(1));return new _.Zi(a+"/"+c)};Kkc=function(a,b,c){a=_.eI(a.H);c.Ku||_.KI(a)||(b.headers.authorization=_.Bec([{key:"u",value:_.UJ(a)}])||"",c=_.vI(a),0<=c&&(b.headers["x-goog-authuser"]=String(c)))};
Ikc=function(a,b,c){var d=_.eI(a.H),e=a.H.Tf(),f=c.F8a||_.R(e,14,!1),h=11===b.mn;if(c.E8a||_.z(e,13)){c=_.z(e,13);var k={};c&&_.ge(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===_.oj(e,9,2)?"":",cospel:3:all,DriveService:3:all"));qhc(k,b.uri)}f&&!h&&a.V&&a.V.O(b.headers,b.method,b.uri.toString())};
Jkc=function(a,b,c){a=c.Ku||_.KI(_.eI(a.H))?_.C(a.H.Tf(),36,""):c.dE||_.C(a.H.Tf(),37,"");qhc({key:a},b.uri)};_.xhc=function(a,b,c){this.request=a;this.pageSize=b;this.pageToken=c};_.zhc=function(a){this.request=a;this.requestId=_.oh()};_.Hhc=function(a,b,c,d){this.request=a;this.file=b;this.XQ=void 0===c?null:c;this.metadata=d};Fhc=function(a,b){this.request=a;this.metadata=b};Ghc=function(a,b,c,d,e,f,h){this.V=a;this.blob=b;this.H=c;this.O=d;this.s0a=e;this.contentType=f;this.revisionId=h};
_.DJ=function(a,b,c,d){this.request=a;this.file=b;this.XQ=void 0===c?null:c;this.metadata=d};Phc=[_.PI,_.RI,_.QI,_.TI,_.SI,_.UI,_.VI,_.YI,_.$I,_.aJ,_.bJ,_.dJ,_.eJ,_.rJ,_.vJ,_.xJ,_.zJ,_.wI,_.AJ,_.BJ,_.CJ,_.zhc,_.DJ];Nkc=[_.yI];Qhc=[_.VF,_.Ehc];Rhc=[_.pJ,_.OH,_.nD,_.EJ];Shc=[_.mI,_.fJ,_.WF,_.yI,_.yhc];Thc=[_.EJ,_.aG];Uhc=[_.cJ,_.vhc,_.oJ,_.sJ,_.tJ,_.xhc,_.DJ,Ghc,Fhc];
Pkc=function(a){return a instanceof _.mI||a instanceof _.EJ||"undefined"!=typeof _.tK&&a instanceof _.tK||a instanceof _.BJ||a instanceof _.aJ||a instanceof _.UI||a instanceof _.YI||a instanceof _.wI&&_.HJ(a)};_.Qkc=function(a,b){this.H=b;this.a5={};this.cj=new Sic;b=_.OI({fields:_.se(a,28),anonymous:_.KI(_.eI(a))});this.Hb("SecondaryFields",b);this.Hb("SdkBackfillEnabled",!!_.R(a,45,!1)+" (Include corpus cache: "+!!_.R(a,46,!1)+")")};_.Qkc.prototype.Hb=function(a,b){this.a5[a]=Rkc(a,b)};
var Skc=function(a,b){var c=a.a5[b];c||(c=Rkc(b,0,2),a.a5[b]=c);c.Hb(String(Number(c.Wa())+1))};_.Qkc.prototype.Xz=function(a){var b=_.Ya(this.a5);this.H&&b.push(Rkc("CacheSize",this.H.getSize()));b.push(Rkc("InitialViewDataLoaded",a));a=new _.tjc;_.sj(a,1,b);return _.ei(a)};Rkc=function(a,b,c){var d=new _.rjc;_.x(d,1,a);_.x(d,4,c||1);d.Hb(String(b));d.ll(_.Ggc.get(a));return d};
_.Tkc=function(a,b,c){var d=new _.Rfc;_.x(d,2,"Pending...");b instanceof _.mI?_.wj(d,3,_.nI,b):b instanceof _.EJ?_.wj(d,4,_.nI,b):"undefined"!=typeof _.tK&&b instanceof _.tK?_.wj(d,5,_.nI,b):b instanceof _.BJ?_.wj(d,6,_.nI,b):b instanceof _.aJ?_.wj(d,7,_.nI,b):b instanceof _.UI?_.wj(d,8,_.nI,b):b instanceof _.YI?_.wj(d,9,_.nI,b):b instanceof _.wI&&_.wj(d,10,_.nI,b);var e=Mhc(b),f=[];if(b instanceof _.QI)FJ(f,"ID",b.getId()),FJ(f,"Parent ID",b.ak());else if(b instanceof _.aJ)FJ(f,"TD ID",b.getId());
else if(b instanceof _.mI)b=_.Ijc(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",_.se(b,3)),FJ(f,"Convert",_.Q(b,8)),FJ(f,"Request ID",b.mj()),FJ(f,"Parent Request IDs",_.se(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 _.wI){if(FJ(f,"ID",b.getId()),FJ(f,"Title",b.getTitle()),FJ(f,"Description",b.zf()),FJ(f,"Starred",_.Q(b,4)),FJ(f,"Trashed",b.Qh()),FJ(f,"MimeType",b.getMimeType()),FJ(f,"Parents",_.se(b,8)),FJ(f,"Parents to add",_.se(b,9)),FJ(f,"Parents to remove",
_.se(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",_.se(b,31)),FJ(f,"Wksp to remove",_.se(b,32)),b=_.y(b,_.Dk,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 _.zhc&&FJ(f,"Title",b.request.getTitle());_.x(d,1,"Request: "+e+(c?" ("+c+")":"")+
"\n"+f.join("\n"));a.cj.add(d);return d};_.Ukc=function(a,b){for(var c=new _.uo,d=0;d<b.length&&20>d;d++){var e=b[d];c.append(e.getId()+":"+_.Tgc(e.getTitle()||"",20)+"\n")}20<b.length&&c.append(b.length-20+" more item(s)");_.x(a,2,c.toString()||"Done.")};_.Qkc.prototype.WR=function(){return this.cj.ih()};
_.uK=function(a){_.J.call(this,a)};_.K(_.uK,_.J);_.uK.prototype.Zc=function(){return _.y(this,_.dI,1)};_.Vkc=function(a,b){return _.G(a,1,b)};_.uK.prototype.ao=function(){return _.z(this,3)};
_.Wkc=function(a,b,c){_.ni.call(this,"Cb");this.requestId=a;this.progress=b;this.totalBytes=c};_.K(_.Wkc,_.ni);
var Ykc;_.Xkc=function(a,b){this.O=a;this.V=b;this.H=null};Ykc=function(a){a.O()||(a.H&&(a.H.resolve(),a.H=null),a.V())};
var vK=function(a){_.yi.call(this);this.name=a};_.K(vK,_.yi);_.g=vK.prototype;_.g.P4=function(){};_.g.hGa=function(){};_.g.J2a=function(){};_.g.jOa=function(){};_.g.I2a=function(){};_.g.uG=function(){this.dispatchEvent(new _.ni("Db"))};_.g.toString=function(){return this.name+": "+this.max(Infinity)};
var Zkc=function(a,b){vK.call(this,"Online");var c=this;this.O=a;this.H=b;this.Oc=new _.of(this);this.Ja(this.Oc);this.Oc.listen(this.O,"rb",function(d){d.Me()||c.uG()});this.Oc.listen(this.H,"fb",this.uG)};_.K(Zkc,vK);Zkc.prototype.max=function(){var a=this.O.Me(),b=this.H.RB();return!a&&b?Infinity:0};Zkc.prototype.P4=function(){this.uG()};
var $kc=function(a){vK.call(this,"Online");var b=this;this.connectionState=a;this.Oc=new _.of(this);this.Ja(this.Oc);this.Oc.listen(this.connectionState,[_.VB.ZL,_.VB.Gha,_.VB.aV],function(){return b.uG()})};_.K($kc,vK);$kc.prototype.max=function(){return this.connectionState.isConnected()?Infinity:0};$kc.prototype.P4=function(){this.uG()};
_.alc=function(a,b){this.H=a;this.O=b};_.blc=function(a){return a.H instanceof _.sK?new $kc(a.H.getState()):new Zkc(a.O,a.H)};_.alc.prototype.Kj=function(){return this.H instanceof _.sK?this.H.getState():this.O};
var dlc;_.clc=function(a,b,c){this.TK=c;this.O=!0;this.V=0;this.H=new _.XH(a,b,.5)};dlc=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.jOa=function(){var a=this.H;a.V=0;a.H.reset()};_.wK.prototype.I2a=function(a){var b=this;elc(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.uG()},a),_.YH(this.H.H))};
var elc=function(a){var b;return(a=null===(b=_.ja(a.gE))||void 0===b?void 0:b.response)?hhc(_.xda(a)):!1};_.wK.prototype.log=function(a){this.O.info("drive.ds.network.queue.BackoffState",a)};
_.flc=function(a,b){vK.call(this,"Batch");this.O=a;this.V=b;this.H=null};_.K(_.flc,vK);_.flc.prototype.max=function(a){return a>=this.O?this.O:null!=this.H?this.V<=Date.now()-this.H?this.O:0:0};_.flc.prototype.P4=function(a){a>=this.O?this.uG():null==this.H&&glc(this)};_.flc.prototype.hGa=function(a,b){0<b?glc(this):this.H=null};var glc=function(a){a.H=Date.now()-1;_.n.setTimeout(a.uG.bind(a),a.V)};
_.xK=function(){this.cj=[]};_.g=_.xK.prototype;_.g.add=function(a,b){b?this.cj.unshift(a):this.cj.push(a);return!0};_.g.yta=function(a){return _.ta(this.cj,0,a)};_.g.getSize=function(){return this.cj.length};_.g.cancel=function(a){return _.ya(this.cj,function(b){return b.Zv.config.requestId===a?(b.ee.resolve(Nhc(b.Zv.lx)),!0):!1})};_.g.xK=function(){return _.Bg(this.cj,function(a){return _.HJ(a.Zv.lx)})};
var hlc=function(){vK.call(this,"Immediate")};_.K(hlc,vK);hlc.prototype.max=function(){return Infinity};hlc.prototype.P4=function(){this.uG()};
var ilc=function(){vK.call(this,"One Request")};_.K(ilc,vK);ilc.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.P4=function(){this.H<this.limit&&this.uG()};_.yK.prototype.hGa=function(a){this.H+=a.length};_.yK.prototype.J2a=function(a){this.H-=a.length;this.H<this.limit&&this.uG()};
var jlc=function(){_.yi.apply(this,arguments)};_.K(jlc,_.yi);var llc=function(a,b){a.dispatchEvent(new klc(b))};jlc.prototype.O=function(){};var klc=function(a){_.ni.call(this,"Eb");this.request=a};_.K(klc,_.ni);
_.zK=function(a,b,c,d,e,f){_.yi.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 _.of(this);this.Ja(this.Oc);for(a=0;a<this.H.length;a++)this.Oc.listen(this.H[a],"Db",this.R1a);for(a=0;a<this.O.length;a++)this.Oc.listen(this.O[a],"Eb",function(k){mlc(h,!0,k.request)});this.logName=(0,_.Xs)("drive.ds.network.queue.Queue [%s]",f)};_.K(_.zK,_.yi);_.zK.prototype.add=function(a){return mlc(this,!1,{Zv:a,ee:_.Yh(),gE:[]})};
_.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.xK=function(){return this.V.xK()?!0:this.buckets.some(function(a){return a.xK()})};
var mlc=function(a,b,c){if(!a.buckets.some(function(f){return f.add(c,b)}))return a=_.Eo(new _.Fc,"No queue bucket accepted request."),_.Wh(_.wd(a));for(var d=nlc(a),e=0;e<a.H.length;e++)a.H[e].P4(d);return c.ee.promise};_.g=_.zK.prototype;
_.g.R1a=function(){var a=nlc(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].yta(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.kyb.bind(this,a[e]),this.jyb.bind(this,a[e]));e=nlc(this);for(var f=0;f<this.H.length;f++)this.H[f].hGa(a,e);_.Zh(_.iI(d).then(this.iyb.bind(this,a)),function(){b.W.delete(c)});_.n.setTimeout(this.R1a.bind(this),0)};
_.g.kyb=function(a,b){var c=a.Zv.config;this.log(Mhc(a.Zv.lx)+" request completed successfully. xd4: "+!(!c||!c.gO));this.H.forEach(function(d){return d.jOa()});this.O.forEach(function(d){return d.O(a)});a.ee.resolve(b)};
_.g.jyb=function(a,b){b=_.wd(b);this.log(Mhc(a.Zv.lx)+(" request failed with error: "+b.ha+"."));a.gE.push({response:b,vUb:Date.now()});for(var c=0;c<this.H.length;c++)this.H[c].I2a(a);a.Zv.config.dGa||!this.O.some(function(d){return d.intercept(a)})?a.ee.reject(b):this.log(Mhc(a.Zv.lx)+" encountered an error, but was intercepted to be retried.")};_.g.iyb=function(a){nlc(this);for(var b=0;b<this.H.length;b++)this.H[b].J2a(a)};
var nlc=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)};
_.olc=function(a,b,c,d){jlc.call(this);this.V=b;this.ka=c;this.W=d;this.H=new Map;this.ha=_.Dj(a,21,1E3);this.ta=_.Dj(a,1,1);this.ma=function(){return new _.clc(_.Dj(a,63,1E3),_.Dj(a,64,3E5),_.Dj(a,65,10))}};_.K(_.olc,jlc);
_.olc.prototype.intercept=function(a){var b=a.gE.length,c=0<b&&_.ja(a.gE).response||null;if(c){c=_.uI(c);if(2===c.Kp())return plc(this,a);if(_.vgc(c))return 2>=b?(llc(this,a),a=!0):a=!1,a;var d=c.Yj();if(3===d||31===d||13===d||9===d)return qlc(this,a,b);if(hhc(c))return b=dlc(this.V),c=this.V,dlc(c)<c.TK?(this.log("Backoff number "+b+" for a User Rate Limit error."),llc(this,a),a=!0):(this.log("Done retrying User Rate Limit errors after "+(b+" backoffs.")),a=!1),a}return!1};
var plc=function(a,b){var c=rlc(a,b),d=dlc(c);if(dlc(c)<c.TK)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 llc(a,b)},d),_.YH(c.H)):(_.n.setTimeout(function(){return llc(a,b)}),c.V++),!0;a.H.delete(b);return!1},rlc=function(a,b){a.H.has(b)||a.H.set(b,a.ma());return a.H.get(b)},qlc=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 llc(a,
b)},a.ha*Math.pow(2,c)),!0;a.log("Done retrying retriable requests after "+d+" retries.");return!1};_.olc.prototype.O=function(a){this.H.delete(a)};_.olc.prototype.log=function(a){this.W.info("drive.ds.network.queue.RetryInterceptor",a)};
var slc=function(a){try{if("undefined"!==typeof FileReaderSync&&_.wgc()){var b=new FileReaderSync;return Promise.resolve(b.readAsDataURL(a))}var c=new _.Wvb,d=mjc(c);c.H.readAsDataURL(a);return d.then()}catch(e){return Promise.reject(new _.Uvb(_.NI(e),"reading data"))}},tlc=function(a){return slc(a.size?a.slice(0,1):a).then(function(){return null},function(b){return b.name})};
var ulc=function(a,b,c,d,e,f,h){this.Ia=a;this.H=b;this.La=c;this.W=d;this.Qa=e;this.request=f;this.config=h;this.O=this.ta=this.progress=0;this.Ga=this.wa=this.ha=null;this.ee=_.Yh();this.finished=!1;this.Ba=this.Tu=0;this.ka=null;this.ma=!1;this.V=null;a=f.request.Xz();a=_.wgc()&&a?_.z(a,1):null;this.fileSize="number"===typeof a?a:f.file.size;this.requestId=h.requestId;this.QO="progress_"+this.requestId;h.QO=this.QO;this.ma=!!f.metadata};
ulc.prototype.log=function(a){this.La.info("drive.ds.sync.request.ResumableUpload",a)};ulc.prototype.start=function(){var a=this,b=new Fhc(this.request.request,this.request.metadata),c=vlc(this);this.Ia.then(function(d){return d.Pe(b,c)}).then(function(d){a.ha=d.O;a.wa=d.H;a.Ga=d.V;wlc(a)},function(d){return void a.ee.reject(d)});return _.Zh(this.ee.promise.then(function(d){xlc(a,d);return d},function(d){d=_.wd(d);xlc(a,d.tg);return _.Wh(d)}),function(){Gkc(a.H,[a.QO])})};
var vlc=function(a){var b=_.eb(a.config);Fkc(a.H,a.QO,Qic(function(){return void a.H.notify([a.requestId],0)}));return b};ulc.prototype.cancel=function(){return this.finished?!1:(this.finished=!0,this.ee.resolve(Nhc(this.request)),!0)};
var wlc=function(a){a.finished||(a.log("Uploading chunk "+a.Ba+" for "+a.ha+"."),ylc(a,4))},ylc=function(a,b){zlc(a).then(function(c){if(c){var d=Alc(a,c.blob.size);a.Ia.then(function(f){return f.Pe(c,d)}).then(function(f){a.V=null;var h=c.blob.size;a.progress+=a.O;a.ta+=h;a.Ba++;f.qK()&&(a.wa=f.qK());f.pN()&&(a.Ga=f.pN());a.progress<a.fileSize?wlc(a):a.ee.resolve(f)},function(f){if(d.dGa)a.cancel();else{var h=_.uI(f);h.PCa()||h.jma()||a.ma?Blc(a,b,h,!1):tlc(c.blob).then(function(k){k=k?_.IFa.get(k)||
25:38;_.II(h,k);Blc(a,b,h,38===h.Kp(),38!==h.Kp()&&25!==h.Kp())},function(){})}})}else{var e=_.wd(_.II(_.Eo(new _.Fc,"Could not read more of the file. Read "+a.progress+"/"+a.fileSize+" bytes."),5));a.ee.reject(e)}})},Blc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=4-b;c.jga(f);!e&&0<b?(a.Tu++,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+"."));ylc(a,b)},a.Qa*Math.pow(1.5,f))):a.ee.reject(_.wd(c))},zlc=function(a,b){return a.ma&&a.V?_.Vh(a.V):Clc(a,b).then(function(c){if(!c)return null;if(a.ma&&0<a.fileSize&&0===c.size)return zlc(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 Ghc(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})},Clc=function(a,b){a.O=b?b:Math.min(a.fileSize-a.progress,a.W);b=a.progress;return a.request.XQ?a.request.XQ(b,a.O):_.Vh(_.Vgc(a.request.file,b,b+a.O))},Alc=function(a,b){var c=_.eb(a.config);c.oTa=!0;var d=a.progress/a.fileSize,e=b/a.fileSize;Gkc(a.H,[a.QO]);Fkc(a.H,a.QO,function(f){a.H.notify([a.requestId],Math.min(d+e*f,1))});return c},xlc=function(a,b){b.kOa(3);b.jga(a.Tu);b.qK()||b.Eda(a.wa);b.pN()||b.tda(a.Ga)};
_.Dlc=function(a,b,c,d,e){this.ha=a;this.V=b;this.H=c;this.W=d;this.O=e};_.Dlc.prototype.create=function(a,b){return new ulc(this.ha,this.V,this.H,this.W,this.O,a,b)};
_.Elc=function(a){this.O=a;this.H={}};_.Elc.prototype.execute=function(a){for(var b=[],c=0;c<a.length;c++)if(a[c].Zv.lx instanceof _.Hhc)b.push(Flc(this,a[c].Zv));else{var d=_.Eo(new _.Fc,"ResumableUploadExecutor only supports ResumableUploadRequests.");b.push(Promise.reject(_.wd(d)))}return b};_.Elc.prototype.cancel=function(a){return!!this.H[a]&&this.H[a].cancel()};_.Elc.prototype.xK=function(){return!_.ab(this.H)};
var Flc=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};
_.Glc=function(a,b){return new _.zK(b,a,[new hlc],[new _.xK],[],"immediate")};_.Hlc=function(a,b,c,d,e){return new _.zK(e,a,[_.blc(d),new _.wK(c,e),new ilc],[new _.xK],[new _.olc(b,c,d.Kj(),e)],"connected")};_.Ilc=function(a,b,c,d,e,f,h){h=void 0===h?_.Dj(b,10,50):h;return new _.zK(e,a,[_.blc(d),new _.flc(h,_.Dj(b,12,10)),new _.yK(3*h),new _.wK(c,e)],[new _.xK],[new _.olc(b,c,d.Kj(),e)],f)};_.Jlc=function(a,b,c){return new _.zK(c,a,[new _.yK(_.Dj(b,46,1))],[new _.xK],[],"resumable_upload")};
_.Klc=function(a,b,c,d,e,f,h,k){this.EI=a;this.ma=b;this.W=c;this.H=d;this.V=e;this.ha=f;this.ka=h;this.O=k};_.Klc.prototype.Pe=function(a,b){return Llc(this,a,b).then(null,function(c){c=_.wd(c);var d=c.tg;Ohc(a)||_.Go(d);return _.Wh(c)})};
var Llc=function(a,b,c){c=void 0===c?{}:c;var d=a.EI.validate(b);if(d)return _.Wh(_.wd(d));var e=a.ma.translate(b);e instanceof _.Fc?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 _.Vh(d).then(function(){if(e instanceof _.Fc)return _.Wh(_.wd(e));if(Array.isArray(e)){var f=e.map(function(h){return Mlc(a,b,h,c)});return _.iI(f)}return Mlc(a,b,e,c)},function(f){return _.Wh(_.wd(f))})},
Mlc=function(a,b,c,d){var e=Nlc(a,c);if(!e)return b=_.II(_.Eo(new _.Fc,"Failed to choose a queue for server request."),18),_.Wh(_.wd(b));if(e===a.H[7]||e===a.H[8])d.gO=!0;d=e.add({lx:c,config:d});(_.HJ(b)||_.HJ(c))&&d.then(function(){Ykc(a.V)},function(){Ykc(a.V)});b=a.ha.apply(c,d);d.then(function(f){a.ka.apply(c,f)},function(){});return b};_.Klc.prototype.cancel=function(a){return _.Wa(this.H,function(b){return b.cancel(a)})};
var Nlc=function(a,b){var c,d=!1;b instanceof _.fJ?d=!(null===(c=_.y(b,_.WF,2))||void 0===c||!_.Q(c,7)):b instanceof _.WF?d=!!_.Q(b,7):b instanceof _.mI&&(d=(d=b.jd())&&!!_.Q(d,46));return(b instanceof _.Khc||b instanceof _.DI&&_.Q(b,9))&&a.H[1]?a.H[1]:b instanceof _.Hhc&&a.H[5]?a.H[5]:d&&Vhc(b,a.O)&&a.H[7]?a.H[7]:Vhc(b,a.O)&&a.H[8]?a.H[8]:d&&(b instanceof _.fJ||b instanceof _.WF)&&a.H[6]?a.H[6]:(d||Nkc.includes(b.constructor))&&a.H[3]?a.H[3]:Phc.includes(b.constructor)&&a.H[4]?a.H[4]:a.H[2]||a.H[1]};
var Olc=function(a){this.H=a};Olc.prototype.build=function(a,b){var c="====="+_.oh()+"=====",d=a[0].mn,e=b.every(function(l){return l.gO});if(e){var f=d;var h={"content-type":"text/plain; charset=UTF-8"};d="POST";var k=Mkc(this.H,a[0].mn);_.dj(k,"$ct",'multipart/mixed; boundary="'+c+'"')}else f=Plc[d],h=Qlc[d]||{},h["content-type"]=(0,_.Xs)('multipart/mixed; boundary="%s"',c),d=Rlc[d],k=new _.Zi("");a=Slc(this,a,b,c,e);return{mn:f,body:a,headers:h,method:d,uri:k}};
var Slc=function(a,b,c,d,e){for(var f=thc(Tlc[b[0].mn]||{}),h="",k=0;k<b.length;k++){e&&Kkc(a.H,b[k],c[k]);var l=b[k],p=a.H,q=l,r=c[k];q.uri=Lkc(p,q.mn,q.uri);switch(q.mn){case 0:case 5:Jkc(p,q,r);Ikc(p,q,r);break;case 2:Kkc(p,q,r);Jkc(p,q,r);var v=q,w=_.z(p.H.Tf(),57);v.headers.host=_.hj(w).kk();v.headers.origin=_.n.location.origin?_.n.location.origin:_.n.location.protocol+"//"+_.n.location.host;Ikc(p,q,r);break;case 12:case 10:case 13:break;case 8:case 7:throw Error("uf`"+q.mn);default:throw Error("tf`"+
q.mn);}p=l;q=p.uri.clone();q.Rr("");q.Nn("");q.TA(null);l=f+"\r\n"+(p.method+" "+q+" HTTP/1.1\r\n")+thc(l.headers)+"\r\n"+(l.body?l.body+"\r\n":"");h+="--"+d+"\r\n";h+=l}return h+("--"+d+"--\r\n")},Ulc={},Plc=(Ulc[0]=1,Ulc[2]=3,Ulc),Vlc={},Rlc=(Vlc[0]="POST",Vlc[2]="PUT",Vlc[12]="POST",Vlc),Wlc={},Xlc={},Qlc=(Xlc[2]=(Wlc["x-goog-upload-protocol"]="batch",Wlc),Xlc),Ylc={},Zlc={},$lc={},amc={},bmc={},Tlc=(bmc[0]=(Ylc["content-type"]="application/http",Ylc["content-transfer-encoding"]="binary",Ylc),
bmc[13]=(Zlc["content-type"]="application/http",Zlc["content-transfer-encoding"]="binary",Zlc),bmc[12]=($lc["content-type"]="application/http",$lc["content-transfer-encoding"]="binary",$lc),bmc[2]=(amc["content-type"]="application/http",amc),bmc);
var cmc=/^HTTP\/1\.1 (\d+) ([\w ]+)/,dmc=/^multipart\/mixed; boundary="?([^"]+)"?$/;
var emc=function(a,b,c,d,e){this.V=a;this.W=b;this.ha=c;this.H=d;this.O=e;this.cj=new Map};emc.prototype.add=function(a,b){var c="DEFAULT";b.gO&&(c=Mkc(this.V,a.mn).toString());this.cj.has(c)||this.cj.set(c,[]);c=this.cj.get(c);if(1<=c.length&&!b.gO&&!Plc[a.mn])return a=_.Eo(new _.Fc,"Unsupported batch API: "+a.mn),_.Wh(_.wd(a));var d=_.Yh();c.push({request:a,config:b,ee:d});return d.promise};
emc.prototype.send=function(){for(var a={},b=_.m(this.cj.entries()),c=b.next();!c.done;a={fsa:a.fsa},c=b.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;try{fmc(this,d)}catch(f){var e=_.NI(f);e=_.Fo(_.Eo(new _.Fc,"Error executing XHR: "+e.message),e.stack);a.fsa=_.wd(e);d.forEach(function(h){return function(k){k.ee.reject(h.fsa)}}(a));this.cj.delete(c)}}};
var fmc=function(a,b){if(1===b.length){var c=b[0];if(!c.config.tDa&&!c.config.gO){var d=!1;if(Plc[c.request.mn]){var e={mn:c.request.mn,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){gmc(a,c);return}}}hmc(a,b)},gmc=function(a,b){var c=b.ee;a.W.mh(b.request,b.config).then(function(d){c.resolve(d);imc(a,b)},function(d){a.handleError(b,d);c.reject(d)})},hmc=function(a,b){var c=[],d=[];b.forEach(function(e){c.push(e.request);
d.push(e.config)});a.W.mh(a.ha.build(c,d),{tDa:!0,gO:d.every(function(e){return e.gO})}).then(function(e){e.headers=_.Wgc(e.headers);var f=dmc.exec(e.headers["content-type"]);var h=f&&f[1]?"--"+f[1]:null;if(!h)throw new _.Gc("Could not extract batch boundary.",_.II(_.Fo(new _.Fc,JSON.stringify(e)),14));f=h+"\r\n";h=e.text.split(h+"--");if(2===h.length&&_.ge(_.Jja(h[0]),f)&&_.Te(h[1]))h=_.Jja(h[0]).substring(f.length);else throw new _.Gc("Could not parse batch response; did not begin and end with boundary.",
_.II(_.Fo(new _.Fc,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 _.Gc("Individual batch response contained too few parts.",_.II(_.Fo(new _.Fc,B),17));else{var M=I[1].split("\r\n");if(w=cmc.exec(M[0])){p=_.qh(w[1]);w=w[2];M.shift();A=_.eb(A);for(var P=Object,S=P.assign,aa={},ba=0;ba<M.length;ba++){var ma=_.Sja(M[ba],":",1);ma&&2===
ma.length&&(aa[(0,_.Dg)(ma[0])]=(0,_.Dg)(ma[1]))}M=_.Wgc(aa);S.call(P,A,M);try{v=_.Te(_.nh(I[2]))?void 0:JSON.parse(I[2])}catch(ea){}v=(p=_.bhc(p,w,A,B,v,void 0,void 0,E&&E.toString()))?_.wd(p):{headers:A,text:B,json:v||void 0}}else v=new _.Gc("Could not extract HTTP status code and text.",_.II(_.Fo(new _.Fc,B),16))}r.call(q,v)}return k}).then(null,function(e){e=_.wd(e);return _.kdc(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 _.Fc||l instanceof
_.Gc?(l=_.wd(l),f||(f=a.handleError(b[h],l)),k.reject(l)):k.resolve(l)}f||imc(a,b[0])})},imc=function(a,b){var c=b.request.mn;b=!b.config.Ku&&_.pa(jmc,c);if(a.H){if(a=a.H,c=b?1:2,!a.state.isConnected()||b)c=ykc(a,c),b&&c&&a.reset(),a.H&&c&&(b||!a.state.O)&&(a.H.Dj(),a.H=null)}else a.O&&b&&a.O.wa()};
emc.prototype.handleError=function(a,b){a=_.xda(b);if(2===a.Kp()){if(this.H)return _.Akc(this.H),!0}else if(_.vgc(a)){if(this.H){a=this.H;if(b=!a.V)b=a.state,b=!b.V&&b.isConnected()?b.H=!0:!1;b&&_.zkc(a);return!0}if(this.O)return this.O.ta(),!0}return!1};var jmc=[0,2,4,7,8];
var kmc=function(){_.Wi.apply(this,arguments)};_.K(kmc,_.Wi);kmc.prototype.getAllResponseHeaders=function(){return _.Jja(_.Wi.prototype.getAllResponseHeaders.call(this))};
var lmc=function(a,b){this.ha=a;this.W=b;this.V={};this.O={};this.H={}};
lmc.prototype.mh=function(a,b){var c=this;try{this.ha.kc(a,b);var d=new kmc;d.LC=!0;var e=b.requestId||"",f=_.Yh();d.listen("complete",function(){var h=b.tDa,k=4===a.mn;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:_.Bma(d),text:d.Wk()};if((!b.fTb||_.$gc(d.Cb()))&&!h)try{l.json=_.JI(d)}catch(p){}h=_.bhc(d.Cb(),_.yma(d),l.headers,l.text,l.json,d.O,_.Cma(d),String(d.ta),k);d.dispose();h?f.reject(_.wd(h)):f.resolve(l)});e&&b.vNb&&(this.H[e]=0,d.listen("readystatechange",
function(){if(3===_.Xi(d)&&d.tA()&&200===d.Cb()){var h=d.Wk(),k=c.H[e];h.length>k&&(k=h.substring(k),c.H[e]=h.length,b.vNb(k))}}));e&&b.QO&&!b.gO&&(this.V[e]=d,this.O[e]=b,d.Gb=!0,d.listen("uploadprogress",function(h){h.lengthComputable&&c.W.notify([b.QO],b.oTa?h.loaded/h.total:h.loaded/h.total/2)}),b.oTa||d.listen("downloadprogress",function(h){h.lengthComputable&&c.W.notify([b.QO],h.loaded/h.total/2+.5)}));d.send(a.uri,a.method,a.body,a.headers);return f.promise}catch(h){return _.Wh(_.wd(h))}};
lmc.prototype.cancel=function(a){var b=this.V[a];a=this.O[a];return b&&b.isActive()?(a.dGa=!0,b.abort(),!0):!1};
_.mmc=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 Olc(this.O);this.W=new lmc(this.O,this.wa)};_.g=_.mmc.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].gE));c.push(Pkc(e.lx)?_.Tkc(this.ma,e.lx):void 0)}if(this.H&&this.H.V){var f=Promise.reject(_.wd(_.bhc(0,"",{},"",void 0,-99)));return a.map(function(){return f})}var h=new emc(this.O,this.W,this.ka,this.H||void 0,this.ha||void 0);d=[];e={};for(var k=0;k<a.length;e={Lra:e.Lra},k++){e.Lra=a[k].Zv.config;var l=b[k].then(function(p){return function(q){return h.add(q,p.Lra)}}(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.Qpb.bind(this,k.lx,c[e],a[e].gE)).then(null,function(p){return Promise.reject(_.wd(p))}),l.then(this.lOa.bind(this,k),this.lOa.bind(this,k)),b.push(l);return b};_.g.Qpb=function(a,b,c,d){a=this.ta.convert(a,d,c);b&&a.then(function(e){e=e.Bd?e.Bd():[];_.Ukc(b,e)});return a};_.g.cancel=function(a){return this.W.cancel(a)};_.g.xK=function(){return this.V.some(function(a){return _.HJ(a.lx)})};_.g.lOa=function(a){_.wa(this.V,a)};
_.nmc=function(){};_.nmc.prototype.execute=function(){return null};
var omc=function(){};
var pmc=function(a,b){this.H=a;this.retryCount=b};
_.AK=function(a){return function(b){return b.kind===a}};
_.qmc=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 rmc;rmc=function(a){this.H=a};_.BK=function(a,b){if(!_.Ea(b)||null===b)throw new _.Gc("Expected an object, but got a "+_.Yga(b)+".",_.MI(11,void 0,8));if(null===b||void 0===b||void 0===b.kind)throw new _.Gc("Expected 'kind' parameter in response: "+JSON.stringify(b),_.MI(11,void 0,21));var c=b.kind;if(!a(b))throw new _.Gc("Unexpected response type: "+c+".",_.MI(11,void 0,9));};_.CK=function(a){return null!=a?(new Date(a)).getTime():void 0};
_.smc=function(a){var b=null!=a.canDelete?a.canDelete:a.canDeleteTeamDrive;var c=new _.Bk;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=_.gic(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=_.eic(_.fic(_.cic(1).Nb(b.permissionId),b.id).$c(b.displayName),b.emailAddress);b.picture&&c.On(b.picture.url);_.lI(a.H)&&_.eic(c,b.emailAddressFromAccount||b.emailAddress);_.dic(c,a.mf(b.id));c.Nn(b.domain);return c};rmc.prototype.mf=function(a){if(a)return _.UJ(_.eI(this.H))==a};
var tmc,ymc,Gmc,Mmc,Bmc,Amc,Dmc,Fmc,Hmc,vmc,Jmc,Imc,Kmc,Lmc,Omc,Pmc,Nmc,Emc;tmc=function(a,b){this.H=a;this.O=b};
_.wmc=function(a,b,c){var d=new _.uK,e=new _.dI,f=e.iB,h=[];if(_.AK("drive#file")(b))(a=_.umc(a,b))&&h.push(a);else if(_.AK("drive#fileList")(b))for(var k=b.items||[],l=0;l<k.length;l++){var p=_.umc(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 _.Iec).Dc(vmc.get(k.status)),l=_.x(l,
1,k.original),k=_.x(l,3,k.correction),h.push(k);a=new _.Mec;h=_.sj(a,1,h);f.push(h)}q=new _.Oec;_.sj(q,1,f)}if((f=b.suggestedNlpQueries)&&0<f.length){var r=new _.Kec;_.qj(r,1,f)}q||r?(f=new _.Pec,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);_.qj(e,18,r)}d=_.Vkc(d,e);c=_.Ygc(c);c=_.x(d,2,c);_.AK("drive#fileList")(b)&&b.nextPageToken&&_.x(c,3,b.nextPageToken);
return c};ymc=function(a,b,c,d,e){var f=_.ljc(new _.GJ,c);_.AK("drive#adminFile")(b)?(c=(new _.Ik).Nb(b.id),b.parentId&&_.PJ(c,[b.parentId]),_.tic(c,b.teamDriveId),f.setItem(c),_.ljc(f,c.getId())):_.AK("drive#file")(b)?(b=_.umc(a,b),f.setItem(b),c||_.ljc(f,b.getId())):_.AK("drive#revision")(b)&&(b=_.xmc(a,b),_.G(f,4,b));f.Eda(_.Xgc(d));f.tda(_.Ygc(d));(d=(d=d&&_.Wgc(d))&&d["x-server-object-version"])&&e&&(e=(new _.aK).Nb(d),_.G(f,4,e));f.Dc(1);return f};_.zmc=function(a,b){return _.ljc(new _.GJ,a).Dc(1).Eda(_.Xgc(b)).tda(_.Ygc(b))};
_.Cmc=function(a,b){var c=_.dic(_.fic(_.cic(Amc.get(b.type)).Nb(b.id),b.userId),a.H.mf(b.userId));c=_.x(c,4,b.withLink);c=_.eic(c.$c(b.name).On(b.photoLink),b.emailAddress).Nn(b.domain);c=_.x(c,10,b.deleted);c=_.x(c,12,b.audienceId);c=_.x(c,13,b.customerId);_.lI(a.O)&&c.$c(b.nameIfNotUser);b.role&&(a=Bmc.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};
_.umc=function(a,b){var c=b.title,d=(new _.Ik).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=_.pic(_.cG(_.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.ll(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.hw(d.starred),_.x(c,6,d.hidden),c.Pn(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.iec));_.x(c,70,_.CK(b.recency));b.recencyReason&&(d=Dmc.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);_.nic(c,d);b.lastModifyingUser&&(d=_.DK(a.H,b.lastModifyingUser),_.oic(c,d));b.userPermission&&(d=Bmc.get(b.userPermission.role),_.zVb(c,d));b.imageMediaMetadata&&(e=b.imageMediaMetadata,d=(new _.MJ).nh(e.width).Ah(e.height),d=_.x(d,4,e.rotation),e.date&&(e=e.date,f=new _.$fc,f.setMilliseconds(0),Emc.parse(e,f),_.x(d,1,f.getTime())),_.G(c,27,d));null!=b.folderColor&&_.qic(c,Number(b.folderColor));_.x(c,31,b.subscribed);_.x(c,45,b.fileExtension);_.qj(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),_.ric(c,d));b.sources?_.qj(c,56,b.sources):b.gplusMedia&&_.qj(c,56,["GOOGLE_PHOTOS"]);if(b.spaces){d=b.spaces;e=[];for(f=0;f<d.length;f++)h=d[f],_.Tfc[h]&&(h=_.Af(new _.zf,_.Tfc[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 _.voa).Nb(k.id),k=Fmc.get(k.type),h=_.x(h,2,k),e.push(h))}_.sj(c,83,e)}b.capabilities&&_.QJ(c,_.smc(b.capabilities));b.permissionsSummary&&_.uic(c,Gmc(a,b.permissionsSummary));b.headRevisionId&&_.x(c,78,b.headRevisionId);b.templateData&&(d=b.templateData,e=(new _.NJ).ll(d.description),f=Hmc.get(d.galleryState),e=_.x(e,3,f),d=_.qj(e,2,d.category),_.G(c,86,d));_.tic(c,
b.teamDriveId);_.x(c,76,b.hasAugmentedPermissions);_.x(c,137,b.ancestorHasAugmentedPermissions);b.creator&&(d=_.DK(a.H,b.creator),_.vic(c,d));_.wic(c,b.primaryDomainName);_.xic(c,b.organizationDisplayName);_.x(c,94,b.passivelySubscribed);b.trashingUser&&_.yic(c,_.DK(a.H,b.trashingUser));c.Ida(_.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=Imc.get(d),_.x(c,101,d);b.videoMediaMetadata&&(d=b.videoMediaMetadata,
e=(new _.OJ).nh(d.width).Ah(d.height),d.durationMillis&&_.x(e,3,Number(d.durationMillis)),_.G(c,103,e));_.qj(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 _.Dk).oP(f.readOnly),f=_.x(h,2,f.reason),d.push(f);_.sj(c,125,d)}if(d=b.publishingInfo)_.x(c,118,d.published),_.x(c,119,d.publishedUrl);_.qj(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 _.xoa).Nb(f.approvalId).Dc(Jmc.get(f.status)),d.push(f);_.sj(c,127,d)}b.shortcutDetails&&(d=b.shortcutDetails,e=new _.Goa,e=_.x(e,1,d.targetId),e=_.x(e,3,d.targetMimeType),e=_.x(e,6,d.canRequestAccessToTarget),d.targetLookupStatus&&(f=Kmc.get(d.targetLookupStatus)||0,_.x(e,4,f)),d.targetFile&&(d=_.umc(a,
d.targetFile),_.G(e,5,d)),_.G(c,132,e));b.clientEncryptionDetails&&(d=b.clientEncryptionDetails,e=new _.LJ,f=Lmc.get(d.encryptionState),e=_.x(e,1,f),d.decryptionMetadata&&(d=Mmc(d.decryptionMetadata),_.G(e,2,d)),_.G(c,138,e));b.linkShareMetadata&&(d=b.linkShareMetadata,e=new _.iic,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);_.qj(c,135,b.authorizedAppIds);_.zic(c,b.customerId);_.x(c,144,b.abuseIsAppealable);
b.abuseNoticeReason&&(b=Nmc.get(b.abuseNoticeReason)||0,_.x(c,145,b));_.phc(c);_.lI(a.O)&&_.sic(c,5);return c};_.xmc=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=Mmc(b.decryptionMetadata),_.G(c,10,b));return c};
Gmc=function(a,b){return _.lic(_.kic(_.jic(new _.Boa,b.entryCount),(b.visibility||[]).map(function(c){var d=_.cic(Amc.get(c.type)).Nn(c.domain);d=_.x(d,4,c.withLink).Nb(c.type+"|"+(c.domain||"")+"|"+c.withLink);if(c.role){var e=Bmc.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 _.Cmc(a,c)}))};
Mmc=function(a){var b=a.wrappedKey;var c=new _.hic;b=b?_.Sec(b):void 0;c=_.x(c,1,b);c=_.x(c,2,Number(a.kaclsId));c=_.x(c,5,a.kaclsName);b=Omc.get(a.aes256GcmChunkSize);c=_.x(c,3,b);b=Pmc.get(a.keyFormat);c=_.x(c,6,b);return _.x(c,4,a.jwt)};Bmc=new Map([["fileOrganizer",7],["organizer",5],["owner",1],["reader",2],["writer",3]]);Amc=new Map([["anyone",4],["audience",5],["domain",3],["group",2],["user",1]]);Dmc=new Map([["createdByMe",1],["modifiedByMe",2],["modified",3],["viewedByMe",4]]);
Fmc=new Map([["MENTION",0],["SUGGESTION",1],["ASSIGNMENT",2]]);Hmc=new Map([["UNAVAILABLE",1],["AVAILABLE",2],["PENDING",3]]);vmc=new Map([["CORRECT",1],["INCORRECT",2],["SUSPICIOUS",3]]);Jmc=new Map([["IN_PROGRESS",1],["APPROVED",2],["CANCELLED",3]]);Imc=new Map([["docs",1],["sheets",2],["slides",3]]);Kmc=new Map([["ok",1],["notFound",2],["permissionDenied",3]]);Lmc=new Map([["unencrypted",1],["encrypted",2]]);Omc=new Map([["unset",0],["default",1],["small",2],["size16kb",3]]);
Pmc=new Map([["unsetKeyFormat",0],["tinkKeyset",1],["tinkAesGcmKey",2]]);Nmc=new Map([["unknownReason",0],["accessibleOnlyToOwner",1],["accessibleOnlyToOwningCustomer",2],["suspiciousOther",3],["suspiciousPhishing",4],["suspiciousMalware",5],["accessibleOnlyToOwnerInSomeRegions",6],["accessibleOnlyToOwningCustomerInSomeRegions",7],["suspiciousInSomeRegions",8]]);Emc=new _.jWa("yyyy:MM:dd HH:mm:ss");
var Qmc=function(a,b,c){this.O=a;this.H=b;this.V=c};
var Smc,Umc;_.Rmc=function(a){this.V=a;this.W=new rmc(a);this.SF=new tmc(this.W,a);this.V=a};
_.Rmc.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=Smc(this,0,b,c);else{if(a instanceof _.WF||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=_.wmc(this.SF,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 _.Chc&&a instanceof _.Chc){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 _.qmc(w.fileId,w.jwt,Number(w.currentKaclsId),w.currentKaclsName,w.customerId))}else{if("undefined"!=typeof _.Tmc&&a instanceof _.Tmc){var B=Promise,E=B.resolve;if(!b.json)throw _.FK();_.BK(_.AK("drive#revision"),b.json);var I=_.xmc(this.SF,b.json);r=E.call(B,I)}else{if(a instanceof _.sJ)B=Smc(this,a.jd(),b,c);else{if(a instanceof Ghc){l=
Promise;var M=l.resolve;if(a.s0a){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#file"),_.AK("drive#adminFile"),_.AK("drive#revision")),b.json);var P=ymc(this.SF,b.json,null,b.headers,!!a.revisionId)}else P=_.zmc(null,b.headers);var S=M.call(l,P)}else{if(a instanceof Fhc){a=Promise;var aa=a.resolve,ba=_.Wgc(b.headers),ma=ba.location;if(!ma){var ea=_.II(new _.Fc,10);throw new _.Gc("No upload session URI included.",ea);}var xa=new Qmc(ma,_.Xgc(ba),_.Ygc(ba));var Ba=aa.call(a,xa)}else Ba=a instanceof
_.Khc?Promise.resolve(new omc):Promise.reject(new _.Gc("FromXhrConverter: Unsupported request type.",new _.Fc));S=Ba}B=S}r=B}A=r}k=A}q=k}h=q}f=h}e=f}return e}catch(Ja){return Promise.reject(_.wd(Ja))}};_.Rmc.prototype.ka=function(){return null};
Smc=function(a,b,c,d){b=c.headers["x-goog-safety-encoding"];return"base64"===b?0<_.Dj(a.V,95,0)?Umc(c.text,_.Dj(a.V,95,0)).then(function(e){return new pmc(e,d.length)}):Promise.resolve(new pmc(_.cba(c.text),d.length)):b?Promise.reject(Error("rg")):Promise.resolve(new pmc(new Uint8Array(_.Uma(c.text)),d.length))};
Umc=function(a,b){return new Promise(function(c){for(var d=[],e={f_:0};e.f_<Math.floor(a.length/b);e={f_:e.f_},e.f_++)_.Ai(function(f){return function(){d.push(_.cba(a.slice(f.f_*b,(f.f_+1)*b)))}}(e),0);_.Ai(function(){d.push(_.cba(a.slice(Math.floor(a.length/b)*b,a.length)))},0);_.Ai(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 _.wI)return _.zmc(_.Vmc(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 ymc(a.SF,c.json,_.Vmc(b),c.headers,d)};_.FK=function(){var a=_.II(new _.Fc,11);return new _.Gc("FromXhrConverter: JSON required, but none found",a)};_.Vmc=function(a){return a.getId?a.getId():a.qc?a.qc():null};
var Wmc,Ymc,Whc,Zmc,Xhc;Wmc={};_.Xmc=(Wmc[1]="active",Wmc[2]="archived",Wmc);Ymc={};Whc=(Ymc[0]="unset",Ymc[1]="default",Ymc[2]="small",Ymc[3]="size16kb",Ymc);Zmc={};Xhc=(Zmc[0]="unsetKeyFormat",Zmc[1]="tinkKeyset",Zmc[2]="tinkAesGcmKey",Zmc);
var bnc=function(a,b,c){return(a.XQ?a.XQ(0,a.file.size):Promise.resolve(a.file)).then(function(d){return slc(d)}).then(function(d){return $mc(a,b,d,c)},anc)},$mc=function(a,b,c,d){var e=!!_.z(a.request,12),f={},h="files";e&&(h+="/"+_.z(a.request,12));h=new _.Zi(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=_.khc({fields:_.bK(b).filter(function(q){return 194!=q}),anonymous:!1});qhc(f,h);rhc(h,a.request.se());
var k=aic(a.request,a.metadata);f=_.oh();b={};b=(b["content-type"]=(0,_.Xs)('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,_.jl,28),[],null,b);a="--"+f;a=a+"\r\n"+thc(l)+"\r\n"+k+"\r\n"+a+"\r\n"+thc(p)+"\r\n"+c+"\r\n"+a+"--";return{mn:2,
headers:b,method:e?"PUT":"POST",uri:h,body:a}},anc=function(a){if(a instanceof _.Uvb){var b=new _.Fc;_.Eo(b,"fs.Error: "+a.message);a=(a=a.name)?_.IFa.get(a)||25:38;_.II(b,a);b=_.wd(b)}else b=_.NI(a);return Promise.reject(b)};
_.GK=function(a,b,c,d){this.H=a;this.Dg=b;this.O=c;this.Yf=d};_.GK.prototype.convert=function(a,b){try{return a.lx instanceof _.DJ?bnc(a.lx,this.Dg,this.H):Promise.resolve(this.V(a.lx,a.config,b))}catch(c){return c instanceof _.Gc?a=c.tg:(a=new _.Fc,_.Eo(a,"Error converting XHR: "+c.message),_.Fo(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=_.khc({fields:this.eh(),anonymous:_.KI(_.eI(this.H)),mF:_.lI(this.H)});f=aic(a);h["content-type"]="application/json";var v=a.se();q=!0;l.supportsTeamDrives=!0;_.R(this.H,3,!1)&&(l.enforceSingleParent=!0);_.KJ(this.H,_.yb(a,_.jl,28),_.se(a,3).concat([_.z(a,16),a.K2(),a.qc()]),
this.O,h)}else if(a instanceof _.cJ||a instanceof _.sJ)a instanceof _.sJ?(p=a.jd(),_.lj(a,2)&&(r="bytes="+_.z(a,2)+"-",_.lj(a,3)&&(r+=_.z(a,3)),h.range=r)):p=a,b.fTb=!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,[_.ll((new _.jl).Nb(p.getId()),_.z(p,3))],[p.getId()],this.O,h),q=p=!0;else if(a instanceof _.fJ||a instanceof _.WF){if(a instanceof _.fJ){r=_.z(a,1);var w=_.y(a,_.WF,2)}else if(a instanceof _.WF)r=0,
w=a,a.V(),_.rK(this.Yf,190196159);else throw Error("sg");var A=w.V()[r];r="files/"+A;a=_.za(this.eh(),this.eh(w.H()));_.Ga(a);l.fields=_.khc({fields:a,anonymous:_.KI(_.eI(this.H)),mF:_.lI(this.H)});l.supportsTeamDrives=!0;_.R(this.H,14,!1)&&(l.useLegacyDomainPermissionBehavior=!1);this.W(A,l);v=w.se();q=!0;_.Q(w,7)&&(b.tDa=!0);10!=_.WJ(this.H)||(null===(d=_.IJ(this.H))||void 0===d?0:_.R(d,22,!1))?_.KJ(this.H,_.yb(w,_.jl,11).filter(function(E){return E.getId()==A}),[A],this.O,h):_.KJ(this.H,_.yb(w,
_.jl,11),w.V(),this.O,h)}else if("undefined"!=typeof _.Chc&&a instanceof _.Chc)r="files/generateCseToken",a.id&&(l.fileId=a.id),l.role=a.role,v=a.H;else if("undefined"!=typeof _.Tmc&&a instanceof _.Tmc)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 Ghc){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.s0a?(0,_.Xs)("bytes %d-%d/%d",B,b,b+1):(0,_.Xs)("bytes %d-%d/*",B,b)}B=a.blob;q=!0}else a instanceof Fhc?(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=_.khc({fields:this.eh().filter(function(E){return 194!=E}),anonymous:_.KI(_.eI(this.H)),mF:_.lI(this.H)}),l.supportsTeamDrives=!0,f=aic(a.request,a.metadata),h["content-type"]=
"application/json",null!=a.request.getMimeType()&&(h["x-upload-content-type"]=a.request.getMimeType()),_.KJ(this.H,[],_.se(a.request,3),this.O,h),v=a.request.se(),q=!0):a instanceof _.Khc?(r="about",l.fields="kind",v=a.H,q=!0):_.cnc(a);q&&_.dnc(c,l);0!=e||p||v&&_.z(v,1)||_.rK(this.Yf,74438989);return _.enc(this,e,r,l,h,k,v,f,B)};
_.enc=function(a,b,c,d,e,f,h,k,l){c=new _.Zi(c);[10,12,13].includes(b)||rhc(c,h);(a=a.H.Li())&&(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,_.ej(c,a,h);return{mn:b,headers:e,method:f,uri:c,body:k?JSON.stringify(k):l}};_.GK.prototype.W=function(){};_.dnc=function(a,b){a&&a.length?(b.retryCount=a.length,b.msSinceLastAttempt=Date.now()-_.ja(a).vUb):b.retryCount=0};
_.GK.prototype.eh=function(a){a||(a=_.bK(this.Dg));return a};_.cnc=function(a){var b=_.II(new _.Fc,4);throw new _.Gc("ToXhrConverter: Unsupported request type: "+Mhc(a),b);};
_.HK=function(a,b,c,d,e,f){_.yi.call(this);var h=this;this.O=a;this.V=b;this.W=c;this.ha=d;this.Ba=e;this.wa=f;this.cj={};this.ka={};this.Yf=null;_.ff(this,function(){h.KG()})};_.K(_.HK,_.yi);_.HK.prototype.cR=function(){return _.EI()};
_.HK.prototype.upload=function(a,b,c,d){Skc(this.V,"UploadTotalCount");var e=a.mj();if(e&&this.cj[e])throw new _.Gc("Upload requested with a duplicate request ID.");var f=_.se(a,10);if(f&&f.length){if(1!==f.length)throw new _.Gc("Multi-parented uploads are not supported.");var h=this.cj[f[0]];if(!h)throw new _.Gc("The parent upload request must precede this request.");}!_.z(a,26)&&b&&b.lastModified&&_.x(a,26,b.lastModified);e||(e=this.cR(),_.x(a,9,e));a=a.clone();f=fnc(this,e);this.cj[e]={request:a,
file:b,Fe:f,dN:!1,Tu:0,success:!1,cF:!1,children:[],metadata:c,vma:void 0,XQ:d};h?gnc(this,e,h):this.ma(e);return f.nn()};
var fnc=function(a,b){var c=new _.$h;c.eg(_.Ob(a.Ga,b),_.Ob(a.Ia,b),a);return c},gnc=function(a,b,c,d){var e=a.cj[b];c.children.push(b);_.Ga(c.children);c.Fe.then(function(f){if(1===f.Cb()&&(f=f.qc(),_.se(e.request,3).push(f),_.fI(e.request,10),!c.cF||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.Fe.Gd(_.rI(f)?f:Error(f))})};
_.HK.prototype.Ga=function(a,b){Skc(this.V,"UploadSuccessCount");a=this.cj[a];a.success=1===b.Cb();(b=a.vma)&&!a.cF&&($ic(bjc(Ojc(b),a.Tu),!0),b.Dj())};_.HK.prototype.Ia=function(a,b){var c=_.y(this.O,_.HI,58);c&&_.R(c,1,!1)&&(this.ka[a]=b);Skc(this.V,"UploadFailureCount");c=this.cj[a];(a=c.vma)&&!c.cF&&($ic(bjc(Ojc(a),c.Tu),!1),b=(c=b&&b.tg)&&c.Yj(),c=c&&c.Kp(),b?ajc(Ojc(a),hnc.get(b)||13):c&&ajc(Ojc(a),inc.get(c)||0),a.Dj())};
_.HK.prototype.ma=function(a){var b=this.cj[a];if(!b.dN){b.dN=!0;a=this.cj[a];var c=a.request,d=_.y(this.O,_.HI,58);d&&_.R(d,4,!1)&&(d=c.getTitle().match(jnc))&&(!d[1]||a.Tu<Number(d[1].substr(1)))&&(c=c.clone(),_.sa(_.se(c,3),"$#@! Invalid parent ID."));a=c;c=(c=b.request.Xz())?_.z(c,1)||0:0;d=b.file&&b.file.size||c;c=this.O.Tf();var e=_.Dj(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.vma=f,f=Ojc(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,_.Dj(c,32,1073741824)))}switch(e){case 2:b.file&&knc(this,new _.Hhc(a,b.file,b.XQ,b.metadata),b.Fe,a.mj());break;case 1:b.file&&(c=b.Fe,d=b.file,e=b.metadata,b=b.XQ,f=_.y(this.O,_.Aic,2),knc(this,new _.DJ(a,d,b,f&&_.RJ(f)?e:void 0),c,a.mj()));break;case 3:knc(this,a,b.Fe,a.mj());break;default:throw new _.Gc("Upload type ${uploadType} not supported.");}}};
var knc=function(a,b,c,d){Fkc(a.W,d,a.ta.bind(a,d));var e=a.ha.then(function(f){return f.Pe(b,{requestId:d})}).then(null,function(f){return lnc(a,b,f)});e.then(function(){Gkc(a.W,[d])},function(){Gkc(a.W,[d])});e.then(function(f){c.callback(f)},function(f){c.Gd(f)})},lnc=function(a,b,c){var d=_.wd(c),e=b instanceof _.DJ&&b.request.qc()||"";c=d.tg;if(e&&8===c.Yj()){a.log("Create failed with 409 Conflict, re-querying: "+e);var f=_.YF(new _.WF,[e]);return _.fi(a.ha.then(function(h){return h.Pe(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),_.ljc((new _.GJ).setItem(h),e).Dc(1);a.log("No matching item found for: "+e);return _.Wh(d)}))}return _.gi(d)};_.g=_.HK.prototype;
_.g.cancel=function(a){var b=this,c=this.cj[a];if(c&&(!c.cF||0!==c.children.length))if(c.cF=!0,c.Fe.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.vma;d&&(ajc($ic(bjc(Ojc(d),c.Tu),!1),2),d.Dj());var e=_.Yh();c.dN?this.ha.then(function(f){return void e.resolve(f.cancel(a))}):(c.dN=!0,c.Fe.callback(Nhc(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.KG=function(){var a=this;_.Ta(this.cj,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.cj[f]){var h=[];do{h.push(f);var k=(_.se(b.cj[f].request,10)||[])[0];if(k){var l=b.cj[k];if(l.success||!l.Fe.Wf()||e[k])break;else if(!c.has(k)){e[f]=new _.Gc("Unable to retry request due to failed parent upload.");break}}f=k}while(f);_.ka(h,function(p){var q=b.cj[p];q.Tu++;if(!e[p])if(!q.Fe.Wf()||q.success)e[p]=new _.Gc("Unable to retry request.");else{var r=(_.se(q.request,10)||[])[0];e[r]instanceof _.Gc?
e[p]=e[r]:(q.Fe=fnc(b,p),q.dN=!1,q.cF=!1,(r=r?b.cj[r]:null)?gnc(b,p,r,!0):d.push(p),e[p]=q.Fe.nn())}})}else e[f]=new _.Gc("Retry request with unknown ID.")});a=a.map(function(f){f=e[f];return f instanceof _.$h?f:_.gi(f)});_.Ma(d,this.ma,this);return a};_.g.log=function(){this.isDisposed()};_.g.jd=function(a){return this.cj[a]};var jnc=/^uploadTestFailMe(\.[1-9])?$/,inc=new Map([[2,12],[5,1],[27,3],[29,4],[30,5],[31,6],[35,7],[36,8],[37,9],[38,10],[25,11]]),hnc=new Map([[3,14]]);

_.u();

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

_.mnc=function(a,b){return _.x(a,1,b)};_.nnc=function(a,b){return _.G(a,1,b)};_.onc=function(a,b){return _.x(a,2,b)};_.pnc=function(a,b){return _.G(a,3,b)};

_.u();

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


_.u();

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

var qnc;_.IK=function(a){_.J.call(this,a,-1,qnc)};_.K(_.IK,_.J);_.IK.prototype.Cb=function(){return _.z(this,1)};_.IK.prototype.Dc=function(a){return _.x(this,1,a)};_.IK.prototype.Mh=function(){return _.yb(this,_.Ik,2)};_.rnc=function(a,b){return _.sj(a,2,b)};_.IK.prototype.Pq=function(a,b){return _.yj(this,2,a,_.Ik,b)};_.IK.prototype.Vf=function(){return _.z(this,4)};_.snc=function(a,b){return _.x(a,4,b)};qnc=[2];

_.u();

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

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

_.u();

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

var tnc;_.unc=function(a){return _.Ye(a).eh(_.R(a.get(_.Mo),19,!1)?tnc:_.We)};tnc=[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("sy1fq");

var vnc,wnc,xnc,ync,znc,KK,Anc,Bnc,Cnc,Dnc,Enc,Gnc,Hnc,Inc,Jnc,Knc,NK,Pnc,Qnc,OK,PK,Rnc,Snc,Unc,Vnc,Wnc,Xnc,Ync,$nc,aoc,boc,coc,doc,eoc,goc,ioc,poc,roc,uoc,voc,yoc,Boc,TK,Coc,Doc,Eoc,Foc,Goc,Hoc,Ioc,Joc,Koc,Loc,Moc,Noc,Ooc,Poc,Qoc,Soc,Toc,Uoc,Xoc,Woc,$oc,bpc,dpc,fpc,jpc,ppc,opc,wpc,xpc,ypc,zpc,Apc,Epc,Gpc,Hpc,Ipc,LK,Jpc,Kpc,Mnc,Lnc,Nnc,Onc,grc,ZK,aL,wrc,zrc,Arc,Brc,Erc,Voc,Frc,gsc,hsc,isc,jsc,ksc,msc,nsc,osc,bL,psc,cL,qsc,rsc,ssc,tsc,usc,vsc,dL,wsc,xsc,ysc,zsc,Asc,Bsc,Csc,Osc,mtc,otc,ptc,utc,vtc,
Dtc,Ntc,Wtc,duc,juc,quc,suc,xuc,Duc,Suc,Tuc,Wuc,Yuc,rvc,qwc,loc,rwc,swc,twc,ywc,Gwc,Hwc,KAc,Fpc;vnc=function(a){a={Title:a.getTitle(),Type:a.getMimeType(),Parents:_.se(a,3),Convert:_.Q(a,8),ID:a.mj()};var b=[];_.Ta(a,function(c,d){c&&b.push(d+": "+c)});return b.join("; ")};
wnc=function(a){var b=[];b.push(vnc(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.Tu&&b.push("# of retries by client: "+a.Tu);var d="";a.dN?a.Fe.Wf()?a.Fe.eg(function(){d="Completed successfully."},function(e){d=e instanceof _.ai?"Canceled.":"Completed with failure. See attachment."}):d="In progress.":d="Not yet executed.";b.push("State: "+
d);return b.join("\n")};
xnc=function(a,b,c,d,e,f){var h=_.Xa(e),k=_.Xa(f);h=(0,_.Xs)("Drive Upload Report: %d/%d failed",k,h);a=a.Tf();d.push("Batch query interval: "+_.Dj(a,12,10)+"ms");d.push("Max resumable upload chunk size: "+_.Dj(a,32,1073741824)/1024/1024+" MiB");d.push("Max batch upload file size: "+_.Dj(a,33,1048576)/1024/1024+" MiB");d.push("Max files in an upload batch: "+_.Dj(a,35,10)+" files");d.push("Max files in a non-upload batch: "+_.Dj(a,10,50)+" files");d=d.join("\n");var l=[],p=[];_.Ta(e,function(q){p.push(wnc(q))});
l.push({name:"AllUploadRequests.txt",content:p.join("\n---------\n")});l.push({name:"DataserviceLogs.txt",content:_.jjc(b)});_.Ta(f,function(q,r){var v=l.push;r=e[r].request;r=(0,_.Xs)('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,JQ:l,Ed:152391,Z9:c,W0:361003}};ync=function(a){return Array.prototype.concat.apply([],arguments)};
znc=function(a,b,c){c=_.Ia(a,b,c);return 0>c?(_.ua(a,b,-(c+1)),!0):!1};KK=function(a){throw _.wd(a);};Anc=function(a,b){var c=new _.bI,d=new Set;if(6===a){a=_.m(b);for(b=a.next();!b.done;b=a.next())(b=b.value)?(b=_.D7a.get(b.Lv()))&&d.add(b):d.add(1);0===d.size&&d.add(0)}_.Hec(c,[].concat(_.fc(d)));return c};
Bnc=function(a){var b=[],c={};a=_.m(a);for(var d=a.next();!d.done;c={Ifa:c.Ifa},d=a.next())if(d=d.value){c.Ifa=new Map;[].concat(_.fc(_.Jk(d)),[d.Cm(),d.bs(),d.qq()]).forEach(function(p){return function(q){q&&p.Ifa.set(LK(q),q)}}(c));for(var e=[],f=_.m(c.Ifa.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)+"-")+_.xk(h))}b.push(d.getId()+","+d.Lv()+","+(e.length?e.join(","):"-"))}return b.length?"People: "+
b.join("|"):""};Cnc=function(a){var b=new _.uo;b.append("kind,largestChangeId,nextPageToken,");b.append("items(deleted,fileId,id,kind,");b.append(_.OI(a,!0,"file"));a.g8&&(b.append(",teamDriveId,teamDrive("),b.append(a.g8),b.append(")"));b.append(")");return b.toString()};Dnc=function(a){var b=new _.uo;b.append("kind,nextPageToken,items(");b.append(_.OI(a,!0));b.append("),incompleteSearch");a.g8&&(b.append(","),b.append(a.g8));return b.toString()};
Enc=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,_.Dk,111),l=_.y(d,_.MJ,27),p=_.y(d,_.iic,139),q=d.wf(),r=d.Vh(),v=_.y(d,_.OJ,103);switch(e){case 227:_.vb(d,144);break;case 228:_.vb(d,145);break;case 74:_.tj(d,83);break;case 188:_.vb(d,137);break;case 149:_.fI(d,128);break;case 148:_.tj(d,127);break;case 138:_.vb(d,126);break;case 184:_.fI(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&&_.rj(h,2);break;case 193:h&&_.vb(h,1);break;case 1004:_.vb(d,108);break;case 136:_.tj(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:_.rj(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:_.fI(d,104);break;case 41:_.vb(d,40);f&&_.vb(f,5);break;case 42:_.vb(d,41);break;case 1005:_.tj(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:_.fI(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:_.rj(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&&_.tj(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);_.rj(d,81);break;case 18:_.vb(d,19);break;case 95:_.vb(d,93);break;case 58:_.vb(d,63);break;case 14:_.tj(d,15);break;case 103:_.vb(d,101);break;case 1:_.fI(d,2);break;case 96:_.vb(d,94);break;case 1003:_.tj(d,107);break;case 75:_.rj(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:_.rj(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:_.rj(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:_.rj(d,47);break;case 192:q&&_.vb(q,6);break;case 159:q&&_.rj(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:_.fI(d,56);break;case 56:_.vb(d,61);break;case 55:_.tj(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:_.rj(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:_.rj(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:_.fI(d,120);break;default:throw Error("ed`"+e);}}};Gnc=function(a,b){if(0!=a.length){var c=new Set([].concat(_.fc(a),_.fc(Fnc)));a=[].concat(_.fc(_.Bdb.keys())).filter(function(e){return!c.has(e)});for(var d=0;d<b.length;d++)Enc(b[d],a)}};
Hnc=function(a,b){var c=a.getCapabilities()||new _.Bk,d=_.y(a,_.LJ,138),e=_.y(a,_.Dk,111),f=_.y(a,_.MJ,27),h=_.y(a,_.iic,139),k=a.wf(),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<_.se(a,128).length;case 148:return 0<a.nAa().length;case 138:return null!=a.h$();case 184:return 0<_.se(a,135).length;case 76:return null!=_.Ck(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!=_.Pe(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,_.hic,2);case 193:return null!=d&&null!=_.z(d,1);case 1004:return null!=_.Q(a,108);case 136:return 0<a.S1().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.pD();
case 91:return null!=a.qq();case 43:return null!=_.z(a,42)||null!=_.z(a,43);case 187:return null!=a.Wi();case 26:return null!=a.zf();case 108:return 0<_.se(a,104).length;case 41:return null!=_.Q(c,5);case 42:return null!=_.z(a,41);case 1005:return 0<_.Nk(a).length;case 59:return null!=_.Q(c,6);case 28:return null!=a.hJ();case 44:return null!=_.z(a,45);case 13:return null!=a.qM();case 48:return null!=_.Q(a,36);case 38:return null!=a.Mi();case 49:return 0<_.se(a,50).length;case 51:return null!=_.Q(a,
53);case 104:return null!=_.Q(a,102);case 39:return null!=a.Uka();case 87:return null!=_.Kk(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.De());case 16:return null!=a.Cm();case 12:return null!=a.Cz();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,_.Gk,8));case 3:return null!=a.getMimeType();case 11:return null!=a.EB();case 10:return null!=a.Oq();case 50:return null!=_.Q(a,49)||null!=_.Q(a,51)||null!=a.Wm();case 18:return null!=a.sq();case 14:return 0<_.Jk(a).length;case 95:return null!=a.El();case 58:return null!=_.Q(a,63);case 103:return null!=_.z(a,101);case 1:return 0<a.wk().length;case 96:return null!=_.Q(a,94);case 1003:return 0<_.Mk(a).length;case 75:return null!=
a.Bw();case 94:return null!=a.DN();case 45:return null!=a.ax();case 124:return null!=_.Q(a,118);case 125:return null!=_.z(a,119);case 1002:return null!=_.Lk(a);case 32:return null!=a.tv();case 67:return null!=a.nK();case 68:return null!=_.z(a,71);case 221:return null!=l&&null!=_.Q(l,9);case 210:return null!=_.Ok(a);case 7:return null!=a.S7();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.zj();case 25:return null!=a.Ny();case 46:return null!=
a.bs();case 192:return null!=k&&null!=_.Q(k,6);case 159:return null!=k&&null!=_.xe(k);case 154:return null!=k&&null!=_.z(k,1);case 158:return null!=k&&null!=_.ze(k);case 155:return null!=k&&null!=_.z(k,3);case 52:return 0<_.se(a,56).length;case 55:return 0<a.jA().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.Dz()||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.GD();case 27:return null!=a.Dp();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.De();case 8:return null!=_.Q(a,9);case 126:return 0<_.se(a,120).length;default:throw Error("fd`"+b);}};Inc=function(a,b){return b.every(function(c){return Hnc(a,c)})};
Jnc=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)})};Knc=function(a,b){var c=new Set(b.concat(_.jhc));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,Hnc(b,h))if(_.Fdb.has(h)){if(f){var k=a.getCapabilities()||new _.Bk;_.QJ(a,k);switch(h){case 76:_.x(k,1,_.Ck(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:_.gic(k,_.Pe(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(_.Gdb.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,_.hic,2);_.G(k,2,h);break;case 193:_.x(k,1,_.z(l,1))}}else if(_.Hdb.has(h)){if(k=_.y(b,_.Dk,111))switch(l=_.y(a,_.Dk,111)||new _.Dk,_.G(a,111,l),h){case 115:l.oP(_.Q(k,
1));break;case 116:_.x(l,2,_.z(k,2))}}else if(_.Idb.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.nh(k.De())}}else if(_.Jdb.has(h)){if(k=_.y(b,_.iic,139))switch(l=_.y(a,_.iic,139)||new _.iic,_.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(_.Kdb.has(h)){if(l=b.wf())switch(k=a.wf()||new _.Goa,_.G(a,
132,k),h){case 192:_.x(k,6,_.Q(l,6));break;case 159:h=_.xe(l);_.G(k,5,h);break;case 154:_.x(k,1,_.z(l,1));break;case 158:_.x(k,4,_.ze(l));break;case 155:_.x(k,3,_.z(l,3))}}else if(_.Ldb.has(h))switch(k=b.Vh(),h){case 157:k&&(h=a.Vh()||new _.Eoa,Lnc(a,h),Mnc(h,_.yb(k,_.Gk,8)));break;case 221:k&&(h=a.Vh()||new _.Eoa,Lnc(a,h),_.x(h,9,_.Q(k,9)))}else if(_.Mdb.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.nh(k.De())}}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();_.sj(a,83,h);break;case 188:_.x(a,137,_.Q(b,137));break;case 149:h=_.se(b,128);_.qj(a,128,h);break;case 148:h=b.nAa();_.sj(a,127,h);break;case 138:_.x(a,126,b.h$());break;case 184:h=_.se(b,135);_.qj(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.S1();_.sj(a,125,h);break;case 9:_.x(a,10,b.pD());break;case 91:_.vic(a,b.qq());
break;case 43:_.x(a,42,_.z(b,42));_.x(a,43,_.z(b,43));break;case 187:_.zic(a,b.Wi());break;case 26:a.ll(b.zf());break;case 108:h=_.se(b,104);_.qj(a,104,h);break;case 42:_.x(a,41,_.z(b,41));break;case 1005:h=_.Nk(b);_.sj(a,117,h);break;case 28:_.x(a,26,b.hJ());break;case 44:_.x(a,45,_.z(b,45));break;case 13:_.x(a,14,b.qM());break;case 48:_.x(a,36,_.Q(b,36));break;case 38:_.qic(a,b.Mi());break;case 49:h=_.se(b,50);_.qj(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.Uka());break;case 87:_.x(a,76,_.Kk(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:_.oic(a,b.Cm());break;case 12:_.x(a,13,b.Cz());break;case 3:_.cG(a,b.getMimeType());break;case 11:_.x(a,12,b.EB());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.Wm();_.G(a,81,h);break;case 95:_.xic(a,b.El());break;case 18:_.pic(a,
b.sq());break;case 58:_.x(a,63,_.Q(b,63));break;case 14:_.nic(a,_.Jk(b));break;case 1:_.PJ(a,b.wk());break;case 96:_.x(a,94,_.Q(b,94));break;case 103:_.x(a,101,_.z(b,101));break;case 1003:Nnc(a,_.Mk(b));break;case 75:_.uic(a,b.Bw());break;case 94:_.wic(a,b.DN());break;case 45:_.x(a,46,b.ax());break;case 124:_.x(a,118,_.Q(b,118));break;case 125:_.x(a,119,_.z(b,119));break;case 1002:h=_.Lk(b).clone();(null===(d=_.Lk(a))||void 0===d?0:_.Q(d,3))&&_.x(h,3,!0);(null===(e=_.Lk(a))||void 0===e?0:_.Q(e,4))&&
_.x(h,4,!0);_.G(a,100,h);break;case 32:_.x(a,28,b.tv());break;case 67:_.x(a,70,b.nK());break;case 68:_.x(a,71,_.z(b,71));break;case 210:_.x(a,140,_.Ok(b));break;case 7:_.x(a,8,b.S7());break;case 122:Onc(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.zj());break;case 25:_.x(a,23,b.Ny());break;case 46:_.ric(a,b.bs());break;case 52:h=_.se(b,56);_.qj(a,56,h);break;case 56:_.x(a,61,_.z(b,61));break;case 55:a.UA(b.jA());break;case 4:a.hw(b.oB());
break;case 35:_.x(a,31,_.Q(b,31));break;case 57:_.x(a,62,_.z(b,62));break;case 83:_.tic(a,b.uc());break;case 84:h=_.y(b,_.NJ,86);_.G(a,86,h);break;case 98:a.Ida(b.Cw());break;case 97:_.yic(a,b.GD());break;case 19:_.x(a,20,b.Dz());_.x(a,44,_.Q(b,44));_.x(a,90,_.z(b,90));break;case 2:a.setTitle(b.getTitle());break;case 6:a.Pn(b.Qh());break;case 27:_.zVb(a,b.Dp());break;case 70:_.x(a,75,b.nj());break;case 8:_.x(a,9,_.Q(b,9));break;case 126:h=_.se(b,120);_.qj(a,120,h);break;default:throw Error("gd`"+
h);}};Pnc=function(a,b){var c=_.yz[a];return b.filter(function(d){return!c||!c.has(d)})};Qnc=function(a,b,c){a=Pnc(c,a);return Jnc(b,a,_.jhc)};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.wf(),!!a&&"application/vnd.google-apps.folder"===_.z(a,3)):"application/vnd.google-apps.folder"===c};
Rnc=function(a){var b=a&&a.getId()||null;a&&OK(a)&&(a=(a=a.wf())&&_.z(a,1))&&(b=a);return b};Snc=function(a){return!!_.Q(a,31)&&!_.Q(a,94)};Unc=function(a){return Tnc.some(function(b){return Hnc(a,b)})};Vnc=function(a){return a.filter(function(b){return!!b}).some(function(b){return[4,5,2].includes(b.Lv())})};Wnc=function(a){return Vnc(a.filter(function(b){return b}).map(function(b){return b.getItem()}))};
Xnc=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?_.Cj(d,f)||(d=_.YEa(4).setItem(f),c[e]=d):(d=_.YEa(2).setItem(d),c[e]=d)});_.Ta(b,function(d,e){a[e]||(d=_.YEa(1).setItem(d),c[e]=d)});return c};Ync=function(a,b){return _.Xa(a)!==_.Xa(b)||!_.ab(Xnc(a,b))};_.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};$nc=function(a,b){return 0<=b?!a||a<=b:!0};
aoc=function(a,b){var c=a.Wm();c||(c=new _.yoa,b&&_.G(a,81,c));return c};boc=function(a){if(PK(a))_.JK(aoc(a,!0),!0);else if(PK(a,!0)){var b=a.wf();if(b=b&&_.xe(b))_.JK(aoc(b,!0),!0),_.JK(aoc(a,!0),!0)}};coc=function(a){return!!a.Wm()&&!PK(a)};doc=function(a){var b=[];_.Ma(a,function(c){if(3!=c.Lv()){if(null!=_.Q(c,49)||null!=_.Q(c,51)||null!=c.Wm())c=c.clone(),_.vb(c,49),_.vb(c,51),_.rj(c,81);b.push(c)}});return b};
eoc=function(a,b){if(b){var c=[];_.Q(b,3)&&c.push("folder");var d=_.fdc()&&4===b.getType()?"title_natural":_.Xfc[b.getType()];b=_.Zfc[b.Uf()];d&&(b&&(d+=" "+b),c.push(d));c.length&&(a.orderBy=c.join(","))}};goc=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 foc&&(a[b]=c.Hc())}};ioc=function(a){var b=a.slice(0),c=new Set(b);hoc.forEach(function(d){c.has(d)||b.push(d)});b.sort();return b};
poc=function(a,b,c){var d=_.y(a,joc,66);if(d){var e=_.XJ(a),f=_.vI(_.eI(a));a=new _.Zi(_.z(d,1));var h=new _.Zi(window.location);var k=h.Ro+"://"+h.kk();null!=h.Po&&(k+=":"+h.Ky());h=_.kj(k,3);_.dj(a,"co",h);h=a.Ie();!e&&0<f&&(h+="u/"+f+"/");a.Ai(h+"_/dataservice/cacheproxy");e=_.z(d,5)||"";if(_.fhc(window.location.href,a.toString())&&e)return a=ioc(c),c=_.z(d,6),b="#"+b+"_",d=new _.RH,d.update(a.join(",")),b+=_.Zec(d.digest()),c&&(b+="&jobset="+c),b=_.My(e+"?"+b),_.n.SharedWorker?(c=new SharedWorker(_.pca(b),
void 0),b=new koc(c.port),c.port.start()):b=new koc(new Worker(_.pca(b),void 0)),new loc(new moc(b,!0),1,e,a);c=a.toString();b="cpiframe_"+_.EI();c=_.zh("IFRAME",{name:b,id:b,src:c});c.style.cssText=_.$ia(_.Igc(_.rg("display: none;")));document.body.appendChild(c);c=_.Yec(a.Ro,void 0,a.kk(),a.Ky()).toString();return new loc(new moc(noc(window.frames[b],c),!0),0,a.toString())}a=new ooc;return new loc(new moc(a.O,!1),2,"inline",c,new moc(a.H,!1))};
roc=function(a){var b=new qoc;if(a instanceof _.PI)_.wj(b,16,QK,a);else if(a instanceof _.QI)_.wj(b,1,QK,a);else if(a instanceof _.RI)_.wj(b,2,QK,a);else if(a instanceof RK)_.wj(b,17,QK,a);else if(a instanceof _.UI)_.wj(b,3,QK,a);else if(a instanceof _.tK)_.wj(b,4,QK,a);else if(a instanceof _.SI)_.wj(b,5,QK,a);else if(a instanceof _.YI)_.wj(b,6,QK,a);else if(a instanceof _.$I)_.wj(b,7,QK,a);else if(a instanceof _.aJ)_.wj(b,8,QK,a);else if(a instanceof _.dJ)_.wj(b,9,QK,a);else if(a instanceof _.rJ)_.wj(b,
18,QK,a);else if(a instanceof _.vJ)_.wj(b,10,QK,a);else if(a instanceof _.wJ)_.wj(b,11,QK,a);else if(a instanceof _.xJ)_.wj(b,12,QK,a);else if(a instanceof _.wI)_.wj(b,13,QK,a);else if(a instanceof _.AJ)_.wj(b,14,QK,a);else if(a instanceof _.BJ)_.wj(b,15,QK,a);else throw new _.Gc("Unsupported request type");return b};
uoc=function(a){a=a.map(function(c){var d=new soc;if(c instanceof _.PI)_.wj(d,6,SK,c);else if(c instanceof RK)_.wj(d,7,SK,c);else if(c instanceof _.YI)_.wj(d,1,SK,c);else if(c instanceof _.vJ)_.wj(d,2,SK,c);else if(c instanceof _.wJ)_.wj(d,3,SK,c);else if(c instanceof _.wI)_.wj(d,4,SK,c);else if(c instanceof _.BJ)_.wj(d,5,SK,c);else throw new _.Gc("Unsupported request type");return d});var b=new toc;_.sj(b,1,a);return b};
voc=function(a){return _.yb(a,soc,1).map(function(b){return _.Gj(b,_.PI,6,SK)||_.Gj(b,_.YI,1,SK)||_.Gj(b,_.vJ,2,SK)||_.Gj(b,_.wJ,3,SK)||_.Gj(b,_.wI,4,SK)||_.Gj(b,_.BJ,5,SK)||_.Gj(b,RK,7,SK)})};yoc=function(a){var b=new woc;if(a instanceof _.oD)_.wj(b,1,xoc,a);else if(a instanceof _.pD)_.wj(b,2,xoc,a);else throw new _.Gc("Unsupported request type");return b};
Boc=function(a){var b=new zoc;if(a instanceof _.VI)_.wj(b,1,Aoc,a);else if(a instanceof _.bJ)_.wj(b,2,Aoc,a);else if(a instanceof _.CJ)_.wj(b,3,Aoc,a);else throw new _.Gc("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.Z9,dti:a.W0,a:a.JQ?a.JQ.map(function(b){return JSON.stringify({n:b.name,c:b.content,ct:b.contentType,ec:b.H9})}):void 0};return JSON.stringify(a)};
Doc=function(a){a=JSON.parse(a);return{title:a.t,description:a.d,Ed:a.c,Z9:a.fi,W0:a.dti,JQ:a.a?a.a.map(function(b){b=JSON.parse(b);return{name:b.n,content:b.c,contentType:b.ct,H9:b.ec}}):void 0}};Eoc=function(a,b){var c=_.Wgc(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=_.sd(_.td(new _.ud,12),a);var d=(new _.Df).Pn(!0);d=_.x(d,17,!0);a=_.Ef(d,a);c&&_.pl(a,c);c=new _.Qfc;b&&_.mnc(c,b);return _.nnc(_.pnc(new _.mI,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 _.Zi(_.C(b,16,"")+"/open"),d=a.getId();OK(a)&&(d=Rnc(a));_.dj(c,"id",d);_.dj(c,"authuser",_.vI(_.eI(b)));_.R(b,89,!1)&&_.lj(a,140)&&_.dj(c,"resourcekey",_.Ok(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={};_.Yhc(b,[_.z(a,2)||""]);return b};Moc=function(a){var b={};_.Te(_.nh(a.getTitle()))||(b.title=a.getTitle());_.Yhc(b,_.se(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=_.se(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={};_.Te(_.nh(a.getTitle()))||(b.title=a.getTitle());null!=a.zf()&&(b.description=a.zf());null!=_.Q(a,4)&&(c.starred=_.Q(a,4));null!=a.Qh()&&(c.trashed=a.Qh());_.Te(_.nh(a.getMimeType()))||(b.mimeType=a.getMimeType());"number"===typeof _.z(a,7)&&(b.modifiedDate=_.Zhc(_.$hc(_.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,_.Dk,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)}_.Yhc(b,_.se(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,_.lh)("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.De())a.width=c;b.backgroundImageFile=a}}return b};
Toc=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());null!=a.getState()&&(a=_.Xmc[a.getState()])&&(b.state=a);return b};
Uoc=function(a){_.kg("drive.DebugUtil.printFindById",function(c){a.iN(c).then(function(d){window.console.log(JSON.stringify(d))})});_.kg("drive.DebugUtil.getLogs",function(){return _.jjc(a.Ce())});_.kg("drive.DebugUtil.printLogs",function(){window.console.log(_.jjc(a.Ce()))});_.kg("drive.DebugUtil.printRequestHistory",function(){a.WR().then(function(c){c.forEach(function(d){window.console.log(_.z(d,1));window.console.log(_.z(d,2))})})});_.kg("drive.DebugUtil.getState",function(){return a.getState()});
var b=a.Ka();b&&_.R(b,1,!1)&&(_.kg("drive.DebugUtil.getContext",function(){return a.getContext()}),_.kg("drive.DebugUtil.setOffline",function(c){return void a.Jl(c)}))};Xoc=function(a,b){b.info("drive.ds.sync.api.Dump","Requesting dump stats.");b=new _.Qf;_.Rf(b,305);_.Sf(b,!0);_.x(b,3,2);var c=new _.nD;_.G(c,1,b);Voc(c,[7]);a=a.then(function(d){return d.Pe(c)}).then(Woc);return _.fi(a)};
Woc=function(a){a=_.yb(a,_.Vo,3);var b=new Yoc;a.forEach(function(c){var d=c.getKey();"corpusSize"===(d&&_.z(d,2))&&(c=_.qh(c.Wa()),_.x(b,3,c))});return"number"===typeof _.z(b,3)?b:null};$oc=function(a,b){var c=Zoc(a.Zl,b.qc());if(c){var d=c.getItem(),e=d.Bw();if(e){var f=e.ZR(),h=_.ya(f,function(k){return k.getId()===_.z(b,2)});_.kic(e,f);h||(f=_.yb(e,_.vk,3),_.ya(f,function(k){return k.getId()===_.z(b,2)}),_.lic(e,f));_.jic(e,(_.z(e,1)||1)-1);a.fl([d],c.V)}}};
bpc=function(a,b,c){if(b=Zoc(a.Zl,b.qc())){var d=b.getItem(),e=d.Bw();if(e){if(1===c.getType()||2===c.getType()){var f=_.yb(e,_.vk,3);f.push(c);_.Ka(f,apc);_.lic(e,f)}else f=e.ZR(),f.push(c),_.Ka(f,apc),_.kic(e,f);_.jic(e,(_.z(e,1)||0)+1);a.fl([d],b.V)}}};dpc=function(a){return a.map(function(b){var c=new _.lxb;var d=b.serviceName?cpc.get(b.serviceName):void 0;c=_.x(c,3,d);return _.x(c,2,Number(b.bytesUsed))})};
fpc=function(a){return(a.quotaBytesByService||[]).reduce(function(b,c){return c.serviceName&&epc.has(c.serviceName)?b+Number(c.bytesUsed):b},0)};
jpc=function(a){var b=a.exportJob,c=b.status;c=c?gpc.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=_.cG((new _.Ik).Nb(l.docId).setTitle(l.title),l.mediaType);p=(new _.hpc).setItem(p);p=_.x(p,3,l.relativePath);return _.x(p,4,l.cause)});return new ipc(c,d,k,f,h,e,a,b)};
ppc=function(a){var b=kpc(new UK,lpc(a)),c=a.result;a=a.processedFileCount;if(c){var d=c.status;(d=d&&mpc[d])&&b.Dc(d);c.sourceResults&&npc(b,c.sourceResults.map(function(e){return opc(e)}));c.validationToken&&_.x(b,4,c.validationToken)}void 0!==a&&_.x(b,2,a);return b};opc=function(a){var b=qpc(rpc(new _.spc,a.sourceId),a.fileCount);a.unmovableFileReasons&&tpc(b,a.unmovableFileReasons.map(function(c){var d=new _.upc;d=_.x(d,1,c.unmovableReason);return _.x(d,2,c.count)}));return b};
wpc=function(a){var b={},c=a.getKey();b.key=c&&_.z(c,2);b.value=a.Wa();(a=c&&_.Wo(c))&&(b.namespace=vpc[a]);return b};xpc=function(a){for(var b=[],c=0;c<a.length;c++)b.push(vpc[a[c]]);return b};ypc=function(a){return"kind,defaultAppIds,items("+a+")"};zpc=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(_.eI(f))||!h&&!l)_.x(f,61,!1),_.rj(f,66),k&&_.x(k,10,!1),f=!1;else{if(h){_.n.SharedWorker||(h=!1);var p=_.y(f,joc,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),_.rj(f,66));
f=h||l}if(f)return b=new VK(a,b,_.R(b,61,!1)?3:5),new Bpc(b);f=_.KI(_.eI(b))?2:1;a=new XK(a,b,f,void 0,void 0,void 0);return _.KI(_.eI(b))?new Cpc(a):new Dpc(a)};Gpc=function(a){return _.Ye(a).eh(_.R(a.get(_.Mo),19,!1)?Fpc:_.vVa)};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 _.sj(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.BN=function(){return _.yb(this,_.vk,1)};Kpc.prototype.Vha=function(a){_.yj(this,1,a,_.vk,void 0)};var Lpc=function(a){var b=new Kpc;return _.sj(b,1,a)},Mpc=function(a,b){return _.G(a,1,b)},Npc=function(a,b){_.sj(a,2,b)},Opc=function(a,b){_.G(a,6,b)},Ppc=function(a,b){_.G(a,7,b)},Qpc=function(a,b){return _.wj(a,3,_.zk,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 $pc=function(a){_.J.call(this,a)};_.K($pc,_.J);var aqc=function(a){_.J.call(this,a)};_.K(aqc,_.J);var bqc=function(a){_.J.call(this,a)};_.K(bqc,_.J);var cqc=function(a){_.J.call(this,a)};
_.K(cqc,_.J);var dqc=function(a){_.J.call(this,a)};_.K(dqc,_.J);var eqc=function(a,b){_.sj(a,1,b)},fqc=function(a,b){return _.x(a,2,b)},gqc=function(a,b){return _.G(a,3,b)},hqc=function(a,b){return _.x(a,4,b)},iqc=function(a){_.J.call(this,a)};_.K(iqc,_.J);var jqc=function(a,b){_.sj(a,1,b)},kqc=function(a,b){return _.G(a,2,b)},lqc=function(a){_.J.call(this,a)};_.K(lqc,_.J);
var mqc=function(a,b){_.sj(a,1,b)},nqc=function(a,b){return _.G(a,4,b)},oqc=function(a,b){_.G(a,5,b)},pqc=function(a,b){_.sj(a,2,b)},qqc=function(a,b){_.x(a,3,b)},rqc=function(a,b){_.sj(a,4,b)},sqc=function(a,b){return _.G(a,5,b)},tqc=function(a){_.J.call(this,a)};_.K(tqc,_.J);var uqc=function(a,b){_.sj(a,1,b)},vqc=function(a,b){return _.G(a,2,b)},wqc=function(a){_.J.call(this,a)};_.K(wqc,_.J);
var xqc=function(a,b){_.sj(a,2,b)},yqc=function(a){var b=new _.qoa;return _.sj(b,3,a)},zqc=[1,2],Aqc=function(a){_.J.call(this,a)};_.K(Aqc,_.J);Aqc.prototype.Nf=function(a){return _.wj(this,1,zqc,a)};var Bqc=[1],Cqc=function(a){_.J.call(this,a,-1,Bqc)};_.K(Cqc,_.J);Cqc.prototype.$q=function(){return _.z(this,2)};var Dqc=function(a,b){_.sj(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){_.sj(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.Nf=function(a){return _.wj(this,1,Lqc,a)};var Nqc=function(a,b){_.sj(a,1,b)},Oqc=function(a,b){return _.sj(a,2,b)},Pqc=function(a){_.J.call(this,a)};_.K(Pqc,_.J);var Qqc=function(a,b){_.sj(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],$qc=function(a,b){return _.G(a,1,b)},arc=function(a,b){return _.x(a,2,b)},brc=function(a,b){return _.x(a,3,b)},crc=function(a,b){return _.x(a,4,b)},drc=function(a,b){return _.x(a,5,b)},erc=function(a,b){return _.x(a,6,b)},frc=function(a){_.J.call(this,a)};_.K(frc,_.J);Mnc=function(a,b){_.sj(a,8,b)};Lnc=function(a,b){return _.G(a,73,b)};Nnc=function(a,b){_.sj(a,107,b)};_.MK=function(a){return _.y(a,frc,109)};
Onc=function(a,b){_.G(a,109,b)};grc=function(a){_.J.call(this,a)};_.K(grc,_.J);var hrc=function(a){_.J.call(this,a)};_.K(hrc,_.J);var irc=function(a){var b=new _.Qj;_.Yj(b,a,1);_.Yj(b,a,2);_.Tj(a,b);return _.Sj(b)},jrc=function(a){_.J.call(this,a)};_.K(jrc,_.J);var joc=function(a){_.J.call(this,a)};_.K(joc,_.J);var krc=[11],lrc=function(a){_.J.call(this,a,-1,krc)};_.K(lrc,_.J);var YK=function(a){_.J.call(this,a)};_.K(YK,_.J);YK.prototype.getKey=function(){return _.z(this,2)};
YK.prototype.yt=function(){return _.lj(this,2)};ZK=function(a){return _.C(a,4,"en")};_.$K=function(a){return _.y(a,lrc,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};_.mrc=function(a,b){return _.x(a,2,b)};_.nrc=function(a,b){return _.x(a,3,b)};_.orc=function(a,b){return _.x(a,1,b)};_.prc=function(a,b){return _.x(a,2,b)};_.qrc=function(a,b){return _.sj(a,5,b)};_.rrc=function(a,b){return _.x(a,6,b)};
_.src=function(a,b){return _.x(a,7,b)};_.trc=function(a,b){return _.x(a,8,b)};_.urc=function(a,b){return _.x(a,10,b)};_.vrc=function(a,b){return _.x(a,15,b)};wrc=[2];_.xrc=function(a){_.J.call(this,a,-1,wrc)};_.K(_.xrc,_.J);_.xrc.prototype.mi=function(){return _.z(this,1)};_.yrc=function(a,b){return _.G(a,1,b)};zrc=function(a,b){return _.x(a,2,b)};Arc=function(a,b){return _.x(a,3,b)};Brc=function(a,b){_.sj(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 _.pj(this,1)};Erc.prototype.Hb=function(a){return _.wb(this,1,a,0)};Voc=function(a,b){_.qj(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.De=function(){return _.z(this,4)};_.Roc.prototype.nh=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.se=function(){return _.y(this,_.Qf,2)};
var Grc=function(a,b){return _.qj(a,9,b)},Hrc=function(a,b){return _.qj(a,10,b)},Irc=function(a,b){return _.x(a,36,b)},Jrc=function(a,b){return _.sj(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 _.pI;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.Oy=function(){return _.Q(this,1)};Src.prototype.Xo=function(){return _.z(this,5)};Src.prototype.Vm=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.Oy=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.Vm=function(){return _.z(this,3)};Zrc.prototype.gw=function(a){return _.x(this,3,a)};Zrc.prototype.Xo=function(){return _.z(this,4)};var $rc=function(a){_.J.call(this,a)};_.K($rc,_.J);var asc=function(a){_.J.call(this,a)};_.K(asc,_.J);
var bsc=function(a,b){return _.x(a,1,b)},csc=function(a,b){return _.x(a,2,b)},dsc=function(a,b){_.x(a,3,b)},esc=[1,3,5],fsc=function(a){_.J.call(this,a,-1,esc)};_.K(fsc,_.J);fsc.prototype.BD=function(){return _.se(this,1)};fsc.prototype.Oy=function(){return _.Q(this,2)};fsc.prototype.Xo=function(){return _.z(this,7)};gsc=function(a,b){_.x(a,2,b)};hsc=function(a,b){_.uj(a,5,b,void 0)};isc=function(a,b){_.x(a,6,b)};jsc=function(a,b){_.x(a,7,b)};ksc=function(a,b,c){_.$J(a,b,c,"warning")};
_.lsc=function(a,b){_.G(a,2,b)};msc=function(a){return[].concat(_.fc(a.O))};nsc=function(a){return a.H.concat([].concat(_.fc(a.O)))};osc=function(a,b){var c=new Set;b=_.m(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.H.includes(d)||a.O.has(d)||(a.O.add(d),c.add(d));return[].concat(_.fc(c))};bL=function(a){var b=_.hK(a).jd();b||(b=new _.Vic,a=_.hK(a),_.G(a,1,b));return b};psc=function(a){var b=_.y(_.hK(a),fsc,3);b||(b=new fsc,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};qsc=function(a){var b=_.y(_.hK(a),Prc,7);b||(b=new Prc,a=_.hK(a),_.G(a,7,b));return b};rsc=function(a){var b=_.y(_.hK(a),Rrc,12);b||(b=new Rrc,a=_.hK(a),_.G(a,12,b));return b};ssc=function(a){var b=_.y(_.hK(a),Xrc,17);b||(b=new Xrc,a=_.hK(a),_.G(a,17,b));return b};tsc=function(a){var b=_.y(_.hK(a),asc,21);b||(b=new asc,a=_.hK(a),_.G(a,21,b));return b};
usc=function(a){if(a instanceof _.QH)return 2;if(a instanceof _.aG)return 10;if(a instanceof _.Df)return _.kJ(a)?3:_.lJ(a)?7:_.mJ(a)?8:1;if(a instanceof _.WF)return 9;if(a instanceof _.iG)return 11;if(a instanceof _.tJ)return 15;if(a instanceof _.OH)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 _.dA)return 12;if(a instanceof _.bG)return 13}return 0};
vsc=function(a){var b=null;a instanceof _.dI||"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.Oe:"undefined"!=typeof _.lK&&a instanceof _.lK&&(b=a.We());return b||0};
dL=function(a,b,c){return a.V&&_.mkc(a)?(a=_.ikc(a.V,b,0),c&&_.ehc(a,c),a):null};wsc=function(a){a.V&&_.mkc(a)&&(a=a.V,a.H.cQ()&&a.H.G_())};xsc=function(a,b){return _.G(a,1,b)};ysc=function(a){var b=new _.fJ;return _.x(b,1,a)};zsc=function(a,b){return _.G(a,2,b)};Asc=function(a,b){a.ha=b};Bsc=[2];Csc=function(a){_.J.call(this,a,-1,Bsc)};_.K(Csc,_.J);_.g=Csc.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.BN=function(){return _.yb(this,_.vk,2)};
_.g.Vha=function(a){_.yj(this,2,a,_.vk,void 0)};_.g.$j=function(){return _.z(this,3)};var Dsc=function(a,b){return _.sj(a,2,b)},Esc=[2],Fsc=function(a){_.J.call(this,a,-1,Esc)};_.K(Fsc,_.J);Fsc.prototype.Cb=function(){return _.z(this,1)};Fsc.prototype.Dc=function(a){return _.x(this,1,a)};Fsc.prototype.$j=function(){return _.z(this,3)};
var Gsc=function(a){return a.H?a.H.promise:a.O()?(a.H=new _.en,a.H.promise):null},Hsc=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.cj);for(e=d.next();!e.done;e=d.next())(e=e.value.Zv.config.timestamp)&&c.push(e);_.Ca(b,c)}return b},Isc=function(a,b){return Dsc(new Csc,(b.items||
[]).map(function(c){return _.Cmc(a,c)}))},Jsc=function(a,b){return erc(drc(crc(_.lic(_.jic(new _.Boa,b.entryCount),(b.selectPermissions||[]).map(function(c){return _.Cmc(a,c)})),b.memberCount),b.userEntryCount),b.groupEntryCount)},Ksc=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},Lsc=function(a,b){if(!(a instanceof b.constructor))throw Error("$");var c=a.Qs();
b=b.Qs();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++)_.dba(c[e],b[e])||(d[e]=b[e]);return _.hba(a.constructor,d)},Msc=[2],Nsc=function(a){_.J.call(this,a,-1,Msc)};_.K(Nsc,_.J);Nsc.prototype.Cb=function(){return _.z(this,1)};Nsc.prototype.Dc=function(a){return _.x(this,1,a)};Nsc.prototype.tXa=function(){return _.yb(this,_.XEa,2)};Nsc.prototype.$j=function(){return _.z(this,3)};Osc=[2,6];
_.kK=function(a){_.J.call(this,a,-1,Osc)};_.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,_.Ik,2)};_.g.iB=function(a){return _.sj(this,2,a)};_.g.dh=function(a,b){return _.yj(this,2,a,_.Ik,b)};_.g.$j=function(){return _.z(this,3)};_.g.Rl=function(){return _.R(this,4,!0)};var Psc=function(a,b){return _.sj(a,6,b)};_.kK.prototype.Vf=function(){return _.z(this,10)};
_.kK.prototype.bQ=function(a){return _.x(this,10,a)};_.kK.prototype.We=function(){return _.z(this,9)};_.kK.prototype.ri=function(a){return _.x(this,9,a)};
var Qsc={SUCCESS:1,u$b:2,m1b:3,NXb:4,H$b:5,Z4b:6,N4b:7,yYb:8,r9b:9,G9b:10,t$b:11,d_b:12,IZb:13,n2b:14,F0b:15,MZb:16,LZb:17,RZb:18,OZb:19,PZb:20,Y9b:21,D$b:22,r5b:23,w4b:24,qYb:25,PERMISSION_DENIED:26,K3b:27,EYb:28,DYb:29,INTERRUPTED:30,R5b:31,l6b:32,s_b:33,y_b:34,y9b:35,F_b:36,G0b:37,x_b:38,M4b:39,jZb:40,M5b:41,n6b:42,p9b:43,WYb:44,iZb:45,D0b:46,F3b:47,K4b:48,i5b:49,N5b:50,i9b:51,JZb:52,q9b:53,o9b:54,bZb:55,ZYb:56,Q_b:57,e4b:58,O5b:59,b3b:60,C7b:61,q8b:62,X8b:63,D2b:64,y4b:65,K$b:66,H_b:67,H0b:68,
s$b:69,I2b:70,CYb:71,RYb:72,y8b:73,Y8b:74,U8b:75,S8b:76,m8b:190,R8b:191,z8b:192,F8b:126,B8b:128,C8b:129,D8b:130,E8b:131,G8b:132,H8b:133,L7b:127,I7b:134,J7b:135,N7b:136,O7b:137,P7b:138,K7b:194,M7b:195,Q7b:196,H7b:197,p8b:189,B7b:139,D7b:140,R7b:141,S7b:142,d8b:143,g8b:144,h8b:145,i8b:146,j8b:147,k8b:148,l8b:149,o8b:150,u8b:151,w8b:152,x8b:153,A8b:154,I8b:155,K8b:156,L8b:157,M8b:158,N8b:159,O8b:160,P8b:161,T8b:162,W8b:163,Z8b:164,E7b:165,F7b:166,G7b:167,z7b:168,A7b:169,V7b:170,T7b:171,U7b:172,W7b:173,
X7b:174,Y7b:175,Z7b:176,$7b:177,a8b:178,b8b:179,c8b:180,e8b:181,f8b:182,n8b:106,v8b:183,J8b:184,Q8b:185,r8b:186,s8b:187,t8b:188,V8b:244,L5b:77,x$b:78,C$b:79,S3b:80,s2b:81,u2b:82,P_b:83,C0b:84,L3b:85,R9b:86,w_b:87,K2b:88,J2b:89,b9b:90,$8b:91,a9b:92,y$b:93,yZb:94,xZb:95,uZb:96,wZb:97,vZb:98,J$b:99,l7b:100,UZb:101,NZb:102,SZb:103,QZb:104,TZb:105,I0b:107,D9b:108,f7b:109,m$b:110,L0b:111,K0b:112,g3b:113,h3b:114,r6b:115,cZb:116,o3b:117,a0b:118,z$b:119,S4b:120,T4b:121,o2b:193,KZb:122,m_b:123,r2b:124,r4b:125,
L2b:198,W5b:199,A2b:200,qXb:201,G2b:202,E2b:203,HYb:204,iac:205,w3b:206,rZb:207,P4b:208,m6b:209,h7b:210,RXb:211,e3b:212,l3b:213,t9b:214,s9b:215,C2b:216,m2b:217,B2b:218,J_b:219,H9b:220,K_b:221,c3b:222,A9b:223,T$b:224,C4b:225,z9b:226,o_b:227,u3b:228,O_b:229,mZb:230,P9b:231,t4b:232,FILE_TOO_LARGE:233,H2b:234,I_b:235,z0b:236,h6b:237,z4b:238,bXb:239,nZb:240,G4b:241,s7b:242,u_b:243,oXb:245,v2b:246,k5b:247,t2b:248,R3b:249,x4b:250,E0b:251,t1b:252,f3b:253,$Yb:254,J0b:255,I$b:256,f1b:257,a4b:258,z6b:259,V5b:260,
S2b:261,ZZb:262,v_b:263,pYb:264,J3b:265,G$b:266,fXb:267,fYb:268,eYb:269,L4b:270,$Wb:271,aXb:272,sYb:273,qZb:274,hYb:275,gYb:276,v3b:277,M0b:278,x2b:279,s6b:280,L9b:281,b4b:282,x3b:283,y3b:284,lZb:285,SXb:286,X4b:287,BYb:288,FYb:289,GYb:290},Rsc={A$b:0,c4b:1,t5b:2,g5b:3,N2b:4,OXb:5,d4b:6,h5b:7,U1b:8,oYb:9,e5b:10},Ssc=function(){this.map={};this.status=6;this.Oe=null};_.g=Ssc.prototype;_.g.Cb=function(){return this.status};_.g.Dc=function(a){this.status=a};_.g.We=function(){return this.Oe};
_.g.ri=function(a){this.Oe=a};_.g.ot=function(){return this.map};var Tsc=function(a,b){a.map=b};Ssc.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.Oe,me:b})};var Usc=function(a,b,c){c=JSON.parse(c);a.Dc(c.s);a.ri(c.d);var d={};c.me.forEach(function(e){d[e.k]=e.v?b(e.v):null});a.map=d},Vsc=function(){Ssc.apply(this,arguments)};_.K(Vsc,Ssc);_.jK=function(){Ssc.apply(this,arguments)};_.K(_.jK,Ssc);
var eL=function(a){_.yi.call(this);var b=this;this.ta=a;this.active=!1;_.ff(this,function(){b.active=!1})};_.K(eL,_.yi);eL.prototype.Oi=function(){return String(_.Fa(this))};eL.prototype.activate=function(){this.active||(this.log("livelist "+this.Oi()+" activated."),this.active=!0,this.XP())};eL.prototype.isActive=function(){return this.active};eL.prototype.log=function(a,b){this.ta.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.wa=f;this.H=[];this.items=[];this.status=6;this.W=_.Hec(new _.bI,[1]);this.V=!0;this.Oe=0;this.Ba=d;this.limit=e.wi();_.ff(this,function(){h.H=[]});_.E7a++};_.K(_.fL,eL);_.g=_.fL.prototype;_.g.activate=function(){eL.prototype.activate.call(this);_.qa(this.items)&&6===this.Cb()&&this.qk()||Wsc(this)};_.g.XP=function(){};_.g.jd=function(){return this.request};_.g.wi=function(){return this.limit};_.g.Cb=function(){return this.status};
_.g.ys=function(){return this.W};_.g.qk=function(){return this.V};_.g.ts=function(){var a=_.Jy(_.C7a(),this.H,this.items),b=(new Nsc).Dc(this.Cb());a=_.sj(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 Xsc=function(a,b){return a.Cb()!==b.Cb()||aL(_.C7a(),a.items,b.Bd())},Ysc=function(a,b){a.items=b.Bd();a.status=b.Cb();_.lI(a.wa)&&(a.W=Anc(a.status,a.items));a.V=b.Rl();a.Oe=b.We()};_.fL.prototype.MB=function(a){this.dispatchEvent(new _.Hc(new _.Gc("Error occurred running a query after "+a.retryCount+" retries.",a.error)))};_.fL.prototype.YW=function(){this.dispatchEvent(new _.ni(_.xFa))};
_.fL.prototype.Su=function(a,b){var c=this;b+="\n\n\nQuery:\n"+gL(this.O,this.jd());return this.ma.then(function(d){return d.tPb(a,b,c.jd(),c.wi(),c.items)})};
var Wsc=function(a){if(a.isActive()){var b=a.ys().H();a.log("Livelist "+a.Oi()+" returning "+a.items.length+". Status: "+(_.fb(Qsc)[a.Cb()]+". ")+(6===a.Cb()?"MissingTypes: "+b.join(",")+". ":"")+("Datasource: "+_.fb(Rsc)[a.Oe]+". Query: ")+(gL(a.O,a.request)+" ")+Bnc(a.items));Zsc(a,a.items,a.request);a.dispatchEvent(new _.ni(_.bd,a))}},Zsc=function(a,b,c){if(_.kJ(c))c="quick access";else if(_.lJ(c))c="people predict";else if(_.mJ(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(){_.F7a++;eL.prototype.Ya.call(this)};var Fnc=[1004,1005,1002,1003],Tnc=[1002,1003,1005],$sc=[1,2],atc=function(a){_.J.call(this,a,-1,$sc)};_.K(atc,_.J);
var btc=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=_.Hec(new _.bI,[1]);this.log("Creating find by ids live map: "+this.request.V().join(", "));_.ff(this,function(){h.H={}});_.fkb++};_.K(btc,eL);_.g=btc.prototype;_.g.XP=function(){_.ab(this.items)&&6===this.status||ctc(this)};_.g.jd=function(){return this.request};
_.g.getData=function(){this.H=this.items;var a=new _.jK;_.lI(this.O)?a.Dc(Vnc(Object.values(this.items))?6:this.status):a.Dc(this.status);a.map=this.items;return a};_.g.ts=function(){var a=Xnc(this.H,this.items),b=new Vsc;b.Dc(this.status);b.map=a;this.H=this.items;return b};_.g.Cb=function(){return this.status};_.g.ys=function(){return this.V};_.g.XT=function(a){dtc(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.ot()[c];d&&(_.bb(a.map,c),a.map.root=d);etc(b,a)}):etc(this,a)};var etc=function(a,b){if(a.status!==b.Cb()||Ync(a.items,b.ot()))a.status=b.Cb(),a.items=b.ot(),_.lI(a.O)&&(a.V=Anc(a.status,Object.values(a.items))),ctc(a)};btc.prototype.MB=function(a){this.dispatchEvent(new _.Hc(new _.Gc("Error occurred running a find-by-IDs query after "+a.retryCount+" retries.",a.error)))};btc.prototype.YW=function(){this.dispatchEvent(new _.ni(_.xFa))};
var ctc=function(a){a.isActive()&&(a.log("Livelist "+a.Oi()+" returning "+(Object.values(a.items).length+". Status: ")+(_.fb(Qsc)[a.Cb()]+". Query: ")+(gL(a.W,a.request)+" ")+Bnc(Object.values(a.items))),a.dispatchEvent(new _.ni(_.bd,a)))};btc.prototype.Ya=function(){_.gkb++;eL.prototype.Ya.call(this)};_.ftc=function(a){_.J.call(this,a)};_.K(_.ftc,_.J);_.ftc.prototype.Cb=function(){return _.z(this,1)};_.ftc.prototype.Dc=function(a){return _.x(this,1,a)};
_.ftc.prototype.un=function(){return _.y(this,_.cI,2)};var gtc=function(a){_.ni.call(this,a)};_.K(gtc,_.ni);var htc=[5,7,9],itc=function(a){_.J.call(this,a,-1,htc)};_.K(itc,_.J);_.g=itc.prototype;_.g.getUser=function(){return _.y(this,_.vk,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.Vpa=function(a){return _.qj(this,5,a)};_.g.addTextValues=function(a,b){return _.uj(this,5,a,b)};
_.g.setSelectionValue=function(a){return _.x(this,6,a)};_.g.Rpa=function(a){return _.qj(this,7,a)};_.g.addSelectionValues=function(a,b){return _.uj(this,7,a,b)};_.g.setIntegerValue=function(a){return _.x(this,8,a)};_.g.Ipa=function(a){return _.qj(this,9,a)};_.g.addIntegerValues=function(a,b){return _.uj(this,9,a,b)};var jtc=[7,10,12,16,13,3],hL=function(a){_.J.call(this,a,-1,jtc)};_.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.dbb=function(){return _.z(this,6)};_.g.setTextValue=function(a){return _.x(this,6,a)};_.g.Vpa=function(a){return _.qj(this,7,a)};_.g.addTextValues=function(a,b){return _.uj(this,7,a,b)};_.g.bbb=function(){return _.z(this,8)};_.g.setLongTextValue=function(a){return _.x(this,8,a)};_.g.cbb=function(){return _.z(this,9)};_.g.setSelectionValue=function(a){return _.x(this,9,a)};_.g.bOa=function(){return _.se(this,10)};
_.g.Rpa=function(a){return _.qj(this,10,a)};_.g.addSelectionValues=function(a,b){return _.uj(this,10,a,b)};_.g.abb=function(){return _.z(this,11)};_.g.setIntegerValue=function(a){return _.x(this,11,a)};_.g.Ipa=function(a){return _.qj(this,12,a)};_.g.addIntegerValues=function(a,b){return _.uj(this,12,a,b)};_.g.ebb=function(){return _.y(this,_.vk,15)};_.g.setUserValue=function(a){return _.G(this,15,a)};_.g.RYa=function(){return _.yb(this,_.vk,16)};var ktc=function(a,b){_.sj(a,16,b)};
hL.prototype.addUserValues=function(a,b){return _.yj(this,16,a,_.vk,b)};hL.prototype.H=function(){return _.z(this,17)};hL.prototype.setDateStringValue=function(a){return _.x(this,17,a)};hL.prototype.V=function(){return _.lj(this,17)};var ltc=function(a,b){_.sj(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)};mtc=[3];
_.jL=function(a){_.J.call(this,a,-1,mtc)};_.K(_.jL,_.J);_.jL.prototype.getType=function(){return _.z(this,1)};_.jL.prototype.qc=function(){return _.z(this,2)};_.ntc=function(a){_.J.call(this,a)};_.K(_.ntc,_.J);_.ntc.prototype.getFeature=function(){return _.z(this,1)};otc=[1];_.gK=function(a){_.J.call(this,a,-1,otc)};_.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.se=function(){return _.y(this,_.Qf,3)};ptc=[2,3,8];_.wJ=function(a){_.J.call(this,a,-1,ptc)};_.K(_.wJ,_.J);_.wJ.prototype.getId=function(){return _.z(this,1)};_.wJ.prototype.Nb=function(a){return _.x(this,1,a)};_.wJ.prototype.se=function(){return _.y(this,_.Qf,4)};_.wJ.prototype.uc=function(){return _.z(this,5)};var qtc=function(a){_.J.call(this,a)};_.K(qtc,_.J);var rtc=[1,2,4],stc=function(a){_.J.call(this,a)};_.K(stc,_.J);stc.prototype.zf=function(){return _.C(this,1)};
stc.prototype.ll=function(a){return _.Jj(this,1,a)};stc.prototype.getUrl=function(){return _.C(this,2)};_.ttc=function(a){_.J.call(this,a)};_.K(_.ttc,_.J);_.ttc.prototype.getType=function(){return _.oj(this,1,0)};_.ttc.prototype.getContext=function(){return _.y(this,stc,2)};utc=[1];vtc=[2,4];_.wtc=function(a){_.J.call(this,a,-1,vtc)};_.K(_.wtc,_.J);_.wtc.prototype.getLabel=function(){return _.C(this,1)};_.wtc.prototype.getTitle=function(){return _.C(this,3)};
_.wtc.prototype.setTitle=function(a){return _.Jj(this,3,a)};_.xtc=function(a){_.J.call(this,a,-1,utc)};_.K(_.xtc,_.J);_.ytc=[2,3,4];_.ztc=function(a){_.J.call(this,a)};_.K(_.ztc,_.J);_.ztc.prototype.ue=function(){return _.C(this,3)};_.ztc.prototype.On=function(a){return _.Jj(this,4,a)};_.Atc=function(a){_.J.call(this,a)};_.K(_.Atc,_.J);_.Btc=function(a){_.J.call(this,a)};_.K(_.Btc,_.J);var Ctc=function(a){_.J.call(this,a)};_.K(Ctc,_.J);Dtc=[3,5];_.kL=[8,9,10,11,12,13,14];
_.Etc=function(a){_.J.call(this,a)};_.K(_.Etc,_.J);_.Ftc=function(a){_.J.call(this,a,-1,Dtc)};_.K(_.Ftc,_.J);_.Ftc.prototype.Cb=function(){return _.oj(this,6,0)};_.Ftc.prototype.Dc=function(a){return _.Lj(this,6,a)};var Gtc=function(a){_.J.call(this,a)};_.K(Gtc,_.J);var Htc=function(a){_.J.call(this,a)};_.K(Htc,_.J);var Itc=function(a){_.J.call(this,a)};_.K(Itc,_.J);var Jtc=[1],Ktc=function(a){_.J.call(this,a,-1,Jtc)};_.K(Ktc,_.J);var Ltc=function(a){_.J.call(this,a)};_.K(Ltc,_.J);
var Mtc=function(a){_.J.call(this,a)};_.K(Mtc,_.J);Ntc=[7];_.Otc=[1,2,3];_.Ptc=function(a){_.J.call(this,a)};_.K(_.Ptc,_.J);_.Qtc=function(a){_.J.call(this,a)};_.K(_.Qtc,_.J);_.Rtc=function(a){_.J.call(this,a)};_.K(_.Rtc,_.J);_.Stc=function(a){_.J.call(this,a,-1,Ntc)};_.K(_.Stc,_.J);var Ttc=function(a){_.J.call(this,a)};_.K(Ttc,_.J);Ttc.prototype.getName=function(){return _.C(this,1)};Ttc.prototype.$c=function(a){return _.Jj(this,1,a)};var Utc=function(a){_.J.call(this,a)};_.K(Utc,_.J);
Utc.prototype.getName=function(){return _.C(this,1)};Utc.prototype.$c=function(a){return _.Jj(this,1,a)};Utc.prototype.getTitle=function(){return _.C(this,2)};Utc.prototype.setTitle=function(a){return _.Jj(this,2,a)};_.Vtc=[1,4];Wtc=function(a){_.J.call(this,a)};_.K(Wtc,_.J);Wtc.prototype.getUser=function(){return _.Gj(this,_.Btc,1,_.Vtc)};Wtc.prototype.kk=function(){return _.y(this,Ttc,3)};Wtc.prototype.Nn=function(a){return _.G(this,3,a)};Wtc.prototype.yH=function(){return _.lj(this,3)};
var Xtc=[8,9,10],Ytc=function(a){_.J.call(this,a)};_.K(Ytc,_.J);Ytc.prototype.getType=function(){return _.oj(this,6,0)};var Ztc=function(a){_.J.call(this,a)};_.K(Ztc,_.J);_.$tc=function(a){_.J.call(this,a)};_.K(_.$tc,_.J);_.g=_.$tc.prototype;_.g.getName=function(){return _.C(this,1)};_.g.$c=function(a){return _.Jj(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.Jj(this,2,a)};_.g.Kka=function(){return _.Gj(this,Ytc,9,Xtc)};
_.g.AXa=function(){return _.Gj(this,Ztc,10,Xtc)};_.g.nj=function(){return _.Dj(this,5)};_.g.getMimeType=function(){return _.C(this,6)};_.g.fA=function(){return _.y(this,Wtc,7)};var auc=function(a){_.J.call(this,a)};_.K(auc,_.J);var buc=[8,9,10],cuc=function(a){_.J.call(this,a)};_.K(cuc,_.J);_.g=cuc.prototype;_.g.getName=function(){return _.C(this,1)};_.g.$c=function(a){return _.Jj(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.Jj(this,2,a)};
_.g.Kka=function(){return _.Gj(this,Ytc,9,buc)};_.g.AXa=function(){return _.Gj(this,Ztc,10,buc)};duc=[1,3];_.lL=function(a){_.J.call(this,a)};_.K(_.lL,_.J);_.lL.prototype.Nh=function(){return _.Gj(this,cuc,1,duc)};_.euc=[1,2,3];_.fuc=function(a){_.J.call(this,a)};_.K(_.fuc,_.J);_.guc=function(a){_.J.call(this,a)};_.K(_.guc,_.J);var huc=function(a){_.J.call(this,a)};_.K(huc,_.J);var iuc=function(a){_.J.call(this,a)};_.K(iuc,_.J);juc=[2,3];_.kuc=function(a){_.J.call(this,a,-1,juc)};_.K(_.kuc,_.J);
_.kuc.prototype.getType=function(){return _.oj(this,1,0)};_.luc=function(a){_.J.call(this,a)};_.K(_.luc,_.J);_.luc.prototype.getType=function(){return _.oj(this,1,0)};var muc=function(a){_.J.call(this,a)};_.K(muc,_.J);muc.prototype.getType=function(){return _.oj(this,1,0)};var nuc=function(a){_.J.call(this,a)};_.K(nuc,_.J);_.ouc=function(a){_.J.call(this,a)};_.K(_.ouc,_.J);_.ouc.prototype.H=function(){return _.R(this,1)};var puc=function(a){_.J.call(this,a)};_.K(puc,_.J);quc=[1,2,4];
_.ruc=function(a){_.J.call(this,a)};_.K(_.ruc,_.J);suc=[1,2];_.tuc=function(a){_.J.call(this,a)};_.K(_.tuc,_.J);_.tuc.prototype.getParent=function(){return _.y(this,_.lL,1)};_.tuc.prototype.Ug=function(a){return _.G(this,1,a)};_.uuc=function(a){_.J.call(this,a,-1,suc)};_.K(_.uuc,_.J);_.vuc=function(a){_.J.call(this,a,-1,quc)};_.K(_.vuc,_.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 _.Jj(this,2,a)};_.nL=[2,3,4,5];_.oL=function(a){_.J.call(this,a)};_.K(_.oL,_.J);_.g=_.oL.prototype;_.g.Bf=function(){return _.oj(this,1,0)};_.g.getUser=function(){return _.Gj(this,_.Btc,2,_.nL)};_.g.kk=function(){return _.Gj(this,Ttc,4,_.nL)};_.g.Nn=function(a){return _.wj(this,4,_.nL,a)};_.g.yH=function(){return _.mj(this,4,_.nL)};var wuc=function(a){_.J.call(this,a)};_.K(wuc,_.J);xuc=[1,2,3,4];_.yuc=function(a){_.J.call(this,a,-1,xuc)};_.K(_.yuc,_.J);
_.zuc=function(a){_.J.call(this,a)};_.K(_.zuc,_.J);_.Auc=function(a){_.J.call(this,a)};_.K(_.Auc,_.J);_.Buc=function(a){_.J.call(this,a)};_.K(_.Buc,_.J);_.Cuc=function(a){_.J.call(this,a)};_.K(_.Cuc,_.J);_.Cuc.prototype.getType=function(){return _.oj(this,1,0)};Duc=[1];_.Euc=function(a){_.J.call(this,a)};_.K(_.Euc,_.J);_.Euc.prototype.getFeature=function(){return _.oj(this,1,0)};_.Fuc=function(a){_.J.call(this,a,-1,Duc)};_.K(_.Fuc,_.J);var Guc=function(a){_.J.call(this,a)};_.K(Guc,_.J);
var Huc=function(a){_.J.call(this,a)};_.K(Huc,_.J);var Iuc=function(a){_.J.call(this,a)};_.K(Iuc,_.J);Iuc.prototype.getType=function(){return _.oj(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.ex=function(){return _.Gj(this,Iuc,10,_.pL)};var Juc=function(a){_.J.call(this,a)};_.K(Juc,_.J);Juc.prototype.getType=function(){return _.oj(this,2,0)};Juc.prototype.Ih=function(){return _.C(this,1)};
_.Kuc=function(a){_.J.call(this,a)};_.K(_.Kuc,_.J);var Luc=function(a){_.J.call(this,a)};_.K(Luc,_.J);_.Muc=function(a){_.J.call(this,a)};_.K(_.Muc,_.J);_.Nuc=function(a){_.J.call(this,a)};_.K(_.Nuc,_.J);_.Nuc.prototype.getType=function(){return _.oj(this,1,0)};_.rL=[1,2,3,4,5];_.Ouc=function(a){_.J.call(this,a)};_.K(_.Ouc,_.J);_.Ouc.prototype.getUser=function(){return _.Gj(this,_.Btc,1,_.rL)};_.Puc=function(a){_.J.call(this,a)};_.K(_.Puc,_.J);_.g=_.Puc.prototype;
_.g.getName=function(){return _.C(this,1)};_.g.$c=function(a){return _.Jj(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.Jj(this,2,a)};_.g.Ma=function(){return _.y(this,_.$tc,3)};_.Quc=function(a){_.J.call(this,a)};_.K(_.Quc,_.J);_.Quc.prototype.getParent=function(){return _.y(this,_.$tc,4)};_.Quc.prototype.Ug=function(a){return _.G(this,4,a)};_.sL=[1,5,3];_.Ruc=function(a){_.J.call(this,a)};_.K(_.Ruc,_.J);
_.Ruc.prototype.Nh=function(){return _.Gj(this,_.$tc,1,_.sL)};Suc=function(a,b){return new _.Edc(_.Fdc.bound(a,b,void 0,void 0))};Tuc=function(){var a=new _.$h,b=_.Rdc().deleteDatabase("GoogleDriveDs");b.onsuccess=function(){a.callback()};b.onerror=function(c){a.Gd(_.VH(c.target,"deleting database GoogleDriveDs"))};b.onblocked=function(){};return a};_.Uuc=function(a){_.J.call(this,a)};_.K(_.Uuc,_.J);_.Uuc.prototype.Jp=function(){return _.z(this,1)};
_.Uuc.prototype.getSize=function(){return _.z(this,2)};_.Uuc.prototype.setSize=function(a){return _.x(this,2,a)};_.Uuc.prototype.getUrl=function(){return _.z(this,3)};_.Vuc=function(a){_.J.call(this,a)};_.K(_.Vuc,_.J);_.Vuc.prototype.getType=function(){return _.z(this,1)};Wuc=[2,3];_.Xuc=function(a){_.J.call(this,a,-1,Wuc)};_.K(_.Xuc,_.J);Yuc=[4,5,6,17,18,24];_.tL=function(a){_.J.call(this,a,-1,Yuc)};_.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 Zuc=function(a,b){return _.qj(a,4,b)},$uc=function(a,b){return _.qj(a,5,b)};_.tL.prototype.CR=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,_.Df,1,1)};uL.prototype.Vg=function(a){return _.G(this,1,a)};
uL.prototype.yK=function(){return _.lj(this,1)};uL.prototype.ao=function(){return _.z(this,4)};var avc=function(a,b){return _.G(a,5,b)},Yoc=function(a){_.J.call(this,a)};_.K(Yoc,_.J);var bvc=[1,2,5,7,9,10,12,14],vL=function(a){_.J.call(this,a,-1,bvc)};_.K(vL,_.J);vL.prototype.Bd=function(){return _.yb(this,_.Ik,1)};var cvc=function(a,b){return _.sj(a,1,b)};vL.prototype.dh=function(a,b){return _.yj(this,1,a,_.Ik,b)};vL.prototype.BN=function(){return _.yb(this,_.vk,2)};
vL.prototype.Vha=function(a){_.yj(this,2,a,_.vk,void 0)};var dvc=function(a,b){return _.x(a,3,b)};vL.prototype.Du=function(){return _.z(this,4)};vL.prototype.nz=function(a){return _.x(this,4,a)};var evc=function(a,b){return _.sj(a,5,b)};vL.prototype.Lv=function(){return _.Q(this,6)};var fvc=function(a,b){return _.x(a,6,b)};vL.prototype.Ff=function(){return _.y(this,_.UB,8)};var gvc=function(a,b){return _.qj(a,12,b)};vL.prototype.Xo=function(){return _.oj(this,13,0)};
var hvc=function(a,b){return _.x(a,13,b)},ivc={tYb:0,rYb:1,n3b:2,B9b:3,E9b:4,Y4b:5},jvc=[1],SK=[1,2,3,4,5,6,7],soc=function(a){_.J.call(this,a)};_.K(soc,_.J);var toc=function(a){_.J.call(this,a,-1,jvc)};_.K(toc,_.J);var QK=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],qoc=function(a){_.J.call(this,a)};_.K(qoc,_.J);var xoc=[1,2],woc=function(a){_.J.call(this,a)};_.K(woc,_.J);var Aoc=[1,2,3],zoc=function(a){_.J.call(this,a)};_.K(zoc,_.J);var kvc=[3],wL=function(a){_.J.call(this,a,-1,kvc)};_.K(wL,_.J);
wL.prototype.vq=function(){return _.z(this,1)};var lvc=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,_.Ik,3)};var mvc=function(a,b){return _.sj(a,3,b)};wL.prototype.dh=function(a,b){return _.yj(this,3,a,_.Ik,b)};wL.prototype.V=function(){return _.z(this,4)};var nvc=function(a,b){return _.x(a,4,b)};wL.prototype.H=function(){return _.y(this,_.yk,5)};
var ovc=function(a,b){return _.G(a,5,b)},pvc=[2],xL=function(a){_.J.call(this,a,-1,pvc)};_.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 qvc=function(a,b){return _.sj(a,2,b)};xL.prototype.Vf=function(){return _.z(this,4)};rvc=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.DU=function(){return _.Ab(this,2,void 0,_.cI)};_.g.$j=function(){return _.z(this,3)};_.g.We=function(){return _.z(this,5)};_.g.ri=function(a){return _.x(this,5,a)};var svc=function(a,b){return 1<a?2===b:a===b},tvc=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("jf");},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.Yb=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.Yb()&&this.V===a.V&&this.O===a.O&&this.H===a.H&&_.Cj(this.item,a.getItem())};
var uvc=function(a,b){a.H=b;return a},zL=function(a){return a instanceof _.Ik?null!=a.getId()&&a.getId()==a.uc():null!=a.qc()&&a.qc()==a.uc()},vvc=function(a,b,c){c=void 0===c?[]:c;var d=a.clone(),e=b.Vh();null!=e&&Lnc(a,e.clone());if((e=b.getCapabilities())&&null!=_.Q(e,13)){var f=a.getCapabilities()||new _.Bk;_.x(f,13,_.Q(e,13));_.QJ(a,f)}e&&null!=_.Q(e,18)&&(f=a.getCapabilities()||new _.Bk,_.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)},wvc=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();vvc(d,a);_.sic(d,b.Lv());_.zI(d,c);return d}a=a.clone();vvc(a,b,c);return a},xvc=function(a){return(a=a?a.Vh():null)&&_.Q(a,7)||!1},yvc=function(a,b){this.V=a;this.items={};this.fields=new Set;this.H={};this.O=new Set;this.W=new Set(b)},zvc=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]={}})},Bvc=function(a,b,c){b.every(function(d){return zL(d)})?Avc(b,c,a.H,a.O):b.every(function(d){return!zL(d)})&&Avc(b,c,a.items,a.fields)},Avc=function(a,b,c,d){b=_.lhc(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.wf();e=e?_.xe(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])}}};
yvc.prototype.update=function(a,b,c){b&&zL(b)?Cvc(a,b,this.H,this.O,c):Cvc(a,b,this.items,this.fields,c)};yvc.prototype.LJ=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 Cvc=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&&Inc(b,[h])&&(f[a]=Dvc(b,h)),b)){var k=b.wf();(k=k?_.xe(k):null)&&Inc(k,[h])&&(f[k.getId()]=Dvc(k,h))}});b&&Enc(b,[].concat(_.fc(d)))},Dvc=function(a,b){var c=new _.Ik;c.Nb(a.getId());NK(c,a,[b]);return c};yvc.prototype.clear=function(){var a=this;_.Ta(this.items,function(b,c){a.items[c]={}});_.Ta(this.H,function(b,c){a.H[c]={}})};
yvc.prototype.log=function(a){this.V.info("drive.ds.sync.cache.FieldsCache",a)};var Evc=function(a,b,c){var d=this;this.Et=b;this.Uv=c;this.Dd=new Map;this.rootId="";a.addCallback(function(e){d.rootId=e})};_.g=Evc.prototype;_.g.Dy=function(){return this.Dd};_.g.nk=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(Fvc(a)){for(var d=_.m(this.Dd.values()),e=d.next();!e.done;e=d.next())e=e.value,AL(this.Et,a,e.getItem())&&(void 0===b||svc(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--,Gvc(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 Gvc=function(a,b){return 1<b.Yb()||svc(b.V,2)||b.getItem().hJ()||coc(b.getItem())?!1:"root"!==b.getId()&&b.getId()!==a.rootId};Evc.prototype.LJ=function(){for(var a=_.m(this.Dd.values()),b=a.next();!b.done;b=a.next())b=b.value,Gvc(this,b)&&(this.Dd.delete(b.getId()),b.count--)};
var Hvc=function(a,b,c,d){this.Dg=a;this.W=b;this.O=c;this.V=d},Zoc=function(a,b){return(b=a.O.get(b))?(b=b.clone(),Bvc(a.V,[b.getItem()],nsc(a.Dg)),b):null};Hvc.prototype.H=function(a){return(a=Zoc(this,a))?a.getItem():null};var Ivc=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},Jvc=function(a,b){return _.Va(Ivc(a,b),function(c){return c.getItem()})},Kvc=function(a,b){b=BL(a.W,b);return a.O.query(b).map(function(c){return c.clone()})};
Hvc.prototype.query=function(a){return Kvc(this,a).map(function(b){return b.getItem()})};Hvc.prototype.getSize=function(){return this.O.Dy().size};
var Lvc=function(a){var b=new Set;a=_.m(a.O.Dy().values());for(var c=a.next();!c.done;c=a.next()){c=c.value.getItem();for(var d=_.m(_.Jk(c)),e=d.next();!e.done;e=d.next())e=e.value,b.add(e.getId()||LK(e));(d=c.Cm())&&b.add(d.getId()||LK(d));(d=c.bs())&&b.add(d.getId()||LK(d));(d=c.qq())&&b.add(d.getId()||LK(d));(c=c.GD())&&b.add(c.getId()||LK(c))}return b.size},Mvc=function(a){return[].concat(_.fc(new Set(a.map(function(b){return _.Sfc.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=Mvc(b);var d=_.lI(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+")"},Nvc=function(a,b){b=void 0===b?[]:b;return"kind,nextPageToken,items("+CL(a,b,!1)+")"},Ovc=function(a){var b=new _.uo;_.fK(b,"hidden",_.Q(a,4));a=_.Q(a,6);null!=a&&_.fK(b,"canRemoveSecureLinkUpdateForAllFiles",a);return b.toString()},Pvc=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}},Qvc=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.Cz()||0;case 11:return b.EB()||0;case 10:return b.Oq()||0;case 2:return(b.getTitle()||"").toLowerCase();case 25:return b.Ny()||0;case 57:return _.z(b,62)||0;case 32:return b.tv()||0;case 9:return b.pD()||0;case 67:return b.nK()||0;case 98:return b.Cw()||0;default:return""}},Rvc=function(a){var b=_.fdc(),c={};b&&(c.numeric=b);this.H=_.gdc(a,c)};
Rvc.prototype.compare=function(a,b,c){b=Svc(b);c=Svc(c);a=a.Lc();var d=Pvc(a);if(a&&d){d=Tvc(this,a);var e=4===a.getType()?this.H:_.Ha;return Uvc(a,d,e,b,c)}return _.Ha(b.getId(),c.getId())};Rvc.prototype.sort=function(a,b,c){a=a.Lc();var d=Pvc(a);a&&d&&(d=Tvc(this,a),d=Vvc(b,d),_.Ka(b,Wvc(this,a,d)));c&&0<c&&_.ta(b,c,b.length-c)};
var Svc=function(a){return a instanceof _.Ik?a:a.getItem()},Tvc=function(a,b){b=Pvc(b);return _.L(a.O,a,b,_.Ha)},Vvc=function(a,b){var c={};a.forEach(function(d){d=Svc(d);var e=d.getId();c[e]=b(d)});return c},Wvc=function(a,b,c){return function(d,e){var f=4===b.getType()?a.H:_.Ha;d=Svc(d);e=Svc(e);return Uvc(b,function(h){return c[h.getId()]},f,d,e)}},Uvc=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()))};Rvc.prototype.O=function(a,b,c){for(var d=Qvc(a[0],c),e=1;e<a.length;e++){var f=Qvc(a[e],c);d=1===b(f,d)?f:d}return d};var Xvc=function(a,b){this.fields=a;this.rootId="";this.fields.sort();this.H=b;this.anonymous=_.KI(_.eI(b));a=_.IJ(b);this.V=!(!a||!_.R(a,1,!1));this.O=!(!a||!_.R(a,8,!1))};Xvc.prototype.nz=function(a){this.rootId=a||""};
var BL=function(a,b,c){b=b.clone();"root"===b.getId()&&b.Nb(a.rootId);_.ol(b).filter(function(d){return"root"===d.Wa()}).forEach(function(d){return d.Hb(a.rootId)});_.Jf(b,_.nl(b).map(function(d){d.Hb(d.Wa().toLowerCase());return d}));c&&_.ml(b,a.fields);b.H().sort();return b},gL=function(a,b,c){if(b instanceof _.Df){b=BL(a,b);var d=_.Ijc(b)}else if(b instanceof _.WF)d=b.V().sort().join(","),_.R(b,5,!1)&&(d+="|cachedOnly");else{if(b instanceof _.QH)return d=Ovc(b),d+"|tdList";if(b instanceof _.aG)return d=
b.V().sort().join(","),b.H().length&&(d+="|"+Mvc(b.H())),d+"|tdMap";throw Error("nf");}return 3===c?d:d+"|"+Yvc(a,b.H(),2===c)},Yvc=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};Xvc.prototype.equals=function(a,b,c){var d;c&&(d=3);return gL(this,a,d)===gL(this,b,d)};
var dtc=function(a){if(!a.V().every(function(b){return!_.Te(b)}))throw new _.Gc("Invalid ids for FindByIdsRequest");},$vc=function(a,b,c){if(_.lJ(b))throw new _.Gc("Did not expect a PeoplePredict request. Use peoplePredictQuery() for PeoplePredict requests. ");Zvc(a,b,c)},Zvc=function(a,b,c){var d;a.O||(d=_.MI(3));if(b.getId())throw new _.Gc("Use findByIds() for find by id queries.",d?d:_.MI(3));if(!b.wi()||0>=b.wi())throw new _.Gc("A positive limit is required on an ItemQueryRequest.",d?d:_.MI(3));
_.se(b,33);a.V&&c||(d=a.fields.slice(),c&&(d=d.concat(c)),awc(a,d,b.H()));if(c=(c=b.Lc())&&Pvc(c))d=b.H().length?b.H():a.fields,awc(a,d,c);if(_.kJ(b)){if(a.anonymous)throw new _.Gc("User must be authenticated for a Quick Access request.");if(!bwc(a)&&20<b.wi())throw new _.Gc("Limit must be in the range [1, 20].");c=2===_.TJ(b);d=_.se(b,33).length;if(c&&1!==d||d&&!c)throw new _.Gc("A Team Drive Quick Access request must specify the Team Drive corpora and a single Team Drive id.");c=_.tj(_.vb(_.rj(_.vb(_.vb(_.vb(_.fI(_.vb(_.rj(_.fI(b.clone(),
1),30),32),33),45),47),74),75),48),6);d=new _.Df;if(!_.Cj(c,d))throw new _.Gc("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: "+Lsc(d,c));}else if(_.R(b,74,!1))throw new _.Gc("If is_quick_access_for_shared_files_request is set to true, is_quick_access_request must also be true.");if(_.mJ(b)){if(a.anonymous)throw new _.Gc("User must be authenticated for a DrivePriority request.");
if(2===_.TJ(b))throw new _.Gc("Team Drive corpora is not valid for a Drive Priority request.");a=_.vb(_.vb(_.vb(_.rj(_.fI(b.clone(),1),30),32),45),52);b=new _.Df;if(!_.Cj(a,b))throw new _.Gc("Some fields specified are not valid for a Drive Priority request. Valid: field, request_descriptor, limit, corpora and is_drive_priority_request. Extra: "+Lsc(b,a));}},cwc=function(a,b,c){if(!_.lJ(b))throw new _.Gc("Expected a PeoplePredict request.");Zvc(a,b,c);if(a.anonymous)throw new _.Gc("User must be authenticated for a People Predict request.");
if(2===_.TJ(b))throw new _.Gc("Team Drive corpora is not valid for a People Predict request.");a=_.vb(_.vb(_.vb(_.rj(_.fI(b.clone(),1),30),32),45),49);b=new _.Df;if(!_.Cj(a,b))throw new _.Gc("Some fields specified are not valid for a People Predict request. Valid: field, request_descriptor, limit, corpora and is_people_predict_request. Extra: "+Lsc(b,a));},awc=function(a,b,c){var d;a.O||(d=_.MI(3));if(!Jnc(b,c,_.jhc)){var e=_.OI({fields:c,anonymous:a.anonymous}),f=_.OI({fields:b,anonymous:a.anonymous});
a=_.OI({fields:Knc(c,b),anonymous:a.anonymous});throw new _.Gc("Requested field was not previously specified. Needed "+e+", but had "+(f+". Missing: "+a+"."),d?d:_.MI(3));}},bwc=function(a){return 200<=_.WJ(a.H)&&300>_.WJ(a.H)},dwc=function(a){var b=new Set;a=_.m(_.nl(a));for(var c=a.next();!c.done;c=a.next())switch(_.aNa(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))},ewc=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"}},fwc=function(a){a=_.ol(a);return 1===a.length?a[0].Wa():null},gwc=function(a){_.N.call(this);this.H=a};_.lg(gwc,_.N);_.g=gwc.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.UO=function(a){this.H.addCallback(function(b){b.UO(a)})};
_.g.send=function(a,b){this.H.addCallback(function(c){c.send(a,b)})};_.g.Ya=function(){this.cancel();gwc.ub.Ya.call(this)};var koc=function(a){_.Sy.call(this);this.Po=a;this.H=_.df(this.Po,"message",this.brb,!1,this)};_.lg(koc,_.Sy);_.g=koc.prototype;_.g.Yf=null;_.g.send=function(a,b){var c=[];b=this.Hza(c,b);a={serviceName:a,payload:b,"--goog.messaging.PortChannel":!0};_.fgc&&(a=(0,_.Di)(a));this.Po.postMessage(a,c)};
_.g.brb=function(a){a=a.Ae;var b=a.data;if(_.fgc)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.oDa(a.ports||[],b),d.nGa),null!=b&&d.callback(b))}};
_.g.Hza=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.Hza,this,a)):b&&b.constructor==Object?_.Va(b,function(c,d){c=this.Hza(a,c);return"_port"==d?{type:"escaped",val:c}:c},this):b};
_.g.oDa=function(a,b){return Array.isArray(b)?b.map((0,_.L)(this.oDa,this,a)):b&&b.constructor==Object?b._port&&"real"==b._port.type?a[b._port.index]:_.Va(b,function(c,d){return this.oDa(a,"_port"==d?c.val:c)},this):b};_.g.Ya=function(){_.ui(this.H);"[object MessagePort]"==Object.prototype.toString.call(this.Po)?this.Po.close():"[object Worker]"==Object.prototype.toString.call(this.Po)&&this.Po.terminate();delete this.Po;koc.ub.Ya.call(this)};
var noc=function(a,b){if("*"==b)return new gwc(_.gi(Error("of")));var c=new _.zi(50),d=_.Ob(_.ca,c),e=new _.$h(d);_.bi(e,d);c.start();_.df(c,"tick",function(){var f=new MessageChannel,h=function(){f.port1.removeEventListener("message",h,!0);c.isDisposed()||e.callback(new koc(f.port1))};f.port1.start();f.port1.addEventListener("message",h,!0);a.postMessage({"--goog.messaging.PortChannel":!0},b,[f.port2])});return new gwc(e)},hwc=function(a){_.N.call(this);this.H=new _.hdc(a);this.V={};this.O=_.jdc(this.H,
"private");this.W=_.jdc(this.H,"public");this.O.registerService("mics",(0,_.L)(this.xob,this),!0)};_.lg(hwc,_.N);_.g=hwc.prototype;_.g.FIb=0;_.g.Ya=function(){_.ca(this.H);delete this.H;delete this.W;delete this.O};_.g.send=function(a,b,c){var d=this.FIb++;this.V[d]=c;c={signature:d};c.data=b;this.W.send(a,c)};_.g.xob=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.wob,this,b),!0)};
_.g.wob=function(a,b){a=a(b.data);var c=b.signature;_.Vh(a).then((0,_.L)(function(d){var e={};e.data=d;e.signature=c;this.O&&this.O.send("mics",e)},this))};var iwc=function(a,b){_.N.call(this);this.W=b;this.started=!1;this.V=new _.hdc(a);this.Ja(this.V);this.H=new hwc(_.jdc(this.V,"direct"));this.Ja(this.H)};_.K(iwc,_.N);iwc.prototype.registerService=function(a,b){this.H.registerService(a,b)};iwc.prototype.send=function(a,b,c){this.H.send(a,b||{},function(d){return(c||_.hg)(d)})};
var moc=function(a,b){iwc.call(this,a,b);this.O=new hwc(_.jdc(this.V,"passthrough"));this.Ja(this.O)};_.K(moc,iwc);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||_.hg)};moc.prototype.start=function(){this.started||(this.started=!0)};var hoc=[],jwc=function(){_.Sy.call(this);this.H=null};_.K(jwc,_.Sy);jwc.prototype.send=function(a,b){_.E8a(this.H,a,b)};
var ooc=function(){this.O=new jwc;this.H=new jwc;var a=this.O;a.H||(a.H=this.H);a=this.H;a.H||(a.H=this.O)},kwc=function(a,b,c,d){this.clientId=a;this.method=b;this.args=c;this.requestId=d;this.H=void 0},lwc=function(a,b){b=void 0===b?!1:b;void 0===a.H&&(a.H=b)&&goc(a.args);return{c:a.clientId,m:a.method,a:a.args,req:a.requestId,s:a.H}},mwc=function(a){var b=new kwc(a.c,a.m,a.a,a.req);b.H=a.s;return b},nwc=function(a,b,c){this.data=b?void 0:a;this.error=b;this.O=c;this.H=void 0},owc=function(a,b){b=
void 0===b?!1:b;void 0===a.H&&a.data&&(a.H=b)&&goc(a.data);return{d:a.data,err:a.error&&b?a.error.Hc():a.error,uid:a.O,s:b}},pwc=function(a){var b=a.s,c=a.err;c=void 0===c?void 0:b?new _.Fc(JSON.parse(a.err)):c;a=new nwc(c?void 0:a.d,c,a.uid);c||(a.H=b);return a},foc=function(a,b){this.H=a;this.gE=b};foc.prototype.get=function(){for(var a={},b=0;b<this.H.length;b++)a[this.H[b]]=this.gE[b];return a};
foc.prototype.Hc=function(){for(var a={},b={},c=0;c<this.gE.length;c++){var d=this.gE[c],e=this.H[c];d instanceof Error?b[e]=_.uI(d).Hc():a[e]=d.Hc()}return{r:a,e:b}};qwc=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 _.Fc(JSON.parse(e));d.push(_.NI(e))});return new foc(c,d)}return a};loc=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.Oe=void 0===b?0:b;this.G0=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.Oe=void 0===d?0:d};rwc=function(a){_.nK.call(this,a,void 0,void 0,void 0);this.W5a=new _.en};_.K(rwc,_.nK);swc=function(a,b){this.response=a;this.pageToken=void 0===b?"":b};_.pK=function(a,b,c){this.response=a;this.Oe=void 0===b?0:b;this.G0=void 0===c?null:c};
_.oK=function(a,b,c){this.response=a;this.Oe=void 0===b?0:b;this.G0=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.Oe=void 0===d?0:d};twc={ZWb:0,uXb:1,y2b:3,U$b:5,Ckb:6,0:"ACCOUNT",1:"APPS",3:"ITEMS",5:"USER_PREFS",6:"PEOPLE"};_.uwc=function(a){_.J.call(this,a)};_.K(_.uwc,_.J);_.uwc.prototype.H=function(){return _.z(this,1)};var vwc=function(a){_.J.call(this,a)};_.K(vwc,_.J);vwc.prototype.H=function(){return _.Q(this,1)};
vwc.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.xta=function(){return _.z(this,3)};_.g.yz=function(){return _.z(this,4)};_.g.jaa=function(){return _.y(this,vwc,6)};_.g.qub=function(){return _.y(this,_.uwc,7)};_.g.FXa=function(){return _.z(this,8)};
_.g.wta=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.Abb=function(){return _.z(this,6)};_.wwc=function(a,b){return _.x(a,6,b)};
_.GL.prototype.zf=function(){return _.z(this,8)};_.GL.prototype.ll=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.Ih=function(){return _.z(this,1)};_.WI.prototype.se=function(){return _.y(this,_.Qf,3)};_.gJ=function(a){_.J.call(this,a)};_.K(_.gJ,_.J);_.gJ.prototype.Ih=function(){return _.z(this,1)};_.gJ.prototype.se=function(){return _.y(this,_.Qf,2)};_.hJ=function(a){_.J.call(this,a)};_.K(_.hJ,_.J);
_.hJ.prototype.Ih=function(){return _.z(this,1)};_.hJ.prototype.se=function(){return _.y(this,_.Qf,2)};_.yJ=function(a){_.J.call(this,a)};_.K(_.yJ,_.J);_.yJ.prototype.Ih=function(){return _.z(this,1)};_.yJ.prototype.se=function(){return _.y(this,_.Qf,4)};var xwc=function(a){_.J.call(this,a)};_.K(xwc,_.J);ywc=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)};
_.nJ=function(a){_.J.call(this,a)};_.K(_.nJ,_.J);_.nJ.prototype.getId=function(){return _.z(this,1)};_.nJ.prototype.Nb=function(a){return _.x(this,1,a)};_.whc=function(a){_.J.call(this,a)};_.K(_.whc,_.J);_.uJ=function(a){_.J.call(this,a)};_.K(_.uJ,_.J);_.uJ.prototype.se=function(){return _.y(this,_.Qf,1)};var zwc=function(){var a=new _.uJ,b=_.Rf(new _.Qf,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.se=function(){return _.y(this,_.Qf,3)};_.iJ=function(a){_.J.call(this,a)};_.K(_.iJ,_.J);_.g=_.iJ.prototype;_.g.qc=function(){return _.z(this,1)};_.g.Bf=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.Ci=function(){return _.vb(this,4)};_.g.Ng=function(){return _.lj(this,4)};_.g.se=function(){return _.y(this,_.Qf,7)};
_.Jhc=function(a){_.J.call(this,a)};_.K(_.Jhc,_.J);_.Jhc.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.se=function(){return _.y(this,_.Qf,2)};_.qJ.prototype.wi=function(){return _.Dj(this,3,1E3)};_.qJ.prototype.Gi=function(a){return _.x(this,3,a)};var Awc=function(a,b,c){_.yi.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,_.yi);
Awc.prototype.RB=function(){return this.O};Awc.prototype.UQ=function(){var a=this;if(this.W)return this.W;var b=_.Yh();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 gtc("fb")))};
var Dwc=function(a,b){a.ha=b},Cwc=function(a){a.H||(a.H=new _.wkc(5E3),a.timeout=_.n.setTimeout(function(){return Ewc(a)},a.H.Wa()))},Ewc=function(a){Bwc(a);a.H&&(_.YH(a.H),a.timeout=_.n.setTimeout(function(){return Ewc(a)},a.H.Wa()))},Bwc=function(a,b){var c=_.Vh();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.Pe(new _.Khc)});b?c.then(function(){b.resolve(ywc(new xwc,1))},function(d){var e=_.wd(d).tg;
d=0;_.vgc(e)?(a.log("Checked authentication state: unauthenticated."),d=2):(a.log("Checked authentication state: error occurred."),_.Go(e),_.x(e,21,"Checked authentication state: error occurred."),a.ka(e));e=new xwc;ywc(e,d);b.resolve(e)}):c.then(null,function(d){d=_.wd(d);_.vgc(d.tg)&&a.V&&(a.dispatchEvent(new gtc("gb")),a.V=!1)})};Awc.prototype.log=function(a){this.ma.info("drive.ds.sync.auth.StateManager",a)};_.Lhc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};
_.Ahc=function(a){this.H=a;this.type=1};_.Bhc=function(a){this.H=a;this.type=0};_.Ihc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};Gwc=function(a){return _.Gj(a,_.mI,3,_.nI)||_.Gj(a,_.EJ,4,_.nI)||_.Gj(a,_.tK,5,_.nI)||_.Gj(a,_.BJ,6,_.nI)||_.Gj(a,_.aJ,7,_.nI)||_.Gj(a,_.UI,8,_.nI)||_.Gj(a,_.YI,9,_.nI)||_.Gj(a,_.wI,10,_.nI)};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.dA=function(){return _.z(this,3)};_.g.Ie=function(){return _.z(this,4)};_.g.Ai=function(a){return _.x(this,4,a)};_.g.kma=function(){return _.lj(this,4)};var Iwc=function(a){this.Yf=a;this.H=new Map;this.O=this.Yf.W};
Iwc.prototype.create=function(a,b){if(0!=usc(b)){var c=this.Yf.H(106001);if(c){var d=usc(b),e=bL(c);_.x(e,2,d);d=bL(c);e=null;if(b instanceof _.iG||b instanceof _.WF||b instanceof _.Df||b instanceof _.oJ||b instanceof _.nD||b instanceof _.aG||b instanceof _.QH||b instanceof _.OH||b instanceof _.bG||b instanceof _.dA)e=b.se();e=e&&_.R(e,2,!1);_.x(d,7,"boolean"==typeof e?e:void 0);d=bL(c);b=b instanceof _.Df?0<_.ol(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).ri(d),null!=e&&(c=bL(f),_.x(c,6,e)),f.Dj(),a.H.delete(b))},Mwc=function(a,b,c){var d=a.H.get(b);if(d){var e=a.O.Cb(c);c=vsc(c);if(1==e||2==c)e=_.iK(_.igc,c),d=bL(d),d=3==e||8==e?!_.Q(d,5):0!=e?_.Hgc.has(e):null,Lwc(a,b,1,e,d)}},Nwc=function(a,b,c){var d=a.O.Cb(c);d=_.iK(_.hgc,d||22);var e=vsc(c);e=_.iK(_.igc,
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.G0:null)},HL=function(a,b,c){c=void 0===c?3:c;var d=a.H.get(b);d&&(bL(d).Dc(c),d.Dj(),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.$j=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.hYa=function(){return _.z(this,2)};_.g.gOa=function(){return _.z(this,3)};_.g.ivb=function(){return _.yb(this,_.pI,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){_.sj(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 _.sj(a,2,b)};KL.prototype.$j=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,_.Fc,3)};_.g.Qe=function(a){return _.G(this,3,a)};_.g.jo=function(){return _.lj(this,3)};var Xwc={B$b:0,c5b:1,f5b:2,d5b:4,F2b:5,N_b:6,M2b:7,s5b: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 $wc=function(a,b){return _.x(a,3,b)};LL.prototype.yq=function(){return _.lj(this,3)};var axc=[1],bxc=function(a){_.J.call(this,a,-1,axc)};_.K(bxc,_.J);var cxc=function(a,b){return _.sj(a,1,b)},dxc=[2],ML=function(a){_.J.call(this,a,-1,dxc)};_.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,_.cI,2)};var exc=function(a,b){return _.sj(a,2,b)};ML.prototype.$j=function(){return _.z(this,3)};var fxc=function(a,b){this.O=a|0;this.H=b|0};fxc.prototype.equals=function(a){return this===a?!0:a instanceof fxc?this.O===a.O&&this.H===a.H:!1};fxc.prototype.Ac=function(){return 31*this.O+17*this.H|0};
var gxc=function(a,b){return new fxc(a,b)},hxc=function(a,b){b=~b;a?a=~a+1:b+=1;return gxc(a,b)},ixc=function(a){var b="-"===a[0];a=a.slice(b?3:2);return(b?hxc:gxc)(parseInt(a.slice(-8),16),parseInt(a.slice(-16,-8)||"",16))},jxc=function(){this.H=this.W=this.O=this.V=null},kxc=[1],lxc=function(a){_.J.call(this,a,-1,kxc)};_.K(lxc,_.J);
var mxc=function(a,b){return _.qj(a,1,b)},nxc=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={No: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.No.delete(b);if(0===e.No.size)try{e.callback()}catch(f){throw a.enabled=!1,a.error=f?_.NI(f):null,f;}}}};nxc.prototype.H=function(a){return this.V.has(a)};nxc.prototype.start=function(){this.started=!0};nxc.prototype.log=function(a){this.W.info("drive.ds.MilestoneManager",a)};
var oxc=function(a,b,c){this.id=a;this.O=b;this.H=c},pxc=function(a,b){return new oxc((a?a:b).getId(),a,b)},PL=function(a){return new oxc(a.getId(),null,a)},qxc=function(a,b){this.Et=a;this.Uv=b;this.PD=!0;this.W8=!1;this.Oe=0},QL=function(a,b){(a.PD=b)||a.LJ()};_.g=qxc.prototype;_.g.Qla=function(a,b){if(5===this.aF(a))throw Error("Af");for(var c=[],d=_.m(this.Dy()),e=d.next();!e.done;e=d.next())e=e.value,AL(this.Et,a,e.getItem())&&c.push(e);this.Uv.sort(a,c,b);return c};_.g.getSize=function(){return this.Dy().length};
_.g.nk=function(a,b){a=this.Qla(a,b);a=Goc(a);b=new _.dI;b.iB(a);b.Dc(this.dO()?6:1);return b};_.g.update=function(a){var b=this.Ds(a.O),c=this.Ds(a.H);if(!b&&!c)return!1;b&&this.BJ(a.O);c&&this.nS(a.H);return!0};_.g.aF=function(a){return this.PD&&this.W8?Fvc(a)?1:5:5};_.g.VX=function(){this.W8=!0};_.g.Ds=function(a){return!!a&&this.PD};_.g.ri=function(a){this.Oe=a};_.g.We=function(){return this.Oe};
var RL=function(a,b,c,d,e,f){f=void 0===f?"":f;qxc.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;rxc(this,e);this.V=function(k,l){return h.Uv.compare(h.request,k,l)}};_.K(RL,qxc);_.g=RL.prototype;_.g.jd=function(){return this.request};_.g.lN=function(){return this.W};
_.g.nS=function(a){var b=this.O[a.getId()];b&&this.BJ(b);znc(this.Dd,a,this.V);this.O[a.getId()]=a;a.count++;this.Dd.length>this.request.wi()&&(this.BJ(_.ja(this.Dd)),this.H=!1)};_.g.BJ=function(a){var b=this.Dd,c=_.Ia(b,a,this.V);0<=c&&_.va(b,c);_.bb(this.O,a.getId());a.count--};_.g.LJ=function(){this.Dd.forEach(function(a){a.count--});this.Dd=[];this.O={}};_.g.Dy=function(){return this.Dd};
_.g.aF=function(a){var b;if(b=this.ha.equals(this.request,a,!0))a=a.H(),b=this.request.H(),b=Jnc(b,a,_.jhc);return b?this.H?1:6:5};_.g.Qla=function(a,b){if(5===this.aF(a))throw Error("Af");b=b?Math.min(b,this.Dd.length):this.Dd.length;return _.Da(this.Dd,0,b)};_.g.Ds=function(a){if(!qxc.prototype.Ds.call(this,a)||!AL(this.Et,this.request,a.getItem()))return!1;if(this.H||_.R(this.request,48,!1))return!0;var b=_.ja(this.Dd);return!!b&&0>=this.V(a,b)};_.g.dO=function(){return this.H?!1:!0};
_.g.getType=function(){return"CacheHintCorpusCache"};_.g.fl=function(a,b){var c=this,d=_.ja(this.Dd);!this.H&&d&&_.na(a,function(e){return e.getId()===d.getId()})&&(b?(this.BJ(d),rxc(this,_.ja(a))):this.H=!0);_.Ma(a,function(e){c.update(PL(e))})};var rxc=function(a,b){b&&AL(a.Et,a.request,b.getItem())&&a.nS(b)};RL.prototype.Iy=function(){return this.nextPageToken};var SL=function(a,b){qxc.call(this,a,b);this.Dd=new Map};_.K(SL,qxc);SL.prototype.nS=function(a){this.Dd.set(a.getId(),a);a.count++};
SL.prototype.BJ=function(a){this.Dd.delete(a.getId());a.count--};SL.prototype.LJ=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.Dy=function(){return Array.from(this.Dd.values())};var sxc=function(a,b){SL.call(this,a,b);this.VX()};_.K(sxc,SL);_.g=sxc.prototype;
_.g.aF=function(a){var b=this,c=SL.prototype.aF.call(this,a);if(5===c)return c;if(0<_.se(a,33).length)return 5;a=_.ol(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.Ds=function(a){return SL.prototype.Ds.call(this,a)&&!(null===a||void 0===a?0:a.getItem().uc())};_.g.Qla=function(a,b){for(var c=[],d=_.m(this.Dy()),e=d.next();!e.done;e=d.next())e=e.value,AL(this.Et,a,e.getItem())&&c.push(e);this.Uv.sort(a,c,b);return c};_.g.jd=function(){return new _.Df};
_.g.lN=function(){return null};_.g.getType=function(){return"MyDriveCorpusCache"};_.g.dO=function(){return!1};var txc=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.VX()})};_.K(TL,SL);
TL.prototype.aF=function(a){var b=this,c=SL.prototype.aF.call(this,a);if(5==c)return c;if(0<_.se(a,33).length)return 5;a=_.ol(a);return 0<a.length&&!a.every(function(d){d=b.Dd.get(d.Wa());return null!=d&&!d.getItem().uc()&&Snc(d.getItem())&&!_.Q(d.getItem(),108)})?5:1};TL.prototype.Ds=function(a){return SL.prototype.Ds.call(this,a)&&uxc(this,a.getItem())};var uxc=function(a,b){if(_.Q(b,31)||!a.W8)return!0;var c=a.H();return b.wk().some(function(d){var e=a.Dd.get(d);return d==c||null!=e&&Snc(e.getItem())})};
_.g=TL.prototype;_.g.VX=function(){SL.prototype.VX.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;uxc(this,c.getItem())||(c.count--,this.Dd.delete(b))}};_.g.jd=function(){return new _.Df};_.g.lN=function(){return null};_.g.getType=function(){return"SubscribedCorpusCache"};_.g.dO=function(){return!1};
var vxc=/^[\x00-\x7F]*$/,UL=function(){this.H=[this.W,this.O,this.V,this.ha,this.DHb,this.zHb,this.pHb,this.sHb,this.rHb,this.wHb,this.nHb,this.qHb,this.xHb,this.yHb,this.AHb,this.oHb,this.CHb,this.BHb,this.kHb,this.uHb,this.tHb,this.lHb,this.vHb,this.EHb,this.mHb];this.rootId=""};UL.prototype.nz=function(a){this.rootId=a||""};
var Fvc=function(a){return wxc(a)&&0==_.se(a,40).length&&void 0==_.z(a,41)},wxc=function(a){var b=!0;_.yb(a,_.Ff,13).forEach(function(d){"me"!=d.Wa()&&(b=!1)});var c=a.Lc();c=!c||5!=c.getType();return 0==_.yb(a,_.hl,5).length&&0==_.yb(a,_.Ff,14).length&&0==_.yb(a,_.Ff,15).length&&!_.lj(a,58)&&!_.Q(a,18)&&!_.Q(a,34)&&0==_.yb(a,_.cl,35).length&&0==_.yb(a,_.cl,38).length&&c&&b&&0==_.se(a,39).length&&!_.z(a,42)&&0==_.yb(a,_.bl,44).length&&!_.kJ(a)&&!_.lJ(a)&&!_.mJ(a)&&0==_.yb(a,_.dl,57).length&&xxc(a)&&
!_.y(a,_.npa,59)&&null==_.Q(a,60)&&0==_.yb(a,_.Ff,68).length&&0==_.yb(a,_.Ff,67).length&&null==_.Q(a,69)&&!_.Q(a,73)},xxc=function(a){return _.yb(a,_.il,4).every(function(b){b=b.Wa();return!b||!b.includes("*")&&vxc.test(b)})};UL.prototype.R9=function(a,b){var c=this;return b.filter(function(d){return AL(c,a,d)})};var AL=function(a,b,c){return!!c&&yxc(a,c)&&a.H.every(function(d){return d.call(a,b,c)})},yxc=function(a,b){return b.getId()!=a.rootId&&!zL(b)};
UL.prototype.W=function(a,b){var c=!0,d=_.yb(a,_.il,4);if(!xxc(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,_.Dg)(l).length&&(0==l.replace(/\./g,
"").length&&(p=!1),l=!!h.match(p?new RegExp("(^|[^\\w])"+_.kh(l)+"($|[^\\w])|(^|[ ])"+_.kh(l)):new RegExp(_.kh(l))),c=c&&(f?!l:l))}}}return c};
UL.prototype.O=function(a,b){var c=_.nl(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.wf();l=p&&_.z(p,3)||""}p=_.R(k,2,!1);var q=k.Wa();_.JJ(a)&&(q=q.toLowerCase(),l=l.toLowerCase());k=0===_.oj(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,_.fl,7);a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b.Oq();c=c&&zxc(e,d)}return c};UL.prototype.ha=function(a,b){var c=!0;a=_.yb(a,_.fl,8);a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b.Cz();c=c&&zxc(e,d)}return c};var zxc=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.DHb=function(a,b){var c=a.Qh();a=_.TJ(a);return null==c||c==!!b.Qh()&&(!c||1==b.Dp()||!(!a||2!=a&&3!=a))};_.g.zHb=function(a,b){return null==_.Q(a,10)||_.Q(a,10)==!!b.oB()};_.g.pHb=function(a,b){return null==_.Q(a,11)||_.Q(a,11)==!!_.Q(b,6)};_.g.sHb=function(a,b){a=_.ol(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.wk().includes(d);if(_.R(c,2,!1)?d:!d)return!1}return!0};
_.g.rHb=function(a,b){a=_.yb(a,_.Ff,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.Dp();if(_.R(c,2,!1)?d:!d)return!1}return!0};_.g.wHb=function(a,b){return null==_.Q(a,16)||(_.Q(a,16)?null!=b.Ny():!0)};_.g.nHb=function(a,b){var c=_.Q(a,17);a=_.TJ(a);return null==c||c==!!b.hJ()&&(!c||1==b.Dp()||!(!a||2!=a&&3!=a))};_.g.qHb=function(a,b){b=aoc(b);return null==_.Q(a,19)||_.Q(a,19)==!!_.Ek(b)};
_.g.xHb=function(a,b){a=_.yb(a,_.SJ,25);if(0==a.length)return!0;var c=new Set(_.se(b,56));return a.every(function(d){return c.has(d.Wa())})};_.g.yHb=function(a,b){if(0==a.jA().length)return!0;if(0==b.jA().length)return!1;var c=new Set(b.jA().map(function(d){return d.XR()}));return a.jA().some(function(d){return c.has(d.XR())})};_.g.AHb=function(a,b){a=_.se(a,33);return!a.length||a.includes(b.uc()||"")};_.g.oHb=function(a,b){a=_.yb(a,_.gl,37);if(0==a.length)return!0;var c=new Set(_.se(b,50));return a.every(function(d){return c.has(d.Wa())})};
_.g.CHb=function(a,b){return _.z(a,41)?(b=_.y(b,_.NJ,86),null!=b&&_.z(a,41)==_.z(b,3)):!0};_.g.BHb=function(a,b){if(_.se(a,40).length){if(b=_.y(b,_.NJ,86)){var c=new Set(_.se(b,2));return _.se(a,40).some(function(d){return c.has(d)})}return!1}return!0};_.g.kHb=function(a,b){var c=_.TJ(a);return 1==c?(b=_.Q(b,31),!!_.ol(a).length||!!_.yb(a,_.cl,35).length||1==_.Q(a,18)||_.kJ(a)||_.lJ(a)||_.mJ(a)||!!a.$q()||null==b||b):2==c?!!b.uc():!0};
_.g.uHb=function(a,b){return _.kJ(a)?!_.lj(b,100)||b.Qh()?!1:_.R(a,74,!1)?!!_.Q(_.Lk(b),4):!!_.Q(_.Lk(b),3):!0};_.g.tHb=function(a,b){return _.lJ(a)?!!_.Mk(b).length&&!b.Qh():!0};_.g.lHb=function(a,b){return _.mJ(a)?!!_.Nk(b).length&&!b.Qh():!0};_.g.vHb=function(a,b){return _.lj(a,50)?_.R(a,50,!1)?_.lj(b,101)&&0!==_.z(b,101):!_.lj(b,101):!0};_.g.EHb=function(a,b){a=a.$q();return!a||_.se(b,120).includes(a)};
_.g.mHb=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.aF=function(a){var b=this,c=SL.prototype.aF.call(this,a);if(5==c)return c;c=_.ol(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=_.se(a,33);return 0!=a.length&&a.includes(this.teamDriveId)?1:5};_.g.Ds=function(a){return SL.prototype.Ds.call(this,a)&&!!a&&a.getItem().uc()==this.teamDriveId&&!zL(a.getItem())};_.g.dO=function(){return!1};_.g.jd=function(){var a=new _.Df;_.ql(a,[this.teamDriveId]);_.rl(a,2);return a};
_.g.lN=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 _.Df;_.x(a,48,!0);b=new _.ud;_.td(b,11);_.sd(b,2);_.Ef(a,b);this.ma=BL(this.W,a,!0)};
Axc.prototype.add=function(a){a instanceof TL?this.H=a:a instanceof sxc?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 sxc)this.O&&(QL(this.O,!1),this.O=null);else if(a instanceof RL){var c=_.la(this.ha,function(d){return b.W.equals(d.jd(),a.jd())});0<=c&&(QL(this.ha[c],!1),_.va(this.ha,c))}else a instanceof VL&&(c=_.la(this.V,function(d){return b.W.equals(d.jd(),a.jd())}),0<=c&&(QL(this.V[c],!1),_.va(this.V,c)))};
var Bxc=function(a){var b=[];a.H&&b.push(a.H);a.O&&b.push(a.O);_.Ca(b,_.Aa(a.ha));_.Ca(b,_.Aa(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),_.tj(c,26),!_.Cj(a.ma,c)):!0})};Axc.prototype.OW=function(){return _.Aa(this.V)};var Dxc=function(a,b){return _.Bg(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){_.ni.call(this,"tb");this.ids=a;this.error=b};_.K(Fxc,_.ni);Fxc.prototype.getError=function(){return this.error};Fxc.prototype.H=function(){return this.ids};var Gxc=function(a){_.ni.call(this,"ub");this.people=a};_.K(Gxc,_.ni);Gxc.prototype.getPeople=function(){return this.people};var Hxc=function(a){_.ni.call(this,"vb");this.people=a};_.K(Hxc,_.ni);
Hxc.prototype.getPeople=function(){return this.people};var Ixc=function(a,b,c){c=void 0===c?0:c;this.person=a;this.Oe=c;this.O=!1;this.H=new Set(b?[b]:[]);6===c&&(this.O=!0)};Ixc.prototype.We=function(){return this.Oe};
var Jxc=function(a){return 0===a.Oe?1:2===a.Oe||(1===a.Oe||4===a.Oe)&&(a.person.yq()||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=$wc(b.clone(),a.getEmail(b)),e=!_.Cj(a.person,b),a.person=b,a.Oe=c,e||d!==Jxc(a);if(4===c)return a.Oe=c,_.x(a.person,6,_.z(b,6)),d!==Jxc(a);c=b;return!a.person.getEmail()&&c.getEmail()?($wc(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;_.yi.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 _.jI(function(){return Lxc(f)},100,this)};_.K(Mxc,_.yi);Mxc.prototype.mh=function(a){a&&_.lI(this.O)&&(this.H.includes(a)||this.H.push(a),this.ma.qe())};
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.Pe;var e=new _.tJ;e=_.qj(e,1,a);return d.call(c,e)}).then(function(c){c=_.yb(c,LL,1);b.dispatchEvent(new Gxc(c))},function(c){c=_.wd(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){_.yi.call(this);var f=this;this.H=new Map;this.O=new Set;this.V=new Map;this.Oc=new _.of(this);this.Ja(this.Oc);this.ka=b;this.ha=d;this.ta=_.Dj(_.y(a,jrc,85)||new jrc,1,864E5);this.W=new Mxc(a,b,c,e);this.ma=new _.CD(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.Dj()}},500,this);this.Oc.listen(this.W,"ub",function(h){h=h.getPeople();Nxc(f,
h,1);f.ma.qe()});this.Oc.listen(this.W,"tb",function(h){Oxc(f,h)})};_.K(Pxc,_.yi);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.mh(b);var c=new _.en;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){_.yi.call(this);var f=this;this.Oc=new _.of(this);this.Ja(this.Oc);this.H=new Pxc(a,b,c,d,e);this.O=_.IJ(a)||new _.Bic;this.Oc.listen(this.H,
"vb",function(h){return f.dispatchEvent(h)})};_.K(Zxc,_.yi);Zxc.prototype.DP=function(a){var b=this;if(a.H){var c=a.H.getItem(),d=$xc(this,[c]).map(function(e){return ayc(b,e)});Yxc(this.H,d,a.H.getId(),this.We(_.z(c,82)))}a.O&&Vxc(this.H,a.id,byc(this,a))};Zxc.prototype.We=function(a){return _.Ogc.get(a)||0};
var byc=function(a,b){var c=cyc(a,b.O),d=cyc(a,b.H);return c.filter(function(e){return!d.includes(e)})},cyc=function(a,b){return b?dyc(a,[b.getItem()]):[]},fyc=function(a,b){b=b.getUser();Yxc(a.H,[ayc(a,b)],"ACCOUNT");eyc(a,b)},hyc=function(a,b){var c=_.yb(b,_.aK,2).map(function(d){var e=_.y(d,_.vk,9,1);return a.H.Sb(LK(e)).then(function(){return void gyc(a,[e])})});return Promise.all(c).then(function(){return b})},iyc=function(a,b){gyc(a,$xc(a,b))},gyc=function(a,b){b=_.m(b);for(var c=b.next();!c.done;c=
b.next())c=c.value,LK(c)&&eyc(a,c)},jyc=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,[ayc(a,f)],c));return Promise.all([].concat(_.fc(d)).map(function(h){return a.H.Sb(h)})).then(function(){return gyc(a,b)})},kyc=function(a,b){return dyc(a,[b]).some(function(c){return!Sxc(a.H,c)})},dyc=function(a,b){var c=new Set;a=$xc(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))},$xc=function(a,
b){return b.map(function(c){var d=c.Bw();d=d?[].concat(_.fc(d.ZR()),_.fc(_.yb(d,_.vk,3))):[];var e=c.wf();e=(e=e&&_.xe(e))?$xc(a,[e]):[];return[].concat(_.fc(_.Jk(c)),[c.Cm(),c.bs(),c.qq(),c.GD()],_.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 lyc=function(a){return cxc(new bxc,Txc(a.H))},myc=function(a,b){return b.map(function(c){c=c.clone();var d=$xc(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})},oyc=function(a,b){return b.some(function(c){return nyc(a,c)})},nyc=function(a,b){return $xc(a,[b]).some(function(c){return _.lj(c,3)||c.yq()||_.lj(c,5)})},eyc=function(a,b){var c=a.H.get(LK(b));if(c){a=c.person.clone();var d=_.eic(b.$c(a.getName()),a.getEmail());c=Jxc(c);_.x(d,16,
c);(a=_.y(a,Ywc,4))&&b.On(a.getUrl())}},ayc=function(a,b){var c=LK(b);c=$wc(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},pyc=function(){this.suggestionSessionId=this.W=null;this.V=[];this.incompleteSearch=!1;this.O=[];this.H=!0};pyc.prototype.Vf=function(){return this.suggestionSessionId};pyc.prototype.kBa=function(){return this.O};pyc.prototype.lc=function(){return this.H};
var qyc=function(a){if(!a)return null;a=a.split("/");return 2>a.length?null:a[1]},ryc=function(a,b){a=qyc(a);b=qyc(b);return!(!a||!b||a!==b)},syc=function(a){return a.qc()+"_"+qyc(a.getName())},tyc=function(a,b){var c=_.se(a,1).map(function(d,e){return b[Number(e)].value.W5a.promise});return Promise.allSettled(c).then(function(d){return _.se(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.Qe(f.reason.tg));return e})})},WL=function(a,
b){_.N.call(this);this.O=a;this.request=b;this.Wy=new Set;this.status=6;this.W=new Map;this.Oe=0};_.K(WL,_.N);_.g=WL.prototype;_.g.Zh=function(a){var b=this;this.Wy.add(a);return this.resize().then(function(){return b.SO(a)})};_.g.fk=function(a){this.Wy.delete(a);0===this.Wy.size&&this.dispose()};_.g.We=function(){return this.Oe};_.g.ri=function(a){this.Oe=a};
_.g.MD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=!1;a.forEach(function(f){e=d.qw(f,c)||e});b||(e=1!==this.status||e,this.status=1);return e?this.DY():_.Vh([])};_.g.DY=function(){for(var a=[],b=_.m(this.Wy.values()),c=b.next();!c.done;c=b.next())a.push(this.SO(c.value));return _.Xh(a)};
_.g.CY=function(a){this.status=3;for(var b=[],c={},d=_.m(this.Wy.values()),e=d.next();!e.done;c={Qra:c.Qra},e=d.next())c.Qra=e.value,b.push(this.O.then(function(f){return function(h){return void h.CY(f.Qra,a)}}(c)));return _.Xh(b)};_.g.JA=function(){for(var a=this,b=[],c={},d=_.m(this.Wy.values()),e=d.next();!e.done;c={Rra:c.Rra},e=d.next())c.Rra=e.value,b.push(this.O.then(function(f){return function(h){return void h.JA(f.Rra)}}(c)));return _.Xh(b).then(function(){a.ri(0===a.We()?1:6)})};
_.g.resize=function(){var a=this;return this.O.then(function(b){var c=0;a.Wy.forEach(function(d){d=b.wla(d);c=Math.max(c,d.wi?d.wi()||0:0)});a.iga(c)})};var uyc=function(a,b){return b?a.W.get(a.Xka(b))||null:null};_.g=WL.prototype;_.g.iG=function(a,b){var c=uyc(this,a);b=tvc(c,b);this.W.set(this.Xka(a),b)};_.g.Xka=function(a){return a};_.g.hOa=function(){return[]};_.g.SO=function(a){var b=this;return this.O.then(function(c){return void c.SO(a,b.nk())})};_.g.removeItem=function(){};
var XL=function(a,b){_.ni.call(this,"Ab");this.error=a;this.retryCount=b};_.K(XL,_.ni);var YL=function(a,b){_.yi.call(this);this.request=a;this.pageToken="";this.H=this.O=!1;this.data=[];this.limit=0;this.W=b};_.K(YL,_.yi);var vyc=function(a){return!a.O||""!==a.pageToken};YL.prototype.mh=function(a){this.limit=void 0===a?1E5:a;return!this.H&&this.data.length<=this.limit&&vyc(this)?wyc(this):_.Vh([])};
var wyc=function(a){a.O=!0;a.H=!0;var b=a.dja(a.request,a.limit-a.data.length,a.pageToken);return a.W(b).then(function(c){return xyc(a,c)},function(c){return a.handleError(c)})},xyc=function(a,b){a.H=!1;a.pageToken=a.pla(b);b=a.Cka(b);b.forEach(function(c){return a.data.push(c)});a.Z6(b);return a.data.length<a.limit&&vyc(a)?_.Xh([_.Vh(b),wyc(a)]).then(function(c){return c[0].concat(c[1])}):_.Vh(b)};
YL.prototype.handleError=function(a){this.H=!1;a=_.uI(a);var b=new XL(a);this.iOa(b);this.dispatchEvent(b);return _.Wh(a)};YL.prototype.Z6=function(){};YL.prototype.iOa=function(){};var yyc=function(a,b,c){YL.call(this,c,function(d){return a.then(function(e){return e.Pe(d)}).then(null,function(e){KK(e)})});this.V=b};_.K(yyc,YL);_.g=yyc.prototype;_.g.dja=function(a,b,c){a=a.clone();a.Gi(b);return new _.yhc(a,c)};_.g.pla=function(a){return a.pageToken||""};_.g.Cka=function(a){return a.response.H()};
_.g.Z6=function(a){this.V.MD(a,!1,1)};_.g.iOa=function(a){this.V.MB(this.request,a)};var zyc=function(a,b,c,d){WL.call(this,a,d.clone());this.ha=b;this.V=c;this.data=[];this.H=null};_.K(zyc,WL);_.g=zyc.prototype;_.g.refresh=function(){this.JA();this.H=new yyc(this.ha,this.V,this.request);return this.H.mh(this.request.wi()||100)};_.g.Jp=function(a){return this.data.find(function(b){return ryc(b.getName(),a)})};
_.g.iga=function(a){this.H&&a===this.request.wi()||(this.request.Gi(a),this.H?this.H.mh(a):this.refresh())};_.g.nk=function(){var a=this,b=Vwc((new KL).Dc(this.status),this.data.filter(function(c){return a.V.tEa(c)}).map(function(c){return c.clone()}));return new _.nK(b,void 0,void 0,this.We())};_.g.MD=function(a,b,c){var d=this;a=a.filter(function(e){return e.qc()===d.request.qc()});return WL.prototype.MD.call(this,a,b,c)};
_.g.qw=function(a,b){b=void 0===b?1:b;if(!$nc(uyc(this,a.getName()),b))return!1;var c=-1===b?0:this.data.length,d=this.data.findIndex(function(e){return ryc(e.getName(),a.getName())});-1<d&&(this.data.splice(d,1),c=d);this.data.splice(c,0,a);this.iG(a.getName(),b);return!0};_.g.removeItem=function(a){_.ya(this.data,function(b){return ryc(b.getName(),a)})&&(this.W.delete(this.Xka(a)),this.DY())};_.g.Xka=function(a){return qyc(a)};_.g.iG=function(a,b){this.Jp(a)&&WL.prototype.iG.call(this,a,b)};
_.g.hOa=function(a){var b=this;return a instanceof _.zJ&&a.qc()===this.request.qc()?a.sW().map(function(c){return b.Jp(c.Hm())}).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.gja(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.cya(c),a.H.set(d,e));e.Zh(b);return f};
ZL.prototype.fk=function(a,b){var c=this.H.get(this.getKey(b));c&&(c.fk(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.fk(b),d.isDisposed()&&a.H.delete(a.getKey(c)))},Cyc=function(a,b){return a.H.get(b)};ZL.prototype.MD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=a.filter(function(f){return d.tEa(f)});this.H.forEach(function(f){f.MD(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.hOa(b)});return[].concat.apply([],_.fc(a))};ZL.prototype.iG=function(a,b){this.H.forEach(function(c){c.iG(a,b)})};ZL.prototype.tEa=function(){return!0};ZL.prototype.MB=function(a,b){(a=this.H.get(this.getKey(a)))&&a.CY(b)};ZL.prototype.x3=function(a,b,c,d){var e=this.getKey(b),f=this.H.get(e);f||(f=this.gja(b),f.ri(c),this.H.set(e,f),this.MD(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 _.Ik)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 _.Ik?b.getId():b;return a.H.has(b)},Hyc=function(a,b){return _.ya(a.O,function(c){return c===b})&&b>a.V?(a.V=b,!0):!1};Eyc.prototype.R9=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,syc(b));(a=Cyc(a,b.qc()))&&a.DY()};_.g=Iyc.prototype;_.g.getKey=function(a){return a.qc()};_.g.gja=function(a){return new zyc(this.V,this.W,this,a)};_.g.cya=function(a){return new zyc(this.V,this.W,this,a)};_.g.Fo=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.tEa=function(a){return!Gyc(this.O,syc(a))};
var Kyc=function(a){var b=new _.cI;b.Nb(a);return b},Lyc=function(){_.yi.call(this);this.H=Date.now()};_.K(Lyc,_.yi);Lyc.prototype.NF=function(){this.H=Date.now();this.dispatchEvent("Bb")};
var Myc=function(a,b){this.O=a;this.H=b},Nyc=function(a,b){b=_.sWb(b);var c=new yyc(a.O,a.H,b);new Promise(function(d,e){return c.mh(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,vS:[],W3a:[],ee:_.Yh()});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].vS,
pOb:a.Dd[b].W3a}),_.bb(a.Dd,b));return!0};Oyc.prototype.Fo=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].W3a.push(e);c.Dd[d]&&c.Dd[d].vS.push(e)})};var Ryc=function(a,b,c){YL.call(this,a,c);this.V=b};_.K(Ryc,YL);Ryc.prototype.dja=function(a,b){return a.clone().Gi(b)};Ryc.prototype.pla=function(){return""};Ryc.prototype.Cka=function(a){return[a]};Ryc.prototype.Z6=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.JA();this.H=new Ryc(this.request,this.ha,function(b){return a.ka.then(function(c){return c.Pe(b)})});return this.H.mh(this.request.wi()||0)};Syc.prototype.iga=function(a){1===this.status||this.H&&a===this.request.wi()||(this.request.Gi(a),this.H?this.H.mh(a):this.refresh())};
Syc.prototype.nk=function(){if(this.V)return this.V;var a=new xL;a.Dc(this.status);return a};Syc.prototype.qw=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.gja=function(a){var b=this;return new Syc(this.O,this.W,function(c){b.MD(c,!1)},a)};_.g.cya=function(){throw Error("Cf");};
_.g.x3=function(a,b,c,d){var e=a[0].Zk();this.log("Initialized "+e.length+" suggested workspaces: "+e.map(function(f){return f.vq()}).join(", "));ZL.prototype.x3.call(this,a,b,c,d)};var Uyc=function(a,b,c,d){_.yi.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,_.yi);
Uyc.prototype.mh=function(){var a=this;if(this.ee)return this.ee.promise;this.ee=_.Yh();for(var b={},c=_.m(this.W(this.request)),d=c.next();!d.done;b={gsa:b.gsa,pfa:b.pfa},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.pfa=d;b.gsa=e;this.ma++;this.Ba.then(function(f){return function(h){return h.Pe(f.gsa)}}(b)).then(function(f){return function(h){var k=f.pfa;a.V(h);Vyc(a,k)}}(b),function(f){return function(h){return void a.handleError(f.pfa,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=_.wd(b);var c=b.tg;5===c.Gv()||4===c.Yj()?(this.wa.info("drive.ds.sync.query.SimpleFindByIdsRunner","Deleting "+a+" due to: "+b.message),this.ka(a),Vyc(this,a)):(a=new XL(c,_.Dj(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){var b=new Map;_.se(a,1).forEach(function(c){var d=_.yVb(a.clone(),[c]);b.set(c,d)});return b};Wyc.prototype.V=function(a){var b=[];a.DU().forEach(function(c){b.push(c)});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.mh()};Xyc.prototype.iga=function(){this.H||this.refresh()};Xyc.prototype.nk=function(){var a=new _.lK;a.Dc(this.status);_.Ta(this.Sk,function(b,c){a.DU().set(c,b||new _.cI)});a.ri(this.We());return a};Xyc.prototype.qw=function(a){var b=a.getId();if(_.Cj(a,Kyc(a.getId()))){if(this.Sk[b])return delete this.Sk[b],!0}else if(0<=_.se(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.dja=function(a,b,c){a=a.clone();a.Gi(b);return new _.Lhc(a,c)};Zyc.prototype.pla=function(a){return a.pageToken||""};Zyc.prototype.Cka=function(a){return a.response.Zk()};Zyc.prototype.Z6=function(a){this.V(a)};var $yc=function(a){this.H=_.gdc(a,{numeric:!0})};
$yc.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};$yc.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 azc=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 $yc(c);b=(c=this.request.Mx())?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(azc,WL);azc.prototype.refresh=function(){var a=this;this.JA();this.H=new Zyc(this.request,this.V,function(b){return a.ha.then(function(c){return c.Pe(b)})});return this.H.mh(this.request.wi()||0)};azc.prototype.iga=function(a){1===this.status||this.H&&a===this.request.wi()||(this.request.Gi(a),this.H?this.H.mh(a):this.refresh())};azc.prototype.nk=function(){var a=new ML;a.Dc(this.status);exc(a,this.Sk.map(function(b){return b.clone()}));return new _.qK(a,void 0,1!==this.status&&vyc(this.H),this.We())};
azc.prototype.qw=function(a){var b=_.ya(this.Sk,function(c){return c.getId()===a.getId()});return a&&Yyc(this.request,a)&&!_.Cj(a,Kyc(a.getId()))?znc(this.Sk,a,this.ka):b};var bzc=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(bzc,ZL);_.g=bzc.prototype;_.g.log=function(a){this.W.info(this.logName,a)};_.g.getKey=function(a){return a.toString()};
_.g.gja=function(a){var b=this;return new azc(this.V,this.ha,ZK(_.eI(this.O)),function(c){return void b.MD(c,!1)},a)};_.g.cya=function(a){var b=this;return new Xyc(this.V,this.ha,this.O,this.W,function(c,d){return b.MD(c,d)},a)};_.g.x3=function(a,b,c,d){this.log("Initialized "+a.length+" items for workspaces: "+a.map(function(e){return e.getId()}).join(", "));ZL.prototype.x3.call(this,a,b,c,d)};
var czc=function(a,b){b=void 0===b?!1:b;var c=a.getMimeType();OK(a)&&(c=(c=a.wf())?_.z(c,3):"");PK(a)&&(a.Mi()&&(c+="+"+String(a.Mi())),a.zj()&&(c+="+shared"));return _.nfa(c,b?"32":"16")},dzc=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("&")},ezc=function(a,b){var c=_.Q(a,44),d=a.wf();if(d){if(1!==_.ze(d))return null;c=(c=_.xe(d))?_.Q(c,44):!0}if(!c)return null;c={};d=a.getId();OK(a)&&(d=Rnc(a));
d=[_.C(b,65,"https://lh3.google.com"),"u",_.vI(_.eI(b)),"d",d].join("/");_.R(b,89,!1)&&_.lj(a,140)&&(c.resourcekey=_.Ok(a));return d=dzc(d+"={size}",c)},fzc=function(a){this.H=a},hzc=function(a,b,c){if(c.includes(20)&&c.includes(3)){var d=czc(b,_.R(a.H,75,!1));_.x(b,21,d)}c.includes(18)&&_.pic(b,Ioc(b,a.H));c.includes(19)&&(d=ezc(b,a.H),_.x(b,20,d));gzc(a,b,c);if(OK(b)){if(d=(d=b.wf())&&_.xe(d)){if(c.includes(20)&&c.includes(3)){var e=czc(d,_.R(a.H,75,!1));_.x(d,21,e)}c.includes(18)&&_.pic(d,Ioc(d,
a.H));c.includes(19)&&(e=ezc(d,a.H),_.x(d,20,e));gzc(a,d,c)}_.x(b,44,!!b.Dz())}},gzc=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)&&!_.fe(e)&&(!b.S7()||2!==b.Dp()),d&&_.x(b,40,e),e&&c&&(a=a.H,d=b.getId(),OK(b)&&(d=Rnc(b)),c=new _.Zi(_.C(a,16,"")+"/uc"),_.dj(c,"id",d),_.dj(c,"authuser",_.vI(_.eI(a))),_.dj(c,"export","download"),_.R(a,89,!1)&&_.lj(b,140)&&_.dj(c,"resourcekey",_.Ok(b)),_.x(b,41,c.toString())))}},izc=function(a,b){this.pja="";
this.startTime=b||new Date;this.H=a;this.Haa=Koc(a)};izc.prototype.clone=function(){return new izc(this.H,this.startTime)};var jzc=function(){this.H=null;this.tZ=[]},kzc=function(a){return _.Bf(a.tZ,function(b){return _.eb(b)})};jzc.prototype.IN=function(){return this.H};
jzc.prototype.O=function(a,b,c){if(this.H){var d=this.H;if(!a["X-Google-DapperTraceInfo"]){var e=new jxc;e.V=ixc(d.Haa);var f=_.oh().substring(0,8);d=Koc(f);f=(new Hwc).Nb(f);f=_.x(f,2,d);b=_.x(f,3,b).Ai(c);this.tZ.push(b);e.O=ixc(d);e.H=gxc(808464432,808464432);e.W=41;b=String.fromCharCode;c=b.apply;d=new _.Qj;if(e.V){f=e.V.O>>>0;var h=e.V.H>>>0;_.Rj(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,_.Rj(d,2,1),k=d.H,Hpc(k,f),Hpc(k,h));f=e.W;null!=f&&(_.Rj(d,3,5),Hpc(d.H,f));e.H&&
(f=e.H.O>>>0,e=e.H.H>>>0,_.Rj(d,4,1),h=d.H,Hpc(h,f),Hpc(h,e));e=_.Sj(d);a["X-Google-DapperTraceInfo"]=_.n.btoa(c.call(b,null,e))}}};var lzc=function(){this.Fb=[];this.O=this.H=0};lzc.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 mzc=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},nzc=function(a){this.key=a;this.H=new _.Lgc;this.O=new _.Jgc(new _.Lgc,_.Uma(a))};nzc.prototype.encrypt=function(a){for(var b=[],c=0;16>c;c++)b[c]=Math.floor(256*Math.random());b=Ksc(b);c=ozc(this,a);return b.concat(c,pzc(this,b,a,!0))};
var qzc=function(a,b){var c=pzc(a,b.substring(0,16),b.substring(36),!1);b=b.substring(16,36);a=ozc(a,c);if(b!==a)throw Error("Df");return c},ozc=function(a,b){a=_.Kgc(a.O,_.Ugc(b));return Ksc(a)},pzc=function(a,b,c,d){a.H.reset();a.H.update(b);a.H.update(a.key);b=new lzc;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=_.Ugc(c.substring(8192*
e,8192*(e+1))),mzc(b,a),d+=Ksc(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;mzc(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=rzc(d,e++),128>f?b[a++]=String.fromCharCode(f):191<f&&224>f?(h=rzc(d,e++),b[a++]=String.fromCharCode((f&31)<<6|h&63)):
239<f&&365>f?(h=rzc(d,e++),k=rzc(d,e++),l=rzc(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=rzc(d,e++),k=rzc(d,e++),b[a++]=String.fromCharCode((f&15)<<12|(h&63)<<6|k&63));b.length=a;d=b.join("")}else d="";return d},rzc=function(a,b){return a[Math.floor(b/8192)][b%8192]},szc=function(a,b,c){this.data=a;this.U0a=b;this.H=c;this.isEncrypted=!1};szc.prototype.getData=function(){return this.data};
szc.prototype.Vm=function(){return this.U0a};var tzc=function(a,b,c,d){this.O=a;this.H=_.Yh();this.vp=!1;this.V=_.C(b,7,"");this.W=_.Dj(_.$K(b),6,2E7);this.mF=_.lI(b);this.ha=_.Dj(_.$K(b),12,0);this.ka=c;this.Yf=d||null};tzc.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 _.fi(this.H.promise)};
tzc.prototype.BB=function(a){if(a instanceof _.UB)return 0;if(a instanceof IL)return 1;if(a instanceof atc)return 5;if(a instanceof vL)return 3;if(a instanceof bxc)return 6;throw new _.Gc("Unsupported dataShard in getDataType");};var uzc=function(a){if(0==a)return _.UB;if(1==a)return IL;if(5==a)return atc;if(3==a)return vL;if(6==a)return bxc;throw new _.Gc("Unsupported dataType:"+a+" in getDataTypeCtor");};tzc.prototype.Xo=function(a){if(a instanceof vL)return a.Xo()};
tzc.prototype.Vm=function(a){if(a instanceof vL)return a.Bd().length};tzc.prototype.Lv=function(a){if(a instanceof vL)return a=a.Lv(),null!=a?a:void 0};
var zzc=function(a,b,c,d){if(0==c.length)return _.Vh();for(var e=a.BB(c[0]),f=_.m(c),h=f.next();!h.done;h=f.next())a.BB(h.value);var k=a.Xo(c[0]),l=0;3==e&&vzc(a,c);var p=!!b;return wzc(a,c).then(function(q){if(p){var r=a.Yf?a.Yf.H(106023,d):null;l=q.reduce(function(w,A){(A=A.Vm())&&(w+=A);return w},0);var v=xzc(a,b,q.map(function(w){return w.getData()})).then(function(w){if(w.length!=q.length)return _.Wh(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(_.ogc,e)),_.iK(_.lgc,k)),!0),v.then(function(){var w=l;Trc(cL(r),!0).gw(w);r.Dj()},function(){var w=l;Trc(cL(r),!1).gw(w);r.Dj()}));return v}return q}).then(function(q){return a.H.promise.then(function(){return yzc(a.O,q,e,k,p,d)})})},wzc=function(a,b){return new _.Uh(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 szc(p,a.Vm(l),a.Lv(l)))}});if(e){var h=
Error("Gf"),k=new _.Fc;_.sI(k,2);_.II(k,23);_.x(k,21,h.message);_.Go(k);a.ka(k);d(h)}c(f)})},vzc=function(a,b){for(var c=_.m(b),d=c.next();!d.done;d=c.next());a.mF||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=cvc(new vL,f);d.push(f)}cvc(b[c],e);d.length&&_.Ob(_.ta,b,c+1,0).apply(null,d)}},bM=function(a,b,c,d,e,f){var h=_.Yh(),k;_.Zh(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 _.$h;if(l[0]&&l[0].o1){if(k=a.Yf?a.Yf.H(106022,f):null)Wrc(Vrc(Urc(cL(k),_.iK(_.ogc,c)),_.iK(_.lgc,d)),!0),q.nn().then(function(r){var v=k;r=void 0!=r;Trc(cL(v),r);_.Kjc(v)});Czc(a,q,b,p)}else q.callback(p);return _.Vh(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 (uzc(c))(JSON.parse(r)),q+=a.Vm(r),p.push(r);3==c&&(a.mF||Dzc(p),Ezc(p));k&&cL(k).gw(q)}h.resolve(p)}),function(){k&&k.Dj()}).fj(h.reject,h);return h.promise},
Azc=function(a){if(a.length){for(var b=0;b<a.length;b++)if(a[b].BN().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,_.nic(f,Fzc(_.Jk(f),b,c)),_.oic(f,Fzc([f.Cm()],b,c)[0]),_.ric(f,Fzc([f.bs()],b,c)[0]),_.vic(f,Fzc([f.qq()],b,c)[0]),_.yic(f,Fzc([f.GD()],b,c)[0]),f=f.Bw())_.kic(f,Fzc(f.ZR(),b,c)),_.lic(f,Fzc(_.yb(f,_.vk,3),b,c))}var h=[];b.forEach(function(k){h.push(k)});_.sj(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)?_.Cj(f,b.get(e))?d.push(c.get(e)):d.push(f):(b.set(e,f.clone()),f=new _.vk,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].BN()&&a[0].BN().forEach(function(h){b.set(h.getId(),h);h=(new _.vk).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,_.nic(f,Gzc(_.Jk(f),b,c)),_.oic(f,Gzc([f.Cm()],b,c)[0]),_.ric(f,Gzc([f.bs()],b,c)[0]),_.vic(f,Gzc([f.qq()],b,c)[0]),_.yic(f,Gzc([f.GD()],b,c)[0]),f=f.Bw())_.kic(f,Gzc(f.ZR(),b,c)),_.lic(f,Gzc(_.yb(f,_.vk,3),b,c));_.tj(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();_.Cj(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={Yea:b.Yea},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.Yea=e.Bd();d.forEach(function(f){return function(h){_.Ca(f.Yea,h.Bd())}}(b));cvc(e,b.Yea)}},xzc=function(a,b,c){if(!_.wgc()&&a.V){var d=new Worker(_.pca(_.My(a.V)),void 0),e=new _.$h;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=mxc(new lxc,
c);d.postMessage({command:"encrypt",data:{request:c.Hc(),key:b}});return e}try{a=[];var f=new nzc(b);for(b=0;b<c.length;b++)a.push(f.encrypt(c[b]));var h=_.ei(a)}catch(k){h=_.gi(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(!_.wgc()&&a.V){var f=new Worker(_.pca(_.My(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 nzc(c);for(c=0;c<d.length;c++)a.push(qzc(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 Suc(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.o1=void 0===e?null:e},Qzc=function(a){return{data:a.data,index:a.index,size:a.size,timestamp:a.timestamp,e:a.o1}},Rzc=function(a,b,c,d){a=cM(a)+"_"+b;
3===b&&(a+="_"+d);return a+=(0,_.Xs)(":%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 Suc(c,a+":a")},Tzc=function(a){var b=cM(a)+"_";a=cM(a)+"_A";return Suc(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=_.Aa(e);_.Ka(this.fields);_.Ga(this.fields);this.H=
f};Vzc.prototype.Fu=function(){return this.userId};Vzc.prototype.eh=function(){return _.Aa(this.fields)};
var cM=function(a){if(!a.O){var b=new _.RH;b.update([a.userId,a.clientId,a.W,a.V].join(":"));b.update(a.fields);a.O=_.Zec(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;_.N.call(this);var e=this;this.Yf=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.Qa=a.then(function(f){e.version=f});this.Jb=new _.of(this);this.Ja(this.Jb)};_.K(dM,_.N);dM.prototype.initialize=function(){return Yzc(this)};
var Yzc=function(a,b){a.V||(a.V=_.Yh(),a.Qa.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)"),_.Sdc("GoogleDriveDs",2,a.Ga.bind(a),a.ta.bind(a)).eg(a.La.bind(a),a.ta.bind(a)),_.Ci(2E4).then(a.Ia.bind(a)))},function(c){a.V.reject(new _.Gc("Database version error",void 0,_.rI(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.Ga=function(a,b){this.log("Upgrading GoogleDriveDs to version "+a.newVersion);this.Ba=!0;_.Ma(b.H.objectStoreNames,function(c){return _.Kic(b,c)});_.Ta(_.CI,function(c){var d=_.Pgc.get(c);_.Pdc(b,c,d?{keyPath:d}:void 0)})};
dM.prototype.ta=function(a){var b;a&&a instanceof _.TH&&"InvalidStateError"==a.getName()&&_.jj.jv?b=Error("Hf"):_.rI(a)&&(b=a);this.ha("Unable to open database GoogleDriveDs (version 2)");this.V.reject(b);$zc(this,!1)};dM.prototype.La=function(a){this.ka?a.dispose():(Zzc(this,a),this.Ja(this.H),this.readOnly||aAc(this).then(null,function(){}),this.log("Initialized database GoogleDriveDs"),this.V.resolve(),$zc(this,!0))};
var $zc=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.Dj();a.ma=null}};dM.prototype.Ia=function(){this.H||this.Gf()||(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.Gf=function(){return this.ka};
var bAc=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 _.Qdc(a,[b],c)}catch(d){return null}},aAc=function(a){var b=_.CI.i0,c=eM(a,b,"readwrite");if(!c)return _.Wh(Error("Jf"));c.objectStore(b).put(Wzc(a.nj()));return _.Vh(c.wait()).then(function(){})},cAc=function(a){if(!a.H)return _.Wh(Error("Kf"));if(a.Gf())return _.Wh(Error(a.O));var b=_.CI.i0,c=eM(a,b,"readwrite");if(!c)return _.Wh(Error("Lf"));b=c.objectStore(b);return _.Vh(b.remove(cM(a.nj())))},
dAc=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 _.Wh(Error("Sf"));if(a.Gf())return _.Wh(Error(a.O));var e=Szc(a.nj(),b,0,c),f=_.CI.I6,h=eM(a,f);if(!h)return _.Wh(Error("Tf"));e=h.objectStore(f).getAll(e);var k=_.Yh();e.eg(function(l){l=dAc(l,k,d);a.readOnly||null==l||eAc(a,b,c,l).then(null,function(){})},k.reject);return k.promise},yzc=function(a,b,c,d,e,f){if(a.H){if(a.Gf())return _.Wh(Error(a.O));if(100<b.length||
3==c&&void 0==d)return _.Wh(Error("Uf"))}else return _.Wh(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=_.CI.I6;b=eM(a,p,"readwrite");if(!b)return _.Wh(Error("Wf"));p=b.objectStore(p);var q={};l=_.m(l);for(var r=l.next();!r.done;q={qfa:q.qfa},r=l.next())r=r.value,q.qfa=fAc(a,c,d,r.metadata,f),p.put(Qzc(r.data),r.key).then(function(v){return function(){var w=v.qfa;w&&(Trc(cL(w),!0),w.Dj())}}(q),function(v){return function(w){var A=
v.qfa,B=w instanceof _.TH?w.code:_.rdc;A&&a.W&&(w=Trc(cL(A),!1),B=_.iK(_.pgc,B),_.x(w,2,B),A.Dj())}}(q));return _.Vh(b.wait()).then(function(){})},fAc=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(_.ogc,b)),_.iK(_.lgc,c)),f=_.x(b,5,f.Xo(d.H)),Wrc(f,d.isEncrypted),void 0!=d.Vm()&&cL(a).gw(d.Vm());return a}return null},eAc=function(a,b,c,d){d=void 0===d?0:d;if(a.H){if(a.Gf())return _.Wh(Error(a.O));if(3==b&&void 0==c)return _.Wh(Error("Xf"))}else return _.Wh(Error("Yf"));
b=Szc(a.nj(),b,d,c);c=_.CI.I6;a=eM(a,c,"readwrite");if(!a)return _.Wh(Error("Zf"));a.objectStore(c).remove(b);return _.Vh(a.wait()).then(function(){})},gAc=function(a){if(!a.H)return _.Wh(Error("$f"));if(a.Gf())return _.Wh(Error(a.O));var b=Tzc(a.nj()),c=_.CI.I6;a=eM(a,c,"readwrite");if(!a)return _.Wh(Error("ag"));a.objectStore(c).remove(b);return _.Vh(a.wait()).then(function(){})};
dM.prototype.getMetadata=function(a){if(this.H){if(this.Gf())return _.Wh(Error(this.O));if(a&&0==a.length)return _.Wh(Error("bg"))}else return _.Wh(Error("cg"));var b=this.nj(),c=_.CI.T7,d=eM(this,c);if(!d)return _.Wh(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(_.Vh(c.get(Izc(b,e.global,e.key))));c=_.Xh(d)}else c=_.Xh([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 ync(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 hAc=function(a,b){if(a.H){if(a.Gf())return _.Wh(Error(a.O));if(0==b.length)return _.Wh(Error("eg"))}else return _.Wh(Error("fg"));var c=_.CI.T7,d=eM(a,c,"readwrite");if(!d)return _.Wh(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 _.Xh(d).then(function(){})},iAc=function(a,b){b=void 0===b?!1:b;if(a.H){if(a.Gf())return _.Wh(Error(a.O))}else return _.Wh(Error("ig"));var c=a.nj(),d=_.CI.T7;a=eM(a,d,"readwrite");
if(!a)return _.Wh(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 _.Xh(a).then(function(){})},jAc=function(a){if(!a.H)return _.Wh(Error("kg"));if(a.Gf())return _.Wh(Error(a.O));var b=Ozc(a.nj().Fu(),a.nj().clientId),c=_.CI.$U;a=eM(a,c);if(!a)return _.Wh(Error("lg"));c=a.objectStore(c);return _.Vh(c.get(b)).then(function(d){return Nzc(d)})},kAc=function(a,b){b=void 0===b?!1:b;if(!a.H)return _.Wh(Error("mg"));if(a.Gf())return _.Wh(Error(a.O));
var c=a.nj(),d=Ozc(c.Fu(),c.clientId);b=new Mzc(cM(c),b?Date.now():void 0);c=_.CI.$U;a=eM(a,c,"readwrite");if(!a)return _.Wh(Error("ng"));a.objectStore(c).put({versionKey:b.H,versionChangeTimestamp:b.O},d);return _.Vh(a.wait())};dM.prototype.Jl=function(a){var b=this;return this.H?this.Gf()?_.Wh(Error(this.O)):jAc(this).then(function(c){var d=cM(b.nj());if(c)if(a){if(!c.O&&d==c.H&&d!=cM(a))return kAc(b,!0);if(c.O&&d==cM(a))return kAc(b)}else{if(d!=c.H)return kAc(b)}else if(!a)return kAc(b)}):_.Wh(Error("og"))};
var lAc=function(a){if(!a.H)return _.Wh(Error("pg"));if(a.Gf())return _.Wh(Error(a.O));var b=a.nj(),c=Ozc(b.Fu(),b.clientId);return jAc(a).then(function(d){if(d){d=_.CI.$U;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.Gf()?_.Wh(Error(this.O)):jAc(this).then(function(c){var d=c&&c.H==cM(b.nj());return d&&!a?!1:(c&&d?lAc(b):_.Vh()).then(function(){return _.Xh([iAc(b,a),gAc(b),cAc(b)]).then(function(){return!0},function(){return!1})},function(){return!1})}):_.Wh(Error("qg"))};dM.prototype.close=function(){this.ha("Closing database")};dM.prototype.log=function(a){this.Yf.info("drive.ds.sync.storage.VersionedDb",a)};
var mAc=function(a){if(1>=a.nj())return!1;var b=a.H.objectStoreNames;return _.Ya(_.CI).every(function(c){return b&&b.contains(c)})},nAc=function(){var a=_.Yh();_.Sdc("GoogleDriveDs").eg(function(b){b?mAc(b)?a.resolve(b):(b.close(),_.Vh(Tuc()).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},oAc=function(a,b,c){var d=_.Yh();a?_.Qdc(a,[_.CI.i0],"readonly").objectStore(_.CI.i0).getAll().eg(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},pAc=function(a,b,c){var d=_.Yh();nAc().then(function(e){if(e){var f=_.CI.$U;_.Qdc(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=_.CI.i0,p=_.Qdc(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)});_.bi(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},qAc=function(a,b,c){var d=_.Yh(),e=new dM(_.Vh(a),b);Yzc(e,c).then(function(){return d.resolve(e)},d.reject);return d.promise},rAc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=[];a.forEach(function(h){var k=qAc(h,b,c);f.push(k.then(function(l){return l.clear(e)}).then(function(l){return l?
h:void 0}))});_.Xh(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)})},sAc=function(a,b,c){var d=Date.now()-12096E5,e=_.Yh();nAc().then(function(f){f?(_.Zh(e.promise,function(){f.close()}),oAc(f,a,b).then(function(h){return h.filter(function(k){return k.H<d})},function(){return[]}).then(function(h){rAc(h,c,f,e)})):e.resolve([])});return e.promise},tAc=function(a,b,c){var d=_.Yh();nAc().then(function(e){e?
(_.Zh(d.promise,function(){e.close()}),oAc(e,a,b).then(function(f){rAc(f,c,e,d,!0)})):d.resolve([])});return d.promise},uAc=function(a,b,c,d){if(a.length){var e=_.CI.I6,f=a.shift(),h=Rzc(f,3,0,1);try{_.Qdc(c,[e],"readonly").objectStore(e).get(h).then(function(k){(k=Uzc(k))&&(!k.o1||k.o1&&d.has(f.V))?b.resolve(f):uAc(a,b,c,d)},function(){return b.resolve(null)})}catch(k){b.resolve(null)}}else b.resolve(null)},vAc=function(a,b,c,d,e,f,h){var k=_.Yh();nAc().then(function(l){l?(_.Zh(k.promise,function(){l.close()}),
oAc(l,a,b).then(function(p){return p.filter(function(q){return(!h||h!=cM(q))&&q.W==c&&q.H>=e&&Qnc(d.filter(function(r){return!_.Qgc.has(r)}),q.eh(),b)})},function(){return[]}).then(function(p){p.length?(p.sort(function(q,r){return r.H-q.H}),uAc(p,k,l,new Set(f))):k.resolve(null)})):k.resolve(null)});return k.promise},wAc={key:"rid",global:!0},xAc={key:"ooi",global:!0},yAc={key:"rtds",global:!1},zAc={key:"dct",global:!1},AAc={key:"pc",global:!1},BAc=function(a){this.H=new _.Uh(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.Gf())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.Gf()?hAc(c,[new Jzc(a.key,b,a.global)]).then(function(){return!0},function(){return!1}):!1})};BAc.prototype.Du=function(){return this.get(wAc).then(function(a){return a?a:null})};
BAc.prototype.nz=function(a){return this.set(wAc,a)};var CAc=function(a){return a.get(xAc).then(function(b){return"boolean"===typeof b?b:null})};BAc.prototype.kz=function(a){return this.set(xAc,a)};var DAc=function(a){return a.get(AAc).then(function(b){return"boolean"===typeof b?b:null})},EAc=function(a){return a.get(yAc).then(function(b){return Array.isArray(b)?b:null})},FAc=function(a){return a.get(zAc).then(function(b){return"number"===typeof b?b:null})},GAc=function(){this.cj=[]};_.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.yta=function(a){return this.cj.splice(0,Math.min(a,1))};var HAc=function(a,b){this.cj=[];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.yta=function(a){for(var b=[],c=[],d={},e=0,f=0;f<this.cj.length&&b.length<a;f++){var h=this.cj[f],k=h.Zv.lx;k instanceof _.WI||k instanceof _.hJ||k instanceof _.yJ?k="app|"+k.Ih():k instanceof _.RI||k instanceof _.SI||k instanceof _.YI||k instanceof _.wI?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,_.Vo,1).getKey():
k.getKey(),k="pref|"+_.z(k,2)+"|"+_.Wo(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()&&_.Ndb.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++)_.va(this.cj,c[a]);return b};
var IAc=function(a,b,c,d,e,f,h,k,l){a=a.Tf();h=new _.Elc(new _.Dlc(k,h,d,_.Dj(a,32,1073741824),_.Dj(a,21,1E3)));k=new _.clc(_.Dj(a,59,2E3),_.Dj(a,60,2E4),_.Dj(a,61,6));c=new _.alc(l?l:c,l?void 0:e);e={};e[1]=_.Glc(b,d);e[2]=_.Hlc(b,a,k,c,d);e[3]=_.Ilc(b,a,k,c,d,"batch");l=_.Dj(a,10,50);f=new _.zK(d,b,[_.blc(c),new _.flc(l,_.Dj(a,11,100)),new _.yK(l),new _.wK(k,d)],[new HAc(a,f),new GAc,new _.xK],[new _.olc(a,k,c.Kj(),d)],"mutation");return e[4]=f,e[5]=_.Jlc(h,a,d),e[6]=_.Ilc(b,a,k,c,d,"find_by_ids_batch"),
e[7]=_.Ilc(b,a,k,c,d,"xd4_batch"),e[8]=_.Ilc(b,a,k,c,d,"xd4_batch_one",1),e},lpc=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.Ff=function(){return _.y(this,_.UB,2)};_.LAc=function(a,b){return _.G(a,2,b)};_.fM.prototype.$j=function(){return _.z(this,3)};
_.gM=function(a){_.J.call(this,a)};_.K(_.gM,_.J);_.gM.prototype.gZ=function(a){_.G(this,1,a)};_.gM.prototype.Iv=function(){return _.y(this,_.Hy,2)};_.gM.prototype.iP=function(a){_.G(this,2,a)};
_.MAc=function(a){_.J.call(this,a)};_.K(_.MAc,_.J);_.MAc.prototype.mi=function(){return _.y(this,Juc,2)};_.MAc.prototype.V=function(a){_.wj(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){_.wj(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.Ly=function(){return _.z(this,3)};QAc.prototype.lz=function(a){return _.x(this,3,a)};QAc.prototype.Ei=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.$j=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.se=function(){return _.y(this,_.Qf,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.$j=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.Ar=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.Ar=function(){return _.y(this,_.tL,2)};_.g.$j=function(){return _.z(this,3)};_.g.Ih=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)},$Ac=function(a,b){return _.G(a,2,b)};_.iM.prototype.Ly=function(){return _.z(this,3)};_.iM.prototype.lz=function(a){return _.x(this,3,a)};_.iM.prototype.Ei=function(){return _.z(this,4)};_.iM.prototype.setPosition=function(a){return _.x(this,4,a)};
var bBc=function(a){_.J.call(this,a,-1,aBc)};_.K(bBc,_.J);var aBc=[1];
var dBc=function(a){_.J.call(this,a,-1,cBc)};_.K(dBc,_.J);dBc.prototype.Cb=function(){return _.z(this,1)};dBc.prototype.Dc=function(a){return _.x(this,1,a)};dBc.prototype.$j=function(){return _.z(this,3)};var cBc=[2];
var fBc=function(a){_.J.call(this,a,-1,eBc)};_.K(fBc,_.J);fBc.prototype.Cb=function(){return _.z(this,1)};fBc.prototype.Dc=function(a){return _.x(this,1,a)};fBc.prototype.$j=function(){return _.z(this,3)};var eBc=[2];
var gBc=function(a){_.J.call(this,a)};_.K(gBc,_.J);
var hBc=function(a){_.J.call(this,a)};_.K(hBc,_.J);hBc.prototype.Iy=function(){return _.z(this,2)};
var iBc=function(a){_.J.call(this,a)};_.K(iBc,_.J);iBc.prototype.H=function(){return _.y(this,_.SC,1)};iBc.prototype.V=function(){return _.y(this,_.SC,2)};iBc.prototype.wa=function(){return _.y(this,_.SC,3)};
var jBc=function(a){_.J.call(this,a)};_.K(jBc,_.J);jBc.prototype.H=function(){return _.Q(this,1)};jBc.prototype.V=function(){return _.Q(this,3)};jBc.prototype.wa=function(){return _.Q(this,4)};
var kBc=function(a){_.J.call(this,a)};_.K(kBc,_.J);_.g=kBc.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};_.g.Dbb=function(){return _.z(this,2)};_.g.ue=function(){return _.z(this,4)};_.g.Cbb=function(){return _.y(this,jBc,5)};_.g.getCapabilities=function(){return _.y(this,lBc,6)};_.g.Ibb=function(){return _.z(this,7)};_.g.Z5a=function(a){return _.wj(this,13,jM,a)};_.g.Bbb=function(){return _.Gj(this,mBc,19,jM)};
_.g.rOa=function(a){return _.wj(this,19,jM,a)};_.g.k6a=function(a){return _.wj(this,12,jM,a)};_.g.l6a=function(a){return _.wj(this,11,jM,a)};_.g.tvb=function(){return _.Gj(this,nBc,10,jM)};_.g.Ebb=function(){return _.Gj(this,oBc,15,jM)};_.g.K6a=function(a){return _.wj(this,15,jM,a)};_.g.Fbb=function(){return _.Gj(this,pBc,14,jM)};_.g.L6a=function(a){return _.wj(this,14,jM,a)};_.g.X6a=function(a){return _.wj(this,9,jM,a)};_.g.Gbb=function(){return _.Gj(this,qBc,8,jM)};
_.g.sOa=function(a){return _.wj(this,8,jM,a)};_.g.Hbb=function(){return _.Gj(this,rBc,18,jM)};_.g.tOa=function(a){return _.wj(this,18,jM,a)};_.g.b7a=function(a){return _.wj(this,17,jM,a)};var lBc=function(a){_.J.call(this,a)};_.K(lBc,_.J);lBc.prototype.H=function(){return _.Q(this,1)};lBc.prototype.V=function(){return _.Q(this,2)};var sBc=function(a){_.J.call(this,a)};_.K(sBc,_.J);var pBc=function(a){_.J.call(this,a,-1,tBc)};_.K(pBc,_.J);pBc.prototype.H=function(){return _.yb(this,uBc,1)};
var vBc=function(a,b){_.sj(a,1,b)},uBc=function(a){_.J.call(this,a)};_.K(uBc,_.J);_.g=uBc.prototype;_.g.getLabel=function(){return _.z(this,1)};_.g.Qp=function(){return _.lj(this,1)};_.g.Wa=function(){return _.z(this,2)};_.g.Hb=function(a){return _.x(this,2,a)};_.g.Ci=function(){return _.vb(this,2)};_.g.Ng=function(){return _.lj(this,2)};_.g.zf=function(){return _.z(this,5)};_.g.ll=function(a){return _.x(this,5,a)};_.g.Kbb=function(){return _.lj(this,5)};
_.g.getCapabilities=function(){return _.y(this,wBc,3)};_.g.Jbb=function(){return _.y(this,xBc,4)};var wBc=function(a){_.J.call(this,a)};_.K(wBc,_.J);wBc.prototype.H=function(){return _.Q(this,1)};wBc.prototype.V=function(){return _.Q(this,2)};var xBc=function(a){_.J.call(this,a)};_.K(xBc,_.J);_.g=xBc.prototype;_.g.Obb=function(){return _.Q(this,1)};_.g.Pbb=function(){return _.Q(this,2)};_.g.Lbb=function(){return _.y(this,iBc,3)};_.g.Qbb=function(){return _.lj(this,3)};
_.g.Nbb=function(){return _.y(this,iBc,4)};_.g.Sbb=function(){return _.lj(this,4)};_.g.Mbb=function(){return _.z(this,5)};_.g.Rbb=function(){return _.lj(this,5)};var oBc=function(a){_.J.call(this,a)};_.K(oBc,_.J);oBc.prototype.H=function(){return _.z(this,1)};oBc.prototype.aX=function(){return _.lj(this,1)};oBc.prototype.getOptions=function(){return _.y(this,pBc,2)};var qBc=function(a){_.J.call(this,a)};_.K(qBc,_.J);qBc.prototype.V=function(){return _.z(this,1)};
qBc.prototype.H=function(){return _.z(this,2)};var yBc=function(a){_.J.call(this,a)};_.K(yBc,_.J);yBc.prototype.aX=function(){return _.lj(this,1)};yBc.prototype.getOptions=function(){return _.y(this,qBc,2)};var nBc=function(a){_.J.call(this,a)};_.K(nBc,_.J);nBc.prototype.V=function(){return _.z(this,1)};nBc.prototype.H=function(){return _.z(this,2)};var zBc=function(a){_.J.call(this,a)};_.K(zBc,_.J);var ABc=function(a){_.J.call(this,a)};_.K(ABc,_.J);ABc.prototype.aX=function(){return _.lj(this,1)};
ABc.prototype.getOptions=function(){return _.y(this,zBc,2)};var BBc=function(a){_.J.call(this,a)};_.K(BBc,_.J);_.g=BBc.prototype;_.g.sOa=function(a){return _.wj(this,3,kM,a)};_.g.X6a=function(a){return _.wj(this,4,kM,a)};_.g.l6a=function(a){return _.wj(this,5,kM,a)};_.g.k6a=function(a){return _.wj(this,6,kM,a)};_.g.Z5a=function(a){return _.wj(this,7,kM,a)};_.g.L6a=function(a){return _.wj(this,8,kM,a)};_.g.K6a=function(a){return _.wj(this,9,kM,a)};_.g.b7a=function(a){return _.wj(this,10,kM,a)};
_.g.tOa=function(a){return _.wj(this,11,kM,a)};_.g.rOa=function(a){return _.wj(this,12,kM,a)};var CBc=function(a){_.J.call(this,a)};_.K(CBc,_.J);var rBc=function(a){_.J.call(this,a)};_.K(rBc,_.J);rBc.prototype.H=function(){return _.z(this,1)};rBc.prototype.aX=function(){return _.lj(this,1)};rBc.prototype.getOptions=function(){return _.y(this,CBc,2)};var mBc=function(a){_.J.call(this,a)};_.K(mBc,_.J);mBc.prototype.H=function(){return _.z(this,4)};
var jM=[13,19,12,11,10,15,14,9,8,18,17,16],tBc=[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.Ly=function(){return _.z(this,3)};DBc.prototype.lz=function(a){return _.x(this,3,a)};DBc.prototype.Ei=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.Hm=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.zf=function(){return _.z(this,4)};
_.g.ll=function(a){return _.x(this,4,a)};_.g.Tbb=function(){return _.z(this,15)};_.g.Zj=function(){return _.yb(this,kBc,5)};var MBc=function(a,b){return _.sj(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,jBc,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 _.sj(a,2,b)};mM.prototype.$j=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.$j=function(){return _.z(this,3)};
_.nM=function(a){_.J.call(this,a,-1,$Bc)};_.K(_.nM,_.J);_.nM.prototype.sW=function(){return _.yb(this,_.UF,2)};_.nM.prototype.se=function(){return _.y(this,_.Qf,3)};var $Bc=[1,2];
_.hpc=function(a){_.J.call(this,a)};_.K(_.hpc,_.J);_.g=_.hpc.prototype;_.g.getItem=function(){return _.y(this,_.Ik,1)};_.g.setItem=function(a){return _.G(this,1,a)};_.g.getError=function(){return _.y(this,_.Fc,2)};_.g.Qe=function(a){return _.G(this,2,a)};_.g.jo=function(){return _.lj(this,2)};_.g.Gv=function(){return _.z(this,4)};
var bCc=function(a){_.J.call(this,a,-1,aCc)};_.K(bCc,_.J);var aCc=[2,4];
var dCc=function(a){_.J.call(this,a,-1,cCc)};_.K(dCc,_.J);dCc.prototype.H=function(){return _.z(this,2)};var eCc=function(a,b){_.x(a,2,b)},cCc=[1];
var fCc=function(a){_.J.call(this,a)};_.K(fCc,_.J);fCc.prototype.getType=function(){return _.z(this,1)};var gCc=function(a){var b=new fCc;return _.x(b,1,a)},hCc=function(a,b){return _.G(a,2,b)};fCc.prototype.Ly=function(){return _.z(this,3)};fCc.prototype.lz=function(a){return _.x(this,3,a)};fCc.prototype.Ei=function(){return _.z(this,4)};fCc.prototype.setPosition=function(a){return _.x(this,4,a)};
var jCc=function(a){_.J.call(this,a,-1,iCc)};_.K(jCc,_.J);jCc.prototype.Cb=function(){return _.z(this,1)};jCc.prototype.Dc=function(a){return _.x(this,1,a)};jCc.prototype.$j=function(){return _.z(this,3)};var iCc=[2];
var kCc=function(a){_.J.call(this,a)};_.K(kCc,_.J);kCc.prototype.Zc=function(){return _.y(this,Csc,1)};kCc.prototype.ao=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.$j=function(){return _.z(this,3)};
var lCc=function(a){_.J.call(this,a)};_.K(lCc,_.J);lCc.prototype.getKey=function(){return _.z(this,1)};lCc.prototype.yt=function(){return _.lj(this,1)};var nCc=function(a){_.J.call(this,a,-1,mCc)};_.K(nCc,_.J);var oCc=[2,4,6,10],pCc=[3,5,7,8,9],mCc=[1];
var qCc=function(a){_.J.call(this,a)};_.K(qCc,_.J);
_.sCc=function(a){_.J.call(this,a,-1,rCc)};_.K(_.sCc,_.J);var rCc=[1];
var UK=function(a){_.J.call(this,a,-1,tCc)},npc;_.K(UK,_.J);UK.prototype.ao=function(){return _.z(this,1)};var kpc=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)};npc=function(a,b){_.sj(a,5,b)};_.upc=function(a){_.J.call(this,a)};_.K(_.upc,_.J);_.upc.prototype.Yb=function(){return _.z(this,2)};_.spc=function(a){_.J.call(this,a,-1,uCc)};_.K(_.spc,_.J);
var rpc=function(a,b){return _.x(a,1,b)},qpc=function(a,b){return _.x(a,2,b)},tpc=function(a,b){_.sj(a,3,b)},tCc=[5],uCc=[3];
var vCc=function(a){_.J.call(this,a)};_.K(vCc,_.J);_.g=vCc.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.$j=function(){return _.z(this,2)};_.g.mOa=function(){return _.y(this,_.Vo,3)};_.g.getKey=function(){return _.y(this,_.Kc,4)};_.g.yt=function(){return _.lj(this,4)};
var pM=function(a){_.J.call(this,a)};_.K(pM,_.J);pM.prototype.getType=function(){return _.z(this,1)};var wCc=function(a){var b=new pM;return _.x(b,1,a)};pM.prototype.un=function(){return _.y(this,wL,2)};var xCc=function(a,b){return _.G(a,2,b)};pM.prototype.Ly=function(){return _.z(this,3)};pM.prototype.lz=function(a){return _.x(this,3,a)};pM.prototype.Ei=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 yCc=function(a){var b=new qM;return _.x(b,1,a)};qM.prototype.un=function(){return _.y(this,_.cI,2)};var zCc=function(a,b){return _.G(a,2,b)};qM.prototype.Ly=function(){return _.z(this,3)};qM.prototype.lz=function(a){return _.x(this,3,a)};qM.prototype.Ei=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.Mh=function(){return _.yb(this,_.XEa,2)};BCc.prototype.Pq=function(a,b){return _.yj(this,2,a,_.XEa,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.Iy=function(){return _.C(this,2)};var HCc=[1];
var JCc=function(a){_.ni.call(this,"Fb");this.dataType=a};_.K(JCc,_.ni);
var KCc=function(a,b){_.ni.call(this,"Gb");this.percentDone=a;this.cva=b};_.K(KCc,_.ni);
var LCc=function(){};_.g=LCc.prototype;_.g.VM=function(a,b){return FBc(EBc(1),a).setPosition(b)};_.g.TM=function(a,b){return FBc(EBc(2).setPosition(b),a)};_.g.fF=function(a,b,c){return FBc(EBc(3).lz(b).setPosition(c),a)};_.g.dR=function(a,b){return FBc(EBc(4),a).setPosition(b)};_.g.qN=function(a){return _.y(a,JL,2)};
var MCc=function(){_.Ky.call(this,new LCc,function(a){return a&&a.getName()})};_.K(MCc,_.Ky);
var rM=function(a,b,c,d){d=void 0===d?50:d;eL.call(this,a);var e=this;this.V=b;this.connectionState=c;this.limit=d;this.active=!1;this.status=6;this.wa=_.Hec(new _.bI,[1]);this.ha=this.H=!1;this.Oc=new _.of(this);this.Ja(this.Oc);_.ff(this,function(){e.Oc.removeAll()})};_.K(rM,eL);_.g=rM.prototype;_.g.Me=function(){return this.V.Me()||this.connectionState.Me()};
_.g.XP=function(){var a=this;this.Oc.listen(this.V,"rb",function(){return void a.iu()});this.Oc.listen(this.connectionState,[].concat(_.fc(Object.values(_.VB))),function(){return void a.iu()});this.V.Me()?this.Oc.hd(this.V,"rb",function(b){b.Me()||(a.sH(),a.dispatchEvent(new _.ni(_.Up)))}):this.connectionState.Me()?this.Oc.hd(this.connectionState,[_.VB.ZL,_.VB.aV],function(){a.sH();a.dispatchEvent(new _.ni(_.Up))}):(this.sH(),this.dispatchEvent(new _.ni(_.Up)))};_.g.sH=function(){};
_.g.Ju=function(a){var b=this;if(this.qk()){var c=this.limit;this.limit+=a||50;this.Yb()>c&&this.iu();this.V.Me()?this.Oc.hd(this.V,"rb",function(d){d.Me()||b.zP()}):this.zP()}};_.g.cM=function(){this.Me()&&!this.H?this.status=2:this.status=this.H?1:6};_.g.Cb=function(){return this.status};_.g.ys=function(){return this.wa};_.g.handleError=function(a){this.dispatchEvent(new _.Hc(a))};_.g.YW=function(){this.dispatchEvent(new _.ni(_.xFa))};_.g.qk=function(){return!this.H||this.ha};
_.g.refresh=function(){this.H=this.active=!1;this.status=6;this.Oc.removeAll();this.activate()};_.g.zP=function(){};
var NCc=function(a,b,c,d,e){rM.call(this,c,a,b,e.wi()||void 0);this.request=e;this.logName="drive.ds.sync.CategoryMetadataLiveList";this.W=[];this.data=[];this.changed=!1;this.O=new MCc;this.ka=d};_.K(NCc,rM);_.g=NCc.prototype;_.g.sH=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.ni(_.bd,this))};_.g.getData=function(){return Vwc(new KL,this.data).Dc(this.status)};
_.g.ts=function(){var a=_.Jy(this.O,this.W,this.data);this.W=this.data;var b=(new HBc).Dc(this.status);return _.sj(b,2,a)};_.g.zP=function(){this.ka(this.Oi(),this.limit)};_.g.iu=function(){if(this.active){var a=this.status;this.cM();if(this.changed||a!==this.status)this.changed=!1,OCc(this)}};_.g.Yb=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.ha=a.H,OCc(this)};var OCc=function(a){a.log("Livelist "+a.Oi()+" returning "+a.data.length+" for "+(a.request.qc()+". Status: ")+(_.fb(Qsc)[a.Cb()]+"."));a.dispatchEvent(new _.ni(_.bd,a))};NCc.prototype.MB=function(a){this.dispatchEvent(new _.Hc(new _.Gc("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.Yf=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 _.dI).Dc(this.Cb()).iB(this.items),this.qk());a=_.G(a,7,this.ka).bQ(this.suggestionSessionId).ri(this.Oe);return _.qj(a,18,this.ha)};
PCc.prototype.update=function(a){if(Xsc(this,a)&&(Ysc(this,a),this.ka=a.X6(),this.suggestionSessionId=a.Vf(),this.ha=a.gla(),Wsc(this),this.suggestionSessionId&&bwc(this.O)&&(a=this.Yf.H(106027)))){var b=_.y(_.hK(a),$rc,20);if(!b){b=new $rc;var c=_.hK(a);_.G(c,20,b)}_.x(b,1,this.suggestionSessionId);a.Dj()}};
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?_.Cj(d,f)||(d=zCc(yCc(4),f),c[e]=d):(d=zCc(yCc(2),d),c[e]=d)});_.Ta(b,function(d,e){a[e]||(d=zCc(yCc(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.XP=function(){_.ab(this.data)&&6===this.status||this.dispatchEvent(new _.ni(_.bd,this))};_.g.Cb=function(){return this.status};_.g.ys=function(){return new _.bI};_.g.getData=function(){this.H=this.data;var a=(new _.lK).Dc(this.status);_.Ta(this.data,function(b,c){a.DU().set(c,b||new _.cI)});return a};
_.g.ts=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.XT=function(){throw Error("tg");};_.g.jd=function(){return this.request};_.g.update=function(a){var b={};a.DU().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 _.ni(_.bd,this))};
_.g.MB=function(a){this.dispatchEvent(new _.Hc(new _.Gc("Error occurred running a Workspace find by id after "+a.retryCount+" retries.",a.error)))};_.g.YW=function(){this.dispatchEvent(new _.ni(_.xFa))};
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.qk();a=_.x(a,4,b);return Psc(a,this.ha).bQ(this.suggestionSessionId).ri(this.Oe)};TCc.prototype.update=function(a){Xsc(this,a)&&(Ysc(this,a),this.ha=_.yb(a,_.vk,6),this.suggestionSessionId=a.Vf(),Wsc(this))};
var UCc=function(){};_.g=UCc.prototype;_.g.VM=function(a,b){return xCc(wCc(1),a).setPosition(b)};_.g.TM=function(a,b){return xCc(wCc(2).setPosition(b),a)};_.g.fF=function(a,b,c){return xCc(wCc(3).lz(b).setPosition(c),a)};_.g.dR=function(a,b){return xCc(wCc(4),a).setPosition(b)};_.g.qN=function(a){return a.un()};
var VCc=function(){_.Ky.call(this,new UCc,function(a){return a&&a.vq()})};_.K(VCc,_.Ky);
var WCc=function(a,b,c){rM.call(this,a.Ce(),a.Kj(),a.yk(),b.wi()||10);this.request=b;this.logName="drive.ds.sync.SuggestedWorkspaceQueryLiveList";this.O=[];this.data=[];this.changed=!1;this.W=new VCc;this.suggestionSessionId=null;this.ka=c};_.K(WCc,rM);_.g=WCc.prototype;_.g.sH=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.ni(_.bd,this))};_.g.getData=function(){this.O=this.data;return rvc(qvc((new xL).Dc(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.ts=function(){var a=_.Jy(this.W,this.O,this.data);this.O=this.data;var b=(new DCc).Dc(this.status);return _.sj(b,2,a)};_.g.zP=function(){};_.g.iu=function(){var a=this.status;this.cM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ni(_.bd,this))};_.g.Yb=function(){return this.data.length};_.g.jd=function(){return this.request};
_.g.update=function(a){if(this.status!==a.Cb()||aL(this.W,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.ka()};_.g.MB=function(a){this.dispatchEvent(new _.Hc(new _.Gc("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=_.Hec(new _.bI,[1]);this.H=!0;this.limit=b.wi();_.ff(this,function(){e.O=[]})};_.K(XCc,eL);_.g=XCc.prototype;_.g.XP=function(){_.qa(this.items)&&6===this.status&&this.H||this.dispatchEvent(new _.ni(_.bd,this))};_.g.jd=function(){return this.request};_.g.Cb=function(){return this.status};_.g.ys=function(){return this.V};
_.g.qk=function(){return this.H};_.g.getData=function(){this.O=this.items;return Frc((new _.dI).Dc(this.status).iB(this.items),this.H)};_.g.ts=function(){var a=_.Jy(_.C7a(),this.O,this.items),b=(new Nsc).Dc(this.status);a=_.sj(b,2,a);this.O=this.items;return a};_.g.Ju=function(a){this.isActive()&&(this.limit+=a||20,this.ha.jG(this.Oi(),this.limit))};
_.g.update=function(a){if(this.status!==a.Cb()||aL(_.C7a(),this.items,a.Bd()))this.items=a.Bd(),this.status=a.Cb(),_.lI(this.W)&&(this.V=Anc(this.status,this.items)),this.H=a.Rl(),this.isActive()&&this.dispatchEvent(new _.ni(_.bd,this))};_.g.MB=function(a){this.dispatchEvent(new _.Hc(new _.Gc("Error occurred running a Team Drive query after "+a.retryCount+" retries.",a.error)))};_.g.YW=function(){this.dispatchEvent(new _.ni(_.xFa))};_.g.Su=function(){throw Error("ug");};_.g.refresh=function(){};
var YCc=function(a,b,c){eL.call(this,a.Ce());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=_.Hec(new _.bI,[1]);this.log("Creating TD find by ids live map: "+this.request.V().join(", "));_.ff(this,function(){d.O={}})};_.K(YCc,eL);_.g=YCc.prototype;_.g.XP=function(){(0<Object.values(this.H).length||6!==this.status)&&this.dispatchEvent(new _.ni(_.bd,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.ts=function(){var a=Xnc(this.O,this.H),b=new Vsc;b.Dc(this.status);b.map=a;this.O=this.H;return b};_.g.Cb=function(){return this.status};_.g.ys=function(){return this.V};_.g.XT=function(a){var b=this.request;this.request=a;this.W.LZ(this.Oi(),b,a)};
_.g.update=function(a){if(this.status!==a.Cb()||Ync(this.H,a.ot()))this.status=a.Cb(),this.H=a.ot(),_.lI(this.context.Xc)&&(this.V=Anc(this.status,Object.values(this.H))),this.isActive()&&this.dispatchEvent(new _.ni(_.bd,this))};_.g.MB=function(a){this.dispatchEvent(new _.Hc(new _.Gc("Error occurred running a team drive find-by-IDs query after "+a.retryCount+" retries.",a.error)))};_.g.YW=function(){this.dispatchEvent(new _.ni(_.xFa))};
var ZCc=function(){};_.g=ZCc.prototype;_.g.VM=function(a,b){return zCc(yCc(1),a).setPosition(b)};_.g.TM=function(a,b){return zCc(yCc(2).setPosition(b),a)};_.g.fF=function(a,b,c){return zCc(yCc(3).lz(b).setPosition(c),a)};_.g.dR=function(a,b){return zCc(yCc(4),a).setPosition(b)};_.g.qN=function(a){return a.un()};
var $Cc=function(){_.Ky.call(this,new ZCc,function(a){return a&&a.getId()})};_.K($Cc,_.Ky);
var aDc=function(a,b,c){rM.call(this,a.Ce(),a.Kj(),a.yk(),b.wi()||10);this.request=b;this.ka=c;this.logName="drive.ds.sync.WorkspaceQueryLiveList";this.O=[];this.data=[];this.changed=!1;this.W=new $Cc};_.K(aDc,rM);_.g=aDc.prototype;_.g.sH=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.ni(_.bd,this))};_.g.getData=function(){this.O=this.data;return exc((new ML).Dc(this.status),this.data.slice(0))};
_.g.ts=function(){var a=_.Jy(this.W,this.O,this.data);this.O=this.data;var b=(new GCc).Dc(this.status);return _.sj(b,2,a)};_.g.zP=function(){this.ka.jG(this.Oi(),this.limit)};_.g.iu=function(){var a=this.status;this.cM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ni(_.bd,this))};_.g.Yb=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.W,this.data,b.Zk()))this.H=!0,this.status=b.Cb(),this.data=b.Zk(),this.ha=a.H,this.dispatchEvent(new _.ni(_.bd,this))};_.g.MB=function(a){this.dispatchEvent(new _.Hc(new _.Gc("Error occurred running a Workspace query after "+a.retryCount+" retries.",a.error)))};
var bDc=function(a,b){this.context=a;this.ha=b;this.H={};this.ka={};this.ma={};this.V=null;this.W=a.Df;this.O=this.context.nga;this.ta=this.context.a7};_.g=bDc.prototype;_.g.dya=function(a){var b=this,c=new PCc(this.context.Am,this.context.NQ,this.context.Ce(),this.context.Xc,function(d,e){b.jG(d,e)},a,this.context.mk());this.Zh(c);_.ff(c,function(){b.fk(c)});return c};
_.g.gya=function(a){var b=this,c=new TCc(this.context.Am,this.context.NQ,this.context.Ce(),function(d,e){b.jG(d,e)},a,this.context.Xc);this.Zh(c);_.ff(c,function(){b.fk(c)});return c};_.g.aya=function(a){var b=this,c=new btc(this.context.Xc,this.context.Am,this.context.Ce(),this.context.I_,this.LZ.bind(this),a);this.Zh(c);_.ff(c,function(){b.fk(c)});return c};_.g.jya=function(a){var b=this,c=new XCc(this.context.Ce(),a,this,this.context.Xc);this.Zh(c);_.ff(c,function(){b.fk(c)});return c};
_.g.kya=function(a){var b=this,c=new YCc(this.context,this,a);this.Zh(c);_.ff(c,function(){b.fk(c)});return c};_.g.nya=function(a){var b=this,c=new aDc(this.context,a,this);this.Zh(c);_.ff(c,function(){b.fk(c)});return c};_.g.hya=function(a){var b=this,c=new WCc(this.context,a,function(){if(a instanceof _.bA){var d=cDc(b.context);Cyc(d,d.getKey(a)).refresh()}});this.Zh(c);_.ff(c,function(){b.fk(c)});return c};
_.g.oya=function(a){var b=this,c=new SCc(this.context.Ce(),a);this.Zh(c);_.ff(c,function(){b.fk(c)});return c};_.g.Xxa=function(a){var b=this,c=new NCc(this.context.Kj(),this.context.yk(),this.context.Ce(),function(d,e){b.jG(d,e)},a);this.Zh(c);_.ff(c,function(){b.fk(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 _.dA)a=this.O.Zh(b,a.jd());else if(a.jd()instanceof _.bG)a=Ayc(this.O,b,a.jd());else if(a.jd()instanceof _.bA)a=cDc(this.context).Zh(b,a.jd());else if(a.jd()instanceof _.iG)a=this.ta.Zh(b,a.jd());else{var c=a.jd(),d=gL(this.context.Am,c,2);this.log("Registering LiveList "+a.Oi()+" "+d);a=this.W.Zh(b,c)}"boolean"===typeof a&&Jwc(this.ha,b,a)};
_.g.fk=function(a){if(a.jd()instanceof _.dA)this.O.fk(a.Oi(),a.jd());else if(a.jd()instanceof _.bG)Byc(this.O,a.Oi(),a.jd());else if(a.jd()instanceof _.bA)cDc(this.context).fk(a.Oi(),a.jd());else if(a.jd()instanceof _.iG)this.ta.fk(a.Oi(),a.jd());else{var b=a.jd(),c=gL(this.context.Am,b,2);this.log("Unregistering LiveList "+a.Oi()+" "+c);this.W.fk(a.Oi(),b)}HL(this.ha,a.Oi(),4);delete this.H[a.Oi()]};_.g.LZ=function(a,b,c){this.W.fk(a,b);this.W.Zh(a,c)};
_.g.jG=function(a,b){var c=dDc(this,a).jd();c.Gi(b);c instanceof _.dA?this.O.Zh(a,c):c instanceof _.bG?Ayc(this.O,a,c):c instanceof _.iG?this.ta.Zh(a,c):this.W.Zh(a,c)};_.g.SO=function(a,b){var c=this.H[a]&&this.H[a].jd();c&&(c instanceof _.Df?Gnc(c.H(),b.Bd().filter(function(d){return!zL(d)})):c instanceof _.WF&&Gnc(c.H(),Object.values(b.ot()).filter(function(d){return d&&!zL(d)})));this.ka[a]=b;this.V||(this.V=_.Ai(this.V9,50,this))};
_.g.CY=function(a,b){this.ma[a]=b;this.V||(this.V=_.Ai(this.V9,50,this))};_.g.JA=function(a){(a=this.H[a])&&a.YW()};_.g.V9=function(){_.Bi(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.MB(c)};
_.g.wla=function(a){return dDc(this,a).jd()};var dDc=function(a,b){if(!a.H[b])throw Error("vg`"+b);return a.H[b]};bDc.prototype.log=function(a,b){this.context.Ce().log("drive.ds.sync.cache.LocalLiveRequestManager",a,void 0===b?"info":b)};
var eDc=function(){},fDc=function(a){this.H=a},ipc=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.EA=f;this.numFetchedFiles=h;this.O=k};
var sM=function(a,b){_.yi.call(this);this.O=a;this.request=b;this.ee=_.Yh();this.complete=!1;this.H=""};_.K(sM,_.yi);sM.prototype.start=function(){var a=this;this.O.then(function(b){return b.Pe(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));gDc(this)};
var gDc=function(a){_.n.setTimeout(function(){a.O.then(function(b){return b.Pe(new _.Bhc(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 bCc;c=_.qj(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.EA);c=_.x(c,8,b.numFetchedFiles);b=_.sj(c,4,b.O);a.ee.resolve(b)}else b=_.tI(_.Fo(_.Eo(new _.Fc,"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)),gDc(a)}).then(null,function(b){a.handleError(b)})},5E3)};sM.prototype.cancel=function(){var a=this;this.O.then(function(b){return b.Pe(new _.Ahc(a.H))}).then(this.V.bind(this)).then(null,this.handleError.bind(this))};sM.prototype.V=function(){if(!this.complete){var a=new bCc;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 hDc=function(){_.ni.call(this,"VbxEwf")};_.K(hDc,_.ni);
var iDc=function(a,b){this.context=a;this.H=null;this.oc=b||null};_.g=iDc.prototype;_.g.Ka=function(){return _.y(this.context.Xc,_.HI,58)};_.g.getContext=function(){return this.context};_.g.Xz=function(){return this.context.kB.Xz(this.H)};_.g.Ce=function(){return this.context.Ce()};_.g.iN=function(a){return _.ei(this.context.Df.Zl.H(a))};_.g.WR=function(){return _.ei(this.context.kB.WR())};
_.g.Q5=function(a,b,c){var d=new _.$h;if(_.Gj(a,_.mI,3,_.nI)||_.Gj(a,_.EJ,4,_.nI)||_.Gj(a,_.tK,5,_.nI)||_.Gj(a,_.BJ,6,_.nI)||_.Gj(a,_.aJ,7,_.nI)||_.Gj(a,_.UI,8,_.nI)||_.Gj(a,_.YI,9,_.nI)||_.Gj(a,_.wI,10,_.nI)){var e=Gwc(a);this.context.Km().then(function(f){return f.Pe(e,{E8a:b,F8a:c})}).then(function(f){var h=[],k="";if(f instanceof _.uK){h=f.Zc().Bd();var l=_.z(f,2);k=f.ao()}else if(f instanceof _.GJ)f.getItem()&&h.push(f.getItem()),l=f.pN();else throw Error("xg");d.callback({items:h,pja:l,pageToken:k})},
function(f){return void d.Gd(f)});return d}throw Error("wg");};_.g.Oqa=function(){var a=this.context.Xc,b=a.Tf();a="email:"+_.eI(a).getEmail().replace(/@.*$/,"");_.x(b,13,a)};_.g.Lia=function(){this.context.Ys.aT();var a=this.context.Xc;tAc(_.UJ(_.eI(a)),_.WJ(a),this.context.Ce()).then(null,function(){})};_.g.pka=function(){return _.Bgc[_.oj(this.context.Xc.Tf(),8,0)]};_.g.bea=function(){this.context.vG.H=new izc(_.oh().substring(0,8))};
_.g.HT=function(){var a=this.context.vG.IN(),b=null;a&&(b=kzc(this.context.vG),b={traceId:a,spanRecs:b});a=this.context.vG;a.H=null;a.tZ=[];return _.ei(b)};_.g.IN=function(){return _.ei(this.context.vG.IN())};
_.g.getState=function(a){var b=this.context.Pj,c=b.H.bind(b);b={};b.b=this.context.Xc.Li();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.Df.Zl.getSize();c=this.context.Df.Tt;var d=c.H;d&&(b.cs_sutd=d.W8,b.cs_ss=d.getSize());b.cs_ch=Cxc(c).length;b.cs_td=c.OW().length;if(c=this.context.b7)b.t_cps=c.HYa().getStats().join(",");b.t_id=jDc(this.context);
var e=[];kDc(this.context.VR()).forEach(function(f,h){e.push(h+":"+f.join(";"))});b.t_ct=e.join(",");b.n_a=this.context.zz?this.context.yk().isConnected():this.context.WI.RB();b.n_o=this.context.zz?this.context.yk().Me():this.context.Kj().Me();b.n_csm=!!this.context.zz;a&&(b.csw_cc=_.Xa(a.channels),b.csw_ac=a.O,b.csw_mcc=a.H);return _.ei(JSON.stringify(b))};_.g.iqa=function(){this.oc&&(this.oc.dispatchEvent(new hDc),this.oc.Zu())};
_.g.Jl=function(a){var b=this.context.zz;b&&a!==b.V&&(b.V=a,b.reset(),a?b.state.update(3):_.zkc(b))};
var nDc=function(a,b){this.context=a;this.Dg=b;this.H=_.lhc(_.bK(this.Dg),lDc);this.O=_.lhc(_.bK(this.Dg),mDc)};
nDc.prototype.fl=function(a){var b=this,c=this.context.GQ.Ff().Ff(),d=(c=c?c.getUser():null)?c.getId():null,e={};a.forEach(function(h){_.phc(h);var k=h.getId(),l=b.context.Du();_.sic(h,3);_.zI(h,5);var p=aoc(h,!0);h.getCapabilities()||_.QJ(h,new _.Bk);_.Q(p,2)&&((p=h.wk())&&p.length?_.x(h,46,p[0]):(_.PJ(h,[l]),_.x(h,46,l)),_.x(h,12,h.Oq()),l=new _.vk,l.Nb(d),_.x(l,6,1),_.dic(l,!0),_.oic(h,l),_.nic(h,[l]),_.zVb(h,1));e[k]=h});a=Object.keys(e);c=this.context.Df;var f=Ivc(c.Zl,a);_.Ta(f,function(h,k){NK(h.getItem(),
e[k],b.H);(b.context.Kj().Me()||b.context.yk().Me()||3===h.getItem().Lv())&&NK(h.getItem(),e[k],b.O);_.bb(e,k)});_.Ta(e,function(h){_.Ek(h.Wm())&&(f[h.getId()]=new yL(h))});oDc(c,Object.values(f))};
var pDc=function(a,b){var c=[];b.forEach(function(d){c.push(d.getItem())});a.fl(c)},qDc=function(a){a=a.context.Df;var b=new _.Df;b.Jl(!0);b=Kvc(a.Zl,b);for(var c=[],d=[],e=0;e<b.length;e++){var f=b[e].getItem();if(3===f.Lv()){var h=new _.pI;_.qI(h,f.getId());_.BI(h);d.push(h)}else h=new _.yoa,_.JK(h,!1),_.x(h,2,!1),_.G(f,81,h),c.push(b[e])}oDc(a,c);a.Fo(d)},lDc=[50],mDc=[12,11,10,67,68];
var rDc=function(a){this.context=a;this.H=null;this.V=!1;this.O=new nDc(a,a.Dg)};_.g=rDc.prototype;_.g.dZ=function(a){this.H=a;this.V=!1;if(a){if(this.H){a=this.Vbb.bind(this);var b=this.Ubb.bind(this);this.log("Querying all offline items.");this.H.fW().eg(a,b);this.V||(this.H.s0((0,_.L)(this.Hzb,this)),this.V=!0)}}else qDc(this.O)};_.g.Vbb=function(a){this.log("Processing all offline item(s): "+a.length);this.O.fl(a);OL(this.context.Pj,"GZTDpc")};_.g.Ubb=function(){this.log("Error fetching offline items.")};
_.g.Hzb=function(a){this.log("Handling offline change(s): "+a.length);pDc(this.O,a)};_.g.log=function(a){this.context.Ce().info("drive.ds.sync.offline.LocalDataService",a)};
var tM=function(a){_.yi.call(this);this.context=a;this.Ba="drive.ds.sync.BaseItemService";this.Oc=new _.of(this);this.ma=null;this.Ua=this.wa=!1;var b=new rDc(a);this.context.ha=b;this.Ga=new iDc(a,this);Uoc(this.Ga);_.y(a.Xc,_.HI,58);this.Ja(this.Oc);this.O=this.context.Pj;this.W=a.Bta;this.V=new bDc(a,this.W);a=this.context;b=this.V;a.W=b;a.O.resolve(b);this.bUa()};_.K(tM,_.yi);_.g=tM.prototype;_.g.bUa=function(){};
_.g.initialize=function(){var a=this;if(!this.ma){this.ma=_.Yh();var b=this.context.mk().H(106E3);this.ma.promise.then(function(){b&&b.Dj()},function(){_.rK(a.context.mk(),181008852)});this.context.Ce().info(this.Ba,"Initializing "+(_.XJ(this.context.Xc)?"(coldstart) ":"")+" with client build: "+this.context.Xc.Li());this.Oc.listen(this.context,_.ad,this.mxb);this.Oc.listen(this.context.WI,["fb","gb"],function(c){return void a.dispatchEvent(c)});this.Oc.listen(this.context.yk(),[].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.jZa=function(){this.context.Ce().info(this.Ba,"Ready to process requests.");this.wa||(this.wa=!0,this.ma.resolve())};_.g.mxb=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.I5=function(){throw uM("teamDriveQuery");};_.g.Eqa=function(){throw uM("teamDriveFindByIds");};
_.g.Fqa=function(){throw uM("teamDriveMovePreflight");};_.g.mHa=function(){throw uM("peoplePredictQuery");};_.g.query=function(a){$vc(this.context.Am,a,msc(this.context.Dg));this.NF();var b=a.clone();b=this.V.dya(b);this.Ua||(a=a.se(),a&&121===_.z(a,1)||(this.Ua=!0,this.Oc.listen(b,_.bd,this.nOa)));return b};_.g.nOa=function(a){a=a.currentTarget;if(1===a.Cb()){var b=this.O.H("W6J7De");this.Ga.H=b;this.Oc.Tc(a,_.bd,this.nOa)}};_.g.kt=function(a){this.NF();dtc(a);return this.V.aya(a.clone())};
_.g.Zva=function(){throw uM("activityQuery");};_.g.Pwa=function(){throw uM("backupsQuery");};_.g.bIa=function(){throw uM("refreshBackups");};_.g.gW=function(){throw uM("getAndroidBackupItems");};_.g.k9=function(){throw uM("deleteBackup");};_.g.pHa=function(){throw uM("permissionQuery");};_.g.Taa=function(){throw uM("insertPermission");};_.g.l9=function(){throw uM("deletePermission");};_.g.ad=function(){throw uM("mutate");};_.g.sO=function(){throw uM("mutateWorkspace");};
_.g.XC=function(){throw uM("bulkMutate");};_.g.$xa=function(){throw uM("createFileUploader");};_.g.uUa=function(a){return new sM(this.context.Km(),a)};_.g.ms=function(a){if(3===a.getType())return _.fi(this.context.Km().then(function(b){return b.Pe(a)}).then(null,KK));throw uM("getApps with type "+a.getType());};_.g.Ar=function(){throw uM("getApp");};_.g.Vaa=function(){throw uM("installApp");};_.g.j9=function(){throw uM("deleteApp");};_.g.UT=function(){throw uM("updateApp");};
_.g.ON=function(){throw uM("getUserAccount");};_.g.qH=function(){throw uM("getUserPrefs");};_.g.QS=function(){throw uM("mutateUserPref");};_.g.Cu=function(){throw uM("getRevisions");};_.g.SCa=function(){return!1};_.g.Jl=function(a){this.context.zz?a?_.Akc(this.context.zz,!0):this.context.yk().Me()&&this.context.zz.KM(!0).then(null,function(){}):this.context.Kj().Jl(a)};_.g.kz=function(){throw uM("setOfflineOptIn");};_.g.dZ=function(){throw uM("setLocalItemService");};_.g.NF=function(){};
_.g.TS=function(){this.context.TS();this.context.mk().O(106006)};_.g.x$=function(){return this.Ga};_.g.aZ=function(){};_.g.RB=function(){return this.context.WI.RB()};_.g.UQ=function(){return _.R(this.context.Xc.Tf(),52,!1)?_.Vh(ywc(new xwc,0)):this.context.WI.UQ()};_.g.isConnected=function(){return 1===this.context.yk().get()};_.g.D8=function(){var a=this.context.zz;return a?a.KM():_.Vh(_.pkc(0))};_.g.sync=function(){throw uM("sync");};_.g.Zu=function(){return this.context.Zu()};
_.g.jca=function(){throw uM("offlineDataLoaded");};_.g.Joa=function(a){return this.context.Km().then(function(b){return b.Pe(a)}).then(function(b){return b})};_.g.pxa=function(){throw uM("categoryMetadataQuery");};_.g.C8=function(){throw uM("changeCategoryLinks");};_.g.CP=function(){throw uM("updateCategoryMetadata");};_.g.NHa=function(){throw uM("publishedCategoriesQuery");};_.g.OHa=function(){throw uM("publishedCategoryQuery");};_.g.DMa=function(){throw uM("workspaceFindByIdsRequest");};
_.g.Ara=function(){throw uM("workspaceQueryRequest");};_.g.YKa=function(){throw uM("suggestedWorkspaceItemQueryRequest");};_.g.ZKa=function(){throw uM("suggestedWorkspaceQueryRequest");};_.g.q0=function(){throw uM("addCacheHint");};_.g.Q0=function(){throw uM("createUserFeedback");};_.g.Fo=function(){throw uM("handleChanges");};var uM=function(a){return new _.Gc(a+" is unsupported",_.MI(3))};
var Cpc=function(a){tM.call(this,a);this.Ba="drive.ds.sync.AnonymousItemService";a.nz("")};_.K(Cpc,tM);Cpc.prototype.$a=function(){NL(this.O,["NSockf"],this.jZa.bind(this))};
var sDc=new Set([1,2,4,5,6]),tDc=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.Oe=0};tDc.prototype.Ff=function(){var a=new _.fM;a.Dc(this.status);this.H&&_.LAc(a,uDc(this));return a};
var vDc=function(a,b,c,d){d=void 0===d?!1:d;var e=sDc.has(c);if(1===a.status&&!e)return!1;a.Oe=c;var f=a.status;c=!a.H;if(_.lI(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=!_.Cj(a.H,b)||(_.lI(a.O)?a.status!==f:6===a.status&&e);a.H=b.clone();_.lI(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};tDc.prototype.We=function(){return this.Oe};
var uDc=function(a){return a.H?a.H.clone():null};
var wDc=function(a){_.yi.call(this);this.W=a;this.Oe=0};_.K(wDc,_.yi);var xDc=function(a){a=a.clone();var b=function(c){return c.toLowerCase()};Zuc(a,_.se(a,4).map(b));$uc(a,_.se(a,5).map(b));return a};_.g=wDc.prototype;_.g.ms=function(){};_.g.put=function(){};_.g.remove=function(){};_.g.OQ=function(){};_.g.xH=function(){return 0!==this.Oe};_.g.We=function(){return this.Oe};
var yDc=new Set([1,2,4,5,6]),zDc=function(a,b,c){wDc.call(this,b);this.V=a;this.O=c;this.apps={};this.H=[];this.status=6;this.vp=!1};_.K(zDc,wDc);zDc.prototype.ms=function(){var a=new IL;if(!_.ab(this.apps)){_.qj(a,4,this.H);var b=[];_.Ta(this.apps,function(c){b.push(c.clone())});_.sj(a,2,b)}a.Dc(this.status);return a};zDc.prototype.put=function(a){this.apps[a.getId()]=xDc(a);this.O.update(1);this.dispatchEvent(new _.ni("Hb",this))};zDc.prototype.remove=function(a){_.bb(this.apps,a)&&this.O.update(1)};
zDc.prototype.OQ=function(a,b,c){c=void 0===c?!1:c;var d=!yDc.has(b);1===this.status&&d||(this.Oe=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=_.se(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);_.dhc(a.apps);b=_.yb(b,_.tL,2);d||(d=b.length!==_.Xa(h));b.forEach(function(k){var l=xDc(k);a.apps[k.getId()]=l;d||(k=h[k.getId()],d=!k||!_.Cj(l,k))});a.V.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache",(c?"Fresh":"Stale")+" apps loaded: "+b.length);d&&a.dispatchEvent(new _.ni("Hb",a))};
var vM=function(a){_.N.call(this);this.context=a;this.Wy=new Set;this.Ep=6;this.LDa=!0;this.Oe=0;this.Oc=new _.of(this);this.Ja(this.Oc)};_.K(vM,_.N);_.g=vM.prototype;_.g.Zh=function(a){this.nTa(a);this.Wy.add(a);this.resize(!0);this.SO(a)};_.g.nTa=function(){};_.g.fk=function(a){this.Wy.delete(a);0!=this.Wy.size||this.A0a()?this.resize(!1):this.dispose()};_.g.We=function(){return this.Oe};_.g.ri=function(a){this.Oe=a};_.g.tT=function(a){this.LDa=!1;this.Ep=a};_.g.nW=function(){return this.Ep};
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.Df,d,b);d.forEach(function(k){hzc(a.context.uOa,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 _.Bk)})};vM.prototype.jd=function(){};vM.prototype.fl=function(a,b){var c=this,d=!1;a.forEach(function(e){e=PL(e);d=c.qw(e,!0)||d});b||(1!=this.nW()&&(d=!0),this.tT(1));d&&this.DY()};var DDc=function(a,b){var c=!1;b.forEach(function(d){c=a.qw(d)||c});c&&a.DY();return c};_.g=vM.prototype;_.g.update=function(a){return DDc(this,[a])};_.g.DY=function(){var a=this;this.mTa();this.Wy.forEach(function(b){a.SO(b)})};_.g.mTa=function(){};
_.g.SO=function(a){var b=EDc(this.context).wla(a);this.N_a(b)||(b=this.nk(b),EDc(this.context).SO(a,b))};_.g.CY=function(a){var b=this;this.tT(3);this.Wy.forEach(function(c){EDc(b.context).CY(c,a)})};_.g.JA=function(){var a=this;this.Wy.forEach(function(b){EDc(a.context).JA(b)});this.ri(0==this.We()?1:6)};_.g.A0a=function(){return!1};_.g.N_a=function(){return!1};
var FDc=function(a){_.ni.call(this,"xb");this.id=a};_.K(FDc,_.ni);
var GDc=function(a,b,c,d){d=void 0===d?!1:d;_.yi.call(this);this.request=a;this.context=b;this.tMa=d;this.ee=null;this.items={};this.W=[];this.V=[];this.H=null;this.originalRequest=c||a;this.O=new Set};_.K(GDc,_.yi);
GDc.prototype.mh=function(){var a=this;if(this.ee)return this.ee.promise;this.ee=_.Yh();for(var b={},c=_.m(this.request.V().entries()),d=c.next();!d.done;b={hsa:b.hsa,hfa:b.hfa,Sra:b.Sra},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.Sra=e;b.hsa=zsc(ysc(d),this.request);b.hfa=void 0;this.tMa&&(b.hfa={tMa:!0});this.context.Km().then(function(f){return function(h){return h.Pe(f.hsa,f.hfa)}}(b)).then(function(f){return void HDc(a,f)},function(f){return function(h){var k=f.Sra;h=
_.wd(h);5===h.tg.Gv()||4===h.tg.Yj()?(a.context.Ce().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){_.zI(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.Df.fl([],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.mga.R9(b);if(_.KI(_.eI(a.context.Xc))){var c=a.context.Df.Zl;_.Ma(b,function(d){var e=c.H(d.getId());e&&_.PJ(d,e.wk())})}b.forEach(function(d){a.O.add(d.getId());a.items[d.getId()]=d});a.context.Df.fl(b,1,a.originalRequest,!0)},KDc=function(a){var b=a.V;a.V=[];b.forEach(function(c){var d=_.BI(_.qI(new _.pI,c));a.context.Df.Fo([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,_.Dj(this.context.Xc.Tf(),1,1));this.context.Df.MB(this.request,b);this.dispatchEvent(b);this.ee.reject(a)};
var LDc=function(a,b,c,d){vM.call(this,a);this.Dg=b;this.request=c;this.Dd={};this.H=null;this.O=_.IJ(a.Xc)||new _.Bic;d&&this.fl(d,!0)};_.K(LDc,vM);
LDc.prototype.refresh=function(){var a=this;if(this.H)return this.H.promise;this.Ep=6;if(_.R(this.request,5,!1))return this.tT(1),_.Vh();var b=this.LDa?!Jnc(_.bK(this.Dg),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.Wm(),k=!(l&&_.Q(l,2));k&&c.push(h)}});if(0===c.length)return this.fl([],!1),_.Vh();this.H=_.Yh();this.H.promise.then(function(){a.H=null},function(){a.H=null});var e=
this.request.clone();_.YF(e,c);var f=new GDc(e,this.context,this.request);this.context.Kj().Me()?(this.Oc.listen(this.context.Kj(),"rb",function(h){h.Me()||(a.Oc.Tc(a.context.Kj(),"rb"),MDc(a,f,a.H))}),this.Ep=0<Object.values(this.Dd).length?1:2):(this.context.yk().Me()&&(this.Ep=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.JA();b.mh().then(function(){c.resolve()},c.reject)};_.g=LDc.prototype;
_.g.Hia=function(a){var b=this;if(this.context.Am.equals(a,this.request,!0)){if(Jnc(_.bK(this.Dg),a.H()))return!0;if(Jnc(this.request.H(),a.H(),_.bK(this.Dg))){if(this.LDa)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.nk=function(a){var b=new _.jK;_.lI(this.context.Xc)?b.Dc(Wnc(Object.values(this.Dd))?6:this.Ep):b.Dc(this.Ep);b.ri(this.We());Tsc(b,_.Va(this.Dd,function(c){return c?c.getItem():null}));CDc(this,a.H(),b.ot());return b};_.g.resize=function(){};_.g.jd=function(){return this.request};_.g.getSize=function(){return Object.values(this.Dd).length};
_.g.qw=function(a){var b=this.Ds(a.O),c=this.Ds(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.Ds=function(a){return!!a&&_.pa(this.request.V(),a.getId())};
var NDc=function(a,b){_.ni.call(this,a);this.changes=b};_.K(NDc,_.ni);
var ODc=function(a){var b=new pyc;if(a.Vf()){var c=a.Vf();b.H=!1;b.suggestionSessionId=c}a instanceof _.kK&&_.yb(a,_.vk,6).length?(a=_.yb(a,_.vk,6),b.H=!1,b.V=a):a instanceof _.dI&&(a.X6()||a.vta()||a.gla().length)&&(c=a.X6(),b.H=!1,b.W=c,c=a.vta()||!1,b.H=!1,b.incompleteSearch=c,a=a.gla(),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;_.yi.call(this);this.Ua=a;this.Ba=b;this.Qa=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.Ga=new Set;this.ma=h||!1;this.La=k||!1;this.Ia=this.JHa(f);this.ha=new pyc};_.K(wM,_.yi);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):_.ei()};wM.prototype.Yb=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 _.$h;d.addCallback(function(h){SDc(a,c,h)});var e=_.onc(_.pnc(new _.mI,a.Ia),c),f=_.mnc(new _.Qfc,b);a.La&&_.x(f,10,!0);_.nnc(e,f);a.wa=!0;a.O=!0;a.Ba.then(function(h){return h.Pe(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.ao()||"";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=_.wd(c);this.O=!1;if(5===c.tg.Gv())a.callback([]);else{if(10===c.tg.Gv()&&(_.mnc(b,Math.ceil(_.Dj(b,1,1E3)/2-2E-15)),1<_.Dj(b,1,1E3))){var e=_.nnc(_.onc(_.pnc(new _.mI,this.Ia),this.nextPageToken),b);this.O=!0;this.Ba.then(function(h){return h.Pe(e)}).then(function(h){TDc(d,a,h)},function(h){d.handleError(a,b,h)});return}var f=new XL(c.tg,_.Dj(this.Qa.Tf(),1,1));this.oOa(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: ")+(_.Ijc(a.request)+" paginationToken: ")+b;b=_.Go(_.Eo(_.tI(_.sI(new _.Fc,2),9),f));a.$a(new _.Hc(new _.Gc(f,b)));break}d.add(f.getId())}f=c.filter(function(h){var k=a.Ga.has(h.getId());a.Ga.add(h.getId());return!k});a.ka+=c.length-f.length;c=_.m(f);for(b=c.next();!b.done;b=c.next())_.zI(b.value,a.ma?
2:1);c=[];b=_.m(a.U3a(f));for(f=b.next();!f.done;f=b.next())f=f.value,a.V.push(f.getId()),f=_.qI(new _.pI,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.U3a=function(a){return a};_.g.oOa=function(){};_.g.jd=function(){return this.request};_.g.JHa=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.Ce(),a.Km(),a.Xc,a.Df.Zl,a.dispatchEvent,b,void 0,c,d);this.context=a};_.K(UDc,wM);UDc.prototype.U3a=function(a){a=this.context.mga.R9(a);this.context.Df.fl(a,1,this.request,PDc(this));return a};UDc.prototype.oOa=function(a){this.context.Df.MB(this.request,a)};UDc.prototype.JHa=function(a){var b=a=wM.prototype.JHa.call(this,a),c=_.ol(b);0===_.se(b,33).length&&1===c.length&&(c=this.ta.H(c[0].Wa()))&&(c=c.uc())&&(_.ql(b,[c]),_.rl(b,2));VDc(this,a);return a};
var VDc=function(a,b){if(_.ol(b).some(function(d){return(d=a.ta.H(d.Wa()))&&_.Q(d,108)})){var c=b.se();c||(c=new _.Qf,_.pl(b,c));_.Rf(c,937)}};
var WDc=function(a,b,c,d){this.context=a;this.Dg=b;this.V=d;this.Loa=0;this.O=c},$Dc=function(a,b){if(b){a.log("Processing potential rejoin for TD: "+b);var c=_.rl(_.ml(_.ql(new _.Df,[b]),_.bK(a.Dg)),1),d=_.Rf(new _.Qf,306);_.pl(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=_.Rf(new _.Qf,
310);a.log("Re-querying missing find-by-ids :"+c.size);a.TO([].concat(_.fc(c)),b)},ZDc=function(a,b){var c=[];(a.context.Df.THa.bR[b||"subscribed"]||[]).forEach(function(d){_.Ta(a.O,function(e){_.Cj(e.jd(),d)&&c.push(e)})});_.Ga(c);0<c.length&&(XDc(a),c.forEach(function(d){d=gL(a.context.Am,d.jd(),3);a.log("Refreshing "+b+" cache: "+d)}),_.Xh(c.map(function(d){return d.refresh().then(null,_.hg)})).then(function(){aEc(a)},function(){aEc(a)}))};
WDc.prototype.TO=function(a,b,c,d,e){var f=this;c=void 0===c?!1:c;a=a.filter(function(k){return!_.Te(k)});if(0===a.length)return _.Vh({});a=_.x(_.XF(_.YF(new _.WF,a),d||_.bK(this.Dg)),7,!0);_.ZF(a,b);e&&e.length&&_.sj(a,11,e);XDc(this);var h=new GDc(a,this.context,void 0,c);b=h.mh();b.then(function(){f.H(h)},function(){f.H(h)});return b};WDc.prototype.H=function(a){a.dispose();aEc(this)};var XDc=function(a){a.Loa++;a.context.Ys.setActive(!1)},aEc=function(a){a.Loa--;0===a.Loa&&a.context.Ys.setActive(!0)};
WDc.prototype.log=function(a){this.context.Ce().info("drive.ds.sync.cache.CacheRefresher",a)};
var bEc=function(a,b,c){_.N.call(this);this.context=a;this.H=b;this.request=c;this.O=this.ee=null;a=new _.Qf;_.Sf(a,!1);_.Rf(a,305);_.pl(this.request,a);this.Oc=new _.of(this);this.Ja(this.Oc)};_.K(bEc,_.N);
bEc.prototype.mh=function(){if(!this.ee){this.ee=_.Yh();if(_.R(this.request,48,!1))return this.H.ri(9),this.ee.resolve(this.H),this.ee.promise;this.O=new wM(this.context.Ce(),this.context.Km(),this.context.Xc,this.context.Df.Zl,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.wi())}return this.ee.promise};
bEc.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)))};bEc.prototype.V=function(){this.H instanceof RL?this.H.H=!PDc(this.O):PDc(this.O)&&QL(this.H,!1);this.H.ri(5);this.ee.resolve(this.H)};
var dEc=function(a,b){_.ni.call(this,cEc);this.cache=a;this.changes=b};_.K(dEc,_.ni);var cEc="Ib";
var eEc=function(a,b){return new _.Uh(function(c,d){b.then(function(e){for(var f=new Map,h=_.m(a.Dy()),k=h.next();!k.done;k=h.next()){k=k.value;var l=k.getId();boc(k.getItem());f.set(l,uvc(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,_.AI(k)?l&&a.update(new oxc(l.getId(),l,null)):(k=k.getItem(),boc(k),a.update(pxc(l,uvc(new yL(k),null===l||void 0===l?void 0:l.H))));a.VX();c(e.pOb)},d)})};
var fEc=function(a,b){_.N.call(this);this.context=a;this.Dg=b};_.K(fEc,_.N);
fEc.prototype.mh=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=_.eI(this.context.Xc);if(!_.KI(a)){var c=b.Ff();if(c){var d=c.getUser();d&&d.getId()===_.C(a,6,"")&&vDc(this.context.GQ,c,4)}(a=b.Du())&&this.context.nz(a,6)}var e=_.z(b,3)||void 0;e&&gEc(this.context,e,!0);if((a=_.yb(b,_.Vo,9))&&a.length){c=(c=this.context.Xc.Tf())&&_.se(c,30)||[];var f=new Set(c);a.forEach(function(l){(l=
(l=l.getKey())&&_.Wo(l))&&f.add(l)});this.context.JE.OQ(a,4,[].concat(_.fc(f.values())))}a=b.Bd();a.forEach(function(l){_.phc(l);_.zI(l,6)});if(c=_.yb(b,uL,5)[0])if(b=this.context.Am,Qnc(_.bK(this.Dg),c.getQuery().H(),_.WJ(this.context.Xc)))if((d=c.getQuery().Lc())&&4===d.getType()&&!_.fdc())this.handleError("Invalid initial view data, natural sort unsupported");else{if(0<a.length){d=BL(b,c.getQuery());d.Gi(_.z(c,2)||void 0);b=a.map(function(l){return new yL(l,void 0,1,e)});var h=_.y(c,_.Ik,3);if(h&&
_.z(c,2)){var k=b[b.length-1];_.zI(h,6);if(!_.Cj(h,k.getItem())){this.handleError("Invalid last item in initial view data.");return}}k=new RL(this.context.Et,this.context.Uv,this.context.Am,d,k,c.ao()||"");k.ri(4);d=c=0;b=_.m(b);for(h=b.next();!h.done;h=b.next())k.update(PL(h.value))?c++:d++;hEc(this.context.Df,k);b=k.jd();this.log("Imported "+c+" initial view items (IVDP) successfully ("+d+" failed) into the cache hint corpus cache. Query: "+k.lN());k=new _.mI;_.pnc(k,b);k=_.Tkc(this.context.kB,
k,"IVDP");_.Ukc(k,a);OL(this.context.Pj,"W6J7De")}}else this.handleError("Invalid initial view data, fields: "+Yvc(b,c.getQuery().H()));else this.handleError("No initial query found")};fEc.prototype.handleError=function(a,b){var c=b?void 0:_.Go(_.tI(_.sI(new _.Fc,2),6));b=new _.Gc(a,c,b);this.context.FJ(b.tg);this.log("Initial view dump population failed. Message: "+a);OL(this.context.Pj,"DEJoH")};fEc.prototype.log=function(a){this.context.Ce().info("drive.ds.sync.cache.InitialViewPopulator",a)};
var iEc=function(a){_.yi.call(this);this.context=a;this.W="drive.ds.sync.cache.CorpusCachePopulator";this.V=0;this.O=new TL(a.Et,a.Uv,a.Pj,function(){return a.Du()});this.H=this.context.Xc;this.ta=new sxc(a.Et,a.Uv)};_.K(iEc,_.yi);
var jEc=function(a,b){var c=_.Dj(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)};iEc.prototype.log=function(a,b){this.context.Ce().log(this.W,a,b||"info")};var kEc=function(a,b){0===a.V&&(a.V=b)};
var lEc=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 mEc=function(a,b){_.yi.call(this);this.context=a;this.request=b;this.V=[];this.nextPageToken="";this.H=this.O=!1};_.K(mEc,_.yi);mEc.prototype.mh=function(){return this.H||this.O&&""===this.nextPageToken?_.ei():nEc(this)};mEc.prototype.Yb=function(){return this.V.length};
var nEc=function(a){a.O=!0;a.H=!0;var b=Krc(Lrc(new _.EJ,a.request),a.nextPageToken),c=_.Tkc(a.context.kB,b);return _.fi(a.context.Km().then(function(d){return d.Pe(b)}).then(function(d){var e=d.Zc().Bd();a.nextPageToken=d.ao()||"";oEc(a,c,e)},function(d){return void a.handleError(d)}))},oEc=function(a,b,c){_.Ukc(b,c);for(b=0;b<c.length;b++)_.zI(c[b],1);a.context.Df.fl(c,1,a.request,!a.O||""!==a.nextPageToken);var d=[];_.Ma(c,function(e){this.V.push(e.getId());e=_.qI(new _.pI,e.getId()).setItem(e);
d.push(e)},a);d.length&&a.dispatchEvent(new NDc("wb",d));a.nextPageToken?nEc(a):(a.H=!1,a.dispatchEvent("zb"))};mEc.prototype.handleError=function(a){this.H=!1;a=new XL(_.uI(a),_.Dj(this.context.Xc.Tf(),1,1));this.dispatchEvent(a)};mEc.prototype.jd=function(){return this.request};
var pEc=function(a){this.H=_.gdc(a,{numeric:!0})};pEc.prototype.sort=function(a){_.Ka(a,this.compare.bind(this))};pEc.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 qEc=function(a,b,c,d){d=void 0===d?!1:d;vM.call(this,a);this.Dg=b;this.Dd=[];this.ee=null;this.request=c.clone();this.cw=new mEc(a,this.request);this.kTb=new pEc(ZK(_.eI(a.Xc)));this.XDa=null!=_.Q(this.request,6);_.ff(this,this.bpb,this);d&&(this.ee=_.Yh(),this.ee.resolve())};_.K(qEc,vM);_.g=qEc.prototype;_.g.refresh=function(){3===this.Ep&&(this.Ep=6,this.ee=null);return this.hda()};_.g.isInitialized=function(){return!!this.ee};
_.g.hda=function(){var a=this;if(this.isInitialized())return this.ee.promise;this.ee=_.Yh();this.context.Kj().Me()?this.Oc.listen(this.context.Kj(),"rb",function(b){b.Me()||(a.Oc.Tc(a.context.Kj(),"rb"),a.JA(),a.cw.mh().eg(a.ee.resolve,a.ee.reject,a.ee))}):this.context.yk().Me()?this.Oc.hd(this.context.yk(),[_.VB.ZL,_.VB.aV],function(){a.JA();a.cw.mh().eg(a.ee.resolve,a.ee.reject,a.ee)}):(this.JA(),this.cw.mh().eg(this.ee.resolve,this.ee.reject,this.ee));return this.ee.promise};_.g.resize=function(){};
_.g.jd=function(){return this.request};_.g.Dy=function(){return this.Dd};_.g.Hia=function(a){return this.context.Am.equals(a,this.request)};_.g.nk=function(a){a=a.wi();this.kTb.sort(this.Dd);var b=Goc(_.Da(this.Dd,0,Math.min(a,this.Dd.length)));CDc(this,nsc(this.Dg),b);var c=new _.dI;c.iB(b);c.Dc(this.Hxa(a));c.ri(this.We());Frc(c,a<this.Dd.length||!(this.context.Kj().Me()||this.context.yk().Me())&&1!==this.Ep);return c};
_.g.Hxa=function(a){return 1===this.Ep||a<=this.Dd.length?1:this.context.Kj().Me()||this.context.yk().Me()?0<this.Dd.length?1:2:6};_.g.fl=function(a,b){this.isInitialized()&&vM.prototype.fl.call(this,a,b)};_.g.qw=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.Ds(a.H,b);var f=a.O;d&&(f=d,e=!0);if(e||b)e?b?this.YLa(f,a.H):this.BJ(f):this.nS(a.H);else return!1;return!0};_.g.nS=function(a){this.Dd.push(a);a.count++};
_.g.BJ=function(a){_.wa(this.Dd,a);a.count--};_.g.Qza=function(a){return _.oa(this.Dd,a)};_.g.YLa=function(a,b){this.Dd[this.Qza(a)]=b;b.count++;a.count--};_.g.Ds=function(a,b){b=void 0===b?!1:b;if(!a)return!1;if(this.XDa&&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())&&lEc(this.request,a.getItem());return b&&a}return zL(a.getItem())&&lEc(this.request,a.getItem())};_.g.bpb=function(){this.Dd.forEach(function(a){a.count--})};
_.g.A0a=function(){return!0};_.g.getType=function(){return"TeamDriveViewCache"};_.g.getSize=function(){return this.Dd.length};_.g.VX=function(){this.Ep=1};
var rEc=function(a){this.H=a},sEc=function(a,b,c,d,e){if(0===e||null===b){var f=new hBc;_.x(f,2,b);_.x(f,1,d);return _.Vh(f)}var h=zwc();_.x(h,2,b);c&&_.x(h,3,c);return a.H.then(function(k){return k.Pe(h)}).then(function(k){var l,p=null!==(l=k.Iy())&&void 0!==l?l:null;return sEc(a,p,c,d+_.z(k,1),e-1)})};
var tEc=function(a,b){iEc.call(this,a);this.Dg=b;this.ha=void 0;this.ka=null;this.ma=!1;this.eE=void 0;this.W="drive.ds.sync.cache.LocalDumpPopulator"};_.K(tEc,iEc);tEc.prototype.handleError=function(){this.log("Local dump population failed.");OL(this.context.Pj,"mrK8ic")};
tEc.prototype.mh=function(){var a=this;if(this.ka)return this.ka;if(this.context.jR){var b=new _.$h;this.ka=b;this.initialize().then(function(){var c=_.yb(_.$K(a.H),YK,11);c=c[0]&&c[0].getKey()||"";return uEc(a,a.context.jR,c,4)}).then(null,function(c){if(_.R(a.H,8,!0))return vEc(a,c);throw c;}).then(function(){_.lI(a.H)||a.context.Df.Lq.H.clear();OL(a.context.Pj,"zaOY7");b.callback()},function(c){kEc(a,8);a.handleError();b.Gd(c)});return b}this.handleError();return _.gi(Error("yg"))};
tEc.prototype.initialize=function(){var a=this;return _.Vh(this.context.jR.initialize()).then(function(){if(!_.XJ(a.H)){var b=_.Dj(_.$K(a.H),7,432E6);b&&(a.ha=Date.now()-b);return new _.Uh(function(c,d){DAc(a.context.XD).then(function(e){e?c():d(Error("zg"))})})}})};
var uEc=function(a,b,c,d){return _.mg(a,function f(){var h=this,k;return _.dg(f,function(l){return 1==l.H?(k=h.ha,wEc(h,b,c,k),xEc(h,b,c,k),yEc(h,b,c,k),_.Xf(l,zEc(h,b,c,k),2)):_.Xf(l,Promise.all([AEc(h,b,c,d,k),BEc(h,b,c,d,k),CEc(h,b,c,d,k),DEc(h,b,c,d,k)]),0)})})},wEc=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.eE).then(function(f){f[0]?vDc(a.context.GQ,f[0],a.We(),_.XJ(a.H)):e()},function(){return e()})},xEc=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.eE).then(function(f){f[0]?a.context.J_.OQ(f[0],a.We(),_.XJ(a.H)):e()},function(){return e()})},yEc=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.eE).then(function(f){if(f[0]){f=f[0];var h=_.yb(f,_.Vo,1);h.length&&a.context.JE.OQ(h,a.We(),_.se(f,2),_.XJ(a.H))}else e()},function(){return e()})},AEc=function(a,b,c,d,e){var f=new _.en;bM(b,c,3,1,e,a.eE).then(function(h){return EEc(a,
h[0])}).then(function(h){if(h){b!==a.context.jR||Qnc(_.se(h,12),_.bK(a.Dg),_.WJ(a.H))||(a.log("Disabling dump updater due to inconsistent fields.","warning"),a.context.Ys.aT());var k=_.z(h,3);if(!k||0>k)throw Error("Cg");a.context.nz(h.Du(),d);k=_.z(h,3);"number"===typeof k&&gEc(a.context,Number(k));if(_.XJ(a.H)||_.VJ(a.H))a.log((_.XJ(a.H)?"Coldstart":"Background")+": Firing INITIAL_CHANGES_PROCESSED."),a.context.lFa();a.fl(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.PD?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 _.en;bM(c,d,3,b,f,a.eE).then(function(k){k[0]?(a.fl(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 _.en;bM(b,c,3,4,e,a.eE).then(function(h){h.forEach(function(k){a.fl(k,d)});f.resolve()},function(h){return f.reject(h)});return f.promise},DEc=function(a,b,c,d,e){var f=new _.en;bM(b,c,3,3,e,a.eE).then(function(h){h.length?h.forEach(function(k){a.fl(k,d)}):OL(a.context.Pj,"rVezo");f.resolve()},function(h){return f.reject(h)});return f.promise},zEc=function(a,b,c,d){var e=new _.en;bM(b,c,6,void 0,d,a.eE).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.Df.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 rEc(a.context.Km()),e=_.Dj(_.$K(a.H),13,5);return sEc(d,c,null,0,e).then(function(f){return _.lj(f,2)?(a.log("Encrypted dump too stale."),a.context.mk().O(106007),kEc(a,9),null):b},function(){return b})}return _.Vh(b)},
vEc=function(a,b){var c=cM(a.context.dM.nj()),d=_.yb(_.$K(a.H),YK,11).filter(function(e){return e.yt()});return vAc(_.UJ(_.eI(a.H)),_.WJ(a.H),_.Dj(_.$K(a.H),10,0)||0,_.bK(a.Dg),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(_.Vh(e),a.context.Ce(),null,!0),k=new tzc(h,a.H,function(l){a.context.FJ(l)});k.initialize();a.ma=!0;return uEc(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.XD.set(AAc,l)):l=Promise.resolve();return l}).then(function(){h.close()})}return _.Wh(new _.Gc("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,
_.Ik,3);h&&(_.phc(h),_.Q(a.H,67)&&Enc(h,Tnc),_.zI(h,c),f=new yL(h));var k=e.getQuery();if(!_.R(k,48,!1)||_.yb(a.H,_.Df,44).some(function(l){if(!_.R(l,48,!1))return!1;l=BL(a.context.Am,l,!0);return _.Cj(l,k)}))e=new RL(a.context.Et,a.context.Uv,a.context.Am,k,f),e.ri(a.We()),d.push({cache:e,changes:$L(a.context.Bx,null)})});return d},HEc=function(a,b,c){b=_.y(b,Yoc,11);if(!b)throw Error("Dg");jEc(a,b);return c.PD?(c.ri(a.We()),[{cache:c,changes:$L(a.context.Bx,null)}]):[]},JEc=function(a,b){return _.yb(b,
uL,5).map(function(c){c=new qEc(a.context,a.Dg,_.y(c,_.QH,5),!0);c.ri(a.We());return{cache:c,changes:$L(a.context.Bx,null)}})},IEc=function(a,b){var c=_.se(_.yb(b,uL,5)[0].getQuery(),33)[0],d=_.z(b,3)||void 0;b=$L(a.context.Bx,c);xM(a.context).addCallback(function(f){f.iwa(c,d)});var e=new VL(a.context.Et,a.context.Uv,c);e.ri(a.We());return[{cache:e,changes:b}]};
tEc.prototype.fl=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;_.phc(h);_.Q(this.H,67)&&Enc(h,Tnc);_.zI(h,b);_.lI(this.H)||this.context.Df.Lq.H.lc()||iyc(this.context.Df.Lq,[h]);f=new yL(h);_.se(a,14).includes(h.getId())&&uvc(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 dEc(l,k.changes));c.log("Imported "+l.getSize()+" items into the "+l.getType());var p=
null;l instanceof VL&&(p=l.uc());c.context.Raa.promise.then(function(){aM(c.context.Bx,p)})});1===a.Xo()&&OL(this.context.Pj,"ZA9qG")}else this.log("Ignoring corpus cache for "+a.Xo()+".")};tEc.prototype.We=function(){return this.ma?7:3};
var LEc=function(a){_.N.call(this);this.context=a};_.K(LEc,_.N);LEc.prototype.mh=function(a){try{return MEc(this,new lCc(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(_.Gj(b,nCc,7,pCc),lCc,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=_.Gj(b,_.Df,2,oCc);b=JSON.parse(_.Fj(b,3,pCc)||"{}");var d=new _.mI;
_.pnc(d,c);return a.context.VR().Ata.convert(d,{headers:{},text:"",json:b}).then(function(e){SEc(a,c,e.Zc())})},PEc=function(a,b){return SEc(a,_.Gj(b,_.Df,2,oCc),_.Gj(b,_.dI,9,pCc))},SEc=function(a,b,c){for(var d=c.Bd(),e=_.m(d),f=e.next();!f.done;f=e.next())_.zI(f.value,7);c=ODc(c);a=a.context.Df;b=BL(a.context.Am,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.ri(2),TEc(a,e,f));c.lc()||f.zta(c);a.fl(d,1,b);return Promise.resolve()},
QEc=function(a,b){_.Gj(b,_.nD,4,oCc);b=_.Gj(b,_.$z,5,pCc);var c=a.context.Xc.Tf();c=c&&_.se(c,30)||[];var d=new Set(c);_.yb(b,_.Vo,3).forEach(function(e){(e=(e=e.getKey())&&_.Wo(e))&&d.add(e)});a.context.JE.OQ(_.yb(b,_.Vo,3),2,[].concat(_.fc(d.values())));return Promise.resolve()},OEc=function(a,b){a.context.nga.x3(_.Gj(b,ML,8,pCc).Zk(),_.Gj(b,_.dA,6,oCc),2,!1);return Promise.resolve()},REc=function(a,b){var c=_.Gj(b,_.bA,10,oCc);b=JSON.parse(_.Fj(b,3,pCc)||"{}");return a.context.VR().Ata.convert(c,
{headers:{},text:"",json:b}).then(function(d){cDc(a.context).x3([d],c,2,!1)})};LEc.prototype.handleError=function(a,b){var c=b?void 0:_.Go(_.tI(_.sI(new _.Fc,2),6));this.context.dispatchEvent(new _.Hc(new _.Gc(a,c,b instanceof Error?b:null)));this.log("Prefetched request population failed.")};LEc.prototype.log=function(a){this.context.Ce().info("drive.ds.sync.cache.PrefetchedRequestPopulator",a)};
var UEc=function(a){iEc.call(this,a);this.ha=[];this.ka=[];this.W="drive.ds.sync.cache.SdkCachePopulator";this.ma=Math.ceil(1.1*_.Dj(a.Xc,31,2E4))};_.K(UEc,iEc);UEc.prototype.mh=function(){if(!_.R(this.H,45,!1))return kEc(this,5),this.handleError(),_.gi(Error("Eg"));this.log("Drive SDK cache population initiated.");return this.context.RXa().addCallback(this.Ba,this).addCallback(this.wa,this).zg(this.handleError,this)};
UEc.prototype.Ba=function(){var a=this;OL(this.context.Pj,"L6uQWd");xM(this.context).addCallback(function(b){b.Bea()});if(_.R(this.H,46,!1))return Xoc(this.context.Km(),this.context.Ce()).addCallback(function(b){if(!b)throw kEc(a,4),Error("Fg");jEc(a,b)});this.log("Subscribed corpus cache population disabled.");QL(this.O,!1);return _.ei()};
UEc.prototype.wa=function(){var a=this;this.context.lFa();var b=new _.$h;if(this.O.PD){this.log("Starting subscribed corpus cache population.");var c=this.O.jd();c.Gi(this.ma);this.O.ri(5);VEc(this,this.O,c)}c=_.yb(this.H,_.Df,44);c=_.m(c);for(var d=c.next();!d.done;d=c.next())d=new RL(this.context.Et,this.context.Uv,this.context.Am,d.value),d.ri(5),VEc(this,d,d.jd()),d=gL(this.context.Am,d.jd()),this.log("Starting "+d+" cache hint corpus cache population.");_.Xh(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();kEc(a,7);f=e;e instanceof XL?f=_.NI(e.error):_.rI(e)||(f=Error("Gg`"+e));b.Gd(f)});return b};
var VEc=function(a,b,c){var d=$L(a.context.Bx,null);b=new bEc(a.context,b,c);a.ha.push(b);b=b.mh().then(function(e){!e.PD&&e instanceof TL&&(a.log("Subscribed corpus cache disabled, too many backfill items."),a.context.kB.Hb("CachedCorpusType","errorUncachedCorpus"));a.dispatchEvent(new dEc(e,d))});b.then(function(){WEc(a)},function(){WEc(a)});a.ka.push(b)},WEc=function(a){a.context.Raa.promise.then(function(){aM(a.context.Bx,null)})};
UEc.prototype.handleError=function(){this.log("Drive SDK cache population failed.");OL(this.context.Pj,"Gv4zef")};UEc.prototype.We=function(){return 5};
var XEc=function(a,b){_.N.call(this);this.context=a;this.V=b;this.Oc=new _.of(this);this.impression=null;this.W=[];this.Ja(this.Oc);this.H=new tEc(this.context,this.context.Dg);this.Ja(this.H);this.O=new UEc(this.context);this.Ja(this.O)};_.K(XEc,_.N);
XEc.prototype.mh=function(){var a=this;this.log("Corpus cache population initiated.");this.impression=this.context.mk().H(106002);_.n._DRIVE_dsp&&YEc(this);_.n._DRIVE_dspc=function(c){YEc(a,c)};$L(this.context.Bx,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.jR;if(b)return this.Oc.listen(this.H,cEc,this.ha),this.Oc.listen(this.O,cEc,this.ha),(!_.VJ(this.context.Xc)&&_.Q(this.context.Xc,
69)?this.context.rY.promise:Promise.resolve()).then(function(){return b.initialize().then(function(){a.log("Dump storage initialized.");a.impression&&(a.H.eE=a.impression);return a.H.mh().eg(function(){return $Ec(a,a.H.We())},function(){aFc(a,a.H.We(),a.H.V);return _.XJ(a.context.Xc)?a.handleError(Error("Hg")):a.O.mh().then(function(){return $Ec(a,a.O.We())},function(c){aFc(a,a.O.We(),a.O.V);return a.handleError(c)})})},function(c){a.handleError(_.rI(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.mh(e.value);a.dispose()};XEc.prototype.ha=function(a){var b=a.cache;this.log("Cache populated: "+b.getType());this.W.push(bFc(this,b,a.changes))};
var $Ec=function(a,b){aM(a.context.Bx,null);OL(a.context.Pj,"L6uQWd");xM(a.context).addCallback(function(c){c.Bea()});return Promise.all(a.W).then(function(){cFc(a,b)})},cFc=function(a,b){if(!a.isDisposed()){_.XJ(a.context.Xc)||dFc(a.V,_.yb(a.context.Xc,_.Df,44));a.log("Corpus cache population complete.");var c=a.context.Pj;c.H("mrK8ic")?c.H("Gv4zef")||a.context.Ys.mFa():DAc(a.context.XD).then(function(d){d&&a.context.Ys.mFa()},function(){});OL(c,"rVezo");OL(c,"BNEDtc");a.impression&&(b=_.iK(_.igc,
b),hsc(psc(a.impression),b),gsc(psc(a.impression),!0),isc(psc(a.impression),Lvc(a.V.Zl)),jsc(psc(a.impression),a.context.Df.Xo()),a.impression.Dj());a.dispose()}},aFc=function(a,b,c){a.impression&&(b=_.iK(_.igc,b),hsc(psc(a.impression),b),a=psc(a.impression),_.uj(a,3,c,void 0))};
XEc.prototype.handleError=function(a,b){b=void 0===b?!1:b;aM(this.context.Bx,null);var c=this.context.Pj;OL(c,"L6uQWd");xM(this.context).addCallback(function(d){d.Bea()});OL(c,"mrK8ic");OL(c,"Gv4zef");OL(c,"rVezo");OL(c,"BNEDtc");this.context.kB.Hb("CachedCorpusType","partialCorpus");c=!!this.H.context.jR||_.R(this.O.H,45,!1);a&&!b&&c?(c=void 0,b="Corpus population failed: ",_.rI(a)?(c=a,b+=c.message):b+=String(a),this.log(b),a=new _.Gc(b,void 0,c),c=a.tg,_.sI(c,_.XJ(this.context.Xc)?3:1),_.tI(c,
6),_.Eo(c,b),_.Go(c),this.context.dispatchEvent(new _.Hc(a))):this.log("Corpus population skipped");this.impression&&(gsc(psc(this.impression),!1),this.impression.Dj());this.dispose()};var bFc=function(a,b,c){return eEc(b,c).then(function(d){d.some(function(e){return b instanceof VL&&_.AI(e)&&e.qc()===b.uc()})||hEc(a.V,b,d)},function(){return a.handleError(Error("Ig"))})},ZEc=function(a){if(_.n._DRIVE_ivd){var b=new fEc(a.context,a.context.Dg);a.Ja(b);b.mh(_.n._DRIVE_ivd)}else OL(a.context.Pj,"DEJoH")};
XEc.prototype.log=function(a){this.context.Ce().info("drive.ds.sync.cache.CorpusCachePopulatorManager",a)};
var eFc=function(){SL.apply(this,arguments)};_.K(eFc,SL);_.g=eFc.prototype;_.g.Ds=function(a){var b;if(b=SL.prototype.Ds.call(this,a))a=a&&a.getItem()&&a.getItem().Wm(),b=!(!a||!_.Q(a,3));return b};_.g.jd=function(){};_.g.lN=function(){return null};_.g.getType=function(){};_.g.dO=function(){};
var fFc=function(a,b){this.context=a;this.H=b;this.bR={}},hFc=function(a,b){if(!_.kJ(b)){var c=_.se(b,33);if(1===c.length)gFc(a,c[0],b);else{c=_.ol(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.Df.VI;var e=_.Rf(new _.Qf,310);c.TO([d],e).then(function(f){if((f=f[d])&&f.uc()){var h=f.getCapabilities();h&&_.Pe(h)&&(f=f.uc(),gFc(a,f,b))}else gFc(a,null,b)});return}if(c.getItem().uc()&&_.Pe(c.getItem().getCapabilities())){c=c.getItem().uc();gFc(a,c,b);return}}gFc(a,
null,b)}}},gFc=function(a,b,c){if(b){var d=a.H.get(b);if(d&&!zL(d.getItem()))return}d=b||"subscribed";a.bR[d]||(a.bR[d]=[]);a.bR[d].push(c);b&&(xM(a.context).addCallback(function(e){e.iwa(b)}),iFc(a.context.iLa,b))},jFc=function(a,b){if(!_.kJ(b)){var c={},d;for(d in a.bR){c.qU=d;for(var e=0;e<a.bR[c.qU].length;e++)if(_.Cj(b,a.bR[c.qU][e])){_.va(a.bR[c.qU],e);"subscribed"!==c.qU&&xM(a.context).addCallback(function(f){return function(h){h.vIa(f.qU,!1)}}(c));return}c={qU:c.qU}}}};
var kFc=function(){this.H=new Map;this.O=[];this.V=[]};
kFc.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().wf())&&_.z(e,1)&&(1===_.ze(e)||3===_.ze(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&&!_.Cj(a.getItem(),d.getItem()))&&this.H.get(c).forEach(function(f){b.V.push(f)})};
var lFc=function(a){return a.V.filter(function(b){return!a.O.includes(b)})},mFc=function(a){a.O=[];a.V=[]};
var nFc=function(a,b){Uyc.call(this,a.clone(),b.Km(),b.Xc,b.Ce());this.context=b};_.K(nFc,Uyc);nFc.prototype.W=function(a){var b=new Map;a.V().forEach(function(c){var d=a.clone();d=_.qj(d,2,[c]);b.set(c,d)});return b};nFc.prototype.V=function(a){a=a.Bd()[0];this.context.Df.fl([a],1,void 0,!0,this.request.H())};nFc.prototype.ha=function(a){this.context.Df.fl([],1,a,!1,this.request.H())};nFc.prototype.ka=function(a){a=_.BI(_.qI(new _.pI,a));this.context.Df.Fo([a])};
var oFc=function(a,b,c,d){vM.call(this,a);this.Dg=b;this.request=c;this.Dd={};d&&this.fl(d,!0)};_.K(oFc,vM);_.g=oFc.prototype;
_.g.refresh=function(){var a=this;this.Ep=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.fl([],!1),_.Vh();var d=this.request.clone();_.qj(d,2,c);var e=new nFc(d,this.context),f=_.Yh();this.context.Kj().Me()?(this.Oc.listen(this.context.Kj(),"rb",function(h){h.Me()||(a.Oc.Tc(a.context.Kj(),"rb"),a.JA(),e.mh().then(f.resolve,f.reject,f))}),this.Ep=0<_.Xa(this.Dd)?
1:2):(this.context.yk().Me()&&(this.Ep=0<_.Xa(this.Dd)?1:2),this.JA(),e.mh().then(f.resolve,f.reject,f));return f.promise};_.g.Hia=function(a){return this.context.Am.equals(a,this.request)&&Jnc(_.bK(this.Dg),a.H())};_.g.nk=function(a){var b=new _.jK;b.Dc(this.Ep);b.ri(this.We());Tsc(b,_.Va(this.Dd,function(c){return c?c.getItem():null}));CDc(this,a.H(),b.ot());return b};_.g.resize=function(){};_.g.jd=function(){return this.request};_.g.getSize=function(){return _.Xa(this.Dd)};
_.g.qw=function(a){var b=this.Ds(a.O),c=this.Ds(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.Ds=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.Ga=gL(this.context.Am,b);this.cw=new UDc(this.context,this.request,!1,e);b=this.request.Lc()&&Pvc(this.request.Lc());var h=this.context.Uv;this.H=b?function(k,l){return h.compare(f.request,k,l)}:null;this.XDa=!b||!Fvc(this.request)||_.KI(_.eI(a.Xc));
this.Ia=wxc(this.request);c&&this.fl(c,!d);this.wa=_.Dj(a.Xc.Tf(),16,36E5);_.JJ(this.request)&&this.Oc.listen(this.context.Pha,"Bb",this.La);_.ff(this,function(){(0,_.ca)(f.cw);f.clear()})};_.K(zM,vM);zM.prototype.refresh=function(){this.log(this.lN()+" | Refresh called, currently "+this.getSize()+" items cached");return pFc(this,!1)};
var pFc=function(a,b){a.Ep=6;if(_.R(a.request,48,!1))return a.Ep=1,_.Vh();if(_.JJ(a.request)){var c=qFc,d=a.context.Pha.H;d=Math.max(Date.now()-d,a.wa);c(a,Math.min(d,2592E5))}return rFc(a,b)};zM.prototype.initialize=function(){return this.count>=this.request.wi()||1===this.Ep?_.Vh():this.refresh()};zM.prototype.clear=function(){sFc(this)};
var sFc=function(a){a.Dd.forEach(function(b){b.count--});a.count=0;a.Dd=[];a.O.clear()},qFc=function(a,b){_.n.clearTimeout(a.Ba);a.Ba=_.n.setTimeout(function(){return pFc(a,!0)},b)};zM.prototype.La=function(){Date.now()-this.ta>this.wa&&qFc(this,0)};
var rFc=function(a,b){a.cw&&(a.Oc.Tc(a.cw,"yb",a.zta),a.Oc.Tc(a.cw,"zb",a.pOa),a.cw.dispose());var c=a.request.se();c&&_.Sf(c,!1);a.cw=new UDc(a.context,a.request,b);a.V=0;a.Oc.listen(a.cw,"yb",function(){return a.zta(a.cw.ha)});a.Oc.listen(a.cw,"zb",a.pOa);return a.hda()};
zM.prototype.hda=function(){var a=this,b=_.Yh();this.context.Kj().Me()?this.Oc.listen(this.context.Kj(),"rb",function(c){c.Me()||(a.Oc.Tc(a.context.Kj(),"rb"),tFc(a,b))}):this.context.yk().Me()?this.Oc.hd(this.context.yk(),[_.VB.ZL,_.VB.aV],function(){tFc(a,b)}):tFc(this,b);return b.promise};var tFc=function(a,b){a.JA();_.Nka(RDc(a.cw,a.request.wi()+a.V).eg(b.resolve,b.reject,b),function(){return a.ta=Date.now()})};_.g=zM.prototype;
_.g.resize=function(a){this.log(this.lN()+" | Resize called");var b=0;for(var c=_.m(new Set([].concat(_.fc(this.Wy)))),d=c.next();!d.done;d=c.next())d=d.value,d=EDc(this.context).wla(d),b=Math.max(b,d.wi());_.JJ(this.request)?(this.request.Gi(b),2!==this.We()&&!this.cw.O&&(b>this.count||a)?this.refresh():this.LJ()):this.request.wi()!==b&&(this.request.Gi(b),b>this.count?this.hda():this.LJ())};_.g.jd=function(){return this.request};_.g.lN=function(){return this.Ga};_.g.getSize=function(){return this.Dd.length};
_.g.Hia=function(a){return this.context.Am.equals(a,this.request)};
_.g.nk=function(a){var b=a.wi(),c,d=!1;if(_.lJ(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=_.Mk(k.getItem()).filter(function(l){return h.includes(_.y(l,_.vk,1).getId())});k=k.clone();Nnc(k.getItem(),d);e[c]=k}e=e.filter(function(l){return _.Mk(l.getItem()).length})}d=Wnc(e);c=new _.kK;_.x(c,4,!1);Psc(c,f)}else e=this.Dd.slice(0,b),c=new _.dI,Frc(c,b<this.Dd.length||!(this.context.Kj().Me()||
this.context.yk().Me())&&1!==this.Ep),_.G(c,7,this.ka),_.x(c,8,this.incompleteSearch),_.qj(c,18,this.ha),d=Wnc(e);e=Goc(e);CDc(this,a.H(),e);c.iB(e);c.Dc(d?6:this.Hxa(b));c.ri(this.We());c.bQ(this.suggestionSessionId);return c};_.g.Hxa=function(a){return 1===this.Ep||a<=this.count?1:this.context.Kj().Me()||this.context.yk().Me()?0<this.Dd.length?1:2:6};_.g.zta=function(a){this.ka=a.W;this.incompleteSearch=a.incompleteSearch;this.ha=a.kBa();this.W=a.V;this.suggestionSessionId=a.Vf()};
_.g.pOa=function(){var a=this.request.wi()-this.count;0<a&&PDc(this.cw)&&(this.V+=a,this.hda())};_.g.fl=function(a,b){_.JJ(this.request)&&sFc(this);var c=!1;a=_.m(a);for(var d=a.next();!d.done;d=a.next())d=PL(d.value),c=this.qw(d,!0)||c;b||(1!==this.Ep&&(c=!0),this.Ep=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.DY(),uFc(this,b))};
var uFc=function(a,b){_.ol(a.request).length&&a.Dd.length&&a.context.I_.then(function(c){var d=dL(a.context.mk(),106024,a.ma);if(d){var e=_.ol(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.Df.Xo());a.ma=d;d.Dj()}})};_.g=zM.prototype;
_.g.qw=function(a,b){var c=this.O.get(a.id),d=!!c,e=this.Ds(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.YLa(f,a.H):(this.BJ(f),_.JJ(this.request)&&qFc(this,0));else{if(_.JJ(this.request)&&!b)return!1;this.nS(a.H)}else return!1;return!0};_.g.nS=function(a){this.H?znc(this.Dd,a,this.H):this.Dd.push(a);a.count++;vFc(a)&&this.count++;this.O.set(a.getId(),a)};
_.g.BJ=function(a){if(this.H){var b=this.Dd,c=_.Ia(b,a,this.H);0<=c&&_.va(b,c)}else _.wa(this.Dd,a);a.count--;vFc(a)&&this.count--;this.O.delete(a.getId())};_.g.Qza=function(a){return this.H?_.Ia(this.Dd,a,this.H):_.oa(this.Dd,a)};_.g.YLa=function(a,b){this.H&&0!==this.H(a,b)?(this.BJ(a),this.nS(b)):(this.Dd[this.Qza(a)]=b,b.count++,vFc(b)&&this.count++,a.count--,vFc(a)&&this.count--,this.O.delete(a.getId()),this.O.set(b.getId(),b))};
_.g.Ds=function(a,b){if(!a)return!1;if(this.XDa&&!_.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.Et,this.request,a.getItem());return b&&a}}if(!AL(this.context.Et,this.request,a.getItem()))return!1;var d=1.2*this.request.wi();if(1===this.Ep||!this.H||svc(a.V,2)||this.count<d||b||coc(a.getItem()))return!0;b=0===this.Dd.length?null:this.Dd[this.Dd.length-1];return!!b&&0>=this.H(a,b)};
_.g.LJ=function(){this.log(this.lN()+" | Evict called");if(1!==this.Ep&&!this.context.Kj().Me()&&!this.context.yk().Me()){var a=1.2*this.request.wi();if(!(a>=this.count||this.cw&&a>=this.cw.Yb())){a=this.count-this.request.wi();for(var b=this.Dd.length-1;0<=b&&0<a;b--){var c=this.Dd[b];svc(c.V,2)||coc(c.getItem())||(c.count--,vFc(c)&&this.count--,this.O.delete(c.getId()),_.va(this.Dd,b),a--)}rFc(this,!1)}}};
_.g.wp=function(a){var b=new _.Fc;_.sI(b,2);_.tI(b,6);_.Go(b);this.context.dispatchEvent(new _.Hc(new _.Gc(a,b)))};var vFc=function(a){return!svc(a.V,2)&&3!==a.getItem().Lv()};zM.prototype.log=function(a,b){this.context.Ce().log("drive.ds.sync.cache.ViewCache",a,void 0===b?"info":b)};zM.prototype.nTa=function(a){var b=this,c=_.ol(this.request);c.length&&(c=c.some(function(d){return(d=b.context.Df.Zl.H(d.Wa()))&&_.Q(d,108)}),Kwc(this.context.Bta,a,c))};zM.prototype.mTa=function(){this.LJ()};
zM.prototype.N_a=function(a){return 1!==this.Ep&&a.wi()>this.count&&this.cw.O};
var wFc=function(a,b,c,d,e,f){_.N.call(this);this.V=a;this.ka=b;this.H=c;this.W=d;this.O=e;this.ha=f;this.Oc=new _.of(this);this.Ja(this.Oc)};_.K(wFc,_.N);
var zFc=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 xFc(a,b);void 0!==c&&yFc(a,b,!c)}return Promise.resolve([])},xFc=function(a,b){var c=_.hga(new _.Df,[(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 _.en;a.Oc.listen(d,"wb",function(f){e.resolve(f.changes)});
RDc(d,1E3).then(function(){e.resolve([]);yFc(a,b,!PDc(d))},function(f){e.reject(f);a.log("Error trying to backfill "+b+" "+f)});return e.promise},yFc=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:uvc(d,c)};wFc.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;_.N.call(this);var d=this;this.V={};this.ha=new kFc;this.Oc=new _.of(this);this.Ja(this.Oc);this.context=a;this.Dg=b;this.H=this.context.Xc;this.Tt=new Axc(a.Am,a.Ce());this.context.mk().W.H=this.Tt;if(null===(c=_.IJ(this.H))||void 0===c?0:_.R(c,15,!1))b=new sxc(a.Et,a.Uv),this.Tt.add(b),a.lga.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.PD))});
this.O=new Evc(a.I_,a.Et,a.Uv);_.Q(a.Xc,60)&&(this.Ba=new eFc(a.Et,a.Uv));this.W=new yvc(a.Ce(),_.bK(this.Dg));AFc(this,_.se(this.H,28));this.Zl=new Hvc(this.Dg,this.context.Am,this.O,this.W);this.context.mk().W.V=this.Zl;this.VI=new WDc(this.context,this.Dg,this.V,this.O);this.THa=new fFc(this.context,this.O);this.ma=new XEc(this.context,this);_.ff(this.ma,function(){d.ma=null});this.wa=_.lhc(_.bK(this.Dg),BFc);NL(this.context.Pj,["NSockf"],function(){return d.initialize()});NL(this.context.Pj,["NSockf",
"jroI5d"],function(){if(_.y(d.H,_.Ik,12))var e=_.y(d.H,_.Ik,12);else{e=_.dic(_.fic(new _.vk,_.UJ(_.eI(d.H))),!0);e=_.x(e,6,1);var f=_.C(_.eI(d.H),6,"");f&&e.Nb(f);e=_.zVb(_.nic(_.oic(_.cG((new _.Ik).Nb(d.context.Du()).setTitle(_.C(d.H,38,"My Drive")),"application/vnd.google-apps.folder").Pn(!1),e),[e]),1);e=_.x(e,29,!0);e=_.x(e,63,!0);f=new _.Bk;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=_.gic(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.fl([e],1);OL(d.context.Pj,"hVFf7")});this.ka=_.Yh();NL(this.context.Pj,["BNEDtc"],function(){d.ka.resolve()});this.Lq=new Zxc(this.H,this.context.Ce(),a.Km(),this.context.mk(),this.context.rY.promise);_.lI(this.H)&&this.Oc.listen(this.Lq,"vb",this.ta);this.qOa=new _.ukc(this.H,this.Zl);this.Ga=new wFc(a.Ce(),a.Km(),a.Xc,this.Zl,this.O,a.dispatchEvent)};_.K(AM,_.N);
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(),CFc(this,h),b.push(pxc(d,new yL(h,
void 0,1)))):this.log("b/154479164 Unexpected missing wrapper for "+h+".","warning");DFc(this,b,[]);this.context.Ys.update(6);a.size&&this.VI.TO([].concat(_.fc(a)),_.Rf(new _.Qf,311))};AM.prototype.initialize=function(){this.ma.mh()};
AM.prototype.Zh=function(a,b){if(b instanceof _.Df)b=BL(this.context.Am,b),EFc(this,b.H()),hFc(this.THa,b),b=FFc(this,b),b.cache.Zh(a);else if(b instanceof _.WF)b=GFc(this,b),EFc(this,b.H()),b=HFc(this,b),b.cache.Zh(a);else if(b instanceof _.QH){var c=yM(this,b),d=this.V[c];d?(3==d.nW()?(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 qEc(this.context,this.Dg,b),d.refresh().then(null,_.hg),TEc(this,c,d),b={cache:d,Sv:!0});b.cache.Zh(a)}else if(b instanceof _.aG)c=b.H(),d=this.W,zvc(d,d.H,d.O,c),b=HFc(this,b),b.cache.Zh(a);else throw Error("Jg");return b.Sv};AM.prototype.fk=function(a,b){if(b instanceof _.Df)b=BL(this.context.Am,b),jFc(this.THa,b);else if(b instanceof _.WF)b=GFc(this,b);else if(!(b instanceof _.QH||b instanceof _.aG))throw Error("Jg");b=yM(this,b);var c=this.V[b];c&&(c.fk(a),c.isDisposed()&&delete this.V[b])};
var yM=function(a,b){return gL(a.context.Am,b,2)},FFc=function(a,b){var c,d,e=yM(a,b),f=a.V[e];if(f)return 3==f.nW()?(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.aF(b);if(5!=k){l=1==k?void 0:b.wi();if((null===(c=_.IJ(a.H))||void 0===c?0:_.R(c,18,!1))&&q instanceof sxc){f=!0;k=5;a.log("Partial Caching dark launch: Skipped returning from the MyDrive cache for "+
(e+"."));break}h=q.Qla(b,l);var r=q.We();var v=q instanceof RL?q.Iy():"";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.Kj().Me()||a.context.yk().Me())h=h.concat(a.O.query(b,1)),_.Ga(h,void 0,function(A){return A.getId()}),k=(k=a.Tt.H)&&k.W8&&5!=k.aF(b)?k.aF(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.ri(r);
w.fl(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.HYa().CWb()}).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.nk(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.nk(b,b.wi()).Bd().map(function(S){return S.getId()}))||[],M=
_.La(E.sort(),I.sort()),P=dL(a.context.mk(),106030);P&&(dsc(csc(bsc(tsc(P),E.length),I.length),M),P.Dj());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=_.uI(A);
_.Go(A);a.context.dispatchEvent(new _.Hc(new _.Gc("Error during view cache init",A)))});TEc(a,e,w);return{cache:w,Sv:!0}},HFc=function(a,b){var c=yM(a,b),d=!1,e=a.V[c];if(e&&e.Hia(b))a.log("FindByIdsRequest backed by existing query cache: "+c);else{var f=a.O.getAll(b.V()),h;b instanceof _.WF?h=new LDc(a.context,a.Dg,b,f):h=new oFc(a.context,a.Dg,b,f);f.length&&h.ri(8);h.refresh().then(null,_.hg);b=h;d=!0;TEc(a,c,b);e?(IFc(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.OW=function(){return Object.values(this.V).filter(function(a){return a.jd()instanceof _.QH})};
AM.prototype.n4a=function(a){for(var b=_.Rf(new _.Qf,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=Yvc(this.context.Am,c,!0),this.log("Refreshing "+a+" for secondary fields: "+d+"."),this.VI.TO([a],b,!1,c))};
var BDc=function(a,b,c){c&&c.length&&Bvc(a.W,b,c);_.lI(a.H)&&iyc(a.Lq,b)},hEc=function(a,b,c){var d,e,f;if(b instanceof qEc){var h=yM(a,b.jd());if(a.V[h]){a.log(h+" | Cache already exists, ignoring persisted data");return}}b instanceof qxc&&a.Tt.remove(b);h=new Map;var k=a.O.Dy(),l=new Map(k);k=[];for(var p=_.m(b.Dy()),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&&uvc(v,q.H);3==w||4==
w?h.set(q.getId(),q.getItem()):v!=q&&k.push(new oxc(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);_.lI(a.H)&&a.Lq.DP(r)}_.lI(a.H)&&CFc(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 qEc?(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 _.pI,_.qI(p,l.getId()),p.setItem(l),k.push(p);a.Fo(k);a.log("Merged cache: "+b.getType());b instanceof VL&&c.forEach(function(A){a.context.Cta.propagate(A)});b instanceof RL&&JFc(a,b.jd(),!b.H);a.context.Ys.update(3)},JFc=function(a,b,c){var d;(null===(d=_.IJ(a.H))||void 0===d?0:_.R(d,15,!1))&&(b=fwc(b))&&zFc(a.Ga,b,c).then(function(e){a.Fo(e)})},IFc=function(a,b){(new Set([].concat(_.fc(a.Wy)))).forEach(function(c){b.Zh(c);
a.fk(c)})};
AM.prototype.fl=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.Dg).includes(A)}))):[]);c&&c instanceof _.Df&&_.JJ(c)&&KFc(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=LFc(this,r,q);if(null!=w)q.VA(w),MFc(this,v,p),boc(p),p=wvc(p,v,e),q.setItem(p);else if(null!=r)q=r,p=v;else continue;_.lI(this.H)&&CFc(this,p);!r||NFc(this,v,p,e)?(k.push(pxc(r,
q)),h.push(q)):h.push(r)}a=null;c&&(c instanceof _.Df&&(JFc(this,c,d),(a=Exc(this.Tt,c))&&a.fl(h,!!d)),c=yM(this,c),(a=this.V[c])&&a.fl(h,!!d));0<k.length&&(_.lI(this.H)&&k.forEach(function(A){return f.Lq.DP(A)}),DFc(this,k,e,a?[a]:[]),OFc(this,h));EDc(this.context).V9()};
var CFc=function(a,b){kyc(a.Lq,b)||5!=b.Lv()||_.sic(b,1)},NFc=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!_.Cj(b,c)},KFc=function(a,b,c){PFc(a,b,c);b.forEach(function(d,e){var f=a.Zl.H(d.getId());f&&(NK(f,d,[1002]),NK(f,d,[1003]),NK(f,d,[1005]),b[e]=f);_.kJ(c)&&0<_.se(c,33).length&&_.tic(d,_.se(c,33)[0])})},PFc=function(a,b,c){var d;_.kJ(c)?d="quick access":_.lJ(c)?d="people predict":_.mJ(c)&&(d="drive priority");c=b.map(function(e){return e.getId()}).join(", ");
a.log("Got "+b.length+" ItemSuggest items for "+d+": "+c)},oDc=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.fl(Goc(d),b)};AM.prototype.uma=function(a){this.qOa.uma(a)};
AM.prototype.Fo=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a[d],f=_.AI(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=LFc(this,h,l);if(null==p)continue;l.VA(p);MFc(this,k,f);_.R(e,5,!1)&&Enc(f,Tnc);boc(f);f=wvc(f,k);l.setItem(f);_.lI(this.H)&&CFc(this,f)}if(k&&!f||f&&NFc(this,k,f,[]))this.context.iLa.Py(e),c.push(pxc(h,l))}_.lI(this.H)&&c.forEach(function(q){return b.Lq.DP(q)});DFc(this,c,[])};
var MFc=function(a,b,c){b&&!c.Wm()&&NK(c,b,a.wa);var d=b?b.wf():null,e=c.wf();e=e?_.xe(e):null;d&&e&&MFc(a,_.xe(d),e);b&&!_.Lk(c)&&NK(c,b,[1002]);b&&!_.Mk(c).length&&NK(c,b,[1003]);b&&!_.Nk(c).length&&NK(c,b,[1005]);b&&_.Q(b,31)&&!_.Q(c,31)&&(Enc(c,Tnc),a.log("Cleared Item Suggest data for "+b.getId()+"."))};AM.prototype.MB=function(a,b){if(a instanceof _.Df||a instanceof _.WF||a instanceof _.QH)a=yM(this,a),(a=this.V[a])&&a.CY(b);else throw Error("Jg");};
var LFc=function(a,b,c){var d=c.getItem();if(Gyc(a.context.mga,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 tvc(b&&b.V,c.V)};AM.prototype.iG=function(a,b){(a=this.O.get(a))&&a.VA(tvc(a.V,b))};
var DFc=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&&uvc(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())_.wa(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&&QFc(a.context.iLa,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.LJ(h.id),a.ha.update(h);d.size&&a.context.Ys.goa(d.size);RFc(a)},RFc=function(a){var b=a.ha.O.slice(0),c=lFc(a.ha);mFc(a.ha);if(b.length){a.log("Refreshing shortcuts with unknown targets: "+b.join(", "));var d=new _.Qf;_.Rf(d,308);a.VI.TO(b,d,!0)}if(c.length){a.log("Updating locally stale shortcuts: "+
c.join(", "));b=Ivc(a.Zl,c);var e=[];Object.values(b).forEach(function(f){var h=f.getItem().wf(),k=a.Zl.H(_.z(h,1));k&&(_.G(h,5,k),_.x(h,4,1),e.push(f))});oDc(a,e)}},SFc=function(a){EDc(a.context).V9();a.O.LJ()},GFc=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},AFc=function(a,b){var c;null!==(c=_.IJ(a.H))&&void 0!==c&&_.R(c,1,!1)||(b=osc(a.Dg,b),a=a.W,zvc(a,a.items,a.fields,b))},EFc=function(a,b){var c;if(null===(c=_.IJ(a.H))||void 0===
c?0:_.R(c,1,!1))b=osc(a.Dg,b),a=a.W,zvc(a,a.items,a.fields,b)},OFc=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=_.Rf(new _.Qf,311);a.VI.TO(c,d)}})},dFc=function(a,b){a.ka.promise.then(function(){for(var c={},d=_.m(b),e=d.next();!e.done;c={i6:c.i6,Kra:c.Kra},e=d.next()){e=e.value;if(Exc(a.Tt,e))break;c.i6=new RL(a.context.Et,a.context.Uv,
a.context.Am,e);e=new bEc(a.context,c.i6,e);c.Kra=$L(a.context.Bx,null);e.mh().then(function(f){return function(){eEc(f.i6,f.Kra).then(function(h){hEc(a,f.i6,h)})}}(c)).then(function(){aM(a.context.Bx,null)},function(){aM(a.context.Bx,null)})}})};AM.prototype.Xo=function(){var a=this.Tt.H;return a&&a.PD?1:2};AM.prototype.log=function(a,b){this.context.Ce().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")},BFc=[50];
var UFc=function(a){_.N.call(this);var b=this;this.context=a;this.H=[];this.V=new _.Rk;this.O=new Map;this.ka=-1;this.ha=0;var c=_.Yh();this.wa=c.promise;EAc(this.context.XD).then(function(d){b.H=d||[];c.resolve();TFc(b)},function(){return c.resolve()});NL(this.context.Pj,["rVezo"],(0,_.L)(this.W,this))};_.K(UFc,_.N);
var iFc=function(a,b){_.R(a.context.Xc,46,!1)&&a.wa.then(function(){if(a.H[0]!==b){_.wa(a.H,b);for(xvc(a.context.Df.Zl.H(b))?a.log(b,"Hidden TD, not tracking in recency list"):_.ua(a.H,b,0);a.H.length>2*_.Dj(a.context.Xc,47,5);)a.H.pop();a.context.XD.set(yAc,a.H)}a.context.Df.Tt.OW().length+a.O.size<_.Dj(a.context.Xc,47,5)&&(TFc(a),a.W())})},VFc=function(a,b){_.wa(a.H,b)&&a.context.XD.set(yAc,a.H)};
UFc.prototype.Py=function(a){this.context.Cta.propagate(a);if(zL(a)){var b=a.uc();_.AI(a)?QFc(this,b,!0):(a=a.getItem(),xvc(a)&&VFc(this,b))}};var QFc=function(a,b,c){VFc(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.Df.Tt;for(var e=d.OW(),f=0;f<e.length;f++){var h=e[f];if(h.uc()===b){a.log(b,"Cache removed");d.remove(h);a.context.Ys.update(3);break}}xM(a.context).addCallback(function(k){k.vIa(b,c)});a.W()};
UFc.prototype.W=function(){if(this.context.Pj.H("rVezo")){var a=this.context.Df.Tt;WFc(this);for(var b={};this.V.Yb()&&!(this.ha>=_.Dj(this.context.Xc,47,5));){var c=_.Sk(this.V);this.ha++;Dxc(a,c)||this.O.has(c)||(this.O.set(c,null),b.Hfa=new _.Jhc,_.x(b.Hfa,1,c),this.context.Km().then(function(d){return function(e){return e.Pe(d.Hfa)}}(b)).then(this.ta.bind(this,c),this.ma.bind(this,c)));b={Hfa:b.Hfa}}}};
var TFc=function(a){a.H&&a.H.length&&(a.ha=0,a.V.clear(),a.H.forEach(function(b){a.V.enqueue(b)}))},WFc=function(a){_.n.clearTimeout(a.ka);a.ka=_.n.setTimeout(function(){TFc(a);a.W()},36E5)};UFc.prototype.ta=function(a,b){var c=_.z(b,1);c&&c>_.Dj(this.context.Xc,48,1E3)?(this.log(a,"Too large to backfill: "+_.z(b,1)),XFc(this,a,!1)):YFc(this,a)};
UFc.prototype.ma=function(a,b){(b=_.uI(b).Yj())&&4===b?(this.log(a,"Non-existent or inaccessible, removing from cache"),a=_.BI(_.Ngc(_.qI(new _.pI,a),a)),this.context.Df.Fo([a])):YFc(this,a)};
var YFc=function(a,b){var c=new VL(a.context.Et,a.context.Uv,b),d=c.jd().clone();d.Gi(_.Dj(a.context.Xc,48,1E3));d=new bEc(a.context,c,d);a.O.set(b,d);a.log(b,"Backfill started");var e=$L(a.context.Bx,b);xM(a.context).addCallback(function(f){f.iwa(b)});d.mh().then(function(){ZFc(a,b,c,e)},function(){a.log(b,"Backfill failed");a.ha--;XFc(a,b,!0)}).then(function(){aM(a.context.Bx,b)},function(){aM(a.context.Bx,b)})},ZFc=function(a,b,c,d){c.PD?(c.VX(),eEc(c,d).then(function(e){a.log(b,"Backfill complete, size: "+
c.getSize());hEc(a.context.Df,c,e);XFc(a,b,!1)},function(){a.log(b,"Backfill changes failed");XFc(a,b,!0)})):(a.log(b,"Backfill exceeded size limit"),XFc(a,b,!0))},XFc=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.vIa(b,!1)});a.W();0<a.O.size||a.context.Df.Tt.OW().map(function(e){return e.uc()}).filter(function(e){return!a.H.includes(e)}).forEach(function(e){QFc(a,e,!0)})};
UFc.prototype.log=function(a,b){this.context.Ce().info("drive.ds.sync.cache.TeamDriveCacheManager",a+" | "+b)};
var $Fc=function(){_.N.apply(this,arguments)};_.K($Fc,_.N);
var cGc=function(a,b){b=aGc(b);var c=a.getItem(),d=bGc(c.getCapabilities());b.M4.forEach(function(e){_.zVb(e.getItem(),c.Dp());_.QJ(e.getItem(),d.clone())});return b},fGc=function(a,b,c){var d=dGc(c);c=c.find(function(e){return e.getId()===b.getId()});c={JK:c?c:new yL(b),children:[]};eGc(a,d,c);return c},dGc=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().wk()),e=d.next();!e.done;e=d.next())e=e.value,b[e]||(b[e]=[]),b[e].push(c)}return b},eGc=
function(a,b,c){var d=c.JK.getItem();(b[d.getId()]||[]).forEach(function(e){c.children.push(eGc(a,b,{JK:e,parent:c,children:[]}))});return c},hGc=function(a,b){b=b.children.filter(function(l){return!_.Kk(l.JK.getItem())});for(var c=new Map,d=[];b.length;){var e=b.pop(),f=e.JK.getItem();if(!c.has(f.getId())){_.zVb(f,a.Dp());gGc(a,f,e.parent?e.parent.JK.getItem():void 0);for(var h=_.m(e.children),k=h.next();!k.done;k=h.next())k=k.value,_.Kk(k.JK.getItem())||b.push(k);c.set(f.getId(),!0);d.push(e.JK)}}return d},
iGc=function(a){a=a.children.filter(function(h){return!_.Kk(h.JK.getItem())});for(var b=new Map,c=[];a.length;){var d=a.pop(),e=d.JK.getItem();if(!b.has(e.getId())){c.push(_.BI(_.qI(new _.pI,e.getId())));d=_.m(d.children);for(var f=d.next();!f.done;f=d.next())f=f.value,_.Kk(f.JK.getItem())||a.push(f);b.set(e.getId(),!0)}}return c},aGc=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();_.Kk(e)||_.Q(e,137)?c.push(e):b.push(d)}return{gR:c,M4:b}},bGc=
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,_.Ck(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},gGc=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,_.Ck(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,_.Kk(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 jGc=function(a){this.context=a;this.V=new $Fc;this.logName="drive.ds.sync.change.TdChangeProcessor";this.O=_.Rf(new _.Qf,306);this.H=a.Df};
jGc.prototype.propagate=function(a){if(zL(a))_.AI(a)?kGc(this,a):lGc(this,a);else if(_.R(this.context.Xc,86,!1)){var b=a.qc(),c=this.H.Zl.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=!!_.Kk(c),!_.AI(a)){e=a.getItem();var f=e.Dp()!==c.Dp();d=_.Kk(c)!==_.Kk(e)||d&&f}if(d)if(_.AI(a)){if(a=mGc(this,c.uc()),c=this.V,d=(new _.Ik).Nb(b),a=(a=fGc(c,d,a))?iGc(a):[],this.context.Df.Fo(a),this.log(b,"SD shared folder delete | Removed "+a.length+
" item(s)"),b=dL(this.context.mk(),106009))c=qsc(b),_.x(c,2,a.length),b.Dj()}else if(b=a.getItem(),c=mGc(this,b.uc()),d=this.V,b=a.getItem(),b=(c=fGc(d,b,c))?hGc(b,c):[],oDc(this.context.Df,b),this.log(a.qc(),"SD shared folder update | Updated "+b.length+" item(s)"),a=dL(this.context.mk(),106010))c=qsc(a),_.x(c,1,b.length),a.Dj()}};
var kGc=function(a,b){var c=b.qc();b=mGc(a,c);b=aGc(b);var d=_.Bf(b.M4,function(e){return _.BI(_.qI(new _.pI,e.getId()))});a.context.Df.Fo(d);a.H.VI.TO(b.gR.map(function(e){return e.getId()}),a.O,void 0,void 0,b.gR.map(function(e){return _.ll((new _.jl).Nb(e.getId()),_.Ok(e))}));a.log(c,"SD delete | Remove "+d.length+" item(s), "+(b.gR.length+" divergent items"));if(a=dL(a.context.mk(),106016))c=rsc(a),_.x(c,1,b.gR.length),_.x(c,2,b.M4.length),a.Dj()},lGc=function(a,b){var c=b.qc(),d=mGc(a,c),e=a.H.Zl.H(c);
b=cGc(b,d);oDc(a.context.Df,b.M4);a.H.VI.TO(b.gR.map(function(h){return h.getId()}),a.O,void 0,void 0,b.gR.map(function(h){return _.ll((new _.jl).Nb(h.getId()),_.Ok(h))}));a.log(c,"SD update | Update "+b.M4.length+" item(s), "+(b.gR.length+" divergent items"));if(d=dL(a.context.mk(),106017)){var f=rsc(d);_.x(f,1,b.gR.length);_.x(f,2,b.M4.length);d.Dj()}e||$Dc(a.H.VI,c)},mGc=function(a,b){var c=new _.Df;_.ql(c,[b]);_.rl(c,2);return Kvc(a.H.Zl,c)};
jGc.prototype.log=function(a,b){this.context.Ce().info(this.logName,a+": "+b)};
var nGc=function(a,b,c){this.H=a;this.V=b;this.FJ=c},rGc=function(a,b,c){if(b.sW().length){var d=Cyc(a.H,b.qc());if(d){var e=d?Dyc(a.H,b):[];for(var f={},h=_.m(b.sW()),k=h.next();!k.done;f={KI:f.KI},k=h.next())if(k=k.value,f.KI=oGc(e,k.Hm(),b.qc()),_.Q(k,3))Jyc(a.H,f.KI),c.then(function(r){return function(){var v=syc(r.KI);a.H.O.H.delete(v)}}(f),function(r){return function(){var v=syc(r.KI);a.H.O.H.delete(v)}}(f));else{for(var l=_.m(_.yb(k,_.TF,2)),p=l.next();!p.done;p=l.next())pGc(a,f.KI,p.value);
k=_.m(_.se(k,4));for(l=k.next();!l.done;l=k.next())qGc(f.KI,l.value);a.H.MD([f.KI],!1,-1);c.then(function(r){return function(){return void a.H.iG(r.KI.getName(),-2)}}(f),function(r){return function(){a.H.iG(r.KI.getName(),-2)}}(f))}e=a.Zc(d.nk().response)}}e=e?e:a.Zc();var q=e.W5a;c.then(function(r){q.resolve(r)},function(r){q.reject(_.wd(r));a.handleError(b.qc(),r)});return e};nGc.prototype.Zc=function(a){a=void 0===a?new KL:a;return new rwc(a.Dc(1))};
var oGc=function(a,b,c){var d=a.find(function(e){return ryc(e.getName(),b)});d||(d=Twc((new JL).$c(b),c),a.push(d));return d};nGc.prototype.handleError=function(a,b){Nyc(this.V,a);a=_.uI(b);_.x(a,21,"Server error updating metadata after optimistic application.");this.FJ(a)};
var pGc=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])),sGc(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))_.se(c,6).length?d.Vpa(_.se(c,6)):_.se(c,5).length&&(a=_.se(d,7).concat(_.se(c,5)),d.Vpa(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))_.se(c,10).length?d.Rpa(_.se(c,10)):_.se(c,9).length&&(a=d.bOa().concat(_.se(c,9)),d.Rpa(a));else if(7===iL(d))d.setIntegerValue(_.z(c,11));else if(8===iL(d))_.se(c,13).length?d.Ipa(_.se(c,13)):_.se(c,12).length&&(a=_.se(d,12).concat(_.se(c,12)),d.Ipa(a));else if(10===iL(d))d.setUserValue(a.O(_.z(c,14)));else if(11===iL(d))_.se(c,16).length?ktc(d,_.se(c,16).map(a.O)):_.se(c,15).length&&ktc(d,d.RYa().concat(_.se(c,15).map(a.O)));else throw new _.Gc("Optimistic Applier: Unsupported value type "+
(iL(d)+"."),new _.Fc);},qGc=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))_.fI(a,7);else if(4===iL(a))_.vb(a,8);else if(5===iL(a))_.vb(a,9);else if(6===iL(a))_.fI(a,10);else if(7===iL(a))_.vb(a,11);else if(8===iL(a))_.fI(a,12);else if(10===iL(a))_.rj(a,15);else if(11===iL(a))_.tj(a,16);else throw new _.Gc("Optimistic Applier: Unsupported value type "+(iL(a)+"."),new _.Fc);},sGc=function(a,
b){_.lj(b,3)?a.jB(1):_.lj(b,17)?a.jB(12):_.lj(b,4)?a.jB(2):_.se(b,6).length||_.se(b,5).length?a.jB(3):_.lj(b,7)?a.jB(4):_.lj(b,8)?a.jB(5):_.se(b,10).length||_.se(b,9).length?a.jB(6):_.lj(b,11)?a.jB(7):_.se(b,13).length||_.se(b,12).length?a.jB(8):_.lj(b,14)?a.jB(10):(_.se(b,16).length||_.se(b,15).length)&&a.jB(11)};nGc.prototype.O=function(a){return _.eic(_.cic(1),a)};
var tGc=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.Dg=f;this.ha=0;this.V=k;this.W=l;this.Ba=h};
tGc.prototype.apply=function(a,b){var c=this;if(!_.HJ(a))return b;var d=null;a instanceof _.YI?d=uGc(this,a,b):a instanceof _.eJ?d=vGc(this,a,b):a instanceof _.wI?d=wGc(this,a,b):a instanceof _.TI?d=xGc(this,a,b):a instanceof _.zJ&&(d=rGc(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?_.Vh(d):b};
var uGc=function(a,b,c){Fyc(a.O,b.getId());var d=a.H.Zl.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=_.uI(e);_.x(e,21,"Server error deleting item after optimistic application.");a.V(e)});return(new _.GJ).Dc(1)},vGc=function(a,b,c){var d=_.z(b,2);d&&a.O.O.push(d);c.then(function(){d&&Hyc(a.O,d)&&yGc(a,d,new _.wkc(1E4,3E5),Date.now()+72E5,5).then(function(){a.W("VMiG2e")},
function(){a.W("VMiG2e")})},function(){d&&_.wa(a.O.O,d)});c.then(null,function(e){e=_.uI(e);_.x(e,21,"Server error emptying trash after optimistic application.");a.V(e)});return(new _.GJ).Dc(1)},yGc=function(a,b,c,d,e){if(Date.now()>d||0>=e)return _.Vh();var f=_.Yh(),h=c.Wa();_.YH(c);setTimeout(function(){a.ma.then(function(k){var l=_.Rf(new _.Qf,1425);l=Foc(!0,1,l);return k.Pe(l).then(function(p){if(p=p.Zc())if(p=p.Bd()[0],!p||(p.Cw()||0)>b){f.resolve();return}yGc(a,b,c,d,e).then(function(){f.resolve()},
function(){f.resolve()})},function(){var p=yGc(a,b,c,d,e-1);p.then(function(){f.resolve()},function(){f.resolve()});return p})})},h);return f.promise},xGc=function(a,b,c){var d=b.uc(),e=a.H.Zl.H(d);if(!e)return null;e=e.clone();BDc(a.H,[e],[157]);var f=e.Vh();zGc(f,_.yb(b,_.Gk,2));AGc(f,_.yb(b,_.Gk,3));a.H.fl([e],-1,void 0,void 0,[157]);c.then(function(){a.H.iG(d,-2)},function(){a.H.iG(d,-2)});c.then(function(h){a.H.fl([_.y(h,_.Ik,2)],1,void 0,void 0,[157])},null);c.then(null,function(h){h=_.uI(h);
_.x(h,21,"Server error updating item after optimistic application.");a.V(h)});return KAc(new JAc,e).Dc(1)},zGc=function(a,b){var c={};b=_.m(b);for(var d=b.next();!d.done;c={xfa:c.xfa},d=b.next())c.xfa=d.value,_.yb(a,_.Gk,8).some(function(e){return function(f){return f.Hm()==e.xfa.Hm()}}(c))||_.yj(a,8,c.xfa,_.Gk,void 0)},AGc=function(a,b){var c=b.map(function(d){return d.Hm()});b=_.yb(a,_.Gk,8).filter(function(d){return!c.includes(d.Hm())});Mnc(a,b)},wGc=function(a,b,c){var d=a.H.Zl.H(b.getId());if(!d||
d.uc()&&0==b.Qh()||null!=_.Q(b,40))return null;var e=_.se(b,10),f=_.se(b,9);if(0<e.length&&0<f.length&&(e=Object.values(Jvc(a.H.Zl,e.concat(f))).map(function(k){return k.uc()||"root"}),_.Ga(e),1<e.length))return null;var h=d.clone();BGc(a,b,h);a.H.fl([h],-1,void 0,void 0,msc(a.Dg));c.then(function(){return a.H.iG(b.getId(),-2)},function(){a.H.iG(b.getId(),-2);a.ta(b.getId(),d)});c.then(null,function(k){k=_.uI(k);if(63==k.Yj()){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 _.ljc((new _.GJ).setItem(h),h.getId()).Dc(1)},BGc=function(a,b,c){null!=b.zf()&&c.ll(b.zf());null!=b.Mi()&&_.qic(c,b.Mi());null!=b.getMimeType()&&_.cG(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.hw(_.Q(b,4));null!=_.Q(b,16)&&_.x(c,31,_.Q(b,16));null!=b.getTitle()&&c.setTitle(b.getTitle());null!=b.Qh()&&(c.Pn(b.Qh()),_.x(c,26,b.Qh()));null!=_.Q(b,18)&&_.JK(aoc(c,!0),_.Q(b,18));_.se(b,8).length&&_.PJ(c,_.se(b,8));if(_.se(b,
9).length){var d=new Set(c.wk());_.se(b,9).forEach(function(p){return d.add(p)});_.PJ(c,[].concat(_.fc(d)))}if(_.se(b,10).length){var e=new Set(c.wk());_.se(b,10).forEach(function(p){return e.delete(p)});_.PJ(c,[].concat(_.fc(e)));var f=c.ax();f&&_.se(b,10).includes(f)&&_.vb(c,46)}if(!c.ax()){var h=a.Ba();f=c.wk().find(function(p){var q=a.H.Zl.H(p);return q&&!!q.ax()||p==h});_.x(c,46,f||void 0)}c.wk().length&&(f=a.H.Zl.H(c.wk()[0]))&&_.tic(c,f.uc());if(f=_.y(b,_.Dk,25)){var k=_.y(c,_.Dk,111)||new _.Dk;
null!=_.Q(f,1)&&k.oP(_.Q(f,1));null!=_.z(f,2)&&_.x(k,2,_.z(f,2));_.G(c,111,k)}var l=_.se(c,120);_.se(b,31).forEach(function(p){l.includes(p)||l.push(p)});_.se(b,32).forEach(function(p){_.wa(l,p)});_.qj(c,120,l)};tGc.prototype.ta=function(a,b){var c=this,d=_.YF(new _.WF,[a]);this.ma.then(function(e){return e.Pe(d)}).then(function(e){e=e.Zc().Bd()[0];c.H.fl([e.clone()],1)},function(){b&&c.H.fl([b.clone()],1)})};
var CGc=function(a){this.H=a};_.K(CGc,_.nmc);CGc.prototype.execute=function(a,b,c){var d=_.nmc.prototype.execute.call(this,a,b,c);if(d)return d;if(c.tMa||b instanceof _.mI&&_.JJ(b.jd()))if(c=Gsc(this.H))return c;return b instanceof _.eJ?(c=_.Rf(new _.Qf,1424),a.Pe(Foc(!1,1,c)).then(function(e){(e=e.Zc())&&(e=e.Bd()[0])&&_.lj(e,96)&&b.Ida(e.Cw())},_.hg)):null};
var apc=function(a,b){return[DGc,EGc,FGc,GGc].reduce(function(c,d){var e;0!==c?e=c:e=_.Ha(d(a),d(b));return e},0)},DGc=function(a){return HGc[a.Bf()]},EGc=function(a){return IGc[a.getType()]},FGc=function(a){return a.getName()||""},GGc=function(a){return a.getId()||""},BM={},HGc=(BM[5]=0,BM[7]=1,BM[1]=2,BM[3]=3,BM[4]=4,BM[2]=5,BM[6]=6,BM),JGc={},IGc=(JGc[1]=0,JGc[2]=1,JGc[3]=2,JGc[4]=3,JGc);
var KGc=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.Dg=l};
KGc.prototype.apply=function(a,b){var c=this;if(!(b instanceof _.GJ&&8===b.Cb()))if(a instanceof _.SI||a instanceof _.UI||a instanceof _.zhc||a instanceof _.rJ||a instanceof _.wI||a instanceof _.BJ||a instanceof _.Hhc||a instanceof _.DJ||a instanceof RK){var d=_.zI(b.getItem().clone(),9);this.H.fl([d],1);hzc(this.ta,b.getItem(),_.bK(this.Dg))}else if(a instanceof _.YI)b=_.BI(_.qI(new _.pI,a.getId())),this.H.Fo([b]);else if(a instanceof _.aJ)b=_.BI(_.Ngc(_.qI(new _.pI,a.getId()),a.getId())),this.H.Fo([b]),
this.ma.propagate(b);else if(a instanceof _.eJ)b=Foc(!0).jd(),b=this.H.Zl.query(b).map(function(e){return _.BI(_.qI(new _.pI,e.getId()))}),this.H.Fo(b);else if(a instanceof _.WI)this.O.remove(a.Ih());else if(a instanceof _.hJ||a instanceof _.yJ)this.O.put(b.Ar());else if(a instanceof _.ZI)$oc(this.H,a);else if(a instanceof _.oD)this.W.remove(a.getKey());else if(a instanceof _.iJ)bpc(this.H,a,_.y(b,_.vk,2));else if(a instanceof _.pD)this.W.put(b.mOa());else if(a instanceof _.VI||a instanceof _.CJ)this.ha.MD([b.un()],
!1);else if(a instanceof _.bJ)this.ha.MD([Kyc(a.getId())],!1);else if(a instanceof _.yhc)this.V.MD(b.response.H(),!1,1);else if(a instanceof _.zJ)a.sW().filter(function(e){return _.Q(e,3)}).forEach(function(e){return c.V.removeItem(e.Hm()||"",a.qc())}),Nyc(this.ka,a.qc()),this.H.n4a(a.qc());else if(a instanceof _.gK)for(b=_.m(_.yb(a,_.ntc,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.Zl.H(d.qc()))d=
_.qI(Mrc(),d.getId()).setItem(d.clone()),this.H.Fo([d])}}};
var LGc=function(a){this.H=a};
LGc.prototype.translate=function(a){if(a instanceof _.vJ){var b=this.H.H(a.getId());if(!b)return new _.Fc;var c=(new _.wI).Nb(a.getId());if(b.uc()){var d=b.getCapabilities();_.Pe(d)||_.Q(d,9)?c.Pn(!0):_.xI(c,!1)}else d=a.getParent(),1===b.Dp()?c.Pn(!0):d?(b=this.H.H(d),!b||_.Q(b.getCapabilities(),7)?Hrc(c,[d]):_.xI(c,!1)):_.xI(c,!1);return c}if(a instanceof _.wJ)return Jrc(Irc(Hrc(Grc((new _.wI).Nb(a.getId()),_.se(a,2)),_.se(a,3)),_.Q(a,6)),_.yb(a,_.jl,8));if(a instanceof _.xJ){b=this.H.H(a.getId());
if(!b)return new _.Fc;c=(new _.wI).Nb(a.getId());b.uc()?(d=b.getCapabilities(),_.Pe(d)||_.Q(d,9)?c.Pn(!1):_.xI(c,!0)):(d=a.getParent(),1===b.Dp()?c.Pn(!1):d?(b=this.H.H(d),!b||_.Ck(b.getCapabilities())?Grc(c,[d]):_.xI(c,!0)):_.xI(c,!0));return c}if(a instanceof _.tK)return new _.zhc(a);if(a instanceof _.nM)return _.se(a,1).map(function(f){var h=new _.zJ;f=_.x(h,1,f);h=a.sW();f=_.sj(f,2,h);h=a.se();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 xsc(new _.eJ,a).Ida(e)}return a};
var MGc=function(){};MGc.prototype.validate=function(a){var b=null;a instanceof _.nJ?(a=a.getId()||"",_.Te(a)&&(b="Tried to request backup with no id.")):a instanceof _.XI&&(a=a.getId()||"",_.Te(a)&&(b="Tried to delete backup with no id."));return b?_.uI(b):null};
var NGc=function(a,b){this.H=a;this.O=b},QGc=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=OGc(a,b);a=Arc(zrc(_.yrc(new _.pxb,a),b.rootFolderId),b.domainSharingPolicy);b.gsuiteSubscriptionInfo&&(e=b.gsuiteSubscriptionInfo,_.Crc(a,_.nrc(_.mrc((new _.TB).Dc(PGc.get(e.status)),Number(e.trialMillisRemaining)),_.CK(e.trialEndTime))));b.teamDashboardCapabilities&&(e=b.teamDashboardCapabilities,_.Drc(a,_.prc(_.orc(new _.kxb,e.canAdministerTeam),e.canManageInvites)));
b.importFormats&&Brc(a,b.importFormats.map(function(f){var h=new _.xrc;h=_.x(h,1,f.source);return _.qj(h,2,f.targets)}));_.G(d,3,a);_.LAc(c,d);b=b.largestChangeId;null!=b&&_.x(c,4,Number(b));return c},OGc=function(a,b){var c;var d=new _.oxb;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=_.trc(_.src(_.rrc(_.qrc(d,dpc(b.quotaBytesByService||[])),b.quotaType?RGc.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)-fpc(b);d=_.x(d,9,e);d=_.urc(d,Number(b.quotaBytesUsedAggregate));d=_.x(d,11,Number(b.quotaBytesUsedInTrash));d=_.x(d,13,_.Znc(Number(b.quotaBytesUsedAggregate),Number(b.quotaBytesTotal)));d=_.vrc(d,SGc.get(b.quotaStatus)||0);if(b.graceQuotaInfo&&b.graceQuotaInfo.endDate){e=new _.nxb;var f=_.u7a(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.eK())&&(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},SGc=new Map([["softLimitExceeded",2],["hardLimitExceeded",3],["underLimit",1]]),epc=new Set(["POOLED_STORAGE","FAMILY"]),PGc=new Map([["isInTrial",1],["hasPaidContract",2],["noSubscription",3],["trialExpired",4]]),cpc=new Map([["DRIVE",1],["FAMILY",4],["GMAIL",2],["PHOTOS",3],["POOLED_STORAGE",5]]),RGc=new Map([["LIMITED",1],["UNLIMITED",2],["POOLED",3]]);
var TGc=new Map([["TYPE_UNSPECIFIED",0],["MOBILE",1],["SYNC_CLIENT",2],["APP",3]]),UGc=new Map([["TYPE_UNSPECIFIED",0],["MY_DRIVE_ROOT",1],["SHARED_DRIVE_ROOT",2],["STANDARD_FOLDER",3]]),VGc=new Map([["TYPE_UNSPECIFIED",0],["USER_DELETION",1],["TRASH_AUTO_PURGE",2],["MULTIPARENTING_MIGRATION",4]]),WGc=new Map([["TYPE_UNSPECIFIED",0],["TRASH",1],["PERMANENT_DELETE",2]]),XGc=new Map([["TYPE_UNSPECIFIED",0],["UNTRASH",1],["REVIVE",2]]),YGc=new Map([["ROLE_UNSPECIFIED",0],["OWNER",1],["ORGANIZER",2],
["FILE_ORGANIZER",3],["EDITOR",4],["COMMENTER",5],["VIEWER",6],["PUBLISHED_VIEWER",7]]),ZGc=new Map([["SUBTYPE_UNSPECIFIED",0],["ADDED",1],["DELETED",2],["REPLY_ADDED",3],["REPLY_DELETED",4],["RESOLVED",5],["REOPENED",6]]),$Gc=new Map([["SUBTYPE_UNSPECIFIED",0],["ADDED",1],["DELETED",2],["REPLY_ADDED",3],["REPLY_DELETED",4],["RESOLVED",5],["REOPENED",6],["REASSIGNED",7]]),aHc=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]]),bHc=new Map([["TYPE_UNSPECIFIED",0],["FLAGGED",1],["CLEARED",2]]),cHc=new Map([["TYPE_UNSPECIFIED",0],["LOADED_FOR_VIEW",1],["VIEWED_MORE_CONTENT",2],["OPEN_WITH_APP_INITIATED",3]]),dHc=new Map([["DOMAIN_VISIBILITY_UNKNOWN",0],["DOMAIN_VISIBILITY_CONSUMER",1],["DOMAIN_VISIBILITY_SAME_DOMAIN",2],["DOMAIN_VISIBILITY_ALL_DOMAINS",3],["DOMAIN_VISIBILITY_RESTRICTED",4]]),eHc=new Map([["NAMED_PARTY_UNKNOWN",0],["NAMED_PARTY_UNNAMED",1],["NAMED_PARTY_NAMED",
2]]),fHc=new Map([["TYPE_UNSPECIFIED",0],["DOWNLOADED",1],["DOWNLOAD_INITIATED",2],["PRINT_INITIATED",3]]),gHc=new Map([["UNSPECIFIED_REFERENCE_TYPE",0],["LINK",1],["DISCUSS",2]]),hHc=new Map([["FEATURE_UNSPECIFIED",0],["SHARING_OUTSIDE_DOMAIN",1],["DIRECT_SHARING",2],["ITEM_DUPLICATION",3],["DRIVE_FILE_STREAM",4]]),iHc=new Map([["RESTRICTION_UNSPECIFIED",0],["UNRESTRICTED",1],["FULLY_RESTRICTED",2]]),jHc=new Map([["STATUS_UNSPECIFIED",0],["IN_PROGRESS",1],["COMPLETED",2],["CANCELLED",3]]),kHc=new Map([["DECISION_UNSPECIFIED",
0],["APPROVED",1],["DECLINED",2]]),lHc=new Map([["TYPE_UNSPECIFIED",0],["LABEL_ADDED",1],["LABEL_REMOVED",2],["LABEL_FIELD_VALUE_CHANGED",3]]),mHc=new Map([["PUBLISH_MODE_UNSPECIFIED",0],["NONE",1],["FIXED",2],["AUTO",3]]),nHc=new Map([["REASON_UNSPECIFIED",0],["ORPHAN_REPARENTED",1]]),uHc=function(a){return a.map(function(b){var c=new _.PAc;if(b.primaryActionDetail){var d=oHc(b.primaryActionDetail);_.G(c,2,d)}b.actors&&(d=pHc(b.actors),_.sj(c,3,d));b.actions&&(d=qHc(b.actions),_.sj(c,4,d));b.targets&&
(d=rHc(b.targets),_.sj(c,5,d));b.timestamp&&c.V(sHc(b.timestamp));b.timeRange&&(b=tHc(b.timeRange),_.wj(c,7,_.hM,b));return c})},qHc=function(a){return a.map(function(b){var c=new _.MAc;if(b.detail){var d=oHc(b.detail);_.G(c,1,d)}if(b.source){d=b.source;var e=new Juc;if(d.type){var f=TGc.get(d.type);_.Lj(e,2,f)}d.appId&&_.Jj(e,1,d.appId);_.G(c,2,e)}b.actor&&(d=vHc(b.actor),_.G(c,3,d));b.target&&(d=wHc(b.target),_.G(c,4,d));b.timestamp&&c.V(sHc(b.timestamp));b.timeRange&&(b=tHc(b.timeRange),_.wj(c,
6,_.NAc,b));return c})},rHc=function(a){return a.map(function(b){return wHc(b)})},yHc=function(a){return a.map(function(b){return xHc(b)})},zHc=function(a){return a.map(function(b){var c=new _.tuc;b.parent&&c.Ug(xHc(b.parent));b.shortcut&&(b=xHc(b.shortcut),_.G(c,2,b));return c})},wHc=function(a){var b=new _.Ruc;if(a.driveItem){var c=AHc(a.driveItem);_.wj(b,1,_.sL,c)}if(a.drive){var d=a.drive;c=new _.Puc;d.name&&c.$c(d.name);d.title&&c.setTitle(d.title);d.root&&(d=AHc(d.root),_.G(c,3,d));_.wj(b,5,
_.sL,c)}a.fileComment&&(a=a.fileComment,c=new _.Quc,a.legacyCommentId&&_.Jj(c,1,a.legacyCommentId),a.legacyDiscussionId&&_.Jj(c,2,a.legacyDiscussionId),a.linkToDiscussion&&_.Jj(c,3,a.linkToDiscussion),a.parent&&c.Ug(AHc(a.parent)),_.wj(b,3,_.sL,c));return b},xHc=function(a){var b=new _.lL;if(a.driveItem){var c=a.driveItem,d=new cuc;c.name&&d.$c(c.name);c.title&&d.setTitle(c.title);if(c.driveFile){var e=new auc;_.wj(d,8,buc,e)}c.driveFolder&&(e=BHc(c.driveFolder),_.wj(d,9,buc,e));c.driveShortcut&&
(c=CHc(c.driveShortcut),_.wj(d,10,buc,c));_.wj(b,1,duc,d)}a.drive&&(a=DHc(a.drive),_.wj(b,3,duc,a));return b},AHc=function(a){var b=new _.$tc;a.name&&b.$c(a.name);a.title&&b.setTitle(a.title);a.mimeType&&_.Jj(b,6,a.mimeType);var c=Number(a.version);isFinite(c)&&_.Ij(b,5,c);if(a.owner){var d=a.owner;c=new Wtc;d.domain&&c.Nn(EHc(d.domain));if(d.user){var e=CM(d.user);_.wj(c,1,_.Vtc,e)}d.drive&&(d=DHc(d.drive),_.wj(c,4,_.Vtc,d));_.G(b,7,c)}a.driveFile&&(c=new auc,_.wj(b,8,Xtc,c));a.driveFolder&&(c=BHc(a.driveFolder),
_.wj(b,9,Xtc,c));a.driveShortcut&&(a=CHc(a.driveShortcut),_.wj(b,10,Xtc,a));return b},DHc=function(a){var b=new Utc;a.name&&b.$c(a.name);a.title&&b.setTitle(a.title);return b},BHc=function(a){var b=new Ytc;a.type&&(a=UGc.get(a.type),_.Lj(b,6,a));return b},CHc=function(a){var b=new Ztc;a.targetName&&_.Jj(b,1,a.targetName);a.targetMimeType&&_.Jj(b,2,a.targetMimeType);return b},pHc=function(a){return a.map(function(b){return vHc(b)})},vHc=function(a){var b=new _.Ouc;if(a.user){var c=CM(a.user);_.wj(b,
1,_.rL,c)}a.anonymous&&(c=new Luc,_.wj(b,2,_.rL,c));if(a.impersonation){var d=a.impersonation;c=new _.Muc;d.impersonatedUser&&(d=CM(d.impersonatedUser),_.G(c,1,d));_.wj(b,3,_.rL,c)}a.system&&(d=a.system,c=new _.Nuc,d.type&&(d=VGc.get(d.type),_.Lj(c,1,d)),_.wj(b,4,_.rL,c));a.administrator&&(a=new _.Kuc,_.wj(b,5,_.rL,a));return b},FHc=function(a){return a.map(function(b){return CM(b)})},CM=function(a){var b=new _.Btc;if(a.knownUser){var c=a.knownUser,d=new _.ztc;c.personName&&_.Jj(d,1,c.personName);
c.isCurrentUser&&_.Hj(d,2,c.isCurrentUser);c.displayName&&_.Jj(d,3,c.displayName);c.photoUrl&&d.On(c.photoUrl);_.wj(b,2,_.ytc,d)}a.unknownUser&&(c=new Ctc,_.wj(b,4,_.ytc,c));a.deletedUser&&(a=new _.Atc,_.wj(b,3,_.ytc,a));return b},sHc=function(a){var b=(new Date(a)).getTime();a=Math.floor(b/1E3);b=b%1E3*1E6;return _.t7a((new _.Hy).setSeconds(a),b)},tHc=function(a){var b=new _.gM;a.startTime&&b.gZ(sHc(a.startTime));a.endTime&&b.iP(sHc(a.endTime));return b},EHc=function(a){var b=new Ttc;a.name&&b.$c(a.name);
a.legacyId&&_.Jj(b,3,a.legacyId);a.audienceDisplayName&&_.Jj(b,4,a.audienceDisplayName);return b},oHc=function(a){var b=new _.qL;if(a.create){var c=a.create,d=new _.guc;if(c.new){var e=new huc;_.wj(d,1,_.euc,e)}c.upload&&(e=new iuc,_.wj(d,2,_.euc,e));c.copy&&(e=c.copy,c=new _.fuc,e.originalObject&&(e=xHc(e.originalObject),_.G(c,1,e)),_.wj(d,3,_.euc,c));_.wj(b,1,_.pL,d)}a.edit&&(d=new nuc,_.wj(b,2,_.pL,d));if(a.move){c=a.move;d=new _.vuc;c.addedParents&&(e=yHc(c.addedParents),_.sj(d,1,e));c.removedParents&&
(e=yHc(c.removedParents),_.sj(d,2,e));c.fromOwnershipTransfer&&_.Hj(d,3,c.fromOwnershipTransfer);c.reparents&&(e=c.reparents.map(GHc),_.sj(d,4,e));if(c.multiparentingMigration){e=c.multiparentingMigration;c=new _.uuc;if(e.removedParents){var f=yHc(e.removedParents);_.sj(c,2,f)}e.migratedParents&&(e=zHc(e.migratedParents),_.sj(c,1,e));_.G(d,5,c)}_.wj(b,3,_.pL,d)}a.rename&&(d=a.rename,c=new _.Buc,d.oldTitle&&_.Jj(c,1,d.oldTitle),d.newTitle&&_.Jj(c,2,d.newTitle),_.wj(b,4,_.pL,c));a.delete&&(c=a.delete,
d=new _.luc,c.type&&(c=WGc.get(c.type),_.Lj(d,1,c)),_.wj(b,5,_.pL,d));a.restore&&(c=a.restore,d=new _.Cuc,c.type&&(c=XGc.get(c.type),_.Lj(d,1,c)),_.wj(b,6,_.pL,d));a.permissionChange&&(c=a.permissionChange,d=new _.yuc,c.addedPermissions&&(e=HHc(c.addedPermissions),_.sj(d,1,e)),c.removedPermissions&&(e=HHc(c.removedPermissions),_.sj(d,2,e)),c.resharedPermissions&&(e=HHc(c.resharedPermissions),_.sj(d,3,e)),c.otherActivePermissions&&(c=HHc(c.otherActivePermissions),_.sj(d,4,c)),_.wj(b,7,_.pL,d));if(a.comment){c=
a.comment;d=new _.Stc;c.post&&(f=c.post,e=new _.Ptc,f.subtype&&(f=ZGc.get(f.subtype),_.Lj(e,1,f)),_.wj(d,1,_.Otc,e));if(c.assignment){f=c.assignment;e=new _.Qtc;if(f.subtype){var h=$Gc.get(f.subtype);_.Lj(e,1,h)}f.assignedUser&&(f=CM(f.assignedUser),_.G(e,7,f));_.wj(d,2,_.Otc,e)}c.suggestion&&(f=c.suggestion,e=new _.Rtc,f.subtype&&(f=aHc.get(f.subtype),_.Lj(e,1,f)),_.wj(d,3,_.Otc,e));c.mentionedUsers&&(c=FHc(c.mentionedUsers),_.sj(d,7,c));_.wj(b,8,_.pL,d)}a.dlpChange&&(c=a.dlpChange,d=new _.kuc,c.type&&
(c=bHc.get(c.type),_.Lj(d,1,c)),_.wj(b,9,_.pL,d));if(c=a.view){d=new Iuc;(e=cHc.get(c.type))&&_.Lj(d,1,e);if(e=c.viewHistoryVisibility)c=new Huc,(f=dHc.get(e.domainPolicyVisibilityState))&&_.Lj(c,1,f),(e=eHc.get(e.namedPartyState))&&_.Lj(c,2,e),_.G(d,2,c);_.wj(b,10,_.pL,d)}if(c=a.download)d=new muc,(c=fHc.get(c.type))&&_.Lj(d,1,c),_.wj(b,11,_.pL,d);a.reference&&(c=a.reference,d=new _.ttc,c.type&&(e=gHc.get(c.type),_.Lj(d,1,e)),c.context&&(c=c.context,e=new stc,c.description&&e.ll(c.description),c.url&&
_.Jj(e,2,c.url),_.G(d,2,e)),_.wj(b,12,_.pL,d));a.settingsChange&&(c=a.settingsChange,d=new _.Fuc,c.restrictionChanges&&(c=IHc(c.restrictionChanges),_.sj(d,1,c)),_.wj(b,13,_.pL,d));a.approvalChange&&(c=a.approvalChange,d=new _.Ftc,c.approvalName&&_.Jj(d,2,c.approvalName),c.approvalEventNames&&_.qj(d,3,c.approvalEventNames),c.initiator&&(e=CM(c.initiator),_.G(d,4,e)),c.reviewers&&(e=FHc(c.reviewers),_.sj(d,5,e)),c.status&&d.Dc(jHc.get(c.status)),c.dueTime&&(e=sHc(c.dueTime),_.G(d,7,e)),c.approvalRequested&&
(e=new Gtc,_.wj(d,8,_.kL,e)),c.approvalCancelled&&(e=new Htc,_.wj(d,9,_.kL,e)),c.reviewerResponded&&(f=c.reviewerResponded,e=new _.Etc,f.reviewerDecision&&(f=kHc.get(f.reviewerDecision),_.Lj(e,1,f)),_.wj(d,10,_.kL,e)),c.commentAdded&&(e=new Itc,_.wj(d,11,_.kL,e)),c.reviewersChanged&&(f=c.reviewersChanged,e=new Ktc,f.reviewerChanges&&(f=JHc(f.reviewerChanges),_.sj(e,1,f)),_.wj(d,12,_.kL,e)),c.dueTimeChanged&&(e=c.dueTimeChanged,c=new Mtc,e.oldDueTime&&(e=sHc(e.oldDueTime),_.G(c,1,e)),_.wj(d,13,_.kL,
c)),_.wj(b,18,_.pL,d));a.lock&&(d=new puc,_.wj(b,15,_.pL,d));a.unlock&&(d=new Guc,_.wj(b,16,_.pL,d));a.appliedLabelChange&&(c=a.appliedLabelChange,d=new _.xtc,c.changes&&(c=KHc(c.changes),_.sj(d,1,c)),_.wj(b,19,_.pL,d));a.publishChange&&(c=a.publishChange,d=new _.Auc,c.oldPublishState&&(e=LHc(c.oldPublishState),_.G(d,1,e)),c.newPublishState&&(c=LHc(c.newPublishState),_.G(d,2,c)),_.wj(b,20,_.pL,d));a.linkShareMetadataChange&&(a=a.linkShareMetadataChange,d=new _.ouc,a.securityUpdateEnabled&&_.Hj(d,
1,a.securityUpdateEnabled),_.wj(b,21,_.pL,d));return b},GHc=function(a){var b=new _.ruc;a.reason&&(a=nHc.get(a.reason),_.Lj(b,1,a));return b},HHc=function(a){return a.map(function(b){var c=new _.oL;if(b.role){var d=YGc.get(b.role);_.Lj(c,1,d)}b.user&&(d=CM(b.user),_.wj(c,2,_.nL,d));if(b.group){d=b.group;var e=new _.mL;d.email&&_.Jj(e,1,d.email);d.title&&e.setTitle(d.title);_.wj(c,3,_.nL,e)}b.domain&&c.Nn(EHc(b.domain));b.anyone&&(d=new wuc,_.wj(c,5,_.nL,d));b.allowDiscovery&&_.Hj(c,6,b.allowDiscovery);
return c})},IHc=function(a){return a.map(function(b){var c=new _.Euc;if(b.feature){var d=hHc.get(b.feature);_.Lj(c,1,d)}b.newRestriction&&(b=iHc.get(b.newRestriction),_.Lj(c,2,b));return c})},JHc=function(a){return a.map(function(b){var c=new Ltc;if(b.removedReviewer){var d=CM(b.removedReviewer);_.G(c,3,d)}b.addedReviewer&&(b=CM(b.addedReviewer),_.G(c,4,b));return c})},KHc=function(a){return a.map(function(b){var c=new _.wtc;b.label&&_.Jj(c,1,b.label);b.types&&(b=MHc(b.types),_.qj(c,2,b));return c})},
MHc=function(a){return a.map(function(b){return lHc.get(b)})},LHc=function(a){var b=new _.zuc;if(a.publishMode){var c=mHc.get(a.publishMode);_.Lj(b,1,c)}a.signinRequired&&_.Hj(b,2,a.signinRequired);a.publishedTime&&(a=sHc(a.publishedTime),_.G(b,3,a));return b};
var OHc=function(a){return(a.items||[]).map(function(b){return NHc(b)})},PHc=function(a,b){var c=new YAc;b=_.x(c,4,b);a&&(a=NHc(a),_.G(b,2,a));return b},NHc=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=$uc(Zuc(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=_.qj(b,17,a.primaryFileExtensions);b=_.qj(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=QHc.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 _.Uuc;l=_.x(l,3,k.iconUrl).setSize(k.size);k.category&&(k=RHc.get(k.category),_.x(l,1,k));h.call(f,l)}_.sj(b,6,d);c=a.chromeExtensionIds||[];d=[];for(e=0;e<c.length;e++)d.push(c[e]);_.qj(b,24,d);c=a.rankingInfo||{};a=new _.Xuc;d=c.absoluteScore;null!=d&&_.x(a,1,Number(d));d=SHc(c.mimeTypeScores||[]);_.sj(a,
2,d);c=SHc(c.fileExtensionScores||[]);_.sj(a,3,c);_.G(b,29,a);return b},SHc=function(a){return a.map(function(b){var c=b.type;b=b.score;var d=new _.Vuc;c=_.x(d,1,c);return _.x(c,2,Number(b))})},QHc=new Map([["WEB_ONLY",1],["WEB_AND_CHROME_EXTENSION",2],["CHROME_EXTENSION_ONLY",3]]),RHc=new Map([["application",1],["document",2],["documentShared",3]]);
var UHc=function(a){var b=new fBc;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=THc.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.yz())e=new vwc,e=_.x(e,1,c.whatsappOngoingBackupEnabled),c=_.x(e,2,c.whatsappPhoneNumber),_.G(d,6,c);else if(2===d.yz()){e=Number(c.deviceAndroidId);var f=new _.uwc;
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});_.sj(b,2,a);return b},WHc=function(a){var b=new bBc;if(!a.backupItems)return b;a=a.backupItems.map(function(c){var d=(new _.GL).Nb(c.id);var e=VHc.get(c.type);d=_.x(d,1,e).setTitle(c.title);d=_.x(d,4,c.iconUri);d=_.wwc(d.setSize(c.size?Number(c.size):void 0),_.CK(c.updateTime));d=_.x(d,7,c.hasCustomBehavior).ll(c.description);return _.x(d,9,c.ongoingSyncEnabled)});
_.sj(b,1,a);return b},THc=new Map([["BACKUP_SOURCE_UNSPECIFIED",0],["BACKUP_SOURCE_WHATSAPP",1],["BACKUP_SOURCE_ANDROID",2]]),VHc=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 XHc=function(a,b){this.H=a;this.O=b};
var gpc=new Map([["QUEUED",1],["COUNTING",3],["BUILDING",2],["SUCCEEDED",4],["FAILED",5]]);
var YHc=new Map([["READ",2],["WRITE",3],["COMMENT",4]]),ZHc=function(a,b,c){var d=c.itemId;c=c.driveItem;d=(new _.Ik).Nb(d);c&&(_.cG(d.setTitle(c.title),c.mimeType),c.userCapabilities&&_.QJ(d,_.smc(c.userCapabilities)));_.bK(b).includes(19)&&_.x(d,44,!0);hzc(a,d,_.bK(b));_.sic(d,4);return d},bIc=function(a,b,c){for(var d=[],e=[],f={},h=_.m(c.item||[]),k=h.next();!k.done;f={Dfa:f.Dfa},k=h.next()){var l=k.value;if(l.person){f.Dfa=l.itemId;k=$Hc(l.person).Nb(f.Dfa);var p={};l=_.m(l.childItem||[]);for(var q=
l.next();!q.done;p={Vra:p.Vra},q=l.next()){var r=q.value;e.some(function(v){return function(w){return w.getId()===v.Dfa}}(f))||e.push(k);p.Vra=r.itemId;q=d.find(function(v){return function(w){return w.getId()===v.Vra}}(p));void 0===q&&(q=ZHc(a,b,r),d.push(q));r=brc(arc($qc(new _.zoa,k.clone()),aIc(r)),r.url);_.yj(q,107,r,_.zoa,void 0)}}}return Psc((new _.kK).iB(d),e).bQ(c.suggestionSessionId)},$Hc=function(a){return _.eic((new _.vk).Nb(a.id).$c(a.displayName),a.emailAddress).On(a.photoUrl)},mIc=function(a){var b=
a.action;return b?b.map(function(c){var d=new _.boa,e=cIc(c);e&&_.wj(d,2,_.zk,e);(e=dIc(c))&&Qpc(d,e);(e=eIc(c))&&_.wj(d,4,_.zk,e);(e=fIc(c))&&_.wj(d,5,_.zk,e);(e=gIc(c))&&_.wj(d,6,_.zk,e);(e=hIc(c))&&_.wj(d,7,_.zk,e);(e=iIc(c))&&_.wj(d,8,_.zk,e);(e=jIc(c))&&_.wj(d,9,_.zk,e);(e=kIc(c))&&_.wj(d,10,_.zk,e);(c=lIc(c))&&_.wj(d,11,_.zk,c);return d}):(a=DM(a),a=yqc([a]),[Qpc(new _.boa,a)])},oIc=function(a){return(a.justification||[]).map(function(b){return nIc(b)})},DM=function(a){return(a=a.justification)?
nIc(a):null},nIc=function(a){var b=Mpc(new _.yk,pIc(a.displayText)),c=a.primaryPerson,d=a.allPeople;c?(c=$Hc(c),_.wj(b,3,_.aoa,c),Npc(b,[c])):d?(c=(d.person||[]).map(function(e){return $Hc(e)}),d=Lpc(c),_.wj(b,4,_.aoa,d),Npc(b,c)):(c=(a.person||[]).map(function(e){return $Hc(e)}),c.length&&(d=Lpc(c),_.wj(b,4,_.aoa,d),Npc(b,c)));_.x(b,5,_.CK(a.eventTime));Opc(b,pIc(a.justificationDescription));Ppc(b,pIc(a.unstructuredJustificationDescription));return b},pIc=function(a){if(!a)return null;a=a.textSegment||
[];return Ipc(new _.qk,a.map(function(b){var c=(new _.rk).kh(b.text),d=b.link;if(d){var e=new _.sk;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)}))},cIc=function(a){a=a.documentDocosAction;if(!a)return null;var b=nqc(new _.joa,DM(a));mqc(b,(a.subAction||[]).map(function(c){var d=new _.koa;c.reply?(c=new _.doa,_.wj(d,1,_.Ak,c)):c.resolve?(c=new Ypc,_.wj(d,2,_.Ak,c)):c.reassign?(c=new Wpc,_.wj(d,3,_.Ak,c)):c.acceptSuggestion?(c=new Rpc,_.wj(d,4,_.Ak,c)):c.rejectSuggestion?
(c=new Xpc,_.wj(d,5,_.Ak,c)):c.openThread&&(c=new _.coa,_.wj(d,6,_.Ak,c));return d}));_.x(b,2,a.discussionId);_.x(b,3,a.postId);oqc(b,pIc(a.anchorText));return b},eIc=function(a){a=a.documentShareAction;if(!a)return null;var b=sqc(new _.moa,DM(a));rqc(b,(a.subAction||[]).map(function(c){var d=new tqc;c.suggestedShare?(c=new bqc,_.wj(d,1,Vqc,c)):c.responseToRequest&&(c=new Zpc,_.wj(d,2,Vqc,c));return d}));pqc(b,(a.sharee||[]).map(function(c){return $Hc(c)}));qqc(b,YHc.get(a.shareeRole));return b},
dIc=function(a){a=a.documentViewAction;if(!a)return null;var b=yqc(oIc(a));xqc(b,(a.subAction||[]).map(function(c){var d=new Aqc;c.open?d.Nf(new Tpc):c.reviewEdits&&(c=new $pc,_.wj(d,2,zqc,c));return d}));return b},fIc=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.Nf(new Upc);return d}));return b},gIc=function(a){a=a.calendarEventAction;if(!a)return null;var b=hqc(gqc(fqc(new _.foa,a.eventId),DM(a)),a.guestCount);
eqc(b,(a.subAction||[]).map(function(c){var d=new iqc;if(c.viewCalendarEvent){var e=new cqc;_.wj(d,1,Tqc,e)}c.shareWithAttendees&&(e=new aqc,_.wj(d,2,Tqc,e));c.present&&(e=new Vpc,_.wj(d,3,Tqc,e));c.openDocument&&(c=new Tpc,_.wj(d,4,Tqc,c));return d}));return b},hIc=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,_.wj(d,1,Xqc,c));return d}));return b},iIc=function(a){a=
a.documentTopicAction;if(!a)return null;var b=vqc(new _.ooa,DM(a));uqc(b,(a.subAction||[]).map(function(c){var d=new wqc;c.openDocument&&(c=new Tpc,_.wj(d,1,Wqc,c));return d}));return b},jIc=function(a){a=a.popularDocumentAction;if(!a)return null;var b=Rqc(new _.uoa,DM(a));Qqc(b,(a.subAction||[]).map(function(c){var d=new Sqc;c.openDocument&&(c=new Tpc,_.wj(d,1,Zqc,c));return d}));return b},kIc=function(a){a=a.collaboratorActivityAction;if(!a)return null;var b=kqc(new _.hoa,DM(a));jqc(b,(a.subAction||
[]).map(function(c){var d=new lqc;c.openDocument&&(c=new Tpc,_.wj(d,1,Uqc,c));return d}));return b},lIc=function(a){a=a.formResponseAction;if(!a)return null;var b=Oqc(new _.soa,oIc(a));Nqc(b,(a.subAction||[]).map(function(c){var d=new Pqc;c.openDocument?(c=new Tpc,_.wj(d,1,Yqc,c)):c.viewResponses&&(c=new dqc,_.wj(d,2,Yqc,c));return d}));return b},aIc=function(a){a=((a.justification||{}).displayText||{}).textSegment||[];return 0<a.length?(a[0]||{}).text||"":""};
var qIc=function(a,b){this.H=a;this.O=b},sIc=function(a,b,c){var d=new KL,e=Object.values(c.categoryMetadata||{});Vwc(d,e.map(function(f){return rIc(a,f,b.qc())}));d.Dc(1);return new _.nK(d,lpc(c))},uIc=function(a,b){var c=new mM;YBc(c,(b.categories||[]).map(function(d){return tIc(a,d)}));c.Dc(1);return new swc(c,lpc(b))},rIc=function(a,b,c){c=Twc((new JL).$c(b.categoryName),c);b=Object.values(b.attributeValues||[]);Swc(c,b.map(function(d){return vIc(a,d)}).filter(function(d){return null!==d}));return c},
tIc=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).ll(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 kBc).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=wIc(e.attributeDisplayHints);_.G(h,5,k)}if(e.capabilities){k=e.capabilities;var l=new lBc;l=_.x(l,
1,k.canSearch);k=_.x(l,2,k.canWrite);_.G(h,6,k)}if(f&&(_.x(h,7,xIc[f]),e=e[yIc(f)+"Options"],!zIc(a,h,f,e))){f=null;break a}f=h}return f}).filter(function(e){return null!==e})),b.customer);b.createdBy&&NBc(d,AIc(b.createdBy));b.VVb&&OBc(d,AIc(b.VVb));b.publishedBy&&PBc(d,AIc(b.publishedBy));b.displayHints&&TBc(d,wIc(b.displayHints));b.capabilities&&VBc(d,BIc(b.capabilities));b.learnMoreUri&&_.x(d,15,b.learnMoreUri);return d},vIc=function(a,b){var c=(new hL).Nb(b.id);if(b.userScoped)b=Object.values(b.userScoped),
ltc(c,b.map(function(d){if(d.scopedUser){var e=new itc;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},wIc=function(a){var b=new jBc;b=_.x(b,1,a.disabled);b=_.x(b,2,a.hidden);b=_.x(b,3,a.activatedInAllDrives);return _.x(b,4,!!a.required)},BIc=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)},
zIc=function(a,b,c,d){return CIc(a,function(){DIc(a)[c](b,d)},c,b)},EIc=function(a){a=void 0===a?{}:a;var b=new qBc;b=_.x(b,1,a.minSize);return _.x(b,2,a.maxSize)},GIc=function(a){var b=new pBc;vBc(b,(a.choices||[]).map(function(c){var d=new uBc;d=_.x(d,1,c.label).Hb(c.value);c.description&&d.ll(c.description);if(c.capabilities){var e=c.capabilities;var f=new wBc;f=_.x(f,1,e.canSearch);e=_.x(f,2,e.canSelect);_.G(d,3,e)}c.displayHints&&(c=c.displayHints,e=new xBc,e=_.x(e,1,c.disabled),e=_.x(e,2,c.hidden),
c.badgePriority&&_.x(e,5,c.badgePriority),c.badgeColors&&(f=FIc(c.badgeColors),_.G(e,3,f)),c.darkBadgeColors&&(c=FIc(c.darkBadgeColors),_.G(e,4,c)),_.G(d,4,e));return d}));return b},FIc=function(a){var b=new iBc;var c=HIc(a.backgroundColor);b=_.G(b,1,c);c=HIc(a.foregroundColor);b=_.G(b,2,c);a=HIc(a.soloColor);return _.G(b,3,a)},HIc=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},IIc=function(a){var b=
new zBc;b=_.x(b,1,a.showThousandsSeparator);b=_.x(b,2,Number(a.minValue));return _.x(b,3,Number(a.maxValue))},JIc=function(a){var b=(new _.Toa).setYear(a.year).setMonth(a.month);return _.x(b,3,a.day)};qIc.prototype.Hb=function(a,b){var c=this,d=b.valueType.replace(/([A-Z])/g,"_$1").toLowerCase().toUpperCase();a.jB(xIc[d]);return CIc(this,function(){KIc(c)[d](a,b[b.valueType])},b.valueType)};
var CIc=function(a,b,c,d){try{b()}catch(e){if(e instanceof TypeError&&!(d instanceof BBc))return ksc(a.O,"drive.ds.response.MetadataParser","Response Parser: Error parsing type "+c+"."),!1;throw e;}return!0},AIc=function(a){return _.cic(1).Nb(a.personName.split("/")[1])},yIc=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},DIc=function(a){return{BOOLEAN:function(b,c){var d=b.Z5a;var e=new sBc;e=_.x(e,1,c.trueLabel);c=_.x(e,2,c.falseLabel);return d.call(b,
c)},TEXT:function(b,c){return b.sOa(EIc(c))},TEXT_LIST:function(b,c){var d=b.X6a;var e=new yBc;e=_.x(e,1,c.maxEntries);c=EIc(c.options);c=_.G(e,2,c);return d.call(b,c)},LONG_TEXT:function(b,c){var d=new nBc;d=_.x(d,1,c.minSize);c=_.x(d,2,c.maxSize);return _.wj(b,10,jM,c)},SELECTION:function(b,c){return b.L6a(GIc(c))},SELECTION_LIST:function(b,c){var d=b.K6a;var e=new oBc;e=_.x(e,1,c.maxEntries);c=GIc(c.options);c=_.G(e,2,c);return d.call(b,c)},INTEGER:function(b,c){return b.l6a(IIc(c))},INTEGER_LIST:function(b,
c){var d=b.k6a;var e=new ABc;e=_.x(e,1,c.maxEntries);c=IIc(c.options);c=_.G(e,2,c);return d.call(b,c)},USER:function(b){return b.b7a(new CBc)},USER_LIST:function(b,c){var d=b.tOa,e=new rBc;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.rOa;var e=new mBc;e=_.x(e,4,c.dateFormat);var f=JIc(c.minValue);e=_.G(e,2,f);c=JIc(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,xIc[e]);var f=yIc(e)+"Options";zIc(a,d,e,c[f]);return _.wj(b,16,jM,d)}}},KIc=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.Vpa(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.Rpa(c)},INTEGER:function(b,c){return b.setIntegerValue(parseInt(c,10))},INTEGER_LIST:function(b,c){return b.Ipa(c.map(function(d){return parseInt(d,
10)}))},USER:function(b,c){return b.setUserValue(_.DK(a.H,c))},USER_LIST:function(b,c){ktc(b,c.map(function(d){return _.DK(a.H,d)}))},DATE_STRING:function(b,c){return b.setDateStringValue(c)}}},xIc={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 mpc={movable:1,deadlineExceeded:2,exceedsSourceLimit:3,exceedsDestinationDepthLimit:4,exceedsDestinationSizeLimit:5,tooManyUnmovableFiles:6,tooHighProportionUnmovableFiles:7};
var MIc=function(a){a=a.personResponse||[];return cxc(new bxc,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=$wc(d.call(b,e),LIc(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)}))},LIc=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 NIc=function(a){this.H=a},PIc=function(a,b){return(b.items||[]).map(function(c){return OIc(a,c)})},OIc=function(a,b){var c=new _.Eoa,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)&&Mnc(c,d.map(function(e){var f=new _.Gk;return _.x(f,1,
e.category)}));c=_.zic(_.xic(_.wic(_.sic(_.tic(Lnc(_.cG((new _.Ik).Nb(b.id).setTitle(b.name),"application/vnd.google-apps.folder"),c),b.id),2),b.primaryDomainName),b.organizationDisplayName),b.customerId);b.capabilities&&(d=_.gic(_.smc(b.capabilities),!0),_.QJ(c,d));b.permissionsSummary&&_.uic(c,Jsc(a.H,b.permissionsSummary));b.restrictions&&Onc(c,QIc(b.restrictions));return c},QIc=function(a){var b=new frc;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 RIc={DRIVE_FE:2,DRIVE_BE:4,EXPLORER:1,GENERAL:3,PSYNCHO:5,SLACK:6,DRIVE_BE_EX:7,DRIVE_SHARING:9,TEAMKIT:10},vpc=_.fb(RIc);
var SIc=function(a){var b=new _.Kc;b=_.x(b,2,a.key);b=_.x(b,1,a.namespace?RIc[a.namespace]:void 0);return _.lCa(new _.Vo,b).Hb(a.value)};
var UIc=function(a){var b=a.items||[];b=exc(new ML,b.map(function(c){return TIc(c)}));return new _.qK(b,lpc(a))},TIc=function(a){var b=(new _.cI).Nb(a.id).setTitle(a.title);b=_.x(b,3,_.CK(a.createdDate));return _.x(b,4,_.CK(a.modifiedDate)).Id(a.state?VIc[a.state]:void 0)},WIc=function(a,b,c){var d=c.item||[];return _.snc(_.rnc(new _.IK,d.map(function(e){return ZHc(a,b,e)})),c.suggestionSessionId)},YIc=function(a,b,c){var d=c.item||[];return rvc(qvc(new xL,d.map(function(e){return XIc(a,b,e)})),c.suggestionSessionId)},
XIc=function(a,b,c){var d=c.driveWorkspace,e=c.childItem||[];return ovc(mvc(nvc(lvc(new wL,c.predictionId).setTitle(d&&d.title),d&&d.workspaceToken),e.map(function(f){return ZHc(a,b,f)})),DM(c))},ZIc=function(a){var b=new _.ftc;a.kind&&(a=TIc(a),_.G(b,2,a));b.Dc(1);return b},VIc={active:1,archived:2};
var $Ic=function(a,b,c,d){_.Rmc.call(this,b);this.Dg=a;this.ma=c;this.O=d;this.ha=null;this.ta=new NGc(this.W,b);this.H=new NIc(this.SF);this.wa=new XHc(this.SF,this.H)};_.K($Ic,_.Rmc);var aJc=function(a){a.ha||(a.ha=new qIc(a.W,a.ma));return a.ha};
$Ic.prototype.ka=function(a,b){if(a instanceof _.PI)var c=_.zmc(_.Vmc(a));else{if(a instanceof _.QI)var d=_.EK(this,a,b);else{if(a instanceof _.yhc)var e=bJc(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),OIc(this.H,b.json))}else{if(a instanceof _.SI)var k=_.EK(this,a,b);else{if(a instanceof _.gK)var l=new qtc;else{if(a instanceof _.VI)var p=
cJc(a,b);else{if(a instanceof _.WI)var q=PHc(void 0,a.Ih());else{if(a instanceof _.XI)var r=new gBc;else{if(a instanceof _.YI)var v=_.zmc(_.Vmc(a));else{if(a instanceof _.ZI)var w=new oM;else{if(a instanceof _.$I)var A=_.zmc(_.Vmc(a));else{if(a instanceof _.aJ)var B=_.zmc(_.Vmc(a));else{if(a instanceof _.oD){var E=new vCc,I=a.getKey();var M=_.G(E,4,I)}else{if(a instanceof _.bJ)var P=cJc(a,b);else{if(a instanceof _.eJ)var S=_.zmc(_.Vmc(a));else{if(a instanceof _.vhc){if(!b.json)throw _.FK();var aa=
new fDc(b.json.exportJob.id)}else{if(a instanceof _.gJ){if(!b.json)throw _.FK();_.BK(_.AK("drive#app"),b.json);var ba=b.json,ma=new XAc,ea=NHc(ba);var xa=_.G(ma,2,ea).Dc(1)}else{if(a instanceof _.hJ)var Ba=dJc(a,b);else{if(a instanceof _.iJ){if(!b.json)throw _.FK();_.BK(_.AK("drive#permission"),b.json);var Ja=(new oM).Dc(1),hb=_.Cmc(this.SF,b.json);var Sb=_.G(Ja,2,hb)}else{if(a instanceof _.mI)a:{if(!b.json)throw _.FK();if(a instanceof _.mI){var ac=a.jd();if(ac&&_.kJ(ac)){for(var Nc=this.O,wc=this.Dg,
Gb=b.json,De=[],Yd=_.m(Gb.item||[]),Hh=Yd.next();!Hh.done;Hh=Yd.next()){var pd=Hh.value;if(pd.driveItem){var Pb=new _.Coa,vi=_.x(Pb,2,aIc(pd));_.R(ac,74,!1)?_.x(vi,4,!0):_.x(vi,3,!0);var Zj=ZHc(Nc,wc,pd);var ug=_.G(Zj,100,vi);De.push(ug)}}var xj=(new _.dI).iB(De).bQ(Gb.suggestionSessionId);var Kj=_.Vkc(new _.uK,xj);break a}if(ac&&_.lJ(ac)){Kj=bIc(this.O,this.Dg,b.json);break a}if(ac&&_.mJ(ac)){for(var im=this.O,Fi=this.Dg,Kp=b.json,Re=[],wi=_.m(Kp.item||[]),Vk=wi.next();!Vk.done;Vk=wi.next()){var Lp=
Vk.value;if(Lp.driveItem){var ak=ZHc(im,Fi,Lp),Dq=mIc(Lp);var Eq=_.sj(ak,117,Dq);Re.push(Eq)}}var gn=(new _.dI).iB(Re).bQ(Kp.suggestionSessionId);Kj=_.Vkc(new _.uK,gn);break a}}_.BK(_.AK("drive#fileList"),b.json);Kj=_.wmc(this.SF,b.json,b.headers)}else{if(a instanceof _.nJ){if(!b.json)throw _.FK();var Hm=WHc(b.json)}else{if(a instanceof _.oJ){if(!b.json)throw _.FK();_.BK(_.AK("drive#appList"),b.json);var zl=b.json,Or=new IL,fj=OHc(zl);var Pr=_.sj(Or,2,fj);var Mp=_.qj(Pr,4,zl.defaultAppIds).Dc(1)}else{if(a instanceof
_.whc){if(!b.json)throw _.FK();var Fq=UHc(b.json)}else{if(a instanceof _.yI)var Qr=eJc(this,b);else{if(a instanceof _.pJ){var Np=b.json;if(!Np)throw _.FK();_.BK(_.AK("drive#permissionList"),Np);var Rr=new kCc,Vn=Isc(this.SF,Np);var tk=_.G(Rr,1,Vn);var uk=_.x(tk,2,lpc(Np))}else{if(a instanceof _.qJ){if(!b.json)throw _.FK();_.BK(_.AK("drive#revisionList"),b.json);for(var Qc=this.SF,hn=b.json,Zs=new Fsc,Gq=[],Sr=hn.items||[],Eu=0;Eu<Sr.length;Eu++){var Tr=_.xmc(Qc,Sr[Eu]);Gq.push(Tr)}var Ql=_.sj(Zs,
2,Gq)}else{if(a instanceof _.rJ)var To=_.EK(this,a,b);else{if(a instanceof _.DI)var Wn=fJc(a,b);else{if(a instanceof _.tJ){if(!b.json)throw _.FK();var Xn=MIc(b.json)}else{if(a instanceof _.Ehc){if(!b.json)throw _.FK();var Nx=uIc(aJc(this),b.json)}else{if(a instanceof _.VF){if(!b.json)throw _.FK();var tw=aJc(this),Op=b.json,Nz=new ZBc,Fu=tIc(tw,Op);var Ur=_.G(Nz,2,Fu).Dc(1)}else{if(a instanceof _.uJ){if(!b.json)throw _.FK();_.BK(_.AK("drive#remainingCount"),b.json);var Vr=b.json,$s=new hBc,Wk=Vr.nextPageToken;
null!=Wk&&_.x($s,2,Number(Wk));_.x($s,1,Number(Vr.remainingCount));var Gi=$s}else{if(a instanceof _.aG){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#teamDrive"),_.AK("drive#drive")),b.json);var jm=(new _.dI).iB([OIc(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 _.dI).iB(PIc(this.H,b.json)),uw=_.Vkc(new _.uK,Pg);var Hi=_.x(uw,3,lpc(b.json))}else{if(a instanceof _.yJ)var Xk=dJc(a,b);else{if(a instanceof
_.zJ)var Gu=bJc(this,a,b);else{if(a instanceof _.wI)var Yk=_.EK(this,a,b);else{if(a instanceof _.AJ)var at=_.EK(this,a,b);else{if(a instanceof _.BJ)var vw=gJc(this,b);else{if(a instanceof _.pD){if(!b.json)throw _.FK();_.BK(_.AK("drive#setting"),b.json);var bt=SIc(b.json),Hu=new vCc;var Wr=_.G(Hu,3,bt);var Pp=bt.getKey();var gv=_.G(Wr,4,Pp)}else{if(a instanceof _.CJ)var hv=cJc(a,b);else{if(a instanceof _.OH){if(!b.json)throw _.FK();_.BK(_.AK("drive#about"),b.json);var iv=QGc(this.ta,b.json)}else{if(a instanceof
_.bG){if(!b.json)throw _.FK();_.BK(_.AK("drive#workspace"),b.json);var ny=TIc(b.json),Tw=new _.lK;Tw.DU().set(ny.getId(),ny);var sN=Tw}else{if(a instanceof _.xhc){if(!b.json)throw _.FK();var zg=b.json,cr;null!==(cr=_.IJ(this.V))&&void 0!==cr&&_.R(cr,21,!1)&&(VGc.set("HIERARCHY_RECONCILIATION",3),nHc.set("UNMOVABLE_ITEM_REPARENTED",3));var jJ=new ICc;zg.nextPageToken&&_.Jj(jJ,2,zg.nextPageToken);if(zg.activities){var tN=uHc(zg.activities);_.sj(jJ,1,tN)}var uN=jJ}else{if(a instanceof _.zhc)var fS=gJc(this,
b);else{if("undefined"!=typeof _.Dhc&&a instanceof _.Dhc)var oy=eJc(this,b);else{if(a instanceof _.Ahc){if(!b.json)throw _.FK();var gZ=new eDc}else{if(a instanceof _.Bhc){if(!b.json)throw _.FK();var vN=jpc(b.json)}else{if(a instanceof _.nD){if(!b.json)throw _.FK();_.BK(_.AK("drive#settingList"),b.json);for(var hZ=b.json,iZ=new _.$z,gS=[],$C=hZ.items||[],jZ=0;jZ<$C.length;jZ++){var kZ=SIc($C[jZ]);kZ&&gS.push(kZ)}var GF=_.ekb(iZ,gS)}else{if(a instanceof _.bA){if(!b.json)throw _.FK();var LA=YIc(this.O,
this.Dg,b.json).Dc(1)}else{if(a instanceof _.$F){if(!b.json)throw _.FK();var lZ=WIc(this.O,this.Dg,b.json)}else{if(a instanceof _.Jhc){if(!b.json)throw _.FK();_.BK(_.AK("drive#teamDrive"),b.json);var mZ=b.json,c7=mZ.recursiveFolderCount,nZ=mZ.recursiveFileCount,oZ=new qCc;var pZ=_.x(oZ,1,nZ);var d7=_.x(pZ,2,c7)}else{if(a instanceof _.Ihc){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#migrateToDrivePreFlightResponse"),_.AK("drive#migrateToTeamDrivePreFlightResponse")),b.json);var qZ=ppc(b.json)}else{if(a instanceof
_.Lhc){if(!b.json)throw _.FK();_.BK(_.AK("drive#workspaceList"),b.json);var jha=UIc(b.json)}else jha=a instanceof RK?gJc(this,b):null;qZ=jha}d7=qZ}lZ=d7}LA=lZ}GF=LA}vN=GF}gZ=vN}oy=gZ}fS=oy}uN=fS}sN=uN}iv=sN}hv=iv}gv=hv}vw=gv}at=vw}Yk=at}Gu=Yk}Xk=Gu}Hi=Xk}jm=Hi}Gi=jm}Ur=Gi}Nx=Ur}Xn=Nx}Wn=Xn}To=Wn}Ql=To}uk=Ql}Qr=uk}Fq=Qr}Mp=Fq}Hm=Mp}Kj=Hm}Sb=Kj}Ba=Sb}xa=Ba}aa=xa}S=aa}P=S}M=P}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 cJc=function(a,b){if(!b.json){if(a instanceof _.bJ)return ZIc({});throw _.FK();}_.BK(_.AK("drive#workspace"),b.json);return ZIc(b.json)},gJc=function(a,b){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#teamDrive"),_.AK("drive#drive")),b.json);a=OIc(a.H,b.json);return(new _.GJ).Dc(1).setItem(a)},bJc=function(a,b,c){if(!c.json)throw _.FK();_.BK(_.AK("drive#categoryMetadataList"),c.json);return sIc(aJc(a),b,c.json)},dJc=function(a,b){if(!b.json)throw _.FK();_.BK(_.AK("drive#app"),b.json);return PHc(b.json,
a.Ih())},eJc=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 _.pI;k=_.x(k,1,Number(h.id));h.teamDriveId?(_.Ngc(k,h.teamDriveId),_.qI(k,h.teamDriveId)):_.qI(k,h.fileId);h.file?k.setItem(_.umc(f.H,h.file)):h.teamDrive&&
k.setItem(OIc(f.O,h.teamDrive));h.deleted&&!k.getItem()&&_.BI(k);d.push(k)}_.sj(b,4,d)}return b},fJc=function(a,b){var c=new dCc;if(_.se(a,6).length){var d=[];Eoc(_.se(a,6),b.headers).forEach(function(e,f){var h=new _.Rgc;e=_.x(h,1,f).Hb(e);d.push(e)});_.sj(c,1,d)}eCc(c,b.json?JSON.stringify(b.json):b.text);return c};
var iJc=function(a){var b=new _.uo;if(a=a.getState()){var c=[];c.push("state");c.push("=");c.push(hJc[a]);_.dK(b,c.join(" "))}return b.toString()},jJc={},hJc=(jJc[1]="active",jJc[2]="archived",jJc);
var kJc=function(a,b,c,d){_.GK.call(this,b,c,a.qOa,d);this.ka=a;this.ha=new Xvc(_.bK(c),b)};_.K(kJc,_.GK);
kJc.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();_.lj(a,4)&&(w.preFlightValidationToken=_.z(a,4));var I={parentId:a.ak()};r["content-type"]="application/json";A=B=!0;_.KJ(this.H,[],[a.getId(),a.ak()],this.O,r)}else if(a instanceof
_.RI){v="POST";E="files/"+a.qc()+"/authorize";w.appId=a.Ih();_.Q(a,3)&&(w.propagate=!0);var M=a.se();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.se(),B=!0;else if(a instanceof _.zhc)v="POST",E="teamdrives/"+a.requestId,w.fields=CL(this.H),I={name:a.request.getTitle()},r["content-type"]="application/json",M=a.request.se(),
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.se(),B=!0;else if(a instanceof _.SI)v="POST",E="files/"+a.getId()+"/copy",w.fields=_.khc({fields:this.eh(),anonymous:_.KI(_.eI(this.H)),mF:_.lI(this.H)}),w.convert=_.R(a,4,!1),I=Moc(a),r["content-type"]="application/json",M=a.se(),a=_.se(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.Ih(),w.appId=a.Ih(),w.deleteAppData=!!_.Q(a,2),M=a.se(),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.se(),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.se(),B=!0,w.supportsTeamDrives=!0;else if(a instanceof _.$I)v=
"DELETE",E="files/"+a.qc()+"/revisions/"+_.z(a,2),M=a.se(),B=!0,_.KJ(this.H,[],[a.qc()],this.O,r);else if(a instanceof _.aJ)v="DELETE",E="teamdrives/"+a.getId(),M=a.se(),B=!0;else if(a instanceof _.oD)v="DELETE",M=a.getKey(),E="settings/"+_.z(M,2),_.Wo(M)&&(w.namespace=vpc[_.Wo(M)]),M=a.se(),B=!0;else if(a instanceof _.bJ)v="DELETE",E="workspaces/"+a.getId(),M=a.se(),B=!0;else if(a instanceof _.eJ)v="DELETE",E="files/trash",M=a.jd().se(),B=!0,_.R(this.H,3,!1)&&(w.enforceSingleParent=!0);else if(a instanceof
_.gJ)E="apps/"+a.Ih(),M=a.se(),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 _.nJ)E="backups/"+a.getId()+"/items",q=9,w.languageCode=ZK(_.eI(this.H));else if(a instanceof _.hJ)v="POST",E="apps",w.appId=a.Ih(),M=a.se(),B=!0;else if(a instanceof _.iJ)v="POST",E="files/"+a.qc()+"/permissions",w.fields=_.lI(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.Bf(),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.se(),B=!0,w.supportsTeamDrives=!0;else if(a instanceof _.vhc)q=8,v="POST",E="/v1/exports",r["content-type"]=
"application/json",I=_.se(a,1).map(function(xa){if(_.R(d.H,89,!1)){var Ba=_.vkc(d.O,xa);if(null!==Ba)return{id:xa,resource_key:{resource_key:Ba}}}return{id:xa}}),I={archiveFormat:null,archivePrefix:_.z(a,2),conversions:null,items:I,locale:null};else if(a instanceof _.mI||a instanceof _.gK||a instanceof _.bA||a instanceof _.$F)if(b=a instanceof _.mI?a.jd():a,_.JJ(b)){q=10;v="POST";E="/v1/items";r["content-type"]="application/json";var P=9==_.WJ(this.H)?"WEB_MOBILE":"WEB_DESKTOP",S={};I={};S.applicationType=
ewc(this.H);S.platformType=P;S.languageCode=ZK(_.eI(this.H));S.timeZone=(new _.lt).faa();S.requestType="LIVE_REQUEST";a instanceof _.mI&&(P=a.getOptions())&&_.R(P,10,!1)&&(S.requestType="BACKGROUND_REQUEST");if(b instanceof _.Df)if(_.kJ(b)){if(bwc(this.ha)){S.scenarioType="ONE_PICK";if(a=null===(f=null===(e=_.y(b,grc,75))||void 0===e?void 0:_.y(e,hrc,1))||void 0===f?void 0:_.z(f,1))S.clientTags=S.clientTags||[],S.clientTags.push({name:a});this.Yf.O(106026)}else _.R(b,74,!1)?S.scenarioType="QUICK_ACCESS_FOR_SHARED_FILES":
S.scenarioType="QUICK_ACCESS";2==_.TJ(b)&&(_.se(b,33),bwc(this.ha)||(S.scenarioType="QUICK_ACCESS_FOR_SHARED_DRIVE"),I.contextFeature=[{type:"DRIVE_TEAM_DRIVE_ROOT_ID",stringValue:_.se(b,33)[0]}]);_.nl(b).length&&(I.itemType=dwc(b))}else _.lJ(b)?S.scenarioType="DRIVE_PEOPLE_WITH_ACTIONS":_.mJ(b)&&(S.scenarioType="DRIVE_PRIORITY");else b instanceof _.gK?(E="/v1/userfeedback",I.userFeedback=_.yb(b,_.ntc,1).map(function(xa){var Ba=_.y(xa,_.jL,2),Ja={},hb={};hb.feedbackType=[_.Wfc[Ba.getType()]];Ja.item=
hb;Ja.clientInfo=S;switch(xa.getFeature()){case 1:S.scenarioType="DRIVE_PRIORITY";hb.itemId=Ba.qc();break;case 3:S.scenarioType="QUICK_ACCESS";hb.itemId=Ba.qc();break;case 4:S.scenarioType="QUICK_ACCESS_FOR_SHARED_FILES";hb.itemId=Ba.qc();break;case 2:S.scenarioType="DRIVE_WORKSPACES",hb.itemId=Ba.qc(),hb.childItem=_.yb(Ba,_.jL,3).map(function(Sb){var ac;return{itemId:null!==(ac=Sb.qc())&&void 0!==ac?ac:void 0}})}return Ja})):b instanceof _.bA?S.scenarioType="DRIVE_WORKSPACES":b instanceof _.$F?(S.scenarioType=
"ITEMS_FOR_DRIVE_WORKSPACE",I.contextFeature=[{type:"GENERIC_TITLE",stringValue:b.getTitle()||""},{type:"DRIVE_WORKSPACE_ID",stringValue:b.$q()||""},{type:"DRIVE_EMPTY_WORKSPACE",boolValue:null!==(h=_.Q(b,5))&&void 0!==h?h:void 0}]):_.cnc(a);b instanceof _.gK||(I.maxSuggestions=b.wi(),I.clientInfo=S)}else{M=b.se();B=!0;b.getId();E="files";w.q=_.Hjc(b,null===(k=_.IJ(this.H))||void 0===k?void 0:_.R(k,23,!1));P=[];var aa;(aa=_.IJ(this.H))&&_.R(aa,4,!1)?(aa=_.za(this.eh(),this.eh(b.H())),_.Ga(aa)):aa=
_.Aa(this.eh());var ba=void 0,ma=!1;0<_.yb(b,_.hl,5).length&&(ba=_.z(this.H.Tf(),50),ma=!0);w.fields=Dnc({fields:aa,anonymous:_.KI(_.eI(this.H)),g8:ba||void 0,mF:_.lI(this.H),oDb:ma});w.appDataFilter="NO_APP_DATA";0<_.yb(b,_.SJ,25).length&&(w.sources=_.zjc(b));0<b.jA().length&&(w.spaces=_.Ajc(b));a.ao()&&(w.pageToken=a.ao());(a=a.getOptions())&&_.Dj(a,1,1E3)&&(w.maxResults=_.Dj(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<_.se(b,33).length&&2==_.TJ(b)&&(a=_.se(b,33)[0],w.teamDriveId=a,P.push(a));w.corpora=_.wjc[_.TJ(b)];_.Q(b,18)&&(delete w.corpora,w.corpus="DOMAIN");a=_.ol(b);aa=_.yb(b,_.cl,35);ba=_.yb(b,_.cl,38);P=P.concat(a.filter(function(xa){return!_.R(xa,2,!1)}).map(function(xa){return xa.Wa()})).concat(aa.map(function(xa){return xa.Wa()})).concat(ba.map(function(xa){return xa.Wa()}));_.KJ(this.H,_.yb(b,_.jl,63),P,this.O,r);eoc(w,b.Lc());_.R(this.H,14,!1)&&(w.useLegacyDomainPermissionBehavior=
!1);_.y(b,_.ppa,64)&&(a=irc(_.y(b,_.ppa,64)),a=_.sb(a,4),w.searchSessionData=a)}else if(a instanceof _.oJ){E="apps";switch(a.getType()){case 1:w.fields=lJc;break;case 2:w.fields=mJc;break;case 4:w.fields=nJc;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=ZK(_.eI(this.H));
0<_.se(a,3).length&&(w.appFilterExtensions=_.se(a,3).join(","));0<_.se(a,4).length&&(w.appFilterMimeTypes=_.se(a,4).join(","));M=a.se();B=!0}else if(a instanceof _.whc)E="backups",q=9,w.languageCode=ZK(_.eI(this.H));else if(a instanceof _.yI)E="changes",w.includeDeleted=_.R(a,3,!0),w.includeSubscribed=_.R(a,4,!0),w.maxResults=a.KR(),w.startChangeId=_.z(a,1),w.fields=Cnc({fields:this.eh(),g8:CL(this.H,_.se(a,5)),anonymous:_.KI(_.eI(this.H)),mF:_.lI(this.H)}),w.appDataFilter="NO_APP_DATA",a.uc()||(w.filters=
"DRIVE_DATASERVICE"),M=_.se(this.H.Tf(),31),M.length&&(w.spaces=_.Bf(M,function(xa){return _.Ufc[xa]}).join(",")),w.supportsTeamDrives=!0,w.includeCorpusRemovals=!0,w.includeItemsFromAllDrives=!0,a.uc()&&(w.teamDriveId=a.uc()),M=a.se(),B=!0;else if(a instanceof _.pJ)b=a.jd(),E="files/"+b.getId()+"/permissions",w.fields=_.lI(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.ao()&&(w.pageToken=a.ao()),_.z(a,1)&&(w.maxResults=_.z(a,1)),M=b.se(),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=_.lI(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.wi(),E="files/"+a.qc()+"/revisions",M=a.se(),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=_.khc({fields:this.eh(),anonymous:_.KI(_.eI(this.H)),mF:_.lI(this.H)}),w.fileId=null!==(l=_.z(a,1))&&void 0!==l?l:void 0,_.lj(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 _.aG)a.V(),E="teamdrives/"+a.V()[0],w.fields=CL(this.H,a.H()),M=a.se(),B=!0;else if(a instanceof _.Ihc)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,[],_.se(a.request,1),this.O,r);else if(a instanceof _.EJ){M=a.jd();E="teamdrives";w.fields=Nvc(this.H,M.H());w.q=Ovc(M);a.ao()&&(w.pageToken=a.ao());if(M=(M=a.getOptions())&&_.Dj(M,1,1E3))w.maxResults=M;M=a.jd().se();
B=!0}else if(a instanceof _.Jhc)E="teamdrives/"+a.uc(),w.fields="kind,id,recursiveFileCount,recursiveFolderCount",B=A=!0;else if(a instanceof _.yJ)v="PUT",E="apps/"+a.Ih(),w.appId=a.Ih(),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.se(),I=B,B=!0;else if(a instanceof _.wI)v="PUT",E="files/"+a.getId(),w.fields=_.khc({fields:this.eh(),anonymous:_.KI(_.eI(this.H)),mF:_.lI(this.H)}),w.modifiedDateBehavior="DRIVE_UI",w.updateViewedDate=
!!_.Q(a,15),w.fileId=a.getId(),_.se(a,9).length&&(w.addParents=_.se(a,9).join(",")),_.se(a,10).length&&(w.removeParents=_.se(a,10).join(",")),_.se(a,31).length&&(w.addWorkspaces=_.se(a,31).join(",")),_.se(a,32).length&&(w.removeWorkspaces=_.se(a,32).join(",")),null!=_.Q(a,24)&&(w.confirmed=_.Q(a,24)),w.languageCode=ZK(_.eI(this.H)),I=Poc(a),r["content-type"]="application/json",M=a.se(),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=_.se(a,9).concat(_.se(a,10)),b.push(a.getId()),_.KJ(this.H,_.yb(a,_.jl,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.se(),_.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.se(),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.se(),B=!0;else if(a instanceof _.pD){v="PUT";M=_.y(a,_.Vo,1);B=M.getKey();E="settings/"+_.z(B,2);if(B=_.Wo(B))w.namespace=vpc[B];I=wpc(M);r["content-type"]="application/json";M=a.se();B=!0}else if(a instanceof _.OH)E="about",w.fields=_.lI(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=zpc(w.fields,this.H),M=a.se(),B=!0;else if(a instanceof _.DI){q=11;v=a.dA();E=a.getUrl();var ea=_.z(a,5)||"";_.yb(a,_.Rgc,2).forEach(function(xa){r[xa.getKey()]=
xa.Wa()});P=_.m(_.yb(a,_.Rgc,4));for(aa=P.next();!aa.done;aa=P.next())aa=aa.value,w[aa.getKey()]=aa.Wa();_.Q(a,7)&&(b.wNb=!0);_.Q(a,8)&&(b.Ku=!0);_.Q(a,9)&&(b.dGa=!0)}else if(a instanceof _.yhc)b=a.request.qc(),E="files/"+b+"/listCategoryMetadata",M=a.request.se(),a.pageToken&&(w.pageToken=a.pageToken),a.request.wi()&&(w.maxResults=a.request.wi()),w.fields="kind,nextPageToken,categoryMetadata",_.KJ(this.H,[],[b],this.O,r);else if(a instanceof _.zJ)r["content-type"]="application/json",v="POST",b=a.qc(),
E="files/"+b+"/updateCategoryMetadata",M=a.se(),I={categoryMetadata:a.sW().map(function(xa){var Ba=_.yb(xa,_.TF,2).map(function(hb){return{id:hb.getId(),userId:hb.Fu(),setBooleanValue:_.Q(hb,3),setTextValue:_.z(hb,4),setTextValues:_.se(hb,6),addTextValues:_.se(hb,5),setLongTextValue:_.z(hb,7),setSelectionValue:_.z(hb,8),setSelectionValues:_.se(hb,10),addSelectionValues:_.se(hb,9),setIntegerValue:_.z(hb,11),setIntegerValues:_.se(hb,13),addIntegerValues:_.se(hb,12),setUserValue:_.z(hb,14),setUserValues:_.se(hb,
16),addUserValues:_.se(hb,15),setDateStringValue:_.z(hb,17)}}),Ja={categoryName:xa.Hm()};Ba.length?Ja.categoryAttributeValueDeltas=Ba:_.se(xa,4).length?Ja.revertAttributeIds=_.se(xa,4):_.Q(xa,3)&&(Ja.removeCategory=_.Q(xa,3));return Ja})},_.KJ(this.H,[],[b],this.O,r);else if(a instanceof _.tJ)q=13,E=_.KI(_.eI(this.H))?"/v2/people/public":"/v2/people",r["content-type"]="application/json",w.person_id=_.se(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(_.eI(this.H))||(w["core_id_params.enable_private_names"]=!0);else if(a instanceof _.Ehc)q=12,E="/v1/categories/-/published",r["content-type"]="application/json",a.pageToken&&(w.pageToken=a.pageToken),a.request.wi()&&(w.maxResults=a.request.wi()),a.request.getCustomer()&&(w.customer=a.request.getCustomer()),w.$outputDefaults=!0,w.languageCode=
ZK(_.eI(this.H));else if(a instanceof _.VF)q=12,E="/v1/"+a.getName(),r["content-type"]="application/json",w.$outputDefaults=!0,w.languageCode=ZK(_.eI(this.H));else if(a instanceof _.TI)r["content-type"]="application/json",v="POST",E="drives/"+a.uc()+"/changeCategoryReferences",M=a.se(),B=!0,w.fields=CL(this.H,[157],!0),I={},b=_.yb(a,_.Gk,2),b.length&&(I.addCategoryReferences=b.map(function(xa){return{category:xa.Hm()}})),a=_.yb(a,_.Gk,3),a.length&&(I.removeCategoryReferences=a.map(function(xa){return xa.Hm()}));
else if(a instanceof _.bG)_.se(a,1),E="workspaces/"+_.se(a,1)[0],w.fields="kind,id,title,createdDate,modifiedDate,state",M=a.se(),B=!0;else if(a instanceof _.xhc){if(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=_.IJ(this.H),(null===a||void 0===a?0:_.R(a,13,!1))||(null===a||void 0===a?0:_.R(a,
21,!1)))b=[],(null===a||void 0===a?0:_.R(a,13,!1))&&b.push("MULTIPARENTING_MIGRATION"),(null===a||void 0===a?0:_.R(a,21,!1))&&b.push("HIERARCHY_RECONCILIATION"),I.filter="actor.type_case:(USER IMPERSONATION ADMINISTRATOR SYSTEM) actor.system.type:("+(b.join(" ")+")")}else a instanceof _.Ahc?(q=8,v="POST",E="/v1/exports/"+a.H+":cancel"):a instanceof _.Bhc?(q=8,E="/v1/exports/"+a.H):"undefined"!=typeof _.Dhc&&a instanceof _.Dhc?(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=_.se(a,3),w.namespace=xpc(M),M=a.se(),B=!0):a instanceof _.Lhc?(E="workspaces",w.fields="kind,nextPageToken,items(kind,id,title,createdDate,modifiedDate,state)",a.pageToken&&(w.pageToken=a.pageToken),a.request.wi()&&(w.maxResults=a.request.wi()),w.q=iJc(a.request),(M=a.request.Mx())&&1==M.getType()&&(w.orderBy="title"),M=a.request.se(),B=!0):a instanceof _.uJ?(E="changes/getRemainingCount",w.pageToken=_.z(a,
2),_.lj(a,3)&&(w.supportsTeamDrives=!0,w.includeItemsFromAllDrives=!0,w.teamDriveId=a.uc()),M=a.se()):a instanceof _.PI?(r["content-type"]="application/json",v="POST",E="files/"+a.qc()+"/sendAccessRequest",I={},A=!0):_.cnc(a);B&&_.dnc(c,w);0!=q||A||M&&_.z(M,1)||_.rK(this.Yf,74438989);return _.enc(this,q,E,w,r,v,M,I,ea)};kJc.prototype.W=function(a,b){a=this.ka.Zl.H(a);b.expectedParentIds=a?a.wk().join(","):[]};
var lJc=ypc("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"),mJc=
ypc("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"),
nJc=ypc("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 oJc=function(a,b,c,d,e,f,h,k,l,p,q,r,v,w,A,B,E,I,M,P,S,aa,ba){this.vpa=_.Yh();this.kga=new _.Ekc;var ma=new _.Xkc(this.xK.bind(this),function(){return S("w8KrJc")}),ea=new LGc(b.Zl),xa=new CGc(ma);c=new tGc(b,f,new nGc(d,e,c),h,this.vpa.promise,k,l,c,S);d=new KGc(b,p,q,r,v,d,e,B,k);this.O=new _.Hkc(a,w);w=new kJc(b,a,k,aa);this.Ata=new $Ic(k,a,A,B);this.H=IAc(a,new _.mmc(this.O,this.kga,w,this.Ata,E,I,M),I,A,P,b.Zl,this.kga,this.vpa.promise,M||void 0);this.vpa.resolve(ba?ba:new _.Klc(new MGc,
ea,xa,this.H,ma,c,d,a))};oJc.prototype.xK=function(){return _.Wa(this.H,function(a){return a.xK()})};var kDc=function(a){var b=new Map,c=Date.now();_.Ta(a.H,function(d,e){d=Hsc(d);d.length&&b.set(e,d.map(function(f){return f?c-f:null}))});return b};
var pJc=function(a,b){var c=this;this.context=a;this.Dg=b;this.ka=null;this.vS=0;this.ma=this.active=!1;this.H=this.wa=null;this.W={};this.Ia=this.Ga=!1;this.Yf=a.mk();this.ha=_.Yh();this.O=a.Xc;this.La=_.IJ(this.O)||new _.Bic;b=_.$K(this.O);this.Ba=new _.wkc(_.Dj(b,2,37500),_.Dj(b,3,6E5));this.ta=a.jR;_.Ta(twc,function(d){c.W[d]=[]});this.V=a.Df.Tt;NL(a.Pj,["hVFf7","T8oKm","BNEDtc"],function(){c.log("Initializing: loaded from local dump");c.initialize()});NL(a.Pj,["hVFf7","T8oKm","mrK8ic"],function(){c.log("Initializing: loaded from sdk backfill");
c.initialize()});NL(a.Pj,["mrK8ic","BNEDtc"],function(){c.log("Updating: sdk backfill complete");c.FL().then(null,_.hg)})};_.g=pJc.prototype;_.g.initialize=function(){var a=this;this.Ga||(this.Ga=!0,xM(this.context).addCallback(function(b){a.ta.initialize().eg(function(){a.ka=b;a.setActive(!0)},function(c){c&&ksc(a.context.Ce(),"drive.ds.sync.storage.LiveDumpUpdater","Error initializing dump storage",_.NI(c));a.log("Error initializing dump storage");a.aT()})}))};
_.g.isInitialized=function(){return!!this.ka||this.ma};_.g.goa=function(a){this.active&&(this.vS+=a,this.vS>_.Dj(_.$K(this.O),1,500)&&this.update(3))};_.g.setActive=function(a){if(this.isInitialized()&&this.active!==a){var b=this.context;a&&(b.VR().xK()||0<b.Df.VI.Loa||b.Kj().Me()||b.yk().Me())||((this.active=a)?(this.ha.resolve(),this.H||this.FL().then(null,_.hg)):(this.ha=_.Yh(),_.n.clearTimeout(this.wa)))}};_.g.aT=function(){this.ma=!0};_.g.QYa=function(){return this.H?this.H.promise:_.Vh()};
_.g.FL=function(){var a=this;if(this.H)return this.H.promise;this.H=_.Yh();_.Zh(this.H.promise,function(){a.H=null});var b=this.Yf.H(106021)||void 0;this.ha.promise.then(function(){return CAc(a.context.XD)}).then(function(c){var d=!c;return a.ma?d:_.Xh([qJc(a,3,d,void 0,void 0,b),qJc(a,0,d,void 0,!0,b),qJc(a,1,d,void 0,!0,b),qJc(a,5,d,void 0,!0,b),qJc(a,6,d,void 0,!0,b)]).then(function(){return d},function(e){e=new _.Gc("Failed to update dump",void 0,_.NI(e));return _.Wh(e)})},function(){return _.Wh(Error("Kg"))}).then(function(c){a.H.resolve(c);
b&&(c=ssc(b),_.x(c,2,!0),b.Dj())},function(c){a.H.reject(c);b&&(c=ssc(b),_.x(c,2,!1),b.Dj())});return this.H.promise};_.g.update=function(a,b){var c=this,d=new _.$h,e=this.Yf.H(106021)||void 0;e&&(Yrc(ssc(e),_.iK(_.ogc,a)),d.then(function(){var f=ssc(e);_.x(f,2,!0);e.Dj()},function(){var f=ssc(e);_.x(f,2,!1);e.Dj()}));this.ha.promise.then(function(){return CAc(c.context.XD)}).then(function(f){f=!f;c.ma?d.callback():_.ci(qJc(c,a,f,b,void 0,e),d)});return d};
var qJc=function(a,b,c,d,e,f){var h=_.ja(a.W[b]);if(h){if(h.encrypt===c&&1<a.W[b].length)return h.Fe.nn();var k=new _.$h;_.bi(h.Fe,function(){_.ci(a.qw(b,c,d,e,f),k)})}else k=a.qw(b,c,d,e,f);var l={encrypt:c,Fe:k};a.W[b].push(l);_.bi(k,function(){_.ya(a.W[b],function(p){return l===p})});k.zg(function(p){a.ta.O.Gf()?a.aT():p instanceof _.Gc&&(p=p.O||null,p instanceof _.TH&&"InvalidStateError"==p.getName()&&p.message&&-1<p.message.indexOf("The database connection is closing.")&&a.aT());return null});
return k};
pJc.prototype.qw=function(a,b,c,d,e){var f=this,h=new _.$h;this.ha.promise.then(function(){if(3===a)_.ci(rJc(f,c||!1,b,e),h);else{switch(a){case 0:var k=uDc(f.context.GQ);break;case 1:k=f.context.J_.ms();break;case 5:k=sJc(f.context.JE);break;case 6:k=lyc(f.context.Df.Lq);break;default:h.Gd("Invalid data type to write to storage.");return}if(k){var l=_.yb(_.$K(f.O),YK,11)[0].getKey();!l&&b?(f.log("Skipping dump update, encrypted and no key"),h.callback()):zzc(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 rJc=function(a,b,c,d){_.VJ(a.O)||(_.n.clearTimeout(a.wa),a.wa=_.n.setTimeout(function(){_.YH(a.Ba);a.update(3,!0)},a.Ba.Wa()));if(b&&0===a.vS)return _.ei();a.vS=0;b=_.yb(_.$K(a.O),YK,11)[0].getKey();if(!b&&c)return a.log("Skipping dump update, encrypted and no key"),_.ei();for(var e=[],f=_.m(tJc(a)),h=f.next();!h.done;h=f.next())h=uJc(a,h.value),h.length&&e.push(zzc(a.ta,c?b:null,h,d));var k=new _.$h;Promise.all(e).then(function(){a.Ia&&a.context.XD.set(AAc,!0);k.callback()},function(l){return void k.Gd(l)});
return k},tJc=function(a){var b,c,d,e=Object.values(ivc).filter(function(f){return 0<f&&!vJc.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.PD)||null===(d=a.V.O)||void 0===d||!d.PD?e.push(2):e.push(5):e.push(2);return e},uJc=function(a,b){switch(b){case 1:return[wJc(a)];case 2:return b=a.V.H,a=hvc(xJc(a,b),2),b&&fvc(a,b.dO()),[a];case 5:return b=a.V.O,a=hvc(xJc(a,b),5),b&&(fvc(a,b.dO()),b=txc(b),_.qj(a,14,b)),[a];case 3:return yJc(a);case 4:return zJc(a);
default:throw new _.Gc("Unsupported CacheType");}},wJc=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.Dy(),l=AJc(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 fvc(hvc(evc(cvc(dvc(gvc((new vL).nz(a.context.Du()),_.bK(a.Dg)),a.ka.lH(null)),BJc(d)),c),1),!e)},xJc=function(a,b){var c=b?b.Dy():
[];c=AJc(a,_.Ya(Hoc(c)));a.log("Exporting "+c.length+" secondary dump items.");c.length>_.Dj(_.$K(a.O),5,2E4)&&(b&&QL(b,!1),c=[]);c=cvc(new vL,BJc(c));var d=new Yoc;(a=a.V.H)&&a.PD&&(a=a.Dy(),_.x(d,3,a.length));a=_.G(c,11,d);b&&fvc(a,b.dO());return a},yJc=function(a){var b=[],c=a.ka;a.V.OW().forEach(function(d){var e=c.lH(d.uc());if(e){var f=AJc(a,Goc(d.Dy()));a.log("Exporting "+f.length+" TD dump items for: "+d.uc());e=fvc(hvc(dvc(cvc(new vL,BJc(f)),e),3),d.dO());d=(new uL).Vg(d.jd());evc(e,[d]);
b.push(e)}});return b},zJc=function(a){var b={},c=[];a.context.Df.OW().forEach(function(d){1===d.nW()&&null==_.Q(d.jd(),6)&&(Goc(d.Dy()).forEach(function(e){b[e.getId()]=e}),d=avc((new uL).Vg(new _.Df),d.jd()),c.push(d))});return[fvc(hvc(evc(cvc(new vL,BJc(Object.values(b))),c),4),!1)]},AJc=function(a,b){b=doc(b);_.Q(a.O,67)&&(b=CJc(b));_.lI(a.O)&&(_.R(a.La,9,!1)?oyc(a.context.Df.Lq,b)&&(_.rK(a.Yf,179490965),a.log("b/179490965 Unexpected people data when writing to disk cache.","warning"),b=myc(a.context.Df.Lq,
b)):b=myc(a.context.Df.Lq,b));return b.filter(function(c){return 4!==c.Lv()})},CJc=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Unc(c)?(c=c.clone(),Enc(c,Tnc),b.push(c)):b.push(c);return b},BJc=function(a){return a.map(function(b){return b.clone()})};pJc.prototype.log=function(a,b){this.context.Ce().log("drive.ds.sync.storage.LiveDumpUpdater",a,void 0===b?"info":b)};pJc.prototype.mFa=function(){this.Ia=!0};var vJc=[2,5];
var DJc=function(){};_.g=DJc.prototype;_.g.setActive=function(){};_.g.aT=function(){};_.g.update=function(){return _.ei()};_.g.QYa=function(){return _.Vh()};_.g.FL=function(){return _.Vh()};_.g.goa=function(){};_.g.mFa=function(){};
var VK=function(a,b,c,d){_.yi.call(this);var e=this;this.Aa=a;this.Ow=c;this.rootId=null;this.Ga=!0;this.ha=null;this.ma=[];this.wa=d||new _.hjc;this.Xc=b.clone();(a=_.IJ(this.Xc))&&_.R(a,1,!1)&&_.fI(this.Xc,28);this.Dg=new _.vjc(this.Xc);this.Am=new Xvc(_.bK(this.Dg),this.Xc);EJc(this);this.rY=new _.en;this.ob=_.n.setTimeout(function(){e.Ce().info("drive.ds.sync.ThinContext","Page stable timed out.");e.rY.resolve();e.mk().O(106020)},1E4);this.I_=new _.$h;this.Ba=new _.Yjc(_.XJ(this.Xc),_.R(this.Xc.Tf(),
52,!1));this.connectionState=new _.Rjc(_.XJ(this.Xc)?3:1,!_.R(this.Xc.Tf(),52,!1));this.Yf=_.nkc(this.Xc,this.Ba,this.connectionState,this.wa,this.rY.promise,this.Ow);this.Bta=new Iwc(this.Yf);this.NQ=new _.$h;this.log("Enabled experiments: "+this.mk().W.W);FJc(this)};_.K(VK,_.yi);VK.prototype.getEnvironment=function(){return this.Ow};VK.prototype.TS=function(){this.Ce().info("drive.ds.sync.ThinContext","Notified of page stable.");_.n.clearTimeout(this.ob);this.rY.resolve()};
var FJc=function(a){var b=function(){a.Zu().then(null,_.hg)},c=a.Aa;(c=c&&_.Cc(c,_.Il))?_.ri(c,"w",b):_.wgc()||_.ri(_.n,"unload",b)};VK.prototype.Zu=function(){this.Yf.O(106005);wsc(this.Yf);var a=this.ma.map(function(b){return b()});_.ra(this.ma);return Promise.all(a).then()};var GJc=function(a,b){a.ma.push(b)};_.g=VK.prototype;_.g.Ce=function(){return this.wa};_.g.nz=function(a,b){"string"===typeof a&&null===this.rootId&&(this.rootId=a,this.I_.callback(a),a.length&&this.G6a(a,b||null))};
_.g.G6a=function(){};_.g.Du=function(){return this.rootId};_.g.mk=function(){return this.Yf};var HJc=function(a){if(!a.ha)throw Error("Lg");return a.ha},IJc=function(a,b){a.ha=b};VK.prototype.RB=function(){return this.Ga||this.connectionState.isConnected()};VK.prototype.Kj=function(){return this.Ba};VK.prototype.yk=function(){return this.connectionState};VK.prototype.QQb=function(a){this.NQ.callback(a)};
var EJc=function(a){var b=a.Xc.Tf();0===_.se(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(_.$K(a.Xc),9,!1))if(b=_.yb(_.$K(a.Xc),YK,11),0<b.length){if(!_.z(b[0],1)||!b[0].getKey()&&!_.XJ(a.Xc)&&!_.VJ(a.Xc))throw Error("Ng");}else _.x(_.$K(a.Xc),9,!1),a.log("Disabling IndexedDB support, missing configuration.");
if(!_.R(_.$K(a.Xc),9,!1)&&(_.XJ(a.Xc)||_.VJ(a.Xc)))throw Error("Og");var c=_.eI(a.Xc);b=!(!c||!_.KI(c));c=c&&_.UJ(c)||"";if(!b&&!c)throw Error("Pg");b&&_.tj(a.Xc,44);_.yb(a.Xc,_.Df,44).forEach(function(d){try{$vc(a.Am,d)}catch(e){if(e instanceof _.Gc&&(d=e.tg)&&3===d.Gv())throw Error("Qg");throw e;}})};VK.prototype.FJ=function(a){this.dispatchEvent(new _.Hc(new _.Gc(void 0,a)))};VK.prototype.log=function(a){this.Ce().info("drive.ds.sync.ThinContext",a)};
var JJc=function(a,b){this.H=a;this.Oe=b};
var KJc=new Set([5,4,1,6,2]),LJc=new Map([[3,1],[7,1],[2,2],[4,2],[5,3],[1,4],[6,5]]),MJc=function(a,b,c){_.yi.call(this);this.ha=a;this.V=b;this.W=c;this.kG=new Map;this.O=new Map;this.status=6;this.H=null};_.K(MJc,_.yi);
MJc.prototype.OQ=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())&&_.Wo(q))&&f.add(q)});[].concat(_.fc(f.values())).forEach(function(q){return void c.push(q)})}if(c.length){var h=KJc.has(b),k=new Map;c.forEach(function(q){k.set(q,new Map)});a.forEach(function(q){var r=q.getKey(),v=r&&_.z(r,2);r=k.get(r&&_.Wo(r));v&&r&&r.set(v,NJc(q))});var l=0,p=0;[].concat(_.fc(k.keys())).forEach(function(q){var r=k.get(q),v=e.kG.get(q);v?h&&(r.forEach(function(w){var A=
w.getKey();(A=v.get(A&&_.z(A,2)))&&_.Cj(w,A)||l++}),[].concat(_.fc(v.values())).forEach(function(w){w=w.getKey();r.has(_.z(w,2))||p++}),e.kG.set(q,r),e.O.set(q,b)):(l+=r.size,e.kG.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)&&OJc(this,!h)}};MJc.prototype.xH=function(){return 0<this.kG.size};
var OJc=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 _.ni("WPi0i"))};MJc.prototype.put=function(a){var b=a.getKey(),c=b&&_.Wo(b);b=b&&_.z(b,2);if(c&&b&&(c=this.kG.get(c))){var d=c.get(b);a=NJc(a);d&&_.Cj(a,d)||(c.set(b,a),OJc(this))}};MJc.prototype.remove=function(a){var b=a&&_.Wo(a);a=a&&_.z(a,2);b&&a&&(b=this.kG.get(b))&&b.delete(a)&&OJc(this)};
var sJc=function(a,b){var c=[];(b||[].concat(_.fc(a.kG.keys()))).forEach(function(e){(e=a.kG.get(e))&&[].concat(_.fc(e.values())).forEach(function(f){return void c.push(f.clone())})});b=b?b.filter(function(e){return a.kG.has(e)}):[].concat(_.fc(a.kG.keys()));var d=new atc;_.sj(d,1,c);_.qj(d,2,b);return d};
MJc.prototype.qH=function(a){var b=this,c=sJc(this,a),d=new _.$z;d.Dc(this.status);_.ekb(d,_.yb(c,_.Vo,1));_.G(d,4,c);var e=0;a.forEach(function(f){f=b.O.get(f);LJc.has(f)&&Infinity>LJc.get(f)&&(e=f)});return new JJc(d,e)};var NJc=function(a){a=a.clone();a.Ng()||a.Hb("");return a};
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var PJc=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},RJc=function(a,b){return QJc(a[b])+(QJc(a[b+1])<<8)+(QJc(a[b+2])<<16)+(QJc(a[b+3])<<24)},QJc=function(a){return 127<a?a-256:a};
var XK=function(a,b,c,d,e,f){VK.call(this,a,b,c,d);var h=this;this.Ua=_.Yh();this.Et=new UL;this.W=null;this.O=_.Yh();this.Ia=new _.$h;this.b7=null;this.mga=new Eyc;this.V=null;this.$a=_.Yh();this.ta=new _.$h;this.vG=new jzc;this.Bx=new Oyc;this.Pha=new Lyc;this.Raa=new _.en;this.La=!1;this.lga=new _.en;this.H={};this.ka=null;this.Jb=new _.of;this.Ja(this.Jb);this.Pj=e?e:new nxc(this.Ce());this.mk().W.O=this.Pj;this.dM=_.R(_.$K(b),9,!1)&&Apc()?SJc(this,b):null;this.Uv=new Rvc(ZK(_.eI(b)));this.XD=
TJc(this,this.dM);this.jR=UJc(this,this.dM,b);this.Df=new AM(this,this.Dg);this.Ys=VJc(this);(a=(a=_.y(this.Xc,_.Ik,12))&&a.getId())&&this.nz(a,6);this.GQ=new tDc(this.Xc,this.Df.Lq,this.Pj,this.Ce(),this.Ys);this.J_=new zDc(this.Ce(),this.Pj,this.Ys);this.JE=new MJc(this.Ce(),this.Pj,this.Ys);this.WI=new Awc(this.Km(),this.Ce(),function(k){return void h.FJ(k)});this.zz=_.R(this.Xc.Tf(),52,!1)?new _.sK(this.yk(),this.Km(),this.Ce(),this.mk()):null;NL(this.Pj,["mrK8ic"],function(){h.$a.promise.then(function(){gEc(h,
h.V)})});this.uOa=new fzc(this.Xc);this.kB=new _.Qkc(this.Xc,this.Df.Zl);this.Cta=new jGc(this);this.a7=new Iyc(this.O.promise,this.Km());this.kb=new Myc(this.Km(),this.a7);this.nga=new bzc(this.O.promise,this.Km(),this.Ce(),this.Xc);this.Qa=new oJc(this.Xc,this.Df,this.FJ.bind(this),this.a7,this.kb,this.Ys,this.mga,this.Dg,this.Du.bind(this),this.Cta,this.J_,this.JE,this.nga,this.vG,this.Ce(),this.uOa,this.kB,this.WI,this.zz,this.Kj(),this.Crb.bind(this),this.mk(),f);this.Ua.resolve(this.Qa);this.iLa=
new UFc(this);NL(this.Pj,["BNEDtc"],function(){return h.lga.resolve()});GJc(this,function(){h.Ys.aT();return _.Vh()})};_.K(XK,VK);
var SJc=function(a,b){var c=_.UJ(_.eI(b)),d=_.WJ(b),e=function(){},f=_.yb(_.$K(b),YK,11);f=f[0]&&_.z(f[0],1);var h=new Vzc(c,d,_.Dj(_.$K(b),10,0)||0,f||"",_.bK(a.Dg));_.XJ(b)?c=pAc(c,d).then(function(l){return l?l:h}):_.VJ(b)&&0<_.Dj(_.$K(b),8,432E6)?(b=WJc(a,c),c=pAc(c,d,b).then(function(l){return l&&(e=function(p){return p.Jl(h).then(null,_.hg)},!l.ha)?l:h})):c=_.Vh(h);var k=new dM(c,a.Ce(),a.mk());k.initialize().then(function(){return e(k)},function(){return null});return k},WJc=function(a,b){var c=
_.Dj(_.$K(a.Xc),8,432E6);if(!_.XJ(a.Xc)&&0<c){a=Math;var d=a.abs;b=_.Uma(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+=RJc(b,e),h.b+=RJc(b,e+4),h.c+=RJc(b,e+8),PJc(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+=RJc(b,e+4);h.a+=RJc(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+=RJc(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=PJc(h);return d.call(a,b)%c}};XK.prototype.kz=function(a){var b=this;return this.dM?this.dM.Gf()?_.Wh(Error("Rg`"+bAc(this.dM))):CAc(this.XD).then(function(c){var d=b.dM,e=[];e.push(b.Ys.QYa());e.push(a?d.Jl():lAc(d));if(a===c)return _.Xh(e).then(function(){return!1});!1===a&&(e.push(aAc(d)),(c=b.Du())&&e.push(b.XD.nz(c)));return _.Xh(e).then(function(){return b.XD.kz(a)},function(){return!1})}):_.Wh(Error("Sg"))};
var UJc=function(a,b,c){var d=null;b&&(d=new tzc(b,c,function(e){a.FJ(e)},a.mk()),d.initialize());return d},TJc=function(a,b){var c=new BAc(b||void 0);c.Du().then(function(d){d&&a.nz(d,5)});b&&(CAc(c).then(function(d){a.Kj().kz(d)}),_.Xh([b.initialize(),a.rY.promise]).then(function(){XJc(a,c)},function(){}));return c},XJc=function(a,b){FAc(b).then(function(c){(!c||c<Date.now()-864E5)&&sAc(_.UJ(_.eI(a.Xc)),_.WJ(a.Xc),a.Ce()).then(function(d){d&&(d=Date.now(),b.set(zAc,d))},function(){})})},VJc=function(a){if(!a.jR)return new DJc;
var b=new pJc(a,a.Dg);a.Jb.listen(a.Kj(),"rb",function(c){return void b.setActive(!c.Me())});a.Jb.listen(a.yk(),[].concat(_.fc(Object.values(_.VB))),function(){return void b.setActive(a.yk().isConnected())});return b};XK.prototype.aZ=function(a){this.b7=a;this.Ia.callback(a)};var xM=function(a){return a.Ia.nn()},jDc=function(a){return a.dM?a.dM.Gf():null},YJc=function(a,b){a.Pj.H("NSockf")?OL(a.Pj,b):NL(a.Pj,["NSockf"],function(){OL(a.Pj,b)})};
XK.prototype.G6a=function(a,b){this.log("Setting Root ID: "+a);a&&(this.Et.nz(a),this.Am.nz(a),6!==b&&1!==b||this.XD.nz(a),YJc(this,"jroI5d"))};XK.prototype.RXa=function(){return this.ta.nn()};var gEc=function(a,b,c){0>b||((void 0===c?0:c)?a.V?a.V=Math.max(a.V,b):(a.V=b,a.$a.resolve()):a.ta.Wf()||(a.ta.callback(b),YJc(a,"T8oKm")))},EDc=function(a){if(!a.W)throw Error("Tg");return a.W};_.g=XK.prototype;_.g.VR=function(){return this.Qa};_.g.Km=function(){return this.Ua.promise.then(function(a){return a.vpa.promise})};
_.g.lFa=function(){this.La||(this.La=!0,this.Raa.resolve(),OL(this.Pj,"aU7Ts"))};_.g.RB=function(){throw Error("Ug");};_.g.Crb=function(a){this.dispatchEvent(a)};var ZJc=function(a,b){AFc(a.Df,b)},$Jc=function(a,b,c){a.H[b]=c},cDc=function(a){a.ka||(a.ka=new Tyc(a.O.promise,a.Km(),a.Ce()));return a.ka};
var EM=function(a,b,c){_.yi.call(this);var d=this;this.Ga=a;this.logName=b;this.wa=_.Yh();this.Ba=this.channel=this.clientId=null;c.then(function(e){return aKc(d,e)})};_.K(EM,_.yi);var aKc=function(a,b){a.clientId=b.clientId;a.channel=b.channel;a.Ba=b.H;DL(a.channel,a.Ga,function(c){c=pwc(c);a.yaa(c.O,!(!c.data||!c.H),c.data,c.error)});a.log("Service initialized: "+a.Ga);a.wa.resolve()};EM.prototype.yaa=function(){};
EM.prototype.send=function(a,b,c,d){var e=this,f=_.Yh();this.wa.promise.then(function(){var h=e.channel;EL(h,e.Ga,lwc(new kwc(e.clientId,a,b,d),h.W),function(k){return void bKc(k,a,f,c||function(){})})});return f.promise};var bKc=function(a,b,c,d){a=pwc(a);a.data?c.resolve(d(a.data,a.H)):(a.error?d=a.error:(d=new _.Fc,_.sI(d,2),_.tI(d,6),_.x(d,21,"Worker["+b+"]: An invalid response was received")),c.reject(new _.Gc(void 0,d)))};EM.prototype.log=function(a){this.Ba&&this.Ba.info(this.logName,a)};
var cKc=function(a,b,c,d){this.clientId=a;this.channel=b;this.H=c;this.O=d};
var FM=function(a,b){_.N.call(this);this.V=a;this.wa=b;this.La=this.AV()};_.K(FM,_.N);FM.prototype.registerService=function(a){var b=this;DL(a,this.V,function(c){return b.hx(c)})};
FM.prototype.hx=function(a){var b=this;a=mwc(a);var c=a.H,d=this.La[a.method],e=null;if(d)try{var f=d(a);if(f instanceof nwc)return owc(f,c);if(f.then)return f.then(function(h){return owc(h,c)},function(h){h=_.uI(h);return owc(b.Zc(void 0,h),c)})}catch(h){e=_.NI(h)}f=new _.Fc;_.sI(f,2);_.tI(f,3);_.Eo(f,this.V+":"+a.method+": "+(e?e.message:"unsupported method"));e&&e.stack&&_.x(f,20,e.stack);return owc(this.Zc(void 0,f),c)};
FM.prototype.Zc=function(a,b,c){if(a&&!b)return new nwc(a,void 0,c);a=_.uI(b);return new nwc(void 0,a,c)};FM.prototype.update=function(a,b,c,d){(a=this.wa.channels[a]||null)&&EL(a,this.V,owc(this.Zc(c,d,b),a.W))};
var dKc=function(){this.channels={};this.H=this.O=this.V=0},eKc=function(a,b){var c=a.V++;a.channels[c]=b;a.O++;a.H=Math.max(a.H,_.Xa(a.channels));return c},fKc=function(a,b){var c=a.channels[b];return c?(delete a.channels[b],c):null};
var gKc=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.Df;this.O=this.context.nga;this.W=cDc(this.context);this.ka=this.context.a7};_.K(gKc,FM);
gKc.prototype.AV=function(){var a=this,b={};return b["4.1"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.Df);return a.Zh(d,c)},b["4.9"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.QH);return a.Zh(d,c)},b["4.2"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.WF);return a.Zh(d,c)},b["4.10"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.aG);return a.Zh(d,c)},b["4.3"]=function(c){var d=c.clientId+":"+c.requestId;
c=TK(c.args[0],!!c.H,_.Df);return a.fk(d,c)},b["4.11"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.QH);return a.fk(d,c)},b["4.4"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.WF);return a.fk(d,c)},b["4.12"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.aG);return a.fk(d,c)},b["4.5"]=function(c){var d=c.clientId+":"+c.requestId,e=TK(c.args[0],!!c.H,_.WF);c=TK(c.args[1],!!c.H,_.WF);return a.LZ(d,e,c)},b["4.6"]=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.LZ(d,e,c)},b["4.7"]=function(c){return a.jG(c)},b["4.8"]=function(c){return a.jG(c)},b["4.13"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.dA);return a.Zh(d,c)},b["4.14"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.bG);return a.Zh(d,c)},b["4.15"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.dA);return a.fk(d,c)},b["4.16"]=function(c){var d=c.clientId+
":"+c.requestId;c=TK(c.args[0],!!c.H,_.bG);return a.fk(d,c)},b["4.18"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.iG);return a.Zh(d,c)},b["4.19"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.iG);return a.fk(d,c)},b["4.22"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.bA);return a.Zh(d,c)},b["4.23"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.bA);return a.fk(d,c)},b["4.21"]=function(c){c=a.H[c.clientId+":"+
c.requestId].query;if(c instanceof _.bA){var d=a.W;Cyc(d,d.getKey(c)).refresh()}return a.Zc([])},b};gKc.prototype.Zh=function(a,b){var c=this,d=new _.en;this.H[a]={query:b,mWb:d.promise};b instanceof _.dA?d.resolve(this.O.Zh(a,b)):b instanceof _.bG?d.resolve(Ayc(this.O,a,b)):b instanceof _.bA?d.resolve(this.W.Zh(a,b)):b instanceof _.iG?d.resolve(this.ka.Zh(a,b)):d.resolve(this.ha.Zh(a,b));return d.promise.then(function(){return c.Zc([])})};gKc.prototype.fk=function(a,b){hKc(this,a,b);return this.Zc([])};
var hKc=function(a,b,c){delete a.H[b];c instanceof _.dA?a.O.fk(b,c):c instanceof _.bG?Byc(a.O,b,c):c instanceof _.bA?a.W.fk(b,c):c instanceof _.iG?a.ka.fk(b,c):a.ha.fk(b,c)};_.g=gKc.prototype;_.g.LZ=function(a,b,c){hKc(this,a,b);return this.Zh(a,c)};_.g.jG=function(a){var b=a.clientId+":"+a.requestId,c=this.H[b].query;c.Gi(a.args[0]);c instanceof _.dA?this.O.Zh(b,c):c instanceof _.bG?Ayc(this.O,b,c):c instanceof _.bA?this.W.Zh(b,c):c instanceof _.iG?this.ka.Zh(b,c):this.ha.Zh(b,c);return this.Zc([])};
_.g.SO=function(a,b){var c=this,d=this.H[a];if(d){a=a.split(":");var e=_.ph(a[0]),f=a[1];d.mWb.then(function(h){b instanceof _.qK||b instanceof _.nK?c.update(e,f,[b.response,b.pageToken,b.H,b.Oe,h]):(d.query instanceof _.Df?Gnc(d.query.H(),b.Bd().filter(function(k){return!zL(k)})):d.query instanceof _.WF&&Gnc(d.query.H(),Object.values(b.ot()).filter(function(k){return k&&!zL(k)})),c.update(e,f,[b,h]))})}};
_.g.CY=function(a,b){if(this.H[a]){var c=a.split(":");a=_.ph(c[0]);c=c[1];var d=b.error;d.jga(b.retryCount);this.update(a,c,void 0,d)}};_.g.JA=function(a){this.H[a]&&(a=a.split(":"),this.update(_.ph(a[0]),a[1],["cacheRefresh"]))};_.g.V9=function(){};_.g.wla=function(a){if(!this.H[a])throw Error("vg`"+a);return this.H[a].query};var iKc=function(a,b){_.Ta(a.H,function(c,d){_.ph(d.split(":")[0])===b&&hKc(a,d,c.query)})};
var jKc=function(a,b,c){EM.call(this,"LRM","drive.ds.sync.cache.LiveRequestManagerProxy",a);this.context=b;this.H=c;this.O={}};_.K(jKc,EM);jKc.prototype.dya=function(a){var b=this;a=new PCc(this.context.Am,this.context.NQ,this.context.Ce(),this.context.Xc,function(c,d){return b.jG(c,d)},a,this.context.mk());kKc(this,a);return a};jKc.prototype.gya=function(a){var b=this;a=new TCc(this.context.Am,this.context.NQ,this.context.Ce(),function(c,d){return b.jG(c,d)},a,this.context.Xc);kKc(this,a);return a};
var kKc=function(a,b){a.Zh(b);_.ff(b,function(){a.fk(b);a.send("4.3",[b.jd()],void 0,b.Oi())});a.send("4.1",[b.jd()],void 0,b.Oi())};_.g=jKc.prototype;_.g.aya=function(a){var b=this,c=new btc(this.context.Xc,this.context.Am,this.context.Ce(),this.context.I_,this.LZ.bind(this),a);this.Zh(c);_.ff(c,function(){b.fk(c);b.send("4.4",[c.jd()],void 0,c.Oi())});this.send("4.2",[c.jd()],void 0,c.Oi());return c};
_.g.jya=function(a){var b=this,c=new XCc(this.context.Ce(),a,this,this.context.Xc);this.Zh(c);_.ff(c,function(){b.fk(c);b.send("4.11",[c.jd()],void 0,c.Oi())});this.send("4.9",[c.jd()],void 0,c.Oi());return c};_.g.kya=function(a){var b=this,c=new YCc(this.context,this,a);this.Zh(c);_.ff(c,function(){b.fk(c);b.send("4.12",[c.jd()],void 0,c.Oi())});this.send("4.10",[c.jd()],void 0,c.Oi());return c};
_.g.nya=function(a){var b=this,c=new aDc(this.context,a,this);this.Zh(c);_.ff(c,function(){b.fk(c);b.send("4.15",[c.jd()],void 0,c.Oi())});this.send("4.13",[c.jd()],void 0,c.Oi());return c};_.g.oya=function(a){var b=this,c=new SCc(this.context.Ce(),a);this.Zh(c);_.ff(c,function(){b.fk(c);b.send("4.16",[c.jd()],void 0,c.Oi())});this.send("4.14",[c.jd()],void 0,c.Oi());return c};
_.g.hya=function(a){var b=this,c=new WCc(this.context,a,function(){b.send("4.21",[],void 0,c.Oi())});this.Zh(c);_.ff(c,function(){b.fk(c);b.send("4.23",[c.jd()],void 0,c.Oi())});this.send("4.22",[c.jd()],void 0,c.Oi());return c};_.g.Xxa=function(a){var b=this,c=new NCc(this.context.Kj(),this.context.yk(),this.context.Ce(),function(d,e){return b.jG(d,e)},a);this.Zh(c);_.ff(c,function(){b.fk(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.fk=function(a){HL(this.H,a.Oi(),4);delete this.O[a.Oi()]};_.g.LZ=function(a,b,c){if(b instanceof _.WF&&c instanceof _.WF)this.send("4.5",[b,c],void 0,a);else if(b instanceof _.aG&&c instanceof _.aG)this.send("4.6",[b,c],void 0,a);else throw Error("Vg");};
_.g.jG=function(a,b){if(!this.O[a])throw Error("vg`"+a);var c=this.O[a];if(c.jd()instanceof _.Df)var d="4.7";else if(c.jd()instanceof _.QH)d="4.8";else if(c.jd()instanceof _.iG)d="4.20";else if(c.jd()instanceof _.dA)d="4.17";else throw Error("Wg");c.jd().Gi(b);this.send(d,[b],void 0,a)};
_.g.yaa=function(a,b,c,d){if(a=this.O[a]){var e,f=0;if(d)a.MB(new XL(d,d.O6())),HL(this.H,a.Oi(),3);else if(c&&c[f]){d=c[f++];if("cacheRefresh"===d){a.YW();return}var h=a.jd();if(h instanceof _.Df||h instanceof _.QH)h instanceof _.Df&&_.lJ(h)?e=TK(d,b,_.kK):e=TK(d,b,_.dI);else if(h instanceof _.WF||h instanceof _.aG)b?(e=new _.jK,Usc(e,function(k){return new _.Ik(JSON.parse(k))},d)):e=d;else if(h instanceof _.iG)e=new _.nK(TK(d,b,KL),c[f++],c[f++],c[f++]);else if(h instanceof _.dA)e=new _.qK(TK(d,
b,ML),c[f++],c[f++],c[f++]);else if(h instanceof _.bG)e=TK(d,b,_.lK);else if(h instanceof _.bA)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(){_.yi.apply(this,arguments);this.commands=new _.Rk;this.ha=this.active=this.vp=!1};_.K(GM,_.yi);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;lKc(this)};var lKc=function(a){if(a.active&&!a.ha){var b=_.Sk(a.commands);if(b)if(a.wa()){do a.ka(b);while(b=_.Sk(a.commands))}else{a.ha=!0;var c=function(){a.ha=!1;lKc(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 _.$h;this.commands.enqueue(new mKc(a,b));lKc(this);return b}catch(c){return _.gi(_.NI(c))}};var mKc=function(a,b){this.H=a;this.Fe=b};mKc.prototype.getCommand=function(){return this.H};
var pKc=function(a){GM.call(this);var b=this;this.context=a;this.H=null;this.Oc=new _.of(this);this.Ja(this.Oc);this.Oc.listen(this.context,"VMiG2e",function(){return void nKc(b)});this.O=this.context.Df.Lq;_.lI(this.context.Xc)&&this.Oc.listen(this.O,"vb",this.W);var c=a.Pj;NL(c,["toquGd"],function(){return b.initialize()});var d=["NSockf"];1!==_.oj(a.Xc.Tf(),17,1)&&(d.push("iuEtc"),NL(c,["mrK8ic"],function(){OL(c,"iuEtc")}));NL(c,d,function(){oKc(b)})};_.K(pKc,GM);pKc.prototype.V=function(){qKc(this)};
var oKc=function(a){if(1===a.context.GQ.Ff().Cb())Promise.resolve();else{var b=_.Rf(_.Sf(new _.Qf,!0),301);b=_.PH(new _.OH,b);a.refresh(b).then(null,function(c){c=_.uI(c);_.x(c,21,"Initial account request failed.");a.context.FJ(c)})}},nKc=function(a){var b=_.Rf(new _.Qf,304);b=_.PH(new _.OH,b);a.refresh(b).then(null,function(){})};
pKc.prototype.refresh=function(a,b){var c=this;this.H||(this.H=this.context.Km().then(function(d){return d.Pe(a,b)}).then(function(d){var e=d.Ff(),f=e.getUser();if(f&&!1===_.wk(f))d=_.vI(_.eI(c.context.Xc)),d=Error("Yg`"+d+"`"+LK(f)),_.Lb(d),_.rK(c.context.mk(),73301807),d=Promise.reject(d);else{f=c.context.GQ;var h=0===f.We()?1:6;_.lI(c.context.Xc)&&fyc(c.O,e);h=vDc(f,e,h);(e=e.getMetadata())&&c.context.nz(_.z(e,2),1);(d=_.z(d,4))&&gEc(c.context,d,!0);h&&c.dispatchEvent(new _.ni("WPi0i"));d=Promise.resolve(new _.pK(f.Ff(),
f.We(),!1))}return d}).then(function(d){return d},function(d){d=_.uI(d);_.x(d,5,1);return Promise.reject(new _.Gc("Error fetching account from server.",d))}),this.H.then(function(){c.H=null},function(){c.H=null}));return this.H};
pKc.prototype.ka=function(a){var b=a.getCommand();if(b.H){var c={};b.dE&&(c.dE=b.dE);this.refresh(b.request,c).then(function(e){return a.Fe.callback(e)},function(e){a.Fe.Gd(e)})}else if(b=this.context.GQ,c=b.Ff(),_.lI(this.context.Xc)){c=c.Ff();var d=c.getUser();d=Sxc(this.O.H,LK(d));fyc(this.O,c);vDc(b,c,b.We())&&this.dispatchEvent(new _.ni("WPi0i"));a.Fe.callback(new _.pK(b.Ff(),b.We(),d))}else c.Cb(),b=new _.pK(c,b.We(),!0),a.Fe.callback(b)};
var qKc=function(a){var b=a.context.Xc.Tf();_.n.setTimeout(function(){var c=_.Rf(new _.Qf,306);c=_.PH(new _.OH,c);a.refresh(c).then(function(){qKc(a)},function(){qKc(a)})},Math.ceil(_.Dj(b,7,9E5)*Math.random())+_.Dj(b,3,72E5))};pKc.prototype.W=function(a){var b=this.context.GQ,c=b.Ff().Ff();c&&a.getPeople().find(function(d){return _.z(d,1)===LK(c.getUser())})&&(fyc(this.O,c),vDc(b,c,b.We())&&this.dispatchEvent(new _.ni("WPi0i")))};var rKc=function(a,b,c){this.request=a;this.H=!!b;this.dE=c||null};
var tKc=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 _.of(this);this.Ja(this.Oc);this.Oc.listen(this.context.J_,"Hb",_.Ob(this.dispatchEvent,new _.ni("Hb",this)));sKc(this)};_.K(tKc,GM);
var sKc=function(a){var b=a.context.Pj;NL(b,["nVUlO"],function(){a.ta=!0;a.setActive(!0)});if(!_.XJ(a.context.Xc)){var c=_.oj(a.context.Xc.Tf(),18,1);NL(b,["NSockf"],function(){1===c?uKc(a):a.setActive(!0)});2===c&&NL(b,["mrK8ic"],function(){a.W||uKc(a)})}},uKc=function(a){var b=new _.Qf;_.Sf(b,!0);_.Rf(b,301);var c=new _.oJ;_.lsc(c,b);_.x(c,1,1);a.refresh(c).then(null,function(){return null})};
tKc.prototype.refresh=function(a,b){var c=this;_.n.clearTimeout(this.ma);this.ma=0;var d=_.Yh();this.O=d.promise;this.O.then(function(){vKc(c)},function(){vKc(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);_.lsc(h,a.se());this.context.Km().then(function(k){return k.Pe(h,b)}).then(function(k){c.error=null;var l=c.context.J_;l.OQ(k,l.xH()?6:1);d.resolve()},function(k){c.H=e;k=_.wd(k);var l=k.tg;_.x(l,5,2);f?(_.sI(l,1),k.message="Initial app settings refresh failed.",
_.x(k.tg,21,"Initial app settings refresh failed."),c.context.FJ(l),c.setActive(!0)):(_.sI(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};tKc.prototype.wa=function(){return!1};
tKc.prototype.Ba=function(a){var b=this,c=a.getCommand(),d=c.request,e=c.lka,f=c.dE?{dE:c.dE}:void 0;if(!wKc(d))return this.context.Km().then(function(l){return l.Pe(d,f)}).then(function(l){a.Fe.callback(new _.mK(l,1,!1))},function(l){a.Fe.Gd(_.NI(l))}),_.Vh(void 0);c=_.Vh();var h=!1;this.O?xKc(this,d.getType())?e=this.O:c=e=new _.Uh(function(l,p){b.O.then(function(){b.refresh(d,f).then(function(){return l()},p)})}):!e&&this.ta&&xKc(this,d.getType())&&!this.error?(h=!0,e=_.Vh()):e=this.refresh(d,
f);var k=a.Fe;e.then(function(){var l=b.context.J_;k.callback(new _.mK(l.ms(),l.We(),h))},function(l){k.Gd(l)});return c.then()};
var wKc=function(a){var b=a.getType();return 1===b||2===b||4===b?(b=_.se(a,4),a=_.se(a,3),!(b&&b.length)&&!(a&&a.length)):!1},xKc=function(a,b){return a.H===b||4===a.H||2===a.H&&1===b},vKc=function(a){a.O=null;var b=a.context.Xc.Tf(),c=new _.Qf;_.Rf(c,306);var d=new _.oJ;_.x(d,1,1);_.lsc(d,c);a.ma=_.n.setTimeout(function(){return void a.refresh(d)},Math.ceil(_.Dj(b,7,9E5)*Math.random())+_.Dj(b,4,72E5))},yKc=function(a,b,c){this.V=a;this.H=!!b;this.O=c||null};
_.Uf.Object.defineProperties(yKc.prototype,{request:{configurable:!0,enumerable:!0,get:function(){return this.V}},lka:{configurable:!0,enumerable:!0,get:function(){return this.H}},dE:{configurable:!0,enumerable:!0,get:function(){return this.O}}});
var AKc=function(a){GM.call(this);var b=this;this.context=a;this.error=null;this.Oc=new _.of(this);this.Ja(this.Oc);this.Oc.listen(this.context.JE,"WPi0i",function(){return b.dispatchEvent(new _.ni("WPi0i"))});this.H=_.Yh();this.O=_.se(this.context.Xc.Tf(),30);zKc(this)};_.K(AKc,GM);
var zKc=function(a){var b=a.context.Pj;NL(b,["rkYxSd"],function(){return a.initialize()});NL(b,["px2C2c"],function(){a.context.Ce().info("drive.ds.sync.userprefs.UserPrefsManager","All user prefs loaded.");a.H.resolve();a.H=null});var c=["NSockf"],d=_.oj(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(sJc(a.context.JE),_.Vo,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 _.Qf;_.Sf(e,!0);_.Rf(e,301);var f=new _.nD;_.G(f,1,e);Voc(f,BKc(a));a.query(f).then(null,function(){a.initialize()})}})};AKc.prototype.V=function(){var a="User prefs detected: "+_.yb(sJc(this.context.JE),_.Vo,1).length;this.context.Ce().info("drive.ds.sync.userprefs.UserPrefsManager",a);CKc(this)};
AKc.prototype.query=function(a,b){var c=this,d=b?{dE:b}:void 0;return this.context.Km().then(function(e){return e.Pe(a,d)}).then(function(e){c.error=null;var f=c.context.JE;f.OQ(_.yb(e,_.Vo,3),f.xH()?6:1,_.se(a,3))}).then(null,function(e){e=_.wd(e);_.x(e.tg,5,4);0<c.commands.Yb()||c.context.FJ(e.tg);c.error=e;throw e;})};
AKc.prototype.ka=function(a){var b=this,c=a.getCommand(),d=a.Fe,e=new Set([].concat(_.fc(this.context.JE.kG.keys()))),f=_.se(c.request,3);f.find(function(h){return!e.has(h)})&&(c.lka=!0);this.error?d.Gd(this.error):c.lka?(Voc(c.request,BKc(this,f)),(this.H?this.H.promise:this.query(c.request,c.dE||void 0)).then(function(){b.getData(d,f,!1)},function(){b.getData(d,f,!1)})):this.getData(d,f,!0)};
var BKc=function(a,b){b=void 0===b?[]:b;a=new Set([].concat(_.fc(a.O),_.fc([].concat(_.fc(a.context.JE.kG.keys()))),_.fc(b)));return[].concat(_.fc(a.values()))};AKc.prototype.getData=function(a,b,c){b=this.context.JE.qH(b);a.callback(new _.oK(b.H,b.Oe,c))};
var CKc=function(a){var b=a.context.Xc.Tf();_.n.setTimeout(function(){var c=new _.nD,d=new _.Qf;_.Rf(d,306);_.G(c,1,d);Voc(c,BKc(a));a.query(c).then(null,_.hg).then(function(){CKc(a)},function(){CKc(a)})},Math.ceil(_.Dj(b,7,9E5)*Math.random())+_.Dj(b,5,72E5))},DKc=function(a,b,c){this.request=a;this.lka=!!b;this.dE=c||null};
var EKc=function(a,b,c,d){FM.call(this,"IS",b);this.context=a;this.Oc=new _.of(this);this.Ba=_.Yh();this.O=null;this.ha=!1;this.W=null;this.Ga=new iDc(a);Uoc(this.Ga);this.Ja(this.Oc);this.ka=new pKc(a);this.Ja(this.ka);this.Oc.listen(this.ka,"WPi0i",function(){return c(new JCc(1))});this.ma=new tKc(a);this.Ja(this.ma);this.Oc.listen(this.ma,"Hb",function(){return c(new JCc(2))});this.ta=new AKc(a);this.Ja(this.ta);this.Oc.listen(this.ta,"WPi0i",function(){return c(new JCc(4))});this.Ia=d;this.H=
this.context.Km()};_.K(EKc,FM);_.g=EKc.prototype;
_.g.AV=function(){var a={};return a["3.43"]=this.q0.bind(this),a["3.42"]=this.C8.bind(this),a["3.1"]=this.ON.bind(this),a["3.2"]=this.qH.bind(this),a["3.3"]=this.ad.bind(this),a["3.35"]=this.sO.bind(this),a["3.4"]=this.XC.bind(this),a["3.5"]=this.ms.bind(this),a["3.6"]=this.QS.bind(this),a["3.8"]=this.Jl.bind(this),a["3.36"]=this.kz.bind(this),a["3.9"]=this.NF.bind(this),a["3.10"]=this.Ar.bind(this),a["3.11"]=this.Vaa.bind(this),a["3.12"]=this.j9.bind(this),a["3.13"]=this.UT.bind(this),a["3.14"]=
this.Taa.bind(this),a["3.15"]=this.l9.bind(this),a["3.16"]=this.Cu.bind(this),a["3.17"]=this.eGb.bind(this),a["3.18"]=this.iGb.bind(this),a["3.19"]=this.UQ.bind(this),a["3.20"]=this.gGb.bind(this),a["3.25"]=this.fGb.bind(this),a["3.22"]=this.k9.bind(this),a["3.28"]=this.sync.bind(this),a["3.30"]=this.Joa.bind(this),a["3.29"]=this.aAb.bind(this),a["3.40"]=this.kGb.bind(this),a["3.33"]=this.lGb.bind(this),a["3.39"]=this.CP.bind(this),a["3.37"]=this.jGb.bind(this),a["3.38"]=this.Wbb.bind(this),a["3.41"]=
this.TS.bind(this),a["3.44"]=this.Q0.bind(this),a["3.45"]=this.Fo.bind(this),a["3.46"]=this.D8.bind(this),a};_.g.ON=function(a){var b=this,c=TK(a.args[0],!!a.H,_.OH);a=new rKc(c,a.args[1],this.context.H[a.clientId]);OL(this.context.Pj,"iuEtc");return this.ka.enqueue(a).then(function(d){return b.Zc([d.response,d.Oe,d.G0])},function(d){return b.Zc(void 0,d)})};
_.g.qH=function(a){var b=this,c=TK(a.args[0],!!a.H,_.nD);a=new DKc(c,a.args[1],this.context.H[a.clientId]);OL(this.context.Pj,"OZvrNc");return this.ta.enqueue(a).then(function(d){return b.Zc([d.response,d.Oe,d.G0])},function(d){return b.Zc(void 0,d)})};
_.g.ad=function(a){var b=this,c=TK(a.args[0],!!a.H,qoc),d=_.Gj(c,_.PI,16,QK)||_.Gj(c,_.QI,1,QK)||_.Gj(c,_.RI,2,QK)||_.Gj(c,_.UI,3,QK)||_.Gj(c,_.tK,4,QK)||_.Gj(c,_.SI,5,QK)||_.Gj(c,_.YI,6,QK)||_.Gj(c,_.$I,7,QK)||_.Gj(c,_.aJ,8,QK)||_.Gj(c,_.dJ,9,QK)||_.Gj(c,_.rJ,18,QK)||_.Gj(c,_.vJ,10,QK)||_.Gj(c,_.wJ,11,QK)||_.Gj(c,_.xJ,12,QK)||_.Gj(c,_.wI,13,QK)||_.Gj(c,_.AJ,14,QK)||_.Gj(c,_.BJ,15,QK)||_.Gj(c,RK,17,QK),e=HM(this,a);return this.H.then(function(f){return f.Pe(d,e)}).then(function(f){return b.Zc([f])},
function(f){return b.Zc(void 0,f)})};_.g.sO=function(a){var b=this,c=TK(a.args[0],!!a.H,zoc),d=_.Gj(c,_.VI,1,Aoc)||_.Gj(c,_.bJ,2,Aoc)||_.Gj(c,_.CJ,3,Aoc),e=HM(this,a);return this.H.then(function(f){return f.Pe(d,e)}).then(function(f){return b.Zc([f])},function(f){return b.Zc(void 0,f)})};
_.g.XC=function(a){var b=this,c=TK(a.args[0],!!a.H,toc),d=HM(this,a),e=[],f=[];voc(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.Pe(h,d)}))});a=_.iI(f).then(function(h){return h.map(function(k){return k.value||k.reason})});_.Zh(a,function(){return void SFc(b.context.Df)});return a.then(function(h){return b.Zc([new foc(e,h)])})};
_.g.ms=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.Pe(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.Oe,!0)}),setTimeout(function(){b.W=null},9E5))}else a=new yKc(c,d,this.context.H[a.clientId]),OL(this.context.Pj,"Qubz4b"),a=this.ma.enqueue(a);return a.then(function(f){return b.Zc([f.response,f.Oe,f.G0])},function(f){return b.Zc(void 0,
f)})};_.g.QS=function(a){var b=this,c=TK(a.args[0],!!a.H,woc),d=_.Gj(c,_.oD,1,xoc)||_.Gj(c,_.pD,2,xoc),e=HM(this,a);return this.H.then(function(f){return f.Pe(d,e)}).then(function(f){return b.Zc([f])},function(f){return b.Zc(void 0,f)})};_.g.Jl=function(a){a=a.args[0];if(this.context.zz)a?_.Akc(this.context.zz,!0):this.context.yk().Me()&&this.context.zz.KM(!0).then(null,function(){});else try{this.context.Kj().Jl(a)}catch(b){return this.Zc(void 0,b)}return this.Zc([])};
_.g.kz=function(a){var b=this,c=a.args[0];return this.context.kz(c).then(function(d){return d?(b.context.Kj().kz(c),b.Ia(c),b.context.Ys.FL().then(null,function(){return!c})):_.Vh(!c)}).then(function(d){return b.Zc([d])},function(d){return b.Zc(void 0,d)})};
_.g.sync=function(){var a=this;return _.Xh([this.context.Raa.promise,this.context.lga.promise]).then(function(){return xM(a.context).then()}).then(function(b){return new _.Uh(function(c,d){b.sync().then(function(){return c()},function(e){return d(e)})})}).then(function(){return a.context.Ys.FL()}).then(function(){return a.Zc([])},function(b){return a.Zc(void 0,b)})};_.g.NF=function(){try{var a=this.context.b7;a&&a.ppa();this.context.Pha.NF();return this.Zc([])}catch(b){return this.Zc(void 0,b)}};
_.g.TS=function(){this.context.TS();return this.Zc([])};_.g.Ar=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.Pe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.Vaa=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.Pe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};
_.g.j9=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.Pe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.UT=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.Pe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};
_.g.Taa=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.Pe(c,d)}).then(function(e){return _.lI(b.context.Xc)?jyc(b.context.Df.Lq,[_.y(e,_.vk,2)],c.qc()).then(function(){return e}):e}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.l9=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.Pe(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.Pe(c,d).then(function(f){return _.lI(b.context.Xc)?hyc(b.context.Df.Lq,f):f})}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.eGb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.UAc),d=new _.xhc(c,a.args[1],a.args[2]||void 0),e=HM(this,a);return this.H.then(function(f){return f.Pe(d,e)}).then(function(f){return b.Zc([f])},function(f){return b.Zc(void 0,f)})};
_.g.iGb=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.Pe(c,d).then(function(f){return _.lI(b.context.Xc)?jyc(b.context.Df.Lq,f.Zc().BN(),c.jd().getId()).then(function(){return f}):f})}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.UQ=function(){var a=this;return(_.R(this.context.Xc.Tf(),52,!1)?_.Vh(ywc(new xwc,0)):this.context.WI.UQ()).then(function(b){return a.Zc([b])},function(b){return a.Zc(void 0,b)})};
_.g.gGb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.whc),d=HM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.fGb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.nJ),d=HM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};
_.g.k9=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.Pe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.Joa=function(a){var b=this,c=TK(a.args[0],!!a.H,_.DI),d=HM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.Zc([e,null])},function(e){return b.Zc([null,_.uI(e)])})};_.g.aAb=function(){return this.Zc([!0])};
_.g.kGb=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.Pe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.lGb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.bA),d=HM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.q0=function(a){a=TK(a.args[0],!!a.H,_.Df);dFc(this.context.Df,[a]);return this.Zc([])};
_.g.C8=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.Pe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.CP=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.Pe(c,d)}).then(function(e){return tyc(c,e)}).then(function(e){return b.Zc(e)},function(e){return b.Zc(void 0,e)})};
_.g.jGb=function(a){var b=this,c=new _.Ehc(TK(a.args[0],!!a.H,_.tVb),a.args[1]),d=HM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.Zc([e.response,e.pageToken])},function(e){return b.Zc(void 0,e)})};_.g.Wbb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.VF),d=HM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};
_.g.Q0=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.Pe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.Fo=function(a){var b=a.args.map(function(c){return TK(c,!!a.H,_.pI)});this.context.Df.Fo(b);SFc(this.context.Df);return this.Zc([])};_.g.D8=function(){var a=this,b=this.context.zz;return(b?b.KM():_.Vh(_.pkc(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=_.Yh();this.context.Ce().info("drive.ds.sync.cacheproxy.WorkerSyncedItemService","Initializing with client build: "+this.context.Xc.Li());this.Oc.listen(this.context,_.ad,function(e){e=e.error;var f=e.tg;f&&3===f.getType()&&!a.ha?(a.ha=!0,a.O.reject(e)):ksc(a.context.Ce(),"drive.ds.sync.cacheproxy.WorkerSyncedItemService","An error occurred in the Shared Worker")});var b=this.context.Pj,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.jca=function(){return this.Ba.promise};_.g.Zu=function(){var a=this.context.b7;a&&a.dispose();return this.context.Zu()};
var HM=function(a,b){return(a=a.context.H[b.clientId])?{dE:a}:{}};
var FKc=function(a,b,c){FM.call(this,"DU",b);this.context=a;this.O=c;this.H=new iDc(a)};_.K(FKc,FM);_.g=FKc.prototype;
_.g.AV=function(){var a=this,b={};return b["5.1"]=function(){return a.Lia()},b["5.2"]=function(c){return a.iN(c)},b["5.4"]=function(c){return a.Xz(c)},b["5.5"]=function(){return a.WR()},b["5.10"]=function(){return a.IN()},b["5.6"]=function(){return a.bea()},b["5.7"]=function(){return a.HT()},b["5.9"]=function(c){return a.Oqa(c)},b["5.8"]=function(c){return a.Q5(c)},b["5.11"]=function(){return a.iqa()},b["5.12"]=function(c){return a.getState(c)},b["5.13"]=function(c){return a.Jl(c)},b};
_.g.Lia=function(){var a=this;this.context.Ys.aT();var b=this.context.Xc;return tAc(_.UJ(_.eI(b)),_.WJ(b),this.context.Ce()).then(null,function(){}).then(function(){return a.Zc([])})};_.g.iN=function(a){a=this.context.Df.Zl.H(a.args[0]);return this.Zc([a])};_.g.Xz=function(a){var b=this;return this.context.kB.Xz(a.args[0]).then(function(c){return b.Zc([c])})};_.g.WR=function(){return this.Zc(this.context.kB.WR())};
_.g.Q5=function(a){var b=this,c=TK(a.args[0],!!a.H,_.Rfc),d=a.args[1],e=a.args[2];if(_.Gj(c,_.mI,3,_.nI)||_.Gj(c,_.EJ,4,_.nI)||_.Gj(c,_.tK,5,_.nI)||_.Gj(c,_.BJ,6,_.nI)||_.Gj(c,_.aJ,7,_.nI)||_.Gj(c,_.UI,8,_.nI)||_.Gj(c,_.YI,9,_.nI)||_.Gj(c,_.wI,10,_.nI)){var f=Gwc(c);return this.context.Km().then(function(h){return h.Pe(f,{E8a:d,F8a:e})}).then(function(h){a:{var k=[],l="";if(h instanceof _.uK){k=h.Zc().Bd();var p=_.z(h,2);l=h.ao()}else if(h instanceof _.GJ)h.getItem()&&k.push(h.getItem()),p=h.pN();
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 _.Vh(this.Zc(void 0,Error("wg")))};_.g.Oqa=function(){var a=this.context.Xc,b=a.Tf();a="email:"+_.eI(a).getEmail().replace(/@.*$/,"");_.x(b,13,a);return this.Zc([])};_.g.bea=function(){this.context.vG.H=new izc(_.oh().substring(0,8));return this.Zc([])};
_.g.HT=function(){var a=this.context.vG.IN();if(a){var b=kzc(this.context.vG);a=[a.H,a.startTime].concat(_.fc(b))}else a=[];b=this.context.vG;b.H=null;b.tZ=[];return this.Zc(a)};_.g.IN=function(){var a=this.context.vG.IN();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.iqa=function(){var a=[this.O.Zu(),_.Ci(3E4)];_.Zh(_.yka(a),function(){_.n.setTimeout(function(){self.close()})});return this.Zc([])};
_.g.Jl=function(a){this.H.Jl(a.args[0]);return this.Zc([])};
var GKc=function(a,b,c,d,e,f,h){_.HK.call(this,a,b,c,d,f,h);this.H=e;this.Yf=null};_.K(GKc,_.HK);GKc.prototype.SM=function(a,b){var c=this;return _.fi(this.H.then(function(d){return d.V4a(xnc(c.O,c.Ba,a,b,c.cj,c.ka))},null))};GKc.prototype.ta=function(a,b){var c=this.jd(a);if(c){var d=0;if(c.file){var e=c.request&&c.request.Xz();e&&(d=_.z(e,1));0===d&&(d=c.file.size)}this.dispatchEvent(new _.Wkc(a,b,d))}};
var HKc=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.Yf=h;this.H={};this.O={};this.Oc=new _.of(this);this.Ja(this.Oc)};_.K(HKc,FM);_.g=HKc.prototype;
_.g.AV=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.KG(c)},b["7.4"]=function(c){return a.retry(c)},b["7.5"]=function(c){return a.SM(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 GKc(this.ka,this.ha,this.ta,this.Ba,this.W,this.ma,this.Yf);this.Oc.listen(f,"Cb",_.Ob(this.Xbb,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=_.Yh();b.O[q]=r;b.update(l,p,IKc(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.KG=function(a){a=a.clientId+":"+a.requestId;this.H[a]&&this.H[a].KG();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.eg(function(r){b.update(a.clientId,c,IKc(0,e,[q,r]))},function(r){b.update(a.clientId,c,IKc(1,e,[q,r.tg]))})});return this.Zc([])}return this.Zc(void 0,_.uI("Could not retry upload."))};
_.g.SM=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=xnc(b.O,b.Ba,c,a,b.cj,b.ka),this.Zc([Coc(c)])):this.Zc(void 0,_.uI("FileUploader not found."))};_.g.Xbb=function(a,b,c){this.update(a,b,IKc(2,c.requestId,[c.progress,c.totalBytes]))};var IKc=function(a,b,c){return[Number(a),b].concat(_.fc(c))};
var JKc=function(a,b){FM.call(this,"IE",b);this.O=a;this.H=new Map};_.K(JKc,FM);JKc.prototype.AV=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};
JKc.prototype.export=function(a){var b=this,c=a.requestId,d=a.clientId+":"+c,e=TK(a.args[0],!!a.H,_.vhc);e=new sM(this.O,e);var f=_.df(e,"Gb",function(h){b.update(a.clientId,c,[h.percentDone,h.cva])});_.ff(e,function(){_.ui(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)})};JKc.prototype.cancel=function(a){(a=this.H.get(a.clientId+":"+a.requestId))&&a.cancel();return this.Zc([])};
var KKc=function(a,b){FM.call(this,"ODS",b);this.context=a;this.H=!1;this.W=_.Yh();this.O=new nDc(a,a.Dg)};_.K(KKc,FM);KKc.prototype.AV=function(){var a=this,b={};return b["6.1"]=function(c){return LKc(a,c)},b["6.2"]=function(c){return MKc(a,c)},b["6.3"]=function(){a.H&&(qDc(a.O),a.H=!1,a.W=_.Yh());return a.Zc([])},b};
var LKc=function(a,b){if(!a.H){a.H=!0;var c=b.args.map(function(d){return TK(d,!!b.H,_.Ik)});a.O.fl(c);OL(a.context.Pj,"GZTDpc");a.W.resolve()}return a.Zc([])},MKc=function(a,b){return a.W.promise.then(function(){var c=b.args.map(function(d){return TK(d,!!b.H,_.pI)});pDc(a.O,c);return a.Zc([])})};
var NKc=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 _.$h)})};NKc.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 OKc=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)})};NKc.prototype.Jo=function(){return[].concat(_.fc(this.services.values())).every(function(a){return a.Wf()})};
var PKc=function(){},QKc={0:2E3,1:3E3,2:5E3},RKc=function(a,b){this.request=a;this.ha=b;this.O=_.Yh();this.continuationToken="";this.V=0;this.cF=this.W=!1;this.H=PKc};RKc.prototype.mh=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=PKc;b.V=0;return c},function(c){b.H=PKc;b.V=0;return Promise.reject(c)})};
RKc.prototype.sendRequest=function(){var a=this;if(this.cF)this.O.resolve((new UK).Dc(8));else{var b=new _.Ihc(this.request,this.continuationToken);this.ha.then(function(c){return c.Pe(b)}).then(function(c){SKc(a,c)},function(c){a.handleError(c)})}};var SKc=function(a,b){var c;a.continuationToken=null!==(c=b.ao())&&void 0!==c?c:"";a.H(b);a.continuationToken?setTimeout(function(){a.sendRequest()},TKc(a.V++,a.ka)):a.O.resolve(b)};RKc.prototype.handleError=function(a){a=_.wd(a);this.O.reject(a)};
RKc.prototype.cancel=function(){this.cF=!0};var TKc=function(a,b){return b?b:(a=QKc[a])?a:1E4};
var UKc=function(a,b){FM.call(this,"TM",b);this.O=a;this.H=new Map};_.K(UKc,FM);UKc.prototype.AV=function(){var a=this,b={};return b["10.1"]=function(c){return VKc(a,c)},b["10.2"]=function(c){return a.cancel(c)},b};
var VKc=function(a,b){var c=b.clientId+":"+b.requestId,d=TK(b.args[0],!!b.H,_.sCc);d=new RKc(d,a.O);a.H.set(c,d);d=d.mh(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};UKc.prototype.cancel=function(a){this.H.get(a.clientId+":"+a.requestId).cancel();return this.Zc([])};
var IM=function(a,b,c){_.N.call(this);this.H=a;this.Ow=b;this.kb=c;this.fields=null;this.Ia=!1;this.La=_.Yh();this.W=!1;this.Ba=_.Yh();this.O=_.Yh();this.ta=null;this.wa=this.Ua=!1;this.yb=_.Yh();this.ha=new Set;this.Ga=new Set;this.V=new Map;this.ma=new Set;this.oz=Date.now();this.services=new NKc;this.Jb=new _.of(this);this.Ja(this.Jb)};_.K(IM,_.N);IM.prototype.aZ=function(a){this.O.promise.then(function(b){b.b7||a.OOa(b)})};
var ZKc=function(a,b){var c=eKc(a.H,b),d=a.Qb.bind(a,c);DL(b,"8.1",d);b.registerService("8.1",d);DL(b,"8.4",a.Qa.bind(a,c));b.registerService("8.5",function(f){return WKc(a,c,f)});DL(b,"8.2",a.Gb.bind(a,c));DL(b,"8.3",a.Kb.bind(a,c));OKc(a.services,b);b.start();XKc(a,c,b);a.ka(c,b);var e=[];a.ta||(a.ta=_.Xh([a.La.promise,a.Ba.promise]).then((0,_.L)(a.initialize,a)));e.push(a.ta);_.Xh(e).then(function(){return void YKc(a,c,b)},function(f){a.Ua=!0;EL(b,"2.2",{err:_.uI(f).Hc()},d)})},$Kc=function(a){return Math.floor((Date.now()-
a.oz)/1E3)},aLc=function(a,b,c){var d=function(e){EL(b,"2.8",{au:"fb"===e.type})};a.Jb.listen(c.WI,["fb","gb"],d);_.ff(b,a.Jb.Tc.bind(a.Jb,c.WI,["fb","gb"],d))},bLc=function(a,b,c){var d=c.yk(),e=[].concat(_.fc(Object.values(_.VB))),f=function(h){EL(b,"2.19",{cs:h.connectionState})};a.Jb.listen(d,e,f);_.ff(b,function(){a.Jb.Tc(d,e,f)})};
IM.prototype.Qb=function(a){var b=fKc(this.H,a);if(b&&((this.services.services.get("LRM")||null).addCallback(function(d){iKc(d,a)}),b.dispose(),this.log((0,_.Xs)("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.Zu().then(c,c)})}};
IM.prototype.Qa=function(a,b){if(this.ha.has(a))return _.Vh();var c=new _.Pc(JSON.parse(b.dsc));_.x(c,24,!1);this.Ia||(this.Ia=!0,this.La.resolve(c));this.ha.add(a);return this.O.promise.then(function(d){$Jc(d,a,_.C(c.Tf(),37,""));ZJc(d,_.se(c,28));d.Df.uma(_.yb(c,_.jl,91));return d.rY.promise.then(function(){dFc(d.Df,_.yb(c,_.Df,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 fEc(e,e.Dg);e.mh(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){cLc(new LEc(h),e);(h=c.H.channels[a]||null)&&EL(h,"2.17",{t:f})})}};
var cLc=function(a,b){b.filter(function(c){return c}).forEach(function(c){return a.mh(c)});a.dispose()};IM.prototype.$a=function(){for(var a=[],b={},c=_.m(_.Ya(this.H.channels)),d=c.next();!d.done;b={afa:b.afa,Ffa:b.Ffa},d=c.next())b.afa=d.value,b.Ffa=_.Yh(),EL(b.afa,"2.12",void 0,function(e){return function(){e.afa.dispose();e.Ffa.resolve()}}(b)),a.push(b.Ffa.promise);return _.Xh(a).then()};
IM.prototype.initialize=function(a){var b=this;a=a[0];_.Iic(a,this.fields);var c=_.y(a,_.HI,58);c=c&&_.R(c,1,!1)?this.kb:void 0;try{var d=new XK(null,a,this.Ow,c,void 0,void 0),e=d.mk().H(106E3);GJc(d,this.$a.bind(this));this.Jb.listen(d.Kj(),"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,_.ad,this.ob);this.Jb.listen(d,"w8KrJc",this.Ec);Dwc(d.WI,this.ka.bind(this));var f=d.zz;f&&Asc(f,function(){return b.ka()});
this.O.resolve(d);var h=dLc(this,d,new EKc(d,this.H,(0,_.L)(this.jc,this),(0,_.L)(this.tc,this)));e&&h.then(function(){return e&&e.Dj()});return h}catch(k){return _.Wh(k)}};
var dLc=function(a,b,c){a.services.activate(c);a.services.activate(new gKc(b,a.H));a.services.activate(new FKc(b,a.H,c));a.services.activate(new KKc(b,a.H));a.services.activate(new HKc(b.Xc,b.kB,b.VR().kga,b.Km(),b.NQ,b.Ce(),b.mk(),a.H));a.services.activate(new JKc(b.Km(),a.H));a.services.activate(new UKc(b.Km(),a.H));return c.initialize()},YKc=function(a,b,c){var d=_.Xa(a.H.channels);a.log((0,_.Xs)("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:$Kc(a),dsp:!a.V.has(b),ivd:!a.ma.has(b)});a.O.promise.then(function(e){e.I_.addCallback(function(f){c.isDisposed()||EL(c,"2.5",{id:f})});1<d&&xM(e).addCallback(function(f){return f.txa()});(a.services.services.get("IS")||null).addCallback(function(f){f.jca().then(function(){c.isDisposed()||EL(c,"2.14")})});aLc(a,c,e);bLc(a,c,e)})};IM.prototype.jc=function(a){a={dt:a.dataType};for(var b=_.m(_.Ya(this.H.channels)),c=b.next();!c.done;c=b.next())EL(c.value,"2.15",a)};
IM.prototype.tc=function(a){var b={oois:a};_.Ya(this.H.channels).forEach(function(c){EL(c,"2.18",b)})};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.Ec=function(){for(var a=_.m(_.Ya(this.H.channels)),b=a.next();!b.done;b=a.next())EL(b.value,"2.7")};var XKc=function(a,b,c){a.ha.has(b)?_.Vh():new _.Uh(function(d){EL(c,"2.1",void 0,function(e){d(a.Qa(b,e))})})};
IM.prototype.ka=function(a,b){var c=this;if("number"===typeof a){if(!b)return _.Wh(Error("ah"));if(this.W&&this.Ga.has(a))return _.Vh()}b=b||_.Ya(this.H.channels)[0];if(!b)return _.Wh(Error("bh"));var d=_.Yh();b.send("1.1",void 0,function(e){WKc(c,a,e);d.resolve()});return d.promise};var WKc=function(a,b,c){_.Ta(c.ac,function(d,e){_.n[e]=d});"number"===typeof b&&a.Ga.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.Ce().info("drive.ds.sync.cacheproxy.Worker",a)})};
var eLc=function(a,b){EM.call(this,"DU","drive.ds.sync.DebugUtilProxy",a);this.context=b;this.H=null};_.K(eLc,EM);_.g=eLc.prototype;_.g.Ka=function(){return _.y(this.context.Xc,_.HI,58)};_.g.getContext=function(){return this.context};_.g.Xz=function(){return _.fi(this.send("5.4",[this.H],function(a,b){return TK(a[0],b,_.tjc)}))};_.g.Ce=function(){return this.context.Ce()};_.g.iN=function(a){return _.fi(this.send("5.2",[a],function(b,c){return b[0]?TK(b[0],c,_.Ik):null}))};
_.g.WR=function(){return _.fi(this.send("5.5",[],function(a,b){return a.map(function(c){return TK(c,b,_.Rfc)})}))};_.g.Q5=function(a,b,c){return _.fi(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,_.Ik)}),pja:f,pageToken:h}}))};_.g.Oqa=function(){this.send("5.9",[])};_.g.Lia=function(){this.send("5.1",[])};_.g.pka=function(){return _.Bgc[_.oj(this.context.Xc.Tf(),8,0)]};_.g.bea=function(){this.send("5.6",[])};
_.g.HT=function(){return _.fi(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 izc(c,d),spanRecs:a}}))};_.g.IN=function(){return _.fi(this.send("5.10",[],function(a){return 0===a.length?null:new izc(a[0],new Date(a[1]))}))};_.g.getState=function(){return _.fi(this.send("5.12",[],function(a){return a[0]}))};_.g.iqa=function(){this.send("5.11",[])};_.g.Jl=function(a){this.send("5.13",[a])};
var fLc=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(fLc,EM);fLc.prototype.start=function(){var a=this;this.promise||(this.promise=this.send("9.1",[this.request],function(b,c){return TK(b[0],c,bCc)},this.id).then(),this.promise.then(function(){return a.dispose()},function(){return a.dispose()}));return this.promise};fLc.prototype.cancel=function(){this.send("9.2",[],void 0,this.id)};
fLc.prototype.yaa=function(a,b,c){this.dispatchEvent(new KCc(c[0],c[1]))};
var gLc=function(a){EM.call(this,"ODS","drive.ds.sync.offline.DataServiceProxy",a);this.H=null};_.K(gLc,EM);gLc.prototype.dZ=function(a){var b=this;(this.H=a)?(this.log("Querying all offline items."),this.H.fW().eg(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.s0(function(c){b.log("Forwarding offline items changes, count:"+c.length);b.send("6.2",c)})):this.send("6.3",[])};
var hLc=function(a,b){YL.call(this,a,b)};_.K(hLc,YL);hLc.prototype.dja=function(a,b,c){return new _.Ehc(a,c)};hLc.prototype.pla=function(a){return a.pageToken||""};hLc.prototype.Cka=function(a){return a.response.H()};hLc.prototype.Z6=function(){};
var iLc=function(a,b,c){rM.call(this,a.Ce(),a.Kj(),a.yk(),b.wi()||void 0);this.request=b;this.logName="drive.ds.sync.PublishedCategoriesLiveList";this.O=[];this.changed=!1;this.ka=c;this.W=new hLc(this.request,this.ka)};_.K(iLc,rM);_.g=iLc.prototype;_.g.sH=function(){this.W.mh().then(this.Ybb.bind(this),this.handleError.bind(this))};_.g.getData=function(){return YBc(new mM,this.O).Dc(this.status)};_.g.ts=function(){return new IBc};_.g.qk=function(){return!this.Me()&&(!this.H||vyc(this.W))};
_.g.Ybb=function(a){this.changed=this.H=!0;this.O=a;this.iu()};_.g.iu=function(){if(this.active){var a=this.status;this.cM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ni(_.bd,this))}};_.g.Yb=function(){return this.O.length};
var jLc=function(a,b,c){rM.call(this,a.Ce(),a.Kj(),a.yk(),b.wi()||10);this.request=b;this.logName="drive.ds.sync.SuggestedWorkspaceItemQueryLiveList";this.O=[];this.data=[];this.changed=!1;this.W=new _.A7a;this.suggestionSessionId=null;this.ka=c};_.K(jLc,rM);_.g=jLc.prototype;_.g.sH=function(){var a=this;this.ka(this.request).then(function(b){a.H=!0;a.changed=!0;a.data=b.Mh();a.suggestionSessionId=b.Vf();a.iu()},this.handleError.bind(this))};
_.g.getData=function(){this.O=this.data;return _.snc(_.rnc((new _.IK).Dc(this.status),this.data.slice(0)),this.suggestionSessionId)};_.g.ts=function(){var a=_.Jy(this.W,this.O,this.data);this.O=this.data;var b=(new BCc).Dc(this.status);return _.sj(b,2,a)};_.g.zP=function(){};_.g.iu=function(){var a=this.status;this.cM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ni(_.bd,this))};_.g.Yb=function(){return this.data.length};
var kLc=function(){};_.g=kLc.prototype;_.g.VM=function(a,b){b=RAc(1).setPosition(b);_.G(b,2,a);return b};_.g.TM=function(a,b){b=RAc(2).setPosition(b);_.G(b,2,a);return b};_.g.fF=function(a,b,c){b=RAc(3).lz(b).setPosition(c);_.G(b,2,a);return b};_.g.dR=function(a,b){b=RAc(4).setPosition(b);_.G(b,2,a);return b};_.g.qN=function(a){return _.y(a,_.PAc,2)};
var lLc=function(){_.Ky.call(this,new kLc,function(a){a:switch(_.Bb(a,_.hM)){case 6:a=_.Iy(_.Gj(a,_.Hy,6,_.hM)).getTime().toString();break a;case 7:var b=_.Gj(a,_.gM,7,_.hM);a=_.y(b,_.Hy,1);b=b.Iv();a=a&&b?_.Iy(b).getTime()+"--"+_.Iy(a).getTime():"";break a;default:a=""}return a})};_.K(lLc,_.Ky);var nLc=function(){mLc||(mLc=new lLc);return mLc},mLc;
var oLc=function(a,b,c,d){rM.call(this,b.Ce(),b.Kj(),b.yk(),d);this.request=a;this.logName="drive.ds.sync.SyncedActivityQueryLiveList";this.O=!1;this.W=[];this.activities=[];this.token="";this.changed=!1;this.ka=new _.wkc(_.Dj(b.Xc.Tf(),6,1E3));this.ma=c};_.K(oLc,rM);_.g=oLc.prototype;_.g.XP=function(){rM.prototype.XP.call(this);this.iu()};_.g.sH=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);_.sj(a,2,this.activities.slice(0,this.limit));this.W=_.Aa(this.activities);return a};_.g.ts=function(){var a=_.Jy(nLc(),this.W,this.activities),b=new TAc;a=_.sj(b,2,a).Dc(this.status);this.W=_.Aa(this.activities);return a};_.g.qk=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.qk()&&this.activities.length<this.limit?this.ma(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.Iy()||"";0<d.length&&(b.changed=!0);b.iu();b.page(a)},function(c){b.dispatchEvent(new _.Hc(c));b.O=!1}):(this.O=!1,a&&a.callback(),pLc(this))):this.O=!1};
_.g.poll=function(){var a=this;this.active&&(this.O=!0,this.ma(this.request,this.limit).then(function(b){var c=nLc();a.H=!0;var d=_.yb(b,_.PAc,1);aL(c,a.activities.slice(0,d.length),d)?(a.activities=d,a.token=b.Iy()||"",a.changed=!0,a.iu(),a.page()):(a.O=!1,pLc(a))},function(b){a.dispatchEvent(new _.Hc(b));a.O=!1}))};_.g.iu=function(){if(this.active){var a=this.status;this.cM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ni(_.bd,this))}};
_.g.cM=function(){this.Me()&&!this.H?this.status=2:this.status=this.activities.length<this.limit&&(!this.H||this.token)?6:1};_.g.zP=function(){this.active&&this.qk()&&!this.O&&this.page(new _.$h)};var pLc=function(a){_.Q(a.request,3)||(_.YH(a.ka),_.n.setTimeout((0,_.L)(a.poll,a),a.ka.Wa()))};oLc.prototype.Yb=function(){return this.activities.length};
var qLc=function(){};_.g=qLc.prototype;_.g.VM=function(a,b){return $Ac(ZAc(1),a).setPosition(b)};_.g.TM=function(a,b){return $Ac(ZAc(2).setPosition(b),a)};_.g.fF=function(a,b,c){return $Ac(ZAc(3).lz(b).setPosition(c),a)};_.g.dR=function(a,b){return $Ac(ZAc(4),a).setPosition(b)};_.g.qN=function(a){return _.y(a,_.FL,2)};
var rLc=function(){_.Ky.call(this,new qLc,function(a){return a.getId()})};_.K(rLc,_.Ky);var tLc=function(){sLc||(sLc=new rLc);return sLc},sLc;
var uLc=function(a,b,c){rM.call(this,b.Ce(),b.Kj(),b.yk());this.request=a;this.logName="drive.ds.sync.SyncedBackupsQueryLiveList";this.W=[];this.backups=[];this.changed=!1;this.O=new _.wkc(_.Dj(b.Xc.Tf(),54,1E3));this.ka=c};_.K(uLc,rM);_.g=uLc.prototype;_.g.activate=function(){rM.prototype.activate.call(this);this.iu()};_.g.sH=function(){this.poll()};_.g.getData=function(){var a=new fBc;a=_.sj(a,2,this.backups).Dc(this.status);this.W=_.Aa(this.backups);return a};
_.g.ts=function(){var a=_.Jy(tLc(),this.W,this.backups),b=new dBc;a=_.sj(b,2,a).Dc(this.status);this.W=_.Aa(this.backups);return a};_.g.qk=function(){return!this.Me()&&!this.H};_.g.poll=function(){var a=this,b=new _.$h;this.ka(this.request).then(function(c){a.H=!0;c=_.yb(c,_.FL,2);aL(tLc(),a.backups,c)&&(a.changed=!0,a.backups=c,a.O.reset());a.iu();b.callback();vLc(a)},function(c){a.dispatchEvent(new _.Hc(c));b.Gd(c);vLc(a)});return b};
_.g.iu=function(){if(this.active){var a=this.status;this.cM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ni(_.bd,this))}};_.g.zP=function(){};var vLc=function(a){a.active&&(_.n.setTimeout((0,_.L)(a.poll,a),a.O.Wa()),_.YH(a.O))};uLc.prototype.Yb=function(){return this.backups.length};
var wLc=function(){};_.g=wLc.prototype;_.g.VM=function(a,b){return hCc(gCc(1),a).setPosition(b)};_.g.TM=function(a,b){return hCc(gCc(2).setPosition(b),a)};_.g.fF=function(a,b,c){return hCc(gCc(3).lz(b).setPosition(c),a)};_.g.dR=function(a,b){return hCc(gCc(4),a).setPosition(b)};_.g.qN=function(a){return _.y(a,_.vk,2)};
var xLc=function(){_.Ky.call(this,new wLc,function(a){return a.getId()})};_.K(xLc,_.Ky);
var JM=function(a,b,c){_.yi.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,_.yi);JM.prototype.Gi=function(a){this.limit=a};JM.prototype.mh=function(){return this.H||this.O&&""===this.nextPageToken?Promise.resolve():yLc(this)};JM.prototype.rla=function(){return this.permissions};
var yLc=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.ao()||"";a=a.Zc().BN();this.permissions=_.za(this.permissions,a);a.length&&this.dispatchEvent("wb");if(this.nextPageToken&&this.permissions.length<this.limit)return yLc(this);this.dispatchEvent("zb")};
JM.prototype.handleError=function(a){this.H=!1;a=new XL(_.uI(a),_.Dj(this.context.Xc.Tf(),1,1));this.dispatchEvent(a)};
var zLc=function(a,b,c,d){rM.call(this,b.Ce(),b.Kj(),b.yk(),d||100);var e=this;this.request=a;this.context=b;this.logName="drive.ds.sync.SyncedPermissionQueryLiveList";this.ka=[];this.permissions=[];this.changed=!1;this.W=null;this.ma=c;this.O=new JM(b,this.request,this.ma);_.ff(this,function(){e.W&&(_.n.clearTimeout(e.W),e.W=null)})};_.K(zLc,rM);_.g=zLc.prototype;_.g.activate=function(){rM.prototype.activate.call(this);this.iu()};_.g.sH=function(){this.query()};
_.g.Ju=function(a){rM.prototype.Ju.call(this,a||100)};_.g.getData=function(){var a=Dsc(new Csc,this.permissions.slice(0,this.limit)).Dc(this.status);this.ka=_.Aa(this.permissions);return a};_.g.ts=function(){var a=_.Jy(_.Xl(xLc),this.ka,this.permissions),b=new jCc;a=_.sj(b,2,a).Dc(this.status);this.ka=_.Aa(this.permissions);return a};_.g.qk=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.ma);this.O.Gi(this.limit);return this.O.mh().then(function(){return ALc(a)},function(b){return a.handleError(b)})};_.g.handleError=function(a){rM.prototype.handleError.call(this,a);BLc(this)};var ALc=function(a){a.H=!0;var b=a.O.rla();aL(_.Xl(xLc),a.permissions,b)&&(a.changed=!0,a.permissions=b);a.iu();BLc(a)};
zLc.prototype.iu=function(){if(this.active){var a=this.status;this.cM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ni(_.bd,this))}};zLc.prototype.zP=function(){var a=this;this.O.Gi(this.limit);this.O.mh().then(function(){return ALc(a)},function(b){return a.handleError(b)})};var BLc=function(a){if(a.active){var b=a.context.Xc.Tf();a.W=_.n.setTimeout((0,_.L)(a.query,a),Math.ceil(_.Dj(b,7,9E5)*Math.random())+_.Dj(b,15,36E5))}};zLc.prototype.Yb=function(){return this.permissions.length};
var CLc=function(a){6!==a.status&&_.n.setTimeout(function(){a.dispatchEvent(new _.ni(_.bd,a))},0)};
var DLc=function(){},ELc=function(a,b){EM.call(this,"TM","drive.ds.sync.TeamDriveMovePreflightRunnerProxy",a);this.request=b;this.O=DLc;this.H=null;this.id=String(_.Fa(this))};_.K(ELc,EM);ELc.prototype.yaa=function(a,b,c){a===this.id&&(a=_.m(c).next().value,this.O(TK(a,b,UK)))};ELc.prototype.mh=function(a){a=void 0===a?DLc:a;if(!this.H){this.O=a;var b=_.Yh();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};
ELc.prototype.cancel=function(){this.send("10.2",[this.request],void 0,this.id)};
var FLc=function(a,b,c){_.yi.call(this);var d=this;this.instanceId=a;this.H=b;this.O=c;this.Tu={};this.files={};_.ff(this,function(){d.H("7.6",[])})};_.K(FLc,_.yi);_.g=FLc.prototype;_.g.getId=function(){return this.instanceId};_.g.cR=function(){return _.EI()};
_.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 _.Mic;_.x(d,1,b.size);_.G(a,15,d);this.files[a.mj()]=b}return _.fi(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.KG=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 _.$h;c=this.cR();this.Tu[c]=b;b=_.Ya(b);this.H("7.4",[c].concat(_.fc(a)));return b};_.g.SM=function(a,b){var c=this;return _.fi(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.V4a(d)})}))};var GLc=function(a,b,c,d){if(a.Tu[b]&&a.Tu[b][c]){var e=a.Tu[b][c];d instanceof _.GJ?e.callback(d):e.Gd(d);delete a.Tu[b][c];_.ab(a.Tu[b])&&delete a.Tu[b]}};
var HLc=function(a,b){EM.call(this,"FU","drive.ds.sync.upload.FileUploaderProxyManager",a);this.O=b;this.H=new Map};_.K(HLc,EM);var ILc=function(a){var b=_.EI(),c=new FLc(b,function(d,e,f){return a.send(d,e,f,b)},a.O);a.H.set(b,c);_.ff(c,function(){return void a.H.delete(b)});return c};
HLc.prototype.yaa=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,_.Vgc(c,b,Math.min(c.size,b+e))]);break;case 0:b=TK(e[1],b,_.GJ);GLc(a,d,e[0],b);break;case 1:b=new _.Gc(void 0,TK(e[1],b,_.Fc));GLc(a,d,e[0],b);break;case 2:a.dispatchEvent(new _.Wkc(d,e[0],e[1]));break;default:throw Error("ch");}}};
var JLc=function(a,b){if(0===a.length)throw new _.Gc("mutateUserPref requires a namespace.",_.MI(3));var c=null;b instanceof _.pD?c=(b=(b=_.y(b,_.Vo,1))&&b.getKey())&&_.Wo(b)||null:b instanceof _.oD&&(c=(b=b.getKey())&&_.Wo(b)||null);if(!c||!a.find(function(d){return d===c}))throw new _.Gc("mutateUserPref unsupported for namespace: "+c,_.MI(3));};
var KLc=function(a){this.H=a};
var Bpc=function(a){EM.call(this,"IS","drive.ds.sync.ItemServiceProxy",(LLc=_.Yh()).promise);var b=this;this.ta=null;this.Qa=this.Ua=this.$a=this.ma=!1;this.ha=this.ka=this.W=null;this.kb=new _.en;this.La=new _.en;this.V=LLc;LLc=void 0;this.context=a;IJc(this.context,new gLc(this.V.promise));osc(this.context.Dg,_.se(this.context.Xc,28));this.H=this.context.Bta;this.O=new jKc(this.V.promise,this.context,this.H);this.ob=new HLc(this.V.promise,this.context.NQ);this.Ia=new eLc(this.V.promise,this.context);
this.Oc=new _.of(this);this.Ja(this.Oc);this.Oc.listen(this.context.yk(),[].concat(_.fc(Object.values(_.VB))),function(c){return void b.dispatchEvent(c)})},LLc;_.K(Bpc,EM);
Bpc.prototype.initialize=function(){var a=this;if(!this.ta){this.ta=this.wa.promise;var b=this.context.mk().H(106E3);this.ta.then(function(){b&&b.Dj();a.G3a()},function(){_.rK(a.context.mk(),181008852)});this.context.Ce().info("drive.ds.sync.ItemServiceProxy","Initializing "+(_.XJ(this.context.Xc)?"(coldstart) ":"")+"with client build: "+this.context.Xc.Li());var c=poc(this.context.Xc,this.Oi(),_.bK(this.context.Dg));MLc(this,c);if(2===c.H){var d=new IM(new dKc,6,this.context.Ce());ZKc(d,c.O);this.La.resolve(d)}else Uoc(this.Ia);
this.context.Ce().info("drive.ds.sync.ItemServiceProxy","Connecting to worker: "+c.endpoint);c.channel.start();GJc(this.context,function(){return NLc(c.channel)})}return this.ta};
var NLc=function(a){return _.yka([new _.Uh(function(b){a.isDisposed()||EL(a,"8.1",void 0,function(){a.dispose();b()})}),_.Ci(1E4)])},MLc=function(a,b){var c=b.channel;0===b.H?c.registerService("2.0",function(){return{uid:a.Oi(),fds:_.bK(a.context.Dg)}}):c.registerService("1.1",function(){return OLc(a,b)});2===b.H?a.La.promise.then(function(){return void PLc(a,b)}):PLc(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 cKc(d.id,
c,a.context.Ce(),d.clients)),d.dsp&&QLc(c),d.ivd&&RLc(a,c)):(d=new _.Fc(JSON.parse(d.err)),a.wa.reject(new _.Gc("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.nz(d.id)});DL(c,"2.6",function(d){a.context.Kj().Jl(d.os)});DL(c,"2.18",function(d){a.context.Kj().kz(d.oois)});DL(c,"2.7",function(){a.ma=!1});DL(c,"2.8",function(d){a.context.Ga=d.au;a.dispatchEvent(new gtc(d.au?"fb":"gb"))});DL(c,"2.19",function(d){a.context.yk().update(d.cs)});
DL(c,"2.9",function(d){var e=d.logName,f=d.level;d=(0,_.Xs)("[CSW %s] %s",d.totalTime,d.message);switch(f){case "config":a.context.Ce().config(e,d);break;case "fine":_.$J(a.context.Ce(),e,d,"fine");break;case "finer":_.$J(a.context.Ce(),e,d,"finer");break;case "finest":_.$J(a.context.Ce(),e,d,"finest");break;case "info":a.context.Ce().info(e,d);break;case "warning":case "severe":ksc(a.context.Ce(),e,d);break;default:ksc(a.context.Ce(),"drive.ds.sync.ItemServiceProxy","Unknown log level: "+f),ksc(a.context.Ce(),
e,d)}});DL(c,"2.10",function(d){return void a.uaa(d)});DL(c,"2.12",function(){a.Qa=!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.Ce().info("drive.ds.sync.ItemServiceProxy","Prefetched request loaded for: "+d.t.join(","))})},PLc=function(a,b){1!==b.H&&2!==b.H||b.channel.send("8.5",OLc(a,b));EL(b.channel,"8.4",{dsc:a.context.Xc.Hc()});QLc(b.channel);RLc(a,b.channel)},QLc=function(a){_.n._DRIVE_dsp&&EL(a,"8.3",{dsp:SLc(_.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:SLc(c)})}}},RLc=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})}))},OLc=function(a,b){var c={};if(1===b.H){var d=new _.YNa(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.Li(),
ufds:b.V}};Bpc.prototype.Oi=function(){var a=_.tj(_.tj(_.fI(this.context.Xc.clone(),28),44),91),b=new _.RH;b.update(_.UJ(_.eI(a)));b.update(String(_.vI(_.eI(a))));b.update(a.Hc());return _.Zec(b.digest())};var SLc=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.uaa=function(a){this.dispatchEvent(new _.Hc(new _.Gc(void 0,new _.Fc(JSON.parse(a.p)))))};
_.g.query=function(a){KM(this);$vc(this.context.Am,a,msc(this.context.Dg));this.NF();var b=this.O.dya(a);this.Ua||(a=a.se(),a&&121===_.z(a,1)||(this.Ua=!0,this.Oc.listen(b,_.bd,this.vOa)));return b};_.g.vOa=function(a){a=a.currentTarget;1===a.Cb()&&(this.Ia.H=this.$a,this.Oc.Tc(a,_.bd,this.vOa))};_.g.kt=function(a){KM(this);dtc(a);this.NF();return this.O.aya(a)};
_.g.Zva=function(a,b){var c=this;KM(this);if(this.ka&&_.Cj(this.ka.jd(),a))return this.ka;this.ka=new oLc(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.pHa=function(a,b){var c=this;KM(this);if(this.ha&&_.Cj(this.ha.jd(),a))return CLc(this.ha),this.ha;this.ha=new zLc(a,this.context,function(d){return c.send("3.18",[d],function(e,f){return TK(e[0],f,kCc)})},b);_.n.setTimeout(function(){c.ha=null},3E3);return this.ha};_.g.Taa=function(a){KM(this);return _.fi(this.send("3.14",[a],function(b,c){return TK(b[0],c,oM)}))};_.g.l9=function(a){KM(this);return _.fi(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=roc(a);return _.fi(this.send("3.3",[a],function(b,c){return TK(b[0],c,_.GJ)}))};_.g.sO=function(a){KM(this);a=Boc(a);return this.send("3.35",[a],function(b,c){return TK(b[0],c,_.ftc)})};_.g.XC=function(a){KM(this);for(var b=0;b<a.length;b++)!this.ma&&_.HJ(a[b])&&(this.ma=!0);a=uoc(a);return _.fi(this.send("3.4",[a],function(c,d){return qwc(c[0],d).get()}))};_.g.$xa=function(){KM(this);return ILc(this.ob)};
_.g.uUa=function(a){KM(this);return new fLc(this.V.promise,a)};_.g.ms=function(a,b){var c=this;KM(this);var d=_.oh();this.H.create(d,a);return _.fi(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}).zg(function(e){HL(c.H,d);return e})};_.g.Ar=function(a){KM(this);return this.send("3.10",[a],function(b,c){return TK(b[0],c,XAc)})};
_.g.Vaa=function(a){KM(this);return _.fi(this.send("3.11",[a],function(b,c){return TK(b[0],c,YAc)}))};_.g.j9=function(a){KM(this);return _.fi(this.send("3.12",[a],function(b,c){return TK(b[0],c,YAc)}))};_.g.UT=function(a){KM(this);return _.fi(this.send("3.13",[a],function(b,c){return TK(b[0],c,YAc)}))};
_.g.ON=function(a,b){var c=this;KM(this);var d=_.oh();this.H.create(d,a);return _.fi(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}).zg(function(e){HL(c.H,d);return e})};
_.g.qH=function(a,b){var c=this,d=_.se(this.context.Xc.Tf(),30);if(!d||0===d.length)return _.gi(new _.Gc("getUserPrefs requires a namespace.",_.MI(3)));0===_.se(a,3).length&&Voc(a,d);KM(this);var e=_.oh();this.H.create(e,a);return _.fi(this.send("3.2",[a,!!b],function(f,h){h=TK(f[0],h,_.$z);return new _.oK(h,f[1],f[2])})).addCallback(function(f){Nwc(c.H,e,f);return f.response}).zg(function(f){HL(c.H,e);return f})};
_.g.QS=function(a){KM(this);JLc(_.se(this.context.Xc.Tf(),30),a);a=yoc(a);return this.send("3.6",[a],function(b,c){return TK(b[0],c,vCc)})};_.g.Cu=function(a){KM(this);return _.fi(this.send("3.16",[a],function(b,c){return TK(b[0],c,Fsc)}))};_.g.SCa=function(){return this.ma};_.g.Jl=function(a){KM(this);this.send("3.8",[a])};_.g.kz=function(a){KM(this);return _.Vh(this.send("3.36",[a],function(b){return!!b[0]}))};_.g.dZ=function(a){KM(this);HJc(this.context).dZ(a);this.kz(!!a)};
_.g.NF=function(){KM(this);this.send("3.9",[])};_.g.TS=function(){KM(this);this.send("3.41",[]);this.context.TS();var a=dL(this.context.mk(),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.Dj()},function(){})};_.g.RB=function(){KM(this);return this.context.RB()};_.g.UQ=function(){KM(this);return _.Vh(this.send("3.19",[],function(a,b){return TK(a[0],b,xwc)}))};_.g.isConnected=function(){return this.context.yk().isConnected()};
_.g.D8=function(){return this.send("3.46",[],function(a,b){return TK(a[0],b,_.okc)})};_.g.x$=function(){return this.Ia};_.g.sync=function(){KM(this);return _.Vh(this.send("3.28",[]))};_.g.Zu=function(){return this.context.Zu()};_.g.aZ=function(a){this.La.promise.then(function(b){return void b.aZ(a)})};_.g.Eqa=function(a){KM(this);return this.O.kya(a)};_.g.I5=function(a){KM(this);return this.O.jya(a)};_.g.mHa=function(a){KM(this);cwc(this.context.Am,a,msc(this.context.Dg));return this.O.gya(a)};
_.g.Fqa=function(a){KM(this);return new ELc(this.V.promise,a)};_.g.Pwa=function(a){var b=this;KM(this);if(!this.W||this.W.isDisposed())this.W=new uLc(a,this.context,function(c){return b.send("3.20",[c],function(d,e){return TK(d[0],e,fBc)})});return this.W};_.g.bIa=function(){this.W&&!this.W.isDisposed()?this.W.poll():_.Vh()};_.g.k9=function(a){KM(this);return _.fi(this.send("3.22",[a],function(b,c){return TK(b[0],c,gBc)}))};
_.g.gW=function(a){KM(this);return _.fi(this.send("3.25",[a],function(b,c){return TK(b[0],c,bBc)}))};_.g.jca=function(){return this.kb.promise};_.g.Joa=function(a){var b=_.Yh();_.fi(this.send("3.30",[a],function(c,d){c[0]?b.resolve(TK(c[0],d,dCc)):b.reject(new _.Gc(void 0,TK(c[1],d,_.Fc)))})).zg(function(c){return void b.reject(c)});return b.promise};_.g.pxa=function(a){KM(this);return this.O.Xxa(a)};_.g.C8=function(a){KM(this);return this.send("3.42",[a],function(b,c){return TK(b[0],c,JAc)})};
_.g.CP=function(a){KM(this);var b=new _.en;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 KLc(b.promise))};_.g.NHa=function(a){var b=this;KM(this);return new iLc(this.context,a,function(c){return _.Vh(b.send("3.37",[c.request,c.pageToken],function(d,e){return new swc(TK(d[0],e,mM),d[1])}))})};
_.g.OHa=function(a){KM(this);return this.send("3.38",[a],function(b,c){return TK(b[0],c,ZBc)})};_.g.DMa=function(a){KM(this);return this.O.oya(a)};_.g.Ara=function(a){KM(this);return this.O.nya(a)};_.g.YKa=function(a){var b=this;KM(this);return new jLc(this.context,a,function(){return _.Vh(b.send("3.40",[a],function(c,d){return TK(c[0],d,_.IK)}))})};_.g.ZKa=function(a){KM(this);return this.O.hya(a)};_.g.q0=function(a){KM(this);this.send("3.43",[a])};
_.g.Q0=function(a){KM(this);return _.Vh(this.send("3.44",[a],function(b,c){return TK(b[0],c,qtc)}))};_.g.Fo=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(!_.AI(c)&&!c.getItem())return Promise.reject(Error("fh"))}return Promise.resolve(this.send("3.45",a))};
_.g.G3a=function(){var a=this;if(3===this.context.getEnvironment()){var b=[_.Ci(1E4,!1),this.send("3.29",[],function(c){return!!c[0]}).then()];_.yka(b).then(function(c){c?_.Ai(a.G3a.bind(a),6E4):(a.Qa=!0,KM(a))})}};var KM=function(a){a.Qa&&a.dispatchEvent(new hDc)};
var Dpc=function(a){tM.call(this,a);this.ha=this.ka=this.ta=null;this.kb=_.Yh();this.logName="drive.ds.sync.SyncedItemService";this.H=a.Km()};_.K(Dpc,tM);Dpc.prototype.bUa=function(){this.Ia=new pKc(this.context);this.Ja(this.Ia);this.La=new tKc(this.context);this.Ja(this.La);this.Qa=new AKc(this.context);this.Ja(this.Qa)};
Dpc.prototype.$a=function(){var a=this,b=["hVFf7"];_.XJ(this.context.Xc)&&b.push("BNEDtc");NL(this.O,b,function(){return void a.jZa()});NL(this.O,["T8oKm",_.VJ(this.context.Xc)?"BNEDtc":"ZA9qG"],function(){return void TLc(a)});NL(this.O,["T8oKm","mrK8ic"],function(){return void TLc(a)});this.Oc.listen(this.Ia,"WPi0i",this.Dta.bind(this,1));this.Oc.listen(this.La,"Hb",this.Dta.bind(this,2));this.Oc.listen(this.Qa,"WPi0i",this.Dta.bind(this,4));NL(this.O,["GZTDpc"],function(){return a.kb.resolve()})};
var TLc=function(a){xM(a.context).addCallback(function(b){b.start()})};_.g=Dpc.prototype;_.g.Dta=function(a){_.pa(rtc,a)&&this.dispatchEvent(new JCc(a))};_.g.I5=function(a){return this.V.jya(a.clone())};_.g.mHa=function(a){cwc(this.context.Am,a,msc(this.context.Dg));return this.V.gya(a.clone())};_.g.Eqa=function(a){return this.V.kya(a.clone())};_.g.Fqa=function(a){return new RKc(a,this.context.Km())};
_.g.Zva=function(a,b){var c=this;if(this.ta&&_.Cj(this.ta.jd(),a))return this.ta;this.ta=new oLc(a.clone(),this.context,this.bmb.bind(this),b);_.n.setTimeout(function(){c.ta=null},3E3);return this.ta};_.g.bmb=function(a,b,c){var d=new _.xhc(a,b,c);return _.fi(this.H.then(function(e){return e.Pe(d)}).then(null,function(e){return KK(e)}))};_.g.Pwa=function(a){var b=this;if(!this.ha||this.ha.isDisposed())this.ha=new uLc(a,this.context,function(c){return ULc(b,c)});return this.ha};
var ULc=function(a,b){return _.fi(a.H.then(function(c){return c.Pe(b)}).then(null,function(c){return KK(c)}))};_.g=Dpc.prototype;_.g.bIa=function(){this.ha&&!this.ha.isDisposed()?this.ha.poll().then():_.Vh()};_.g.gW=function(a){return _.fi(this.H.then(function(b){return b.Pe(a)}))};_.g.k9=function(a){return _.fi(this.H.then(function(b){return b.Pe(a)}))};
_.g.pHa=function(a,b){var c=this;if(this.ka&&_.Cj(this.ka.jd(),a))return CLc(this.ka),this.ka;this.ka=new zLc(a.clone(),this.context,this.LNb.bind(this),b);_.n.setTimeout(function(){c.ka=null},3E3);return this.ka};_.g.LNb=function(a){var b=this;return this.H.then(function(c){return c.Pe(a)}).then(function(c){return _.lI(b.context.Xc)?jyc(b.context.Df.Lq,c.Zc().BN(),a.jd().getId()).then(function(){return c}):c},KK)};
_.g.Taa=function(a){var b=this;return _.fi(this.H.then(function(c){return c.Pe(a)}).then(function(c){return _.lI(b.context.Xc)?jyc(b.context.Df.Lq,[_.y(c,_.vk,2)],a.qc()).then(function(){return c}):c},KK))};_.g.l9=function(a){return _.fi(this.H.then(function(b){return b.Pe(a)}).then(null,KK))};_.g.pxa=function(a){return this.V.Xxa(a.clone())};_.g.C8=function(a){return this.H.then(function(b){return b.Pe(a)}).then(null,KK)};
_.g.CP=function(a){return this.H.then(function(b){return b.Pe(a)}).then(function(b){var c=new _.en;tyc(a,b).then(function(d){return c.resolve(d)});return new KLc(c.promise)},function(b){KK(b)})};_.g.NHa=function(a){var b=this;return new iLc(this.context,a,function(c){return b.H.then(function(d){return d.Pe(c)}).then(null,function(d){return KK(d)})})};_.g.OHa=function(a){return this.H.then(function(b){return b.Pe(a)}).then(null,KK)};
_.g.ad=function(a){return _.fi(this.H.then(function(b){return b.Pe(a)}).then(null,KK))};_.g.sO=function(a){return this.H.then(function(b){return b.Pe(a)}).then(null,KK)};_.g.XC=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 _.Sn(d);var e=new _.$h;a.addCallback(this.Lob.bind(this,e,c));return e};
_.g.$xa=function(){return new GKc(this.context.Xc,this.context.kB,this.context.VR().kga,this.context.Km(),this.context.NQ,this.context.Ce(),this.context.mk())};_.g.ms=function(a,b){var c=this,d=_.oh();this.W.create(d,a);3===a.getType()?a=tM.prototype.ms.call(this,a).addCallback(function(e){return new _.mK(e,1,!1)}):(OL(this.O,"Qubz4b"),a=this.La.enqueue(new yKc(a,b)));return a.addCallback(function(e){Nwc(c.W,d,e);return e.response}).zg(function(){HL(c.W,d)})};
_.g.Ar=function(a){return _.fi(this.H.then(function(b){return b.Pe(a)}).then(null,KK))};_.g.Vaa=function(a){return _.fi(this.H.then(function(b){return b.Pe(a)}).then(null,KK))};_.g.j9=function(a){return _.fi(this.H.then(function(b){return b.Pe(a)}).then(null,KK))};_.g.UT=function(a){return _.fi(this.H.then(function(b){return b.Pe(a)}).then(null,KK))};
_.g.ON=function(a,b){var c=this;OL(this.O,"iuEtc");var d=_.oh();this.W.create(d,a);return this.Ia.enqueue(new rKc(a,b)).addCallback(function(e){Nwc(c.W,d,e);return e.response}).zg(function(){HL(c.W,d)})};
_.g.qH=function(a,b){var c=this,d=_.se(this.context.Xc.Tf(),30);if(!d||0===d.length)return _.gi(new _.Gc("getUserPrefs requires a namespace.",_.MI(3)));0===_.se(a,3).length&&Voc(a,d);var e=_.oh();this.W.create(e,a);OL(this.O,"OZvrNc");return this.Qa.enqueue(new DKc(a,b)).addCallback(function(f){Nwc(c.W,e,f);return f.response}).zg(function(){HL(c.W,e)})};_.g.QS=function(a){JLc(_.se(this.context.Xc.Tf(),30),a);return _.fi(this.H.then(function(b){return b.Pe(a)}).then(null,KK))};
_.g.Cu=function(a){var b=this;return _.fi(this.H.then(function(c){return c.Pe(a)}).then(function(c){return _.lI(b.context.Xc)?hyc(b.context.Df.Lq,c):c},KK))};_.g.DMa=function(a){return this.V.oya(a.clone())};_.g.Ara=function(a){return this.V.nya(a.clone())};_.g.YKa=function(a){var b=this;return new jLc(this.context,a,function(c){return b.H.then(function(d){return d.Pe(c)}).then(null,function(d){return KK(d)})})};_.g.ZKa=function(a){return this.V.hya(a.clone())};
_.g.q0=function(a){dFc(this.context.Df,[a])};_.g.Q0=function(a){return this.H.then(function(b){return b.Pe(a)}).then(null,KK)};_.g.Fo=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(!_.AI(c)&&!c.getItem())return Promise.reject(Error("fh"))}this.context.Df.Fo(a);SFc(this.context.Df);return Promise.resolve()};_.g.SCa=function(){return this.context.VR().xK()};
_.g.kz=function(a){var b=this;return this.context.kz(a).then(function(c){return c?(b.context.Kj().kz(a),b.context.Ys.FL()):_.Vh(!a)})};_.g.dZ=function(a){HJc(this.context).dZ(a);this.kz(!!a)};_.g.NF=function(){xM(this.context).addCallback(function(a){a&&a.ppa()});this.context.Pha.NF()};_.g.aZ=function(a){a.OOa(this.context)};_.g.Lob=function(a,b,c){for(var d={},e=0;e<c.length;e++)d[b[e]]=c[e][1];SFc(this.context.Df);a.callback(d)};
_.g.sync=function(){var a=this;return _.Xh([this.context.Raa.promise,this.context.lga.promise]).then(function(){return xM(a.context).then()}).then(function(b){return new _.Uh(function(c,d){b.sync().then(function(){return c()},function(e){return d(e)})})}).then(function(){return a.context.Ys.FL()}).then()};_.g.Zu=function(){xM(this.context).addCallback(function(a){a&&a.dispose()});return tM.prototype.Zu.call(this)};_.g.jca=function(){return this.kb.promise};
var VLc=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>")};
_.cn({id:_.Jl,callback:function(a){var b=_.unc(a),c=Gpc(a),d=_.y(a.get(_.Hd),_.Pc,10);_.Iic(d,b);_.qj(d,28,c);b=Epc(a,d);a.registerService(_.Kl,b.x$());_.ri(b,"VbxEwf",function(){var e={};_.Bd(_.br.getService(a),new _.aq(new _.$p(VLc,{}),"d",(e.reload=function(){_.n.window.location.reload()},e),4))});return b}});

_.u();

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

_.WLc=function(a,b){return _.x(a,2,b)};_.XLc=function(a,b){return _.x(a,1,b)};_.YLc=function(a,b){return _.G(a,2,b)};_.ZLc=function(a,b){return _.sj(a,1,b)};_.$Lc=function(a,b){return _.qj(a,1,b)};_.aMc=function(a,b){return _.sj(a,2,b)};_.bMc=function(a,b){return _.G(a,3,b)};

_.u();

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