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

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

_.u();

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

_.Bmb=function(a,b){a.filters.push(new _.eu(1,b));return a};_.Cmb=function(a){a.approvalSummaries||(a.approvalSummaries=_.DSa(a.Xf,a.getItem().FAa));return a.approvalSummaries};_.Dmb=function(a){null===a.contentRestrictions&&(a.contentRestrictions=_.DSa(a.Xf,a.getItem().V1));return a.contentRestrictions};

_.u();

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


_.u();

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

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

_.u();

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

/*

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

_.u();

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

/*

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

_.u();

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

var hxb,kxb;hxb=[4,5,6,7];_.UB=function(a){_.J.call(this,a)};_.K(_.UB,_.J);_.UB.prototype.Cb=function(){return _.z(this,1)};_.UB.prototype.Dc=function(a){return _.x(this,1,a)};_.UB.prototype.kaa=function(){return _.z(this,2)};_.UB.prototype.Tb="JmcaR";_.ixb=function(a){_.J.call(this,a)};_.K(_.ixb,_.J);_.ixb.prototype.H=function(){return _.Q(this,1)};_.ixb.prototype.Tb="dvhrqe";_.jxb=function(a){_.J.call(this,a)};_.K(_.jxb,_.J);_.jxb.prototype.Wo=function(){return _.z(this,2)};
_.jxb.prototype.L2=function(){return _.z(this,3)};kxb=[5];_.lxb=function(a){_.J.call(this,a)};_.K(_.lxb,_.J);_.lxb.prototype.H=function(){return _.Q(this,4)};_.lxb.prototype.setActive=function(a){return _.x(this,4,a)};_.mxb=function(a){_.J.call(this,a,-1,kxb)};_.K(_.mxb,_.J);_.g=_.mxb.prototype;_.g.G_=function(){return _.z(this,1)};_.g.AU=function(){return _.z(this,3)};_.g.sK=function(){return _.yb(this,_.jxb,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,_.lxb,12)};_.g.Nk=function(){return _.z(this,13)};_.g.Xw=function(){return _.z(this,16)};_.g.oCb=function(){return _.mj(this,16)};_.g.Jv=function(){return _.z(this,17)};_.g.Tb="dzR11e";_.nxb=function(a){_.J.call(this,a,-1,hxb)};_.K(_.nxb,_.J);_.nxb.prototype.wl=function(){return _.y(this,_.mxb,1)};_.nxb.prototype.vN=function(){return _.y(this,_.UB,8)};
_.nxb.prototype.H=function(){return _.y(this,_.ixb,9)};_.VB=function(a){_.J.call(this,a,-1,oxb)};_.K(_.VB,_.J);_.VB.prototype.getUser=function(){return _.y(this,_.wk,1)};_.VB.prototype.getMetadata=function(){return _.y(this,_.nxb,3)};_.VB.prototype.Go=function(){return _.mj(this,3)};var oxb=[2];

_.u();

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

_.pxb=function(a,b,c,d,e,f,h){return(0,_.F)(_.vn("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");

_.WB={ZL:"bb",Kha:"cb",$U:"db",ZU:"eb"};_.qxb=new Map([[_.WB.ZL,1],[_.WB.Kha,2],[_.WB.$U,2],[_.WB.ZU,3]]);

_.u();

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


_.u();

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

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

_.TC=function(a){_.J.call(this,a)};_.K(_.TC,_.J);_.TC.prototype.wa=function(){return _.qj(this,1)};_.TC.prototype.V=function(){return _.qj(this,2)};_.TC.prototype.H=function(){return _.qj(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");

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

_.u();

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

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

_.u();

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

/*

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

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

_.u();

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


_.u();

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

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

_.u();

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

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

_.u();

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

var sVb;_.Hc=function(a){_.oi.call(this,_.ad);this.error=a};_.K(_.Hc,_.oi);_.XF=function(a){_.J.call(this,a,-1,sVb)};_.K(_.XF,_.J);_.XF.prototype.H=function(){return _.se(this,1)};_.YF=function(a,b){return _.rj(a,1,b)};_.XF.prototype.V=function(){return _.se(this,2)};_.ZF=function(a,b){return _.rj(a,2,b)};_.XF.prototype.se=function(){return _.y(this,_.Qf,3)};_.$F=function(a,b){return _.G(a,3,b)};_.tVb=function(a,b){return _.x(a,5,b)};sVb=[1,2,6,11];

_.u();

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

_.aG=function(a){_.J.call(this,a)};_.K(_.aG,_.J);_.g=_.aG.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");

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

_.u();

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

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

_.u();

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

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

_.u();

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


_.u();

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

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

_.u();

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

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

_.u();

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


_.u();

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

var $cc;_.RH=function(a){_.J.call(this,a,-1,$cc)};_.K(_.RH,_.J);_.RH.prototype.H=function(){return _.se(this,1)};_.RH.prototype.se=function(){return _.y(this,_.Qf,2)};_.adc=function(a,b){return _.G(a,2,b)};_.RH.prototype.wi=function(){return _.Ej(this,3,20)};_.RH.prototype.Gi=function(a){return _.x(this,3,a)};_.bdc=function(a,b){return _.x(a,4,b)};$cc=[1];

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.ddc=function(a,b){return _.cdc()?(new _.n.Intl.Collator([a||"en-CA"],b||{})).compare:function(c,d){return c.localeCompare(d)}};_.cdc=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
*/
_.edc=function(a){_.N.call(this);this.O=a;this.H={};this.O.UO((0,_.L)(this.V,this))};_.mg(_.edc,_.N);_.gdc=function(a,b){if(-1!=b.indexOf(":"))throw Error("df`"+b);if(b in a.H)throw Error("ef`"+b);var c=new fdc(a,b);return a.H[b]=c};_.edc.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)}};_.edc.prototype.Ya=function(){_.Ta(this.H,function(a){_.ca(a)});_.ca(this.O);delete this.H;delete this.O};
var fdc=function(a,b){_.N.call(this);this.Ig=a;this.H=b};_.mg(fdc,_.N);_.g=fdc.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.IVa,this,b),c)};_.g.UO=function(a){this.O=(0,_.L)(this.IVa,this,a)};_.g.send=function(a,b){if(this.isDisposed())throw Error("ff");this.Ig.O.send(this.H+":"+a,b)};_.g.IVa=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
*/
_.hdc=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a;return c};_.idc=function(){this.blockSize=-1};
_.SH=function(){this.blockSize=-1;this.blockSize=64;this.H=Array(4);this.W=Array(this.blockSize);this.V=this.O=0;this.reset()};_.mg(_.SH,_.idc);_.SH.prototype.reset=function(){this.H[0]=1732584193;this.H[1]=4023233417;this.H[2]=2562383102;this.H[3]=271733878;this.V=this.O=0};
var jdc=function(a,b,c){c||(c=0);var d=Array(16);if("string"===typeof b)for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.H[0];c=a.H[1];e=a.H[2];var f=a.H[3];var h=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(h<<17&4294967295|h>>>
15);h=c+(b^e&(f^b))+d[3]+3250441966&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(h<<12&4294967295|
h>>>20);h=e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(h<<
5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=
e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[7]+1735328473&4294967295;
e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(h<<11&4294967295|
h>>>21);h=e+(f^b^c)+d[7]+4139469664&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[12]+
3873151461&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[12]+1700485571&
4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[13]+1309151649&
4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.H[0]=a.H[0]+b&4294967295;a.H[1]=a.H[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.H[2]=a.H[2]+e&4294967295;a.H[3]=a.H[3]+f&4294967295};
_.SH.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=this.W,e=this.O,f=0;f<b;){if(0==e)for(;f<=c;)jdc(this,a,f),f+=this.blockSize;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.blockSize){jdc(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.blockSize){jdc(this,d);e=0;break}}this.O=e;this.V+=b};
_.SH.prototype.digest=function(){var a=Array((56>this.O?this.blockSize:2*this.blockSize)-this.O);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.V;for(b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.H[b]>>>d&255;return a};

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var kdc,TH,ldc,VH,ndc,mdc;kdc=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(_.Zga);try{delete a[_.Zga]}catch(b){}};
TH=function(a){var b=[],c=[],d={},e=function(f,h){var k=h+"  ";try{if(void 0===f)b.push("undefined");else if(null===f)b.push("NULL");else if("string"===typeof f)b.push('"'+f.replace(/\n/g,"\n"+h)+'"');else if("function"===typeof f)b.push(String(f).replace(/\n/g,"\n"+h));else if(_.Ea(f)){f[_.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++)kdc(c[a]);return b.join("")};_.UH=function(a,b,c){if("number"===typeof a)var d={name:mdc(a)};else d=a,a=ndc(a.name);this.code=a;this.O=d;b="Error "+b+": "+this.getName();c&&(b+=", "+c);_.ia.call(this,b)};_.mg(_.UH,_.ia);_.UH.prototype.getName=function(){return this.O.name||""};
VH={vlb:1,Bkb:2,NOT_FOUND_ERR:3,J$a:4,O$a:5,Dkb:6,qlb:7,ABORT_ERR:8,Tkb:9,j$b:10,TIMEOUT_ERR:11,Qkb:12,INVALID_ACCESS_ERR:13,INVALID_STATE_ERR:14};_.odc=(_.n.H||_.n.O||VH).vlb;_.pdc=(_.n.H||_.n.O||VH).Bkb;_.qdc=(_.n.H||_.n.O||VH).NOT_FOUND_ERR;_.rdc=(_.n.H||_.n.O||VH).J$a;_.sdc=(_.n.H||_.n.O||VH).O$a;_.tdc=(_.n.H||_.n.O||VH).Dkb;_.udc=(_.n.H||_.n.O||VH).qlb;_.vdc=(_.n.H||_.n.O||VH).ABORT_ERR;_.wdc=(_.n.H||_.n.O||VH).Tkb;_.xdc=(_.n.H||_.n.O||VH).TIMEOUT_ERR;_.ydc=(_.n.H||_.n.O||VH).Qkb;
_.zdc=(_.n.DOMException||VH).INVALID_ACCESS_ERR;_.Adc=(_.n.DOMException||VH).INVALID_STATE_ERR;
ndc=function(a){switch(a){case "UnknownError":return _.odc;case "NotFoundError":return _.qdc;case "ConstraintError":return _.rdc;case "DataError":return _.sdc;case "TransactionInactiveError":return _.udc;case "AbortError":return _.vdc;case "ReadOnlyError":return _.wdc;case "TimeoutError":return _.xdc;case "QuotaExceededError":return _.ydc;case "InvalidAccessError":return _.zdc;case "InvalidStateError":return _.Adc;default:return _.odc}};
mdc=function(a){switch(a){case _.odc:return"UnknownError";case _.qdc:return"NotFoundError";case _.rdc:return"ConstraintError";case _.sdc:return"DataError";case _.udc:return"TransactionInactiveError";case _.vdc:return"AbortError";case _.wdc:return"ReadOnlyError";case _.xdc:return"TimeoutError";case _.ydc:return"QuotaExceededError";case _.zdc:return"InvalidAccessError";case _.Adc:return"InvalidStateError";default:return"UnknownError"}};
_.WH=function(a,b){return"error"in a?new _.UH(a.error,b):new _.UH({name:"UnknownError"},b)};_.XH=function(a,b){if("name"in a)return b=b+": "+a.message,new _.UH(a,b);if("code"in a){var c=mdc(a.code);b=b+": "+a.message;return new _.UH({name:c},b)}return new _.UH({name:"UnknownError"},b)};
_.Bdc=function(a){this.H=a};_.Cdc=_.n.IDBKeyRange||_.n.webkitIDBKeyRange;_.Bdc.prototype.range=function(){return this.H};
var Ddc=function(a){this.H=a};Ddc.prototype.getName=function(){return this.H.name};var Edc=function(a,b,c,d){var e=new _.ai;try{var f=a.H[b](d)}catch(h){return c+=" with key "+TH(d),e.Gd(_.XH(h,c)),e}f.onsuccess=function(h){e.callback(h.target.result)};f.onerror=function(h){c+=" with key "+TH(d);e.Gd(_.WH(h.target,c))};return e};Ddc.prototype.get=function(a){return Edc(this,"get","getting from index "+this.getName(),a)};
Ddc.prototype.getKey=function(a){return Edc(this,"getKey","getting key from index "+this.getName(),a)};Ddc.prototype.getAll=function(a,b){return _.Fdc(this,"getAll","getting all from index "+this.getName(),a,b)};
_.Fdc=function(a,b,c,d,e){var f;void 0===d?f=void 0:f=d instanceof _.Bdc?d.range():(new _.Bdc(_.Cdc.only(d))).range();var h=new _.ai;try{var k=a.H[b](f,e)}catch(l){return c+=" for range "+(f?TH(f):"<all>"),h.Gd(_.XH(l,c)),h}k.onsuccess=function(){h.callback(k.result)};k.onerror=function(l){c+=" for range "+(f?TH(f):"<all>");h.Gd(_.WH(l.target,c))};return h};
var Gdc=function(a){this.H=a};Gdc.prototype.getName=function(){return this.H.name};var Hdc=function(a,b,c,d,e){var f=new _.ai;try{var h=e?a.H[b](d,e):a.H[b](d)}catch(k){return c+=TH(d),e&&(c+=", with key "+TH(e)),f.Gd(_.XH(k,c)),f}h.onsuccess=function(k){f.callback(k.target.result)};h.onerror=function(k){c+=TH(d);e&&(c+=", with key "+TH(e));f.Gd(_.WH(k.target,c))};return f};_.g=Gdc.prototype;_.g.put=function(a,b){return Hdc(this,"put","putting into "+this.getName()+" with value",a,b)};
_.g.add=function(a,b){return Hdc(this,"add","adding into "+this.getName()+" with value ",a,b)};_.g.remove=function(a){var b=new _.ai;try{var c=this.H["delete"](a instanceof _.Bdc?a.range():a)}catch(e){return c="removing from "+this.getName()+" with key "+TH(a),b.Gd(_.XH(e,c)),b}c.onsuccess=function(){b.callback()};var d=this;c.onerror=function(e){var f="removing from "+d.getName()+" with key "+TH(a);b.Gd(_.WH(e.target,f))};return b};
_.g.get=function(a){var b=new _.ai;try{var c=this.H.get(a)}catch(e){return c="getting from "+this.getName()+" with key "+TH(a),b.Gd(_.XH(e,c)),b}c.onsuccess=function(e){b.callback(e.target.result)};var d=this;c.onerror=function(e){var f="getting from "+d.getName()+" with key "+TH(a);b.Gd(_.WH(e.target,f))};return b};_.g.getAll=function(a,b){return Idc(this,"getting all from index "+this.getName(),a,b)};
var Idc=function(a,b,c,d){var e;void 0===c?e=void 0:e=c instanceof _.Bdc?c.range():(new _.Bdc(_.Cdc.only(c))).range();var f=new _.ai;try{var h=a.H.getAll(e,d)}catch(k){return b+=" for range "+(e?TH(e):"<all>"),f.Gd(_.XH(k,b)),f}h.onsuccess=function(){f.callback(h.result)};h.onerror=function(k){b+=" for range "+(e?TH(e):"<all>");f.Gd(_.WH(k.target,b))};return f};
Gdc.prototype.clear=function(){var a="clearing store "+this.getName(),b=new _.ai;try{var c=this.H.clear()}catch(d){return b.Gd(_.XH(d,a)),b}c.onsuccess=function(){b.callback()};c.onerror=function(d){b.Gd(_.WH(d.target,a))};return b};Gdc.prototype.getIndex=function(a){try{return new Ddc(this.H.index(a))}catch(b){throw _.XH(b,"getting index "+a);}};
Gdc.prototype.count=function(a){var b=new _.ai;try{var c=this.H.count(a?a.range():null);c.onsuccess=function(e){b.callback(e.target.result)};var d=this;c.onerror=function(e){b.Gd(_.WH(e.target,d.getName()))}}catch(e){b.Gd(_.XH(e,this.getName()))}return b};
var Jdc=function(a,b){_.zi.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.Jbb)};_.mg(Jdc,_.zi);_.g=Jdc.prototype;_.g.Jbb=function(a){a.target instanceof _.UH?this.dispatchEvent({type:"error",target:a.target}):this.dispatchEvent({type:"error",target:_.WH(a.target,"in transaction")})};_.g.Fg=function(){return this.H.mode};
_.g.objectStore=function(a){try{return new Gdc(this.H.objectStore(a))}catch(b){throw _.XH(b,"getting object store "+a);}};_.g.commit=function(a){if(this.H.commit||!a)try{this.H.commit()}catch(b){throw _.XH(b,"cannot commit the transaction");}};
_.g.wait=function(){var a=new _.ai;_.si(this,"complete",(0,_.L)(a.callback,a));var b=_.si(this,"abort",function(){_.xi(c);a.Gd(new _.UH(_.vdc,"waiting for transaction to complete"))});var c=_.si(this,"error",function(e){_.xi(b);a.Gd(e.target)});var d=this.O;return a.addCallback(function(){return d})};_.g.abort=function(){this.H.abort()};_.g.Ya=function(){Jdc.ub.Ya.call(this);this.Eb.dispose()};
var Kdc=function(a){_.zi.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.Kbb);this.Eb.listen(this.H,"versionchange",this.Drb);this.Eb.listen(this.H,"close",(0,_.L)(this.dispatchEvent,this,"close"))};_.mg(Kdc,_.zi);_.g=Kdc.prototype;_.g.Cta=!0;_.g.Kbb=function(a){a=(a=a.target)&&a.error;this.dispatchEvent({type:"error",errorCode:a&&a.severity})};
_.g.Drb=function(a){this.dispatchEvent(new Ldc(a.oldVersion,a.newVersion))};_.g.close=function(){this.Cta&&(this.H.close(),this.Cta=!1)};_.g.Bg=function(){return this.Cta};_.g.getName=function(){return this.H.name};_.g.nj=function(){return Number(this.H.version)};_.Mdc=function(a,b,c){try{return new Gdc(a.H.createObjectStore(b,c))}catch(d){throw _.XH(d,"creating object store "+b);}};
_.Ndc=function(a,b,c){try{var d=c?a.H.transaction(b,c):a.H.transaction(b);return new Jdc(d,a)}catch(e){throw _.XH(e,"creating transaction");}};Kdc.prototype.Ya=function(){Kdc.ub.Ya.call(this);this.Eb.dispose()};var Ldc=function(a,b){_.oi.call(this,"versionchange");this.oldVersion=a;this.newVersion=b};_.mg(Ldc,_.oi);
_.Odc=function(){void 0==ldc&&(ldc=_.n.indexedDB||_.n.mozIndexedDB||_.n.webkitIndexedDB||_.n.moz_indexedDB);return ldc};
_.Pdc=function(a,b,c,d){var e=new _.ai;b=b?_.Odc().open(a,b):_.Odc().open(a);b.onsuccess=function(f){f=new Kdc(f.target.result);e.callback(f)};b.onerror=function(f){e.Gd(_.WH(f.target,"opening database "+a))};b.onupgradeneeded=function(f){if(c){var h=new Kdc(f.target.result);c(new Ldc(f.oldVersion,f.newVersion),h,new Jdc(f.target.transaction,h))}};b.onblocked=function(f){d&&d(new Ldc(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
*/
_.YH=function(a,b,c,d){this.ha=a;this.W=b;this.H=this.V=a;this.ka=c||0;this.ma=d||2};_.YH.prototype.O=0;_.YH.prototype.reset=function(){this.H=this.V=this.ha;this.O=0};_.YH.prototype.Wa=function(){return this.V};_.ZH=function(a){a.H=Math.min(a.W,a.H*a.ma);a.V=Math.min(a.W,a.H+(a.ka?Math.round(a.ka*(Math.random()-.5)*2*a.H):0));a.O++};

_.u();

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

_.Qdc=function(a,b,c){_.rma(a.url,function(d){d=d.target;d.sA()?b(d.Wk()):c(d.Cb())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};_.Rdc=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};_.Tdc=function(a){_.J.call(this,a,-1,Sdc)};_.K(_.Tdc,_.J);var Sdc=[2];
_.Udc=function(a){_.J.call(this,a)};_.K(_.Udc,_.J);var Vdc=function(){var a=new _.Udc,b=document.documentElement.getAttribute("lang");return _.x(a,5,b)};_.Udc.prototype.Li=function(){return _.z(this,7)};
_.Wdc=function(a){_.J.call(this,a)};_.K(_.Wdc,_.J);
var Xdc;_.$H=function(a){_.J.call(this,a,31,Xdc)};_.K(_.$H,_.J);_.aI=function(a,b){return _.x(a,8,b)};Xdc=[3,20,27];
var Zdc=function(a){_.J.call(this,a,17,Ydc)};_.K(Zdc,_.J);var $dc=function(a){var b=Date.now().toString();return _.x(a,4,b)},aec=function(a,b){return _.tj(a,3,b)},bec=function(a,b){return _.x(a,14,b)},Ydc=[3,5];
var dec=function(a){_.J.call(this,a,6,cec)};_.K(dec,_.J);var cec=[5];
var eec=function(a){_.J.call(this,a)};_.K(eec,_.J);
var fec=_.Eb(175237375,eec);
_.bI=function(a,b,c,d,e,f,h,k,l,p,q){_.zi.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;_.zi.call(this);this.Uc=a;this.jc=b||_.ig;this.ka=new Zdc;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&&(_.kj.yo&&_.Rb(65)||_.kj.jv&&_.Rb(45)||_.kj.xx&&
_.Rb(12)||_.Sa()&&0<=_.Ra(_.zaa(),12))&&!!_.Of()&&!!_.Of().navigator&&!!_.Of().navigator.sendBeacon;a=_.x(new _.Wdc,1,1);f||(f=Vdc(),_.G(a,11,f));_.G(this.ka,1,a);_.x(this.ka,2,this.Uc);this.ma=new _.YH(1E4,3E5,.1);this.H=new _.Ai(this.ma.Wa());this.Ja(this.H);_.df(this.H,"tick",_.hha(gec(this,p)),!1,this);this.La=new _.Ai(6E5);this.Ja(this.La);_.df(this.La,"tick",_.hha(gec(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(_.bI,_.zi);var gec=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};_.bI.prototype.Ya=function(){this.Ua();_.zi.prototype.Ya.call(this)};var hec=function(a){a.wa||(a.wa=.01>a.he()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.wa};_.bI.prototype.W=function(a){a instanceof _.$H?this.log(a):(a=_.aI(new _.$H,a.Hc()),this.log(a))};
_.iec=function(a,b){b?(a.V||(a.V=new _.Tdc),b=b.Hc(),_.x(a.V,4,b)):a.V&&_.vb(a.V,4)};_.jec=function(a){a.Kb=a.Rd};_.kec=function(a,b){a.ma=new _.YH(1>b?1:b,3E5,.1);a.H.setInterval(a.ma.Wa())};
_.bI.prototype.log=function(a){a=a.clone();var b=this.le++;_.x(a,21,b);this.Ia&&_.x(a,26,this.Ia);if(!_.z(a,1)){b=a;var c=Date.now().toString();_.x(b,1,c)}_.mj(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 lec(a));this.Qa||this.H.enabled||this.H.start()};
_.bI.prototype.flush=function(a,b){var c=this;if(0===this.O.length)a&&a();else if(this.kb)mec(this);else{var d=Date.now();if(this.Nc>d&&this.ob<d)b&&b("throttled");else{var e=bec(aec($dc(this.ka.clone()),this.O),this.ta);d={};var f=this.jc();f&&(d.Authorization=f);var h=hec(this);this.Ga&&(d["X-Goog-AuthUser"]=this.Ga,h=_.Ti(h,"authuser",this.Ga));this.$a&&(d["X-Goog-PageId"]=this.$a,h=_.Ti(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.cbc(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 dec(B)}catch(E){}A&&(w=Number(_.kna(A,1,"-1")),0<w&&(c.ob=Date.now(),c.Nc=c.ob+w),A=_.Bj(A,fec))&&(A=_.Ej(A,1,-1),-1!=A&&(c.Qb||_.kec(c,A)))}a&&a()},r=
function(w){var A=_.yb(e,_.$H,3);_.ZH(c.ma);c.H.setInterval(c.ma.Wa());401===w&&f&&(c.Ec=f);if(500<=w&&600>w||401===w||0===w)c.O=A.concat(c.O),c.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()}}}};_.bI.prototype.Ua=function(){this.ha||(this.Kb&&mec(this),this.Gb&&nec(this),this.flush())};
var mec=function(a){oec(a,32,10,function(b,c){b=_.Ti(b,"format","json");b=_.Of().navigator.sendBeacon(b,c.Hc());a.kb&&!b&&(a.kb=!1);return b})},nec=function(a){oec(a,6,5,function(b,c){b=_.Ri(b,"format","base64json","p",_.lj(c.Hc(),3));if(15360<b.length)return!1;_.ah(new Image,b);return!0})},oec=function(a,b,c,d){if(0!==a.O.length){var e=_.mma(hec(a),"format");e=_.Ri(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=aec($dc(a.ka.clone()),h);0===f&&bec(k,
a.ta);if(!d(e,k))break;a.O=a.O.slice(h.length)}a.H.enabled&&a.H.stop();a.ta=0}},lec=function(){_.oi.call(this,"event-logged",void 0)};_.K(lec,_.oi);

_.u();

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

var pec=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}}},qec=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 sec=function(a,b,c){var d=String(_.n.location.href);return d&&a&&b?[b,rec(qec(d),a,c||null)].join(" "):null},rec=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)}),tec(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=tec(e.join(" "));a=[c,a];_.qa(h)||a.push(h.join(""));return a.join("_")},tec=function(a){var b=
pec();b.update(a);return b.digestString().toLowerCase()};
var uec={};
var vec,xec;vec=function(a){return!!uec.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};_.wec=function(a){a=void 0===a?!1:a;var b=_.n.__SAPISID||_.n.__APISID||_.n.__3PSAPISID||_.n.__OVERRIDE_SID;vec(a)&&(b=b||_.n.__1PSAPISID);if(b)return!0;var c=new _.XNa(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");vec(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};xec=function(a,b,c,d){(a=_.n[a])||(a=(new _.XNa(document)).get(b));return a?sec(a,c,d):null};
_.yec=function(a,b){b=void 0===b?!1:b;var c=qec(String(_.n.location.href)),d=[];if(_.wec(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 _.XNa(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?sec(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&vec(b)&&((b=xec("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=xec("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",
a))&&d.push(a))}return 0==d.length?null:d.join(" ")};

_.u();

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

_.zec=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=_.Qdc;this.H=""};
_.zec.prototype.build=function(){var a=new _.bI(this.ka,this.La?this.La:_.yec,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,_.Wdc,1),d=_.y(c,_.Udc,11);d||(d=new _.Udc);_.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&&_.iec(a,this.Ba);this.Qa&&(b=this.Qa,a.V||(a.V=new _.Tdc),_.rj(a.V,2,b));this.Ia&&(b=this.Ia,
a.Qb=!0,_.kec(a,b));return a};

_.u();

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

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

_.u();

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


_.u();

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

var Dec;Dec=[1];_.cI=function(a){_.J.call(this,a,-1,Dec)};_.K(_.cI,_.J);_.cI.prototype.H=function(){return _.se(this,1)};_.Eec=function(a,b){return _.rj(a,1,b)};_.dI=function(a){_.J.call(this,a)};_.K(_.dI,_.J);_.g=_.dI.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.x(this,2,a)};_.g.getState=function(){return _.z(this,5)};_.g.Id=function(a){return _.x(this,5,a)};
_.g.zt=function(){return _.mj(this,5)};_.Fec=function(a){_.J.call(this,a)};_.K(_.Fec,_.J);_.Fec.prototype.H=function(){return _.z(this,1)};_.Fec.prototype.Cb=function(){return _.z(this,2)};_.Fec.prototype.Dc=function(a){return _.x(this,2,a)};_.Fec.prototype.V=function(){return _.z(this,3)};_.Hec=function(a){_.J.call(this,a,-1,Gec)};_.K(_.Hec,_.J);_.Hec.prototype.H=function(){return _.se(this,1)};var Gec=[1];
_.Jec=function(a){_.J.call(this,a,-1,Iec)};_.K(_.Jec,_.J);_.Jec.prototype.H=function(){return _.yb(this,_.Fec,1)};var Iec=[1];
_.Lec=function(a){_.J.call(this,a,-1,Kec)};_.K(_.Lec,_.J);_.Lec.prototype.H=function(){return _.yb(this,_.Jec,1)};var Kec=[1];
_.Mec=function(a){_.J.call(this,a)};_.K(_.Mec,_.J);_.Mec.prototype.V=function(){return _.y(this,_.Lec,1)};_.Mec.prototype.H=function(){return _.y(this,_.Hec,2)};
_.eI=function(a){_.J.call(this,a,-1,Nec)};_.K(_.eI,_.J);_.g=_.eI.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.Bd=function(){return _.yb(this,_.Jk,2)};_.g.hB=function(a){return _.tj(this,2,a)};_.g.dh=function(a,b){return _.zj(this,2,a,_.Jk,b)};_.g.$j=function(){return _.z(this,3)};_.g.Rl=function(){return _.R(this,5,!0)};_.g.a7=function(){return _.y(this,_.Mec,7)};_.g.Dta=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.lla=function(){return _.se(this,18)};var Nec=[2,14,18];_.eI.prototype.Tb="eO39Zd";

_.u();

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

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

_.u();

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


_.u();

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

_.gI=function(a,b){return _.x(a,b,_.hna)};_.Pec=function(a){if(_.Zma)return _.n.atob(a);var b="";_.ana(a,function(c){b+=String.fromCharCode(c)});return b};_.hI=function(a,b,c,d,e,f,h){_.bI.call(this,a,_.yec,b,_.Qdc,c,d,e,void 0,f,h)};_.K(_.hI,_.bI);

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Qec;_.iI=function(a,b,c){if(0!==a.O)return!1;_.x(b,c,a.H.ka());return!0};Qec=[3,42];_.Rec=function(a){_.J.call(this,a,-1,Qec)};_.K(_.Rec,_.J);_.Rec.prototype.getMimeType=function(){return _.z(this,27)};var Sec=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 Tec=function(a){_.oi.call(this,"visibilitychange");this.hidden=a};_.K(Tec,_.oi);
_.Uec=function(a){_.zi.call(this);this.xd=a||_.sc();if(this.Rz=this.vub())this.H=_.df(this.xd.Vb(),this.Rz,(0,_.L)(this.Lbb,this))};_.mg(_.Uec,_.zi);_.g=_.Uec.prototype;_.g.vub=_.gea(function(){var a=this.Lu(),b="hidden"!=this.oBa();if(a){var c;b?c=((_.pGa()||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});_.g.oBa=_.gea(function(){return Sec("hidden",this.xd.Vb())});_.g.nwb=_.gea(function(){return Sec("visibilityState",this.xd.Vb())});_.g.Lu=function(){return!!this.oBa()};
_.g.RB=function(){return!!this.xd.Vb()[this.oBa()]};_.g.Lbb=function(){var a=this.Lu()?this.xd.Vb()[this.nwb()]:null;a=new Tec(this.RB(),a);this.dispatchEvent(a)};_.g.Ya=function(){_.xi(this.H);_.Uec.ub.Ya.call(this)};

_.u();

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

/*

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

_.u();

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

var Yec=function(a){_.J.call(this,a)},cfc;_.K(Yec,_.J);var Zec=function(a){_.J.call(this,a)};_.K(Zec,_.J);_.lI=function(a){_.J.call(this,a)};_.K(_.lI,_.J);_.lI.prototype.v5=function(a){_.x(this,3,a)};_.lI.prototype.Jl=function(a){return _.G(this,5,a)};_.lI.prototype.getMimeType=function(){return _.z(this,7)};var $ec=[2],afc=function(a){_.J.call(this,a,-1,$ec)};_.K(afc,_.J);var bfc=function(a){_.J.call(this,a)};_.K(bfc,_.J);cfc=function(a){this.H=a};_.dfc=function(a){this.Ld=a};
_.dfc.prototype.getId=function(){return this.Ld};var efc=function(a){_.J.call(this,a)};_.K(efc,_.J);efc.prototype.nj=function(){return _.z(this,1)};var ffc=function(a){_.J.call(this,a)};_.K(ffc,_.J);
var hfc=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;gfc(this,b);break}}},gfc=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})};
hfc.prototype.PA=function(a){if(this.W&&this.H){var b=_.y(a,_.nc,2)||new _.nc,c=_.y(a,_.zo,5)||new _.zo,d=_.y(a,_.lI,3)||new _.lI;a=_.yb(a,_.mo,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 ifc=function(){_.so.call(this)};_.K(ifc,_.so);ifc.prototype.Sv=function(){return 1==_.z(_.y(this.H,Yec,7),1)};var jfc=new _.oo("high_frequency_builder");
var kfc=function(a,b,c){a=new _.Ai(a);c.Ja(a);var d=new _.of(c);c.Ja(d);d.listen(a,"tick",b);a.start()};
var lfc=function(){_.so.call(this)};_.K(lfc,_.so);var mfc=function(a,b,c){var d=1E3*Date.now();if(0==b){b=new _.go;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 _.go,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},nfc=new _.oo("system_builder");
var ofc=function(a,b){_.N.call(this);this.O=a;this.H=new _.Uec(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(ofc,_.N);ofc.prototype.V=function(){if(this.O.cQ()){var a=this.H.RB()?102001:102E3;a=this.O.sG(a,0);this.O.an(a)}};
var pfc=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(pfc,_.N);_.g=pfc.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 cfc(a)};_.g.sG=function(a,b){a=mfc(qfc(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=_.to(a,nfc),d=b.ha++,e=_.y(_.y(c.H,_.go,8),_.yza,2),f=1E3*Date.now();_.x(e,2,f);_.x(c.H,13,d);b.ka.remove(_.z(a.H,12))};_.g.I_=function(){var a=this.O;if(!a.ha||a.H.V){var b=rfc(a.H,691).build();b=sfc(a.H,[b]);a.ka.PA(b)}a.W();this.H.ma=!1;this.V&&(_.ca(this.V),this.V=null)};_.g.J_=function(){var a=this.H,b=rfc(a,716);tfc(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 ofc(this))};_.g.b7=function(){this.O.W();return _.jI(Array.from(this.O.V)).then()};
_.g.cQ=function(){var a=this.H;return a.wa&&a.ma&&!0};
var ufc=function(a,b,c,d,e){_.N.call(this);this.H=a;this.ta=b;this.ka=c;this.O=new _.kI(this.W,3E3,this);this.V=new Set;this.ha=d;this.ma=e||6E4};_.K(ufc,_.N);ufc.prototype.initialize=function(){kfc(this.ma,this.O.qe,this.O);kfc(36E5,this.wa,this)};ufc.prototype.W=function(){var a=this;if(0!=this.H.H.Yb()&&(!this.ha||this.H.V)){var b=vfc(this.H),c=this.ta.PA(b);c&&(_.$h(c,function(){return void a.V.delete(c)}),this.V.add(c))}};
ufc.prototype.wa=function(){var a=this.H,b=rfc(a,1153).build();a.H.add(b);this.O.qe()};
var wfc=function(a){_.N.call(this);this.H=a;this.Ja(this.H)};_.K(wfc,_.N);_.g=wfc.prototype;_.g.an=function(a){a=this.H.an(a);this.b7();return a};_.g.sG=function(a,b){return this.H.sG(a,b)};_.g.bM=function(){return this.H.bM()};_.g.Nw=function(a){return this.H.Nw(a)};_.g.I_=function(){return this.H.I_()};_.g.J_=function(){return this.H.J_()};_.g.b7=function(){return this.H.b7()};_.g.cQ=function(){return this.H.cQ()};
var xfc=function(){};xfc.prototype.wR=function(){return new ifc};
var yfc=function(){this.H=[]};yfc.prototype.add=function(a){this.H.push(a)};yfc.prototype.Yb=function(){return this.H.length};
var zfc=function(){this.H={}};zfc.prototype.add=function(a){this.H[_.z(a.H,12)]=a};zfc.prototype.remove=function(a){delete this.H[a]};
var Afc=function(a,b){this.O=a;this.Ba=b;this.ha=1;this.ta=this.W=null;this.ka=new zfc;this.H=new yfc;this.ma=this.wa=this.V=!1},qfc=function(a,b){a=_.to((new _.so).initialize(new _.mo,a.Ba),nfc);_.x(a.H,10,b);return a},vfc=function(a){var b=a.H,c=b.H;b.H=[];return sfc(a,c)},sfc=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],_.lo,5);if(k&&_.y(k,_.Rec,1)){k=_.y(k,_.Rec,1);_.mj(k,12)&&
void 0===e&&(e=_.Q(k,12));k=_.y(k,Zec,20);if(void 0!==k&&void 0===f){f=new ffc;var l=_.Q(k,2);void 0!==l&&_.x(f,2,l);k=_.Q(k,1);void 0!==k&&_.x(f,1,k)}if(void 0!==e&&void 0!==f)break}}d=d.H?d.H.clone():null;if(void 0!==e||void 0!==f)d||(d=new _.lI),void 0!==e&&_.x(d,6,e),void 0!==f&&_.G(d,13,f);(e=d)&&_.G(c,3,e);a=a.O.ha.clone();_.G(c,4,a);_.tj(c,1,b);return c},rfc=function(a,b){var c=mfc(qfc(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 bfc;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 afc,b=_.x(e,1,b),d&&_.tj(b,2,d),d=_.uo(c),_.G(d,3,b));tfc(a,c);return c},tfc=function(a,b){a.W=_.z(b.H,12);a.ta=_.z(_.y(_.y(b.H,_.go,8),_.xza,1),1)};
var Bfc=function(){};Bfc.prototype.wR=function(){return new lfc};
var Cfc=function(){this.H=this.O=null};Cfc.prototype.build=function(){null==this.H&&(this.H=new _.wAa);_.wo(this.H,nfc,new Bfc);_.wo(this.H,jfc,new xfc);var a=this.H;var b=this.O;if(!_.mj(_.Dfc(b),1)){var c=_.Dfc(b),d=new _.MAa;_.G(c,1,d)}b=_.y(_.Dfc(b),_.MAa,1);a.H=b;b=_.Ya(a.O);for(c=0;c<b.length;c++)b[c].O(a.H);return new Afc(this.O,this.H)};
var Efc=function(){this.O=new _.nc;this.V=null;this.ha=new efc;_.x(this.ha,1,6);this.H=this.W=null};Efc.prototype.setSessionId=function(a){this.O.setSessionId(a);return this};_.Ffc=function(a,b){_.x(a.O,2,b);return a};_.Gfc=function(a,b){if(null==a.W){a.W=new _.UAa;var c=_.Dfc(a);_.G(c,2,a.W)}_.x(a.W,1,b)};_.Dfc=function(a){null==a.V&&(a.V=new _.zo);return a.V};_.Hfc=function(a){null==a.H&&(a.H=new _.lI);return a.H};
_.Ifc=function(){this.H=this.ha=null;this.W=new Efc;this.V=null;this.ka=this.ma=!1;this.O=null};_.Jfc=function(a,b){a.ha=b;return a};_.Kfc=function(a,b){a.H=b;return a};_.Lfc=function(a,b){a.V=b;return a};_.Ifc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.Mfc=function(a,b){_.x(a.W.O,6,b);return a};
_.Ifc.prototype.build=function(){var a=new Cfc;a.O=this.W;null!=this.V&&(a.H=this.V);a=a.build();if(this.ka){var b=new hfc;this.H=this.ha=b}b=new ufc(a,this.ha,this.H,this.ma,this.O);a=new pfc(a,b,!1);this.ka&&(a=new wfc(a));return a};

_.u();

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

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

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Xfc=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():_.kg();this.date=new Date(a)};_.mg(_.Xfc,_.nt);_.g=_.Xfc.prototype;_.g.clone=function(){var a=new _.Xfc(this.date);a.ZG=this.ZG;a.XV=this.XV;return a};_.g.add=function(a){(a.W||a.V)&&_.mt.prototype.add.call(this,new _.lt(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=_.nt.prototype.getUTCFullYear;
_.g.getMonth=_.nt.prototype.getUTCMonth;_.g.getDate=_.nt.prototype.getUTCDate;_.g.getHours=_.nt.prototype.getUTCHours;_.g.getMinutes=_.nt.prototype.getUTCMinutes;_.g.getSeconds=_.nt.prototype.Lab;_.g.getMilliseconds=_.nt.prototype.Kab;_.g.getDay=_.nt.prototype.getUTCDay;_.g.setFullYear=_.nt.prototype.setUTCFullYear;_.g.setMonth=_.nt.prototype.setUTCMonth;_.g.setDate=_.nt.prototype.setUTCDate;_.g.setHours=_.nt.prototype.RNa;_.g.setMinutes=_.nt.prototype.SNa;_.g.setSeconds=_.nt.prototype.TNa;
_.g.setMilliseconds=_.nt.prototype.Mab;
var Yfc,$fc;Yfc={};_.Zfc=(Yfc[1]="0",Yfc[2]="1",Yfc[3]="2",Yfc);$fc={};_.agc=($fc[1]="asc",$fc[2]="desc",$fc);
_.bgc=new _.oo("drive_dataservice_builder");
_.cgc=_.Ig&&0>_.Ra(_.Lg,"533");
_.dgc=new _.dfc("drive_dataservice_invariants");
_.egc=new Map([[[1],1],[[6],7],[[2],2]]);_.fgc=new Map([[[1],3],[[2],4],[[3],5],[[4],6],[[5],7],[[6],8],[[10],12],[[7],9],[[8],10],[[9],11]]);
_.ggc=new Map([[12,function(a){return _.Q(a,69)}],[24,function(a){return _.R(a,3,!1)}],[9,function(a){return _.R(a,17,!1)}],[21,function(a){return _.mI(a)}],[13,function(a){return _.Q(a,60)}],[2,function(a){return _.R(a,8,!0)}],[6,function(a){return _.R(a,11,!1)}],[14,function(){return!0}],[16,function(a){return _.R(a,56,!1)}],[17,function(a){return _.R(a,57,!1)}],[18,function(a){return _.R(a,54,!1)}],[19,function(a){return _.R(a,53,!1)}],[23,function(){return!0}],[28,function(){return!0}]]);
_.hgc=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)}]]);_.igc=new Map([[[1],1],[[2],2],[[3],3],[[4],4],[[5],5]]);
_.jgc=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]]);_.kgc=new Map([[[2],3],[[1],2],[[0],1]]);_.lgc=new Map([[[0],1],[[1],2],[[3],3],[[5],4],[[6],5]]);
_.mgc=new Map([[[_.pdc],1],[[_.qdc],2],[[_.rdc],3],[[_.sdc],4],[[_.tdc],5],[[_.udc],6],[[_.vdc],7],[[_.wdc],8],[[_.xdc],10],[[_.ydc],11],[[_.zdc],12],[[_.Adc],13]]);_.ngc=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");

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

_.u();

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

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

_.u();

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

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

_.u();

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

var ugc;_.vI=function(a){if(a instanceof _.Fc)return a;if(_.sI(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);_.tI(a,2);_.uI(a,6);return a};_.sgc=function(a){var b=a.Yj();a=a.qG();return 15===b||32===b||33===b||401===a};_.tgc=function(){return _.n.WorkerGlobalScope&&self instanceof _.n.WorkerGlobalScope};_.wI=function(a){return _.Ej(a,1,0)};
_.tI=function(a,b){return _.x(a,1,b)};_.uI=function(a,b){return _.x(a,2,b)};ugc=[8,9,10,13,14,27,28,29,31,32,33,34,38];_.xI=function(a){_.J.call(this,a,-1,ugc)};_.K(_.xI,_.J);_.g=_.xI.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.x(this,2,a)};_.g.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.XE=function(a,b){_.vj(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)};_.yI=function(a,b){return _.x(a,16,b)};
_.zI=function(a){_.J.call(this,a,-1,vgc)};_.K(_.zI,_.J);_.zI.prototype.JR=function(){return _.Ej(this,2,100)};_.zI.prototype.lP=function(a){return _.x(this,2,a)};_.zI.prototype.se=function(){return _.y(this,_.Qf,6)};_.zI.prototype.uc=function(){return _.z(this,8)};var vgc=[5];
_.wgc=new Map([[1,"connected"],[2,"unauthenticated/online"],[3,"offline"]]);
var xgc;xgc={};_.ygc=(xgc[0]="/drive/v2internal",xgc[1]="/drive/v2internal.corp",xgc[2]="/drive/v2internal.scary",xgc[4]="/drive/v2internal.scary",xgc[5]="/drive/v2beta",xgc[6]="/drive/v2.1beta",xgc);
_.zgc=new Set([0,1,2,3]);
_.Agc=_.x(new _.xI,15,!0);_.Bgc=_.yI(new _.xI,!0);_.Cgc=_.yI(new _.xI,!1);
_.Dgc=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");

_.Egc=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
*/
_.Fgc=function(a){a=_.lb(a);return 0===a.length?_.aja:new _.Qg(a,_.Zia)};_.Ggc=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)};_.mg(_.Ggc,_.idc);_.Ggc.prototype.reset=function(){this.H.reset();this.H.update(this.O)};
_.Ggc.prototype.update=function(a,b){this.H.update(a,b)};_.Ggc.prototype.digest=function(){var a=this.H.digest();this.H.reset();this.H.update(this.V);this.H.update(a);return this.H.digest()};_.Hgc=function(a,b){a.reset();a.update(b);return a.digest()};
_.Igc=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()};_.mg(_.Igc,_.idc);_.Igc.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 Jgc=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};
_.Igc.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;)Jgc(this,a,d),d+=this.blockSize;if("string"===typeof a)for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.blockSize){Jgc(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.blockSize){Jgc(this,e);f=0;break}}this.O=f;this.V+=b}};
_.Igc.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;Jgc(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");

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

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.DI={l0:"Versions",W7:"Metadata",L6:"Data",ZU:"Offline"};_.Mgc=new Map([[_.DI.l0,"versionKey"],[_.DI.W7,"k"]]);_.Ngc=new Set([1004]);

_.u();

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

_.Ogc=function(a){_.J.call(this,a)};_.K(_.Ogc,_.J);_.g=_.Ogc.prototype;_.g.getKey=function(){return _.z(this,1)};_.g.yt=function(){return _.mj(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 _.mj(this,2)};
_.EI=function(a){_.J.call(this,a,-1,Pgc)};_.K(_.EI,_.J);_.EI.prototype.cA=function(){return _.z(this,1)};_.EI.prototype.getUrl=function(){return _.z(this,3)};var Pgc=[2,4,6];

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Qgc=function(a,b,c){c&&(a=_.jh(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=_.ih(a));return a};_.FI=function(){return"goog_"+_.Oja++};_.Rgc=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1<a.length&&56320==(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};
_.GI=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};_.GI.prototype.clone=function(){return new _.GI(this.start,this.end)};_.HI=function(a){return a.end-a.start};
_.Sgc=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 Wgc,Ygc,$gc;_.Tgc=function(a){var b={};_.Ta(a,function(c,d){b[d.toLowerCase()]=c});return b};_.Ugc=function(a){return(a=a&&_.Tgc(a))&&a["x-guploader-uploadid"]};_.Vgc=function(a){return(a=a&&_.Tgc(a))&&a["x-google-trace"]};Wgc=[6];_.II=function(a){_.J.call(this,a,-1,Wgc)};_.K(_.II,_.J);_.JI=function(a,b){return _.x(a,14,b)};
_.Zgc=function(a,b,c,d,e,f,h,k,l){l=void 0===l?!1:l;if(!_.Xgc(a))return null;e=Ygc(e)||new _.Fc;_.x(e,8,!0);k&&(k=_.aj(new _.$i(k),void 0).toString(),_.x(e,19,k));e.qG()||_.x(e,15,a||f);e.getMessage()||_.Fo(e,["HTTP status code: "+a,"HTTP status text: "+b,"XHR error code: "+f,"XHR error text: "+h].join(", "));_.z(e,4)||_.Go(e,d);e.Yj()||(5===f?_.JI(e,7):0!==a||d?403===a?_.JI(e,22):503===a||429===a?_.JI(e,24):(_.vb(e,14),_.x(e,10,1),_.x(e,8,!0)):l||_.JI(e,2));e.Hda(_.Ugc(c));e.wda(_.Vgc(c));return e};
Ygc=function(a){if(!_.Ea(a))return null;var b=new _.Fc,c=a.error;if(!c)return _.Go(b,JSON.stringify(a)),null;_.x(b,15,c.code);_.Fo(b,c.message);a=c.errors&&c.errors[0];if(!a)return b;c=a.reason;var d=$gc[c];d?_.x(b,10,d):c&&!d&&_.x(b,10,2);(a=a.debugInfo)&&_.Go(b,a);return b};_.Xgc=function(a){return 200===a||204===a||308===a||206===a?!1:!0};
$gc={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");

_.ahc=function(a){for(var b in a)delete a[b]};_.KI=function(a,b){if(a.H)return a=a.H.responseText,b&&0==a.indexOf(b)&&(a=a.substring(b.length)),(0,_.Vla)(a)};_.LI=function(a){return _.R(a,5,!1)};_.bhc=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)};_.chc=function(a,b){a=_.Ii(a);b=_.Ii(b);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]};
_.dhc=function(a){var b=_.Gma(a);if("undefined"==typeof b)throw Error("V");var c=new _.cj(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 ehc,fhc,jhc,nhc,ohc,phc,qhc,rhc,Jhc,GJ,Khc,Lhc,Shc,Yhc,jic,khc,Gic,Iic,Kic,Mic,hjc,ljc,mjc,njc,pjc,rjc,dK,fK,ujc,vjc,yjc,zjc,Ajc,Bjc,Cjc,Djc,Gjc,Ijc,Jjc,akc,ekc,gkc,hkc,ikc,okc,pkc,Zhc,ykc,zkc,ukc,Akc,vkc,Ckc,Dkc,Jkc,Ikc,Hkc,Fkc,Gkc,Chc,Dhc,Mhc,Kkc,Nhc,Ohc,Phc,Qhc,Rhc,Lkc,Nkc;_.MI=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)})}};
_.NI=function(a,b,c){var d=new _.Fc,e=_.Yka(_.NI);_.x(d,20,e);_.uI(d,a);_.tI(d,b?b:2);c&&_.JI(d,c);return d};_.OI=function(a){var b;a instanceof _.Fc?b=new _.Gc(null,a):_.sI(a)?b=a:b=_.n.ErrorEvent&&a instanceof ErrorEvent?a.error instanceof Error?a.error:Error(a.message):"string"===typeof a?Error(a):Error("Kb`"+a);b.stack||(b.stack=_.Yka(_.OI));return b};ehc=function(a){return 7===a.Yj()||24===a.Kp()&&(a=a.qG(),503===a||429===a)?!0:!1};fhc=function(a,b){return b?b+"("+a+")":a};
_.PI=function(a,b,c){var d={},e=[];b&&e.push("kind");a.oDb&&e.push("searchResultSource");a.fields.forEach(function(p){if(!_.ghc.includes(p)){var q=_.zdb.get(p);if(q){var r=_.Cdb[p];a.lF&&r&&(q=r);a.anonymous&&(a.lF?(p=_.Bdb[p])&&(q=p):(p=_.Adb[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={C6:f.C6},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;
f.C6=[];l.forEach(function(p){return function(q){p.C6.push(q)}}(f));"owners"==k&&b&&f.C6.push("kind");e.push(fhc(f.C6.join(","),k))}return fhc(e.join(","),c)};_.hhc=function(a){var b=new _.vo;b.append(_.PI(a,!0));return b.toString()};_.ihc=function(a,b){return a.filter(function(c){return b.includes(c)})};jhc=function(a){a=a.filter(function(b){return!_.zdb.has(b)});if(a.length)throw Error("hd`"+a.join(", "));};
_.mhc=function(a){if(a){var b=a.getMimeType();b&&_.dG(a,b.toLowerCase());khc(a,_.yb(a,lhc,58).map(function(c){var d=c.getMimeType();d&&_.x(c,1,d.toLowerCase());return c}))}};nhc=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;_.gj(b,c,d)}};ohc=function(a,b){b&&nhc({openDrive:!!_.R(b,2,!1),reason:_.z(b,1)||0,syncType:_.z(b,3)||0,errorRecovery:!!_.R(b,4,!1)},a)};phc=function(a){return 10>a?"0"+a:""+a};
qhc=function(a){if(_.ab(a))return"\r\n";var b="";_.Ta(a,function(c,d){b+=d+": "+c+"\r\n"});return b};rhc=function(a){a=_.Fo(_.JI(_.tI(new _.Fc,2),39),"Multiple resource key definitions found for itemId "+a);throw _.wd(a);};
Jhc=function(a){if(a instanceof _.QI)return"request access";if(a instanceof _.RI)return"admin migrate to TD";if(a instanceof _.SI)return"authorize app";if(a instanceof _.TI)return"copy item";if(a instanceof _.UI)return"change category links";if(a instanceof _.VI)return"create item";if(a instanceof _.WI)return"create ws";if("undefined"!=typeof _.XI&&a instanceof _.XI)return"delete app";if("undefined"!=typeof _.YI&&a instanceof _.YI)return"delete backup";if(a instanceof _.ZI)return"delete item";if("undefined"!=
typeof _.$I&&a instanceof _.$I)return"delete permission";if(a instanceof _.aJ)return"delete revision";if(a instanceof _.bJ)return"delete TD";if(a instanceof _.pD)return"delete pref";if(a instanceof _.cJ)return"delete ws";if(a instanceof _.dJ)return"download item";if(a instanceof _.eJ||a instanceof _.fJ)return"empty trash";if(a instanceof _.gJ)return"find by ID";if(a instanceof _.XF)return"find by IDs";if(a instanceof _.shc)return"item export start";if("undefined"!=typeof _.hJ&&a instanceof _.hJ)return"get app";
if("undefined"!=typeof _.iJ&&a instanceof _.iJ)return"insert app";if("undefined"!=typeof _.jJ&&a instanceof _.jJ)return"insert permission";if(a instanceof _.nI)return a=a.jd(),_.lJ(a)?"quick access item query":_.mJ(a)?"people predict item query":_.nJ(a)?"drive priority query":"item query";if("undefined"!=typeof _.oJ&&a instanceof _.oJ)return"list android backup items request";if(a instanceof _.pJ){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 _.thc&&a instanceof _.thc?"list backups":a instanceof _.zI?"list changes":a instanceof _.qJ?"list permissions":"undefined"!=typeof _.rJ&&a instanceof _.rJ?"list revisions":a instanceof _.sJ?"migrate to shared drive":a instanceof _.tJ?"partial download item":a instanceof _.uJ?"people api":a instanceof _.WF?"get published category":"undefined"!=typeof _.vJ&&a instanceof _.vJ?"get remaining changes":
a instanceof _.wJ?"remove item":"undefined"!=typeof _.xJ&&a instanceof _.xJ?"reparent item":a instanceof _.yJ?"restore item":a instanceof _.aG?"list suggested workspace items":a instanceof _.cA?"list suggested workspaces":"undefined"!=typeof _.zJ&&a instanceof _.zJ?"update app":a instanceof _.AJ?"update category metadata":a instanceof _.xI?"update item":a instanceof _.BJ?"update revision":a instanceof _.CJ?"update TD":a instanceof _.qD?"update pref":a instanceof _.DJ?"update ws":a instanceof _.PH?
"get account":a instanceof _.cG?"get workspace":a instanceof _.uhc?"list activity":a instanceof _.vhc?"list category metadata":a instanceof _.whc?"create TD":"undefined"!=typeof _.xhc&&a instanceof _.xhc?"item export cancel":"undefined"!=typeof _.yhc&&a instanceof _.yhc?"item export status":"undefined"!=typeof _.zhc&&a instanceof _.zhc?"generate cse token":"undefined"!=typeof _.Ahc&&a instanceof _.Ahc?"get largest change ID":a instanceof _.oD?"list prefs":a instanceof _.EJ?"multipart upload":a instanceof
_.Bhc?"list published categories":a instanceof Chc?"init resumable upload":a instanceof Dhc?"resumable upload chunk":a instanceof _.Ehc?"resumable upload":a instanceof _.bG?"get TD":"undefined"!=typeof _.Fhc&&a instanceof _.Fhc?"move TD preflight":a instanceof _.FJ?"list TDs":"undefined"!=typeof _.Ghc&&a instanceof _.Ghc?"get TD stats":a instanceof _.Hhc?"test connection":"undefined"!=typeof _.Ihc&&a instanceof _.Ihc?"list workspaces":"unknown"};
GJ=function(a,b,c){null!=c&&(Array.isArray(c)?0<c.length&&a.push(b+": "+c.join(", ")):a.push(b+": "+c))};Khc=function(a){if(a instanceof _.VI||a instanceof _.EJ||a instanceof _.Ehc||a instanceof Chc||a instanceof Dhc)return(new _.HJ).Dc(8);throw Error("wf");};Lhc=function(a){if(a instanceof _.xI){var b=_.sj(_.vb(a.clone(),1),17);b=_.Dj(b,_.Agc)}else b=!1;b||(a instanceof _.xI?(a=_.sj(_.vb(a.clone(),1),17),b=_.Dj(a,_.Bgc)||_.Dj(a,_.Cgc)):b=!1);return b?!1:!0};
_.IJ=function(a){return Mhc.includes(a.constructor)?Lhc(a):!1};
Shc=function(a,b){var c;if(Nhc.includes(a.constructor))return!0;if(b){if(_.R(b,54,!1)&&Ohc.includes(a.constructor))return!0;var d=_.JJ(b);if(d&&!_.R(d,7,!1)&&Phc.includes(a.constructor)&&!_.KJ(a)||_.R(b,56,!1)&&_.KJ(a)||_.R(b,57,!1)&&Qhc.includes(a.constructor)||!(!_.R(b,53,!1)||Ohc.includes(a.constructor)||Phc.includes(a.constructor)||_.KJ(a)||Qhc.includes(a.constructor)||Rhc.includes(a.constructor))||(null===(c=_.JJ(b))||void 0===c?0:_.R(c,20,!1))&&a.constructor===_.uJ)return!0}return!1};
Yhc=function(a,b){var c,d={};_.Te(_.oh(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.Pla(),f=b.H(),h={encryptionState:"encrypted"};h.decryptionMetadata={wrappedKey:_.lj(b.V()),kaclsId:null!==(c=b.wa())&&void 0!==c?c:void 0,aes256GcmChunkSize:Thc[e?e.H():0],keyFormat:Uhc[f?f.H():0]};d.clientEncryptionDetails=h}_.Vhc(d,_.se(a,3));if(b=a.qc())d.id=b;_.z(a,16)&&(d.embeddingParent=
_.z(a,16));a.N2()&&(d.shortcutDetails={targetId:a.N2()});"number"===typeof _.z(a,26)&&(d.modifiedDate=_.Whc(_.Xhc(_.z(a,26)||0)));return d};_.Vhc=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)}}};
_.LJ=function(a,b,c,d,e){if(_.R(a,89,!1)){if(c&&c.length&&d){c=b.concat(Zhc(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)!==_.ll(d)&&rhc(h):(a.set(h,_.ll(d)),b.push(d))}f=b}else f=b;f.length&&(f=_.HA(f),f.length&&(e["X-Goog-Drive-Resource-Keys"]=f))}};_.$hc=function(a){var b=new _.wk;return _.x(b,1,a)};_.aic=function(a,b){return _.x(a,7,b)};_.bic=function(a,b){return _.x(a,8,b)};
_.cic=function(a,b){return _.x(a,11,b)};_.dic=function(a,b){return _.x(a,16,b)};_.MJ=function(a){_.J.call(this,a)};_.K(_.MJ,_.J);_.eic=function(a){_.J.call(this,a)};_.K(_.eic,_.J);var lhc=function(a){_.J.call(this,a)};_.K(lhc,_.J);lhc.prototype.getMimeType=function(){return _.z(this,1)};lhc.prototype.getUrl=function(){return _.z(this,2)};_.NJ=function(a){_.J.call(this,a)};_.K(_.NJ,_.J);_.NJ.prototype.De=function(){return _.z(this,2)};_.NJ.prototype.nh=function(a){return _.x(this,2,a)};
_.NJ.prototype.Ah=function(a){return _.x(this,3,a)};_.fic=function(a){_.J.call(this,a)};_.K(_.fic,_.J);_.gic=function(a,b){return _.x(a,1,b)};_.hic=function(a,b){return _.tj(a,2,b)};_.iic=function(a,b){return _.tj(a,3,b)};jic=[2];_.OJ=function(a){_.J.call(this,a,-1,jic)};_.K(_.OJ,_.J);_.OJ.prototype.zf=function(){return _.z(this,1)};_.OJ.prototype.ll=function(a){return _.x(this,1,a)};_.OJ.prototype.twa=function(a,b){return _.vj(this,2,a,b)};_.PJ=function(a){_.J.call(this,a)};_.K(_.PJ,_.J);
_.PJ.prototype.De=function(){return _.z(this,1)};_.PJ.prototype.nh=function(a){return _.x(this,1,a)};_.PJ.prototype.Ah=function(a){return _.x(this,2,a)};_.QJ=function(a,b){return _.rj(a,2,b)};_.kic=function(a,b){return _.tj(a,15,b)};_.lic=function(a,b){return _.G(a,17,b)};_.mic=function(a,b){return _.x(a,19,b)};_.nic=function(a,b){_.x(a,34,b)};_.oic=function(a,b){_.G(a,47,b)};_.pic=function(a,b){return _.x(a,52,b)};khc=function(a,b){_.tj(a,58,b)};_.qic=function(a,b){return _.x(a,72,b)};
_.RJ=function(a,b){return _.G(a,84,b)};_.ric=function(a,b){_.G(a,85,b)};_.sic=function(a,b){_.G(a,91,b)};_.tic=function(a,b){return _.x(a,92,b)};_.uic=function(a,b){return _.x(a,93,b)};_.vic=function(a,b){_.G(a,95,b)};_.wic=function(a,b){return _.x(a,136,b)};_.xic=function(a){_.J.call(this,a)};_.K(_.xic,_.J);_.SJ=function(a){return _.R(a,2,!1)};_.yic=function(a){_.J.call(this,a)};_.K(_.yic,_.J);var zic=[3],Aic=function(a){_.J.call(this,a,-1,zic)};_.K(Aic,_.J);
Aic.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};Aic.prototype.zn=function(a){return _.rj(this,3,a)};var Bic=[3],Cic=function(a){_.J.call(this,a,-1,Bic)};_.K(Cic,_.J);Cic.prototype.xi=function(){return _.se(this,3)};Cic.prototype.zn=function(a){return _.rj(this,3,a)};var Dic=[3],Eic=function(a){_.J.call(this,a,-1,Dic)};_.K(Eic,_.J);
Eic.prototype.xi=function(){return _.se(this,3)};Eic.prototype.zn=function(a){return _.rj(this,3,a)};_.TJ=function(a){_.J.call(this,a)};_.K(_.TJ,_.J);_.TJ.prototype.Wa=function(){return _.z(this,1)};_.TJ.prototype.Hb=function(a){return _.x(this,1,a)};_.TJ.prototype.Ci=function(){return _.vb(this,1)};_.TJ.prototype.Ng=function(){return _.mj(this,1)};_.UJ=function(a){return _.pj(a,45,1)};_.lJ=function(a){return _.R(a,47,!1)};_.mJ=function(a){return _.R(a,49,!1)};_.nJ=function(a){return _.R(a,52,!1)};
_.VJ=function(a){return _.C(a,2,"")};_.JJ=function(a){return _.y(a,_.yic,4)};_.WJ=function(a){return _.R(a,10,!1)};_.Fic=function(a,b){return _.rj(a,27,b)};_.XJ=function(a){return _.pj(a,39,0)};_.YJ=function(a){return _.R(a,40,!1)};_.Whc=function(a){return _.mt.prototype.wP.call(a,!0)+"T"+_.nh(a.getHours(),2)+":"+_.nh(a.getMinutes(),2)+":"+_.nh(a.getSeconds(),2)+a.iaa()};Gic=function(a,b){return _.Fdc(a,"getAllKeys","getting all keys index "+a.getName(),b,void 0)};
_.Hic=function(a,b){try{a.H.deleteObjectStore(b)}catch(c){throw _.XH(c,"deleting object store "+b);}};Iic=function(){var a=new _.Ifc;a.O=12E4;a.ma=!0;return a};_.Jic=function(a){_.J.call(this,a)};_.K(_.Jic,_.J);Kic=[3,4,10,18,19,28];_.VI=function(a){_.J.call(this,a,-1,Kic)};_.K(_.VI,_.J);_.g=_.VI.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.XE=function(a,b){_.vj(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.Wz=function(){return _.y(this,_.Jic,15)};_.g.N2=function(){return _.z(this,21)};_.g.qc=function(){return _.z(this,23)};_.g.Wi=function(){return _.z(this,33)};_.ZJ=function(a,b){return _.x(a,1,b)};_.$J=function(a,b){return _.rj(a,3,b)};_.Lic=function(a,b){return _.x(a,12,b)};_.ZI=function(a){_.J.call(this,a)};_.K(_.ZI,_.J);_.ZI.prototype.getId=function(){return _.z(this,1)};
_.ZI.prototype.Nb=function(a){return _.x(this,1,a)};_.ZI.prototype.se=function(){return _.y(this,_.Qf,3)};_.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,2)};Mic=[7,8];_.CJ=function(a){_.J.call(this,a,-1,Mic)};_.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.se=function(){return _.y(this,_.Qf,4)};_.FJ=function(a){_.J.call(this,a)};_.K(_.FJ,_.J);_.FJ.prototype.getOptions=function(){return _.y(this,_.Nfc,1)};_.FJ.prototype.ao=function(){return _.z(this,2)};_.FJ.prototype.jd=function(){return _.y(this,_.RH,3)};var Nic=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}},Oic=null,Pic=function(){this.O=0;this.H=[]};_.g=Pic.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=Qic(this,a);return this.H[a]};_.g.set=function(a,b){a=Qic(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 Qic=function(a,b){if(b>=a.H.length)throw Error("na");return 40>a.H.length?b:(a.O+Number(b))%40},Ric=function(a){_.J.call(this,a)};_.K(Ric,_.J);_.Sic=function(a){_.J.call(this,a)};_.K(_.Sic,_.J);_.Sic.prototype.We=function(){return _.z(this,1)};_.Sic.prototype.ri=function(a){return _.x(this,1,a)};_.Sic.prototype.Cb=function(){return _.z(this,4)};
_.Sic.prototype.Dc=function(a){return _.x(this,4,a)};var Tic=function(a){_.J.call(this,a)};_.K(Tic,_.J);Tic.prototype.Xo=function(){return _.z(this,5)};var Uic=function(a,b){_.x(a,6,b)},Vic=function(a){_.J.call(this,a)};_.K(Vic,_.J);_.g=Vic.prototype;_.g.Njb=function(a){return _.x(this,1,a)};_.g.ORb=function(a){return _.x(this,2,a)};_.g.Ny=function(){return _.Q(this,3)};_.g.Ojb=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 Wic=function(a){_.J.call(this,a)};_.K(Wic,_.J);Wic.prototype.Ny=function(){return _.Q(this,2)};var Xic=function(a,b){return _.x(a,2,b)},Yic=function(a,b){_.x(a,3,b)};Wic.prototype.IB=function(){return _.z(this,6)};var Zic=function(a,b){return _.x(a,8,b)},$ic=function(a){_.J.call(this,a)};_.K($ic,_.J);var ajc=function(a){_.J.call(this,a)};_.K(ajc,_.J);var bjc=function(a,b){_.x(a,4,b)},cjc=function(a){_.J.call(this,a)};
_.K(cjc,_.J);cjc.prototype.jd=function(){return _.y(this,_.Sic,1)};cjc.prototype.getState=function(){return _.y(this,Tic,2)};cjc.prototype.Id=function(a){return _.G(this,2,a)};cjc.prototype.zt=function(){return _.mj(this,2)};var djc=function(a){_.J.call(this,a)};_.K(djc,_.J);djc.prototype.Jj=function(){return _.z(this,1)};djc.prototype.getEnvironment=function(){return _.z(this,2)};djc.prototype.setEnvironment=function(a){return _.x(this,2,a)};
_.ejc=function(){var a=void 0===a?3E3:a;this.O=new _.Sk;this.H=new _.Sk;this.startTime=Date.now();this.V=!1;this.W=Math.ceil(a/2);this.ha=Math.floor(a/2)};_.fjc=function(a){var b=a.O.ih();a.V&&b.push({logName:"...",message:"...",level:"...",totalTime:"..."});_.Ca(b,a.H.ih());return b};_.gjc=function(a){var b=[];a=_.fjc(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")};
_.ejc.prototype.info=function(a,b){_.aK(this,a,b,"info")};_.ejc.prototype.config=function(a,b){_.aK(this,a,b,"config")};_.ejc.prototype.log=function(a,b,c){if(!Oic){Oic={};for(var d=0,e;e=_.cla[d];d++)Oic[e.value]=e,Oic[e.name]=e}_.aK(this,a,b,c)};_.aK=function(a,b,c,d){a.H.Yb()>=a.ha&&(a.V=!0,_.Tk(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)};_.ghc=[42,1005,20,50,18,1003,1002];
_.bK=function(a){_.J.call(this,a)};_.K(_.bK,_.J);_.bK.prototype.getId=function(){return _.z(this,1)};_.bK.prototype.Nb=function(a){return _.x(this,1,a)};_.bK.prototype.getMimeType=function(){return _.z(this,2)};hjc=[22];_.HJ=function(a){_.J.call(this,a,-1,hjc)};_.K(_.HJ,_.J);_.g=_.HJ.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.getItem=function(){return _.y(this,_.Jk,2)};_.g.setItem=function(a){return _.G(this,2,a)};
_.g.$j=function(){return _.z(this,3)};_.g.GB=function(){return _.y(this,_.bK,4)};_.g.qc=function(){return _.z(this,5)};_.ijc=function(a,b){return _.x(a,5,b)};_.g=_.HJ.prototype;_.g.qK=function(){return _.z(this,7)};_.g.Hda=function(a){return _.x(this,7,a)};_.g.nga=function(a){_.x(this,9,a)};_.g.yOa=function(a){_.x(this,10,a)};_.g.pN=function(){return _.z(this,16)};_.g.wda=function(a){return _.x(this,16,a)};
var jjc=function(a){var b=new _.ai;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},kjc=function(a){_.oi.call(this,a);this.connectionState=_.qxb.get(a)};_.K(kjc,_.oi);_.SI=function(a){_.J.call(this,a)};_.K(_.SI,_.J);_.SI.prototype.Ih=function(){return _.z(this,1)};_.SI.prototype.qc=function(){return _.z(this,2)};_.SI.prototype.se=function(){return _.y(this,_.Qf,4)};_.QI=function(a){_.J.call(this,a)};_.K(_.QI,_.J);
_.QI.prototype.qc=function(){return _.z(this,1)};_.RI=function(a){_.J.call(this,a)};_.K(_.RI,_.J);_.RI.prototype.getId=function(){return _.z(this,1)};_.RI.prototype.Nb=function(a){return _.x(this,1,a)};_.RI.prototype.ak=function(){return _.z(this,2)};_.RI.prototype.H=function(a){_.x(this,4,a)};ljc=[3,7];_.TI=function(a){_.J.call(this,a,-1,ljc)};_.K(_.TI,_.J);_.g=_.TI.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.XE=function(a,b){_.vj(this,3,a,b)};_.g.se=function(){return _.y(this,_.Qf,5)};_.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,3)};_.eJ=function(a){_.J.call(this,a)};_.K(_.eJ,_.J);_.eJ.prototype.se=function(){return _.y(this,_.Qf,1)};_.wJ=function(a){_.J.call(this,a)};_.K(_.wJ,_.J);_.g=_.wJ.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)};_.yJ=function(a){_.J.call(this,a)};_.K(_.yJ,_.J);_.g=_.yJ.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)};
_.BJ=function(a){_.J.call(this,a)};_.K(_.BJ,_.J);_.BJ.prototype.qc=function(){return _.z(this,1)};_.BJ.prototype.se=function(){return _.y(this,_.Qf,4)};_.WI=function(a){_.J.call(this,a)};_.K(_.WI,_.J);_.WI.prototype.getTitle=function(){return _.z(this,1)};_.WI.prototype.setTitle=function(a){return _.x(this,1,a)};_.WI.prototype.se=function(){return _.y(this,_.Qf,2)};_.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)};_.cJ.prototype.se=function(){return _.y(this,_.Qf,3)};_.DJ=function(a){_.J.call(this,a)};_.K(_.DJ,_.J);_.g=_.DJ.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 _.mj(this,3)};
_.g.se=function(){return _.y(this,_.Qf,5)};mjc=[2,3];_.UI=function(a){_.J.call(this,a,-1,mjc)};_.K(_.UI,_.J);_.UI.prototype.uc=function(){return _.z(this,1)};_.UI.prototype.se=function(){return _.y(this,_.Qf,4)};njc=[3,4];_.pJ=function(a){_.J.call(this,a,-1,njc)};_.K(_.pJ,_.J);_.pJ.prototype.getType=function(){return _.z(this,1)};_.pJ.prototype.se=function(){return _.y(this,_.Qf,2)};_.ojc=function(a){_.J.call(this,a)};_.K(_.ojc,_.J);_.g=_.ojc.prototype;_.g.getKey=function(){return _.z(this,1)};
_.g.yt=function(){return _.mj(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 _.mj(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)};pjc=[1];_.qjc=function(a){_.J.call(this,a,-1,pjc)};_.K(_.qjc,_.J);_.sJ=function(a){_.J.call(this,a)};_.K(_.sJ,_.J);_.sJ.prototype.H=function(a){_.x(this,4,a)};rjc=[1];
_.uJ=function(a){_.J.call(this,a,-1,rjc)};_.K(_.uJ,_.J);_.sjc=function(a){this.O=new Set;this.H=[].concat(_.fc(_.se(a,27)));this.initialize(a)};_.sjc.prototype.initialize=function(a){var b=_.ihc(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);_.LI(_.fI(a))||(this.H.push(45),this.H.push(25),this.H.push(35),this.H.push(96),this.H.push(1004),this.H.push(28),this.H.push(189),this.H.push(190));_.Ga(this.H);this.H.sort();jhc(this.H)};
_.cK=function(a){return[].concat(_.fc(a.H))};_.tjc={1:"default",2:"teamDrive",3:"default,allTeamDrives"};dK=function(a){return"'"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"};_.eK=function(a,b,c){0!==b.length&&(a.NI.length&&a.append(" "+(c||"and")+" "),a.append(b))};fK=function(a,b,c,d){if(c){var e=[];(void 0===d?0:d)&&e.push("not");e.push(dK(c));e.push("in");e.push(b);_.eK(a,e.join(" "))}};
_.gK=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());_.eK(a,e.join(" "),d)}};ujc=function(a,b,c){if(b.length){var d=[];d.push(c?"not (":"(");d.push(b.join(" or "));d.push(")");_.eK(a,d.join(""))}};_.Xhc=function(a){var b=new _.Xfc;b.setTime(a);return b};vjc=function(a,b){b=_.se(b,33)[0];if(null!=b){var c=[];c.push("teamDriveId");c.push("=");c.push(dK(b));_.eK(a,c.join(" "))}};
_.wjc=function(a){a=_.yb(a,_.TJ,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(",")};_.xjc=function(a){a=a.iA();return null==a||0==a.length?"":a.map(function(b){b=b.WR();if(0==b)throw Error("lf");return _.Rfc[b]}).join(",")};
yjc=function(a,b){if(a.length){var c=new _.vo;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(dK(d.Wa()));_.eK(c,e.join(" "),"or")}return c.toString()}return""};zjc=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 dK(e.Wa())});d.push(a.join(", "));return d.join(" ")}return""};
Ajc=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""}};Bjc=function(a){switch(a){case 1:return"<=";case 2:return"<";case 3:return"=";case 4:return">";case 5:return">=";default:return""}};Cjc=function(a,b,c){if(null!=_.z(c,2)){var d=Bjc(_.z(c,1));c=dK(_.Whc(_.Xhc(_.z(c,2)||0)));_.eK(a,[b,d,c].join(" "))}};
Djc=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""};
_.Ejc=function(a,b){b=void 0===b?!1:b;for(var c=new _.vo,d=_.yb(a,_.jl,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(dK(h));_.eK(c,p.join(" "))}}for(var q=_.yb(a,_.il,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(dK(w));_.eK(c,A.join(" "))}}var B=_.ol(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===_.pj(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=yjc(E,!1),xa=yjc(I,!0),Ba=zjc(M,!1,!1),Ja=zjc(P,!0,!1),hb=zjc(S,!1,!0),Sb=zjc(aa,!0,!0),ac=new _.vo;if(Ba||hb||ea||xa)_.eK(ac,Ba,"or"),_.eK(ac,hb,"or"),_.eK(ac,ea,"or"),_.eK(ac,xa,"or");ac.NI.length&&_.eK(c,"("+ac.toString()+")","and");var Nc=new _.vo;if(Ja||Sb)_.eK(Nc,Ja,"and"),_.eK(Nc,Sb,"and");Nc.NI.length&&
_.eK(c,"("+Nc.toString()+")","and")}for(var wc=_.yb(a,_.gl,7),Gb=0;Gb<wc.length;Gb++)Cjc(c,"modifiedDate",wc[Gb]);for(var De=_.yb(a,_.gl,8),Yd=0;Yd<De.length;Yd++)Cjc(c,"lastViewedByMeDate",De[Yd]);_.gK(c,"trashed",a.Qh());_.gK(c,"explicitlyTrashed",_.Q(a,17));_.gK(c,"starred",_.Q(a,10));_.gK(c,"hidden",_.Q(a,11));for(var Hh=_.pl(a),pd=0;pd<Hh.length;pd++){var Pb=Hh[pd];fK(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=[],jm=[];_.R(xj,2,!1)?Kj.push("not ("):Kj.push("(");jm.push(dK(xj.Wa()));jm.push("in");jm.push("owners");jm.push("or");jm.push("creator");jm.push("=");jm.push(dK(xj.Wa()));Kj.push(jm.join(" "));Kj.push(")");_.eK(c,Kj.join(""))}}else fK(c,"owners",xj.Wa(),_.R(xj,2,!1))}for(var Fi=_.yb(a,_.Ff,14),Lp=0;Lp<Fi.length;Lp++){var Re=Fi[Lp];fK(c,"writers",Re.Wa(),_.R(Re,2,!1))}for(var wi=_.yb(a,_.Ff,15),Wk=0;Wk<wi.length;Wk++){var Mp=wi[Wk];fK(c,"readers",Mp.Wa(),_.R(Mp,2,!1))}_.Q(a,
16)&&_.eK(c,"sharedWithMe");_.gK(c,"unparented",_.Q(a,34));for(var ak=_.yb(a,_.dl,35)||[],Eq=_.m(ak),Fq=Eq.next();!Fq.done;Fq=Eq.next())fK(c,"ancestors",Fq.value.Wa(),!1);for(var hn=_.yb(a,_.dl,38)||[],Im=_.m(hn),Al=Im.next();!Al.done;Al=Im.next())fK(c,"descendants",Al.value.Wa(),!1);for(var Pr=_.yb(a,_.hl,37)||[],fj=_.m(Pr),Qr=fj.next();!Qr.done;Qr=fj.next())fK(c,"folderFeatures",Qr.value.Wa(),!1);for(var Np=_.se(a,39),Gq=_.m(Np),Rr=Gq.next();!Rr.done;Rr=Gq.next()){var Op=Rr.value,Sr=[];Sr.push("templateData.description");
Sr.push("contains");Sr.push(dK(Op));_.eK(c,Sr.join(" "))}for(var Wn=_.se(a,40),uk=0;uk<Wn.length;uk++){var vk=[];0==uk&&vk.push("(");vk.push(dK(Wn[uk]));vk.push("in");vk.push("templateData.categories");uk==Wn.length-1&&vk.push(")");_.eK(c,vk.join(" "),0==uk?"and":"or")}var Qc=_.z(a,41);if(null!=Qc){var jn=[];jn.push("templateData.galleryState");jn.push("=");jn.push(dK(_.Zfc[Qc]||""));_.eK(c,jn.join(" "))}var $s=_.z(a,42);if(null!=$s){var Hq=[];Hq.push("visibility");Hq.push("=");Hq.push(dK(Djc($s)));
_.eK(c,Hq.join(" "))}for(var Tr=_.yb(a,_.cl,44),Fu=0;Fu<Tr.length;++Fu){var Ur=Tr[Fu];fK(c,"actionItems",Ajc(Ur),_.R(Ur,3,!1))}if(_.mj(a,50)){var Rl=[];Rl.push("pairedDocType");Rl.push(_.R(a,50,!1)?"!=":"=");Rl.push(dK("NONE"));_.eK(c,Rl.join(" "))}fK(c,"workspaceIds",a.$q(),!1);for(var Uo=_.yb(a,_.el,57),Xn=0;Xn<Uo.length;Xn++){var Yn=[];0==Xn&&Yn.push("(");Yn.push(dK(Uo[Xn].Wa()));Yn.push("in");Yn.push("approvals");Xn==Uo.length-1&&Yn.push(")");_.eK(c,Yn.join(" "),0==Xn?"and":"or")}if(_.mj(a,58)){var Ox=
a.qq(),uw=Ox.Wa();if(uw){var Pp=[];_.R(Ox,2,!1)&&Pp.push("not");Pp.push("creator");Pp.push("=");Pp.push(dK(uw));_.eK(c,Pp.join(" "))}}var Oz=_.y(a,_.npa,59);if(Oz)for(var Gu=_.m(_.yb(Oz,_.kpa,1)),Vr=Gu.next();!Vr.done;Vr=Gu.next()){var Wr=Vr.value;fK(c,"categoryMetadata",Wr.Hm());for(var at=_.m(Wr.Zj()),Xk=at.next();!Xk.done;Xk=at.next()){var Gi=Xk.value,km=_.z(Gi,1),Pg=_.Bb(Gi,_.fl);if(10==Pg){_.Hj(Gi,_.bpa,10,_.fl);var vw=_.Q(Gi,15);(void 0===vw?0:vw)?_.eK(c,km+" is null"):_.eK(c,"not ("+km+" is null)")}else{var Hi=
new _.vo,Yk=void 0;switch(Pg){case 3:Yk=_.Hj(Gi,Aic,3,_.fl);for(var Hu=_.m(Yk.xi()),Zk=Hu.next();!Zk.done;Zk=Hu.next())_.gK(Hi,km,Zk.value,"or");break;case 14:for(var bt=Yk=_.Hj(Gi,_.Voa,14,_.fl),ww=new Map([[1,"="],[2,">"],[3,"<"]]),ct=_.m(bt.xi()),Iu=ct.next();!Iu.done;Iu=ct.next()){var Xr=Iu.value,Qp=ww.get(_.z(bt,2));if(!Qp)throw Error("mf");_.eK(Hi,[km,Qp,dK(Xr.getYear()+"-"+phc(Xr.getMonth())+"-"+phc(Xr.getDay()))].join(" "),"or")}break;case 8:for(var hv=Yk=_.Hj(Gi,_.apa,8,_.fl),iv=new Map([[1,
"="],[2,">"],[3,"<"]]),jv=_.m(hv.xi()),oy=jv.next();!oy.done;oy=jv.next()){var Uw=oy.value,tN=iv.get(_.z(hv,2));if(!tN)throw Error("mf");_.eK(Hi,[km,tN,Uw].join(" "),"or")}break;case 9:for(var zg=Yk=_.Hj(Gi,Cic,9,_.fl),dr=new Map([[1,"in"]]),kJ=_.m(zg.xi()),uN=kJ.next();!uN.done;uN=kJ.next()){var vN=uN.value,gS=dr.get(_.z(zg,2));if(!gS)throw Error("mf");_.eK(Hi,[vN,gS,km].join(" "),"or")}break;case 6:for(var py=Yk=_.Hj(Gi,_.fpa,6,_.fl),hZ=new Map([[1,"="]]),wN=_.m(py.xi()),iZ=wN.next();!iZ.done;iZ=
wN.next()){var jZ=iZ.value,hS=hZ.get(_.z(py,2));if(!hS)throw Error("mf");_.eK(Hi,[km,hS,dK(jZ)].join(" "),"or")}break;case 7:for(var aD=Yk=_.Hj(Gi,_.dpa,7,_.fl),kZ=new Map([[1,"in"]]),lZ=_.m(aD.xi()),HF=lZ.next();!HF.done;HF=lZ.next()){var MA=HF.value,mZ=kZ.get(_.z(aD,2));if(!mZ)throw Error("mf");_.eK(Hi,[dK(MA),mZ,km].join(" "),"or")}break;case 4:for(var nZ=Yk=_.Hj(Gi,_.hpa,4,_.fl),d7=new Map([[1,"="],[2,"contains"],[3,"starts with"]]),oZ=_.m(nZ.xi()),pZ=oZ.next();!pZ.done;pZ=oZ.next()){var qZ=pZ.value,
e7=d7.get(_.z(nZ,2));if(!e7)throw Error("mf");_.eK(Hi,[km,e7,dK(qZ)].join(" "),"or")}break;case 5:for(var rZ=Yk=_.Hj(Gi,Eic,5,_.fl),kha=new Map([[1,"in"]]),vwb=_.m(rZ.xi()),vXa=vwb.next();!vXa.done;vXa=vwb.next()){var wXa=vXa.value,xXa=kha.get(_.z(rZ,2));if(!xXa)throw Error("mf");_.eK(Hi,[dK(wXa),xXa,km].join(" "),"or")}break;case 12:for(var IF=Yk=_.Hj(Gi,_.Zoa,12,_.fl),Pkc=new Map([[1,"="]]),wwb=_.m(IF.xi()),iS=wwb.next();!iS.done;iS=wwb.next()){var Vw=iS.value,f7=Pkc.get(_.z(IF,2));if(!f7)throw Error("mf");
_.eK(Hi,[km,f7,dK(Vw)].join(" "),"or")}break;case 11:for(var lha=Yk=_.Hj(Gi,_.Xoa,11,_.fl),sZ=new Map([[1,"in"]]),Axa=_.m(lha.xi()),Bxa=Axa.next();!Bxa.done;Bxa=Axa.next()){var mha=Bxa.value,xwb=sZ.get(_.z(lha,2));if(!xwb)throw Error("mf");_.eK(Hi,[dK(mha),xwb,km].join(" "),"or")}}_.Q(Gi,15)?_.eK(c,"not ("+Hi+")"):_.eK(c,1<Yk.xi().length?"("+Hi+")":""+Hi)}}}null!=_.Q(a,60)&&_.gK(c,"linkShareMetadata.securityUpdateEligible",_.Q(a,60));var nha=_.Q(a,65);if(null!=nha){var Cxa=[];Cxa.push("clientEncryptionDetails.encryptionState");
Cxa.push("=");Cxa.push(dK(nha?"encrypted":"unencrypted"));_.eK(c,Cxa.join(" "))}var ywb=_.yb(a,_.Ff,68);if(ywb.length){for(var zwb=[],Awb=[],Dxa=_.m(ywb),yXa=Dxa.next();!yXa.done;yXa=Dxa.next()){var g7=yXa.value,oha="sharedFrom = "+dK(g7.Wa());_.R(g7,2,!1)?Awb.push(oha):zwb.push(oha)}ujc(c,zwb,!1);ujc(c,Awb,!0)}var h7=_.yb(a,_.Ff,67);if(h7.length){for(var zXa=[],Bwb=[],tZ=_.m(h7),AXa=tZ.next();!AXa.done;AXa=tZ.next()){var Cwb=AXa.value,BXa="sharedTo = "+dK(Cwb.Wa());_.R(Cwb,2,!1)?Bwb.push(BXa):zXa.push(BXa)}ujc(c,
zXa,!1);ujc(c,Bwb,!0)}null!=_.Q(a,69)&&_.gK(c,"linkShareMetadata.securityUpdateEnabled",_.Q(a,69));null!=_.Q(a,72)&&_.gK(c,"canAcceptOwnership",_.Q(a,72));if(_.Q(a,73)){var CXa=(new _.Hf).Hb("application/vnd.google-apps.shortcut");_.gK(c,"impactedByMultiparentingMigration",!0);_.eK(c,zjc([CXa],!1,!1))}1==_.UJ(a)&&vjc(c,a);return c.toString()};
_.Fjc=function(a){var b=new _.vo(_.Ejc(a));_.R(a,74,!1)?_.eK(b,"isQuickAccessForSharedFilesRequest"):_.lJ(a)?_.eK(b,"isQuickAccessRequest"):_.mJ(a)?_.eK(b,"isPeoplePredictRequest"):_.nJ(a)&&_.eK(b,"isDrivePriorityRequest");var c=a.Lc();if(c){var d=[];d.push("sortBy");d.push(_.Ufc[c.getType()]);d.push(_.agc[c.Uf()]);_.Q(c,3)&&d.push("foldersFirst");_.eK(b,d.join(" "))}_.gK(b,"domainSearch",_.Q(a,18));_.gK(b,"offline",_.Q(a,19));_.yb(a,_.TJ,25).length&&(c=[],c.push("sources"),c.push("contains"),c.push(_.wjc(a)),
_.eK(b,c.join(" ")));a.iA().length&&(c=[],c.push("spaces"),c.push("contains"),c.push(_.xjc(a)),_.eK(b,c.join(" ")));if(c=_.UJ(a))d=[],d.push("corpora"),d.push("="),d.push(dK(_.tjc[c])),_.eK(b,d.join(" "));_.R(a,66,!0)||_.gK(b,"includeItemsFromAllDrives",_.R(a,66,!0));1!=_.UJ(a)&&vjc(b,a);_.R(a,48,!1)&&_.eK(b,"cachedOnly");return b.toString()};
_.KJ=function(a){if(a instanceof _.nI)a=a.jd();else if(!a)return!1;return a instanceof _.cA||a instanceof _.aG||"undefined"!=typeof _.hK&&a instanceof _.hK||a instanceof _.Df&&(_.lJ(a)||_.mJ(a)||_.nJ(a))};Gjc=function(){_.so.call(this);this.V=this.O=null;this.ka=!1;this.ha=null};_.K(Gjc,_.so);_.Hjc=function(a){!a.ka&&a.V&&(a.V(),a.ka=!0)};Ijc=function(a,b){a.V||(a.V=b)};Gjc.prototype.Dj=function(){_.Hjc(this);(0,this.ha)()};Jjc=function(a,b){a.ha||(a.ha=b)};
_.iK=function(a){if(!a.O){a.O=new cjc;var b=_.uo(a);_.G(b,56,a.O)}return a.O};Gjc.prototype.getState=function(){var a=_.iK(this).getState();a||(a=new Tic,_.iK(this).Id(a));return a};var Kjc=function(a,b){var c=new Ric;_.x(c,1,b);a=_.uo(a);_.G(a,12,c)};Gjc.prototype.ma=function(){var a=_.y(_.iK(this),Vic,4);if(!a){a=new Vic;var b=_.iK(this);_.G(b,4,a)}return a};
var Ljc=function(a){var b=_.y(_.iK(a),Wic,8);b||(b=new Wic,a=_.iK(a),_.G(a,8,b));return b},Mjc=function(a){var b=_.y(_.iK(a),ajc,19);b||(b=new ajc,a=_.iK(a),_.G(a,19,b));return b},Njc=function(a){_.oi.call(this,"rb");this.H=a};_.K(Njc,_.oi);Njc.prototype.Me=function(){return this.H};_.Ojc=function(a,b){a=void 0===a?1:a;b=void 0===b?!1:b;_.zi.call(this);this.H=!1;this.connectionState=b?1:a;this.O=b?!0:1===a;this.V=b};_.K(_.Ojc,_.zi);_.g=_.Ojc.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?_.WB.$U:_.WB.Kha;else 1===a?(b=_.WB.ZL,this.O=!0):3===a&&(b=_.WB.ZU);if(b)return b=new kjc(b),this.connectionState=a,this.H=!1,this.dispatchEvent(b),!0}return!1};
var Pjc=function(a,b){this.userId=a;this.H=b;this.db=null},Rjc=function(a,b){a.H.info("drive.ds.sync.logging.ImpressionPersister","Persisting offline impressions.");return Qjc(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")};Pjc.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 Sjc=function(a){return new _.Vh(function(b){var c=new Map;Qjc(a,function(d){return Gic(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={bsa:f.bsa},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;f.bsa=k;l.then(function(p){return function(q){q&&c.set(p.bsa,new _.WAa(q.lDb))}}(f))}return _.jI([].concat(_.fc(e.values()))).then(function(){return b(c)})})})})},Tjc=function(a,b){return Qjc(a,
function(c){return c.remove(b)},"readwrite")},Qjc=function(a,b,c){c=void 0===c?"readonly":c;return Ujc(a).then(function(d){try{var e=_.Ndc(d,["OfflineImpressions"],c).objectStore("OfflineImpressions");return b(e)}catch(f){return a.handleError(f?_.OI(f):void 0)}},function(d){return a.handleError(d)})},Ujc=function(a){return a.db?_.Wh(a.db):_.Pdc("GoogleDriveDsImpressions",2,function(b,c){c.H.objectStoreNames.contains("OfflineImpressions")&&_.Hic(c,"OfflineImpressions");b=_.Mdc(c,"OfflineImpressions",
{autoIncrement:!0});try{b.H.createIndex("userId","userId",void 0)}catch(d){throw _.XH(d,"creating new index userId with key path userId");}},function(){return a.handleError(Error("qf"))}).then(function(b){return a.db=b},function(b){return _.Xh(_.OI(b))})};Pjc.prototype.handleError=function(a){a||(a=Error("rf"));_.aK(this.H,"drive.ds.sync.logging.ImpressionPersister",a.message,"severe");return _.Wh()};
_.Vjc=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;_.zi.call(this);this.V=b;this.O=null;this.H=b?!1:a};_.K(_.Vjc,_.zi);_.Vjc.prototype.Me=function(){return this.H};_.Vjc.prototype.Jl=function(a){var b=this.H!==a;!this.V&&b&&(this.H=a,this.dispatchEvent(new Njc(a)))};_.Vjc.prototype.jz=function(a){this.O=a};
var Xjc=function(a,b,c,d,e,f){_.zi.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()||Wjc(h)});this.Jb.listen(c,[_.WB.ZL,_.WB.$U],function(){return void Wjc(h)});this.W=e;f.then(function(){return Wjc(h)})};_.K(Xjc,_.zi);Xjc.prototype.PA=function(a){return(a=(this.H.Me()||this.connectionState.Me())&&this.H.O?Rjc(this.O,a):this.V.PA(a))?a:void 0};
var Wjc=function(a){return a.H.O?Sjc(a.O).then(function(b){b.forEach(function(c,d){a.V.PA(c).then(function(){return Yjc(a,d)},function(){a.log("Unable to send offline impression batch "+d+".")})})}):Promise.resolve()},Yjc=function(a,b){a.log("Sent offline impression batch "+b+".");a.dispatchEvent("sb");return Tjc(a.O,b).then(function(){a.log("Removed offline impression batch "+b+".")},function(){a.log("Unable to remove offline impression batch "+b+".")})};
Xjc.prototype.log=function(a){this.W.info("drive.ds.sync.logging.ClearcutOfflineTransport",a)};var Zjc=function(){};Zjc.prototype.wR=function(){return new Gjc};var $jc=function(){this.H=new djc};$jc.prototype.O=function(a){_.G(a,13,this.H)};$jc.prototype.setEnvironment=function(a){this.H.setEnvironment(a);return this};
var bkc=function(a,b,c,d){this.ha=b;this.connectionState=c;this.Ow=d;this.O=this.H=this.V=null;this.client=_.jK(_.jgc,_.XJ(a));this.ka=_.z(a,94);this.ma=_.jK(_.ngc,_.pj(a.Tf(),8,0));this.lya=_.jK(_.kgc,_.pj(a.Tf(),9,2));this.ta=_.WJ(a);this.Ku=_.LI(_.fI(a));this.ODa=_.YJ(a);this.W=akc(a);this.buildLabel=a.Li()};bkc.prototype.Jj=function(){return this.client};
akc=function(a){var b=[].concat(_.fc(_.ggc.keys())),c=[].concat(_.fc(_.hgc.keys())),d=_.JJ(a);return b.filter(function(e){return _.ggc.get(e)(a)}).concat(c.filter(function(e){return d&&_.hgc.get(e)(d)}))};_.jK=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};bkc.prototype.Xo=function(a){return null==a?0:a?2:1};var ckc=function(a){if(a.O)return a.O.H("aU7Ts")};
bkc.prototype.Cb=function(a){return a instanceof _.eI||"undefined"!=typeof _.kK&&a instanceof _.kK||"undefined"!=typeof _.lK&&a instanceof _.lK||"undefined"!=typeof _.mK&&a instanceof _.mK?a.Cb():"undefined"!=typeof _.nK&&a instanceof _.nK||"undefined"!=typeof _.oK&&a instanceof _.oK||"undefined"!=typeof _.pK&&a instanceof _.pK||"undefined"!=typeof _.qK&&a instanceof _.qK||"undefined"!=typeof _.rK&&a instanceof _.rK?a.response?a.response.Cb():null:null};bkc.prototype.Li=function(){return this.buildLabel};
var dkc=function(a){return a.ha.Me()||a.connectionState.Me()?2:1};bkc.prototype.getEnvironment=function(){return this.Ow};ekc=function(a,b){this.H=a;var c=new _.Lza;_.Mza(c,b.W);a=this.H.bM();var d=_.Hfc(a);_.G(d,10,c);(c=b.Li())&&_.Gfc(a,c);this.H.J_();this.O=b};
_.fkc=function(a,b,c){var d=_.to(a.H.sG(b,c),_.bgc);Kjc(d,dkc(a.O));b=ckc(a.O);"boolean"===typeof b&&Uic(d.getState(),b);1===c&&Ijc(d,function(){return void a.H.Nw(d)});Jjc(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};gkc=function(a){var b=new _.wAa,c=new $jc,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.lya);_.x(c.H,5,a.ta);_.x(c.H,6,a.Ku);_.x(c.H,7,a.ODa);a=c.setEnvironment(a.getEnvironment());_.Aec(b,_.dgc,a);_.wo(b,_.bgc,new Zjc);return b};
hkc=function(a,b,c,d,e,f,h,k){k=void 0===k?!1:k;var l=new _.hI(906,b,void 0,_.tgc());l.ha=!1;var p=new _.Bec(l);b=new Date;l=_.Mfc(_.Lfc(_.Kfc(Iic(),new _.Cec(l)),gkc(c)),109).setSessionId(b.getTime()+"_"+_.ph());if(k){a=new Xjc(p,d,e,new Pjc(a,f),f,h);_.Jfc(l,a);d=l.build();_.Ffc(d.bM(),1E3*b.getTime());var q=new ekc(d,c);(new _.of).listen(a,"sb",function(){_.fkc(q,106008,0).Dj()});return q}_.Jfc(l,p);a=l.build();_.Ffc(a.bM(),1E3*b.getTime());return new ekc(a,c)};
ikc=function(a,b){this.V=a;this.W=b};ikc.prototype.O=function(a,b){this.V&&_.jkc(this)&&(a=_.fkc(this.V,a,0),b&&_.bhc(a,b),a.Dj())};_.sK=function(a,b){if(a.V&&_.jkc(a)){a=_.fkc(a.V,106018,0);var c=_.y(_.iK(a),$ic,15);if(!c){c=new $ic;var d=_.iK(a);_.G(d,15,c)}c=_.x(c,1,1);_.x(c,2,b);a.Dj()}};ikc.prototype.H=function(a,b){return this.V&&_.jkc(this)?(a=_.fkc(this.V,a,1),b&&_.bhc(a,b),a):null};_.jkc=function(a){return!(!a.V||!a.V.H.cQ())};
_.kkc=function(a,b,c,d,e,f){var h=_.Q(a,59),k=_.wI(_.fI(a)).toString(),l=_.VJ(_.fI(a));f=new bkc(a,b,c,f);a=h?hkc(l,k,f,b,c,d,e,_.R(a,17,!1)):null;return new ikc(a,f)};_.lkc=function(a){_.J.call(this,a)};_.K(_.lkc,_.J);_.lkc.prototype.yk=function(){return _.z(this,1)};_.mkc=function(a){var b=new _.lkc;return _.x(b,1,a)};_.dJ=function(a){_.J.call(this,a)};_.K(_.dJ,_.J);_.dJ.prototype.getId=function(){return _.z(this,1)};_.dJ.prototype.Nb=function(a){return _.x(this,1,a)};
_.nkc=function(a,b){return _.x(a,2,b)};okc=[1];_.shc=function(a){_.J.call(this,a,-1,okc)};_.K(_.shc,_.J);_.tJ=function(a){_.J.call(this,a)};_.K(_.tJ,_.J);_.tJ.prototype.jd=function(){return _.y(this,_.dJ,1)};pkc=[2];_.AJ=function(a){_.J.call(this,a,-1,pkc)};_.K(_.AJ,_.J);_.AJ.prototype.qc=function(){return _.z(this,1)};_.AJ.prototype.sW=function(){return _.yb(this,_.VF,2)};_.AJ.prototype.se=function(){return _.y(this,_.Qf,3)};_.fJ=function(a){_.J.call(this,a)};_.K(_.fJ,_.J);
_.fJ.prototype.jd=function(){return _.y(this,_.eJ,1)};_.fJ.prototype.Lda=function(a){return _.x(this,2,a)};_.qkc=function(a){_.J.call(this,a)};_.K(_.qkc,_.J);_.qkc.prototype.getId=function(){return _.z(this,1)};_.qkc.prototype.Nb=function(a){return _.x(this,1,a)};_.qkc.prototype.se=function(){return _.y(this,_.Qf,2)};_.qJ=function(a){_.J.call(this,a)};_.K(_.qJ,_.J);_.qJ.prototype.ao=function(){return _.z(this,2)};_.qJ.prototype.jd=function(){return _.y(this,_.qkc,3)};
_.gJ=function(a){_.J.call(this,a)};_.K(_.gJ,_.J);_.rkc=function(a,b){this.O=b;this.H=new Map;this.zma(_.yb(a,_.kl,91))};_.rkc.prototype.zma=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;b=c.getId();c=_.ll(c);if(!b||!c)break;var d=_.skc(this,b);if(d){d!==c&&rhc(b);break}this.H.set(b,c)}};
Zhc=function(a,b){return[].concat(_.fc(new Set(b))).map(function(c){var d=(new _.kl).Nb(c);a.H.has(c)?_.ml(d,a.H.get(c)):a.O&&(c=a.O.H(c))&&_.ml(d,_.Pk(c));return d}).filter(function(c){return _.mj(c,2)})};_.skc=function(a,b){return a.H.has(b)?String(a.H.get(b)):a.O&&(a=a.O.H(b))&&_.mj(a,140)?_.Pk(a):null};_.vhc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.Bhc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.Hhc=function(){this.H=_.Rf(new _.Qf,312)};
_.tkc=function(a,b){_.YH.call(this,a?a:500,b?b:6E5)};_.K(_.tkc,_.YH);_.tK=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};_.tK.prototype.getState=function(){return this.state};
_.tK.prototype.KM=function(a){var b=this;if(this.W)return this.W;var c=_.Zh();this.W=c.promise.then(function(){return _.mkc(1)},function(d){d=_.wd(d).tg;var e=0;2===d.Kp()?e=3:_.sgc(d)&&(e=2);return _.mkc(e)});a&&this.W.then(function(d){3===d.yk()&&_.sK(b.Yf,186469046)});this.H&&(a=_.z(Mjc(this.H),4)||0,bjc(Mjc(this.H),a+1));setTimeout(function(){b.W=null},5E3);ukc(this,c);return this.W};_.xkc=function(a,b){vkc(a,3)&&_.wkc(a,b)};_.tK.prototype.reset=function(){this.O=null;ykc(this)};
ykc=function(a){a.timeout&&(clearTimeout(a.timeout),a.timeout=null)};_.wkc=function(a,b){if(!a.O&&!a.V){a.H=a.Yf.H(106025);if(a.H){var c=Mjc(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 _.tkc(5E3,6E4);zkc(a)}};zkc=function(a){ykc(a);ukc(a);a.O&&(a.timeout=setTimeout(function(){return void zkc(a)},a.O.Wa()),_.ZH(a.O))};
ukc=function(a,b){var c=function(){if(a.H){var d=_.z(Mjc(a.H),3)||0,e=Mjc(a.H);_.x(e,3,d+1)}Akc(a,b)};(a.ha?a.ha():_.Wh(void 0)).then(null,function(){return null}).then(c,c)};Akc=function(a,b){a.log("Checking connection state.");var c=a.ma.then(function(d){return d.Pe(new _.Hhc)}).then(null,function(d){d=_.wd(d);_.sgc(d.tg)&&vkc(a,2);return _.Xh(d)});b?b.resolve(c):c.then(null,function(){return null})};_.tK.prototype.log=function(a){this.ka.info("drive.ds.sync.connection.StateManager",a)};
vkc=function(a,b){return!a.V&&a.state.update(b)?(a.log("Connection status: "+_.wgc.get(b)),!0):!1};_.Bkc=function(){this.H={}};Ckc=function(a,b,c){if(a.H[b])throw Error("sf");a.H[b]=c};_.Bkc.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)}};Dkc=function(a,b){for(var c=0;c<b.length;c++)delete a.H[b[c]]};_.Ekc=function(a,b){this.H=a;this.V=b;this.O=_.ygc[_.pj(a.Tf(),8,0)];this.W=_.ygc[_.pj(a.Tf(),51,5)]};
_.Ekc.prototype.kc=function(a,b){if(b.gO)Fkc(this,a,b),Gkc(this,a,b);else{var c={};if(11===a.mn){if(b.wNb){var d=b.cE||_.C(this.H.Tf(),37,"");c.key=d;nhc(c,a.uri)}Fkc(this,a,b);Hkc(this,a,b)}else switch(a.uri=Ikc(this,a.mn,a.uri),a.mn){case 1:Hkc(this,a,b);Fkc(this,a,b);break;case 0:b.Ku||_.LI(_.fI(this.H))||_.R(this.H,83,!1)&&nhc({dsNonce:_.ph()},a.uri);Hkc(this,a,b);Gkc(this,a,b);Fkc(this,a,b);break;case 2:case 3:case 4:case 5:Hkc(this,a,b);Gkc(this,a,b);Fkc(this,a,b);break;case 8:case 9:case 10:case 13:case 12:case 7:Hkc(this,
a,b);Gkc(this,a,b);break;default:throw Error("tf`"+a.mn);}}};Jkc=function(a,b){var c=Ikc(a,b,new _.$i);if(!c.xH())throw Error("vf");return(new _.$i).Rr(c.Ro).Nn(c.kk()).SA(c.Ky()).Ai(_.zgc.has(b)?"/batch"+a.O:"/batch")};
Ikc=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 _.$i(a);
_.ge(c,"/")&&(c=c.slice(1));return new _.$i(a+"/"+c)};Hkc=function(a,b,c){a=_.fI(a.H);c.Ku||_.LI(a)||(b.headers.authorization=_.yec([{key:"u",value:_.VJ(a)}])||"",c=_.wI(a),0<=c&&(b.headers["x-goog-authuser"]=String(c)))};
Fkc=function(a,b,c){var d=_.fI(a.H),e=a.H.Tf(),f=c.T8a||_.R(e,14,!1),h=11===b.mn;if(c.S8a||_.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===_.pj(e,9,2)?"":",cospel:3:all,DriveService:3:all"));nhc(k,b.uri)}f&&!h&&a.V&&a.V.O(b.headers,b.method,b.uri.toString())};
Gkc=function(a,b,c){a=c.Ku||_.LI(_.fI(a.H))?_.C(a.H.Tf(),36,""):c.cE||_.C(a.H.Tf(),37,"");nhc({key:a},b.uri)};_.uhc=function(a,b,c){this.request=a;this.pageSize=b;this.pageToken=c};_.whc=function(a){this.request=a;this.requestId=_.ph()};_.Ehc=function(a,b,c,d){this.request=a;this.file=b;this.WQ=void 0===c?null:c;this.metadata=d};Chc=function(a,b){this.request=a;this.metadata=b};Dhc=function(a,b,c,d,e,f,h){this.V=a;this.blob=b;this.H=c;this.O=d;this.G0a=e;this.contentType=f;this.revisionId=h};
_.EJ=function(a,b,c,d){this.request=a;this.file=b;this.WQ=void 0===c?null:c;this.metadata=d};Mhc=[_.QI,_.SI,_.RI,_.UI,_.TI,_.VI,_.WI,_.ZI,_.aJ,_.bJ,_.cJ,_.eJ,_.fJ,_.sJ,_.wJ,_.yJ,_.AJ,_.xI,_.BJ,_.CJ,_.DJ,_.whc,_.EJ];Kkc=[_.zI];Nhc=[_.WF,_.Bhc];Ohc=[_.qJ,_.PH,_.oD,_.FJ];Phc=[_.nI,_.gJ,_.XF,_.zI,_.vhc];Qhc=[_.FJ,_.bG];Rhc=[_.dJ,_.shc,_.pJ,_.tJ,_.uJ,_.uhc,_.EJ,Dhc,Chc];
Lkc=function(a){return a instanceof _.nI||a instanceof _.FJ||"undefined"!=typeof _.uK&&a instanceof _.uK||a instanceof _.CJ||a instanceof _.bJ||a instanceof _.VI||a instanceof _.ZI||a instanceof _.xI&&_.IJ(a)};_.Mkc=function(a,b){this.H=b;this.d5={};this.cj=new Pic;b=_.PI({fields:_.se(a,28),anonymous:_.LI(_.fI(a))});this.Hb("SecondaryFields",b);this.Hb("SdkBackfillEnabled",!!_.R(a,45,!1)+" (Include corpus cache: "+!!_.R(a,46,!1)+")")};_.Mkc.prototype.Hb=function(a,b){this.d5[a]=Nkc(a,b)};
var Okc=function(a,b){var c=a.d5[b];c||(c=Nkc(b,0,2),a.d5[b]=c);c.Hb(String(Number(c.Wa())+1))};_.Mkc.prototype.Wz=function(a){var b=_.Ya(this.d5);this.H&&b.push(Nkc("CacheSize",this.H.getSize()));b.push(Nkc("InitialViewDataLoaded",a));a=new _.qjc;_.tj(a,1,b);return _.fi(a)};Nkc=function(a,b,c){var d=new _.ojc;_.x(d,1,a);_.x(d,4,c||1);d.Hb(String(b));d.ll(_.Dgc.get(a));return d};
_.Qkc=function(a,b,c){var d=new _.Ofc;_.x(d,2,"Pending...");b instanceof _.nI?_.yj(d,3,_.oI,b):b instanceof _.FJ?_.yj(d,4,_.oI,b):"undefined"!=typeof _.uK&&b instanceof _.uK?_.yj(d,5,_.oI,b):b instanceof _.CJ?_.yj(d,6,_.oI,b):b instanceof _.bJ?_.yj(d,7,_.oI,b):b instanceof _.VI?_.yj(d,8,_.oI,b):b instanceof _.ZI?_.yj(d,9,_.oI,b):b instanceof _.xI&&_.yj(d,10,_.oI,b);var e=Jhc(b),f=[];if(b instanceof _.RI)GJ(f,"ID",b.getId()),GJ(f,"Parent ID",b.ak());else if(b instanceof _.bJ)GJ(f,"TD ID",b.getId());
else if(b instanceof _.nI)b=_.Fjc(b.jd()),GJ(f,"Query",b);else if(b instanceof _.FJ)GJ(f,"Query","All");else if(b instanceof _.CJ)GJ(f,"TD ID",b.getId()),GJ(f,"Title",b.getTitle()),GJ(f,"Theme Image ID",_.z(b,3));else if(b instanceof _.VI)GJ(f,"MimeType",b.getMimeType()),GJ(f,"Title",b.getTitle()),GJ(f,"Parents",_.se(b,3)),GJ(f,"Convert",_.Q(b,8)),GJ(f,"Request ID",b.mj()),GJ(f,"Parent Request IDs",_.se(b,10)),GJ(f,"Revision Item ID",_.z(b,12)),GJ(f,"Pinned",_.Q(b,8));else if(b instanceof _.WI)GJ(f,
"Title",b.getTitle());else if(b instanceof _.ZI)GJ(f,"ID",b.getId());else if(b instanceof _.cJ)GJ(f,"WS ID",b.getId());else if(b instanceof _.sJ)GJ(f,"Source ID",_.z(b,1)),GJ(f,"Destination Parent ID",_.z(b,2)),GJ(f,"validation token",_.z(b,4));else if(b instanceof _.xI){if(GJ(f,"ID",b.getId()),GJ(f,"Title",b.getTitle()),GJ(f,"Description",b.zf()),GJ(f,"Starred",_.Q(b,4)),GJ(f,"Trashed",b.Qh()),GJ(f,"MimeType",b.getMimeType()),GJ(f,"Parents",_.se(b,8)),GJ(f,"Parents to add",_.se(b,9)),GJ(f,"Parents to remove",
_.se(b,10)),GJ(f,"Restricted",_.Q(b,11)),GJ(f,"Folder Color",b.Mi()),GJ(f,"Update Last Viewed",_.Q(b,15)),GJ(f,"Subscribed",_.Q(b,16)),GJ(f,"Available Offline",_.Q(b,18)),GJ(f,"Wksp to add",_.se(b,31)),GJ(f,"Wksp to remove",_.se(b,32)),b=_.y(b,_.Ek,25))GJ(f,"Read Only",_.Q(b,1)),GJ(f,"Reason",_.z(b,2))}else b instanceof _.DJ?(GJ(f,"WS ID",b.getId()),GJ(f,"Title",b.getTitle()),GJ(f,"State",b.getState())):b instanceof _.whc&&GJ(f,"Title",b.request.getTitle());_.x(d,1,"Request: "+e+(c?" ("+c+")":"")+
"\n"+f.join("\n"));a.cj.add(d);return d};_.Rkc=function(a,b){for(var c=new _.vo,d=0;d<b.length&&20>d;d++){var e=b[d];c.append(e.getId()+":"+_.Qgc(e.getTitle()||"",20)+"\n")}20<b.length&&c.append(b.length-20+" more item(s)");_.x(a,2,c.toString()||"Done.")};_.Mkc.prototype.VR=function(){return this.cj.ih()};
_.vK=function(a){_.J.call(this,a)};_.K(_.vK,_.J);_.vK.prototype.Zc=function(){return _.y(this,_.eI,1)};_.Skc=function(a,b){return _.G(a,1,b)};_.vK.prototype.ao=function(){return _.z(this,3)};
_.Tkc=function(a,b,c){_.oi.call(this,"Cb");this.requestId=a;this.progress=b;this.totalBytes=c};_.K(_.Tkc,_.oi);
var Vkc;_.Ukc=function(a,b){this.O=a;this.V=b;this.H=null};Vkc=function(a){a.O()||(a.H&&(a.H.resolve(),a.H=null),a.V())};
var wK=function(a){_.zi.call(this);this.name=a};_.K(wK,_.zi);_.g=wK.prototype;_.g.S4=function(){};_.g.zGa=function(){};_.g.X2a=function(){};_.g.xOa=function(){};_.g.W2a=function(){};_.g.tG=function(){this.dispatchEvent(new _.oi("Db"))};_.g.toString=function(){return this.name+": "+this.max(Infinity)};
var Wkc=function(a,b){wK.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.tG()});this.Oc.listen(this.H,"fb",this.tG)};_.K(Wkc,wK);Wkc.prototype.max=function(){var a=this.O.Me(),b=this.H.QB();return!a&&b?Infinity:0};Wkc.prototype.S4=function(){this.tG()};
var Xkc=function(a){wK.call(this,"Online");var b=this;this.connectionState=a;this.Oc=new _.of(this);this.Ja(this.Oc);this.Oc.listen(this.connectionState,[_.WB.ZL,_.WB.Kha,_.WB.$U],function(){return b.tG()})};_.K(Xkc,wK);Xkc.prototype.max=function(){return this.connectionState.isConnected()?Infinity:0};Xkc.prototype.S4=function(){this.tG()};
_.Ykc=function(a,b){this.H=a;this.O=b};_.Zkc=function(a){return a.H instanceof _.tK?new Xkc(a.H.getState()):new Wkc(a.O,a.H)};_.Ykc.prototype.Kj=function(){return this.H instanceof _.tK?this.H.getState():this.O};
var alc;_.$kc=function(a,b,c){this.TK=c;this.O=!0;this.V=0;this.H=new _.YH(a,b,.5)};alc=function(a){return a.H.O+a.V};
_.xK=function(a,b){wK.call(this,"Backoff");this.H=a;this.O=b};_.K(_.xK,wK);_.xK.prototype.max=function(){return this.H.O?Infinity:0};_.xK.prototype.xOa=function(){var a=this.H;a.V=0;a.H.reset()};_.xK.prototype.W2a=function(a){var b=this;blc(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.tG()},a),_.ZH(this.H.H))};
var blc=function(a){var b;return(a=null===(b=_.ja(a.fE))||void 0===b?void 0:b.response)?ehc(_.xda(a)):!1};_.xK.prototype.log=function(a){this.O.info("drive.ds.network.queue.BackoffState",a)};
_.clc=function(a,b){wK.call(this,"Batch");this.O=a;this.V=b;this.H=null};_.K(_.clc,wK);_.clc.prototype.max=function(a){return a>=this.O?this.O:null!=this.H?this.V<=Date.now()-this.H?this.O:0:0};_.clc.prototype.S4=function(a){a>=this.O?this.tG():null==this.H&&dlc(this)};_.clc.prototype.zGa=function(a,b){0<b?dlc(this):this.H=null};var dlc=function(a){a.H=Date.now()-1;_.n.setTimeout(a.tG.bind(a),a.V)};
_.yK=function(){this.cj=[]};_.g=_.yK.prototype;_.g.add=function(a,b){b?this.cj.unshift(a):this.cj.push(a);return!0};_.g.Gta=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(Khc(b.Zv.lx)),!0):!1})};_.g.xK=function(){return _.Cg(this.cj,function(a){return _.IJ(a.Zv.lx)})};
var elc=function(){wK.call(this,"Immediate")};_.K(elc,wK);elc.prototype.max=function(){return Infinity};elc.prototype.S4=function(){this.tG()};
var flc=function(){wK.call(this,"One Request")};_.K(flc,wK);flc.prototype.max=function(){return 1};
_.zK=function(a){wK.call(this,"Parallel");this.limit=a;this.H=0};_.K(_.zK,wK);_.zK.prototype.max=function(){return Math.max(0,this.limit-this.H)};_.zK.prototype.S4=function(){this.H<this.limit&&this.tG()};_.zK.prototype.zGa=function(a){this.H+=a.length};_.zK.prototype.X2a=function(a){this.H-=a.length;this.H<this.limit&&this.tG()};
var glc=function(){_.zi.apply(this,arguments)};_.K(glc,_.zi);var ilc=function(a,b){a.dispatchEvent(new hlc(b))};glc.prototype.O=function(){};var hlc=function(a){_.oi.call(this,"Eb");this.request=a};_.K(hlc,_.oi);
_.AK=function(a,b,c,d,e,f){_.zi.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.e2a);for(a=0;a<this.O.length;a++)this.Oc.listen(this.O[a],"Eb",function(k){jlc(h,!0,k.request)});this.logName=(0,_.Ys)("drive.ds.network.queue.Queue [%s]",f)};_.K(_.AK,_.zi);_.AK.prototype.add=function(a){return jlc(this,!1,{Zv:a,ee:_.Zh(),fE:[]})};
_.AK.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};_.AK.prototype.xK=function(){return this.V.xK()?!0:this.buckets.some(function(a){return a.xK()})};
var jlc=function(a,b,c){if(!a.buckets.some(function(f){return f.add(c,b)}))return a=_.Fo(new _.Fc,"No queue bucket accepted request."),_.Xh(_.wd(a));for(var d=klc(a),e=0;e<a.H.length;e++)a.H[e].S4(d);return c.ee.promise};_.g=_.AK.prototype;
_.g.e2a=function(){var a=klc(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].Gta(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=klc(this);for(var f=0;f<this.H.length;f++)this.H[f].zGa(a,e);_.$h(_.jI(d).then(this.iyb.bind(this,a)),function(){b.W.delete(c)});_.n.setTimeout(this.e2a.bind(this),0)};
_.g.kyb=function(a,b){var c=a.Zv.config;this.log(Jhc(a.Zv.lx)+" request completed successfully. xd4: "+!(!c||!c.gO));this.H.forEach(function(d){return d.xOa()});this.O.forEach(function(d){return d.O(a)});a.ee.resolve(b)};
_.g.jyb=function(a,b){b=_.wd(b);this.log(Jhc(a.Zv.lx)+(" request failed with error: "+b.ha+"."));a.fE.push({response:b,vUb:Date.now()});for(var c=0;c<this.H.length;c++)this.H[c].W2a(a);a.Zv.config.vGa||!this.O.some(function(d){return d.intercept(a)})?a.ee.reject(b):this.log(Jhc(a.Zv.lx)+" encountered an error, but was intercepted to be retried.")};_.g.iyb=function(a){klc(this);for(var b=0;b<this.H.length;b++)this.H[b].X2a(a)};
var klc=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};_.AK.prototype.log=function(a){this.ha.info(this.logName,a)};
_.llc=function(a,b,c,d){glc.call(this);this.V=b;this.ka=c;this.W=d;this.H=new Map;this.ha=_.Ej(a,21,1E3);this.ta=_.Ej(a,1,1);this.ma=function(){return new _.$kc(_.Ej(a,63,1E3),_.Ej(a,64,3E5),_.Ej(a,65,10))}};_.K(_.llc,glc);
_.llc.prototype.intercept=function(a){var b=a.fE.length,c=0<b&&_.ja(a.fE).response||null;if(c){c=_.vI(c);if(2===c.Kp())return mlc(this,a);if(_.sgc(c))return 2>=b?(ilc(this,a),a=!0):a=!1,a;var d=c.Yj();if(3===d||31===d||13===d||9===d)return nlc(this,a,b);if(ehc(c))return b=alc(this.V),c=this.V,alc(c)<c.TK?(this.log("Backoff number "+b+" for a User Rate Limit error."),ilc(this,a),a=!0):(this.log("Done retrying User Rate Limit errors after "+(b+" backoffs.")),a=!1),a}return!1};
var mlc=function(a,b){var c=olc(a,b),d=alc(c);if(alc(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 ilc(a,b)},d),_.ZH(c.H)):(_.n.setTimeout(function(){return ilc(a,b)}),c.V++),!0;a.H.delete(b);return!1},olc=function(a,b){a.H.has(b)||a.H.set(b,a.ma());return a.H.get(b)},nlc=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 ilc(a,
b)},a.ha*Math.pow(2,c)),!0;a.log("Done retrying retriable requests after "+d+" retries.");return!1};_.llc.prototype.O=function(a){this.H.delete(a)};_.llc.prototype.log=function(a){this.W.info("drive.ds.network.queue.RetryInterceptor",a)};
var plc=function(a){try{if("undefined"!==typeof FileReaderSync&&_.tgc()){var b=new FileReaderSync;return Promise.resolve(b.readAsDataURL(a))}var c=new _.Uvb,d=jjc(c);c.H.readAsDataURL(a);return d.then()}catch(e){return Promise.reject(new _.Svb(_.OI(e),"reading data"))}},qlc=function(a){return plc(a.size?a.slice(0,1):a).then(function(){return null},function(b){return b.name})};
var rlc=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=_.Zh();this.finished=!1;this.Ba=this.Tu=0;this.ka=null;this.ma=!1;this.V=null;a=f.request.Wz();a=_.tgc()&&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};
rlc.prototype.log=function(a){this.La.info("drive.ds.sync.request.ResumableUpload",a)};rlc.prototype.start=function(){var a=this,b=new Chc(this.request.request,this.request.metadata),c=slc(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;tlc(a)},function(d){return void a.ee.reject(d)});return _.$h(this.ee.promise.then(function(d){ulc(a,d);return d},function(d){d=_.wd(d);ulc(a,d.tg);return _.Xh(d)}),function(){Dkc(a.H,[a.QO])})};
var slc=function(a){var b=_.eb(a.config);Ckc(a.H,a.QO,Nic(function(){return void a.H.notify([a.requestId],0)}));return b};rlc.prototype.cancel=function(){return this.finished?!1:(this.finished=!0,this.ee.resolve(Khc(this.request)),!0)};
var tlc=function(a){a.finished||(a.log("Uploading chunk "+a.Ba+" for "+a.ha+"."),vlc(a,4))},vlc=function(a,b){wlc(a).then(function(c){if(c){var d=xlc(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?tlc(a):a.ee.resolve(f)},function(f){if(d.vGa)a.cancel();else{var h=_.vI(f);h.gDa()||h.oma()||a.ma?ylc(a,b,h,!1):qlc(c.blob).then(function(k){k=k?_.IFa.get(k)||
25:38;_.JI(h,k);ylc(a,b,h,38===h.Kp(),38!==h.Kp()&&25!==h.Kp())},function(){})}})}else{var e=_.wd(_.JI(_.Fo(new _.Fc,"Could not read more of the file. Read "+a.progress+"/"+a.fileSize+" bytes."),5));a.ee.reject(e)}})},ylc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=4-b;c.nga(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+"."));vlc(a,b)},a.Qa*Math.pow(1.5,f))):a.ee.reject(_.wd(c))},wlc=function(a,b){return a.ma&&a.V?_.Wh(a.V):zlc(a,b).then(function(c){if(!c)return null;if(a.ma&&0<a.fileSize&&0===c.size)return wlc(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 Dhc(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})},zlc=function(a,b){a.O=b?b:Math.min(a.fileSize-a.progress,a.W);b=a.progress;return a.request.WQ?a.request.WQ(b,a.O):_.Wh(_.Sgc(a.request.file,b,b+a.O))},xlc=function(a,b){var c=_.eb(a.config);c.CTa=!0;var d=a.progress/a.fileSize,e=b/a.fileSize;Dkc(a.H,[a.QO]);Ckc(a.H,a.QO,function(f){a.H.notify([a.requestId],Math.min(d+e*f,1))});return c},ulc=function(a,b){b.yOa(3);b.nga(a.Tu);b.qK()||b.Hda(a.wa);b.pN()||b.wda(a.Ga)};
_.Alc=function(a,b,c,d,e){this.ha=a;this.V=b;this.H=c;this.W=d;this.O=e};_.Alc.prototype.create=function(a,b){return new rlc(this.ha,this.V,this.H,this.W,this.O,a,b)};
_.Blc=function(a){this.O=a;this.H={}};_.Blc.prototype.execute=function(a){for(var b=[],c=0;c<a.length;c++)if(a[c].Zv.lx instanceof _.Ehc)b.push(Clc(this,a[c].Zv));else{var d=_.Fo(new _.Fc,"ResumableUploadExecutor only supports ResumableUploadRequests.");b.push(Promise.reject(_.wd(d)))}return b};_.Blc.prototype.cancel=function(a){return!!this.H[a]&&this.H[a].cancel()};_.Blc.prototype.xK=function(){return!_.ab(this.H)};
var Clc=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};
_.Dlc=function(a,b){return new _.AK(b,a,[new elc],[new _.yK],[],"immediate")};_.Elc=function(a,b,c,d,e){return new _.AK(e,a,[_.Zkc(d),new _.xK(c,e),new flc],[new _.yK],[new _.llc(b,c,d.Kj(),e)],"connected")};_.Flc=function(a,b,c,d,e,f,h){h=void 0===h?_.Ej(b,10,50):h;return new _.AK(e,a,[_.Zkc(d),new _.clc(h,_.Ej(b,12,10)),new _.zK(3*h),new _.xK(c,e)],[new _.yK],[new _.llc(b,c,d.Kj(),e)],f)};_.Glc=function(a,b,c){return new _.AK(c,a,[new _.zK(_.Ej(b,46,1))],[new _.yK],[],"resumable_upload")};
_.Hlc=function(a,b,c,d,e,f,h,k){this.DI=a;this.ma=b;this.W=c;this.H=d;this.V=e;this.ha=f;this.ka=h;this.O=k};_.Hlc.prototype.Pe=function(a,b){return Ilc(this,a,b).then(null,function(c){c=_.wd(c);var d=c.tg;Lhc(a)||_.Ho(d);return _.Xh(c)})};
var Ilc=function(a,b,c){c=void 0===c?{}:c;var d=a.DI.validate(b);if(d)return _.Xh(_.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 _.Wh(d).then(function(){if(e instanceof _.Fc)return _.Xh(_.wd(e));if(Array.isArray(e)){var f=e.map(function(h){return Jlc(a,b,h,c)});return _.jI(f)}return Jlc(a,b,e,c)},function(f){return _.Xh(_.wd(f))})},
Jlc=function(a,b,c,d){var e=Klc(a,c);if(!e)return b=_.JI(_.Fo(new _.Fc,"Failed to choose a queue for server request."),18),_.Xh(_.wd(b));if(e===a.H[7]||e===a.H[8])d.gO=!0;d=e.add({lx:c,config:d});(_.IJ(b)||_.IJ(c))&&d.then(function(){Vkc(a.V)},function(){Vkc(a.V)});b=a.ha.apply(c,d);d.then(function(f){a.ka.apply(c,f)},function(){});return b};_.Hlc.prototype.cancel=function(a){return _.Wa(this.H,function(b){return b.cancel(a)})};
var Klc=function(a,b){var c,d=!1;b instanceof _.gJ?d=!(null===(c=_.y(b,_.XF,2))||void 0===c||!_.Q(c,7)):b instanceof _.XF?d=!!_.Q(b,7):b instanceof _.nI&&(d=(d=b.jd())&&!!_.Q(d,46));return(b instanceof _.Hhc||b instanceof _.EI&&_.Q(b,9))&&a.H[1]?a.H[1]:b instanceof _.Ehc&&a.H[5]?a.H[5]:d&&Shc(b,a.O)&&a.H[7]?a.H[7]:Shc(b,a.O)&&a.H[8]?a.H[8]:d&&(b instanceof _.gJ||b instanceof _.XF)&&a.H[6]?a.H[6]:(d||Kkc.includes(b.constructor))&&a.H[3]?a.H[3]:Mhc.includes(b.constructor)&&a.H[4]?a.H[4]:a.H[2]||a.H[1]};
var Llc=function(a){this.H=a};Llc.prototype.build=function(a,b){var c="====="+_.ph()+"=====",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=Jkc(this.H,a[0].mn);_.ej(k,"$ct",'multipart/mixed; boundary="'+c+'"')}else f=Mlc[d],h=Nlc[d]||{},h["content-type"]=(0,_.Ys)('multipart/mixed; boundary="%s"',c),d=Olc[d],k=new _.$i("");a=Plc(this,a,b,c,e);return{mn:f,body:a,headers:h,method:d,uri:k}};
var Plc=function(a,b,c,d,e){for(var f=qhc(Qlc[b[0].mn]||{}),h="",k=0;k<b.length;k++){e&&Hkc(a.H,b[k],c[k]);var l=b[k],p=a.H,q=l,r=c[k];q.uri=Ikc(p,q.mn,q.uri);switch(q.mn){case 0:case 5:Gkc(p,q,r);Fkc(p,q,r);break;case 2:Hkc(p,q,r);Gkc(p,q,r);var v=q,w=_.z(p.H.Tf(),57);v.headers.host=_.ij(w).kk();v.headers.origin=_.n.location.origin?_.n.location.origin:_.n.location.protocol+"//"+_.n.location.host;Fkc(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.SA(null);l=f+"\r\n"+(p.method+" "+q+" HTTP/1.1\r\n")+qhc(l.headers)+"\r\n"+(l.body?l.body+"\r\n":"");h+="--"+d+"\r\n";h+=l}return h+("--"+d+"--\r\n")},Rlc={},Mlc=(Rlc[0]=1,Rlc[2]=3,Rlc),Slc={},Olc=(Slc[0]="POST",Slc[2]="PUT",Slc[12]="POST",Slc),Tlc={},Ulc={},Nlc=(Ulc[2]=(Tlc["x-goog-upload-protocol"]="batch",Tlc),Ulc),Vlc={},Wlc={},Xlc={},Ylc={},Zlc={},Qlc=(Zlc[0]=(Vlc["content-type"]="application/http",Vlc["content-transfer-encoding"]="binary",Vlc),
Zlc[13]=(Wlc["content-type"]="application/http",Wlc["content-transfer-encoding"]="binary",Wlc),Zlc[12]=(Xlc["content-type"]="application/http",Xlc["content-transfer-encoding"]="binary",Xlc),Zlc[2]=(Ylc["content-type"]="application/http",Ylc),Zlc);
var $lc=/^HTTP\/1\.1 (\d+) ([\w ]+)/,amc=/^multipart\/mixed; boundary="?([^"]+)"?$/;
var bmc=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};bmc.prototype.add=function(a,b){var c="DEFAULT";b.gO&&(c=Jkc(this.V,a.mn).toString());this.cj.has(c)||this.cj.set(c,[]);c=this.cj.get(c);if(1<=c.length&&!b.gO&&!Mlc[a.mn])return a=_.Fo(new _.Fc,"Unsupported batch API: "+a.mn),_.Xh(_.wd(a));var d=_.Zh();c.push({request:a,config:b,ee:d});return d.promise};
bmc.prototype.send=function(){for(var a={},b=_.m(this.cj.entries()),c=b.next();!c.done;a={ksa:a.ksa},c=b.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;try{cmc(this,d)}catch(f){var e=_.OI(f);e=_.Go(_.Fo(new _.Fc,"Error executing XHR: "+e.message),e.stack);a.ksa=_.wd(e);d.forEach(function(h){return function(k){k.ee.reject(h.ksa)}}(a));this.cj.delete(c)}}};
var cmc=function(a,b){if(1===b.length){var c=b[0];if(!c.config.LDa&&!c.config.gO){var d=!1;if(Mlc[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){dmc(a,c);return}}}emc(a,b)},dmc=function(a,b){var c=b.ee;a.W.mh(b.request,b.config).then(function(d){c.resolve(d);fmc(a,b)},function(d){a.handleError(b,d);c.reject(d)})},emc=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),{LDa:!0,gO:d.every(function(e){return e.gO})}).then(function(e){e.headers=_.Tgc(e.headers);var f=amc.exec(e.headers["content-type"]);var h=f&&f[1]?"--"+f[1]:null;if(!h)throw new _.Gc("Could not extract batch boundary.",_.JI(_.Go(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.",
_.JI(_.Go(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.",_.JI(_.Go(new _.Fc,B),17));else{var M=I[1].split("\r\n");if(w=$lc.exec(M[0])){p=_.rh(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,_.Eg)(ma[0])]=(0,_.Eg)(ma[1]))}M=_.Tgc(aa);S.call(P,A,M);try{v=_.Te(_.oh(I[2]))?void 0:JSON.parse(I[2])}catch(ea){}v=(p=_.Zgc(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.",_.JI(_.Go(new _.Fc,B),16))}r.call(q,v)}return k}).then(null,function(e){e=_.wd(e);return _.hdc(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||fmc(a,b[0])})},fmc=function(a,b){var c=b.request.mn;b=!b.config.Ku&&_.pa(gmc,c);if(a.H){if(a=a.H,c=b?1:2,!a.state.isConnected()||b)c=vkc(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()};
bmc.prototype.handleError=function(a,b){a=_.xda(b);if(2===a.Kp()){if(this.H)return _.xkc(this.H),!0}else if(_.sgc(a)){if(this.H){a=this.H;if(b=!a.V)b=a.state,b=!b.V&&b.isConnected()?b.H=!0:!1;b&&_.wkc(a);return!0}if(this.O)return this.O.ta(),!0}return!1};var gmc=[0,2,4,7,8];
var hmc=function(){_.Xi.apply(this,arguments)};_.K(hmc,_.Xi);hmc.prototype.getAllResponseHeaders=function(){return _.Jja(_.Xi.prototype.getAllResponseHeaders.call(this))};
var imc=function(a,b){this.ha=a;this.W=b;this.V={};this.O={};this.H={}};
imc.prototype.mh=function(a,b){var c=this;try{this.ha.kc(a,b);var d=new hmc;d.KC=!0;var e=b.requestId||"",f=_.Zh();d.listen("complete",function(){var h=b.LDa,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||_.Xgc(d.Cb()))&&!h)try{l.json=_.KI(d)}catch(p){}h=_.Zgc(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===_.Yi(d)&&d.sA()&&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.CTa?h.loaded/h.total:h.loaded/h.total/2)}),b.CTa||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 _.Xh(_.wd(h))}};
imc.prototype.cancel=function(a){var b=this.V[a];a=this.O[a];return b&&b.isActive()?(a.vGa=!0,b.abort(),!0):!1};
_.jmc=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 Llc(this.O);this.W=new imc(this.O,this.wa)};_.g=_.jmc.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].fE));c.push(Lkc(e.lx)?_.Qkc(this.ma,e.lx):void 0)}if(this.H&&this.H.V){var f=Promise.reject(_.wd(_.Zgc(0,"",{},"",void 0,-99)));return a.map(function(){return f})}var h=new bmc(this.O,this.W,this.ka,this.H||void 0,this.ha||void 0);d=[];e={};for(var k=0;k<a.length;e={Qra:e.Qra},k++){e.Qra=a[k].Zv.config;var l=b[k].then(function(p){return function(q){return h.add(q,p.Qra)}}(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].fE)).then(null,function(p){return Promise.reject(_.wd(p))}),l.then(this.zOa.bind(this,k),this.zOa.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():[];_.Rkc(b,e)});return a};_.g.cancel=function(a){return this.W.cancel(a)};_.g.xK=function(){return this.V.some(function(a){return _.IJ(a.lx)})};_.g.zOa=function(a){_.wa(this.V,a)};
_.kmc=function(){};_.kmc.prototype.execute=function(){return null};
var lmc=function(){};
var mmc=function(a,b){this.H=a;this.retryCount=b};
_.BK=function(a){return function(b){return b.kind===a}};
_.nmc=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 omc;omc=function(a){this.H=a};_.CK=function(a,b){if(!_.Ea(b)||null===b)throw new _.Gc("Expected an object, but got a "+_.Yga(b)+".",_.NI(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),_.NI(11,void 0,21));var c=b.kind;if(!a(b))throw new _.Gc("Unexpected response type: "+c+".",_.NI(11,void 0,9));};_.DK=function(a){return null!=a?(new Date(a)).getTime():void 0};
_.pmc=function(a){var b=null!=a.canDelete?a.canDelete:a.canDeleteTeamDrive;var c=new _.Ck;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=_.dic(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)};_.EK=function(a,b){_.CK(_.BK("drive#user"),b);var c=_.bic(_.cic(_.$hc(1).Nb(b.permissionId),b.id).$c(b.displayName),b.emailAddress);b.picture&&c.On(b.picture.url);_.mI(a.H)&&_.bic(c,b.emailAddressFromAccount||b.emailAddress);_.aic(c,a.mf(b.id));c.Nn(b.domain);return c};omc.prototype.mf=function(a){if(a)return _.VJ(_.fI(this.H))==a};
var qmc,vmc,Dmc,Jmc,ymc,xmc,Amc,Cmc,Emc,smc,Gmc,Fmc,Hmc,Imc,Lmc,Mmc,Kmc,Bmc;qmc=function(a,b){this.H=a;this.O=b};
_.tmc=function(a,b,c){var d=new _.vK,e=new _.eI,f=e.hB,h=[];if(_.BK("drive#file")(b))(a=_.rmc(a,b))&&h.push(a);else if(_.BK("drive#fileList")(b))for(var k=b.items||[],l=0;l<k.length;l++){var p=_.rmc(a,k[l]);h.push(p)}e=f.call(e,h);if(_.BK("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 _.Fec).Dc(smc.get(k.status)),l=_.x(l,
1,k.original),k=_.x(l,3,k.correction),h.push(k);a=new _.Jec;h=_.tj(a,1,h);f.push(h)}q=new _.Lec;_.tj(q,1,f)}if((f=b.suggestedNlpQueries)&&0<f.length){var r=new _.Hec;_.rj(r,1,f)}q||r?(f=new _.Mec,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);_.rj(e,18,r)}d=_.Skc(d,e);c=_.Vgc(c);c=_.x(d,2,c);_.BK("drive#fileList")(b)&&b.nextPageToken&&_.x(c,3,b.nextPageToken);
return c};vmc=function(a,b,c,d,e){var f=_.ijc(new _.HJ,c);_.BK("drive#adminFile")(b)?(c=(new _.Jk).Nb(b.id),b.parentId&&_.QJ(c,[b.parentId]),_.qic(c,b.teamDriveId),f.setItem(c),_.ijc(f,c.getId())):_.BK("drive#file")(b)?(b=_.rmc(a,b),f.setItem(b),c||_.ijc(f,b.getId())):_.BK("drive#revision")(b)&&(b=_.umc(a,b),_.G(f,4,b));f.Hda(_.Ugc(d));f.wda(_.Vgc(d));(d=(d=d&&_.Tgc(d))&&d["x-server-object-version"])&&e&&(e=(new _.bK).Nb(d),_.G(f,4,e));f.Dc(1);return f};_.wmc=function(a,b){return _.ijc(new _.HJ,a).Dc(1).Hda(_.Ugc(b)).wda(_.Vgc(b))};
_.zmc=function(a,b){var c=_.aic(_.cic(_.$hc(xmc.get(b.type)).Nb(b.id),b.userId),a.H.mf(b.userId));c=_.x(c,4,b.withLink);c=_.bic(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);_.mI(a.O)&&c.$c(b.nameIfNotUser);b.role&&(a=ymc.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};
_.rmc=function(a,b){var c=b.title,d=(new _.Jk).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=_.mic(_.dG(_.QJ(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,_.DK(b.createdDate));_.x(c,69,_.DK(b.serverCreatedDate));_.x(c,11,_.DK(b.modifiedDate));_.x(c,12,_.DK(b.modifiedByMeDate));_.x(c,13,_.DK(b.lastViewedByMeDate));_.x(c,23,_.DK(b.sharedWithMeDate));_.x(c,62,_.DK(b.hec));_.x(c,70,_.DK(b.recency));b.recencyReason&&(d=Amc.get(b.recencyReason)||0,_.x(c,71,d));d=[];if(b&&b.owners)for(e=b.owners,f=0;f<e.length;f++)(h=
_.EK(a.H,e[f]))&&d.push(h);_.kic(c,d);b.lastModifyingUser&&(d=_.EK(a.H,b.lastModifyingUser),_.lic(c,d));b.userPermission&&(d=ymc.get(b.userPermission.role),_.xVb(c,d));b.imageMediaMetadata&&(e=b.imageMediaMetadata,d=(new _.NJ).nh(e.width).Ah(e.height),d=_.x(d,4,e.rotation),e.date&&(e=e.date,f=new _.Xfc,f.setMilliseconds(0),Bmc.parse(e,f),_.x(d,1,f.getTime())),_.G(c,27,d));null!=b.folderColor&&_.nic(c,Number(b.folderColor));_.x(c,31,b.subscribed);_.x(c,45,b.fileExtension);_.rj(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=_.EK(a.H,b.sharingUser),_.oic(c,d));b.sources?_.rj(c,56,b.sources):b.gplusMedia&&_.rj(c,56,["GOOGLE_PHOTOS"]);if(b.spaces){d=b.spaces;e=[];for(f=0;f<d.length;f++)h=d[f],_.Qfc[h]&&(h=_.Af(new _.zf,_.Qfc[h]),e.push(h));c.TA(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=Cmc.get(k.type),h=_.x(h,2,k),e.push(h))}_.tj(c,83,e)}b.capabilities&&_.RJ(c,_.pmc(b.capabilities));b.permissionsSummary&&_.ric(c,Dmc(a,b.permissionsSummary));b.headRevisionId&&_.x(c,78,b.headRevisionId);b.templateData&&(d=b.templateData,e=(new _.OJ).ll(d.description),f=Emc.get(d.galleryState),e=_.x(e,3,f),d=_.rj(e,2,d.category),_.G(c,86,d));_.qic(c,
b.teamDriveId);_.x(c,76,b.hasAugmentedPermissions);_.x(c,137,b.ancestorHasAugmentedPermissions);b.creator&&(d=_.EK(a.H,b.creator),_.sic(c,d));_.tic(c,b.primaryDomainName);_.uic(c,b.organizationDisplayName);_.x(c,94,b.passivelySubscribed);b.trashingUser&&_.vic(c,_.EK(a.H,b.trashingUser));c.Lda(_.DK(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=Fmc.get(d),_.x(c,101,d);b.videoMediaMetadata&&(d=b.videoMediaMetadata,
e=(new _.PJ).nh(d.width).Ah(d.height),d.durationMillis&&_.x(e,3,Number(d.durationMillis)),_.G(c,103,e));_.rj(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 _.Ek).oP(f.readOnly),f=_.x(h,2,f.reason),d.push(f);_.tj(c,125,d)}if(d=b.publishingInfo)_.x(c,118,d.published),_.x(c,119,d.publishedUrl);_.rj(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(Gmc.get(f.status)),d.push(f);_.tj(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=Hmc.get(d.targetLookupStatus)||0,_.x(e,4,f)),d.targetFile&&(d=_.rmc(a,
d.targetFile),_.G(e,5,d)),_.G(c,132,e));b.clientEncryptionDetails&&(d=b.clientEncryptionDetails,e=new _.MJ,f=Imc.get(d.encryptionState),e=_.x(e,1,f),d.decryptionMetadata&&(d=Jmc(d.decryptionMetadata),_.G(e,2,d)),_.G(c,138,e));b.linkShareMetadata&&(d=b.linkShareMetadata,e=new _.fic,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);_.rj(c,135,b.authorizedAppIds);_.wic(c,b.customerId);_.x(c,144,b.abuseIsAppealable);
b.abuseNoticeReason&&(b=Kmc.get(b.abuseNoticeReason)||0,_.x(c,145,b));_.mhc(c);_.mI(a.O)&&_.pic(c,5);return c};_.umc=function(a,b){var c=(new _.bK).Nb(b.id);c=_.x(c,2,b.mimeType);c=_.x(c,3,_.DK(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=_.EK(a.H,b.lastModifyingUser),_.G(c,9,a));b.decryptionMetadata&&(b=Jmc(b.decryptionMetadata),_.G(c,10,b));return c};
Dmc=function(a,b){return _.iic(_.hic(_.gic(new _.Boa,b.entryCount),(b.visibility||[]).map(function(c){var d=_.$hc(xmc.get(c.type)).Nn(c.domain);d=_.x(d,4,c.withLink).Nb(c.type+"|"+(c.domain||"")+"|"+c.withLink);if(c.role){var e=ymc.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 _.zmc(a,c)}))};
Jmc=function(a){var b=a.wrappedKey;var c=new _.eic;b=b?_.Pec(b):void 0;c=_.x(c,1,b);c=_.x(c,2,Number(a.kaclsId));c=_.x(c,5,a.kaclsName);b=Lmc.get(a.aes256GcmChunkSize);c=_.x(c,3,b);b=Mmc.get(a.keyFormat);c=_.x(c,6,b);return _.x(c,4,a.jwt)};ymc=new Map([["fileOrganizer",7],["organizer",5],["owner",1],["reader",2],["writer",3]]);xmc=new Map([["anyone",4],["audience",5],["domain",3],["group",2],["user",1]]);Amc=new Map([["createdByMe",1],["modifiedByMe",2],["modified",3],["viewedByMe",4]]);
Cmc=new Map([["MENTION",0],["SUGGESTION",1],["ASSIGNMENT",2]]);Emc=new Map([["UNAVAILABLE",1],["AVAILABLE",2],["PENDING",3]]);smc=new Map([["CORRECT",1],["INCORRECT",2],["SUSPICIOUS",3]]);Gmc=new Map([["IN_PROGRESS",1],["APPROVED",2],["CANCELLED",3]]);Fmc=new Map([["docs",1],["sheets",2],["slides",3]]);Hmc=new Map([["ok",1],["notFound",2],["permissionDenied",3]]);Imc=new Map([["unencrypted",1],["encrypted",2]]);Lmc=new Map([["unset",0],["default",1],["small",2],["size16kb",3]]);
Mmc=new Map([["unsetKeyFormat",0],["tinkKeyset",1],["tinkAesGcmKey",2]]);Kmc=new Map([["unknownReason",0],["accessibleOnlyToOwner",1],["accessibleOnlyToOwningCustomer",2],["suspiciousOther",3],["suspiciousPhishing",4],["suspiciousMalware",5],["accessibleOnlyToOwnerInSomeRegions",6],["accessibleOnlyToOwningCustomerInSomeRegions",7],["suspiciousInSomeRegions",8]]);Bmc=new _.iWa("yyyy:MM:dd HH:mm:ss");
var Nmc=function(a,b,c){this.O=a;this.H=b;this.V=c};
var Pmc,Rmc;_.Omc=function(a){this.V=a;this.W=new omc(a);this.RF=new qmc(this.W,a);this.V=a};
_.Omc.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 _.VI)var f=Promise.resolve(_.FK(this,a,b));else{if(a instanceof _.dJ)var h=Pmc(this,0,b,c);else{if(a instanceof _.XF||a instanceof _.gJ){var k=Promise,l=k.resolve;if(!b.json)throw _.GK();_.CK(_.MI(_.BK("drive#fileList"),_.BK("drive#file")),b.json);var p=_.tmc(this.RF,b.json,b.headers);var q=l.call(k,p)}else{if(a instanceof _.EJ)k=Promise.resolve(_.FK(this,a,b));else{if("undefined"!=
typeof _.zhc&&a instanceof _.zhc){var r=Promise,v=r.resolve;if(!b.json)throw _.GK();_.CK(_.BK("drive#generateCseTokenResponse"),b.json);var w=b.json;var A=v.call(r,new _.nmc(w.fileId,w.jwt,Number(w.currentKaclsId),w.currentKaclsName,w.customerId))}else{if("undefined"!=typeof _.Qmc&&a instanceof _.Qmc){var B=Promise,E=B.resolve;if(!b.json)throw _.GK();_.CK(_.BK("drive#revision"),b.json);var I=_.umc(this.RF,b.json);r=E.call(B,I)}else{if(a instanceof _.tJ)B=Pmc(this,a.jd(),b,c);else{if(a instanceof Dhc){l=
Promise;var M=l.resolve;if(a.G0a){if(!b.json)throw _.GK();_.CK(_.MI(_.BK("drive#file"),_.BK("drive#adminFile"),_.BK("drive#revision")),b.json);var P=vmc(this.RF,b.json,null,b.headers,!!a.revisionId)}else P=_.wmc(null,b.headers);var S=M.call(l,P)}else{if(a instanceof Chc){a=Promise;var aa=a.resolve,ba=_.Tgc(b.headers),ma=ba.location;if(!ma){var ea=_.JI(new _.Fc,10);throw new _.Gc("No upload session URI included.",ea);}var xa=new Nmc(ma,_.Ugc(ba),_.Vgc(ba));var Ba=aa.call(a,xa)}else Ba=a instanceof
_.Hhc?Promise.resolve(new lmc):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))}};_.Omc.prototype.ka=function(){return null};
Pmc=function(a,b,c,d){b=c.headers["x-goog-safety-encoding"];return"base64"===b?0<_.Ej(a.V,95,0)?Rmc(c.text,_.Ej(a.V,95,0)).then(function(e){return new mmc(e,d.length)}):Promise.resolve(new mmc(_.cba(c.text),d.length)):b?Promise.reject(Error("rg")):Promise.resolve(new mmc(new Uint8Array(_.Uma(c.text)),d.length))};
Rmc=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_++)_.Bi(function(f){return function(){d.push(_.cba(a.slice(f.f_*b,(f.f_+1)*b)))}}(e),0);_.Bi(function(){d.push(_.cba(a.slice(Math.floor(a.length/b)*b,a.length)))},0);_.Bi(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)})};
_.FK=function(a,b,c){if(!c.json){if(b instanceof _.xI)return _.wmc(_.Smc(b));throw _.GK();}var d=!1;b instanceof _.EJ&&(d=!!_.z(b.request,12));_.CK(_.MI(_.BK("drive#file"),_.BK("drive#adminFile"),_.BK("drive#revision")),c.json);return vmc(a.RF,c.json,_.Smc(b),c.headers,d)};_.GK=function(){var a=_.JI(new _.Fc,11);return new _.Gc("FromXhrConverter: JSON required, but none found",a)};_.Smc=function(a){return a.getId?a.getId():a.qc?a.qc():null};
var Tmc,Vmc,Thc,Wmc,Uhc;Tmc={};_.Umc=(Tmc[1]="active",Tmc[2]="archived",Tmc);Vmc={};Thc=(Vmc[0]="unset",Vmc[1]="default",Vmc[2]="small",Vmc[3]="size16kb",Vmc);Wmc={};Uhc=(Wmc[0]="unsetKeyFormat",Wmc[1]="tinkKeyset",Wmc[2]="tinkAesGcmKey",Wmc);
var Zmc=function(a,b,c){return(a.WQ?a.WQ(0,a.file.size):Promise.resolve(a.file)).then(function(d){return plc(d)}).then(function(d){return Xmc(a,b,d,c)},Ymc)},Xmc=function(a,b,c,d){var e=!!_.z(a.request,12),f={},h="files";e&&(h+="/"+_.z(a.request,12));h=new _.$i(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=_.hhc({fields:_.cK(b).filter(function(q){return 194!=q}),anonymous:!1});nhc(f,h);ohc(h,a.request.se());
var k=Yhc(a.request,a.metadata);f=_.ph();b={};b=(b["content-type"]=(0,_.Ys)('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());_.LJ(d,_.yb(a.request,_.kl,28),[],null,b);a="--"+f;a=a+"\r\n"+qhc(l)+"\r\n"+k+"\r\n"+a+"\r\n"+qhc(p)+"\r\n"+c+"\r\n"+a+"--";return{mn:2,
headers:b,method:e?"PUT":"POST",uri:h,body:a}},Ymc=function(a){if(a instanceof _.Svb){var b=new _.Fc;_.Fo(b,"fs.Error: "+a.message);a=(a=a.name)?_.IFa.get(a)||25:38;_.JI(b,a);b=_.wd(b)}else b=_.OI(a);return Promise.reject(b)};
_.HK=function(a,b,c,d){this.H=a;this.Dg=b;this.O=c;this.Yf=d};_.HK.prototype.convert=function(a,b){try{return a.lx instanceof _.EJ?Zmc(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,_.Fo(a,"Error converting XHR: "+c.message),_.Go(a,c.stack),_.JI(a,4)),Promise.reject(a)}};
_.HK.prototype.V=function(a,b,c){var d,e=0,f,h={},k="GET",l={},p=!1,q=!1;if(a instanceof _.VI){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=_.hhc({fields:this.eh(),anonymous:_.LI(_.fI(this.H)),lF:_.mI(this.H)});f=Yhc(a);h["content-type"]="application/json";var v=a.se();q=!0;l.supportsTeamDrives=!0;_.R(this.H,3,!1)&&(l.enforceSingleParent=!0);_.LJ(this.H,_.yb(a,_.kl,28),_.se(a,3).concat([_.z(a,16),a.N2(),a.qc()]),
this.O,h)}else if(a instanceof _.dJ||a instanceof _.tJ)a instanceof _.tJ?(p=a.jd(),_.mj(a,2)&&(r="bytes="+_.z(a,2)+"-",_.mj(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",_.LJ(this.H,[_.ml((new _.kl).Nb(p.getId()),_.z(p,3))],[p.getId()],this.O,h),q=p=!0;else if(a instanceof _.gJ||a instanceof _.XF){if(a instanceof _.gJ){r=_.z(a,1);var w=_.y(a,_.XF,2)}else if(a instanceof _.XF)r=0,
w=a,a.V(),_.sK(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=_.hhc({fields:a,anonymous:_.LI(_.fI(this.H)),lF:_.mI(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.LDa=!0);10!=_.XJ(this.H)||(null===(d=_.JJ(this.H))||void 0===d?0:_.R(d,22,!1))?_.LJ(this.H,_.yb(w,_.kl,11).filter(function(E){return E.getId()==A}),[A],this.O,h):_.LJ(this.H,_.yb(w,
_.kl,11),w.V(),this.O,h)}else if("undefined"!=typeof _.zhc&&a instanceof _.zhc)r="files/generateCseToken",a.id&&(l.fileId=a.id),l.role=a.role,v=a.H;else if("undefined"!=typeof _.Qmc&&a instanceof _.Qmc)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 Dhc){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.G0a?(0,_.Ys)("bytes %d-%d/%d",B,b,b+1):(0,_.Ys)("bytes %d-%d/*",B,b)}B=a.blob;q=!0}else a instanceof Chc?(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=_.hhc({fields:this.eh().filter(function(E){return 194!=E}),anonymous:_.LI(_.fI(this.H)),lF:_.mI(this.H)}),l.supportsTeamDrives=!0,f=Yhc(a.request,a.metadata),h["content-type"]=
"application/json",null!=a.request.getMimeType()&&(h["x-upload-content-type"]=a.request.getMimeType()),_.LJ(this.H,[],_.se(a.request,3),this.O,h),v=a.request.se(),q=!0):a instanceof _.Hhc?(r="about",l.fields="kind",v=a.H,q=!0):_.$mc(a);q&&_.anc(c,l);0!=e||p||v&&_.z(v,1)||_.sK(this.Yf,74438989);return _.bnc(this,e,r,l,h,k,v,f,B)};
_.bnc=function(a,b,c,d,e,f,h,k,l){c=new _.$i(c);[10,12,13].includes(b)||ohc(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,_.gj(c,a,h);return{mn:b,headers:e,method:f,uri:c,body:k?JSON.stringify(k):l}};_.HK.prototype.W=function(){};_.anc=function(a,b){a&&a.length?(b.retryCount=a.length,b.msSinceLastAttempt=Date.now()-_.ja(a).vUb):b.retryCount=0};
_.HK.prototype.eh=function(a){a||(a=_.cK(this.Dg));return a};_.$mc=function(a){var b=_.JI(new _.Fc,4);throw new _.Gc("ToXhrConverter: Unsupported request type: "+Jhc(a),b);};
_.IK=function(a,b,c,d,e,f){_.zi.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.JG()})};_.K(_.IK,_.zi);_.IK.prototype.bR=function(){return _.FI()};
_.IK.prototype.upload=function(a,b,c,d){Okc(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.bR(),_.x(a,9,e));a=a.clone();f=cnc(this,e);this.cj[e]={request:a,
file:b,Fe:f,dN:!1,Tu:0,success:!1,bF:!1,children:[],metadata:c,Ama:void 0,WQ:d};h?dnc(this,e,h):this.ma(e);return f.nn()};
var cnc=function(a,b){var c=new _.ai;c.eg(_.Ob(a.Ga,b),_.Ob(a.Ia,b),a);return c},dnc=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),_.gI(e.request,10),!c.bF||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(_.sI(f)?f:Error(f))})};
_.IK.prototype.Ga=function(a,b){Okc(this.V,"UploadSuccessCount");a=this.cj[a];a.success=1===b.Cb();(b=a.Ama)&&!a.bF&&(Xic(Zic(Ljc(b),a.Tu),!0),b.Dj())};_.IK.prototype.Ia=function(a,b){var c=_.y(this.O,_.II,58);c&&_.R(c,1,!1)&&(this.ka[a]=b);Okc(this.V,"UploadFailureCount");c=this.cj[a];(a=c.Ama)&&!c.bF&&(Xic(Zic(Ljc(a),c.Tu),!1),b=(c=b&&b.tg)&&c.Yj(),c=c&&c.Kp(),b?Yic(Ljc(a),enc.get(b)||13):c&&Yic(Ljc(a),fnc.get(c)||0),a.Dj())};
_.IK.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,_.II,58);d&&_.R(d,4,!1)&&(d=c.getTitle().match(gnc))&&(!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.Wz())?_.z(c,1)||0:0;d=b.file&&b.file.size||c;c=this.O.Tf();var e=_.Ej(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.Ama=f,f=Ljc(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,_.Ej(c,32,1073741824)))}switch(e){case 2:b.file&&hnc(this,new _.Ehc(a,b.file,b.WQ,b.metadata),b.Fe,a.mj());break;case 1:b.file&&(c=b.Fe,d=b.file,e=b.metadata,b=b.WQ,f=_.y(this.O,_.xic,2),hnc(this,new _.EJ(a,d,b,f&&_.SJ(f)?e:void 0),c,a.mj()));break;case 3:hnc(this,a,b.Fe,a.mj());break;default:throw new _.Gc("Upload type ${uploadType} not supported.");}}};
var hnc=function(a,b,c,d){Ckc(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 inc(a,b,f)});e.then(function(){Dkc(a.W,[d])},function(){Dkc(a.W,[d])});e.then(function(f){c.callback(f)},function(f){c.Gd(f)})},inc=function(a,b,c){var d=_.wd(c),e=b instanceof _.EJ&&b.request.qc()||"";c=d.tg;if(e&&8===c.Yj()){a.log("Create failed with 409 Conflict, re-querying: "+e);var f=_.ZF(new _.XF,[e]);return _.gi(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),_.ijc((new _.HJ).setItem(h),e).Dc(1);a.log("No matching item found for: "+e);return _.Xh(d)}))}return _.hi(d)};_.g=_.IK.prototype;
_.g.cancel=function(a){var b=this,c=this.cj[a];if(c&&(!c.bF||0!==c.children.length))if(c.bF=!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.Ama;d&&(Yic(Xic(Zic(Ljc(d),c.Tu),!1),2),d.Dj());var e=_.Zh();c.dN?this.ha.then(function(f){return void e.resolve(f.cancel(a))}):(c.dN=!0,c.Fe.callback(Khc(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.JG=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=cnc(b,p),q.dN=!1,q.bF=!1,(r=r?b.cj[r]:null)?dnc(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 _.ai?f:_.hi(f)});_.Ma(d,this.ma,this);return a};_.g.log=function(){this.isDisposed()};_.g.jd=function(a){return this.cj[a]};var gnc=/^uploadTestFailMe(\.[1-9])?$/,fnc=new Map([[2,12],[5,1],[27,3],[29,4],[30,5],[31,6],[35,7],[36,8],[37,9],[38,10],[25,11]]),enc=new Map([[3,14]]);

_.u();

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

_.jnc=function(a,b){return _.x(a,1,b)};_.knc=function(a,b){return _.G(a,1,b)};_.lnc=function(a,b){return _.x(a,2,b)};_.mnc=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 nnc;_.JK=function(a){_.J.call(this,a,-1,nnc)};_.K(_.JK,_.J);_.JK.prototype.Cb=function(){return _.z(this,1)};_.JK.prototype.Dc=function(a){return _.x(this,1,a)};_.JK.prototype.Mh=function(){return _.yb(this,_.Jk,2)};_.onc=function(a,b){return _.tj(a,2,b)};_.JK.prototype.Pq=function(a,b){return _.zj(this,2,a,_.Jk,b)};_.JK.prototype.Vf=function(){return _.z(this,4)};_.pnc=function(a,b){return _.x(a,4,b)};nnc=[2];

_.u();

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

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

_.u();

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

var qnc;_.rnc=function(a){return _.Ye(a).eh(_.R(a.get(_.No),19,!1)?qnc:_.We)};qnc=[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 snc,tnc,unc,vnc,wnc,LK,xnc,ync,znc,Anc,Bnc,Dnc,Enc,Fnc,Gnc,Hnc,OK,Mnc,Nnc,PK,QK,Onc,Pnc,Rnc,Snc,Tnc,Unc,Vnc,Xnc,Ync,Znc,$nc,aoc,boc,doc,foc,moc,ooc,roc,soc,voc,yoc,UK,zoc,Aoc,Boc,Coc,Doc,Eoc,Foc,Goc,Hoc,Ioc,Joc,Koc,Loc,Moc,Noc,Poc,Qoc,Roc,Uoc,Toc,Xoc,Zoc,apc,cpc,gpc,mpc,lpc,tpc,upc,vpc,wpc,xpc,Bpc,Dpc,Epc,Fpc,MK,Gpc,Hpc,Jnc,Inc,Knc,Lnc,drc,$K,bL,trc,wrc,xrc,yrc,Brc,Soc,Crc,dsc,esc,fsc,gsc,hsc,jsc,ksc,lsc,cL,msc,dL,nsc,osc,psc,qsc,rsc,ssc,eL,tsc,usc,vsc,wsc,xsc,ysc,zsc,Lsc,jtc,ltc,mtc,rtc,stc,
Atc,Ktc,Ttc,auc,guc,nuc,puc,uuc,Auc,Puc,Quc,Tuc,Vuc,ovc,nwc,ioc,owc,pwc,qwc,vwc,Dwc,Ewc,HAc,Cpc;snc=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("; ")};
tnc=function(a){var b=[];b.push(snc(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 _.bi?"Canceled.":"Completed with failure. See attachment."}):d="In progress.":d="Not yet executed.";b.push("State: "+
d);return b.join("\n")};
unc=function(a,b,c,d,e,f){var h=_.Xa(e),k=_.Xa(f);h=(0,_.Ys)("Drive Upload Report: %d/%d failed",k,h);a=a.Tf();d.push("Batch query interval: "+_.Ej(a,12,10)+"ms");d.push("Max resumable upload chunk size: "+_.Ej(a,32,1073741824)/1024/1024+" MiB");d.push("Max batch upload file size: "+_.Ej(a,33,1048576)/1024/1024+" MiB");d.push("Max files in an upload batch: "+_.Ej(a,35,10)+" files");d.push("Max files in a non-upload batch: "+_.Ej(a,10,50)+" files");d=d.join("\n");var l=[],p=[];_.Ta(e,function(q){p.push(tnc(q))});
l.push({name:"AllUploadRequests.txt",content:p.join("\n---------\n")});l.push({name:"DataserviceLogs.txt",content:_.gjc(b)});_.Ta(f,function(q,r){var v=l.push;r=e[r].request;r=(0,_.Ys)('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,IQ:l,Ed:152391,c$:c,Z0:361003}};vnc=function(a){return Array.prototype.concat.apply([],arguments)};
wnc=function(a,b,c){c=_.Ia(a,b,c);return 0>c?(_.ua(a,b,-(c+1)),!0):!1};LK=function(a){throw _.wd(a);};xnc=function(a,b){var c=new _.cI,d=new Set;if(6===a){a=_.m(b);for(b=a.next();!b.done;b=a.next())(b=b.value)?(b=_.B7a.get(b.Lv()))&&d.add(b):d.add(1);0===d.size&&d.add(0)}_.Eec(c,[].concat(_.fc(d)));return c};
ync=function(a){var b=[],c={};a=_.m(a);for(var d=a.next();!d.done;c={Lfa:c.Lfa},d=a.next())if(d=d.value){c.Lfa=new Map;[].concat(_.fc(_.Kk(d)),[d.Cm(),d.bs(),d.qq()]).forEach(function(p){return function(q){q&&p.Lfa.set(MK(q),q)}}(c));for(var e=[],f=_.m(c.Lfa.values()),h=f.next();!h.done;h=f.next())if(h=h.value){var k=h.getName(),l=h.getEmail();e.push(MK(h)+"-"+((k?k.length:k)+"-")+((l?l.length:l)+"-")+_.yk(h))}b.push(d.getId()+","+d.Lv()+","+(e.length?e.join(","):"-"))}return b.length?"People: "+
b.join("|"):""};znc=function(a){var b=new _.vo;b.append("kind,largestChangeId,nextPageToken,");b.append("items(deleted,fileId,id,kind,");b.append(_.PI(a,!0,"file"));a.j8&&(b.append(",teamDriveId,teamDrive("),b.append(a.j8),b.append(")"));b.append(")");return b.toString()};Anc=function(a){var b=new _.vo;b.append("kind,nextPageToken,items(");b.append(_.PI(a,!0));b.append("),incompleteSearch");a.j8&&(b.append(","),b.append(a.j8));return b.toString()};
Bnc=function(a,b){for(var c=0;c<b.length;c++){var d=a,e=b[c],f=d.getCapabilities(),h=_.y(d,_.MJ,138),k=_.y(d,_.Ek,111),l=_.y(d,_.NJ,27),p=_.y(d,_.fic,139),q=d.wf(),r=d.Vh(),v=_.y(d,_.PJ,103);switch(e){case 227:_.vb(d,144);break;case 228:_.vb(d,145);break;case 74:_.uj(d,83);break;case 188:_.vb(d,137);break;case 149:_.gI(d,128);break;case 148:_.uj(d,127);break;case 138:_.vb(d,126);break;case 184:_.gI(d,135);break;case 76:f&&_.vb(f,1);break;case 223:f&&_.vb(f,54);break;case 208:f&&_.vb(f,48);break;case 185:f&&
_.vb(f,40);break;case 224:f&&_.vb(f,55);break;case 213:f&&_.vb(f,50);break;case 156:f&&_.vb(f,39);break;case 61:f&&_.vb(f,2);break;case 216:f&&_.vb(f,52);break;case 217:f&&_.vb(f,53);break;case 77:f&&_.vb(f,4);break;case 134:f&&_.vb(f,34);break;case 147:f&&_.vb(f,38);break;case 81:f&&_.vb(f,10);break;case 82:f&&_.vb(f,11);break;case 114:f&&_.vb(f,27);break;case 133:f&&_.vb(f,33);break;case 202:f&&_.vb(f,47);break;case 132:f&&_.vb(f,32);break;case 101:f&&_.vb(f,20);break;case 201:f&&_.vb(f,46);break;
case 131:f&&_.vb(f,31);break;case 200:f&&_.vb(f,45);break;case 130:f&&_.vb(f,30);break;case 93:f&&_.vb(f,17);break;case 191:f&&_.vb(f,44);break;case 146:f&&_.vb(f,37);break;case 90:f&&_.vb(f,16);break;case 78:f&&_.vb(f,7);break;case 186:f&&_.vb(f,41);break;case 222:f&&_.vb(f,51);break;case 85:f&&_.vb(f,12);break;case 137:f&&_.vb(f,36);break;case 209:f&&_.vb(f,49);break;case 79:f&&_.vb(f,8);break;case 189:f&&_.vb(f,42);break;case 190:f&&_.vb(f,43);break;case 80:f&&_.vb(f,9);break;case 135:f&&_.vb(f,
35);break;case 102:f&&_.vb(f,21);break;case 69:_.vb(d,74);break;case 194:h&&_.sj(h,2);break;case 193:h&&_.vb(h,1);break;case 1004:_.vb(d,108);break;case 136:_.uj(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:_.sj(d,91);break;case 43:_.vb(d,42);_.vb(d,43);break;case 187:_.vb(d,136);break;case 26:_.vb(d,24);break;case 108:_.gI(d,104);break;case 41:_.vb(d,40);f&&_.vb(f,5);break;case 42:_.vb(d,41);break;case 1005:_.uj(d,
117);break;case 59:f&&_.vb(f,6);break;case 28:_.vb(d,26);break;case 44:_.vb(d,45);break;case 13:_.vb(d,14);break;case 48:_.vb(d,36);break;case 38:_.vb(d,34);break;case 49:_.gI(d,50);break;case 51:_.vb(d,53);break;case 104:_.vb(d,102);break;case 39:_.vb(d,35);break;case 87:_.vb(d,76);break;case 100:_.vb(d,98);break;case 72:_.vb(d,78);break;case 5:_.vb(d,6);break;case 20:_.vb(d,21);break;case 21:break;case 29:l&&_.vb(l,1);break;case 31:l&&_.vb(l,3);break;case 92:l&&_.vb(l,4);break;case 30:l&&_.vb(l,
2);break;case 16:_.sj(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&&_.uj(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);_.sj(d,81);break;case 18:_.vb(d,19);break;case 95:_.vb(d,93);break;case 58:_.vb(d,63);break;case 14:_.uj(d,15);break;case 103:_.vb(d,101);break;case 1:_.gI(d,2);break;case 96:_.vb(d,94);break;case 1003:_.uj(d,107);break;case 75:_.sj(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:_.sj(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:_.sj(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:_.sj(d,47);break;case 192:q&&_.vb(q,6);break;case 159:q&&_.sj(q,5);break;
case 154:q&&_.vb(q,1);break;case 158:q&&_.vb(q,4);break;case 155:q&&_.vb(q,3);break;case 52:_.gI(d,56);break;case 56:_.vb(d,61);break;case 55:_.uj(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:_.sj(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:_.sj(d,95);break;case 27:_.vb(d,25);break;case 70:_.vb(d,75);break;case 107:v&&_.vb(v,3);break;
case 106:v&&_.vb(v,2);break;case 105:v&&_.vb(v,1);break;case 8:_.vb(d,9);break;case 126:_.gI(d,120);break;default:throw Error("ed`"+e);}}};Dnc=function(a,b){if(0!=a.length){var c=new Set([].concat(_.fc(a),_.fc(Cnc)));a=[].concat(_.fc(_.zdb.keys())).filter(function(e){return!c.has(e)});for(var d=0;d<b.length;d++)Bnc(b[d],a)}};
Enc=function(a,b){var c=a.getCapabilities()||new _.Ck,d=_.y(a,_.MJ,138),e=_.y(a,_.Ek,111),f=_.y(a,_.NJ,27),h=_.y(a,_.fic,139),k=a.wf(),l=a.Vh(),p=_.y(a,_.PJ,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.FAa().length;case 138:return null!=a.k$();case 184:return 0<_.se(a,135).length;case 76:return null!=_.Dk(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,_.eic,2);case 193:return null!=d&&null!=_.z(d,1);case 1004:return null!=_.Q(a,108);case 136:return 0<a.V1().length;case 115:return null!=e&&null!=_.Q(e,1);case 116:return null!=e&&null!=_.z(e,2);case 34:return null!=_.Q(a,30)||null!=_.Q(c,3);case 9:return null!=a.oD();
case 91:return null!=a.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<_.Ok(a).length;case 59:return null!=_.Q(c,6);case 28:return null!=a.gJ();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.Zka();case 87:return null!=_.Lk(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.Bz();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,_.Hk,8));case 3:return null!=a.getMimeType();case 11:return null!=a.DB();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<_.Kk(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<_.Nk(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!=_.Mk(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!=_.Pk(a);case 7:return null!=a.V7();case 122:return null!=_.NK(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.My();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.iA().length;case 56:return null!=_.z(a,61);case 4:return null!=a.nB();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,_.OJ,86);case 2:return null!=a.getTitle();case 19:return null!=
a.Cz()||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.FD();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);}};Fnc=function(a,b){return b.every(function(c){return Enc(a,c)})};
Gnc=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)})};Hnc=function(a,b){var c=new Set(b.concat(_.ghc));return a.filter(function(d){return!c.has(d)})};
OK=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,Enc(b,h))if(_.Ddb.has(h)){if(f){var k=a.getCapabilities()||new _.Ck;_.RJ(a,k);switch(h){case 76:_.x(k,1,_.Dk(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:_.dic(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(_.Edb.has(h)){var l=_.y(b,_.MJ,138);if(l)switch(k=_.y(a,_.MJ,138)||new _.MJ,_.G(a,138,k),h){case 194:h=_.y(l,_.eic,2);_.G(k,2,h);break;case 193:_.x(k,1,_.z(l,1))}}else if(_.Fdb.has(h)){if(k=_.y(b,_.Ek,111))switch(l=_.y(a,_.Ek,111)||new _.Ek,_.G(a,111,l),h){case 115:l.oP(_.Q(k,
1));break;case 116:_.x(l,2,_.z(k,2))}}else if(_.Gdb.has(h)){if(k=_.y(b,_.NJ,27))switch(l=_.y(a,_.NJ,27)||new _.NJ,_.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(_.Hdb.has(h)){if(k=_.y(b,_.fic,139))switch(l=_.y(a,_.fic,139)||new _.fic,_.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(_.Idb.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(_.Jdb.has(h))switch(k=b.Vh(),h){case 157:k&&(h=a.Vh()||new _.Eoa,Inc(a,h),Jnc(h,_.yb(k,_.Hk,8)));break;case 221:k&&(h=a.Vh()||new _.Eoa,Inc(a,h),_.x(h,9,_.Q(k,9)))}else if(_.Kdb.has(h)){if(k=_.y(b,_.PJ,103))switch(l=_.y(a,_.PJ,103)||new _.PJ,_.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();_.tj(a,83,h);break;case 188:_.x(a,137,_.Q(b,137));break;case 149:h=_.se(b,128);_.rj(a,128,h);break;case 148:h=b.FAa();_.tj(a,127,h);break;case 138:_.x(a,126,b.k$());break;case 184:h=_.se(b,135);_.rj(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.V1();_.tj(a,125,h);break;case 9:_.x(a,10,b.oD());break;case 91:_.sic(a,b.qq());
break;case 43:_.x(a,42,_.z(b,42));_.x(a,43,_.z(b,43));break;case 187:_.wic(a,b.Wi());break;case 26:a.ll(b.zf());break;case 108:h=_.se(b,104);_.rj(a,104,h);break;case 42:_.x(a,41,_.z(b,41));break;case 1005:h=_.Ok(b);_.tj(a,117,h);break;case 28:_.x(a,26,b.gJ());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:_.nic(a,b.Mi());break;case 49:h=_.se(b,50);_.rj(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.Zka());break;case 87:_.x(a,76,_.Lk(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:_.lic(a,b.Cm());break;case 12:_.x(a,13,b.Bz());break;case 3:_.dG(a,b.getMimeType());break;case 11:_.x(a,12,b.DB());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:_.uic(a,b.El());break;case 18:_.mic(a,
b.sq());break;case 58:_.x(a,63,_.Q(b,63));break;case 14:_.kic(a,_.Kk(b));break;case 1:_.QJ(a,b.wk());break;case 96:_.x(a,94,_.Q(b,94));break;case 103:_.x(a,101,_.z(b,101));break;case 1003:Knc(a,_.Nk(b));break;case 75:_.ric(a,b.Bw());break;case 94:_.tic(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=_.Mk(b).clone();(null===(d=_.Mk(a))||void 0===d?0:_.Q(d,3))&&_.x(h,3,!0);(null===(e=_.Mk(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,_.Pk(b));break;case 7:_.x(a,8,b.V7());break;case 122:Lnc(a,_.NK(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.My());break;case 46:_.oic(a,b.bs());break;case 52:h=_.se(b,56);_.rj(a,56,h);break;case 56:_.x(a,61,_.z(b,61));break;case 55:a.TA(b.iA());break;case 4:a.hw(b.nB());
break;case 35:_.x(a,31,_.Q(b,31));break;case 57:_.x(a,62,_.z(b,62));break;case 83:_.qic(a,b.uc());break;case 84:h=_.y(b,_.OJ,86);_.G(a,86,h);break;case 98:a.Lda(b.Cw());break;case 97:_.vic(a,b.FD());break;case 19:_.x(a,20,b.Cz());_.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:_.xVb(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);_.rj(a,120,h);break;default:throw Error("gd`"+
h);}};Mnc=function(a,b){var c=_.zz[a];return b.filter(function(d){return!c||!c.has(d)})};Nnc=function(a,b,c){a=Mnc(c,a);return Gnc(b,a,_.ghc)};PK=function(a){return a?"application/vnd.google-apps.shortcut"===a.getMimeType():!1};QK=function(a,b){b=void 0===b?!1:b;if(!a)return!1;var c=a.getMimeType();return b&&PK(a)?(a=a.wf(),!!a&&"application/vnd.google-apps.folder"===_.z(a,3)):"application/vnd.google-apps.folder"===c};
Onc=function(a){var b=a&&a.getId()||null;a&&PK(a)&&(a=(a=a.wf())&&_.z(a,1))&&(b=a);return b};Pnc=function(a){return!!_.Q(a,31)&&!_.Q(a,94)};Rnc=function(a){return Qnc.some(function(b){return Enc(a,b)})};Snc=function(a){return a.filter(function(b){return!!b}).some(function(b){return[4,5,2].includes(b.Lv())})};Tnc=function(a){return Snc(a.filter(function(b){return b}).map(function(b){return b.getItem()}))};
Unc=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?_.Dj(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};Vnc=function(a,b){return _.Xa(a)!==_.Xa(b)||!_.ab(Unc(a,b))};_.Wnc=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};Xnc=function(a,b){return 0<=b?!a||a<=b:!0};
Ync=function(a,b){var c=a.Wm();c||(c=new _.yoa,b&&_.G(a,81,c));return c};Znc=function(a){if(QK(a))_.KK(Ync(a,!0),!0);else if(QK(a,!0)){var b=a.wf();if(b=b&&_.xe(b))_.KK(Ync(b,!0),!0),_.KK(Ync(a,!0),!0)}};$nc=function(a){return!!a.Wm()&&!QK(a)};aoc=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),_.sj(c,81);b.push(c)}});return b};
boc=function(a,b){if(b){var c=[];_.Q(b,3)&&c.push("folder");var d=_.cdc()&&4===b.getType()?"title_natural":_.Ufc[b.getType()];b=_.Wfc[b.Uf()];d&&(b&&(d+=" "+b),c.push(d));c.length&&(a.orderBy=c.join(","))}};doc=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 _.kK?a[b]=c.Hc(function(d){return d?d.Hc():null}):c&&c instanceof coc&&(a[b]=c.Hc())}};foc=function(a){var b=a.slice(0),c=new Set(b);eoc.forEach(function(d){c.has(d)||b.push(d)});b.sort();return b};
moc=function(a,b,c){var d=_.y(a,goc,66);if(d){var e=_.YJ(a),f=_.wI(_.fI(a));a=new _.$i(_.z(d,1));var h=new _.$i(window.location);var k=h.Ro+"://"+h.kk();null!=h.Po&&(k+=":"+h.Ky());h=_.lj(k,3);_.ej(a,"co",h);h=a.Ie();!e&&0<f&&(h+="u/"+f+"/");a.Ai(h+"_/dataservice/cacheproxy");e=_.z(d,5)||"";if(_.chc(window.location.href,a.toString())&&e)return a=foc(c),c=_.z(d,6),b="#"+b+"_",d=new _.SH,d.update(a.join(",")),b+=_.Wec(d.digest()),c&&(b+="&jobset="+c),b=_.Ny(e+"?"+b),_.n.SharedWorker?(c=new SharedWorker(_.pca(b),
void 0),b=new hoc(c.port),c.port.start()):b=new hoc(new Worker(_.pca(b),void 0)),new ioc(new joc(b,!0),1,e,a);c=a.toString();b="cpiframe_"+_.FI();c=_.Ah("IFRAME",{name:b,id:b,src:c});c.style.cssText=_.$ia(_.Fgc(_.sg("display: none;")));document.body.appendChild(c);c=_.Vec(a.Ro,void 0,a.kk(),a.Ky()).toString();return new ioc(new joc(koc(window.frames[b],c),!0),0,a.toString())}a=new loc;return new ioc(new joc(a.O,!1),2,"inline",c,new joc(a.H,!1))};
ooc=function(a){var b=new noc;if(a instanceof _.QI)_.yj(b,16,RK,a);else if(a instanceof _.RI)_.yj(b,1,RK,a);else if(a instanceof _.SI)_.yj(b,2,RK,a);else if(a instanceof SK)_.yj(b,17,RK,a);else if(a instanceof _.VI)_.yj(b,3,RK,a);else if(a instanceof _.uK)_.yj(b,4,RK,a);else if(a instanceof _.TI)_.yj(b,5,RK,a);else if(a instanceof _.ZI)_.yj(b,6,RK,a);else if(a instanceof _.aJ)_.yj(b,7,RK,a);else if(a instanceof _.bJ)_.yj(b,8,RK,a);else if(a instanceof _.eJ)_.yj(b,9,RK,a);else if(a instanceof _.sJ)_.yj(b,
18,RK,a);else if(a instanceof _.wJ)_.yj(b,10,RK,a);else if(a instanceof _.xJ)_.yj(b,11,RK,a);else if(a instanceof _.yJ)_.yj(b,12,RK,a);else if(a instanceof _.xI)_.yj(b,13,RK,a);else if(a instanceof _.BJ)_.yj(b,14,RK,a);else if(a instanceof _.CJ)_.yj(b,15,RK,a);else throw new _.Gc("Unsupported request type");return b};
roc=function(a){a=a.map(function(c){var d=new poc;if(c instanceof _.QI)_.yj(d,6,TK,c);else if(c instanceof SK)_.yj(d,7,TK,c);else if(c instanceof _.ZI)_.yj(d,1,TK,c);else if(c instanceof _.wJ)_.yj(d,2,TK,c);else if(c instanceof _.xJ)_.yj(d,3,TK,c);else if(c instanceof _.xI)_.yj(d,4,TK,c);else if(c instanceof _.CJ)_.yj(d,5,TK,c);else throw new _.Gc("Unsupported request type");return d});var b=new qoc;_.tj(b,1,a);return b};
soc=function(a){return _.yb(a,poc,1).map(function(b){return _.Hj(b,_.QI,6,TK)||_.Hj(b,_.ZI,1,TK)||_.Hj(b,_.wJ,2,TK)||_.Hj(b,_.xJ,3,TK)||_.Hj(b,_.xI,4,TK)||_.Hj(b,_.CJ,5,TK)||_.Hj(b,SK,7,TK)})};voc=function(a){var b=new toc;if(a instanceof _.pD)_.yj(b,1,uoc,a);else if(a instanceof _.qD)_.yj(b,2,uoc,a);else throw new _.Gc("Unsupported request type");return b};
yoc=function(a){var b=new woc;if(a instanceof _.WI)_.yj(b,1,xoc,a);else if(a instanceof _.cJ)_.yj(b,2,xoc,a);else if(a instanceof _.DJ)_.yj(b,3,xoc,a);else throw new _.Gc("Unsupported request type");return b};UK=function(a,b,c){return b?new c(JSON.parse(a)):a};zoc=function(a){a={t:a.title,d:a.description,c:a.Ed,fi:a.c$,dti:a.Z0,a:a.IQ?a.IQ.map(function(b){return JSON.stringify({n:b.name,c:b.content,ct:b.contentType,ec:b.K9})}):void 0};return JSON.stringify(a)};
Aoc=function(a){a=JSON.parse(a);return{title:a.t,description:a.d,Ed:a.c,c$:a.fi,Z0:a.dti,IQ:a.a?a.a.map(function(b){b=JSON.parse(b);return{name:b.n,content:b.c,contentType:b.ct,K9:b.ec}}):void 0}};Boc=function(a,b){var c=_.Tgc(b||{}),d=new Map;a.forEach(function(e){d.set(e,c[e]||null)});return d};Coc=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&&_.ql(a,c);c=new _.Nfc;b&&_.jnc(c,b);return _.knc(_.mnc(new _.nI,a),c)};Doc=function(a){return a.map(function(b){return b.getItem()})};
Eoc=function(a){var b={};a.forEach(function(c){b[c.getId()]=c.getItem()});return b};Foc=function(a,b){var c=new _.$i(_.C(b,16,"")+"/open"),d=a.getId();PK(a)&&(d=Onc(a));_.ej(c,"id",d);_.ej(c,"authuser",_.wI(_.fI(b)));_.R(b,89,!1)&&_.mj(a,140)&&_.ej(c,"resourcekey",_.Pk(a));return c.toString()};Goc=function(a){return String.fromCharCode(10>a?48+a:87+a)};Hoc=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]=Goc(d>>4);b[2*c+3]=Goc(d&15)}return b.join("")};
Ioc=function(a){var b={};_.Vhc(b,[_.z(a,2)||""]);return b};Joc=function(a){var b={};_.Te(_.oh(a.getTitle()))||(b.title=a.getTitle());_.Vhc(b,_.se(a,3));_.Q(a,8)&&(b.description="",b.labels={starred:!1});return b};Koc=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());null!=_.z(a,3)&&(b.workspaceToken=_.z(a,3));return b};
Loc=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};
Moc=function(a){var b={},c={};_.Te(_.oh(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(_.oh(a.getMimeType()))||(b.mimeType=a.getMimeType());"number"===typeof _.z(a,7)&&(b.modifiedDate=_.Whc(_.Xhc(_.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,_.Ek,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)}_.Vhc(b,_.se(a,8));return b};Noc=function(a){var b={};null!=_.Q(a,3)&&(b.pinned=_.Q(a,3));return b};
Poc=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,_.mh)("0",6-c.length)+c);c=_.y(a,_.Ooc,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};
Qoc=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());null!=a.getState()&&(a=_.Umc[a.getState()])&&(b.state=a);return b};
Roc=function(a){_.lg("drive.DebugUtil.printFindById",function(c){a.iN(c).then(function(d){window.console.log(JSON.stringify(d))})});_.lg("drive.DebugUtil.getLogs",function(){return _.gjc(a.Ce())});_.lg("drive.DebugUtil.printLogs",function(){window.console.log(_.gjc(a.Ce()))});_.lg("drive.DebugUtil.printRequestHistory",function(){a.VR().then(function(c){c.forEach(function(d){window.console.log(_.z(d,1));window.console.log(_.z(d,2))})})});_.lg("drive.DebugUtil.getState",function(){return a.getState()});
var b=a.Ka();b&&_.R(b,1,!1)&&(_.lg("drive.DebugUtil.getContext",function(){return a.getContext()}),_.lg("drive.DebugUtil.setOffline",function(c){return void a.Jl(c)}))};Uoc=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 _.oD;_.G(c,1,b);Soc(c,[7]);a=a.then(function(d){return d.Pe(c)}).then(Toc);return _.gi(a)};
Toc=function(a){a=_.yb(a,_.Wo,3);var b=new Voc;a.forEach(function(c){var d=c.getKey();"corpusSize"===(d&&_.z(d,2))&&(c=_.rh(c.Wa()),_.x(b,3,c))});return"number"===typeof _.z(b,3)?b:null};Xoc=function(a,b){var c=Woc(a.Zl,b.qc());if(c){var d=c.getItem(),e=d.Bw();if(e){var f=e.YR(),h=_.ya(f,function(k){return k.getId()===_.z(b,2)});_.hic(e,f);h||(f=_.yb(e,_.wk,3),_.ya(f,function(k){return k.getId()===_.z(b,2)}),_.iic(e,f));_.gic(e,(_.z(e,1)||1)-1);a.fl([d],c.V)}}};
Zoc=function(a,b,c){if(b=Woc(a.Zl,b.qc())){var d=b.getItem(),e=d.Bw();if(e){if(1===c.getType()||2===c.getType()){var f=_.yb(e,_.wk,3);f.push(c);_.Ka(f,Yoc);_.iic(e,f)}else f=e.YR(),f.push(c),_.Ka(f,Yoc),_.hic(e,f);_.gic(e,(_.z(e,1)||0)+1);a.fl([d],b.V)}}};apc=function(a){return a.map(function(b){var c=new _.jxb;var d=b.serviceName?$oc.get(b.serviceName):void 0;c=_.x(c,3,d);return _.x(c,2,Number(b.bytesUsed))})};
cpc=function(a){return(a.quotaBytesByService||[]).reduce(function(b,c){return c.serviceName&&bpc.has(c.serviceName)?b+Number(c.bytesUsed):b},0)};
gpc=function(a){var b=a.exportJob,c=b.status;c=c?dpc.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=_.dG((new _.Jk).Nb(l.docId).setTitle(l.title),l.mediaType);p=(new _.epc).setItem(p);p=_.x(p,3,l.relativePath);return _.x(p,4,l.cause)});return new fpc(c,d,k,f,h,e,a,b)};
mpc=function(a){var b=hpc(new VK,ipc(a)),c=a.result;a=a.processedFileCount;if(c){var d=c.status;(d=d&&jpc[d])&&b.Dc(d);c.sourceResults&&kpc(b,c.sourceResults.map(function(e){return lpc(e)}));c.validationToken&&_.x(b,4,c.validationToken)}void 0!==a&&_.x(b,2,a);return b};lpc=function(a){var b=npc(opc(new _.ppc,a.sourceId),a.fileCount);a.unmovableFileReasons&&qpc(b,a.unmovableFileReasons.map(function(c){var d=new _.rpc;d=_.x(d,1,c.unmovableReason);return _.x(d,2,c.count)}));return b};
tpc=function(a){var b={},c=a.getKey();b.key=c&&_.z(c,2);b.value=a.Wa();(a=c&&_.Xo(c))&&(b.namespace=spc[a]);return b};upc=function(a){for(var b=[],c=0;c<a.length;c++)b.push(spc[a[c]]);return b};vpc=function(a){return"kind,defaultAppIds,items("+a+")"};wpc=function(a,b){var c;return(null===(c=_.JJ(b))||void 0===c?0:_.R(c,16,!1))?a+",individualQuotaBytesTotal,individualQuotaBytesUsedAggregate":a};
xpc=function(){var a=!(!_.n.IDBObjectStore||!_.n.IDBObjectStore.prototype.getAll);return!!(_.n.indexedDB||_.n.mozIndexedDB||_.n.webkitIndexedDB||_.n.moz_indexedDB)&&a};
Bpc=function(a,b){var c,d,e;b=b.clone();if((null===(c=_.JJ(b))||void 0===c?0:_.R(c,18,!1))||(null===(d=_.JJ(b))||void 0===d?0:_.R(d,17,!1)))null===(e=_.JJ(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=_.JJ(f),l=!!k&&_.R(k,10,!1);if(_.LI(_.fI(f))||!h&&!l)_.x(f,61,!1),_.sj(f,66),k&&_.x(k,10,!1),f=!1;else{if(h){_.n.SharedWorker||(h=!1);var p=_.y(f,goc,66);p&&_.z(p,1)||(h=!1);_.YJ(f)&&!_.R(f,52,!1)&&(h=!1)}h?k&&_.x(k,10,!1):(_.x(f,61,!1),_.sj(f,66));
f=h||l}if(f)return b=new WK(a,b,_.R(b,61,!1)?3:5),new ypc(b);f=_.LI(_.fI(b))?2:1;a=new YK(a,b,f,void 0,void 0,void 0);return _.LI(_.fI(b))?new zpc(a):new Apc(a)};Dpc=function(a){return _.Ye(a).eh(_.R(a.get(_.No),19,!1)?Cpc:_.uVa)};Epc=function(a,b){a.push(b>>>0&255);a.push(b>>>8&255);a.push(b>>>16&255);a.push(b>>>24&255)};Fpc=function(a,b){return _.tj(a,1,b)};MK=function(a){return _.z(a,11)};Gpc=[1];Hpc=function(a){_.J.call(this,a,-1,Gpc)};_.K(Hpc,_.J);
Hpc.prototype.BN=function(){return _.yb(this,_.wk,1)};Hpc.prototype.$ha=function(a){_.zj(this,1,a,_.wk,void 0)};var Ipc=function(a){var b=new Hpc;return _.tj(b,1,a)},Jpc=function(a,b){return _.G(a,1,b)},Kpc=function(a,b){_.tj(a,2,b)},Lpc=function(a,b){_.G(a,6,b)},Mpc=function(a,b){_.G(a,7,b)},Npc=function(a,b){return _.yj(a,3,_.Ak,b)},Opc=function(a){_.J.call(this,a)};_.K(Opc,_.J);var Ppc=function(a){_.J.call(this,a)};_.K(Ppc,_.J);var Qpc=function(a){_.J.call(this,a)};_.K(Qpc,_.J);
var 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,b){_.tj(a,1,b)},cqc=function(a,b){return _.x(a,2,b)},dqc=function(a,b){return _.G(a,3,b)},eqc=function(a,b){return _.x(a,4,b)},fqc=function(a){_.J.call(this,a)};_.K(fqc,_.J);var gqc=function(a,b){_.tj(a,1,b)},hqc=function(a,b){return _.G(a,2,b)},iqc=function(a){_.J.call(this,a)};_.K(iqc,_.J);
var jqc=function(a,b){_.tj(a,1,b)},kqc=function(a,b){return _.G(a,4,b)},lqc=function(a,b){_.G(a,5,b)},mqc=function(a,b){_.tj(a,2,b)},nqc=function(a,b){_.x(a,3,b)},oqc=function(a,b){_.tj(a,4,b)},pqc=function(a,b){return _.G(a,5,b)},qqc=function(a){_.J.call(this,a)};_.K(qqc,_.J);var rqc=function(a,b){_.tj(a,1,b)},sqc=function(a,b){return _.G(a,2,b)},tqc=function(a){_.J.call(this,a)};_.K(tqc,_.J);
var uqc=function(a,b){_.tj(a,2,b)},vqc=function(a){var b=new _.qoa;return _.tj(b,3,a)},wqc=[1,2],xqc=function(a){_.J.call(this,a)};_.K(xqc,_.J);xqc.prototype.Nf=function(a){return _.yj(this,1,wqc,a)};var yqc=[1],zqc=function(a){_.J.call(this,a,-1,yqc)};_.K(zqc,_.J);zqc.prototype.$q=function(){return _.z(this,2)};var Aqc=function(a,b){_.tj(a,1,b)},Bqc=function(a,b){return _.x(a,2,b)},Cqc=function(a,b){return _.G(a,3,b)},Dqc=function(a){_.J.call(this,a)};_.K(Dqc,_.J);
var Eqc=[2],Fqc=function(a){_.J.call(this,a,-1,Eqc)};_.K(Fqc,_.J);var Gqc=function(a,b){_.tj(a,2,b)},Hqc=function(a,b){return _.G(a,3,b)},Iqc=[1],Jqc=function(a){_.J.call(this,a)};_.K(Jqc,_.J);Jqc.prototype.Nf=function(a){return _.yj(this,1,Iqc,a)};var Kqc=function(a,b){_.tj(a,1,b)},Lqc=function(a,b){return _.tj(a,2,b)},Mqc=function(a){_.J.call(this,a)};_.K(Mqc,_.J);var Nqc=function(a,b){_.tj(a,1,b)},Oqc=function(a,b){return _.G(a,2,b)},Pqc=function(a){_.J.call(this,a)};_.K(Pqc,_.J);
var Qqc=[1,2,3,4],Rqc=[1],Sqc=[1,2],Tqc=[1],Uqc=[1],Vqc=[1,2],Wqc=[1],Xqc=function(a,b){return _.G(a,1,b)},Yqc=function(a,b){return _.x(a,2,b)},Zqc=function(a,b){return _.x(a,3,b)},$qc=function(a,b){return _.x(a,4,b)},arc=function(a,b){return _.x(a,5,b)},brc=function(a,b){return _.x(a,6,b)},crc=function(a){_.J.call(this,a)};_.K(crc,_.J);Jnc=function(a,b){_.tj(a,8,b)};Inc=function(a,b){return _.G(a,73,b)};Knc=function(a,b){_.tj(a,107,b)};_.NK=function(a){return _.y(a,crc,109)};
Lnc=function(a,b){_.G(a,109,b)};drc=function(a){_.J.call(this,a)};_.K(drc,_.J);var erc=function(a){_.J.call(this,a)};_.K(erc,_.J);var frc=function(a){var b=new _.Rj;_.bk(b,a,1);_.bk(b,a,2);_.Uj(a,b);return _.Tj(b)},grc=function(a){_.J.call(this,a)};_.K(grc,_.J);var goc=function(a){_.J.call(this,a)};_.K(goc,_.J);var hrc=[11],irc=function(a){_.J.call(this,a,-1,hrc)};_.K(irc,_.J);var ZK=function(a){_.J.call(this,a)};_.K(ZK,_.J);ZK.prototype.getKey=function(){return _.z(this,2)};
ZK.prototype.yt=function(){return _.mj(this,2)};$K=function(a){return _.C(a,4,"en")};_.aL=function(a){return _.y(a,irc,34,1)};bL=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};_.jrc=function(a,b){return _.x(a,2,b)};_.krc=function(a,b){return _.x(a,3,b)};_.lrc=function(a,b){return _.x(a,1,b)};_.mrc=function(a,b){return _.x(a,2,b)};_.nrc=function(a,b){return _.tj(a,5,b)};_.orc=function(a,b){return _.x(a,6,b)};
_.prc=function(a,b){return _.x(a,7,b)};_.qrc=function(a,b){return _.x(a,8,b)};_.rrc=function(a,b){return _.x(a,10,b)};_.src=function(a,b){return _.x(a,15,b)};trc=[2];_.urc=function(a){_.J.call(this,a,-1,trc)};_.K(_.urc,_.J);_.urc.prototype.mi=function(){return _.z(this,1)};_.vrc=function(a,b){return _.G(a,1,b)};wrc=function(a,b){return _.x(a,2,b)};xrc=function(a,b){return _.x(a,3,b)};yrc=function(a,b){_.tj(a,4,b)};_.zrc=function(a,b){_.G(a,8,b)};_.Arc=function(a,b){_.G(a,9,b)};
Brc=function(a){_.J.call(this,a)};_.K(Brc,_.J);Brc.prototype.Wa=function(){return _.qj(this,1)};Brc.prototype.Hb=function(a){return _.wb(this,1,a,0)};Soc=function(a,b){_.rj(a,3,b)};Crc=function(a,b){return _.x(a,5,b)};_.Ooc=function(a){_.J.call(this,a)};_.K(_.Ooc,_.J);_.Ooc.prototype.getId=function(){return _.z(this,1)};_.Ooc.prototype.Nb=function(a){return _.x(this,1,a)};_.Ooc.prototype.De=function(){return _.z(this,4)};_.Ooc.prototype.nh=function(a){return _.x(this,4,a)};
_.uK=function(a){_.J.call(this,a)};_.K(_.uK,_.J);_.uK.prototype.getTitle=function(){return _.z(this,1)};_.uK.prototype.setTitle=function(a){return _.x(this,1,a)};_.uK.prototype.se=function(){return _.y(this,_.Qf,2)};
var Drc=function(a,b){return _.rj(a,9,b)},Erc=function(a,b){return _.rj(a,10,b)},Frc=function(a,b){return _.x(a,36,b)},Grc=function(a,b){return _.tj(a,38,b)},Hrc=function(a,b){return _.x(a,2,b)},Irc=function(a,b){return _.G(a,3,b)},Jrc=function(){var a=new _.qI;return _.x(a,5,!0)},Krc=function(a){_.J.call(this,a)};_.K(Krc,_.J);var Lrc=function(a){_.J.call(this,a)};_.K(Lrc,_.J);var Mrc=function(a){_.J.call(this,a)};_.K(Mrc,_.J);var 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);Prc.prototype.Ny=function(){return _.Q(this,1)};Prc.prototype.Xo=function(){return _.z(this,5)};Prc.prototype.Vm=function(){return _.z(this,6)};Prc.prototype.gw=function(a){return _.x(this,6,a)};var Qrc=function(a,b){return _.x(a,1,b)},Rrc=function(a,b){return _.x(a,3,b)},Src=function(a,b){return _.x(a,4,b)},Trc=function(a,b){_.x(a,7,b)},Urc=function(a){_.J.call(this,a)};_.K(Urc,_.J);
Urc.prototype.Ny=function(){return _.Q(this,2)};var Vrc=function(a,b){_.x(a,1,b)},Wrc=function(a){_.J.call(this,a)};_.K(Wrc,_.J);Wrc.prototype.Vm=function(){return _.z(this,3)};Wrc.prototype.gw=function(a){return _.x(this,3,a)};Wrc.prototype.Xo=function(){return _.z(this,4)};var Xrc=function(a){_.J.call(this,a)};_.K(Xrc,_.J);var Yrc=function(a){_.J.call(this,a)};_.K(Yrc,_.J);
var Zrc=function(a,b){return _.x(a,1,b)},$rc=function(a,b){return _.x(a,2,b)},asc=function(a,b){_.x(a,3,b)},bsc=[1,3,5],csc=function(a){_.J.call(this,a,-1,bsc)};_.K(csc,_.J);csc.prototype.AD=function(){return _.se(this,1)};csc.prototype.Ny=function(){return _.Q(this,2)};csc.prototype.Xo=function(){return _.z(this,7)};dsc=function(a,b){_.x(a,2,b)};esc=function(a,b){_.vj(a,5,b,void 0)};fsc=function(a,b){_.x(a,6,b)};gsc=function(a,b){_.x(a,7,b)};hsc=function(a,b,c){_.aK(a,b,c,"warning")};
_.isc=function(a,b){_.G(a,2,b)};jsc=function(a){return[].concat(_.fc(a.O))};ksc=function(a){return a.H.concat([].concat(_.fc(a.O)))};lsc=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))};cL=function(a){var b=_.iK(a).jd();b||(b=new _.Sic,a=_.iK(a),_.G(a,1,b));return b};msc=function(a){var b=_.y(_.iK(a),csc,3);b||(b=new csc,a=_.iK(a),_.G(a,3,b));return b};
dL=function(a){var b=_.y(_.iK(a),Prc,16);b||(b=new Prc,a=_.iK(a),_.G(a,16,b));return b};nsc=function(a){var b=_.y(_.iK(a),Mrc,7);b||(b=new Mrc,a=_.iK(a),_.G(a,7,b));return b};osc=function(a){var b=_.y(_.iK(a),Orc,12);b||(b=new Orc,a=_.iK(a),_.G(a,12,b));return b};psc=function(a){var b=_.y(_.iK(a),Urc,17);b||(b=new Urc,a=_.iK(a),_.G(a,17,b));return b};qsc=function(a){var b=_.y(_.iK(a),Yrc,21);b||(b=new Yrc,a=_.iK(a),_.G(a,21,b));return b};
rsc=function(a){if(a instanceof _.RH)return 2;if(a instanceof _.bG)return 10;if(a instanceof _.Df)return _.lJ(a)?3:_.mJ(a)?7:_.nJ(a)?8:1;if(a instanceof _.XF)return 9;if(a instanceof _.jG)return 11;if(a instanceof _.uJ)return 15;if(a instanceof _.PH)return 6;if(a instanceof _.pJ){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 _.oD)return 4;if(a instanceof _.eA)return 12;if(a instanceof _.cG)return 13}return 0};
ssc=function(a){var b=null;a instanceof _.eI||"undefined"!=typeof _.kK&&a instanceof _.kK||"undefined"!=typeof _.lK&&a instanceof _.lK?b=a.We()||0:"undefined"!=typeof _.nK&&a instanceof _.nK||"undefined"!=typeof _.oK&&a instanceof _.oK||"undefined"!=typeof _.pK&&a instanceof _.pK||"undefined"!=typeof _.qK&&a instanceof _.qK||"undefined"!=typeof _.rK&&a instanceof _.rK?b=a.Oe:"undefined"!=typeof _.mK&&a instanceof _.mK&&(b=a.We());return b||0};
eL=function(a,b,c){return a.V&&_.jkc(a)?(a=_.fkc(a.V,b,0),c&&_.bhc(a,c),a):null};tsc=function(a){a.V&&_.jkc(a)&&(a=a.V,a.H.cQ()&&a.H.I_())};usc=function(a,b){return _.G(a,1,b)};vsc=function(a){var b=new _.gJ;return _.x(b,1,a)};wsc=function(a,b){return _.G(a,2,b)};xsc=function(a,b){a.ha=b};ysc=[2];zsc=function(a){_.J.call(this,a,-1,ysc)};_.K(zsc,_.J);_.g=zsc.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.BN=function(){return _.yb(this,_.wk,2)};
_.g.$ha=function(a){_.zj(this,2,a,_.wk,void 0)};_.g.$j=function(){return _.z(this,3)};var Asc=function(a,b){return _.tj(a,2,b)},Bsc=[2],Csc=function(a){_.J.call(this,a,-1,Bsc)};_.K(Csc,_.J);Csc.prototype.Cb=function(){return _.z(this,1)};Csc.prototype.Dc=function(a){return _.x(this,1,a)};Csc.prototype.$j=function(){return _.z(this,3)};
var Dsc=function(a){return a.H?a.H.promise:a.O()?(a.H=new _.fn,a.H.promise):null},Esc=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},Fsc=function(a,b){return Asc(new zsc,(b.items||
[]).map(function(c){return _.zmc(a,c)}))},Gsc=function(a,b){return brc(arc($qc(_.iic(_.gic(new _.Boa,b.entryCount),(b.selectPermissions||[]).map(function(c){return _.zmc(a,c)})),b.memberCount),b.userEntryCount),b.groupEntryCount)},Hsc=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},Isc=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)},Jsc=[2],Ksc=function(a){_.J.call(this,a,-1,Jsc)};_.K(Ksc,_.J);Ksc.prototype.Cb=function(){return _.z(this,1)};Ksc.prototype.Dc=function(a){return _.x(this,1,a)};Ksc.prototype.HXa=function(){return _.yb(this,_.XEa,2)};Ksc.prototype.$j=function(){return _.z(this,3)};Lsc=[2,6];
_.lK=function(a){_.J.call(this,a,-1,Lsc)};_.K(_.lK,_.J);_.g=_.lK.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.Bd=function(){return _.yb(this,_.Jk,2)};_.g.hB=function(a){return _.tj(this,2,a)};_.g.dh=function(a,b){return _.zj(this,2,a,_.Jk,b)};_.g.$j=function(){return _.z(this,3)};_.g.Rl=function(){return _.R(this,4,!0)};var Msc=function(a,b){return _.tj(a,6,b)};_.lK.prototype.Vf=function(){return _.z(this,10)};
_.lK.prototype.bQ=function(a){return _.x(this,10,a)};_.lK.prototype.We=function(){return _.z(this,9)};_.lK.prototype.ri=function(a){return _.x(this,9,a)};
var Nsc={SUCCESS:1,t$b:2,m1b:3,NXb:4,G$b:5,Y4b:6,M4b:7,yYb:8,q9b:9,F9b:10,s$b:11,d_b:12,IZb:13,n2b:14,F0b:15,MZb:16,LZb:17,RZb:18,OZb:19,PZb:20,X9b:21,C$b:22,q5b:23,v4b:24,qYb:25,PERMISSION_DENIED:26,K3b:27,EYb:28,DYb:29,INTERRUPTED:30,Q5b:31,k6b:32,s_b:33,y_b:34,x9b:35,F_b:36,G0b:37,x_b:38,L4b:39,jZb:40,L5b:41,m6b:42,o9b:43,WYb:44,iZb:45,D0b:46,F3b:47,J4b:48,h5b:49,M5b:50,h9b:51,JZb:52,p9b:53,n9b:54,bZb:55,ZYb:56,Q_b:57,d4b:58,N5b:59,b3b:60,B7b:61,p8b:62,W8b:63,D2b:64,x4b:65,J$b:66,H_b:67,H0b:68,
r$b:69,I2b:70,CYb:71,RYb:72,x8b:73,X8b:74,T8b:75,R8b:76,l8b:190,Q8b:191,y8b:192,E8b:126,A8b:128,B8b:129,C8b:130,D8b:131,F8b:132,G8b:133,K7b:127,H7b:134,I7b:135,M7b:136,N7b:137,O7b:138,J7b:194,L7b:195,P7b:196,G7b:197,o8b:189,A7b:139,C7b:140,Q7b:141,R7b:142,c8b:143,f8b:144,g8b:145,h8b:146,i8b:147,j8b:148,k8b:149,n8b:150,t8b:151,v8b:152,w8b:153,z8b:154,H8b:155,J8b:156,K8b:157,L8b:158,M8b:159,N8b:160,O8b:161,S8b:162,V8b:163,Y8b:164,D7b:165,E7b:166,F7b:167,y7b:168,z7b:169,U7b:170,S7b:171,T7b:172,V7b:173,
W7b:174,X7b:175,Y7b:176,Z7b:177,$7b:178,a8b:179,b8b:180,d8b:181,e8b:182,m8b:106,u8b:183,I8b:184,P8b:185,q8b:186,r8b:187,s8b:188,U8b:244,K5b:77,w$b:78,B$b:79,R3b:80,s2b:81,u2b:82,P_b:83,C0b:84,L3b:85,Q9b:86,w_b:87,K2b:88,J2b:89,a9b:90,Z8b:91,$8b:92,x$b:93,yZb:94,xZb:95,uZb:96,wZb:97,vZb:98,I$b:99,k7b:100,UZb:101,NZb:102,SZb:103,QZb:104,TZb:105,I0b:107,C9b:108,e7b:109,l$b:110,L0b:111,K0b:112,g3b:113,h3b:114,q6b:115,cZb:116,o3b:117,a0b:118,y$b:119,R4b:120,S4b:121,o2b:193,KZb:122,m_b:123,r2b:124,q4b:125,
L2b:198,V5b:199,A2b:200,qXb:201,G2b:202,E2b:203,HYb:204,hac:205,w3b:206,rZb:207,O4b:208,l6b:209,g7b:210,RXb:211,e3b:212,l3b:213,s9b:214,r9b:215,C2b:216,m2b:217,B2b:218,J_b:219,G9b:220,K_b:221,c3b:222,z9b:223,S$b:224,B4b:225,y9b:226,o_b:227,u3b:228,O_b:229,mZb:230,O9b:231,s4b:232,FILE_TOO_LARGE:233,H2b:234,I_b:235,z0b:236,g6b:237,y4b:238,bXb:239,nZb:240,F4b:241,r7b:242,u_b:243,oXb:245,v2b:246,j5b:247,t2b:248,Q3b:249,w4b:250,E0b:251,t1b:252,f3b:253,$Yb:254,J0b:255,H$b:256,f1b:257,$3b:258,y6b:259,U5b:260,
S2b:261,ZZb:262,v_b:263,pYb:264,J3b:265,F$b:266,fXb:267,fYb:268,eYb:269,K4b:270,$Wb:271,aXb:272,sYb:273,qZb:274,hYb:275,gYb:276,v3b:277,M0b:278,x2b:279,r6b:280,K9b:281,a4b:282,x3b:283,y3b:284,lZb:285,SXb:286,W4b:287,BYb:288,FYb:289,GYb:290},Osc={z$b:0,b4b:1,s5b:2,f5b:3,N2b:4,OXb:5,c4b:6,g5b:7,U1b:8,oYb:9,d5b:10},Psc=function(){this.map={};this.status=6;this.Oe=null};_.g=Psc.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 Qsc=function(a,b){a.map=b};Psc.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 Rsc=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},Ssc=function(){Psc.apply(this,arguments)};_.K(Ssc,Psc);_.kK=function(){Psc.apply(this,arguments)};_.K(_.kK,Psc);
var fL=function(a){_.zi.call(this);var b=this;this.ta=a;this.active=!1;_.ff(this,function(){b.active=!1})};_.K(fL,_.zi);fL.prototype.Oi=function(){return String(_.Fa(this))};fL.prototype.activate=function(){this.active||(this.log("livelist "+this.Oi()+" activated."),this.active=!0,this.XP())};fL.prototype.isActive=function(){return this.active};fL.prototype.log=function(a,b){this.ta.log(this.logName,a,void 0===b?"info":b)};
_.gL=function(a,b,c,d,e,f){fL.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=_.Eec(new _.cI,[1]);this.V=!0;this.Oe=0;this.Ba=d;this.limit=e.wi();_.ff(this,function(){h.H=[]});_.C7a++};_.K(_.gL,fL);_.g=_.gL.prototype;_.g.activate=function(){fL.prototype.activate.call(this);_.qa(this.items)&&6===this.Cb()&&this.qk()||Tsc(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=_.Ky(_.A7a(),this.H,this.items),b=(new Ksc).Dc(this.Cb());a=_.tj(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 Usc=function(a,b){return a.Cb()!==b.Cb()||bL(_.A7a(),a.items,b.Bd())},Vsc=function(a,b){a.items=b.Bd();a.status=b.Cb();_.mI(a.wa)&&(a.W=xnc(a.status,a.items));a.V=b.Rl();a.Oe=b.We()};_.gL.prototype.LB=function(a){this.dispatchEvent(new _.Hc(new _.Gc("Error occurred running a query after "+a.retryCount+" retries.",a.error)))};_.gL.prototype.YW=function(){this.dispatchEvent(new _.oi(_.xFa))};
_.gL.prototype.Su=function(a,b){var c=this;b+="\n\n\nQuery:\n"+hL(this.O,this.jd());return this.ma.then(function(d){return d.tPb(a,b,c.jd(),c.wi(),c.items)})};
var Tsc=function(a){if(a.isActive()){var b=a.ys().H();a.log("Livelist "+a.Oi()+" returning "+a.items.length+". Status: "+(_.fb(Nsc)[a.Cb()]+". ")+(6===a.Cb()?"MissingTypes: "+b.join(",")+". ":"")+("Datasource: "+_.fb(Osc)[a.Oe]+". Query: ")+(hL(a.O,a.request)+" ")+ync(a.items));Wsc(a,a.items,a.request);a.dispatchEvent(new _.oi(_.bd,a))}},Wsc=function(a,b,c){if(_.lJ(c))c="quick access";else if(_.mJ(c))c="people predict";else if(_.nJ(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))};_.gL.prototype.refresh=function(){};_.gL.prototype.Ya=function(){_.D7a++;fL.prototype.Ya.call(this)};var Cnc=[1004,1005,1002,1003],Qnc=[1002,1003,1005],Xsc=[1,2],Ysc=function(a){_.J.call(this,a,-1,Xsc)};_.K(Ysc,_.J);
var Zsc=function(a,b,c,d,e,f){fL.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=_.Eec(new _.cI,[1]);this.log("Creating find by ids live map: "+this.request.V().join(", "));_.ff(this,function(){h.H={}});_.dkb++};_.K(Zsc,fL);_.g=Zsc.prototype;_.g.XP=function(){_.ab(this.items)&&6===this.status||$sc(this)};_.g.jd=function(){return this.request};
_.g.getData=function(){this.H=this.items;var a=new _.kK;_.mI(this.O)?a.Dc(Snc(Object.values(this.items))?6:this.status):a.Dc(this.status);a.map=this.items;return a};_.g.ts=function(){var a=Unc(this.H,this.items),b=new Ssc;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.WT=function(a){atc(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);btc(b,a)}):btc(this,a)};var btc=function(a,b){if(a.status!==b.Cb()||Vnc(a.items,b.ot()))a.status=b.Cb(),a.items=b.ot(),_.mI(a.O)&&(a.V=xnc(a.status,Object.values(a.items))),$sc(a)};Zsc.prototype.LB=function(a){this.dispatchEvent(new _.Hc(new _.Gc("Error occurred running a find-by-IDs query after "+a.retryCount+" retries.",a.error)))};Zsc.prototype.YW=function(){this.dispatchEvent(new _.oi(_.xFa))};
var $sc=function(a){a.isActive()&&(a.log("Livelist "+a.Oi()+" returning "+(Object.values(a.items).length+". Status: ")+(_.fb(Nsc)[a.Cb()]+". Query: ")+(hL(a.W,a.request)+" ")+ync(Object.values(a.items))),a.dispatchEvent(new _.oi(_.bd,a)))};Zsc.prototype.Ya=function(){_.ekb++;fL.prototype.Ya.call(this)};_.ctc=function(a){_.J.call(this,a)};_.K(_.ctc,_.J);_.ctc.prototype.Cb=function(){return _.z(this,1)};_.ctc.prototype.Dc=function(a){return _.x(this,1,a)};
_.ctc.prototype.un=function(){return _.y(this,_.dI,2)};var dtc=function(a){_.oi.call(this,a)};_.K(dtc,_.oi);var etc=[5,7,9],ftc=function(a){_.J.call(this,a,-1,etc)};_.K(ftc,_.J);_.g=ftc.prototype;_.g.getUser=function(){return _.y(this,_.wk,1)};_.g.iB=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.$pa=function(a){return _.rj(this,5,a)};_.g.addTextValues=function(a,b){return _.vj(this,5,a,b)};
_.g.setSelectionValue=function(a){return _.x(this,6,a)};_.g.Wpa=function(a){return _.rj(this,7,a)};_.g.addSelectionValues=function(a,b){return _.vj(this,7,a,b)};_.g.setIntegerValue=function(a){return _.x(this,8,a)};_.g.Npa=function(a){return _.rj(this,9,a)};_.g.addIntegerValues=function(a,b){return _.vj(this,9,a,b)};var gtc=[7,10,12,16,13,3],iL=function(a){_.J.call(this,a,-1,gtc)};_.K(iL,_.J);var jL=function(a){return _.z(a,4)};_.g=iL.prototype;_.g.iB=function(a){_.x(this,4,a)};
_.g.setBooleanValue=function(a){return _.x(this,5,a)};_.g.pbb=function(){return _.z(this,6)};_.g.setTextValue=function(a){return _.x(this,6,a)};_.g.$pa=function(a){return _.rj(this,7,a)};_.g.addTextValues=function(a,b){return _.vj(this,7,a,b)};_.g.nbb=function(){return _.z(this,8)};_.g.setLongTextValue=function(a){return _.x(this,8,a)};_.g.obb=function(){return _.z(this,9)};_.g.setSelectionValue=function(a){return _.x(this,9,a)};_.g.pOa=function(){return _.se(this,10)};
_.g.Wpa=function(a){return _.rj(this,10,a)};_.g.addSelectionValues=function(a,b){return _.vj(this,10,a,b)};_.g.mbb=function(){return _.z(this,11)};_.g.setIntegerValue=function(a){return _.x(this,11,a)};_.g.Npa=function(a){return _.rj(this,12,a)};_.g.addIntegerValues=function(a,b){return _.vj(this,12,a,b)};_.g.qbb=function(){return _.y(this,_.wk,15)};_.g.setUserValue=function(a){return _.G(this,15,a)};_.g.eZa=function(){return _.yb(this,_.wk,16)};var htc=function(a,b){_.tj(a,16,b)};
iL.prototype.addUserValues=function(a,b){return _.zj(this,16,a,_.wk,b)};iL.prototype.H=function(){return _.z(this,17)};iL.prototype.setDateStringValue=function(a){return _.x(this,17,a)};iL.prototype.V=function(){return _.mj(this,17)};var itc=function(a,b){_.tj(a,13,b)};iL.prototype.getId=function(){return _.z(this,14)};iL.prototype.Nb=function(a){return _.x(this,14,a)};iL.prototype.getName=function(){return _.z(this,1)};iL.prototype.$c=function(a){return _.x(this,1,a)};jtc=[3];
_.kL=function(a){_.J.call(this,a,-1,jtc)};_.K(_.kL,_.J);_.kL.prototype.getType=function(){return _.z(this,1)};_.kL.prototype.qc=function(){return _.z(this,2)};_.ktc=function(a){_.J.call(this,a)};_.K(_.ktc,_.J);_.ktc.prototype.getFeature=function(){return _.z(this,1)};ltc=[1];_.hK=function(a){_.J.call(this,a,-1,ltc)};_.K(_.hK,_.J);var SK=function(a){_.J.call(this,a)};_.K(SK,_.J);SK.prototype.getId=function(){return _.z(this,1)};SK.prototype.Nb=function(a){return _.x(this,1,a)};
SK.prototype.se=function(){return _.y(this,_.Qf,3)};mtc=[2,3,8];_.xJ=function(a){_.J.call(this,a,-1,mtc)};_.K(_.xJ,_.J);_.xJ.prototype.getId=function(){return _.z(this,1)};_.xJ.prototype.Nb=function(a){return _.x(this,1,a)};_.xJ.prototype.se=function(){return _.y(this,_.Qf,4)};_.xJ.prototype.uc=function(){return _.z(this,5)};var ntc=function(a){_.J.call(this,a)};_.K(ntc,_.J);var otc=[1,2,4],ptc=function(a){_.J.call(this,a)};_.K(ptc,_.J);ptc.prototype.zf=function(){return _.C(this,1)};
ptc.prototype.ll=function(a){return _.Lj(this,1,a)};ptc.prototype.getUrl=function(){return _.C(this,2)};_.qtc=function(a){_.J.call(this,a)};_.K(_.qtc,_.J);_.qtc.prototype.getType=function(){return _.pj(this,1,0)};_.qtc.prototype.getContext=function(){return _.y(this,ptc,2)};rtc=[1];stc=[2,4];_.ttc=function(a){_.J.call(this,a,-1,stc)};_.K(_.ttc,_.J);_.ttc.prototype.getLabel=function(){return _.C(this,1)};_.ttc.prototype.getTitle=function(){return _.C(this,3)};
_.ttc.prototype.setTitle=function(a){return _.Lj(this,3,a)};_.utc=function(a){_.J.call(this,a,-1,rtc)};_.K(_.utc,_.J);_.vtc=[2,3,4];_.wtc=function(a){_.J.call(this,a)};_.K(_.wtc,_.J);_.wtc.prototype.ue=function(){return _.C(this,3)};_.wtc.prototype.On=function(a){return _.Lj(this,4,a)};_.xtc=function(a){_.J.call(this,a)};_.K(_.xtc,_.J);_.ytc=function(a){_.J.call(this,a)};_.K(_.ytc,_.J);var ztc=function(a){_.J.call(this,a)};_.K(ztc,_.J);Atc=[3,5];_.lL=[8,9,10,11,12,13,14];
_.Btc=function(a){_.J.call(this,a)};_.K(_.Btc,_.J);_.Ctc=function(a){_.J.call(this,a,-1,Atc)};_.K(_.Ctc,_.J);_.Ctc.prototype.Cb=function(){return _.pj(this,6,0)};_.Ctc.prototype.Dc=function(a){return _.Mj(this,6,a)};var Dtc=function(a){_.J.call(this,a)};_.K(Dtc,_.J);var Etc=function(a){_.J.call(this,a)};_.K(Etc,_.J);var Ftc=function(a){_.J.call(this,a)};_.K(Ftc,_.J);var Gtc=[1],Htc=function(a){_.J.call(this,a,-1,Gtc)};_.K(Htc,_.J);var Itc=function(a){_.J.call(this,a)};_.K(Itc,_.J);
var Jtc=function(a){_.J.call(this,a)};_.K(Jtc,_.J);Ktc=[7];_.Ltc=[1,2,3];_.Mtc=function(a){_.J.call(this,a)};_.K(_.Mtc,_.J);_.Ntc=function(a){_.J.call(this,a)};_.K(_.Ntc,_.J);_.Otc=function(a){_.J.call(this,a)};_.K(_.Otc,_.J);_.Ptc=function(a){_.J.call(this,a,-1,Ktc)};_.K(_.Ptc,_.J);var Qtc=function(a){_.J.call(this,a)};_.K(Qtc,_.J);Qtc.prototype.getName=function(){return _.C(this,1)};Qtc.prototype.$c=function(a){return _.Lj(this,1,a)};var Rtc=function(a){_.J.call(this,a)};_.K(Rtc,_.J);
Rtc.prototype.getName=function(){return _.C(this,1)};Rtc.prototype.$c=function(a){return _.Lj(this,1,a)};Rtc.prototype.getTitle=function(){return _.C(this,2)};Rtc.prototype.setTitle=function(a){return _.Lj(this,2,a)};_.Stc=[1,4];Ttc=function(a){_.J.call(this,a)};_.K(Ttc,_.J);Ttc.prototype.getUser=function(){return _.Hj(this,_.ytc,1,_.Stc)};Ttc.prototype.kk=function(){return _.y(this,Qtc,3)};Ttc.prototype.Nn=function(a){return _.G(this,3,a)};Ttc.prototype.xH=function(){return _.mj(this,3)};
var Utc=[8,9,10],Vtc=function(a){_.J.call(this,a)};_.K(Vtc,_.J);Vtc.prototype.getType=function(){return _.pj(this,6,0)};var Wtc=function(a){_.J.call(this,a)};_.K(Wtc,_.J);_.Xtc=function(a){_.J.call(this,a)};_.K(_.Xtc,_.J);_.g=_.Xtc.prototype;_.g.getName=function(){return _.C(this,1)};_.g.$c=function(a){return _.Lj(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.Lj(this,2,a)};_.g.Pka=function(){return _.Hj(this,Vtc,9,Utc)};
_.g.OXa=function(){return _.Hj(this,Wtc,10,Utc)};_.g.nj=function(){return _.Ej(this,5)};_.g.getMimeType=function(){return _.C(this,6)};_.g.eA=function(){return _.y(this,Ttc,7)};var Ytc=function(a){_.J.call(this,a)};_.K(Ytc,_.J);var Ztc=[8,9,10],$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 _.Lj(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.Lj(this,2,a)};
_.g.Pka=function(){return _.Hj(this,Vtc,9,Ztc)};_.g.OXa=function(){return _.Hj(this,Wtc,10,Ztc)};auc=[1,3];_.mL=function(a){_.J.call(this,a)};_.K(_.mL,_.J);_.mL.prototype.Nh=function(){return _.Hj(this,$tc,1,auc)};_.buc=[1,2,3];_.cuc=function(a){_.J.call(this,a)};_.K(_.cuc,_.J);_.duc=function(a){_.J.call(this,a)};_.K(_.duc,_.J);var euc=function(a){_.J.call(this,a)};_.K(euc,_.J);var fuc=function(a){_.J.call(this,a)};_.K(fuc,_.J);guc=[2,3];_.huc=function(a){_.J.call(this,a,-1,guc)};_.K(_.huc,_.J);
_.huc.prototype.getType=function(){return _.pj(this,1,0)};_.iuc=function(a){_.J.call(this,a)};_.K(_.iuc,_.J);_.iuc.prototype.getType=function(){return _.pj(this,1,0)};var juc=function(a){_.J.call(this,a)};_.K(juc,_.J);juc.prototype.getType=function(){return _.pj(this,1,0)};var kuc=function(a){_.J.call(this,a)};_.K(kuc,_.J);_.luc=function(a){_.J.call(this,a)};_.K(_.luc,_.J);_.luc.prototype.H=function(){return _.R(this,1)};var muc=function(a){_.J.call(this,a)};_.K(muc,_.J);nuc=[1,2,4];
_.ouc=function(a){_.J.call(this,a)};_.K(_.ouc,_.J);puc=[1,2];_.quc=function(a){_.J.call(this,a)};_.K(_.quc,_.J);_.quc.prototype.getParent=function(){return _.y(this,_.mL,1)};_.quc.prototype.Ug=function(a){return _.G(this,1,a)};_.ruc=function(a){_.J.call(this,a,-1,puc)};_.K(_.ruc,_.J);_.suc=function(a){_.J.call(this,a,-1,nuc)};_.K(_.suc,_.J);_.nL=function(a){_.J.call(this,a)};_.K(_.nL,_.J);_.nL.prototype.getEmail=function(){return _.C(this,1)};_.nL.prototype.getTitle=function(){return _.C(this,2)};
_.nL.prototype.setTitle=function(a){return _.Lj(this,2,a)};_.oL=[2,3,4,5];_.pL=function(a){_.J.call(this,a)};_.K(_.pL,_.J);_.g=_.pL.prototype;_.g.Bf=function(){return _.pj(this,1,0)};_.g.getUser=function(){return _.Hj(this,_.ytc,2,_.oL)};_.g.kk=function(){return _.Hj(this,Qtc,4,_.oL)};_.g.Nn=function(a){return _.yj(this,4,_.oL,a)};_.g.xH=function(){return _.nj(this,4,_.oL)};var tuc=function(a){_.J.call(this,a)};_.K(tuc,_.J);uuc=[1,2,3,4];_.vuc=function(a){_.J.call(this,a,-1,uuc)};_.K(_.vuc,_.J);
_.wuc=function(a){_.J.call(this,a)};_.K(_.wuc,_.J);_.xuc=function(a){_.J.call(this,a)};_.K(_.xuc,_.J);_.yuc=function(a){_.J.call(this,a)};_.K(_.yuc,_.J);_.zuc=function(a){_.J.call(this,a)};_.K(_.zuc,_.J);_.zuc.prototype.getType=function(){return _.pj(this,1,0)};Auc=[1];_.Buc=function(a){_.J.call(this,a)};_.K(_.Buc,_.J);_.Buc.prototype.getFeature=function(){return _.pj(this,1,0)};_.Cuc=function(a){_.J.call(this,a,-1,Auc)};_.K(_.Cuc,_.J);var Duc=function(a){_.J.call(this,a)};_.K(Duc,_.J);
var Euc=function(a){_.J.call(this,a)};_.K(Euc,_.J);var Fuc=function(a){_.J.call(this,a)};_.K(Fuc,_.J);Fuc.prototype.getType=function(){return _.pj(this,1,0)};_.qL=[1,2,3,4,5,6,7,8,9,10,11,12,13,18,15,16,19,20,21];_.rL=function(a){_.J.call(this,a)};_.K(_.rL,_.J);_.rL.prototype.ex=function(){return _.Hj(this,Fuc,10,_.qL)};var Guc=function(a){_.J.call(this,a)};_.K(Guc,_.J);Guc.prototype.getType=function(){return _.pj(this,2,0)};Guc.prototype.Ih=function(){return _.C(this,1)};
_.Huc=function(a){_.J.call(this,a)};_.K(_.Huc,_.J);var Iuc=function(a){_.J.call(this,a)};_.K(Iuc,_.J);_.Juc=function(a){_.J.call(this,a)};_.K(_.Juc,_.J);_.Kuc=function(a){_.J.call(this,a)};_.K(_.Kuc,_.J);_.Kuc.prototype.getType=function(){return _.pj(this,1,0)};_.sL=[1,2,3,4,5];_.Luc=function(a){_.J.call(this,a)};_.K(_.Luc,_.J);_.Luc.prototype.getUser=function(){return _.Hj(this,_.ytc,1,_.sL)};_.Muc=function(a){_.J.call(this,a)};_.K(_.Muc,_.J);_.g=_.Muc.prototype;
_.g.getName=function(){return _.C(this,1)};_.g.$c=function(a){return _.Lj(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.Lj(this,2,a)};_.g.Ma=function(){return _.y(this,_.Xtc,3)};_.Nuc=function(a){_.J.call(this,a)};_.K(_.Nuc,_.J);_.Nuc.prototype.getParent=function(){return _.y(this,_.Xtc,4)};_.Nuc.prototype.Ug=function(a){return _.G(this,4,a)};_.tL=[1,5,3];_.Ouc=function(a){_.J.call(this,a)};_.K(_.Ouc,_.J);
_.Ouc.prototype.Nh=function(){return _.Hj(this,_.Xtc,1,_.tL)};Puc=function(a,b){return new _.Bdc(_.Cdc.bound(a,b,void 0,void 0))};Quc=function(){var a=new _.ai,b=_.Odc().deleteDatabase("GoogleDriveDs");b.onsuccess=function(){a.callback()};b.onerror=function(c){a.Gd(_.WH(c.target,"deleting database GoogleDriveDs"))};b.onblocked=function(){};return a};_.Ruc=function(a){_.J.call(this,a)};_.K(_.Ruc,_.J);_.Ruc.prototype.Jp=function(){return _.z(this,1)};
_.Ruc.prototype.getSize=function(){return _.z(this,2)};_.Ruc.prototype.setSize=function(a){return _.x(this,2,a)};_.Ruc.prototype.getUrl=function(){return _.z(this,3)};_.Suc=function(a){_.J.call(this,a)};_.K(_.Suc,_.J);_.Suc.prototype.getType=function(){return _.z(this,1)};Tuc=[2,3];_.Uuc=function(a){_.J.call(this,a,-1,Tuc)};_.K(_.Uuc,_.J);Vuc=[4,5,6,17,18,24];_.uL=function(a){_.J.call(this,a,-1,Vuc)};_.K(_.uL,_.J);_.uL.prototype.getId=function(){return _.z(this,1)};
_.uL.prototype.Nb=function(a){return _.x(this,1,a)};_.uL.prototype.getName=function(){return _.z(this,2)};_.uL.prototype.$c=function(a){return _.x(this,2,a)};var Wuc=function(a,b){return _.rj(a,4,b)},Xuc=function(a,b){return _.rj(a,5,b)};_.uL.prototype.AR=function(){return _.z(this,8)};_.uL.prototype.getType=function(){return _.z(this,23)};var vL=function(a){_.J.call(this,a)};_.K(vL,_.J);vL.prototype.getQuery=function(){return _.y(this,_.Df,1,1)};vL.prototype.Vg=function(a){return _.G(this,1,a)};
vL.prototype.yK=function(){return _.mj(this,1)};vL.prototype.ao=function(){return _.z(this,4)};var Yuc=function(a,b){return _.G(a,5,b)},Voc=function(a){_.J.call(this,a)};_.K(Voc,_.J);var Zuc=[1,2,5,7,9,10,12,14],wL=function(a){_.J.call(this,a,-1,Zuc)};_.K(wL,_.J);wL.prototype.Bd=function(){return _.yb(this,_.Jk,1)};var $uc=function(a,b){return _.tj(a,1,b)};wL.prototype.dh=function(a,b){return _.zj(this,1,a,_.Jk,b)};wL.prototype.BN=function(){return _.yb(this,_.wk,2)};
wL.prototype.$ha=function(a){_.zj(this,2,a,_.wk,void 0)};var avc=function(a,b){return _.x(a,3,b)};wL.prototype.Du=function(){return _.z(this,4)};wL.prototype.mz=function(a){return _.x(this,4,a)};var bvc=function(a,b){return _.tj(a,5,b)};wL.prototype.Lv=function(){return _.Q(this,6)};var cvc=function(a,b){return _.x(a,6,b)};wL.prototype.Ff=function(){return _.y(this,_.VB,8)};var dvc=function(a,b){return _.rj(a,12,b)};wL.prototype.Xo=function(){return _.pj(this,13,0)};
var evc=function(a,b){return _.x(a,13,b)},fvc={tYb:0,rYb:1,n3b:2,A9b:3,D9b:4,X4b:5},gvc=[1],TK=[1,2,3,4,5,6,7],poc=function(a){_.J.call(this,a)};_.K(poc,_.J);var qoc=function(a){_.J.call(this,a,-1,gvc)};_.K(qoc,_.J);var RK=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],noc=function(a){_.J.call(this,a)};_.K(noc,_.J);var uoc=[1,2],toc=function(a){_.J.call(this,a)};_.K(toc,_.J);var xoc=[1,2,3],woc=function(a){_.J.call(this,a)};_.K(woc,_.J);var hvc=[3],xL=function(a){_.J.call(this,a,-1,hvc)};_.K(xL,_.J);
xL.prototype.vq=function(){return _.z(this,1)};var ivc=function(a,b){return _.x(a,1,b)};xL.prototype.getTitle=function(){return _.z(this,2)};xL.prototype.setTitle=function(a){return _.x(this,2,a)};xL.prototype.Bd=function(){return _.yb(this,_.Jk,3)};var jvc=function(a,b){return _.tj(a,3,b)};xL.prototype.dh=function(a,b){return _.zj(this,3,a,_.Jk,b)};xL.prototype.V=function(){return _.z(this,4)};var kvc=function(a,b){return _.x(a,4,b)};xL.prototype.H=function(){return _.y(this,_.zk,5)};
var lvc=function(a,b){return _.G(a,5,b)},mvc=[2],yL=function(a){_.J.call(this,a,-1,mvc)};_.K(yL,_.J);yL.prototype.Cb=function(){return _.z(this,1)};yL.prototype.Dc=function(a){return _.x(this,1,a)};yL.prototype.Zk=function(){return _.yb(this,xL,2)};var nvc=function(a,b){return _.tj(a,2,b)};yL.prototype.Vf=function(){return _.z(this,4)};ovc=function(a,b){return _.x(a,4,b)};_.mK=function(a){_.J.call(this,a)};_.K(_.mK,_.J);_.g=_.mK.prototype;_.g.Cb=function(){return _.z(this,1)};
_.g.Dc=function(a){return _.x(this,1,a)};_.g.CU=function(){return _.Ab(this,2,void 0,_.dI)};_.g.$j=function(){return _.z(this,3)};_.g.We=function(){return _.z(this,5)};_.g.ri=function(a){return _.x(this,5,a)};var pvc=function(a,b){return 1<a?2===b:a===b},qvc=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");},zL=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=zL.prototype;
_.g.clone=function(){return new zL(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.UA=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&&_.Dj(this.item,a.getItem())};
var rvc=function(a,b){a.H=b;return a},AL=function(a){return a instanceof _.Jk?null!=a.getId()&&a.getId()==a.uc():null!=a.qc()&&a.qc()==a.uc()},svc=function(a,b,c){c=void 0===c?[]:c;var d=a.clone(),e=b.Vh();null!=e&&Inc(a,e.clone());if((e=b.getCapabilities())&&null!=_.Q(e,13)){var f=a.getCapabilities()||new _.Ck;_.x(f,13,_.Q(e,13));_.RJ(a,f)}e&&null!=_.Q(e,18)&&(f=a.getCapabilities()||new _.Ck,_.x(f,18,_.Q(e,18)),_.RJ(a,f));OK(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()&&OK(a,d,c)},tvc=function(a,b,c){c=void 0===c?[]:c;if(!b||!AL(a)&&!AL(b))return a;if(2==a.Lv()){c=_.z(a,82);var d=b.clone();svc(d,a);_.pic(d,b.Lv());_.AI(d,c);return d}a=a.clone();svc(a,b,c);return a},uvc=function(a){return(a=a?a.Vh():null)&&_.Q(a,7)||!1},vvc=function(a,b){this.V=a;this.items={};this.fields=new Set;this.H={};this.O=new Set;this.W=new Set(b)},wvc=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]={}})},yvc=function(a,b,c){b.every(function(d){return AL(d)})?xvc(b,c,a.H,a.O):b.every(function(d){return!AL(d)})&&xvc(b,c,a.items,a.fields)},xvc=function(a,b,c,d){b=_.ihc(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&&OK(d,k,[h]);e&&(k=c[h][e.getId()])&&OK(e,k,[h])}}};
vvc.prototype.update=function(a,b,c){b&&AL(b)?zvc(a,b,this.H,this.O,c):zvc(a,b,this.items,this.fields,c)};vvc.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 zvc=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&&Fnc(b,[h])&&(f[a]=Avc(b,h)),b)){var k=b.wf();(k=k?_.xe(k):null)&&Fnc(k,[h])&&(f[k.getId()]=Avc(k,h))}});b&&Bnc(b,[].concat(_.fc(d)))},Avc=function(a,b){var c=new _.Jk;c.Nb(a.getId());OK(c,a,[b]);return c};vvc.prototype.clear=function(){var a=this;_.Ta(this.items,function(b,c){a.items[c]={}});_.Ta(this.H,function(b,c){a.H[c]={}})};
vvc.prototype.log=function(a){this.V.info("drive.ds.sync.cache.FieldsCache",a)};var Bvc=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=Bvc.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(Cvc(a)){for(var d=_.m(this.Dd.values()),e=d.next();!e.done;e=d.next())e=e.value,BL(this.Et,a,e.getItem())&&(void 0===b||pvc(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--,Dvc(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 Dvc=function(a,b){return 1<b.Yb()||pvc(b.V,2)||b.getItem().gJ()||$nc(b.getItem())?!1:"root"!==b.getId()&&b.getId()!==a.rootId};Bvc.prototype.LJ=function(){for(var a=_.m(this.Dd.values()),b=a.next();!b.done;b=a.next())b=b.value,Dvc(this,b)&&(this.Dd.delete(b.getId()),b.count--)};
var Evc=function(a,b,c,d){this.Dg=a;this.W=b;this.O=c;this.V=d},Woc=function(a,b){return(b=a.O.get(b))?(b=b.clone(),yvc(a.V,[b.getItem()],ksc(a.Dg)),b):null};Evc.prototype.H=function(a){return(a=Woc(this,a))?a.getItem():null};var Fvc=function(a,b){var c={};b=_.m(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=Woc(a,d);e&&(c[d]=e)}return c},Gvc=function(a,b){return _.Va(Fvc(a,b),function(c){return c.getItem()})},Hvc=function(a,b){b=CL(a.W,b);return a.O.query(b).map(function(c){return c.clone()})};
Evc.prototype.query=function(a){return Hvc(this,a).map(function(b){return b.getItem()})};Evc.prototype.getSize=function(){return this.O.Dy().size};
var Ivc=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(_.Kk(c)),e=d.next();!e.done;e=d.next())e=e.value,b.add(e.getId()||MK(e));(d=c.Cm())&&b.add(d.getId()||MK(d));(d=c.bs())&&b.add(d.getId()||MK(d));(d=c.qq())&&b.add(d.getId()||MK(d));(c=c.FD())&&b.add(c.getId()||MK(c))}return b.size},Jvc=function(a){return[].concat(_.fc(new Set(a.map(function(b){return _.Pfc.get(b)}).filter(function(b){return b})))).join(",")},DL=function(a,
b,c){b=void 0===b?[]:b;c=void 0===c?!1:c;b=[].concat(_.fc(b));b=Jvc(b);var d=_.mI(a)?"kind,id,name,colorRgb,backgroundImageLink,creator(kind,permissionId,id,emailAddressFromAccount),permissionsSummary(entryCount,userEntryCount,groupEntryCount,memberCount,selectPermissions(kind,id,userId,emailAddress,domain,role,type,additionalRoles,view,audienceId,customerId)),trusted,primaryDomainName,organizationDisplayName,restrictions,backgroundImageGridViewLink,backgroundImageListViewLink,hidden,customerId":
_.R(a,80,!1)?"kind,id,name,colorRgb,backgroundImageLink,creator,permissionsSummary(entryCount,userEntryCount,groupEntryCount,memberCount,selectPermissions(kind,id,userId,emailAddress,domain,role,type,additionalRoles,view,audienceId,customerId,name,photoLink)),trusted,primaryDomainName,organizationDisplayName,restrictions,backgroundImageGridViewLink,backgroundImageListViewLink,hidden,customerId":"kind,id,name,colorRgb,backgroundImageLink,creator,permissionsSummary,trusted,primaryDomainName,organizationDisplayName,restrictions,backgroundImageGridViewLink,backgroundImageListViewLink,hidden,customerId";
c=c?"canAddChildren,canChangeDriveBackground,canComment,canCopy,canDeleteDrive,canDownload,canEdit,canManageMembers,canShare,canRename,canRenameDrive,canDeleteChildren,canTrashChildren":"canAddChildren,canAddFolderFromAnotherDrive,canChangeTeamDriveBackground,canComment,canCopy,canDeleteTeamDrive,canDownload,canEdit,canManageMembers,canManageVisitors,canRemoveChildren,canRename,canRenameTeamDrive,canShareOutsideDomain,canDeleteChildren,canTrashChildren";_.R(a,77,!1)&&(c+=",canChangeCategoryReferences");
return(b.length?d+","+b:d)+",capabilities("+c+")"},Kvc=function(a,b){b=void 0===b?[]:b;return"kind,nextPageToken,items("+DL(a,b,!1)+")"},Lvc=function(a){var b=new _.vo;_.gK(b,"hidden",_.Q(a,4));a=_.Q(a,6);null!=a&&_.gK(b,"canRemoveSecureLinkUpdateForAllFiles",a);return b.toString()},Mvc=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}},Nvc=function(a,b){switch(a){case 21:return b.getId()||"";case 3:return b.getMimeType()||"";case 4:return b.nB()||!1;case 12:return b.Bz()||0;case 11:return b.DB()||0;case 10:return b.Oq()||0;case 2:return(b.getTitle()||"").toLowerCase();case 25:return b.My()||0;case 57:return _.z(b,62)||0;case 32:return b.tv()||0;case 9:return b.oD()||0;case 67:return b.nK()||0;case 98:return b.Cw()||0;default:return""}},Ovc=function(a){var b=_.cdc(),c={};b&&(c.numeric=b);this.H=_.ddc(a,c)};
Ovc.prototype.compare=function(a,b,c){b=Pvc(b);c=Pvc(c);a=a.Lc();var d=Mvc(a);if(a&&d){d=Qvc(this,a);var e=4===a.getType()?this.H:_.Ha;return Rvc(a,d,e,b,c)}return _.Ha(b.getId(),c.getId())};Ovc.prototype.sort=function(a,b,c){a=a.Lc();var d=Mvc(a);a&&d&&(d=Qvc(this,a),d=Svc(b,d),_.Ka(b,Tvc(this,a,d)));c&&0<c&&_.ta(b,c,b.length-c)};
var Pvc=function(a){return a instanceof _.Jk?a:a.getItem()},Qvc=function(a,b){b=Mvc(b);return _.L(a.O,a,b,_.Ha)},Svc=function(a,b){var c={};a.forEach(function(d){d=Pvc(d);var e=d.getId();c[e]=b(d)});return c},Tvc=function(a,b,c){return function(d,e){var f=4===b.getType()?a.H:_.Ha;d=Pvc(d);e=Pvc(e);return Rvc(b,function(h){return c[h.getId()]},f,d,e)}},Rvc=function(a,b,c,d,e){var f=1===a.Uf()?1:-1;if(_.Q(a,3)){a=QK(d,!0);var h=QK(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()))};Ovc.prototype.O=function(a,b,c){for(var d=Nvc(a[0],c),e=1;e<a.length;e++){var f=Nvc(a[e],c);d=1===b(f,d)?f:d}return d};var Uvc=function(a,b){this.fields=a;this.rootId="";this.fields.sort();this.H=b;this.anonymous=_.LI(_.fI(b));a=_.JJ(b);this.V=!(!a||!_.R(a,1,!1));this.O=!(!a||!_.R(a,8,!1))};Uvc.prototype.mz=function(a){this.rootId=a||""};
var CL=function(a,b,c){b=b.clone();"root"===b.getId()&&b.Nb(a.rootId);_.pl(b).filter(function(d){return"root"===d.Wa()}).forEach(function(d){return d.Hb(a.rootId)});_.Jf(b,_.ol(b).map(function(d){d.Hb(d.Wa().toLowerCase());return d}));c&&_.nl(b,a.fields);b.H().sort();return b},hL=function(a,b,c){if(b instanceof _.Df){b=CL(a,b);var d=_.Fjc(b)}else if(b instanceof _.XF)d=b.V().sort().join(","),_.R(b,5,!1)&&(d+="|cachedOnly");else{if(b instanceof _.RH)return d=Lvc(b),d+"|tdList";if(b instanceof _.bG)return d=
b.V().sort().join(","),b.H().length&&(d+="|"+Jvc(b.H())),d+"|tdMap";throw Error("nf");}return 3===c?d:d+"|"+Vvc(a,b.H(),2===c)},Vvc=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+" - "+_.PI({fields:[].concat(_.fc(f)),anonymous:a.anonymous}));e.size&&(d=d+" + "+_.PI({fields:[].concat(_.fc(e)),
anonymous:a.anonymous}));return d};Uvc.prototype.equals=function(a,b,c){var d;c&&(d=3);return hL(this,a,d)===hL(this,b,d)};
var atc=function(a){if(!a.V().every(function(b){return!_.Te(b)}))throw new _.Gc("Invalid ids for FindByIdsRequest");},Xvc=function(a,b,c){if(_.mJ(b))throw new _.Gc("Did not expect a PeoplePredict request. Use peoplePredictQuery() for PeoplePredict requests. ");Wvc(a,b,c)},Wvc=function(a,b,c){var d;a.O||(d=_.NI(3));if(b.getId())throw new _.Gc("Use findByIds() for find by id queries.",d?d:_.NI(3));if(!b.wi()||0>=b.wi())throw new _.Gc("A positive limit is required on an ItemQueryRequest.",d?d:_.NI(3));
_.se(b,33);a.V&&c||(d=a.fields.slice(),c&&(d=d.concat(c)),Yvc(a,d,b.H()));if(c=(c=b.Lc())&&Mvc(c))d=b.H().length?b.H():a.fields,Yvc(a,d,c);if(_.lJ(b)){if(a.anonymous)throw new _.Gc("User must be authenticated for a Quick Access request.");if(!Zvc(a)&&20<b.wi())throw new _.Gc("Limit must be in the range [1, 20].");c=2===_.UJ(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=_.uj(_.vb(_.sj(_.vb(_.vb(_.vb(_.gI(_.vb(_.sj(_.gI(b.clone(),
1),30),32),33),45),47),74),75),48),6);d=new _.Df;if(!_.Dj(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: "+Isc(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(_.nJ(b)){if(a.anonymous)throw new _.Gc("User must be authenticated for a DrivePriority request.");
if(2===_.UJ(b))throw new _.Gc("Team Drive corpora is not valid for a Drive Priority request.");a=_.vb(_.vb(_.vb(_.sj(_.gI(b.clone(),1),30),32),45),52);b=new _.Df;if(!_.Dj(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: "+Isc(b,a));}},$vc=function(a,b,c){if(!_.mJ(b))throw new _.Gc("Expected a PeoplePredict request.");Wvc(a,b,c);if(a.anonymous)throw new _.Gc("User must be authenticated for a People Predict request.");
if(2===_.UJ(b))throw new _.Gc("Team Drive corpora is not valid for a People Predict request.");a=_.vb(_.vb(_.vb(_.sj(_.gI(b.clone(),1),30),32),45),49);b=new _.Df;if(!_.Dj(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: "+Isc(b,a));},Yvc=function(a,b,c){var d;a.O||(d=_.NI(3));if(!Gnc(b,c,_.ghc)){var e=_.PI({fields:c,anonymous:a.anonymous}),f=_.PI({fields:b,anonymous:a.anonymous});
a=_.PI({fields:Hnc(c,b),anonymous:a.anonymous});throw new _.Gc("Requested field was not previously specified. Needed "+e+", but had "+(f+". Missing: "+a+"."),d?d:_.NI(3));}},Zvc=function(a){return 200<=_.XJ(a.H)&&300>_.XJ(a.H)},awc=function(a){var b=new Set;a=_.m(_.ol(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))},bwc=function(a){switch(_.XJ(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"}},cwc=function(a){a=_.pl(a);return 1===a.length?a[0].Wa():null},dwc=function(a){_.N.call(this);this.H=a};_.mg(dwc,_.N);_.g=dwc.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();dwc.ub.Ya.call(this)};var hoc=function(a){_.Ty.call(this);this.Po=a;this.H=_.df(this.Po,"message",this.brb,!1,this)};_.mg(hoc,_.Ty);_.g=hoc.prototype;_.g.Yf=null;_.g.send=function(a,b){var c=[];b=this.Zza(c,b);a={serviceName:a,payload:b,"--goog.messaging.PortChannel":!0};_.cgc&&(a=(0,_.Ei)(a));this.Po.postMessage(a,c)};
_.g.brb=function(a){a=a.Ae;var b=a.data;if(_.cgc)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.GDa(a.ports||[],b),d.FGa),null!=b&&d.callback(b))}};
_.g.Zza=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.Zza,this,a)):b&&b.constructor==Object?_.Va(b,function(c,d){c=this.Zza(a,c);return"_port"==d?{type:"escaped",val:c}:c},this):b};
_.g.GDa=function(a,b){return Array.isArray(b)?b.map((0,_.L)(this.GDa,this,a)):b&&b.constructor==Object?b._port&&"real"==b._port.type?a[b._port.index]:_.Va(b,function(c,d){return this.GDa(a,"_port"==d?c.val:c)},this):b};_.g.Ya=function(){_.xi(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;hoc.ub.Ya.call(this)};
var koc=function(a,b){if("*"==b)return new dwc(_.hi(Error("of")));var c=new _.Ai(50),d=_.Ob(_.ca,c),e=new _.ai(d);_.ci(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 hoc(f.port1))};f.port1.start();f.port1.addEventListener("message",h,!0);a.postMessage({"--goog.messaging.PortChannel":!0},b,[f.port2])});return new dwc(e)},ewc=function(a){_.N.call(this);this.H=new _.edc(a);this.V={};this.O=_.gdc(this.H,
"private");this.W=_.gdc(this.H,"public");this.O.registerService("mics",(0,_.L)(this.xob,this),!0)};_.mg(ewc,_.N);_.g=ewc.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;_.Wh(a).then((0,_.L)(function(d){var e={};e.data=d;e.signature=c;this.O&&this.O.send("mics",e)},this))};var fwc=function(a,b){_.N.call(this);this.W=b;this.started=!1;this.V=new _.edc(a);this.Ja(this.V);this.H=new ewc(_.gdc(this.V,"direct"));this.Ja(this.H)};_.K(fwc,_.N);fwc.prototype.registerService=function(a,b){this.H.registerService(a,b)};fwc.prototype.send=function(a,b,c){this.H.send(a,b||{},function(d){return(c||_.ig)(d)})};
var joc=function(a,b){fwc.call(this,a,b);this.O=new ewc(_.gdc(this.V,"passthrough"));this.Ja(this.O)};_.K(joc,fwc);var EL=function(a,b,c){a.O.registerService(b,function(d){return c(d)})},FL=function(a,b,c,d){a.O.send(b,c||{},d||_.ig)};joc.prototype.start=function(){this.started||(this.started=!0)};var eoc=[],gwc=function(){_.Ty.call(this);this.H=null};_.K(gwc,_.Ty);gwc.prototype.send=function(a,b){_.C8a(this.H,a,b)};
var loc=function(){this.O=new gwc;this.H=new gwc;var a=this.O;a.H||(a.H=this.H);a=this.H;a.H||(a.H=this.O)},hwc=function(a,b,c,d){this.clientId=a;this.method=b;this.args=c;this.requestId=d;this.H=void 0},iwc=function(a,b){b=void 0===b?!1:b;void 0===a.H&&(a.H=b)&&doc(a.args);return{c:a.clientId,m:a.method,a:a.args,req:a.requestId,s:a.H}},jwc=function(a){var b=new hwc(a.c,a.m,a.a,a.req);b.H=a.s;return b},kwc=function(a,b,c){this.data=b?void 0:a;this.error=b;this.O=c;this.H=void 0},lwc=function(a,b){b=
void 0===b?!1:b;void 0===a.H&&a.data&&(a.H=b)&&doc(a.data);return{d:a.data,err:a.error&&b?a.error.Hc():a.error,uid:a.O,s:b}},mwc=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 kwc(c?void 0:a.d,c,a.uid);c||(a.H=b);return a},coc=function(a,b){this.H=a;this.fE=b};coc.prototype.get=function(){for(var a={},b=0;b<this.H.length;b++)a[this.H[b]]=this.fE[b];return a};
coc.prototype.Hc=function(){for(var a={},b={},c=0;c<this.fE.length;c++){var d=this.fE[c],e=this.H[c];d instanceof Error?b[e]=_.vI(d).Hc():a[e]=d.Hc()}return{r:a,e:b}};nwc=function(a,b){if(b){var c=[],d=[];_.Ta(a.r,function(e,f){c.push(f);d.push(new _.HJ(JSON.parse(e)))});_.Ta(a.e,function(e,f){c.push(f);e=new _.Fc(JSON.parse(e));d.push(_.OI(e))});return new coc(c,d)}return a};ioc=function(a,b,c,d,e){this.channel=a;this.H=b;this.endpoint=c;this.V=d;this.O=e};
_.nK=function(a,b,c){this.response=a;this.Oe=void 0===b?0:b;this.J0=void 0===c?null:c};_.oK=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};owc=function(a){_.oK.call(this,a,void 0,void 0,void 0);this.j6a=new _.fn};_.K(owc,_.oK);pwc=function(a,b){this.response=a;this.pageToken=void 0===b?"":b};_.qK=function(a,b,c){this.response=a;this.Oe=void 0===b?0:b;this.J0=void 0===c?null:c};
_.pK=function(a,b,c){this.response=a;this.Oe=void 0===b?0:b;this.J0=void 0===c?null:c};_.rK=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};qwc={ZWb:0,uXb:1,y2b:3,T$b:5,Mkb:6,0:"ACCOUNT",1:"APPS",3:"ITEMS",5:"USER_PREFS",6:"PEOPLE"};_.rwc=function(a){_.J.call(this,a)};_.K(_.rwc,_.J);_.rwc.prototype.H=function(){return _.z(this,1)};var swc=function(a){_.J.call(this,a)};_.K(swc,_.J);swc.prototype.H=function(){return _.Q(this,1)};
swc.prototype.V=function(){return _.z(this,2)};_.GL=function(a){_.J.call(this,a)};_.K(_.GL,_.J);_.g=_.GL.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.Fta=function(){return _.z(this,3)};_.g.xz=function(){return _.z(this,4)};_.g.maa=function(){return _.y(this,swc,6)};_.g.qub=function(){return _.y(this,_.rwc,7)};_.g.TXa=function(){return _.z(this,8)};
_.g.Eta=function(){return _.Q(this,9)};_.HL=function(a){_.J.call(this,a)};_.K(_.HL,_.J);_.g=_.HL.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.Mbb=function(){return _.z(this,6)};_.twc=function(a,b){return _.x(a,6,b)};
_.HL.prototype.zf=function(){return _.z(this,8)};_.HL.prototype.ll=function(a){return _.x(this,8,a)};_.HL.prototype.H=function(){return _.Q(this,9)};_.XI=function(a){_.J.call(this,a)};_.K(_.XI,_.J);_.XI.prototype.Ih=function(){return _.z(this,1)};_.XI.prototype.se=function(){return _.y(this,_.Qf,3)};_.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)};_.iJ=function(a){_.J.call(this,a)};_.K(_.iJ,_.J);
_.iJ.prototype.Ih=function(){return _.z(this,1)};_.iJ.prototype.se=function(){return _.y(this,_.Qf,2)};_.zJ=function(a){_.J.call(this,a)};_.K(_.zJ,_.J);_.zJ.prototype.Ih=function(){return _.z(this,1)};_.zJ.prototype.se=function(){return _.y(this,_.Qf,4)};var uwc=function(a){_.J.call(this,a)};_.K(uwc,_.J);vwc=function(a,b){return _.x(a,1,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)};
_.oJ=function(a){_.J.call(this,a)};_.K(_.oJ,_.J);_.oJ.prototype.getId=function(){return _.z(this,1)};_.oJ.prototype.Nb=function(a){return _.x(this,1,a)};_.thc=function(a){_.J.call(this,a)};_.K(_.thc,_.J);_.vJ=function(a){_.J.call(this,a)};_.K(_.vJ,_.J);_.vJ.prototype.se=function(){return _.y(this,_.Qf,1)};var wwc=function(){var a=new _.vJ,b=_.Rf(new _.Qf,301);return _.G(a,1,b)};_.vJ.prototype.uc=function(){return _.z(this,3)};_.$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)};_.jJ=function(a){_.J.call(this,a)};_.K(_.jJ,_.J);_.g=_.jJ.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 _.mj(this,4)};_.g.se=function(){return _.y(this,_.Qf,7)};
_.Ghc=function(a){_.J.call(this,a)};_.K(_.Ghc,_.J);_.Ghc.prototype.uc=function(){return _.z(this,1)};_.rJ=function(a){_.J.call(this,a)};_.K(_.rJ,_.J);_.rJ.prototype.qc=function(){return _.z(this,1)};_.rJ.prototype.se=function(){return _.y(this,_.Qf,2)};_.rJ.prototype.wi=function(){return _.Ej(this,3,1E3)};_.rJ.prototype.Gi=function(a){return _.x(this,3,a)};var xwc=function(a,b,c){_.zi.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(xwc,_.zi);
xwc.prototype.QB=function(){return this.O};xwc.prototype.TQ=function(){var a=this;if(this.W)return this.W;var b=_.Zh();this.W=b.promise;_.n.setTimeout(function(){a.W=null},5E3);ywc(this,b);return b.promise};xwc.prototype.ta=function(){!0===this.O&&(this.log("Became unauthenticated."),this.O=!1,this.V=!0,zwc(this))};xwc.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 dtc("fb")))};
var Awc=function(a,b){a.ha=b},zwc=function(a){a.H||(a.H=new _.tkc(5E3),a.timeout=_.n.setTimeout(function(){return Bwc(a)},a.H.Wa()))},Bwc=function(a){ywc(a);a.H&&(_.ZH(a.H),a.timeout=_.n.setTimeout(function(){return Bwc(a)},a.H.Wa()))},ywc=function(a,b){var c=_.Wh();a.ha&&(c=a.ha());c.then(function(){return Cwc(a,b)})},Cwc=function(a,b){a.log("Checking authentication state.");var c=a.Ba.then(function(d){return d.Pe(new _.Hhc)});b?c.then(function(){b.resolve(vwc(new uwc,1))},function(d){var e=_.wd(d).tg;
d=0;_.sgc(e)?(a.log("Checked authentication state: unauthenticated."),d=2):(a.log("Checked authentication state: error occurred."),_.Ho(e),_.x(e,21,"Checked authentication state: error occurred."),a.ka(e));e=new uwc;vwc(e,d);b.resolve(e)}):c.then(null,function(d){d=_.wd(d);_.sgc(d.tg)&&a.V&&(a.dispatchEvent(new dtc("gb")),a.V=!1)})};xwc.prototype.log=function(a){this.ma.info("drive.ds.sync.auth.StateManager",a)};_.Ihc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};
_.xhc=function(a){this.H=a;this.type=1};_.yhc=function(a){this.H=a;this.type=0};_.Fhc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};Dwc=function(a){return _.Hj(a,_.nI,3,_.oI)||_.Hj(a,_.FJ,4,_.oI)||_.Hj(a,_.uK,5,_.oI)||_.Hj(a,_.CJ,6,_.oI)||_.Hj(a,_.bJ,7,_.oI)||_.Hj(a,_.VI,8,_.oI)||_.Hj(a,_.ZI,9,_.oI)||_.Hj(a,_.xI,10,_.oI)};Ewc=function(a){_.J.call(this,a)};_.K(Ewc,_.J);_.g=Ewc.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};
_.g.cA=function(){return _.z(this,3)};_.g.Ie=function(){return _.z(this,4)};_.g.Ai=function(a){return _.x(this,4,a)};_.g.pma=function(){return _.mj(this,4)};var Fwc=function(a){this.Yf=a;this.H=new Map;this.O=this.Yf.W};
Fwc.prototype.create=function(a,b){if(0!=rsc(b)){var c=this.Yf.H(106001);if(c){var d=rsc(b),e=cL(c);_.x(e,2,d);d=cL(c);e=null;if(b instanceof _.jG||b instanceof _.XF||b instanceof _.Df||b instanceof _.pJ||b instanceof _.oD||b instanceof _.bG||b instanceof _.RH||b instanceof _.PH||b instanceof _.cG||b instanceof _.eA)e=b.se();e=e&&_.R(e,2,!1);_.x(d,7,"boolean"==typeof e?e:void 0);d=cL(c);b=b instanceof _.Df?0<_.pl(b).length:void 0;_.x(d,8,b);this.H.set(a,c)}}};
var Gwc=function(a,b,c){if(a=a.H.get(b))a=cL(a),_.x(a,5,c)},Hwc=function(a,b,c){(a=a.H.get(b))&&_.Q(cL(a),8)&&(a=cL(a),_.x(a,9,c))},Iwc=function(a,b,c,d,e){var f=a.H.get(b);f&&(cL(f).Dc(c),cL(f).ri(d),null!=e&&(c=cL(f),_.x(c,6,e)),f.Dj(),a.H.delete(b))},Jwc=function(a,b,c){var d=a.H.get(b);if(d){var e=a.O.Cb(c);c=ssc(c);if(1==e||2==c)e=_.jK(_.fgc,c),d=cL(d),d=3==e||8==e?!_.Q(d,5):0!=e?_.Egc.has(e):null,Iwc(a,b,1,e,d)}},Kwc=function(a,b,c){var d=a.O.Cb(c);d=_.jK(_.egc,d||22);var e=ssc(c);e=_.jK(_.fgc,
e);Iwc(a,b,d,e,"undefined"!=typeof _.nK&&c instanceof _.nK||"undefined"!=typeof _.pK&&c instanceof _.pK||"undefined"!=typeof _.qK&&c instanceof _.qK?c.J0:null)},IL=function(a,b,c){c=void 0===c?3:c;var d=a.H.get(b);d&&(cL(d).Dc(c),d.Dj(),a.H.delete(b))},Lwc=[2,4],JL=function(a){_.J.call(this,a,-1,Lwc)};_.K(JL,_.J);JL.prototype.Cb=function(){return _.z(this,1)};JL.prototype.Dc=function(a){return _.x(this,1,a)};JL.prototype.$j=function(){return _.z(this,3)};
var Mwc=[4,9],Nwc=function(a){_.J.call(this,a,-1,Mwc)};_.K(Nwc,_.J);_.g=Nwc.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.vYa=function(){return _.z(this,2)};_.g.uOa=function(){return _.z(this,3)};_.g.ivb=function(){return _.yb(this,_.qI,4)};var Owc=[2],KL=function(a){_.J.call(this,a,-1,Owc)};_.K(KL,_.J);KL.prototype.getName=function(){return _.z(this,1)};KL.prototype.$c=function(a){return _.x(this,1,a)};KL.prototype.H=function(){return _.yb(this,iL,2)};
var Pwc=function(a,b){_.tj(a,2,b)};KL.prototype.qc=function(){return _.z(this,3)};var Qwc=function(a,b){return _.x(a,3,b)},Rwc=[2],LL=function(a){_.J.call(this,a,-1,Rwc)};_.K(LL,_.J);LL.prototype.Cb=function(){return _.z(this,1)};LL.prototype.Dc=function(a){return _.x(this,1,a)};LL.prototype.H=function(){return _.yb(this,KL,2)};var Swc=function(a,b){return _.tj(a,2,b)};LL.prototype.$j=function(){return _.z(this,3)};var Twc=function(a){_.J.call(this,a)};_.K(Twc,_.J);_.g=Twc.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 _.mj(this,3)};var Uwc={A$b:0,b5b:1,e5b:2,c5b:4,F2b:5,N_b:6,M2b:7,r5b:8},Vwc=function(a){_.J.call(this,a)};_.K(Vwc,_.J);Vwc.prototype.getUrl=function(){return _.z(this,1)};var ML=function(a){_.J.call(this,a)};_.K(ML,_.J);var Wwc=function(a,b){return _.x(a,1,b)};
ML.prototype.getName=function(){return _.z(this,2)};ML.prototype.$c=function(a){return _.x(this,2,a)};ML.prototype.getEmail=function(){return _.z(this,3)};var Xwc=function(a,b){return _.x(a,3,b)};ML.prototype.yq=function(){return _.mj(this,3)};var Ywc=[1],Zwc=function(a){_.J.call(this,a,-1,Ywc)};_.K(Zwc,_.J);var $wc=function(a,b){return _.tj(a,1,b)},axc=[2],NL=function(a){_.J.call(this,a,-1,axc)};_.K(NL,_.J);NL.prototype.Cb=function(){return _.z(this,1)};
NL.prototype.Dc=function(a){return _.x(this,1,a)};NL.prototype.Zk=function(){return _.yb(this,_.dI,2)};var bxc=function(a,b){return _.tj(a,2,b)};NL.prototype.$j=function(){return _.z(this,3)};var cxc=function(a,b){this.O=a|0;this.H=b|0};cxc.prototype.equals=function(a){return this===a?!0:a instanceof cxc?this.O===a.O&&this.H===a.H:!1};cxc.prototype.Ac=function(){return 31*this.O+17*this.H|0};
var dxc=function(a,b){return new cxc(a,b)},exc=function(a,b){b=~b;a?a=~a+1:b+=1;return dxc(a,b)},fxc=function(a){var b="-"===a[0];a=a.slice(b?3:2);return(b?exc:dxc)(parseInt(a.slice(-8),16),parseInt(a.slice(-16,-8)||"",16))},gxc=function(){this.H=this.W=this.O=this.V=null},hxc=[1],ixc=function(a){_.J.call(this,a,-1,hxc)};_.K(ixc,_.J);
var jxc=function(a,b){return _.rj(a,1,b)},kxc=function(a){this.W=a;this.O=new Map;this.V=new Set;this.enabled=!0;this.error=null;this.started=!1},OL=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)}},PL=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?_.OI(f):null,f;}}}};kxc.prototype.H=function(a){return this.V.has(a)};kxc.prototype.start=function(){this.started=!0};kxc.prototype.log=function(a){this.W.info("drive.ds.MilestoneManager",a)};
var lxc=function(a,b,c){this.id=a;this.O=b;this.H=c},mxc=function(a,b){return new lxc((a?a:b).getId(),a,b)},QL=function(a){return new lxc(a.getId(),null,a)},nxc=function(a,b){this.Et=a;this.Uv=b;this.OD=!0;this.Z8=!1;this.Oe=0},RL=function(a,b){(a.OD=b)||a.LJ()};_.g=nxc.prototype;_.g.Vla=function(a,b){if(5===this.$E(a))throw Error("Af");for(var c=[],d=_.m(this.Dy()),e=d.next();!e.done;e=d.next())e=e.value,BL(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.Vla(a,b);a=Doc(a);b=new _.eI;b.hB(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.mS(a.H);return!0};_.g.$E=function(a){return this.OD&&this.Z8?Cvc(a)?1:5:5};_.g.VX=function(){this.Z8=!0};_.g.Ds=function(a){return!!a&&this.OD};_.g.ri=function(a){this.Oe=a};_.g.We=function(){return this.Oe};
var SL=function(a,b,c,d,e,f){f=void 0===f?"":f;nxc.call(this,a,b);var h=this;this.ha=c;this.nextPageToken=f;this.Dd=[];this.O={};this.request=CL(c,d,!0);this.W=hL(c,d);this.H=!e;oxc(this,e);this.V=function(k,l){return h.Uv.compare(h.request,k,l)}};_.K(SL,nxc);_.g=SL.prototype;_.g.jd=function(){return this.request};_.g.lN=function(){return this.W};
_.g.mS=function(a){var b=this.O[a.getId()];b&&this.BJ(b);wnc(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.$E=function(a){var b;if(b=this.ha.equals(this.request,a,!0))a=a.H(),b=this.request.H(),b=Gnc(b,a,_.ghc);return b?this.H?1:6:5};_.g.Vla=function(a,b){if(5===this.$E(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(!nxc.prototype.Ds.call(this,a)||!BL(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),oxc(this,_.ja(a))):this.H=!0);_.Ma(a,function(e){c.update(QL(e))})};var oxc=function(a,b){b&&BL(a.Et,a.request,b.getItem())&&a.mS(b)};SL.prototype.Iy=function(){return this.nextPageToken};var TL=function(a,b){nxc.call(this,a,b);this.Dd=new Map};_.K(TL,nxc);TL.prototype.mS=function(a){this.Dd.set(a.getId(),a);a.count++};
TL.prototype.BJ=function(a){this.Dd.delete(a.getId());a.count--};TL.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};TL.prototype.Dy=function(){return Array.from(this.Dd.values())};var pxc=function(a,b){TL.call(this,a,b);this.VX()};_.K(pxc,TL);_.g=pxc.prototype;
_.g.$E=function(a){var b=this,c=TL.prototype.$E.call(this,a);if(5===c)return c;if(0<_.se(a,33).length)return 5;a=_.pl(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 TL.prototype.Ds.call(this,a)&&!(null===a||void 0===a?0:a.getItem().uc())};_.g.Vla=function(a,b){for(var c=[],d=_.m(this.Dy()),e=d.next();!e.done;e=d.next())e=e.value,BL(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 qxc=function(a){return[].concat(_.fc(a.Dd.values())).filter(function(b){return b.H}).map(function(b){return b.getId()})},UL=function(a,b,c,d){TL.call(this,a,b);var e=this;this.H=d;OL(c,["aU7Ts","BNEDtc"],function(){return e.VX()})};_.K(UL,TL);
UL.prototype.$E=function(a){var b=this,c=TL.prototype.$E.call(this,a);if(5==c)return c;if(0<_.se(a,33).length)return 5;a=_.pl(a);return 0<a.length&&!a.every(function(d){d=b.Dd.get(d.Wa());return null!=d&&!d.getItem().uc()&&Pnc(d.getItem())&&!_.Q(d.getItem(),108)})?5:1};UL.prototype.Ds=function(a){return TL.prototype.Ds.call(this,a)&&rxc(this,a.getItem())};var rxc=function(a,b){if(_.Q(b,31)||!a.Z8)return!0;var c=a.H();return b.wk().some(function(d){var e=a.Dd.get(d);return d==c||null!=e&&Pnc(e.getItem())})};
_.g=UL.prototype;_.g.VX=function(){TL.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;rxc(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 sxc=/^[\x00-\x7F]*$/,VL=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=""};VL.prototype.mz=function(a){this.rootId=a||""};
var Cvc=function(a){return txc(a)&&0==_.se(a,40).length&&void 0==_.z(a,41)},txc=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,_.il,5).length&&0==_.yb(a,_.Ff,14).length&&0==_.yb(a,_.Ff,15).length&&!_.mj(a,58)&&!_.Q(a,18)&&!_.Q(a,34)&&0==_.yb(a,_.dl,35).length&&0==_.yb(a,_.dl,38).length&&c&&b&&0==_.se(a,39).length&&!_.z(a,42)&&0==_.yb(a,_.cl,44).length&&!_.lJ(a)&&!_.mJ(a)&&!_.nJ(a)&&0==_.yb(a,_.el,57).length&&uxc(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)},uxc=function(a){return _.yb(a,_.jl,4).every(function(b){b=b.Wa();return!b||!b.includes("*")&&sxc.test(b)})};VL.prototype.U9=function(a,b){var c=this;return b.filter(function(d){return BL(c,a,d)})};var BL=function(a,b,c){return!!c&&vxc(a,c)&&a.H.every(function(d){return d.call(a,b,c)})},vxc=function(a,b){return b.getId()!=a.rootId&&!AL(b)};
VL.prototype.W=function(a,b){var c=!0,d=_.yb(a,_.jl,4);if(!uxc(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,_.Eg)(l).length&&(0==l.replace(/\./g,
"").length&&(p=!1),l=!!h.match(p?new RegExp("(^|[^\\w])"+_.lh(l)+"($|[^\\w])|(^|[ ])"+_.lh(l)):new RegExp(_.lh(l))),c=c&&(f?!l:l))}}}return c};
VL.prototype.O=function(a,b){var c=_.ol(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();_.KJ(a)&&(q=q.toLowerCase(),l=l.toLowerCase());k=0===_.pj(k,3,0)?q===l:l.includes(q);p?(e++,h=h||k):(d++,f=f||k)}return d&&!f||e&&h?!1:!0};
VL.prototype.V=function(a,b){var c=!0;a=_.yb(a,_.gl,7);a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b.Oq();c=c&&wxc(e,d)}return c};VL.prototype.ha=function(a,b){var c=!0;a=_.yb(a,_.gl,8);a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b.Bz();c=c&&wxc(e,d)}return c};var wxc=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=VL.prototype;_.g.DHb=function(a,b){var c=a.Qh();a=_.UJ(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.nB()};_.g.pHb=function(a,b){return null==_.Q(a,11)||_.Q(a,11)==!!_.Q(b,6)};_.g.sHb=function(a,b){a=_.pl(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.My():!0)};_.g.nHb=function(a,b){var c=_.Q(a,17);a=_.UJ(a);return null==c||c==!!b.gJ()&&(!c||1==b.Dp()||!(!a||2!=a&&3!=a))};_.g.qHb=function(a,b){b=Ync(b);return null==_.Q(a,19)||_.Q(a,19)==!!_.Fk(b)};
_.g.xHb=function(a,b){a=_.yb(a,_.TJ,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.iA().length)return!0;if(0==b.iA().length)return!1;var c=new Set(b.iA().map(function(d){return d.WR()}));return a.iA().some(function(d){return c.has(d.WR())})};_.g.AHb=function(a,b){a=_.se(a,33);return!a.length||a.includes(b.uc()||"")};_.g.oHb=function(a,b){a=_.yb(a,_.hl,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,_.OJ,86),null!=b&&_.z(a,41)==_.z(b,3)):!0};_.g.BHb=function(a,b){if(_.se(a,40).length){if(b=_.y(b,_.OJ,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=_.UJ(a);return 1==c?(b=_.Q(b,31),!!_.pl(a).length||!!_.yb(a,_.dl,35).length||1==_.Q(a,18)||_.lJ(a)||_.mJ(a)||_.nJ(a)||!!a.$q()||null==b||b):2==c?!!b.uc():!0};
_.g.uHb=function(a,b){return _.lJ(a)?!_.mj(b,100)||b.Qh()?!1:_.R(a,74,!1)?!!_.Q(_.Mk(b),4):!!_.Q(_.Mk(b),3):!0};_.g.tHb=function(a,b){return _.mJ(a)?!!_.Nk(b).length&&!b.Qh():!0};_.g.lHb=function(a,b){return _.nJ(a)?!!_.Ok(b).length&&!b.Qh():!0};_.g.vHb=function(a,b){return _.mj(a,50)?_.R(a,50,!1)?_.mj(b,101)&&0!==_.z(b,101):!_.mj(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,_.MJ,138);return null==_.Q(a,65)||null==b?!0:_.Q(a,65)==(2==_.z(b,1))};var WL=function(a,b,c,d){d=void 0===d?5E3:d;TL.call(this,a,b);this.teamDriveId=c;this.limit=d};_.K(WL,TL);_.g=WL.prototype;
_.g.$E=function(a){var b=this,c=TL.prototype.$E.call(this,a);if(5==c)return c;c=_.pl(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 TL.prototype.Ds.call(this,a)&&!!a&&a.getItem().uc()==this.teamDriveId&&!AL(a.getItem())};_.g.dO=function(){return!1};_.g.jd=function(){var a=new _.Df;_.rl(a,[this.teamDriveId]);_.sl(a,2);return a};
_.g.lN=function(){return null};_.g.uc=function(){return this.teamDriveId};_.g.getType=function(){return"TeamDriveCorpusCache: "+this.teamDriveId};var xxc=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=CL(this.W,a,!0)};
xxc.prototype.add=function(a){a instanceof UL?this.H=a:a instanceof pxc?this.O=a:a instanceof SL?(this.log("Adding new cache hint for "+hL(this.W,a.jd(),2)),this.ha.push(a)):a instanceof WL&&this.V.push(a)};
xxc.prototype.remove=function(a){var b=this;if(a instanceof UL)this.H&&(RL(this.H,!1),this.H=null);else if(a instanceof pxc)this.O&&(RL(this.O,!1),this.O=null);else if(a instanceof SL){var c=_.la(this.ha,function(d){return b.W.equals(d.jd(),a.jd())});0<=c&&(RL(this.ha[c],!1),_.va(this.ha,c))}else a instanceof WL&&(c=_.la(this.V,function(d){return b.W.equals(d.jd(),a.jd())}),0<=c&&(RL(this.V[c],!1),_.va(this.V,c)))};
var yxc=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},zxc=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),_.uj(c,26),!_.Dj(a.ma,c)):!0})};xxc.prototype.OW=function(){return _.Aa(this.V)};var Axc=function(a,b){return _.Cg(a.V,function(c){return c.uc()===b})},Bxc=function(a,b){return zxc(a).find(function(c){return a.W.equals(c.jd(),CL(a.W,b,!0))})};
xxc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.CorpusCacheList",a,void 0===b?"info":b)};var Cxc=function(a,b){_.oi.call(this,"tb");this.ids=a;this.error=b};_.K(Cxc,_.oi);Cxc.prototype.getError=function(){return this.error};Cxc.prototype.H=function(){return this.ids};var Dxc=function(a){_.oi.call(this,"ub");this.people=a};_.K(Dxc,_.oi);Dxc.prototype.getPeople=function(){return this.people};var Exc=function(a){_.oi.call(this,"vb");this.people=a};_.K(Exc,_.oi);
Exc.prototype.getPeople=function(){return this.people};var Fxc=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)};Fxc.prototype.We=function(){return this.Oe};
var Gxc=function(a){return 0===a.Oe?1:2===a.Oe||(1===a.Oe||4===a.Oe)&&(a.person.yq()||a.O)?3:2},Hxc=function(a,b,c){if(_.z(b,1)!==_.z(a.person.clone(),1))return!1;6===c&&(a.O=!0);var d=Gxc(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=Xwc(b.clone(),a.getEmail(b)),e=!_.Dj(a.person,b),a.person=b,a.Oe=c,e||d!==Gxc(a);if(4===c)return a.Oe=c,_.x(a.person,6,_.z(b,6)),d!==Gxc(a);c=b;return!a.person.getEmail()&&c.getEmail()?(Xwc(a.person,a.getEmail(b)),!0):!1};
Fxc.prototype.getEmail=function(a){var b=this.person.getEmail();a=a.getEmail();return!a&&b&&0!==b.length?b:a};var Jxc=function(a,b,c,d){var e;_.zi.call(this);var f=this;this.O=a;this.V=b;this.W=c;this.ka=d;this.H=[];this.ha=(null===(e=_.JJ(a))||void 0===e?0:_.R(e,20,!1))?450:50;this.ma=new _.kI(function(){return Ixc(f)},100,this)};_.K(Jxc,_.zi);Jxc.prototype.mh=function(a){a&&_.mI(this.O)&&(this.H.includes(a)||this.H.push(a),this.ma.qe())};
var Ixc=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)}})};Jxc.prototype.sendRequest=function(a){var b=this;return this.W.then(function(c){var d=c.Pe;var e=new _.uJ;e=_.rj(e,1,a);return d.call(c,e)}).then(function(c){c=_.yb(c,ML,1);b.dispatchEvent(new Dxc(c))},function(c){c=_.wd(c);b.dispatchEvent(new Cxc(a,c))})};
Jxc.prototype.log=function(a){this.V.info("drive.ds.sync.query.PeopleQueryRunner",a)};
var Mxc=function(a,b,c,d,e){_.zi.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=_.Ej(_.y(a,grc,85)||new grc,1,864E5);this.W=new Jxc(a,b,c,e);this.ma=new _.DD(function(){var h,k=null===(h=f.ha)||void 0===h?void 0:eL(h,106015);if(k){h=_.y(_.iK(k),Nrc,11);if(!h){h=new Nrc;var l=_.iK(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();Kxc(f,
h,1);f.ma.qe()});this.Oc.listen(this.W,"tb",function(h){Lxc(f,h)})};_.K(Mxc,_.zi);Mxc.prototype.get=function(a){var b=this.H.get(a);return b?(Nxc(this,b)&&Oxc(this,a),b):null};var Oxc=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 _.fn;a.V.set(b,c);return c.promise};Mxc.prototype.Sb=function(a){var b=this;return Pxc(this,a)?Promise.resolve(this.H.get(a)):Oxc(this,a).then(function(){return b.H.get(a)})};
Mxc.prototype.lc=function(){return 0===this.H.size};Mxc.prototype.clear=function(){this.log("Clearing the PeopleCache.");this.H.clear();this.O.clear()};
var Qxc=function(a){return[].concat(_.fc(a.H.values())).filter(function(b){return 3===Gxc(b)&&4!==b.We()}).map(function(b){return b.person.clone()})},Rxc=function(a,b){return(a=a.H.get(b))?[].concat(_.fc(a.H)):[]},Sxc=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)))}},Kxc=function(a,b,c){if(![1,2].includes(c))throw Error("Bf");0!==b.length&&(a.log("Importing "+b.length+" from "+
(Object.keys(Uwc)[c]+".")),Txc(a,b,c))},Vxc=function(a,b,c,d){0!==b.length&&Uxc(a,b,c,void 0===d?0:d)},Pxc=function(a,b){b=a.H.get(b);return!(!b||3!==Gxc(b)||Nxc(a,b))},Uxc=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)Hxc(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&&Oxc(k,_.z(f,1));k.H.set(_.z(f,1),new Fxc(f,p,l))}e&&1===d&&(f.getName()?a.O.delete(h):a.O.add(h))}return e},Nxc=
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}};Mxc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.PeopleCache",a,void 0===b?"info":b)};
var Lxc=function(a,b){b=b.H().map(function(c){var d=a.H.get(c);return d?d.person.clone():Wwc(new ML,c)});Txc(a,b,4)},Txc=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)}Uxc(a,b,void 0,c)&&a.dispatchEvent(new Exc(b))},Wxc=function(a,b,c,d,e){_.zi.call(this);var f=this;this.Oc=new _.of(this);this.Ja(this.Oc);this.H=new Mxc(a,b,c,d,e);this.O=_.JJ(a)||new _.yic;this.Oc.listen(this.H,
"vb",function(h){return f.dispatchEvent(h)})};_.K(Wxc,_.zi);Wxc.prototype.DP=function(a){var b=this;if(a.H){var c=a.H.getItem(),d=Xxc(this,[c]).map(function(e){return Yxc(b,e)});Vxc(this.H,d,a.H.getId(),this.We(_.z(c,82)))}a.O&&Sxc(this.H,a.id,Zxc(this,a))};Wxc.prototype.We=function(a){return _.Lgc.get(a)||0};
var Zxc=function(a,b){var c=$xc(a,b.O),d=$xc(a,b.H);return c.filter(function(e){return!d.includes(e)})},$xc=function(a,b){return b?ayc(a,[b.getItem()]):[]},cyc=function(a,b){b=b.getUser();Vxc(a.H,[Yxc(a,b)],"ACCOUNT");byc(a,b)},eyc=function(a,b){var c=_.yb(b,_.bK,2).map(function(d){var e=_.y(d,_.wk,9,1);return a.H.Sb(MK(e)).then(function(){return void dyc(a,[e])})});return Promise.all(c).then(function(){return b})},fyc=function(a,b){dyc(a,Xxc(a,b))},dyc=function(a,b){b=_.m(b);for(var c=b.next();!c.done;c=
b.next())c=c.value,MK(c)&&byc(a,c)},gyc=function(a,b,c){for(var d=new Set,e=_.m(b),f=e.next();!f.done;f=e.next())f=f.value,MK(f)&&(d.add(MK(f)),Vxc(a.H,[Yxc(a,f)],c));return Promise.all([].concat(_.fc(d)).map(function(h){return a.H.Sb(h)})).then(function(){return dyc(a,b)})},hyc=function(a,b){return ayc(a,[b]).some(function(c){return!Pxc(a.H,c)})},ayc=function(a,b){var c=new Set;a=Xxc(a,b);a=_.m(a);for(b=a.next();!b.done;b=a.next())(b=MK(b.value))&&c.add(b);return[].concat(_.fc(c))},Xxc=function(a,
b){return b.map(function(c){var d=c.Bw();d=d?[].concat(_.fc(d.YR()),_.fc(_.yb(d,_.wk,3))):[];var e=c.wf();e=(e=e&&_.xe(e))?Xxc(a,[e]):[];return[].concat(_.fc(_.Kk(c)),[c.Cm(),c.bs(),c.qq(),c.FD()],_.fc(d),_.fc(e))}).flat().filter(function(c){return c&&!!MK(c)})};Wxc.prototype.Hd=function(a){return Rxc(this.H,a).filter(function(b){return"ACCOUNT"!==b})};
var iyc=function(a){return $wc(new Zwc,Qxc(a.H))},jyc=function(a,b){return b.map(function(c){c=c.clone();var d=Xxc(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})},lyc=function(a,b){return b.some(function(c){return kyc(a,c)})},kyc=function(a,b){return Xxc(a,[b]).some(function(c){return _.mj(c,3)||c.yq()||_.mj(c,5)})},byc=function(a,b){var c=a.H.get(MK(b));if(c){a=c.person.clone();var d=_.bic(b.$c(a.getName()),a.getEmail());c=Gxc(c);_.x(d,16,
c);(a=_.y(a,Vwc,4))&&b.On(a.getUrl())}},Yxc=function(a,b){var c=MK(b);c=Xwc(Wwc(new ML,c).$c(b.getName()),b.getEmail());var d=new Vwc;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},myc=function(){this.suggestionSessionId=this.W=null;this.V=[];this.incompleteSearch=!1;this.O=[];this.H=!0};myc.prototype.Vf=function(){return this.suggestionSessionId};myc.prototype.CBa=function(){return this.O};myc.prototype.lc=function(){return this.H};
var nyc=function(a){if(!a)return null;a=a.split("/");return 2>a.length?null:a[1]},oyc=function(a,b){a=nyc(a);b=nyc(b);return!(!a||!b||a!==b)},pyc=function(a){return a.qc()+"_"+nyc(a.getName())},qyc=function(a,b){var c=_.se(a,1).map(function(d,e){return b[Number(e)].value.j6a.promise});return Promise.allSettled(c).then(function(d){return _.se(a,1).map(function(e,f){e=e.toString();var h=new Twc;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})})},XL=function(a,
b){_.N.call(this);this.O=a;this.request=b;this.Vy=new Set;this.status=6;this.W=new Map;this.Oe=0};_.K(XL,_.N);_.g=XL.prototype;_.g.Zh=function(a){var b=this;this.Vy.add(a);return this.resize().then(function(){return b.SO(a)})};_.g.fk=function(a){this.Vy.delete(a);0===this.Vy.size&&this.dispose()};_.g.We=function(){return this.Oe};_.g.ri=function(a){this.Oe=a};
_.g.LD=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():_.Wh([])};_.g.DY=function(){for(var a=[],b=_.m(this.Vy.values()),c=b.next();!c.done;c=b.next())a.push(this.SO(c.value));return _.Yh(a)};
_.g.CY=function(a){this.status=3;for(var b=[],c={},d=_.m(this.Vy.values()),e=d.next();!e.done;c={Vra:c.Vra},e=d.next())c.Vra=e.value,b.push(this.O.then(function(f){return function(h){return void h.CY(f.Vra,a)}}(c)));return _.Yh(b)};_.g.IA=function(){for(var a=this,b=[],c={},d=_.m(this.Vy.values()),e=d.next();!e.done;c={Wra:c.Wra},e=d.next())c.Wra=e.value,b.push(this.O.then(function(f){return function(h){return void h.IA(f.Wra)}}(c)));return _.Yh(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.Vy.forEach(function(d){d=b.Bla(d);c=Math.max(c,d.wi?d.wi()||0:0)});a.mga(c)})};var ryc=function(a,b){return b?a.W.get(a.bla(b))||null:null};_.g=XL.prototype;_.g.hG=function(a,b){var c=ryc(this,a);b=qvc(c,b);this.W.set(this.bla(a),b)};_.g.bla=function(a){return a};_.g.vOa=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 YL=function(a,b){_.oi.call(this,"Ab");this.error=a;this.retryCount=b};_.K(YL,_.oi);var ZL=function(a,b){_.zi.call(this);this.request=a;this.pageToken="";this.H=this.O=!1;this.data=[];this.limit=0;this.W=b};_.K(ZL,_.zi);var syc=function(a){return!a.O||""!==a.pageToken};ZL.prototype.mh=function(a){this.limit=void 0===a?1E5:a;return!this.H&&this.data.length<=this.limit&&syc(this)?tyc(this):_.Wh([])};
var tyc=function(a){a.O=!0;a.H=!0;var b=a.ija(a.request,a.limit-a.data.length,a.pageToken);return a.W(b).then(function(c){return uyc(a,c)},function(c){return a.handleError(c)})},uyc=function(a,b){a.H=!1;a.pageToken=a.ula(b);b=a.Hka(b);b.forEach(function(c){return a.data.push(c)});a.c7(b);return a.data.length<a.limit&&syc(a)?_.Yh([_.Wh(b),tyc(a)]).then(function(c){return c[0].concat(c[1])}):_.Wh(b)};
ZL.prototype.handleError=function(a){this.H=!1;a=_.vI(a);var b=new YL(a);this.wOa(b);this.dispatchEvent(b);return _.Xh(a)};ZL.prototype.c7=function(){};ZL.prototype.wOa=function(){};var vyc=function(a,b,c){ZL.call(this,c,function(d){return a.then(function(e){return e.Pe(d)}).then(null,function(e){LK(e)})});this.V=b};_.K(vyc,ZL);_.g=vyc.prototype;_.g.ija=function(a,b,c){a=a.clone();a.Gi(b);return new _.vhc(a,c)};_.g.ula=function(a){return a.pageToken||""};_.g.Hka=function(a){return a.response.H()};
_.g.c7=function(a){this.V.LD(a,!1,1)};_.g.wOa=function(a){this.V.LB(this.request,a)};var wyc=function(a,b,c,d){XL.call(this,a,d.clone());this.ha=b;this.V=c;this.data=[];this.H=null};_.K(wyc,XL);_.g=wyc.prototype;_.g.refresh=function(){this.IA();this.H=new vyc(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 oyc(b.getName(),a)})};
_.g.mga=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=Swc((new LL).Dc(this.status),this.data.filter(function(c){return a.V.LEa(c)}).map(function(c){return c.clone()}));return new _.oK(b,void 0,void 0,this.We())};_.g.LD=function(a,b,c){var d=this;a=a.filter(function(e){return e.qc()===d.request.qc()});return XL.prototype.LD.call(this,a,b,c)};
_.g.qw=function(a,b){b=void 0===b?1:b;if(!Xnc(ryc(this,a.getName()),b))return!1;var c=-1===b?0:this.data.length,d=this.data.findIndex(function(e){return oyc(e.getName(),a.getName())});-1<d&&(this.data.splice(d,1),c=d);this.data.splice(c,0,a);this.hG(a.getName(),b);return!0};_.g.removeItem=function(a){_.ya(this.data,function(b){return oyc(b.getName(),a)})&&(this.W.delete(this.bla(a)),this.DY())};_.g.bla=function(a){return nyc(a)};_.g.hG=function(a,b){this.Jp(a)&&XL.prototype.hG.call(this,a,b)};
_.g.vOa=function(a){var b=this;return a instanceof _.AJ&&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 $L=function(){this.H=new Map};$L.prototype.Zh=function(a,b){var c=this.getKey(b),d=this.H.get(c),e=!d;d||(d=this.lja(b),this.H.set(c,d));d.Zh(a);return e};var xyc=function(a,b,c){var d=a.getKey(c),e=a.H.get(d),f=!e;e||(e=a.uya(c),a.H.set(d,e));e.Zh(b);return f};
$L.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 yyc=function(a,b,c){var d=a.H.get(a.getKey(c));d&&(d.fk(b),d.isDisposed()&&a.H.delete(a.getKey(c)))},zyc=function(a,b){return a.H.get(b)};$L.prototype.LD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=a.filter(function(f){return d.LEa(f)});this.H.forEach(function(f){f.LD(e,b,c)})};$L.prototype.removeItem=function(a,b){b=b?this.H.get(b):null;(b?[b]:this.H).forEach(function(c){c.removeItem(a)})};
var Ayc=function(a,b){a=Array.from(a.H.values()).map(function(c){return c.vOa(b)});return[].concat.apply([],_.fc(a))};$L.prototype.hG=function(a,b){this.H.forEach(function(c){c.hG(a,b)})};$L.prototype.LEa=function(){return!0};$L.prototype.LB=function(a,b){(a=this.H.get(this.getKey(a)))&&a.CY(b)};$L.prototype.A3=function(a,b,c,d){var e=this.getKey(b),f=this.H.get(e);f||(f=this.lja(b),f.ri(c),this.H.set(e,f),this.LD(a,d))};
var Byc=function(){this.H=new Set;this.V=0;this.O=[]},Cyc=function(a,b){a.H.add(b)},Dyc=function(a,b){var c;if(c=b instanceof _.Jk)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 _.Jk?b.getId():b;return a.H.has(b)},Eyc=function(a,b){return _.ya(a.O,function(c){return c===b})&&b>a.V?(a.V=b,!0):!1};Byc.prototype.U9=function(a){var b=this;return a.filter(function(c){return!Dyc(b,c)})};
var Fyc=function(a,b){this.H=new Map;this.V=a;this.W=b;this.O=new Byc};_.K(Fyc,$L);var Gyc=function(a,b){Cyc(a.O,pyc(b));(a=zyc(a,b.qc()))&&a.DY()};_.g=Fyc.prototype;_.g.getKey=function(a){return a.qc()};_.g.lja=function(a){return new wyc(this.V,this.W,this,a)};_.g.uya=function(a){return new wyc(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=zyc(this,b.getId()))&&b.refresh()};_.g.LEa=function(a){return!Dyc(this.O,pyc(a))};
var Hyc=function(a){var b=new _.dI;b.Nb(a);return b},Iyc=function(){_.zi.call(this);this.H=Date.now()};_.K(Iyc,_.zi);Iyc.prototype.MF=function(){this.H=Date.now();this.dispatchEvent("Bb")};
var Jyc=function(a,b){this.O=a;this.H=b},Kyc=function(a,b){b=_.qWb(b);var c=new vyc(a.O,a.H,b);new Promise(function(d,e){return c.mh(100).then(d,e)})},Lyc=function(){this.Dd={}},aM=function(a,b){Myc(a,"subscribed");b&&Myc(a,b);return a.Dd[b||"subscribed"].ee.promise},Myc=function(a,b){a.Dd[b]||(a.Dd[b]={count:0,uS:[],j4a:[],ee:_.Zh()});a.Dd[b].count++},bM=function(a,b){b&&!Nyc(a,b)||Nyc(a,"subscribed")},Nyc=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].uS,
pOb:a.Dd[b].j4a}),_.bb(a.Dd,b));return!0};Lyc.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].j4a.push(e);c.Dd[d]&&c.Dd[d].uS.push(e)})};var Oyc=function(a,b,c){ZL.call(this,a,c);this.V=b};_.K(Oyc,ZL);Oyc.prototype.ija=function(a,b){return a.clone().Gi(b)};Oyc.prototype.ula=function(){return""};Oyc.prototype.Hka=function(a){return[a]};Oyc.prototype.c7=function(a){this.V(a)};
var Pyc=function(a,b,c,d){XL.call(this,a,d.clone());this.ka=b;this.H=this.V=null;this.ha=c};_.K(Pyc,XL);Pyc.prototype.refresh=function(){var a=this;this.IA();this.H=new Oyc(this.request,this.ha,function(b){return a.ka.then(function(c){return c.Pe(b)})});return this.H.mh(this.request.wi()||0)};Pyc.prototype.mga=function(a){1===this.status||this.H&&a===this.request.wi()||(this.request.Gi(a),this.H?this.H.mh(a):this.refresh())};
Pyc.prototype.nk=function(){if(this.V)return this.V;var a=new yL;a.Dc(this.status);return a};Pyc.prototype.qw=function(a){this.V=a;return!0};var Qyc=function(a,b,c){this.H=new Map;this.O=a;this.W=b;this.V=c};_.K(Qyc,$L);_.g=Qyc.prototype;_.g.log=function(a){this.V.info("drive.ds.sync.cache.SuggestedWorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};_.g.lja=function(a){var b=this;return new Pyc(this.O,this.W,function(c){b.LD(c,!1)},a)};_.g.uya=function(){throw Error("Cf");};
_.g.A3=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(", "));$L.prototype.A3.call(this,a,b,c,d)};var Ryc=function(a,b,c,d){_.zi.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(Ryc,_.zi);
Ryc.prototype.mh=function(){var a=this;if(this.ee)return this.ee.promise;this.ee=_.Zh();for(var b={},c=_.m(this.W(this.request)),d=c.next();!d.done;b={lsa:b.lsa,sfa:b.sfa},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.sfa=d;b.lsa=e;this.ma++;this.Ba.then(function(f){return function(h){return h.Pe(f.lsa)}}(b)).then(function(f){return function(h){var k=f.sfa;a.V(h);Syc(a,k)}}(b),function(f){return function(h){return void a.handleError(f.sfa,h)}}(b))}return this.ee.promise};
var Syc=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")};Ryc.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),Syc(this,a)):(a=new YL(c,_.Ej(this.ta.Tf(),1,1)),this.dispatchEvent(a),this.ee.reject(b))};var Tyc=function(a,b,c,d,e){Ryc.call(this,a.clone(),c,d,e);this.H=b};_.K(Tyc,Ryc);
Tyc.prototype.W=function(a){var b=new Map;_.se(a,1).forEach(function(c){var d=_.wVb(a.clone(),[c]);b.set(c,d)});return b};Tyc.prototype.V=function(a){var b=[];a.CU().forEach(function(c){b.push(c)});this.H(b,!0)};Tyc.prototype.ha=function(){this.H([],!1)};Tyc.prototype.ka=function(a){this.H([Hyc(a)],!0)};var Uyc=function(a,b,c,d,e,f){XL.call(this,a,f.clone());this.ma=b;this.V=c;this.ka=d;this.ha=e;this.Sk={};this.H=null};_.K(Uyc,XL);
Uyc.prototype.refresh=function(){this.H=new Tyc(this.request,this.ha,this.ma,this.V,this.ka);return this.H.mh()};Uyc.prototype.mga=function(){this.H||this.refresh()};Uyc.prototype.nk=function(){var a=new _.mK;a.Dc(this.status);_.Ta(this.Sk,function(b,c){a.CU().set(c,b||new _.dI)});a.ri(this.We());return a};Uyc.prototype.qw=function(a){var b=a.getId();if(_.Dj(a,Hyc(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 Vyc=function(a,b){a=a.getState();return null==a||b.getState()==a},Wyc=function(a,b,c){ZL.call(this,a,c);this.V=b};_.K(Wyc,ZL);Wyc.prototype.ija=function(a,b,c){a=a.clone();a.Gi(b);return new _.Ihc(a,c)};Wyc.prototype.ula=function(a){return a.pageToken||""};Wyc.prototype.Hka=function(a){return a.response.Zk()};Wyc.prototype.c7=function(a){this.V(a)};var Xyc=function(a){this.H=_.ddc(a,{numeric:!0})};
Xyc.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};Xyc.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 Yyc=function(a,b,c,d,e){XL.call(this,a,e.clone());this.ha=b;this.Sk=[];this.H=null;this.V=d;a=new Xyc(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(Yyc,XL);Yyc.prototype.refresh=function(){var a=this;this.IA();this.H=new Wyc(this.request,this.V,function(b){return a.ha.then(function(c){return c.Pe(b)})});return this.H.mh(this.request.wi()||0)};Yyc.prototype.mga=function(a){1===this.status||this.H&&a===this.request.wi()||(this.request.Gi(a),this.H?this.H.mh(a):this.refresh())};Yyc.prototype.nk=function(){var a=new NL;a.Dc(this.status);bxc(a,this.Sk.map(function(b){return b.clone()}));return new _.rK(a,void 0,1!==this.status&&syc(this.H),this.We())};
Yyc.prototype.qw=function(a){var b=_.ya(this.Sk,function(c){return c.getId()===a.getId()});return a&&Vyc(this.request,a)&&!_.Dj(a,Hyc(a.getId()))?wnc(this.Sk,a,this.ka):b};var Zyc=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(Zyc,$L);_.g=Zyc.prototype;_.g.log=function(a){this.W.info(this.logName,a)};_.g.getKey=function(a){return a.toString()};
_.g.lja=function(a){var b=this;return new Yyc(this.V,this.ha,$K(_.fI(this.O)),function(c){return void b.LD(c,!1)},a)};_.g.uya=function(a){var b=this;return new Uyc(this.V,this.ha,this.O,this.W,function(c,d){return b.LD(c,d)},a)};_.g.A3=function(a,b,c,d){this.log("Initialized "+a.length+" items for workspaces: "+a.map(function(e){return e.getId()}).join(", "));$L.prototype.A3.call(this,a,b,c,d)};
var $yc=function(a,b){b=void 0===b?!1:b;var c=a.getMimeType();PK(a)&&(c=(c=a.wf())?_.z(c,3):"");QK(a)&&(a.Mi()&&(c+="+"+String(a.Mi())),a.zj()&&(c+="+shared"));return _.nfa(c,b?"32":"16")},azc=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("&")},bzc=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();PK(a)&&(d=Onc(a));
d=[_.C(b,65,"https://lh3.google.com"),"u",_.wI(_.fI(b)),"d",d].join("/");_.R(b,89,!1)&&_.mj(a,140)&&(c.resourcekey=_.Pk(a));return d=azc(d+"={size}",c)},czc=function(a){this.H=a},ezc=function(a,b,c){if(c.includes(20)&&c.includes(3)){var d=$yc(b,_.R(a.H,75,!1));_.x(b,21,d)}c.includes(18)&&_.mic(b,Foc(b,a.H));c.includes(19)&&(d=bzc(b,a.H),_.x(b,20,d));dzc(a,b,c);if(PK(b)){if(d=(d=b.wf())&&_.xe(d)){if(c.includes(20)&&c.includes(3)){var e=$yc(d,_.R(a.H,75,!1));_.x(d,21,e)}c.includes(18)&&_.mic(d,Foc(d,
a.H));c.includes(19)&&(e=bzc(d,a.H),_.x(d,20,e));dzc(a,d,c)}_.x(b,44,!!b.Cz())}},dzc=function(a,b,c){var d=c.includes(41);c=c.includes(42);if(d||c){var e=b.getMimeType();e&&(e=!QK(b)&&!PK(b)&&!_.fe(e)&&(!b.V7()||2!==b.Dp()),d&&_.x(b,40,e),e&&c&&(a=a.H,d=b.getId(),PK(b)&&(d=Onc(b)),c=new _.$i(_.C(a,16,"")+"/uc"),_.ej(c,"id",d),_.ej(c,"authuser",_.wI(_.fI(a))),_.ej(c,"export","download"),_.R(a,89,!1)&&_.mj(b,140)&&_.ej(c,"resourcekey",_.Pk(b)),_.x(b,41,c.toString())))}},fzc=function(a,b){this.uja="";
this.startTime=b||new Date;this.H=a;this.Kaa=Hoc(a)};fzc.prototype.clone=function(){return new fzc(this.H,this.startTime)};var gzc=function(){this.H=null;this.tZ=[]},hzc=function(a){return _.Bf(a.tZ,function(b){return _.eb(b)})};gzc.prototype.IN=function(){return this.H};
gzc.prototype.O=function(a,b,c){if(this.H){var d=this.H;if(!a["X-Google-DapperTraceInfo"]){var e=new gxc;e.V=fxc(d.Kaa);var f=_.ph().substring(0,8);d=Hoc(f);f=(new Ewc).Nb(f);f=_.x(f,2,d);b=_.x(f,3,b).Ai(c);this.tZ.push(b);e.O=fxc(d);e.H=dxc(808464432,808464432);e.W=41;b=String.fromCharCode;c=b.apply;d=new _.Rj;if(e.V){f=e.V.O>>>0;var h=e.V.H>>>0;_.Sj(d,1,1);var k=d.H;Epc(k,f);Epc(k,h)}e.O&&(f=e.O.O>>>0,h=e.O.H>>>0,_.Sj(d,2,1),k=d.H,Epc(k,f),Epc(k,h));f=e.W;null!=f&&(_.Sj(d,3,5),Epc(d.H,f));e.H&&
(f=e.H.O>>>0,e=e.H.H>>>0,_.Sj(d,4,1),h=d.H,Epc(h,f),Epc(h,e));e=_.Tj(d);a["X-Google-DapperTraceInfo"]=_.n.btoa(c.call(b,null,e))}}};var izc=function(){this.Fb=[];this.O=this.H=0};izc.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 jzc=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},kzc=function(a){this.key=a;this.H=new _.Igc;this.O=new _.Ggc(new _.Igc,_.Uma(a))};kzc.prototype.encrypt=function(a){for(var b=[],c=0;16>c;c++)b[c]=Math.floor(256*Math.random());b=Hsc(b);c=lzc(this,a);return b.concat(c,mzc(this,b,a,!0))};
var nzc=function(a,b){var c=mzc(a,b.substring(0,16),b.substring(36),!1);b=b.substring(16,36);a=lzc(a,c);if(b!==a)throw Error("Df");return c},lzc=function(a,b){a=_.Hgc(a.O,_.Rgc(b));return Hsc(a)},mzc=function(a,b,c,d){a.H.reset();a.H.update(b);a.H.update(a.key);b=new izc;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=_.Rgc(c.substring(8192*
e,8192*(e+1))),jzc(b,a),d+=Hsc(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;jzc(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=ozc(d,e++),128>f?b[a++]=String.fromCharCode(f):191<f&&224>f?(h=ozc(d,e++),b[a++]=String.fromCharCode((f&31)<<6|h&63)):
239<f&&365>f?(h=ozc(d,e++),k=ozc(d,e++),l=ozc(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=ozc(d,e++),k=ozc(d,e++),b[a++]=String.fromCharCode((f&15)<<12|(h&63)<<6|k&63));b.length=a;d=b.join("")}else d="";return d},ozc=function(a,b){return a[Math.floor(b/8192)][b%8192]},pzc=function(a,b,c){this.data=a;this.h1a=b;this.H=c;this.isEncrypted=!1};pzc.prototype.getData=function(){return this.data};
pzc.prototype.Vm=function(){return this.h1a};var qzc=function(a,b,c,d){this.O=a;this.H=_.Zh();this.vp=!1;this.V=_.C(b,7,"");this.W=_.Ej(_.aL(b),6,2E7);this.lF=_.mI(b);this.ha=_.Ej(_.aL(b),12,0);this.ka=c;this.Yf=d||null};qzc.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 _.gi(this.H.promise)};
qzc.prototype.AB=function(a){if(a instanceof _.VB)return 0;if(a instanceof JL)return 1;if(a instanceof Ysc)return 5;if(a instanceof wL)return 3;if(a instanceof Zwc)return 6;throw new _.Gc("Unsupported dataShard in getDataType");};var rzc=function(a){if(0==a)return _.VB;if(1==a)return JL;if(5==a)return Ysc;if(3==a)return wL;if(6==a)return Zwc;throw new _.Gc("Unsupported dataType:"+a+" in getDataTypeCtor");};qzc.prototype.Xo=function(a){if(a instanceof wL)return a.Xo()};
qzc.prototype.Vm=function(a){if(a instanceof wL)return a.Bd().length};qzc.prototype.Lv=function(a){if(a instanceof wL)return a=a.Lv(),null!=a?a:void 0};
var wzc=function(a,b,c,d){if(0==c.length)return _.Wh();for(var e=a.AB(c[0]),f=_.m(c),h=f.next();!h.done;h=f.next())a.AB(h.value);var k=a.Xo(c[0]),l=0;3==e&&szc(a,c);var p=!!b;return tzc(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=uzc(a,b,q.map(function(w){return w.getData()})).then(function(w){if(w.length!=q.length)return _.Xh(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&&(Trc(Src(Rrc(dL(r),_.jK(_.lgc,e)),_.jK(_.igc,k)),!0),v.then(function(){var w=l;Qrc(dL(r),!0).gw(w);r.Dj()},function(){var w=l;Qrc(dL(r),!1).gw(w);r.Dj()}));return v}return q}).then(function(q){return a.H.promise.then(function(){return vzc(a.O,q,e,k,p,d)})})},tzc=function(a,b){return new _.Vh(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 pzc(p,a.Vm(l),a.Lv(l)))}});if(e){var h=
Error("Gf"),k=new _.Fc;_.tI(k,2);_.JI(k,23);_.x(k,21,h.message);_.Ho(k);a.ka(k);d(h)}c(f)})},szc=function(a,b){for(var c=_.m(b),d=c.next();!d.done;d=c.next());a.lF||xzc(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=$uc(new wL,f);d.push(f)}$uc(b[c],e);d.length&&_.Ob(_.ta,b,c+1,0).apply(null,d)}},cM=function(a,b,c,d,e,f){var h=_.Zh(),k;_.$h(a.H.promise.then(function(){return yzc(a.O,c,d,e)}).then(function(l){var p=l.map(function(r){return r.data}),
q=new _.ai;if(l[0]&&l[0].s1){if(k=a.Yf?a.Yf.H(106022,f):null)Trc(Src(Rrc(dL(k),_.jK(_.lgc,c)),_.jK(_.igc,d)),!0),q.nn().then(function(r){var v=k;r=void 0!=r;Qrc(dL(v),r);_.Hjc(v)});zzc(a,q,b,p)}else q.callback(p);return _.Wh(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 (rzc(c))(JSON.parse(r)),q+=a.Vm(r),p.push(r);3==c&&(a.lF||Azc(p),Bzc(p));k&&dL(k).gw(q)}h.resolve(p)}),function(){k&&k.Dj()}).fj(h.reject,h);return h.promise},
xzc=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,_.kic(f,Czc(_.Kk(f),b,c)),_.lic(f,Czc([f.Cm()],b,c)[0]),_.oic(f,Czc([f.bs()],b,c)[0]),_.sic(f,Czc([f.qq()],b,c)[0]),_.vic(f,Czc([f.FD()],b,c)[0]),f=f.Bw())_.hic(f,Czc(f.YR(),b,c)),_.iic(f,Czc(_.yb(f,_.wk,3),b,c))}var h=[];b.forEach(function(k){h.push(k)});_.tj(a[0],2,h)}},
Czc=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)?_.Dj(f,b.get(e))?d.push(c.get(e)):d.push(f):(b.set(e,f.clone()),f=new _.wk,f.Nb(e),c.set(e,f),d.push(f))):d.push(f)}return d},Azc=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 _.wk).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,_.kic(f,Dzc(_.Kk(f),b,c)),_.lic(f,Dzc([f.Cm()],b,c)[0]),_.oic(f,Dzc([f.bs()],b,c)[0]),_.sic(f,Dzc([f.qq()],b,c)[0]),_.vic(f,Dzc([f.FD()],b,c)[0]),f=f.Bw())_.hic(f,Dzc(f.YR(),b,c)),_.iic(f,Dzc(_.yb(f,_.wk,3),b,c));_.uj(d,2)}}},Dzc=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();_.Dj(c.get(f),e)?d.push(b.get(f).clone()):d.push(e)}else d.push(e);return d},Bzc=
function(a){for(var b={},c=1;c<a.length;b={afa:b.afa},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.afa=e.Bd();d.forEach(function(f){return function(h){_.Ca(f.afa,h.Bd())}}(b));$uc(e,b.afa)}},uzc=function(a,b,c){if(!_.tgc()&&a.V){var d=new Worker(_.pca(_.Ny(a.V)),void 0),e=new _.ai;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=jxc(new ixc,
c);d.postMessage({command:"encrypt",data:{request:c.Hc(),key:b}});return e}try{a=[];var f=new kzc(b);for(b=0;b<c.length;b++)a.push(f.encrypt(c[b]));var h=_.fi(a)}catch(k){h=_.hi(k)}return h},zzc=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(!_.tgc()&&a.V){var f=new Worker(_.pca(_.Ny(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 kzc(c);for(c=0;c<d.length;c++)a.push(nzc(h,d[c]));b.callback(a)}catch(k){b.callback(void 0)}},Ezc=/^[\w]+$/,Fzc=function(a,b,c){return[a.Fu(),a.clientId,b?"#":dM(a)].join(":")+":"+(c||"")},Gzc=function(a,b,c){this.global=void 0===c?!1:c;a.match(Ezc);this.key=a;this.value=b};Gzc.prototype.getKey=function(){return this.key};Gzc.prototype.Wa=function(){return this.value};
var Hzc=function(a,b){return{k:Fzc(b,a.global,a.key),v:a.value}},Izc=function(a,b){a=Fzc(a,b);return Puc(a+"A",a+"z")},Jzc=function(a,b){this.H=a;this.O=b},Kzc=function(a){return a?new Jzc(a.versionKey,a.versionChangeTimestamp):null},Lzc=function(a,b){return a+":"+b},Mzc=function(a,b,c,d,e){this.data=a;this.index=b;this.size=c;this.timestamp=d;this.s1=void 0===e?null:e},Nzc=function(a){return{data:a.data,index:a.index,size:a.size,timestamp:a.timestamp,e:a.s1}},Ozc=function(a,b,c,d){a=dM(a)+"_"+b;
3===b&&(a+="_"+d);return a+=(0,_.Ys)(":%02d",c)},Pzc=function(a,b,c,d){c=Ozc(a,b,void 0===c?0:c,d);a=dM(a)+"_"+b;3===b&&(a+="_"+d);return Puc(c,a+":a")},Qzc=function(a){var b=dM(a)+"_";a=dM(a)+"_A";return Puc(b,a)},Rzc=function(a){return a?new Mzc(a.data,a.index,a.size,a.timestamp,a.e):null},Szc=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};Szc.prototype.Fu=function(){return this.userId};Szc.prototype.eh=function(){return _.Aa(this.fields)};
var dM=function(a){if(!a.O){var b=new _.SH;b.update([a.userId,a.clientId,a.W,a.V].join(":"));b.update(a.fields);a.O=_.Wec(b.digest())}return a.O},Tzc=function(a){return{versionKey:dM(a),versionInfo:{u:a.userId,c:a.clientId,pv:a.W,phk:a.V,f:a.fields},lastAccessedTimestamp:a.H}},Uzc=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 Szc(c.u,c.c,c.pv,c.phk,c.f,a.lastAccessedTimestamp);b?a.O=d:dM(a)!==d&&(a=null);return a},eM=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(eM,_.N);eM.prototype.initialize=function(){return Vzc(this)};
var Vzc=function(a,b){a.V||(a.V=_.Zh(),a.Qa.then(function(){b?(a.wa=!1,Wzc(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)"),_.Pdc("GoogleDriveDs",2,a.Ga.bind(a),a.ta.bind(a)).eg(a.La.bind(a),a.ta.bind(a)),_.Di(2E4).then(a.Ia.bind(a)))},function(c){a.V.reject(new _.Gc("Database version error",void 0,_.sI(c)?c:void 0))}));return a.V.promise},Wzc=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"))};eM.prototype.Ga=function(a,b){this.log("Upgrading GoogleDriveDs to version "+a.newVersion);this.Ba=!0;_.Ma(b.H.objectStoreNames,function(c){return _.Hic(b,c)});_.Ta(_.DI,function(c){var d=_.Mgc.get(c);_.Mdc(b,c,d?{keyPath:d}:void 0)})};
eM.prototype.ta=function(a){var b;a&&a instanceof _.UH&&"InvalidStateError"==a.getName()&&_.kj.jv?b=Error("Hf"):_.sI(a)&&(b=a);this.ha("Unable to open database GoogleDriveDs (version 2)");this.V.reject(b);Xzc(this,!1)};eM.prototype.La=function(a){this.ka?a.dispose():(Wzc(this,a),this.Ja(this.H),this.readOnly||Yzc(this).then(null,function(){}),this.log("Initialized database GoogleDriveDs"),this.V.resolve(),Xzc(this,!0))};
var Xzc=function(a,b){if(a.ma){var c=a.ma,d=_.y(_.iK(c),Krc,5);d||(d=new Krc,c=_.iK(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}};eM.prototype.Ia=function(){this.H||this.Gf()||(this.ha("Opening database GoogleDriveDs timed out."),this.ta(Error("If")))};eM.prototype.ha=function(a){this.log(a);this.ka||(this.ka=!0,this.O="Database disabled: "+a,this.H&&this.wa&&this.H.close())};eM.prototype.Gf=function(){return this.ka};
var Zzc=function(a){return a.ka?a.O:null};eM.prototype.nj=function(){return this.version};
var fM=function(a,b,c){c=void 0===c?"readonly":c;if(a.readOnly&&"readonly"!=c)return null;a=a.H;try{return _.Ndc(a,[b],c)}catch(d){return null}},Yzc=function(a){var b=_.DI.l0,c=fM(a,b,"readwrite");if(!c)return _.Xh(Error("Jf"));c.objectStore(b).put(Tzc(a.nj()));return _.Wh(c.wait()).then(function(){})},$zc=function(a){if(!a.H)return _.Xh(Error("Kf"));if(a.Gf())return _.Xh(Error(a.O));var b=_.DI.l0,c=fM(a,b,"readwrite");if(!c)return _.Xh(Error("Lf"));b=c.objectStore(b);return _.Wh(b.remove(dM(a.nj())))},
aAc=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=Rzc(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},yzc=function(a,b,c,d){if(!a.H||3==b&&void 0==c)return _.Xh(Error("Sf"));if(a.Gf())return _.Xh(Error(a.O));var e=Pzc(a.nj(),b,0,c),f=_.DI.L6,h=fM(a,f);if(!h)return _.Xh(Error("Tf"));e=h.objectStore(f).getAll(e);var k=_.Zh();e.eg(function(l){l=aAc(l,k,d);a.readOnly||null==l||bAc(a,b,c,l).then(null,function(){})},k.reject);return k.promise},vzc=function(a,b,c,d,e,f){if(a.H){if(a.Gf())return _.Xh(Error(a.O));if(100<b.length||
3==c&&void 0==d)return _.Xh(Error("Uf"))}else return _.Xh(Error("Vf"));var h=Date.now(),k=b.length,l=b.map(function(v,w){return{key:Ozc(a.nj(),c,w,d),data:new Mzc(v.getData(),w,k,h,e),metadata:v}}),p=_.DI.L6;b=fM(a,p,"readwrite");if(!b)return _.Xh(Error("Wf"));p=b.objectStore(p);var q={};l=_.m(l);for(var r=l.next();!r.done;q={tfa:q.tfa},r=l.next())r=r.value,q.tfa=cAc(a,c,d,r.metadata,f),p.put(Nzc(r.data),r.key).then(function(v){return function(){var w=v.tfa;w&&(Qrc(dL(w),!0),w.Dj())}}(q),function(v){return function(w){var A=
v.tfa,B=w instanceof _.UH?w.code:_.odc;A&&a.W&&(w=Qrc(dL(A),!1),B=_.jK(_.mgc,B),_.x(w,2,B),A.Dj())}}(q));return _.Wh(b.wait()).then(function(){})},cAc=function(a,b,c,d,e){if(a.W){var f=a.W.W;if(a=a.W.H(106019,e))b=Src(Rrc(dL(a),_.jK(_.lgc,b)),_.jK(_.igc,c)),f=_.x(b,5,f.Xo(d.H)),Trc(f,d.isEncrypted),void 0!=d.Vm()&&dL(a).gw(d.Vm());return a}return null},bAc=function(a,b,c,d){d=void 0===d?0:d;if(a.H){if(a.Gf())return _.Xh(Error(a.O));if(3==b&&void 0==c)return _.Xh(Error("Xf"))}else return _.Xh(Error("Yf"));
b=Pzc(a.nj(),b,d,c);c=_.DI.L6;a=fM(a,c,"readwrite");if(!a)return _.Xh(Error("Zf"));a.objectStore(c).remove(b);return _.Wh(a.wait()).then(function(){})},dAc=function(a){if(!a.H)return _.Xh(Error("$f"));if(a.Gf())return _.Xh(Error(a.O));var b=Qzc(a.nj()),c=_.DI.L6;a=fM(a,c,"readwrite");if(!a)return _.Xh(Error("ag"));a.objectStore(c).remove(b);return _.Wh(a.wait()).then(function(){})};
eM.prototype.getMetadata=function(a){if(this.H){if(this.Gf())return _.Xh(Error(this.O));if(a&&0==a.length)return _.Xh(Error("bg"))}else return _.Xh(Error("cg"));var b=this.nj(),c=_.DI.W7,d=fM(this,c);if(!d)return _.Xh(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(_.Wh(c.get(Fzc(b,e.global,e.key))));c=_.Yh(d)}else c=_.Yh([c.getAll(Izc(b,!1)).then(),c.getAll(Izc(b,!0)).then()]).then(function(f){var h=_.m(f);f=h.next().value;h=h.next().value;
return vnc(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]===dM(b))){h=k[0]!==b.Fu()||k[1]!==String(b.clientId)?void 0:new Gzc(k[3],h.v,l);break a}}h=void 0}return h})})};
var eAc=function(a,b){if(a.H){if(a.Gf())return _.Xh(Error(a.O));if(0==b.length)return _.Xh(Error("eg"))}else return _.Xh(Error("fg"));var c=_.DI.W7,d=fM(a,c,"readwrite");if(!d)return _.Xh(Error("gg"));c=d.objectStore(c);d=[];b=_.m(b);for(var e=b.next();!e.done;e=b.next())d.push(c.put(Hzc(e.value,a.nj())).then());return _.Yh(d).then(function(){})},fAc=function(a,b){b=void 0===b?!1:b;if(a.H){if(a.Gf())return _.Xh(Error(a.O))}else return _.Xh(Error("ig"));var c=a.nj(),d=_.DI.W7;a=fM(a,d,"readwrite");
if(!a)return _.Xh(Error("jg"));d=a.objectStore(d);a=[];a.push(d.remove(Izc(c,!1)).then());b&&a.push(d.remove(Izc(c,!0)).then());return _.Yh(a).then(function(){})},gAc=function(a){if(!a.H)return _.Xh(Error("kg"));if(a.Gf())return _.Xh(Error(a.O));var b=Lzc(a.nj().Fu(),a.nj().clientId),c=_.DI.ZU;a=fM(a,c);if(!a)return _.Xh(Error("lg"));c=a.objectStore(c);return _.Wh(c.get(b)).then(function(d){return Kzc(d)})},hAc=function(a,b){b=void 0===b?!1:b;if(!a.H)return _.Xh(Error("mg"));if(a.Gf())return _.Xh(Error(a.O));
var c=a.nj(),d=Lzc(c.Fu(),c.clientId);b=new Jzc(dM(c),b?Date.now():void 0);c=_.DI.ZU;a=fM(a,c,"readwrite");if(!a)return _.Xh(Error("ng"));a.objectStore(c).put({versionKey:b.H,versionChangeTimestamp:b.O},d);return _.Wh(a.wait())};eM.prototype.Jl=function(a){var b=this;return this.H?this.Gf()?_.Xh(Error(this.O)):gAc(this).then(function(c){var d=dM(b.nj());if(c)if(a){if(!c.O&&d==c.H&&d!=dM(a))return hAc(b,!0);if(c.O&&d==dM(a))return hAc(b)}else{if(d!=c.H)return hAc(b)}else if(!a)return hAc(b)}):_.Xh(Error("og"))};
var iAc=function(a){if(!a.H)return _.Xh(Error("pg"));if(a.Gf())return _.Xh(Error(a.O));var b=a.nj(),c=Lzc(b.Fu(),b.clientId);return gAc(a).then(function(d){if(d){d=_.DI.ZU;var e=fM(a,d,"readwrite");if(e)return e.objectStore(d).remove(c).then()}})};
eM.prototype.clear=function(a){var b=this;a=void 0===a?!1:a;return this.H?this.Gf()?_.Xh(Error(this.O)):gAc(this).then(function(c){var d=c&&c.H==dM(b.nj());return d&&!a?!1:(c&&d?iAc(b):_.Wh()).then(function(){return _.Yh([fAc(b,a),dAc(b),$zc(b)]).then(function(){return!0},function(){return!1})},function(){return!1})}):_.Xh(Error("qg"))};eM.prototype.close=function(){this.ha("Closing database")};eM.prototype.log=function(a){this.Yf.info("drive.ds.sync.storage.VersionedDb",a)};
var jAc=function(a){if(1>=a.nj())return!1;var b=a.H.objectStoreNames;return _.Ya(_.DI).every(function(c){return b&&b.contains(c)})},kAc=function(){var a=_.Zh();_.Pdc("GoogleDriveDs").eg(function(b){b?jAc(b)?a.resolve(b):(b.close(),_.Wh(Quc()).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},lAc=function(a,b,c){var d=_.Zh();a?_.Ndc(a,[_.DI.l0],"readonly").objectStore(_.DI.l0).getAll().eg(function(e){e=
_.Ya(e).map(function(f){return Uzc(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},mAc=function(a,b,c){var d=_.Zh();kAc().then(function(e){if(e){var f=_.DI.ZU;_.Ndc(e,[f],"readonly").objectStore(f).get(a+":"+b).then(function(h){return Kzc(h)}).then(function(h){if(h){var k=0;"number"==typeof c&&"number"==typeof h.O&&(k=c+h.O-Date.now());var l=_.DI.l0,p=_.Ndc(e,[l],"readonly");p.objectStore(l).get(h.H).then(function(q){(q=
Uzc(q))?(q.ka=!0,0>k?q.ha=!0:0<k&&(q.ma=k),d.resolve(q)):d.resolve(null)});_.ci(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},nAc=function(a,b,c){var d=_.Zh(),e=new eM(_.Wh(a),b);Vzc(e,c).then(function(){return d.resolve(e)},d.reject);return d.promise},oAc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=[];a.forEach(function(h){var k=nAc(h,b,c);f.push(k.then(function(l){return l.clear(e)}).then(function(l){return l?
h:void 0}))});_.Yh(f).then(function(h){var k=[];h.forEach(function(l){l&&(k.push(l),b.info("drive.ds.sync.storage.VersionedDb","Cleared version: "+dM(l)))});d.resolve(k)})},pAc=function(a,b,c){var d=Date.now()-12096E5,e=_.Zh();kAc().then(function(f){f?(_.$h(e.promise,function(){f.close()}),lAc(f,a,b).then(function(h){return h.filter(function(k){return k.H<d})},function(){return[]}).then(function(h){oAc(h,c,f,e)})):e.resolve([])});return e.promise},qAc=function(a,b,c){var d=_.Zh();kAc().then(function(e){e?
(_.$h(d.promise,function(){e.close()}),lAc(e,a,b).then(function(f){oAc(f,c,e,d,!0)})):d.resolve([])});return d.promise},rAc=function(a,b,c,d){if(a.length){var e=_.DI.L6,f=a.shift(),h=Ozc(f,3,0,1);try{_.Ndc(c,[e],"readonly").objectStore(e).get(h).then(function(k){(k=Rzc(k))&&(!k.s1||k.s1&&d.has(f.V))?b.resolve(f):rAc(a,b,c,d)},function(){return b.resolve(null)})}catch(k){b.resolve(null)}}else b.resolve(null)},sAc=function(a,b,c,d,e,f,h){var k=_.Zh();kAc().then(function(l){l?(_.$h(k.promise,function(){l.close()}),
lAc(l,a,b).then(function(p){return p.filter(function(q){return(!h||h!=dM(q))&&q.W==c&&q.H>=e&&Nnc(d.filter(function(r){return!_.Ngc.has(r)}),q.eh(),b)})},function(){return[]}).then(function(p){p.length?(p.sort(function(q,r){return r.H-q.H}),rAc(p,k,l,new Set(f))):k.resolve(null)})):k.resolve(null)});return k.promise},tAc={key:"rid",global:!0},uAc={key:"ooi",global:!0},vAc={key:"rtds",global:!1},wAc={key:"dct",global:!1},xAc={key:"pc",global:!1},yAc=function(a){this.H=new _.Vh(function(b){a?a.initialize().then(function(){return b(a)},
function(){return b(null)}):b(null)})};yAc.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(){})})};yAc.prototype.set=function(a,b){return this.H.then(function(c){return c&&!c.Gf()?eAc(c,[new Gzc(a.key,b,a.global)]).then(function(){return!0},function(){return!1}):!1})};yAc.prototype.Du=function(){return this.get(tAc).then(function(a){return a?a:null})};
yAc.prototype.mz=function(a){return this.set(tAc,a)};var zAc=function(a){return a.get(uAc).then(function(b){return"boolean"===typeof b?b:null})};yAc.prototype.jz=function(a){return this.set(uAc,a)};var AAc=function(a){return a.get(xAc).then(function(b){return"boolean"===typeof b?b:null})},BAc=function(a){return a.get(vAc).then(function(b){return Array.isArray(b)?b:null})},CAc=function(a){return a.get(wAc).then(function(b){return"number"===typeof b?b:null})},DAc=function(){this.cj=[]};_.K(DAc,_.yK);
DAc.prototype.add=function(a,b){var c=a.Zv.lx;return c instanceof _.EJ&&_.z(c.request,12)?_.yK.prototype.add.call(this,a,b):!1};DAc.prototype.Gta=function(a){return this.cj.splice(0,Math.min(a,1))};var EAc=function(a,b){this.cj=[];this.H=b};_.K(EAc,_.yK);EAc.prototype.add=function(a,b){return a.Zv.lx instanceof _.EJ?!1:_.yK.prototype.add.call(this,a,b)};
EAc.prototype.Gta=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 _.XI||k instanceof _.iJ||k instanceof _.zJ?k="app|"+k.Ih():k instanceof _.SI||k instanceof _.TI||k instanceof _.ZI||k instanceof _.xI?k="item|"+(k instanceof _.SI?k.qc():k.getId()):k instanceof _.$I||k instanceof _.jJ?k="item|"+k.qc():k instanceof _.aJ||k instanceof _.BJ?k="item|"+k.qc():k instanceof _.qD||k instanceof _.pD?(k=k instanceof _.qD?_.y(k,_.Wo,1).getKey():
k.getKey(),k="pref|"+_.z(k,2)+"|"+_.Xo(k)):k=k instanceof _.bJ?"td|"+k.getId():null;var l=h.Zv.lx;if(l instanceof _.VI)l=!!_.Q(l,8);else if(l instanceof _.TI){l=this.H.H(l.getId());var p;if(p=!!l)p=!!(l&&l.getMimeType()&&_.Ldb.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 FAc=function(a,b,c,d,e,f,h,k,l){a=a.Tf();h=new _.Blc(new _.Alc(k,h,d,_.Ej(a,32,1073741824),_.Ej(a,21,1E3)));k=new _.$kc(_.Ej(a,59,2E3),_.Ej(a,60,2E4),_.Ej(a,61,6));c=new _.Ykc(l?l:c,l?void 0:e);e={};e[1]=_.Dlc(b,d);e[2]=_.Elc(b,a,k,c,d);e[3]=_.Flc(b,a,k,c,d,"batch");l=_.Ej(a,10,50);f=new _.AK(d,b,[_.Zkc(c),new _.clc(l,_.Ej(a,11,100)),new _.zK(l),new _.xK(k,d)],[new EAc(a,f),new DAc,new _.yK],[new _.llc(a,k,c.Kj(),d)],"mutation");return e[4]=f,e[5]=_.Glc(h,a,d),e[6]=_.Flc(b,a,k,c,d,"find_by_ids_batch"),
e[7]=_.Flc(b,a,k,c,d,"xd4_batch"),e[8]=_.Flc(b,a,k,c,d,"xd4_batch_one",1),e},ipc=function(a){return a.nextPageToken?a.nextPageToken:a.continuationToken?a.continuationToken:""},GAc=function(a){_.J.call(this,a)};_.K(GAc,_.J);GAc.prototype.Cb=function(){return _.z(this,1)};GAc.prototype.Dc=function(a){return _.x(this,1,a)};HAc=function(a,b){return _.G(a,2,b)};Cpc=[90,59,75];_.gM=function(a){_.J.call(this,a)};_.K(_.gM,_.J);_.gM.prototype.Cb=function(){return _.z(this,1)};
_.gM.prototype.Dc=function(a){return _.x(this,1,a)};_.gM.prototype.Ff=function(){return _.y(this,_.VB,2)};_.IAc=function(a,b){return _.G(a,2,b)};_.gM.prototype.$j=function(){return _.z(this,3)};
_.hM=function(a){_.J.call(this,a)};_.K(_.hM,_.J);_.hM.prototype.gZ=function(a){_.G(this,1,a)};_.hM.prototype.Iv=function(){return _.y(this,_.Iy,2)};_.hM.prototype.iP=function(a){_.G(this,2,a)};
_.JAc=function(a){_.J.call(this,a)};_.K(_.JAc,_.J);_.JAc.prototype.mi=function(){return _.y(this,Guc,2)};_.JAc.prototype.V=function(a){_.yj(this,5,_.KAc,a)};_.KAc=[5,6];
var LAc;_.MAc=function(a){_.J.call(this,a,-1,LAc)};_.K(_.MAc,_.J);_.MAc.prototype.V=function(a){_.yj(this,6,_.iM,a)};LAc=[3,4,5];_.iM=[6,7];
var NAc=function(a){_.J.call(this,a)};_.K(NAc,_.J);NAc.prototype.getType=function(){return _.z(this,1)};var OAc=function(a){var b=new NAc;return _.x(b,1,a)};NAc.prototype.Ly=function(){return _.z(this,3)};NAc.prototype.kz=function(a){return _.x(this,3,a)};NAc.prototype.Ei=function(){return _.z(this,4)};NAc.prototype.setPosition=function(a){return _.x(this,4,a)};
var QAc=function(a){_.J.call(this,a,-1,PAc)};_.K(QAc,_.J);QAc.prototype.Cb=function(){return _.z(this,1)};QAc.prototype.Dc=function(a){return _.x(this,1,a)};QAc.prototype.$j=function(){return _.z(this,3)};var PAc=[2];
_.RAc=function(a){_.J.call(this,a)};_.K(_.RAc,_.J);_.RAc.prototype.getId=function(){return _.z(this,1)};_.RAc.prototype.Nb=function(a){return _.x(this,1,a)};_.RAc.prototype.se=function(){return _.y(this,_.Qf,4)};
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];
var UAc=function(a){_.J.call(this,a)};_.K(UAc,_.J);UAc.prototype.Cb=function(){return _.z(this,1)};UAc.prototype.Dc=function(a){return _.x(this,1,a)};UAc.prototype.Ar=function(){return _.y(this,_.uL,2)};
var VAc=function(a){_.J.call(this,a)};_.K(VAc,_.J);_.g=VAc.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.Ar=function(){return _.y(this,_.uL,2)};_.g.$j=function(){return _.z(this,3)};_.g.Ih=function(){return _.z(this,4)};
_.jM=function(a){_.J.call(this,a)};_.K(_.jM,_.J);_.jM.prototype.getType=function(){return _.z(this,1)};var WAc=function(a){var b=new _.jM;return _.x(b,1,a)},XAc=function(a,b){return _.G(a,2,b)};_.jM.prototype.Ly=function(){return _.z(this,3)};_.jM.prototype.kz=function(a){return _.x(this,3,a)};_.jM.prototype.Ei=function(){return _.z(this,4)};_.jM.prototype.setPosition=function(a){return _.x(this,4,a)};
var ZAc=function(a){_.J.call(this,a,-1,YAc)};_.K(ZAc,_.J);var YAc=[1];
var aBc=function(a){_.J.call(this,a,-1,$Ac)};_.K(aBc,_.J);aBc.prototype.Cb=function(){return _.z(this,1)};aBc.prototype.Dc=function(a){return _.x(this,1,a)};aBc.prototype.$j=function(){return _.z(this,3)};var $Ac=[2];
var cBc=function(a){_.J.call(this,a,-1,bBc)};_.K(cBc,_.J);cBc.prototype.Cb=function(){return _.z(this,1)};cBc.prototype.Dc=function(a){return _.x(this,1,a)};cBc.prototype.$j=function(){return _.z(this,3)};var bBc=[2];
var dBc=function(a){_.J.call(this,a)};_.K(dBc,_.J);
var eBc=function(a){_.J.call(this,a)};_.K(eBc,_.J);eBc.prototype.Iy=function(){return _.z(this,2)};
var fBc=function(a){_.J.call(this,a)};_.K(fBc,_.J);fBc.prototype.H=function(){return _.y(this,_.TC,1)};fBc.prototype.V=function(){return _.y(this,_.TC,2)};fBc.prototype.wa=function(){return _.y(this,_.TC,3)};
var gBc=function(a){_.J.call(this,a)};_.K(gBc,_.J);gBc.prototype.H=function(){return _.Q(this,1)};gBc.prototype.V=function(){return _.Q(this,3)};gBc.prototype.wa=function(){return _.Q(this,4)};
var hBc=function(a){_.J.call(this,a)};_.K(hBc,_.J);_.g=hBc.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};_.g.Pbb=function(){return _.z(this,2)};_.g.ue=function(){return _.z(this,4)};_.g.Obb=function(){return _.y(this,gBc,5)};_.g.getCapabilities=function(){return _.y(this,iBc,6)};_.g.Ubb=function(){return _.z(this,7)};_.g.m6a=function(a){return _.yj(this,13,kM,a)};_.g.Nbb=function(){return _.Hj(this,jBc,19,kM)};
_.g.FOa=function(a){return _.yj(this,19,kM,a)};_.g.y6a=function(a){return _.yj(this,12,kM,a)};_.g.z6a=function(a){return _.yj(this,11,kM,a)};_.g.tvb=function(){return _.Hj(this,kBc,10,kM)};_.g.Qbb=function(){return _.Hj(this,lBc,15,kM)};_.g.Y6a=function(a){return _.yj(this,15,kM,a)};_.g.Rbb=function(){return _.Hj(this,mBc,14,kM)};_.g.Z6a=function(a){return _.yj(this,14,kM,a)};_.g.k7a=function(a){return _.yj(this,9,kM,a)};_.g.Sbb=function(){return _.Hj(this,nBc,8,kM)};
_.g.GOa=function(a){return _.yj(this,8,kM,a)};_.g.Tbb=function(){return _.Hj(this,oBc,18,kM)};_.g.HOa=function(a){return _.yj(this,18,kM,a)};_.g.p7a=function(a){return _.yj(this,17,kM,a)};var iBc=function(a){_.J.call(this,a)};_.K(iBc,_.J);iBc.prototype.H=function(){return _.Q(this,1)};iBc.prototype.V=function(){return _.Q(this,2)};var pBc=function(a){_.J.call(this,a)};_.K(pBc,_.J);var mBc=function(a){_.J.call(this,a,-1,qBc)};_.K(mBc,_.J);mBc.prototype.H=function(){return _.yb(this,rBc,1)};
var sBc=function(a,b){_.tj(a,1,b)},rBc=function(a){_.J.call(this,a)};_.K(rBc,_.J);_.g=rBc.prototype;_.g.getLabel=function(){return _.z(this,1)};_.g.Qp=function(){return _.mj(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 _.mj(this,2)};_.g.zf=function(){return _.z(this,5)};_.g.ll=function(a){return _.x(this,5,a)};_.g.Wbb=function(){return _.mj(this,5)};
_.g.getCapabilities=function(){return _.y(this,tBc,3)};_.g.Vbb=function(){return _.y(this,uBc,4)};var tBc=function(a){_.J.call(this,a)};_.K(tBc,_.J);tBc.prototype.H=function(){return _.Q(this,1)};tBc.prototype.V=function(){return _.Q(this,2)};var uBc=function(a){_.J.call(this,a)};_.K(uBc,_.J);_.g=uBc.prototype;_.g.$bb=function(){return _.Q(this,1)};_.g.acb=function(){return _.Q(this,2)};_.g.Xbb=function(){return _.y(this,fBc,3)};_.g.bcb=function(){return _.mj(this,3)};
_.g.Zbb=function(){return _.y(this,fBc,4)};_.g.dcb=function(){return _.mj(this,4)};_.g.Ybb=function(){return _.z(this,5)};_.g.ccb=function(){return _.mj(this,5)};var lBc=function(a){_.J.call(this,a)};_.K(lBc,_.J);lBc.prototype.H=function(){return _.z(this,1)};lBc.prototype.aX=function(){return _.mj(this,1)};lBc.prototype.getOptions=function(){return _.y(this,mBc,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 vBc=function(a){_.J.call(this,a)};_.K(vBc,_.J);vBc.prototype.aX=function(){return _.mj(this,1)};vBc.prototype.getOptions=function(){return _.y(this,nBc,2)};var kBc=function(a){_.J.call(this,a)};_.K(kBc,_.J);kBc.prototype.V=function(){return _.z(this,1)};kBc.prototype.H=function(){return _.z(this,2)};var wBc=function(a){_.J.call(this,a)};_.K(wBc,_.J);var xBc=function(a){_.J.call(this,a)};_.K(xBc,_.J);xBc.prototype.aX=function(){return _.mj(this,1)};
xBc.prototype.getOptions=function(){return _.y(this,wBc,2)};var yBc=function(a){_.J.call(this,a)};_.K(yBc,_.J);_.g=yBc.prototype;_.g.GOa=function(a){return _.yj(this,3,lM,a)};_.g.k7a=function(a){return _.yj(this,4,lM,a)};_.g.z6a=function(a){return _.yj(this,5,lM,a)};_.g.y6a=function(a){return _.yj(this,6,lM,a)};_.g.m6a=function(a){return _.yj(this,7,lM,a)};_.g.Z6a=function(a){return _.yj(this,8,lM,a)};_.g.Y6a=function(a){return _.yj(this,9,lM,a)};_.g.p7a=function(a){return _.yj(this,10,lM,a)};
_.g.HOa=function(a){return _.yj(this,11,lM,a)};_.g.FOa=function(a){return _.yj(this,12,lM,a)};var zBc=function(a){_.J.call(this,a)};_.K(zBc,_.J);var oBc=function(a){_.J.call(this,a)};_.K(oBc,_.J);oBc.prototype.H=function(){return _.z(this,1)};oBc.prototype.aX=function(){return _.mj(this,1)};oBc.prototype.getOptions=function(){return _.y(this,zBc,2)};var jBc=function(a){_.J.call(this,a)};_.K(jBc,_.J);jBc.prototype.H=function(){return _.z(this,4)};
var kM=[13,19,12,11,10,15,14,9,8,18,17,16],qBc=[1],lM=[3,4,5,6,7,8,9,10,11,12];
var ABc=function(a){_.J.call(this,a)};_.K(ABc,_.J);ABc.prototype.getType=function(){return _.z(this,1)};var BBc=function(a){var b=new ABc;return _.x(b,1,a)},CBc=function(a,b){return _.G(a,2,b)};ABc.prototype.Ly=function(){return _.z(this,3)};ABc.prototype.kz=function(a){return _.x(this,3,a)};ABc.prototype.Ei=function(){return _.z(this,4)};ABc.prototype.setPosition=function(a){return _.x(this,4,a)};
var EBc=function(a){_.J.call(this,a,-1,DBc)};_.K(EBc,_.J);EBc.prototype.Cb=function(){return _.z(this,1)};EBc.prototype.Dc=function(a){return _.x(this,1,a)};var DBc=[2];
var FBc=function(a){_.J.call(this,a)};_.K(FBc,_.J);
var mM=function(a){_.J.call(this,a,-1,GBc)};_.K(mM,_.J);mM.prototype.getName=function(){return _.z(this,1)};mM.prototype.$c=function(a){return _.x(this,1,a)};mM.prototype.Hm=function(){return _.z(this,2)};var HBc=function(a,b){return _.x(a,2,b)};mM.prototype.V=function(){return _.z(this,14)};var IBc=function(a,b){return _.x(a,14,b)};_.g=mM.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.ecb=function(){return _.z(this,15)};_.g.Zj=function(){return _.yb(this,hBc,5)};var JBc=function(a,b){return _.tj(a,5,b)},KBc=function(a,b){_.G(a,6,b)},LBc=function(a,b){_.G(a,7,b)},MBc=function(a,b){_.G(a,8,b)},NBc=function(a,b){return _.x(a,9,b)},OBc=function(a,b){return _.x(a,10,b)},PBc=function(a,b){return _.x(a,11,b)};mM.prototype.H=function(){return _.y(this,gBc,12)};var QBc=function(a,b){_.G(a,12,b)};
mM.prototype.getCapabilities=function(){return _.y(this,RBc,13)};var SBc=function(a,b){_.G(a,13,b)};mM.prototype.getCustomer=function(){return _.z(this,16)};var TBc=function(a,b){return _.x(a,16,b)},RBc=function(a){_.J.call(this,a)};_.K(RBc,_.J);RBc.prototype.wa=function(){return _.Q(this,1)};RBc.prototype.H=function(){return _.Q(this,2)};RBc.prototype.Ba=function(){return _.Q(this,3)};RBc.prototype.V=function(){return _.Q(this,4)};var GBc=[5];
var nM=function(a){_.J.call(this,a,-1,UBc)};_.K(nM,_.J);nM.prototype.Cb=function(){return _.z(this,1)};nM.prototype.Dc=function(a){return _.x(this,1,a)};nM.prototype.H=function(){return _.yb(this,mM,2)};var VBc=function(a,b){return _.tj(a,2,b)};nM.prototype.$j=function(){return _.z(this,3)};var UBc=[2];
var WBc=function(a){_.J.call(this,a)};_.K(WBc,_.J);WBc.prototype.Cb=function(){return _.z(this,1)};WBc.prototype.Dc=function(a){return _.x(this,1,a)};WBc.prototype.H=function(){return _.y(this,mM,2)};WBc.prototype.$j=function(){return _.z(this,3)};
_.oM=function(a){_.J.call(this,a,-1,XBc)};_.K(_.oM,_.J);_.oM.prototype.sW=function(){return _.yb(this,_.VF,2)};_.oM.prototype.se=function(){return _.y(this,_.Qf,3)};var XBc=[1,2];
_.epc=function(a){_.J.call(this,a)};_.K(_.epc,_.J);_.g=_.epc.prototype;_.g.getItem=function(){return _.y(this,_.Jk,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 _.mj(this,2)};_.g.Gv=function(){return _.z(this,4)};
var ZBc=function(a){_.J.call(this,a,-1,YBc)};_.K(ZBc,_.J);var YBc=[2,4];
var aCc=function(a){_.J.call(this,a,-1,$Bc)};_.K(aCc,_.J);aCc.prototype.H=function(){return _.z(this,2)};var bCc=function(a,b){_.x(a,2,b)},$Bc=[1];
var cCc=function(a){_.J.call(this,a)};_.K(cCc,_.J);cCc.prototype.getType=function(){return _.z(this,1)};var dCc=function(a){var b=new cCc;return _.x(b,1,a)},eCc=function(a,b){return _.G(a,2,b)};cCc.prototype.Ly=function(){return _.z(this,3)};cCc.prototype.kz=function(a){return _.x(this,3,a)};cCc.prototype.Ei=function(){return _.z(this,4)};cCc.prototype.setPosition=function(a){return _.x(this,4,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.$j=function(){return _.z(this,3)};var fCc=[2];
var hCc=function(a){_.J.call(this,a)};_.K(hCc,_.J);hCc.prototype.Zc=function(){return _.y(this,zsc,1)};hCc.prototype.ao=function(){return _.z(this,2)};
var pM=function(a){_.J.call(this,a)};_.K(pM,_.J);pM.prototype.Cb=function(){return _.z(this,1)};pM.prototype.Dc=function(a){return _.x(this,1,a)};pM.prototype.$j=function(){return _.z(this,3)};
var iCc=function(a){_.J.call(this,a)};_.K(iCc,_.J);iCc.prototype.getKey=function(){return _.z(this,1)};iCc.prototype.yt=function(){return _.mj(this,1)};var kCc=function(a){_.J.call(this,a,-1,jCc)};_.K(kCc,_.J);var lCc=[2,4,6,10],mCc=[3,5,7,8,9],jCc=[1];
var nCc=function(a){_.J.call(this,a)};_.K(nCc,_.J);
_.pCc=function(a){_.J.call(this,a,-1,oCc)};_.K(_.pCc,_.J);var oCc=[1];
var VK=function(a){_.J.call(this,a,-1,qCc)},kpc;_.K(VK,_.J);VK.prototype.ao=function(){return _.z(this,1)};var hpc=function(a,b){return _.x(a,1,b)};VK.prototype.Cb=function(){return _.z(this,3)};VK.prototype.Dc=function(a){return _.x(this,3,a)};kpc=function(a,b){_.tj(a,5,b)};_.rpc=function(a){_.J.call(this,a)};_.K(_.rpc,_.J);_.rpc.prototype.Yb=function(){return _.z(this,2)};_.ppc=function(a){_.J.call(this,a,-1,rCc)};_.K(_.ppc,_.J);
var opc=function(a,b){return _.x(a,1,b)},npc=function(a,b){return _.x(a,2,b)},qpc=function(a,b){_.tj(a,3,b)},qCc=[5],rCc=[3];
var sCc=function(a){_.J.call(this,a)};_.K(sCc,_.J);_.g=sCc.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.AOa=function(){return _.y(this,_.Wo,3)};_.g.getKey=function(){return _.y(this,_.Kc,4)};_.g.yt=function(){return _.mj(this,4)};
var qM=function(a){_.J.call(this,a)};_.K(qM,_.J);qM.prototype.getType=function(){return _.z(this,1)};var tCc=function(a){var b=new qM;return _.x(b,1,a)};qM.prototype.un=function(){return _.y(this,xL,2)};var uCc=function(a,b){return _.G(a,2,b)};qM.prototype.Ly=function(){return _.z(this,3)};qM.prototype.kz=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 rM=function(a){_.J.call(this,a)};_.K(rM,_.J);rM.prototype.getType=function(){return _.z(this,1)};var vCc=function(a){var b=new rM;return _.x(b,1,a)};rM.prototype.un=function(){return _.y(this,_.dI,2)};var wCc=function(a,b){return _.G(a,2,b)};rM.prototype.Ly=function(){return _.z(this,3)};rM.prototype.kz=function(a){return _.x(this,3,a)};rM.prototype.Ei=function(){return _.z(this,4)};rM.prototype.setPosition=function(a){return _.x(this,4,a)};
var yCc=function(a){_.J.call(this,a,-1,xCc)};_.K(yCc,_.J);yCc.prototype.Cb=function(){return _.z(this,1)};yCc.prototype.Dc=function(a){return _.x(this,1,a)};yCc.prototype.Mh=function(){return _.yb(this,_.XEa,2)};yCc.prototype.Pq=function(a,b){return _.zj(this,2,a,_.XEa,b)};var xCc=[2];
var ACc=function(a){_.J.call(this,a,-1,zCc)};_.K(ACc,_.J);ACc.prototype.Cb=function(){return _.z(this,1)};ACc.prototype.Dc=function(a){return _.x(this,1,a)};ACc.prototype.Zk=function(){return _.yb(this,qM,2)};var zCc=[2];
var BCc=function(a){_.J.call(this,a)};_.K(BCc,_.J);BCc.prototype.Cb=function(){return _.z(this,1)};BCc.prototype.Dc=function(a){return _.x(this,1,a)};
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,rM,2)};var CCc=[2];
var FCc=function(a){_.J.call(this,a,-1,ECc)};_.K(FCc,_.J);FCc.prototype.Iy=function(){return _.C(this,2)};var ECc=[1];
var GCc=function(a){_.oi.call(this,"Fb");this.dataType=a};_.K(GCc,_.oi);
var HCc=function(a,b){_.oi.call(this,"Gb");this.percentDone=a;this.kva=b};_.K(HCc,_.oi);
var ICc=function(){};_.g=ICc.prototype;_.g.VM=function(a,b){return CBc(BBc(1),a).setPosition(b)};_.g.TM=function(a,b){return CBc(BBc(2).setPosition(b),a)};_.g.eF=function(a,b,c){return CBc(BBc(3).kz(b).setPosition(c),a)};_.g.cR=function(a,b){return CBc(BBc(4),a).setPosition(b)};_.g.qN=function(a){return _.y(a,KL,2)};
var JCc=function(){_.Ly.call(this,new ICc,function(a){return a&&a.getName()})};_.K(JCc,_.Ly);
var sM=function(a,b,c,d){d=void 0===d?50:d;fL.call(this,a);var e=this;this.V=b;this.connectionState=c;this.limit=d;this.active=!1;this.status=6;this.wa=_.Eec(new _.cI,[1]);this.ha=this.H=!1;this.Oc=new _.of(this);this.Ja(this.Oc);_.ff(this,function(){e.Oc.removeAll()})};_.K(sM,fL);_.g=sM.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(_.WB))),function(){return void a.iu()});this.V.Me()?this.Oc.hd(this.V,"rb",function(b){b.Me()||(a.rH(),a.dispatchEvent(new _.oi(_.Vp)))}):this.connectionState.Me()?this.Oc.hd(this.connectionState,[_.WB.ZL,_.WB.$U],function(){a.rH();a.dispatchEvent(new _.oi(_.Vp))}):(this.rH(),this.dispatchEvent(new _.oi(_.Vp)))};_.g.rH=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 _.oi(_.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 KCc=function(a,b,c,d,e){sM.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 JCc;this.ka=d};_.K(KCc,sM);_.g=KCc.prototype;_.g.rH=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.oi(_.bd,this))};_.g.getData=function(){return Swc(new LL,this.data).Dc(this.status)};
_.g.ts=function(){var a=_.Ky(this.O,this.W,this.data);this.W=this.data;var b=(new EBc).Dc(this.status);return _.tj(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,LCc(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()||bL(this.O,this.data,b.H()))this.H=!0,this.status=b.Cb(),this.data=b.H(),this.ha=a.H,LCc(this)};var LCc=function(a){a.log("Livelist "+a.Oi()+" returning "+a.data.length+" for "+(a.request.qc()+". Status: ")+(_.fb(Nsc)[a.Cb()]+"."));a.dispatchEvent(new _.oi(_.bd,a))};KCc.prototype.LB=function(a){this.dispatchEvent(new _.Hc(new _.Gc("Error occurred running a category metadata query after "+a.retryCount+" retries.",a.error)))};
var MCc=function(a,b,c,d,e,f,h){_.gL.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(MCc,_.gL);MCc.prototype.getData=function(){this.H=this.items;var a=Crc((new _.eI).Dc(this.Cb()).hB(this.items),this.qk());a=_.G(a,7,this.ka).bQ(this.suggestionSessionId).ri(this.Oe);return _.rj(a,18,this.ha)};
MCc.prototype.update=function(a){if(Usc(this,a)&&(Vsc(this,a),this.ka=a.a7(),this.suggestionSessionId=a.Vf(),this.ha=a.lla(),Tsc(this),this.suggestionSessionId&&Zvc(this.O)&&(a=this.Yf.H(106027)))){var b=_.y(_.iK(a),Xrc,20);if(!b){b=new Xrc;var c=_.iK(a);_.G(c,20,b)}_.x(b,1,this.suggestionSessionId);a.Dj()}};
var NCc=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?_.Dj(d,f)||(d=wCc(vCc(4),f),c[e]=d):(d=wCc(vCc(2),d),c[e]=d)});_.Ta(b,function(d,e){a[e]||(d=wCc(vCc(1),d),c[e]=d)});return c},OCc=function(a,b){return _.Xa(a)!==_.Xa(b)||!_.ab(NCc(a,b))};
var PCc=function(a,b){fL.call(this,a);this.request=b;this.logName="drive.ds.sync.WorkspaceFindByIdsLiveMap";this.status=6;this.H={};this.data={}};_.K(PCc,fL);_.g=PCc.prototype;_.g.XP=function(){_.ab(this.data)&&6===this.status||this.dispatchEvent(new _.oi(_.bd,this))};_.g.Cb=function(){return this.status};_.g.ys=function(){return new _.cI};_.g.getData=function(){this.H=this.data;var a=(new _.mK).Dc(this.status);_.Ta(this.data,function(b,c){a.CU().set(c,b||new _.dI)});return a};
_.g.ts=function(){var a=NCc(this.H,this.data);this.H=this.data;var b=(new BCc).Dc(this.status);_.Ta(a,function(c,d){_.Ab(b,2,void 0,rM).set(d,c)});return b};_.g.WT=function(){throw Error("tg");};_.g.jd=function(){return this.request};_.g.update=function(a){var b={};a.CU().forEach(function(c,d){c||(c=Hyc(d));b[d]=c});if(this.status!==a.Cb()||OCc(this.H,b))this.status=a.Cb(),this.data=b,this.active&&this.dispatchEvent(new _.oi(_.bd,this))};
_.g.LB=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 _.oi(_.xFa))};
var QCc=function(a,b,c,d,e,f){_.gL.call(this,a,b,c,d,e,f);this.ha=[];this.suggestionSessionId=null;this.logName="drive.ds.sync.PeoplePredictLiveList"};_.K(QCc,_.gL);QCc.prototype.getData=function(){this.H=this.items;var a=(new _.lK).Dc(this.Cb()).hB(this.items);var b=this.qk();a=_.x(a,4,b);return Msc(a,this.ha).bQ(this.suggestionSessionId).ri(this.Oe)};QCc.prototype.update=function(a){Usc(this,a)&&(Vsc(this,a),this.ha=_.yb(a,_.wk,6),this.suggestionSessionId=a.Vf(),Tsc(this))};
var RCc=function(){};_.g=RCc.prototype;_.g.VM=function(a,b){return uCc(tCc(1),a).setPosition(b)};_.g.TM=function(a,b){return uCc(tCc(2).setPosition(b),a)};_.g.eF=function(a,b,c){return uCc(tCc(3).kz(b).setPosition(c),a)};_.g.cR=function(a,b){return uCc(tCc(4),a).setPosition(b)};_.g.qN=function(a){return a.un()};
var SCc=function(){_.Ly.call(this,new RCc,function(a){return a&&a.vq()})};_.K(SCc,_.Ly);
var TCc=function(a,b,c){sM.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 SCc;this.suggestionSessionId=null;this.ka=c};_.K(TCc,sM);_.g=TCc.prototype;_.g.rH=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.oi(_.bd,this))};_.g.getData=function(){this.O=this.data;return ovc(nvc((new yL).Dc(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.ts=function(){var a=_.Ky(this.W,this.O,this.data);this.O=this.data;var b=(new ACc).Dc(this.status);return _.tj(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 _.oi(_.bd,this))};_.g.Yb=function(){return this.data.length};_.g.jd=function(){return this.request};
_.g.update=function(a){if(this.status!==a.Cb()||bL(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.LB=function(a){this.dispatchEvent(new _.Hc(new _.Gc("Error occurred running a Suggested Workspace query after "+(a.retryCount+" retries."),a.error)))};
var UCc=function(a,b,c,d){fL.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=_.Eec(new _.cI,[1]);this.H=!0;this.limit=b.wi();_.ff(this,function(){e.O=[]})};_.K(UCc,fL);_.g=UCc.prototype;_.g.XP=function(){_.qa(this.items)&&6===this.status&&this.H||this.dispatchEvent(new _.oi(_.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 Crc((new _.eI).Dc(this.status).hB(this.items),this.H)};_.g.ts=function(){var a=_.Ky(_.A7a(),this.O,this.items),b=(new Ksc).Dc(this.status);a=_.tj(b,2,a);this.O=this.items;return a};_.g.Ju=function(a){this.isActive()&&(this.limit+=a||20,this.ha.iG(this.Oi(),this.limit))};
_.g.update=function(a){if(this.status!==a.Cb()||bL(_.A7a(),this.items,a.Bd()))this.items=a.Bd(),this.status=a.Cb(),_.mI(this.W)&&(this.V=xnc(this.status,this.items)),this.H=a.Rl(),this.isActive()&&this.dispatchEvent(new _.oi(_.bd,this))};_.g.LB=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 _.oi(_.xFa))};_.g.Su=function(){throw Error("ug");};_.g.refresh=function(){};
var VCc=function(a,b,c){fL.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=_.Eec(new _.cI,[1]);this.log("Creating TD find by ids live map: "+this.request.V().join(", "));_.ff(this,function(){d.O={}})};_.K(VCc,fL);_.g=VCc.prototype;_.g.XP=function(){(0<Object.values(this.H).length||6!==this.status)&&this.dispatchEvent(new _.oi(_.bd,this))};_.g.jd=function(){return this.request};
_.g.getData=function(){this.O=this.H;var a=new _.kK;a.Dc(this.status);a.map=this.H;return a};_.g.ts=function(){var a=Unc(this.O,this.H),b=new Ssc;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.WT=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()||Vnc(this.H,a.ot()))this.status=a.Cb(),this.H=a.ot(),_.mI(this.context.Xc)&&(this.V=xnc(this.status,Object.values(this.H))),this.isActive()&&this.dispatchEvent(new _.oi(_.bd,this))};_.g.LB=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 _.oi(_.xFa))};
var WCc=function(){};_.g=WCc.prototype;_.g.VM=function(a,b){return wCc(vCc(1),a).setPosition(b)};_.g.TM=function(a,b){return wCc(vCc(2).setPosition(b),a)};_.g.eF=function(a,b,c){return wCc(vCc(3).kz(b).setPosition(c),a)};_.g.cR=function(a,b){return wCc(vCc(4),a).setPosition(b)};_.g.qN=function(a){return a.un()};
var XCc=function(){_.Ly.call(this,new WCc,function(a){return a&&a.getId()})};_.K(XCc,_.Ly);
var YCc=function(a,b,c){sM.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 XCc};_.K(YCc,sM);_.g=YCc.prototype;_.g.rH=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.oi(_.bd,this))};_.g.getData=function(){this.O=this.data;return bxc((new NL).Dc(this.status),this.data.slice(0))};
_.g.ts=function(){var a=_.Ky(this.W,this.O,this.data);this.O=this.data;var b=(new DCc).Dc(this.status);return _.tj(b,2,a)};_.g.zP=function(){this.ka.iG(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 _.oi(_.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()||bL(this.W,this.data,b.Zk()))this.H=!0,this.status=b.Cb(),this.data=b.Zk(),this.ha=a.H,this.dispatchEvent(new _.oi(_.bd,this))};_.g.LB=function(a){this.dispatchEvent(new _.Hc(new _.Gc("Error occurred running a Workspace query after "+a.retryCount+" retries.",a.error)))};
var ZCc=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.rga;this.ta=this.context.d7};_.g=ZCc.prototype;_.g.vya=function(a){var b=this,c=new MCc(this.context.Am,this.context.MQ,this.context.Ce(),this.context.Xc,function(d,e){b.iG(d,e)},a,this.context.mk());this.Zh(c);_.ff(c,function(){b.fk(c)});return c};
_.g.yya=function(a){var b=this,c=new QCc(this.context.Am,this.context.MQ,this.context.Ce(),function(d,e){b.iG(d,e)},a,this.context.Xc);this.Zh(c);_.ff(c,function(){b.fk(c)});return c};_.g.sya=function(a){var b=this,c=new Zsc(this.context.Xc,this.context.Am,this.context.Ce(),this.context.K_,this.LZ.bind(this),a);this.Zh(c);_.ff(c,function(){b.fk(c)});return c};_.g.Bya=function(a){var b=this,c=new UCc(this.context.Ce(),a,this,this.context.Xc);this.Zh(c);_.ff(c,function(){b.fk(c)});return c};
_.g.Cya=function(a){var b=this,c=new VCc(this.context,this,a);this.Zh(c);_.ff(c,function(){b.fk(c)});return c};_.g.Fya=function(a){var b=this,c=new YCc(this.context,a,this);this.Zh(c);_.ff(c,function(){b.fk(c)});return c};_.g.zya=function(a){var b=this,c=new TCc(this.context,a,function(){if(a instanceof _.cA){var d=$Cc(b.context);zyc(d,d.getKey(a)).refresh()}});this.Zh(c);_.ff(c,function(){b.fk(c)});return c};
_.g.Gya=function(a){var b=this,c=new PCc(this.context.Ce(),a);this.Zh(c);_.ff(c,function(){b.fk(c)});return c};_.g.oya=function(a){var b=this,c=new KCc(this.context.Kj(),this.context.yk(),this.context.Ce(),function(d,e){b.iG(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 _.eA)a=this.O.Zh(b,a.jd());else if(a.jd()instanceof _.cG)a=xyc(this.O,b,a.jd());else if(a.jd()instanceof _.cA)a=$Cc(this.context).Zh(b,a.jd());else if(a.jd()instanceof _.jG)a=this.ta.Zh(b,a.jd());else{var c=a.jd(),d=hL(this.context.Am,c,2);this.log("Registering LiveList "+a.Oi()+" "+d);a=this.W.Zh(b,c)}"boolean"===typeof a&&Gwc(this.ha,b,a)};
_.g.fk=function(a){if(a.jd()instanceof _.eA)this.O.fk(a.Oi(),a.jd());else if(a.jd()instanceof _.cG)yyc(this.O,a.Oi(),a.jd());else if(a.jd()instanceof _.cA)$Cc(this.context).fk(a.Oi(),a.jd());else if(a.jd()instanceof _.jG)this.ta.fk(a.Oi(),a.jd());else{var b=a.jd(),c=hL(this.context.Am,b,2);this.log("Unregistering LiveList "+a.Oi()+" "+c);this.W.fk(a.Oi(),b)}IL(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.iG=function(a,b){var c=aDc(this,a).jd();c.Gi(b);c instanceof _.eA?this.O.Zh(a,c):c instanceof _.cG?xyc(this.O,a,c):c instanceof _.jG?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?Dnc(c.H(),b.Bd().filter(function(d){return!AL(d)})):c instanceof _.XF&&Dnc(c.H(),Object.values(b.ot()).filter(function(d){return d&&!AL(d)})));this.ka[a]=b;this.V||(this.V=_.Bi(this.Y9,50,this))};
_.g.CY=function(a,b){this.ma[a]=b;this.V||(this.V=_.Bi(this.Y9,50,this))};_.g.IA=function(a){(a=this.H[a])&&a.YW()};_.g.Y9=function(){_.Ci(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&&(Jwc(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])IL(this.ha,a,3),d.LB(c)};
_.g.Bla=function(a){return aDc(this,a).jd()};var aDc=function(a,b){if(!a.H[b])throw Error("vg`"+b);return a.H[b]};ZCc.prototype.log=function(a,b){this.context.Ce().log("drive.ds.sync.cache.LocalLiveRequestManager",a,void 0===b?"info":b)};
var bDc=function(){},cDc=function(a){this.H=a},fpc=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.DA=f;this.numFetchedFiles=h;this.O=k};
var tM=function(a,b){_.zi.call(this);this.O=a;this.request=b;this.ee=_.Zh();this.complete=!1;this.H=""};_.K(tM,_.zi);tM.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};tM.prototype.W=function(a){this.H=a.H;this.dispatchEvent(new HCc(0,this.H));dDc(this)};
var dDc=function(a){_.n.setTimeout(function(){a.O.then(function(b){return b.Pe(new _.yhc(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 ZBc;c=_.rj(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.DA);c=_.x(c,8,b.numFetchedFiles);b=_.tj(c,4,b.O);a.ee.resolve(b)}else b=_.uI(_.Go(_.Fo(new _.Fc,"Export failed for request "+a.H+": "+b.status),JSON.stringify(b)),8),a.handleError(b);a.dispose()}else a.dispatchEvent(new HCc(b.percentDone,
a.H)),dDc(a)}).then(null,function(b){a.handleError(b)})},5E3)};tM.prototype.cancel=function(){var a=this;this.O.then(function(b){return b.Pe(new _.xhc(a.H))}).then(this.V.bind(this)).then(null,this.handleError.bind(this))};tM.prototype.V=function(){if(!this.complete){var a=new ZBc;a=_.x(a,3,this.H);a=_.x(a,1,!0);this.ee.resolve(a);this.complete=!0;this.dispose()}};tM.prototype.handleError=function(a){this.complete=!0;this.ee.reject(_.OI(a));this.dispose()};
var eDc=function(){_.oi.call(this,"VbxEwf")};_.K(eDc,_.oi);
var fDc=function(a,b){this.context=a;this.H=null;this.oc=b||null};_.g=fDc.prototype;_.g.Ka=function(){return _.y(this.context.Xc,_.II,58)};_.g.getContext=function(){return this.context};_.g.Wz=function(){return this.context.jB.Wz(this.H)};_.g.Ce=function(){return this.context.Ce()};_.g.iN=function(a){return _.fi(this.context.Df.Zl.H(a))};_.g.VR=function(){return _.fi(this.context.jB.VR())};
_.g.T5=function(a,b,c){var d=new _.ai;if(_.Hj(a,_.nI,3,_.oI)||_.Hj(a,_.FJ,4,_.oI)||_.Hj(a,_.uK,5,_.oI)||_.Hj(a,_.CJ,6,_.oI)||_.Hj(a,_.bJ,7,_.oI)||_.Hj(a,_.VI,8,_.oI)||_.Hj(a,_.ZI,9,_.oI)||_.Hj(a,_.xI,10,_.oI)){var e=Dwc(a);this.context.Km().then(function(f){return f.Pe(e,{S8a:b,T8a:c})}).then(function(f){var h=[],k="";if(f instanceof _.vK){h=f.Zc().Bd();var l=_.z(f,2);k=f.ao()}else if(f instanceof _.HJ)f.getItem()&&h.push(f.getItem()),l=f.pN();else throw Error("xg");d.callback({items:h,uja:l,pageToken:k})},
function(f){return void d.Gd(f)});return d}throw Error("wg");};_.g.Tqa=function(){var a=this.context.Xc,b=a.Tf();a="email:"+_.fI(a).getEmail().replace(/@.*$/,"");_.x(b,13,a)};_.g.Qia=function(){this.context.Ys.$S();var a=this.context.Xc;qAc(_.VJ(_.fI(a)),_.XJ(a),this.context.Ce()).then(null,function(){})};_.g.uka=function(){return _.ygc[_.pj(this.context.Xc.Tf(),8,0)]};_.g.eea=function(){this.context.uG.H=new fzc(_.ph().substring(0,8))};
_.g.GT=function(){var a=this.context.uG.IN(),b=null;a&&(b=hzc(this.context.uG),b={traceId:a,spanRecs:b});a=this.context.uG;a.H=null;a.tZ=[];return _.fi(b)};_.g.IN=function(){return _.fi(this.context.uG.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.Z8,b.cs_ss=d.getSize());b.cs_ch=zxc(c).length;b.cs_td=c.OW().length;if(c=this.context.e7)b.t_cps=c.VYa().getStats().join(",");b.t_id=gDc(this.context);
var e=[];hDc(this.context.UR()).forEach(function(f,h){e.push(h+":"+f.join(";"))});b.t_ct=e.join(",");b.n_a=this.context.yz?this.context.yk().isConnected():this.context.VI.QB();b.n_o=this.context.yz?this.context.yk().Me():this.context.Kj().Me();b.n_csm=!!this.context.yz;a&&(b.csw_cc=_.Xa(a.channels),b.csw_ac=a.O,b.csw_mcc=a.H);return _.fi(JSON.stringify(b))};_.g.nqa=function(){this.oc&&(this.oc.dispatchEvent(new eDc),this.oc.Zu())};
_.g.Jl=function(a){var b=this.context.yz;b&&a!==b.V&&(b.V=a,b.reset(),a?b.state.update(3):_.wkc(b))};
var kDc=function(a,b){this.context=a;this.Dg=b;this.H=_.ihc(_.cK(this.Dg),iDc);this.O=_.ihc(_.cK(this.Dg),jDc)};
kDc.prototype.fl=function(a){var b=this,c=this.context.FQ.Ff().Ff(),d=(c=c?c.getUser():null)?c.getId():null,e={};a.forEach(function(h){_.mhc(h);var k=h.getId(),l=b.context.Du();_.pic(h,3);_.AI(h,5);var p=Ync(h,!0);h.getCapabilities()||_.RJ(h,new _.Ck);_.Q(p,2)&&((p=h.wk())&&p.length?_.x(h,46,p[0]):(_.QJ(h,[l]),_.x(h,46,l)),_.x(h,12,h.Oq()),l=new _.wk,l.Nb(d),_.x(l,6,1),_.aic(l,!0),_.lic(h,l),_.kic(h,[l]),_.xVb(h,1));e[k]=h});a=Object.keys(e);c=this.context.Df;var f=Fvc(c.Zl,a);_.Ta(f,function(h,k){OK(h.getItem(),
e[k],b.H);(b.context.Kj().Me()||b.context.yk().Me()||3===h.getItem().Lv())&&OK(h.getItem(),e[k],b.O);_.bb(e,k)});_.Ta(e,function(h){_.Fk(h.Wm())&&(f[h.getId()]=new zL(h))});lDc(c,Object.values(f))};
var mDc=function(a,b){var c=[];b.forEach(function(d){c.push(d.getItem())});a.fl(c)},nDc=function(a){a=a.context.Df;var b=new _.Df;b.Jl(!0);b=Hvc(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 _.qI;_.rI(h,f.getId());_.CI(h);d.push(h)}else h=new _.yoa,_.KK(h,!1),_.x(h,2,!1),_.G(f,81,h),c.push(b[e])}lDc(a,c);a.Fo(d)},iDc=[50],jDc=[12,11,10,67,68];
var oDc=function(a){this.context=a;this.H=null;this.V=!1;this.O=new kDc(a,a.Dg)};_.g=oDc.prototype;_.g.dZ=function(a){this.H=a;this.V=!1;if(a){if(this.H){a=this.gcb.bind(this);var b=this.fcb.bind(this);this.log("Querying all offline items.");this.H.fW().eg(a,b);this.V||(this.H.v0((0,_.L)(this.Hzb,this)),this.V=!0)}}else nDc(this.O)};_.g.gcb=function(a){this.log("Processing all offline item(s): "+a.length);this.O.fl(a);PL(this.context.Pj,"GZTDpc")};_.g.fcb=function(){this.log("Error fetching offline items.")};
_.g.Hzb=function(a){this.log("Handling offline change(s): "+a.length);mDc(this.O,a)};_.g.log=function(a){this.context.Ce().info("drive.ds.sync.offline.LocalDataService",a)};
var uM=function(a){_.zi.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 oDc(a);this.context.ha=b;this.Ga=new fDc(a,this);Roc(this.Ga);_.y(a.Xc,_.II,58);this.Ja(this.Oc);this.O=this.context.Pj;this.W=a.Jta;this.V=new ZCc(a,this.W);a=this.context;b=this.V;a.W=b;a.O.resolve(b);this.pUa()};_.K(uM,_.zi);_.g=uM.prototype;_.g.pUa=function(){};
_.g.initialize=function(){var a=this;if(!this.ma){this.ma=_.Zh();var b=this.context.mk().H(106E3);this.ma.promise.then(function(){b&&b.Dj()},function(){_.sK(a.context.mk(),181008852)});this.context.Ce().info(this.Ba,"Initializing "+(_.YJ(this.context.Xc)?"(coldstart) ":"")+" with client build: "+this.context.Xc.Li());this.Oc.listen(this.context,_.ad,this.mxb);this.Oc.listen(this.context.VI,["fb","gb"],function(c){return void a.dispatchEvent(c)});this.Oc.listen(this.context.yk(),[].concat(_.fc(Object.values(_.WB))),
function(c){return void a.dispatchEvent(c)});this.$a();this.O.start();PL(this.O,"NSockf")}return this.ma.promise};_.g.xZa=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.L5=function(){throw vM("teamDriveQuery");};_.g.Jqa=function(){throw vM("teamDriveFindByIds");};
_.g.Kqa=function(){throw vM("teamDriveMovePreflight");};_.g.EHa=function(){throw vM("peoplePredictQuery");};_.g.query=function(a){Xvc(this.context.Am,a,jsc(this.context.Dg));this.MF();var b=a.clone();b=this.V.vya(b);this.Ua||(a=a.se(),a&&121===_.z(a,1)||(this.Ua=!0,this.Oc.listen(b,_.bd,this.BOa)));return b};_.g.BOa=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.BOa)}};_.g.kt=function(a){this.MF();atc(a);return this.V.sya(a.clone())};
_.g.qwa=function(){throw vM("activityQuery");};_.g.gxa=function(){throw vM("backupsQuery");};_.g.tIa=function(){throw vM("refreshBackups");};_.g.gW=function(){throw vM("getAndroidBackupItems");};_.g.n9=function(){throw vM("deleteBackup");};_.g.HHa=function(){throw vM("permissionQuery");};_.g.Waa=function(){throw vM("insertPermission");};_.g.o9=function(){throw vM("deletePermission");};_.g.ad=function(){throw vM("mutate");};_.g.sO=function(){throw vM("mutateWorkspace");};
_.g.WC=function(){throw vM("bulkMutate");};_.g.rya=function(){throw vM("createFileUploader");};_.g.IUa=function(a){return new tM(this.context.Km(),a)};_.g.ms=function(a){if(3===a.getType())return _.gi(this.context.Km().then(function(b){return b.Pe(a)}).then(null,LK));throw vM("getApps with type "+a.getType());};_.g.Ar=function(){throw vM("getApp");};_.g.Yaa=function(){throw vM("installApp");};_.g.m9=function(){throw vM("deleteApp");};_.g.ST=function(){throw vM("updateApp");};
_.g.ON=function(){throw vM("getUserAccount");};_.g.pH=function(){throw vM("getUserPrefs");};_.g.PS=function(){throw vM("mutateUserPref");};_.g.Cu=function(){throw vM("getRevisions");};_.g.jDa=function(){return!1};_.g.Jl=function(a){this.context.yz?a?_.xkc(this.context.yz,!0):this.context.yk().Me()&&this.context.yz.KM(!0).then(null,function(){}):this.context.Kj().Jl(a)};_.g.jz=function(){throw vM("setOfflineOptIn");};_.g.dZ=function(){throw vM("setLocalItemService");};_.g.MF=function(){};
_.g.SS=function(){this.context.SS();this.context.mk().O(106006)};_.g.A$=function(){return this.Ga};_.g.aZ=function(){};_.g.QB=function(){return this.context.VI.QB()};_.g.TQ=function(){return _.R(this.context.Xc.Tf(),52,!1)?_.Wh(vwc(new uwc,0)):this.context.VI.TQ()};_.g.isConnected=function(){return 1===this.context.yk().get()};_.g.H8=function(){var a=this.context.yz;return a?a.KM():_.Wh(_.mkc(0))};_.g.sync=function(){throw vM("sync");};_.g.Zu=function(){return this.context.Zu()};
_.g.mca=function(){throw vM("offlineDataLoaded");};_.g.Ooa=function(a){return this.context.Km().then(function(b){return b.Pe(a)}).then(function(b){return b})};_.g.Hxa=function(){throw vM("categoryMetadataQuery");};_.g.G8=function(){throw vM("changeCategoryLinks");};_.g.CP=function(){throw vM("updateCategoryMetadata");};_.g.eIa=function(){throw vM("publishedCategoriesQuery");};_.g.fIa=function(){throw vM("publishedCategoryQuery");};_.g.VMa=function(){throw vM("workspaceFindByIdsRequest");};
_.g.Fra=function(){throw vM("workspaceQueryRequest");};_.g.pLa=function(){throw vM("suggestedWorkspaceItemQueryRequest");};_.g.qLa=function(){throw vM("suggestedWorkspaceQueryRequest");};_.g.t0=function(){throw vM("addCacheHint");};_.g.T0=function(){throw vM("createUserFeedback");};_.g.Fo=function(){throw vM("handleChanges");};var vM=function(a){return new _.Gc(a+" is unsupported",_.NI(3))};
var zpc=function(a){uM.call(this,a);this.Ba="drive.ds.sync.AnonymousItemService";a.mz("")};_.K(zpc,uM);zpc.prototype.$a=function(){OL(this.O,["NSockf"],this.xZa.bind(this))};
var pDc=new Set([1,2,4,5,6]),qDc=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};qDc.prototype.Ff=function(){var a=new _.gM;a.Dc(this.status);this.H&&_.IAc(a,rDc(this));return a};
var sDc=function(a,b,c,d){d=void 0===d?!1:d;var e=pDc.has(c);if(1===a.status&&!e)return!1;a.Oe=c;var f=a.status;c=!a.H;if(_.mI(a.O)){var h=(h=b&&b.getUser())&&MK(h);h=!(!h||!Pxc(a.ka.H,h));a.status=h&&e||d?1:6}f=!_.Dj(a.H,b)||(_.mI(a.O)?a.status!==f:6===a.status&&e);a.H=b.clone();_.mI(a.O)||(a.status=e||d?1:6);c&&(PL(a.ha,"toquGd"),a.W.info("drive.ds.sync.account.InMemoryAccountCache","Account loaded from "+(e?"server":"cache")));f&&a.V.update(0);return f};qDc.prototype.We=function(){return this.Oe};
var rDc=function(a){return a.H?a.H.clone():null};
var tDc=function(a){_.zi.call(this);this.W=a;this.Oe=0};_.K(tDc,_.zi);var uDc=function(a){a=a.clone();var b=function(c){return c.toLowerCase()};Wuc(a,_.se(a,4).map(b));Xuc(a,_.se(a,5).map(b));return a};_.g=tDc.prototype;_.g.ms=function(){};_.g.put=function(){};_.g.remove=function(){};_.g.NQ=function(){};_.g.wH=function(){return 0!==this.Oe};_.g.We=function(){return this.Oe};
var vDc=new Set([1,2,4,5,6]),wDc=function(a,b,c){tDc.call(this,b);this.V=a;this.O=c;this.apps={};this.H=[];this.status=6;this.vp=!1};_.K(wDc,tDc);wDc.prototype.ms=function(){var a=new JL;if(!_.ab(this.apps)){_.rj(a,4,this.H);var b=[];_.Ta(this.apps,function(c){b.push(c.clone())});_.tj(a,2,b)}a.Dc(this.status);return a};wDc.prototype.put=function(a){this.apps[a.getId()]=uDc(a);this.O.update(1);this.dispatchEvent(new _.oi("Hb",this))};wDc.prototype.remove=function(a){_.bb(this.apps,a)&&this.O.update(1)};
wDc.prototype.NQ=function(a,b,c){c=void 0===c?!1:c;var d=!vDc.has(b);1===this.status&&d||(this.Oe=b,xDc(this,a,!d||c),d||this.O.update(1),this.vp||(this.vp=!0,this.V.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache","Apps initialized."),PL(this.W,"nVUlO")))};
var xDc=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);_.ahc(a.apps);b=_.yb(b,_.uL,2);d||(d=b.length!==_.Xa(h));b.forEach(function(k){var l=uDc(k);a.apps[k.getId()]=l;d||(k=h[k.getId()],d=!k||!_.Dj(l,k))});a.V.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache",(c?"Fresh":"Stale")+" apps loaded: "+b.length);d&&a.dispatchEvent(new _.oi("Hb",a))};
var wM=function(a){_.N.call(this);this.context=a;this.Vy=new Set;this.Ep=6;this.cEa=!0;this.Oe=0;this.Oc=new _.of(this);this.Ja(this.Oc)};_.K(wM,_.N);_.g=wM.prototype;_.g.Zh=function(a){this.BTa(a);this.Vy.add(a);this.resize(!0);this.SO(a)};_.g.BTa=function(){};_.g.fk=function(a){this.Vy.delete(a);0!=this.Vy.size||this.O0a()?this.resize(!1):this.dispose()};_.g.We=function(){return this.Oe};_.g.ri=function(a){this.Oe=a};_.g.sT=function(a){this.cEa=!1;this.Ep=a};_.g.nW=function(){return this.Ep};
var zDc=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)}}yDc(a.context.Df,d,b);d.forEach(function(k){ezc(a.context.IOa,k,b);if(k.uc()){var l=k.getCapabilities();AL(k)?l&&(_.x(l,12,_.Q(l,13)),_.x(l,9,!1),_.x(l,21,!1)):QK(k)?(l&&_.x(l,3,!1),_.x(k,30,!1)):l&&(_.x(l,42,!1),_.x(l,43,!1))}k.getCapabilities()||
_.RJ(k,new _.Ck)})};wM.prototype.jd=function(){};wM.prototype.fl=function(a,b){var c=this,d=!1;a.forEach(function(e){e=QL(e);d=c.qw(e,!0)||d});b||(1!=this.nW()&&(d=!0),this.sT(1));d&&this.DY()};var ADc=function(a,b){var c=!1;b.forEach(function(d){c=a.qw(d)||c});c&&a.DY();return c};_.g=wM.prototype;_.g.update=function(a){return ADc(this,[a])};_.g.DY=function(){var a=this;this.ATa();this.Vy.forEach(function(b){a.SO(b)})};_.g.ATa=function(){};
_.g.SO=function(a){var b=BDc(this.context).Bla(a);this.a0a(b)||(b=this.nk(b),BDc(this.context).SO(a,b))};_.g.CY=function(a){var b=this;this.sT(3);this.Vy.forEach(function(c){BDc(b.context).CY(c,a)})};_.g.IA=function(){var a=this;this.Vy.forEach(function(b){BDc(a.context).IA(b)});this.ri(0==this.We()?1:6)};_.g.O0a=function(){return!1};_.g.a0a=function(){return!1};
var CDc=function(a){_.oi.call(this,"xb");this.id=a};_.K(CDc,_.oi);
var DDc=function(a,b,c,d){d=void 0===d?!1:d;_.zi.call(this);this.request=a;this.context=b;this.LMa=d;this.ee=null;this.items={};this.W=[];this.V=[];this.H=null;this.originalRequest=c||a;this.O=new Set};_.K(DDc,_.zi);
DDc.prototype.mh=function(){var a=this;if(this.ee)return this.ee.promise;this.ee=_.Zh();for(var b={},c=_.m(this.request.V().entries()),d=c.next();!d.done;b={msa:b.msa,kfa:b.kfa,Xra:b.Xra},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.Xra=e;b.msa=wsc(vsc(d),this.request);b.kfa=void 0;this.LMa&&(b.kfa={LMa:!0});this.context.Km().then(function(f){return function(h){return h.Pe(f.msa,f.kfa)}}(b)).then(function(f){return void EDc(a,f)},function(f){return function(h){var k=f.Xra;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),FDc(a)):a.handleError(h)}}(b))}return this.ee.promise};var EDc=function(a,b){b.Zc().Bd().forEach(function(c){_.AI(c,1);a.W.push(c)});FDc(a)},FDc=function(a){a.H||(a.H=_.n.setTimeout(a.ha.bind(a),10))};
DDc.prototype.ha=function(){_.n.clearTimeout(this.H);this.H=null;GDc(this);HDc(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 GDc=function(a){var b=a.W;a.W=[];b=a.context.qga.U9(b);if(_.LI(_.fI(a.context.Xc))){var c=a.context.Df.Zl;_.Ma(b,function(d){var e=c.H(d.getId());e&&_.QJ(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)},HDc=function(a){var b=a.V;a.V=[];b.forEach(function(c){var d=_.CI(_.rI(new _.qI,c));a.context.Df.Fo([d]);a.O.add(c);a.items[c]=null;a.dispatchEvent(new CDc(c))})};
DDc.prototype.handleError=function(a){var b=new YL(a.tg,_.Ej(this.context.Xc.Tf(),1,1));this.context.Df.LB(this.request,b);this.dispatchEvent(b);this.ee.reject(a)};
var IDc=function(a,b,c,d){wM.call(this,a);this.Dg=b;this.request=c;this.Dd={};this.H=null;this.O=_.JJ(a.Xc)||new _.yic;d&&this.fl(d,!0)};_.K(IDc,wM);
IDc.prototype.refresh=function(){var a=this;if(this.H)return this.H.promise;this.Ep=6;if(_.R(this.request,5,!1))return this.sT(1),_.Wh();var b=this.cEa?!Gnc(_.cK(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),_.Wh();this.H=_.Zh();this.H.promise.then(function(){a.H=null},function(){a.H=null});var e=
this.request.clone();_.ZF(e,c);var f=new DDc(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"),JDc(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),JDc(this,f,this.H));return this.H.promise};var JDc=function(a,b,c){a.Oc.listen(b,"xb",function(d){a.Dd[d.id]=null});a.IA();b.mh().then(function(){c.resolve()},c.reject)};_.g=IDc.prototype;
_.g.Mia=function(a){var b=this;if(this.context.Am.equals(a,this.request,!0)){if(Gnc(_.cK(this.Dg),a.H()))return!0;if(Gnc(this.request.H(),a.H(),_.cK(this.Dg))){if(this.cEa)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 _.kK;_.mI(this.context.Xc)?b.Dc(Tnc(Object.values(this.Dd))?6:this.Ep):b.Dc(this.Ep);b.ri(this.We());Qsc(b,_.Va(this.Dd,function(c){return c?c.getItem():null}));zDc(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 KDc=function(a,b){_.oi.call(this,a);this.changes=b};_.K(KDc,_.oi);
var LDc=function(a){var b=new myc;if(a.Vf()){var c=a.Vf();b.H=!1;b.suggestionSessionId=c}a instanceof _.lK&&_.yb(a,_.wk,6).length?(a=_.yb(a,_.wk,6),b.H=!1,b.V=a):a instanceof _.eI&&(a.a7()||a.Dta()||a.lla().length)&&(c=a.a7(),b.H=!1,b.W=c,c=a.Dta()||!1,b.H=!1,b.incompleteSearch=c,a=a.lla(),b.H=!1,b.O=a);return b};
var xM=function(a,b,c,d,e,f,h,k,l){l=void 0===l?"":l;_.zi.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.aIa(f);this.ha=new myc};_.K(xM,_.zi);var MDc=function(a){return!a.wa||""!==a.nextPageToken},ODc=function(a,b){a.W=b;return a.V.length<a.W&&!a.O&&MDc(a)?NDc(a):_.fi()};xM.prototype.Yb=function(){return this.V.length};xM.prototype.H=function(){return this.V.slice()};
var NDc=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 _.ai;d.addCallback(function(h){PDc(a,c,h)});var e=_.lnc(_.mnc(new _.nI,a.Ia),c),f=_.jnc(new _.Nfc,b);a.La&&_.x(f,10,!0);_.knc(e,f);a.wa=!0;a.O=!0;a.Ba.then(function(h){return h.Pe(e)}).then(function(h){QDc(a,d,h)},function(h){a.handleError(d,f,h)});return d},QDc=function(a,b,c){a.O=!1;if(c instanceof _.lK)var d=c;else d=c.Zc(),a.nextPageToken=c.ao()||"";a.ha=LDc(d);a.ha.lc()||
a.dispatchEvent("yb");b.callback(d.Bd())};xM.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()&&(_.jnc(b,Math.ceil(_.Ej(b,1,1E3)/2-2E-15)),1<_.Ej(b,1,1E3))){var e=_.knc(_.lnc(_.mnc(new _.nI,this.Ia),this.nextPageToken),b);this.O=!0;this.Ba.then(function(h){return h.Pe(e)}).then(function(h){QDc(d,a,h)},function(h){d.handleError(a,b,h)});return}var f=new YL(c.tg,_.Ej(this.Qa.Tf(),1,1));this.COa(f);this.dispatchEvent(f);a.Gd(c)}};
var PDc=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: ")+(_.Fjc(a.request)+" paginationToken: ")+b;b=_.Ho(_.Fo(_.uI(_.tI(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())_.AI(b.value,a.ma?
2:1);c=[];b=_.m(a.h4a(f));for(f=b.next();!f.done;f=b.next())f=f.value,a.V.push(f.getId()),f=_.rI(new _.qI,f.getId()).setItem(f),c.push(f);c.length&&a.dispatchEvent(new KDc("wb",c));a.V.length<a.W&&a.nextPageToken?NDc(a):a.dispatchEvent("zb")};_.g=xM.prototype;_.g.h4a=function(a){return a};_.g.COa=function(){};_.g.jd=function(){return this.request};_.g.aIa=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 RDc=function(a,b,c,d){xM.call(this,a.Ce(),a.Km(),a.Xc,a.Df.Zl,a.dispatchEvent,b,void 0,c,d);this.context=a};_.K(RDc,xM);RDc.prototype.h4a=function(a){a=this.context.qga.U9(a);this.context.Df.fl(a,1,this.request,MDc(this));return a};RDc.prototype.COa=function(a){this.context.Df.LB(this.request,a)};RDc.prototype.aIa=function(a){var b=a=xM.prototype.aIa.call(this,a),c=_.pl(b);0===_.se(b,33).length&&1===c.length&&(c=this.ta.H(c[0].Wa()))&&(c=c.uc())&&(_.rl(b,[c]),_.sl(b,2));SDc(this,a);return a};
var SDc=function(a,b){if(_.pl(b).some(function(d){return(d=a.ta.H(d.Wa()))&&_.Q(d,108)})){var c=b.se();c||(c=new _.Qf,_.ql(b,c));_.Rf(c,937)}};
var TDc=function(a,b,c,d){this.context=a;this.Dg=b;this.V=d;this.Qoa=0;this.O=c},XDc=function(a,b){if(b){a.log("Processing potential rejoin for TD: "+b);var c=_.sl(_.nl(_.rl(new _.Df,[b]),_.cK(a.Dg)),1),d=_.Rf(new _.Qf,306);_.ql(c,d);UDc(a);c=new RDc(a.context,c);ODc(c,5E3).addCallback(a.H.bind(a,c));VDc(a);WDc(a,b)}},VDc=function(a){var b=_.Ya(a.O).filter(function(d){return d instanceof IDc}),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)},WDc=function(a,b){var c=[];(a.context.Df.kIa.aR[b||"subscribed"]||[]).forEach(function(d){_.Ta(a.O,function(e){_.Dj(e.jd(),d)&&c.push(e)})});_.Ga(c);0<c.length&&(UDc(a),c.forEach(function(d){d=hL(a.context.Am,d.jd(),3);a.log("Refreshing "+b+" cache: "+d)}),_.Yh(c.map(function(d){return d.refresh().then(null,_.ig)})).then(function(){YDc(a)},function(){YDc(a)}))};
TDc.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 _.Wh({});a=_.x(_.YF(_.ZF(new _.XF,a),d||_.cK(this.Dg)),7,!0);_.$F(a,b);e&&e.length&&_.tj(a,11,e);UDc(this);var h=new DDc(a,this.context,void 0,c);b=h.mh();b.then(function(){f.H(h)},function(){f.H(h)});return b};TDc.prototype.H=function(a){a.dispose();YDc(this)};var UDc=function(a){a.Qoa++;a.context.Ys.setActive(!1)},YDc=function(a){a.Qoa--;0===a.Qoa&&a.context.Ys.setActive(!0)};
TDc.prototype.log=function(a){this.context.Ce().info("drive.ds.sync.cache.CacheRefresher",a)};
var ZDc=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);_.ql(this.request,a);this.Oc=new _.of(this);this.Ja(this.Oc)};_.K(ZDc,_.N);
ZDc.prototype.mh=function(){if(!this.ee){this.ee=_.Zh();if(_.R(this.request,48,!1))return this.H.ri(9),this.ee.resolve(this.H),this.ee.promise;this.O=new xM(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));ODc(this.O,this.request.wi())}return this.ee.promise};
ZDc.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(QL(new zL(b)))};ZDc.prototype.V=function(){this.H instanceof SL?this.H.H=!MDc(this.O):MDc(this.O)&&RL(this.H,!1);this.H.ri(5);this.ee.resolve(this.H)};
var aEc=function(a,b){_.oi.call(this,$Dc);this.cache=a;this.changes=b};_.K(aEc,_.oi);var $Dc="Ib";
var bEc=function(a,b){return new _.Vh(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();Znc(k.getItem());f.set(l,rvc(new zL(k.getItem()),k.H))}h=_.m(e.items);for(k=h.next();!k.done;k=h.next())k=k.value,l=k.qc(),l=f.get(l)||null,_.BI(k)?l&&a.update(new lxc(l.getId(),l,null)):(k=k.getItem(),Znc(k),a.update(mxc(l,rvc(new zL(k),null===l||void 0===l?void 0:l.H))));a.VX();c(e.pOb)},d)})};
var cEc=function(a,b){_.N.call(this);this.context=a;this.Dg=b};_.K(cEc,_.N);
cEc.prototype.mh=function(a){this.log("Running initial view populator (IVDP).");try{var b=new wL(JSON.parse(a))}catch(l){this.handleError("Error parsing initial view dump.",_.OI(l));return}a=_.fI(this.context.Xc);if(!_.LI(a)){var c=b.Ff();if(c){var d=c.getUser();d&&d.getId()===_.C(a,6,"")&&sDc(this.context.FQ,c,4)}(a=b.Du())&&this.context.mz(a,6)}var e=_.z(b,3)||void 0;e&&dEc(this.context,e,!0);if((a=_.yb(b,_.Wo,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())&&_.Xo(l))&&f.add(l)});this.context.IE.NQ(a,4,[].concat(_.fc(f.values())))}a=b.Bd();a.forEach(function(l){_.mhc(l);_.AI(l,6)});if(c=_.yb(b,vL,5)[0])if(b=this.context.Am,Nnc(_.cK(this.Dg),c.getQuery().H(),_.XJ(this.context.Xc)))if((d=c.getQuery().Lc())&&4===d.getType()&&!_.cdc())this.handleError("Invalid initial view data, natural sort unsupported");else{if(0<a.length){d=CL(b,c.getQuery());d.Gi(_.z(c,2)||void 0);b=a.map(function(l){return new zL(l,void 0,1,e)});var h=_.y(c,_.Jk,3);if(h&&
_.z(c,2)){var k=b[b.length-1];_.AI(h,6);if(!_.Dj(h,k.getItem())){this.handleError("Invalid last item in initial view data.");return}}k=new SL(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(QL(h.value))?c++:d++;eEc(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 _.nI;_.mnc(k,b);k=_.Qkc(this.context.jB,
k,"IVDP");_.Rkc(k,a);PL(this.context.Pj,"W6J7De")}}else this.handleError("Invalid initial view data, fields: "+Vvc(b,c.getQuery().H()));else this.handleError("No initial query found")};cEc.prototype.handleError=function(a,b){var c=b?void 0:_.Ho(_.uI(_.tI(new _.Fc,2),6));b=new _.Gc(a,c,b);this.context.FJ(b.tg);this.log("Initial view dump population failed. Message: "+a);PL(this.context.Pj,"DEJoH")};cEc.prototype.log=function(a){this.context.Ce().info("drive.ds.sync.cache.InitialViewPopulator",a)};
var fEc=function(a){_.zi.call(this);this.context=a;this.W="drive.ds.sync.cache.CorpusCachePopulator";this.V=0;this.O=new UL(a.Et,a.Uv,a.Pj,function(){return a.Du()});this.H=this.context.Xc;this.ta=new pxc(a.Et,a.Uv)};_.K(fEc,_.zi);
var gEc=function(a,b){var c=_.Ej(a.H,31,2E4);b="number"===typeof _.z(b,3)?_.z(b,3):c+1;b>c?(RL(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.jB.Hb("CachedCorpusType",c)};fEc.prototype.log=function(a,b){this.context.Ce().log(this.W,a,b||"info")};var hEc=function(a,b){0===a.V&&(a.V=b)};
var iEc=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 jEc=function(a,b){_.zi.call(this);this.context=a;this.request=b;this.V=[];this.nextPageToken="";this.H=this.O=!1};_.K(jEc,_.zi);jEc.prototype.mh=function(){return this.H||this.O&&""===this.nextPageToken?_.fi():kEc(this)};jEc.prototype.Yb=function(){return this.V.length};
var kEc=function(a){a.O=!0;a.H=!0;var b=Hrc(Irc(new _.FJ,a.request),a.nextPageToken),c=_.Qkc(a.context.jB,b);return _.gi(a.context.Km().then(function(d){return d.Pe(b)}).then(function(d){var e=d.Zc().Bd();a.nextPageToken=d.ao()||"";lEc(a,c,e)},function(d){return void a.handleError(d)}))},lEc=function(a,b,c){_.Rkc(b,c);for(b=0;b<c.length;b++)_.AI(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=_.rI(new _.qI,e.getId()).setItem(e);
d.push(e)},a);d.length&&a.dispatchEvent(new KDc("wb",d));a.nextPageToken?kEc(a):(a.H=!1,a.dispatchEvent("zb"))};jEc.prototype.handleError=function(a){this.H=!1;a=new YL(_.vI(a),_.Ej(this.context.Xc.Tf(),1,1));this.dispatchEvent(a)};jEc.prototype.jd=function(){return this.request};
var mEc=function(a){this.H=_.ddc(a,{numeric:!0})};mEc.prototype.sort=function(a){_.Ka(a,this.compare.bind(this))};mEc.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 nEc=function(a,b,c,d){d=void 0===d?!1:d;wM.call(this,a);this.Dg=b;this.Dd=[];this.ee=null;this.request=c.clone();this.cw=new jEc(a,this.request);this.kTb=new mEc($K(_.fI(a.Xc)));this.oEa=null!=_.Q(this.request,6);_.ff(this,this.bpb,this);d&&(this.ee=_.Zh(),this.ee.resolve())};_.K(nEc,wM);_.g=nEc.prototype;_.g.refresh=function(){3===this.Ep&&(this.Ep=6,this.ee=null);return this.kda()};_.g.isInitialized=function(){return!!this.ee};
_.g.kda=function(){var a=this;if(this.isInitialized())return this.ee.promise;this.ee=_.Zh();this.context.Kj().Me()?this.Oc.listen(this.context.Kj(),"rb",function(b){b.Me()||(a.Oc.Tc(a.context.Kj(),"rb"),a.IA(),a.cw.mh().eg(a.ee.resolve,a.ee.reject,a.ee))}):this.context.yk().Me()?this.Oc.hd(this.context.yk(),[_.WB.ZL,_.WB.$U],function(){a.IA();a.cw.mh().eg(a.ee.resolve,a.ee.reject,a.ee)}):(this.IA(),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.Mia=function(a){return this.context.Am.equals(a,this.request)};_.g.nk=function(a){a=a.wi();this.kTb.sort(this.Dd);var b=Doc(_.Da(this.Dd,0,Math.min(a,this.Dd.length)));zDc(this,ksc(this.Dg),b);var c=new _.eI;c.hB(b);c.Dc(this.Zxa(a));c.ri(this.We());Crc(c,a<this.Dd.length||!(this.context.Kj().Me()||this.context.yk().Me())&&1!==this.Ep);return c};
_.g.Zxa=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()&&wM.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.pMa(f,a.H):this.BJ(f):this.mS(a.H);else return!1;return!0};_.g.mS=function(a){this.Dd.push(a);a.count++};
_.g.BJ=function(a){_.wa(this.Dd,a);a.count--};_.g.hAa=function(a){return _.oa(this.Dd,a)};_.g.pMa=function(a,b){this.Dd[this.hAa(a)]=b;b.count++;a.count--};_.g.Ds=function(a,b){b=void 0===b?!1:b;if(!a)return!1;if(this.oEa&&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=AL(a.getItem())&&iEc(this.request,a.getItem());return b&&a}return AL(a.getItem())&&iEc(this.request,a.getItem())};_.g.bpb=function(){this.Dd.forEach(function(a){a.count--})};
_.g.O0a=function(){return!0};_.g.getType=function(){return"TeamDriveViewCache"};_.g.getSize=function(){return this.Dd.length};_.g.VX=function(){this.Ep=1};
var oEc=function(a){this.H=a},pEc=function(a,b,c,d,e){if(0===e||null===b){var f=new eBc;_.x(f,2,b);_.x(f,1,d);return _.Wh(f)}var h=wwc();_.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 pEc(a,p,c,d+_.z(k,1),e-1)})};
var qEc=function(a,b){fEc.call(this,a);this.Dg=b;this.ha=void 0;this.ka=null;this.ma=!1;this.dE=void 0;this.W="drive.ds.sync.cache.LocalDumpPopulator"};_.K(qEc,fEc);qEc.prototype.handleError=function(){this.log("Local dump population failed.");PL(this.context.Pj,"mrK8ic")};
qEc.prototype.mh=function(){var a=this;if(this.ka)return this.ka;if(this.context.iR){var b=new _.ai;this.ka=b;this.initialize().then(function(){var c=_.yb(_.aL(a.H),ZK,11);c=c[0]&&c[0].getKey()||"";return rEc(a,a.context.iR,c,4)}).then(null,function(c){if(_.R(a.H,8,!0))return sEc(a,c);throw c;}).then(function(){_.mI(a.H)||a.context.Df.Lq.H.clear();PL(a.context.Pj,"zaOY7");b.callback()},function(c){hEc(a,8);a.handleError();b.Gd(c)});return b}this.handleError();return _.hi(Error("yg"))};
qEc.prototype.initialize=function(){var a=this;return _.Wh(this.context.iR.initialize()).then(function(){if(!_.YJ(a.H)){var b=_.Ej(_.aL(a.H),7,432E6);b&&(a.ha=Date.now()-b);return new _.Vh(function(c,d){AAc(a.context.WD).then(function(e){e?c():d(Error("zg"))})})}})};
var rEc=function(a,b,c,d){return _.ng(a,function f(){var h=this,k;return _.dg(f,function(l){return 1==l.H?(k=h.ha,tEc(h,b,c,k),uEc(h,b,c,k),vEc(h,b,c,k),_.Xf(l,wEc(h,b,c,k),2)):_.Xf(l,Promise.all([xEc(h,b,c,d,k),yEc(h,b,c,d,k),zEc(h,b,c,d,k),AEc(h,b,c,d,k)]),0)})})},tEc=function(a,b,c,d){var e=function(){return a.log("Failed to load account from storage.")};cM(b,c,0,void 0,d,a.dE).then(function(f){f[0]?sDc(a.context.FQ,f[0],a.We(),_.YJ(a.H)):e()},function(){return e()})},uEc=function(a,b,c,d){var e=
function(){return a.log("Failed to load apps from storage.")};cM(b,c,1,void 0,d,a.dE).then(function(f){f[0]?a.context.L_.NQ(f[0],a.We(),_.YJ(a.H)):e()},function(){return e()})},vEc=function(a,b,c,d){var e=function(){return a.log("Failed to load user prefs from storage.")};cM(b,c,5,void 0,d,a.dE).then(function(f){if(f[0]){f=f[0];var h=_.yb(f,_.Wo,1);h.length&&a.context.IE.NQ(h,a.We(),_.se(f,2),_.YJ(a.H))}else e()},function(){return e()})},xEc=function(a,b,c,d,e){var f=new _.fn;cM(b,c,3,1,e,a.dE).then(function(h){return BEc(a,
h[0])}).then(function(h){if(h){b!==a.context.iR||Nnc(_.se(h,12),_.cK(a.Dg),_.XJ(a.H))||(a.log("Disabling dump updater due to inconsistent fields.","warning"),a.context.Ys.$S());var k=_.z(h,3);if(!k||0>k)throw Error("Cg");a.context.mz(h.Du(),d);k=_.z(h,3);"number"===typeof k&&dEc(a.context,Number(k));if(_.YJ(a.H)||_.WJ(a.H))a.log((_.YJ(a.H)?"Coldstart":"Background")+": Firing INITIAL_CHANGES_PROCESSED."),a.context.DFa();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},yEc=function(a,b,c,d,e){return CEc(a,2,b,c,d,e).then(function(){var f,h;return null===(f=_.JJ(a.H))||void 0===f||!_.R(f,17,!1)||null!==(h=a.O)&&void 0!==h&&h.OD?Promise.resolve():CEc(a,5,b,c,d,e)},function(){var f;return(null===(f=_.JJ(a.H))||void 0===f?0:_.R(f,17,!1))?CEc(a,5,b,c,d,e):Promise.reject(Error("Ag"))})},CEc=function(a,b,c,d,e,f){var h=new _.fn;cM(c,d,3,b,f,a.dE).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},zEc=function(a,b,c,d,e){var f=new _.fn;cM(b,c,3,4,e,a.dE).then(function(h){h.forEach(function(k){a.fl(k,d)});f.resolve()},function(h){return f.reject(h)});return f.promise},AEc=function(a,b,c,d,e){var f=new _.fn;cM(b,c,3,3,e,a.dE).then(function(h){h.length?h.forEach(function(k){a.fl(k,d)}):PL(a.context.Pj,"rVezo");f.resolve()},function(h){return f.reject(h)});return f.promise},wEc=function(a,b,c,d){var e=new _.fn;cM(b,c,6,void 0,d,a.dE).then(function(f){f=
_.m(f);for(var h=f.next();!h.done;h=f.next())h=h.value,_.yb(h,ML,1).length&&(a.log("Importing "+_.yb(h,ML,1).length+" people into the PeopleCache."),h=_.yb(h,ML,1),Kxc(a.context.Df.Lq.H,h,2));e.resolve()},function(f){return e.reject(f)});return e.promise},BEc=function(a,b){var c=_.z(b,3);if(c&&!_.YJ(a.H)){var d=new oEc(a.context.Km()),e=_.Ej(_.aL(a.H),13,5);return pEc(d,c,null,0,e).then(function(f){return _.mj(f,2)?(a.log("Encrypted dump too stale."),a.context.mk().O(106007),hEc(a,9),null):b},function(){return b})}return _.Wh(b)},
sEc=function(a,b){var c=dM(a.context.dM.nj()),d=_.yb(_.aL(a.H),ZK,11).filter(function(e){return e.yt()});return sAc(_.VJ(_.fI(a.H)),_.XJ(a.H),_.Ej(_.aL(a.H),10,0)||0,_.cK(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 eM(_.Wh(e),a.context.Ce(),null,!0),k=new qzc(h,a.H,function(l){a.context.FJ(l)});k.initialize();a.ma=!0;return rEc(a,k,f?f.getKey():null,8).then(function(){return h.getMetadata([xAc])}).then(function(l){l[0]?
(l=l[0].Wa(),l=a.context.WD.set(xAc,l)):l=Promise.resolve();return l}).then(function(){h.close()})}return _.Xh(new _.Gc("No compatible dumps to forklift were found.",null,b))})},HEc=function(a,b,c){var d;switch(b.Xo()){case 1:return DEc(a,b,c);case 2:return EEc(a,b,a.O);case 5:return(null===(d=_.JJ(a.H))||void 0===d?0:_.R(d,17,!1))?EEc(a,b,a.ta):null;case 3:return FEc(a,b);case 4:return GEc(a,b);default:return null}},DEc=function(a,b,c){var d=[];_.yb(b,vL,5).forEach(function(e){var f=void 0,h=_.y(e,
_.Jk,3);h&&(_.mhc(h),_.Q(a.H,67)&&Bnc(h,Qnc),_.AI(h,c),f=new zL(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=CL(a.context.Am,l,!0);return _.Dj(l,k)}))e=new SL(a.context.Et,a.context.Uv,a.context.Am,k,f),e.ri(a.We()),d.push({cache:e,changes:aM(a.context.Bx,null)})});return d},EEc=function(a,b,c){b=_.y(b,Voc,11);if(!b)throw Error("Dg");gEc(a,b);return c.OD?(c.ri(a.We()),[{cache:c,changes:aM(a.context.Bx,null)}]):[]},GEc=function(a,b){return _.yb(b,
vL,5).map(function(c){c=new nEc(a.context,a.Dg,_.y(c,_.RH,5),!0);c.ri(a.We());return{cache:c,changes:aM(a.context.Bx,null)}})},FEc=function(a,b){var c=_.se(_.yb(b,vL,5)[0].getQuery(),33)[0],d=_.z(b,3)||void 0;b=aM(a.context.Bx,c);yM(a.context).addCallback(function(f){f.Bwa(c,d)});var e=new WL(a.context.Et,a.context.Uv,c);e.ri(a.We());return[{cache:e,changes:b}]};
qEc.prototype.fl=function(a,b){var c=this,d=HEc(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;_.mhc(h);_.Q(this.H,67)&&Bnc(h,Qnc);_.AI(h,b);_.mI(this.H)||this.context.Df.Lq.H.lc()||fyc(this.context.Df.Lq,[h]);f=new zL(h);_.se(a,14).includes(h.getId())&&rvc(f,!0);for(h=0;h<d.length;h++)d[h].cache.update(QL(f))}d.forEach(function(k){var l=k.cache;c.dispatchEvent(new aEc(l,k.changes));c.log("Imported "+l.getSize()+" items into the "+l.getType());var p=
null;l instanceof WL&&(p=l.uc());c.context.Uaa.promise.then(function(){bM(c.context.Bx,p)})});1===a.Xo()&&PL(this.context.Pj,"ZA9qG")}else this.log("Ignoring corpus cache for "+a.Xo()+".")};qEc.prototype.We=function(){return this.ma?7:3};
var IEc=function(a){_.N.call(this);this.context=a};_.K(IEc,_.N);IEc.prototype.mh=function(a){try{return JEc(this,new iCc(JSON.parse(a)))}catch(b){return this.handleError("Error parsing prefetched request.",b),Promise.resolve()}};
var JEc=function(a,b){a.log("Running prefetched request populator for "+b.getKey()+".");switch(b.getKey()){case 1:case 3:b=KEc(a,b);break;case 4:b=LEc(a,b);break;case 6:b=MEc(a,b);break;case 2:b=NEc(a,b);break;case 7:b=OEc(a,b);break;case 5:b=Promise.all(_.yb(_.Hj(b,kCc,7,mCc),iCc,1).map(function(c){JEc(a,c)}));break;default:return a.handleError("Unsupported prefetched request."),Promise.resolve()}return b},KEc=function(a,b){var c=_.Hj(b,_.Df,2,lCc);b=JSON.parse(_.Gj(b,3,mCc)||"{}");var d=new _.nI;
_.mnc(d,c);return a.context.UR().Ita.convert(d,{headers:{},text:"",json:b}).then(function(e){PEc(a,c,e.Zc())})},MEc=function(a,b){return PEc(a,_.Hj(b,_.Df,2,lCc),_.Hj(b,_.eI,9,mCc))},PEc=function(a,b,c){for(var d=c.Bd(),e=_.m(d),f=e.next();!f.done;f=e.next())_.AI(f.value,7);c=LDc(c);a=a.context.Df;b=CL(a.context.Am,b);e=zM(a,b);a.log("Initializing cache with "+d.length+" items for key '"+e+"'");f=a.V[e];f||(f=new AM(a.context,b),f.ri(2),QEc(a,e,f));c.lc()||f.Hta(c);a.fl(d,1,b);return Promise.resolve()},
NEc=function(a,b){_.Hj(b,_.oD,4,lCc);b=_.Hj(b,_.aA,5,mCc);var c=a.context.Xc.Tf();c=c&&_.se(c,30)||[];var d=new Set(c);_.yb(b,_.Wo,3).forEach(function(e){(e=(e=e.getKey())&&_.Xo(e))&&d.add(e)});a.context.IE.NQ(_.yb(b,_.Wo,3),2,[].concat(_.fc(d.values())));return Promise.resolve()},LEc=function(a,b){a.context.rga.A3(_.Hj(b,NL,8,mCc).Zk(),_.Hj(b,_.eA,6,lCc),2,!1);return Promise.resolve()},OEc=function(a,b){var c=_.Hj(b,_.cA,10,lCc);b=JSON.parse(_.Gj(b,3,mCc)||"{}");return a.context.UR().Ita.convert(c,
{headers:{},text:"",json:b}).then(function(d){$Cc(a.context).A3([d],c,2,!1)})};IEc.prototype.handleError=function(a,b){var c=b?void 0:_.Ho(_.uI(_.tI(new _.Fc,2),6));this.context.dispatchEvent(new _.Hc(new _.Gc(a,c,b instanceof Error?b:null)));this.log("Prefetched request population failed.")};IEc.prototype.log=function(a){this.context.Ce().info("drive.ds.sync.cache.PrefetchedRequestPopulator",a)};
var REc=function(a){fEc.call(this,a);this.ha=[];this.ka=[];this.W="drive.ds.sync.cache.SdkCachePopulator";this.ma=Math.ceil(1.1*_.Ej(a.Xc,31,2E4))};_.K(REc,fEc);REc.prototype.mh=function(){if(!_.R(this.H,45,!1))return hEc(this,5),this.handleError(),_.hi(Error("Eg"));this.log("Drive SDK cache population initiated.");return this.context.eYa().addCallback(this.Ba,this).addCallback(this.wa,this).zg(this.handleError,this)};
REc.prototype.Ba=function(){var a=this;PL(this.context.Pj,"L6uQWd");yM(this.context).addCallback(function(b){b.Eea()});if(_.R(this.H,46,!1))return Uoc(this.context.Km(),this.context.Ce()).addCallback(function(b){if(!b)throw hEc(a,4),Error("Fg");gEc(a,b)});this.log("Subscribed corpus cache population disabled.");RL(this.O,!1);return _.fi()};
REc.prototype.wa=function(){var a=this;this.context.DFa();var b=new _.ai;if(this.O.OD){this.log("Starting subscribed corpus cache population.");var c=this.O.jd();c.Gi(this.ma);this.O.ri(5);SEc(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 SL(this.context.Et,this.context.Uv,this.context.Am,d.value),d.ri(5),SEc(this,d,d.jd()),d=hL(this.context.Am,d.jd()),this.log("Starting "+d+" cache hint corpus cache population.");_.Yh(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();hEc(a,7);f=e;e instanceof YL?f=_.OI(e.error):_.sI(e)||(f=Error("Gg`"+e));b.Gd(f)});return b};
var SEc=function(a,b,c){var d=aM(a.context.Bx,null);b=new ZDc(a.context,b,c);a.ha.push(b);b=b.mh().then(function(e){!e.OD&&e instanceof UL&&(a.log("Subscribed corpus cache disabled, too many backfill items."),a.context.jB.Hb("CachedCorpusType","errorUncachedCorpus"));a.dispatchEvent(new aEc(e,d))});b.then(function(){TEc(a)},function(){TEc(a)});a.ka.push(b)},TEc=function(a){a.context.Uaa.promise.then(function(){bM(a.context.Bx,null)})};
REc.prototype.handleError=function(){this.log("Drive SDK cache population failed.");PL(this.context.Pj,"Gv4zef")};REc.prototype.We=function(){return 5};
var UEc=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 qEc(this.context,this.context.Dg);this.Ja(this.H);this.O=new REc(this.context);this.Ja(this.O)};_.K(UEc,_.N);
UEc.prototype.mh=function(){var a=this;this.log("Corpus cache population initiated.");this.impression=this.context.mk().H(106002);_.n._DRIVE_dsp&&VEc(this);_.n._DRIVE_dspc=function(c){VEc(a,c)};aM(this.context.Bx,null);_.R(this.context.Xc,24,!1)&&!_.YJ(this.context.Xc)&&(_.n._DRIVE_ivd||null===_.n._DRIVE_ivd?WEc(this):_.n._DRIVE_ivdc=function(){WEc(a)});var b=this.context.iR;if(b)return this.Oc.listen(this.H,$Dc,this.ha),this.Oc.listen(this.O,$Dc,this.ha),(!_.WJ(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.dE=a.impression);return a.H.mh().eg(function(){return XEc(a,a.H.We())},function(){YEc(a,a.H.We(),a.H.V);return _.YJ(a.context.Xc)?a.handleError(Error("Hg")):a.O.mh().then(function(){return XEc(a,a.O.We())},function(c){YEc(a,a.O.We(),a.O.V);return a.handleError(c)})})},function(c){a.handleError(_.sI(c)?c:void 0,!0)})});this.handleError(void 0,!0)};
var VEc=function(a,b){a=new IEc(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()};UEc.prototype.ha=function(a){var b=a.cache;this.log("Cache populated: "+b.getType());this.W.push(ZEc(this,b,a.changes))};
var XEc=function(a,b){bM(a.context.Bx,null);PL(a.context.Pj,"L6uQWd");yM(a.context).addCallback(function(c){c.Eea()});return Promise.all(a.W).then(function(){$Ec(a,b)})},$Ec=function(a,b){if(!a.isDisposed()){_.YJ(a.context.Xc)||aFc(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.EFa():AAc(a.context.WD).then(function(d){d&&a.context.Ys.EFa()},function(){});PL(c,"rVezo");PL(c,"BNEDtc");a.impression&&(b=_.jK(_.fgc,
b),esc(msc(a.impression),b),dsc(msc(a.impression),!0),fsc(msc(a.impression),Ivc(a.V.Zl)),gsc(msc(a.impression),a.context.Df.Xo()),a.impression.Dj());a.dispose()}},YEc=function(a,b,c){a.impression&&(b=_.jK(_.fgc,b),esc(msc(a.impression),b),a=msc(a.impression),_.vj(a,3,c,void 0))};
UEc.prototype.handleError=function(a,b){b=void 0===b?!1:b;bM(this.context.Bx,null);var c=this.context.Pj;PL(c,"L6uQWd");yM(this.context).addCallback(function(d){d.Eea()});PL(c,"mrK8ic");PL(c,"Gv4zef");PL(c,"rVezo");PL(c,"BNEDtc");this.context.jB.Hb("CachedCorpusType","partialCorpus");c=!!this.H.context.iR||_.R(this.O.H,45,!1);a&&!b&&c?(c=void 0,b="Corpus population failed: ",_.sI(a)?(c=a,b+=c.message):b+=String(a),this.log(b),a=new _.Gc(b,void 0,c),c=a.tg,_.tI(c,_.YJ(this.context.Xc)?3:1),_.uI(c,
6),_.Fo(c,b),_.Ho(c),this.context.dispatchEvent(new _.Hc(a))):this.log("Corpus population skipped");this.impression&&(dsc(msc(this.impression),!1),this.impression.Dj());this.dispose()};var ZEc=function(a,b,c){return bEc(b,c).then(function(d){d.some(function(e){return b instanceof WL&&_.BI(e)&&e.qc()===b.uc()})||eEc(a.V,b,d)},function(){return a.handleError(Error("Ig"))})},WEc=function(a){if(_.n._DRIVE_ivd){var b=new cEc(a.context,a.context.Dg);a.Ja(b);b.mh(_.n._DRIVE_ivd)}else PL(a.context.Pj,"DEJoH")};
UEc.prototype.log=function(a){this.context.Ce().info("drive.ds.sync.cache.CorpusCachePopulatorManager",a)};
var bFc=function(){TL.apply(this,arguments)};_.K(bFc,TL);_.g=bFc.prototype;_.g.Ds=function(a){var b;if(b=TL.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 cFc=function(a,b){this.context=a;this.H=b;this.aR={}},eFc=function(a,b){if(!_.lJ(b)){var c=_.se(b,33);if(1===c.length)dFc(a,c[0],b);else{c=_.pl(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.UI;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(),dFc(a,f,b))}else dFc(a,null,b)});return}if(c.getItem().uc()&&_.Pe(c.getItem().getCapabilities())){c=c.getItem().uc();dFc(a,c,b);return}}dFc(a,
null,b)}}},dFc=function(a,b,c){if(b){var d=a.H.get(b);if(d&&!AL(d.getItem()))return}d=b||"subscribed";a.aR[d]||(a.aR[d]=[]);a.aR[d].push(c);b&&(yM(a.context).addCallback(function(e){e.Bwa(b)}),fFc(a.context.ALa,b))},gFc=function(a,b){if(!_.lJ(b)){var c={},d;for(d in a.aR){c.pU=d;for(var e=0;e<a.aR[c.pU].length;e++)if(_.Dj(b,a.aR[c.pU][e])){_.va(a.aR[c.pU],e);"subscribed"!==c.pU&&yM(a.context).addCallback(function(f){return function(h){h.NIa(f.pU,!1)}}(c));return}c={pU:c.pU}}}};
var hFc=function(){this.H=new Map;this.O=[];this.V=[]};
hFc.prototype.update=function(a){var b=this,c=a.id,d=a.O;a=a.H;var e=(d||a).getItem();PK(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&&!_.Dj(a.getItem(),d.getItem()))&&this.H.get(c).forEach(function(f){b.V.push(f)})};
var iFc=function(a){return a.V.filter(function(b){return!a.O.includes(b)})},jFc=function(a){a.O=[];a.V=[]};
var kFc=function(a,b){Ryc.call(this,a.clone(),b.Km(),b.Xc,b.Ce());this.context=b};_.K(kFc,Ryc);kFc.prototype.W=function(a){var b=new Map;a.V().forEach(function(c){var d=a.clone();d=_.rj(d,2,[c]);b.set(c,d)});return b};kFc.prototype.V=function(a){a=a.Bd()[0];this.context.Df.fl([a],1,void 0,!0,this.request.H())};kFc.prototype.ha=function(a){this.context.Df.fl([],1,a,!1,this.request.H())};kFc.prototype.ka=function(a){a=_.CI(_.rI(new _.qI,a));this.context.Df.Fo([a])};
var lFc=function(a,b,c,d){wM.call(this,a);this.Dg=b;this.request=c;this.Dd={};d&&this.fl(d,!0)};_.K(lFc,wM);_.g=lFc.prototype;
_.g.refresh=function(){var a=this;this.Ep=6;var b=DL(this.context.Xc)!==DL(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),_.Wh();var d=this.request.clone();_.rj(d,2,c);var e=new kFc(d,this.context),f=_.Zh();this.context.Kj().Me()?(this.Oc.listen(this.context.Kj(),"rb",function(h){h.Me()||(a.Oc.Tc(a.context.Kj(),"rb"),a.IA(),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.IA(),e.mh().then(f.resolve,f.reject,f));return f.promise};_.g.Mia=function(a){return this.context.Am.equals(a,this.request)&&Gnc(_.cK(this.Dg),a.H())};_.g.nk=function(a){var b=new _.kK;b.Dc(this.Ep);b.ri(this.We());Qsc(b,_.Va(this.Dd,function(c){return c?c.getItem():null}));zDc(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 AM=function(a,b,c,d,e){wM.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=hL(this.context.Am,b);this.cw=new RDc(this.context,this.request,!1,e);b=this.request.Lc()&&Mvc(this.request.Lc());var h=this.context.Uv;this.H=b?function(k,l){return h.compare(f.request,k,l)}:null;this.oEa=!b||!Cvc(this.request)||_.LI(_.fI(a.Xc));
this.Ia=txc(this.request);c&&this.fl(c,!d);this.wa=_.Ej(a.Xc.Tf(),16,36E5);_.KJ(this.request)&&this.Oc.listen(this.context.Uha,"Bb",this.La);_.ff(this,function(){(0,_.ca)(f.cw);f.clear()})};_.K(AM,wM);AM.prototype.refresh=function(){this.log(this.lN()+" | Refresh called, currently "+this.getSize()+" items cached");return mFc(this,!1)};
var mFc=function(a,b){a.Ep=6;if(_.R(a.request,48,!1))return a.Ep=1,_.Wh();if(_.KJ(a.request)){var c=nFc,d=a.context.Uha.H;d=Math.max(Date.now()-d,a.wa);c(a,Math.min(d,2592E5))}return oFc(a,b)};AM.prototype.initialize=function(){return this.count>=this.request.wi()||1===this.Ep?_.Wh():this.refresh()};AM.prototype.clear=function(){pFc(this)};
var pFc=function(a){a.Dd.forEach(function(b){b.count--});a.count=0;a.Dd=[];a.O.clear()},nFc=function(a,b){_.n.clearTimeout(a.Ba);a.Ba=_.n.setTimeout(function(){return mFc(a,!0)},b)};AM.prototype.La=function(){Date.now()-this.ta>this.wa&&nFc(this,0)};
var oFc=function(a,b){a.cw&&(a.Oc.Tc(a.cw,"yb",a.Hta),a.Oc.Tc(a.cw,"zb",a.DOa),a.cw.dispose());var c=a.request.se();c&&_.Sf(c,!1);a.cw=new RDc(a.context,a.request,b);a.V=0;a.Oc.listen(a.cw,"yb",function(){return a.Hta(a.cw.ha)});a.Oc.listen(a.cw,"zb",a.DOa);return a.kda()};
AM.prototype.kda=function(){var a=this,b=_.Zh();this.context.Kj().Me()?this.Oc.listen(this.context.Kj(),"rb",function(c){c.Me()||(a.Oc.Tc(a.context.Kj(),"rb"),qFc(a,b))}):this.context.yk().Me()?this.Oc.hd(this.context.yk(),[_.WB.ZL,_.WB.$U],function(){qFc(a,b)}):qFc(this,b);return b.promise};var qFc=function(a,b){a.IA();_.Nka(ODc(a.cw,a.request.wi()+a.V).eg(b.resolve,b.reject,b),function(){return a.ta=Date.now()})};_.g=AM.prototype;
_.g.resize=function(a){this.log(this.lN()+" | Resize called");var b=0;for(var c=_.m(new Set([].concat(_.fc(this.Vy)))),d=c.next();!d.done;d=c.next())d=d.value,d=BDc(this.context).Bla(d),b=Math.max(b,d.wi());_.KJ(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.kda():this.LJ())};_.g.jd=function(){return this.request};_.g.lN=function(){return this.Ga};_.g.getSize=function(){return this.Dd.length};
_.g.Mia=function(a){return this.context.Am.equals(a,this.request)};
_.g.nk=function(a){var b=a.wi(),c,d=!1;if(_.mJ(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=_.Nk(k.getItem()).filter(function(l){return h.includes(_.y(l,_.wk,1).getId())});k=k.clone();Knc(k.getItem(),d);e[c]=k}e=e.filter(function(l){return _.Nk(l.getItem()).length})}d=Tnc(e);c=new _.lK;_.x(c,4,!1);Msc(c,f)}else e=this.Dd.slice(0,b),c=new _.eI,Crc(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),_.rj(c,18,this.ha),d=Tnc(e);e=Doc(e);zDc(this,a.H(),e);c.hB(e);c.Dc(d?6:this.Zxa(b));c.ri(this.We());c.bQ(this.suggestionSessionId);return c};_.g.Zxa=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.Hta=function(a){this.ka=a.W;this.incompleteSearch=a.incompleteSearch;this.ha=a.CBa();this.W=a.V;this.suggestionSessionId=a.Vf()};
_.g.DOa=function(){var a=this.request.wi()-this.count;0<a&&MDc(this.cw)&&(this.V+=a,this.kda())};_.g.fl=function(a,b){_.KJ(this.request)&&pFc(this);var c=!1;a=_.m(a);for(var d=a.next();!d.done;d=a.next())d=QL(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(),rFc(this,b))};
var rFc=function(a,b){_.pl(a.request).length&&a.Dd.length&&a.context.K_.then(function(c){var d=eL(a.context.mk(),106024,a.ma);if(d){var e=_.pl(a.request)[0].Wa(),f=_.y(_.iK(d),Wrc,18);if(!f){f=new Wrc;var h=_.iK(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=AM.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.pMa(f,a.H):(this.BJ(f),_.KJ(this.request)&&nFc(this,0));else{if(_.KJ(this.request)&&!b)return!1;this.mS(a.H)}else return!1;return!0};_.g.mS=function(a){this.H?wnc(this.Dd,a,this.H):this.Dd.push(a);a.count++;sFc(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--;sFc(a)&&this.count--;this.O.delete(a.getId())};_.g.hAa=function(a){return this.H?_.Ia(this.Dd,a,this.H):_.oa(this.Dd,a)};_.g.pMa=function(a,b){this.H&&0!==this.H(a,b)?(this.BJ(a),this.mS(b)):(this.Dd[this.hAa(a)]=b,b.count++,sFc(b)&&this.count++,a.count--,sFc(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.oEa&&!_.KJ(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=BL(this.context.Et,this.request,a.getItem());return b&&a}}if(!BL(this.context.Et,this.request,a.getItem()))return!1;var d=1.2*this.request.wi();if(1===this.Ep||!this.H||pvc(a.V,2)||this.count<d||b||$nc(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];pvc(c.V,2)||$nc(c.getItem())||(c.count--,sFc(c)&&this.count--,this.O.delete(c.getId()),_.va(this.Dd,b),a--)}oFc(this,!1)}}};
_.g.wp=function(a){var b=new _.Fc;_.tI(b,2);_.uI(b,6);_.Ho(b);this.context.dispatchEvent(new _.Hc(new _.Gc(a,b)))};var sFc=function(a){return!pvc(a.V,2)&&3!==a.getItem().Lv()};AM.prototype.log=function(a,b){this.context.Ce().log("drive.ds.sync.cache.ViewCache",a,void 0===b?"info":b)};AM.prototype.BTa=function(a){var b=this,c=_.pl(this.request);c.length&&(c=c.some(function(d){return(d=b.context.Df.Zl.H(d.Wa()))&&_.Q(d,108)}),Hwc(this.context.Jta,a,c))};AM.prototype.ATa=function(){this.LJ()};
AM.prototype.a0a=function(a){return 1!==this.Ep&&a.wi()>this.count&&this.cw.O};
var tFc=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(tFc,_.N);
var wFc=function(a,b,c){var d,e,f,h;if(null===(d=_.JJ(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:_.JJ(f))||void 0===h?0:_.R(h,19,!1)))return uFc(a,b);void 0!==c&&vFc(a,b,!c)}return Promise.resolve([])},uFc=function(a,b){var c=_.hga(new _.Df,[(new _.Kd).Hb(b)]),d=new xM(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 _.fn;a.Oc.listen(d,"wb",function(f){e.resolve(f.changes)});
ODc(d,1E3).then(function(){e.resolve([]);vFc(a,b,!MDc(d))},function(f){e.reject(f);a.log("Error trying to backfill "+b+" "+f)});return e.promise},vFc=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:rvc(d,c)};tFc.prototype.log=function(a,b){this.V.log("drive.ds.sync.ProgressiveSyncer",a,void 0===b?"info":b)};
var BM=function(a,b){var c;_.N.call(this);var d=this;this.V={};this.ha=new hFc;this.Oc=new _.of(this);this.Ja(this.Oc);this.context=a;this.Dg=b;this.H=this.context.Xc;this.Tt=new xxc(a.Am,a.Ce());this.context.mk().W.H=this.Tt;if(null===(c=_.JJ(this.H))||void 0===c?0:_.R(c,15,!1))b=new pxc(a.Et,a.Uv),this.Tt.add(b),a.pga.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:RL(f,!(null===(k=null===(h=d.Tt)||void 0===h?void 0:h.H)||void 0===k?0:k.OD))});
this.O=new Bvc(a.K_,a.Et,a.Uv);_.Q(a.Xc,60)&&(this.Ba=new bFc(a.Et,a.Uv));this.W=new vvc(a.Ce(),_.cK(this.Dg));xFc(this,_.se(this.H,28));this.Zl=new Evc(this.Dg,this.context.Am,this.O,this.W);this.context.mk().W.V=this.Zl;this.UI=new TDc(this.context,this.Dg,this.V,this.O);this.kIa=new cFc(this.context,this.O);this.ma=new UEc(this.context,this);_.ff(this.ma,function(){d.ma=null});this.wa=_.ihc(_.cK(this.Dg),yFc);OL(this.context.Pj,["NSockf"],function(){return d.initialize()});OL(this.context.Pj,["NSockf",
"jroI5d"],function(){if(_.y(d.H,_.Jk,12))var e=_.y(d.H,_.Jk,12);else{e=_.aic(_.cic(new _.wk,_.VJ(_.fI(d.H))),!0);e=_.x(e,6,1);var f=_.C(_.fI(d.H),6,"");f&&e.Nb(f);e=_.xVb(_.kic(_.lic(_.dG((new _.Jk).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 _.Ck;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=_.dic(f,!1);
f=_.x(f,12,!1);f=_.x(f,8,!1);f=_.x(f,9,!1);f=_.x(f,21,!1);e=_.RJ(e,f)}d.fl([e],1);PL(d.context.Pj,"hVFf7")});this.ka=_.Zh();OL(this.context.Pj,["BNEDtc"],function(){d.ka.resolve()});this.Lq=new Wxc(this.H,this.context.Ce(),a.Km(),this.context.mk(),this.context.rY.promise);_.mI(this.H)&&this.Oc.listen(this.Lq,"vb",this.ta);this.EOa=new _.rkc(this.H,this.Zl);this.Ga=new tFc(a.Ce(),a.Km(),a.Xc,this.Zl,this.O,a.dispatchEvent)};_.K(BM,_.N);
BM.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===Gxc(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(),zFc(this,h),b.push(mxc(d,new zL(h,
void 0,1)))):this.log("b/154479164 Unexpected missing wrapper for "+h+".","warning");AFc(this,b,[]);this.context.Ys.update(6);a.size&&this.UI.TO([].concat(_.fc(a)),_.Rf(new _.Qf,311))};BM.prototype.initialize=function(){this.ma.mh()};
BM.prototype.Zh=function(a,b){if(b instanceof _.Df)b=CL(this.context.Am,b),BFc(this,b.H()),eFc(this.kIa,b),b=CFc(this,b),b.cache.Zh(a);else if(b instanceof _.XF)b=DFc(this,b),BFc(this,b.H()),b=EFc(this,b),b.cache.Zh(a);else if(b instanceof _.RH){var c=zM(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 nEc(this.context,this.Dg,b),d.refresh().then(null,_.ig),QEc(this,c,d),b={cache:d,Sv:!0});b.cache.Zh(a)}else if(b instanceof _.bG)c=b.H(),d=this.W,wvc(d,d.H,d.O,c),b=EFc(this,b),b.cache.Zh(a);else throw Error("Jg");return b.Sv};BM.prototype.fk=function(a,b){if(b instanceof _.Df)b=CL(this.context.Am,b),gFc(this.kIa,b);else if(b instanceof _.XF)b=DFc(this,b);else if(!(b instanceof _.RH||b instanceof _.bG))throw Error("Jg");b=zM(this,b);var c=this.V[b];c&&(c.fk(a),c.isDisposed()&&delete this.V[b])};
var zM=function(a,b){return hL(a.context.Am,b,2)},CFc=function(a,b){var c,d,e=zM(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=yxc(a.Tt),p=0;p<l.length;p++){var q=l[p];k=q.$E(b);if(5!=k){l=1==k?void 0:b.wi();if((null===(c=_.JJ(a.H))||void 0===c?0:_.R(c,18,!1))&&q instanceof pxc){f=!0;k=5;a.log("Partial Caching dark launch: Skipped returning from the MyDrive cache for "+
(e+"."));break}h=q.Vla(b,l);var r=q.We();var v=q instanceof SL?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.Z8&&5!=k.$E(b)?k.$E(b):6,a.log("Offline: Populate with "+h.length+" initial items(s)");var w=new AM(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=_.JJ(a.H))||void 0===d?0:_.R(d,18,!1))&&f&&r.then(function(){return yM(a.context)}).then(function(A){return A.VYa().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=eL(a.context.mk(),106030);P&&(asc($rc(Zrc(qsc(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=_.vI(A);
_.Ho(A);a.context.dispatchEvent(new _.Hc(new _.Gc("Error during view cache init",A)))});QEc(a,e,w);return{cache:w,Sv:!0}},EFc=function(a,b){var c=zM(a,b),d=!1,e=a.V[c];if(e&&e.Mia(b))a.log("FindByIdsRequest backed by existing query cache: "+c);else{var f=a.O.getAll(b.V()),h;b instanceof _.XF?h=new IDc(a.context,a.Dg,b,f):h=new lFc(a.context,a.Dg,b,f);f.length&&h.ri(8);h.refresh().then(null,_.ig);b=h;d=!0;QEc(a,c,b);e?(FFc(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}};BM.prototype.OW=function(){return Object.values(this.V).filter(function(a){return a.jd()instanceof _.RH})};
BM.prototype.B4a=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=Vvc(this.context.Am,c,!0),this.log("Refreshing "+a+" for secondary fields: "+d+"."),this.UI.TO([a],b,!1,c))};
var yDc=function(a,b,c){c&&c.length&&yvc(a.W,b,c);_.mI(a.H)&&fyc(a.Lq,b)},eEc=function(a,b,c){var d,e,f;if(b instanceof nEc){var h=zM(a,b.jd());if(a.V[h]){a.log(h+" | Cache already exists, ignoring persisted data");return}}b instanceof nxc&&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=_.JJ(a.H))||void 0===d?0:_.R(d,15,!1))&&!0===q.H&&rvc(v,q.H);3==w||4==
w?h.set(q.getId(),q.getItem()):v!=q&&k.push(new lxc(q.getId(),q,v));l.delete(r)}else{r=QL(q);if(null===(e=_.JJ(a.H))||void 0===e?0:_.R(e,15,!1))null===(f=a.Tt.O)||void 0===f?void 0:f.update(r);a.O.update(r);a.ha.update(r);_.mI(a.H)&&a.Lq.DP(r)}_.mI(a.H)&&zFc(a,q.getItem())}l=_.m(l.values());for(q=l.next();!q.done;q=l.next())k.push(QL(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 nEc?(k=zM(a,b.jd()),
QEc(a,k,b)):a.Tt.add(b);k=[];h=_.m(h.values());for(l=h.next();!l.done;l=h.next())l=l.value,p=new _.qI,_.rI(p,l.getId()),p.setItem(l),k.push(p);a.Fo(k);a.log("Merged cache: "+b.getType());b instanceof WL&&c.forEach(function(A){a.context.Kta.propagate(A)});b instanceof SL&&GFc(a,b.jd(),!b.H);a.context.Ys.update(3)},GFc=function(a,b,c){var d;(null===(d=_.JJ(a.H))||void 0===d?0:_.R(d,15,!1))&&(b=cwc(b))&&wFc(a.Ga,b,c).then(function(e){a.Fo(e)})},FFc=function(a,b){(new Set([].concat(_.fc(a.Vy)))).forEach(function(c){b.Zh(c);
a.fk(c)})};
BM.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!_.cK(f.Dg).includes(A)}))):[]);c&&c instanceof _.Df&&_.KJ(c)&&HFc(this,a,c);for(var h=[],k=[],l=0;l<a.length;l++){var p=a[l],q=new zL(p,void 0,b),r=this.O.get(p.getId()),v=r?r.getItem():null,w=IFc(this,r,q);if(null!=w)q.UA(w),JFc(this,v,p),Znc(p),p=tvc(p,v,e),q.setItem(p);else if(null!=r)q=r,p=v;else continue;_.mI(this.H)&&zFc(this,p);!r||KFc(this,v,p,e)?(k.push(mxc(r,
q)),h.push(q)):h.push(r)}a=null;c&&(c instanceof _.Df&&(GFc(this,c,d),(a=Bxc(this.Tt,c))&&a.fl(h,!!d)),c=zM(this,c),(a=this.V[c])&&a.fl(h,!!d));0<k.length&&(_.mI(this.H)&&k.forEach(function(A){return f.Lq.DP(A)}),AFc(this,k,e,a?[a]:[]),LFc(this,h));BDc(this.context).Y9()};
var zFc=function(a,b){hyc(a.Lq,b)||5!=b.Lv()||_.pic(b,1)},KFc=function(a,b,c,d){(b=b?_.vb(b.clone(),82):null)&&yDc(a,[b],d);c=_.vb(c.clone(),82);yDc(a,[c],[]);return!_.Dj(b,c)},HFc=function(a,b,c){MFc(a,b,c);b.forEach(function(d,e){var f=a.Zl.H(d.getId());f&&(OK(f,d,[1002]),OK(f,d,[1003]),OK(f,d,[1005]),b[e]=f);_.lJ(c)&&0<_.se(c,33).length&&_.qic(d,_.se(c,33)[0])})},MFc=function(a,b,c){var d;_.lJ(c)?d="quick access":_.mJ(c)?d="people predict":_.nJ(c)&&(d="drive priority");c=b.map(function(e){return e.getId()}).join(", ");
a.log("Got "+b.length+" ItemSuggest items for "+d+": "+c)},lDc=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(Doc(d),b)};BM.prototype.zma=function(a){this.EOa.zma(a)};
BM.prototype.Fo=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a[d],f=_.BI(e)?null:e.getItem(),h=e.qc(),k=(h=this.O.get(h))?h.getItem():null,l=null;if(f){l=new zL(f,void 0,void 0,_.z(e,1)||void 0);var p=IFc(this,h,l);if(null==p)continue;l.UA(p);JFc(this,k,f);_.R(e,5,!1)&&Bnc(f,Qnc);Znc(f);f=tvc(f,k);l.setItem(f);_.mI(this.H)&&zFc(this,f)}if(k&&!f||f&&KFc(this,k,f,[]))this.context.ALa.Oy(e),c.push(mxc(h,l))}_.mI(this.H)&&c.forEach(function(q){return b.Lq.DP(q)});AFc(this,c,[])};
var JFc=function(a,b,c){b&&!c.Wm()&&OK(c,b,a.wa);var d=b?b.wf():null,e=c.wf();e=e?_.xe(e):null;d&&e&&JFc(a,_.xe(d),e);b&&!_.Mk(c)&&OK(c,b,[1002]);b&&!_.Nk(c).length&&OK(c,b,[1003]);b&&!_.Ok(c).length&&OK(c,b,[1005]);b&&_.Q(b,31)&&!_.Q(c,31)&&(Bnc(c,Qnc),a.log("Cleared Item Suggest data for "+b.getId()+"."))};BM.prototype.LB=function(a,b){if(a instanceof _.Df||a instanceof _.XF||a instanceof _.RH)a=zM(this,a),(a=this.V[a])&&a.CY(b);else throw Error("Jg");};
var IFc=function(a,b,c){var d=c.getItem();if(Dyc(a.context.qga,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()&&!AL(a)&&!AL(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 qvc(b&&b.V,c.V)};BM.prototype.hG=function(a,b){(a=this.O.get(a))&&a.UA(qvc(a.V,b))};
var AFc=function(a,b,c,d){d=void 0===d?[]:d;var e;if(null===(e=_.JJ(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&&rvc(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())ADc(h.value,b);d=new Set;h=yxc(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 WL&&f.getSize()>=1.2*f.limit&&NFc(a.context.ALa,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.loa(d.size);OFc(a)},OFc=function(a){var b=a.ha.O.slice(0),c=iFc(a.ha);jFc(a.ha);if(b.length){a.log("Refreshing shortcuts with unknown targets: "+b.join(", "));var d=new _.Qf;_.Rf(d,308);a.UI.TO(b,d,!0)}if(c.length){a.log("Updating locally stale shortcuts: "+
c.join(", "));b=Fvc(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))});lDc(a,e)}},PFc=function(a){BDc(a.context).Y9();a.O.LJ()},DFc=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},xFc=function(a,b){var c;null!==(c=_.JJ(a.H))&&void 0!==c&&_.R(c,1,!1)||(b=lsc(a.Dg,b),a=a.W,wvc(a,a.items,a.fields,b))},BFc=function(a,b){var c;if(null===(c=_.JJ(a.H))||void 0===
c?0:_.R(c,1,!1))b=lsc(a.Dg,b),a=a.W,wvc(a,a.items,a.fields,b)},LFc=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.UI.TO(c,d)}})},aFc=function(a,b){a.ka.promise.then(function(){for(var c={},d=_.m(b),e=d.next();!e.done;c={l6:c.l6,Pra:c.Pra},e=d.next()){e=e.value;if(Bxc(a.Tt,e))break;c.l6=new SL(a.context.Et,a.context.Uv,
a.context.Am,e);e=new ZDc(a.context,c.l6,e);c.Pra=aM(a.context.Bx,null);e.mh().then(function(f){return function(){bEc(f.l6,f.Pra).then(function(h){eEc(a,f.l6,h)})}}(c)).then(function(){bM(a.context.Bx,null)},function(){bM(a.context.Bx,null)})}})};BM.prototype.Xo=function(){var a=this.Tt.H;return a&&a.OD?1:2};BM.prototype.log=function(a,b){this.context.Ce().log("drive.ds.sync.cache.CacheManager",a,void 0===b?"info":b)};
var QEc=function(a,b,c){a.V[b]=c;a.log(b+" | Set cache with "+c.getSize()+" items")},yFc=[50];
var RFc=function(a){_.N.call(this);var b=this;this.context=a;this.H=[];this.V=new _.Sk;this.O=new Map;this.ka=-1;this.ha=0;var c=_.Zh();this.wa=c.promise;BAc(this.context.WD).then(function(d){b.H=d||[];c.resolve();QFc(b)},function(){return c.resolve()});OL(this.context.Pj,["rVezo"],(0,_.L)(this.W,this))};_.K(RFc,_.N);
var fFc=function(a,b){_.R(a.context.Xc,46,!1)&&a.wa.then(function(){if(a.H[0]!==b){_.wa(a.H,b);for(uvc(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*_.Ej(a.context.Xc,47,5);)a.H.pop();a.context.WD.set(vAc,a.H)}a.context.Df.Tt.OW().length+a.O.size<_.Ej(a.context.Xc,47,5)&&(QFc(a),a.W())})},SFc=function(a,b){_.wa(a.H,b)&&a.context.WD.set(vAc,a.H)};
RFc.prototype.Oy=function(a){this.context.Kta.propagate(a);if(AL(a)){var b=a.uc();_.BI(a)?NFc(this,b,!0):(a=a.getItem(),uvc(a)&&SFc(this,b))}};var NFc=function(a,b,c){SFc(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}}yM(a.context).addCallback(function(k){k.NIa(b,c)});a.W()};
RFc.prototype.W=function(){if(this.context.Pj.H("rVezo")){var a=this.context.Df.Tt;TFc(this);for(var b={};this.V.Yb()&&!(this.ha>=_.Ej(this.context.Xc,47,5));){var c=_.Tk(this.V);this.ha++;Axc(a,c)||this.O.has(c)||(this.O.set(c,null),b.Kfa=new _.Ghc,_.x(b.Kfa,1,c),this.context.Km().then(function(d){return function(e){return e.Pe(d.Kfa)}}(b)).then(this.ta.bind(this,c),this.ma.bind(this,c)));b={Kfa:b.Kfa}}}};
var QFc=function(a){a.H&&a.H.length&&(a.ha=0,a.V.clear(),a.H.forEach(function(b){a.V.enqueue(b)}))},TFc=function(a){_.n.clearTimeout(a.ka);a.ka=_.n.setTimeout(function(){QFc(a);a.W()},36E5)};RFc.prototype.ta=function(a,b){var c=_.z(b,1);c&&c>_.Ej(this.context.Xc,48,1E3)?(this.log(a,"Too large to backfill: "+_.z(b,1)),UFc(this,a,!1)):VFc(this,a)};
RFc.prototype.ma=function(a,b){(b=_.vI(b).Yj())&&4===b?(this.log(a,"Non-existent or inaccessible, removing from cache"),a=_.CI(_.Kgc(_.rI(new _.qI,a),a)),this.context.Df.Fo([a])):VFc(this,a)};
var VFc=function(a,b){var c=new WL(a.context.Et,a.context.Uv,b),d=c.jd().clone();d.Gi(_.Ej(a.context.Xc,48,1E3));d=new ZDc(a.context,c,d);a.O.set(b,d);a.log(b,"Backfill started");var e=aM(a.context.Bx,b);yM(a.context).addCallback(function(f){f.Bwa(b)});d.mh().then(function(){WFc(a,b,c,e)},function(){a.log(b,"Backfill failed");a.ha--;UFc(a,b,!0)}).then(function(){bM(a.context.Bx,b)},function(){bM(a.context.Bx,b)})},WFc=function(a,b,c,d){c.OD?(c.VX(),bEc(c,d).then(function(e){a.log(b,"Backfill complete, size: "+
c.getSize());eEc(a.context.Df,c,e);UFc(a,b,!1)},function(){a.log(b,"Backfill changes failed");UFc(a,b,!0)})):(a.log(b,"Backfill exceeded size limit"),UFc(a,b,!0))},UFc=function(a,b,c){var d=a.O.get(b);d&&d.dispose();a.O.delete(b);c&&yM(a.context).addCallback(function(e){e.NIa(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){NFc(a,e,!0)})};
RFc.prototype.log=function(a,b){this.context.Ce().info("drive.ds.sync.cache.TeamDriveCacheManager",a+" | "+b)};
var XFc=function(){_.N.apply(this,arguments)};_.K(XFc,_.N);
var $Fc=function(a,b){b=YFc(b);var c=a.getItem(),d=ZFc(c.getCapabilities());b.P4.forEach(function(e){_.xVb(e.getItem(),c.Dp());_.RJ(e.getItem(),d.clone())});return b},cGc=function(a,b,c){var d=aGc(c);c=c.find(function(e){return e.getId()===b.getId()});c={JK:c?c:new zL(b),children:[]};bGc(a,d,c);return c},aGc=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},bGc=
function(a,b,c){var d=c.JK.getItem();(b[d.getId()]||[]).forEach(function(e){c.children.push(bGc(a,b,{JK:e,parent:c,children:[]}))});return c},eGc=function(a,b){b=b.children.filter(function(l){return!_.Lk(l.JK.getItem())});for(var c=new Map,d=[];b.length;){var e=b.pop(),f=e.JK.getItem();if(!c.has(f.getId())){_.xVb(f,a.Dp());dGc(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,_.Lk(k.JK.getItem())||b.push(k);c.set(f.getId(),!0);d.push(e.JK)}}return d},
fGc=function(a){a=a.children.filter(function(h){return!_.Lk(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(_.CI(_.rI(new _.qI,e.getId())));d=_.m(d.children);for(var f=d.next();!f.done;f=d.next())f=f.value,_.Lk(f.JK.getItem())||a.push(f);b.set(e.getId(),!0)}}return c},YFc=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();_.Lk(e)||_.Q(e,137)?c.push(e):b.push(d)}return{fR:c,P4:b}},ZFc=
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,_.Dk(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},dGc=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,_.Dk(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,_.Lk(a));c&&(a=c.getCapabilities(),QK(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 gGc=function(a){this.context=a;this.V=new XFc;this.logName="drive.ds.sync.change.TdChangeProcessor";this.O=_.Rf(new _.Qf,306);this.H=a.Df};
gGc.prototype.propagate=function(a){if(AL(a))_.BI(a)?hGc(this,a):iGc(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||!QK(a.getItem()||c)||e&&e!==d)d=!1;else if(d=!!_.Lk(c),!_.BI(a)){e=a.getItem();var f=e.Dp()!==c.Dp();d=_.Lk(c)!==_.Lk(e)||d&&f}if(d)if(_.BI(a)){if(a=jGc(this,c.uc()),c=this.V,d=(new _.Jk).Nb(b),a=(a=cGc(c,d,a))?fGc(a):[],this.context.Df.Fo(a),this.log(b,"SD shared folder delete | Removed "+a.length+
" item(s)"),b=eL(this.context.mk(),106009))c=nsc(b),_.x(c,2,a.length),b.Dj()}else if(b=a.getItem(),c=jGc(this,b.uc()),d=this.V,b=a.getItem(),b=(c=cGc(d,b,c))?eGc(b,c):[],lDc(this.context.Df,b),this.log(a.qc(),"SD shared folder update | Updated "+b.length+" item(s)"),a=eL(this.context.mk(),106010))c=nsc(a),_.x(c,1,b.length),a.Dj()}};
var hGc=function(a,b){var c=b.qc();b=jGc(a,c);b=YFc(b);var d=_.Bf(b.P4,function(e){return _.CI(_.rI(new _.qI,e.getId()))});a.context.Df.Fo(d);a.H.UI.TO(b.fR.map(function(e){return e.getId()}),a.O,void 0,void 0,b.fR.map(function(e){return _.ml((new _.kl).Nb(e.getId()),_.Pk(e))}));a.log(c,"SD delete | Remove "+d.length+" item(s), "+(b.fR.length+" divergent items"));if(a=eL(a.context.mk(),106016))c=osc(a),_.x(c,1,b.fR.length),_.x(c,2,b.P4.length),a.Dj()},iGc=function(a,b){var c=b.qc(),d=jGc(a,c),e=a.H.Zl.H(c);
b=$Fc(b,d);lDc(a.context.Df,b.P4);a.H.UI.TO(b.fR.map(function(h){return h.getId()}),a.O,void 0,void 0,b.fR.map(function(h){return _.ml((new _.kl).Nb(h.getId()),_.Pk(h))}));a.log(c,"SD update | Update "+b.P4.length+" item(s), "+(b.fR.length+" divergent items"));if(d=eL(a.context.mk(),106017)){var f=osc(d);_.x(f,1,b.fR.length);_.x(f,2,b.P4.length);d.Dj()}e||XDc(a.H.UI,c)},jGc=function(a,b){var c=new _.Df;_.rl(c,[b]);_.sl(c,2);return Hvc(a.H.Zl,c)};
gGc.prototype.log=function(a,b){this.context.Ce().info(this.logName,a+": "+b)};
var kGc=function(a,b,c){this.H=a;this.V=b;this.FJ=c},oGc=function(a,b,c){if(b.sW().length){var d=zyc(a.H,b.qc());if(d){var e=d?Ayc(a.H,b):[];for(var f={},h=_.m(b.sW()),k=h.next();!k.done;f={JI:f.JI},k=h.next())if(k=k.value,f.JI=lGc(e,k.Hm(),b.qc()),_.Q(k,3))Gyc(a.H,f.JI),c.then(function(r){return function(){var v=pyc(r.JI);a.H.O.H.delete(v)}}(f),function(r){return function(){var v=pyc(r.JI);a.H.O.H.delete(v)}}(f));else{for(var l=_.m(_.yb(k,_.UF,2)),p=l.next();!p.done;p=l.next())mGc(a,f.JI,p.value);
k=_.m(_.se(k,4));for(l=k.next();!l.done;l=k.next())nGc(f.JI,l.value);a.H.LD([f.JI],!1,-1);c.then(function(r){return function(){return void a.H.hG(r.JI.getName(),-2)}}(f),function(r){return function(){a.H.hG(r.JI.getName(),-2)}}(f))}e=a.Zc(d.nk().response)}}e=e?e:a.Zc();var q=e.j6a;c.then(function(r){q.resolve(r)},function(r){q.reject(_.wd(r));a.handleError(b.qc(),r)});return e};kGc.prototype.Zc=function(a){a=void 0===a?new LL:a;return new owc(a.Dc(1))};
var lGc=function(a,b,c){var d=a.find(function(e){return oyc(e.getName(),b)});d||(d=Qwc((new KL).$c(b),c),a.push(d));return d};kGc.prototype.handleError=function(a,b){Kyc(this.V,a);a=_.vI(b);_.x(a,21,"Server error updating metadata after optimistic application.");this.FJ(a)};
var mGc=function(a,b,c){var d=b.H().find(function(e){return e.getId()===c.getId()});d||(d=new iL,d.Nb(c.getId()),Pwc(b,b.H().concat([d])),pGc(d,c));if(1===jL(d))d.setBooleanValue(_.Q(c,3));else if(12===jL(d))d.setDateStringValue(_.z(c,17));else if(2===jL(d))d.setTextValue(_.z(c,4));else if(3===jL(d))_.se(c,6).length?d.$pa(_.se(c,6)):_.se(c,5).length&&(a=_.se(d,7).concat(_.se(c,5)),d.$pa(a));else if(4===jL(d))d.setLongTextValue(_.z(c,7));else if(5===jL(d))d.setSelectionValue(_.z(c,8));else if(6===
jL(d))_.se(c,10).length?d.Wpa(_.se(c,10)):_.se(c,9).length&&(a=d.pOa().concat(_.se(c,9)),d.Wpa(a));else if(7===jL(d))d.setIntegerValue(_.z(c,11));else if(8===jL(d))_.se(c,13).length?d.Npa(_.se(c,13)):_.se(c,12).length&&(a=_.se(d,12).concat(_.se(c,12)),d.Npa(a));else if(10===jL(d))d.setUserValue(a.O(_.z(c,14)));else if(11===jL(d))_.se(c,16).length?htc(d,_.se(c,16).map(a.O)):_.se(c,15).length&&htc(d,d.eZa().concat(_.se(c,15).map(a.O)));else throw new _.Gc("Optimistic Applier: Unsupported value type "+
(jL(d)+"."),new _.Fc);},nGc=function(a,b){if(a=a.H().find(function(c){return c.getId()===b}))if(1===jL(a))_.vb(a,5);else if(12===jL(a))_.vb(a,17);else if(2===jL(a))_.vb(a,6);else if(3===jL(a))_.gI(a,7);else if(4===jL(a))_.vb(a,8);else if(5===jL(a))_.vb(a,9);else if(6===jL(a))_.gI(a,10);else if(7===jL(a))_.vb(a,11);else if(8===jL(a))_.gI(a,12);else if(10===jL(a))_.sj(a,15);else if(11===jL(a))_.uj(a,16);else throw new _.Gc("Optimistic Applier: Unsupported value type "+(jL(a)+"."),new _.Fc);},pGc=function(a,
b){_.mj(b,3)?a.iB(1):_.mj(b,17)?a.iB(12):_.mj(b,4)?a.iB(2):_.se(b,6).length||_.se(b,5).length?a.iB(3):_.mj(b,7)?a.iB(4):_.mj(b,8)?a.iB(5):_.se(b,10).length||_.se(b,9).length?a.iB(6):_.mj(b,11)?a.iB(7):_.se(b,13).length||_.se(b,12).length?a.iB(8):_.mj(b,14)?a.iB(10):(_.se(b,16).length||_.se(b,15).length)&&a.iB(11)};kGc.prototype.O=function(a){return _.bic(_.$hc(1),a)};
var qGc=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};
qGc.prototype.apply=function(a,b){var c=this;if(!_.IJ(a))return b;var d=null;a instanceof _.ZI?d=rGc(this,a,b):a instanceof _.fJ?d=sGc(this,a,b):a instanceof _.xI?d=tGc(this,a,b):a instanceof _.UI?d=uGc(this,a,b):a instanceof _.AJ&&(d=oGc(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?_.Wh(d):b};
var rGc=function(a,b,c){Cyc(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=_.vI(e);_.x(e,21,"Server error deleting item after optimistic application.");a.V(e)});return(new _.HJ).Dc(1)},sGc=function(a,b,c){var d=_.z(b,2);d&&a.O.O.push(d);c.then(function(){d&&Eyc(a.O,d)&&vGc(a,d,new _.tkc(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=_.vI(e);_.x(e,21,"Server error emptying trash after optimistic application.");a.V(e)});return(new _.HJ).Dc(1)},vGc=function(a,b,c,d,e){if(Date.now()>d||0>=e)return _.Wh();var f=_.Zh(),h=c.Wa();_.ZH(c);setTimeout(function(){a.ma.then(function(k){var l=_.Rf(new _.Qf,1425);l=Coc(!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}vGc(a,b,c,d,e).then(function(){f.resolve()},
function(){f.resolve()})},function(){var p=vGc(a,b,c,d,e-1);p.then(function(){f.resolve()},function(){f.resolve()});return p})})},h);return f.promise},uGc=function(a,b,c){var d=b.uc(),e=a.H.Zl.H(d);if(!e)return null;e=e.clone();yDc(a.H,[e],[157]);var f=e.Vh();wGc(f,_.yb(b,_.Hk,2));xGc(f,_.yb(b,_.Hk,3));a.H.fl([e],-1,void 0,void 0,[157]);c.then(function(){a.H.hG(d,-2)},function(){a.H.hG(d,-2)});c.then(function(h){a.H.fl([_.y(h,_.Jk,2)],1,void 0,void 0,[157])},null);c.then(null,function(h){h=_.vI(h);
_.x(h,21,"Server error updating item after optimistic application.");a.V(h)});return HAc(new GAc,e).Dc(1)},wGc=function(a,b){var c={};b=_.m(b);for(var d=b.next();!d.done;c={Afa:c.Afa},d=b.next())c.Afa=d.value,_.yb(a,_.Hk,8).some(function(e){return function(f){return f.Hm()==e.Afa.Hm()}}(c))||_.zj(a,8,c.Afa,_.Hk,void 0)},xGc=function(a,b){var c=b.map(function(d){return d.Hm()});b=_.yb(a,_.Hk,8).filter(function(d){return!c.includes(d.Hm())});Jnc(a,b)},tGc=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(Gvc(a.H.Zl,e.concat(f))).map(function(k){return k.uc()||"root"}),_.Ga(e),1<e.length))return null;var h=d.clone();yGc(a,b,h);a.H.fl([h],-1,void 0,void 0,jsc(a.Dg));c.then(function(){return a.H.hG(b.getId(),-2)},function(){a.H.hG(b.getId(),-2);a.ta(b.getId(),d)});c.then(null,function(k){k=_.vI(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 _.ijc((new _.HJ).setItem(h),h.getId()).Dc(1)},yGc=function(a,b,c){null!=b.zf()&&c.ll(b.zf());null!=b.Mi()&&_.nic(c,b.Mi());null!=b.getMimeType()&&_.dG(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)&&_.KK(Ync(c,!0),_.Q(b,18));_.se(b,8).length&&_.QJ(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)});_.QJ(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)});_.QJ(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]))&&_.qic(c,f.uc());if(f=_.y(b,_.Ek,25)){var k=_.y(c,_.Ek,111)||new _.Ek;
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)});_.rj(c,120,l)};qGc.prototype.ta=function(a,b){var c=this,d=_.ZF(new _.XF,[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 zGc=function(a){this.H=a};_.K(zGc,_.kmc);zGc.prototype.execute=function(a,b,c){var d=_.kmc.prototype.execute.call(this,a,b,c);if(d)return d;if(c.LMa||b instanceof _.nI&&_.KJ(b.jd()))if(c=Dsc(this.H))return c;return b instanceof _.fJ?(c=_.Rf(new _.Qf,1424),a.Pe(Coc(!1,1,c)).then(function(e){(e=e.Zc())&&(e=e.Bd()[0])&&_.mj(e,96)&&b.Lda(e.Cw())},_.ig)):null};
var Yoc=function(a,b){return[AGc,BGc,CGc,DGc].reduce(function(c,d){var e;0!==c?e=c:e=_.Ha(d(a),d(b));return e},0)},AGc=function(a){return EGc[a.Bf()]},BGc=function(a){return FGc[a.getType()]},CGc=function(a){return a.getName()||""},DGc=function(a){return a.getId()||""},CM={},EGc=(CM[5]=0,CM[7]=1,CM[1]=2,CM[3]=3,CM[4]=4,CM[2]=5,CM[6]=6,CM),GGc={},FGc=(GGc[1]=0,GGc[2]=1,GGc[3]=2,GGc[4]=3,GGc);
var HGc=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};
HGc.prototype.apply=function(a,b){var c=this;if(!(b instanceof _.HJ&&8===b.Cb()))if(a instanceof _.TI||a instanceof _.VI||a instanceof _.whc||a instanceof _.sJ||a instanceof _.xI||a instanceof _.CJ||a instanceof _.Ehc||a instanceof _.EJ||a instanceof SK){var d=_.AI(b.getItem().clone(),9);this.H.fl([d],1);ezc(this.ta,b.getItem(),_.cK(this.Dg))}else if(a instanceof _.ZI)b=_.CI(_.rI(new _.qI,a.getId())),this.H.Fo([b]);else if(a instanceof _.bJ)b=_.CI(_.Kgc(_.rI(new _.qI,a.getId()),a.getId())),this.H.Fo([b]),
this.ma.propagate(b);else if(a instanceof _.fJ)b=Coc(!0).jd(),b=this.H.Zl.query(b).map(function(e){return _.CI(_.rI(new _.qI,e.getId()))}),this.H.Fo(b);else if(a instanceof _.XI)this.O.remove(a.Ih());else if(a instanceof _.iJ||a instanceof _.zJ)this.O.put(b.Ar());else if(a instanceof _.$I)Xoc(this.H,a);else if(a instanceof _.pD)this.W.remove(a.getKey());else if(a instanceof _.jJ)Zoc(this.H,a,_.y(b,_.wk,2));else if(a instanceof _.qD)this.W.put(b.AOa());else if(a instanceof _.WI||a instanceof _.DJ)this.ha.LD([b.un()],
!1);else if(a instanceof _.cJ)this.ha.LD([Hyc(a.getId())],!1);else if(a instanceof _.vhc)this.V.LD(b.response.H(),!1,1);else if(a instanceof _.AJ)a.sW().filter(function(e){return _.Q(e,3)}).forEach(function(e){return c.V.removeItem(e.Hm()||"",a.qc())}),Kyc(this.ka,a.qc()),this.H.B4a(a.qc());else if(a instanceof _.hK)for(b=_.m(_.yb(a,_.ktc,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,_.kL,2),d.getType()){case 1:case 2:if(d=this.H.Zl.H(d.qc()))d=
_.rI(Jrc(),d.getId()).setItem(d.clone()),this.H.Fo([d])}}};
var IGc=function(a){this.H=a};
IGc.prototype.translate=function(a){if(a instanceof _.wJ){var b=this.H.H(a.getId());if(!b)return new _.Fc;var c=(new _.xI).Nb(a.getId());if(b.uc()){var d=b.getCapabilities();_.Pe(d)||_.Q(d,9)?c.Pn(!0):_.yI(c,!1)}else d=a.getParent(),1===b.Dp()?c.Pn(!0):d?(b=this.H.H(d),!b||_.Q(b.getCapabilities(),7)?Erc(c,[d]):_.yI(c,!1)):_.yI(c,!1);return c}if(a instanceof _.xJ)return Grc(Frc(Erc(Drc((new _.xI).Nb(a.getId()),_.se(a,2)),_.se(a,3)),_.Q(a,6)),_.yb(a,_.kl,8));if(a instanceof _.yJ){b=this.H.H(a.getId());
if(!b)return new _.Fc;c=(new _.xI).Nb(a.getId());b.uc()?(d=b.getCapabilities(),_.Pe(d)||_.Q(d,9)?c.Pn(!1):_.yI(c,!0)):(d=a.getParent(),1===b.Dp()?c.Pn(!1):d?(b=this.H.H(d),!b||_.Dk(b.getCapabilities())?Drc(c,[d]):_.yI(c,!0)):_.yI(c,!0));return c}if(a instanceof _.uK)return new _.whc(a);if(a instanceof _.oM)return _.se(a,1).map(function(f){var h=new _.AJ;f=_.x(h,1,f);h=a.sW();f=_.tj(f,2,h);h=a.se();return _.G(f,3,h)});if(a instanceof _.eJ){c=Coc(!1,1).jd();var e=0;this.H.query(c).forEach(function(f){(f=
f.Cw())&&(e=Math.max(e,f))});return usc(new _.fJ,a).Lda(e)}return a};
var JGc=function(){};JGc.prototype.validate=function(a){var b=null;a instanceof _.oJ?(a=a.getId()||"",_.Te(a)&&(b="Tried to request backup with no id.")):a instanceof _.YI&&(a=a.getId()||"",_.Te(a)&&(b="Tried to delete backup with no id."));return b?_.vI(b):null};
var KGc=function(a,b){this.H=a;this.O=b},NGc=function(a,b){var c=new _.gM,d=new _.VB;if(b.user){var e=_.EK(a.H,b.user);_.G(d,1,e)}a=LGc(a,b);a=xrc(wrc(_.vrc(new _.nxb,a),b.rootFolderId),b.domainSharingPolicy);b.gsuiteSubscriptionInfo&&(e=b.gsuiteSubscriptionInfo,_.zrc(a,_.krc(_.jrc((new _.UB).Dc(MGc.get(e.status)),Number(e.trialMillisRemaining)),_.DK(e.trialEndTime))));b.teamDashboardCapabilities&&(e=b.teamDashboardCapabilities,_.Arc(a,_.mrc(_.lrc(new _.ixb,e.canAdministerTeam),e.canManageInvites)));
b.importFormats&&yrc(a,b.importFormats.map(function(f){var h=new _.urc;h=_.x(h,1,f.source);return _.rj(h,2,f.targets)}));_.G(d,3,a);_.IAc(c,d);b=b.largestChangeId;null!=b&&_.x(c,4,Number(b));return c},LGc=function(a,b){var c;var d=new _.mxb;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=_.qrc(_.prc(_.orc(_.nrc(d,apc(b.quotaBytesByService||[])),b.quotaType?OGc.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)-cpc(b);d=_.x(d,9,e);d=_.rrc(d,Number(b.quotaBytesUsedAggregate));d=_.x(d,11,Number(b.quotaBytesUsedInTrash));d=_.x(d,13,_.Wnc(Number(b.quotaBytesUsedAggregate),Number(b.quotaBytesTotal)));d=_.src(d,PGc.get(b.quotaStatus)||0);if(b.graceQuotaInfo&&b.graceQuotaInfo.endDate){e=new _.lxb;var f=_.s7a(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=_.JJ(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,_.Wnc(Number(b.individualQuotaBytesUsedAggregate),Number(b.individualQuotaBytesTotal))));b=_.x(d,9,Number(b.individualQuotaBytesUsedAggregate))}else b=
d;return b},PGc=new Map([["softLimitExceeded",2],["hardLimitExceeded",3],["underLimit",1]]),bpc=new Set(["POOLED_STORAGE","FAMILY"]),MGc=new Map([["isInTrial",1],["hasPaidContract",2],["noSubscription",3],["trialExpired",4]]),$oc=new Map([["DRIVE",1],["FAMILY",4],["GMAIL",2],["PHOTOS",3],["POOLED_STORAGE",5]]),OGc=new Map([["LIMITED",1],["UNLIMITED",2],["POOLED",3]]);
var QGc=new Map([["TYPE_UNSPECIFIED",0],["MOBILE",1],["SYNC_CLIENT",2],["APP",3]]),RGc=new Map([["TYPE_UNSPECIFIED",0],["MY_DRIVE_ROOT",1],["SHARED_DRIVE_ROOT",2],["STANDARD_FOLDER",3]]),SGc=new Map([["TYPE_UNSPECIFIED",0],["USER_DELETION",1],["TRASH_AUTO_PURGE",2],["MULTIPARENTING_MIGRATION",4]]),TGc=new Map([["TYPE_UNSPECIFIED",0],["TRASH",1],["PERMANENT_DELETE",2]]),UGc=new Map([["TYPE_UNSPECIFIED",0],["UNTRASH",1],["REVIVE",2]]),VGc=new Map([["ROLE_UNSPECIFIED",0],["OWNER",1],["ORGANIZER",2],
["FILE_ORGANIZER",3],["EDITOR",4],["COMMENTER",5],["VIEWER",6],["PUBLISHED_VIEWER",7]]),WGc=new Map([["SUBTYPE_UNSPECIFIED",0],["ADDED",1],["DELETED",2],["REPLY_ADDED",3],["REPLY_DELETED",4],["RESOLVED",5],["REOPENED",6]]),XGc=new Map([["SUBTYPE_UNSPECIFIED",0],["ADDED",1],["DELETED",2],["REPLY_ADDED",3],["REPLY_DELETED",4],["RESOLVED",5],["REOPENED",6],["REASSIGNED",7]]),YGc=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]]),ZGc=new Map([["TYPE_UNSPECIFIED",0],["FLAGGED",1],["CLEARED",2]]),$Gc=new Map([["TYPE_UNSPECIFIED",0],["LOADED_FOR_VIEW",1],["VIEWED_MORE_CONTENT",2],["OPEN_WITH_APP_INITIATED",3]]),aHc=new Map([["DOMAIN_VISIBILITY_UNKNOWN",0],["DOMAIN_VISIBILITY_CONSUMER",1],["DOMAIN_VISIBILITY_SAME_DOMAIN",2],["DOMAIN_VISIBILITY_ALL_DOMAINS",3],["DOMAIN_VISIBILITY_RESTRICTED",4]]),bHc=new Map([["NAMED_PARTY_UNKNOWN",0],["NAMED_PARTY_UNNAMED",1],["NAMED_PARTY_NAMED",
2]]),cHc=new Map([["TYPE_UNSPECIFIED",0],["DOWNLOADED",1],["DOWNLOAD_INITIATED",2],["PRINT_INITIATED",3]]),dHc=new Map([["UNSPECIFIED_REFERENCE_TYPE",0],["LINK",1],["DISCUSS",2]]),eHc=new Map([["FEATURE_UNSPECIFIED",0],["SHARING_OUTSIDE_DOMAIN",1],["DIRECT_SHARING",2],["ITEM_DUPLICATION",3],["DRIVE_FILE_STREAM",4]]),fHc=new Map([["RESTRICTION_UNSPECIFIED",0],["UNRESTRICTED",1],["FULLY_RESTRICTED",2]]),gHc=new Map([["STATUS_UNSPECIFIED",0],["IN_PROGRESS",1],["COMPLETED",2],["CANCELLED",3]]),hHc=new Map([["DECISION_UNSPECIFIED",
0],["APPROVED",1],["DECLINED",2]]),iHc=new Map([["TYPE_UNSPECIFIED",0],["LABEL_ADDED",1],["LABEL_REMOVED",2],["LABEL_FIELD_VALUE_CHANGED",3]]),jHc=new Map([["PUBLISH_MODE_UNSPECIFIED",0],["NONE",1],["FIXED",2],["AUTO",3]]),kHc=new Map([["REASON_UNSPECIFIED",0],["ORPHAN_REPARENTED",1]]),rHc=function(a){return a.map(function(b){var c=new _.MAc;if(b.primaryActionDetail){var d=lHc(b.primaryActionDetail);_.G(c,2,d)}b.actors&&(d=mHc(b.actors),_.tj(c,3,d));b.actions&&(d=nHc(b.actions),_.tj(c,4,d));b.targets&&
(d=oHc(b.targets),_.tj(c,5,d));b.timestamp&&c.V(pHc(b.timestamp));b.timeRange&&(b=qHc(b.timeRange),_.yj(c,7,_.iM,b));return c})},nHc=function(a){return a.map(function(b){var c=new _.JAc;if(b.detail){var d=lHc(b.detail);_.G(c,1,d)}if(b.source){d=b.source;var e=new Guc;if(d.type){var f=QGc.get(d.type);_.Mj(e,2,f)}d.appId&&_.Lj(e,1,d.appId);_.G(c,2,e)}b.actor&&(d=sHc(b.actor),_.G(c,3,d));b.target&&(d=tHc(b.target),_.G(c,4,d));b.timestamp&&c.V(pHc(b.timestamp));b.timeRange&&(b=qHc(b.timeRange),_.yj(c,
6,_.KAc,b));return c})},oHc=function(a){return a.map(function(b){return tHc(b)})},vHc=function(a){return a.map(function(b){return uHc(b)})},wHc=function(a){return a.map(function(b){var c=new _.quc;b.parent&&c.Ug(uHc(b.parent));b.shortcut&&(b=uHc(b.shortcut),_.G(c,2,b));return c})},tHc=function(a){var b=new _.Ouc;if(a.driveItem){var c=xHc(a.driveItem);_.yj(b,1,_.tL,c)}if(a.drive){var d=a.drive;c=new _.Muc;d.name&&c.$c(d.name);d.title&&c.setTitle(d.title);d.root&&(d=xHc(d.root),_.G(c,3,d));_.yj(b,5,
_.tL,c)}a.fileComment&&(a=a.fileComment,c=new _.Nuc,a.legacyCommentId&&_.Lj(c,1,a.legacyCommentId),a.legacyDiscussionId&&_.Lj(c,2,a.legacyDiscussionId),a.linkToDiscussion&&_.Lj(c,3,a.linkToDiscussion),a.parent&&c.Ug(xHc(a.parent)),_.yj(b,3,_.tL,c));return b},uHc=function(a){var b=new _.mL;if(a.driveItem){var c=a.driveItem,d=new $tc;c.name&&d.$c(c.name);c.title&&d.setTitle(c.title);if(c.driveFile){var e=new Ytc;_.yj(d,8,Ztc,e)}c.driveFolder&&(e=yHc(c.driveFolder),_.yj(d,9,Ztc,e));c.driveShortcut&&
(c=zHc(c.driveShortcut),_.yj(d,10,Ztc,c));_.yj(b,1,auc,d)}a.drive&&(a=AHc(a.drive),_.yj(b,3,auc,a));return b},xHc=function(a){var b=new _.Xtc;a.name&&b.$c(a.name);a.title&&b.setTitle(a.title);a.mimeType&&_.Lj(b,6,a.mimeType);var c=Number(a.version);isFinite(c)&&_.Jj(b,5,c);if(a.owner){var d=a.owner;c=new Ttc;d.domain&&c.Nn(BHc(d.domain));if(d.user){var e=DM(d.user);_.yj(c,1,_.Stc,e)}d.drive&&(d=AHc(d.drive),_.yj(c,4,_.Stc,d));_.G(b,7,c)}a.driveFile&&(c=new Ytc,_.yj(b,8,Utc,c));a.driveFolder&&(c=yHc(a.driveFolder),
_.yj(b,9,Utc,c));a.driveShortcut&&(a=zHc(a.driveShortcut),_.yj(b,10,Utc,a));return b},AHc=function(a){var b=new Rtc;a.name&&b.$c(a.name);a.title&&b.setTitle(a.title);return b},yHc=function(a){var b=new Vtc;a.type&&(a=RGc.get(a.type),_.Mj(b,6,a));return b},zHc=function(a){var b=new Wtc;a.targetName&&_.Lj(b,1,a.targetName);a.targetMimeType&&_.Lj(b,2,a.targetMimeType);return b},mHc=function(a){return a.map(function(b){return sHc(b)})},sHc=function(a){var b=new _.Luc;if(a.user){var c=DM(a.user);_.yj(b,
1,_.sL,c)}a.anonymous&&(c=new Iuc,_.yj(b,2,_.sL,c));if(a.impersonation){var d=a.impersonation;c=new _.Juc;d.impersonatedUser&&(d=DM(d.impersonatedUser),_.G(c,1,d));_.yj(b,3,_.sL,c)}a.system&&(d=a.system,c=new _.Kuc,d.type&&(d=SGc.get(d.type),_.Mj(c,1,d)),_.yj(b,4,_.sL,c));a.administrator&&(a=new _.Huc,_.yj(b,5,_.sL,a));return b},CHc=function(a){return a.map(function(b){return DM(b)})},DM=function(a){var b=new _.ytc;if(a.knownUser){var c=a.knownUser,d=new _.wtc;c.personName&&_.Lj(d,1,c.personName);
c.isCurrentUser&&_.Ij(d,2,c.isCurrentUser);c.displayName&&_.Lj(d,3,c.displayName);c.photoUrl&&d.On(c.photoUrl);_.yj(b,2,_.vtc,d)}a.unknownUser&&(c=new ztc,_.yj(b,4,_.vtc,c));a.deletedUser&&(a=new _.xtc,_.yj(b,3,_.vtc,a));return b},pHc=function(a){var b=(new Date(a)).getTime();a=Math.floor(b/1E3);b=b%1E3*1E6;return _.r7a((new _.Iy).setSeconds(a),b)},qHc=function(a){var b=new _.hM;a.startTime&&b.gZ(pHc(a.startTime));a.endTime&&b.iP(pHc(a.endTime));return b},BHc=function(a){var b=new Qtc;a.name&&b.$c(a.name);
a.legacyId&&_.Lj(b,3,a.legacyId);a.audienceDisplayName&&_.Lj(b,4,a.audienceDisplayName);return b},lHc=function(a){var b=new _.rL;if(a.create){var c=a.create,d=new _.duc;if(c.new){var e=new euc;_.yj(d,1,_.buc,e)}c.upload&&(e=new fuc,_.yj(d,2,_.buc,e));c.copy&&(e=c.copy,c=new _.cuc,e.originalObject&&(e=uHc(e.originalObject),_.G(c,1,e)),_.yj(d,3,_.buc,c));_.yj(b,1,_.qL,d)}a.edit&&(d=new kuc,_.yj(b,2,_.qL,d));if(a.move){c=a.move;d=new _.suc;c.addedParents&&(e=vHc(c.addedParents),_.tj(d,1,e));c.removedParents&&
(e=vHc(c.removedParents),_.tj(d,2,e));c.fromOwnershipTransfer&&_.Ij(d,3,c.fromOwnershipTransfer);c.reparents&&(e=c.reparents.map(DHc),_.tj(d,4,e));if(c.multiparentingMigration){e=c.multiparentingMigration;c=new _.ruc;if(e.removedParents){var f=vHc(e.removedParents);_.tj(c,2,f)}e.migratedParents&&(e=wHc(e.migratedParents),_.tj(c,1,e));_.G(d,5,c)}_.yj(b,3,_.qL,d)}a.rename&&(d=a.rename,c=new _.yuc,d.oldTitle&&_.Lj(c,1,d.oldTitle),d.newTitle&&_.Lj(c,2,d.newTitle),_.yj(b,4,_.qL,c));a.delete&&(c=a.delete,
d=new _.iuc,c.type&&(c=TGc.get(c.type),_.Mj(d,1,c)),_.yj(b,5,_.qL,d));a.restore&&(c=a.restore,d=new _.zuc,c.type&&(c=UGc.get(c.type),_.Mj(d,1,c)),_.yj(b,6,_.qL,d));a.permissionChange&&(c=a.permissionChange,d=new _.vuc,c.addedPermissions&&(e=EHc(c.addedPermissions),_.tj(d,1,e)),c.removedPermissions&&(e=EHc(c.removedPermissions),_.tj(d,2,e)),c.resharedPermissions&&(e=EHc(c.resharedPermissions),_.tj(d,3,e)),c.otherActivePermissions&&(c=EHc(c.otherActivePermissions),_.tj(d,4,c)),_.yj(b,7,_.qL,d));if(a.comment){c=
a.comment;d=new _.Ptc;c.post&&(f=c.post,e=new _.Mtc,f.subtype&&(f=WGc.get(f.subtype),_.Mj(e,1,f)),_.yj(d,1,_.Ltc,e));if(c.assignment){f=c.assignment;e=new _.Ntc;if(f.subtype){var h=XGc.get(f.subtype);_.Mj(e,1,h)}f.assignedUser&&(f=DM(f.assignedUser),_.G(e,7,f));_.yj(d,2,_.Ltc,e)}c.suggestion&&(f=c.suggestion,e=new _.Otc,f.subtype&&(f=YGc.get(f.subtype),_.Mj(e,1,f)),_.yj(d,3,_.Ltc,e));c.mentionedUsers&&(c=CHc(c.mentionedUsers),_.tj(d,7,c));_.yj(b,8,_.qL,d)}a.dlpChange&&(c=a.dlpChange,d=new _.huc,c.type&&
(c=ZGc.get(c.type),_.Mj(d,1,c)),_.yj(b,9,_.qL,d));if(c=a.view){d=new Fuc;(e=$Gc.get(c.type))&&_.Mj(d,1,e);if(e=c.viewHistoryVisibility)c=new Euc,(f=aHc.get(e.domainPolicyVisibilityState))&&_.Mj(c,1,f),(e=bHc.get(e.namedPartyState))&&_.Mj(c,2,e),_.G(d,2,c);_.yj(b,10,_.qL,d)}if(c=a.download)d=new juc,(c=cHc.get(c.type))&&_.Mj(d,1,c),_.yj(b,11,_.qL,d);a.reference&&(c=a.reference,d=new _.qtc,c.type&&(e=dHc.get(c.type),_.Mj(d,1,e)),c.context&&(c=c.context,e=new ptc,c.description&&e.ll(c.description),c.url&&
_.Lj(e,2,c.url),_.G(d,2,e)),_.yj(b,12,_.qL,d));a.settingsChange&&(c=a.settingsChange,d=new _.Cuc,c.restrictionChanges&&(c=FHc(c.restrictionChanges),_.tj(d,1,c)),_.yj(b,13,_.qL,d));a.approvalChange&&(c=a.approvalChange,d=new _.Ctc,c.approvalName&&_.Lj(d,2,c.approvalName),c.approvalEventNames&&_.rj(d,3,c.approvalEventNames),c.initiator&&(e=DM(c.initiator),_.G(d,4,e)),c.reviewers&&(e=CHc(c.reviewers),_.tj(d,5,e)),c.status&&d.Dc(gHc.get(c.status)),c.dueTime&&(e=pHc(c.dueTime),_.G(d,7,e)),c.approvalRequested&&
(e=new Dtc,_.yj(d,8,_.lL,e)),c.approvalCancelled&&(e=new Etc,_.yj(d,9,_.lL,e)),c.reviewerResponded&&(f=c.reviewerResponded,e=new _.Btc,f.reviewerDecision&&(f=hHc.get(f.reviewerDecision),_.Mj(e,1,f)),_.yj(d,10,_.lL,e)),c.commentAdded&&(e=new Ftc,_.yj(d,11,_.lL,e)),c.reviewersChanged&&(f=c.reviewersChanged,e=new Htc,f.reviewerChanges&&(f=GHc(f.reviewerChanges),_.tj(e,1,f)),_.yj(d,12,_.lL,e)),c.dueTimeChanged&&(e=c.dueTimeChanged,c=new Jtc,e.oldDueTime&&(e=pHc(e.oldDueTime),_.G(c,1,e)),_.yj(d,13,_.lL,
c)),_.yj(b,18,_.qL,d));a.lock&&(d=new muc,_.yj(b,15,_.qL,d));a.unlock&&(d=new Duc,_.yj(b,16,_.qL,d));a.appliedLabelChange&&(c=a.appliedLabelChange,d=new _.utc,c.changes&&(c=HHc(c.changes),_.tj(d,1,c)),_.yj(b,19,_.qL,d));a.publishChange&&(c=a.publishChange,d=new _.xuc,c.oldPublishState&&(e=IHc(c.oldPublishState),_.G(d,1,e)),c.newPublishState&&(c=IHc(c.newPublishState),_.G(d,2,c)),_.yj(b,20,_.qL,d));a.linkShareMetadataChange&&(a=a.linkShareMetadataChange,d=new _.luc,a.securityUpdateEnabled&&_.Ij(d,
1,a.securityUpdateEnabled),_.yj(b,21,_.qL,d));return b},DHc=function(a){var b=new _.ouc;a.reason&&(a=kHc.get(a.reason),_.Mj(b,1,a));return b},EHc=function(a){return a.map(function(b){var c=new _.pL;if(b.role){var d=VGc.get(b.role);_.Mj(c,1,d)}b.user&&(d=DM(b.user),_.yj(c,2,_.oL,d));if(b.group){d=b.group;var e=new _.nL;d.email&&_.Lj(e,1,d.email);d.title&&e.setTitle(d.title);_.yj(c,3,_.oL,e)}b.domain&&c.Nn(BHc(b.domain));b.anyone&&(d=new tuc,_.yj(c,5,_.oL,d));b.allowDiscovery&&_.Ij(c,6,b.allowDiscovery);
return c})},FHc=function(a){return a.map(function(b){var c=new _.Buc;if(b.feature){var d=eHc.get(b.feature);_.Mj(c,1,d)}b.newRestriction&&(b=fHc.get(b.newRestriction),_.Mj(c,2,b));return c})},GHc=function(a){return a.map(function(b){var c=new Itc;if(b.removedReviewer){var d=DM(b.removedReviewer);_.G(c,3,d)}b.addedReviewer&&(b=DM(b.addedReviewer),_.G(c,4,b));return c})},HHc=function(a){return a.map(function(b){var c=new _.ttc;b.label&&_.Lj(c,1,b.label);b.types&&(b=JHc(b.types),_.rj(c,2,b));return c})},
JHc=function(a){return a.map(function(b){return iHc.get(b)})},IHc=function(a){var b=new _.wuc;if(a.publishMode){var c=jHc.get(a.publishMode);_.Mj(b,1,c)}a.signinRequired&&_.Ij(b,2,a.signinRequired);a.publishedTime&&(a=pHc(a.publishedTime),_.G(b,3,a));return b};
var LHc=function(a){return(a.items||[]).map(function(b){return KHc(b)})},MHc=function(a,b){var c=new VAc;b=_.x(c,4,b);a&&(a=KHc(a),_.G(b,2,a));return b},KHc=function(a){var b=(new _.uL).Nb(a.id);b=_.x(b,3,a.useByDefault).$c(a.name);b=_.x(b,7,a.openUrlTemplate);b=Xuc(Wuc(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=_.rj(b,17,a.primaryFileExtensions);b=_.rj(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=NHc.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 _.Ruc;l=_.x(l,3,k.iconUrl).setSize(k.size);k.category&&(k=OHc.get(k.category),_.x(l,1,k));h.call(f,l)}_.tj(b,6,d);c=a.chromeExtensionIds||[];d=[];for(e=0;e<c.length;e++)d.push(c[e]);_.rj(b,24,d);c=a.rankingInfo||{};a=new _.Uuc;d=c.absoluteScore;null!=d&&_.x(a,1,Number(d));d=PHc(c.mimeTypeScores||[]);_.tj(a,
2,d);c=PHc(c.fileExtensionScores||[]);_.tj(a,3,c);_.G(b,29,a);return b},PHc=function(a){return a.map(function(b){var c=b.type;b=b.score;var d=new _.Suc;c=_.x(d,1,c);return _.x(c,2,Number(b))})},NHc=new Map([["WEB_ONLY",1],["WEB_AND_CHROME_EXTENSION",2],["CHROME_EXTENSION_ONLY",3]]),OHc=new Map([["application",1],["document",2],["documentShared",3]]);
var RHc=function(a){var b=new cBc;if(!a.backups)return b;a=a.backups.map(function(c){var d=(new _.GL).Nb(c.id).setTitle(c.title);d=_.x(d,3,_.DK(c.updateTime));var e=QHc.get(c.backupSource);d=_.x(d,4,e);d=_.x(d,5,c.iconUri);d=_.x(d,8,_.DK(c.expiryTime));d=_.x(d,9,"boolean"===typeof c.hasGoogleoneBackup?c.hasGoogleoneBackup:!1);if(1===d.xz())e=new swc,e=_.x(e,1,c.whatsappOngoingBackupEnabled),c=_.x(e,2,c.whatsappPhoneNumber),_.G(d,6,c);else if(2===d.xz()){e=Number(c.deviceAndroidId);var f=new _.rwc;
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});_.tj(b,2,a);return b},THc=function(a){var b=new ZAc;if(!a.backupItems)return b;a=a.backupItems.map(function(c){var d=(new _.HL).Nb(c.id);var e=SHc.get(c.type);d=_.x(d,1,e).setTitle(c.title);d=_.x(d,4,c.iconUri);d=_.twc(d.setSize(c.size?Number(c.size):void 0),_.DK(c.updateTime));d=_.x(d,7,c.hasCustomBehavior).ll(c.description);return _.x(d,9,c.ongoingSyncEnabled)});
_.tj(b,1,a);return b},QHc=new Map([["BACKUP_SOURCE_UNSPECIFIED",0],["BACKUP_SOURCE_WHATSAPP",1],["BACKUP_SOURCE_ANDROID",2]]),SHc=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 UHc=function(a,b){this.H=a;this.O=b};
var dpc=new Map([["QUEUED",1],["COUNTING",3],["BUILDING",2],["SUCCEEDED",4],["FAILED",5]]);
var VHc=new Map([["READ",2],["WRITE",3],["COMMENT",4]]),WHc=function(a,b,c){var d=c.itemId;c=c.driveItem;d=(new _.Jk).Nb(d);c&&(_.dG(d.setTitle(c.title),c.mimeType),c.userCapabilities&&_.RJ(d,_.pmc(c.userCapabilities)));_.cK(b).includes(19)&&_.x(d,44,!0);ezc(a,d,_.cK(b));_.pic(d,4);return d},ZHc=function(a,b,c){for(var d=[],e=[],f={},h=_.m(c.item||[]),k=h.next();!k.done;f={Gfa:f.Gfa},k=h.next()){var l=k.value;if(l.person){f.Gfa=l.itemId;k=XHc(l.person).Nb(f.Gfa);var p={};l=_.m(l.childItem||[]);for(var q=
l.next();!q.done;p={$ra:p.$ra},q=l.next()){var r=q.value;e.some(function(v){return function(w){return w.getId()===v.Gfa}}(f))||e.push(k);p.$ra=r.itemId;q=d.find(function(v){return function(w){return w.getId()===v.$ra}}(p));void 0===q&&(q=WHc(a,b,r),d.push(q));r=Zqc(Yqc(Xqc(new _.zoa,k.clone()),YHc(r)),r.url);_.zj(q,107,r,_.zoa,void 0)}}}return Msc((new _.lK).hB(d),e).bQ(c.suggestionSessionId)},XHc=function(a){return _.bic((new _.wk).Nb(a.id).$c(a.displayName),a.emailAddress).On(a.photoUrl)},jIc=function(a){var b=
a.action;return b?b.map(function(c){var d=new _.boa,e=$Hc(c);e&&_.yj(d,2,_.Ak,e);(e=aIc(c))&&Npc(d,e);(e=bIc(c))&&_.yj(d,4,_.Ak,e);(e=cIc(c))&&_.yj(d,5,_.Ak,e);(e=dIc(c))&&_.yj(d,6,_.Ak,e);(e=eIc(c))&&_.yj(d,7,_.Ak,e);(e=fIc(c))&&_.yj(d,8,_.Ak,e);(e=gIc(c))&&_.yj(d,9,_.Ak,e);(e=hIc(c))&&_.yj(d,10,_.Ak,e);(c=iIc(c))&&_.yj(d,11,_.Ak,c);return d}):(a=EM(a),a=vqc([a]),[Npc(new _.boa,a)])},lIc=function(a){return(a.justification||[]).map(function(b){return kIc(b)})},EM=function(a){return(a=a.justification)?
kIc(a):null},kIc=function(a){var b=Jpc(new _.zk,mIc(a.displayText)),c=a.primaryPerson,d=a.allPeople;c?(c=XHc(c),_.yj(b,3,_.aoa,c),Kpc(b,[c])):d?(c=(d.person||[]).map(function(e){return XHc(e)}),d=Ipc(c),_.yj(b,4,_.aoa,d),Kpc(b,c)):(c=(a.person||[]).map(function(e){return XHc(e)}),c.length&&(d=Ipc(c),_.yj(b,4,_.aoa,d),Kpc(b,c)));_.x(b,5,_.DK(a.eventTime));Lpc(b,mIc(a.justificationDescription));Mpc(b,mIc(a.unstructuredJustificationDescription));return b},mIc=function(a){if(!a)return null;a=a.textSegment||
[];return Fpc(new _.rk,a.map(function(b){var c=(new _.sk).kh(b.text),d=b.link;if(d){var e=new _.tk;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)}))},$Hc=function(a){a=a.documentDocosAction;if(!a)return null;var b=kqc(new _.joa,EM(a));jqc(b,(a.subAction||[]).map(function(c){var d=new _.koa;c.reply?(c=new _.doa,_.yj(d,1,_.Bk,c)):c.resolve?(c=new Vpc,_.yj(d,2,_.Bk,c)):c.reassign?(c=new Tpc,_.yj(d,3,_.Bk,c)):c.acceptSuggestion?(c=new Opc,_.yj(d,4,_.Bk,c)):c.rejectSuggestion?
(c=new Upc,_.yj(d,5,_.Bk,c)):c.openThread&&(c=new _.coa,_.yj(d,6,_.Bk,c));return d}));_.x(b,2,a.discussionId);_.x(b,3,a.postId);lqc(b,mIc(a.anchorText));return b},bIc=function(a){a=a.documentShareAction;if(!a)return null;var b=pqc(new _.moa,EM(a));oqc(b,(a.subAction||[]).map(function(c){var d=new qqc;c.suggestedShare?(c=new Zpc,_.yj(d,1,Sqc,c)):c.responseToRequest&&(c=new Wpc,_.yj(d,2,Sqc,c));return d}));mqc(b,(a.sharee||[]).map(function(c){return XHc(c)}));nqc(b,VHc.get(a.shareeRole));return b},
aIc=function(a){a=a.documentViewAction;if(!a)return null;var b=vqc(lIc(a));uqc(b,(a.subAction||[]).map(function(c){var d=new xqc;c.open?d.Nf(new Qpc):c.reviewEdits&&(c=new Xpc,_.yj(d,2,wqc,c));return d}));return b},cIc=function(a){a=a.emailViewAction;if(!a)return null;var b=Hqc(new Fqc,EM(a));Gqc(b,(a.subAction||[]).map(function(c){var d=new Jqc;c.open&&d.Nf(new Rpc);return d}));return b},dIc=function(a){a=a.calendarEventAction;if(!a)return null;var b=eqc(dqc(cqc(new _.foa,a.eventId),EM(a)),a.guestCount);
bqc(b,(a.subAction||[]).map(function(c){var d=new fqc;if(c.viewCalendarEvent){var e=new $pc;_.yj(d,1,Qqc,e)}c.shareWithAttendees&&(e=new Ypc,_.yj(d,2,Qqc,e));c.present&&(e=new Spc,_.yj(d,3,Qqc,e));c.openDocument&&(c=new Qpc,_.yj(d,4,Qqc,c));return d}));return b},eIc=function(a){a=a.documentWorkspaceAction;if(!a)return null;var b=Cqc(Bqc(new zqc,a.workspaceId),EM(a));Aqc(b,(a.subAction||[]).map(function(c){var d=new Dqc;c.addToWorkspace&&(c=new Ppc,_.yj(d,1,Uqc,c));return d}));return b},fIc=function(a){a=
a.documentTopicAction;if(!a)return null;var b=sqc(new _.ooa,EM(a));rqc(b,(a.subAction||[]).map(function(c){var d=new tqc;c.openDocument&&(c=new Qpc,_.yj(d,1,Tqc,c));return d}));return b},gIc=function(a){a=a.popularDocumentAction;if(!a)return null;var b=Oqc(new _.uoa,EM(a));Nqc(b,(a.subAction||[]).map(function(c){var d=new Pqc;c.openDocument&&(c=new Qpc,_.yj(d,1,Wqc,c));return d}));return b},hIc=function(a){a=a.collaboratorActivityAction;if(!a)return null;var b=hqc(new _.hoa,EM(a));gqc(b,(a.subAction||
[]).map(function(c){var d=new iqc;c.openDocument&&(c=new Qpc,_.yj(d,1,Rqc,c));return d}));return b},iIc=function(a){a=a.formResponseAction;if(!a)return null;var b=Lqc(new _.soa,lIc(a));Kqc(b,(a.subAction||[]).map(function(c){var d=new Mqc;c.openDocument?(c=new Qpc,_.yj(d,1,Vqc,c)):c.viewResponses&&(c=new aqc,_.yj(d,2,Vqc,c));return d}));return b},YHc=function(a){a=((a.justification||{}).displayText||{}).textSegment||[];return 0<a.length?(a[0]||{}).text||"":""};
var nIc=function(a,b){this.H=a;this.O=b},pIc=function(a,b,c){var d=new LL,e=Object.values(c.categoryMetadata||{});Swc(d,e.map(function(f){return oIc(a,f,b.qc())}));d.Dc(1);return new _.oK(d,ipc(c))},rIc=function(a,b){var c=new nM;VBc(c,(b.categories||[]).map(function(d){return qIc(a,d)}));c.Dc(1);return new pwc(c,ipc(b))},oIc=function(a,b,c){c=Qwc((new KL).$c(b.categoryName),c);b=Object.values(b.attributeValues||[]);Pwc(c,b.map(function(d){return sIc(a,d)}).filter(function(d){return null!==d}));return c},
qIc=function(a,b){var c,d=TBc(JBc(PBc(OBc(NBc(IBc(HBc((new mM).$c(b.name),b.categoryName),b.latestName).setTitle(b.title).ll(b.description),_.DK(b.createTime)),_.DK(b.updateTime)),_.DK(b.publishTime)),(null!==(c=b.attributes)&&void 0!==c?c:[]).map(function(e){a:{var f=e.type;var h=(new hBc).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=tIc(e.attributeDisplayHints);_.G(h,5,k)}if(e.capabilities){k=e.capabilities;var l=new iBc;l=_.x(l,
1,k.canSearch);k=_.x(l,2,k.canWrite);_.G(h,6,k)}if(f&&(_.x(h,7,uIc[f]),e=e[vIc(f)+"Options"],!wIc(a,h,f,e))){f=null;break a}f=h}return f}).filter(function(e){return null!==e})),b.customer);b.createdBy&&KBc(d,xIc(b.createdBy));b.VVb&&LBc(d,xIc(b.VVb));b.publishedBy&&MBc(d,xIc(b.publishedBy));b.displayHints&&QBc(d,tIc(b.displayHints));b.capabilities&&SBc(d,yIc(b.capabilities));b.learnMoreUri&&_.x(d,15,b.learnMoreUri);return d},sIc=function(a,b){var c=(new iL).Nb(b.id);if(b.userScoped)b=Object.values(b.userScoped),
itc(c,b.map(function(d){if(d.scopedUser){var e=new ftc;var f=_.EK(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.iB(9);else if(!a.Hb(c,b))return null;return c},tIc=function(a){var b=new gBc;b=_.x(b,1,a.disabled);b=_.x(b,2,a.hidden);b=_.x(b,3,a.activatedInAllDrives);return _.x(b,4,!!a.required)},yIc=function(a){var b=new RBc;b=_.x(b,1,a.canSearch);b=_.x(b,2,a.canApply);b=_.x(b,4,a.canRemove);return _.x(b,3,a.canManageSharedDriveActivation)},
wIc=function(a,b,c,d){return zIc(a,function(){AIc(a)[c](b,d)},c,b)},BIc=function(a){a=void 0===a?{}:a;var b=new nBc;b=_.x(b,1,a.minSize);return _.x(b,2,a.maxSize)},DIc=function(a){var b=new mBc;sBc(b,(a.choices||[]).map(function(c){var d=new rBc;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 tBc;f=_.x(f,1,e.canSearch);e=_.x(f,2,e.canSelect);_.G(d,3,e)}c.displayHints&&(c=c.displayHints,e=new uBc,e=_.x(e,1,c.disabled),e=_.x(e,2,c.hidden),
c.badgePriority&&_.x(e,5,c.badgePriority),c.badgeColors&&(f=CIc(c.badgeColors),_.G(e,3,f)),c.darkBadgeColors&&(c=CIc(c.darkBadgeColors),_.G(e,4,c)),_.G(d,4,e));return d}));return b},CIc=function(a){var b=new fBc;var c=EIc(a.backgroundColor);b=_.G(b,1,c);c=EIc(a.foregroundColor);b=_.G(b,2,c);a=EIc(a.soloColor);return _.G(b,3,a)},EIc=function(a){var b=new _.TC;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 Brc).Hb(a.alpha),_.G(b,4,a));return b},FIc=function(a){var b=
new wBc;b=_.x(b,1,a.showThousandsSeparator);b=_.x(b,2,Number(a.minValue));return _.x(b,3,Number(a.maxValue))},GIc=function(a){var b=(new _.Toa).setYear(a.year).setMonth(a.month);return _.x(b,3,a.day)};nIc.prototype.Hb=function(a,b){var c=this,d=b.valueType.replace(/([A-Z])/g,"_$1").toLowerCase().toUpperCase();a.iB(uIc[d]);return zIc(this,function(){HIc(c)[d](a,b[b.valueType])},b.valueType)};
var zIc=function(a,b,c,d){try{b()}catch(e){if(e instanceof TypeError&&!(d instanceof yBc))return hsc(a.O,"drive.ds.response.MetadataParser","Response Parser: Error parsing type "+c+"."),!1;throw e;}return!0},xIc=function(a){return _.$hc(1).Nb(a.personName.split("/")[1])},vIc=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},AIc=function(a){return{BOOLEAN:function(b,c){var d=b.m6a;var e=new pBc;e=_.x(e,1,c.trueLabel);c=_.x(e,2,c.falseLabel);return d.call(b,
c)},TEXT:function(b,c){return b.GOa(BIc(c))},TEXT_LIST:function(b,c){var d=b.k7a;var e=new vBc;e=_.x(e,1,c.maxEntries);c=BIc(c.options);c=_.G(e,2,c);return d.call(b,c)},LONG_TEXT:function(b,c){var d=new kBc;d=_.x(d,1,c.minSize);c=_.x(d,2,c.maxSize);return _.yj(b,10,kM,c)},SELECTION:function(b,c){return b.Z6a(DIc(c))},SELECTION_LIST:function(b,c){var d=b.Y6a;var e=new lBc;e=_.x(e,1,c.maxEntries);c=DIc(c.options);c=_.G(e,2,c);return d.call(b,c)},INTEGER:function(b,c){return b.z6a(FIc(c))},INTEGER_LIST:function(b,
c){var d=b.y6a;var e=new xBc;e=_.x(e,1,c.maxEntries);c=FIc(c.options);c=_.G(e,2,c);return d.call(b,c)},USER:function(b){return b.p7a(new zBc)},USER_LIST:function(b,c){var d=b.HOa,e=new oBc;c=_.x(e,1,c.maxEntries);e=new zBc;c=_.G(c,2,e);return d.call(b,c)},DATE:function(b,c){var d=b.FOa;var e=new jBc;e=_.x(e,4,c.dateFormat);var f=GIc(c.minValue);e=_.G(e,2,f);c=GIc(c.maxValue);c=_.G(e,3,c);return d.call(b,c)},USER_SCOPED:function(b,c){var d=new yBc;d=_.x(d,1,c.canReadCollaboratorValues);var e=c.subtype;
_.x(d,2,uIc[e]);var f=vIc(e)+"Options";wIc(a,d,e,c[f]);return _.yj(b,16,kM,d)}}},HIc=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.$pa(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.Wpa(c)},INTEGER:function(b,c){return b.setIntegerValue(parseInt(c,10))},INTEGER_LIST:function(b,c){return b.Npa(c.map(function(d){return parseInt(d,
10)}))},USER:function(b,c){return b.setUserValue(_.EK(a.H,c))},USER_LIST:function(b,c){htc(b,c.map(function(d){return _.EK(a.H,d)}))},DATE_STRING:function(b,c){return b.setDateStringValue(c)}}},uIc={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 jpc={movable:1,deadlineExceeded:2,exceedsSourceLimit:3,exceedsDestinationDepthLimit:4,exceedsDestinationSizeLimit:5,tooManyUnmovableFiles:6,tooHighProportionUnmovableFiles:7};
var JIc=function(a){a=a.personResponse||[];return $wc(new Zwc,a.map(function(b){var c=b.person;b=Wwc(new ML,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=Xwc(d.call(b,e),IIc(c));c=void 0===c?{}:c;c=c.photo?c.photo[0]:null;h=new Vwc;c=_.x(h,1,c&&!c.isDefault?c.url:null);return _.G(f,4,c)}))},IIc=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 KIc=function(a){this.H=a},MIc=function(a,b){return(b.items||[]).map(function(c){return LIc(a,c)})},LIc=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)&&Jnc(c,d.map(function(e){var f=new _.Hk;return _.x(f,1,
e.category)}));c=_.wic(_.uic(_.tic(_.pic(_.qic(Inc(_.dG((new _.Jk).Nb(b.id).setTitle(b.name),"application/vnd.google-apps.folder"),c),b.id),2),b.primaryDomainName),b.organizationDisplayName),b.customerId);b.capabilities&&(d=_.dic(_.pmc(b.capabilities),!0),_.RJ(c,d));b.permissionsSummary&&_.ric(c,Gsc(a.H,b.permissionsSummary));b.restrictions&&Lnc(c,NIc(b.restrictions));return c},NIc=function(a){var b=new crc;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 OIc={DRIVE_FE:2,DRIVE_BE:4,EXPLORER:1,GENERAL:3,PSYNCHO:5,SLACK:6,DRIVE_BE_EX:7,DRIVE_SHARING:9,TEAMKIT:10},spc=_.fb(OIc);
var PIc=function(a){var b=new _.Kc;b=_.x(b,2,a.key);b=_.x(b,1,a.namespace?OIc[a.namespace]:void 0);return _.lCa(new _.Wo,b).Hb(a.value)};
var RIc=function(a){var b=a.items||[];b=bxc(new NL,b.map(function(c){return QIc(c)}));return new _.rK(b,ipc(a))},QIc=function(a){var b=(new _.dI).Nb(a.id).setTitle(a.title);b=_.x(b,3,_.DK(a.createdDate));return _.x(b,4,_.DK(a.modifiedDate)).Id(a.state?SIc[a.state]:void 0)},TIc=function(a,b,c){var d=c.item||[];return _.pnc(_.onc(new _.JK,d.map(function(e){return WHc(a,b,e)})),c.suggestionSessionId)},VIc=function(a,b,c){var d=c.item||[];return ovc(nvc(new yL,d.map(function(e){return UIc(a,b,e)})),c.suggestionSessionId)},
UIc=function(a,b,c){var d=c.driveWorkspace,e=c.childItem||[];return lvc(jvc(kvc(ivc(new xL,c.predictionId).setTitle(d&&d.title),d&&d.workspaceToken),e.map(function(f){return WHc(a,b,f)})),EM(c))},WIc=function(a){var b=new _.ctc;a.kind&&(a=QIc(a),_.G(b,2,a));b.Dc(1);return b},SIc={active:1,archived:2};
var XIc=function(a,b,c,d){_.Omc.call(this,b);this.Dg=a;this.ma=c;this.O=d;this.ha=null;this.ta=new KGc(this.W,b);this.H=new KIc(this.RF);this.wa=new UHc(this.RF,this.H)};_.K(XIc,_.Omc);var YIc=function(a){a.ha||(a.ha=new nIc(a.W,a.ma));return a.ha};
XIc.prototype.ka=function(a,b){if(a instanceof _.QI)var c=_.wmc(_.Smc(a));else{if(a instanceof _.RI)var d=_.FK(this,a,b);else{if(a instanceof _.vhc)var e=ZIc(this,a.request,b);else{if(a instanceof _.SI)var f=_.FK(this,a,b);else{if(a instanceof _.UI){if(!b.json)throw _.GK();_.CK(_.MI(_.BK("drive#teamDrive"),_.BK("drive#drive")),b.json);var h=HAc((new GAc).Dc(1),LIc(this.H,b.json))}else{if(a instanceof _.TI)var k=_.FK(this,a,b);else{if(a instanceof _.hK)var l=new ntc;else{if(a instanceof _.WI)var p=
$Ic(a,b);else{if(a instanceof _.XI)var q=MHc(void 0,a.Ih());else{if(a instanceof _.YI)var r=new dBc;else{if(a instanceof _.ZI)var v=_.wmc(_.Smc(a));else{if(a instanceof _.$I)var w=new pM;else{if(a instanceof _.aJ)var A=_.wmc(_.Smc(a));else{if(a instanceof _.bJ)var B=_.wmc(_.Smc(a));else{if(a instanceof _.pD){var E=new sCc,I=a.getKey();var M=_.G(E,4,I)}else{if(a instanceof _.cJ)var P=$Ic(a,b);else{if(a instanceof _.fJ)var S=_.wmc(_.Smc(a));else{if(a instanceof _.shc){if(!b.json)throw _.GK();var aa=
new cDc(b.json.exportJob.id)}else{if(a instanceof _.hJ){if(!b.json)throw _.GK();_.CK(_.BK("drive#app"),b.json);var ba=b.json,ma=new UAc,ea=KHc(ba);var xa=_.G(ma,2,ea).Dc(1)}else{if(a instanceof _.iJ)var Ba=aJc(a,b);else{if(a instanceof _.jJ){if(!b.json)throw _.GK();_.CK(_.BK("drive#permission"),b.json);var Ja=(new pM).Dc(1),hb=_.zmc(this.RF,b.json);var Sb=_.G(Ja,2,hb)}else{if(a instanceof _.nI)a:{if(!b.json)throw _.GK();if(a instanceof _.nI){var ac=a.jd();if(ac&&_.lJ(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,YHc(pd));_.R(ac,74,!1)?_.x(vi,4,!0):_.x(vi,3,!0);var Zj=WHc(Nc,wc,pd);var ug=_.G(Zj,100,vi);De.push(ug)}}var xj=(new _.eI).hB(De).bQ(Gb.suggestionSessionId);var Kj=_.Skc(new _.vK,xj);break a}if(ac&&_.mJ(ac)){Kj=ZHc(this.O,this.Dg,b.json);break a}if(ac&&_.nJ(ac)){for(var jm=this.O,Fi=this.Dg,Lp=b.json,Re=[],wi=_.m(Lp.item||[]),Wk=wi.next();!Wk.done;Wk=wi.next()){var Mp=
Wk.value;if(Mp.driveItem){var ak=WHc(jm,Fi,Mp),Eq=jIc(Mp);var Fq=_.tj(ak,117,Eq);Re.push(Fq)}}var hn=(new _.eI).hB(Re).bQ(Lp.suggestionSessionId);Kj=_.Skc(new _.vK,hn);break a}}_.CK(_.BK("drive#fileList"),b.json);Kj=_.tmc(this.RF,b.json,b.headers)}else{if(a instanceof _.oJ){if(!b.json)throw _.GK();var Im=THc(b.json)}else{if(a instanceof _.pJ){if(!b.json)throw _.GK();_.CK(_.BK("drive#appList"),b.json);var Al=b.json,Pr=new JL,fj=LHc(Al);var Qr=_.tj(Pr,2,fj);var Np=_.rj(Qr,4,Al.defaultAppIds).Dc(1)}else{if(a instanceof
_.thc){if(!b.json)throw _.GK();var Gq=RHc(b.json)}else{if(a instanceof _.zI)var Rr=bJc(this,b);else{if(a instanceof _.qJ){var Op=b.json;if(!Op)throw _.GK();_.CK(_.BK("drive#permissionList"),Op);var Sr=new hCc,Wn=Fsc(this.RF,Op);var uk=_.G(Sr,1,Wn);var vk=_.x(uk,2,ipc(Op))}else{if(a instanceof _.rJ){if(!b.json)throw _.GK();_.CK(_.BK("drive#revisionList"),b.json);for(var Qc=this.RF,jn=b.json,$s=new Csc,Hq=[],Tr=jn.items||[],Fu=0;Fu<Tr.length;Fu++){var Ur=_.umc(Qc,Tr[Fu]);Hq.push(Ur)}var Rl=_.tj($s,
2,Hq)}else{if(a instanceof _.sJ)var Uo=_.FK(this,a,b);else{if(a instanceof _.EI)var Xn=cJc(a,b);else{if(a instanceof _.uJ){if(!b.json)throw _.GK();var Yn=JIc(b.json)}else{if(a instanceof _.Bhc){if(!b.json)throw _.GK();var Ox=rIc(YIc(this),b.json)}else{if(a instanceof _.WF){if(!b.json)throw _.GK();var uw=YIc(this),Pp=b.json,Oz=new WBc,Gu=qIc(uw,Pp);var Vr=_.G(Oz,2,Gu).Dc(1)}else{if(a instanceof _.vJ){if(!b.json)throw _.GK();_.CK(_.BK("drive#remainingCount"),b.json);var Wr=b.json,at=new eBc,Xk=Wr.nextPageToken;
null!=Xk&&_.x(at,2,Number(Xk));_.x(at,1,Number(Wr.remainingCount));var Gi=at}else{if(a instanceof _.bG){if(!b.json)throw _.GK();_.CK(_.MI(_.BK("drive#teamDrive"),_.BK("drive#drive")),b.json);var km=(new _.eI).hB([LIc(this.H,b.json)])}else{if(a instanceof _.FJ){if(!b.json)throw _.GK();_.CK(_.MI(_.BK("drive#teamDriveList"),_.BK("drive#driveList")),b.json);var Pg=(new _.eI).hB(MIc(this.H,b.json)),vw=_.Skc(new _.vK,Pg);var Hi=_.x(vw,3,ipc(b.json))}else{if(a instanceof _.zJ)var Yk=aJc(a,b);else{if(a instanceof
_.AJ)var Hu=ZIc(this,a,b);else{if(a instanceof _.xI)var Zk=_.FK(this,a,b);else{if(a instanceof _.BJ)var bt=_.FK(this,a,b);else{if(a instanceof _.CJ)var ww=dJc(this,b);else{if(a instanceof _.qD){if(!b.json)throw _.GK();_.CK(_.BK("drive#setting"),b.json);var ct=PIc(b.json),Iu=new sCc;var Xr=_.G(Iu,3,ct);var Qp=ct.getKey();var hv=_.G(Xr,4,Qp)}else{if(a instanceof _.DJ)var iv=$Ic(a,b);else{if(a instanceof _.PH){if(!b.json)throw _.GK();_.CK(_.BK("drive#about"),b.json);var jv=NGc(this.ta,b.json)}else{if(a instanceof
_.cG){if(!b.json)throw _.GK();_.CK(_.BK("drive#workspace"),b.json);var oy=QIc(b.json),Uw=new _.mK;Uw.CU().set(oy.getId(),oy);var tN=Uw}else{if(a instanceof _.uhc){if(!b.json)throw _.GK();var zg=b.json,dr;null!==(dr=_.JJ(this.V))&&void 0!==dr&&_.R(dr,21,!1)&&(SGc.set("HIERARCHY_RECONCILIATION",3),kHc.set("UNMOVABLE_ITEM_REPARENTED",3));var kJ=new FCc;zg.nextPageToken&&_.Lj(kJ,2,zg.nextPageToken);if(zg.activities){var uN=rHc(zg.activities);_.tj(kJ,1,uN)}var vN=kJ}else{if(a instanceof _.whc)var gS=dJc(this,
b);else{if("undefined"!=typeof _.Ahc&&a instanceof _.Ahc)var py=bJc(this,b);else{if(a instanceof _.xhc){if(!b.json)throw _.GK();var hZ=new bDc}else{if(a instanceof _.yhc){if(!b.json)throw _.GK();var wN=gpc(b.json)}else{if(a instanceof _.oD){if(!b.json)throw _.GK();_.CK(_.BK("drive#settingList"),b.json);for(var iZ=b.json,jZ=new _.aA,hS=[],aD=iZ.items||[],kZ=0;kZ<aD.length;kZ++){var lZ=PIc(aD[kZ]);lZ&&hS.push(lZ)}var HF=_.ckb(jZ,hS)}else{if(a instanceof _.cA){if(!b.json)throw _.GK();var MA=VIc(this.O,
this.Dg,b.json).Dc(1)}else{if(a instanceof _.aG){if(!b.json)throw _.GK();var mZ=TIc(this.O,this.Dg,b.json)}else{if(a instanceof _.Ghc){if(!b.json)throw _.GK();_.CK(_.BK("drive#teamDrive"),b.json);var nZ=b.json,d7=nZ.recursiveFolderCount,oZ=nZ.recursiveFileCount,pZ=new nCc;var qZ=_.x(pZ,1,oZ);var e7=_.x(qZ,2,d7)}else{if(a instanceof _.Fhc){if(!b.json)throw _.GK();_.CK(_.MI(_.BK("drive#migrateToDrivePreFlightResponse"),_.BK("drive#migrateToTeamDrivePreFlightResponse")),b.json);var rZ=mpc(b.json)}else{if(a instanceof
_.Ihc){if(!b.json)throw _.GK();_.CK(_.BK("drive#workspaceList"),b.json);var kha=RIc(b.json)}else kha=a instanceof SK?dJc(this,b):null;rZ=kha}e7=rZ}mZ=e7}MA=mZ}HF=MA}wN=HF}hZ=wN}py=hZ}gS=py}vN=gS}tN=vN}jv=tN}iv=jv}hv=iv}ww=hv}bt=ww}Zk=bt}Hu=Zk}Yk=Hu}Hi=Yk}km=Hi}Gi=km}Vr=Gi}Ox=Vr}Yn=Ox}Xn=Yn}Uo=Xn}Rl=Uo}vk=Rl}Rr=vk}Gq=Rr}Np=Gq}Im=Np}Kj=Im}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 $Ic=function(a,b){if(!b.json){if(a instanceof _.cJ)return WIc({});throw _.GK();}_.CK(_.BK("drive#workspace"),b.json);return WIc(b.json)},dJc=function(a,b){if(!b.json)throw _.GK();_.CK(_.MI(_.BK("drive#teamDrive"),_.BK("drive#drive")),b.json);a=LIc(a.H,b.json);return(new _.HJ).Dc(1).setItem(a)},ZIc=function(a,b,c){if(!c.json)throw _.GK();_.CK(_.BK("drive#categoryMetadataList"),c.json);return pIc(YIc(a),b,c.json)},aJc=function(a,b){if(!b.json)throw _.GK();_.CK(_.BK("drive#app"),b.json);return MHc(b.json,
a.Ih())},bJc=function(a,b){if(!b.json)throw _.GK();_.CK(_.MI(_.BK("drive#about"),_.BK("drive#changeList")),b.json);a=a.wa;var c=b.json;b=new Nwc;var d=c.largestChangeId;null!=d&&_.x(b,3,Number(d));if(_.BK("drive#changeList")(c)){d=c.nextPageToken;null!=d&&_.x(b,2,Number(d));d=[];c=c.items||[];for(var e=0;e<c.length;e++){var f=a,h=c[e];var k=new _.qI;k=_.x(k,1,Number(h.id));h.teamDriveId?(_.Kgc(k,h.teamDriveId),_.rI(k,h.teamDriveId)):_.rI(k,h.fileId);h.file?k.setItem(_.rmc(f.H,h.file)):h.teamDrive&&
k.setItem(LIc(f.O,h.teamDrive));h.deleted&&!k.getItem()&&_.CI(k);d.push(k)}_.tj(b,4,d)}return b},cJc=function(a,b){var c=new aCc;if(_.se(a,6).length){var d=[];Boc(_.se(a,6),b.headers).forEach(function(e,f){var h=new _.Ogc;e=_.x(h,1,f).Hb(e);d.push(e)});_.tj(c,1,d)}bCc(c,b.json?JSON.stringify(b.json):b.text);return c};
var fJc=function(a){var b=new _.vo;if(a=a.getState()){var c=[];c.push("state");c.push("=");c.push(eJc[a]);_.eK(b,c.join(" "))}return b.toString()},gJc={},eJc=(gJc[1]="active",gJc[2]="archived",gJc);
var hJc=function(a,b,c,d){_.HK.call(this,b,c,a.EOa,d);this.ka=a;this.ha=new Uvc(_.cK(c),b)};_.K(hJc,_.HK);
hJc.prototype.V=function(a,b,c){var d=this,e,f,h,k,l,p;try{return _.HK.prototype.V.call(this,a,b,c)}catch(xa){}var q=0,r={},v="GET",w={},A=!1,B=!1;if(a instanceof _.RI){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();_.mj(a,4)&&(w.preFlightValidationToken=_.z(a,4));var I={parentId:a.ak()};r["content-type"]="application/json";A=B=!0;_.LJ(this.H,[],[a.getId(),a.ak()],this.O,r)}else if(a instanceof
_.SI){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;_.LJ(this.H,[],[a.qc()],this.O,r)}else if(a instanceof SK)E="drives/"+a.getId(),v="PUT",I={removeSecureLinkUpdateForAllFiles:_.R(a,2,!1)},r["content-type"]="application/json",w.fields=DL(this.H,[],!0),M=a.se(),B=!0;else if(a instanceof _.whc)v="POST",E="teamdrives/"+a.requestId,w.fields=DL(this.H),I={name:a.request.getTitle()},r["content-type"]="application/json",M=a.request.se(),
B=!0;else if(a instanceof _.WI)v="POST",E="workspaces",w.fields="kind,id,title,createdDate,modifiedDate,state",I=Koc(a),r["content-type"]="application/json",M=a.se(),B=!0;else if(a instanceof _.TI)v="POST",E="files/"+a.getId()+"/copy",w.fields=_.hhc({fields:this.eh(),anonymous:_.LI(_.fI(this.H)),lF:_.mI(this.H)}),w.convert=_.R(a,4,!1),I=Joc(a),r["content-type"]="application/json",M=a.se(),a=_.se(a,3).concat([a.getId()]),_.LJ(this.H,[],a,this.O,r),B=!0,w.supportsTeamDrives=!0,_.R(this.H,3,!1)&&(w.enforceSingleParent=
!0);else if(a instanceof _.XI)v="DELETE",E="apps/"+a.Ih(),w.appId=a.Ih(),w.deleteAppData=!!_.Q(a,2),M=a.se(),B=!0;else if(a instanceof _.YI)v="DELETE",E="backups/"+a.getId(),q=9;else if(a instanceof _.ZI)v="DELETE",E="files/"+a.getId(),M=a.se(),B=!0,w.supportsTeamDrives=!0,_.R(this.H,3,!1)&&(w.enforceSingleParent=!0),_.LJ(this.H,[],[a.getId()],this.O,r);else if(a instanceof _.$I)v="DELETE",E="files/"+a.qc()+"/permissions/"+_.z(a,2),M=a.se(),B=!0,w.supportsTeamDrives=!0;else if(a instanceof _.aJ)v=
"DELETE",E="files/"+a.qc()+"/revisions/"+_.z(a,2),M=a.se(),B=!0,_.LJ(this.H,[],[a.qc()],this.O,r);else if(a instanceof _.bJ)v="DELETE",E="teamdrives/"+a.getId(),M=a.se(),B=!0;else if(a instanceof _.pD)v="DELETE",M=a.getKey(),E="settings/"+_.z(M,2),_.Xo(M)&&(w.namespace=spc[_.Xo(M)]),M=a.se(),B=!0;else if(a instanceof _.cJ)v="DELETE",E="workspaces/"+a.getId(),M=a.se(),B=!0;else if(a instanceof _.fJ)v="DELETE",E="files/trash",M=a.jd().se(),B=!0,_.R(this.H,3,!1)&&(w.enforceSingleParent=!0);else if(a instanceof
_.hJ)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 _.oJ)E="backups/"+a.getId()+"/items",q=9,w.languageCode=$K(_.fI(this.H));else if(a instanceof _.iJ)v="POST",E="apps",w.appId=a.Ih(),M=a.se(),B=!0;else if(a instanceof _.jJ)v="POST",E="files/"+a.qc()+"/permissions",w.fields=_.mI(this.H)?"kind,type,id,userId,nameIfNotUser,emailAddress,withLink,role,additionalRoles,deleted,view,audienceId,customerId":"kind,type,id,userId,name,emailAddress,withLink,photoLink,role,additionalRoles,deleted,view,audienceId,customerId",w.emailMessage=
_.z(a,5)||"",w.sendNotificationEmail=!_.R(a,6,!1),M={},B=a.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 _.shc)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=_.skc(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 _.nI||a instanceof _.hK||a instanceof _.cA||a instanceof _.aG)if(b=a instanceof _.nI?a.jd():a,_.KJ(b)){q=10;v="POST";E="/v1/items";r["content-type"]="application/json";var P=9==_.XJ(this.H)?"WEB_MOBILE":"WEB_DESKTOP",S={};I={};S.applicationType=
bwc(this.H);S.platformType=P;S.languageCode=$K(_.fI(this.H));S.timeZone=(new _.mt).iaa();S.requestType="LIVE_REQUEST";a instanceof _.nI&&(P=a.getOptions())&&_.R(P,10,!1)&&(S.requestType="BACKGROUND_REQUEST");if(b instanceof _.Df)if(_.lJ(b)){if(Zvc(this.ha)){S.scenarioType="ONE_PICK";if(a=null===(f=null===(e=_.y(b,drc,75))||void 0===e?void 0:_.y(e,erc,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==_.UJ(b)&&(_.se(b,33),Zvc(this.ha)||(S.scenarioType="QUICK_ACCESS_FOR_SHARED_DRIVE"),I.contextFeature=[{type:"DRIVE_TEAM_DRIVE_ROOT_ID",stringValue:_.se(b,33)[0]}]);_.ol(b).length&&(I.itemType=awc(b))}else _.mJ(b)?S.scenarioType="DRIVE_PEOPLE_WITH_ACTIONS":_.nJ(b)&&(S.scenarioType="DRIVE_PRIORITY");else b instanceof _.hK?(E="/v1/userfeedback",I.userFeedback=_.yb(b,_.ktc,1).map(function(xa){var Ba=_.y(xa,_.kL,2),Ja={},hb={};hb.feedbackType=[_.Tfc[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,_.kL,3).map(function(Sb){var ac;return{itemId:null!==(ac=Sb.qc())&&void 0!==ac?ac:void 0}})}return Ja})):b instanceof _.cA?S.scenarioType="DRIVE_WORKSPACES":b instanceof _.aG?(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}]):_.$mc(a);b instanceof _.hK||(I.maxSuggestions=b.wi(),I.clientInfo=S)}else{M=b.se();B=!0;b.getId();E="files";w.q=_.Ejc(b,null===(k=_.JJ(this.H))||void 0===k?void 0:_.R(k,23,!1));P=[];var aa;(aa=_.JJ(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,_.il,5).length&&(ba=_.z(this.H.Tf(),50),ma=!0);w.fields=Anc({fields:aa,anonymous:_.LI(_.fI(this.H)),j8:ba||void 0,lF:_.mI(this.H),oDb:ma});w.appDataFilter="NO_APP_DATA";0<_.yb(b,_.TJ,25).length&&(w.sources=_.wjc(b));0<b.iA().length&&(w.spaces=_.xjc(b));a.ao()&&(w.pageToken=a.ao());(a=a.getOptions())&&_.Ej(a,1,1E3)&&(w.maxResults=_.Ej(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==_.UJ(b)&&(a=_.se(b,33)[0],w.teamDriveId=a,P.push(a));w.corpora=_.tjc[_.UJ(b)];_.Q(b,18)&&(delete w.corpora,w.corpus="DOMAIN");a=_.pl(b);aa=_.yb(b,_.dl,35);ba=_.yb(b,_.dl,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()}));_.LJ(this.H,_.yb(b,_.kl,63),P,this.O,r);boc(w,b.Lc());_.R(this.H,14,!1)&&(w.useLegacyDomainPermissionBehavior=
!1);_.y(b,_.ppa,64)&&(a=frc(_.y(b,_.ppa,64)),a=_.sb(a,4),w.searchSessionData=a)}else if(a instanceof _.pJ){E="apps";switch(a.getType()){case 1:w.fields=iJc;break;case 2:w.fields=jJc;break;case 4:w.fields=kJc;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=$K(_.fI(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 _.thc)E="backups",q=9,w.languageCode=$K(_.fI(this.H));else if(a instanceof _.zI)E="changes",w.includeDeleted=_.R(a,3,!0),w.includeSubscribed=_.R(a,4,!0),w.maxResults=a.JR(),w.startChangeId=_.z(a,1),w.fields=znc({fields:this.eh(),j8:DL(this.H,_.se(a,5)),anonymous:_.LI(_.fI(this.H)),lF:_.mI(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 _.Rfc[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 _.qJ)b=a.jd(),E="files/"+b.getId()+"/permissions",w.fields=_.mI(this.H)?"kind,items(kind,type,id,userId,nameIfNotUser,emailAddress,withLink,role,additionalRoles,deleted,view,audienceId,customerId),nextPageToken":"kind,items(kind,type,id,userId,name,emailAddress,withLink,photoLink,role,additionalRoles,deleted,view,audienceId,customerId),nextPageToken",
a.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),_.LJ(this.H,[],[b.getId()],this.O,r);else if(a instanceof _.rJ)w.fields=_.mI(this.H)?"kind,items(kind,id,mimeType,modifiedDate,pinned,downloadUrl,originalFilename,fileSize,lastModifyingUser(kind,id,permissionId,emailAddressFromAccount,domain))":"kind,items(kind,id,mimeType,modifiedDate,pinned,downloadUrl,originalFilename,fileSize,lastModifyingUser(kind,displayName,picture,permissionId,emailAddress))",
w.maxResults=a.wi(),E="files/"+a.qc()+"/revisions",M=a.se(),B=!0,_.LJ(this.H,[],[a.qc()],this.O,r);else if(a instanceof _.sJ)v="POST",E="files/"+(_.z(a,1)||"")+"/migrateToDrive",_.Q(a,3)&&(w.useDomainAdminAccess=!0),w.fields=_.hhc({fields:this.eh(),anonymous:_.LI(_.fI(this.H)),lF:_.mI(this.H)}),w.fileId=null!==(l=_.z(a,1))&&void 0!==l?l:void 0,_.mj(a,4)&&(w.preFlightValidationToken=_.z(a,4)),I=Ioc(a),r["content-type"]="application/json",A=B=!0,_.LJ(this.H,[],[_.z(a,1)||"",_.z(a,2)||""],this.O,r);
else if(a instanceof _.bG)a.V(),E="teamdrives/"+a.V()[0],w.fields=DL(this.H,a.H()),M=a.se(),B=!0;else if(a instanceof _.Fhc)v="POST",E="admin/files/migrateToTeamDrivePreFlight",_.Q(a.request,3)&&(w.useDomainAdminAccess=!0),I=Loc(a),r["content-type"]="application/json",B=A=!0,_.LJ(this.H,[],_.se(a.request,1),this.O,r);else if(a instanceof _.FJ){M=a.jd();E="teamdrives";w.fields=Kvc(this.H,M.H());w.q=Lvc(M);a.ao()&&(w.pageToken=a.ao());if(M=(M=a.getOptions())&&_.Ej(M,1,1E3))w.maxResults=M;M=a.jd().se();
B=!0}else if(a instanceof _.Ghc)E="teamdrives/"+a.uc(),w.fields="kind,id,recursiveFileCount,recursiveFolderCount",B=A=!0;else if(a instanceof _.zJ)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 _.xI)v="PUT",E="files/"+a.getId(),w.fields=_.hhc({fields:this.eh(),anonymous:_.LI(_.fI(this.H)),lF:_.mI(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=$K(_.fI(this.H)),I=Moc(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()),_.LJ(this.H,_.yb(a,_.kl,38),b,this.O,r);else if(a instanceof _.BJ)v="PUT",E="files/"+a.qc()+"/revisions/"+_.z(a,2),I=Noc(a),r["content-type"]="application/json",M=a.se(),_.LJ(this.H,[],[a.qc()],this.O,r);else if(a instanceof _.CJ)E="teamdrives/"+a.getId(),null!=_.Q(a,15)?(v="POST",E+="/"+(_.Q(a,15)?"hide":"unhide")):(v="PUT",I=Poc(a),r["content-type"]="application/json"),w.fields=DL(this.H),M=a.se(),B=!0;else if(a instanceof _.DJ)v="PUT",E="workspaces/"+
a.getId(),w.fields="kind,id,title,createdDate,modifiedDate,state",I=Qoc(a),r["content-type"]="application/json",M=a.se(),B=!0;else if(a instanceof _.qD){v="PUT";M=_.y(a,_.Wo,1);B=M.getKey();E="settings/"+_.z(B,2);if(B=_.Xo(B))w.namespace=spc[B];I=tpc(M);r["content-type"]="application/json";M=a.se();B=!0}else if(a instanceof _.PH)E="about",w.fields=_.mI(this.H)?"kind,user(kind,id,permissionId,emailAddressFromAccount,domain),quotaBytesTotal,quotaBytesUsed,quotaBytesUsedAggregate,quotaBytesUsedInTrash,quotaBytesByService,quotaType,rootFolderId,domainSharingPolicy,largestChangeId,importFormats,gsuiteSubscriptionInfo(trialMillisRemaining,trialEndTime,status),teamDashboardCapabilities(canAdministerTeam,canManageInvites),graceQuotaInfo,quotaStatus":
"kind,user,quotaBytesTotal,quotaBytesUsed,quotaBytesUsedAggregate,quotaBytesUsedInTrash,quotaBytesByService,quotaType,rootFolderId,domainSharingPolicy,largestChangeId,importFormats,gsuiteSubscriptionInfo(trialMillisRemaining,trialEndTime,status),teamDashboardCapabilities(canAdministerTeam,canManageInvites),graceQuotaInfo,quotaStatus",w.fields=wpc(w.fields,this.H),M=a.se(),B=!0;else if(a instanceof _.EI){q=11;v=a.cA();E=a.getUrl();var ea=_.z(a,5)||"";_.yb(a,_.Ogc,2).forEach(function(xa){r[xa.getKey()]=
xa.Wa()});P=_.m(_.yb(a,_.Ogc,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.vGa=!0)}else if(a instanceof _.vhc)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",_.LJ(this.H,[],[b],this.O,r);else if(a instanceof _.AJ)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,_.UF,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})},_.LJ(this.H,[],[b],this.O,r);else if(a instanceof _.uJ)q=13,E=_.LI(_.fI(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"],_.LI(_.fI(this.H))||(w["core_id_params.enable_private_names"]=!0);else if(a instanceof _.Bhc)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=
$K(_.fI(this.H));else if(a instanceof _.WF)q=12,E="/v1/"+a.getName(),r["content-type"]="application/json",w.$outputDefaults=!0,w.languageCode=$K(_.fI(this.H));else if(a instanceof _.UI)r["content-type"]="application/json",v="POST",E="drives/"+a.uc()+"/changeCategoryReferences",M=a.se(),B=!0,w.fields=DL(this.H,[157],!0),I={},b=_.yb(a,_.Hk,2),b.length&&(I.addCategoryReferences=b.map(function(xa){return{category:xa.Hm()}})),a=_.yb(a,_.Hk,3),a.length&&(I.removeCategoryReferences=a.map(function(xa){return xa.Hm()}));
else if(a instanceof _.cG)_.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 _.uhc){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=_.JJ(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 _.xhc?(q=8,v="POST",E="/v1/exports/"+a.H+":cancel"):a instanceof _.yhc?(q=8,E="/v1/exports/"+a.H):"undefined"!=typeof _.Ahc&&a instanceof _.Ahc?(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 _.oD?(E="settings",M=_.se(a,3),w.namespace=upc(M),M=a.se(),B=!0):a instanceof _.Ihc?(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=fJc(a.request),(M=a.request.Mx())&&1==M.getType()&&(w.orderBy="title"),M=a.request.se(),B=!0):a instanceof _.vJ?(E="changes/getRemainingCount",w.pageToken=_.z(a,
2),_.mj(a,3)&&(w.supportsTeamDrives=!0,w.includeItemsFromAllDrives=!0,w.teamDriveId=a.uc()),M=a.se()):a instanceof _.QI?(r["content-type"]="application/json",v="POST",E="files/"+a.qc()+"/sendAccessRequest",I={},A=!0):_.$mc(a);B&&_.anc(c,w);0!=q||A||M&&_.z(M,1)||_.sK(this.Yf,74438989);return _.bnc(this,q,E,w,r,v,M,I,ea)};hJc.prototype.W=function(a,b){a=this.ka.Zl.H(a);b.expectedParentIds=a?a.wk().join(","):[]};
var iJc=vpc("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"),jJc=
vpc("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"),
kJc=vpc("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 lJc=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.Apa=_.Zh();this.oga=new _.Bkc;var ma=new _.Ukc(this.xK.bind(this),function(){return S("w8KrJc")}),ea=new IGc(b.Zl),xa=new zGc(ma);c=new qGc(b,f,new kGc(d,e,c),h,this.Apa.promise,k,l,c,S);d=new HGc(b,p,q,r,v,d,e,B,k);this.O=new _.Ekc(a,w);w=new hJc(b,a,k,aa);this.Ita=new XIc(k,a,A,B);this.H=FAc(a,new _.jmc(this.O,this.oga,w,this.Ita,E,I,M),I,A,P,b.Zl,this.oga,this.Apa.promise,M||void 0);this.Apa.resolve(ba?ba:new _.Hlc(new JGc,
ea,xa,this.H,ma,c,d,a))};lJc.prototype.xK=function(){return _.Wa(this.H,function(a){return a.xK()})};var hDc=function(a){var b=new Map,c=Date.now();_.Ta(a.H,function(d,e){d=Esc(d);d.length&&b.set(e,d.map(function(f){return f?c-f:null}))});return b};
var mJc=function(a,b){var c=this;this.context=a;this.Dg=b;this.ka=null;this.uS=0;this.ma=this.active=!1;this.H=this.wa=null;this.W={};this.Ia=this.Ga=!1;this.Yf=a.mk();this.ha=_.Zh();this.O=a.Xc;this.La=_.JJ(this.O)||new _.yic;b=_.aL(this.O);this.Ba=new _.tkc(_.Ej(b,2,37500),_.Ej(b,3,6E5));this.ta=a.iR;_.Ta(qwc,function(d){c.W[d]=[]});this.V=a.Df.Tt;OL(a.Pj,["hVFf7","T8oKm","BNEDtc"],function(){c.log("Initializing: loaded from local dump");c.initialize()});OL(a.Pj,["hVFf7","T8oKm","mrK8ic"],function(){c.log("Initializing: loaded from sdk backfill");
c.initialize()});OL(a.Pj,["mrK8ic","BNEDtc"],function(){c.log("Updating: sdk backfill complete");c.FL().then(null,_.ig)})};_.g=mJc.prototype;_.g.initialize=function(){var a=this;this.Ga||(this.Ga=!0,yM(this.context).addCallback(function(b){a.ta.initialize().eg(function(){a.ka=b;a.setActive(!0)},function(c){c&&hsc(a.context.Ce(),"drive.ds.sync.storage.LiveDumpUpdater","Error initializing dump storage",_.OI(c));a.log("Error initializing dump storage");a.$S()})}))};
_.g.isInitialized=function(){return!!this.ka||this.ma};_.g.loa=function(a){this.active&&(this.uS+=a,this.uS>_.Ej(_.aL(this.O),1,500)&&this.update(3))};_.g.setActive=function(a){if(this.isInitialized()&&this.active!==a){var b=this.context;a&&(b.UR().xK()||0<b.Df.UI.Qoa||b.Kj().Me()||b.yk().Me())||((this.active=a)?(this.ha.resolve(),this.H||this.FL().then(null,_.ig)):(this.ha=_.Zh(),_.n.clearTimeout(this.wa)))}};_.g.$S=function(){this.ma=!0};_.g.dZa=function(){return this.H?this.H.promise:_.Wh()};
_.g.FL=function(){var a=this;if(this.H)return this.H.promise;this.H=_.Zh();_.$h(this.H.promise,function(){a.H=null});var b=this.Yf.H(106021)||void 0;this.ha.promise.then(function(){return zAc(a.context.WD)}).then(function(c){var d=!c;return a.ma?d:_.Yh([nJc(a,3,d,void 0,void 0,b),nJc(a,0,d,void 0,!0,b),nJc(a,1,d,void 0,!0,b),nJc(a,5,d,void 0,!0,b),nJc(a,6,d,void 0,!0,b)]).then(function(){return d},function(e){e=new _.Gc("Failed to update dump",void 0,_.OI(e));return _.Xh(e)})},function(){return _.Xh(Error("Kg"))}).then(function(c){a.H.resolve(c);
b&&(c=psc(b),_.x(c,2,!0),b.Dj())},function(c){a.H.reject(c);b&&(c=psc(b),_.x(c,2,!1),b.Dj())});return this.H.promise};_.g.update=function(a,b){var c=this,d=new _.ai,e=this.Yf.H(106021)||void 0;e&&(Vrc(psc(e),_.jK(_.lgc,a)),d.then(function(){var f=psc(e);_.x(f,2,!0);e.Dj()},function(){var f=psc(e);_.x(f,2,!1);e.Dj()}));this.ha.promise.then(function(){return zAc(c.context.WD)}).then(function(f){f=!f;c.ma?d.callback():_.di(nJc(c,a,f,b,void 0,e),d)});return d};
var nJc=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 _.ai;_.ci(h.Fe,function(){_.di(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);_.ci(k,function(){_.ya(a.W[b],function(p){return l===p})});k.zg(function(p){a.ta.O.Gf()?a.$S():p instanceof _.Gc&&(p=p.O||null,p instanceof _.UH&&"InvalidStateError"==p.getName()&&p.message&&-1<p.message.indexOf("The database connection is closing.")&&a.$S());return null});
return k};
mJc.prototype.qw=function(a,b,c,d,e){var f=this,h=new _.ai;this.ha.promise.then(function(){if(3===a)_.di(oJc(f,c||!1,b,e),h);else{switch(a){case 0:var k=rDc(f.context.FQ);break;case 1:k=f.context.L_.ms();break;case 5:k=pJc(f.context.IE);break;case 6:k=iyc(f.context.Df.Lq);break;default:h.Gd("Invalid data type to write to storage.");return}if(k){var l=_.yb(_.aL(f.O),ZK,11)[0].getKey();!l&&b?(f.log("Skipping dump update, encrypted and no key"),h.callback()):wzc(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 oJc=function(a,b,c,d){_.WJ(a.O)||(_.n.clearTimeout(a.wa),a.wa=_.n.setTimeout(function(){_.ZH(a.Ba);a.update(3,!0)},a.Ba.Wa()));if(b&&0===a.uS)return _.fi();a.uS=0;b=_.yb(_.aL(a.O),ZK,11)[0].getKey();if(!b&&c)return a.log("Skipping dump update, encrypted and no key"),_.fi();for(var e=[],f=_.m(qJc(a)),h=f.next();!h.done;h=f.next())h=rJc(a,h.value),h.length&&e.push(wzc(a.ta,c?b:null,h,d));var k=new _.ai;Promise.all(e).then(function(){a.Ia&&a.context.WD.set(xAc,!0);k.callback()},function(l){return void k.Gd(l)});
return k},qJc=function(a){var b,c,d,e=Object.values(fvc).filter(function(f){return 0<f&&!sJc.includes(f)});(null===(b=_.JJ(a.context.Xc))||void 0===b?0:_.R(b,17,!1))?(null===(c=a.V.H)||void 0===c?0:c.OD)||null===(d=a.V.O)||void 0===d||!d.OD?e.push(2):e.push(5):e.push(2);return e},rJc=function(a,b){switch(b){case 1:return[tJc(a)];case 2:return b=a.V.H,a=evc(uJc(a,b),2),b&&cvc(a,b.dO()),[a];case 5:return b=a.V.O,a=evc(uJc(a,b),5),b&&(cvc(a,b.dO()),b=qxc(b),_.rj(a,14,b)),[a];case 3:return vJc(a);case 4:return wJc(a);
default:throw new _.Gc("Unsupported CacheType");}},tJc=function(a){for(var b={},c=[],d=zxc(a.V,!0),e=!0,f=0;f<d.length;f++){var h=d[f],k=h.Dy(),l=xJc(a,Doc(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 vL).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 cvc(evc(bvc($uc(avc(dvc((new wL).mz(a.context.Du()),_.cK(a.Dg)),a.ka.kH(null)),yJc(d)),c),1),!e)},uJc=function(a,b){var c=b?b.Dy():
[];c=xJc(a,_.Ya(Eoc(c)));a.log("Exporting "+c.length+" secondary dump items.");c.length>_.Ej(_.aL(a.O),5,2E4)&&(b&&RL(b,!1),c=[]);c=$uc(new wL,yJc(c));var d=new Voc;(a=a.V.H)&&a.OD&&(a=a.Dy(),_.x(d,3,a.length));a=_.G(c,11,d);b&&cvc(a,b.dO());return a},vJc=function(a){var b=[],c=a.ka;a.V.OW().forEach(function(d){var e=c.kH(d.uc());if(e){var f=xJc(a,Doc(d.Dy()));a.log("Exporting "+f.length+" TD dump items for: "+d.uc());e=cvc(evc(avc($uc(new wL,yJc(f)),e),3),d.dO());d=(new vL).Vg(d.jd());bvc(e,[d]);
b.push(e)}});return b},wJc=function(a){var b={},c=[];a.context.Df.OW().forEach(function(d){1===d.nW()&&null==_.Q(d.jd(),6)&&(Doc(d.Dy()).forEach(function(e){b[e.getId()]=e}),d=Yuc((new vL).Vg(new _.Df),d.jd()),c.push(d))});return[cvc(evc(bvc($uc(new wL,yJc(Object.values(b))),c),4),!1)]},xJc=function(a,b){b=aoc(b);_.Q(a.O,67)&&(b=zJc(b));_.mI(a.O)&&(_.R(a.La,9,!1)?lyc(a.context.Df.Lq,b)&&(_.sK(a.Yf,179490965),a.log("b/179490965 Unexpected people data when writing to disk cache.","warning"),b=jyc(a.context.Df.Lq,
b)):b=jyc(a.context.Df.Lq,b));return b.filter(function(c){return 4!==c.Lv()})},zJc=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Rnc(c)?(c=c.clone(),Bnc(c,Qnc),b.push(c)):b.push(c);return b},yJc=function(a){return a.map(function(b){return b.clone()})};mJc.prototype.log=function(a,b){this.context.Ce().log("drive.ds.sync.storage.LiveDumpUpdater",a,void 0===b?"info":b)};mJc.prototype.EFa=function(){this.Ia=!0};var sJc=[2,5];
var AJc=function(){};_.g=AJc.prototype;_.g.setActive=function(){};_.g.$S=function(){};_.g.update=function(){return _.fi()};_.g.dZa=function(){return _.Wh()};_.g.FL=function(){return _.Wh()};_.g.loa=function(){};_.g.EFa=function(){};
var WK=function(a,b,c,d){_.zi.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 _.ejc;this.Xc=b.clone();(a=_.JJ(this.Xc))&&_.R(a,1,!1)&&_.gI(this.Xc,28);this.Dg=new _.sjc(this.Xc);this.Am=new Uvc(_.cK(this.Dg),this.Xc);BJc(this);this.rY=new _.fn;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.K_=new _.ai;this.Ba=new _.Vjc(_.YJ(this.Xc),_.R(this.Xc.Tf(),
52,!1));this.connectionState=new _.Ojc(_.YJ(this.Xc)?3:1,!_.R(this.Xc.Tf(),52,!1));this.Yf=_.kkc(this.Xc,this.Ba,this.connectionState,this.wa,this.rY.promise,this.Ow);this.Jta=new Fwc(this.Yf);this.MQ=new _.ai;this.log("Enabled experiments: "+this.mk().W.W);CJc(this)};_.K(WK,_.zi);WK.prototype.getEnvironment=function(){return this.Ow};WK.prototype.SS=function(){this.Ce().info("drive.ds.sync.ThinContext","Notified of page stable.");_.n.clearTimeout(this.ob);this.rY.resolve()};
var CJc=function(a){var b=function(){a.Zu().then(null,_.ig)},c=a.Aa;(c=c&&_.Cc(c,_.Jl))?_.si(c,"w",b):_.tgc()||_.si(_.n,"unload",b)};WK.prototype.Zu=function(){this.Yf.O(106005);tsc(this.Yf);var a=this.ma.map(function(b){return b()});_.ra(this.ma);return Promise.all(a).then()};var DJc=function(a,b){a.ma.push(b)};_.g=WK.prototype;_.g.Ce=function(){return this.wa};_.g.mz=function(a,b){"string"===typeof a&&null===this.rootId&&(this.rootId=a,this.K_.callback(a),a.length&&this.U6a(a,b||null))};
_.g.U6a=function(){};_.g.Du=function(){return this.rootId};_.g.mk=function(){return this.Yf};var EJc=function(a){if(!a.ha)throw Error("Lg");return a.ha},FJc=function(a,b){a.ha=b};WK.prototype.QB=function(){return this.Ga||this.connectionState.isConnected()};WK.prototype.Kj=function(){return this.Ba};WK.prototype.yk=function(){return this.connectionState};WK.prototype.QQb=function(a){this.MQ.callback(a)};
var BJc=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(_.aL(a.Xc),9,!1))if(b=_.yb(_.aL(a.Xc),ZK,11),0<b.length){if(!_.z(b[0],1)||!b[0].getKey()&&!_.YJ(a.Xc)&&!_.WJ(a.Xc))throw Error("Ng");}else _.x(_.aL(a.Xc),9,!1),a.log("Disabling IndexedDB support, missing configuration.");
if(!_.R(_.aL(a.Xc),9,!1)&&(_.YJ(a.Xc)||_.WJ(a.Xc)))throw Error("Og");var c=_.fI(a.Xc);b=!(!c||!_.LI(c));c=c&&_.VJ(c)||"";if(!b&&!c)throw Error("Pg");b&&_.uj(a.Xc,44);_.yb(a.Xc,_.Df,44).forEach(function(d){try{Xvc(a.Am,d)}catch(e){if(e instanceof _.Gc&&(d=e.tg)&&3===d.Gv())throw Error("Qg");throw e;}})};WK.prototype.FJ=function(a){this.dispatchEvent(new _.Hc(new _.Gc(void 0,a)))};WK.prototype.log=function(a){this.Ce().info("drive.ds.sync.ThinContext",a)};
var GJc=function(a,b){this.H=a;this.Oe=b};
var HJc=new Set([5,4,1,6,2]),IJc=new Map([[3,1],[7,1],[2,2],[4,2],[5,3],[1,4],[6,5]]),JJc=function(a,b,c){_.zi.call(this);this.ha=a;this.V=b;this.W=c;this.jG=new Map;this.O=new Map;this.status=6;this.H=null};_.K(JJc,_.zi);
JJc.prototype.NQ=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())&&_.Xo(q))&&f.add(q)});[].concat(_.fc(f.values())).forEach(function(q){return void c.push(q)})}if(c.length){var h=HJc.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&&_.Xo(r));v&&r&&r.set(v,KJc(q))});var l=0,p=0;[].concat(_.fc(k.keys())).forEach(function(q){var r=k.get(q),v=e.jG.get(q);v?h&&(r.forEach(function(w){var A=
w.getKey();(A=v.get(A&&_.z(A,2)))&&_.Dj(w,A)||l++}),[].concat(_.fc(v.values())).forEach(function(w){w=w.getKey();r.has(_.z(w,2))||p++}),e.jG.set(q,r),e.O.set(q,b)):(l+=r.size,e.jG.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,PL(this.V,"px2C2c");PL(this.V,"rkYxSd")}(l||p)&&LJc(this,!h)}};JJc.prototype.wH=function(){return 0<this.jG.size};
var LJc=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 _.oi("WPi0i"))};JJc.prototype.put=function(a){var b=a.getKey(),c=b&&_.Xo(b);b=b&&_.z(b,2);if(c&&b&&(c=this.jG.get(c))){var d=c.get(b);a=KJc(a);d&&_.Dj(a,d)||(c.set(b,a),LJc(this))}};JJc.prototype.remove=function(a){var b=a&&_.Xo(a);a=a&&_.z(a,2);b&&a&&(b=this.jG.get(b))&&b.delete(a)&&LJc(this)};
var pJc=function(a,b){var c=[];(b||[].concat(_.fc(a.jG.keys()))).forEach(function(e){(e=a.jG.get(e))&&[].concat(_.fc(e.values())).forEach(function(f){return void c.push(f.clone())})});b=b?b.filter(function(e){return a.jG.has(e)}):[].concat(_.fc(a.jG.keys()));var d=new Ysc;_.tj(d,1,c);_.rj(d,2,b);return d};
JJc.prototype.pH=function(a){var b=this,c=pJc(this,a),d=new _.aA;d.Dc(this.status);_.ckb(d,_.yb(c,_.Wo,1));_.G(d,4,c);var e=0;a.forEach(function(f){f=b.O.get(f);IJc.has(f)&&Infinity>IJc.get(f)&&(e=f)});return new GJc(d,e)};var KJc=function(a){a=a.clone();a.Ng()||a.Hb("");return a};
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var MJc=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},OJc=function(a,b){return NJc(a[b])+(NJc(a[b+1])<<8)+(NJc(a[b+2])<<16)+(NJc(a[b+3])<<24)},NJc=function(a){return 127<a?a-256:a};
var YK=function(a,b,c,d,e,f){WK.call(this,a,b,c,d);var h=this;this.Ua=_.Zh();this.Et=new VL;this.W=null;this.O=_.Zh();this.Ia=new _.ai;this.e7=null;this.qga=new Byc;this.V=null;this.$a=_.Zh();this.ta=new _.ai;this.uG=new gzc;this.Bx=new Lyc;this.Uha=new Iyc;this.Uaa=new _.fn;this.La=!1;this.pga=new _.fn;this.H={};this.ka=null;this.Jb=new _.of;this.Ja(this.Jb);this.Pj=e?e:new kxc(this.Ce());this.mk().W.O=this.Pj;this.dM=_.R(_.aL(b),9,!1)&&xpc()?PJc(this,b):null;this.Uv=new Ovc($K(_.fI(b)));this.WD=
QJc(this,this.dM);this.iR=RJc(this,this.dM,b);this.Df=new BM(this,this.Dg);this.Ys=SJc(this);(a=(a=_.y(this.Xc,_.Jk,12))&&a.getId())&&this.mz(a,6);this.FQ=new qDc(this.Xc,this.Df.Lq,this.Pj,this.Ce(),this.Ys);this.L_=new wDc(this.Ce(),this.Pj,this.Ys);this.IE=new JJc(this.Ce(),this.Pj,this.Ys);this.VI=new xwc(this.Km(),this.Ce(),function(k){return void h.FJ(k)});this.yz=_.R(this.Xc.Tf(),52,!1)?new _.tK(this.yk(),this.Km(),this.Ce(),this.mk()):null;OL(this.Pj,["mrK8ic"],function(){h.$a.promise.then(function(){dEc(h,
h.V)})});this.IOa=new czc(this.Xc);this.jB=new _.Mkc(this.Xc,this.Df.Zl);this.Kta=new gGc(this);this.d7=new Fyc(this.O.promise,this.Km());this.kb=new Jyc(this.Km(),this.d7);this.rga=new Zyc(this.O.promise,this.Km(),this.Ce(),this.Xc);this.Qa=new lJc(this.Xc,this.Df,this.FJ.bind(this),this.d7,this.kb,this.Ys,this.qga,this.Dg,this.Du.bind(this),this.Kta,this.L_,this.IE,this.rga,this.uG,this.Ce(),this.IOa,this.jB,this.VI,this.yz,this.Kj(),this.Crb.bind(this),this.mk(),f);this.Ua.resolve(this.Qa);this.ALa=
new RFc(this);OL(this.Pj,["BNEDtc"],function(){return h.pga.resolve()});DJc(this,function(){h.Ys.$S();return _.Wh()})};_.K(YK,WK);
var PJc=function(a,b){var c=_.VJ(_.fI(b)),d=_.XJ(b),e=function(){},f=_.yb(_.aL(b),ZK,11);f=f[0]&&_.z(f[0],1);var h=new Szc(c,d,_.Ej(_.aL(b),10,0)||0,f||"",_.cK(a.Dg));_.YJ(b)?c=mAc(c,d).then(function(l){return l?l:h}):_.WJ(b)&&0<_.Ej(_.aL(b),8,432E6)?(b=TJc(a,c),c=mAc(c,d,b).then(function(l){return l&&(e=function(p){return p.Jl(h).then(null,_.ig)},!l.ha)?l:h})):c=_.Wh(h);var k=new eM(c,a.Ce(),a.mk());k.initialize().then(function(){return e(k)},function(){return null});return k},TJc=function(a,b){var c=
_.Ej(_.aL(a.Xc),8,432E6);if(!_.YJ(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+=OJc(b,e),h.b+=OJc(b,e+4),h.c+=OJc(b,e+8),MJc(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+=OJc(b,e+4);h.a+=OJc(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+=OJc(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=MJc(h);return d.call(a,b)%c}};YK.prototype.jz=function(a){var b=this;return this.dM?this.dM.Gf()?_.Xh(Error("Rg`"+Zzc(this.dM))):zAc(this.WD).then(function(c){var d=b.dM,e=[];e.push(b.Ys.dZa());e.push(a?d.Jl():iAc(d));if(a===c)return _.Yh(e).then(function(){return!1});!1===a&&(e.push(Yzc(d)),(c=b.Du())&&e.push(b.WD.mz(c)));return _.Yh(e).then(function(){return b.WD.jz(a)},function(){return!1})}):_.Xh(Error("Sg"))};
var RJc=function(a,b,c){var d=null;b&&(d=new qzc(b,c,function(e){a.FJ(e)},a.mk()),d.initialize());return d},QJc=function(a,b){var c=new yAc(b||void 0);c.Du().then(function(d){d&&a.mz(d,5)});b&&(zAc(c).then(function(d){a.Kj().jz(d)}),_.Yh([b.initialize(),a.rY.promise]).then(function(){UJc(a,c)},function(){}));return c},UJc=function(a,b){CAc(b).then(function(c){(!c||c<Date.now()-864E5)&&pAc(_.VJ(_.fI(a.Xc)),_.XJ(a.Xc),a.Ce()).then(function(d){d&&(d=Date.now(),b.set(wAc,d))},function(){})})},SJc=function(a){if(!a.iR)return new AJc;
var b=new mJc(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(_.WB))),function(){return void b.setActive(a.yk().isConnected())});return b};YK.prototype.aZ=function(a){this.e7=a;this.Ia.callback(a)};var yM=function(a){return a.Ia.nn()},gDc=function(a){return a.dM?a.dM.Gf():null},VJc=function(a,b){a.Pj.H("NSockf")?PL(a.Pj,b):OL(a.Pj,["NSockf"],function(){PL(a.Pj,b)})};
YK.prototype.U6a=function(a,b){this.log("Setting Root ID: "+a);a&&(this.Et.mz(a),this.Am.mz(a),6!==b&&1!==b||this.WD.mz(a),VJc(this,"jroI5d"))};YK.prototype.eYa=function(){return this.ta.nn()};var dEc=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),VJc(a,"T8oKm")))},BDc=function(a){if(!a.W)throw Error("Tg");return a.W};_.g=YK.prototype;_.g.UR=function(){return this.Qa};_.g.Km=function(){return this.Ua.promise.then(function(a){return a.Apa.promise})};
_.g.DFa=function(){this.La||(this.La=!0,this.Uaa.resolve(),PL(this.Pj,"aU7Ts"))};_.g.QB=function(){throw Error("Ug");};_.g.Crb=function(a){this.dispatchEvent(a)};var WJc=function(a,b){xFc(a.Df,b)},XJc=function(a,b,c){a.H[b]=c},$Cc=function(a){a.ka||(a.ka=new Qyc(a.O.promise,a.Km(),a.Ce()));return a.ka};
var FM=function(a,b,c){_.zi.call(this);var d=this;this.Ga=a;this.logName=b;this.wa=_.Zh();this.Ba=this.channel=this.clientId=null;c.then(function(e){return YJc(d,e)})};_.K(FM,_.zi);var YJc=function(a,b){a.clientId=b.clientId;a.channel=b.channel;a.Ba=b.H;EL(a.channel,a.Ga,function(c){c=mwc(c);a.Baa(c.O,!(!c.data||!c.H),c.data,c.error)});a.log("Service initialized: "+a.Ga);a.wa.resolve()};FM.prototype.Baa=function(){};
FM.prototype.send=function(a,b,c,d){var e=this,f=_.Zh();this.wa.promise.then(function(){var h=e.channel;FL(h,e.Ga,iwc(new hwc(e.clientId,a,b,d),h.W),function(k){return void ZJc(k,a,f,c||function(){})})});return f.promise};var ZJc=function(a,b,c,d){a=mwc(a);a.data?c.resolve(d(a.data,a.H)):(a.error?d=a.error:(d=new _.Fc,_.tI(d,2),_.uI(d,6),_.x(d,21,"Worker["+b+"]: An invalid response was received")),c.reject(new _.Gc(void 0,d)))};FM.prototype.log=function(a){this.Ba&&this.Ba.info(this.logName,a)};
var $Jc=function(a,b,c,d){this.clientId=a;this.channel=b;this.H=c;this.O=d};
var GM=function(a,b){_.N.call(this);this.V=a;this.wa=b;this.La=this.AV()};_.K(GM,_.N);GM.prototype.registerService=function(a){var b=this;EL(a,this.V,function(c){return b.hx(c)})};
GM.prototype.hx=function(a){var b=this;a=jwc(a);var c=a.H,d=this.La[a.method],e=null;if(d)try{var f=d(a);if(f instanceof kwc)return lwc(f,c);if(f.then)return f.then(function(h){return lwc(h,c)},function(h){h=_.vI(h);return lwc(b.Zc(void 0,h),c)})}catch(h){e=_.OI(h)}f=new _.Fc;_.tI(f,2);_.uI(f,3);_.Fo(f,this.V+":"+a.method+": "+(e?e.message:"unsupported method"));e&&e.stack&&_.x(f,20,e.stack);return lwc(this.Zc(void 0,f),c)};
GM.prototype.Zc=function(a,b,c){if(a&&!b)return new kwc(a,void 0,c);a=_.vI(b);return new kwc(void 0,a,c)};GM.prototype.update=function(a,b,c,d){(a=this.wa.channels[a]||null)&&FL(a,this.V,lwc(this.Zc(c,d,b),a.W))};
var aKc=function(){this.channels={};this.H=this.O=this.V=0},bKc=function(a,b){var c=a.V++;a.channels[c]=b;a.O++;a.H=Math.max(a.H,_.Xa(a.channels));return c},cKc=function(a,b){var c=a.channels[b];return c?(delete a.channels[b],c):null};
var dKc=function(a,b){GM.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.rga;this.W=$Cc(this.context);this.ka=this.context.d7};_.K(dKc,GM);
dKc.prototype.AV=function(){var a=this,b={};return b["4.1"]=function(c){var d=c.clientId+":"+c.requestId;c=UK(c.args[0],!!c.H,_.Df);return a.Zh(d,c)},b["4.9"]=function(c){var d=c.clientId+":"+c.requestId;c=UK(c.args[0],!!c.H,_.RH);return a.Zh(d,c)},b["4.2"]=function(c){var d=c.clientId+":"+c.requestId;c=UK(c.args[0],!!c.H,_.XF);return a.Zh(d,c)},b["4.10"]=function(c){var d=c.clientId+":"+c.requestId;c=UK(c.args[0],!!c.H,_.bG);return a.Zh(d,c)},b["4.3"]=function(c){var d=c.clientId+":"+c.requestId;
c=UK(c.args[0],!!c.H,_.Df);return a.fk(d,c)},b["4.11"]=function(c){var d=c.clientId+":"+c.requestId;c=UK(c.args[0],!!c.H,_.RH);return a.fk(d,c)},b["4.4"]=function(c){var d=c.clientId+":"+c.requestId;c=UK(c.args[0],!!c.H,_.XF);return a.fk(d,c)},b["4.12"]=function(c){var d=c.clientId+":"+c.requestId;c=UK(c.args[0],!!c.H,_.bG);return a.fk(d,c)},b["4.5"]=function(c){var d=c.clientId+":"+c.requestId,e=UK(c.args[0],!!c.H,_.XF);c=UK(c.args[1],!!c.H,_.XF);return a.LZ(d,e,c)},b["4.6"]=function(c){var d=c.clientId+
":"+c.requestId,e=UK(c.args[0],!!c.H,_.bG);c=UK(c.args[1],!!c.H,_.bG);return a.LZ(d,e,c)},b["4.7"]=function(c){return a.iG(c)},b["4.8"]=function(c){return a.iG(c)},b["4.13"]=function(c){var d=c.clientId+":"+c.requestId;c=UK(c.args[0],!!c.H,_.eA);return a.Zh(d,c)},b["4.14"]=function(c){var d=c.clientId+":"+c.requestId;c=UK(c.args[0],!!c.H,_.cG);return a.Zh(d,c)},b["4.15"]=function(c){var d=c.clientId+":"+c.requestId;c=UK(c.args[0],!!c.H,_.eA);return a.fk(d,c)},b["4.16"]=function(c){var d=c.clientId+
":"+c.requestId;c=UK(c.args[0],!!c.H,_.cG);return a.fk(d,c)},b["4.18"]=function(c){var d=c.clientId+":"+c.requestId;c=UK(c.args[0],!!c.H,_.jG);return a.Zh(d,c)},b["4.19"]=function(c){var d=c.clientId+":"+c.requestId;c=UK(c.args[0],!!c.H,_.jG);return a.fk(d,c)},b["4.22"]=function(c){var d=c.clientId+":"+c.requestId;c=UK(c.args[0],!!c.H,_.cA);return a.Zh(d,c)},b["4.23"]=function(c){var d=c.clientId+":"+c.requestId;c=UK(c.args[0],!!c.H,_.cA);return a.fk(d,c)},b["4.21"]=function(c){c=a.H[c.clientId+":"+
c.requestId].query;if(c instanceof _.cA){var d=a.W;zyc(d,d.getKey(c)).refresh()}return a.Zc([])},b};dKc.prototype.Zh=function(a,b){var c=this,d=new _.fn;this.H[a]={query:b,mWb:d.promise};b instanceof _.eA?d.resolve(this.O.Zh(a,b)):b instanceof _.cG?d.resolve(xyc(this.O,a,b)):b instanceof _.cA?d.resolve(this.W.Zh(a,b)):b instanceof _.jG?d.resolve(this.ka.Zh(a,b)):d.resolve(this.ha.Zh(a,b));return d.promise.then(function(){return c.Zc([])})};dKc.prototype.fk=function(a,b){eKc(this,a,b);return this.Zc([])};
var eKc=function(a,b,c){delete a.H[b];c instanceof _.eA?a.O.fk(b,c):c instanceof _.cG?yyc(a.O,b,c):c instanceof _.cA?a.W.fk(b,c):c instanceof _.jG?a.ka.fk(b,c):a.ha.fk(b,c)};_.g=dKc.prototype;_.g.LZ=function(a,b,c){eKc(this,a,b);return this.Zh(a,c)};_.g.iG=function(a){var b=a.clientId+":"+a.requestId,c=this.H[b].query;c.Gi(a.args[0]);c instanceof _.eA?this.O.Zh(b,c):c instanceof _.cG?xyc(this.O,b,c):c instanceof _.cA?this.W.Zh(b,c):c instanceof _.jG?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=_.qh(a[0]),f=a[1];d.mWb.then(function(h){b instanceof _.rK||b instanceof _.oK?c.update(e,f,[b.response,b.pageToken,b.H,b.Oe,h]):(d.query instanceof _.Df?Dnc(d.query.H(),b.Bd().filter(function(k){return!AL(k)})):d.query instanceof _.XF&&Dnc(d.query.H(),Object.values(b.ot()).filter(function(k){return k&&!AL(k)})),c.update(e,f,[b,h]))})}};
_.g.CY=function(a,b){if(this.H[a]){var c=a.split(":");a=_.qh(c[0]);c=c[1];var d=b.error;d.nga(b.retryCount);this.update(a,c,void 0,d)}};_.g.IA=function(a){this.H[a]&&(a=a.split(":"),this.update(_.qh(a[0]),a[1],["cacheRefresh"]))};_.g.Y9=function(){};_.g.Bla=function(a){if(!this.H[a])throw Error("vg`"+a);return this.H[a].query};var fKc=function(a,b){_.Ta(a.H,function(c,d){_.qh(d.split(":")[0])===b&&eKc(a,d,c.query)})};
var gKc=function(a,b,c){FM.call(this,"LRM","drive.ds.sync.cache.LiveRequestManagerProxy",a);this.context=b;this.H=c;this.O={}};_.K(gKc,FM);gKc.prototype.vya=function(a){var b=this;a=new MCc(this.context.Am,this.context.MQ,this.context.Ce(),this.context.Xc,function(c,d){return b.iG(c,d)},a,this.context.mk());hKc(this,a);return a};gKc.prototype.yya=function(a){var b=this;a=new QCc(this.context.Am,this.context.MQ,this.context.Ce(),function(c,d){return b.iG(c,d)},a,this.context.Xc);hKc(this,a);return a};
var hKc=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=gKc.prototype;_.g.sya=function(a){var b=this,c=new Zsc(this.context.Xc,this.context.Am,this.context.Ce(),this.context.K_,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.Bya=function(a){var b=this,c=new UCc(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.Cya=function(a){var b=this,c=new VCc(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.Fya=function(a){var b=this,c=new YCc(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.Gya=function(a){var b=this,c=new PCc(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.zya=function(a){var b=this,c=new TCc(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.oya=function(a){var b=this,c=new KCc(this.context.Kj(),this.context.yk(),this.context.Ce(),function(d,e){return b.iG(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){IL(this.H,a.Oi(),4);delete this.O[a.Oi()]};_.g.LZ=function(a,b,c){if(b instanceof _.XF&&c instanceof _.XF)this.send("4.5",[b,c],void 0,a);else if(b instanceof _.bG&&c instanceof _.bG)this.send("4.6",[b,c],void 0,a);else throw Error("Vg");};
_.g.iG=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 _.RH)d="4.8";else if(c.jd()instanceof _.jG)d="4.20";else if(c.jd()instanceof _.eA)d="4.17";else throw Error("Wg");c.jd().Gi(b);this.send(d,[b],void 0,a)};
_.g.Baa=function(a,b,c,d){if(a=this.O[a]){var e,f=0;if(d)a.LB(new YL(d,d.R6())),IL(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 _.RH)h instanceof _.Df&&_.mJ(h)?e=UK(d,b,_.lK):e=UK(d,b,_.eI);else if(h instanceof _.XF||h instanceof _.bG)b?(e=new _.kK,Rsc(e,function(k){return new _.Jk(JSON.parse(k))},d)):e=d;else if(h instanceof _.jG)e=new _.oK(UK(d,b,LL),c[f++],c[f++],c[f++]);else if(h instanceof _.eA)e=new _.rK(UK(d,
b,NL),c[f++],c[f++],c[f++]);else if(h instanceof _.cG)e=UK(d,b,_.mK);else if(h instanceof _.cA)e=UK(d,b,yL);else throw Error("Xg");}e&&(b=f,c&&"boolean"===typeof c[b]&&Gwc(this.H,a.Oi(),!!c[b]),Jwc(this.H,a.Oi(),e),a.update(e))}};
var HM=function(){_.zi.apply(this,arguments);this.commands=new _.Sk;this.ha=this.active=this.vp=!1};_.K(HM,_.zi);HM.prototype.initialize=function(){this.vp||(this.vp=!0,this.V(),this.setActive(!0))};HM.prototype.V=function(){};HM.prototype.setActive=function(a){this.active=a;iKc(this)};var iKc=function(a){if(a.active&&!a.ha){var b=_.Tk(a.commands);if(b)if(a.wa()){do a.ka(b);while(b=_.Tk(a.commands))}else{a.ha=!0;var c=function(){a.ha=!1;iKc(a)};a.Ba(b).then(c,c)}}};HM.prototype.ka=function(){};
HM.prototype.Ba=function(){};HM.prototype.wa=function(){return!0};HM.prototype.enqueue=function(a){try{var b=new _.ai;this.commands.enqueue(new jKc(a,b));iKc(this);return b}catch(c){return _.hi(_.OI(c))}};var jKc=function(a,b){this.H=a;this.Fe=b};jKc.prototype.getCommand=function(){return this.H};
var mKc=function(a){HM.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 kKc(b)});this.O=this.context.Df.Lq;_.mI(this.context.Xc)&&this.Oc.listen(this.O,"vb",this.W);var c=a.Pj;OL(c,["toquGd"],function(){return b.initialize()});var d=["NSockf"];1!==_.pj(a.Xc.Tf(),17,1)&&(d.push("iuEtc"),OL(c,["mrK8ic"],function(){PL(c,"iuEtc")}));OL(c,d,function(){lKc(b)})};_.K(mKc,HM);mKc.prototype.V=function(){nKc(this)};
var lKc=function(a){if(1===a.context.FQ.Ff().Cb())Promise.resolve();else{var b=_.Rf(_.Sf(new _.Qf,!0),301);b=_.QH(new _.PH,b);a.refresh(b).then(null,function(c){c=_.vI(c);_.x(c,21,"Initial account request failed.");a.context.FJ(c)})}},kKc=function(a){var b=_.Rf(new _.Qf,304);b=_.QH(new _.PH,b);a.refresh(b).then(null,function(){})};
mKc.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===_.xk(f))d=_.wI(_.fI(c.context.Xc)),d=Error("Yg`"+d+"`"+MK(f)),_.Lb(d),_.sK(c.context.mk(),73301807),d=Promise.reject(d);else{f=c.context.FQ;var h=0===f.We()?1:6;_.mI(c.context.Xc)&&cyc(c.O,e);h=sDc(f,e,h);(e=e.getMetadata())&&c.context.mz(_.z(e,2),1);(d=_.z(d,4))&&dEc(c.context,d,!0);h&&c.dispatchEvent(new _.oi("WPi0i"));d=Promise.resolve(new _.qK(f.Ff(),
f.We(),!1))}return d}).then(function(d){return d},function(d){d=_.vI(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};
mKc.prototype.ka=function(a){var b=a.getCommand();if(b.H){var c={};b.cE&&(c.cE=b.cE);this.refresh(b.request,c).then(function(e){return a.Fe.callback(e)},function(e){a.Fe.Gd(e)})}else if(b=this.context.FQ,c=b.Ff(),_.mI(this.context.Xc)){c=c.Ff();var d=c.getUser();d=Pxc(this.O.H,MK(d));cyc(this.O,c);sDc(b,c,b.We())&&this.dispatchEvent(new _.oi("WPi0i"));a.Fe.callback(new _.qK(b.Ff(),b.We(),d))}else c.Cb(),b=new _.qK(c,b.We(),!0),a.Fe.callback(b)};
var nKc=function(a){var b=a.context.Xc.Tf();_.n.setTimeout(function(){var c=_.Rf(new _.Qf,306);c=_.QH(new _.PH,c);a.refresh(c).then(function(){nKc(a)},function(){nKc(a)})},Math.ceil(_.Ej(b,7,9E5)*Math.random())+_.Ej(b,3,72E5))};mKc.prototype.W=function(a){var b=this.context.FQ,c=b.Ff().Ff();c&&a.getPeople().find(function(d){return _.z(d,1)===MK(c.getUser())})&&(cyc(this.O,c),sDc(b,c,b.We())&&this.dispatchEvent(new _.oi("WPi0i")))};var oKc=function(a,b,c){this.request=a;this.H=!!b;this.cE=c||null};
var qKc=function(a){HM.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.L_,"Hb",_.Ob(this.dispatchEvent,new _.oi("Hb",this)));pKc(this)};_.K(qKc,HM);
var pKc=function(a){var b=a.context.Pj;OL(b,["nVUlO"],function(){a.ta=!0;a.setActive(!0)});if(!_.YJ(a.context.Xc)){var c=_.pj(a.context.Xc.Tf(),18,1);OL(b,["NSockf"],function(){1===c?rKc(a):a.setActive(!0)});2===c&&OL(b,["mrK8ic"],function(){a.W||rKc(a)})}},rKc=function(a){var b=new _.Qf;_.Sf(b,!0);_.Rf(b,301);var c=new _.pJ;_.isc(c,b);_.x(c,1,1);a.refresh(c).then(null,function(){return null})};
qKc.prototype.refresh=function(a,b){var c=this;_.n.clearTimeout(this.ma);this.ma=0;var d=_.Zh();this.O=d.promise;this.O.then(function(){sKc(c)},function(){sKc(c)});var e=this.H;this.H=a.getType()||e;var f=!this.W;this.W=!0;var h=new _.pJ;_.x(h,1,this.H);_.isc(h,a.se());this.context.Km().then(function(k){return k.Pe(h,b)}).then(function(k){c.error=null;var l=c.context.L_;l.NQ(k,l.wH()?6:1);d.resolve()},function(k){c.H=e;k=_.wd(k);var l=k.tg;_.x(l,5,2);f?(_.tI(l,1),k.message="Initial app settings refresh failed.",
_.x(k.tg,21,"Initial app settings refresh failed."),c.context.FJ(l),c.setActive(!0)):(_.tI(l,2),k.message="Error occurred while loading the latest set of apps.",_.x(k.tg,21,"Error occurred while loading the latest set of apps."));c.error=k;d.reject(k)});return this.O};qKc.prototype.wa=function(){return!1};
qKc.prototype.Ba=function(a){var b=this,c=a.getCommand(),d=c.request,e=c.qka,f=c.cE?{cE:c.cE}:void 0;if(!tKc(d))return this.context.Km().then(function(l){return l.Pe(d,f)}).then(function(l){a.Fe.callback(new _.nK(l,1,!1))},function(l){a.Fe.Gd(_.OI(l))}),_.Wh(void 0);c=_.Wh();var h=!1;this.O?uKc(this,d.getType())?e=this.O:c=e=new _.Vh(function(l,p){b.O.then(function(){b.refresh(d,f).then(function(){return l()},p)})}):!e&&this.ta&&uKc(this,d.getType())&&!this.error?(h=!0,e=_.Wh()):e=this.refresh(d,
f);var k=a.Fe;e.then(function(){var l=b.context.L_;k.callback(new _.nK(l.ms(),l.We(),h))},function(l){k.Gd(l)});return c.then()};
var tKc=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},uKc=function(a,b){return a.H===b||4===a.H||2===a.H&&1===b},sKc=function(a){a.O=null;var b=a.context.Xc.Tf(),c=new _.Qf;_.Rf(c,306);var d=new _.pJ;_.x(d,1,1);_.isc(d,c);a.ma=_.n.setTimeout(function(){return void a.refresh(d)},Math.ceil(_.Ej(b,7,9E5)*Math.random())+_.Ej(b,4,72E5))},vKc=function(a,b,c){this.V=a;this.H=!!b;this.O=c||null};
_.Uf.Object.defineProperties(vKc.prototype,{request:{configurable:!0,enumerable:!0,get:function(){return this.V}},qka:{configurable:!0,enumerable:!0,get:function(){return this.H}},cE:{configurable:!0,enumerable:!0,get:function(){return this.O}}});
var xKc=function(a){HM.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.IE,"WPi0i",function(){return b.dispatchEvent(new _.oi("WPi0i"))});this.H=_.Zh();this.O=_.se(this.context.Xc.Tf(),30);wKc(this)};_.K(xKc,HM);
var wKc=function(a){var b=a.context.Pj;OL(b,["rkYxSd"],function(){return a.initialize()});OL(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=_.pj(a.context.Xc.Tf(),19,1);1!==d&&(c.push("OZvrNc"),2===d&&OL(b,["mrK8ic"],function(){PL(b,"OZvrNc")}));!_.R(a.context.Xc,11,!1)&&_.R(a.context.Xc,24,!1)&&(c.push("DEJoH"),_.n.setTimeout(function(){0<_.yb(pJc(a.context.IE),_.Wo,1).length||(b.H("NSockf")?
PL(b,"DEJoH"):OL(b,["NSockf"],function(){PL(b,"DEJoH")}))},12E3));OL(b,c,function(){if(!b.H("px2C2c")){var e=new _.Qf;_.Sf(e,!0);_.Rf(e,301);var f=new _.oD;_.G(f,1,e);Soc(f,yKc(a));a.query(f).then(null,function(){a.initialize()})}})};xKc.prototype.V=function(){var a="User prefs detected: "+_.yb(pJc(this.context.IE),_.Wo,1).length;this.context.Ce().info("drive.ds.sync.userprefs.UserPrefsManager",a);zKc(this)};
xKc.prototype.query=function(a,b){var c=this,d=b?{cE: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.IE;f.NQ(_.yb(e,_.Wo,3),f.wH()?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;})};
xKc.prototype.ka=function(a){var b=this,c=a.getCommand(),d=a.Fe,e=new Set([].concat(_.fc(this.context.IE.jG.keys()))),f=_.se(c.request,3);f.find(function(h){return!e.has(h)})&&(c.qka=!0);this.error?d.Gd(this.error):c.qka?(Soc(c.request,yKc(this,f)),(this.H?this.H.promise:this.query(c.request,c.cE||void 0)).then(function(){b.getData(d,f,!1)},function(){b.getData(d,f,!1)})):this.getData(d,f,!0)};
var yKc=function(a,b){b=void 0===b?[]:b;a=new Set([].concat(_.fc(a.O),_.fc([].concat(_.fc(a.context.IE.jG.keys()))),_.fc(b)));return[].concat(_.fc(a.values()))};xKc.prototype.getData=function(a,b,c){b=this.context.IE.pH(b);a.callback(new _.pK(b.H,b.Oe,c))};
var zKc=function(a){var b=a.context.Xc.Tf();_.n.setTimeout(function(){var c=new _.oD,d=new _.Qf;_.Rf(d,306);_.G(c,1,d);Soc(c,yKc(a));a.query(c).then(null,_.ig).then(function(){zKc(a)},function(){zKc(a)})},Math.ceil(_.Ej(b,7,9E5)*Math.random())+_.Ej(b,5,72E5))},AKc=function(a,b,c){this.request=a;this.qka=!!b;this.cE=c||null};
var BKc=function(a,b,c,d){GM.call(this,"IS",b);this.context=a;this.Oc=new _.of(this);this.Ba=_.Zh();this.O=null;this.ha=!1;this.W=null;this.Ga=new fDc(a);Roc(this.Ga);this.Ja(this.Oc);this.ka=new mKc(a);this.Ja(this.ka);this.Oc.listen(this.ka,"WPi0i",function(){return c(new GCc(1))});this.ma=new qKc(a);this.Ja(this.ma);this.Oc.listen(this.ma,"Hb",function(){return c(new GCc(2))});this.ta=new xKc(a);this.Ja(this.ta);this.Oc.listen(this.ta,"WPi0i",function(){return c(new GCc(4))});this.Ia=d;this.H=
this.context.Km()};_.K(BKc,GM);_.g=BKc.prototype;
_.g.AV=function(){var a={};return a["3.43"]=this.t0.bind(this),a["3.42"]=this.G8.bind(this),a["3.1"]=this.ON.bind(this),a["3.2"]=this.pH.bind(this),a["3.3"]=this.ad.bind(this),a["3.35"]=this.sO.bind(this),a["3.4"]=this.WC.bind(this),a["3.5"]=this.ms.bind(this),a["3.6"]=this.PS.bind(this),a["3.8"]=this.Jl.bind(this),a["3.36"]=this.jz.bind(this),a["3.9"]=this.MF.bind(this),a["3.10"]=this.Ar.bind(this),a["3.11"]=this.Yaa.bind(this),a["3.12"]=this.m9.bind(this),a["3.13"]=this.ST.bind(this),a["3.14"]=
this.Waa.bind(this),a["3.15"]=this.o9.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.TQ.bind(this),a["3.20"]=this.gGb.bind(this),a["3.25"]=this.fGb.bind(this),a["3.22"]=this.n9.bind(this),a["3.28"]=this.sync.bind(this),a["3.30"]=this.Ooa.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.hcb.bind(this),a["3.41"]=
this.SS.bind(this),a["3.44"]=this.T0.bind(this),a["3.45"]=this.Fo.bind(this),a["3.46"]=this.H8.bind(this),a};_.g.ON=function(a){var b=this,c=UK(a.args[0],!!a.H,_.PH);a=new oKc(c,a.args[1],this.context.H[a.clientId]);PL(this.context.Pj,"iuEtc");return this.ka.enqueue(a).then(function(d){return b.Zc([d.response,d.Oe,d.J0])},function(d){return b.Zc(void 0,d)})};
_.g.pH=function(a){var b=this,c=UK(a.args[0],!!a.H,_.oD);a=new AKc(c,a.args[1],this.context.H[a.clientId]);PL(this.context.Pj,"OZvrNc");return this.ta.enqueue(a).then(function(d){return b.Zc([d.response,d.Oe,d.J0])},function(d){return b.Zc(void 0,d)})};
_.g.ad=function(a){var b=this,c=UK(a.args[0],!!a.H,noc),d=_.Hj(c,_.QI,16,RK)||_.Hj(c,_.RI,1,RK)||_.Hj(c,_.SI,2,RK)||_.Hj(c,_.VI,3,RK)||_.Hj(c,_.uK,4,RK)||_.Hj(c,_.TI,5,RK)||_.Hj(c,_.ZI,6,RK)||_.Hj(c,_.aJ,7,RK)||_.Hj(c,_.bJ,8,RK)||_.Hj(c,_.eJ,9,RK)||_.Hj(c,_.sJ,18,RK)||_.Hj(c,_.wJ,10,RK)||_.Hj(c,_.xJ,11,RK)||_.Hj(c,_.yJ,12,RK)||_.Hj(c,_.xI,13,RK)||_.Hj(c,_.BJ,14,RK)||_.Hj(c,_.CJ,15,RK)||_.Hj(c,SK,17,RK),e=IM(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=UK(a.args[0],!!a.H,woc),d=_.Hj(c,_.WI,1,xoc)||_.Hj(c,_.cJ,2,xoc)||_.Hj(c,_.DJ,3,xoc),e=IM(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.WC=function(a){var b=this,c=UK(a.args[0],!!a.H,qoc),d=IM(this,a),e=[],f=[];soc(c).forEach(function(h){h instanceof _.QI?e.push(String(h.qc())):e.push(String(h.getId()));f.push(b.H.then(function(k){return k.Pe(h,d)}))});a=_.jI(f).then(function(h){return h.map(function(k){return k.value||k.reason})});_.$h(a,function(){return void PFc(b.context.Df)});return a.then(function(h){return b.Zc([new coc(e,h)])})};
_.g.ms=function(a){var b=this,c=UK(a.args[0],!!a.H,_.pJ),d=a.args[1];if(3===c.getType())if(!d&&this.W)a=this.W;else{var e=IM(this,a);a=this.H.then(function(f){return f.Pe(c,e)}).then(function(f){return new _.nK(f,1,!1)});this.W||(this.W=a.then(function(f){return new _.nK(f.response,f.Oe,!0)}),setTimeout(function(){b.W=null},9E5))}else a=new vKc(c,d,this.context.H[a.clientId]),PL(this.context.Pj,"Qubz4b"),a=this.ma.enqueue(a);return a.then(function(f){return b.Zc([f.response,f.Oe,f.J0])},function(f){return b.Zc(void 0,
f)})};_.g.PS=function(a){var b=this,c=UK(a.args[0],!!a.H,toc),d=_.Hj(c,_.pD,1,uoc)||_.Hj(c,_.qD,2,uoc),e=IM(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.yz)a?_.xkc(this.context.yz,!0):this.context.yk().Me()&&this.context.yz.KM(!0).then(null,function(){});else try{this.context.Kj().Jl(a)}catch(b){return this.Zc(void 0,b)}return this.Zc([])};
_.g.jz=function(a){var b=this,c=a.args[0];return this.context.jz(c).then(function(d){return d?(b.context.Kj().jz(c),b.Ia(c),b.context.Ys.FL().then(null,function(){return!c})):_.Wh(!c)}).then(function(d){return b.Zc([d])},function(d){return b.Zc(void 0,d)})};
_.g.sync=function(){var a=this;return _.Yh([this.context.Uaa.promise,this.context.pga.promise]).then(function(){return yM(a.context).then()}).then(function(b){return new _.Vh(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.MF=function(){try{var a=this.context.e7;a&&a.upa();this.context.Uha.MF();return this.Zc([])}catch(b){return this.Zc(void 0,b)}};
_.g.SS=function(){this.context.SS();return this.Zc([])};_.g.Ar=function(a){var b=this,c=UK(a.args[0],!!a.H,_.hJ),d=IM(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.Yaa=function(a){var b=this,c=UK(a.args[0],!!a.H,_.iJ),d=IM(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.m9=function(a){var b=this,c=UK(a.args[0],!!a.H,_.XI),d=IM(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.ST=function(a){var b=this,c=UK(a.args[0],!!a.H,_.zJ),d=IM(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.Waa=function(a){var b=this,c=UK(a.args[0],!!a.H,_.jJ),d=IM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return _.mI(b.context.Xc)?gyc(b.context.Df.Lq,[_.y(e,_.wk,2)],c.qc()).then(function(){return e}):e}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.o9=function(a){var b=this,c=UK(a.args[0],!!a.H,_.$I),d=IM(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=UK(a.args[0],!!a.H,_.rJ),d=IM(this,a);return this.H.then(function(e){return e.Pe(c,d).then(function(f){return _.mI(b.context.Xc)?eyc(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=UK(a.args[0],!!a.H,_.RAc),d=new _.uhc(c,a.args[1],a.args[2]||void 0),e=IM(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=UK(a.args[0],!!a.H,_.qJ),d=IM(this,a);return this.H.then(function(e){return e.Pe(c,d).then(function(f){return _.mI(b.context.Xc)?gyc(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.TQ=function(){var a=this;return(_.R(this.context.Xc.Tf(),52,!1)?_.Wh(vwc(new uwc,0)):this.context.VI.TQ()).then(function(b){return a.Zc([b])},function(b){return a.Zc(void 0,b)})};
_.g.gGb=function(a){var b=this,c=UK(a.args[0],!!a.H,_.thc),d=IM(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=UK(a.args[0],!!a.H,_.oJ),d=IM(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.n9=function(a){var b=this,c=UK(a.args[0],!!a.H,_.YI),d=IM(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.Ooa=function(a){var b=this,c=UK(a.args[0],!!a.H,_.EI),d=IM(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,_.vI(e)])})};_.g.aAb=function(){return this.Zc([!0])};
_.g.kGb=function(a){var b=this,c=UK(a.args[0],!!a.H,_.aG),d=IM(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=UK(a.args[0],!!a.H,_.cA),d=IM(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.t0=function(a){a=UK(a.args[0],!!a.H,_.Df);aFc(this.context.Df,[a]);return this.Zc([])};
_.g.G8=function(a){var b=this,c=UK(a.args[0],!!a.H,_.UI),d=IM(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=UK(a.args[0],!!a.H,_.oM),d=IM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return qyc(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 _.Bhc(UK(a.args[0],!!a.H,_.rVb),a.args[1]),d=IM(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.hcb=function(a){var b=this,c=UK(a.args[0],!!a.H,_.WF),d=IM(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.T0=function(a){var b=this,c=UK(a.args[0],!!a.H,_.hK),d=IM(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 UK(c,!!a.H,_.qI)});this.context.Df.Fo(b);PFc(this.context.Df);return this.Zc([])};_.g.H8=function(){var a=this,b=this.context.yz;return(b?b.KM():_.Wh(_.mkc(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=_.Zh();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)):hsc(a.context.Ce(),"drive.ds.sync.cacheproxy.WorkerSyncedItemService","An error occurred in the Shared Worker")});var b=this.context.Pj,c=["hVFf7"];_.YJ(this.context.Xc)&&c.push("BNEDtc");OL(b,
c,function(){a.ha||(a.ha=!0,a.O.resolve())});OL(b,["GZTDpc"],function(){return a.Ba.resolve()});var d=function(){yM(a.context).then(function(e){return void e.start()})};OL(b,["T8oKm",_.WJ(this.context.Xc)?"BNEDtc":"ZA9qG"],function(){return void d()});OL(b,["T8oKm","mrK8ic"],function(){return void d()});b.start();PL(b,"NSockf")}return this.O.promise};_.g.mca=function(){return this.Ba.promise};_.g.Zu=function(){var a=this.context.e7;a&&a.dispose();return this.context.Zu()};
var IM=function(a,b){return(a=a.context.H[b.clientId])?{cE:a}:{}};
var CKc=function(a,b,c){GM.call(this,"DU",b);this.context=a;this.O=c;this.H=new fDc(a)};_.K(CKc,GM);_.g=CKc.prototype;
_.g.AV=function(){var a=this,b={};return b["5.1"]=function(){return a.Qia()},b["5.2"]=function(c){return a.iN(c)},b["5.4"]=function(c){return a.Wz(c)},b["5.5"]=function(){return a.VR()},b["5.10"]=function(){return a.IN()},b["5.6"]=function(){return a.eea()},b["5.7"]=function(){return a.GT()},b["5.9"]=function(c){return a.Tqa(c)},b["5.8"]=function(c){return a.T5(c)},b["5.11"]=function(){return a.nqa()},b["5.12"]=function(c){return a.getState(c)},b["5.13"]=function(c){return a.Jl(c)},b};
_.g.Qia=function(){var a=this;this.context.Ys.$S();var b=this.context.Xc;return qAc(_.VJ(_.fI(b)),_.XJ(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.Wz=function(a){var b=this;return this.context.jB.Wz(a.args[0]).then(function(c){return b.Zc([c])})};_.g.VR=function(){return this.Zc(this.context.jB.VR())};
_.g.T5=function(a){var b=this,c=UK(a.args[0],!!a.H,_.Ofc),d=a.args[1],e=a.args[2];if(_.Hj(c,_.nI,3,_.oI)||_.Hj(c,_.FJ,4,_.oI)||_.Hj(c,_.uK,5,_.oI)||_.Hj(c,_.CJ,6,_.oI)||_.Hj(c,_.bJ,7,_.oI)||_.Hj(c,_.VI,8,_.oI)||_.Hj(c,_.ZI,9,_.oI)||_.Hj(c,_.xI,10,_.oI)){var f=Dwc(c);return this.context.Km().then(function(h){return h.Pe(f,{S8a:d,T8a:e})}).then(function(h){a:{var k=[],l="";if(h instanceof _.vK){k=h.Zc().Bd();var p=_.z(h,2);l=h.ao()}else if(h instanceof _.HJ)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 _.Wh(this.Zc(void 0,Error("wg")))};_.g.Tqa=function(){var a=this.context.Xc,b=a.Tf();a="email:"+_.fI(a).getEmail().replace(/@.*$/,"");_.x(b,13,a);return this.Zc([])};_.g.eea=function(){this.context.uG.H=new fzc(_.ph().substring(0,8));return this.Zc([])};
_.g.GT=function(){var a=this.context.uG.IN();if(a){var b=hzc(this.context.uG);a=[a.H,a.startTime].concat(_.fc(b))}else a=[];b=this.context.uG;b.H=null;b.tZ=[];return this.Zc(a)};_.g.IN=function(){var a=this.context.uG.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.nqa=function(){var a=[this.O.Zu(),_.Di(3E4)];_.$h(_.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 DKc=function(a,b,c,d,e,f,h){_.IK.call(this,a,b,c,d,f,h);this.H=e;this.Yf=null};_.K(DKc,_.IK);DKc.prototype.SM=function(a,b){var c=this;return _.gi(this.H.then(function(d){return d.i5a(unc(c.O,c.Ba,a,b,c.cj,c.ka))},null))};DKc.prototype.ta=function(a,b){var c=this.jd(a);if(c){var d=0;if(c.file){var e=c.request&&c.request.Wz();e&&(d=_.z(e,1));0===d&&(d=c.file.size)}this.dispatchEvent(new _.Tkc(a,b,d))}};
var EKc=function(a,b,c,d,e,f,h,k){GM.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(EKc,GM);_.g=EKc.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.JG(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=UK(a.args[0],!!a.H,_.VI),e=a.args[1];if(!this.H[c]){var f=new DKc(this.ka,this.ha,this.ta,this.Ba,this.W,this.ma,this.Yf);this.Oc.listen(f,"Cb",_.Ob(this.icb,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=_.Zh();b.O[q]=r;b.update(l,p,FKc(3,q,[h,k]));return r.promise}).then(function(h){return b.Zc([h])},function(h){return b.Zc(void 0,h)})};
_.g.cancel=function(a){var b=a.clientId+":"+a.requestId;this.H[b]&&this.H[b].cancel(a.args[0]);return this.Zc([])};_.g.JG=function(a){a=a.clientId+":"+a.requestId;this.H[a]&&this.H[a].JG();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,FKc(0,e,[q,r]))},function(r){b.update(a.clientId,c,FKc(1,e,[q,r.tg]))})});return this.Zc([])}return this.Zc(void 0,_.vI("Could not retry upload."))};
_.g.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=unc(b.O,b.Ba,c,a,b.cj,b.ka),this.Zc([zoc(c)])):this.Zc(void 0,_.vI("FileUploader not found."))};_.g.icb=function(a,b,c){this.update(a,b,FKc(2,c.requestId,[c.progress,c.totalBytes]))};var FKc=function(a,b,c){return[Number(a),b].concat(_.fc(c))};
var GKc=function(a,b){GM.call(this,"IE",b);this.O=a;this.H=new Map};_.K(GKc,GM);GKc.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};
GKc.prototype.export=function(a){var b=this,c=a.requestId,d=a.clientId+":"+c,e=UK(a.args[0],!!a.H,_.shc);e=new tM(this.O,e);var f=_.df(e,"Gb",function(h){b.update(a.clientId,c,[h.percentDone,h.kva])});_.ff(e,function(){_.xi(f);b.H.delete(d)});this.H.set(d,e);return e.start().then(function(h){return b.Zc([h])},function(h){return b.Zc(void 0,h)})};GKc.prototype.cancel=function(a){(a=this.H.get(a.clientId+":"+a.requestId))&&a.cancel();return this.Zc([])};
var HKc=function(a,b){GM.call(this,"ODS",b);this.context=a;this.H=!1;this.W=_.Zh();this.O=new kDc(a,a.Dg)};_.K(HKc,GM);HKc.prototype.AV=function(){var a=this,b={};return b["6.1"]=function(c){return IKc(a,c)},b["6.2"]=function(c){return JKc(a,c)},b["6.3"]=function(){a.H&&(nDc(a.O),a.H=!1,a.W=_.Zh());return a.Zc([])},b};
var IKc=function(a,b){if(!a.H){a.H=!0;var c=b.args.map(function(d){return UK(d,!!b.H,_.Jk)});a.O.fl(c);PL(a.context.Pj,"GZTDpc");a.W.resolve()}return a.Zc([])},JKc=function(a,b){return a.W.promise.then(function(){var c=b.args.map(function(d){return UK(d,!!b.H,_.qI)});mDc(a.O,c);return a.Zc([])})};
var KKc=function(){var a=this;this.services=new Map;"IS LRM DU ODS FU IE TM".split(" ").forEach(function(b){if(a.services.has(b))throw Error("Zg`"+b);a.services.set(b,new _.ai)})};KKc.prototype.activate=function(a){var b=this.services.get(a.V);if(b&&!b.Wf())b.callback(a);else throw Error("$g`"+a.V);};var LKc=function(a,b){a=_.m(a.services);for(var c=a.next();!c.done;c=a.next())c=_.m(c.value),c.next(),c.next().value.addCallback(function(d){d.registerService(b)})};KKc.prototype.Jo=function(){return[].concat(_.fc(this.services.values())).every(function(a){return a.Wf()})};
var MKc=function(){},NKc={0:2E3,1:3E3,2:5E3},OKc=function(a,b){this.request=a;this.ha=b;this.O=_.Zh();this.continuationToken="";this.V=0;this.bF=this.W=!1;this.H=MKc};OKc.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=MKc;b.V=0;return c},function(c){b.H=MKc;b.V=0;return Promise.reject(c)})};
OKc.prototype.sendRequest=function(){var a=this;if(this.bF)this.O.resolve((new VK).Dc(8));else{var b=new _.Fhc(this.request,this.continuationToken);this.ha.then(function(c){return c.Pe(b)}).then(function(c){PKc(a,c)},function(c){a.handleError(c)})}};var PKc=function(a,b){var c;a.continuationToken=null!==(c=b.ao())&&void 0!==c?c:"";a.H(b);a.continuationToken?setTimeout(function(){a.sendRequest()},QKc(a.V++,a.ka)):a.O.resolve(b)};OKc.prototype.handleError=function(a){a=_.wd(a);this.O.reject(a)};
OKc.prototype.cancel=function(){this.bF=!0};var QKc=function(a,b){return b?b:(a=NKc[a])?a:1E4};
var RKc=function(a,b){GM.call(this,"TM",b);this.O=a;this.H=new Map};_.K(RKc,GM);RKc.prototype.AV=function(){var a=this,b={};return b["10.1"]=function(c){return SKc(a,c)},b["10.2"]=function(c){return a.cancel(c)},b};
var SKc=function(a,b){var c=b.clientId+":"+b.requestId,d=UK(b.args[0],!!b.H,_.pCc);d=new OKc(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};RKc.prototype.cancel=function(a){this.H.get(a.clientId+":"+a.requestId).cancel();return this.Zc([])};
var JM=function(a,b,c){_.N.call(this);this.H=a;this.Ow=b;this.kb=c;this.fields=null;this.Ia=!1;this.La=_.Zh();this.W=!1;this.Ba=_.Zh();this.O=_.Zh();this.ta=null;this.wa=this.Ua=!1;this.yb=_.Zh();this.ha=new Set;this.Ga=new Set;this.V=new Map;this.ma=new Set;this.nz=Date.now();this.services=new KKc;this.Jb=new _.of(this);this.Ja(this.Jb)};_.K(JM,_.N);JM.prototype.aZ=function(a){this.O.promise.then(function(b){b.e7||a.bPa(b)})};
var WKc=function(a,b){var c=bKc(a.H,b),d=a.Qb.bind(a,c);EL(b,"8.1",d);b.registerService("8.1",d);EL(b,"8.4",a.Qa.bind(a,c));b.registerService("8.5",function(f){return TKc(a,c,f)});EL(b,"8.2",a.Gb.bind(a,c));EL(b,"8.3",a.Kb.bind(a,c));LKc(a.services,b);b.start();UKc(a,c,b);a.ka(c,b);var e=[];a.ta||(a.ta=_.Yh([a.La.promise,a.Ba.promise]).then((0,_.L)(a.initialize,a)));e.push(a.ta);_.Yh(e).then(function(){return void VKc(a,c,b)},function(f){a.Ua=!0;FL(b,"2.2",{err:_.vI(f).Hc()},d)})},XKc=function(a){return Math.floor((Date.now()-
a.nz)/1E3)},YKc=function(a,b,c){var d=function(e){FL(b,"2.8",{au:"fb"===e.type})};a.Jb.listen(c.VI,["fb","gb"],d);_.ff(b,a.Jb.Tc.bind(a.Jb,c.VI,["fb","gb"],d))},ZKc=function(a,b,c){var d=c.yk(),e=[].concat(_.fc(Object.values(_.WB))),f=function(h){FL(b,"2.19",{cs:h.connectionState})};a.Jb.listen(d,e,f);_.ff(b,function(){a.Jb.Tc(d,e,f)})};
JM.prototype.Qb=function(a){var b=cKc(this.H,a);if(b&&((this.services.services.get("LRM")||null).addCallback(function(d){fKc(d,a)}),b.dispose(),this.log((0,_.Ys)("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)})}};
JM.prototype.Qa=function(a,b){if(this.ha.has(a))return _.Wh();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){XJc(d,a,_.C(c.Tf(),37,""));WJc(d,_.se(c,28));d.Df.zma(_.yb(c,_.kl,91));return d.rY.promise.then(function(){aFc(d.Df,_.yb(c,_.Df,44))})},function(){})};
JM.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 cEc(e,e.Dg);e.mh(d);e.dispose();(e=c.H.channels[a]||null)&&FL(e,"2.16")})}};JM.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){$Kc(new IEc(h),e);(h=c.H.channels[a]||null)&&FL(h,"2.17",{t:f})})}};
var $Kc=function(a,b){b.filter(function(c){return c}).forEach(function(c){return a.mh(c)});a.dispose()};JM.prototype.$a=function(){for(var a=[],b={},c=_.m(_.Ya(this.H.channels)),d=c.next();!d.done;b={dfa:b.dfa,Ifa:b.Ifa},d=c.next())b.dfa=d.value,b.Ifa=_.Zh(),FL(b.dfa,"2.12",void 0,function(e){return function(){e.dfa.dispose();e.Ifa.resolve()}}(b)),a.push(b.Ifa.promise);return _.Yh(a).then()};
JM.prototype.initialize=function(a){var b=this;a=a[0];_.Fic(a,this.fields);var c=_.y(a,_.II,58);c=c&&_.R(c,1,!1)?this.kb:void 0;try{var d=new YK(null,a,this.Ow,c,void 0,void 0),e=d.mk().H(106E3);DJc(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())FL(p.value,"2.6",k)});this.Jb.listen(d,_.ad,this.ob);this.Jb.listen(d,"w8KrJc",this.Ec);Awc(d.VI,this.ka.bind(this));var f=d.yz;f&&xsc(f,function(){return b.ka()});
this.O.resolve(d);var h=aLc(this,d,new BKc(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 _.Xh(k)}};
var aLc=function(a,b,c){a.services.activate(c);a.services.activate(new dKc(b,a.H));a.services.activate(new CKc(b,a.H,c));a.services.activate(new HKc(b,a.H));a.services.activate(new EKc(b.Xc,b.jB,b.UR().oga,b.Km(),b.MQ,b.Ce(),b.mk(),a.H));a.services.activate(new GKc(b.Km(),a.H));a.services.activate(new RKc(b.Km(),a.H));return c.initialize()},VKc=function(a,b,c){var d=_.Xa(a.H.channels);a.log((0,_.Ys)("Client %d connected (num clients: %d, added: %d, max concurrent: %d)",b,d,a.H.O,a.H.H));FL(c,"2.2",
{id:b,clients:d,uptimeSec:XKc(a),dsp:!a.V.has(b),ivd:!a.ma.has(b)});a.O.promise.then(function(e){e.K_.addCallback(function(f){c.isDisposed()||FL(c,"2.5",{id:f})});1<d&&yM(e).addCallback(function(f){return f.Lxa()});(a.services.services.get("IS")||null).addCallback(function(f){f.mca().then(function(){c.isDisposed()||FL(c,"2.14")})});YKc(a,c,e);ZKc(a,c,e)})};JM.prototype.jc=function(a){a={dt:a.dataType};for(var b=_.m(_.Ya(this.H.channels)),c=b.next();!c.done;c=b.next())FL(c.value,"2.15",a)};
JM.prototype.tc=function(a){var b={oois:a};_.Ya(this.H.channels).forEach(function(c){FL(c,"2.18",b)})};JM.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())FL(c.value,"2.10",a)};JM.prototype.Ec=function(){for(var a=_.m(_.Ya(this.H.channels)),b=a.next();!b.done;b=a.next())FL(b.value,"2.7")};var UKc=function(a,b,c){a.ha.has(b)?_.Wh():new _.Vh(function(d){FL(c,"2.1",void 0,function(e){d(a.Qa(b,e))})})};
JM.prototype.ka=function(a,b){var c=this;if("number"===typeof a){if(!b)return _.Xh(Error("ah"));if(this.W&&this.Ga.has(a))return _.Wh()}b=b||_.Ya(this.H.channels)[0];if(!b)return _.Xh(Error("bh"));var d=_.Zh();b.send("1.1",void 0,function(e){TKc(c,a,e);d.resolve()});return d.promise};var TKc=function(a,b,c){_.Ta(c.ac,function(d,e){_.n[e]=d});"number"===typeof b&&a.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())};
JM.prototype.log=function(a){this.O.promise.then(function(b){return b.Ce().info("drive.ds.sync.cacheproxy.Worker",a)})};
var bLc=function(a,b){FM.call(this,"DU","drive.ds.sync.DebugUtilProxy",a);this.context=b;this.H=null};_.K(bLc,FM);_.g=bLc.prototype;_.g.Ka=function(){return _.y(this.context.Xc,_.II,58)};_.g.getContext=function(){return this.context};_.g.Wz=function(){return _.gi(this.send("5.4",[this.H],function(a,b){return UK(a[0],b,_.qjc)}))};_.g.Ce=function(){return this.context.Ce()};_.g.iN=function(a){return _.gi(this.send("5.2",[a],function(b,c){return b[0]?UK(b[0],c,_.Jk):null}))};
_.g.VR=function(){return _.gi(this.send("5.5",[],function(a,b){return a.map(function(c){return UK(c,b,_.Ofc)})}))};_.g.T5=function(a,b,c){return _.gi(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 UK(k,e,_.Jk)}),uja:f,pageToken:h}}))};_.g.Tqa=function(){this.send("5.9",[])};_.g.Qia=function(){this.send("5.1",[])};_.g.uka=function(){return _.ygc[_.pj(this.context.Xc.Tf(),8,0)]};_.g.eea=function(){this.send("5.6",[])};
_.g.GT=function(){return _.gi(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 UK(e,b,Ewc)});return{traceId:new fzc(c,d),spanRecs:a}}))};_.g.IN=function(){return _.gi(this.send("5.10",[],function(a){return 0===a.length?null:new fzc(a[0],new Date(a[1]))}))};_.g.getState=function(){return _.gi(this.send("5.12",[],function(a){return a[0]}))};_.g.nqa=function(){this.send("5.11",[])};_.g.Jl=function(a){this.send("5.13",[a])};
var cLc=function(a,b){FM.call(this,"IE","drive.ds.sync.itemexport.ItemExportSessionProxy",a);this.request=b;this.promise=null;this.id=String(_.Fa(this))};_.K(cLc,FM);cLc.prototype.start=function(){var a=this;this.promise||(this.promise=this.send("9.1",[this.request],function(b,c){return UK(b[0],c,ZBc)},this.id).then(),this.promise.then(function(){return a.dispose()},function(){return a.dispose()}));return this.promise};cLc.prototype.cancel=function(){this.send("9.2",[],void 0,this.id)};
cLc.prototype.Baa=function(a,b,c){this.dispatchEvent(new HCc(c[0],c[1]))};
var dLc=function(a){FM.call(this,"ODS","drive.ds.sync.offline.DataServiceProxy",a);this.H=null};_.K(dLc,FM);dLc.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.v0(function(c){b.log("Forwarding offline items changes, count:"+c.length);b.send("6.2",c)})):this.send("6.3",[])};
var eLc=function(a,b){ZL.call(this,a,b)};_.K(eLc,ZL);eLc.prototype.ija=function(a,b,c){return new _.Bhc(a,c)};eLc.prototype.ula=function(a){return a.pageToken||""};eLc.prototype.Hka=function(a){return a.response.H()};eLc.prototype.c7=function(){};
var fLc=function(a,b,c){sM.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 eLc(this.request,this.ka)};_.K(fLc,sM);_.g=fLc.prototype;_.g.rH=function(){this.W.mh().then(this.jcb.bind(this),this.handleError.bind(this))};_.g.getData=function(){return VBc(new nM,this.O).Dc(this.status)};_.g.ts=function(){return new FBc};_.g.qk=function(){return!this.Me()&&(!this.H||syc(this.W))};
_.g.jcb=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 _.oi(_.bd,this))}};_.g.Yb=function(){return this.O.length};
var gLc=function(a,b,c){sM.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 _.y7a;this.suggestionSessionId=null;this.ka=c};_.K(gLc,sM);_.g=gLc.prototype;_.g.rH=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 _.pnc(_.onc((new _.JK).Dc(this.status),this.data.slice(0)),this.suggestionSessionId)};_.g.ts=function(){var a=_.Ky(this.W,this.O,this.data);this.O=this.data;var b=(new yCc).Dc(this.status);return _.tj(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 _.oi(_.bd,this))};_.g.Yb=function(){return this.data.length};
var hLc=function(){};_.g=hLc.prototype;_.g.VM=function(a,b){b=OAc(1).setPosition(b);_.G(b,2,a);return b};_.g.TM=function(a,b){b=OAc(2).setPosition(b);_.G(b,2,a);return b};_.g.eF=function(a,b,c){b=OAc(3).kz(b).setPosition(c);_.G(b,2,a);return b};_.g.cR=function(a,b){b=OAc(4).setPosition(b);_.G(b,2,a);return b};_.g.qN=function(a){return _.y(a,_.MAc,2)};
var iLc=function(){_.Ly.call(this,new hLc,function(a){a:switch(_.Bb(a,_.iM)){case 6:a=_.Jy(_.Hj(a,_.Iy,6,_.iM)).getTime().toString();break a;case 7:var b=_.Hj(a,_.hM,7,_.iM);a=_.y(b,_.Iy,1);b=b.Iv();a=a&&b?_.Jy(b).getTime()+"--"+_.Jy(a).getTime():"";break a;default:a=""}return a})};_.K(iLc,_.Ly);var kLc=function(){jLc||(jLc=new iLc);return jLc},jLc;
var lLc=function(a,b,c,d){sM.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 _.tkc(_.Ej(b.Xc.Tf(),6,1E3));this.ma=c};_.K(lLc,sM);_.g=lLc.prototype;_.g.XP=function(){sM.prototype.XP.call(this);this.iu()};_.g.rH=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;sM.prototype.Ju.call(this,a)};_.g.getData=function(){var a=(new TAc).Dc(this.status);_.tj(a,2,this.activities.slice(0,this.limit));this.W=_.Aa(this.activities);return a};_.g.ts=function(){var a=_.Ky(kLc(),this.W,this.activities),b=new QAc;a=_.tj(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,_.MAc,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(),mLc(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=kLc();a.H=!0;var d=_.yb(b,_.MAc,1);bL(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,mLc(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 _.oi(_.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 _.ai)};var mLc=function(a){_.Q(a.request,3)||(_.ZH(a.ka),_.n.setTimeout((0,_.L)(a.poll,a),a.ka.Wa()))};lLc.prototype.Yb=function(){return this.activities.length};
var nLc=function(){};_.g=nLc.prototype;_.g.VM=function(a,b){return XAc(WAc(1),a).setPosition(b)};_.g.TM=function(a,b){return XAc(WAc(2).setPosition(b),a)};_.g.eF=function(a,b,c){return XAc(WAc(3).kz(b).setPosition(c),a)};_.g.cR=function(a,b){return XAc(WAc(4),a).setPosition(b)};_.g.qN=function(a){return _.y(a,_.GL,2)};
var oLc=function(){_.Ly.call(this,new nLc,function(a){return a.getId()})};_.K(oLc,_.Ly);var qLc=function(){pLc||(pLc=new oLc);return pLc},pLc;
var rLc=function(a,b,c){sM.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 _.tkc(_.Ej(b.Xc.Tf(),54,1E3));this.ka=c};_.K(rLc,sM);_.g=rLc.prototype;_.g.activate=function(){sM.prototype.activate.call(this);this.iu()};_.g.rH=function(){this.poll()};_.g.getData=function(){var a=new cBc;a=_.tj(a,2,this.backups).Dc(this.status);this.W=_.Aa(this.backups);return a};
_.g.ts=function(){var a=_.Ky(qLc(),this.W,this.backups),b=new aBc;a=_.tj(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 _.ai;this.ka(this.request).then(function(c){a.H=!0;c=_.yb(c,_.GL,2);bL(qLc(),a.backups,c)&&(a.changed=!0,a.backups=c,a.O.reset());a.iu();b.callback();sLc(a)},function(c){a.dispatchEvent(new _.Hc(c));b.Gd(c);sLc(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 _.oi(_.bd,this))}};_.g.zP=function(){};var sLc=function(a){a.active&&(_.n.setTimeout((0,_.L)(a.poll,a),a.O.Wa()),_.ZH(a.O))};rLc.prototype.Yb=function(){return this.backups.length};
var tLc=function(){};_.g=tLc.prototype;_.g.VM=function(a,b){return eCc(dCc(1),a).setPosition(b)};_.g.TM=function(a,b){return eCc(dCc(2).setPosition(b),a)};_.g.eF=function(a,b,c){return eCc(dCc(3).kz(b).setPosition(c),a)};_.g.cR=function(a,b){return eCc(dCc(4),a).setPosition(b)};_.g.qN=function(a){return _.y(a,_.wk,2)};
var uLc=function(){_.Ly.call(this,new tLc,function(a){return a.getId()})};_.K(uLc,_.Ly);
var KM=function(a,b,c){_.zi.call(this);this.context=a;this.request=b;this.nextPageToken="";this.H=this.O=!1;this.limit=0;this.permissions=[];this.V=c};_.K(KM,_.zi);KM.prototype.Gi=function(a){this.limit=a};KM.prototype.mh=function(){return this.H||this.O&&""===this.nextPageToken?Promise.resolve():vLc(this)};KM.prototype.wla=function(){return this.permissions};
var vLc=function(a){a.O=!0;a.H=!0;var b=Math.min(a.limit-a.permissions.length,100);var c=new _.qJ;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))};KM.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 vLc(this);this.dispatchEvent("zb")};
KM.prototype.handleError=function(a){this.H=!1;a=new YL(_.vI(a),_.Ej(this.context.Xc.Tf(),1,1));this.dispatchEvent(a)};
var wLc=function(a,b,c,d){sM.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 KM(b,this.request,this.ma);_.ff(this,function(){e.W&&(_.n.clearTimeout(e.W),e.W=null)})};_.K(wLc,sM);_.g=wLc.prototype;_.g.activate=function(){sM.prototype.activate.call(this);this.iu()};_.g.rH=function(){this.query()};
_.g.Ju=function(a){sM.prototype.Ju.call(this,a||100)};_.g.getData=function(){var a=Asc(new zsc,this.permissions.slice(0,this.limit)).Dc(this.status);this.ka=_.Aa(this.permissions);return a};_.g.ts=function(){var a=_.Ky(_.Yl(uLc),this.ka,this.permissions),b=new gCc;a=_.tj(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 KM(this.context,this.request,this.ma);this.O.Gi(this.limit);return this.O.mh().then(function(){return xLc(a)},function(b){return a.handleError(b)})};_.g.handleError=function(a){sM.prototype.handleError.call(this,a);yLc(this)};var xLc=function(a){a.H=!0;var b=a.O.wla();bL(_.Yl(uLc),a.permissions,b)&&(a.changed=!0,a.permissions=b);a.iu();yLc(a)};
wLc.prototype.iu=function(){if(this.active){var a=this.status;this.cM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.oi(_.bd,this))}};wLc.prototype.zP=function(){var a=this;this.O.Gi(this.limit);this.O.mh().then(function(){return xLc(a)},function(b){return a.handleError(b)})};var yLc=function(a){if(a.active){var b=a.context.Xc.Tf();a.W=_.n.setTimeout((0,_.L)(a.query,a),Math.ceil(_.Ej(b,7,9E5)*Math.random())+_.Ej(b,15,36E5))}};wLc.prototype.Yb=function(){return this.permissions.length};
var zLc=function(a){6!==a.status&&_.n.setTimeout(function(){a.dispatchEvent(new _.oi(_.bd,a))},0)};
var ALc=function(){},BLc=function(a,b){FM.call(this,"TM","drive.ds.sync.TeamDriveMovePreflightRunnerProxy",a);this.request=b;this.O=ALc;this.H=null;this.id=String(_.Fa(this))};_.K(BLc,FM);BLc.prototype.Baa=function(a,b,c){a===this.id&&(a=_.m(c).next().value,this.O(UK(a,b,VK)))};BLc.prototype.mh=function(a){a=void 0===a?ALc:a;if(!this.H){this.O=a;var b=_.Zh();this.H=b;this.send("10.1",[this.request],function(c,d){return UK(c[0],d,VK)},this.id).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)})}return this.H.promise};
BLc.prototype.cancel=function(){this.send("10.2",[this.request],void 0,this.id)};
var CLc=function(a,b,c){_.zi.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(CLc,_.zi);_.g=CLc.prototype;_.g.getId=function(){return this.instanceId};_.g.bR=function(){return _.FI()};
_.g.upload=function(a,b){!_.z(a,26)&&b&&b.lastModified&&_.x(a,26,b.lastModified);var c;b&&(c=b.type?b:new File([b],b.name,{type:b.type}));if(b){var d=new _.Jic;_.x(d,1,b.size);_.G(a,15,d);this.files[a.mj()]=b}return _.gi(this.H("7.1",[a,c],function(e,f){return UK(e[0],f,_.HJ)}))};_.g.cancel=function(a){this.H("7.2",[a])};_.g.JG=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 _.ai;c=this.bR();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 _.gi(this.H("7.5",[a].concat(_.fc(b)),function(d){return Aoc(d[0])}).then(function(d){return c.O.addCallback(function(e){return e.i5a(d)})}))};var DLc=function(a,b,c,d){if(a.Tu[b]&&a.Tu[b][c]){var e=a.Tu[b][c];d instanceof _.HJ?e.callback(d):e.Gd(d);delete a.Tu[b][c];_.ab(a.Tu[b])&&delete a.Tu[b]}};
var ELc=function(a,b){FM.call(this,"FU","drive.ds.sync.upload.FileUploaderProxyManager",a);this.O=b;this.H=new Map};_.K(ELc,FM);var FLc=function(a){var b=_.FI(),c=new CLc(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};
ELc.prototype.Baa=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,_.Sgc(c,b,Math.min(c.size,b+e))]);break;case 0:b=UK(e[1],b,_.HJ);DLc(a,d,e[0],b);break;case 1:b=new _.Gc(void 0,UK(e[1],b,_.Fc));DLc(a,d,e[0],b);break;case 2:a.dispatchEvent(new _.Tkc(d,e[0],e[1]));break;default:throw Error("ch");}}};
var GLc=function(a,b){if(0===a.length)throw new _.Gc("mutateUserPref requires a namespace.",_.NI(3));var c=null;b instanceof _.qD?c=(b=(b=_.y(b,_.Wo,1))&&b.getKey())&&_.Xo(b)||null:b instanceof _.pD&&(c=(b=b.getKey())&&_.Xo(b)||null);if(!c||!a.find(function(d){return d===c}))throw new _.Gc("mutateUserPref unsupported for namespace: "+c,_.NI(3));};
var HLc=function(a){this.H=a};
var ypc=function(a){FM.call(this,"IS","drive.ds.sync.ItemServiceProxy",(ILc=_.Zh()).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 _.fn;this.La=new _.fn;this.V=ILc;ILc=void 0;this.context=a;FJc(this.context,new dLc(this.V.promise));lsc(this.context.Dg,_.se(this.context.Xc,28));this.H=this.context.Jta;this.O=new gKc(this.V.promise,this.context,this.H);this.ob=new ELc(this.V.promise,this.context.MQ);this.Ia=new bLc(this.V.promise,this.context);
this.Oc=new _.of(this);this.Ja(this.Oc);this.Oc.listen(this.context.yk(),[].concat(_.fc(Object.values(_.WB))),function(c){return void b.dispatchEvent(c)})},ILc;_.K(ypc,FM);
ypc.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.U3a()},function(){_.sK(a.context.mk(),181008852)});this.context.Ce().info("drive.ds.sync.ItemServiceProxy","Initializing "+(_.YJ(this.context.Xc)?"(coldstart) ":"")+"with client build: "+this.context.Xc.Li());var c=moc(this.context.Xc,this.Oi(),_.cK(this.context.Dg));JLc(this,c);if(2===c.H){var d=new JM(new aKc,6,this.context.Ce());WKc(d,c.O);this.La.resolve(d)}else Roc(this.Ia);
this.context.Ce().info("drive.ds.sync.ItemServiceProxy","Connecting to worker: "+c.endpoint);c.channel.start();DJc(this.context,function(){return KLc(c.channel)})}return this.ta};
var KLc=function(a){return _.yka([new _.Vh(function(b){a.isDisposed()||FL(a,"8.1",void 0,function(){a.dispose();b()})}),_.Di(1E4)])},JLc=function(a,b){var c=b.channel;0===b.H?c.registerService("2.0",function(){return{uid:a.Oi(),fds:_.cK(a.context.Dg)}}):c.registerService("1.1",function(){return LLc(a,b)});2===b.H?a.La.promise.then(function(){return void MLc(a,b)}):MLc(a,b);EL(c,"2.1",function(){return{dsc:a.context.Xc.Hc()}});EL(c,"2.2",function(d){"number"===typeof d.id?(a.V.resolve(new $Jc(d.id,
c,a.context.Ce(),d.clients)),d.dsp&&NLc(c),d.ivd&&OLc(a,c)):(d=new _.Fc(JSON.parse(d.err)),a.wa.reject(new _.Gc("Unable to initialize dataservice.",d)))});EL(c,"2.15",function(d){a.dispatchEvent(new GCc(d.dt))});EL(c,"2.5",function(d){a.context.mz(d.id)});EL(c,"2.6",function(d){a.context.Kj().Jl(d.os)});EL(c,"2.18",function(d){a.context.Kj().jz(d.oois)});EL(c,"2.7",function(){a.ma=!1});EL(c,"2.8",function(d){a.context.Ga=d.au;a.dispatchEvent(new dtc(d.au?"fb":"gb"))});EL(c,"2.19",function(d){a.context.yk().update(d.cs)});
EL(c,"2.9",function(d){var e=d.logName,f=d.level;d=(0,_.Ys)("[CSW %s] %s",d.totalTime,d.message);switch(f){case "config":a.context.Ce().config(e,d);break;case "fine":_.aK(a.context.Ce(),e,d,"fine");break;case "finer":_.aK(a.context.Ce(),e,d,"finer");break;case "finest":_.aK(a.context.Ce(),e,d,"finest");break;case "info":a.context.Ce().info(e,d);break;case "warning":case "severe":hsc(a.context.Ce(),e,d);break;default:hsc(a.context.Ce(),"drive.ds.sync.ItemServiceProxy","Unknown log level: "+f),hsc(a.context.Ce(),
e,d)}});EL(c,"2.10",function(d){return void a.xaa(d)});EL(c,"2.12",function(){a.Qa=!0;LM(a)});EL(c,"2.14",function(){return a.kb.resolve()});EL(c,"2.16",function(){return a.$a=!0});EL(c,"2.17",function(d){a.context.Ce().info("drive.ds.sync.ItemServiceProxy","Prefetched request loaded for: "+d.t.join(","))})},MLc=function(a,b){1!==b.H&&2!==b.H||b.channel.send("8.5",LLc(a,b));FL(b.channel,"8.4",{dsc:a.context.Xc.Hc()});NLc(b.channel);OLc(a,b.channel)},NLc=function(a){_.n._DRIVE_dsp&&FL(a,"8.3",{dsp:PLc(_.n._DRIVE_dsp)});
_.n._DRIVE_dspc=function(b){if(_.n._DRIVE_dsp){var c=[];c[b]=_.n._DRIVE_dsp[b];FL(a,"8.3",{dsp:PLc(c)})}}},OLc=function(a,b){_.R(a.context.Xc,24,!1)&&(_.n._DRIVE_ivd?FL(b,"8.2",{ivd:_.n._DRIVE_ivd}):void 0===_.n._DRIVE_ivd&&(_.n._DRIVE_ivdc=function(){_.n._DRIVE_ivd&&FL(b,"8.2",{ivd:_.n._DRIVE_ivd})}))},LLc=function(a,b){var c={};if(1===b.H){var d=new _.XNa(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}};ypc.prototype.Oi=function(){var a=_.uj(_.uj(_.gI(this.context.Xc.clone(),28),44),91),b=new _.SH;b.update(_.VJ(_.fI(a)));b.update(String(_.wI(_.fI(a))));b.update(a.Hc());return _.Wec(b.digest())};var PLc=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=ypc.prototype;_.g.xaa=function(a){this.dispatchEvent(new _.Hc(new _.Gc(void 0,new _.Fc(JSON.parse(a.p)))))};
_.g.query=function(a){LM(this);Xvc(this.context.Am,a,jsc(this.context.Dg));this.MF();var b=this.O.vya(a);this.Ua||(a=a.se(),a&&121===_.z(a,1)||(this.Ua=!0,this.Oc.listen(b,_.bd,this.JOa)));return b};_.g.JOa=function(a){a=a.currentTarget;1===a.Cb()&&(this.Ia.H=this.$a,this.Oc.Tc(a,_.bd,this.JOa))};_.g.kt=function(a){LM(this);atc(a);this.MF();return this.O.sya(a)};
_.g.qwa=function(a,b){var c=this;LM(this);if(this.ka&&_.Dj(this.ka.jd(),a))return this.ka;this.ka=new lLc(a.clone(),this.context,function(d,e,f){return c.send("3.17",[d,e,f],function(h,k){return UK(h[0],k,FCc)})},b);_.n.setTimeout(function(){c.ka=null},3E3);return this.ka};
_.g.HHa=function(a,b){var c=this;LM(this);if(this.ha&&_.Dj(this.ha.jd(),a))return zLc(this.ha),this.ha;this.ha=new wLc(a,this.context,function(d){return c.send("3.18",[d],function(e,f){return UK(e[0],f,hCc)})},b);_.n.setTimeout(function(){c.ha=null},3E3);return this.ha};_.g.Waa=function(a){LM(this);return _.gi(this.send("3.14",[a],function(b,c){return UK(b[0],c,pM)}))};_.g.o9=function(a){LM(this);return _.gi(this.send("3.15",[a],function(b,c){return UK(b[0],c,pM)}))};
_.g.ad=function(a){LM(this);!this.ma&&_.IJ(a)&&(this.ma=!0);a=ooc(a);return _.gi(this.send("3.3",[a],function(b,c){return UK(b[0],c,_.HJ)}))};_.g.sO=function(a){LM(this);a=yoc(a);return this.send("3.35",[a],function(b,c){return UK(b[0],c,_.ctc)})};_.g.WC=function(a){LM(this);for(var b=0;b<a.length;b++)!this.ma&&_.IJ(a[b])&&(this.ma=!0);a=roc(a);return _.gi(this.send("3.4",[a],function(c,d){return nwc(c[0],d).get()}))};_.g.rya=function(){LM(this);return FLc(this.ob)};
_.g.IUa=function(a){LM(this);return new cLc(this.V.promise,a)};_.g.ms=function(a,b){var c=this;LM(this);var d=_.ph();this.H.create(d,a);return _.gi(this.send("3.5",[a,!!b],function(e,f){f=UK(e[0],f,JL);return new _.nK(f,e[1],e[2])})).addCallback(function(e){Kwc(c.H,d,e);return e.response}).zg(function(e){IL(c.H,d);return e})};_.g.Ar=function(a){LM(this);return this.send("3.10",[a],function(b,c){return UK(b[0],c,UAc)})};
_.g.Yaa=function(a){LM(this);return _.gi(this.send("3.11",[a],function(b,c){return UK(b[0],c,VAc)}))};_.g.m9=function(a){LM(this);return _.gi(this.send("3.12",[a],function(b,c){return UK(b[0],c,VAc)}))};_.g.ST=function(a){LM(this);return _.gi(this.send("3.13",[a],function(b,c){return UK(b[0],c,VAc)}))};
_.g.ON=function(a,b){var c=this;LM(this);var d=_.ph();this.H.create(d,a);return _.gi(this.send("3.1",[a,!!b],function(e,f){f=UK(e[0],f,_.gM);return new _.qK(f,e[1],e[2])})).addCallback(function(e){Kwc(c.H,d,e);return e.response}).zg(function(e){IL(c.H,d);return e})};
_.g.pH=function(a,b){var c=this,d=_.se(this.context.Xc.Tf(),30);if(!d||0===d.length)return _.hi(new _.Gc("getUserPrefs requires a namespace.",_.NI(3)));0===_.se(a,3).length&&Soc(a,d);LM(this);var e=_.ph();this.H.create(e,a);return _.gi(this.send("3.2",[a,!!b],function(f,h){h=UK(f[0],h,_.aA);return new _.pK(h,f[1],f[2])})).addCallback(function(f){Kwc(c.H,e,f);return f.response}).zg(function(f){IL(c.H,e);return f})};
_.g.PS=function(a){LM(this);GLc(_.se(this.context.Xc.Tf(),30),a);a=voc(a);return this.send("3.6",[a],function(b,c){return UK(b[0],c,sCc)})};_.g.Cu=function(a){LM(this);return _.gi(this.send("3.16",[a],function(b,c){return UK(b[0],c,Csc)}))};_.g.jDa=function(){return this.ma};_.g.Jl=function(a){LM(this);this.send("3.8",[a])};_.g.jz=function(a){LM(this);return _.Wh(this.send("3.36",[a],function(b){return!!b[0]}))};_.g.dZ=function(a){LM(this);EJc(this.context).dZ(a);this.jz(!!a)};
_.g.MF=function(){LM(this);this.send("3.9",[])};_.g.SS=function(){LM(this);this.send("3.41",[]);this.context.SS();var a=eL(this.context.mk(),106006);a&&this.V.promise.then(function(b){var c=_.y(_.iK(a),Lrc,6);if(!c){c=new Lrc;var d=_.iK(a);_.G(d,6,c)}c=_.x(c,1,b.clientId);_.x(c,2,b.O);a.Dj()},function(){})};_.g.QB=function(){LM(this);return this.context.QB()};_.g.TQ=function(){LM(this);return _.Wh(this.send("3.19",[],function(a,b){return UK(a[0],b,uwc)}))};_.g.isConnected=function(){return this.context.yk().isConnected()};
_.g.H8=function(){return this.send("3.46",[],function(a,b){return UK(a[0],b,_.lkc)})};_.g.A$=function(){return this.Ia};_.g.sync=function(){LM(this);return _.Wh(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.Jqa=function(a){LM(this);return this.O.Cya(a)};_.g.L5=function(a){LM(this);return this.O.Bya(a)};_.g.EHa=function(a){LM(this);$vc(this.context.Am,a,jsc(this.context.Dg));return this.O.yya(a)};
_.g.Kqa=function(a){LM(this);return new BLc(this.V.promise,a)};_.g.gxa=function(a){var b=this;LM(this);if(!this.W||this.W.isDisposed())this.W=new rLc(a,this.context,function(c){return b.send("3.20",[c],function(d,e){return UK(d[0],e,cBc)})});return this.W};_.g.tIa=function(){this.W&&!this.W.isDisposed()?this.W.poll():_.Wh()};_.g.n9=function(a){LM(this);return _.gi(this.send("3.22",[a],function(b,c){return UK(b[0],c,dBc)}))};
_.g.gW=function(a){LM(this);return _.gi(this.send("3.25",[a],function(b,c){return UK(b[0],c,ZAc)}))};_.g.mca=function(){return this.kb.promise};_.g.Ooa=function(a){var b=_.Zh();_.gi(this.send("3.30",[a],function(c,d){c[0]?b.resolve(UK(c[0],d,aCc)):b.reject(new _.Gc(void 0,UK(c[1],d,_.Fc)))})).zg(function(c){return void b.reject(c)});return b.promise};_.g.Hxa=function(a){LM(this);return this.O.oya(a)};_.g.G8=function(a){LM(this);return this.send("3.42",[a],function(b,c){return UK(b[0],c,GAc)})};
_.g.CP=function(a){LM(this);var b=new _.fn;this.send("3.39",[a],function(c,d){return c.map(function(e){return UK(e,d,Twc)})}).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)});return Promise.resolve(new HLc(b.promise))};_.g.eIa=function(a){var b=this;LM(this);return new fLc(this.context,a,function(c){return _.Wh(b.send("3.37",[c.request,c.pageToken],function(d,e){return new pwc(UK(d[0],e,nM),d[1])}))})};
_.g.fIa=function(a){LM(this);return this.send("3.38",[a],function(b,c){return UK(b[0],c,WBc)})};_.g.VMa=function(a){LM(this);return this.O.Gya(a)};_.g.Fra=function(a){LM(this);return this.O.Fya(a)};_.g.pLa=function(a){var b=this;LM(this);return new gLc(this.context,a,function(){return _.Wh(b.send("3.40",[a],function(c,d){return UK(c[0],d,_.JK)}))})};_.g.qLa=function(a){LM(this);return this.O.zya(a)};_.g.t0=function(a){LM(this);this.send("3.43",[a])};
_.g.T0=function(a){LM(this);return _.Wh(this.send("3.44",[a],function(b,c){return UK(b[0],c,ntc)}))};_.g.Fo=function(a){LM(this);if(1!==_.XJ(this.context.Xc))return Promise.reject(Error("dh"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.qc())return Promise.reject(Error("eh"));if(!_.BI(c)&&!c.getItem())return Promise.reject(Error("fh"))}return Promise.resolve(this.send("3.45",a))};
_.g.U3a=function(){var a=this;if(3===this.context.getEnvironment()){var b=[_.Di(1E4,!1),this.send("3.29",[],function(c){return!!c[0]}).then()];_.yka(b).then(function(c){c?_.Bi(a.U3a.bind(a),6E4):(a.Qa=!0,LM(a))})}};var LM=function(a){a.Qa&&a.dispatchEvent(new eDc)};
var Apc=function(a){uM.call(this,a);this.ha=this.ka=this.ta=null;this.kb=_.Zh();this.logName="drive.ds.sync.SyncedItemService";this.H=a.Km()};_.K(Apc,uM);Apc.prototype.pUa=function(){this.Ia=new mKc(this.context);this.Ja(this.Ia);this.La=new qKc(this.context);this.Ja(this.La);this.Qa=new xKc(this.context);this.Ja(this.Qa)};
Apc.prototype.$a=function(){var a=this,b=["hVFf7"];_.YJ(this.context.Xc)&&b.push("BNEDtc");OL(this.O,b,function(){return void a.xZa()});OL(this.O,["T8oKm",_.WJ(this.context.Xc)?"BNEDtc":"ZA9qG"],function(){return void QLc(a)});OL(this.O,["T8oKm","mrK8ic"],function(){return void QLc(a)});this.Oc.listen(this.Ia,"WPi0i",this.Lta.bind(this,1));this.Oc.listen(this.La,"Hb",this.Lta.bind(this,2));this.Oc.listen(this.Qa,"WPi0i",this.Lta.bind(this,4));OL(this.O,["GZTDpc"],function(){return a.kb.resolve()})};
var QLc=function(a){yM(a.context).addCallback(function(b){b.start()})};_.g=Apc.prototype;_.g.Lta=function(a){_.pa(otc,a)&&this.dispatchEvent(new GCc(a))};_.g.L5=function(a){return this.V.Bya(a.clone())};_.g.EHa=function(a){$vc(this.context.Am,a,jsc(this.context.Dg));return this.V.yya(a.clone())};_.g.Jqa=function(a){return this.V.Cya(a.clone())};_.g.Kqa=function(a){return new OKc(a,this.context.Km())};
_.g.qwa=function(a,b){var c=this;if(this.ta&&_.Dj(this.ta.jd(),a))return this.ta;this.ta=new lLc(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 _.uhc(a,b,c);return _.gi(this.H.then(function(e){return e.Pe(d)}).then(null,function(e){return LK(e)}))};_.g.gxa=function(a){var b=this;if(!this.ha||this.ha.isDisposed())this.ha=new rLc(a,this.context,function(c){return RLc(b,c)});return this.ha};
var RLc=function(a,b){return _.gi(a.H.then(function(c){return c.Pe(b)}).then(null,function(c){return LK(c)}))};_.g=Apc.prototype;_.g.tIa=function(){this.ha&&!this.ha.isDisposed()?this.ha.poll().then():_.Wh()};_.g.gW=function(a){return _.gi(this.H.then(function(b){return b.Pe(a)}))};_.g.n9=function(a){return _.gi(this.H.then(function(b){return b.Pe(a)}))};
_.g.HHa=function(a,b){var c=this;if(this.ka&&_.Dj(this.ka.jd(),a))return zLc(this.ka),this.ka;this.ka=new wLc(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 _.mI(b.context.Xc)?gyc(b.context.Df.Lq,c.Zc().BN(),a.jd().getId()).then(function(){return c}):c},LK)};
_.g.Waa=function(a){var b=this;return _.gi(this.H.then(function(c){return c.Pe(a)}).then(function(c){return _.mI(b.context.Xc)?gyc(b.context.Df.Lq,[_.y(c,_.wk,2)],a.qc()).then(function(){return c}):c},LK))};_.g.o9=function(a){return _.gi(this.H.then(function(b){return b.Pe(a)}).then(null,LK))};_.g.Hxa=function(a){return this.V.oya(a.clone())};_.g.G8=function(a){return this.H.then(function(b){return b.Pe(a)}).then(null,LK)};
_.g.CP=function(a){return this.H.then(function(b){return b.Pe(a)}).then(function(b){var c=new _.fn;qyc(a,b).then(function(d){return c.resolve(d)});return new HLc(c.promise)},function(b){LK(b)})};_.g.eIa=function(a){var b=this;return new fLc(this.context,a,function(c){return b.H.then(function(d){return d.Pe(c)}).then(null,function(d){return LK(d)})})};_.g.fIa=function(a){return this.H.then(function(b){return b.Pe(a)}).then(null,LK)};
_.g.ad=function(a){return _.gi(this.H.then(function(b){return b.Pe(a)}).then(null,LK))};_.g.sO=function(a){return this.H.then(function(b){return b.Pe(a)}).then(null,LK)};_.g.WC=function(a){var b=this,c=[],d=[];a.forEach(function(f){f instanceof _.QI?c.push(String(f.qc())):c.push(String(f.getId()));d.push(b.ad(f))});a=new _.Tn(d);var e=new _.ai;a.addCallback(this.Lob.bind(this,e,c));return e};
_.g.rya=function(){return new DKc(this.context.Xc,this.context.jB,this.context.UR().oga,this.context.Km(),this.context.MQ,this.context.Ce(),this.context.mk())};_.g.ms=function(a,b){var c=this,d=_.ph();this.W.create(d,a);3===a.getType()?a=uM.prototype.ms.call(this,a).addCallback(function(e){return new _.nK(e,1,!1)}):(PL(this.O,"Qubz4b"),a=this.La.enqueue(new vKc(a,b)));return a.addCallback(function(e){Kwc(c.W,d,e);return e.response}).zg(function(){IL(c.W,d)})};
_.g.Ar=function(a){return _.gi(this.H.then(function(b){return b.Pe(a)}).then(null,LK))};_.g.Yaa=function(a){return _.gi(this.H.then(function(b){return b.Pe(a)}).then(null,LK))};_.g.m9=function(a){return _.gi(this.H.then(function(b){return b.Pe(a)}).then(null,LK))};_.g.ST=function(a){return _.gi(this.H.then(function(b){return b.Pe(a)}).then(null,LK))};
_.g.ON=function(a,b){var c=this;PL(this.O,"iuEtc");var d=_.ph();this.W.create(d,a);return this.Ia.enqueue(new oKc(a,b)).addCallback(function(e){Kwc(c.W,d,e);return e.response}).zg(function(){IL(c.W,d)})};
_.g.pH=function(a,b){var c=this,d=_.se(this.context.Xc.Tf(),30);if(!d||0===d.length)return _.hi(new _.Gc("getUserPrefs requires a namespace.",_.NI(3)));0===_.se(a,3).length&&Soc(a,d);var e=_.ph();this.W.create(e,a);PL(this.O,"OZvrNc");return this.Qa.enqueue(new AKc(a,b)).addCallback(function(f){Kwc(c.W,e,f);return f.response}).zg(function(){IL(c.W,e)})};_.g.PS=function(a){GLc(_.se(this.context.Xc.Tf(),30),a);return _.gi(this.H.then(function(b){return b.Pe(a)}).then(null,LK))};
_.g.Cu=function(a){var b=this;return _.gi(this.H.then(function(c){return c.Pe(a)}).then(function(c){return _.mI(b.context.Xc)?eyc(b.context.Df.Lq,c):c},LK))};_.g.VMa=function(a){return this.V.Gya(a.clone())};_.g.Fra=function(a){return this.V.Fya(a.clone())};_.g.pLa=function(a){var b=this;return new gLc(this.context,a,function(c){return b.H.then(function(d){return d.Pe(c)}).then(null,function(d){return LK(d)})})};_.g.qLa=function(a){return this.V.zya(a.clone())};
_.g.t0=function(a){aFc(this.context.Df,[a])};_.g.T0=function(a){return this.H.then(function(b){return b.Pe(a)}).then(null,LK)};_.g.Fo=function(a){if(1!==_.XJ(this.context.Xc))return Promise.reject(Error("dh"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.qc())return Promise.reject(Error("eh"));if(!_.BI(c)&&!c.getItem())return Promise.reject(Error("fh"))}this.context.Df.Fo(a);PFc(this.context.Df);return Promise.resolve()};_.g.jDa=function(){return this.context.UR().xK()};
_.g.jz=function(a){var b=this;return this.context.jz(a).then(function(c){return c?(b.context.Kj().jz(a),b.context.Ys.FL()):_.Wh(!a)})};_.g.dZ=function(a){EJc(this.context).dZ(a);this.jz(!!a)};_.g.MF=function(){yM(this.context).addCallback(function(a){a&&a.upa()});this.context.Uha.MF()};_.g.aZ=function(a){a.bPa(this.context)};_.g.Lob=function(a,b,c){for(var d={},e=0;e<c.length;e++)d[b[e]]=c[e][1];PFc(this.context.Df);a.callback(d)};
_.g.sync=function(){var a=this;return _.Yh([this.context.Uaa.promise,this.context.pga.promise]).then(function(){return yM(a.context).then()}).then(function(b){return new _.Vh(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(){yM(this.context).addCallback(function(a){a&&a.dispose()});return uM.prototype.Zu.call(this)};_.g.mca=function(){return this.kb.promise};
var SLc=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>")};
_.dn({id:_.Kl,callback:function(a){var b=_.rnc(a),c=Dpc(a),d=_.y(a.get(_.Hd),_.Pc,10);_.Fic(d,b);_.rj(d,28,c);b=Bpc(a,d);a.registerService(_.Ll,b.A$());_.si(b,"VbxEwf",function(){var e={};_.Bd(_.cr.getService(a),new _.bq(new _.aq(SLc,{}),"d",(e.reload=function(){_.n.window.location.reload()},e),4))});return b}});

_.u();

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

_.TLc=function(a,b){return _.x(a,2,b)};_.ULc=function(a,b){return _.x(a,1,b)};_.VLc=function(a,b){return _.G(a,2,b)};_.WLc=function(a,b){return _.tj(a,1,b)};_.XLc=function(a,b){return _.rj(a,1,b)};_.YLc=function(a,b){return _.tj(a,2,b)};_.ZLc=function(a,b){return _.G(a,3,b)};

_.u();

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