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

_.W("a","block",1,function(a){a=a||{};return(0,_.I)('<svg class="'+(a.ob?_.F("a-s-fa-Ha-pa"):"")+'" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"/></svg>')});

_.w();

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


_.w();

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

_.w();

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

_.w();

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

_.w();

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

_.w();

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

_.w();

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

_.w();

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

_.w();

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

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.Pub=function(a,b,c,d,e,f,h){return(0,_.I)(_.Qn("a",b,!1)({fillColor:d,mb:c,color:"#000000",ob:!0,us:e,size:f,Xd:h},a))};_.t("sy137");

_.w();

}catch(e){_._DumpException(e)}
try{
_.czb=function(a){a=parseInt(_.B(a,3)||"0",10);return 100<=a?"over":90<=a?"near":"under"};_.ezb=function(a,b,c,d){var e=_.Le.getService(a);a=e.qg(a,c);_.dzb(a.H.Ck,b,d);e.Zf(a)};_.dzb=function(a,b,c){var d=new _.fzb;b.IU&&_.y(d,2,b.IU);b.fG&&0<=b.fG&&_.y(d,1,b.fG);b.quotaType&&_.y(d,3,b.quotaType);_.gzb(a,d);c&&(b=new _.hzb,_.y(b,1,c),_.izb(a,b))};_.jzb=function(a){return isNaN(a)?0:100<=a?6:95<=a?5:90<=a?4:80<=a?3:70<=a?2:1};_.kzb=function(a,b){return!_.S(a,6,!1)||_.S(b,15,!1)};
_.gzb=function(a,b){b&&(a=a.Yc(),_.J(a,29,b))};_.izb=function(a,b){b&&(a=a.Yc(),_.J(a,38,b))};_.fzb=function(a){_.K.call(this,a)};_.N(_.fzb,_.K);_.hzb=function(a){_.K.call(this,a)};_.N(_.hzb,_.K);_.hzb.prototype.Ph=function(){return _.B(this,1)};_.t("sy16z");
_.mzb=function(a,b,c){var d=_.E(a.get(_.GDa),1,""),e=_.czb(b);d=new _.ej(d);a:switch(e){case "over":var f="o";break a;case "near":f="u";break a;default:f="m"}return _.jj(_.lj(_.lj(_.lj(_.lj(d,"i",f),"utm_source","drive"),"utm_medium","web"),"utm_campaign",_.lzb(a,e,c)),-1!=parseInt(String(_.C(b,_.Zx,2)),10)?"upgrade":"")};
_.lzb=function(a,b,c){switch(c){case "settings":return"settings";case "upload_dialog":return"upload_dialog_oos";case "widget":switch(b){case "over":return"widget_oos";case "near":return"widget_near_quota";default:return"widget_normal"}default:switch(b){case "near":case "over":return"upsell";default:return"manage"}}};
_.nzb=function(a,b,c){if(!b)return"g1_widget_unknown";a=Number(_.B(b,3));return c?isNaN(a)?"g1_settings":100<=a?"g1_settings_oos":90<=a?"g1_settings_ninety":80<=a?"g1_settings_eighty":70<=a?"g1_settings_seventy":"g1_settings_normal":isNaN(a)?"g1_widget_unknown":100<=a?"g1_widget_oos":90<=a?"g1_widget_ninety":80<=a?"g1_widget_eighty":70<=a?"g1_widget_seventy":"g1_widget_normal"};

_.w();

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

var TBb=_.lzb,UBb=_.mzb,VBb=_.nzb;_.lzb=function(a,b,c){return"over"==b&&_.Ml(a.get(_.ac))?"widget_trial":TBb(a,b,c)};_.mzb=function(a,b,c){c=UBb(a,b,c);"over"===_.czb(b)&&_.Ml(a.get(_.ac))&&_.lj(c,"eft","1");return c};_.nzb=function(a,b,c){b=VBb(a,b,c);a=_.Ml(a.get(_.ac));return"g1_settings_oos"===b&&a?"g1_settings_trial":"g1_widget_oos"===b&&a?"g1_widget_trial":b};

_.w();

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


_.w();

}catch(e){_._DumpException(e)}
try{
var Gub,Jub;Gub=[4,5,6,7];_.wB=function(a){_.K.call(this,a)};_.N(_.wB,_.K);_.wB.prototype.Bb=function(){return _.B(this,1)};_.wB.prototype.Bc=function(a){return _.y(this,1,a)};_.wB.prototype.i$=function(){return _.B(this,2)};_.wB.prototype.Vb="JmcaR";_.Hub=function(a){_.K.call(this,a)};_.N(_.Hub,_.K);_.Hub.prototype.O=function(){return _.Q(this,1)};_.Hub.prototype.Vb="dvhrqe";_.Iub=function(a){_.K.call(this,a)};_.N(_.Iub,_.K);_.Iub.prototype.ap=function(){return _.B(this,2)};
_.Iub.prototype.K1=function(){return _.B(this,3)};Jub=[5];_.Kub=function(a){_.K.call(this,a)};_.N(_.Kub,_.K);_.Kub.prototype.O=function(){return _.Q(this,4)};_.Kub.prototype.setActive=function(a){return _.y(this,4,a)};_.Lub=function(a){_.K.call(this,a,-1,Jub)};_.N(_.Lub,_.K);_.g=_.Lub.prototype;_.g.IZ=function(){return _.B(this,1)};_.g.JT=function(){return _.B(this,3)};_.g.TJ=function(){return _.Rj(this,_.Iub,5)};_.g.Ml=function(){return _.B(this,6)};_.g.zq=function(){return _.B(this,7)};
_.g.KQ=function(){return _.B(this,9)};_.g.Ws=function(){return _.B(this,10)};_.g.cN=function(){return _.C(this,_.Kub,12)};_.g.Pk=function(){return _.B(this,13)};_.g.WC=function(){return _.B(this,16)};_.g.$yb=function(){return _.P(this,16)};_.g.Kz=function(){return _.B(this,17)};_.g.Vb="dzR11e";_.Mub=function(a){_.K.call(this,a,-1,Gub)};_.N(_.Mub,_.K);_.Mub.prototype.O=function(){return _.C(this,_.Lub,1)};_.Mub.prototype.dN=function(){return _.C(this,_.wB,8)};
_.Mub.prototype.V=function(){return _.C(this,_.Hub,9)};_.t("sy133");
_.xB=function(a){_.K.call(this,a,-1,Nub)};_.N(_.xB,_.K);_.xB.prototype.getUser=function(){return _.C(this,_.Gk,1)};_.xB.prototype.getMetadata=function(){return _.C(this,_.Mub,3)};_.xB.prototype.vo=function(){return _.P(this,3)};var Nub=[2];

_.w();

}catch(e){_._DumpException(e)}
try{
_.oc=function(a){_.gi.call(this,_.yc);this.error=a};_.N(_.oc,_.gi);_.t("sy134");
var qnb;_.tA=function(a){_.K.call(this,a,-1,qnb)};_.N(_.tA,_.K);_.tA.prototype.O=function(){return _.Qd(this,1)};_.uA=function(a,b){return _.Jj(a,1,b)};_.tA.prototype.hn=function(){return _.Qd(this,2)};_.vA=function(a,b){return _.Jj(a,2,b)};_.tA.prototype.ve=function(){return _.C(this,_.rf,3)};_.wA=function(a,b){return _.J(a,3,b)};_.rnb=function(a,b){return _.y(a,5,b)};qnb=[1,2,6,11];

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.yB=function(a){return a instanceof _.nc?a:a instanceof _.mc?new _.nc(void 0,a):a instanceof Error?new _.nc(a.message,void 0,a):new _.nc("Not an Error",void 0,Error("sb`"+JSON.stringify(a)))};_.Oub=function(a){return a instanceof Error?_.yB(a).Rg:a instanceof _.nc?a.Rg:a};_.t("sy136");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy138");
_.zB={wL:"jb",Iga:"kb",nU:"lb",mU:"mb"};_.Qub=new Map([[_.zB.wL,1],[_.zB.Iga,2],[_.zB.nU,2],[_.zB.mU,3]]);

_.w();

}catch(e){_._DumpException(e)}
try{
_.jA=function(a){if(Array.isArray(a))return a.map(_.jA).join("");if(_.B(a,2)){if(!a.getId())throw Error("sd");return a.getId()+"/"+_.B(a,2)+","}return""};_.t("sy14h");

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy16t");
/*

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

_.w();

}catch(e){_._DumpException(e)}
try{
var Cyb;_.Byb=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")};Cyb=function(a){var b=_.paa(_.QEa,function(c){return a==c});if(void 0===b)throw Error("qb`"+a);return b};_.Dyb=function(a,b){void 0!==a.name?(this.name=a.name,this.code=_.QEa[a.name]):(this.code=a=a.code,this.name=Cyb(a));_.ea.call(this,_.Byb("%s %s",this.name,b))};_.Of(_.Dyb,_.ea);var Eyb=function(a,b){_.gi.call(this,a.type,b)};
_.Of(Eyb,_.gi);_.t("sy16u");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Fyb=function(){_.qi.call(this);this.H=new FileReader;this.H.onloadstart=(0,_.u)(this.l0,this);this.H.onprogress=(0,_.u)(this.l0,this);this.H.onload=(0,_.u)(this.l0,this);this.H.onabort=(0,_.u)(this.l0,this);this.H.onerror=(0,_.u)(this.l0,this);this.H.onloadend=(0,_.u)(this.l0,this)};_.Of(_.Fyb,_.qi);_.g=_.Fyb.prototype;_.g.abort=function(){try{this.H.abort()}catch(a){throw new _.Dyb(a,"aborting read");}};_.g.Vj=function(){return this.H.result};
_.g.getError=function(){return this.H.error&&new _.Dyb(this.H.error,"reading file")};_.g.l0=function(a){this.dispatchEvent(new Eyb(a,this))};_.g.Ya=function(){_.Fyb.wb.Ya.call(this);delete this.H};

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy18e");
_.UC=function(a){_.K.call(this,a)};_.N(_.UC,_.K);_.UC.prototype.ha=function(){return _.zj(this,1)};_.UC.prototype.V=function(){return _.zj(this,2)};_.UC.prototype.O=function(){return _.zj(this,3)};

_.w();

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

_.w();

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

_.w();

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

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.ntb=function(a){_.K.call(this,a)};_.N(_.ntb,_.K);_.ntb.prototype.O=function(){return _.B(this,1)};_.ntb.prototype.Bb=function(){return _.B(this,2)};_.ntb.prototype.Bc=function(a){return _.y(this,2,a)};_.ntb.prototype.V=function(){return _.B(this,3)};_.t("sy197");
_.ptb=function(a){_.K.call(this,a,-1,otb)};_.N(_.ptb,_.K);_.ptb.prototype.O=function(){return _.Qd(this,1)};var otb=[1];
_.rtb=function(a){_.K.call(this,a,-1,qtb)};_.N(_.rtb,_.K);_.rtb.prototype.O=function(){return _.Rj(this,_.ntb,1)};var qtb=[1];
_.ttb=function(a){_.K.call(this,a,-1,stb)};_.N(_.ttb,_.K);_.ttb.prototype.O=function(){return _.Rj(this,_.rtb,1)};var stb=[1];
_.utb=function(a){_.K.call(this,a)};_.N(_.utb,_.K);_.utb.prototype.V=function(){return _.C(this,_.ttb,1)};_.utb.prototype.O=function(){return _.C(this,_.ptb,2)};
_.mB=function(a){_.K.call(this,a,-1,vtb)};_.N(_.mB,_.K);_.g=_.mB.prototype;_.g.Bb=function(){return _.B(this,1)};_.g.Bc=function(a){return _.y(this,1,a)};_.g.xd=function(){return _.Rj(this,_.cl,2)};_.g.Pw=function(a){return _.Mj(this,2,a)};_.g.mh=function(a,b){return _.Tj(this,2,a,_.cl,b)};_.g.Uj=function(){return _.B(this,3)};_.g.fl=function(){return _.S(this,5,!0)};_.g.W5=function(){return _.C(this,_.utb,7)};_.g.Nra=function(){return _.Q(this,8)};_.g.Wf=function(){return _.B(this,17)};
_.g.sP=function(a){return _.y(this,17,a)};_.g.Ye=function(){return _.B(this,12)};_.g.Ei=function(a){return _.y(this,12,a)};_.g.Vn=function(){return _.B(this,15)};_.g.aka=function(){return _.Qd(this,18)};var vtb=[2,14,18];

_.w();

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

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1af");
_.ED=function(a){_.K.call(this,a)};_.N(_.ED,_.K);_.ED.prototype.getKey=function(){return _.C(this,_.Rb,1)};_.ED.prototype.ht=function(){return _.P(this,1)};_.ED.prototype.ve=function(){return _.C(this,_.rf,2)};
_.FD=function(a){_.K.call(this,a)};_.N(_.FD,_.K);_.FD.prototype.ve=function(){return _.C(this,_.rf,2)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1ag");
_.DD=function(a){_.K.call(this,a,-1,iDb)};_.N(_.DD,_.K);_.DD.prototype.ve=function(){return _.C(this,_.rf,1)};var iDb=[3];

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1ao");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.VD=function(a,b,c){_.O.call(this);this.Gn=null!=c?(0,_.u)(a,c):a;this.ka=b;this.Mg=(0,_.u)(this.I8a,this);this.O=!1;this.V=0;this.W=this.H=null;this.ha=[]};_.Of(_.VD,_.O);_.g=_.VD.prototype;_.g.oe=function(a){this.ha=arguments;this.O=!1;this.H?this.W=_.Mf()+this.ka:this.H=_.si(this.Mg,this.ka)};_.g.stop=function(){this.H&&(_.ti(this.H),this.H=null);this.W=null;this.O=!1;this.ha=[]};_.g.pause=function(){++this.V};
_.g.resume=function(){this.V&&(--this.V,!this.V&&this.O&&(this.O=!1,this.Gn.apply(null,this.ha)))};_.g.Ya=function(){this.stop();_.VD.wb.Ya.call(this)};_.g.I8a=function(){this.H&&(_.ti(this.H),this.H=null);this.W?(this.H=_.si(this.Mg,this.W-_.Mf()),this.W=null):this.V?this.O=!0:(this.O=!1,this.Gn.apply(null,this.ha))};

_.w();

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

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1d4");
_.gG=function(a){_.K.call(this,a)};_.N(_.gG,_.K);_.gG.prototype.getName=function(){return _.B(this,1)};_.gG.prototype.$c=function(a){return _.y(this,1,a)};_.gG.prototype.ve=function(){return _.C(this,_.rf,2)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1d7");
_.hG=function(a){_.K.call(this,a)};_.N(_.hG,_.K);_.g=_.hG.prototype;_.g.xi=function(){return _.B(this,1)};_.g.ri=function(a){return _.y(this,1,a)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.ve=function(){return _.C(this,_.rf,3)};_.g.Ip=function(){return _.B(this,4)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1d8");
var RVb;_.iG=function(a){_.K.call(this,a,-1,RVb)};_.N(_.iG,_.K);_.iG.prototype.O=function(){return _.Qd(this,1)};_.iG.prototype.hn=function(){return _.Qd(this,2)};_.SVb=function(a,b){return _.Jj(a,2,b)};_.iG.prototype.ve=function(){return _.C(this,_.rf,3)};_.TVb=function(a,b){return _.J(a,3,b)};RVb=[1,2];

_.w();

}catch(e){_._DumpException(e)}
try{
_.jG=function(a){_.K.call(this,a)};_.N(_.jG,_.K);_.g=_.jG.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.getState=function(){return _.B(this,5)};_.g.Id=function(a){return _.y(this,5,a)};_.g.jt=function(){return _.P(this,5)};_.t("sy1d9");
_.kG=function(a){_.K.call(this,a,-1,UVb)};_.N(_.kG,_.K);_.kG.prototype.hn=function(){return _.Qd(this,1)};_.VVb=function(a,b){return _.Jj(a,1,b)};_.kG.prototype.ve=function(){return _.C(this,_.rf,2)};var UVb=[1,3];

_.w();

}catch(e){_._DumpException(e)}
try{
_.lG=function(a,b){return _.y(a,4,b)};_.WVb=function(a,b){_.y(a,11,b)};_.XVb=function(a,b){return _.y(a,25,b)};_.t("sy1da");

_.w();

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

_.w();

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

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1de");
_.vG=function(a){_.K.call(this,a)};_.N(_.vG,_.K);_.vG.prototype.Ac=function(){return _.B(this,1)};_.UWb=function(a){var b=new _.vG;return _.y(b,1,a)};_.vG.prototype.xi=function(){return _.B(this,2)};_.vG.prototype.ri=function(a){return _.y(this,2,a)};_.vG.prototype.ve=function(){return _.C(this,_.rf,3)};

_.w();

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

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1ii");
/*

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1j8");
/*

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.Gcc=function(a,b,c){_.$i(a.url,function(d){d=d.target;d.tv()?b(d.zl()):c(d.Bb())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};_.Hcc=function(a,b,c,d){return _.E(a,1).split("/").pop()==d?(d=_.B(a,2),Array.isArray(d)?new b(d):c(_.pb(a.Za()))):null};_.t("sy1iz");
_.Jcc=function(a){_.K.call(this,a,-1,Icc)};_.N(_.Jcc,_.K);var Icc=[2];
_.Kcc=function(a){_.K.call(this,a)};_.N(_.Kcc,_.K);var Lcc=function(){var a=new _.Kcc,b=document.documentElement.getAttribute("lang");return _.y(a,5,b)};_.Kcc.prototype.Ji=function(){return _.B(this,7)};
_.Mcc=function(a){_.K.call(this,a)};_.N(_.Mcc,_.K);
var Ncc;_.XH=function(a){_.K.call(this,a,31,Ncc)};_.N(_.XH,_.K);_.YH=function(a,b){return _.y(a,8,b)};Ncc=[3,20,27];
var Pcc=function(a){_.K.call(this,a,17,Occ)};_.N(Pcc,_.K);var Qcc=function(a){var b=Date.now().toString();return _.y(a,4,b)},Rcc=function(a,b){return _.Mj(a,3,b)},Scc=function(a,b){return _.y(a,14,b)},Occ=[3,5];
var Ucc=function(a){_.K.call(this,a,6,Tcc)};_.N(Ucc,_.K);var Tcc=[5];
var Vcc=function(a){_.K.call(this,a)};_.N(Vcc,_.K);
var Wcc=new _.uk(175237375,Vcc);
_.ZH=function(a,b,c,d,e,f,h,k,l,p,q){_.qi.call(this);var r=this;this.Ka="";this.O=[];this.Hc="";this.Gb=this.Nb=this.ha=!1;this.Sc=this.rb=-1;this.Rb=!1;this.Fa=this.V=null;this.va=0;this.le=1;this.timeoutMillis=0;this.kb=!1;_.qi.call(this);this.Uc=a;this.oc=b||_.Kf;this.ka=new Pcc;this.Dd=d;this.Ab=q;this.ne=_.Ab(_.bja,0,1);this.Ba=e||null;this.Ha=c||null;this.Ta=h||!1;this.$a=l||null;this.Ad=null;this.withCredentials=!k;this.zc=f||!1;this.Qd=!this.zc&&(_.tj.Ln&&_.Cb(65)||_.tj.Hu&&_.Cb(45)||_.tj.Sx&&
_.Cb(12)||_.Sg()&&0<=_.hg(_.Cia(),12))&&!!_.pf()&&!!_.pf().navigator&&!!_.pf().navigator.sendBeacon;a=_.y(new _.Mcc,1,1);f||(f=Lcc(),_.J(a,11,f));_.J(this.ka,1,a);_.y(this.ka,2,this.Uc);this.ma=new _.VH(1E4,3E5,.1);this.H=new _.ri(this.ma.Za());this.Ma(this.H);_.ye(this.H,"tick",_.nga(Xcc(this,p)),!1,this);this.Qa=new _.ri(6E5);this.Ma(this.Qa);_.ye(this.Qa,"tick",_.nga(Xcc(this,p)),!1,this);this.Ta||this.Qa.start();this.zc||(_.ye(_.pf(),"beforeunload",this.ta,!1,this),_.ye(_.pf(),"unload",this.ta,
!1,this),_.ye(document,"visibilitychange",function(){"hidden"===document.visibilityState&&r.ta()}),_.ye(document,"pagehide",this.ta,!1,this))};_.N(_.ZH,_.qi);var Xcc=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};_.ZH.prototype.Ya=function(){this.ta();_.qi.prototype.Ya.call(this)};var Ycc=function(a){a.Ba||(a.Ba=.01>a.ne()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.Ba};
_.ZH.prototype.W=function(a){a instanceof _.XH?this.log(a):(a=_.YH(new _.XH,a.Kc()),this.log(a))};_.Zcc=function(a,b){b?(a.V||(a.V=new _.Jcc),b=b.Kc(),_.y(a.V,4,b)):a.V&&_.Kj(a.V,4)};_.$cc=function(a){a.Nb=a.Qd};_.adc=function(a,b){a.ma=new _.VH(1>b?1:b,3E5,.1);a.H.setInterval(a.ma.Za())};
_.ZH.prototype.log=function(a){a=a.clone();var b=this.le++;_.y(a,21,b);this.Ka&&_.y(a,26,this.Ka);if(!_.B(a,1)){b=a;var c=Date.now().toString();_.y(b,1,c)}_.P(a,15)||_.y(a,15,60*(new Date).getTimezoneOffset());this.V&&(b=this.V.clone(),_.J(a,16,b));for(;1E3<=this.O.length;)this.O.shift(),++this.va;this.O.push(a);this.dispatchEvent(new bdc(a));this.Ta||this.H.enabled||this.H.start()};
_.ZH.prototype.flush=function(a,b){var c=this;if(0===this.O.length)a&&a();else if(this.kb)cdc(this);else{var d=Date.now();if(this.Sc>d&&this.rb<d)b&&b("throttled");else{var e=Scc(Rcc(Qcc(this.ka.clone()),this.O),this.va);d={};var f=this.oc();f&&(d.Authorization=f);var h=Ycc(this);this.Ha&&(d["X-Goog-AuthUser"]=this.Ha,h=_.Ui(h,"authuser",this.Ha));this.$a&&(d["X-Goog-PageId"]=this.$a,h=_.Ui(h,"pageId",this.$a));if(f&&this.Hc===f)b&&b("stale-auth-token");else if(this.O=[],this.H.enabled&&this.H.stop(),
this.va=0,this.ha)a&&a();else{var k=e.Kc(),l;this.Fa&&this.Fa.ju(k.length)&&(l=this.Fa.m7b(k));var p={url:h,body:k,Gkb:1,requestHeaders:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},q=function(z){c.ma.reset();c.H.setInterval(c.ma.Za());if(z){var A=null;try{var D=JSON.parse(z.replace(")]}'\n",""));A=new Ucc(D)}catch(G){}A&&(z=Number(_.Vma(A,1,"-1")),0<z&&(c.rb=Date.now(),c.Sc=c.rb+z),A=_.qb(A,Wcc))&&(A=_.Zj(A,1,-1),-1!=A&&(c.Rb||_.adc(c,A)))}a&&a()},r=
function(z){var A=_.Rj(e,_.XH,3);_.WH(c.ma);c.H.setInterval(c.ma.Za());401===z&&f&&(c.Hc=f);if(500<=z&&600>z||401===z||0===z)c.O=A.concat(c.O),c.Ta||c.H.enabled||c.H.start();b&&b("net-send-failed",z)},v=function(){c.Ab?c.Ab.send(p,q,r):c.Dd(p,q,r)};l?l.then(function(z){p.requestHeaders["Content-Encoding"]="gzip";p.requestHeaders["Content-Type"]="application/binary";p.body=z;p.Gkb=2;v()},function(){v()}):v()}}}};_.ZH.prototype.ta=function(){this.ha||(this.Nb&&cdc(this),this.Gb&&ddc(this),this.flush())};
var cdc=function(a){edc(a,32,10,function(b,c){b=_.Ui(b,"format","json");b=_.pf().navigator.sendBeacon(b,c.Kc());a.kb&&!b&&(a.kb=!1);return b})},ddc=function(a){edc(a,6,5,function(b,c){b=_.Si(b,"format","base64json","p",_.uj(c.Kc(),3));_.Ag(new Image,b);return!0})},edc=function(a,b,c,d){if(0!==a.O.length){var e=_.Tla(Ycc(a),"format");e=_.Si(e,"auth",a.oc(),"authuser",a.Ha||"0");for(var f=0;f<c&&a.O.length;++f){var h=a.O.slice(0,b),k=Rcc(Qcc(a.ka.clone()),h);0===f&&Scc(k,a.va);if(!d(e,k))break;a.O=
a.O.slice(h.length)}a.H.enabled&&a.H.stop();a.va=0}},bdc=function(){_.gi.call(this,"event-logged",void 0)};_.N(bdc,_.gi);

_.w();

}catch(e){_._DumpException(e)}
try{
var fdc=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,z=0;64>z;z+=4)v[z/4]=r[z]<<24|r[z+1]<<16|r[z+2]<<8|r[z+3];for(z=16;80>z;z++)r=v[z-3]^v[z-8]^v[z-14]^v[z-16],v[z]=(r<<1|r>>>31)&4294967295;r=e[0];var A=e[1],D=e[2],G=e[3],H=e[4];for(z=0;80>z;z++){if(40>z)if(20>z){var L=G^A&(D^G);var M=1518500249}else L=A^D^G,M=1859775393;else 60>z?(L=A&D|G&(A|D),M=2400959708):(L=A^D^G,M=3395469782);L=((r<<5|r>>>27)&4294967295)+
L+H+M+v[z]&4294967295;H=G;G=D;D=(A<<30|A>>>2)&4294967295;A=r;r=L}e[0]=e[0]+r&4294967295;e[1]=e[1]+A&4294967295;e[2]=e[2]+D&4294967295;e[3]=e[3]+G&4294967295;e[4]=e[4]+H&4294967295}function c(r,v){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var z=[],A=0,D=r.length;A<D;++A)z.push(r.charCodeAt(A));r=z}v||(v=r.length);z=0;if(0==p)for(;z+64<v;)b(r.slice(z,z+64)),z+=64,q+=64;for(;z<v;)if(f[p++]=r[z++],q++,64==p)for(p=0,b(f);z+64<v;)b(r.slice(z,z+64)),z+=64,q+=64}function d(){var r=[],
v=8*q;56>p?c(k,56-p):c(k,64-(p-56));for(var z=63;56<=z;z--)f[z]=v&255,v>>>=8;b(f);for(z=v=0;5>z;z++)for(var A=24;0<=A;A-=8)r[v++]=e[z]>>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="",z=0;z<r.length;z++)v+="0123456789ABCDEF".charAt(Math.floor(r[z]/16))+"0123456789ABCDEF".charAt(r[z]%16);return v}}};_.t("sy1j6");
var gdc=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("Ne`"+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("Oe`"+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 idc=function(a,b,c){var d=String(_.n.location.href);return d&&a&&b?[b,hdc(gdc(d),a,c||null)].join(" "):null},hdc=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],_.Ja(d,function(k){e.push(k)}),jdc(e.join(" "));var f=[],h=[];_.Ja(c,function(k){h.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=_.pa(f)?[c,b,a]:[f.join(":"),c,b,a];_.Ja(d,function(k){e.push(k)});a=jdc(e.join(" "));a=[c,a];_.pa(h)||a.push(h.join(""));return a.join("_")},jdc=function(a){var b=
fdc();b.update(a);return b.digestString().toLowerCase()};
var kdc={};
var ldc,ndc;ldc=function(a){return!!kdc.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};_.mdc=function(a){a=void 0===a?!1:a;var b=_.n.__SAPISID||_.n.__APISID||_.n.__3PSAPISID||_.n.__OVERRIDE_SID;ldc(a)&&(b=b||_.n.__1PSAPISID);if(b)return!0;var c=new _.XPa(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");ldc(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};ndc=function(a,b,c,d){(a=_.n[a])||(a=(new _.XPa(document)).get(b));return a?idc(a,c,d):null};
_.odc=function(a,b){b=void 0===b?!1:b;var c=gdc(String(_.n.location.href)),d=[];if(_.mdc(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 _.XPa(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?idc(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&ldc(b)&&((b=ndc("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=ndc("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",
a))&&d.push(a))}return 0==d.length?null:d.join(" ")};

_.w();

}catch(e){_._DumpException(e)}
try{
_.$H=function(a,b){a.H=b;a.ka=0};_.aI=function(a,b){return _.y(a,b,_.mb([]))};_.t("sy1j9");
_.bI=function(a,b,c,d,e,f,h){_.ZH.call(this,a,_.odc,b,_.Gcc,c,d,e,void 0,f,h)};_.N(_.bI,_.ZH);

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1k2");
_.pdc=function(a){_.K.call(this,a)};_.N(_.pdc,_.K);_.g=_.pdc.prototype;_.g.getKey=function(){return _.B(this,1)};_.g.ht=function(){return _.P(this,1)};_.g.Za=function(){return _.B(this,2)};_.g.Jb=function(a){return _.y(this,2,a)};_.g.Ri=function(){return _.Kj(this,2)};_.g.ih=function(){return _.P(this,2)};
_.cI=function(a){_.K.call(this,a,-1,qdc)};_.N(_.cI,_.K);_.cI.prototype.Oz=function(){return _.B(this,1)};_.cI.prototype.getUrl=function(){return _.B(this,3)};var qdc=[2,4,6];

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1k3");
_.rdc={drive:1,appDataFolder:2,photos:3,androidBackup:4};_.sdc=_.Za(_.rdc);

_.w();

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

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.dI=function(a,b){a.V.remove(b);return a};_.eI=function(){return"goog_"+_.qia++};_.vdc=function(a,b,c,d,e,f){var h=new _.ej(null,void 0);a&&_.fj(h,a);b&&_.jma(h,b);c&&_.gj(h,c);d&&_.hj(h,d);e&&h.Fi(e);f&&_.ij(h,f);return h};_.fI=function(a){return new _.Nh(function(b){var c=a.length,d=[];if(c)for(var e=function(k,l,p){c--;d[k]=l?{Y8:!0,value:p}:{Y8:!1,reason:p};0==c&&b(d)},f=0,h;f<a.length;f++)h=a[f],_.Sja(h,_.Ab(e,f,!0),_.Ab(e,f,!1));else b(d)})};
_.gI=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top);a=Math.min(a.top+a.height,b.top+b.height);if(e<=a)return new _.Bq(c,e,d-c,a-e)}return null};_.hI=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};_.hI.prototype.clone=function(){return new _.hI(this.start,this.end)};_.iI=function(a){return a.end-a.start};_.t("sy1me");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.jI=function(a,b,c){_.O.call(this);this.Gn=null!=c?a.bind(c):a;this.ha=b;this.W=null;this.O=!1;this.V=0;this.H=null};_.N(_.jI,_.O);_.g=_.jI.prototype;_.g.oe=function(a){this.W=arguments;this.H||this.V?this.O=!0:wdc(this)};_.g.stop=function(){this.H&&(_.ti(this.H),this.H=null,this.O=!1,this.W=null)};_.g.pause=function(){this.V++};_.g.resume=function(){this.V--;this.V||!this.O||this.H||(this.O=!1,wdc(this))};_.g.Ya=function(){_.O.prototype.Ya.call(this);this.stop()};
var wdc=function(a){a.H=_.si(function(){a.H=null;a.O&&!a.V&&(a.O=!1,wdc(a))},a.ha);var b=a.W;a.W=null;a.Gn.apply(null,b)};

_.w();

}catch(e){_._DumpException(e)}
try{
var xdc,Adc;xdc=[3,42];_.ydc=function(a){_.K.call(this,a,-1,xdc)};_.N(_.ydc,_.K);_.ydc.prototype.getMimeType=function(){return _.B(this,27)};_.zdc=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};Adc=function(a,b){if(b&&a in b)return a;var c=_.MFa();return c?(c=c.toLowerCase(),a=c+_.tia(a),void 0===b||a in b?a:null):null};_.t("sy1mf");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Bdc=function(a){_.gi.call(this,"visibilitychange");this.hidden=a};_.N(Bdc,_.gi);
_.Cdc=function(a){_.qi.call(this);this.hd=a||_.jh();if(this.Cz=this.jrb())this.H=_.ye(this.hd.Ub(),this.Cz,(0,_.u)(this.v9a,this))};_.Of(_.Cdc,_.qi);_.g=_.Cdc.prototype;_.g.jrb=_.eda(function(){var a=this.ju(),b="hidden"!=this.sza();if(a){var c;b?c=((_.MFa()||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});_.g.sza=_.eda(function(){return Adc("hidden",this.hd.Ub())});_.g.Rsb=_.eda(function(){return Adc("visibilityState",this.hd.Ub())});_.g.ju=function(){return!!this.sza()};
_.g.yB=function(){return!!this.hd.Ub()[this.sza()]};_.g.v9a=function(){var a=this.ju()?this.hd.Ub()[this.Rsb()]:null;a=new Bdc(this.yB(),a);this.dispatchEvent(a)};_.g.Ya=function(){_.ni(this.H);_.Cdc.wb.Ya.call(this)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1mg");
/*

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

_.w();

}catch(e){_._DumpException(e)}
try{
var Edc;Edc=[2];_.lI=function(a){_.K.call(this,a,-1,Edc)};_.N(_.lI,_.K);_.lI.prototype.Bb=function(){return _.B(this,1)};_.lI.prototype.Bc=function(a){return _.y(this,1,a)};_.lI.prototype.vUa=function(){return _.Rj(this,_.m7a,2)};_.lI.prototype.Uj=function(){return _.B(this,3)};_.t("sy1n9");
var Fdc;_.mI=function(a){_.K.call(this,a,-1,Fdc)};_.N(_.mI,_.K);_.mI.prototype.O=function(){return _.Qd(this,1)};_.mI.prototype.ve=function(){return _.C(this,_.rf,2)};_.Gdc=function(a,b){return _.J(a,2,b)};_.mI.prototype.xi=function(){return _.Zj(this,3,20)};_.mI.prototype.ri=function(a){return _.y(this,3,a)};_.Hdc=function(a,b){return _.y(a,4,b)};Fdc=[1];

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1nn");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Idc=function(a){_.O.call(this);this.O=a;this.H={};this.O.wO((0,_.u)(this.V,this))};_.Of(_.Idc,_.O);_.Kdc=function(a,b){if(-1!=b.indexOf(":"))throw Error("Pe`"+b);if(b in a.H)throw Error("Qe`"+b);var c=new Jdc(a,b);return a.H[b]=c};_.Idc.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)}};_.Idc.prototype.Ya=function(){_.La(this.H,function(a){_.aa(a)});_.aa(this.O);delete this.H;delete this.O};
var Jdc=function(a,b){_.O.call(this);this.Og=a;this.H=b};_.Of(Jdc,_.O);_.g=Jdc.prototype;_.g.connect=function(a){a&&a()};_.g.isConnected=function(){return!0};_.g.registerService=function(a,b,c){this.Og.O.registerService(this.H+":"+a,(0,_.u)(this.HSa,this,b),c)};_.g.wO=function(a){this.O=(0,_.u)(this.HSa,this,a)};_.g.send=function(a,b){if(this.isDisposed())throw Error("Re");this.Og.O.send(this.H+":"+a,b)};_.g.HSa=function(a,b){this.isDisposed()||a.apply({},Array.prototype.slice.call(arguments,1))};
_.g.Ya=function(){this.Og=this.Og.H[this.H]=null};

_.w();

}catch(e){_._DumpException(e)}
try{
var Ldc=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(_.dga);try{delete a[_.dga]}catch(b){}},nI=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(_.Ba(f)){f[_.dga]||c.push(f);var l=_.Ca(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++)Ldc(c[a]);return b.join("")};_.t("sy1no");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Mdc,qI,Odc,Ndc;_.oI=function(a,b,c){if("number"===typeof a)var d={name:Ndc(a)};else d=a,a=Odc(a.name);this.code=a;this.O=d;b="Error "+b+": "+this.getName();c&&(b+=", "+c);_.ea.call(this,b)};_.Of(_.oI,_.ea);_.oI.prototype.getName=function(){return this.O.name||""};qI={pib:1,thb:2,NOT_FOUND_ERR:3,A7a:4,G7a:5,vhb:6,kib:7,ABORT_ERR:8,Khb:9,v5b:10,TIMEOUT_ERR:11,Hhb:12,INVALID_ACCESS_ERR:13,INVALID_STATE_ERR:14};_.Pdc=(_.n.pI||_.n.lL||qI).pib;_.Qdc=(_.n.pI||_.n.lL||qI).thb;_.Rdc=(_.n.pI||_.n.lL||qI).NOT_FOUND_ERR;
_.Sdc=(_.n.pI||_.n.lL||qI).A7a;_.Tdc=(_.n.pI||_.n.lL||qI).G7a;_.Udc=(_.n.pI||_.n.lL||qI).vhb;_.Vdc=(_.n.pI||_.n.lL||qI).kib;_.Wdc=(_.n.pI||_.n.lL||qI).ABORT_ERR;_.Xdc=(_.n.pI||_.n.lL||qI).Khb;_.Ydc=(_.n.pI||_.n.lL||qI).TIMEOUT_ERR;_.Zdc=(_.n.pI||_.n.lL||qI).Hhb;_.$dc=(_.n.DOMException||qI).INVALID_ACCESS_ERR;_.aec=(_.n.DOMException||qI).INVALID_STATE_ERR;
Odc=function(a){switch(a){case "UnknownError":return _.Pdc;case "NotFoundError":return _.Rdc;case "ConstraintError":return _.Sdc;case "DataError":return _.Tdc;case "TransactionInactiveError":return _.Vdc;case "AbortError":return _.Wdc;case "ReadOnlyError":return _.Xdc;case "TimeoutError":return _.Ydc;case "QuotaExceededError":return _.Zdc;case "InvalidAccessError":return _.$dc;case "InvalidStateError":return _.aec;default:return _.Pdc}};
Ndc=function(a){switch(a){case _.Pdc:return"UnknownError";case _.Rdc:return"NotFoundError";case _.Sdc:return"ConstraintError";case _.Tdc:return"DataError";case _.Vdc:return"TransactionInactiveError";case _.Wdc:return"AbortError";case _.Xdc:return"ReadOnlyError";case _.Ydc:return"TimeoutError";case _.Zdc:return"QuotaExceededError";case _.$dc:return"InvalidAccessError";case _.aec:return"InvalidStateError";default:return"UnknownError"}};
_.rI=function(a,b){return"error"in a?new _.oI(a.error,b):new _.oI({name:"UnknownError"},b)};_.sI=function(a,b){if("name"in a)return b=b+": "+a.message,new _.oI(a,b);if("code"in a){var c=Ndc(a.code);b=b+": "+a.message;return new _.oI({name:c},b)}return new _.oI({name:"UnknownError"},b)};
_.bec=function(a){this.H=a};_.cec=_.n.IDBKeyRange||_.n.webkitIDBKeyRange;_.bec.prototype.range=function(){return this.H};
var dec=function(a){this.H=a};dec.prototype.getName=function(){return this.H.name};var eec=function(a,b,c,d){var e=new _.Uh;try{var f=a.H[b](d)}catch(h){return c+=" with key "+nI(d),e.Hd(_.sI(h,c)),e}f.onsuccess=function(h){e.callback(h.target.result)};f.onerror=function(h){c+=" with key "+nI(d);e.Hd(_.rI(h.target,c))};return e};dec.prototype.get=function(a){return eec(this,"get","getting from index "+this.getName(),a)};
dec.prototype.getKey=function(a){return eec(this,"getKey","getting key from index "+this.getName(),a)};dec.prototype.getAll=function(a,b){return _.fec(this,"getAll","getting all from index "+this.getName(),a,b)};
_.fec=function(a,b,c,d,e){var f;void 0===d?f=void 0:f=d instanceof _.bec?d.range():(new _.bec(_.cec.only(d))).range();var h=new _.Uh;try{var k=a.H[b](f,e)}catch(l){return c+=" for range "+(f?nI(f):"<all>"),h.Hd(_.sI(l,c)),h}k.onsuccess=function(){h.callback(k.result)};k.onerror=function(l){c+=" for range "+(f?nI(f):"<all>");h.Hd(_.rI(l.target,c))};return h};
var gec=function(a){this.H=a};gec.prototype.getName=function(){return this.H.name};var hec=function(a,b,c,d,e){var f=new _.Uh;try{var h=e?a.H[b](d,e):a.H[b](d)}catch(k){return c+=nI(d),e&&(c+=", with key "+nI(e)),f.Hd(_.sI(k,c)),f}h.onsuccess=function(k){f.callback(k.target.result)};h.onerror=function(k){c+=nI(d);e&&(c+=", with key "+nI(e));f.Hd(_.rI(k.target,c))};return f};_.g=gec.prototype;_.g.put=function(a,b){return hec(this,"put","putting into "+this.getName()+" with value",a,b)};
_.g.add=function(a,b){return hec(this,"add","adding into "+this.getName()+" with value ",a,b)};_.g.remove=function(a){var b=new _.Uh;try{var c=this.H["delete"](a instanceof _.bec?a.range():a)}catch(e){return c="removing from "+this.getName()+" with key "+nI(a),b.Hd(_.sI(e,c)),b}c.onsuccess=function(){b.callback()};var d=this;c.onerror=function(e){var f="removing from "+d.getName()+" with key "+nI(a);b.Hd(_.rI(e.target,f))};return b};
_.g.get=function(a){var b=new _.Uh;try{var c=this.H.get(a)}catch(e){return c="getting from "+this.getName()+" with key "+nI(a),b.Hd(_.sI(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 "+nI(a);b.Hd(_.rI(e.target,f))};return b};_.g.getAll=function(a,b){return iec(this,"getting all from index "+this.getName(),a,b)};
var iec=function(a,b,c,d){var e;void 0===c?e=void 0:e=c instanceof _.bec?c.range():(new _.bec(_.cec.only(c))).range();var f=new _.Uh;try{var h=a.H.getAll(e,d)}catch(k){return b+=" for range "+(e?nI(e):"<all>"),f.Hd(_.sI(k,b)),f}h.onsuccess=function(){f.callback(h.result)};h.onerror=function(k){b+=" for range "+(e?nI(e):"<all>");f.Hd(_.rI(k.target,b))};return f};
gec.prototype.clear=function(){var a="clearing store "+this.getName(),b=new _.Uh;try{var c=this.H.clear()}catch(d){return b.Hd(_.sI(d,a)),b}c.onsuccess=function(){b.callback()};c.onerror=function(d){b.Hd(_.rI(d.target,a))};return b};gec.prototype.getIndex=function(a){try{return new dec(this.H.index(a))}catch(b){throw _.sI(b,"getting index "+a);}};
gec.prototype.count=function(a){var b=new _.Uh;try{var c=this.H.count(a?a.range():null);c.onsuccess=function(e){b.callback(e.target.result)};var d=this;c.onerror=function(e){b.Hd(_.rI(e.target,d.getName()))}}catch(e){b.Hd(_.sI(e,this.getName()))}return b};
var jec=function(a,b){_.qi.call(this);this.H=a;this.O=b;this.Cb=new _.Je(this);this.Cb.listen(this.H,"complete",(0,_.u)(this.dispatchEvent,this,"complete"));this.Cb.listen(this.H,"abort",(0,_.u)(this.dispatchEvent,this,"abort"));this.Cb.listen(this.H,"error",this.w9a)};_.Of(jec,_.qi);_.g=jec.prototype;_.g.w9a=function(a){a.target instanceof _.oI?this.dispatchEvent({type:"error",target:a.target}):this.dispatchEvent({type:"error",target:_.rI(a.target,"in transaction")})};_.g.Ah=function(){return this.H.mode};
_.g.objectStore=function(a){try{return new gec(this.H.objectStore(a))}catch(b){throw _.sI(b,"getting object store "+a);}};_.g.commit=function(a){if(this.H.commit||!a)try{this.H.commit()}catch(b){throw _.sI(b,"cannot commit the transaction");}};
_.g.wait=function(){var a=new _.Uh;_.Pe(this,"complete",(0,_.u)(a.callback,a));var b=_.Pe(this,"abort",function(){_.ni(c);a.Hd(new _.oI(_.Wdc,"waiting for transaction to complete"))});var c=_.Pe(this,"error",function(e){_.ni(b);a.Hd(e.target)});var d=this.O;return a.addCallback(function(){return d})};_.g.abort=function(){this.H.abort()};_.g.Ya=function(){jec.wb.Ya.call(this);this.Cb.dispose()};
var kec=function(a){_.qi.call(this);this.H=a;this.Cb=new _.Je(this);this.Cb.listen(this.H,"abort",(0,_.u)(this.dispatchEvent,this,"abort"));this.Cb.listen(this.H,"error",this.x9a);this.Cb.listen(this.H,"versionchange",this.Aob);this.Cb.listen(this.H,"close",(0,_.u)(this.dispatchEvent,this,"close"))};_.Of(kec,_.qi);_.g=kec.prototype;_.g.Xra=!0;_.g.x9a=function(a){a=(a=a.target)&&a.error;this.dispatchEvent({type:"error",errorCode:a&&a.severity})};
_.g.Aob=function(a){this.dispatchEvent(new lec(a.oldVersion,a.newVersion))};_.g.close=function(){this.Xra&&(this.H.close(),this.Xra=!1)};_.g.Cg=function(){return this.Xra};_.g.getName=function(){return this.H.name};_.g.zi=function(){return Number(this.H.version)};_.mec=function(a,b,c){try{return new gec(a.H.createObjectStore(b,c))}catch(d){throw _.sI(d,"creating object store "+b);}};
_.nec=function(a,b,c){try{var d=c?a.H.transaction(b,c):a.H.transaction(b);return new jec(d,a)}catch(e){throw _.sI(e,"creating transaction");}};kec.prototype.Ya=function(){kec.wb.Ya.call(this);this.Cb.dispose()};var lec=function(a,b){_.gi.call(this,"versionchange");this.oldVersion=a;this.newVersion=b};_.Of(lec,_.gi);
_.oec=function(){void 0==Mdc&&(Mdc=_.n.indexedDB||_.n.mozIndexedDB||_.n.webkitIndexedDB||_.n.moz_indexedDB);return Mdc};
_.pec=function(a,b,c,d){var e=new _.Uh;b=b?_.oec().open(a,b):_.oec().open(a);b.onsuccess=function(f){f=new kec(f.target.result);e.callback(f)};b.onerror=function(f){e.Hd(_.rI(f.target,"opening database "+a))};b.onupgradeneeded=function(f){if(c){var h=new kec(f.target.result);c(new lec(f.oldVersion,f.newVersion),h,new jec(f.target.transaction,h))}};b.onblocked=function(f){d&&d(new lec(f.oldVersion,f.newVersion))};return e};

_.w();

}catch(e){_._DumpException(e)}
try{
_.qec=function(a,b){this.ka=a;this.va=b;this.V="https://play.google.com/log?format=json&hasfast=true";this.W=!1;this.ma=_.Gcc;this.H=""};_.t("sy1np");
_.qec.prototype.build=function(){var a=new _.ZH(this.ka,this.Ka?this.Ka:_.odc,this.va,this.ma,this.V,this.W,!1,void 0,void 0,void 0,this.ta?this.ta:void 0);if(this.Fa){var b=this.Fa;_.B(b,1)||_.y(b,1,1);_.J(a.ka,1,b)}if(this.O){b=this.O;var c=_.C(a.ka,_.Mcc,1),d=_.C(c,_.Kcc,11);d||(d=new _.Kcc);_.y(d,7,b);_.J(c,11,d);_.B(c,1)||_.y(c,1,1);_.J(a.ka,1,c)}this.ha&&(a.Fa=this.ha);this.H&&(a.Ka=this.H);this.Ba&&_.Zcc(a,this.Ba);this.Qa&&(b=this.Qa,a.V||(a.V=new _.Jcc),_.Jj(a.V,2,b));this.Ha&&(b=this.Ha,
a.Rb=!0,_.adc(a,b));return a};

_.w();

}catch(e){_._DumpException(e)}
try{
_.rec=function(a,b,c){a.O[b.getId()]=c;a.H&&c.O(a.H)};_.t("sy1nq");
_.sec=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null};_.sec.prototype.uA=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=_.YH(new _.XH,a.Kc());b(a);return new _.Nh(function(d){c(d,function(){d()})}.bind(this))};
_.tec=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null;this.O&&_.$cc(this.O)};_.tec.prototype.uA=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=_.YH(new _.XH,a.Kc());b(a);c()};

_.w();

}catch(e){_._DumpException(e)}
try{
var uec=function(a){_.K.call(this,a)};_.N(uec,_.K);uec.prototype.getEmail=function(){return _.E(this,3,"")};uec.prototype.kp=function(){return _.P(this,3)};_.tI=function(a){return _.C(a,uec,36,1)};_.t("sy1nb");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1na");
_.uI=function(a){_.K.call(this,a)};_.N(_.uI,_.K);_.uI.prototype.ve=function(){return _.C(this,_.rf,1)};_.vI=function(a,b){return _.J(a,1,b)};_.uI.prototype.Jg=function(){return _.B(this,4)};_.uI.prototype.voa=function(a){return _.y(this,4,a)};

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
var vec=function(a){_.K.call(this,a)},Aec;_.N(vec,_.K);var wec=function(a){_.K.call(this,a)};_.N(wec,_.K);_.wI=function(a){_.K.call(this,a)};_.N(_.wI,_.K);_.wI.prototype.A4=function(a){_.y(this,3,a)};_.wI.prototype.Kl=function(a){return _.J(this,5,a)};_.wI.prototype.getMimeType=function(){return _.B(this,7)};var xec=[2],yec=function(a){_.K.call(this,a,-1,xec)};_.N(yec,_.K);var zec=function(a){_.K.call(this,a)};_.N(zec,_.K);Aec=function(a){this.H=a};_.Bec=function(a){this.jd=a};
_.Bec.prototype.getId=function(){return this.jd};var Cec=function(a){_.K.call(this,a)};_.N(Cec,_.K);Cec.prototype.zi=function(){return _.B(this,1)};var Dec=function(a){_.K.call(this,a)};_.N(Dec,_.K);
var Fec=function(){this.O=this.ha=!1;this.H=null;for(var a=this.W=this.V=0;a<_.dBa.length;a++){var b=_.dBa[a];if(b&&b.chrome&&b.chrome.runtime&&b.chrome.runtime.connect){this.ha=!0;Eec(this,b);break}}},Eec=function(a,b){a.H=b.chrome.runtime.connect("ciiamoeghmklpofjbocenebdfbgjapaa");a.O=!0;a.H.onDisconnect.addListener(function(){a.O=!1});document.addEventListener("mousemove",function(c){a.V=c.clientX;a.W=c.clientY})};
Fec.prototype.uA=function(a){if(this.ha&&this.O){var b=_.C(a,_.Nb,2)||new _.Nb,c=_.C(a,_.Xo,5)||new _.Xo,d=_.C(a,_.wI,3)||new _.wI;a=_.Rj(a,_.bza,1);a=_.m(a);for(var e=a.next();!e.done;e=a.next())this.H.postMessage({detail:{impression:e.value.Kc(),session_info:b.Kc(),session_invariants:c.Kc(),client_info:d.Kc()}});document.dispatchEvent(new CustomEvent("ripple",{detail:{clientX:this.V,clientY:this.W}}))}};_.t("sy1nf");
var Gec=function(){_.Qo.call(this)};_.N(Gec,_.Qo);Gec.prototype.sv=function(){return 1==_.B(_.C(this.H,vec,7),1)};var Hec=new _.Mo("high_frequency_builder");
var Iec=function(a,b,c){a=new _.ri(a);c.Ma(a);var d=new _.Je(c);c.Ma(d);d.listen(a,"tick",b);a.start()};
var Jec=function(){_.Qo.call(this)};_.N(Jec,_.Qo);var Kec=function(a,b,c){var d=1E3*Date.now();if(0==b){b=new _.Bo;var e=new _.Bya;e=_.y(e,1,d);_.J(b,1,e);_.y(b,3,1);_.J(a.H,8,b);_.y(a.H,12,c);_.y(a.H,13,c);_.y(a.H,4,d);_.y(a.H,3,c)}else 1==b&&(b=new _.Bo,e=new _.Cya,d=_.y(e,1,d),_.J(b,2,d),_.y(b,3,2),_.J(a.H,8,b),_.y(a.H,12,c),_.y(a.H,3,c));return a},Lec=new _.Mo("system_builder");
var Mec=function(a,b){_.O.call(this);this.O=a;this.H=new _.Cdc(b);this.Ma(this.H);this.Cb=new _.Je(this);this.Ma(this.Cb);this.H.ju()&&this.Cb.listen(this.H,"visibilitychange",this.V)};_.N(Mec,_.O);Mec.prototype.V=function(){if(this.O.vP()){var a=this.H.yB()?102001:102E3;a=this.O.PF(a,0);this.O.Qp(a)}};
var Nec=function(a,b,c){c=void 0===c?!1:c;_.O.call(this);this.H=a;this.O=b;this.Ma(this.O);this.W=c;this.V=null};_.N(Nec,_.O);_.g=Nec.prototype;_.g.Qp=function(a){var b=this.H;_.y(a.H,6,b.W);a=a.build();b.H.add(a);b.V=!0;b=this.O;3<=b.H.H.$b()&&b.O.oe();return new Aec(a)};_.g.PF=function(a,b){a=Kec(Oec(this.H,a),b,this.H.ha++);1==b&&this.H.ka.add(a);return a};_.g.AL=function(){return this.H.O};
_.g.hw=function(a){var b=this.H,c=_.Ro(a,Lec),d=b.ha++,e=_.C(_.C(c.H,_.Bo,8),_.Cya,2),f=1E3*Date.now();_.y(e,2,f);_.y(c.H,13,d);b.ka.remove(_.B(a.H,12))};_.g.JZ=function(){var a=this.O;if(!a.ha||a.H.V){var b=Pec(a.H,691).build();b=Qec(a.H,[b]);a.ka.uA(b)}a.W();this.H.ma=!1;this.V&&(_.aa(this.V),this.V=null)};_.g.KZ=function(){var a=this.H,b=Pec(a,716);Rec(a,b);b=b.build();a.H.add(b);a.va=!0;a.ma=!0;this.O.initialize();this.O.O.oe();this.W&&(this.V=new Mec(this))};_.g.dja=function(){this.O.W();return _.fI(Array.from(this.O.V)).then()};
_.g.vP=function(){var a=this.H;return a.va&&a.ma&&!0};
var Sec=function(a,b,c,d,e){_.O.call(this);this.H=a;this.ta=b;this.ka=c;this.O=new _.jI(this.W,3E3,this);this.V=new Set;this.ha=d;this.ma=e||6E4};_.N(Sec,_.O);Sec.prototype.initialize=function(){Iec(this.ma,this.O.oe,this.O);Iec(36E5,this.va,this)};Sec.prototype.W=function(){var a=this;if(0!=this.H.H.$b()&&(!this.ha||this.H.V)){var b=Tec(this.H),c=this.ta.uA(b);c&&(_.Th(c,function(){return void a.V.delete(c)}),this.V.add(c))}};
Sec.prototype.va=function(){var a=this.H,b=Pec(a,1153).build();a.H.add(b);this.O.oe()};
var Uec=function(a){_.O.call(this);this.H=a;this.Ma(this.H)};_.N(Uec,_.O);_.g=Uec.prototype;_.g.Qp=function(a){a=this.H.Qp(a);this.dja();return a};_.g.PF=function(a,b){return this.H.PF(a,b)};_.g.AL=function(){return this.H.AL()};_.g.hw=function(a){return this.H.hw(a)};_.g.JZ=function(){return this.H.JZ()};_.g.KZ=function(){return this.H.KZ()};_.g.dja=function(){return this.H.dja()};_.g.vP=function(){return this.H.vP()};
var Vec=function(){};Vec.prototype.JQ=function(){return new Gec};
var Wec=function(){this.H=[]};Wec.prototype.add=function(a){this.H.push(a)};Wec.prototype.$b=function(){return this.H.length};
var Xec=function(){this.H={}};Xec.prototype.add=function(a){var b=_.B(a.H,12);this.H[b]=a};Xec.prototype.remove=function(a){delete this.H[a]};
var Yec=function(a,b){this.O=a;this.Ba=b;this.ha=1;this.ta=this.W=null;this.ka=new Xec;this.H=new Wec;this.ma=this.va=this.V=!1},Oec=function(a,b){a=_.Ro((new _.Qo).initialize(new _.bza,a.Ba),Lec);_.y(a.H,10,b);return a},Tec=function(a){var b=a.H,c=b.H;b.H=[];return Qec(a,c)},Qec=function(a,b){var c=new _.sAa;var d=a.O.W.clone();c=_.J(c,2,d);d=a.O;(d=d.O?d.O.clone():null)&&_.J(c,5,d);var e;d=a.O;for(var f,h=b.length-1;0<=h;h--){var k=_.C(b[h],_.Io,5);if(k&&_.C(k,_.ydc,1)){k=_.C(k,_.ydc,1);_.P(k,12)&&
void 0===e&&(e=_.Q(k,12));k=_.C(k,wec,20);if(void 0!==k&&void 0===f){f=new Dec;var l=_.Q(k,2);void 0!==l&&_.y(f,2,l);k=_.Q(k,1);void 0!==k&&_.y(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 _.wI),void 0!==e&&_.y(d,6,e),void 0!==f&&_.J(d,13,f);(e=d)&&_.J(c,3,e);a=a.O.ha.clone();_.J(c,4,a);_.Mj(c,1,b);return c},Pec=function(a,b){var c=Kec(Oec(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 zec;k=_.y(p,1,k);l=_.B(l.H,10);l=_.y(k,2,l);f.push(l)}d=f}716!=b&&(b=a.ta,_.y(c.H,6,a.W),e=new yec,b=_.y(e,1,b),d&&_.Mj(b,2,d),d=_.So(c),_.J(d,3,b));Rec(a,c);return c},Rec=function(a,b){a.W=_.B(b.H,12);a.ta=_.B(_.C(_.C(b.H,_.Bo,8),_.Bya,1),1)};
var Zec=function(){};Zec.prototype.JQ=function(){return new Jec};
var $ec=function(){this.H=this.O=null};$ec.prototype.build=function(){null==this.H&&(this.H=new _.Mza);_.Uo(this.H,Lec,new Zec);_.Uo(this.H,Hec,new Vec);var a=this.H;var b=this.O;if(!_.P(_.afc(b),1)){var c=_.afc(b),d=new _.dAa;_.J(c,1,d)}b=_.C(_.afc(b),_.dAa,1);a.H=b;b=_.Qa(a.O);for(c=0;c<b.length;c++)b[c].O(a.H);return new Yec(this.O,this.H)};
var bfc=function(){this.W=new _.Nb;this.O=null;this.ha=new Cec;_.y(this.ha,1,6);this.H=this.V=null};bfc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.cfc=function(a,b){_.y(a.W,2,b);return a};_.dfc=function(a,b){if(null==a.V){a.V=new _.qAa;var c=_.afc(a);_.J(c,2,a.V)}_.y(a.V,1,b)};_.afc=function(a){null==a.O&&(a.O=new _.Xo);return a.O};_.efc=function(a){null==a.H&&(a.H=new _.wI);return a.H};
_.ffc=function(){this.H=this.ha=null;this.W=new bfc;this.V=null;this.ka=this.ma=!1;this.O=null};_.gfc=function(a,b){a.ha=b;return a};_.hfc=function(a,b){a.H=b;return a};_.ifc=function(a,b){a.V=b;return a};_.ffc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.jfc=function(a,b){_.y(a.W.W,6,b);return a};
_.ffc.prototype.build=function(){var a=new $ec;a.O=this.W;null!=this.V&&(a.H=this.V);a=a.build();if(this.ka){var b=new Fec;this.H=this.ha=b}b=new Sec(a,this.ha,this.H,this.ma,this.O);a=new Nec(a,b,!1);this.ka&&(a=new Uec(a));return a};

_.w();

}catch(e){_._DumpException(e)}
try{
_.xI=function(a){return a instanceof Error};_.yI=function(a){return _.S(a,84,!1)};_.t("sy1n3");
_.kfc=function(a){_.K.call(this,a)};_.N(_.kfc,_.K);
_.zI=function(a){_.K.call(this,a)};_.N(_.zI,_.K);_.zI.prototype.getOptions=function(){return _.C(this,_.kfc,1)};_.zI.prototype.Vn=function(){return _.B(this,2)};_.zI.prototype.od=function(){return _.C(this,_.ef,3)};
_.lfc=function(a){_.K.call(this,a,-1,void 0,_.AI)};_.N(_.lfc,_.K);_.AI=[[3,4,5,6,7,8,9,10]];
var BI,nfc;BI={};_.mfc=(BI[1]="modifiedDate",BI[2]="modifiedByMeDate",BI[3]="quotaBytesUsed",BI[4]="title",BI[6]="lastViewedByMeDate",BI[10]="createdDate",BI[7]="sharedWithMeDate",BI[9]="starred",BI[11]="recency",BI[5]="relevance",BI[12]="trashedDate",BI[13]="lastViewedByMeDate",BI);nfc={};_.ofc=(nfc[1]="asc",nfc[2]="desc",nfc);
_.pfc=new Map([[157,"categoryReferences"],[5,"hidden"]]);
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.qfc=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():_.Mf();this.date=new Date(a)};_.Of(_.qfc,_.Jt);_.g=_.qfc.prototype;_.g.clone=function(){var a=new _.qfc(this.date);a.AG=this.AG;a.nV=this.nV;return a};_.g.add=function(a){(a.W||a.V)&&_.It.prototype.add.call(this,new _.Ht(a.W,a.V));this.date=new Date(this.date.getTime()+1E3*(a.seconds+60*(a.O+60*(a.H+24*a.ew))))};_.g.getTimezoneOffset=function(){return 0};_.g.getFullYear=_.Jt.prototype.getUTCFullYear;
_.g.getMonth=_.Jt.prototype.getUTCMonth;_.g.getDate=_.Jt.prototype.getUTCDate;_.g.getHours=_.Jt.prototype.getUTCHours;_.g.getMinutes=_.Jt.prototype.getUTCMinutes;_.g.getSeconds=_.Jt.prototype.q8a;_.g.getMilliseconds=_.Jt.prototype.p8a;_.g.getDay=_.Jt.prototype.getUTCDay;_.g.setFullYear=_.Jt.prototype.setUTCFullYear;_.g.setMonth=_.Jt.prototype.setUTCMonth;_.g.setDate=_.Jt.prototype.setUTCDate;_.g.setHours=_.Jt.prototype.dLa;_.g.setMinutes=_.Jt.prototype.eLa;_.g.setSeconds=_.Jt.prototype.fLa;
_.g.setMilliseconds=_.Jt.prototype.r8a;
var rfc,tfc;rfc={};_.sfc=(rfc[1]="0",rfc[2]="1",rfc[3]="2",rfc);tfc={};_.ufc=(tfc[1]="asc",tfc[2]="desc",tfc);
_.vfc=new _.Mo("drive_dataservice_builder");
_.wfc=_.Xg&&0>_.hg(_.$g,"533");
_.xfc=new _.Bec("drive_dataservice_invariants");
_.yfc=new Map([[[1],1],[[6],7],[[2],2]]);_.zfc=new Map([[[1],3],[[2],4],[[3],5],[[4],6],[[5],7],[[6],8],[[10],12],[[7],9],[[8],10],[[9],11]]);
_.Afc=new Map([[12,function(a){return _.Q(a,69)}],[24,function(a){return _.S(a,3,!1)}],[9,function(a){return _.S(a,17,!1)}],[21,function(a){return _.yI(a)}],[13,function(a){return _.Q(a,60)}],[2,function(a){return _.S(a,8,!0)}],[6,function(a){return _.S(a,11,!1)}],[14,function(){return!0}],[16,function(a){return _.S(a,56,!1)}],[17,function(a){return _.S(a,57,!1)}],[18,function(a){return _.S(a,54,!1)}],[19,function(a){return _.S(a,53,!1)}],[23,function(){return!0}],[28,function(){return!0}]]);
_.Bfc=new Map([[36,function(a){return _.S(a,11,!1)}],[34,function(a){return _.S(a,9,!1)}],[25,function(a){return _.S(a,1,!1)}],[33,function(a){return _.S(a,8,!1)}],[26,function(a){return _.S(a,2,!1)}],[27,function(a){return _.S(a,3,!1)}],[29,function(a){return _.S(a,4,!1)}],[32,function(a){return _.S(a,7,!1)}],[40,function(a){return _.S(a,15,!1)}],[43,function(a){return _.S(a,18,!1)}],[42,function(a){return _.S(a,17,!1)}],[30,function(a){return _.S(a,5,!1)}],[31,function(a){return _.S(a,6,!1)}],[35,
function(a){return _.S(a,10,!1)}],[38,function(a){return _.S(a,13,!1)}],[39,function(a){return _.S(a,14,!1)}],[41,function(a){return _.S(a,16,!1)}]]);_.Cfc=new Map([[[1],1],[[2],2],[[3],3],[[4],4]]);
_.Dfc=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]]);_.Efc=new Map([[[2],3],[[1],2],[[0],1]]);_.Ffc=new Map([[[0],1],[[1],2],[[3],3],[[5],4],[[6],5]]);
_.Gfc=new Map([[[_.Qdc],1],[[_.Rdc],2],[[_.Sdc],3],[[_.Tdc],4],[[_.Udc],5],[[_.Vdc],6],[[_.Wdc],7],[[_.Xdc],8],[[_.Ydc],10],[[_.Zdc],11],[[_.$dc],12],[[_.aec],13]]);_.Hfc=new Map([[[0],1],[[1],2],[[2],3],[[3],4],[[4],5],[[5],6],[[6],7]]);

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1n8");
_.CI=function(a){_.K.call(this,a,-1,Ifc)};_.N(_.CI,_.K);_.CI.prototype.Ac=function(){return _.B(this,2)};_.DI=function(a,b){return _.y(a,2,b)};_.g=_.CI.prototype;_.g.mk=function(){return _.S(this,3,!1)};_.g.getItem=function(){return _.C(this,_.cl,4)};_.g.setItem=function(a){return _.J(this,4,a)};_.g.yc=function(){return _.B(this,7)};_.g.O9=function(){return _.B(this,13)};_.g.pHa=function(a){_.y(this,13,a)};var Ifc=[8,17];

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1n6");
_.eG=function(a){_.K.call(this,a,-1,KVb)};_.N(_.eG,_.K);_.eG.prototype.getId=function(){return _.B(this,1)};_.eG.prototype.Ob=function(a){return _.y(this,1,a)};_.eG.prototype.gs=function(){return _.B(this,2)};_.eG.prototype.$J=function(){return _.P(this,2)};var KVb=[5,6,9,10,12,13,15,16];
var LVb;_.fG=function(a){_.K.call(this,a,-1,LVb)};_.N(_.fG,_.K);_.fG.prototype.Gm=function(){return _.B(this,1)};_.MVb=function(a,b){return _.y(a,1,b)};LVb=[2,4];

_.w();

}catch(e){_._DumpException(e)}
try{
var Mfc;_.GI=function(a){if(a instanceof _.mc)return a;if(_.xI(a)){if(a=_.Oub(a))return a}else a="string"===typeof a?_.GEa(a):_.GEa("Converting an unexpected reason type to drive.ds.Error which should be drive.ds.Error, Error, or string. Found:"+a);_.EI(a,2);_.FI(a,6);return a};_.Jfc=function(a){var b=a.kk();a=a.ZF();return 15===b||32===b||33===b||401===a};_.Kfc=function(){return _.n.WorkerGlobalScope&&self instanceof _.n.WorkerGlobalScope};_.Lfc=function(a){_.K.call(this,a)};_.N(_.Lfc,_.K);
_.HI=function(a){return _.Zj(a,1,0)};_.II=function(a){return _.C(a,_.Lfc,4)};_.EI=function(a,b){return _.y(a,1,b)};_.FI=function(a,b){return _.y(a,2,b)};Mfc=[8,9,10,13,14,27,28,29,31,32,33,34,38];_.JI=function(a){_.K.call(this,a,-1,Mfc)};_.N(_.JI,_.K);_.g=_.JI.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.Fe=function(){return _.B(this,3)};
_.g.Il=function(a){return _.y(this,3,a)};_.g.Ev=function(a){return _.y(this,4,a)};_.g.Th=function(){return _.Q(this,5)};_.g.Jn=function(a){return _.y(this,5,a)};_.g.getMimeType=function(){return _.B(this,6)};_.g.uE=function(a,b){_.Pj(this,8,a,b)};_.g.Vi=function(){return _.B(this,12)};_.g.ve=function(){return _.C(this,_.rf,17)};_.g.zi=function(){return _.B(this,20)};_.g.yc=function(){return _.B(this,21)};_.KI=function(a,b){return _.y(a,16,b)};_.t("sy1n7");
_.LI=function(a){_.K.call(this,a,-1,Nfc)};_.N(_.LI,_.K);_.LI.prototype.SQ=function(){return _.Zj(this,2,100)};_.LI.prototype.MO=function(a){return _.y(this,2,a)};_.LI.prototype.ve=function(){return _.C(this,_.rf,6)};_.LI.prototype.yc=function(){return _.B(this,8)};var Nfc=[5];
var Ofc;Ofc={};_.Pfc=(Ofc[0]="/drive/v2internal",Ofc[1]="/drive/v2internal.corp",Ofc[2]="/drive/v2internal.scary",Ofc[4]="/drive/v2internal.scary",Ofc[5]="/drive/v2beta",Ofc[6]="/drive/v2.1beta",Ofc);
_.Qfc=new Set([0,1,2,3]);
_.Rfc=new Map([[1,"connected"],[2,"unauthenticated/online"],[3,"offline"]]);
_.Sfc=_.y(new _.JI,15,!0);_.Tfc=_.KI(new _.JI,!0);_.Ufc=_.KI(new _.JI,!1);
_.Vfc=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."]]);

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.Xfc=function(a){a=_.fb(a);return 0===a.length?_.Lha:new _.lg(a,_.Jha)};_.t("sy1nr");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Yfc=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)};_.Of(_.Yfc,_.udc);_.Yfc.prototype.reset=function(){this.H.reset();this.H.update(this.O)};_.Yfc.prototype.update=function(a,b){this.H.update(a,b)};
_.Yfc.prototype.digest=function(){var a=this.H.digest();this.H.reset();this.H.update(this.V);this.H.update(a);return this.H.digest()};_.Zfc=function(a,b){a.reset();a.update(b);return a.digest()};
_.$fc=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()};_.Of(_.$fc,_.udc);_.$fc.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 agc=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};
_.$fc.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;)agc(this,a,d),d+=this.blockSize;if("string"===typeof a)for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.blockSize){agc(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.blockSize){agc(this,e);f=0;break}}this.O=f;this.V+=b}};
_.$fc.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;agc(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};

_.w();

}catch(e){_._DumpException(e)}
try{
_.MI=function(a,b){return _.y(a,82,b)};_.NI=function(a){return _.y(a,3,!0)};_.bgc=function(a,b){return _.y(a,7,b)};_.t("sy1n4");
_.cgc=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
*/
_.OI={p_:"Versions",U6:"Metadata",K5:"Data",mU:"Offline"};_.dgc=new Map([[_.OI.p_,"versionKey"],[_.OI.U6,"k"]]);_.egc=new Set([1004]);

_.w();

}catch(e){_._DumpException(e)}
try{
var igc;_.fgc=function(a){var b={};_.La(a,function(c,d){b[d.toLowerCase()]=c});return b};_.ggc=function(a){return(a=a&&_.fgc(a))&&a["x-guploader-uploadid"]};_.hgc=function(a){return(a=a&&_.fgc(a))&&a["x-google-trace"]};igc=[6];_.PI=function(a){_.K.call(this,a,-1,igc)};_.N(_.PI,_.K);_.QI=function(a,b){return _.y(a,14,b)};_.t("sy1nt");
var jgc,lgc;
_.kgc=function(a,b,c,d,e,f,h,k,l){l=void 0===l?!1:l;if(200===a||204===a||308===a||206===a)return null;e=jgc(e)||new _.mc;_.y(e,8,!0);k&&(k=_.ij(new _.ej(k),void 0).toString(),_.y(e,19,k));e.ZF()||_.y(e,15,a||f);e.getMessage()||_.eq(e,["HTTP status code: "+a,"HTTP status text: "+b,"XHR error code: "+f,"XHR error text: "+h].join(", "));_.B(e,4)||_.fq(e,d);e.kk()||(5===f?_.QI(e,7):0!==a||d?403===a?_.QI(e,22):503===a||429===a?_.QI(e,24):(_.Kj(e,14),_.y(e,10,1),_.y(e,8,!0)):l||_.QI(e,2));e.Eca(_.ggc(c));e.vca(_.hgc(c));
return e};jgc=function(a){if(!_.Ba(a))return null;var b=new _.mc,c=a.error;if(!c)return _.fq(b,JSON.stringify(a)),null;_.y(b,15,c.code);_.eq(b,c.message);a=c.errors&&c.errors[0];if(!a)return b;c=a.reason;var d=lgc[c];d?_.y(b,10,d):c&&!d&&_.y(b,10,2);(a=a.debugInfo)&&_.fq(b,a);return b};
lgc={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};

_.w();

}catch(e){_._DumpException(e)}
try{
_.mgc=function(a,b){return _.y(a,1,b)};_.ngc=function(a,b){return _.J(a,1,b)};_.ogc=function(a,b){return _.y(a,2,b)};_.pgc=function(a,b){return _.J(a,3,b)};_.t("sy1nu");

_.w();

}catch(e){_._DumpException(e)}
try{
_.qgc=function(a){for(var b in a)delete a[b]};_.RI=function(a,b){if(a.H)return a=a.H.responseText,b&&0==a.indexOf(b)&&(a=a.substring(b.length)),(0,_.mla)(a)};_.SI=function(a){return _.S(a,5,!1)};_.rgc=function(a,b){var c=_.C(a.H,_.Dya,9);null==c&&(c=new _.Dya);var d=_.B(b.H,10);d=_.y(c,5,d);b=_.B(b.H,12);_.y(d,2,b);_.J(a.H,9,c)};_.sgc=function(a,b){a=_.Hi(a);b=_.Hi(b);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]};
_.tgc=function(a){var b=_.ula(a);if("undefined"==typeof b)throw Error("X");var c=new _.kj(null,void 0);a=_.tla(a);for(var d=0;d<b.length;d++){var e=b[d],f=a[d];Array.isArray(f)?_.sma(c,e,f):c.add(e,f)}return c};_.t("sy1nv");

_.w();

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

_.w();

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

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

_.w();

}catch(e){_._DumpException(e)}
try{
var xgc,ygc,Cgc,Ggc,Hgc,Igc,$gc,LJ,ahc,bhc,ihc,Egc,Qhc,Dgc,iic,jic,qic,sic,uic,wic,xic,yic,Aic,Qic,Ric,Uic,Vic,Wic,Yic,Zic,ajc,djc,Tgc,hjc,Ugc,ijc,jjc,kjc,nK,pK,mjc,ojc,rjc,sjc,tjc,ujc,vjc,wjc,zjc,Bjc,Cjc,Ejc,Fjc,Ujc,Tjc,Xjc,Zjc,$jc,akc,fkc,ikc,kkc,lkc,rkc,qkc,pkc,nkc,okc,jhc,zkc,Akc,vkc,Bkc,wkc,chc,Ckc,dhc,ehc,fhc,ghc,hhc,Dkc,Fkc;_.TI=function(a,b,c){var d=new _.mc,e=_.ska(_.TI);_.y(d,20,e);_.FI(d,a);_.EI(d,b?b:2);c&&_.QI(d,c);return d};
_.UI=function(a){var b;a instanceof _.mc?b=new _.nc(null,a):_.xI(a)?b=a:b=_.n.ErrorEvent&&a instanceof ErrorEvent?a.error instanceof Error?a.error:Error(a.message):"string"===typeof a?Error(a):Error("rb`"+a);b.stack||(b.stack=_.ska(_.UI));return b};_.VI=function(a){throw _.yB(a);};xgc=function(a){return 7===a.kk()||24===a.Dp()&&(a=a.ZF(),503===a||429===a)?!0:!1};ygc=function(a,b){return b?b+"("+a+")":a};
_.WI=function(a,b,c){var d={},e=[];b&&e.push("kind");a.Wzb&&e.push("searchResultSource");a.fields.forEach(function(p){if(!_.zgc.includes(p)){var q=_.Adb.get(p);if(q){var r=_.Ddb[p];a.yG&&r&&(q=r);a.jr&&(a.yG?(p=_.Cdb[p])&&(q=p):(p=_.Bdb[p])&&(q=p));q.split(",").forEach(function(v){var z=_.yia(v,"/",1);1<z.length?(d[z[0]]||(d[z[0]]=[]),d[z[0]].push(z[1])):e.push(v)})}}});for(var f={},h=_.m(Object.entries(d)),k=h.next();!k.done;f={B5:f.B5},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;
f.B5=[];l.forEach(function(p){return function(q){p.B5.push(q)}}(f));"owners"==k&&b&&f.B5.push("kind");e.push(ygc(f.B5.join(","),k))}return ygc(e.join(","),c)};_.Agc=function(a){var b=new _.To;b.append(_.WI(a,!0));return b.toString()};_.Bgc=function(a,b){return a.filter(function(c){return b.includes(c)})};Cgc=function(a){a=a.filter(function(b){return!_.Adb.has(b)});if(a.length)throw Error("Tc`"+a.join(", "));};
_.Fgc=function(a){if(a){var b=a.getMimeType();b&&_.lG(a,b.toLowerCase());Dgc(a,_.Rj(a,Egc,58).map(function(c){var d=c.getMimeType();d&&_.y(c,1,d.toLowerCase());return c}))}};Ggc=function(a){if(_.Ta(a))return"\r\n";var b="";_.La(a,function(c,d){b+=d+": "+c+"\r\n"});return b};Hgc=function(a,b){b&&(_.lj(a,"openDrive",!!_.S(b,2,!1)),_.lj(a,"reason",_.B(b,1)||0),_.lj(a,"syncType",_.B(b,3)||0),_.lj(a,"errorRecovery",!!_.S(b,4,!1)))};
Igc=function(a){a=_.eq(_.QI(_.EI(new _.mc,2),39),"Multiple resource key definitions found for itemId "+a);throw _.yB(a);};
$gc=function(a){if(a instanceof _.XI)return"request access";if(a instanceof _.YI)return"admin migrate to TD";if(a instanceof _.ZI)return"authorize app";if(a instanceof _.$I)return"copy item";if(a instanceof _.aJ)return"change category links";if(a instanceof _.bJ)return"create item";if(a instanceof _.cJ)return"create ws";if("undefined"!=typeof _.dJ&&a instanceof _.dJ)return"delete app";if("undefined"!=typeof _.eJ&&a instanceof _.eJ)return"delete backup";if(a instanceof _.fJ)return"delete item";if("undefined"!=
typeof _.gJ&&a instanceof _.gJ)return"delete permission";if(a instanceof _.hJ)return"delete revision";if(a instanceof _.iJ)return"delete TD";if(a instanceof _.ED)return"delete pref";if(a instanceof _.jJ)return"delete ws";if(a instanceof _.kJ)return"download item";if(a instanceof _.lJ||a instanceof _.mJ)return"empty trash";if(a instanceof _.nJ)return"find by ID";if(a instanceof _.tA)return"find by IDs";if(a instanceof _.Jgc)return"item export start";if("undefined"!=typeof _.oJ&&a instanceof _.oJ)return"get app";
if("undefined"!=typeof _.pJ&&a instanceof _.pJ)return"insert app";if("undefined"!=typeof _.qJ&&a instanceof _.qJ)return"insert permission";if(a instanceof _.zI)return a=a.od(),_.rJ(a)?"quick access item query":_.sJ(a)?"people predict item query":_.tJ(a)?"drive priority query":"item query";if("undefined"!=typeof _.uJ&&a instanceof _.uJ)return"list android backup items request";if(a instanceof _.vJ){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 _.Kgc&&a instanceof _.Kgc?"list backups":a instanceof _.LI?"list changes":a instanceof _.wJ?"list permissions":"undefined"!=typeof _.xJ&&a instanceof _.xJ?"list revisions":a instanceof _.yJ?"partial download item":a instanceof _.zJ?"people api":a instanceof _.gG?"get published category":"undefined"!=typeof _.AJ&&a instanceof _.AJ?"get remaining changes":a instanceof _.BJ?"remove item":
"undefined"!=typeof _.CJ&&a instanceof _.CJ?"reparent item":a instanceof _.DJ?"restore item":a instanceof _.hG?"list suggested workspace items":a instanceof _.Zz?"list suggested workspaces":"undefined"!=typeof _.EJ&&a instanceof _.EJ?"update app":a instanceof _.FJ?"update category metadata":a instanceof _.JI?"update item":a instanceof _.GJ?"update revision":a instanceof _.HJ?"update TD":a instanceof _.FD?"update pref":a instanceof _.IJ?"update ws":a instanceof _.uI?"get account":a instanceof _.kG?
"get workspace":a instanceof _.Lgc?"list activity":a instanceof _.Mgc?"list category metadata":a instanceof _.Ngc?"create TD":"undefined"!=typeof _.Ogc&&a instanceof _.Ogc?"item export cancel":"undefined"!=typeof _.Pgc&&a instanceof _.Pgc?"item export status":"undefined"!=typeof _.Qgc&&a instanceof _.Qgc?"generate cse token":"undefined"!=typeof _.Rgc&&a instanceof _.Rgc?"get largest change ID":a instanceof _.DD?"list prefs":a instanceof _.JJ?"multipart upload":a instanceof _.Sgc?"list published categories":
a instanceof Tgc?"init resumable upload":a instanceof Ugc?"resumable upload chunk":a instanceof _.Vgc?"resumable upload":a instanceof _.iG?"get TD":"undefined"!=typeof _.Wgc&&a instanceof _.Wgc?"move TD preflight":a instanceof _.KJ?"list TDs":"undefined"!=typeof _.Xgc&&a instanceof _.Xgc?"get TD stats":a instanceof _.Ygc?"test connection":"undefined"!=typeof _.Zgc&&a instanceof _.Zgc?"list workspaces":"unknown"};
LJ=function(a,b,c){null!=c&&(Array.isArray(c)?0<c.length&&a.push(b+": "+c.join(", ")):a.push(b+": "+c))};ahc=function(a){if(a instanceof _.bJ||a instanceof _.JJ||a instanceof _.Vgc||a instanceof Tgc||a instanceof Ugc)return(new _.MJ).Bc(8);throw Error("ef");};bhc=function(a){if(a instanceof _.JI){var b=_.Lj(_.Kj(a.clone(),1),17);b=_.Vj(b,_.Sfc)}else b=!1;b||(a instanceof _.JI?(a=_.Lj(_.Kj(a.clone(),1),17),b=_.Vj(a,_.Tfc)||_.Vj(a,_.Ufc)):b=!1);return b?!1:!0};
_.NJ=function(a){return chc.includes(a.constructor)?bhc(a):!1};ihc=function(a,b){if(dhc.includes(a.constructor))return!0;if(b){if(_.S(b,54,!1)&&ehc.includes(a.constructor))return!0;var c=_.II(b);if(c&&!_.S(c,7,!1)&&fhc.includes(a.constructor)&&!_.OJ(a)||_.S(b,56,!1)&&_.OJ(a)||_.S(b,57,!1)&&ghc.includes(a.constructor)||!(!_.S(b,53,!1)||ehc.includes(a.constructor)||fhc.includes(a.constructor)||_.OJ(a)||ghc.includes(a.constructor)||hhc.includes(a.constructor)))return!0}return!1};
_.PJ=function(a,b,c,d,e){if(_.S(a,89,!1)){if(c&&c.length&&d){c=b.concat(jhc(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)!==_.B(d,2)&&Igc(h):(a.set(h,_.B(d,2)),b.push(d))}f=b}else f=b;f.length&&(f=_.jA(f),f.length&&(e["X-Goog-Drive-Resource-Keys"]=f))}};_.khc=function(a){var b=new _.Gk;return _.y(b,1,a)};_.lhc=function(a,b){return _.y(a,7,b)};_.mhc=function(a,b){return _.y(a,8,b)};
_.nhc=function(a,b){return _.y(a,11,b)};_.ohc=function(a,b){return _.y(a,1,b)};_.phc=function(a,b){return _.y(a,4,b)};_.qhc=function(a,b){return _.y(a,5,b)};_.rhc=function(a,b){return _.y(a,6,b)};_.shc=function(a,b){return _.y(a,7,b)};_.thc=function(a,b){return _.y(a,8,b)};_.uhc=function(a,b){return _.y(a,9,b)};_.vhc=function(a,b){return _.y(a,10,b)};_.whc=function(a,b){return _.y(a,11,b)};_.xhc=function(a,b){return _.y(a,12,b)};_.yhc=function(a,b){return _.y(a,16,b)};
_.zhc=function(a,b){return _.y(a,17,b)};_.Ahc=function(a,b){return _.y(a,20,b)};_.Bhc=function(a,b){return _.y(a,21,b)};_.Chc=function(a,b){return _.y(a,31,b)};_.Dhc=function(a,b){return _.y(a,32,b)};_.Ehc=function(a,b){return _.y(a,33,b)};_.Fhc=function(a,b){return _.y(a,42,b)};_.Ghc=function(a,b){return _.y(a,43,b)};_.Hhc=function(a,b){return _.y(a,46,b)};_.Ihc=function(a,b){return _.y(a,47,b)};_.Jhc=function(a,b){return _.y(a,48,b)};_.QJ=function(a){_.K.call(this,a)};_.N(_.QJ,_.K);
_.Khc=function(a){_.K.call(this,a)};_.N(_.Khc,_.K);_.Lhc=function(a,b){return _.y(a,1,b)};_.Mhc=function(a,b){return _.y(a,2,b)};Egc=function(a){_.K.call(this,a)};_.N(Egc,_.K);Egc.prototype.getMimeType=function(){return _.B(this,1)};Egc.prototype.getUrl=function(){return _.B(this,2)};_.RJ=function(a){_.K.call(this,a)};_.N(_.RJ,_.K);_.RJ.prototype.Ge=function(){return _.B(this,2)};_.RJ.prototype.xh=function(a){return _.y(this,2,a)};_.RJ.prototype.wh=function(a){return _.y(this,3,a)};
_.Nhc=function(a,b){return _.y(a,1,b)};_.Ohc=function(a,b){return _.Mj(a,2,b)};_.Phc=function(a,b){return _.Mj(a,3,b)};Qhc=[2];_.WJ=function(a){_.K.call(this,a,-1,Qhc)};_.N(_.WJ,_.K);_.WJ.prototype.Fe=function(){return _.B(this,1)};_.WJ.prototype.Il=function(a){return _.y(this,1,a)};_.WJ.prototype.Cua=function(a,b){return _.Pj(this,2,a,b)};_.XJ=function(a){_.K.call(this,a)};_.N(_.XJ,_.K);_.XJ.prototype.Ge=function(){return _.B(this,1)};_.XJ.prototype.xh=function(a){return _.y(this,1,a)};
_.XJ.prototype.wh=function(a){return _.y(this,2,a)};_.YJ=function(a,b){return _.Jj(a,2,b)};_.Rhc=function(a,b){_.y(a,8,b)};_.Shc=function(a,b){return _.Mj(a,15,b)};_.Thc=function(a,b){return _.J(a,17,b)};_.Uhc=function(a,b){return _.y(a,19,b)};_.Vhc=function(a,b){_.y(a,26,b)};_.Whc=function(a,b){_.y(a,31,b)};_.Xhc=function(a,b){_.y(a,34,b)};_.Yhc=function(a,b){return _.y(a,44,b)};_.Zhc=function(a,b){_.J(a,47,b)};_.$hc=function(a,b){return _.y(a,52,b)};Dgc=function(a,b){_.Mj(a,58,b)};
_.aic=function(a,b){return _.y(a,72,b)};_.ZJ=function(a,b){return _.J(a,84,b)};_.bic=function(a,b){_.J(a,85,b)};_.cic=function(a,b){_.J(a,91,b)};_.dic=function(a,b){return _.y(a,92,b)};_.eic=function(a,b){return _.y(a,93,b)};_.fic=function(a,b){_.J(a,95,b)};_.gic=function(a,b){return _.y(a,136,b)};_.hic=function(a){_.K.call(this,a)};_.N(_.hic,_.K);_.$J=function(a){return _.S(a,2,!1)};iic=[3];jic=function(a){_.K.call(this,a,-1,iic)};_.N(jic,_.K);
jic.prototype.ai=function(){var a=_.B(this,3);this.Ka||(this.Ka={});if(!this.Ka[3]){for(var b=0;b<a.length;b++)a[b]=!!a[b];this.Ka[3]=!0}_.kb(this)&&_.lb(a);return a};var kic=[3],lic=function(a){_.K.call(this,a,-1,kic)};_.N(lic,_.K);lic.prototype.ai=function(){return _.Qd(this,3)};var mic=[3],nic=function(a){_.K.call(this,a,-1,mic)};_.N(nic,_.K);nic.prototype.ai=function(){return _.Qd(this,3)};_.aK=function(a){_.K.call(this,a)};_.N(_.aK,_.K);_.aK.prototype.Za=function(){return _.B(this,1)};
_.aK.prototype.Jb=function(a){return _.y(this,1,a)};_.aK.prototype.Ri=function(){return _.Kj(this,1)};_.aK.prototype.ih=function(){return _.P(this,1)};_.bK=function(a){return _.yj(a,45,1)};_.rJ=function(a){return _.S(a,47,!1)};_.sJ=function(a){return _.S(a,49,!1)};_.tJ=function(a){return _.S(a,52,!1)};_.eK=function(a){return _.E(a,2,"")};_.oic=function(a,b){return _.Jj(a,27,b)};_.fK=function(a){return _.yj(a,39,0)};_.gK=function(a){return _.S(a,40,!1)};
_.pic=function(a){return _.It.prototype.WO.call(a,!0)+"T"+_.Ng(a.getHours(),2)+":"+_.Ng(a.getMinutes(),2)+":"+_.Ng(a.getSeconds(),2)+a.f$()};qic=function(a,b){return _.fec(a,"getAllKeys","getting all keys index "+a.getName(),b,void 0)};_.ric=function(a,b){try{a.H.deleteObjectStore(b)}catch(c){throw _.sI(c,"deleting object store "+b);}};sic=function(){var a=new _.ffc;a.O=12E4;a.ma=!0;return a};_.tic=function(a){_.K.call(this,a)};_.N(_.tic,_.K);uic=[3,4,10,18,19,28];
_.bJ=function(a){_.K.call(this,a,-1,uic)};_.N(_.bJ,_.K);_.g=_.bJ.prototype;_.g.getMimeType=function(){return _.B(this,1)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.uE=function(a,b){_.Pj(this,3,a,b)};_.g.ve=function(){return _.C(this,_.rf,7)};_.g.aj=function(){return _.B(this,9)};_.g.yc=function(){return _.B(this,14)};_.g.Gz=function(){return _.C(this,_.tic,15)};_.g.M1=function(){return _.B(this,21)};_.g.Ac=function(){return _.B(this,23)};
_.g.Zk=function(){return _.B(this,33)};_.hK=function(a,b){return _.y(a,1,b)};_.iK=function(a,b){return _.Jj(a,3,b)};_.vic=function(a,b){return _.y(a,12,b)};_.fJ=function(a){_.K.call(this,a)};_.N(_.fJ,_.K);_.fJ.prototype.getId=function(){return _.B(this,1)};_.fJ.prototype.Ob=function(a){return _.y(this,1,a)};_.fJ.prototype.ve=function(){return _.C(this,_.rf,3)};_.iJ=function(a){_.K.call(this,a)};_.N(_.iJ,_.K);_.iJ.prototype.getId=function(){return _.B(this,1)};
_.iJ.prototype.Ob=function(a){return _.y(this,1,a)};_.iJ.prototype.ve=function(){return _.C(this,_.rf,2)};wic=[7,8];_.HJ=function(a){_.K.call(this,a,-1,wic)};_.N(_.HJ,_.K);_.g=_.HJ.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.ve=function(){return _.C(this,_.rf,4)};_.KJ=function(a){_.K.call(this,a)};_.N(_.KJ,_.K);
_.KJ.prototype.getOptions=function(){return _.C(this,_.kfc,1)};_.KJ.prototype.Vn=function(){return _.B(this,2)};_.KJ.prototype.od=function(){return _.C(this,_.mI,3)};xic=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};yic=null;_.zic=function(a){if(_.Bma)return _.n.atob(a);var b="";_.Dma(a,function(c){b+=String.fromCharCode(c)});return b};Aic=function(){this.O=0;this.H=[]};_.g=Aic.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=Bic(this,a);return this.H[a]};_.g.set=function(a,b){a=Bic(this,a);this.H[a]=b};_.g.$b=function(){return this.H.length};_.g.vc=function(){return 0==this.H.length};_.g.clear=function(){this.O=this.H.length=0};_.g.xg=function(){var a=this.$b(),b=this.$b(),c=[];for(a=this.$b()-a;a<b;a++)c.push(this.get(a));return c};_.g.tf=function(){for(var a=[],b=this.$b(),c=0;c<b;c++)a[c]=c;return a};_.g.Ne=function(a){return a<this.$b()};
_.g.wq=function(a){for(var b=this.$b(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};var Bic=function(a,b){if(b>=a.H.length)throw Error("ha");return 40>a.H.length?b:(a.O+Number(b))%40},Cic=function(a){_.K.call(this,a)};_.N(Cic,_.K);_.Dic=function(a){_.K.call(this,a)};_.N(_.Dic,_.K);_.Dic.prototype.Ye=function(){return _.B(this,1)};_.Dic.prototype.Ei=function(a){return _.y(this,1,a)};_.Dic.prototype.Bb=function(){return _.B(this,4)};_.Dic.prototype.Bc=function(a){return _.y(this,4,a)};
var Eic=function(a){_.K.call(this,a)};_.N(Eic,_.K);Eic.prototype.Un=function(){return _.B(this,5)};var Fic=function(a,b){_.y(a,6,b)},Gic=function(a){_.K.call(this,a)};_.N(Gic,_.K);_.g=Gic.prototype;_.g.mgb=function(a){_.y(this,1,a)};_.g.wNb=function(a){_.y(this,2,a)};_.g.sy=function(){return _.Q(this,3)};_.g.ngb=function(a){_.y(this,3,a)};_.g.dNb=function(a){_.y(this,4,a)};var Hic=function(a){_.K.call(this,a)};_.N(Hic,_.K);Hic.prototype.sy=function(){return _.Q(this,2)};
var Iic=function(a,b){return _.y(a,2,b)},Jic=function(a,b){_.y(a,3,b)};Hic.prototype.nB=function(){return _.B(this,6)};var Kic=function(a,b){return _.y(a,8,b)},Lic=function(a){_.K.call(this,a)};_.N(Lic,_.K);var Mic=function(a){_.K.call(this,a)};_.N(Mic,_.K);var Nic=function(a,b){_.y(a,4,b)},Oic=function(a){_.K.call(this,a)};_.N(Oic,_.K);Oic.prototype.od=function(){return _.C(this,_.Dic,1)};Oic.prototype.getState=function(){return _.C(this,Eic,2)};Oic.prototype.Id=function(a){return _.J(this,2,a)};
Oic.prototype.jt=function(){return _.P(this,2)};var Pic=function(a){_.K.call(this,a)};_.N(Pic,_.K);Pic.prototype.getEnvironment=function(){return _.B(this,2)};Pic.prototype.setEnvironment=function(a){return _.y(this,2,a)};_.zgc=[42,1005,20,50,18,1003,1002];Qic=[73,71];_.jK=function(a){_.K.call(this,a)};_.N(_.jK,_.K);_.jK.prototype.getId=function(){return _.B(this,1)};_.jK.prototype.Ob=function(a){return _.y(this,1,a)};_.jK.prototype.getMimeType=function(){return _.B(this,2)};
_.jK.prototype.UF=function(){return _.B(this,8)};Ric=[22];_.MJ=function(a){_.K.call(this,a,-1,Ric)};_.N(_.MJ,_.K);_.g=_.MJ.prototype;_.g.Bb=function(){return _.B(this,1)};_.g.Bc=function(a){return _.y(this,1,a)};_.g.getItem=function(){return _.C(this,_.cl,2)};_.g.setItem=function(a){return _.J(this,2,a)};_.g.Uj=function(){return _.B(this,3)};_.g.Ac=function(){return _.B(this,5)};_.Sic=function(a,b){return _.y(a,5,b)};_.g=_.MJ.prototype;_.g.PJ=function(){return _.B(this,7)};
_.g.Eca=function(a){return _.y(this,7,a)};_.g.gfa=function(a){_.y(this,9,a)};_.g.CLa=function(a){_.y(this,10,a)};_.g.WM=function(){return _.B(this,16)};_.g.vca=function(a){return _.y(this,16,a)};var Tic=function(a){_.gi.call(this,a);this.connectionState=_.Qub.get(a)};_.N(Tic,_.gi);Uic=function(a){var b=new _.Uh;a.listen("loadend",_.Ab(function(c,d){var e=d.Vj(),f=d.getError();null==e||f?c.Hd(f):c.callback(e);d.dispose()},b,a));return b};_.XI=function(a){_.K.call(this,a)};_.N(_.XI,_.K);
_.XI.prototype.Ac=function(){return _.B(this,1)};_.YI=function(a){_.K.call(this,a)};_.N(_.YI,_.K);_.YI.prototype.getId=function(){return _.B(this,1)};_.YI.prototype.Ob=function(a){return _.y(this,1,a)};_.YI.prototype.Ik=function(){return _.B(this,2)};_.ZI=function(a){_.K.call(this,a)};_.N(_.ZI,_.K);_.ZI.prototype.zh=function(){return _.B(this,1)};_.ZI.prototype.Ac=function(){return _.B(this,2)};_.ZI.prototype.ve=function(){return _.C(this,_.rf,4)};Vic=[3,7];_.$I=function(a){_.K.call(this,a,-1,Vic)};
_.N(_.$I,_.K);_.g=_.$I.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.uE=function(a,b){_.Pj(this,3,a,b)};_.g.ve=function(){return _.C(this,_.rf,5)};_.cJ=function(a){_.K.call(this,a)};_.N(_.cJ,_.K);_.cJ.prototype.getTitle=function(){return _.B(this,1)};_.cJ.prototype.setTitle=function(a){return _.y(this,1,a)};_.cJ.prototype.ve=function(){return _.C(this,_.rf,2)};
_.hJ=function(a){_.K.call(this,a)};_.N(_.hJ,_.K);_.hJ.prototype.Ac=function(){return _.B(this,1)};_.hJ.prototype.ve=function(){return _.C(this,_.rf,3)};_.jJ=function(a){_.K.call(this,a)};_.N(_.jJ,_.K);_.jJ.prototype.getId=function(){return _.B(this,1)};_.jJ.prototype.Ob=function(a){return _.y(this,1,a)};_.jJ.prototype.ve=function(){return _.C(this,_.rf,3)};_.lJ=function(a){_.K.call(this,a)};_.N(_.lJ,_.K);_.lJ.prototype.ve=function(){return _.C(this,_.rf,1)};_.BJ=function(a){_.K.call(this,a)};
_.N(_.BJ,_.K);_.g=_.BJ.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.getParent=function(){return _.B(this,2)};_.g.Eg=function(a){return _.y(this,2,a)};_.g.ve=function(){return _.C(this,_.rf,3)};_.DJ=function(a){_.K.call(this,a)};_.N(_.DJ,_.K);_.g=_.DJ.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.getParent=function(){return _.B(this,2)};_.g.Eg=function(a){return _.y(this,2,a)};
_.g.ve=function(){return _.C(this,_.rf,3)};_.GJ=function(a){_.K.call(this,a)};_.N(_.GJ,_.K);_.GJ.prototype.Ac=function(){return _.B(this,1)};_.GJ.prototype.ve=function(){return _.C(this,_.rf,4)};_.IJ=function(a){_.K.call(this,a)};_.N(_.IJ,_.K);_.g=_.IJ.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.getState=function(){return _.B(this,3)};
_.g.Id=function(a){return _.y(this,3,a)};_.g.jt=function(){return _.P(this,3)};_.g.ve=function(){return _.C(this,_.rf,5)};Wic=[2,3];_.aJ=function(a){_.K.call(this,a,-1,Wic)};_.N(_.aJ,_.K);_.aJ.prototype.yc=function(){return _.B(this,1)};_.aJ.prototype.ve=function(){return _.C(this,_.rf,4)};_.Xic={1:"default",2:"teamDrive",3:"default,allTeamDrives"};Yic=[3,4];_.vJ=function(a){_.K.call(this,a,-1,Yic)};_.N(_.vJ,_.K);_.vJ.prototype.getType=function(){return _.B(this,1)};
_.vJ.prototype.ve=function(){return _.C(this,_.rf,2)};Zic=[1];_.zJ=function(a){_.K.call(this,a,-1,Zic)};_.N(_.zJ,_.K);_.zJ.prototype.hn=function(){return _.Qd(this,1)};_.$ic=function(a){_.K.call(this,a)};_.N(_.$ic,_.K);_.g=_.$ic.prototype;_.g.getKey=function(){return _.B(this,1)};_.g.ht=function(){return _.P(this,1)};_.g.Za=function(){return _.B(this,2)};_.g.Jb=function(a){return _.y(this,2,a)};_.g.Ri=function(){return _.Kj(this,2)};_.g.ih=function(){return _.P(this,2)};
_.g.Fe=function(){return _.B(this,3)};_.g.Il=function(a){return _.y(this,3,a)};_.g.getType=function(){return _.B(this,4)};ajc=[1];_.bjc=function(a){_.K.call(this,a,-1,ajc)};_.N(_.bjc,_.K);_.cjc=function(){var a=void 0===a?1E3:a;this.O=new _.ml;this.H=new _.ml;this.startTime=Date.now();this.V=!1;this.W=Math.ceil(a/2);this.ha=Math.floor(a/2)};_.ejc=function(a){var b=a.O.xg();a.V&&b.push(djc("...","...","...","..."));_.ya(b,a.H.xg());return b};
_.fjc=function(a){var b=[];a=_.ejc(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")};_.cjc.prototype.info=function(a,b){_.kK(this,a,b,"info")};_.cjc.prototype.config=function(a,b){_.kK(this,a,b,"config")};_.cjc.prototype.log=function(a,b,c){if(!yic){yic={};for(var d=0,e;e=_.xka[d];d++)yic[e.value]=e,yic[e.name]=e}_.kK(this,a,b,c)};
_.kK=function(a,b,c,d){a.H.$b()>=a.ha&&(a.V=!0,_.nl(a.H));var e=Date.now()-a.startTime;b=djc(b,c,d,1E3<e?(e/1E3).toFixed(1)+"s":e+"ms");a.O.$b()<a.W?a.O.enqueue(b):a.H.enqueue(b)};djc=function(a,b,c,d){var e={};return e.logName=a,e.message=b,e.level=c,e.totalTime=d,e};_.Lgc=function(a,b,c){this.request=a;this.pageSize=b;this.pageToken=c};_.Ngc=function(a){this.request=a;this.requestId=_.Pg()};
_.gjc=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};_.JJ=function(a,b,c,d){this.request=a;this.file=b;this.jQ=void 0===c?null:c;this.metadata=d};_.Vgc=function(a,b,c,d){this.request=a;this.file=b;this.jQ=void 0===c?null:c;this.metadata=d};Tgc=function(a,b){this.request=a;this.metadata=b};hjc=function(a,b,c){this.O=a;this.H=b;this.V=c};
Ugc=function(a,b,c,d,e,f,h){this.W=a;this.blob=b;this.H=c;this.O=d;this.V=e;this.contentType=f;this.revisionId=h};_.Ygc=function(){this.H=_.sf(new _.rf,312)};ijc=function(){};_.Mgc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.Sgc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};jjc=function(a,b){this.H=a;this.O=b};kjc=function(a){_.gi.call(this,"Fb");this.H=a};_.N(kjc,_.gi);kjc.prototype.Te=function(){return this.H};_.lK=function(a){a.supportsTeamDrives=!0};
_.ljc=function(a){this.O=new Set;this.H=[].concat(_.ld(_.Qd(a,27)));this.initialize(a)};_.ljc.prototype.initialize=function(a){var b=_.Bgc(this.H,_.Qd(a,28));if(0<b.length)throw Error("Te`"+b.join(","));this.H.push(21);this.H.push(70);this.H.push(83);this.H.push(87);_.SI(_.tI(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));_.Da(this.H);this.H.sort();Cgc(this.H)};_.mK=function(a){return[].concat(_.ld(a.H))};
nK=function(a){return"'"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"};_.oK=function(a,b,c){0!==b.length&&(a.II.length&&a.append(" "+(c||"and")+" "),a.append(b))};pK=function(a,b,c,d){if(c){var e=[];(void 0===d?0:d)&&e.push("not");e.push(nK(c));e.push("in");e.push(b);_.oK(a,e.join(" "))}};_.qK=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());_.oK(a,e.join(" "),d)}};
mjc=function(a,b,c){if(b.length){var d=[];d.push(c?"not (":"(");d.push(b.join(" or "));d.push(")");_.oK(a,d.join(""))}};_.njc=function(a){var b=new _.qfc;b.setTime(a);return b};ojc=function(a,b){b=_.Qd(b,33)[0];if(null!=b){var c=[];c.push("teamDriveId");c.push("=");c.push(nK(b));_.oK(a,c.join(" "))}};_.pjc=function(a){a=_.Rj(a,_.aK,25);if(null==a||0==a.length)return"";for(var b=[],c=0;c<a.length;c++)b.push(a[c].Za());return b.join(",")};
_.qjc=function(a){a=a.pB();return null==a||0==a.length?"":a.map(function(b){b=_.B(b,1);if(0==b)throw Error("Ue");return _.sdc[b]}).join(",")};rjc=function(a,b){if(a.length){var c=new _.To;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(nK(d.Za()));_.oK(c,e.join(" "),"or")}return c.toString()}return""};
sjc=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 nK(e.Za())});d.push(a.join(", "));return d.join(" ")}return""};tjc=function(a){if(_.Q(a,2))return"any";switch(a.Za()){case 0:return"mentions";case 1:return"suggestions";case 2:return"todos";default:return""}};ujc=function(a){switch(a){case 1:return"<=";case 2:return"<";case 3:return"=";case 4:return">";case 5:return">=";default:return""}};
vjc=function(a,b,c){if(null!=_.B(c,2)){var d=ujc(_.B(c,1));c=nK(_.pic(_.njc(_.B(c,2)||0)));_.oK(a,[b,d,c].join(" "))}};wjc=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""};
_.xjc=function(a){for(var b=new _.To,c=_.Rj(a,_.Al,4),d=0;d<c.length;d++){var e=c[d],f=e.Za();if(f){var h=_.B(e,1),k=_.S(e,3,!1),l=[];k&&1==h&&l.push("not");l.push("title");l.push(1==h?"contains":k?"!=":"=");l.push(nK(f));_.oK(b,l.join(" "))}}for(var p=_.Rj(a,_.zl,5),q=0;q<p.length;q++){var r=p[q],v=r.Za();if(v){var z=[];_.S(r,2,!1)&&z.push("not");z.push("fullText");z.push("contains");z.push(nK(v));_.oK(b,z.join(" "))}}var A=_.El(a);if(A&&0!=A.length){for(var D=[],G=[],H=[],L=[],M=[],R=[],Z=0;Z<A.length;Z++){var ia=
A[Z];ia.Za()&&(1===_.yj(ia,3,0)?_.Q(ia,4)?G.push(ia):D.push(ia):_.Q(ia,4)?_.S(ia,2,!1)?R.push(ia):M.push(ia):_.S(ia,2,!1)?L.push(ia):H.push(ia))}var ja=rjc(D,!1),xa=rjc(G,!0),ha=sjc(H,!1,!1),Va=sjc(L,!0,!1),Ia=sjc(M,!1,!0),ob=sjc(R,!0,!0),$a=new _.To;if(ha||Ia||ja||xa)_.oK($a,ha,"or"),_.oK($a,Ia,"or"),_.oK($a,ja,"or"),_.oK($a,xa,"or");$a.II.length&&_.oK(b,"("+$a.toString()+")","and");var yb=new _.To;if(Va||ob)_.oK(yb,Va,"and"),_.oK(yb,ob,"and");yb.II.length&&_.oK(b,"("+yb.toString()+")","and")}for(var Zb=
_.Rj(a,_.xl,7),Hc=0;Hc<Zb.length;Hc++)vjc(b,"modifiedDate",Zb[Hc]);for(var ie=_.Rj(a,_.xl,8),Dd=0;Dd<ie.length;Dd++)vjc(b,"lastViewedByMeDate",ie[Dd]);_.qK(b,"trashed",a.Th());_.qK(b,"explicitlyTrashed",_.Q(a,17));_.qK(b,"starred",_.Q(a,10));_.qK(b,"hidden",_.Q(a,11));for(var Gd=_.Fl(a),vf=0;vf<Gd.length;vf++){var nd=Gd[vf];pK(b,"parents",nd.Za(),_.S(nd,2,!1))}for(var Db=_.Rj(a,_.gf,13),je=0;je<Db.length;je++){var og=Db[je];pK(b,"owners",og.Za(),_.S(og,2,!1))}for(var Ee=_.Rj(a,_.gf,14),hi=0;hi<Ee.length;hi++){var bf=
Ee[hi];pK(b,"writers",bf.Za(),_.S(bf,2,!1))}for(var Di=_.Rj(a,_.gf,15),eh=0;eh<Di.length;eh++){var lm=Di[eh];pK(b,"readers",lm.Za(),_.S(lm,2,!1))}_.Q(a,16)&&_.oK(b,"sharedWithMe");_.qK(b,"unparented",_.Q(a,34));for(var Ve=_.Rj(a,_.ul,35)||[],pe=_.m(Ve),Xf=pe.next();!Xf.done;Xf=pe.next())pK(b,"ancestors",Xf.value.Za(),!1);for(var pi=_.Rj(a,_.ul,38)||[],qk=_.m(pi),mm=qk.next();!mm.done;mm=qk.next())pK(b,"descendants",mm.value.Za(),!1);for(var Jo=_.Rj(a,_.yl,37)||[],Lm=_.m(Jo),aj=Lm.next();!aj.done;aj=
Lm.next())pK(b,"folderFeatures",aj.value.Za(),!1);for(var Sn=_.Qd(a,39),Cj=_.m(Sn),Ig=Cj.next();!Ig.done;Ig=Cj.next()){var bj=Ig.value,Dj=[];Dj.push("templateData.description");Dj.push("contains");Dj.push(nK(bj));_.oK(b,Dj.join(" "))}for(var oj=_.Qd(a,40),Pi=0;Pi<oj.length;Pi++){var Wj=[];0==Pi&&Wj.push("(");Wj.push(nK(oj[Pi]));Wj.push("in");Wj.push("templateData.categories");Pi==oj.length-1&&Wj.push(")");_.oK(b,Wj.join(" "),0==Pi?"and":"or")}var Xj=_.B(a,41);if(null!=Xj){var Qi=[];Qi.push("templateData.galleryState");
Qi.push("=");Qi.push(nK(_.sfc[Xj]||""));_.oK(b,Qi.join(" "))}var pj=_.B(a,42);if(null!=pj){var Kh=[];Kh.push("visibility");Kh.push("=");Kh.push(nK(wjc(pj)));_.oK(b,Kh.join(" "))}for(var pl=_.Rj(a,_.tl,44),Ej=0;Ej<pl.length;++Ej){var Fj=pl[Ej];pK(b,"actionItems",tjc(Fj),_.S(Fj,3,!1))}if(_.P(a,50)){var Gj=[];Gj.push("pairedDocType");var Hj=_.S(a,50,!1)?"!=":"=";Gj.push(Hj);Gj.push(nK("NONE"));_.oK(b,Gj.join(" "))}pK(b,"workspaceIds",a.Ip(),!1);for(var qn=_.Rj(a,_.vl,57),Pk=0;Pk<qn.length;Pk++){var Qk=
[];0==Pk&&Qk.push("(");Qk.push(nK(qn[Pk].Za()));Qk.push("in");Qk.push("approvals");Pk==qn.length-1&&Qk.push(")");_.oK(b,Qk.join(" "),0==Pk?"and":"or")}if(_.P(a,58)){var Af=a.Cq(),Ij=Af.Za(),nm=_.S(Af,2,!1);if(Ij){var om=[];nm&&om.push("not");om.push("creator");om.push("=");om.push(nK(Ij));_.oK(b,om.join(" "))}}var Mm=_.C(a,_.Loa,59);if(Mm)for(var Ei=_.m(_.Rj(Mm,_.Ioa,1)),Yj=Ei.next();!Yj.done;Yj=Ei.next()){var zc=Yj.value;pK(b,"categoryMetadata",zc.Gm());for(var Rk=_.m(zc.Fk()),fh=Rk.next();!fh.done;fh=
Rk.next()){var Tg=fh.value,We=_.B(Tg,1),Nm=_.wj(Tg,_.wl[0]);if(10==Nm){_.C(Tg,_.zoa,10);var pm=_.Q(Tg,15);(void 0===pm?0:pm)?_.oK(b,We+" is null"):_.oK(b,"not ("+We+" is null)")}else{var zh=new _.To,cj=void 0;switch(Nm){case 3:cj=_.C(Tg,jic,3);for(var qm=_.m(cj.ai()),Qh=qm.next();!Qh.done;Qh=qm.next())_.qK(zh,We,Qh.value,"or");break;case 14:for(var rn=cj=_.C(Tg,_.soa,14),Tn=new Map([[1,"="],[2,">"],[3,"<"]]),Om=_.m(rn.ai()),Sk=Om.next();!Sk.done;Sk=Om.next()){var Tk=Sk.value,Ko=Tn.get(_.B(rn,2));
if(!Ko)throw Error("Ve");var xq=[We,Ko,nK(Tk.getYear()+"-"+Tk.getMonth()+"-"+Tk.getDay())];_.oK(zh,xq.join(" "),"or")}break;case 8:for(var Op=cj=_.C(Tg,_.yoa,8),io=new Map([[1,"="],[2,">"],[3,"<"]]),Vi=_.m(Op.ai()),Yl=Vi.next();!Yl.done;Yl=Vi.next()){var Pp=Yl.value,Hr=io.get(_.B(Op,2));if(!Hr)throw Error("Ve");_.oK(zh,[We,Hr,Pp].join(" "),"or")}break;case 9:for(var Ir=cj=_.C(Tg,lic,9),Iy=new Map([[1,"in"]]),Nq=_.m(Ir.ai()),Jr=Nq.next();!Jr.done;Jr=Nq.next()){var vD=Jr.value,dB=Iy.get(_.B(Ir,2));
if(!dB)throw Error("Ve");_.oK(zh,[vD,dB,We].join(" "),"or")}break;case 6:for(var Jy=cj=_.C(Tg,_.Doa,6),Ky=new Map([[1,"="]]),Ly=_.m(Jy.ai()),Oq=Ly.next();!Oq.done;Oq=Ly.next()){var Kr=Oq.value,Rs=Ky.get(_.B(Jy,2));if(!Rs)throw Error("Ve");_.oK(zh,[We,Rs,nK(Kr)].join(" "),"or")}break;case 7:for(var My=cj=_.C(Tg,_.Boa,7),wD=new Map([[1,"in"]]),ex=_.m(My.ai()),fx=ex.next();!fx.done;fx=ex.next()){var Ny=fx.value,rG=wD.get(_.B(My,2));if(!rG)throw Error("Ve");_.oK(zh,[nK(Ny),rG,We].join(" "),"or")}break;
case 4:for(var Oy=cj=_.C(Tg,_.Foa,4),$t=new Map([[1,"="],[2,"contains"],[3,"starts with"]]),Ss=_.m(Oy.ai()),gk=Ss.next();!gk.done;gk=Ss.next()){var Ts=gk.value,Zm=$t.get(_.B(Oy,2));if(!Zm)throw Error("Ve");_.oK(zh,[We,Zm,nK(Ts)].join(" "),"or")}break;case 5:for(var SJ=cj=_.C(Tg,nic,5),wO=new Map([[1,"in"]]),eB=_.m(SJ.ai()),wi=eB.next();!wi.done;wi=eB.next()){var sG=wi.value,zv=wO.get(_.B(SJ,2));if(!zv)throw Error("Ve");_.oK(zh,[nK(sG),zv,We].join(" "),"or")}break;case 12:for(var au=cj=_.C(Tg,_.woa,
12),YZ=new Map([[1,"="]]),ZZ=_.m(au.ai()),xD=ZZ.next();!xD.done;xD=ZZ.next()){var Mg=xD.value,$Z=YZ.get(_.B(au,2));if(!$Z)throw Error("Ve");_.oK(zh,[We,$Z,nK(Mg)].join(" "),"or")}break;case 11:for(var Py=cj=_.C(Tg,_.uoa,11),$m=new Map([[1,"in"]]),fB=_.m(Py.ai()),$o=fB.next();!$o.done;$o=fB.next()){var xO=$o.value,yD=$m.get(_.B(Py,2));if(!yD)throw Error("Ve");_.oK(zh,[nK(xO),yD,We].join(" "),"or")}}_.Q(Tg,15)?_.oK(b,"not ("+zh+")"):_.oK(b,1<cj.ai().length?"("+zh+")":""+zh)}}}null!=_.Q(a,60)&&_.qK(b,
"linkShareMetadata.securityUpdateEligible",_.Q(a,60));var bT=_.Q(a,65);if(null!=bT){var yO=[];yO.push("clientEncryptionDetails.encryptionState");yO.push("=");yO.push(nK(bT?"encrypted":"unencrypted"));_.oK(b,yO.join(" "))}var Bn=_.Rj(a,_.gf,68);if(Bn.length){for(var TJ=[],I7=[],cT=_.m(Bn),a_=cT.next();!a_.done;a_=cT.next()){var b_=a_.value,gB="sharedFrom = "+nK(b_.Za());_.S(b_,2,!1)?I7.push(gB):TJ.push(gB)}mjc(b,TJ,!1);mjc(b,I7,!0)}var gx=_.Rj(a,_.gf,67);if(gx.length){for(var UJ=[],c_=[],zO=_.m(gx),
tG=zO.next();!tG.done;tG=zO.next()){var d_=tG.value,VJ="sharedTo = "+nK(d_.Za());_.S(d_,2,!1)?c_.push(VJ):UJ.push(VJ)}mjc(b,UJ,!1);mjc(b,c_,!0)}null!=_.Q(a,69)&&_.qK(b,"linkShareMetadata.securityUpdateEnabled",_.Q(a,69));null!=_.Q(a,72)&&_.qK(b,"canAcceptOwnership",_.Q(a,72));if(_.Q(a,73)){var zha=(new _.jf).Jb("application/vnd.google-apps.shortcut");_.qK(b,"impactedByMultiparentingMigration",!0);_.oK(b,sjc([zha],!1,!1))}1==_.bK(a)&&ojc(b,a);return b.toString()};
_.yjc=function(a){var b=new _.To(_.xjc(a));_.S(a,74,!1)?_.oK(b,"isQuickAccessForSharedFilesRequest"):_.rJ(a)?_.oK(b,"isQuickAccessRequest"):_.sJ(a)?_.oK(b,"isPeoplePredictRequest"):_.tJ(a)&&_.oK(b,"isDrivePriorityRequest");var c=a.wc();if(c){var d=[];d.push("sortBy");d.push(_.mfc[c.getType()]);d.push(_.ufc[c.sf()]);_.Q(c,3)&&d.push("foldersFirst");_.oK(b,d.join(" "))}_.qK(b,"domainSearch",_.Q(a,18));_.qK(b,"offline",_.Q(a,19));_.Rj(a,_.aK,25).length&&(c=[],c.push("sources"),c.push("contains"),c.push(_.pjc(a)),
_.oK(b,c.join(" ")));a.pB().length&&(c=[],c.push("spaces"),c.push("contains"),c.push(_.qjc(a)),_.oK(b,c.join(" ")));if(c=_.bK(a))d=[],d.push("corpora"),d.push("="),d.push(nK(_.Xic[c])),_.oK(b,d.join(" "));_.S(a,66,!0)||_.qK(b,"includeItemsFromAllDrives",_.S(a,66,!0));1!=_.bK(a)&&ojc(b,a);_.S(a,48,!1)&&_.oK(b,"cachedOnly");return b.toString()};
_.OJ=function(a){if(a instanceof _.zI)a=a.od();else if(!a)return!1;return a instanceof _.Zz||a instanceof _.hG||"undefined"!=typeof _.rK&&a instanceof _.rK||a instanceof _.ef&&(_.rJ(a)||_.sJ(a)||_.tJ(a))};zjc=function(){_.Qo.call(this);this.V=this.O=null;this.ka=!1;this.ha=null};_.N(zjc,_.Qo);_.Ajc=function(a){!a.ka&&a.V&&(a.V(),a.ka=!0)};Bjc=function(a,b){a.V||(a.V=b)};zjc.prototype.uj=function(){_.Ajc(this);(0,this.ha)()};Cjc=function(a,b){a.ha||(a.ha=b)};
_.sK=function(a){if(!a.O){a.O=new Oic;var b=_.So(a);_.J(b,56,a.O)}return a.O};zjc.prototype.getState=function(){var a=_.sK(this).getState();a||(a=new Eic,_.sK(this).Id(a));return a};var Djc=function(a,b){var c=new Cic;_.y(c,1,b);a=_.So(a);_.J(a,12,c)};zjc.prototype.ma=function(){var a=_.C(_.sK(this),Gic,4);if(!a){a=new Gic;var b=_.sK(this);_.J(b,4,a)}return a};Ejc=function(a){var b=_.C(_.sK(a),Hic,8);b||(b=new Hic,a=_.sK(a),_.J(a,8,b));return b};
Fjc=function(a){var b=_.C(_.sK(a),Mic,19);b||(b=new Mic,a=_.sK(a),_.J(a,19,b));return b};_.Gjc=function(a,b){a=void 0===a?1:a;b=void 0===b?!1:b;_.qi.call(this);this.H=!1;this.connectionState=b?1:a;this.O=b?!0:1===a;this.V=b};_.N(_.Gjc,_.qi);_.g=_.Gjc.prototype;_.g.isConnected=function(){return!this.H&&1===this.connectionState};_.g.Gl=function(){return 1===this.connectionState||2===this.connectionState};_.g.Te=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?_.zB.nU:_.zB.Iga;else 1===a?(b=_.zB.wL,this.O=!0):3===a&&(b=_.zB.mU);if(b)return b=new Tic(b),this.connectionState=a,this.H=!1,this.dispatchEvent(b),!0}return!1};
var Hjc=function(a,b){this.userId=a;this.H=b;this.db=null},Jjc=function(a,b){a.H.info("drive.ds.sync.logging.ImpressionPersister","Persisting offline impressions.");return Ijc(a,function(c){return c.count().then(function(d){return 1E3>d?a.add(c,b):a.handleError(Error("Ye"))},function(d){return a.handleError(d)})},"readwrite")};Hjc.prototype.add=function(a,b){var c=this,d={};return a.add((d.userId=this.userId,d.Uzb=b.toJSON(),d)).then(null,function(e){c.handleError(e)})};
var Kjc=function(a){return new _.Nh(function(b){var c=new Map;Ijc(a,function(d){return qic(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={Hqa:f.Hqa},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;f.Hqa=k;l.then(function(p){return function(q){q&&c.set(p.Hqa,new _.sAa(q.Uzb))}}(f))}return _.fI([].concat(_.ld(e.values()))).then(function(){return b(c)})})})})},Ljc=function(a,b){return Ijc(a,
function(c){return c.remove(b)},"readwrite")},Ijc=function(a,b,c){c=void 0===c?"readonly":c;return Mjc(a).then(function(d){try{var e=_.nec(d,["OfflineImpressions"],c).objectStore("OfflineImpressions");return b(e)}catch(f){return a.handleError(f?_.UI(f):void 0)}},function(d){return a.handleError(d)})},Mjc=function(a){return a.db?_.Oh(a.db):_.pec("GoogleDriveDsImpressions",2,function(b,c){c.H.objectStoreNames.contains("OfflineImpressions")&&_.ric(c,"OfflineImpressions");b=_.mec(c,"OfflineImpressions",
{autoIncrement:!0});try{b.H.createIndex("userId","userId",void 0)}catch(d){throw _.sI(d,"creating new index userId with key path userId");}},function(){return a.handleError(Error("Ze"))}).then(function(b){return a.db=b},function(b){return _.Ph(_.UI(b))})};Hjc.prototype.handleError=function(a){a||(a=Error("$e"));_.kK(this.H,"drive.ds.sync.logging.ImpressionPersister",a.message,"severe");return _.Oh()};
_.Njc=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;_.qi.call(this);this.V=b;this.O=null;this.H=b?!1:a};_.N(_.Njc,_.qi);_.Njc.prototype.Te=function(){return this.H};_.Njc.prototype.Kl=function(a){var b=this.H!==a;!this.V&&b&&(this.H=a,this.dispatchEvent(new kjc(a)))};_.Njc.prototype.Qy=function(a){this.O=a};
var Pjc=function(a,b,c,d,e,f){_.qi.call(this);var h=this;this.V=a;this.H=b;this.connectionState=c;this.O=d;this.Lb=new _.Je(this);this.Lb.listen(b,"Fb",function(k){k.Te()||Ojc(h)});this.Lb.listen(c,[_.zB.wL,_.zB.nU],function(){return void Ojc(h)});this.W=e;f.then(function(){return Ojc(h)})};_.N(Pjc,_.qi);Pjc.prototype.uA=function(a){return(this.H.Te()||this.connectionState.Te())&&this.H.O?Jjc(this.O,a):this.V.uA(a)};
var Ojc=function(a){return a.H.O?Kjc(a.O).then(function(b){b.forEach(function(c,d){a.V.uA(c).then(function(){return Qjc(a,d)},function(){a.log("Unable to send offline impression batch "+d+".")})})}):Promise.resolve()},Qjc=function(a,b){a.log("Sent offline impression batch "+b+".");a.dispatchEvent("Gb");return Ljc(a.O,b).then(function(){a.log("Removed offline impression batch "+b+".")},function(){a.log("Unable to remove offline impression batch "+b+".")})};
Pjc.prototype.log=function(a){this.W.info("drive.ds.sync.logging.ClearcutOfflineTransport",a)};var Rjc=function(){};Rjc.prototype.JQ=function(){return new zjc};var Sjc=function(){this.H=new Pic};Sjc.prototype.O=function(a){_.J(a,13,this.H)};Sjc.prototype.setEnvironment=function(a){this.H.setEnvironment(a);return this};
Ujc=function(a,b,c,d){this.V=b;this.connectionState=c;this.iw=d;this.O=this.H=null;this.client=_.tK(_.Dfc,_.fK(a));this.W=_.B(a,94);this.ka=_.tK(_.Hfc,_.yj(a.$f(),8,0));this.uwa=_.tK(_.Efc,_.yj(a.$f(),9,2));this.ma=_.S(a,10,!1);this.iu=_.SI(_.tI(a));this.DBa=_.gK(a);this.ha=Tjc(a);this.buildLabel=a.Ji()};Tjc=function(a){var b=[].concat(_.ld(_.Afc.keys())),c=[].concat(_.ld(_.Bfc.keys())),d=_.II(a);return b.filter(function(e){return _.Afc.get(e)(a)}).concat(c.filter(function(e){return d&&_.Bfc.get(e)(d)}))};
_.tK=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};Ujc.prototype.Un=function(a){return null==a?0:a?2:1};var Vjc=function(a){if(a.O)return a.O.H("aU7Ts")};
Ujc.prototype.Bb=function(a){return a instanceof _.mB||"undefined"!=typeof _.uK&&a instanceof _.uK||"undefined"!=typeof _.vK&&a instanceof _.vK||"undefined"!=typeof _.wK&&a instanceof _.wK?a.Bb():"undefined"!=typeof _.xK&&a instanceof _.xK||"undefined"!=typeof _.yK&&a instanceof _.yK||"undefined"!=typeof _.zK&&a instanceof _.zK||"undefined"!=typeof _.AK&&a instanceof _.AK||"undefined"!=typeof _.BK&&a instanceof _.BK?a.response?a.response.Bb():null:null};Ujc.prototype.Ji=function(){return this.buildLabel};
var Wjc=function(a){return a.V.Te()||a.connectionState.Te()?2:1};Ujc.prototype.getEnvironment=function(){return this.iw};Xjc=function(a,b){this.H=a;var c=new _.Qya;_.Rya(c,b.ha);a=this.H.AL();var d=_.efc(a);_.J(d,10,c);(c=b.Ji())&&_.dfc(a,c);this.H.KZ();this.O=b};
_.Yjc=function(a,b,c){var d=_.Ro(a.H.PF(b,c),_.vfc);Djc(d,Wjc(a.O));b=Vjc(a.O);"boolean"===typeof b&&Fic(d.getState(),b);1===c&&Bjc(d,function(){return void a.H.hw(d)});Cjc(d,function(){var e=a.O;e=e.H?e.H.Ld():void 0;var f=d.getState();_.y(f,1,e);a.H.Qp(d)});return d};
Zjc=function(a){var b=new _.Mza,c=new Sjc;_.y(c.H,1,a.client);_.y(c.H,8,a.W);_.y(c.H,3,a.ka);_.y(c.H,4,a.uwa);_.y(c.H,5,a.ma);_.y(c.H,6,a.iu);_.y(c.H,7,a.DBa);a=c.setEnvironment(a.getEnvironment());_.rec(b,_.xfc,a);_.Uo(b,_.vfc,new Rjc);return b};
$jc=function(a,b,c,d,e,f,h,k){k=void 0===k?!1:k;var l=new _.bI(906,b,void 0,_.Kfc());l.ha=!1;var p=new _.sec(l);b=new Date;l=_.jfc(_.ifc(_.hfc(sic(),new _.tec(l)),Zjc(c)),109).setSessionId(b.getTime()+"_"+_.Pg());if(k){a=new Pjc(p,d,e,new Hjc(a,f),f,h);_.gfc(l,a);d=l.build();_.cfc(d.AL(),1E3*b.getTime());var q=new Xjc(d,c);(new _.Je).listen(a,"Gb",function(){_.Yjc(q,106008,0).uj()});return q}_.gfc(l,p);a=l.build();_.cfc(a.AL(),1E3*b.getTime());return new Xjc(a,c)};
akc=function(a,b){this.V=a;this.W=b};akc.prototype.O=function(a,b){this.V&&_.bkc(this)&&(a=_.Yjc(this.V,a,0),b&&_.rgc(a,b),a.uj())};_.CK=function(a,b){if(a.V&&_.bkc(a)){a=_.Yjc(a.V,106018,0);var c=_.C(_.sK(a),Lic,15);if(!c){c=new Lic;var d=_.sK(a);_.J(d,15,c)}c=_.y(c,1,1);_.y(c,2,b);a.uj()}};akc.prototype.H=function(a,b){return this.V&&_.bkc(this)?(a=_.Yjc(this.V,a,1),b&&_.rgc(a,b),a):null};_.bkc=function(a){return!(!a.V||!a.V.H.vP())};
_.ckc=function(a,b,c,d,e,f){var h=_.Q(a,59),k=_.HI(_.tI(a)).toString(),l=_.eK(_.tI(a));f=new Ujc(a,b,c,f);a=h?$jc(l,k,f,b,c,d,e,_.S(a,17,!1)):null;return new akc(a,f)};_.nJ=function(a){_.K.call(this,a)};_.N(_.nJ,_.K);_.dkc=function(a){_.K.call(this,a)};_.N(_.dkc,_.K);_.dkc.prototype.getId=function(){return _.B(this,1)};_.dkc.prototype.Ob=function(a){return _.y(this,1,a)};_.dkc.prototype.ve=function(){return _.C(this,_.rf,2)};_.wJ=function(a){_.K.call(this,a)};_.N(_.wJ,_.K);
_.wJ.prototype.Vn=function(){return _.B(this,2)};_.wJ.prototype.od=function(){return _.C(this,_.dkc,3)};_.mJ=function(a){_.K.call(this,a)};_.N(_.mJ,_.K);_.mJ.prototype.od=function(){return _.C(this,_.lJ,1)};_.mJ.prototype.Lca=function(a){return _.y(this,2,a)};_.kJ=function(a){_.K.call(this,a)};_.N(_.kJ,_.K);_.kJ.prototype.getId=function(){return _.B(this,1)};_.kJ.prototype.Ob=function(a){return _.y(this,1,a)};_.ekc=function(a,b){return _.y(a,2,b)};_.yJ=function(a){_.K.call(this,a)};_.N(_.yJ,_.K);
_.yJ.prototype.od=function(){return _.C(this,_.kJ,1)};fkc=[2];_.FJ=function(a){_.K.call(this,a,-1,fkc)};_.N(_.FJ,_.K);_.FJ.prototype.Ac=function(){return _.B(this,1)};_.FJ.prototype.HV=function(){return _.Rj(this,_.fG,2)};_.FJ.prototype.ve=function(){return _.C(this,_.rf,3)};_.gkc=function(a){_.K.call(this,a)};_.N(_.gkc,_.K);_.gkc.prototype.lk=function(){return _.B(this,1)};_.hkc=function(a){var b=new _.gkc;return _.y(b,1,a)};ikc=[1];_.Jgc=function(a){_.K.call(this,a,-1,ikc)};_.N(_.Jgc,_.K);
_.jkc=function(){this.H={}};kkc=function(a,b,c){if(a.H[b])throw Error("af");a.H[b]=c};_.jkc.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)}};lkc=function(a,b){for(var c=0;c<b.length;c++)delete a.H[b[c]]};_.mkc=function(a,b){this.H=a;this.V=b;this.O=_.Pfc[_.yj(a.$f(),8,0)];this.W=_.Pfc[_.yj(a.$f(),51,5)];this.nonce=_.Pg()};
_.mkc.prototype.lc=function(a,b){if(b.LN)nkc(this,a,b),okc(this,a,b);else if(11===a.Um){if(b.kJb){var c=b.AD||_.E(this.H.$f(),37,"");_.lj(a.uri,"key",c)}nkc(this,a,b);pkc(this,a,b)}else switch(a.uri=qkc(this,a.Um,a.uri),a.Um){case 1:pkc(this,a,b);nkc(this,a,b);break;case 0:b.iu||_.SI(_.tI(this.H))||(b.ijb?_.lj(a.uri,"dsNonce",_.Pg()):_.S(this.H,83,!1)&&_.lj(a.uri,"dsNonce",this.nonce));pkc(this,a,b);okc(this,a,b);nkc(this,a,b);break;case 2:case 3:case 4:case 5:pkc(this,a,b);okc(this,a,b);nkc(this,
a,b);break;case 8:case 9:case 10:case 13:case 12:case 7:pkc(this,a,b);okc(this,a,b);break;default:throw Error("bf`"+a.Um);}};rkc=function(a,b){var c=qkc(a,b,new _.ej);if(!c.H)throw Error("df");return _.hj(_.gj(_.fj(new _.ej,c.O),c.H),c.W).Fi(_.Qfc.has(b)?"/batch"+a.O:"/batch")};
qkc=function(a,b,c){var d=_.B(a.H.$f(),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=_.E(a.H.$f(),62,"");break;case 8:a=_.B(a.H.$f(),53);break;case 9:a=_.B(a.H.$f(),56);break;case 10:a=_.B(a.H.$f(),22);break;case 13:a=_.B(a.H.$f(),55);break;case 12:a=_.B(a.H.$f(),43);break;default:throw Error("bf`"+b);}a&&a.endsWith("/")&&(a=a.slice(0,-1));c=c.toString();if(!c)return new _.ej(a);
_.Ed(c,"/")&&(c=c.slice(1));return new _.ej(a+"/"+c)};pkc=function(a,b,c){a=_.tI(a.H);c.iu||_.SI(a)||(c=[{key:"u",value:_.eK(a)}],b.headers.authorization=_.odc(c)||"",c=_.HI(a),0<=c&&(b.headers["x-goog-authuser"]=String(c)))};
nkc=function(a,b,c){var d=_.tI(a.H),e=a.H.$f(),f=c.I5a||!!_.B(e,13);c=c.J5a||_.S(e,14,!1);var h=11===b.Um;f&&((f=_.B(e,13))&&_.Ed(f,"email:")?_.lj(b.uri,"trace",f):f&&"trace:true"===f?_.lj(b.uri,"$trace","true"):f?_.lj(b.uri,"trace","token:"+f):_.lj(b.uri,"trace","email:"+d.getEmail().replace(/(@|\+).*$/,"")),h||_.lj(b.uri,"trace.deb","genoa:3:all,driveService:3:all"+(2===_.yj(e,9,2)?"":",cospel:3:all,DriveService:3:all")));c&&!h&&a.V&&a.V.O(b.headers,b.method,b.uri.toString())};
okc=function(a,b,c){c.iu||_.SI(_.tI(a.H))?_.lj(b.uri,"key",_.E(a.H.$f(),36,"")):(a=c.AD||_.E(a.H.$f(),37,""),_.lj(b.uri,"key",a))};_.skc=function(a,b){_.VH.call(this,a?a:500,b?b:6E5)};_.N(_.skc,_.VH);_.tkc=function(a,b){this.O=b;this.H=new Map;this.fla(_.Rj(a,_.Bl,91))};_.tkc.prototype.fla=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;b=c.getId();c=_.B(c,2);if(!b||!c)break;var d=_.ukc(this,b);if(d){d!==c&&Igc(b);break}this.H.set(b,c)}};
jhc=function(a,b){return[].concat(_.ld(new Set(b))).map(function(c){var d=(new _.Bl).Ob(c);a.H.has(c)?_.Cl(d,a.H.get(c)):a.O&&(c=a.O.H(c))&&_.Cl(d,_.jl(c));return d}).filter(function(c){return _.P(c,2)})};_.ukc=function(a,b){return a.H.has(b)?String(a.H.get(b)):a.O&&(a=a.O.H(b))&&_.P(a,140)?_.jl(a):null};_.DK=function(a,b,c,d){this.state=a;this.ma=b;this.ka=c;this.Ad=d;this.ha=this.O=this.timeout=this.W=null;this.V=!1;this.H=null};_.DK.prototype.getState=function(){return this.state};
_.DK.prototype.qM=function(a){var b=this;if(this.W)return this.W;var c=_.Sh();this.W=c.promise.then(function(){return _.hkc(1)},function(d){d=_.yB(d).Rg;var e=0;2===d.Dp()?e=3:_.Jfc(d)&&(e=2);return _.hkc(e)});a&&this.W.then(function(d){3===d.lk()&&_.CK(b.Ad,186469046)});this.H&&(a=_.B(Fjc(this.H),4)||0,Nic(Fjc(this.H),a+1));setTimeout(function(){b.W=null},5E3);vkc(this,c);return this.W};_.ykc=function(a,b){wkc(a,3)&&_.xkc(a,b)};_.DK.prototype.reset=function(){this.O=null;zkc(this)};
zkc=function(a){a.timeout&&(clearTimeout(a.timeout),a.timeout=null)};_.xkc=function(a,b){if(!a.O&&!a.V){a.H=a.Ad.H(106025);if(a.H){var c=Fjc(a.H);var d=!(!a.state.isConnected()&&a.state.Gl());c=_.y(c,1,d);c=_.y(c,2,a.state.O);_.y(c,5,!!b)}a.O=new _.skc(5E3,6E4);Akc(a)}};Akc=function(a){zkc(a);vkc(a);a.O&&(a.timeout=setTimeout(function(){return void Akc(a)},a.O.Za()),_.WH(a.O))};
vkc=function(a,b){_.Th((a.ha?a.ha():_.Oh()).then(null,function(){return null}),function(){if(a.H){var c=_.B(Fjc(a.H),3)||0,d=Fjc(a.H);_.y(d,3,c+1)}Bkc(a,b)})};Bkc=function(a,b){a.log("Checking connection state.");var c=a.ma.then(function(d){return d.Re(new _.Ygc)}).then(null,function(d){d=_.yB(d);_.Jfc(d.Rg)&&wkc(a,2);return _.Ph(d)});b?b.resolve(c):c.then(null,function(){return null})};_.DK.prototype.log=function(a){this.ka.info("drive.ds.sync.connection.StateManager",a)};
wkc=function(a,b){return!a.V&&a.state.update(b)?(a.log("Connection status: "+_.Rfc.get(b)),!0):!1};chc=[_.XI,_.ZI,_.YI,_.aJ,_.$I,_.bJ,_.cJ,_.fJ,_.hJ,_.iJ,_.jJ,_.lJ,_.mJ,_.BJ,_.DJ,_.FJ,_.JI,_.GJ,_.HJ,_.IJ,_.Ngc,_.JJ];Ckc=[_.LI];dhc=[_.gG,_.Sgc];ehc=[_.wJ,_.uI,_.DD,_.KJ];fhc=[_.zI,_.nJ,_.tA,_.LI,_.Mgc];ghc=[_.KJ,_.iG];hhc=[_.kJ,_.Jgc,_.vJ,_.yJ,_.zJ,_.Lgc,_.JJ,Ugc,Tgc];
Dkc=function(a){return a instanceof _.zI||a instanceof _.KJ||"undefined"!=typeof _.EK&&a instanceof _.EK||a instanceof _.HJ||a instanceof _.iJ||a instanceof _.bJ||a instanceof _.fJ||a instanceof _.JI&&_.NJ(a)};_.Ekc=function(a,b){this.O=b;this.H={};this.fj=new Aic;b=_.WI({fields:_.Qd(a,28),jr:_.SI(_.tI(a))});this.Jb("SecondaryFields",b);this.Jb("SdkBackfillEnabled",!!_.S(a,45,!1)+" (Include corpus cache: "+!!_.S(a,46,!1)+")")};_.Ekc.prototype.Jb=function(a,b){this.H[a]=Fkc(a,b)};
var Gkc=function(a,b){var c=a.H[b];c||(c=Fkc(b,0,2),a.H[b]=c);c.Jb(String(Number(c.Za())+1))};_.Ekc.prototype.Gz=function(a){var b=_.Qa(this.H);this.O&&b.push(Fkc("CacheSize",this.O.Ld()));b.push(Fkc("InitialViewDataLoaded",a));a=new _.bjc;_.Mj(a,1,b);return _.Zh(a)};Fkc=function(a,b,c){var d=new _.$ic;_.y(d,1,a);_.y(d,4,c||1);d.Jb(String(b));d.Il(_.Vfc.get(a));return d};
_.Hkc=function(a,b,c){var d=new _.lfc;_.y(d,2,"Pending...");b instanceof _.zI?_.Sj(d,3,_.AI[0],b):b instanceof _.KJ?_.Sj(d,4,_.AI[0],b):"undefined"!=typeof _.EK&&b instanceof _.EK?_.Sj(d,5,_.AI[0],b):b instanceof _.HJ?_.Sj(d,6,_.AI[0],b):b instanceof _.iJ?_.Sj(d,7,_.AI[0],b):b instanceof _.bJ?_.Sj(d,8,_.AI[0],b):b instanceof _.fJ?_.Sj(d,9,_.AI[0],b):b instanceof _.JI&&_.Sj(d,10,_.AI[0],b);var e=$gc(b),f=[];if(b instanceof _.YI)LJ(f,"ID",b.getId()),LJ(f,"Parent ID",b.Ik());else if(b instanceof _.iJ)LJ(f,
"TD ID",b.getId());else if(b instanceof _.zI)b=_.yjc(b.od()),LJ(f,"Query",b);else if(b instanceof _.KJ)LJ(f,"Query","All");else if(b instanceof _.HJ)LJ(f,"TD ID",b.getId()),LJ(f,"Title",b.getTitle()),LJ(f,"Theme Image ID",_.B(b,3));else if(b instanceof _.bJ)LJ(f,"MimeType",b.getMimeType()),LJ(f,"Title",b.getTitle()),LJ(f,"Parents",_.Qd(b,3)),LJ(f,"Convert",_.Q(b,8)),LJ(f,"Request ID",b.aj()),LJ(f,"Parent Request IDs",_.Qd(b,10)),LJ(f,"Revision Item ID",_.B(b,12)),LJ(f,"Pinned",_.Q(b,8));else if(b instanceof
_.cJ)LJ(f,"Title",b.getTitle());else if(b instanceof _.fJ)LJ(f,"ID",b.getId());else if(b instanceof _.jJ)LJ(f,"WS ID",b.getId());else if(b instanceof _.JI){if(LJ(f,"ID",b.getId()),LJ(f,"Title",b.getTitle()),LJ(f,"Description",b.Fe()),LJ(f,"Starred",_.Q(b,4)),LJ(f,"Trashed",b.Th()),LJ(f,"MimeType",b.getMimeType()),LJ(f,"Parents",_.Qd(b,8)),LJ(f,"Parents to add",_.Qd(b,9)),LJ(f,"Parents to remove",_.Qd(b,10)),LJ(f,"Restricted",_.Q(b,11)),LJ(f,"Folder Color",b.Vi()),LJ(f,"Update Last Viewed",_.Q(b,15)),
LJ(f,"Subscribed",_.Q(b,16)),LJ(f,"Available Offline",_.Q(b,18)),LJ(f,"Wksp to add",_.Qd(b,31)),LJ(f,"Wksp to remove",_.Qd(b,32)),b=_.C(b,_.Zk,25))LJ(f,"Read Only",_.Q(b,1)),LJ(f,"Reason",_.B(b,2))}else b instanceof _.IJ?(LJ(f,"WS ID",b.getId()),LJ(f,"Title",b.getTitle()),LJ(f,"State",b.getState())):b instanceof _.Ngc&&LJ(f,"Title",b.request.getTitle());_.y(d,1,"Request: "+e+(c?" ("+c+")":"")+"\n"+f.join("\n"));a.fj.add(d);return d};
_.Ikc=function(a,b){for(var c=new _.To,d=0;d<b.length&&20>d;d++){var e=b[d];c.append(e.getId()+":"+_.ugc(e.getTitle()||"",20)+"\n")}20<b.length&&c.append(b.length-20+" more item(s)");_.y(a,2,c.toString()||"Done.")};_.Ekc.prototype.cR=function(){return this.fj.xg()};_.t("sy1ny");
_.FK=function(a){_.K.call(this,a)};_.N(_.FK,_.K);_.FK.prototype.ld=function(){return _.C(this,_.mB,1)};_.Jkc=function(a,b){return _.J(a,1,b)};_.FK.prototype.Vn=function(){return _.B(this,3)};
_.Kkc=function(a,b,c){_.gi.call(this,"Lb");this.requestId=a;this.progress=b;this.totalBytes=c};_.N(_.Kkc,_.gi);
_.Lkc=function(a,b){this.O=a;this.V=b;this.H=null};
var GK=function(a){_.qi.call(this);this.name=a};_.N(GK,_.qi);_.g=GK.prototype;_.g.U3=function(){};_.g.eEa=function(){};_.g.P_a=function(){};_.g.BLa=function(){};_.g.O_a=function(){};_.g.QF=function(){this.dispatchEvent(new _.gi("Mb"))};_.g.toString=function(){return this.name+": "+this.max(Infinity)};
var Mkc=function(a,b){GK.call(this,"Online");var c=this;this.O=a;this.H=b;this.Pc=new _.Je(this);this.Ma(this.Pc);this.Pc.listen(this.O,"Fb",function(d){d.Te()||c.QF()});this.Pc.listen(this.H,"nb",this.QF)};_.N(Mkc,GK);Mkc.prototype.max=function(){var a=this.O.Te(),b=this.H.xB();return!a&&b?Infinity:0};Mkc.prototype.U3=function(){this.QF()};
var Nkc=function(a){GK.call(this,"Online");var b=this;this.connectionState=a;this.Pc=new _.Je(this);this.Ma(this.Pc);this.Pc.listen(this.connectionState,[_.zB.wL,_.zB.Iga,_.zB.nU],function(){return b.QF()})};_.N(Nkc,GK);Nkc.prototype.max=function(){return this.connectionState.isConnected()?Infinity:0};Nkc.prototype.U3=function(){this.QF()};
_.Okc=function(a,b){this.H=a;this.O=b};_.Pkc=function(a){return a.H instanceof _.DK?new Nkc(a.H.getState()):new Mkc(a.O,a.H)};_.Okc.prototype.Gj=function(){return this.H instanceof _.DK?this.H.getState():this.O};
var Rkc;_.Qkc=function(a,b,c){this.sK=c;this.O=!0;this.V=0;this.H=new _.VH(a,b,.5)};Rkc=function(a){return a.H.O+a.V};
_.HK=function(a,b){GK.call(this,"Backoff");this.H=a;this.O=b};_.N(_.HK,GK);_.HK.prototype.max=function(){return this.H.O?Infinity:0};_.HK.prototype.BLa=function(){var a=this.H;a.V=0;a.H.reset()};_.HK.prototype.O_a=function(a){var b=this;Skc(a)&&this.H.O&&(this.H.O=!1,a=this.H.H.Za(),this.log("Stopping new requests for "+a+" ms."),_.n.setTimeout(function(){b.log("Backoff complete, allowing requests.");b.H.O=!0;b.QF()},a),_.WH(this.H.H))};
var Skc=function(a){var b;return(a=null===(b=_.fa(a.GD))||void 0===b?void 0:b.response)?xgc(_.Oub(a)):!1};_.HK.prototype.log=function(a){this.O.info("drive.ds.network.queue.BackoffState",a)};
_.Tkc=function(a,b){GK.call(this,"Batch");this.O=a;this.V=b;this.H=null};_.N(_.Tkc,GK);_.Tkc.prototype.max=function(a){return a>=this.O?this.O:null!=this.H?this.V<=Date.now()-this.H?this.O:0:0};_.Tkc.prototype.U3=function(a){a>=this.O?this.QF():null==this.H&&Ukc(this)};_.Tkc.prototype.eEa=function(a,b){0<b?Ukc(this):this.H=null};var Ukc=function(a){a.H=Date.now()-1;_.n.setTimeout(a.QF.bind(a),a.V)};
_.IK=function(){this.fj=[]};_.g=_.IK.prototype;_.g.add=function(a,b){b?this.fj.unshift(a):this.fj.push(a);return!0};_.g.Yra=function(a){return _.Aa(this.fj,0,a)};_.g.Ld=function(){return this.fj.length};_.g.cancel=function(a){return _.ua(this.fj,function(b){return b.Bv.config.requestId===a?(b.ke.resolve(ahc(b.Bv.request)),!0):!1})};_.g.ZJ=function(){return _.eg(this.fj,function(a){return _.NJ(a.Bv.request)})};
var Vkc=function(){GK.call(this,"Immediate")};_.N(Vkc,GK);Vkc.prototype.max=function(){return Infinity};Vkc.prototype.U3=function(){this.QF()};
var Wkc=function(){GK.call(this,"One Request")};_.N(Wkc,GK);Wkc.prototype.max=function(){return 1};
_.JK=function(a){GK.call(this,"Parallel");this.limit=a;this.H=0};_.N(_.JK,GK);_.JK.prototype.max=function(){return Math.max(0,this.limit-this.H)};_.JK.prototype.U3=function(){this.H<this.limit&&this.QF()};_.JK.prototype.eEa=function(a){this.H+=a.length};_.JK.prototype.P_a=function(a){this.H-=a.length;this.H<this.limit&&this.QF()};
var Xkc=function(){_.qi.apply(this,arguments)};_.N(Xkc,_.qi);var Zkc=function(a,b){a.dispatchEvent(new Ykc(b))};Xkc.prototype.O=function(){};var Ykc=function(a){_.gi.call(this,"Nb");this.request=a};_.N(Ykc,_.gi);
_.KK=function(a,b,c,d,e,f){_.qi.call(this);var h=this;this.ha=a;this.V=b;this.H=c;this.buckets=d;this.O=e;this.ma=0;this.W=new Map;this.Pc=new _.Je(this);this.Ma(this.Pc);for(a=0;a<this.H.length;a++)this.Pc.listen(this.H[a],"Mb",this.NZa);for(a=0;a<this.O.length;a++)this.Pc.listen(this.O[a],"Nb",function(k){$kc(h,!0,k.request)});this.ka=_.xt("drive.ds.network.queue.Queue [%s]",f)};_.N(_.KK,_.qi);_.KK.prototype.add=function(a){return $kc(this,!1,{Bv:a,ke:_.Sh(),GD:[]})};
_.KK.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};_.KK.prototype.ZJ=function(){return this.V.ZJ()?!0:this.buckets.some(function(a){return a.ZJ()})};
var $kc=function(a,b,c){if(!a.buckets.some(function(f){return f.add(c,b)}))return a=_.eq(new _.mc,"No queue bucket accepted request."),_.Ph(_.yB(a));for(var d=alc(a),e=0;e<a.H.length;e++)a.H[e].U3(d);return c.ke.promise};_.g=_.KK.prototype;
_.g.NZa=function(){var a=alc(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].Yra(b);0<c.length&&(this.log("Executing "+c.length+"/"+a+" requests. States: {"+this.H.join(", ")+"}"),this.execute(c))}};
_.g.execute=function(a){var b=this,c=String(this.ma++);this.W.set(c,a);for(var d=this.V.execute(a),e=0;e<a.length;e++)d[e].then(this.Uub.bind(this,a[e]),this.Tub.bind(this,a[e]));e=alc(this);for(var f=0;f<this.H.length;f++)this.H[f].eEa(a,e);_.Th(_.fI(d).then(this.Sub.bind(this,a)),function(){b.W.delete(c)});_.n.setTimeout(this.NZa.bind(this),0)};
_.g.Uub=function(a,b){var c=a.Bv.config;this.log($gc(a.Bv.request)+" request completed successfully. xd4: "+!(!c||!c.LN));this.H.forEach(function(d){return d.BLa()});this.O.forEach(function(d){return d.O(a)});a.ke.resolve(b)};
_.g.Tub=function(a,b){b=_.yB(b);this.log($gc(a.Bv.request)+(" request failed with error: "+b.ha+"."));a.GD.push({response:b,YPb:Date.now()});for(var c=0;c<this.H.length;c++)this.H[c].O_a(a);a.Bv.config.$Da||!this.O.some(function(d){return d.intercept(a)})?a.ke.reject(b):this.log($gc(a.Bv.request)+" encountered an error, but was intercepted to be retried.")};_.g.Sub=function(a){alc(this);for(var b=0;b<this.H.length;b++)this.H[b].P_a(a)};
var alc=function(a){for(var b=0,c=0;c<a.buckets.length;c++)if(a.buckets[c].Ld()){b=a.buckets[c].Ld();break}return b};_.KK.prototype.log=function(a){this.ha.info(this.ka,a)};
_.blc=function(a,b,c,d){Xkc.call(this);this.V=b;this.ka=c;this.W=d;this.H=new Map;this.ha=_.Zj(a,21,1E3);this.ta=_.Zj(a,1,1);this.ma=function(){return new _.Qkc(_.Zj(a,63,1E3),_.Zj(a,64,3E5),_.Zj(a,65,10))}};_.N(_.blc,Xkc);
_.blc.prototype.intercept=function(a){var b=a.GD.length,c=0<b&&_.fa(a.GD).response||null;if(c){c=_.GI(c);if(2===c.Dp())return clc(this,a);if(_.Jfc(c))return 2>=b?(Zkc(this,a),a=!0):a=!1,a;var d=c.kk();if(3===d||31===d||13===d||9===d)return dlc(this,a,b);if(xgc(c))return b=Rkc(this.V),c=this.V,Rkc(c)<c.sK?(this.log("Backoff number "+b+" for a User Rate Limit error."),Zkc(this,a),a=!0):(this.log("Done retrying User Rate Limit errors after "+(b+" backoffs.")),a=!1),a}return!1};
var clc=function(a,b){var c=elc(a,b),d=Rkc(c);if(Rkc(c)<c.sK)return a.log("Retry "+(d+1)+" for a failed request due to an offline error."),a.ka.Te()?(d=c.H.Za(),_.n.setTimeout(function(){return Zkc(a,b)},d),_.WH(c.H)):(_.n.setTimeout(function(){return Zkc(a,b)}),c.V++),!0;a.H.delete(b);return!1},elc=function(a,b){a.H.has(b)||a.H.set(b,a.ma());return a.H.get(b)},dlc=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 Zkc(a,
b)},a.ha*Math.pow(2,c)),!0;a.log("Done retrying retriable requests after "+d+" retries.");return!1};_.blc.prototype.O=function(a){this.H.delete(a)};_.blc.prototype.log=function(a){this.W.info("drive.ds.network.queue.RetryInterceptor",a)};
var flc=function(a){try{if("undefined"!==typeof FileReaderSync&&_.Kfc()){var b=new FileReaderSync;return Promise.resolve(b.readAsDataURL(a))}var c=new _.Fyb,d=Uic(c);c.H.readAsDataURL(a);return d.then()}catch(e){return Promise.reject(new _.Dyb(_.UI(e),"reading data"))}},glc=function(a){return flc(a.size?a.slice(0,1):a).then(function(){return null},function(b){return b.name})};
var hlc=function(a,b,c,d,e,f,h){this.Ha=a;this.H=b;this.Ka=c;this.W=d;this.Qa=e;this.request=f;this.config=h;this.O=this.ta=this.progress=0;this.Fa=this.va=this.ha=null;this.ke=_.Sh();this.finished=!1;this.Ba=this.uu=0;this.ka=null;this.ma=!1;this.V=null;a=f.request.Gz();a=_.Kfc()&&a?_.B(a,1):null;this.fileSize="number"===typeof a?a:f.file.size;this.requestId=h.requestId;this.rO="progress_"+this.requestId;h.rO=this.rO;this.ma=!!f.metadata};
hlc.prototype.log=function(a){this.Ka.info("drive.ds.sync.request.ResumableUpload",a)};hlc.prototype.start=function(){var a=this,b=new Tgc(this.request.request,this.request.metadata),c=ilc(this);this.Ha.then(function(d){return d.Re(b,c)}).then(function(d){a.ha=d.O;a.va=d.H;a.Fa=d.V;jlc(a)},function(d){return void a.ke.reject(d)});return _.Th(this.ke.promise.then(function(d){klc(a,d);return d},function(d){d=_.yB(d);klc(a,d.Rg);return _.Ph(d)}),function(){lkc(a.H,[a.rO])})};
var ilc=function(a){var b=_.Ya(a.config);kkc(a.H,a.rO,xic(function(){return void a.H.notify([a.requestId],0)}));return b};hlc.prototype.cancel=function(){return this.finished?!1:(this.finished=!0,this.ke.resolve(ahc(this.request)),!0)};
var jlc=function(a){a.finished||(a.log("Uploading chunk "+a.Ba+" for "+a.ha+"."),llc(a,4))},llc=function(a,b){mlc(a).then(function(c){if(c){var d=nlc(a,c.blob.size);a.Ha.then(function(f){return f.Re(c,d)}).then(function(f){a.V=null;var h=c.blob.size;a.progress+=a.O;a.ta+=h;a.Ba++;f.PJ()&&(a.va=f.PJ());f.WM()&&(a.Fa=f.WM());a.progress<a.fileSize?jlc(a):a.ke.resolve(f)},function(f){if(d.$Da)a.cancel();else{var h=_.GI(f);h.ZAa()||h.Wka()||a.ma?olc(a,b,h,!1):glc(c.blob).then(function(k){k=k?_.REa.get(k)||
25:38;_.QI(h,k);k=38===h.Dp();var l=38!==h.Dp()&&25!==h.Dp();olc(a,b,h,k,l)},function(){})}})}else{var e=_.yB(_.QI(_.eq(new _.mc,"Could not read more of the file. Read "+a.progress+"/"+a.fileSize+" bytes."),5));a.ke.reject(e)}})},olc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=4-b;c.gfa(f);!e&&0<b?(a.uu++,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+"."));llc(a,b)},a.Qa*Math.pow(1.5,f))):a.ke.reject(_.yB(c))},mlc=function(a,b){return a.ma&&a.V?_.Oh(a.V):plc(a,b).then(function(c){if(!c)return null;if(a.ma&&0<a.fileSize&&0===c.size)return mlc(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 Ugc(a.ha,c,a.ta,a.ta+c.size-1,a.finished,a.request.request.getMimeType(),_.B(a.request.request,
12)||void 0);return a.V})},plc=function(a,b){a.O=b?b:Math.min(a.fileSize-a.progress,a.W);b=a.progress;return a.request.jQ?a.request.jQ(b,a.O):_.Oh(_.wgc(a.request.file,b,b+a.O))},nlc=function(a,b){var c=_.Ya(a.config);c.FQa=!0;var d=a.progress/a.fileSize,e=b/a.fileSize;lkc(a.H,[a.rO]);kkc(a.H,a.rO,function(f){a.H.notify([a.requestId],Math.min(d+e*f,1))});return c},klc=function(a,b){b.CLa(3);b.gfa(a.uu);b.PJ()||b.Eca(a.va);b.WM()||b.vca(a.Fa)};
_.qlc=function(a,b,c,d,e){this.ha=a;this.V=b;this.H=c;this.W=d;this.O=e};_.qlc.prototype.create=function(a,b){return new hlc(this.ha,this.V,this.H,this.W,this.O,a,b)};
_.rlc=function(a){this.O=a;this.H={}};_.rlc.prototype.execute=function(a){for(var b=[],c=0;c<a.length;c++)if(a[c].Bv.request instanceof _.Vgc)b.push(slc(this,a[c].Bv));else{var d=_.eq(new _.mc,"ResumableUploadExecutor only supports ResumableUploadRequests.");b.push(Promise.reject(_.yB(d)))}return b};_.rlc.prototype.cancel=function(a){return!!this.H[a]&&this.H[a].cancel()};_.rlc.prototype.ZJ=function(){return!_.Ta(this.H)};
var slc=function(a,b){var c=a.O.create(b.request,b.config),d=c.start(),e=b.config.requestId;a.H[e]=c;return _.Th(d,function(){delete a.H[e]})};
_.tlc=function(a,b){return new _.KK(b,a,[new Vkc],[new _.IK],[],"immediate")};_.ulc=function(a,b,c,d,e){return new _.KK(e,a,[_.Pkc(d),new _.HK(c,e),new Wkc],[new _.IK],[new _.blc(b,c,d.Gj(),e)],"connected")};_.vlc=function(a,b,c,d,e,f,h){h=void 0===h?_.Zj(b,10,50):h;return new _.KK(e,a,[_.Pkc(d),new _.Tkc(h,_.Zj(b,12,10)),new _.JK(3*h),new _.HK(c,e)],[new _.IK],[new _.blc(b,c,d.Gj(),e)],f)};_.wlc=function(a,b,c){b=_.Zj(b,46,1);return new _.KK(c,a,[new _.JK(b)],[new _.IK],[],"resumable_upload")};
_.xlc=function(a,b,c,d,e,f,h,k){this.hI=a;this.ma=b;this.V=c;this.H=d;this.W=e;this.ha=f;this.ka=h;this.O=k};_.xlc.prototype.Re=function(a,b){return ylc(this,a,b).then(null,function(c){c=_.yB(c);var d=c.Rg;bhc(a)||_.gq(d);return _.Ph(c)})};
var ylc=function(a,b,c){c=void 0===c?{}:c;var d=a.hI.validate(b);if(d)return _.Ph(_.yB(d));var e=a.ma.translate(b);e instanceof _.mc?d=void 0:Array.isArray(e)?(d=e.map(function(f){return a.V.execute(a,f,c)}).filter(function(f){return!!f}),d=0<d.length?Promise.all(d):void 0):d=a.V.execute(a,e,c)||void 0;return _.Oh(d).then(function(){if(e instanceof _.mc)return _.Ph(_.yB(e));if(Array.isArray(e)){var f=e.map(function(h){return zlc(a,b,h,c)});return _.fI(f)}return zlc(a,b,e,c)},function(f){return _.Ph(_.yB(f))})},
zlc=function(a,b,c,d){var e=Alc(a,c);if(!e)return b=_.QI(_.eq(new _.mc,"Failed to choose a queue for server request."),18),_.Ph(_.yB(b));if(b instanceof _.kJ||b instanceof _.yJ)d.ijb=!0;if(e===a.H[7]||e===a.H[8])d.LN=!0;d=e.add({request:c,config:d});(_.NJ(b)||_.NJ(c))&&_.Th(d,function(){var f=a.W;f.O()||(f.H&&(f.H.resolve(),f.H=null),f.V())});b=a.ha.apply(c,d);d.then(function(f){a.ka.apply(c,f)},function(){});return b};_.xlc.prototype.cancel=function(a){return _.Oa(this.H,function(b){return b.cancel(a)})};
var Alc=function(a,b){var c,d=!1;b instanceof _.nJ?d=!(null===(c=_.C(b,_.tA,2))||void 0===c||!_.Q(c,7)):b instanceof _.tA?d=!!_.Q(b,7):b instanceof _.zI&&(d=(d=b.od())&&!!_.Q(d,46));return(b instanceof _.Ygc||b instanceof _.cI&&_.Q(b,9))&&a.H[1]?a.H[1]:b instanceof _.Vgc&&a.H[5]?a.H[5]:d&&ihc(b,a.O)&&a.H[7]?a.H[7]:ihc(b,a.O)&&a.H[8]?a.H[8]:d&&(b instanceof _.nJ||b instanceof _.tA)&&a.H[6]?a.H[6]:(d||Ckc.includes(b.constructor))&&a.H[3]?a.H[3]:chc.includes(b.constructor)&&a.H[4]?a.H[4]:a.H[2]||a.H[1]};
var Blc=function(a){this.H=a};Blc.prototype.build=function(a,b){var c="====="+_.Pg()+"=====",d=a[0].Um,e=b.every(function(l){return l.LN});if(e){var f=d;var h={"content-type":"text/plain; charset=UTF-8"};d="POST";var k=rkc(this.H,a[0].Um);_.lj(k,"$ct",'multipart/mixed; boundary="'+c+'"')}else f=Clc[d],h=Dlc[d]||{},h["content-type"]=_.xt('multipart/mixed; boundary="%s"',c),d=Elc[d],k=new _.ej("");a=Flc(this,a,b,c,e);return{Um:f,body:a,headers:h,method:d,uri:k}};
var Flc=function(a,b,c,d,e){for(var f=Ggc(Glc[b[0].Um]||{}),h="",k=0;k<b.length;k++){e&&pkc(a.H,b[k],c[k]);var l=b[k],p=a.H,q=l,r=c[k];q.uri=qkc(p,q.Um,q.uri);switch(q.Um){case 0:case 5:okc(p,q,r);nkc(p,q,r);break;case 2:pkc(p,q,r);okc(p,q,r);var v=q,z=_.B(p.H.$f(),57);v.headers.host=_.rj(z).H;v.headers.origin=_.n.location.origin?_.n.location.origin:_.n.location.protocol+"//"+_.n.location.host;nkc(p,q,r);break;case 12:case 10:case 13:break;case 8:case 7:throw Error("cf`"+q.Um);default:throw Error("bf`"+
q.Um);}p=l;q=p.uri.clone();_.fj(q,"");_.gj(q,"");_.hj(q,null);l=f+"\r\n"+(p.method+" "+q+" HTTP/1.1\r\n")+Ggc(l.headers)+"\r\n"+(l.body?l.body+"\r\n":"");h+="--"+d+"\r\n";h+=l}return h+("--"+d+"--\r\n")},Hlc={},Clc=(Hlc[0]=1,Hlc[2]=3,Hlc),Ilc={},Elc=(Ilc[0]="POST",Ilc[2]="PUT",Ilc[12]="POST",Ilc),Jlc={},Klc={},Dlc=(Klc[2]=(Jlc["x-goog-upload-protocol"]="batch",Jlc),Klc),Llc={},Mlc={},Nlc={},Olc={},Glc=(Olc[0]=(Llc["content-type"]="application/http",Llc["content-transfer-encoding"]="binary",Llc),Olc[12]=
(Mlc["content-type"]="application/http",Mlc["content-transfer-encoding"]="binary",Mlc),Olc[2]=(Nlc["content-type"]="application/http",Nlc),Olc);
var Plc=/^HTTP\/1\.1 (\d+) ([\w ]+)/,Qlc=/^multipart\/mixed; boundary="?([^"]+)"?$/;
var Rlc=function(a,b,c,d,e){this.V=a;this.W=b;this.ha=c;this.H=d;this.O=e;this.fj=new Map};Rlc.prototype.add=function(a,b){var c="DEFAULT";b.LN&&(c=rkc(this.V,a.Um).toString());this.fj.has(c)||this.fj.set(c,[]);c=this.fj.get(c);if(1<=c.length&&!b.LN&&!Clc[a.Um])return a=_.eq(new _.mc,"Unsupported batch API: "+a.Um),_.Ph(_.yB(a));var d=_.Sh();c.push({request:a,config:b,ke:d});return d.promise};
Rlc.prototype.send=function(){var a=this;this.fj.forEach(function(b,c){try{Slc(a,b)}catch(f){var d=_.fq(_.eq(new _.mc,"Error executing XHR: "+f.message),f.stack),e=_.yB(d);b.forEach(function(h){h.ke.reject(e)});a.fj.delete(c)}})};
var Slc=function(a,b){if(1===b.length){var c=b[0];if(!c.config.ABa&&!c.config.LN){var d=!1;if(Clc[c.request.Um]){var e={Um:c.request.Um,headers:{},method:c.request.method,uri:c.request.uri.clone()};a.V.lc(e,c.config);2E3<e.uri.toString().length&&(d=!0)}if(!d){Tlc(a,c);return}}}Ulc(a,b)},Tlc=function(a,b){var c=b.ke;a.W.Zg(b.request,b.config).then(function(d){c.resolve(d);Vlc(a,b)},function(d){a.handleError(b,d);c.reject(_.yB(d))})},Ulc=function(a,b){var c=[],d=[];b.forEach(function(e){c.push(e.request);
d.push(e.config)});a.W.Zg(a.ha.build(c,d),{ABa:!0,LN:d.every(function(e){return e.LN})}).then(function(e){e.headers=_.fgc(e.headers);var f=Qlc.exec(e.headers["content-type"]);var h=f&&f[1]?"--"+f[1]:null;if(!h)throw new _.nc("Could not extract batch boundary.",_.QI(_.fq(new _.mc,JSON.stringify(e)),14));f=h+"\r\n";h=e.text.split(h+"--");if(2===h.length&&_.Ed(_.lia(h[0]),f)&&_.ee(h[1]))h=_.lia(h[0]).substring(f.length);else throw new _.nc("Could not parse batch response; did not begin and end with boundary.",
_.QI(_.fq(new _.mc,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 z,A=e.headers,D=f[l],G=p&&p.uri,H=D.split("\r\n\r\n");if(2>H.length)v=new _.nc("Individual batch response contained too few parts.",_.QI(_.fq(new _.mc,D),17));else{var L=H[1].split("\r\n");if(z=Plc.exec(L[0])){p=_.Rg(z[1]);z=z[2];L.shift();A=_.Ya(A);for(var M=Object,R=M.assign,Z={},ia=0;ia<L.length;ia++){var ja=_.yia(L[ia],":",1);ja&&2===
ja.length&&(Z[(0,_.gg)(ja[0])]=(0,_.gg)(ja[1]))}L=_.fgc(Z);R.call(M,A,L);try{v=_.ee(_.Og(H[2]))?void 0:JSON.parse(H[2])}catch(xa){}v=(p=_.kgc(p,z,A,D,v,void 0,void 0,G&&G.toString()))?_.yB(p):{headers:A,text:D,json:v||void 0}}else v=new _.nc("Could not extract HTTP status code and text.",_.QI(_.fq(new _.mc,D),16))}r.call(q,v)}return k}).then(null,function(e){e=_.yB(e);return _.tdc(e,b.length)}).then(function(e){for(var f=!1,h=0;h<b.length;h++){var k=b[h].ke,l=e[h];l instanceof _.mc||l instanceof _.nc?
(l=_.yB(l),f||(f=a.handleError(b[h],l)),k.reject(l)):k.resolve(l)}f||Vlc(a,b[0])})},Vlc=function(a,b){var c=b.request.Um;b=!b.config.iu&&_.oa(Wlc,c);if(a.H){if(a=a.H,c=b?1:2,!a.state.isConnected()||b)c=wkc(a,c),b&&c&&a.reset(),a.H&&c&&(b||!a.state.O)&&(a.H.uj(),a.H=null)}else a.O&&b&&a.O.va()};
Rlc.prototype.handleError=function(a,b){a=_.Oub(b);if(2===a.Dp()){if(this.H)return _.ykc(this.H),!0}else if(_.Jfc(a)){if(this.H){a=this.H;if(b=!a.V)b=a.state,b=!b.V&&b.isConnected()?b.H=!0:!1;b&&_.xkc(a);return!0}if(this.O)return this.O.ta(),!0}return!1};var Wlc=[0,2,4,7,8];
var Xlc=function(){_.Zi.apply(this,arguments)};_.N(Xlc,_.Zi);Xlc.prototype.getAllResponseHeaders=function(){return _.lia(_.Zi.prototype.getAllResponseHeaders.call(this))};
var Ylc=function(a,b){this.W=a;this.V=b;this.O={};this.H={}};_.g=Ylc.prototype;_.g.Zg=function(a,b){try{this.W.lc(a,b);var c=new Xlc;c.oC=!0;var d=b.requestId||"",e=_.Sh();c.listen("complete",this.y9a.bind(this,c,e,d,b.ABa,4===a.Um));d&&b.rO&&!b.LN&&(this.O[d]=c,this.H[d]=b,c.Gb=!0,c.listen("uploadprogress",(0,_.u)(this.Ayb,this,b)),b.FQa||c.listen("downloadprogress",(0,_.u)(this.Dub,this,b)));c.send(a.uri,a.method,a.body,a.headers);return e.promise}catch(f){return _.Ph(_.yB(f))}};
_.g.cancel=function(a){var b=this.O[a];a=this.H[a];return b&&b.isActive()?(a.$Da=!0,b.abort(),!0):!1};_.g.y9a=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;c&&(delete this.O[c],delete this.H[c]);c={headers:_.gma(a),text:a.zl()};if(!d)try{c.json=_.RI(a)}catch(f){}d=_.kgc(a.Bb(),_.dma(a),c.headers,c.text,c.json,a.O,_.hma(a),String(a.ta),e);a.dispose();d?b.reject(_.yB(d)):b.resolve(c)};_.g.Ayb=function(a,b){b.lengthComputable&&this.V.notify([a.rO],a.FQa?b.loaded/b.total:b.loaded/b.total/2)};
_.g.Dub=function(a,b){b.lengthComputable&&this.V.notify([a.rO],b.loaded/b.total/2+.5)};
_.Zlc=function(a,b,c,d,e,f,h){this.O=a;this.va=b;this.Ba=c;this.ta=d;this.ma=e;this.ha=f;this.H=h;this.V=[];this.ka=new Blc(this.O);this.W=new Ylc(this.O,this.va)};_.g=_.Zlc.prototype;
_.g.execute=function(a){for(var b=[],c=[],d=0;d<a.length;d++){var e=a[d].Bv;this.V.push(e);b.push(this.Ba.FE(e,a[d].GD));c.push(Dkc(e.request)?_.Hkc(this.ma,e.request):void 0)}if(this.H&&this.H.V){var f=Promise.reject(_.yB(_.kgc(0,"",{},"",void 0,-99)));return a.map(function(){return f})}var h=new Rlc(this.O,this.W,this.ka,this.H||void 0,this.ha||void 0);d=[];e={};for(var k=0;k<a.length;e={xqa:e.xqa},k++){e.xqa=a[k].Bv.config;var l=b[k].then(function(p){return function(q){return h.add(q,p.xqa)}}(e));
d.push(l)}Promise.allSettled(b).then(function(){h.send()});b=[];for(e=0;e<a.length;e++)k=a[e].Bv,l=d[e].then(this.Rmb.bind(this,k.request,c[e],a[e].GD)).then(null,function(p){return Promise.reject(_.yB(p))}),l.then(this.DLa.bind(this,k),this.DLa.bind(this,k)),b.push(l);return b};_.g.Rmb=function(a,b,c,d){a=this.ta.FE(a,d,c);b&&(c=a.xd?a.xd():[],_.Ikc(b,c));return a};_.g.cancel=function(a){return this.W.cancel(a)};_.g.ZJ=function(){return this.V.some(function(a){return _.NJ(a.request)})};
_.g.DLa=function(a){_.ta(this.V,a)};
_.$lc=function(){};_.$lc.prototype.execute=function(){return null};
var amc;amc=function(a){this.H=a};_.LK=function(a,b){if(!_.Ba(b))throw new _.nc("Expected an object, but got a "+_.cga(b)+".",_.TI(11,void 0,8));var c=b.kind;if(!c)throw new _.nc("Expected 'kind' parameter in response: "+JSON.stringify(b),_.TI(11,void 0,21));if(!a.includes(c))throw new _.nc("Expected "+a.join(" or ")+" but got a "+c+".",_.TI(11,void 0,9));};_.MK=function(a){return null!=a?(new Date(a)).getTime():void 0};
_.bmc=function(a){var b=null!=a.canDelete?a.canDelete:a.canDeleteTeamDrive;var c=_.ohc(new _.Xk,a.canAddChildren);c=_.y(c,18,a.canChangeTeamDriveBackground);c=_.y(c,2,a.canComment);c=_.y(c,3,a.canCopy);b=_.xhc(_.shc(_.yhc(_.zhc(_.Ahc(_.whc(_.vhc(_.rhc(_.qhc(_.phc(c,b),a.canDownload),a.canEdit),a.canManageMembers),a.canManageVisitors),a.canMoveItemIntoTeamDrive),a.canMoveTeamDriveItem),a.canReadTeamDrive),a.canRemoveChildren),a.canRename);b=_.y(b,13,a.canRenameTeamDrive);b=_.Bhc(_.uhc(_.thc(b,a.canShare),
a.canTrash),a.canUntrash);b=_.y(b,27,a.canModifyContentRestriction);b=_.y(b,26,a.canShareOutsideDomain);b=_.Ehc(_.Dhc(_.Chc(_.y(b,30,a.canMoveItemWithinTeamDrive),a.canMoveItemOutOfTeamDrive),a.canMoveChildrenWithinTeamDrive),a.canMoveChildrenOutOfTeamDrive);b=_.y(b,34,a.canDeleteChildren);b=_.y(b,35,a.canTrashChildren);b=_.y(b,36,a.canRequestApproval);b=_.y(b,37,a.canReadCategoryMetadata);b=_.y(b,38,a.canEditCategoryMetadata);b=_.y(b,39,a.canChangeCategoryReferences);b=_.y(b,49,a.canSetMissingRequiredFields);
b=_.y(b,40,a.canAddMyDriveParent);b=_.y(b,41,a.canRemoveMyDriveParent);b=_.Ghc(_.Fhc(b,a.canShareChildFiles),a.canShareChildFolders);b=_.y(b,44,a.canRead);b=_.Jhc(_.Ihc(_.Hhc(_.y(b,45,a.canMoveItemWithinDrive),a.canMoveItemOutOfDrive),a.canMoveChildrenWithinDrive),a.canAddFolderFromAnotherDrive);b=_.y(b,50,a.canChangeSecurityUpdateEnabled);b=_.y(b,51,a.canRemoveSecureLinkUpdateForAllFiles);b=_.y(b,52,a.canCreateDecryptedCopy);b=_.y(b,53,a.canCreateEncryptedCopy);b=_.y(b,54,void 0===a.canAddEncryptedChildren?
a.canAddChildren:a.canAddEncryptedChildren);return _.y(b,55,a.canBlockOwner)};_.NK=function(a,b){_.LK(["drive#user"],b);var c=_.mhc(_.nhc(_.khc(1).Ob(b.permissionId),b.id).$c(b.displayName),b.emailAddress);b.picture&&c.In(b.picture.url);_.yI(a.H)&&_.mhc(c,b.emailAddressFromAccount||b.emailAddress);_.lhc(c,a.Nf(b.id));_.y(c,9,b.domain);return c};amc.prototype.Nf=function(a){if(a)return _.eK(_.tI(this.H))==a};
var cmc,imc,xmc,fmc,nmc,mmc,omc,qmc,smc,emc,umc,tmc,vmc,wmc,zmc,Amc,ymc,pmc;cmc=function(a,b){this.H=a;this.O=b};
_.gmc=function(a,b,c){var d=new _.FK,e=new _.mB,f=e.Pw;_.LK(["drive#fileList","drive#file"],b);var h=[];if("drive#file"==b.kind)(a=_.dmc(a,b))&&h.push(a);else if("drive#fileList"==b.kind)for(var k=b.items||[],l=0;l<k.length;l++){var p=_.dmc(a,k[l]);h.push(p)}e=f.call(e,h);e=_.y(e,8,b.incompleteSearch);if("drive#fileList"==b.kind){_.LK(["drive#fileList"],b);if(h=b.spellResponse){f=[];var q=h.spellCorrections;for(h=0;h<q.length;h++){k=q[h].spellFragments;a=[];for(l=0;l<k.length;l++){p=k[l];var r=(new _.ntb).Bc(emc[p.status]);
r=_.y(r,1,p.original);p=_.y(r,3,p.correction);a.push(p)}k=new _.rtb;a=_.Mj(k,1,a);f.push(a)}q=new _.ttb;_.Mj(q,1,f)}if((f=b.suggestedNlpQueries)&&0<f.length){var v=new _.ptb;_.Jj(v,1,f)}q||v?(f=new _.utb,q&&_.J(f,1,q),v&&_.J(f,2,v),v=f):v=null;_.J(e,7,v);v=fmc(b);_.Jj(e,18,v)}d=_.Jkc(d,e);c=_.hgc(c);c=_.y(d,2,c);b.nextPageToken&&_.y(c,3,b.nextPageToken);return c};
imc=function(a,b,c,d,e){_.LK(["drive#adminFile","drive#file","drive#revision"],b);var f=_.Sic(new _.MJ,c);"drive#adminFile"==b.kind?(_.LK(["drive#adminFile"],b),c=(new _.cl).Ob(b.id),b.parentId&&_.YJ(c,[b.parentId]),_.aic(c,b.teamDriveId),f.setItem(c),_.Sic(f,c.getId())):"drive#file"==b.kind?(b=_.dmc(a,b),f.setItem(b),c||_.Sic(f,b.getId())):"drive#revision"==b.kind&&(b=_.hmc(a,b),_.J(f,4,b));f.Eca(_.ggc(d));f.vca(_.hgc(d));(d=(d=d&&_.fgc(d))&&d["x-server-object-version"])&&e&&(e=(new _.jK).Ob(d),
_.J(f,4,e));f.Bc(1);return f};_.jmc=function(a,b){return _.Sic(new _.MJ,a).Bc(1).Eca(_.ggc(b)).vca(_.hgc(b))};_.lmc=function(a,b,c,d){d||_.LK(["drive#permissionList"],b);var e=[];b=b[c]||[];for(c=0;c<b.length;c++){var f=_.kmc(a,b[c],d);f&&e.push(f)}return e};
_.kmc=function(a,b,c){c||_.LK(["drive#permission"],b);c=_.lhc(_.nhc(_.khc(mmc[b.type]).Ob(b.id),b.userId),a.H.Nf(b.userId));c=_.y(c,4,b.withLink);c=_.mhc(c.$c(b.name).In(b.photoLink),b.emailAddress);c=_.y(c,9,b.domain);c=_.y(c,10,b.deleted);c=_.y(c,12,b.audienceId);c=_.y(c,13,b.customerId);c.getId()||c.Ob(b.type+"|"+(b.domain||"")+"|"+b.withLink);_.yI(a.O)&&c.$c(b.nameIfNotUser);a=nmc[b.role];2==a&&b.additionalRoles&&"commenter"==b.additionalRoles[0]?a=4:2==a&&"published"==b.view&&(a=6);_.y(c,6,a);
return c};
_.dmc=function(a,b){_.LK(["drive#file"],b);var c=b.title,d=(new _.cl).Ob(b.id),e=[];if(b&&b.parents)for(var f=b.parents,h=0;h<f.length;h++)e.push(f[h].id);c=_.Yhc(_.Uhc(_.lG(_.YJ(d,e).setTitle(c),b.mimeType),b.alternateLink),b.hasThumbnail);null!=b.thumbnailVersion&&_.y(c,90,Number(b.thumbnailVersion));_.y(c,21,b.iconLink);c.Il(b.description);_.Vhc(c,b.explicitlyTrashed);_.y(c,22,b.shared);null!=b.quotaBytesUsed&&_.y(c,28,Number(b.quotaBytesUsed));null!=b.fileSize&&_.y(c,14,Number(b.fileSize));_.y(c,
30,b.copyable);b.labels&&(d=b.labels,c.Ev(d.starred),_.y(c,6,d.hidden),c.Jn(d.trashed),_.Rhc(c,d.restricted),_.y(c,9,d.viewed));_.y(c,10,_.MK(b.createdDate));_.y(c,69,_.MK(b.serverCreatedDate));_.WVb(c,_.MK(b.modifiedDate));_.y(c,12,_.MK(b.modifiedByMeDate));_.y(c,13,_.MK(b.lastViewedByMeDate));_.y(c,23,_.MK(b.sharedWithMeDate));_.y(c,62,_.MK(b.subscribedDate));_.y(c,70,_.MK(b.recency));b.recencyReason&&_.y(c,71,omc[b.recencyReason]||0);d=[];if(b&&b.owners)for(e=b.owners,f=0;f<e.length;f++)(h=_.NK(a.H,
e[f]))&&d.push(h);_.Shc(c,d);b.lastModifyingUser&&(d=_.NK(a.H,b.lastModifyingUser),_.Thc(c,d));b.userPermission&&_.XVb(c,nmc[b.userPermission.role]);b.imageMediaMetadata&&(e=b.imageMediaMetadata,d=(new _.RJ).xh(e.width).wh(e.height),d=_.y(d,4,e.rotation),e.date&&(e=e.date,f=new _.qfc,f.setMilliseconds(0),pmc.parse(e,f),_.y(d,1,f.getTime())),_.J(c,27,d));null!=b.folderColor&&_.Xhc(c,Number(b.folderColor));_.Whc(c,b.subscribed);_.y(c,45,b.fileExtension);_.Jj(c,50,b.folderFeatures);_.y(c,36,b.flaggedForAbuse);
_.y(c,53,b.gplusMedia);_.y(c,46,b.primarySyncParentId||void 0);_.y(c,35,b.hasChildFolders);b.source&&(_.y(c,42,b.source.client_service_id),_.y(c,43,b.source.value));b.sharingUser&&(d=_.NK(a.H,b.sharingUser),_.Zhc(c,d));b.sources?_.Jj(c,56,b.sources):b.gplusMedia&&_.Jj(c,56,["GOOGLE_PHOTOS"]);if(b.spaces){d=b.spaces;e=[];for(f=0;f<d.length;f++)h=d[f],_.rdc[h]&&(h=_.af(new _.$e,_.rdc[h]),e.push(h));c.yA(e)}_.y(c,63,b.ownedByMe);_.y(c,29,b.shareable);b.sourceAppId&&_.y(c,61,b.sourceAppId);_.y(c,74,b.changed);
null!=b.recursiveFileSize&&_.y(c,77,Number(b.recursiveFileSize));null!=b.recursiveFileCount&&_.y(c,79,Number(b.recursiveFileCount));if(b.actionItems){d=b.actionItems;e=[];for(f=0;f<d.length;f++)if(h=d[f],h.id&&h.type){var k=(new _.Rna).Ob(h.id);h=_.y(k,2,qmc[h.type]);e.push(h)}_.Mj(c,83,e)}b.capabilities&&_.ZJ(c,_.bmc(b.capabilities));b.permissionsSummary&&_.bic(c,_.rmc(a,b.permissionsSummary));b.headRevisionId&&_.y(c,78,b.headRevisionId);b.templateData&&(d=b.templateData,e=(new _.WJ).Il(d.description),
e=_.y(e,3,smc[d.galleryState]),d=_.Jj(e,2,d.category),_.J(c,86,d));_.aic(c,b.teamDriveId);_.y(c,76,b.hasAugmentedPermissions);_.y(c,137,b.ancestorHasAugmentedPermissions);b.creator&&(d=_.NK(a.H,b.creator),_.cic(c,d));_.dic(c,b.primaryDomainName);_.eic(c,b.organizationDisplayName);_.y(c,94,b.passivelySubscribed);b.trashingUser&&_.fic(c,_.NK(a.H,b.trashingUser));c.Lca(_.MK(b.trashedDate));b.version&&_.y(c,75,Number(b.version));_.y(c,98,b.hasVisitorPermissions);_.y(c,102,b.hasAppsScriptAddOn);(d=b.pairedDocType)&&
_.y(c,101,tmc[d]);b.videoMediaMetadata&&(d=b.videoMediaMetadata,e=(new _.XJ).xh(d.width).wh(d.height),d.durationMillis&&_.y(e,3,Number(d.durationMillis)),_.J(c,103,e));_.Jj(c,104,b.detectors);_.y(c,108,b.containsUnsubscribedChildren);if(b.contentRestrictions){d=[];e=_.m(b.contentRestrictions);for(f=e.next();!f.done;f=e.next())f=f.value,f=_.Mhc(_.Lhc(new _.Zk,f.readOnly),f.reason),d.push(f);_.Mj(c,125,d)}if(d=b.publishingInfo)_.y(c,118,d.published),_.y(c,119,d.publishedUrl);_.Jj(c,120,b.workspaceIds);
b.approvalMetadata&&b.approvalMetadata.approvalVersion&&_.y(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 _.Tna).Ob(f.approvalId).Bc(umc[f.status]),d.push(f);_.Mj(c,127,d)}b.shortcutDetails&&(d=b.shortcutDetails,e=new _.coa,e=_.y(e,1,d.targetId),e=_.y(e,3,d.targetMimeType),e=_.y(e,6,d.canRequestAccessToTarget),d.targetLookupStatus&&_.y(e,4,vmc[d.targetLookupStatus]||
0),d.targetFile&&(d=_.dmc(a,d.targetFile),_.J(e,5,d)),_.J(c,132,e));b.clientEncryptionDetails&&(d=b.clientEncryptionDetails,e=new _.QJ,e=_.y(e,1,wmc[d.encryptionState]),d.decryptionMetadata&&(d=xmc(d.decryptionMetadata),_.J(e,2,d)),_.J(c,138,e));b.linkShareMetadata&&(d=b.linkShareMetadata,e=new _.Una,e=_.y(e,2,d.securityUpdateEligible),e=_.y(e,3,d.securityUpdateEnabled),d=_.y(e,5,d.securityUpdateExplicitlySet),_.J(c,139,d));_.y(c,140,b.resourceKey);_.Jj(c,135,b.authorizedAppIds);_.gic(c,b.customerId);
_.y(c,144,b.abuseIsAppealable);b.abuseNoticeReason&&_.y(c,145,ymc[b.abuseNoticeReason]);_.Fgc(c);_.yI(a.O)&&_.$hc(c,5);return c};
_.hmc=function(a,b){_.LK(["drive#revision"],b);var c=(new _.jK).Ob(b.id);c=_.y(c,2,b.mimeType);c=_.y(c,3,_.MK(b.modifiedDate));c=_.y(c,4,b.pinned);c=_.y(c,5,b.downloadUrl);c=_.y(c,7,b.originalFilename);null!=b.fileSize&&_.y(c,8,Number(b.fileSize));b.lastModifyingUser&&(a=_.NK(a.H,b.lastModifyingUser),_.J(c,9,a));b.decryptionMetadata&&(b=xmc(b.decryptionMetadata),_.J(c,10,b));return c};
_.rmc=function(a,b){a=_.Phc(_.Ohc(_.Nhc(new _.Yna,b.entryCount),_.lmc(a,b,"visibility",!0)),_.lmc(a,b,"selectPermissions",!0));a=_.y(a,4,b.memberCount);a=_.y(a,5,b.userEntryCount);return _.y(a,6,b.groupEntryCount)};xmc=function(a){var b=a.wrappedKey;var c=new _.Khc;b=b?_.zic(b):void 0;c=_.y(c,1,b);c=_.y(c,2,Number(a.kaclsId));c=_.y(c,5,a.kaclsName);c=_.y(c,3,zmc[a.aes256GcmChunkSize]);c=_.y(c,6,Amc[a.keyFormat]);return _.y(c,4,a.jwt)};
fmc=function(a){_.LK(["drive#fileList"],a);var b=[];(a.items||[]).forEach(function(c){var d=c.id;!d||"1"!=c.searchResultSource&&"3"!=c.searchResultSource||b.push(d)});return b};nmc={fileOrganizer:7,organizer:5,owner:1,reader:2,writer:3};mmc={anyone:4,audience:5,domain:3,group:2,user:1};omc={createdByMe:1,modifiedByMe:2,modified:3,viewedByMe:4};qmc={MENTION:0,SUGGESTION:1,ASSIGNMENT:2};smc={UNAVAILABLE:1,AVAILABLE:2,PENDING:3};emc={CORRECT:1,INCORRECT:2,SUSPICIOUS:3};
umc={IN_PROGRESS:1,APPROVED:2,CANCELLED:3};tmc={docs:1,sheets:2,slides:3};vmc={ok:1,notFound:2,permissionDenied:3};wmc={unencrypted:1,encrypted:2};zmc={unset:0,"default":1,small:2,size16kb:3};Amc={unsetKeyFormat:0,tinkKeyset:1,tinkAesGcmKey:2};ymc={UNKNOWN_REASON:0,ACCESSIBLE_ONLY_TO_OWNER:1,ACCESSIBLE_ONLY_TO_OWNING_CUSTOMER:2,SUSPICIOUS_OTHER:3,SUSPICIOUS_PHISHING:4,SUSPICIOUS_MALWARE:5};pmc=new _.oWa("yyyy:MM:dd HH:mm:ss");
var Emc;_.Bmc=function(a){this.V=new amc(a);this.pF=new cmc(this.V,a)};_.Bmc.prototype.FE=function(a,b,c){c=void 0===c?[]:c;try{return Cmc(this,a,b,c)}catch(d){_.VI(d)}};
var Cmc=function(a,b,c,d){var e=a.ha(b,c);if(e)return e;if(b instanceof _.bJ)return _.Dmc(a,b,c);if(b instanceof _.kJ)return Emc(0,c,d);if(b instanceof _.tA||b instanceof _.nJ){if(!c.json)throw _.OK();return _.gmc(a.pF,c.json,c.headers)}if(b instanceof _.JJ)return _.Dmc(a,b,c);if("undefined"!=typeof _.Qgc&&b instanceof _.Qgc){if(!c.json)throw _.OK();a=c.json;return new _.gjc(a.fileId,a.jwt,Number(a.currentKaclsId),a.currentKaclsName,a.customerId)}if("undefined"!=typeof _.Fmc&&b instanceof _.Fmc){if(!c.json)throw _.OK();
return _.hmc(a.pF,c.json)}if(b instanceof _.yJ)return Emc(b.od(),c,d);if(b instanceof Ugc){if(b.V){if(!c.json)throw _.OK();a=imc(a.pF,c.json,null,c.headers,!!b.revisionId)}else a=_.jmc(null,c.headers);return a}if(b instanceof Tgc){a=_.fgc(c.headers);b=a.location;if(!b)throw a=_.QI(new _.mc,10),new _.nc("No upload session URI included.",a);return new hjc(b,_.ggc(a),_.hgc(a))}if(b instanceof _.Ygc)return new ijc;throw new _.nc("FromXhrConverter: Unsupported request type.",new _.mc);};
_.Bmc.prototype.ha=function(){return null};Emc=function(a,b,c){return"base64"===b.headers["x-goog-safety-encoding"]?new jjc(_.Naa(b.text),c.length):new jjc(new Uint8Array(_.wma(b.text)),c.length)};_.Dmc=function(a,b,c){if(!c.json){if(b instanceof _.JI)return _.jmc(_.Gmc(b));throw _.OK();}var d=!1;b instanceof _.JJ&&(d=!!_.B(b.request,12));return imc(a.pF,c.json,_.Gmc(b),c.headers,d)};_.OK=function(){var a=_.QI(new _.mc,11);return new _.nc("FromXhrConverter: JSON required, but none found",a)};
_.Gmc=function(a){return a.getId?a.getId():a.Ac?a.Ac():null};
var Kmc,Lmc,Nmc,Hmc,Omc,Imc;
Kmc=function(a,b){var c={};_.ee(_.Og(a.getTitle()))||(_.B(a,12)?c.originalFilename=a.getTitle():c.title=a.getTitle());if(a.getMimeType()&&(c.mimeType=a.getMimeType(),a.Ac()&&_.dfa(a.getMimeType())&&b)){var d=b.g$(),e=b.O(),f={encryptionState:"encrypted"},h={};f.decryptionMetadata=(h.wrappedKey=_.uj(b.V()),h.kaclsId=b.ha(),h.aes256GcmChunkSize=Hmc[d?d.O():0],h.keyFormat=Imc[e?e.O():0],h);c.clientEncryptionDetails=f}_.Jmc(c,_.Qd(a,3));(b=a.Ac())&&(c.id=b);_.B(a,16)&&(c.embeddingParent=_.B(a,16));a.M1()&&
(c.shortcutDetails={},c.shortcutDetails.targetId=a.M1());"number"===typeof _.B(a,26)&&(c.modifiedDate=_.pic(_.njc(_.B(a,26)||0)));return c};_.Jmc=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)}}};Lmc={};_.Mmc=(Lmc[1]="active",Lmc[2]="archived",Lmc);Nmc={};Hmc=(Nmc[0]="unset",Nmc[1]="default",Nmc[2]="small",Nmc[3]="size16kb",Nmc);Omc={};Imc=(Omc[0]="unsetKeyFormat",Omc[1]="tinkKeyset",Omc[2]="tinkAesGcmKey",Omc);
var Rmc=function(a,b,c){return(a.jQ?a.jQ(0,a.file.size):Promise.resolve(a.file)).then(function(d){return flc(d)}).then(function(d){return Pmc(a,b,d,c)},Qmc)},Pmc=function(a,b,c,d){var e=!!_.B(a.request,12),f="files";e&&(f+="/"+_.B(a.request,12));f=new _.ej(f);_.lj(f,"uploadType","multipart");_.lj(f,"supportsTeamDrives",!0);_.lj(f,"pinned",!!_.S(a.request,13,!1));null!=_.Q(a.request,8)&&_.lj(f,"convert",_.Q(a.request,8));_.lj(f,"fields",_.Agc({fields:_.mK(b).filter(function(q){return 194!=q}),jr:!1}));
Hgc(f,a.request.ve());var h=Kmc(a.request,a.metadata),k=_.Pg();b={};b=(b["content-type"]=_.xt('multipart/related; boundary="%s"',k),b);var l=c.indexOf(",");c=0<=l?c.substring(l+1):"";h=JSON.stringify(h);l={};l=(l["content-type"]="application/json; charset=UTF-8",l);var p={};p=(p["content-transfer-encoding"]="base64",p);a.request.getMimeType()&&(p["content-type"]=a.request.getMimeType());_.PJ(d,_.Rj(a.request,_.Bl,28),[],null,b);a="--"+k;a=a+"\r\n"+Ggc(l)+"\r\n"+h+"\r\n"+a+"\r\n"+Ggc(p)+"\r\n"+c+"\r\n"+
a+"--";return{Um:2,headers:b,method:e?"PUT":"POST",uri:f,body:a}},Qmc=function(a){if(a instanceof _.Dyb){var b=new _.mc;_.eq(b,"fs.Error: "+a.message);a=(a=a.name)?_.REa.get(a)||25:38;_.QI(b,a);b=_.yB(b)}else b=_.UI(a);return Promise.reject(b)};
_.PK=function(a,b,c,d){this.H=a;this.Ng=b;this.O=c;this.Ad=d;this.ka=_.II(a)||new _.Lfc};_.PK.prototype.FE=function(a,b){try{return a.request instanceof _.JJ?Rmc(a.request,this.Ng,this.H):Promise.resolve(this.V(a.request,a.config,b))}catch(c){return c instanceof _.nc?a=c.Rg:(a=new _.mc,_.eq(a,"Error converting XHR: "+c.message),_.fq(a,c.stack),_.QI(a,4)),Promise.reject(a)}};
_.PK.prototype.V=function(a,b,c){var d=0,e,f={},h="GET",k={},l=!1,p=!1;if(a instanceof _.bJ){h=(e=!!_.B(a,12))?"PUT":"POST";var q="files";e&&(q+="/"+_.B(a,12),k.pinned=!!_.S(a,13,!1));null!=_.Q(a,8)&&(k.convert=_.Q(a,8));k.fields=_.Agc({fields:this.Jg(c),jr:_.SI(_.tI(this.H)),yG:_.yI(this.H)});e=Kmc(a);f["content-type"]="application/json";var r=a.ve();p=!0;_.lK(k);_.Smc(this.H,k);_.PJ(this.H,_.Rj(a,_.Bl,28),_.Qd(a,3).concat([_.B(a,16),a.M1(),a.Ac()]),this.O,f)}else if(a instanceof _.kJ||a instanceof
_.yJ)a instanceof _.yJ?(l=a.od(),_.P(a,2)&&(q="bytes="+_.B(a,2)+"-",_.P(a,3)&&(q+=_.B(a,3)),f.range=q)):l=a,q="files/"+l.getId(),_.B(l,2)&&(k.revisionId=_.B(l,2)),k.alt="media",f["X-Goog-Encode-Response-If-Executable"]="base64",_.PJ(this.H,[_.Cl((new _.Bl).Ob(l.getId()),_.B(l,3))],[l.getId()],this.O,f),p=l=!0;else if(a instanceof _.nJ||a instanceof _.tA){if(a instanceof _.nJ)q=_.B(a,1),a=_.C(a,_.tA,2);else if(a instanceof _.tA)q=0,_.CK(this.Ad,190196159);else throw Error("ag");p=a.hn()[q];q="files/"+
p;r=_.va(this.Jg(c),this.Jg(c,a.O()));_.Da(r);k.fields=_.Agc({fields:r,jr:_.SI(_.tI(this.H)),yG:_.yI(this.H)});_.lK(k);_.Tmc(this.H,k);_.Umc(this.H,k);this.W(p,k);r=a.ve();p=!0;_.Q(a,7)&&(b.ABa=!0);_.PJ(this.H,_.Rj(a,_.Bl,11),a.hn(),this.O,f)}else if("undefined"!=typeof _.Qgc&&a instanceof _.Qgc)q="files/generateCseToken",a.id&&(k.fileId=a.id),k.role=a.role,r=a.H;else if("undefined"!=typeof _.Fmc&&a instanceof _.Fmc)k.fields="kind,id,modifiedDate,originalFilename,fileSize,mimeType,decryptionMetadata(wrappedKey,kaclsId,aes256GcmChunkSize,jwt,keyFormat)",
q="files/"+a.id+"/revisions/"+a.revisionId,p=l=!0;else if(a instanceof Ugc){d=4;h="PUT";q=a.W;a.contentType&&(f["content-type"]=a.contentType);if(a.O>=a.H){var v=a.H;b=a.O;f["content-range"]=a.V?_.xt("bytes %d-%d/%d",v,b,b+1):_.xt("bytes %d-%d/*",v,b)}v=a.blob;p=!0}else a instanceof Tgc?(d=2,h=(e=!!_.B(a.request,12))?"PUT":"POST",q="files",e&&(q+="/"+_.B(a.request,12)),k.uploadType="resumable",k.pinned=!!_.S(a.request,13,!1),null!=_.Q(a.request,8)&&(k.convert=_.Q(a.request,8)),k.fields=_.Agc({fields:this.Jg(c).filter(function(z){return 194!=
z}),jr:_.SI(_.tI(this.H)),yG:_.yI(this.H)}),_.lK(k),e=Kmc(a.request,a.metadata),f["content-type"]="application/json",null!=a.request.getMimeType()&&(f["x-upload-content-type"]=a.request.getMimeType()),_.PJ(this.H,[],_.Qd(a.request,3),this.O,f),r=a.request.ve(),p=!0):a instanceof _.Ygc?(q="about",k.fields="kind",r=a.H,p=!0):_.Vmc(a);p&&_.Wmc(c,k);0!=d||l||r&&_.B(r,1)||_.CK(this.Ad,74438989);return _.Xmc(this,d,q,k,f,h,r,e,v)};
_.Xmc=function(a,b,c,d,e,f,h,k,l){c=new _.ej(c);[10,12,13].includes(b)||Hgc(c,h);_.S(a.ka,11,!1)&&(a=a.H.Ji())&&(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,_.mj(c,a,h);return{Um:b,headers:e,method:f,uri:c,body:k?JSON.stringify(k):l}};_.Tmc=function(a,b){_.S(a.$f(),23,!1)&&(b.includePermissionsForView="published")};_.PK.prototype.W=function(){};
_.Umc=function(a,b){_.S(a,14,!1)&&(b.useLegacyDomainPermissionBehavior=!1)};_.Smc=function(a,b){_.S(a,3,!1)&&(b.enforceSingleParent=!0)};_.Wmc=function(a,b){a&&a.length?(b.retryCount=a.length,b.msSinceLastAttempt=Date.now()-_.fa(a).YPb):b.retryCount=0};_.PK.prototype.Jg=function(a,b){b||(b=_.mK(this.Ng));0<a.length&&(b=b.slice(0),_.jaa(b,function(c){return Qic.includes(c)}));return b};_.Vmc=function(a){var b=_.QI(new _.mc,4);throw new _.nc("ToXhrConverter: Unsupported request type: "+$gc(a),b);};
_.QK=function(a,b,c,d,e,f){_.qi.call(this);var h=this;this.O=a;this.V=b;this.Ba=c;this.W=d;this.va=e;this.ta=f;this.fj={};this.ha={};this.Ad=null;_.Ae(this,function(){h.hG()})};_.N(_.QK,_.qi);_.QK.prototype.oQ=function(){return _.eI()};
_.QK.prototype.upload=function(a,b,c,d){Gkc(this.V,"UploadTotalCount");var e=a.aj();if(e&&this.fj[e])throw new _.nc("Upload requested with a duplicate request ID.");var f=_.Qd(a,10);if(f&&f.length){if(1!==f.length)throw new _.nc("Multi-parented uploads are not supported.");var h=this.fj[f[0]];if(!h)throw new _.nc("The parent upload request must precede this request.");}!_.B(a,26)&&b&&b.lastModified&&_.y(a,26,b.lastModified);e||(e=this.oQ(),_.y(a,9,e));a=a.clone();f=Ymc(this,e);this.fj[e]={request:a,
file:b,mg:f,KM:!1,uu:0,success:!1,BE:!1,children:[],metadata:c,gla:void 0,jQ:d};h?Zmc(this,e,h):this.ka(e);return f.Vm()};
var Ymc=function(a,b){var c=new _.Uh;c.hg(_.Ab(a.Fa,b),_.Ab(a.Ha,b),a);return c},Zmc=function(a,b,c,d){var e=a.fj[b];c.children.push(b);_.Da(c.children);c.mg.then(function(f){if(1===f.Bb()&&(f=f.Ac(),_.Qd(e.request,3).push(f),_.aI(e.request,10),!c.BE||d)){a.ka(b);return}a.log('[Cancel] Upload of "'+e.request.getTitle()+'" was cancelled due to parent upload cancellation.');a.cancel(b)},function(f){e.mg.Hd(_.xI(f)?f:Error(f))})};
_.QK.prototype.Fa=function(a,b){Gkc(this.V,"UploadSuccessCount");a=this.fj[a];a.success=1===b.Bb();(b=a.gla)&&!a.BE&&(Iic(Kic(Ejc(b),a.uu),!0),b.uj())};_.QK.prototype.Ha=function(a,b){var c=_.C(this.O,_.PI,58);c&&_.S(c,1,!1)&&(this.ha[a]=b);Gkc(this.V,"UploadFailureCount");c=this.fj[a];(a=c.gla)&&!c.BE&&(Iic(Kic(Ejc(a),c.uu),!1),b=(c=b&&b.Rg)&&c.kk(),c=c&&c.Dp(),b?Jic(Ejc(a),$mc.get(b)||13):c&&Jic(Ejc(a),anc.get(c)||0),a.uj())};
_.QK.prototype.ka=function(a){var b=this.fj[a];if(!b.KM){b.KM=!0;a=this.fj[a];var c=a.request,d=_.C(this.O,_.PI,58);d&&_.S(d,4,!1)&&(d=c.getTitle().match(bnc))&&(!d[1]||a.uu<Number(d[1].substr(1)))&&(c=c.clone(),_.ra(_.Qd(c,3),"$#@! Invalid parent ID."));a=c;c=(c=b.request.Gz())?_.B(c,1)||0:0;var e=b.file&&b.file.size||c;c=this.O.$f();d=_.Zj(c,33,1048576);d=b.file&&b.file&&e>d?2:b.file?1:3;if(this.ta&&3!==d){var f=this.ta.H(106012);if(f){b.gla=f;f=Ejc(f);f=_.y(f,1,2===d?2:1);f=_.y(f,4,!!b.metadata);
var h=!!_.B(a,12);f=_.y(f,5,h);e=_.y(f,6,e);c=_.Zj(c,32,1073741824);_.y(e,7,c)}}switch(d){case 2:b.file&&cnc(this,new _.Vgc(a,b.file,b.jQ,b.metadata),b.mg,a.aj());break;case 1:b.file&&(c=b.mg,d=b.file,e=b.metadata,b=b.jQ,f=_.C(this.O,_.hic,2),cnc(this,new _.JJ(a,d,b,f&&_.$J(f)?e:void 0),c,a.aj()));break;case 3:cnc(this,a,b.mg,a.aj());break;default:throw new _.nc("Upload type ${uploadType} not supported.");}}};
var cnc=function(a,b,c,d){kkc(a.Ba,d,a.ma.bind(a,d));_.Th(a.W.then(function(e){return e.Re(b,{requestId:d})}).then(null,function(e){return dnc(a,b,e)}),function(){lkc(a.Ba,[d])}).then(c.callback,c.Hd,c)},dnc=function(a,b,c){var d=_.yB(c),e=b instanceof _.JJ&&b.request.Ac()||"";c=d.Rg;if(e&&8===c.kk()){a.log("Create failed with 409 Conflict, re-querying: "+e);var f=_.vA(new _.tA,[e]);return _.$h(a.W.then(function(h){return h.Re(f)}).then(function(h){h=h.ld().xd()[0];var k=b.request;if(h&&!h.Th()&&
(h.getMimeType()||"").replace(/\s/g,"")===(k.getMimeType()||"").replace(/\s/g,"")&&h.getTitle()===k.getTitle())return a.log("Matching item found for: "+e),_.Sic((new _.MJ).setItem(h),e).Bc(1);a.log("No matching item found for: "+e);return _.Ph(d)}))}return _.ai(d)};_.g=_.QK.prototype;
_.g.cancel=function(a){var b=this,c=this.fj[a];if(c&&(!c.BE||0!==c.children.length))if(c.BE=!0,c.mg.ag())this.log('[Cancel] Response for "'+c.request.getTitle()+'" already received. Cannot cancel.'+(c.children.length?" Attempting to cancel children.":"")),_.Ja(c.children,this.cancel,this);else{var d=c.gla;d&&(Jic(Iic(Kic(Ejc(d),c.uu),!1),2),d.uj());var e=_.Sh();c.KM?this.W.then(function(f){return void e.resolve(f.cancel(a))}):(c.KM=!0,c.mg.callback(ahc(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.hG=function(){var a=this;_.La(this.fj,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.fj[f]){var h=[];do{h.push(f);var k=(_.Qd(b.fj[f].request,10)||[])[0];if(k){var l=b.fj[k];if(l.success||!l.mg.ag()||e[k])break;else if(!c.has(k)){e[f]=new _.nc("Unable to retry request due to failed parent upload.");break}}f=k}while(f);_.ka(h,function(p){var q=b.fj[p];q.uu++;if(!e[p])if(!q.mg.ag()||q.success)e[p]=new _.nc("Unable to retry request.");else{var r=(_.Qd(q.request,10)||[])[0];e[r]instanceof _.nc?
e[p]=e[r]:(q.mg=Ymc(b,p),q.KM=!1,q.BE=!1,(r=r?b.fj[r]:null)?Zmc(b,p,r,!0):d.push(p),e[p]=q.mg.Vm())}})}else e[f]=new _.nc("Retry request with unknown ID.")});a=a.map(function(f){f=e[f];return f instanceof _.Uh?f:_.ai(f)});_.Ja(d,this.ka,this);return a};_.g.log=function(){this.isDisposed()};_.g.od=function(a){return this.fj[a]};var bnc=/^uploadTestFailMe(\.[1-9])?$/,anc=new Map([[2,12],[5,1],[27,3],[29,4],[30,5],[31,6],[35,7],[36,8],[37,9],[38,10],[25,11]]),$mc=new Map([[3,14]]);

_.w();

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

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
var enc;enc=[1];_.RK=function(a){_.K.call(this,a,-1,enc)};_.N(_.RK,_.K);_.RK.prototype.O=function(){return _.Qd(this,1)};_.t("sy1o0");
var fnc;_.SK=function(a){_.K.call(this,a,-1,fnc)};_.N(_.SK,_.K);_.SK.prototype.Bb=function(){return _.B(this,1)};_.SK.prototype.Bc=function(a){return _.y(this,1,a)};_.SK.prototype.$i=function(){return _.Rj(this,_.cl,2)};_.gnc=function(a,b){return _.Mj(a,2,b)};_.SK.prototype.uq=function(a,b){return _.Tj(this,2,a,_.cl,b)};_.SK.prototype.Wf=function(){return _.B(this,4)};_.hnc=function(a,b){return _.y(a,4,b)};fnc=[2];

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1nz");
_.YVb=function(a){_.K.call(this,a)};_.N(_.YVb,_.K);_.YVb.prototype.xi=function(){return _.B(this,3)};_.YVb.prototype.ri=function(a){return _.y(this,3,a)};_.YVb.prototype.ve=function(){return _.C(this,_.rf,5)};_.YVb.prototype.getCustomer=function(){return _.B(this,6)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.TK=function(a,b){_.y(a,1,b)};_.t("sy1o4");

_.w();

}catch(e){_._DumpException(e)}
try{
_.jnc=function(a){return _.se(a).Jg(_.S(a.get(_.dp),19,!1)?inc:_.qe)};_.t("sy1o6");
var inc=[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];

_.w();

}catch(e){_._DumpException(e)}
try{
var knc,lnc,mnc,nnc,onc,qnc,rnc,snc,tnc,unc,wnc,xnc,ync,znc,Anc,WK,Fnc,Gnc,XK,YK,Hnc,Inc,Knc,Lnc,Mnc,Nnc,Onc,Qnc,Rnc,Snc,Tnc,Unc,Vnc,Wnc,Ync,$nc,goc,ioc,loc,moc,poc,soc,bL,toc,uoc,voc,woc,xoc,yoc,zoc,Aoc,Boc,Eoc,Doc,Hoc,Joc,Loc,Noc,Roc,Toc,Uoc,Voc,Woc,Xoc,Yoc,bpc,dpc,epc,fpc,UK,gpc,hpc,Cnc,Bnc,Dnc,Enc,Dqc,Eqc,fL,hL,Hqc,Sqc,Vqc,Wqc,Xqc,$qc,Coc,Crc,Drc,Erc,Frc,Hrc,Irc,Jrc,Krc,iL,Lrc,jL,Mrc,Nrc,Orc,Prc,Qrc,Rrc,kL,Src,Trc,Urc,Vrc,Wrc,Xrc,mL,fsc,osc,mtc,ntc,ptc,qtc,Ftc,Gtc,Ntc,Xtc,nuc,tuc,Auc,Cuc,Huc,
Nuc,dvc,evc,hvc,jvc,tvc,Fvc,Hvc,Ivc,Ovc,Pvc,Qvc,Qoc,Rvc,Nwc,coc,Owc,Rwc,aBc,bBc,cBc,dBc,eBc,fBc,gBc,hBc,iBc,jBc;knc=function(a){a={Title:a.getTitle(),Type:a.getMimeType(),Parents:_.Qd(a,3),Convert:_.Q(a,8),ID:a.aj()};var b=[];_.La(a,function(c,d){c&&b.push(d+": "+c)});return b.join("; ")};
lnc=function(a){var b=[];b.push(knc(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.uu&&b.push("# of retries by client: "+a.uu);var d="";a.KM?a.mg.ag()?a.mg.hg(function(){d="Completed successfully."},function(e){d=e instanceof _.Vh?"Canceled.":"Completed with failure. See attachment."}):d="In progress.":d="Not yet executed.";b.push("State: "+
d);return b.join("\n")};
mnc=function(a,b,c,d,e,f){var h=_.xt("Drive Upload Report: %d/%d failed",_.Pa(f),_.Pa(e));a=a.$f();d.push("Batch query interval: "+_.Zj(a,12,10)+"ms");d.push("Max resumable upload chunk size: "+_.Zj(a,32,1073741824)/1024/1024+" MiB");d.push("Max batch upload file size: "+_.Zj(a,33,1048576)/1024/1024+" MiB");d.push("Max files in an upload batch: "+_.Zj(a,35,10)+" files");d.push("Max files in a non-upload batch: "+_.Zj(a,10,50)+" files");d=d.join("\n");var k=[],l=[];_.La(e,function(p){l.push(lnc(p))});k.push({name:"AllUploadRequests.txt",
content:l.join("\n---------\n")});k.push({name:"DataserviceLogs.txt",content:_.fjc(b)});_.La(f,function(p,q){var r=k.push;q=e[q].request;q=_.xt('ErrorResponseFor"%s"(ID:%s).txt',q.getTitle()||"",q.aj()||"");var v=p.Rg;v=v?_.B(v,4):"No detail.";r.call(k,{name:q,content:p.toString()+"\n"+v})});return{title:h,description:d,YP:k,ud:152391,V8:c,f0:361003}};nnc=function(a){return Array.prototype.concat.apply([],arguments)};onc=function(a,b,c){c=_.Fa(a,b,c);return 0>c?(_.Aa(a,-(c+1),0,b),!0):!1};
qnc=function(a,b){var c=new _.RK,d=new Set;if(6===a){a=_.m(b);for(b=a.next();!b.done;b=a.next())(b=b.value)?(b=_.l7a.get(b.gv()))&&d.add(b):d.add(1);0===d.size&&d.add(0)}pnc(c,[].concat(_.ld(d)));return c};
rnc=function(a){var b=[],c={};a=_.m(a);for(var d=a.next();!d.done;c={Hea:c.Hea},d=a.next())if(d=d.value){c.Hea=new Map;[].concat(_.ld(_.dl(d)),[d.om(),d.Ot(),d.Cq()]).forEach(function(p){return function(q){q&&p.Hea.set(UK(q),q)}}(c));for(var e=[],f=_.m(c.Hea.values()),h=f.next();!h.done;h=f.next())if(h=h.value){var k=h.getName(),l=h.getEmail();e.push(UK(h)+"-"+((k?k.length:k)+"-")+((l?l.length:l)+"-")+_.Ik(h))}b.push(d.getId()+","+d.gv()+","+(e.length?e.join(","):"-"))}return b.length?"People: "+
b.join("|"):""};snc=function(a){var b=new _.To;b.append("kind,largestChangeId,nextPageToken,");b.append("items(deleted,fileId,id,kind,");b.append(_.WI(a,!0,"file"));a.f7&&(b.append(",teamDriveId,teamDrive("),b.append(a.f7),b.append(")"));b.append(")");return b.toString()};tnc=function(a){var b=new _.To;b.append("kind,nextPageToken,items(");b.append(_.WI(a,!0));b.append("),incompleteSearch");a.f7&&(b.append(","),b.append(a.f7));return b.toString()};
unc=function(a,b){for(var c=0;c<b.length;c++){var d=a,e=b[c],f=d.getCapabilities(),h=_.C(d,_.QJ,138),k=_.C(d,_.Zk,111),l=_.C(d,_.RJ,27),p=_.il(d),q=d.Hf(),r=d.wg(),v=_.C(d,_.XJ,103);switch(e){case 227:_.Kj(d,144);break;case 228:_.Kj(d,145);break;case 74:_.Nj(d,83);break;case 188:_.Kj(d,137);break;case 149:_.aI(d,128);break;case 148:_.Nj(d,127);break;case 138:_.Kj(d,126);break;case 184:_.aI(d,135);break;case 76:f&&_.Kj(f,1);break;case 223:f&&_.Kj(f,54);break;case 208:f&&_.Kj(f,48);break;case 185:f&&
_.Kj(f,40);break;case 224:f&&_.Kj(f,55);break;case 213:f&&_.Kj(f,50);break;case 156:f&&_.Kj(f,39);break;case 61:f&&_.Kj(f,2);break;case 216:f&&_.Kj(f,52);break;case 217:f&&_.Kj(f,53);break;case 77:f&&_.Kj(f,4);break;case 134:f&&_.Kj(f,34);break;case 147:f&&_.Kj(f,38);break;case 81:f&&_.Kj(f,10);break;case 82:f&&_.Kj(f,11);break;case 114:f&&_.Kj(f,27);break;case 133:f&&_.Kj(f,33);break;case 202:f&&_.Kj(f,47);break;case 132:f&&_.Kj(f,32);break;case 101:f&&_.Kj(f,20);break;case 201:f&&_.Kj(f,46);break;
case 131:f&&_.Kj(f,31);break;case 200:f&&_.Kj(f,45);break;case 130:f&&_.Kj(f,30);break;case 93:f&&_.Kj(f,17);break;case 191:f&&_.Kj(f,44);break;case 146:f&&_.Kj(f,37);break;case 90:f&&_.Kj(f,16);break;case 78:f&&_.Kj(f,7);break;case 186:f&&_.Kj(f,41);break;case 222:f&&_.Kj(f,51);break;case 85:f&&_.Kj(f,12);break;case 137:f&&_.Kj(f,36);break;case 209:f&&_.Kj(f,49);break;case 79:f&&_.Kj(f,8);break;case 189:f&&_.Kj(f,42);break;case 190:f&&_.Kj(f,43);break;case 80:f&&_.Kj(f,9);break;case 135:f&&_.Kj(f,
35);break;case 102:f&&_.Kj(f,21);break;case 69:_.Kj(d,74);break;case 194:h&&_.Lj(h,2);break;case 193:h&&_.Kj(h,1);break;case 1004:_.Kj(d,108);break;case 136:_.Nj(d,125);break;case 115:k&&_.Kj(k,1);break;case 116:k&&_.Kj(k,2);break;case 34:_.Kj(d,30);f&&_.Kj(f,3);break;case 9:_.Kj(d,10);break;case 91:_.Lj(d,91);break;case 43:_.Kj(d,42);_.Kj(d,43);break;case 187:_.Kj(d,136);break;case 26:_.Kj(d,24);break;case 108:_.aI(d,104);break;case 41:_.Kj(d,40);f&&_.Kj(f,5);break;case 42:_.Kj(d,41);break;case 1005:_.Nj(d,
117);break;case 59:f&&_.Kj(f,6);break;case 28:_.Kj(d,26);break;case 44:_.Kj(d,45);break;case 13:_.Kj(d,14);break;case 48:_.Kj(d,36);break;case 38:_.Kj(d,34);break;case 49:_.aI(d,50);break;case 51:_.Kj(d,53);break;case 104:_.Kj(d,102);break;case 39:_.Kj(d,35);break;case 87:_.Kj(d,76);break;case 100:_.Kj(d,98);break;case 72:_.Kj(d,78);break;case 5:_.Kj(d,6);break;case 20:_.Kj(d,21);break;case 21:break;case 29:l&&_.Kj(l,1);break;case 31:l&&_.Kj(l,3);break;case 92:l&&_.Kj(l,4);break;case 30:l&&_.Kj(l,
2);break;case 16:_.Lj(d,17);break;case 12:_.Kj(d,13);break;case 211:p&&_.Kj(p,2);break;case 212:p&&_.Kj(p,3);break;case 220:p&&_.Kj(p,5);break;case 157:r&&_.Nj(r,8);break;case 3:_.Kj(d,4);break;case 11:_.Kj(d,12);break;case 10:_.Kj(d,11);break;case 50:_.Kj(d,49);_.Kj(d,51);_.Lj(d,81);break;case 18:_.Kj(d,19);break;case 95:_.Kj(d,93);break;case 58:_.Kj(d,63);break;case 14:_.Nj(d,15);break;case 103:_.Kj(d,101);break;case 1:_.aI(d,2);break;case 96:_.Kj(d,94);break;case 1003:_.Nj(d,107);break;case 75:_.Lj(d,
85);break;case 94:_.Kj(d,92);break;case 45:_.Kj(d,46);break;case 124:_.Kj(d,118);break;case 125:_.Kj(d,119);break;case 1002:_.Lj(d,100);break;case 32:_.Kj(d,28);break;case 67:_.Kj(d,70);break;case 68:_.Kj(d,71);break;case 73:_.Kj(d,79);break;case 71:_.Kj(d,77);break;case 221:r&&_.Kj(r,9);break;case 210:_.Kj(d,140);break;case 7:_.Kj(d,8);break;case 122:_.Lj(d,109);break;case 66:_.Kj(d,69);break;case 33:_.Kj(d,29);break;case 24:_.Kj(d,22);break;case 25:_.Kj(d,23);break;case 46:_.Lj(d,47);break;case 192:q&&
_.Kj(q,6);break;case 159:q&&_.Lj(q,5);break;case 154:q&&_.Kj(q,1);break;case 158:q&&_.Kj(q,4);break;case 155:q&&_.Kj(q,3);break;case 52:_.aI(d,56);break;case 56:_.Kj(d,61);break;case 55:_.Nj(d,60);break;case 4:_.Kj(d,5);break;case 35:_.Kj(d,31);break;case 57:_.Kj(d,62);break;case 83:_.Kj(d,72);break;case 84:_.Lj(d,86);break;case 19:_.Kj(d,20);_.Kj(d,44);_.Kj(d,90);break;case 2:_.Kj(d,3);break;case 6:_.Kj(d,7);break;case 98:_.Kj(d,96);break;case 97:_.Lj(d,95);break;case 27:_.Kj(d,25);break;case 70:_.Kj(d,
75);break;case 107:v&&_.Kj(v,3);break;case 106:v&&_.Kj(v,2);break;case 105:v&&_.Kj(v,1);break;case 8:_.Kj(d,9);break;case 126:_.aI(d,120);break;default:throw Error("Qc`"+e);}}};wnc=function(a,b){if(0!=a.length){var c=new Set([].concat(_.ld(a),_.ld(vnc)));a=[].concat(_.ld(_.Adb.keys())).filter(function(e){return!c.has(e)});for(var d=0;d<b.length;d++)unc(b[d],a)}};
xnc=function(a,b){var c=a.getCapabilities()||new _.Xk,d=_.C(a,_.QJ,138),e=_.C(a,_.Zk,111),f=_.C(a,_.RJ,27),h=_.il(a),k=a.Hf(),l=a.wg(),p=_.C(a,_.XJ,103);switch(b){case 227:return null!=_.Q(a,144);case 228:return null!=_.B(a,145);case 74:return 0<a.Xt().length;case 188:return null!=_.Q(a,137);case 149:return 0<_.Qd(a,128).length;case 148:return 0<a.Iya().length;case 138:return null!=a.d9();case 184:return 0<_.Qd(a,135).length;case 76:return null!=_.Yk(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!=_.ne(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!=_.C(d,_.Khc,2);case 193:return null!=d&&null!=_.B(d,1);case 1004:return null!=_.Q(a,108);case 136:return 0<a.Y0().length;case 115:return null!=e&&null!=_.Q(e,1);case 116:return null!=e&&null!=_.B(e,2);case 34:return null!=_.Q(a,30)||null!=_.Q(c,3);case 9:return null!=a.SC();
case 91:return null!=a.Cq();case 43:return null!=_.B(a,42)||null!=_.B(a,43);case 187:return null!=a.Zk();case 26:return null!=a.Fe();case 108:return 0<_.Qd(a,104).length;case 41:return null!=_.Q(c,5);case 42:return null!=_.B(a,41);case 1005:return 0<_.hl(a).length;case 59:return null!=_.Q(c,6);case 28:return null!=a.HI();case 44:return null!=_.B(a,45);case 13:return null!=a.UF();case 48:return null!=_.Q(a,36);case 38:return null!=a.Vi();case 49:return 0<_.Qd(a,50).length;case 51:return null!=_.Q(a,
53);case 104:return null!=_.Q(a,102);case 39:return null!=a.Sja();case 87:return null!=_.el(a);case 100:return null!=_.Q(a,98);case 72:return null!=_.B(a,78);case 5:return null!=_.Q(a,6);case 20:return null!=a.Se();case 21:return null!=a.getId();case 29:return!(!f||null==_.B(f,1));case 31:return!(!f||null==_.B(f,3));case 92:return!(!f||null==_.B(f,4));case 30:return!(!f||null==f.Ge());case 16:return null!=a.om();case 12:return null!=a.gz();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||!_.Rj(l,_.bl,8));case 3:return null!=a.getMimeType();case 11:return null!=a.hB();case 10:return null!=a.tq();case 50:return null!=_.Q(a,49)||null!=_.Q(a,51)||null!=a.Lm();case 18:return null!=a.Fp();case 14:return 0<_.dl(a).length;case 95:return null!=a.Pl();case 58:return null!=_.Q(a,63);case 103:return null!=_.B(a,101);case 1:return 0<a.jk().length;case 96:return null!=_.Q(a,94);case 1003:return 0<_.gl(a).length;case 75:return null!=
a.Wv();case 94:return null!=a.kN();case 45:return null!=a.xw();case 124:return null!=_.Q(a,118);case 125:return null!=_.B(a,119);case 1002:return null!=_.fl(a);case 32:return null!=a.Lu();case 67:return null!=a.NJ();case 68:return null!=_.B(a,71);case 73:return null!=_.B(a,79);case 71:return null!=a.D1();case 221:return null!=l&&null!=_.Q(l,9);case 210:return null!=_.jl(a);case 7:return null!=a.Q6();case 122:return null!=_.VK(a);case 66:return null!=_.B(a,69);case 33:return null!=_.Q(a,29);case 24:return null!=
a.Dj();case 25:return null!=a.qy();case 46:return null!=a.Ot();case 192:return null!=k&&null!=_.Q(k,6);case 159:return null!=k&&null!=_.Ud(k);case 154:return null!=k&&null!=_.B(k,1);case 158:return null!=k&&null!=_.Wd(k);case 155:return null!=k&&null!=_.B(k,3);case 52:return 0<_.Qd(a,56).length;case 55:return 0<a.pB().length;case 56:return null!=_.B(a,61);case 4:return null!=a.VA();case 35:return null!=_.Q(a,31);case 57:return null!=_.B(a,62);case 83:return null!=a.yc();case 84:return null!=_.C(a,
_.WJ,86);case 2:return null!=a.getTitle();case 19:return null!=a.Px()||null!=_.Q(a,44)||null!=_.B(a,90);case 6:return null!=a.Th();case 98:return null!=a.Xv();case 97:return null!=a.hD();case 27:return null!=a.Yo();case 70:return null!=a.zi();case 107:return null!=p&&null!=_.B(p,3);case 106:return null!=p&&null!=_.B(p,2);case 105:return null!=p&&null!=p.Ge();case 8:return null!=_.Q(a,9);case 126:return 0<_.Qd(a,120).length;default:throw Error("Rc`"+b);}};
ync=function(a,b){return b.every(function(c){return xnc(a,c)})};znc=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)})};Anc=function(a,b){var c=new Set(b.concat(_.zgc));return a.filter(function(d){return!c.has(d)})};
WK=function(a,b,c){var d,e;b=b.clone();for(var f=b.getCapabilities(),h=_.m(c),k=h.next();!k.done;k=h.next()){var l=k.value;if(xnc(b,l))if(_.Edb.has(l)){if(f){var p=a.getCapabilities()||new _.Xk;_.ZJ(a,p);switch(l){case 76:_.ohc(p,_.Yk(f));break;case 223:var q=_.Q(f,54);_.y(p,54,q);break;case 208:_.Jhc(p,_.Q(f,48));break;case 185:var r=_.Q(f,40);_.y(p,40,r);break;case 224:var v=_.Q(f,55);_.y(p,55,v);break;case 213:var z=_.Q(f,50);_.y(p,50,z);break;case 156:var A=_.Q(f,39);_.y(p,39,A);break;case 61:var D=
_.Q(f,2);_.y(p,2,D);break;case 216:var G=_.Q(f,52);_.y(p,52,G);break;case 217:var H=_.Q(f,53);_.y(p,53,H);break;case 77:_.phc(p,_.Q(f,4));break;case 134:var L=_.Q(f,34);_.y(p,34,L);break;case 147:var M=_.Q(f,38);_.y(p,38,M);break;case 81:_.vhc(p,_.Q(f,10));break;case 82:_.whc(p,_.Q(f,11));break;case 114:var R=_.Q(f,27);_.y(p,27,R);break;case 133:_.Ehc(p,_.Q(f,33));break;case 202:_.Ihc(p,_.Q(f,47));_.Dhc(p,_.Q(f,32));break;case 132:_.Dhc(p,_.Q(f,32));break;case 101:_.Ahc(p,_.Q(f,20));break;case 201:_.Hhc(p,
_.Q(f,46));break;case 131:_.Chc(p,_.Q(f,31));break;case 200:var Z=_.Q(f,45);_.y(p,45,Z);break;case 130:var ia=_.Q(f,30);_.y(p,30,ia);break;case 93:_.zhc(p,_.Q(f,17));break;case 191:var ja=_.Q(f,44);_.y(p,44,ja);break;case 146:var xa=_.Q(f,37);_.y(p,37,xa);break;case 90:_.yhc(p,_.ne(f));break;case 78:_.shc(p,_.Q(f,7));break;case 186:var ha=_.Q(f,41);_.y(p,41,ha);break;case 222:var Va=_.Q(f,51);_.y(p,51,Va);break;case 85:_.xhc(p,_.Q(f,12));break;case 137:var Ia=_.Q(f,36);_.y(p,36,Ia);break;case 209:var ob=
_.Q(f,49);_.y(p,49,ob);break;case 79:_.thc(p,_.Q(f,8));break;case 189:_.Fhc(p,_.Q(f,42));break;case 190:_.Ghc(p,_.Q(f,43));break;case 80:_.uhc(p,_.Q(f,9));break;case 135:var $a=_.Q(f,35);_.y(p,35,$a);break;case 102:_.Bhc(p,_.Q(f,21));break;case 34:var yb=_.Q(b,30);_.y(a,30,yb);var Zb=_.Q(f,3);_.y(p,3,Zb);break;case 41:var Hc=_.Q(b,40);_.y(a,40,Hc);_.qhc(p,_.Q(f,5));break;case 59:_.rhc(p,_.Q(f,6))}}}else if(_.Fdb.has(l)){var ie=_.C(b,_.QJ,138);if(ie){var Dd=_.C(a,_.QJ,138)||new _.QJ;_.J(a,138,Dd);
switch(l){case 194:var Gd=_.C(ie,_.Khc,2);_.J(Dd,2,Gd);break;case 193:var vf=_.B(ie,1);_.y(Dd,1,vf)}}}else if(_.Gdb.has(l)){var nd=_.C(b,_.Zk,111);if(nd){var Db=_.C(a,_.Zk,111)||new _.Zk;_.J(a,111,Db);switch(l){case 115:_.Lhc(Db,_.Q(nd,1));break;case 116:_.Mhc(Db,_.B(nd,2))}}}else if(_.Hdb.has(l)){var je=_.C(b,_.RJ,27);if(je){var og=_.C(a,_.RJ,27)||new _.RJ;_.J(a,27,og);switch(l){case 29:var Ee=_.B(je,1);_.y(og,1,Ee);break;case 31:og.wh(_.B(je,3));break;case 92:var hi=_.B(je,4);_.y(og,4,hi);break;
case 30:og.xh(je.Ge())}}}else if(_.Idb.has(l)){var bf=_.il(b);if(bf){var Di=_.il(a)||new _.Una;_.J(a,139,Di);switch(l){case 211:var eh=_.Q(bf,2);_.y(Di,2,eh);break;case 212:var lm=_.Q(bf,3);_.y(Di,3,lm);break;case 220:var Ve=_.Q(bf,5);_.y(Di,5,Ve)}}}else if(_.Jdb.has(l)){var pe=b.Hf();if(pe){var Xf=a.Hf()||new _.coa;_.J(a,132,Xf);switch(l){case 192:var pi=_.Q(pe,6);_.y(Xf,6,pi);break;case 159:var qk=_.Ud(pe);_.J(Xf,5,qk);break;case 154:var mm=_.B(pe,1);_.y(Xf,1,mm);break;case 158:var Jo=_.Wd(pe);
_.y(Xf,4,Jo);break;case 155:var Lm=_.B(pe,3);_.y(Xf,3,Lm)}}}else if(_.Kdb.has(l)){var aj=b.wg();switch(l){case 157:if(aj){var Sn=a.wg()||new _.aoa;Bnc(a,Sn);Cnc(Sn,_.Rj(aj,_.bl,8))}break;case 221:if(aj){var Cj=a.wg()||new _.aoa;Bnc(a,Cj);var Ig=_.Q(aj,9);_.y(Cj,9,Ig)}}}else if(_.Ldb.has(l)){var bj=_.C(b,_.XJ,103);if(bj){var Dj=_.C(a,_.XJ,103)||new _.XJ;_.J(a,103,Dj);switch(l){case 107:var oj=_.B(bj,3);_.y(Dj,3,oj);break;case 106:Dj.wh(_.B(bj,2));break;case 105:Dj.xh(bj.Ge())}}}else switch(l){case 227:var Pi=
_.Q(b,144);_.y(a,144,Pi);break;case 228:var Wj=_.B(b,145);_.y(a,145,Wj);break;case 74:var Xj=b.Xt();_.Mj(a,83,Xj);break;case 188:var Qi=_.Q(b,137);_.y(a,137,Qi);break;case 149:var pj=_.Qd(b,128);_.Jj(a,128,pj);break;case 148:var Kh=b.Iya();_.Mj(a,127,Kh);break;case 138:var pl=b.d9();_.y(a,126,pl);break;case 184:var Ej=_.Qd(b,135);_.Jj(a,135,Ej);break;case 69:var Fj=_.Q(b,74);_.y(a,74,Fj);break;case 1004:var Gj=_.Q(b,108);_.y(a,108,Gj);break;case 136:var Hj=b.Y0();_.Mj(a,125,Hj);break;case 9:var qn=
b.SC();_.y(a,10,qn);break;case 91:_.cic(a,b.Cq());break;case 43:var Pk=_.B(b,42);_.y(a,42,Pk);var Qk=_.B(b,43);_.y(a,43,Qk);break;case 187:_.gic(a,b.Zk());break;case 26:a.Il(b.Fe());break;case 108:var Af=_.Qd(b,104);_.Jj(a,104,Af);break;case 42:var Ij=_.B(b,41);_.y(a,41,Ij);break;case 1005:var nm=_.hl(b);_.Mj(a,117,nm);break;case 28:_.Vhc(a,b.HI());break;case 44:var om=_.B(b,45);_.y(a,45,om);break;case 13:var Mm=b.UF();_.y(a,14,Mm);break;case 48:var Ei=_.Q(b,36);_.y(a,36,Ei);break;case 38:_.Xhc(a,
b.Vi());break;case 49:var Yj=_.Qd(b,50);_.Jj(a,50,Yj);break;case 51:var zc=_.Q(b,53);_.y(a,53,zc);break;case 104:var Rk=_.Q(b,102);_.y(a,102,Rk);break;case 39:var fh=b.Sja();_.y(a,35,fh);break;case 87:var Tg=_.el(b);_.y(a,76,Tg);break;case 100:var We=_.Q(b,98);_.y(a,98,We);break;case 72:var Nm=_.B(b,78);_.y(a,78,Nm);break;case 5:var pm=_.Q(b,6);_.y(a,6,pm);break;case 20:var zh=b.Se();_.y(a,21,zh);break;case 21:a.Ob(b.getId());break;case 16:_.Thc(a,b.om());break;case 12:var cj=b.gz();_.y(a,13,cj);
break;case 3:_.lG(a,b.getMimeType());break;case 11:var qm=b.hB();_.y(a,12,qm);break;case 10:_.WVb(a,b.tq());break;case 50:var Qh=_.Q(b,49);_.y(a,49,Qh);var rn=_.Q(b,51);_.y(a,51,rn);var Tn=b.Lm();_.J(a,81,Tn);break;case 95:_.eic(a,b.Pl());break;case 18:_.Uhc(a,b.Fp());break;case 58:var Om=_.Q(b,63);_.y(a,63,Om);break;case 14:_.Shc(a,_.dl(b));break;case 1:_.YJ(a,b.jk());break;case 96:var Sk=_.Q(b,94);_.y(a,94,Sk);break;case 103:var Tk=_.B(b,101);_.y(a,101,Tk);break;case 1003:Dnc(a,_.gl(b));break;case 75:_.bic(a,
b.Wv());break;case 94:_.dic(a,b.kN());break;case 45:var Ko=b.xw();_.y(a,46,Ko);break;case 124:var xq=_.Q(b,118);_.y(a,118,xq);break;case 125:var Op=_.B(b,119);_.y(a,119,Op);break;case 1002:var io=_.fl(b).clone();(null===(d=_.fl(a))||void 0===d?0:_.Q(d,3))&&_.y(io,3,!0);(null===(e=_.fl(a))||void 0===e?0:_.Q(e,4))&&_.y(io,4,!0);_.J(a,100,io);break;case 32:var Vi=b.Lu();_.y(a,28,Vi);break;case 67:var Yl=b.NJ();_.y(a,70,Yl);break;case 68:var Pp=_.B(b,71);_.y(a,71,Pp);break;case 73:var Hr=_.B(b,79);_.y(a,
79,Hr);break;case 71:var Ir=b.D1();_.y(a,77,Ir);break;case 210:var Iy=_.jl(b);_.y(a,140,Iy);break;case 7:_.Rhc(a,b.Q6());break;case 122:Enc(a,_.VK(b));break;case 66:var Nq=_.B(b,69);_.y(a,69,Nq);break;case 33:var Jr=_.Q(b,29);_.y(a,29,Jr);break;case 24:var vD=b.Dj();_.y(a,22,vD);break;case 25:var dB=b.qy();_.y(a,23,dB);break;case 46:_.Zhc(a,b.Ot());break;case 52:var Jy=_.Qd(b,56);_.Jj(a,56,Jy);break;case 56:var Ky=_.B(b,61);_.y(a,61,Ky);break;case 55:a.yA(b.pB());break;case 4:a.Ev(b.VA());break;case 35:_.Whc(a,
_.Q(b,31));break;case 57:var Ly=_.B(b,62);_.y(a,62,Ly);break;case 83:_.aic(a,b.yc());break;case 84:var Oq=_.C(b,_.WJ,86);_.J(a,86,Oq);break;case 98:a.Lca(b.Xv());break;case 97:_.fic(a,b.hD());break;case 19:var Kr=b.Px();_.y(a,20,Kr);_.Yhc(a,_.Q(b,44));var Rs=_.B(b,90);_.y(a,90,Rs);break;case 2:a.setTitle(b.getTitle());break;case 6:a.Jn(b.Th());break;case 27:_.XVb(a,b.Yo());break;case 70:var My=b.zi();_.y(a,75,My);break;case 8:var wD=_.Q(b,9);_.y(a,9,wD);break;case 126:var ex=_.Qd(b,120);_.Jj(a,120,
ex);break;default:throw Error("Sc`"+l);}}};Fnc=function(a,b){var c=_.xz[a];return b.filter(function(d){return!c||!c.has(d)})};Gnc=function(a,b,c){a=Fnc(c,a);return znc(b,a,_.zgc)};XK=function(a){return a?"application/vnd.google-apps.shortcut"===a.getMimeType():!1};YK=function(a,b){b=void 0===b?!1:b;if(!a)return!1;var c=a.getMimeType();return b&&XK(a)?(a=a.Hf(),!!a&&"application/vnd.google-apps.folder"===_.B(a,3)):"application/vnd.google-apps.folder"===c};
Hnc=function(a){var b=a&&a.getId()||null;a&&XK(a)&&(a=(a=a.Hf())&&_.B(a,1))&&(b=a);return b};Inc=function(a){return!!_.Q(a,31)&&!_.Q(a,94)};Knc=function(a){return Jnc.some(function(b){return xnc(a,b)})};Lnc=function(a){return a.filter(function(b){return b}).some(function(b){return[4,5,2].includes(b.gv())})};Mnc=function(a){return Lnc(a.filter(function(b){return b}).map(function(b){return b.getItem()}))};
Nnc=function(a,b){var c={};a=_.Ma(a,function(d){return!!d});b=_.Ma(b,function(d){return!!d});_.La(a,function(d,e){var f=b[e];f?_.Vj(d,f)||(d=_.n7a(4).setItem(f),c[e]=d):(d=_.n7a(2).setItem(d),c[e]=d)});_.La(b,function(d,e){a[e]||(d=_.n7a(1).setItem(d),c[e]=d)});return c};Onc=function(a,b){return _.Pa(a)!==_.Pa(b)||!_.Ta(Nnc(a,b))};_.Pnc=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};
Qnc=function(a,b){var c=_.fgc(b||{}),d=new Map;a.forEach(function(e){d.set(e,c[e]||null)});return d};Rnc=function(a,b){return 0<=b?!a||a<=b:!0};Snc=function(a,b){if(b){var c=[];_.Q(b,3)&&c.push("folder");var d=_.Ecc()&&4===b.getType()?"title_natural":_.mfc[b.getType()];b=_.ofc[b.sf()];d&&(b&&(d+=" "+b),c.push(d));c.length&&(a.orderBy=c.join(","))}};Tnc=function(a,b){var c=a.Lm();c||(c=new _.Vna,b&&_.J(a,81,c));return c};
Unc=function(a){if(YK(a))_.TK(Tnc(a,!0),!0);else if(YK(a,!0)){var b=a.Hf();if(b=b&&_.Ud(b))_.TK(Tnc(b,!0),!0),_.TK(Tnc(a,!0),!0)}};Vnc=function(a){return!!a.Lm()&&!YK(a)};Wnc=function(a){var b=[];_.Ja(a,function(c){if(3!=c.gv()){var d=c;if(null!=_.Q(d,49)||null!=_.Q(d,51)||null!=d.Lm())c=c.clone(),_.Kj(c,49),_.Kj(c,51),_.Lj(c,81);b.push(c)}});return b};
Ync=function(a){for(var b=0;b<a.length;b++){var c=a[b];c&&c instanceof _.K?a[b]=c.Kc():c&&c instanceof _.uK?a[b]=c.Kc(function(d){return d?d.Kc():null}):c&&c instanceof Xnc&&(a[b]=c.Kc())}};$nc=function(a){var b=a.slice(0),c=new Set(b);Znc.forEach(function(d){c.has(d)||b.push(d)});b.sort();return b};
goc=function(a,b,c){var d=_.C(a,aoc,66);if(d){var e=_.B(d,1),f=_.gK(a);a=_.HI(_.tI(a));e=new _.ej(e);var h=new _.ej(window.location);var k=h.O+"://"+h.H;null!=h.W&&(k+=":"+h.W);h=_.uj(k,3);_.lj(e,"co",h);h=e.Ke();!f&&0<a&&(h+="u/"+a+"/");e.Fi(h+"_/dataservice/cacheproxy");f=_.B(d,5)||"";if(_.sgc(window.location.href,e.toString())&&f)return e=$nc(c),c=_.B(d,6),b="#"+b+"_",d=new _.kI,d.update(e.join(",")),b+=_.zdc(d.digest()),c&&(b+="&jobset="+c),b=_.Cy(f+"?"+b),_.n.SharedWorker?(c=new SharedWorker(_.Qga(b),
void 0),b=new boc(c.port),c.port.start()):b=new boc(new Worker(_.Qga(b),void 0)),new coc(new doc(b,!0),1,f,e);c=e.toString();b="cpiframe_"+_.eI();c=_.qh("IFRAME",{name:b,id:b,src:c});c.style.cssText=_.Kha(_.Xfc(_.Uf("display: none;")));document.body.appendChild(c);c=_.vdc(e.O,void 0,e.H,e.W).toString();return new coc(new doc(eoc(window.frames[b],c),!0),0,e.toString())}b=new foc;return new coc(new doc(b.O,!1),2,"inline",c,new doc(b.H,!1))};
ioc=function(a){var b=new hoc;if(a instanceof _.XI)_.Sj(b,16,ZK[0],a);else if(a instanceof _.YI)_.Sj(b,1,ZK[0],a);else if(a instanceof _.ZI)_.Sj(b,2,ZK[0],a);else if(a instanceof _.$K)_.Sj(b,17,ZK[0],a);else if(a instanceof _.bJ)_.Sj(b,3,ZK[0],a);else if(a instanceof _.EK)_.Sj(b,4,ZK[0],a);else if(a instanceof _.$I)_.Sj(b,5,ZK[0],a);else if(a instanceof _.fJ)_.Sj(b,6,ZK[0],a);else if(a instanceof _.hJ)_.Sj(b,7,ZK[0],a);else if(a instanceof _.iJ)_.Sj(b,8,ZK[0],a);else if(a instanceof _.lJ)_.Sj(b,9,
ZK[0],a);else if(a instanceof _.BJ)_.Sj(b,10,ZK[0],a);else if(a instanceof _.CJ)_.Sj(b,11,ZK[0],a);else if(a instanceof _.DJ)_.Sj(b,12,ZK[0],a);else if(a instanceof _.JI)_.Sj(b,13,ZK[0],a);else if(a instanceof _.GJ)_.Sj(b,14,ZK[0],a);else if(a instanceof _.HJ)_.Sj(b,15,ZK[0],a);else throw new _.nc("Unsupported request type");return b};
loc=function(a){a=a.map(function(c){var d=new joc;if(c instanceof _.XI)_.Sj(d,6,aL[0],c);else if(c instanceof _.$K)_.Sj(d,7,aL[0],c);else if(c instanceof _.fJ)_.Sj(d,1,aL[0],c);else if(c instanceof _.BJ)_.Sj(d,2,aL[0],c);else if(c instanceof _.CJ)_.Sj(d,3,aL[0],c);else if(c instanceof _.JI)_.Sj(d,4,aL[0],c);else if(c instanceof _.HJ)_.Sj(d,5,aL[0],c);else throw new _.nc("Unsupported request type");return d});var b=new koc;_.Mj(b,1,a);return b};
moc=function(a){return _.Rj(a,joc,1).map(function(b){return _.C(b,_.XI,6)||_.C(b,_.fJ,1)||_.C(b,_.BJ,2)||_.C(b,_.CJ,3)||_.C(b,_.JI,4)||_.C(b,_.HJ,5)||_.C(b,_.$K,7)})};poc=function(a){var b=new noc;if(a instanceof _.ED)_.Sj(b,1,ooc[0],a);else if(a instanceof _.FD)_.Sj(b,2,ooc[0],a);else throw new _.nc("Unsupported request type");return b};
soc=function(a){var b=new qoc;if(a instanceof _.cJ)_.Sj(b,1,roc[0],a);else if(a instanceof _.jJ)_.Sj(b,2,roc[0],a);else if(a instanceof _.IJ)_.Sj(b,3,roc[0],a);else throw new _.nc("Unsupported request type");return b};bL=function(a,b,c){return b?new c(JSON.parse(a)):a};toc=function(a){a={t:a.title,d:a.description,c:a.ud,fi:a.V8,dti:a.f0,a:a.YP?a.YP.map(function(b){return JSON.stringify({n:b.name,c:b.content,ct:b.contentType,ec:b.D8})}):void 0};return JSON.stringify(a)};
uoc=function(a){a=JSON.parse(a);return{title:a.t,description:a.d,ud:a.c,V8:a.fi,f0:a.dti,YP:a.a?a.a.map(function(b){b=JSON.parse(b);return{name:b.n,content:b.c,contentType:b.ct,D8:b.ec}}):void 0}};voc=function(a,b,c){a=a?1:2;a=_.bd(_.ad(new _.$c,12),a);var d=(new _.ef).Jn(!0);d=_.y(d,17,!0);a=_.ff(d,a);c&&_.Gl(a,c);c=new _.kfc;b&&_.mgc(c,b);return _.ngc(_.pgc(new _.zI,a),c)};woc=function(a){return a.map(function(b){return b.getItem()})};
xoc=function(a){var b={};a.forEach(function(c){b[c.getId()]=c.getItem()});return b};yoc=function(a,b){var c=new _.ej(_.E(b,16,"")+"/open"),d=a.getId();XK(a)&&(d=Hnc(a));_.lj(c,"id",d);_.lj(c,"authuser",_.HI(_.tI(b)));_.S(b,89,!1)&&_.P(a,140)&&_.lj(c,"resourcekey",_.jl(a));return c.toString()};zoc=function(a){return String.fromCharCode(10>a?48+a:87+a)};Aoc=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]=zoc(d>>4);b[2*c+3]=zoc(d&15)}return b.join("")};
Boc=function(a){_.Nf("drive.DebugUtil.printFindById",function(c){a.OM(c).then(function(d){window.console.log(JSON.stringify(d))})});_.Nf("drive.DebugUtil.getLogs",function(){return _.fjc(a.Rf())});_.Nf("drive.DebugUtil.printLogs",function(){window.console.log(_.fjc(a.Rf()))});_.Nf("drive.DebugUtil.printRequestHistory",function(){a.cR().then(function(c){c.forEach(function(d){window.console.log(_.B(d,1));window.console.log(_.B(d,2))})})});_.Nf("drive.DebugUtil.getState",function(){return a.getState()});
var b=a.La();b&&_.S(b,1,!1)&&(_.Nf("drive.DebugUtil.getContext",function(){return a.getContext()}),_.Nf("drive.DebugUtil.setOffline",function(c){return void a.Kl(c)}))};Eoc=function(a,b){b.info("drive.ds.sync.api.Dump","Requesting dump stats.");b=new _.rf;_.sf(b,305);_.tf(b,!0);_.y(b,3,2);var c=new _.DD;_.J(c,1,b);Coc(c,[7]);a=a.then(function(d){return d.Re(c)}).then(Doc);return _.$h(a)};
Doc=function(a){a=_.Rj(a,_.lp,3);var b=new Foc;a.forEach(function(c){var d=c.getKey();"corpusSize"===(d&&_.B(d,2))&&(c=_.Rg(c.Za()),_.y(b,3,c))});return"number"===typeof _.B(b,3)?b:null};Hoc=function(a,b){var c=Goc(a.lm,b.Ac());if(c){var d=c.getItem(),e=d.Wv();if(e){var f=e.fR(),h=_.ua(f,function(k){return k.getId()===_.B(b,2)});_.Ohc(e,f);h||(f=_.Rj(e,_.Gk,3),_.ua(f,function(k){return k.getId()===_.B(b,2)}),_.Phc(e,f));_.Nhc(e,(_.B(e,1)||1)-1);a.nl([d],c.V)}}};
Joc=function(a,b,c){if(b=Goc(a.lm,b.Ac())){var d=b.getItem(),e=d.Wv();if(e){if(1===c.getType()||2===c.getType()){var f=_.Rj(e,_.Gk,3);f.push(c);_.Ga(f,Ioc);_.Phc(e,f)}else f=e.fR(),f.push(c),_.Ga(f,Ioc),_.Ohc(e,f);_.Nhc(e,(_.B(e,1)||0)+1);a.nl([d],b.V)}}};Loc=function(a){return a.map(function(b){var c=new _.Iub;c=_.y(c,3,Koc[b.serviceName]);return _.y(c,2,Number(b.bytesUsed))})};
Noc=function(a){return(a.quotaBytesByService||[]).reduce(function(b,c){return Moc.has(c.serviceName)?b+Number(c.bytesUsed):b},0)};
Roc=function(a){var b=a.json.exportJob,c=Ooc[b.status]||0,d=Number(a.json.percentDone),e=b.items?b.items.length:0;a=a.json.numFetchedFiles||0;var f=0,h=0,k=_.cf(b.archives||[],function(l){f=f+Number(l.sizeOfContents)||0;h=h+Number(l.compressedSize)||0;return l.storagePath});b=_.cf(b.failedItemInfos||[],function(l){var p=_.lG((new _.cl).Ob(l.docId).setTitle(l.title),l.mediaType);p=(new _.Poc).setItem(p);p=_.y(p,3,l.relativePath);return _.y(p,4,l.cause)});return new Qoc(c,d,k,f,h,e,a,b)};
Toc=function(a){var b={},c=a.getKey(),d=c&&_.B(c,2);b.key=d;b.value=a.Za();(a=c&&_.mp(c))&&(b.namespace=Soc[a]);return b};Uoc=function(a){for(var b=[],c=0;c<a.length;c++)b.push(Soc[a[c]]);return b};Voc=function(a){return"kind,defaultAppIds,items("+a+")"};Woc=function(a,b){return _.S(b,93,!1)?a+",adminSecureLinkSetting":a};Xoc=function(a,b){var c;return(null===(c=_.II(b))||void 0===c?0:_.S(c,16,!1))?a+",individual_quota_bytes_total,individual_quota_bytes_used_aggregate":a};
Yoc=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=_.II(b))||void 0===c?0:_.S(c,18,!1))||(null===(d=_.II(b))||void 0===d?0:_.S(d,17,!1)))null===(e=_.II(b))||void 0===e?void 0:_.y(e,15,!0);_.y(b,75,1<_.n.devicePixelRatio);var f=b;var h=_.S(f,61,!1),k=_.II(f),l=!!k&&_.S(k,10,!1);if(_.SI(_.tI(f))||!h&&!l)_.y(f,61,!1),_.Lj(f,66),k&&_.y(k,10,!1),f=!1;else{if(h){_.n.SharedWorker||(h=!1);var p=_.C(f,aoc,66);p&&_.B(p,1)||(h=!1);_.gK(f)&&!_.S(f,52,!1)&&(h=!1)}h?k&&_.y(k,10,!1):(_.y(f,61,!1),_.Lj(f,66));
f=h||l}if(f)return f=_.S(b,61,!1)?3:5,a=new cL(a,b,f),new Zoc(a);f=_.SI(_.tI(b))?2:1;a=new dL(a,b,f,void 0,void 0,void 0);return _.SI(_.tI(b))?new $oc(a):new apc(a)};dpc=function(a){return _.se(a).Jg(_.S(a.get(_.dp),19,!1)?cpc:_.zVa)};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 _.Mj(a,1,b)};UK=function(a){return _.B(a,11)};gpc=[1];hpc=function(a){_.K.call(this,a,-1,gpc)};_.N(hpc,_.K);
hpc.prototype.Yga=function(a){_.Tj(this,1,a,_.Gk,void 0)};var ipc=function(a){var b=new hpc;return _.Mj(b,1,a)},jpc=function(a,b){return _.J(a,1,b)},kpc=function(a,b){_.Mj(a,2,b)},lpc=function(a,b){_.J(a,6,b)},mpc=function(a,b){_.J(a,7,b)},npc=function(a,b){return _.Sj(a,3,_.Kk[0],b)},opc=function(a){_.K.call(this,a)};_.N(opc,_.K);var ppc=function(a){_.K.call(this,a)};_.N(ppc,_.K);var qpc=function(a){_.K.call(this,a)};_.N(qpc,_.K);var rpc=function(a){_.K.call(this,a)};_.N(rpc,_.K);
var spc=function(a){_.K.call(this,a)};_.N(spc,_.K);var tpc=function(a){_.K.call(this,a)};_.N(tpc,_.K);var upc=function(a){_.K.call(this,a)};_.N(upc,_.K);var vpc=function(a){_.K.call(this,a)};_.N(vpc,_.K);var wpc=function(a){_.K.call(this,a)};_.N(wpc,_.K);var xpc=function(a){_.K.call(this,a)};_.N(xpc,_.K);var ypc=function(a){_.K.call(this,a)};_.N(ypc,_.K);var zpc=function(a){_.K.call(this,a)};_.N(zpc,_.K);var Apc=function(a){_.K.call(this,a)};_.N(Apc,_.K);var Bpc=function(a){_.K.call(this,a)};
_.N(Bpc,_.K);var Cpc=function(a,b){_.Mj(a,1,b)},Dpc=function(a,b){return _.y(a,2,b)},Epc=function(a,b){return _.J(a,3,b)},Fpc=function(a,b){return _.y(a,4,b)},Gpc=[[1,2,3,4]],Hpc=function(a){_.K.call(this,a,-1,void 0,Gpc)};_.N(Hpc,_.K);var Ipc=function(a,b){_.Mj(a,1,b)},Jpc=function(a,b){return _.J(a,2,b)},Kpc=[[1]],Lpc=function(a){_.K.call(this,a,-1,void 0,Kpc)};_.N(Lpc,_.K);
var Mpc=function(a,b){_.Mj(a,1,b)},Npc=function(a,b){return _.J(a,4,b)},Opc=function(a,b){_.J(a,5,b)},Ppc=function(a,b){_.Mj(a,2,b)},Qpc=function(a,b){_.Mj(a,4,b)},Rpc=function(a,b){return _.J(a,5,b)},Spc=[[1,2]],Tpc=function(a){_.K.call(this,a,-1,void 0,Spc)};_.N(Tpc,_.K);var Upc=function(a,b){_.Mj(a,1,b)},Vpc=function(a,b){return _.J(a,2,b)},Wpc=[[1]],Xpc=function(a){_.K.call(this,a,-1,void 0,Wpc)};_.N(Xpc,_.K);
var Ypc=function(a,b){_.Mj(a,2,b)},Zpc=function(a){var b=new _.Uk;return _.Mj(b,3,a)},$pc=[[1,2]],aqc=function(a){_.K.call(this,a,-1,void 0,$pc)};_.N(aqc,_.K);aqc.prototype.zg=function(a){return _.Sj(this,1,$pc[0],a)};var bqc=[1],cqc=function(a){_.K.call(this,a,-1,bqc)};_.N(cqc,_.K);cqc.prototype.Ip=function(){return _.B(this,2)};var dqc=function(a,b){_.Mj(a,1,b)},eqc=function(a,b){return _.y(a,2,b)},fqc=function(a,b){return _.J(a,3,b)},gqc=[[1]],hqc=function(a){_.K.call(this,a,-1,void 0,gqc)};
_.N(hqc,_.K);var iqc=[2],jqc=function(a){_.K.call(this,a,-1,iqc)};_.N(jqc,_.K);var kqc=function(a,b){_.Mj(a,2,b)},lqc=function(a,b){return _.J(a,3,b)},mqc=[[1]],nqc=function(a){_.K.call(this,a,-1,void 0,mqc)};_.N(nqc,_.K);nqc.prototype.zg=function(a){return _.Sj(this,1,mqc[0],a)};var oqc=function(a,b){_.Mj(a,1,b)},pqc=function(a,b){return _.Mj(a,2,b)},qqc=[[1,2]],rqc=function(a){_.K.call(this,a,-1,void 0,qqc)};_.N(rqc,_.K);
var sqc=function(a,b){_.Mj(a,1,b)},tqc=function(a,b){return _.J(a,2,b)},uqc=[[1]],vqc=function(a){_.K.call(this,a,-1,void 0,uqc)};_.N(vqc,_.K);var wqc=function(a,b){return _.J(a,1,b)},Aqc=function(a,b){return _.y(a,2,b)},Bqc=function(a,b){return _.y(a,3,b)},Cqc=function(a){_.K.call(this,a)};_.N(Cqc,_.K);Cnc=function(a,b){_.Mj(a,8,b)};Bnc=function(a,b){return _.J(a,73,b)};Dnc=function(a,b){_.Mj(a,107,b)};_.VK=function(a){return _.C(a,Cqc,109)};Enc=function(a,b){_.J(a,109,b)};
Dqc=function(a){var b=new _.mk;var c=_.B(a,1);null!=c&&_.sk(b,1,c);c=_.B(a,2);null!=c&&_.sk(b,2,c);return _.ok(b)};Eqc=function(a){_.K.call(this,a)};_.N(Eqc,_.K);var aoc=function(a){_.K.call(this,a)};_.N(aoc,_.K);var Fqc=[11],Gqc=function(a){_.K.call(this,a,-1,Fqc)};_.N(Gqc,_.K);var eL=function(a){_.K.call(this,a)};_.N(eL,_.K);eL.prototype.getKey=function(){return _.B(this,2)};eL.prototype.ht=function(){return _.P(this,2)};fL=function(a){return _.E(a,4,"en")};
_.gL=function(a){return _.C(a,Gqc,34,1)};hL=function(a,b,c){if(b.length!=c.length)return!0;for(a=0;a<b.length;a++)if(!_.Vj(b[a]||void 0,c[a]||void 0))return!0;return!1};Hqc=function(a,b){return _.y(a,5,b)};_.Iqc=function(a,b){return _.y(a,2,b)};_.Jqc=function(a,b){return _.y(a,3,b)};_.Kqc=function(a,b){return _.y(a,1,b)};_.Lqc=function(a,b){return _.y(a,2,b)};_.Mqc=function(a,b){return _.Mj(a,5,b)};_.Nqc=function(a,b){return _.y(a,6,b)};_.Oqc=function(a,b){return _.y(a,7,b)};
_.Pqc=function(a,b){return _.y(a,8,b)};_.Qqc=function(a,b){return _.y(a,10,b)};_.Rqc=function(a,b){return _.y(a,15,b)};Sqc=[2];_.Tqc=function(a){_.K.call(this,a,-1,Sqc)};_.N(_.Tqc,_.K);_.Tqc.prototype.Ph=function(){return _.B(this,1)};_.Uqc=function(a,b){return _.J(a,1,b)};Vqc=function(a,b){return _.y(a,2,b)};Wqc=function(a,b){return _.y(a,3,b)};Xqc=function(a,b){_.Mj(a,4,b)};_.Yqc=function(a,b){_.J(a,8,b)};_.Zqc=function(a,b){_.J(a,9,b)};$qc=function(a){_.K.call(this,a)};_.N($qc,_.K);
$qc.prototype.Za=function(){return _.zj(this,1)};$qc.prototype.Jb=function(a){return _.Oj(this,1,a,0)};Coc=function(a,b){_.Jj(a,3,b)};_.arc=function(a){_.K.call(this,a)};_.N(_.arc,_.K);_.arc.prototype.getId=function(){return _.B(this,1)};_.arc.prototype.Ob=function(a){return _.y(this,1,a)};_.arc.prototype.Ge=function(){return _.B(this,4)};_.arc.prototype.xh=function(a){return _.y(this,4,a)};_.EK=function(a){_.K.call(this,a)};_.N(_.EK,_.K);_.EK.prototype.getTitle=function(){return _.B(this,1)};
_.EK.prototype.setTitle=function(a){return _.y(this,1,a)};_.EK.prototype.ve=function(){return _.C(this,_.rf,2)};var brc=function(a,b){return _.Jj(a,9,b)},crc=function(a,b){return _.Jj(a,10,b)},drc=function(a,b){return _.y(a,36,b)},erc=function(a,b){return _.Mj(a,38,b)},frc=function(a,b){return _.y(a,2,b)},grc=function(a,b){return _.J(a,3,b)},hrc=function(){var a=new _.CI;return _.y(a,5,!0)},irc=function(a){_.K.call(this,a)};_.N(irc,_.K);var jrc=function(a){_.K.call(this,a)};_.N(jrc,_.K);
var krc=function(a){_.K.call(this,a)};_.N(krc,_.K);var lrc=function(a){_.K.call(this,a)};_.N(lrc,_.K);var mrc=function(a){_.K.call(this,a)};_.N(mrc,_.K);var nrc=function(a){_.K.call(this,a)};_.N(nrc,_.K);nrc.prototype.sy=function(){return _.Q(this,1)};nrc.prototype.Un=function(){return _.B(this,5)};nrc.prototype.Km=function(){return _.B(this,6)};nrc.prototype.At=function(a){return _.y(this,6,a)};
var orc=function(a,b){return _.y(a,1,b)},prc=function(a,b){return _.y(a,3,b)},qrc=function(a,b){return _.y(a,4,b)},rrc=function(a,b){_.y(a,7,b)},src=function(a){_.K.call(this,a)};_.N(src,_.K);src.prototype.sy=function(){return _.Q(this,2)};var trc=function(a,b){_.y(a,1,b)},urc=function(a){_.K.call(this,a)};_.N(urc,_.K);urc.prototype.Km=function(){return _.B(this,3)};urc.prototype.At=function(a){return _.y(this,3,a)};urc.prototype.Un=function(){return _.B(this,4)};
var vrc=function(a){_.K.call(this,a)};_.N(vrc,_.K);var wrc=function(a){_.K.call(this,a)};_.N(wrc,_.K);var xrc=function(a,b){return _.y(a,1,b)},yrc=function(a,b){return _.y(a,2,b)},zrc=function(a,b){_.y(a,3,b)},Arc=[1,3,5],Brc=function(a){_.K.call(this,a,-1,Arc)};_.N(Brc,_.K);Brc.prototype.TE=function(){return _.Qd(this,1)};Brc.prototype.sy=function(){return _.Q(this,2)};Brc.prototype.Un=function(){return _.B(this,7)};Crc=function(a,b){_.y(a,2,b)};Drc=function(a,b){_.Pj(a,5,b,void 0)};
Erc=function(a,b){_.y(a,6,b)};Frc=function(a,b){_.y(a,7,b)};_.Grc=function(a,b){_.J(a,2,b)};Hrc=function(a,b,c){_.kK(a,b,c,"warning")};Irc=function(a){return[].concat(_.ld(a.O))};Jrc=function(a){return a.H.concat([].concat(_.ld(a.O)))};Krc=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(_.ld(c))};iL=function(a){var b=_.sK(a).od();b||(b=new _.Dic,a=_.sK(a),_.J(a,1,b));return b};
Lrc=function(a){var b=_.C(_.sK(a),Brc,3);b||(b=new Brc,a=_.sK(a),_.J(a,3,b));return b};jL=function(a){var b=_.C(_.sK(a),nrc,16);b||(b=new nrc,a=_.sK(a),_.J(a,16,b));return b};Mrc=function(a){var b=_.C(_.sK(a),krc,7);b||(b=new krc,a=_.sK(a),_.J(a,7,b));return b};Nrc=function(a){var b=_.C(_.sK(a),mrc,12);b||(b=new mrc,a=_.sK(a),_.J(a,12,b));return b};Orc=function(a){var b=_.C(_.sK(a),src,17);b||(b=new src,a=_.sK(a),_.J(a,17,b));return b};
Prc=function(a){var b=_.C(_.sK(a),wrc,21);b||(b=new wrc,a=_.sK(a),_.J(a,21,b));return b};
Qrc=function(a){if(a instanceof _.mI)return 2;if(a instanceof _.iG)return 10;if(a instanceof _.ef)return _.rJ(a)?3:_.sJ(a)?7:_.tJ(a)?8:1;if(a instanceof _.tA)return 9;if(a instanceof _.vG)return 11;if(a instanceof _.zJ)return 15;if(a instanceof _.uI)return 6;if(a instanceof _.vJ){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 _.DD)return 4;if(a instanceof _.aA)return 12;if(a instanceof _.kG)return 13}return 0};
Rrc=function(a){var b=null;a instanceof _.mB||"undefined"!=typeof _.uK&&a instanceof _.uK||"undefined"!=typeof _.vK&&a instanceof _.vK?b=a.Ye()||0:"undefined"!=typeof _.xK&&a instanceof _.xK||"undefined"!=typeof _.yK&&a instanceof _.yK||"undefined"!=typeof _.zK&&a instanceof _.zK||"undefined"!=typeof _.AK&&a instanceof _.AK||"undefined"!=typeof _.BK&&a instanceof _.BK?b=a.Le:"undefined"!=typeof _.wK&&a instanceof _.wK&&(b=a.Ye());return b||0};
kL=function(a,b,c){return a.V&&_.bkc(a)?(a=_.Yjc(a.V,b,0),c&&_.rgc(a,c),a):null};Src=function(a){a.V&&_.bkc(a)&&(a=a.V,a.H.vP()&&a.H.JZ())};Trc=function(a){var b=new _.nJ;return _.y(b,1,a)};Urc=function(a,b){return _.J(a,2,b)};Vrc=function(a,b){return _.J(a,1,b)};Wrc=function(a,b){a.ha=b};Xrc=[2];mL=function(a){_.K.call(this,a,-1,Xrc)};_.N(mL,_.K);mL.prototype.Bb=function(){return _.B(this,1)};mL.prototype.Bc=function(a){return _.y(this,1,a)};mL.prototype.Yga=function(a){_.Tj(this,2,a,_.Gk,void 0)};
mL.prototype.Uj=function(){return _.B(this,3)};var Yrc=[2],Zrc=function(a){_.K.call(this,a,-1,Yrc)};_.N(Zrc,_.K);Zrc.prototype.Bb=function(){return _.B(this,1)};Zrc.prototype.Bc=function(a){return _.y(this,1,a)};Zrc.prototype.Uj=function(){return _.B(this,3)};
var $rc=function(a){return a.H?a.H.promise:a.O()?(a.H=new _.An,a.H.promise):null},asc=function(a){var b=[];a.fj.forEach(function(c){(c=c.Bv.config.timestamp)&&b.push(c)});return b},bsc=function(a){var b=[];a.W.forEach(function(c){c.forEach(function(d){(d=d.Bv.config.timestamp)&&b.push(d)})});a.buckets.forEach(function(c){_.ya(b,asc(c))});return b},pnc=function(a,b){return _.Jj(a,1,b)},csc=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},dsc=function(a,b){if(!(a instanceof b.constructor))throw Error("$");var c=a.Ds();b=b.Ds();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++)_.Sma(c[e],b[e])||(d[e]=b[e]);return new a.constructor(d)},esc={SUCCESS:1,F5b:2,EXb:3,mTb:4,S5b:5,j0b:6,a0b:7,UTb:8,D4b:9,S4b:10,E5b:11,yVb:12,cVb:13,EYb:14,YWb:15,gVb:16,fVb:17,lVb:18,iVb:19,jVb:20,i5b:21,
O5b:22,B0b:23,H_b:24,NTb:25,PERMISSION_DENIED:26,WZb:27,ZTb:28,YTb:29,INTERRUPTED:30,a1b:31,u1b:32,NVb:33,TVb:34,K4b:35,$Vb:36,ZWb:37,SVb:38,$_b:39,GUb:40,W0b:41,w1b:42,B4b:43,rUb:44,FUb:45,WWb:46,RZb:47,Y_b:48,s0b:49,X0b:50,u4b:51,dVb:52,C4b:53,A4b:54,xUb:55,uUb:56,kWb:57,p_b:58,Y0b:59,qZb:60,N2b:61,B3b:62,h4b:63,TYb:64,J_b:65,V5b:66,bWb:67,$Wb:68,D5b:69,YYb:70,XTb:71,jUb:72,J3b:73,i4b:74,e4b:75,c4b:76,x3b:190,b4b:191,K3b:192,Q3b:126,M3b:128,N3b:129,O3b:130,P3b:131,R3b:132,S3b:133,W2b:127,T2b:134,
U2b:135,Y2b:136,Z2b:137,$2b:138,V2b:194,X2b:195,a3b:196,S2b:197,A3b:189,M2b:139,O2b:140,b3b:141,c3b:142,o3b:143,r3b:144,s3b:145,t3b:146,u3b:147,v3b:148,w3b:149,z3b:150,F3b:151,H3b:152,I3b:153,L3b:154,T3b:155,V3b:156,W3b:157,X3b:158,Y3b:159,Z3b:160,$3b:161,d4b:162,g4b:163,j4b:164,P2b:165,Q2b:166,R2b:167,K2b:168,L2b:169,f3b:170,d3b:171,e3b:172,g3b:173,h3b:174,i3b:175,j3b:176,k3b:177,l3b:178,m3b:179,n3b:180,p3b:181,q3b:182,y3b:106,G3b:183,U3b:184,a4b:185,C3b:186,D3b:187,E3b:188,f4b:244,V0b:77,I5b:78,
N5b:79,d_b:80,JYb:81,LYb:82,jWb:83,VWb:84,XZb:85,b5b:86,RVb:87,$Yb:88,ZYb:89,m4b:90,k4b:91,l4b:92,J5b:93,TUb:94,SUb:95,PUb:96,RUb:97,QUb:98,U5b:99,v2b:100,oVb:101,hVb:102,mVb:103,kVb:104,nVb:105,aXb:107,P4b:108,p2b:109,x5b:110,dXb:111,cXb:112,vZb:113,wZb:114,A1b:115,yUb:116,DZb:117,tWb:118,K5b:119,f0b:120,g0b:121,FYb:193,eVb:122,HVb:123,IYb:124,C_b:125,aZb:198,f1b:199,QYb:200,QSb:201,WYb:202,UYb:203,$Tb:204,s6b:205,KZb:206,MUb:207,c0b:208,v1b:209,r2b:210,qTb:211,tZb:212,AZb:213,F4b:214,E4b:215,SYb:216,
DYb:217,RYb:218,dWb:219,T4b:220,eWb:221,rZb:222,M4b:223,d6b:224,N_b:225,L4b:226,JVb:227,JZb:228,iWb:229,IUb:230,$4b:231,E_b:232,FILE_TOO_LARGE:233,XYb:234,cWb:235,SWb:236,r1b:237,K_b:238,BSb:239,JUb:240,R_b:241,C2b:242,PVb:243,OSb:245,MYb:246,u0b:247,KYb:248,c_b:249,I_b:250,XWb:251,LXb:252,uZb:253,vUb:254,bXb:255,T5b:256,xXb:257,m_b:258,H1b:259,e1b:260,hZb:261,tVb:262,QVb:263,MTb:264,VZb:265,R5b:266,FSb:267,ETb:268,DTb:269,Z_b:270,zSb:271,ASb:272},nL=function(a,b){_.gi.call(this,"Ea");this.error=
a;this.H=b};_.N(nL,_.gi);fsc={L5b:0,n_b:1,D0b:2,q0b:3,cZb:4,nTb:5,o_b:6,r0b:7,kYb:8,LTb:9,o0b:10};_.oL=function(a,b,c,d,e,f){_.qi.call(this);var h=this;this.V=a;this.va=b;this.Fa=c;this.request=e;this.Ba=f;this.H=[];this.items=[];this.ha=!0;this.O=!1;this.suggestionSessionId=null;this.Ha=d;this.status=6;this.ka=pnc(new _.RK,[1]);this.limit=e.xi();this.Le=0;_.Ae(this,function(){h.O=!1;h.H=[]});_.v7a++};_.N(_.oL,_.qi);_.g=_.oL.prototype;_.g.vi=function(){return String(_.Ca(this))};_.g.isActive=function(){return this.O};
_.g.activate=function(){this.O=!0;_.pa(this.items)&&6===this.Bb()&&this.Nj()||gsc(this)};_.g.od=function(){return this.request};_.g.xi=function(){return this.limit};_.g.Bb=function(){return this.status};_.g.Jq=function(){return this.ka};_.g.Nj=function(){return this.ha};_.g.ur=function(){var a=_.u7a().Hz(this.H,this.items),b=(new _.lI).Bc(this.Bb());a=_.Mj(b,2,a);this.H=this.items;return a};_.g.Er=function(a){this.O&&(this.limit+=a||50,this.Ha(this.vi(),this.limit))};
var hsc=function(a,b){return a.Bb()!==b.Bb()||hL(_.u7a(),a.items,b.xd())},isc=function(a,b){a.items=b.xd();a.status=b.Bb();_.yI(a.Ba)&&(a.ka=qnc(a.status,a.items));a.ha=b.fl();a.Le=b.Ye()};_.oL.prototype.rB=function(a){this.dispatchEvent(new _.oc(new _.nc("Error occurred running a query after "+a.H+" retries.",a.error)))};_.oL.prototype.kW=function(){this.dispatchEvent(new _.gi(_.PEa))};
_.oL.prototype.ru=function(a,b){var c=this;b+="\n\n\nQuery:\n"+pL(this.V,this.od());return _.$h(this.va.then(function(d){return d.gLb(a,b,c.od(),c.xi(),c.items)}))};
var gsc=function(a){a.isActive()&&(a.log("Livelist "+a.vi()+" returning "+a.items.length+". Status: "+(_.Za(esc)[a.Bb()]+". Datasource: ")+(_.Za(fsc)[a.Le]+". Query: ")+(pL(a.V,a.request)+" ")+rnc(a.items)),jsc(a,a.items,a.request),a.dispatchEvent(new _.gi(_.Ac,a)))},jsc=function(a,b,c){if(_.rJ(c))c="quick access";else if(_.sJ(c))c="people predict";else if(_.tJ(c))c="drive priority";else return;b=b.map(function(d){return d.getId()}).join(", ");a.log("Livelist "+a.vi()+" returning "+a.items.length+
" for "+(c+": "+b))};_.oL.prototype.refresh=function(){};_.oL.prototype.log=function(a){this.Fa.info(this.W,a)};_.oL.prototype.Ya=function(){_.w7a++;_.qi.prototype.Ya.call(this)};var ksc=function(){this.map={};this.status=6;this.Le=null};_.g=ksc.prototype;_.g.Bb=function(){return this.status};_.g.Bc=function(a){this.status=a};_.g.Ye=function(){return this.Le};_.g.Ei=function(a){this.Le=a};_.g.eq=function(){return this.map};var lsc=function(a,b){a.map=b};
ksc.prototype.Kc=function(a){var b=[];_.La(this.map,function(c,d){b.push({k:d,v:c?a(c):null})});return JSON.stringify({s:this.status,d:this.Le,me:b})};var msc=function(a,b,c){c=JSON.parse(c);a.Bc(c.s);a.Ei(c.d);var d={};c.me.forEach(function(e){d[e.k]=e.v?b(e.v):null});a.map=d},nsc=function(){ksc.apply(this,arguments)};_.N(nsc,ksc);_.uK=function(){ksc.apply(this,arguments)};_.N(_.uK,ksc);osc=[2,6];_.vK=function(a){_.K.call(this,a,-1,osc)};_.N(_.vK,_.K);_.g=_.vK.prototype;
_.g.Bb=function(){return _.B(this,1)};_.g.Bc=function(a){return _.y(this,1,a)};_.g.xd=function(){return _.Rj(this,_.cl,2)};_.g.Pw=function(a){return _.Mj(this,2,a)};_.g.mh=function(a,b){return _.Tj(this,2,a,_.cl,b)};_.g.Uj=function(){return _.B(this,3)};_.g.fl=function(){return _.S(this,4,!0)};var psc=function(a,b){return _.Mj(a,6,b)};_.vK.prototype.Wf=function(){return _.B(this,10)};_.vK.prototype.sP=function(a){return _.y(this,10,a)};_.vK.prototype.Ye=function(){return _.B(this,9)};
_.vK.prototype.Ei=function(a){return _.y(this,9,a)};var vnc=[1004,1005,1002,1003],Jnc=[1002,1003,1005],qL=function(a,b,c,d,e,f){_.qi.call(this);var h=this;this.V=a;this.ka=b;this.ha=c;this.ma=d;this.ta=e;this.request=f;this.O=!1;this.H={};this.items={};this.status=6;this.W=pnc(new _.RK,[1]);this.log("Creating find by ids live map: "+this.request.hn().join(", "));_.Ae(this,function(){h.O=!1;h.H=[]});_.gkb++};_.N(qL,_.qi);_.g=qL.prototype;_.g.vi=function(){return String(_.Ca(this))};
_.g.activate=function(){this.O=!0;_.Ta(this.items)&&6===this.status||qsc(this)};_.g.od=function(){return this.request};_.g.getData=function(){this.H=this.items;var a=new _.uK;_.yI(this.V)?a.Bc(Lnc(Object.values(this.items))?6:this.status):a.Bc(this.status);a.map=this.items;return a};_.g.ur=function(){var a=Nnc(this.H,this.items),b=new nsc;b.Bc(this.status);b.map=a;this.H=this.items;return b};_.g.Bb=function(){return this.status};_.g.Jq=function(){return this.W};
_.g.eT=function(a){rsc(a);var b=this.request;this.request=a;this.ta(this.vi(),b,a)};_.g.update=function(a){var b=this;0<=_.na(this.od().hn(),"root")?this.ma.addCallback(function(c){var d=a.eq()[c];d&&(_.Ua(a.map,c),a.map.root=d);ssc(b,a)}):ssc(this,a)};var ssc=function(a,b){if(a.status!==b.Bb()||Onc(a.items,b.eq()))a.status=b.Bb(),a.items=b.eq(),_.yI(a.V)&&(a.W=qnc(a.status,Object.values(a.items))),qsc(a)};
qL.prototype.rB=function(a){this.dispatchEvent(new _.oc(new _.nc("Error occurred running a find-by-IDs query after "+a.H+" retries.",a.error)))};qL.prototype.kW=function(){this.dispatchEvent(new _.gi(_.PEa))};var qsc=function(a){a.O&&(a.log("Livelist "+a.vi()+" returning "+(Object.values(a.items).length+". Status: ")+(_.Za(esc)[a.Bb()]+". Query: ")+(pL(a.ka,a.request)+" ")+rnc(Object.values(a.items))),a.dispatchEvent(new _.gi(_.Ac,a)))};
qL.prototype.log=function(a){this.ha.info("drive.ds.sync.IdViewCacheLiveMap",a)};qL.prototype.Ya=function(){_.hkb++;_.qi.prototype.Ya.call(this)};var tsc=[1,2],usc=function(a){_.K.call(this,a,-1,tsc)};_.N(usc,_.K);_.vsc=function(a){_.K.call(this,a)};_.N(_.vsc,_.K);_.vsc.prototype.Bb=function(){return _.B(this,1)};_.vsc.prototype.Bc=function(a){return _.y(this,1,a)};_.vsc.prototype.jn=function(){return _.C(this,_.jG,2)};var wsc=function(a){_.gi.call(this,a)};_.N(wsc,_.gi);
var xsc=[5,7,9],ysc=function(a){_.K.call(this,a,-1,xsc)};_.N(ysc,_.K);_.g=ysc.prototype;_.g.getUser=function(){return _.C(this,_.Gk,1)};_.g.OA=function(a){_.y(this,2,a)};_.g.setBooleanValue=function(a){return _.y(this,3,a)};_.g.setTextValue=function(a){return _.y(this,4,a)};_.g.Ioa=function(a){return _.Jj(this,5,a)};_.g.addTextValues=function(a,b){return _.Pj(this,5,a,b)};_.g.setSelectionValue=function(a){return _.y(this,6,a)};_.g.Eoa=function(a){return _.Jj(this,7,a)};
_.g.addSelectionValues=function(a,b){return _.Pj(this,7,a,b)};_.g.setIntegerValue=function(a){return _.y(this,8,a)};_.g.woa=function(a){return _.Jj(this,9,a)};_.g.addIntegerValues=function(a,b){return _.Pj(this,9,a,b)};var zsc=[7,10,12,16,13,3],rL=function(a){_.K.call(this,a,-1,zsc)};_.N(rL,_.K);var sL=function(a){return _.B(a,4)};_.g=rL.prototype;_.g.OA=function(a){_.y(this,4,a)};_.g.setBooleanValue=function(a){return _.y(this,5,a)};_.g.T8a=function(){return _.B(this,6)};
_.g.setTextValue=function(a){return _.y(this,6,a)};_.g.Ioa=function(a){return _.Jj(this,7,a)};_.g.addTextValues=function(a,b){return _.Pj(this,7,a,b)};_.g.R8a=function(){return _.B(this,8)};_.g.setLongTextValue=function(a){return _.y(this,8,a)};_.g.S8a=function(){return _.B(this,9)};_.g.setSelectionValue=function(a){return _.y(this,9,a)};_.g.vLa=function(){return _.Qd(this,10)};_.g.Eoa=function(a){return _.Jj(this,10,a)};_.g.addSelectionValues=function(a,b){return _.Pj(this,10,a,b)};
_.g.Q8a=function(){return _.B(this,11)};_.g.setIntegerValue=function(a){return _.y(this,11,a)};_.g.woa=function(a){return _.Jj(this,12,a)};_.g.addIntegerValues=function(a,b){return _.Pj(this,12,a,b)};_.g.U8a=function(){return _.C(this,_.Gk,15)};_.g.setUserValue=function(a){return _.J(this,15,a)};_.g.TVa=function(){return _.Rj(this,_.Gk,16)};var Asc=function(a,b){_.Mj(a,16,b)};rL.prototype.addUserValues=function(a,b){return _.Tj(this,16,a,_.Gk,b)};rL.prototype.O=function(){return _.B(this,17)};
rL.prototype.setDateStringValue=function(a){return _.y(this,17,a)};rL.prototype.V=function(){return _.P(this,17)};var Bsc=function(a,b){_.Mj(a,13,b)};rL.prototype.getId=function(){return _.B(this,14)};rL.prototype.Ob=function(a){return _.y(this,14,a)};rL.prototype.getName=function(){return _.B(this,1)};rL.prototype.$c=function(a){return _.y(this,1,a)};var Csc=[2],tL=function(a){_.K.call(this,a,-1,Csc)};_.N(tL,_.K);tL.prototype.getName=function(){return _.B(this,1)};
tL.prototype.$c=function(a){return _.y(this,1,a)};tL.prototype.O=function(){return _.Rj(this,rL,2)};var Dsc=function(a,b){_.Mj(a,2,b)};tL.prototype.Ac=function(){return _.B(this,3)};var Esc=function(a,b){return _.y(a,3,b)},Fsc=function(a){_.K.call(this,a)};_.N(Fsc,_.K);Fsc.prototype.O=function(){return _.C(this,_.UC,1)};Fsc.prototype.V=function(){return _.C(this,_.UC,2)};Fsc.prototype.ha=function(){return _.C(this,_.UC,3)};var Gsc=function(a){_.K.call(this,a)};_.N(Gsc,_.K);
Gsc.prototype.V=function(){return _.Q(this,1)};Gsc.prototype.O=function(){return _.Q(this,3)};Gsc.prototype.ha=function(){return _.Q(this,4)};var uL=[[13,19,12,11,10,15,14,9,8,18,17,16]],Hsc=function(a){_.K.call(this,a)};_.N(Hsc,_.K);Hsc.prototype.O=function(){return _.Q(this,1)};Hsc.prototype.V=function(){return _.Q(this,2)};var Isc=function(a){_.K.call(this,a)};_.N(Isc,_.K);Isc.prototype.O=function(){return _.B(this,4)};var Jsc=function(a){_.K.call(this,a)};_.N(Jsc,_.K);
Jsc.prototype.V=function(){return _.B(this,1)};Jsc.prototype.O=function(){return _.B(this,2)};var Ksc=function(a){_.K.call(this,a)};_.N(Ksc,_.K);Ksc.prototype.V=function(){return _.B(this,1)};Ksc.prototype.O=function(){return _.B(this,2)};var Lsc=function(a){_.K.call(this,a)};_.N(Lsc,_.K);var Msc=[1],Nsc=function(a){_.K.call(this,a)};_.N(Nsc,_.K);Nsc.prototype.O=function(){return _.Q(this,1)};Nsc.prototype.V=function(){return _.Q(this,2)};var Osc=function(a){_.K.call(this,a)};_.N(Osc,_.K);_.g=Osc.prototype;
_.g.h9a=function(){return _.Q(this,1)};_.g.i9a=function(){return _.Q(this,2)};_.g.e9a=function(){return _.C(this,Fsc,3)};_.g.j9a=function(){return _.P(this,3)};_.g.g9a=function(){return _.C(this,Fsc,4)};_.g.l9a=function(){return _.P(this,4)};_.g.f9a=function(){return _.B(this,5)};_.g.k9a=function(){return _.P(this,5)};var Psc=function(a){_.K.call(this,a)};_.N(Psc,_.K);_.g=Psc.prototype;_.g.getLabel=function(){return _.B(this,1)};_.g.Lp=function(){return _.P(this,1)};
_.g.Za=function(){return _.B(this,2)};_.g.Jb=function(a){return _.y(this,2,a)};_.g.Ri=function(){return _.Kj(this,2)};_.g.ih=function(){return _.P(this,2)};_.g.Fe=function(){return _.B(this,5)};_.g.Il=function(a){return _.y(this,5,a)};_.g.d9a=function(){return _.P(this,5)};_.g.getCapabilities=function(){return _.C(this,Nsc,3)};_.g.c9a=function(){return _.C(this,Osc,4)};var Qsc=function(a){_.K.call(this,a,-1,Msc)};_.N(Qsc,_.K);Qsc.prototype.O=function(){return _.Rj(this,Psc,1)};
var Rsc=function(a,b){_.Mj(a,1,b)},Ssc=function(a){_.K.call(this,a)};_.N(Ssc,_.K);Ssc.prototype.O=function(){return _.B(this,1)};Ssc.prototype.mW=function(){return _.P(this,1)};Ssc.prototype.getOptions=function(){return _.C(this,Qsc,2)};var Tsc=function(a){_.K.call(this,a)};_.N(Tsc,_.K);Tsc.prototype.mW=function(){return _.P(this,1)};Tsc.prototype.getOptions=function(){return _.C(this,Ksc,2)};var Usc=function(a){_.K.call(this,a)};_.N(Usc,_.K);var Vsc=function(a){_.K.call(this,a)};_.N(Vsc,_.K);
Vsc.prototype.mW=function(){return _.P(this,1)};Vsc.prototype.getOptions=function(){return _.C(this,Usc,2)};var vL=[[3,4,5,6,7,8,9,10,11,12]],Wsc=function(a){_.K.call(this,a,-1,void 0,vL)};_.N(Wsc,_.K);_.g=Wsc.prototype;_.g.Jca=function(a){return _.Sj(this,3,vL[0],a)};_.g.X3a=function(a){return _.Sj(this,4,vL[0],a)};_.g.l3a=function(a){return _.Sj(this,5,vL[0],a)};_.g.k3a=function(a){return _.Sj(this,6,vL[0],a)};_.g.Y2a=function(a){return _.Sj(this,7,vL[0],a)};
_.g.K3a=function(a){return _.Sj(this,8,vL[0],a)};_.g.J3a=function(a){return _.Sj(this,9,vL[0],a)};_.g.b4a=function(a){return _.Sj(this,10,vL[0],a)};_.g.Koa=function(a){return _.Sj(this,11,vL[0],a)};_.g.soa=function(a){return _.Sj(this,12,vL[0],a)};var Xsc=function(a){_.K.call(this,a)};_.N(Xsc,_.K);var Ysc=function(a){_.K.call(this,a)};_.N(Ysc,_.K);Ysc.prototype.O=function(){return _.B(this,1)};Ysc.prototype.mW=function(){return _.P(this,1)};
Ysc.prototype.getOptions=function(){return _.C(this,Xsc,2)};var Zsc=function(a){_.K.call(this,a,-1,void 0,uL)};_.N(Zsc,_.K);_.g=Zsc.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.X8a=function(){return _.B(this,2)};_.g.se=function(){return _.B(this,4)};_.g.W8a=function(){return _.C(this,Gsc,5)};_.g.getCapabilities=function(){return _.C(this,Hsc,6)};_.g.b9a=function(){return _.B(this,7)};_.g.Y2a=function(a){return _.Sj(this,13,uL[0],a)};
_.g.V8a=function(){return _.C(this,Isc,19)};_.g.soa=function(a){return _.Sj(this,19,uL[0],a)};_.g.k3a=function(a){return _.Sj(this,12,uL[0],a)};_.g.l3a=function(a){return _.Sj(this,11,uL[0],a)};_.g.$rb=function(){return _.C(this,Jsc,10)};_.g.Y8a=function(){return _.C(this,Ssc,15)};_.g.J3a=function(a){return _.Sj(this,15,uL[0],a)};_.g.Z8a=function(){return _.C(this,Qsc,14)};_.g.K3a=function(a){return _.Sj(this,14,uL[0],a)};_.g.X3a=function(a){return _.Sj(this,9,uL[0],a)};
_.g.$8a=function(){return _.C(this,Ksc,8)};_.g.Jca=function(a){return _.Sj(this,8,uL[0],a)};_.g.a9a=function(){return _.C(this,Ysc,18)};_.g.Koa=function(a){return _.Sj(this,18,uL[0],a)};_.g.b4a=function(a){return _.Sj(this,17,uL[0],a)};var $sc=[5],atc=function(a){_.K.call(this,a)};_.N(atc,_.K);atc.prototype.ha=function(){return _.Q(this,1)};atc.prototype.O=function(){return _.Q(this,2)};atc.prototype.ka=function(){return _.Q(this,3)};atc.prototype.V=function(){return _.Q(this,4)};
var wL=function(a){_.K.call(this,a,-1,$sc)};_.N(wL,_.K);wL.prototype.getName=function(){return _.B(this,1)};wL.prototype.$c=function(a){return _.y(this,1,a)};wL.prototype.Gm=function(){return _.B(this,2)};var btc=function(a,b){return _.y(a,2,b)};wL.prototype.V=function(){return _.B(this,14)};var ctc=function(a,b){return _.y(a,14,b)};_.g=wL.prototype;_.g.getTitle=function(){return _.B(this,3)};_.g.setTitle=function(a){return _.y(this,3,a)};_.g.Fe=function(){return _.B(this,4)};
_.g.Il=function(a){return _.y(this,4,a)};_.g.m9a=function(){return _.B(this,15)};_.g.Fk=function(){return _.Rj(this,Zsc,5)};var dtc=function(a,b){return _.Mj(a,5,b)},etc=function(a,b){_.J(a,6,b)},ftc=function(a,b){_.J(a,7,b)},gtc=function(a,b){_.J(a,8,b)},htc=function(a,b){return _.y(a,9,b)},itc=function(a,b){return _.y(a,10,b)},jtc=function(a,b){return _.y(a,11,b)};wL.prototype.O=function(){return _.C(this,Gsc,12)};var ktc=function(a,b){_.J(a,12,b)};
wL.prototype.getCapabilities=function(){return _.C(this,atc,13)};var ltc=function(a,b){_.J(a,13,b)};wL.prototype.getCustomer=function(){return _.B(this,16)};mtc=function(a,b){return _.y(a,16,b)};ntc=[3];_.xL=function(a){_.K.call(this,a,-1,ntc)};_.N(_.xL,_.K);_.xL.prototype.getType=function(){return _.B(this,1)};_.xL.prototype.Ac=function(){return _.B(this,2)};_.$K=function(a){_.K.call(this,a)};_.N(_.$K,_.K);_.$K.prototype.getId=function(){return _.B(this,1)};
_.$K.prototype.Ob=function(a){return _.y(this,1,a)};_.$K.prototype.ve=function(){return _.C(this,_.rf,3)};_.otc=function(a){_.K.call(this,a)};_.N(_.otc,_.K);_.otc.prototype.getFeature=function(){return _.B(this,1)};ptc=[1];_.rK=function(a){_.K.call(this,a,-1,ptc)};_.N(_.rK,_.K);qtc=[2,3,8];_.CJ=function(a){_.K.call(this,a,-1,qtc)};_.N(_.CJ,_.K);_.CJ.prototype.getId=function(){return _.B(this,1)};_.CJ.prototype.Ob=function(a){return _.y(this,1,a)};
_.CJ.prototype.ve=function(){return _.C(this,_.rf,4)};_.CJ.prototype.yc=function(){return _.B(this,5)};var rtc=function(a){_.K.call(this,a)};_.N(rtc,_.K);var stc=[1,2,4],ttc=function(a){_.K.call(this,a)};_.N(ttc,_.K);ttc.prototype.getType=function(){return _.B(this,1)};var utc=function(a){var b=new ttc;return _.y(b,1,a)},vtc=function(a,b){return _.J(a,2,b)};ttc.prototype.ny=function(){return _.B(this,3)};ttc.prototype.Ry=function(a){return _.y(this,3,a)};
ttc.prototype.Ki=function(){return _.B(this,4)};ttc.prototype.setPosition=function(a){return _.y(this,4,a)};var wtc=[2],xtc=function(a){_.K.call(this,a,-1,wtc)};_.N(xtc,_.K);xtc.prototype.Bb=function(){return _.B(this,1)};xtc.prototype.Bc=function(a){return _.y(this,1,a)};var ytc=[2],yL=function(a){_.K.call(this,a,-1,ytc)};_.N(yL,_.K);yL.prototype.Bb=function(){return _.B(this,1)};yL.prototype.Bc=function(a){return _.y(this,1,a)};yL.prototype.O=function(){return _.Rj(this,tL,2)};
var ztc=function(a,b){return _.Mj(a,2,b)};yL.prototype.Uj=function(){return _.B(this,3)};var Atc=function(a){_.K.call(this,a)};_.N(Atc,_.K);Atc.prototype.Bb=function(){return _.B(this,1)};Atc.prototype.Bc=function(a){return _.y(this,1,a)};var Btc=function(a,b){return _.J(a,2,b)},Ctc={0:"UNSPECIFIED_FEEDBACK",1:"IMPLICIT_REJECT",2:"NOT_HELPFUL_RIGHT_NOW"},Dtc=function(a){_.K.call(this,a)};_.N(Dtc,_.K);Dtc.prototype.Fe=function(){return _.E(this,1)};Dtc.prototype.Il=function(a){return _.ck(this,1,a)};
Dtc.prototype.getUrl=function(){return _.E(this,2)};_.Etc=function(a){_.K.call(this,a)};_.N(_.Etc,_.K);_.Etc.prototype.getType=function(){return _.yj(this,1,0)};_.Etc.prototype.getContext=function(){return _.C(this,Dtc,2)};Ftc=[1];Gtc=[2,4];_.Htc=function(a){_.K.call(this,a,-1,Gtc)};_.N(_.Htc,_.K);_.Htc.prototype.getLabel=function(){return _.E(this,1)};_.Htc.prototype.getTitle=function(){return _.E(this,3)};_.Htc.prototype.setTitle=function(a){return _.ck(this,3,a)};
_.Itc=function(a){_.K.call(this,a,-1,Ftc)};_.N(_.Itc,_.K);_.Jtc=[[2,3,4]];_.zL=function(a){_.K.call(this,a)};_.N(_.zL,_.K);_.zL.prototype.se=function(){return _.E(this,3)};_.zL.prototype.In=function(a){return _.ck(this,4,a)};_.Ktc=function(a){_.K.call(this,a)};_.N(_.Ktc,_.K);_.Ltc=function(a){_.K.call(this,a,-1,void 0,_.Jtc)};_.N(_.Ltc,_.K);var Mtc=function(a){_.K.call(this,a)};_.N(Mtc,_.K);Ntc=[3,5];_.AL=[[8,9,10,11,12,13,14]];_.Otc=function(a){_.K.call(this,a)};_.N(_.Otc,_.K);
_.Ptc=function(a){_.K.call(this,a,-1,Ntc,_.AL)};_.N(_.Ptc,_.K);_.Ptc.prototype.Bb=function(){return _.yj(this,6,0)};_.Ptc.prototype.Bc=function(a){return _.dk(this,6,a)};var Qtc=function(a){_.K.call(this,a)};_.N(Qtc,_.K);var Rtc=function(a){_.K.call(this,a)};_.N(Rtc,_.K);var Stc=function(a){_.K.call(this,a)};_.N(Stc,_.K);var Ttc=[1],Utc=function(a){_.K.call(this,a,-1,Ttc)};_.N(Utc,_.K);var Vtc=function(a){_.K.call(this,a)};_.N(Vtc,_.K);var Wtc=function(a){_.K.call(this,a)};_.N(Wtc,_.K);Xtc=[7];
_.Ytc=[[1,2,3]];_.Ztc=function(a){_.K.call(this,a)};_.N(_.Ztc,_.K);_.$tc=function(a){_.K.call(this,a)};_.N(_.$tc,_.K);_.auc=function(a){_.K.call(this,a)};_.N(_.auc,_.K);_.buc=function(a){_.K.call(this,a,-1,Xtc,_.Ytc)};_.N(_.buc,_.K);_.cuc=function(a){_.K.call(this,a)};_.N(_.cuc,_.K);_.cuc.prototype.getName=function(){return _.E(this,1)};_.cuc.prototype.$c=function(a){return _.ck(this,1,a)};var duc=function(a){_.K.call(this,a)};_.N(duc,_.K);duc.prototype.getName=function(){return _.E(this,1)};
duc.prototype.$c=function(a){return _.ck(this,1,a)};duc.prototype.getTitle=function(){return _.E(this,2)};duc.prototype.setTitle=function(a){return _.ck(this,2,a)};var euc=[[1,4]],fuc=function(a){_.K.call(this,a,-1,void 0,euc)};_.N(fuc,_.K);fuc.prototype.getUser=function(){return _.C(this,_.Ltc,1)};var guc=[[8,9,10]],huc=function(a){_.K.call(this,a)};_.N(huc,_.K);huc.prototype.getType=function(){return _.yj(this,6,0)};var iuc=function(a){_.K.call(this,a)};_.N(iuc,_.K);
_.juc=function(a){_.K.call(this,a,-1,void 0,guc)};_.N(_.juc,_.K);_.g=_.juc.prototype;_.g.getName=function(){return _.E(this,1)};_.g.$c=function(a){return _.ck(this,1,a)};_.g.getTitle=function(){return _.E(this,2)};_.g.setTitle=function(a){return _.ck(this,2,a)};_.g.Hja=function(){return _.C(this,huc,9)};_.g.CUa=function(){return _.C(this,iuc,10)};_.g.zi=function(){return _.Zj(this,5)};_.g.getMimeType=function(){return _.E(this,6)};_.g.$C=function(){return _.C(this,fuc,7)};
var kuc=function(a){_.K.call(this,a)};_.N(kuc,_.K);var luc=[[8,9,10]],muc=function(a){_.K.call(this,a,-1,void 0,luc)};_.N(muc,_.K);_.g=muc.prototype;_.g.getName=function(){return _.E(this,1)};_.g.$c=function(a){return _.ck(this,1,a)};_.g.getTitle=function(){return _.E(this,2)};_.g.setTitle=function(a){return _.ck(this,2,a)};_.g.Hja=function(){return _.C(this,huc,9)};_.g.CUa=function(){return _.C(this,iuc,10)};nuc=[[1,3]];_.BL=function(a){_.K.call(this,a,-1,void 0,nuc)};_.N(_.BL,_.K);
_.BL.prototype.Sh=function(){return _.C(this,muc,1)};_.ouc=[[1,2,3]];_.puc=function(a){_.K.call(this,a)};_.N(_.puc,_.K);_.quc=function(a){_.K.call(this,a,-1,void 0,_.ouc)};_.N(_.quc,_.K);var ruc=function(a){_.K.call(this,a)};_.N(ruc,_.K);var suc=function(a){_.K.call(this,a)};_.N(suc,_.K);tuc=[2,3];_.uuc=function(a){_.K.call(this,a,-1,tuc)};_.N(_.uuc,_.K);_.uuc.prototype.getType=function(){return _.yj(this,1,0)};_.vuc=function(a){_.K.call(this,a)};_.N(_.vuc,_.K);
_.vuc.prototype.getType=function(){return _.yj(this,1,0)};var wuc=function(a){_.K.call(this,a)};_.N(wuc,_.K);wuc.prototype.getType=function(){return _.yj(this,1,0)};var xuc=function(a){_.K.call(this,a)};_.N(xuc,_.K);_.yuc=function(a){_.K.call(this,a)};_.N(_.yuc,_.K);_.yuc.prototype.O=function(){return _.S(this,1)};var zuc=function(a){_.K.call(this,a)};_.N(zuc,_.K);Auc=[1,2,4];_.Buc=function(a){_.K.call(this,a)};_.N(_.Buc,_.K);Cuc=[1,2];_.Duc=function(a){_.K.call(this,a)};_.N(_.Duc,_.K);
_.Duc.prototype.getParent=function(){return _.C(this,_.BL,1)};_.Duc.prototype.Eg=function(a){return _.J(this,1,a)};_.Euc=function(a){_.K.call(this,a,-1,Cuc)};_.N(_.Euc,_.K);_.Fuc=function(a){_.K.call(this,a,-1,Auc)};_.N(_.Fuc,_.K);_.CL=function(a){_.K.call(this,a)};_.N(_.CL,_.K);_.CL.prototype.getEmail=function(){return _.E(this,1)};_.CL.prototype.getTitle=function(){return _.E(this,2)};_.CL.prototype.setTitle=function(a){return _.ck(this,2,a)};_.DL=[[2,3,4,5]];
_.EL=function(a){_.K.call(this,a,-1,void 0,_.DL)};_.N(_.EL,_.K);_.EL.prototype.wf=function(){return _.yj(this,1,0)};_.EL.prototype.getUser=function(){return _.C(this,_.Ltc,2)};var Guc=function(a){_.K.call(this,a)};_.N(Guc,_.K);Huc=[1,2,3,4];_.Iuc=function(a){_.K.call(this,a,-1,Huc)};_.N(_.Iuc,_.K);_.Juc=function(a){_.K.call(this,a)};_.N(_.Juc,_.K);_.Kuc=function(a){_.K.call(this,a)};_.N(_.Kuc,_.K);_.Luc=function(a){_.K.call(this,a)};_.N(_.Luc,_.K);_.Muc=function(a){_.K.call(this,a)};_.N(_.Muc,_.K);
_.Muc.prototype.getType=function(){return _.yj(this,1,0)};Nuc=[1];_.Ouc=function(a){_.K.call(this,a)};_.N(_.Ouc,_.K);_.Ouc.prototype.getFeature=function(){return _.yj(this,1,0)};_.Puc=function(a){_.K.call(this,a,-1,Nuc)};_.N(_.Puc,_.K);var Quc=function(a){_.K.call(this,a)};_.N(Quc,_.K);var Ruc=function(a){_.K.call(this,a)};_.N(Ruc,_.K);var Suc=function(a){_.K.call(this,a)};_.N(Suc,_.K);Suc.prototype.getType=function(){return _.yj(this,1,0)};_.FL=[[1,2,3,4,5,6,7,8,9,10,11,12,13,18,15,16,19,20,21]];
_.GL=function(a){_.K.call(this,a,-1,void 0,_.FL)};_.N(_.GL,_.K);_.GL.prototype.Sz=function(){return _.C(this,Suc,10)};_.Tuc=function(a){_.K.call(this,a)};_.N(_.Tuc,_.K);var Uuc=function(a){_.K.call(this,a)};_.N(Uuc,_.K);_.Vuc=function(a){_.K.call(this,a)};_.N(_.Vuc,_.K);_.Wuc=function(a){_.K.call(this,a)};_.N(_.Wuc,_.K);_.Wuc.prototype.getType=function(){return _.yj(this,1,0)};_.Xuc=[[1,2,3,4,5]];_.Yuc=function(a){_.K.call(this,a,-1,void 0,_.Xuc)};_.N(_.Yuc,_.K);
_.Yuc.prototype.getUser=function(){return _.C(this,_.Ltc,1)};var Zuc=function(a){_.K.call(this,a)};_.N(Zuc,_.K);Zuc.prototype.getType=function(){return _.yj(this,2,0)};Zuc.prototype.zh=function(){return _.E(this,1)};_.$uc=function(a){_.K.call(this,a)};_.N(_.$uc,_.K);_.g=_.$uc.prototype;_.g.getName=function(){return _.E(this,1)};_.g.$c=function(a){return _.ck(this,1,a)};_.g.getTitle=function(){return _.E(this,2)};_.g.setTitle=function(a){return _.ck(this,2,a)};
_.g.Na=function(){return _.C(this,_.juc,3)};_.avc=function(a){_.K.call(this,a)};_.N(_.avc,_.K);_.avc.prototype.getParent=function(){return _.C(this,_.juc,4)};_.avc.prototype.Eg=function(a){return _.J(this,4,a)};_.bvc=[[1,5,3]];_.cvc=function(a){_.K.call(this,a,-1,void 0,_.bvc)};_.N(_.cvc,_.K);_.cvc.prototype.Sh=function(){return _.C(this,_.juc,1)};dvc=function(a,b){return new _.bec(_.cec.bound(a,b,void 0,void 0))};
evc=function(){var a=new _.Uh,b=_.oec().deleteDatabase("GoogleDriveDs");b.onsuccess=function(){a.callback()};b.onerror=function(c){a.Hd(_.rI(c.target,"deleting database GoogleDriveDs"))};b.onblocked=function(){};return a};_.fvc=function(a){_.K.call(this,a)};_.N(_.fvc,_.K);_.fvc.prototype.Cp=function(){return _.B(this,1)};_.fvc.prototype.Ld=function(){return _.B(this,2)};_.fvc.prototype.setSize=function(a){return _.y(this,2,a)};_.fvc.prototype.getUrl=function(){return _.B(this,3)};
_.gvc=function(a){_.K.call(this,a)};_.N(_.gvc,_.K);_.gvc.prototype.getType=function(){return _.B(this,1)};hvc=[2,3];_.ivc=function(a){_.K.call(this,a,-1,hvc)};_.N(_.ivc,_.K);jvc=[4,5,6,17,18,24];_.HL=function(a){_.K.call(this,a,-1,jvc)};_.N(_.HL,_.K);_.HL.prototype.getId=function(){return _.B(this,1)};_.HL.prototype.Ob=function(a){return _.y(this,1,a)};_.HL.prototype.getName=function(){return _.B(this,2)};_.HL.prototype.$c=function(a){return _.y(this,2,a)};
var kvc=function(a,b){return _.Jj(a,4,b)},lvc=function(a,b){return _.Jj(a,5,b)};_.HL.prototype.MQ=function(){return _.B(this,8)};_.HL.prototype.getType=function(){return _.B(this,23)};var Foc=function(a){_.K.call(this,a)};_.N(Foc,_.K);var mvc=[3],IL=function(a){_.K.call(this,a,-1,mvc)};_.N(IL,_.K);IL.prototype.fq=function(){return _.B(this,1)};var nvc=function(a,b){return _.y(a,1,b)};IL.prototype.getTitle=function(){return _.B(this,2)};IL.prototype.setTitle=function(a){return _.y(this,2,a)};
IL.prototype.xd=function(){return _.Rj(this,_.cl,3)};var ovc=function(a,b){return _.Mj(a,3,b)};IL.prototype.mh=function(a,b){return _.Tj(this,3,a,_.cl,b)};IL.prototype.V=function(){return _.B(this,4)};var pvc=function(a,b){return _.y(a,4,b)};IL.prototype.O=function(){return _.C(this,_.Jk,5)};var qvc=function(a,b){return _.J(a,5,b)},rvc=[2],JL=function(a){_.K.call(this,a,-1,rvc)};_.N(JL,_.K);JL.prototype.Bb=function(){return _.B(this,1)};JL.prototype.Bc=function(a){return _.y(this,1,a)};
JL.prototype.kl=function(){return _.Rj(this,IL,2)};var svc=function(a,b){return _.Mj(a,2,b)};JL.prototype.Wf=function(){return _.B(this,4)};tvc=function(a,b){return _.y(a,4,b)};_.wK=function(a){_.K.call(this,a)};_.N(_.wK,_.K);_.g=_.wK.prototype;_.g.Bb=function(){return _.B(this,1)};_.g.Bc=function(a){return _.y(this,1,a)};_.g.KT=function(){return _.Aj(this,2,void 0,_.jG)};_.g.Uj=function(){return _.B(this,3)};_.g.Ye=function(){return _.B(this,5)};_.g.Ei=function(a){return _.y(this,5,a)};
var uvc=[1],aL=[[1,2,3,4,5,6,7]],joc=function(a){_.K.call(this,a,-1,void 0,aL)};_.N(joc,_.K);var koc=function(a){_.K.call(this,a,-1,uvc)};_.N(koc,_.K);var KL=function(a){_.K.call(this,a)};_.N(KL,_.K);KL.prototype.getQuery=function(){return _.C(this,_.ef,1,1)};var vvc=function(a,b){return _.J(a,1,b)};KL.prototype.Vn=function(){return _.B(this,4)};var wvc=function(a,b){return _.J(a,5,b)},xvc=[1,2,5,7,9,10,12,14],LL=function(a){_.K.call(this,a,-1,xvc)};_.N(LL,_.K);
LL.prototype.xd=function(){return _.Rj(this,_.cl,1)};var yvc=function(a,b){return _.Mj(a,1,b)};LL.prototype.mh=function(a,b){return _.Tj(this,1,a,_.cl,b)};LL.prototype.Yga=function(a){_.Tj(this,2,a,_.Gk,void 0)};var zvc=function(a,b){return _.y(a,3,b)};LL.prototype.Wn=function(){return _.B(this,4)};LL.prototype.yu=function(a){return _.y(this,4,a)};var Avc=function(a,b){return _.Mj(a,5,b)};LL.prototype.gv=function(){return _.Q(this,6)};var Bvc=function(a,b){return _.y(a,6,b)};
LL.prototype.vf=function(){return _.C(this,_.xB,8)};var Cvc=function(a,b){return _.Jj(a,12,b)};LL.prototype.Un=function(){return _.yj(this,13,0)};var Dvc=function(a,b){return _.y(a,13,b)},Evc={PTb:0,OTb:1,CZb:2,N4b:3,Q4b:4},ZK=[[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]],hoc=function(a){_.K.call(this,a,-1,void 0,ZK)};_.N(hoc,_.K);var ooc=[[1,2]],noc=function(a){_.K.call(this,a,-1,void 0,ooc)};_.N(noc,_.K);var roc=[[1,2,3]],qoc=function(a){_.K.call(this,a,-1,void 0,roc)};_.N(qoc,_.K);
_.ML=function(a){_.K.call(this,a)};_.N(_.ML,_.K);_.ML.prototype.qY=function(a){_.J(this,1,a)};_.ML.prototype.av=function(){return _.C(this,_.Xx,2)};_.ML.prototype.JO=function(a){_.J(this,2,a)};Fvc=[[5,6]];_.Gvc=function(a){_.K.call(this,a,-1,void 0,Fvc)};_.N(_.Gvc,_.K);_.Gvc.prototype.Ph=function(){return _.C(this,Zuc,2)};_.Gvc.prototype.O=function(a){_.Sj(this,5,Fvc[0],a)};Hvc=[3,4,5];Ivc=[[6,7]];_.Jvc=function(a){_.K.call(this,a,-1,Hvc,Ivc)};_.N(_.Jvc,_.K);
_.Jvc.prototype.O=function(a){_.Sj(this,6,Ivc[0],a)};var Kvc=[1],Lvc=function(a){_.K.call(this,a,-1,Kvc)};_.N(Lvc,_.K);Lvc.prototype.my=function(){return _.E(this,2)};var Mvc=function(a,b){return 1<a?2===b:a===b},Nvc=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("Se");},NL=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=NL.prototype;
_.g.clone=function(){return new NL(this.item.clone(),this.count,this.V,this.O,this.H)};_.g.getId=function(){return this.item.getId()};_.g.$b=function(){return this.count};_.g.getItem=function(){return this.item};_.g.setItem=function(a){this.item=a;return this};_.g.Ty=function(a){this.V=a};_.g.equals=function(a){return this.count===a.$b()&&this.V===a.V&&this.O===a.O&&this.H===a.H&&_.Vj(this.item,a.getItem())};Ovc=function(a,b){a.H=b;return a};
_.xK=function(a,b,c){this.response=a;this.Le=void 0===b?0:b;this.N_=void 0===c?null:c};_.Ogc=function(a){this.H=a;this.type=1};Pvc=function(){};Qvc=function(a){this.H=a};_.Pgc=function(a){this.H=a;this.type=0};Qoc=function(a,b,c,d,e,f,h,k){this.status=a;this.O=b;this.V=c;this.ka=d;this.ha=e;this.gA=f;this.H=h;this.W=k};_.zK=function(a,b,c){this.response=a;this.Le=void 0===b?0:b;this.N_=void 0===c?null:c};_.Wgc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};
_.Zgc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.AK=function(a,b,c){this.response=a;this.Le=void 0===b?0:b;this.N_=void 0===c?null:c};_.BK=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Le=void 0===d?0:d};_.yK=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Le=void 0===d?0:d};Rvc=function(a){_.yK.call(this,a,void 0,void 0,void 0);this.V2a=new _.An};_.N(Rvc,_.yK);
var Svc=function(a,b){this.response=a;this.pageToken=void 0===b?"":b},Tvc=function(a){return[].concat(_.ld(new Set(a.map(function(b){return _.pfc.get(b)}).filter(function(b){return b})))).join(",")},OL=function(a,b,c){b=void 0===b?[]:b;c=void 0===c?!1:c;b=[].concat(_.ld(b));b=Tvc(b);var d=_.yI(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":
_.S(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";_.S(a,77,!1)&&(c+=",canChangeCategoryReferences");
_.S(a,93,!1)&&(c+=",canRemoveSecureLinkUpdateForAllFiles",d+=",removeSecureLinkUpdateForAllFiles");return(b.length?d+","+b:d)+",capabilities("+c+")"},Uvc=function(a,b){b=void 0===b?[]:b;return"kind,nextPageToken,items("+OL(a,b,!1)+")"},PL=function(a){return a instanceof _.cl?null!=a.getId()&&a.getId()==a.yc():null!=a.Ac()&&a.Ac()==a.yc()},Vvc=function(a,b,c){c=void 0===c?[]:c;var d=a.clone(),e=b.wg();null!=e&&Bnc(a,e.clone());if((e=b.getCapabilities())&&null!=_.Q(e,13)){var f=a.getCapabilities()||
new _.Xk,h=_.Q(e,13);_.y(f,13,h);_.ZJ(a,f)}e&&null!=_.Q(e,18)&&(f=a.getCapabilities()||new _.Xk,e=_.Q(e,18),_.y(f,18,e),_.ZJ(a,f));WK(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.wg()&&WK(a,d,c)},Wvc=function(a,b,c){c=void 0===c?[]:c;if(!b||!PL(a)&&!PL(b))return a;if(2==a.gv()){c=_.B(a,82);var d=b.clone();Vvc(d,a);_.$hc(d,b.gv());_.MI(d,c);return d}a=a.clone();Vvc(a,b,c);return a},Xvc=function(a){return(a=a?a.wg():null)&&_.Q(a,7)||!1},
Yvc=function(a,b){this.V=a;this.items={};this.fields=new Set;this.H={};this.O=new Set;this.W=new Set(b)},Zvc=function(a,b,c,d){d.length&&(new Set(d.filter(function(e){return!a.W.has(e)&&!c.has(e)}))).forEach(function(e){a.log("Creating field cache for field: "+e);c.add(e);b[e]={}})},awc=function(a,b,c){b.every(function(d){return PL(d)})?$vc(b,c,a.H,a.O):b.every(function(d){return!PL(d)})&&$vc(b,c,a.items,a.fields)},$vc=function(a,b,c,d){b=_.Bgc(b,[].concat(_.ld(d)));if(0!==b.length)for(a=_.m(a),d=
a.next();!d.done;d=a.next()){d=d.value;var e=d.Hf();e=e?_.Ud(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&&WK(d,k,[h]);e&&(k=c[h][e.getId()])&&WK(e,k,[h])}}};Yvc.prototype.update=function(a,b,c){b&&PL(b)?bwc(a,b,this.H,this.O,c):bwc(a,b,this.items,this.fields,c)};Yvc.prototype.rJ=function(a){var b=this;_.La(this.items,function(c,d){_.Ua(b.items[d],a)});_.La(this.H,function(c,d){_.Ua(b.H[d],a)})};
var bwc=function(a,b,c,d,e){_.La(c,function(f,h){h=Number(h);if(e.includes(h)&&(f[a]&&!b?_.Ua(f,a):b&&ync(b,[h])&&(f[a]=cwc(b,h)),b)){var k=b.Hf();(k=k?_.Ud(k):null)&&ync(k,[h])&&(f[k.getId()]=cwc(k,h))}});b&&unc(b,[].concat(_.ld(d)))},cwc=function(a,b){var c=new _.cl;c.Ob(a.getId());WK(c,a,[b]);return c};Yvc.prototype.clear=function(){var a=this;_.La(this.items,function(b,c){a.items[c]={}});_.La(this.H,function(b,c){a.H[c]={}})};
Yvc.prototype.log=function(a){this.V.info("drive.ds.sync.cache.FieldsCache",a)};var dwc=function(a,b,c){var d=this;this.pt=b;this.uv=c;this.Jd=new Map;this.rootId="";a.addCallback(function(e){d.rootId=e})};_.g=dwc.prototype;_.g.iy=function(){return this.Jd};_.g.Wj=function(a){var b=new Map;a=_.m(a.hn());for(var c=a.next();!c.done;c=a.next())c=c.value,this.Jd.has(c)&&b.set(c,this.Jd.get(c).getItem());return b};
_.g.query=function(a,b){var c=[];if(ewc(a)){for(var d=_.m(this.Jd.values()),e=d.next();!e.done;e=d.next())e=e.value,QL(this.pt,a,e.getItem())&&(void 0===b||Mvc(e.V,b))&&c.push(e);this.uv.sort(a,c)}return c};_.g.get=function(a){return this.Jd.get(a)||null};_.g.getAll=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())(c=this.Jd.get(c.value))&&b.push(c);return b};
_.g.update=function(a){a.H?(a.H.count++,a.O&&a.O.count--,fwc(this,a.H)?(this.Jd.delete(a.id),a.H.count--):this.Jd.set(a.id,a.H)):(this.Jd.delete(a.id),a.O.count--)};var fwc=function(a,b){return 1<b.$b()||Mvc(b.V,2)||b.getItem().HI()||Vnc(b.getItem())?!1:"root"!==b.getId()&&b.getId()!==a.rootId};dwc.prototype.rJ=function(){for(var a=_.m(this.Jd.values()),b=a.next();!b.done;b=a.next())b=b.value,fwc(this,b)&&(this.Jd.delete(b.getId()),b.count--)};
var gwc=function(a,b,c,d){this.Ng=a;this.W=b;this.O=c;this.V=d},Goc=function(a,b){return(b=a.O.get(b))?(b=b.clone(),awc(a.V,[b.getItem()],Jrc(a.Ng)),b):null};gwc.prototype.H=function(a){return(a=Goc(this,a))?a.getItem():null};var hwc=function(a,b){var c={};b.forEach(function(d){var e=Goc(a,d);e&&(c[d]=e)});return c},iwc=function(a,b){return _.Na(hwc(a,b),function(c){return c.getItem()})},jwc=function(a,b){b=RL(a.W,b);return a.O.query(b).map(function(c){return c.clone()})};
gwc.prototype.query=function(a){return jwc(this,a).map(function(b){return b.getItem()})};gwc.prototype.Ld=function(){return this.O.iy().size};
var kwc=function(a){var b=new Set;a=_.m(a.O.iy().values());for(var c=a.next();!c.done;c=a.next()){c=c.value.getItem();for(var d=_.m(_.dl(c)),e=d.next();!e.done;e=d.next())e=e.value,b.add(e.getId()||UK(e));(d=c.om())&&b.add(d.getId()||UK(d));(d=c.Ot())&&b.add(d.getId()||UK(d));(d=c.Cq())&&b.add(d.getId()||UK(d));(c=c.hD())&&b.add(c.getId()||UK(c))}return b.size},lwc=function(a){var b=new _.To;_.qK(b,"hidden",_.Q(a,4));a=_.Q(a,6);null!=a&&_.qK(b,"canRemoveSecureLinkUpdateForAllFiles",a);return b.toString()},
mwc=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}},nwc=function(a){var b=_.Ecc(),c={};b&&(c.numeric=b);this.H=_.Fcc(a,c)};nwc.prototype.compare=function(a,b,c){b=owc(b);c=owc(c);a=a.wc();var d=mwc(a);if(a&&d){d=pwc(this,a);var e=4===a.getType()?this.H:_.Ea;return qwc(a,d,e,b,c)}return _.Ea(b.getId(),c.getId())};
nwc.prototype.sort=function(a,b,c){a=a.wc();var d=mwc(a);a&&d&&(d=pwc(this,a),d=rwc(b,d),_.Ga(b,swc(this,a,d)));c&&0<c&&_.Aa(b,c,b.length-c)};
var owc=function(a){return a instanceof _.cl?a:a.getItem()},pwc=function(a,b){b=mwc(b);return _.u(a.O,a,b,_.Ea)},rwc=function(a,b){var c={};a.forEach(function(d){d=owc(d);var e=d.getId();c[e]=b(d)});return c},swc=function(a,b,c){return function(d,e){var f=4===b.getType()?a.H:_.Ea;d=owc(d);e=owc(e);return qwc(b,function(h){return c[h.getId()]},f,d,e)}},qwc=function(a,b,c,d,e){var f=1===a.sf()?1:-1;if(_.Q(a,3)){a=YK(d,!0);var h=YK(e,!0);a=a===h?0:a?-1:1}else a=0;return a||f*(c(b(d),b(e))||_.Ea(d.getId(),
e.getId()))};nwc.prototype.O=function(a,b,c){for(var d=twc(a[0],c),e=1;e<a.length;e++){var f=twc(a[e],c);d=1===b(f,d)?f:d}return d};
var twc=function(a,b){switch(a){case 21:return b.getId()||"";case 3:return b.getMimeType()||"";case 4:return b.VA()||!1;case 12:return b.gz()||0;case 11:return b.hB()||0;case 10:return b.tq()||0;case 2:return(b.getTitle()||"").toLowerCase();case 25:return b.qy()||0;case 57:return _.B(b,62)||0;case 32:return b.Lu()||0;case 9:return b.SC()||0;case 67:return b.NJ()||0;case 98:return b.Xv()||0;default:return""}},uwc=function(a,b){this.fields=a;this.rootId="";this.fields.sort();this.H=b;this.jr=_.SI(_.tI(b));
a=_.II(b);this.V=!(!a||!_.S(a,1,!1));this.O=!(!a||!_.S(a,8,!1))};uwc.prototype.yu=function(a){this.rootId=a||""};
var RL=function(a,b,c){b=b.clone();"root"===b.getId()&&b.Ob(a.rootId);_.Fl(b).filter(function(d){return"root"===d.Za()}).forEach(function(d){return d.Jb(a.rootId)});_.lf(b,_.El(b).map(function(d){d.Jb(d.Za().toLowerCase());return d}));c&&_.Dl(b,a.fields);b.O().sort();return b},pL=function(a,b,c){if(b instanceof _.ef){b=RL(a,b);var d=_.yjc(b)}else if(b instanceof _.tA)d=b.hn().sort().join(","),_.S(b,5,!1)&&(d+="|cachedOnly");else{if(b instanceof _.mI)return d=lwc(b),d+"|tdList";if(b instanceof _.iG)return d=
b.hn().sort().join(","),b.O().length&&(d+="|"+Tvc(b.O())),d+"|tdMap";throw Error("We");}return 3===c?d:d+"|"+vwc(a,b.O(),2===c)},vwc=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(_.ld(e)).filter(function(h){return f.has(h)}).forEach(function(h){e.delete(h);f.delete(h)});f.size&&(d=d+" - "+_.WI({fields:[].concat(_.ld(f)),jr:a.jr}));e.size&&(d=d+" + "+_.WI({fields:[].concat(_.ld(e)),jr:a.jr}));
return d};uwc.prototype.equals=function(a,b,c){var d;c&&(d=3);return pL(this,a,d)===pL(this,b,d)};
var rsc=function(a){if(!a.hn().every(function(b){return!_.ee(b)}))throw new _.nc("Invalid ids for FindByIdsRequest");},xwc=function(a,b,c){if(_.sJ(b))throw new _.nc("Did not expect a PeoplePredict request. Use peoplePredictQuery() for PeoplePredict requests. ");wwc(a,b,c)},wwc=function(a,b,c){var d;a.O||(d=_.TI(3));if(b.getId())throw new _.nc("Use findByIds() for find by id queries.",d?d:_.TI(3));if(!b.xi()||0>=b.xi())throw new _.nc("A positive limit is required on an ItemQueryRequest.",d?d:_.TI(3));
_.Qd(b,33);a.V&&c||(d=a.fields.slice(),c&&(d=d.concat(c)),ywc(a,d,b.O()));if(c=(c=b.wc())&&mwc(c))d=b.O().length?b.O():a.fields,ywc(a,d,c);if(_.rJ(b)){if(a.jr)throw new _.nc("User must be authenticated for a Quick Access request.");if(!zwc(a)&&20<b.xi())throw new _.nc("Limit must be in the range [1, 20].");c=2===_.bK(b);d=_.Qd(b,33).length;if(c&&1!==d||d&&!c)throw new _.nc("A Team Drive Quick Access request must specify the Team Drive corpora and a single Team Drive id.");c=_.Nj(_.Kj(_.Kj(_.Kj(_.Kj(_.aI(_.Kj(_.Lj(_.aI(b.clone(),
1),30),32),33),45),47),74),48),6);d=new _.ef;if(!_.Vj(c,d))throw new _.nc("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: "+dsc(d,c));}else if(_.S(b,74,!1))throw new _.nc("If is_quick_access_for_shared_files_request is set to true, is_quick_access_request must also be true.");if(_.tJ(b)){if(a.jr)throw new _.nc("User must be authenticated for a DrivePriority request.");if(2===
_.bK(b))throw new _.nc("Team Drive corpora is not valid for a Drive Priority request.");a=_.Kj(_.Kj(_.Kj(_.Lj(_.aI(b.clone(),1),30),32),45),52);b=new _.ef;if(!_.Vj(a,b))throw new _.nc("Some fields specified are not valid for a Drive Priority request. Valid: field, request_descriptor, limit, corpora and is_drive_priority_request. Extra: "+dsc(b,a));}},Awc=function(a,b,c){if(!_.sJ(b))throw new _.nc("Expected a PeoplePredict request.");wwc(a,b,c);if(a.jr)throw new _.nc("User must be authenticated for a People Predict request.");
if(2===_.bK(b))throw new _.nc("Team Drive corpora is not valid for a People Predict request.");a=_.Kj(_.Kj(_.Kj(_.Lj(_.aI(b.clone(),1),30),32),45),49);b=new _.ef;if(!_.Vj(a,b))throw new _.nc("Some fields specified are not valid for a People Predict request. Valid: field, request_descriptor, limit, corpora and is_people_predict_request. Extra: "+dsc(b,a));},ywc=function(a,b,c){var d;a.O||(d=_.TI(3));if(!znc(b,c,_.zgc)){var e=_.WI({fields:c,jr:a.jr}),f=_.WI({fields:b,jr:a.jr});a=_.WI({fields:Anc(c,
b),jr:a.jr});throw new _.nc("Requested field was not previously specified. Needed "+e+", but had "+(f+". Missing: "+a+"."),d?d:_.TI(3));}},zwc=function(a){return 200<=_.fK(a.H)&&300>_.fK(a.H)},Bwc=function(a){var b=new Set;a=_.m(_.El(a));for(var c=a.next();!c.done;c=a.next())switch(_.xOa(c.value.Za())){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(_.ld(b))},Cwc=function(a){switch(_.fK(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"}},Dwc=function(a){_.O.call(this);this.H=a};_.Of(Dwc,_.O);_.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.wO=function(a){this.H.addCallback(function(b){b.wO(a)})};_.g.send=function(a,b){this.H.addCallback(function(c){c.send(a,b)})};_.g.Ya=function(){this.cancel();Dwc.wb.Ya.call(this)};
var boc=function(a){_.Qy.call(this);this.H=a;this.V=_.ye(this.H,"message",this.Znb,!1,this)};_.Of(boc,_.Qy);_.g=boc.prototype;_.g.Ad=null;_.g.send=function(a,b){var c=[];b=this.eya(c,b);a={serviceName:a,payload:b,"--goog.messaging.PortChannel":!0};_.wfc&&(a=(0,_.vi)(a));this.H.postMessage(a,c)};
_.g.Znb=function(a){a=a.Be;var b=a.data;if(_.wfc)try{b=JSON.parse(b)}catch(e){return}if(_.Ba(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.vBa(a.ports||[],b),d.kEa),null!=b&&d.callback(b))}};
_.g.eya=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,_.u)(this.eya,this,a)):b&&b.constructor==Object?_.Na(b,function(c,d){c=this.eya(a,c);return"_port"==d?{type:"escaped",val:c}:c},this):b};
_.g.vBa=function(a,b){return Array.isArray(b)?b.map((0,_.u)(this.vBa,this,a)):b&&b.constructor==Object?b._port&&"real"==b._port.type?a[b._port.index]:_.Na(b,function(c,d){return this.vBa(a,"_port"==d?c.val:c)},this):b};_.g.Ya=function(){_.ni(this.V);"[object MessagePort]"==Object.prototype.toString.call(this.H)?this.H.close():"[object Worker]"==Object.prototype.toString.call(this.H)&&this.H.terminate();delete this.H;boc.wb.Ya.call(this)};
var eoc=function(a,b){if("*"==b)return new Dwc(_.ai(Error("Xe")));var c=new _.ri(50),d=_.Ab(_.aa,c),e=new _.Uh(d);_.Wh(e,d);c.start();_.ye(c,"tick",function(){var f=new MessageChannel,h=function(){f.port1.removeEventListener("message",h,!0);c.isDisposed()||e.callback(new boc(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){_.O.call(this);this.H=new _.Idc(a);this.V={};this.O=_.Kdc(this.H,
"private");this.W=_.Kdc(this.H,"public");this.O.registerService("mics",(0,_.u)(this.rlb,this),!0)};_.Of(Ewc,_.O);_.g=Ewc.prototype;_.g.wEb=0;_.g.Ya=function(){_.aa(this.H);delete this.H;delete this.W;delete this.O};_.g.send=function(a,b,c){var d=this.wEb++;this.V[d]=c;c={signature:d};c.data=b;this.W.send(a,c)};_.g.rlb=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,_.u)(this.qlb,this,b),!0)};
_.g.qlb=function(a,b){a=a(b.data);var c=b.signature;_.Oh(a).then((0,_.u)(function(d){var e={};e.data=d;e.signature=c;this.O&&this.O.send("mics",e)},this))};var Fwc=function(a,b){_.O.call(this);this.W=b;this.started=!1;this.H=new _.Idc(a);this.Ma(this.H);this.O=new Ewc(_.Kdc(this.H,"direct"));this.Ma(this.O)};_.N(Fwc,_.O);Fwc.prototype.registerService=function(a,b){this.O.registerService(a,b)};Fwc.prototype.send=function(a,b,c){this.O.send(a,b||{},function(d){return(c||_.Kf)(d)})};
var doc=function(a,b){Fwc.call(this,a,b);this.V=new Ewc(_.Kdc(this.H,"passthrough"));this.Ma(this.V)};_.N(doc,Fwc);var SL=function(a,b,c){a.V.registerService(b,function(d){return c(d)})},TL=function(a,b,c,d){a.V.send(b,c||{},d||_.Kf)};doc.prototype.start=function(){this.started||(this.started=!0)};var Znc=[],Gwc=function(){_.Qy.call(this);this.H=null};_.N(Gwc,_.Qy);Gwc.prototype.send=function(a,b){_.k8a(this.H,a,b)};
var foc=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)&&Ync(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)&&Ync(a.data);return{d:a.data,err:a.error&&b?a.error.Kc():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 _.mc(JSON.parse(a.err)):c;a=new Kwc(c?void 0:a.d,c,a.uid);c||(a.H=b);return a},Xnc=function(a,b){this.H=a;this.GD=b};Xnc.prototype.get=function(){for(var a={},b=0;b<this.H.length;b++)a[this.H[b]]=this.GD[b];return a};
Xnc.prototype.Kc=function(){for(var a={},b={},c=0;c<this.GD.length;c++){var d=this.GD[c],e=this.H[c];d instanceof Error?b[e]=_.GI(d).Kc():a[e]=d.Kc()}return{r:a,e:b}};Nwc=function(a,b){if(b){var c=[],d=[];_.La(a.r,function(e,f){c.push(f);d.push(new _.MJ(JSON.parse(e)))});_.La(a.e,function(e,f){c.push(f);e=new _.mc(JSON.parse(e));d.push(_.UI(e))});return new Xnc(c,d)}return a};coc=function(a,b,c,d,e){this.channel=a;this.H=b;this.endpoint=c;this.V=d;this.O=e};
Owc={ySb:0,USb:1,OYb:3,e6b:5,Chb:6,0:"ACCOUNT",1:"APPS",3:"ITEMS",5:"USER_PREFS",6:"PEOPLE"};_.dJ=function(a){_.K.call(this,a)};_.N(_.dJ,_.K);_.dJ.prototype.zh=function(){return _.B(this,1)};_.dJ.prototype.ve=function(){return _.C(this,_.rf,3)};_.gJ=function(a){_.K.call(this,a)};_.N(_.gJ,_.K);_.gJ.prototype.Ac=function(){return _.B(this,1)};_.gJ.prototype.ve=function(){return _.C(this,_.rf,3)};_.oJ=function(a){_.K.call(this,a)};_.N(_.oJ,_.K);_.oJ.prototype.zh=function(){return _.B(this,1)};
_.oJ.prototype.ve=function(){return _.C(this,_.rf,2)};_.pJ=function(a){_.K.call(this,a)};_.N(_.pJ,_.K);_.pJ.prototype.zh=function(){return _.B(this,1)};_.pJ.prototype.ve=function(){return _.C(this,_.rf,2)};_.qJ=function(a){_.K.call(this,a)};_.N(_.qJ,_.K);_.g=_.qJ.prototype;_.g.Ac=function(){return _.B(this,1)};_.g.wf=function(){return _.B(this,2)};_.g.getType=function(){return _.B(this,3)};_.g.Za=function(){return _.B(this,4)};_.g.Jb=function(a){return _.y(this,4,a)};
_.g.Ri=function(){return _.Kj(this,4)};_.g.ih=function(){return _.P(this,4)};_.g.ve=function(){return _.C(this,_.rf,7)};_.xJ=function(a){_.K.call(this,a)};_.N(_.xJ,_.K);_.xJ.prototype.Ac=function(){return _.B(this,1)};_.xJ.prototype.ve=function(){return _.C(this,_.rf,2)};_.xJ.prototype.xi=function(){return _.Zj(this,3,1E3)};_.xJ.prototype.ri=function(a){return _.y(this,3,a)};_.AJ=function(a){_.K.call(this,a)};_.N(_.AJ,_.K);_.AJ.prototype.ve=function(){return _.C(this,_.rf,1)};
var Pwc=function(){var a=new _.AJ,b=_.sf(new _.rf,301);return _.J(a,1,b)};_.AJ.prototype.yc=function(){return _.B(this,3)};_.Xgc=function(a){_.K.call(this,a)};_.N(_.Xgc,_.K);_.Xgc.prototype.yc=function(){return _.B(this,1)};_.EJ=function(a){_.K.call(this,a)};_.N(_.EJ,_.K);_.EJ.prototype.zh=function(){return _.B(this,1)};_.EJ.prototype.ve=function(){return _.C(this,_.rf,4)};var Qwc=function(a){_.K.call(this,a)};_.N(Qwc,_.K);Rwc=function(a,b){return _.y(a,1,b)};_.eJ=function(a){_.K.call(this,a)};
_.N(_.eJ,_.K);_.eJ.prototype.getId=function(){return _.B(this,1)};_.eJ.prototype.Ob=function(a){return _.y(this,1,a)};_.uJ=function(a){_.K.call(this,a)};_.N(_.uJ,_.K);_.uJ.prototype.getId=function(){return _.B(this,1)};_.uJ.prototype.Ob=function(a){return _.y(this,1,a)};_.Kgc=function(a){_.K.call(this,a)};_.N(_.Kgc,_.K);var Swc=function(a,b,c){_.qi.call(this);this.Ba=a;this.ma=b;this.O=!0;this.ha=this.H=this.timeout=this.W=null;this.V=!1;this.ka=c};_.N(Swc,_.qi);Swc.prototype.xB=function(){return this.O};
Swc.prototype.hQ=function(){var a=this;if(this.W)return this.W;var b=_.Sh();this.W=b.promise;_.n.setTimeout(function(){a.W=null},5E3);Twc(this,b);return b.promise};Swc.prototype.ta=function(){!0===this.O&&(this.log("Became unauthenticated."),this.O=!1,this.V=!0,Uwc(this))};Swc.prototype.va=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 wsc("nb")))};
var Vwc=function(a,b){a.ha=b},Uwc=function(a){a.H||(a.H=new _.skc(5E3),a.timeout=_.n.setTimeout(function(){return Wwc(a)},a.H.Za()))},Wwc=function(a){Twc(a);a.H&&(_.WH(a.H),a.timeout=_.n.setTimeout(function(){return Wwc(a)},a.H.Za()))},Twc=function(a,b){var c=_.Oh();a.ha&&(c=a.ha());c.then(function(){return Xwc(a,b)})},Xwc=function(a,b){a.log("Checking authentication state.");var c=a.Ba.then(function(d){return d.Re(new _.Ygc)});b?c.then(function(){b.resolve(Rwc(new Qwc,1))},function(d){var e=_.yB(d).Rg;
d=0;_.Jfc(e)?(a.log("Checked authentication state: unauthenticated."),d=2):(a.log("Checked authentication state: error occurred."),_.gq(e),_.y(e,21,"Checked authentication state: error occurred."),a.ka(e));e=new Qwc;Rwc(e,d);b.resolve(e)}):c.then(null,function(d){d=_.yB(d);_.Jfc(d.Rg)&&a.V&&(a.dispatchEvent(new wsc("ob")),a.V=!1)})};Swc.prototype.log=function(a){this.ma.info("drive.ds.sync.auth.StateManager",a)};
var Ywc=function(a){return _.C(a,_.zI,3)||_.C(a,_.KJ,4)||_.C(a,_.EK,5)||_.C(a,_.HJ,6)||_.C(a,_.iJ,7)||_.C(a,_.bJ,8)||_.C(a,_.fJ,9)||_.C(a,_.JI,10)},Zwc=function(a){_.K.call(this,a)};_.N(Zwc,_.K);_.g=Zwc.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.Oz=function(){return _.B(this,3)};_.g.Ke=function(){return _.B(this,4)};_.g.Fi=function(a){return _.y(this,4,a)};var $wc=function(a){this.Ad=a;this.H=new Map;this.O=this.Ad.W};
$wc.prototype.create=function(a,b){if(0!=Qrc(b)){var c=this.Ad.H(106001);if(c){var d=Qrc(b),e=iL(c);_.y(e,2,d);d=iL(c);e=null;if(b instanceof _.vG||b instanceof _.tA||b instanceof _.ef||b instanceof _.vJ||b instanceof _.DD||b instanceof _.iG||b instanceof _.mI||b instanceof _.uI||b instanceof _.kG||b instanceof _.aA)e=b.ve();e=e&&_.S(e,2,!1);_.y(d,7,"boolean"==typeof e?e:void 0);d=iL(c);b=b instanceof _.ef?0<_.Fl(b).length:void 0;_.y(d,8,b);this.H.set(a,c)}}};
var axc=function(a,b,c){if(a=a.H.get(b))a=iL(a),_.y(a,5,c)},bxc=function(a,b,c){(a=a.H.get(b))&&_.Q(iL(a),8)&&(a=iL(a),_.y(a,9,c))},cxc=function(a,b,c,d,e){var f=a.H.get(b);f&&(iL(f).Bc(c),iL(f).Ei(d),null!=e&&(c=iL(f),_.y(c,6,e)),f.uj(),a.H.delete(b))},dxc=function(a,b,c){var d=a.H.get(b);if(d){var e=a.O.Bb(c);c=Rrc(c);if(1==e||2==c)e=_.tK(_.zfc,c),d=iL(d),d=3==e||8==e?!_.Q(d,5):0!=e?_.Wfc.has(e):null,cxc(a,b,1,e,d)}},exc=function(a,b,c){var d=a.O.Bb(c);d=_.tK(_.yfc,d||22);var e=Rrc(c);e=_.tK(_.zfc,
e);cxc(a,b,d,e,"undefined"!=typeof _.xK&&c instanceof _.xK||"undefined"!=typeof _.zK&&c instanceof _.zK||"undefined"!=typeof _.AK&&c instanceof _.AK?c.N_:null)},UL=function(a,b,c){c=void 0===c?3:c;var d=a.H.get(b);d&&(iL(d).Bc(c),d.uj(),a.H.delete(b))},fxc=[2,4],VL=function(a){_.K.call(this,a,-1,fxc)};_.N(VL,_.K);VL.prototype.Bb=function(){return _.B(this,1)};VL.prototype.Bc=function(a){return _.y(this,1,a)};VL.prototype.Uj=function(){return _.B(this,3)};
var gxc=[4,9],hxc=function(a){_.K.call(this,a,-1,gxc)};_.N(hxc,_.K);_.g=hxc.prototype;_.g.Bb=function(){return _.B(this,1)};_.g.Bc=function(a){return _.y(this,1,a)};_.g.iVa=function(){return _.B(this,2)};_.g.yLa=function(){return _.B(this,3)};_.g.Prb=function(){return _.Rj(this,_.CI,4)};var ixc={M5b:0,m0b:1,p0b:2,n0b:4,VYb:5,hWb:6,bZb:7,C0b:8},jxc=function(a){_.K.call(this,a)};_.N(jxc,_.K);jxc.prototype.getUrl=function(){return _.B(this,1)};var XL=function(a){_.K.call(this,a)};_.N(XL,_.K);
var kxc=function(a,b){return _.y(a,1,b)};XL.prototype.getName=function(){return _.B(this,2)};XL.prototype.$c=function(a){return _.y(this,2,a)};XL.prototype.getEmail=function(){return _.B(this,3)};var lxc=function(a,b){return _.y(a,3,b)};XL.prototype.kp=function(){return _.P(this,3)};var mxc=[1],nxc=function(a){_.K.call(this,a,-1,mxc)};_.N(nxc,_.K);var oxc=function(a,b){return _.Mj(a,1,b)},pxc=function(a){_.K.call(this,a)};_.N(pxc,_.K);_.g=pxc.prototype;_.g.Ac=function(){return _.B(this,1)};
_.g.Bb=function(){return _.B(this,2)};_.g.Bc=function(a){return _.y(this,2,a)};_.g.getError=function(){return _.C(this,_.mc,3)};_.g.Oe=function(a){return _.J(this,3,a)};_.g.Yn=function(){return _.P(this,3)};var qxc=[2],YL=function(a){_.K.call(this,a,-1,qxc)};_.N(YL,_.K);YL.prototype.Bb=function(){return _.B(this,1)};YL.prototype.Bc=function(a){return _.y(this,1,a)};YL.prototype.kl=function(){return _.Rj(this,_.jG,2)};var rxc=function(a,b){return _.Mj(a,2,b)};
YL.prototype.Uj=function(){return _.B(this,3)};var sxc=[1],txc=function(a){_.K.call(this,a,-1,sxc)};_.N(txc,_.K);var uxc=function(a,b){return _.Jj(a,1,b)},vxc=function(a,b){this.O=a|0;this.H=b|0};vxc.prototype.equals=function(a){return this===a?!0:a instanceof vxc?this.O===a.O&&this.H===a.H:!1};vxc.prototype.Ec=function(){return 31*this.O+17*this.H|0};
var wxc=function(a,b){return new vxc(a,b)},xxc=function(a,b){b=~b;a?a=~a+1:b+=1;return wxc(a,b)},yxc=function(a){var b="-"===a[0];a=a.slice(b?3:2);return(b?xxc:wxc)(parseInt(a.slice(-8),16),parseInt(a.slice(-16,-8)||"",16))},zxc=function(){this.H=this.W=this.O=this.V=null},Axc=function(a,b,c){this.id=a;this.O=b;this.H=c},Bxc=function(a,b){return new Axc((a?a:b).getId(),a,b)},ZL=function(a){return new Axc(a.getId(),null,a)},Cxc=function(a){this.W=a;this.O=new Map;this.V=new Set;this.enabled=!0;this.error=
null;this.started=!1},$L=function(a,b,c){if(a.started)throw Error("ff");c={Do: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)}},aM=function(a,b){if(!a.started)throw Error("gf");if(!a.enabled)throw Error("hf`"+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.Do.delete(b);if(0===e.Do.size)try{e.callback()}catch(f){throw a.enabled=
!1,a.error=f?_.UI(f):null,f;}}}};Cxc.prototype.H=function(a){return this.V.has(a)};Cxc.prototype.start=function(){this.started=!0};Cxc.prototype.log=function(a){this.W.info("drive.ds.MilestoneManager",a)};var Dxc=function(){_.qi.call(this);this.H=Date.now()};_.N(Dxc,_.qi);Dxc.prototype.kF=function(){this.H=Date.now();this.dispatchEvent("Hb")};var Exc=function(a,b){this.pt=a;this.uv=b;this.YG=!0;this.V7=!1;this.Le=0},bM=function(a,b){(a.YG=b)||a.rJ()};_.g=Exc.prototype;
_.g.Bka=function(a,b){if(5===this.zE(a))throw Error("jf");for(var c=[],d=_.m(this.iy()),e=d.next();!e.done;e=d.next())e=e.value,QL(this.pt,a,e.getItem())&&c.push(e);this.uv.sort(a,c,b);return c};_.g.Ld=function(){return this.iy().length};_.g.Wj=function(a,b){b=this.Bka(a,b);b=woc(b);var c=new _.mB;c.Pw(b);c.Bc(this.IN(a)?6:1);return c};_.g.update=function(a){var b=this.ms(a.O),c=this.ms(a.H);if(!b&&!c)return!1;b&&this.iJ(a.O);c&&this.tR(a.H);return!0};
_.g.zE=function(a){return this.YG&&this.V7?ewc(a)?1:5:5};_.g.bX=function(){this.V7=!0};_.g.ms=function(a){return!!a&&this.YG};_.g.Ei=function(a){this.Le=a};_.g.Ye=function(){return this.Le};var cM=function(a,b,c,d,e,f){f=void 0===f?"":f;Exc.call(this,a,b);var h=this;this.W=c;this.nextPageToken=f;this.Jd=[];this.O={};this.request=RL(c,d,!0);this.H=!e;Fxc(this,e);this.V=function(k,l){return h.uv.compare(h.request,k,l)}};_.N(cM,Exc);_.g=cM.prototype;_.g.od=function(){return this.request};
_.g.tR=function(a){var b=this.O[a.getId()];b&&this.iJ(b);onc(this.Jd,a,this.V);this.O[a.getId()]=a;a.count++;this.Jd.length>this.request.xi()&&(this.iJ(_.fa(this.Jd)),this.H=!1)};_.g.iJ=function(a){var b=this.Jd,c=_.Fa(b,a,this.V);0<=c&&_.sa(b,c);_.Ua(this.O,a.getId());a.count--};_.g.rJ=function(){this.Jd.forEach(function(a){a.count--});this.Jd=[];this.O={}};_.g.iy=function(){return this.Jd};
_.g.zE=function(a){var b;if(b=this.W.equals(this.request,a,!0))a=a.O(),b=this.request.O(),b=znc(b,a,_.zgc);return b?this.H?1:6:5};_.g.Bka=function(a,b){if(5===this.zE(a))throw Error("jf");b=b?Math.min(b,this.Jd.length):this.Jd.length;return _.za(this.Jd,0,b)};_.g.ms=function(a){if(!Exc.prototype.ms.call(this,a)||!QL(this.pt,this.request,a.getItem()))return!1;if(this.H||_.S(this.request,48,!1))return!0;var b=_.fa(this.Jd);return!!b&&0>=this.V(a,b)};_.g.IN=function(){return this.H?!1:!0};
_.g.getType=function(){return"CacheHintCorpusCache"};_.g.nl=function(a,b){var c=this,d=_.fa(this.Jd);!this.H&&d&&_.ma(a,function(e){return e.getId()===d.getId()})&&(b?(this.iJ(d),Fxc(this,_.fa(a))):this.H=!0);_.Ja(a,function(e){c.update(ZL(e))})};var Fxc=function(a,b){b&&QL(a.pt,a.request,b.getItem())&&a.tR(b)};cM.prototype.my=function(){return this.nextPageToken};var dM=function(a,b){Exc.call(this,a,b);this.Jd=new Map};_.N(dM,Exc);dM.prototype.tR=function(a){this.Jd.set(a.getId(),a);a.count++};
dM.prototype.iJ=function(a){this.Jd.delete(a.getId());a.count--};dM.prototype.rJ=function(){for(var a=_.m(this.Jd.values()),b=a.next();!b.done;b=a.next())b.value.count--;this.Jd=new Map};dM.prototype.iy=function(){return Array.from(this.Jd.values())};var eM=function(a,b){dM.call(this,a,b);this.bX()};_.N(eM,dM);_.g=eM.prototype;
_.g.zE=function(a){var b=this,c=dM.prototype.zE.call(this,a);if(5===c)return c;if(0<_.Qd(a,33).length)return 5;a=_.Fl(a);return 0<a.length?a.every(function(d){return(d=b.Jd.get(d.Za()))&&!d.getItem().yc()&&d.H})?1:5:5};_.g.ms=function(a){return dM.prototype.ms.call(this,a)&&!(null===a||void 0===a?0:a.getItem().yc())};_.g.Bka=function(a,b){for(var c=[],d=_.m(this.iy()),e=d.next();!e.done;e=d.next())e=e.value,QL(this.pt,a,e.getItem())&&c.push(e);this.uv.sort(a,c,b);return c};_.g.od=function(){return new _.ef};
_.g.getType=function(){return"MyDriveCorpusCache"};_.g.IN=function(){return!1};var Gxc=function(a){return[].concat(_.ld(a.Jd.values())).filter(function(b){return b.H}).map(function(b){return b.getId()})},fM=function(a,b,c,d){dM.call(this,a,b);var e=this;this.H=d;$L(c,["aU7Ts","BNEDtc"],function(){return e.bX()})};_.N(fM,dM);
fM.prototype.zE=function(a){var b=this,c=dM.prototype.zE.call(this,a);if(5==c)return c;if(0<_.Qd(a,33).length)return 5;a=_.Fl(a);return 0<a.length&&!a.every(function(d){d=b.Jd.get(d.Za());return null!=d&&!d.getItem().yc()&&Inc(d.getItem())&&!_.Q(d.getItem(),108)})?5:1};fM.prototype.ms=function(a){return dM.prototype.ms.call(this,a)&&Hxc(this,a.getItem())};var Hxc=function(a,b){if(_.Q(b,31)||!a.V7)return!0;var c=a.H();return b.jk().some(function(d){var e=a.Jd.get(d);return d==c||null!=e&&Inc(e.getItem())})};
fM.prototype.bX=function(){dM.prototype.bX.call(this);for(var a=_.m(this.Jd),b=a.next();!b.done;b=a.next()){var c=_.m(b.value);b=c.next().value;c=c.next().value;Hxc(this,c.getItem())||(c.count--,this.Jd.delete(b))}};fM.prototype.od=function(){return new _.ef};fM.prototype.getType=function(){return"SubscribedCorpusCache"};fM.prototype.IN=function(){return!1};var Ixc=/^[\x00-\x7F]*$/,Jxc=function(){this.rootId=""};Jxc.prototype.yu=function(a){this.rootId=a||""};
var ewc=function(a){return Kxc(a)&&0==_.Qd(a,40).length&&void 0==_.B(a,41)},Kxc=function(a){var b=!0;_.Rj(a,_.gf,13).forEach(function(d){"me"!=d.Za()&&(b=!1)});var c=a.wc();c=!c||5!=c.getType();return 0==_.Rj(a,_.zl,5).length&&0==_.Rj(a,_.gf,14).length&&0==_.Rj(a,_.gf,15).length&&!_.P(a,58)&&!_.Q(a,18)&&!_.Q(a,34)&&0==_.Rj(a,_.ul,35).length&&0==_.Rj(a,_.ul,38).length&&c&&b&&0==_.Qd(a,39).length&&!_.B(a,42)&&0==_.Rj(a,_.tl,44).length&&!_.rJ(a)&&!_.sJ(a)&&!_.tJ(a)&&0==_.Rj(a,_.vl,57).length&&Lxc(a)&&
!_.C(a,_.Loa,59)&&null==_.Q(a,60)&&0==_.Rj(a,_.gf,68).length&&0==_.Rj(a,_.gf,67).length&&null==_.Q(a,69)&&!_.Q(a,73)},Lxc=function(a){return _.Rj(a,_.Al,4).every(function(b){b=b.Za();return!b||!b.includes("*")&&Ixc.test(b)})};Jxc.prototype.M8=function(a,b){var c=this;return b.filter(function(d){return QL(c,a,d)})};
var QL=function(a,b,c){var d;if(d=!!c)d=c.getId()!=a.rootId&&!PL(c);if(d){d=!0;var e=_.Rj(b,_.Al,4);if(Lxc(b))for(var f=0;f<e.length&&d;f++){var h=e[f];if(h.Za()){var k=_.S(h,3,!1),l=(c.getTitle()||"").toLowerCase(),p=h.Za().toLowerCase();if(2==_.B(h,1))l=p==l,d=d&&(k?!l:l);else{h=[];if(0<=p.indexOf("-"))for(var q=/\w*-[\w-]*/,r=_.m(p.match(q)||[]),v=r.next();!v.done;v=r.next())h.push(v.value),p=p.replace(q,"");h.push.apply(h,_.ld(p.split(/\b/)));for(p=0;p<h.length&&d;p++)q=h[p],r=!0,0!=(0,_.gg)(q).length&&
(0==q.replace(/\./g,"").length&&(r=!1),q=!!l.match(r?new RegExp("(^|[^\\w])"+_.Kg(q)+"($|[^\\w])|(^|[ ])"+_.Kg(q)):new RegExp(_.Kg(q))),d=d&&(k?!q:q))}}}else d=!0}if(d){l=_.El(b);e=d=0;k=f=!1;l=_.m(l);for(h=l.next();!h.done;h=l.next())h=h.value,h.Za()&&(q=c.getMimeType()||"",_.Q(h,4)&&(q=(p=c.Hf())&&_.B(p,3)||""),p=_.S(h,2,!1),r=h.Za(),_.OJ(b)&&(r=r.toLowerCase(),q=q.toLowerCase()),h=0===_.yj(h,3,0)?r===q:q.includes(r),p?(e++,k=k||h):(d++,f=f||h));d=d&&!f||e&&k?!1:!0}if(d)for(d=!0,e=_.Rj(b,_.xl,7),
e=_.m(e),f=e.next();!f.done;f=e.next())f=f.value,k=c.tq(),d=d&&Mxc(k,f);if(d)for(d=!0,e=_.Rj(b,_.xl,8),e=_.m(e),f=e.next();!f.done;f=e.next())f=f.value,k=c.gz(),d=d&&Mxc(k,f);d&&(d=b.Th(),e=(e=_.bK(b))&&(2==e||3==e),d=null==d||d==!!c.Th()&&(!d||1==c.Yo()||!!e));d&&(d=null==_.Q(b,10)||_.Q(b,10)==!!c.VA());d&&(d=null==_.Q(b,11)||_.Q(b,11)==!!_.Q(c,6));if(d)a:{d=_.Fl(b);d=_.m(d);for(e=d.next();!e.done;e=d.next())if(e=e.value,e.Za()&&(f="root"==e.Za()&&a.rootId||e.Za(),f=c.jk().includes(f),_.S(e,2,!1)?
f:!f)){d=!1;break a}d=!0}if(a=d)a:{a=_.Rj(b,_.gf,13);a=_.m(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,"me"==d.Za()&&(e=1==c.Yo(),_.S(d,2,!1)?e:!e)){a=!1;break a}a=!0}a&&(a=null==_.Q(b,16)||(_.Q(b,16)?null!=c.qy():!0));a&&(a=_.Q(b,17),d=(d=_.bK(b))&&(2==d||3==d),a=null==a||a==!!c.HI()&&(!a||1==c.Yo()||!!d));a&&(a=Tnc(c),a=null==_.Q(b,19)||_.Q(b,19)==!!_.$k(a));a&&(a=!0);if(a=a&&Nxc(b,c)&&Oxc(b,c))a=_.Qd(b,33),a=!a.length||a.includes(c.yc()||"");if(a=a&&Pxc(b,c))_.B(b,41)?(a=_.C(c,_.WJ,86),a=
null!=a&&_.B(b,41)==_.B(a,3)):a=!0;if(a=a&&Qxc(b,c))a=_.bK(b),1==a?(a=_.Q(c,31),a=!!_.Fl(b).length||!!_.Rj(b,_.ul,35).length||1==_.Q(b,18)||_.rJ(b)||_.sJ(b)||_.tJ(b)||!!b.Ip()||null==a||a):a=2==a?!!c.yc():!0;a&&(a=_.rJ(b)?!_.P(c,100)||c.Th()?!1:_.S(b,74,!1)?!!_.Q(_.fl(c),4):!!_.Q(_.fl(c),3):!0);a&&(a=_.sJ(b)?!!_.gl(c).length&&!c.Th():!0);a&&(a=_.tJ(b)?!!_.hl(c).length&&!c.Th():!0);a&&(a=_.P(b,50)?_.S(b,50,!1)?_.P(c,101)&&0!==_.B(c,101):!_.P(c,101):!0);a&&(a=b.Ip(),a=!a||_.Qd(c,120).includes(a));a&&
(c=_.C(c,_.QJ,138),null==_.Q(b,65)||null==c?a=!0:(c=2==_.B(c,1),a=_.Q(b,65)==c));return a},Mxc=function(a,b){if(null!=_.B(b,2))switch(_.B(b,1)){case 1:return a<=_.B(b,2);case 2:return a<_.B(b,2);case 3:return a==_.B(b,2);case 4:return a>_.B(b,2);case 5:return a>=_.B(b,2);default:return!1}return!0},Nxc=function(a,b){var c=_.bb(_.Qd(b,56));a=_.Rj(a,_.aK,25);return 0==a.length?!0:a.every(function(d){return c[d.Za()]})},Oxc=function(a,b){if(0==a.pB().length)return!0;var c=_.bb(b.pB().map(function(d){return _.B(d,
1)}));a=_.bb(a.pB().map(function(d){return _.B(d,1)}));return _.Oa(a,function(d,e){return c[e]})},Pxc=function(a,b){var c=_.bb(_.Qd(b,50));a=_.Rj(a,_.yl,37);return 0==a.length?!0:a.every(function(d){return c[d.Za()]})},Qxc=function(a,b){if(_.Qd(a,40).length){if(b=_.C(b,_.WJ,86)){var c=_.bb(_.Qd(b,2));return _.Qd(a,40).some(function(d){return c[d]})}return!1}return!0},gM=function(a,b,c,d){d=void 0===d?5E3:d;dM.call(this,a,b);this.teamDriveId=c;this.limit=d};_.N(gM,dM);_.g=gM.prototype;
_.g.zE=function(a){var b=this,c=dM.prototype.zE.call(this,a);if(5==c)return c;c=_.Fl(a);var d=c.every(function(e){var f=e.Za();return(null!=b.Jd.get(f)||b.teamDriveId==f)&&!_.S(e,2,!1)});if(0<c.length&&d)return 1;a=_.Qd(a,33);return 0!=a.length&&a.includes(this.teamDriveId)?1:5};_.g.ms=function(a){return dM.prototype.ms.call(this,a)&&!!a&&a.getItem().yc()==this.teamDriveId&&!PL(a.getItem())};_.g.IN=function(){return!1};_.g.od=function(){var a=new _.ef;_.Hl(a,[this.teamDriveId]);_.Il(a,2);return a};
_.g.yc=function(){return this.teamDriveId};_.g.getType=function(){return"TeamDriveCorpusCache: "+this.teamDriveId};var Rxc=function(a,b){this.W=a;this.ka=b;this.ha=[];this.O=this.H=null;this.V=[];a=new _.ef;_.y(a,48,!0);b=new _.$c;_.ad(b,11);_.bd(b,2);_.ff(a,b);this.ma=RL(this.W,a,!0)};Rxc.prototype.add=function(a){a instanceof fM?this.H=a:a instanceof eM?this.O=a:a instanceof cM?(this.log("Adding new cache hint for "+pL(this.W,a.od(),2)),this.ha.push(a)):a instanceof gM&&this.V.push(a)};
Rxc.prototype.remove=function(a){var b=this;if(a instanceof fM)this.H&&(bM(this.H,!1),this.H=null);else if(a instanceof eM)this.O&&(bM(this.O,!1),this.O=null);else if(a instanceof cM){var c=_.la(this.ha,function(d){return b.W.equals(d.od(),a.od())});0<=c&&(bM(this.ha[c],!1),_.sa(this.ha,c))}else a instanceof gM&&(c=_.la(this.V,function(d){return b.W.equals(d.od(),a.od())}),0<=c&&(bM(this.V[c],!1),_.sa(this.V,c)))};
var Sxc=function(a){var b=[];a.H&&b.push(a.H);a.O&&b.push(a.O);_.ya(b,_.wa(a.ha));_.ya(b,_.wa(a.V));return b},Txc=function(a,b){b=void 0===b?!1:b;return a.ha.filter(function(c){return a.H&&b?(c=c.od().clone(),_.Kj(c,32),_.Nj(c,26),!_.Vj(a.ma,c)):!0})};Rxc.prototype.bW=function(){return _.wa(this.V)};var Uxc=function(a,b){return _.eg(a.V,function(c){return c.yc()===b})},Vxc=function(a,b){return Txc(a).find(function(c){return a.W.equals(c.od(),RL(a.W,b,!0))})};
Rxc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.CorpusCacheList",a,void 0===b?"info":b)};var Wxc=function(a,b){_.gi.call(this,"Ib");this.ids=a;this.error=b};_.N(Wxc,_.gi);Wxc.prototype.getError=function(){return this.error};Wxc.prototype.H=function(){return this.ids};var Xxc=function(a){_.gi.call(this,"Jb");this.people=a};_.N(Xxc,_.gi);Xxc.prototype.getPeople=function(){return this.people};var Yxc=function(a){_.gi.call(this,"Kb");this.people=a};_.N(Yxc,_.gi);
Yxc.prototype.getPeople=function(){return this.people};var $xc=function(a,b,c){c=void 0===c?0:c;this.person=a;this.Le=c;this.V=this.W=null;this.O=!1;this.H=new Set(b?[b]:[]);6===c&&(this.O=!0);Zxc(this)};$xc.prototype.Ye=function(){return this.Le};
var ayc=function(a){return 0===a.Le?1:2===a.Le||(1===a.Le||4===a.Le)&&(a.person.kp()||a.O)?3:2},byc=function(a,b,c){if(_.B(b,1)!==_.B(a.person.clone(),1))return!1;6===c&&(a.O=!0);var d=ayc(a),e=a.Ye();if(4===c?0:1===e?1===c:5===e||6===e||2===e||4===e?0!==c&&e!==c:1)return b=lxc(b.clone(),a.getEmail(b)),e=!_.Vj(a.person,b),a.person=b,a.Le=c,Zxc(a),e||d!==ayc(a);if(4===c)return a.Le=c,Zxc(a),d!==ayc(a);c=b;return!a.person.getEmail()&&c.getEmail()?(lxc(a.person,a.getEmail(b)),!0):!1};
$xc.prototype.getEmail=function(a){var b=this.person.getEmail();a=a.getEmail();return!a&&b&&0!==b.length?b:a};var Zxc=function(a){1===a.Le?(a.W=Date.now(),a.V=null):4===a.Le&&(a.V=Date.now())},dyc=function(a,b,c,d){_.qi.call(this);var e=this;this.O=a;this.V=b;this.W=c;this.ha=d;this.H=[];this.ka=new _.jI(function(){return cyc(e)},100,this)};_.N(dyc,_.qi);dyc.prototype.Zg=function(a){a&&_.yI(this.O)&&(this.H.includes(a)||this.H.push(a),this.ka.oe())};
var cyc=function(a){a.ha.then(function(){for(;a.H.length;){var b=a.H.splice(0,50);a.log("Querying for people. Size: "+b.length+". Pending: "+(a.H.length+" "+b));a.sendRequest(b)}})};dyc.prototype.sendRequest=function(a){var b=this;return this.W.then(function(c){var d=c.Re;var e=new _.zJ;e=_.Jj(e,1,a);return d.call(c,e)}).then(function(c){c=_.Rj(c,XL,1);b.dispatchEvent(new Xxc(c))},function(c){c=_.yB(c);b.dispatchEvent(new Wxc(a,c))})};
dyc.prototype.log=function(a){this.V.info("drive.ds.sync.query.PeopleQueryRunner",a)};
var gyc=function(a,b,c,d,e){_.qi.call(this);var f=this;this.H=new Map;this.O=new Set;this.V=new Map;this.Pc=new _.Je(this);this.Ma(this.Pc);this.ka=b;this.ha=d;this.ta=_.Zj(_.C(a,Eqc,85)||new Eqc,1,864E5);this.W=new dyc(a,b,c,e);this.ma=new _.VD(function(){var h,k=null===(h=f.ha)||void 0===h?void 0:kL(h,106015);if(k){h=_.C(_.sK(k),lrc,11);if(!h){h=new lrc;var l=_.sK(k);_.J(l,11,h)}h=_.y(h,1,f.H.size);_.y(h,2,f.O.size);k.uj()}},500,this);this.Pc.listen(this.W,"Jb",function(h){h=h.getPeople();eyc(f,
h,1);f.ma.oe()});this.Pc.listen(this.W,"Ib",function(h){fyc(f,h)})};_.N(gyc,_.qi);gyc.prototype.get=function(a){var b=this.H.get(a);return b?(hyc(this,b)&&iyc(this,a),b):null};var iyc=function(a,b){if(!b)return Promise.resolve();if(a.V.has(b))return a.V.get(b).promise;a.W.Zg(b);var c=new _.An;a.V.set(b,c);return c.promise};gyc.prototype.Sb=function(a){var b=this;return jyc(this,a)?Promise.resolve(this.H.get(a)):iyc(this,a).then(function(){return b.H.get(a)})};
gyc.prototype.vc=function(){return 0===this.H.size};gyc.prototype.clear=function(){this.log("Clearing the PeopleCache.");this.H.clear();this.O.clear()};
var kyc=function(a){return[].concat(_.ld(a.H.values())).filter(function(b){return 3===ayc(b)&&4!==b.Ye()}).map(function(b){return b.person.clone()})},lyc=function(a,b){return(a=a.H.get(b))?[].concat(_.ld(a.H)):[]},myc=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(_.ld(e.H)).length&&(a.H.delete(d),a.O.delete(d)))}},eyc=function(a,b,c){if(![1,2].includes(c))throw Error("kf");0!==b.length&&(a.log("Importing "+b.length+" from "+
(Object.keys(ixc)[c]+".")),nyc(a,b,c))},pyc=function(a,b,c,d){0!==b.length&&oyc(a,b,c,void 0===d?0:d)},jyc=function(a,b){b=a.H.get(b);return!(!b||3!==ayc(b)||hyc(a,b))},oyc=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=_.B(f,1),k=a.H.get(h);if(k)byc(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&&iyc(k,_.B(f,1));l=new $xc(f,p,l);k.H.set(_.B(f,1),l)}e&&1===d&&(f.getName()?a.O.delete(h):a.O.add(h))}return e},hyc=function(a,
b){switch(b.Ye()){case 1:return Date.now()-Number(b.W)>a.ta;case 4:return 1E3<Date.now()-Number(b.V);default:return!0}};gyc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.PeopleCache",a,void 0===b?"info":b)};
var fyc=function(a,b){b=b.H().map(function(c){var d=a.H.get(c);return d?d.person.clone():kxc(new XL,c)});nyc(a,b,4)},nyc=function(a,b,c){for(var d=_.m(b),e=d.next();!e.done;e=d.next()){e=_.B(e.value,1);var f=a.V.get(e);f&&(f.resolve(),a.V.delete(e))}oyc(a,b,void 0,c)&&a.dispatchEvent(new Yxc(b))},qyc=function(a,b,c,d,e,f){_.qi.call(this);var h=this;this.Pc=new _.Je(this);this.Ma(this.Pc);this.H=new gyc(a,b,c,e,f);this.O=_.II(a)||new _.Lfc;this.Pc.listen(this.H,"Kb",function(k){return h.dispatchEvent(k)})};
_.N(qyc,_.qi);qyc.prototype.cP=function(a){var b=this;if(a.H){var c=a.H.getItem(),d=ryc(this,[c]).map(function(e){return syc(b,e)});pyc(this.H,d,a.H.getId(),this.Ye(_.B(c,82)))}a.O&&myc(this.H,a.id,tyc(this,a))};qyc.prototype.Ye=function(a){return _.cgc.get(a)||0};
var tyc=function(a,b){var c=uyc(a,b.O),d=uyc(a,b.H);return c.filter(function(e){return!d.includes(e)})},uyc=function(a,b){return b?vyc(a,[b.getItem()]):[]},xyc=function(a,b){b=b.getUser();pyc(a.H,[syc(a,b)],"ACCOUNT");wyc(a,b)},zyc=function(a,b){var c=_.Rj(b,_.jK,2).map(function(d){var e=_.C(d,_.Gk,9,1);return a.H.Sb(UK(e)).then(function(){return void yyc(a,[e])})});return Promise.all(c).then(function(){return b})},Ayc=function(a,b){yyc(a,ryc(a,b))},yyc=function(a,b){b=_.m(b);for(var c=b.next();!c.done;c=
b.next())c=c.value,UK(c)&&wyc(a,c)},Byc=function(a,b,c){for(var d=new Set,e=_.m(b),f=e.next();!f.done;f=e.next())f=f.value,UK(f)&&(d.add(UK(f)),pyc(a.H,[syc(a,f)],c));return Promise.all([].concat(_.ld(d)).map(function(h){return a.H.Sb(h)})).then(function(){return yyc(a,b)})},Dyc=function(a,b){return vyc(a,[b]).some(function(c){return!Cyc(a,c)})},Cyc=function(a,b){return jyc(a.H,b)},vyc=function(a,b){var c=new Set;a=ryc(a,b);a=_.m(a);for(b=a.next();!b.done;b=a.next())(b=UK(b.value))&&c.add(b);return[].concat(_.ld(c))},
ryc=function(a,b){return b.map(function(c){var d=c.Wv();d=d?[].concat(_.ld(d.fR()),_.ld(_.Rj(d,_.Gk,3))):[];var e=c.Hf();e=(e=e&&_.Ud(e))?ryc(a,[e]):[];return[].concat(_.ld(_.dl(c)),[c.om(),c.Ot(),c.Cq(),c.hD()],_.ld(d),_.ld(e))}).flat().filter(function(c){return c&&!!UK(c)})};qyc.prototype.Fd=function(a){return lyc(this.H,a).filter(function(b){return"ACCOUNT"!==b})};
var Eyc=function(a){return oxc(new nxc,kyc(a.H))},Fyc=function(a,b){return b.map(function(c){c=c.clone();var d=ryc(a,[c]);d=_.m(d);for(var e=d.next();!e.done;e=d.next())e=e.value,_.Kj(e,3),_.Kj(e,8),_.Kj(e,5);return c})},Hyc=function(a,b){return b.some(function(c){return Gyc(a,c)})},Gyc=function(a,b){return ryc(a,[b]).some(function(c){return _.P(c,3)||c.kp()||_.P(c,5)})},wyc=function(a,b){var c=a.H.get(UK(b));if(c){a=c.person.clone();var d=_.mhc(b.$c(a.getName()),a.getEmail());c=ayc(c);_.y(d,16,c);
(a=_.C(a,jxc,4))&&b.In(a.getUrl())}},syc=function(a,b){var c=UK(b);c=lxc(kxc(new XL,c).$c(b.getName()),b.getEmail());var d=new jxc;var e=_.B(b,5);d=_.y(d,1,e);c=_.J(c,4,d);_.S(a.O,9,!1)&&(_.Kj(b,3),_.Kj(b,8),_.Kj(b,5));return c},Iyc=function(){this.suggestionSessionId=this.W=null;this.V=[];this.incompleteSearch=!1;this.O=[];this.H=!0};Iyc.prototype.Wf=function(){return this.suggestionSessionId};Iyc.prototype.Fza=function(){return this.O};Iyc.prototype.vc=function(){return this.H};
var Jyc=function(a){if(!a)return null;a=a.split("/");return 2>a.length?null:a[1]},Kyc=function(a,b){a=Jyc(a);b=Jyc(b);return!(!a||!b||a!==b)},Lyc=function(a){return a.Ac()+"_"+Jyc(a.getName())},Myc=function(a,b){var c=_.Qd(a,1).map(function(d,e){return b[Number(e)].value.V2a.promise});return Promise.allSettled(c).then(function(d){return _.Qd(a,1).map(function(e,f){e=e.toString();var h=new pxc;e=_.y(h,1,e);f=d[Number(f)];"fulfilled"===f.status?e.Bc(1):(e.Bc(3),e.Oe(f.reason.Rg));return e})})},hM=function(a,
b){_.O.call(this);this.O=a;this.request=b;this.Cy=new Set;this.status=6;this.V=new Map;this.Le=0};_.N(hM,_.O);_.g=hM.prototype;_.g.ii=function(a){var b=this;this.Cy.add(a);return this.resize().then(function(){return b.tO(a)})};_.g.ak=function(a){this.Cy.delete(a);0===this.Cy.size&&this.dispose()};_.g.Ye=function(){return this.Le};_.g.Ei=function(a){this.Le=a};
_.g.nD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=!1;a.forEach(function(f){e=d.Fu(f,c)||e});b||(e=1!==this.status||e,this.status=1);return e?this.LX():_.Oh([])};_.g.LX=function(){for(var a=[],b=_.m(this.Cy.values()),c=b.next();!c.done;c=b.next())a.push(this.tO(c.value));return _.Rh(a)};
_.g.KX=function(a){this.status=3;for(var b=[],c={},d=_.m(this.Cy.values()),e=d.next();!e.done;c={Bqa:c.Bqa},e=d.next())c.Bqa=e.value,b.push(this.O.then(function(f){return function(h){return void h.KX(f.Bqa,a)}}(c)));return _.Rh(b)};_.g.jA=function(){for(var a=this,b=[],c={},d=_.m(this.Cy.values()),e=d.next();!e.done;c={Cqa:c.Cqa},e=d.next())c.Cqa=e.value,b.push(this.O.then(function(f){return function(h){return void h.jA(f.Cqa)}}(c)));return _.Rh(b).then(function(){a.Ei(0===a.Ye()?1:6)})};
_.g.resize=function(){var a=this;return this.O.then(function(b){var c=0;a.Cy.forEach(function(d){d=b.oka(d);c=Math.max(c,d.xi?d.xi()||0:0)});a.ffa(c)})};var Nyc=function(a,b){return b?a.V.get(a.Wja(b))||null:null};_.g=hM.prototype;_.g.XH=function(a,b){var c=Nyc(this,a);b=Nvc(c,b);this.V.set(this.Wja(a),b)};_.g.Wja=function(a){return a};_.g.zLa=function(){return[]};_.g.tO=function(a){var b=this;return this.O.then(function(c){return void c.tO(a,b.Wj())})};_.g.removeItem=function(){};
var iM=function(a,b){_.qi.call(this);this.request=a;this.pageToken="";this.H=this.O=!1;this.data=[];this.limit=0;this.W=b};_.N(iM,_.qi);var Oyc=function(a){return!a.O||""!==a.pageToken};iM.prototype.Zg=function(a){this.limit=void 0===a?1E5:a;return!this.H&&this.data.length<=this.limit&&Oyc(this)?Pyc(this):_.Oh()};
var Pyc=function(a){a.O=!0;a.H=!0;var b=a.Xha(a.request,a.limit-a.data.length,a.pageToken);return a.W(b).then(function(c){return Qyc(a,c)},function(c){return a.handleError(c)})},Qyc=function(a,b){a.H=!1;a.pageToken=a.ika(b);b=a.zja(b);b.forEach(function(c){return a.data.push(c)});a.Y5(b);return a.data.length<a.limit&&Oyc(a)?_.Rh([_.Oh(b),Pyc(a)]).then(function(c){return c[0].concat(c[1])}):_.Oh(b)};
iM.prototype.handleError=function(a){this.H=!1;a=_.GI(a);var b=new nL(a);this.ALa(b);this.dispatchEvent(b);return _.Ph(a)};iM.prototype.Y5=function(){};iM.prototype.ALa=function(){};var Ryc=function(a,b,c){iM.call(this,c,function(d){return a.then(function(e){return e.Re(d)}).Fg(function(e){return void _.VI(e)})});this.V=b};_.N(Ryc,iM);_.g=Ryc.prototype;_.g.Xha=function(a,b,c){a=a.clone();a.ri(b);return new _.Mgc(a,c)};_.g.ika=function(a){return a.pageToken||""};_.g.zja=function(a){return a.response.O()};
_.g.Y5=function(a){this.V.nD(a,!1,1)};_.g.ALa=function(a){this.V.rB(this.request,a)};var Syc=function(a,b,c,d){hM.call(this,a,d.clone());this.ha=b;this.W=c;this.data=[];this.H=null};_.N(Syc,hM);_.g=Syc.prototype;_.g.refresh=function(){this.jA();this.H=new Ryc(this.ha,this.W,this.request);return this.H.Zg(this.request.xi()||100)};_.g.Cp=function(a){return this.data.find(function(b){return Kyc(b.getName(),a)})};
_.g.ffa=function(a){this.H&&a===this.request.xi()||(this.request.ri(a),this.H?this.H.Zg(a):this.refresh())};_.g.Wj=function(){var a=this,b=ztc((new yL).Bc(this.status),this.data.filter(function(c){return a.W.vCa(c)}).map(function(c){return c.clone()}));return new _.yK(b,void 0,void 0,this.Ye())};_.g.nD=function(a,b,c){var d=this;a=a.filter(function(e){return e.Ac()===d.request.Ac()});return hM.prototype.nD.call(this,a,b,c)};
_.g.Fu=function(a,b){b=void 0===b?1:b;if(!Rnc(Nyc(this,a.getName()),b))return!1;var c=-1===b?0:this.data.length,d=this.data.findIndex(function(e){return Kyc(e.getName(),a.getName())});-1<d&&(this.data.splice(d,1),c=d);this.data.splice(c,0,a);this.XH(a.getName(),b);return!0};_.g.removeItem=function(a){_.ua(this.data,function(b){return Kyc(b.getName(),a)})&&(this.V.delete(this.Wja(a)),this.LX())};_.g.Wja=function(a){return Jyc(a)};_.g.XH=function(a,b){this.Cp(a)&&hM.prototype.XH.call(this,a,b)};
_.g.zLa=function(a){var b=this;return a instanceof _.FJ&&a.Ac()===this.request.Ac()?a.HV().map(function(c){return b.Cp(c.Gm())}).filter(function(c){return!!c}).map(function(c){return c.clone()}):[]};var jM=function(){this.H=new Map};jM.prototype.ii=function(a,b){var c=this.getKey(b),d=this.H.get(c),e=!d;d||(d=this.Zha(b),this.H.set(c,d));d.ii(a);return e};var Tyc=function(a,b,c){var d=a.getKey(c),e=a.H.get(d),f=!e;e||(e=a.Cwa(c),a.H.set(d,e));e.ii(b);return f};
jM.prototype.ak=function(a,b){var c=this.H.get(this.getKey(b));c&&(c.ak(a),c.isDisposed()&&this.H.delete(this.getKey(b)))};var Uyc=function(a,b,c){var d=a.H.get(a.getKey(c));d&&(d.ak(b),d.isDisposed()&&a.H.delete(a.getKey(c)))},Vyc=function(a,b){return a.H.get(b)};jM.prototype.nD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=a.filter(function(f){return d.vCa(f)});this.H.forEach(function(f){f.nD(e,b,c)})};jM.prototype.removeItem=function(a,b){b=b?this.H.get(b):null;(b?[b]:this.H).forEach(function(c){c.removeItem(a)})};
var Wyc=function(a,b){a=Array.from(a.H.values()).map(function(c){return c.zLa(b)});return[].concat.apply([],_.ld(a))};jM.prototype.XH=function(a,b){this.H.forEach(function(c){c.XH(a,b)})};jM.prototype.vCa=function(){return!0};jM.prototype.rB=function(a,b){(a=this.H.get(this.getKey(a)))&&a.KX(b)};jM.prototype.D2=function(a,b,c,d){var e=this.getKey(b),f=this.H.get(e);f||(f=this.Zha(b),f.Ei(c),this.H.set(e,f),this.nD(a,d))};var Xyc=function(){this.V=new Set;this.O=0;this.H=[]},Yyc=function(a,b){a.V.add(b)};
Xyc.prototype.W=function(a){this.V.delete(a)};var Zyc=function(a,b){var c;if(c=b instanceof _.cl)c=b.Xv(),c=!!(b.Th()&&c&&c<=Math.max.apply(Math,_.ld([a.O].concat(_.ld(a.H)))));if(c)return!0;b=b instanceof _.cl?b.getId():b;return a.V.has(b)},$yc=function(a,b){return _.ua(a.H,function(c){return c===b})&&b>a.O?(a.O=b,!0):!1};Xyc.prototype.M8=function(a){var b=this;return a.filter(function(c){return!Zyc(b,c)})};var azc=function(a,b){this.H=new Map;this.V=a;this.W=b;this.O=new Xyc};_.N(azc,jM);
var bzc=function(a,b){Yyc(a.O,Lyc(b));(a=Vyc(a,b.Ac()))&&a.LX()};_.g=azc.prototype;_.g.getKey=function(a){return a.Ac()};_.g.Zha=function(a){return new Syc(this.V,this.W,this,a)};_.g.Cwa=function(a){return new Syc(this.V,this.W,this,a)};_.g.Po=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next())(b=b.value.getItem())&&(b=Vyc(this,b.getId()))&&b.refresh()};_.g.vCa=function(a){return!Zyc(this.O,Lyc(a))};
var czc=function(a,b){this.O=a;this.H=b},dzc=function(a,b){b=_.UWb(b);var c=new Ryc(a.O,a.H,b);new Promise(function(d,e){return c.Zg(100).then(d,e)})},ezc=function(){this.Jd={}},kM=function(a,b){fzc(a,"subscribed");b&&fzc(a,b);return a.Jd[b||"subscribed"].ke.promise},fzc=function(a,b){a.Jd[b]||(a.Jd[b]={count:0,zR:[],$0a:[],ke:_.Sh()});a.Jd[b].count++},hzc=function(a,b){b&&!gzc(a,b)||gzc(a,"subscribed")},gzc=function(a,b){if(!a.Jd[b])return!1;a.Jd[b].count--;0===a.Jd[b].count&&(a.Jd[b].ke.resolve({items:a.Jd[b].zR,
cKb:a.Jd[b].$0a}),_.Ua(a.Jd,b));return!0};ezc.prototype.Po=function(a,b){var c=this,d=b||"subscribed";a.forEach(function(e){var f=e.yc();f&&f===e.Ac()&&c.Jd[f]&&c.Jd[f].$0a.push(e);c.Jd[d]&&c.Jd[d].zR.push(e)})};var izc=function(a,b,c){iM.call(this,a,c);this.V=b};_.N(izc,iM);izc.prototype.Xha=function(a,b){return a.clone().ri(b)};izc.prototype.ika=function(){return""};izc.prototype.zja=function(a){return[a]};izc.prototype.Y5=function(a){this.V(a)};
var jzc=function(a,b,c,d){hM.call(this,a,d.clone());this.ha=b;this.H=this.QS=null;this.W=c};_.N(jzc,hM);jzc.prototype.refresh=function(){var a=this;this.jA();this.H=new izc(this.request,this.W,function(b){return a.ha.then(function(c){return c.Re(b)})});return this.H.Zg(this.request.xi()||0)};jzc.prototype.ffa=function(a){1===this.status||this.H&&a===this.request.xi()||(this.request.ri(a),this.H?this.H.Zg(a):this.refresh())};
jzc.prototype.Wj=function(){if(this.QS)return this.QS;var a=new JL;a.Bc(this.status);return a};jzc.prototype.Fu=function(a){this.QS=a;return!0};var kzc=function(a,b,c){this.H=new Map;this.O=a;this.W=b;this.V=c};_.N(kzc,jM);_.g=kzc.prototype;_.g.log=function(a){this.V.info("drive.ds.sync.cache.SuggestedWorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};_.g.Zha=function(a){var b=this;return new jzc(this.O,this.W,function(c){b.nD(c,!1)},a)};_.g.Cwa=function(){throw Error("lf");};
_.g.D2=function(a,b,c,d){var e=a[0].kl();this.log("Initialized "+e.length+" suggested workspaces: "+e.map(function(f){return f.fq()}).join(", "));jM.prototype.D2.call(this,a,b,c,d)};var lzc=function(a,b,c,d){_.qi.call(this);this.request=a;this.Ba=b;this.ta=c;this.va=d;this.ma=0;this.ke=null;this.O=new Set};_.N(lzc,_.qi);
lzc.prototype.Zg=function(){var a=this;if(this.ke)return this.ke.promise;this.ke=_.Sh();for(var b={},c=_.m(this.W(this.request)),d=c.next();!d.done;b={Qqa:b.Qqa,pea:b.pea},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.pea=d;b.Qqa=e;this.ma++;this.Ba.then(function(f){return function(h){return h.Re(f.Qqa)}}(b)).then(function(f){return function(h){var k=f.pea;a.V(h);mzc(a,k)}}(b),function(f){return function(h){return void a.handleError(f.pea,h)}}(b))}return this.ke.promise};
var mzc=function(a,b){a.O.add(b);a.O.size===a.ma?(a.ha(a.request),a.dispatchEvent("Da"),a.ke.resolve()):a.dispatchEvent("Aa")};lzc.prototype.handleError=function(a,b){b=_.yB(b);var c=b.Rg;5===c.Xs()||4===c.kk()?(this.va.info("drive.ds.sync.query.SimpleFindByIdsRunner","Deleting "+a+" due to: "+b.message),this.ka(a),mzc(this,a)):(a=new nL(c,_.Zj(this.ta.$f(),1,1)),this.dispatchEvent(a),this.ke.reject(b))};
var nzc=function(a){var b=new _.jG;b.Ob(a);return b},ozc=function(a,b,c,d,e){lzc.call(this,a.clone(),c,d,e);this.H=b};_.N(ozc,lzc);ozc.prototype.W=function(a){var b=new Map;a.hn().forEach(function(c){var d=_.VVb(a.clone(),[c]);b.set(c,d)});return b};ozc.prototype.V=function(a){var b=[];a.KT().forEach(function(c){b.push(c)});this.H(b,!0)};ozc.prototype.ha=function(){this.H([],!1)};ozc.prototype.ka=function(a){this.H([nzc(a)],!0)};
var pzc=function(a,b,c,d,e,f){hM.call(this,a,f.clone());this.ma=b;this.W=c;this.ka=d;this.ha=e;this.Vk={};this.H=null};_.N(pzc,hM);pzc.prototype.refresh=function(){this.H=new ozc(this.request,this.ha,this.ma,this.W,this.ka);return this.H.Zg()};pzc.prototype.ffa=function(){this.H||this.refresh()};pzc.prototype.Wj=function(){var a=new _.wK;a.Bc(this.status);_.La(this.Vk,function(b,c){a.KT().set(c,b||new _.jG)});a.Ei(this.Ye());return a};
pzc.prototype.Fu=function(a){var b=a.getId();if(_.Vj(a,nzc(a.getId()))){if(this.Vk[b])return delete this.Vk[b],!0}else if(0<=this.request.hn().indexOf(b))return this.Vk[b]=a,!0;return!1};var qzc=function(a,b){a=a.getState();return null==a||b.getState()==a},rzc=function(a,b,c){iM.call(this,a,c);this.V=b};_.N(rzc,iM);rzc.prototype.Xha=function(a,b,c){a=a.clone();a.ri(b);return new _.Zgc(a,c)};rzc.prototype.ika=function(a){return a.pageToken||""};rzc.prototype.zja=function(a){return a.response.kl()};
rzc.prototype.Y5=function(a){this.V(a)};var szc=function(a){this.H=_.Fcc(a,{numeric:!0})};szc.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=_.Ea(b.getId(),c.getId())*(a?1:-1);return f};szc.prototype.V=function(a,b,c){var d=_.B(b,4),e=_.B(c,4),f;d!==e?f=_.Ea(d,e)*(a?1:-1):f=_.Ea(b.getId(),c.getId())*(a?1:-1);return f};
var tzc=function(a,b,c,d,e){hM.call(this,a,e.clone());this.ha=b;this.Vk=[];this.H=null;this.W=d;a=new szc(c);b=(c=this.request.yw())?c.getType():0;c=c?c.sf():0;this.ka=1===b?a.O.bind(a,2!==c):a.V.bind(a,1===c)};_.N(tzc,hM);tzc.prototype.refresh=function(){var a=this;this.jA();this.H=new rzc(this.request,this.W,function(b){return a.ha.then(function(c){return c.Re(b)})});return this.H.Zg(this.request.xi()||0)};
tzc.prototype.ffa=function(a){1===this.status||this.H&&a===this.request.xi()||(this.request.ri(a),this.H?this.H.Zg(a):this.refresh())};tzc.prototype.Wj=function(){var a=new YL;a.Bc(this.status);rxc(a,this.Vk.map(function(b){return b.clone()}));return new _.BK(a,void 0,1!==this.status&&Oyc(this.H),this.Ye())};tzc.prototype.Fu=function(a){var b=_.ua(this.Vk,function(c){return c.getId()===a.getId()});return a&&qzc(this.request,a)&&!_.Vj(a,nzc(a.getId()))?onc(this.Vk,a,this.ka):b};
var uzc=function(a,b,c,d){this.H=new Map;this.V=a;this.ha=b;this.W=c;this.O=d};_.N(uzc,jM);_.g=uzc.prototype;_.g.log=function(a){this.W.info("drive.ds.sync.cache.WorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};_.g.Zha=function(a){var b=this;return new tzc(this.V,this.ha,fL(_.tI(this.O)),function(c){return void b.nD(c,!1)},a)};_.g.Cwa=function(a){var b=this;return new pzc(this.V,this.ha,this.O,this.W,function(c,d){return b.nD(c,d)},a)};
_.g.D2=function(a,b,c,d){this.log("Initialized "+a.length+" items for workspaces: "+a.map(function(e){return e.getId()}).join(", "));jM.prototype.D2.call(this,a,b,c,d)};
var vzc=function(a,b){b=void 0===b?!1:b;var c=a.getMimeType();XK(a)&&(c=(c=a.Hf())?_.B(c,3):"");YK(a)&&(a.Vi()&&(c+="+"+String(a.Vi())),a.Dj()&&(c+="+shared"));return _.TTa(c,b?"32":"16")},wzc=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("&")},xzc=function(a,b){var c=_.Q(a,44),d=a.Hf();if(d){if(1!==_.Wd(d))return null;c=(c=_.Ud(d))?_.Q(c,44):!0}if(!c)return null;c={};d=a.getId();XK(a)&&(d=Hnc(a));
d=[_.E(b,65,"https://lh3.google.com"),"u",_.HI(_.tI(b)),"d",d].join("/");d+="={size}";_.S(b,89,!1)&&_.P(a,140)&&(c.resourcekey=_.jl(a));return d=wzc(d,c)},yzc=function(a){this.H=a},Azc=function(a,b,c){if(c.includes(20)&&c.includes(3)){var d=vzc(b,_.S(a.H,75,!1));_.y(b,21,d)}c.includes(18)&&_.Uhc(b,yoc(b,a.H));c.includes(19)&&(d=xzc(b,a.H),_.y(b,20,d));zzc(a,b,c);if(XK(b)){if(d=(d=b.Hf())&&_.Ud(d)){if(c.includes(20)&&c.includes(3)){var e=vzc(d,_.S(a.H,75,!1));_.y(d,21,e)}c.includes(18)&&_.Uhc(d,yoc(d,
a.H));c.includes(19)&&(e=xzc(d,a.H),_.y(d,20,e));zzc(a,d,c)}_.Yhc(b,!!b.Px())}},zzc=function(a,b,c){var d=c.includes(41);c=c.includes(42);if(d||c){var e=b.getMimeType();e&&(e=!YK(b)&&!XK(b)&&!_.Cd(e)&&(!b.Q6()||2!==b.Yo()),d&&_.y(b,40,e),e&&c&&(a=a.H,d=b.getId(),XK(b)&&(d=Hnc(b)),c=new _.ej(_.E(a,16,"")+"/uc"),_.lj(c,"id",d),_.lj(c,"authuser",_.HI(_.tI(a))),_.lj(c,"export","download"),_.S(a,89,!1)&&_.P(b,140)&&_.lj(c,"resourcekey",_.jl(b)),_.y(b,41,c.toString())))}},Bzc=function(a,b){this.hia="";
this.startTime=b||new Date;this.yda=a;this.G$=Aoc(a)};Bzc.prototype.clone=function(){return new Bzc(this.yda,this.startTime)};var Czc=function(){this.H=null;this.CY=[]},Dzc=function(a){return _.cf(a.CY,function(b){return _.Ya(b)})};Czc.prototype.oN=function(){return this.H};
Czc.prototype.O=function(a,b,c){if(this.H){var d=this.H;if(!a["X-Google-DapperTraceInfo"]){var e=new zxc;e.V=yxc(d.G$);var f=_.Pg().substring(0,8);d=Aoc(f);f=(new Zwc).Ob(f);f=_.y(f,2,d);b=_.y(f,3,b).Fi(c);this.CY.push(b);e.O=yxc(d);e.H=wxc(808464432,808464432);e.W=41;b=String.fromCharCode;c=b.apply;d=new _.mk;if(e.V){f=e.V.O>>>0;var h=e.V.H>>>0;_.nk(d,1,1);var k=d.O;epc(k,f);epc(k,h)}e.O&&(f=e.O.O>>>0,h=e.O.H>>>0,_.nk(d,2,1),k=d.O,epc(k,f),epc(k,h));f=e.W;null!=f&&(_.nk(d,3,5),epc(d.O,f));e.H&&(f=
e.H.O>>>0,e=e.H.H>>>0,_.nk(d,4,1),h=d.O,epc(h,f),epc(h,e));e=_.ok(d);a["X-Google-DapperTraceInfo"]=_.n.btoa(c.call(b,null,e))}}};var Ezc=function(){this.Db=[];this.O=this.H=0};Ezc.prototype.discard=function(a){for(var b=this.H,c=this.O,d=this.Db,e=0;e<a;++e){b=b+1&255;c=c+d[b]&255;var f=d[b];d[b]=d[c];d[c]=f}this.H=b;this.O=c};
var Fzc=function(a,b){if(!c)var c=b.length;for(var d=a.H,e=a.O,f=a.Db,h=0;h<c;++h){d=d+1&255;e=e+f[d]&255;var k=f[d];f[d]=f[e];f[e]=k;b[h]^=f[f[d]+f[e]&255]}a.H=d;a.O=e},Gzc=function(a){this.key=a;this.H=new _.$fc;this.O=new _.Yfc(new _.$fc,_.wma(a))};Gzc.prototype.encrypt=function(a){for(var b=[],c=0;16>c;c++)b[c]=Math.floor(256*Math.random());b=csc(b);c=Hzc(this,a);return b.concat(c,Izc(this,b,a,!0))};
var Jzc=function(a,b){var c=Izc(a,b.substring(0,16),b.substring(36),!1);b=b.substring(16,36);a=Hzc(a,c);if(b!==a)throw Error("mf");return c},Hzc=function(a,b){a=_.Zfc(a.O,_.vgc(b));return csc(a)},Izc=function(a,b,c,d){a.H.reset();a.H.update(b);a.H.update(a.key);b=new Ezc;a=a.H.digest();if(!e)var e=a.length;for(var f=b.Db,h=0;256>h;++h)f[h]=h;var k=0;for(h=0;256>h;++h){k=k+f[h]+a[h%e]&255;var l=f[h];f[h]=f[k];f[k]=l}b.H=0;b.O=0;b.discard(1536);if(d){d="";for(e=0;e<c.length/8192;e++)a=_.vgc(c.substring(8192*
e,8192*(e+1))),Fzc(b,a),d+=csc(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;Fzc(b,a);d.push(a)}if(d.length){for(c=0;c<d.length-1;c++)if(8192!==d[c].length)throw Error("nf");c=8192*(d.length-1)+d[d.length-1].length;b=Array(c);for(a=e=0;e<c;)f=Kzc(d,e++),128>f?b[a++]=String.fromCharCode(f):191<f&&224>f?(h=Kzc(d,e++),b[a++]=String.fromCharCode((f&31)<<6|h&63)):
239<f&&365>f?(h=Kzc(d,e++),k=Kzc(d,e++),l=Kzc(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=Kzc(d,e++),k=Kzc(d,e++),b[a++]=String.fromCharCode((f&15)<<12|(h&63)<<6|k&63));b.length=a;d=b.join("")}else d="";return d},Kzc=function(a,b){return a[Math.floor(b/8192)][b%8192]},Lzc=function(a,b,c){this.data=a;this.QYa=b;this.H=c;this.isEncrypted=!1};Lzc.prototype.getData=function(){return this.data};
Lzc.prototype.Km=function(){return this.QYa};var Mzc=function(a,b,c,d){this.O=a;this.H=_.Sh();this.xo=!1;this.V=_.E(b,7,"");this.W=_.Zj(_.gL(b),6,2E7);this.yG=_.yI(b);this.ha=_.Zj(_.gL(b),12,0);this.ka=c;this.Ad=d||null};Mzc.prototype.initialize=function(){var a=this;this.xo||(this.xo=!0,this.O.initialize().then(function(){a.H.resolve()},function(b){a.H.reject(b)}));return _.$h(this.H.promise)};
Mzc.prototype.eB=function(a){if(a instanceof _.xB)return 0;if(a instanceof VL)return 1;if(a instanceof usc)return 5;if(a instanceof LL)return 3;if(a instanceof nxc)return 6;throw new _.nc("Unsupported dataShard in getDataType");};var Nzc=function(a){if(0==a)return _.xB;if(1==a)return VL;if(5==a)return usc;if(3==a)return LL;if(6==a)return nxc;throw new _.nc("Unsupported dataType:"+a+" in getDataTypeCtor");};Mzc.prototype.Un=function(a){if(a instanceof LL)return a.Un()};
Mzc.prototype.Km=function(a){if(a instanceof LL)return a.xd().length};Mzc.prototype.gv=function(a){if(a instanceof LL)return a=a.gv(),null!=a?a:void 0};
var Szc=function(a,b,c,d){if(0==c.length)return _.Oh();for(var e=a.eB(c[0]),f=_.m(c),h=f.next();!h.done;h=f.next())a.eB(h.value);var k=a.Un(c[0]),l=0;3==e&&Ozc(a,c);var p=!!b;return Pzc(a,c).then(function(q){if(p){var r=a.Ad?a.Ad.H(106023,d):null;l=q.reduce(function(z,A){(A=A.Km())&&(z+=A);return z},0);var v=Qzc(a,b,q.map(function(z){return z.getData()})).then(function(z){if(z.length!=q.length)return _.Ph(Error("of"));z=_.m(z.entries());for(var A=z.next();!A.done;A=z.next()){var D=_.m(A.value);A=
D.next().value;D=D.next().value;A=q[A];A.data=D;A.isEncrypted=!0}return q});r&&(rrc(qrc(prc(jL(r),_.tK(_.Ffc,e)),_.tK(_.Cfc,k)),!0),v.then(function(){var z=l;orc(jL(r),!0).At(z);r.uj()},function(){var z=l;orc(jL(r),!1).At(z);r.uj()}));return v}return q}).then(function(q){return a.H.promise.then(function(){return Rzc(a.O,q,e,k,p,d)})})},Pzc=function(a,b){return new _.Nh(function(c,d){var e=!1,f=[];b.forEach(function(l){if(!e){var p=l.Kc();p.length>a.W?e=!0:f.push(new Lzc(p,a.Km(l),a.gv(l)))}});if(e){var h=
Error("pf"),k=new _.mc;_.EI(k,2);_.QI(k,23);_.y(k,21,h.message);_.gq(k);a.ka(k);d(h)}c(f)})},Ozc=function(a,b){a.Un(b[0]);for(var c=_.m(b),d=c.next();!d.done;d=c.next())a.Un(d.value);a.yG||Tzc(b);if(a.ha)for(a=a.ha,c=b.length-1;0<=c;c--)if(b[c].Un()){d=[];for(var e=b[c].xd();e.length>a;){var f=_.Aa(e,a-1,a);f=yvc(new LL,f);d.push(f)}yvc(b[c],e);d.length&&_.Ab(_.Aa,b,c+1,0).apply(null,d)}},lM=function(a,b,c,d,e,f){var h=_.Sh(),k;_.Th(a.H.promise.then(function(){return Uzc(a.O,c,d,e)}).then(function(l){var p=
l.map(function(r){return r.data}),q=new _.Uh;if(l[0]&&l[0].B0){if(k=a.Ad?a.Ad.H(106022,f):null)rrc(qrc(prc(jL(k),_.tK(_.Ffc,c)),_.tK(_.Cfc,d)),!0),q.Vm().then(function(r){var v=k;r=void 0!=r;orc(jL(v),r);_.Ajc(v)});Vzc(a,q,b,p)}else q.callback(p);return _.Oh(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 (Nzc(c))(JSON.parse(r)),q+=a.Km(r),p.push(r);3==c&&(a.yG||Wzc(p),Xzc(p));k&&jL(k).At(q)}h.resolve(p)}),function(){k&&k.uj()}).Fg(h.reject,
h);return h.promise},Tzc=function(a){if(a.length){for(var b=0;b<a.length;b++)if(_.Rj(a[b],_.Gk,2).length)return;b=new Map;for(var c=new Map,d=_.m(a),e=d.next();!e.done;e=d.next()){e=e.value.xd()||[];e=_.m(e);for(var f=e.next();!f.done;f=e.next())if(f=f.value,_.Shc(f,Yzc(_.dl(f),b,c)),_.Thc(f,Yzc([f.om()],b,c)[0]),_.Zhc(f,Yzc([f.Ot()],b,c)[0]),_.cic(f,Yzc([f.Cq()],b,c)[0]),_.fic(f,Yzc([f.hD()],b,c)[0]),f=f.Wv())_.Ohc(f,Yzc(f.fR(),b,c)),_.Phc(f,Yzc(_.Rj(f,_.Gk,3),b,c))}var h=[];b.forEach(function(k){h.push(k)});
_.Mj(a[0],2,h)}},Yzc=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)?_.Vj(f,b.get(e))?d.push(c.get(e)):d.push(f):(b.set(e,f.clone()),f=new _.Gk,f.Ob(e),c.set(e,f),d.push(f))):d.push(f)}return d},Wzc=function(a){var b=new Map,c=new Map;a[0]&&_.Rj(a[0],_.Gk,2)&&_.Rj(a[0],_.Gk,2).forEach(function(h){b.set(h.getId(),h);h=(new _.Gk).Ob(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.xd()||[];e=_.m(e);for(var f=e.next();!f.done;f=e.next())if(f=f.value,_.Shc(f,Zzc(_.dl(f),b,c)),_.Thc(f,Zzc([f.om()],b,c)[0]),_.Zhc(f,Zzc([f.Ot()],b,c)[0]),_.cic(f,Zzc([f.Cq()],b,c)[0]),_.fic(f,Zzc([f.hD()],b,c)[0]),f=f.Wv())_.Ohc(f,Zzc(f.fR(),b,c)),_.Phc(f,Zzc(_.Rj(f,_.Gk,3),b,c));_.Nj(d,2)}}},Zzc=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();_.Vj(c.get(f),e)?d.push(b.get(f).clone()):d.push(e)}else d.push(e);
return d},Xzc=function(a){for(var b={},c=1;c<a.length;b={Yda:b.Yda},c++)if(!a[c].Un()){for(var d=0,e=c;e<a.length&&!a[e].Un();e++)d++;e=a[c-1];d=_.Aa(a,c,d);b.Yda=e.xd();d.forEach(function(f){return function(h){_.ya(f.Yda,h.xd())}}(b));yvc(e,b.Yda)}},Qzc=function(a,b,c){if(!_.Kfc()&&a.V){var d=new Worker(_.Qga(_.Cy(a.V)),void 0),e=new _.Uh;d.addEventListener("message",function(k){d.terminate();e.callback(k.data)},!1);d.addEventListener("error",function(k){d.terminate();e.Hd(Error(String(k)))},!1);
c=uxc(new txc,c);d.postMessage({command:"encrypt",data:{request:c.Kc(),key:b}});return e}try{a=[];var f=new Gzc(b);for(b=0;b<c.length;b++)a.push(f.encrypt(c[b]));var h=_.Zh(a)}catch(k){h=_.ai(k)}return h},Vzc=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(!_.Kfc()&&a.V){var f=new Worker(_.Qga(_.Cy(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 Gzc(c);for(c=0;c<d.length;c++)a.push(Jzc(h,d[c]));b.callback(a)}catch(k){b.callback(void 0)}},$zc=/^[\w]+$/,aAc=function(a,b,c){return[a.gs(),a.clientId,b?"#":mM(a)].join(":")+":"+(c||"")},bAc=function(a,b,c){this.global=void 0===c?!1:c;a.match($zc);this.key=a;this.value=b};bAc.prototype.getKey=function(){return this.key};bAc.prototype.Za=function(){return this.value};
var cAc=function(a,b){return{k:aAc(b,a.global,a.key),v:a.value}},dAc=function(a,b){a=aAc(a,b);return dvc(a+"A",a+"z")},eAc=function(a,b){this.H=a;this.O=b},fAc=function(a){return a?new eAc(a.versionKey,a.versionChangeTimestamp):null},gAc=function(a,b){return a+":"+b},hAc=function(a,b,c,d,e){this.data=a;this.index=b;this.size=c;this.timestamp=d;this.B0=void 0===e?null:e},iAc=function(a){return{data:a.data,index:a.index,size:a.size,timestamp:a.timestamp,e:a.B0}},jAc=function(a,b,c,d){a=mM(a)+"_"+b;
3===b&&(a+="_"+d);return a+=_.xt(":%02d",c)},kAc=function(a,b,c,d){c=jAc(a,b,void 0===c?0:c,d);a=mM(a)+"_"+b;3===b&&(a+="_"+d);return dvc(c,a+":a")},lAc=function(a){var b=mM(a)+"_";a=mM(a)+"_A";return dvc(b,a)},mAc=function(a){return a?new hAc(a.data,a.index,a.size,a.timestamp,a.e):null},nAc=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=_.wa(e);_.Ga(this.fields);_.Da(this.fields);this.H=f};
nAc.prototype.gs=function(){return this.userId};nAc.prototype.Jg=function(){return _.wa(this.fields)};
var mM=function(a){if(!a.O){var b=new _.kI;b.update([a.userId,a.clientId,a.W,a.V].join(":"));b.update(a.fields);a.O=_.zdc(b.digest())}return a.O},oAc=function(a){return{versionKey:mM(a),versionInfo:{u:a.userId,c:a.clientId,pv:a.W,phk:a.V,f:a.fields},lastAccessedTimestamp:a.H}},pAc=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 nAc(c.u,c.c,c.pv,c.phk,c.f,a.lastAccessedTimestamp);b?a.O=d:mM(a)!==d&&(a=null);return a},nM=function(a,
b,c,d){c=void 0===c?null:c;d=void 0===d?!1:d;_.O.call(this);var e=this;this.Ad=b;this.W=c;this.readOnly=d;this.H=this.version=null;this.Ba=!1;this.va=!0;this.V=null;this.ka=!1;this.O="";this.ma=null;this.Qa=a.then(function(f){e.version=f});this.Lb=new _.Je(this);this.Ma(this.Lb)};_.N(nM,_.O);nM.prototype.initialize=function(){return qAc(this)};
var qAc=function(a,b){a.V||(a.V=_.Sh(),a.Qa.then(function(){b?(a.va=!1,rAc(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)"),_.pec("GoogleDriveDs",2,a.Fa.bind(a),a.ta.bind(a)).hg(a.Ka.bind(a),a.ta.bind(a)),_.ui(2E4).then(a.Ha.bind(a)))},function(c){a.V.reject(new _.nc("Database version error",void 0,_.xI(c)?c:void 0))}));return a.V.promise},rAc=function(a,b){a.H=b;a.Lb.listen(a.H,"close",
a.ha.bind(a,"Browser closing database"));a.Lb.listen(a.H,"versionchange",a.ha.bind(a,"Database version change detected, closing"))};nM.prototype.Fa=function(a,b){this.log("Upgrading GoogleDriveDs to version "+a.newVersion);this.Ba=!0;_.Ja(b.H.objectStoreNames,function(c){return _.ric(b,c)});_.La(_.OI,function(c){var d=_.dgc.get(c);_.mec(b,c,d?{keyPath:d}:void 0)})};
nM.prototype.ta=function(a){var b;a&&a instanceof _.oI&&"InvalidStateError"==a.getName()&&_.tj.Hu?b=Error("qf"):_.xI(a)&&(b=a);this.ha("Unable to open database GoogleDriveDs (version 2)");this.V.reject(b);sAc(this,!1)};nM.prototype.Ka=function(a){this.ka?a.dispose():(rAc(this,a),this.Ma(this.H),this.readOnly||tAc(this).then(null,function(){}),this.log("Initialized database GoogleDriveDs"),this.V.resolve(),sAc(this,!0))};
var sAc=function(a,b){if(a.ma){var c=a.ma,d=_.C(_.sK(c),irc,5);d||(d=new irc,c=_.sK(c),_.J(c,5,d));d=_.y(d,1,2);c=a.zi().W;d=_.y(d,2,c);c=a.zi().ka;d=_.y(d,5,c);b=_.y(d,3,b);b=_.y(b,4,a.Ba);d=a.zi().ma;_.y(b,6,d);a.ma.uj();a.ma=null}};nM.prototype.Ha=function(){this.H||this.kf()||(this.ha("Opening database GoogleDriveDs timed out."),this.ta(Error("rf")))};nM.prototype.ha=function(a){this.log(a);this.ka||(this.ka=!0,this.O="Database disabled: "+a,this.H&&this.va&&this.H.close())};nM.prototype.kf=function(){return this.ka};
var uAc=function(a){return a.ka?a.O:null};nM.prototype.zi=function(){return this.version};
var oM=function(a,b,c){c=void 0===c?"readonly":c;if(a.readOnly&&"readonly"!=c)return null;a=a.H;try{return _.nec(a,[b],c)}catch(d){return null}},tAc=function(a){var b=_.OI.p_,c=oM(a,b,"readwrite");if(!c)return _.Ph(Error("sf"));c.objectStore(b).put(oAc(a.zi()));return _.Oh(c.wait()).then(function(){})},vAc=function(a){if(!a.H)return _.Ph(Error("tf"));if(a.kf())return _.Ph(Error(a.O));var b=_.OI.p_,c=oM(a,b,"readwrite");if(!c)return _.Ph(Error("uf"));b=c.objectStore(b);return _.Oh(b.remove(mM(a.zi())))},
wAc=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=mAc(e.value))&&(d[e.index]=e);if(!d[0])return b.reject(Error("vf")),0;a=d[0].timestamp;if(!a)return b.reject(Error("wf")),0;e=d[0].size;if(!e)return b.reject(Error("xf")),0;if(e>d.length)return b.reject(Error("yf`"+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("zf`"+e)),0;if(c&&a<c)return b.reject(Error("Af`"+a+"`"+c)),d.length>
e?e:null;if(d.length>e)return b.resolve(d.slice(0,e)),e;b.resolve(d);return null},Uzc=function(a,b,c,d){if(!a.H||3==b&&void 0==c)return _.Ph(Error("Bf"));if(a.kf())return _.Ph(Error(a.O));var e=kAc(a.zi(),b,0,c),f=_.OI.K5,h=oM(a,f);if(!h)return _.Ph(Error("Cf"));e=h.objectStore(f).getAll(e);var k=_.Sh();e.hg(function(l){l=wAc(l,k,d);a.readOnly||null==l||xAc(a,b,c,l).then(null,function(){})},k.reject);return k.promise},Rzc=function(a,b,c,d,e,f){if(a.H){if(a.kf())return _.Ph(Error(a.O));if(100<b.length||
3==c&&void 0==d)return _.Ph(Error("Df"))}else return _.Ph(Error("Ef"));var h=Date.now(),k=b.length,l=b.map(function(v,z){return{key:jAc(a.zi(),c,z,d),data:new hAc(v.getData(),z,k,h,e),metadata:v}}),p=_.OI.K5;b=oM(a,p,"readwrite");if(!b)return _.Ph(Error("Ff"));p=b.objectStore(p);var q={};l=_.m(l);for(var r=l.next();!r.done;q={qea:q.qea},r=l.next())r=r.value,q.qea=yAc(a,c,d,r.metadata,f),p.put(iAc(r.data),r.key).then(function(v){return function(){var z=v.qea;z&&(orc(jL(z),!0),z.uj())}}(q),function(v){return function(z){var A=
v.qea,D=z instanceof _.oI?z.code:_.Pdc;A&&a.W&&(z=orc(jL(A),!1),D=_.tK(_.Gfc,D),_.y(z,2,D),A.uj())}}(q));return _.Oh(b.wait()).then(function(){})},yAc=function(a,b,c,d,e){if(a.W){var f=a.W.W;if(a=a.W.H(106019,e))b=qrc(prc(jL(a),_.tK(_.Ffc,b)),_.tK(_.Cfc,c)),f=f.Un(d.H),f=_.y(b,5,f),rrc(f,d.isEncrypted),void 0!=d.Km()&&jL(a).At(d.Km());return a}return null},xAc=function(a,b,c,d){d=void 0===d?0:d;if(a.H){if(a.kf())return _.Ph(Error(a.O));if(3==b&&void 0==c)return _.Ph(Error("Gf"))}else return _.Ph(Error("Hf"));
b=kAc(a.zi(),b,d,c);c=_.OI.K5;a=oM(a,c,"readwrite");if(!a)return _.Ph(Error("If"));a.objectStore(c).remove(b);return _.Oh(a.wait()).then(function(){})},zAc=function(a){if(!a.H)return _.Ph(Error("Jf"));if(a.kf())return _.Ph(Error(a.O));var b=lAc(a.zi()),c=_.OI.K5;a=oM(a,c,"readwrite");if(!a)return _.Ph(Error("Kf"));a.objectStore(c).remove(b);return _.Oh(a.wait()).then(function(){})};
nM.prototype.getMetadata=function(a){if(this.H){if(this.kf())return _.Ph(Error(this.O));if(a&&0==a.length)return _.Ph(Error("Lf"))}else return _.Ph(Error("Mf"));var b=this.zi(),c=_.OI.U6,d=oM(this,c);if(!d)return _.Ph(Error("Nf"));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(_.Oh(c.get(aAc(b,e.global,e.key))));c=_.Rh(d)}else c=_.Rh([c.getAll(dAc(b,!1)).then(),c.getAll(dAc(b,!0)).then()]).then(function(f){var h=_.m(f);f=h.next().value;h=h.next().value;
return nnc(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]===mM(b))){h=k[0]!==b.gs()||k[1]!==String(b.clientId)?void 0:new bAc(k[3],h.v,l);break a}}h=void 0}return h})})};
var AAc=function(a,b){if(a.H){if(a.kf())return _.Ph(Error(a.O));if(0==b.length)return _.Ph(Error("Of"))}else return _.Ph(Error("Pf"));var c=_.OI.U6,d=oM(a,c,"readwrite");if(!d)return _.Ph(Error("Qf"));c=d.objectStore(c);d=[];b=_.m(b);for(var e=b.next();!e.done;e=b.next())d.push(c.put(cAc(e.value,a.zi())).then());return _.Rh(d).then(function(){})},BAc=function(a,b){b=void 0===b?!1:b;if(a.H){if(a.kf())return _.Ph(Error(a.O))}else return _.Ph(Error("Sf"));var c=a.zi(),d=_.OI.U6;a=oM(a,d,"readwrite");
if(!a)return _.Ph(Error("Tf"));d=a.objectStore(d);a=[];a.push(d.remove(dAc(c,!1)).then());b&&a.push(d.remove(dAc(c,!0)).then());return _.Rh(a).then(function(){})},CAc=function(a){if(!a.H)return _.Ph(Error("Uf"));if(a.kf())return _.Ph(Error(a.O));var b=gAc(a.zi().gs(),a.zi().clientId),c=_.OI.mU;a=oM(a,c);if(!a)return _.Ph(Error("Vf"));c=a.objectStore(c);return _.Oh(c.get(b)).then(function(d){return fAc(d)})},DAc=function(a,b){b=void 0===b?!1:b;if(!a.H)return _.Ph(Error("Wf"));if(a.kf())return _.Ph(Error(a.O));
var c=a.zi(),d=gAc(c.gs(),c.clientId);b=new eAc(mM(c),b?Date.now():void 0);c=_.OI.mU;a=oM(a,c,"readwrite");if(!a)return _.Ph(Error("Xf"));a.objectStore(c).put({versionKey:b.H,versionChangeTimestamp:b.O},d);return _.Oh(a.wait())};nM.prototype.Kl=function(a){var b=this;return this.H?this.kf()?_.Ph(Error(this.O)):CAc(this).then(function(c){var d=mM(b.zi());if(c)if(a){if(!c.O&&d==c.H&&d!=mM(a))return DAc(b,!0);if(c.O&&d==mM(a))return DAc(b)}else{if(d!=c.H)return DAc(b)}else if(!a)return DAc(b)}):_.Ph(Error("Yf"))};
var EAc=function(a){if(!a.H)return _.Ph(Error("Zf"));if(a.kf())return _.Ph(Error(a.O));var b=a.zi(),c=gAc(b.gs(),b.clientId);return CAc(a).then(function(d){if(d){d=_.OI.mU;var e=oM(a,d,"readwrite");if(e)return e.objectStore(d).remove(c).then()}})};
nM.prototype.clear=function(a){var b=this;a=void 0===a?!1:a;return this.H?this.kf()?_.Ph(Error(this.O)):CAc(this).then(function(c){var d=c&&c.H==mM(b.zi());return d&&!a?!1:(c&&d?EAc(b):_.Oh()).then(function(){return _.Rh([BAc(b,a),zAc(b),vAc(b)]).then(function(){return!0},function(){return!1})},function(){return!1})}):_.Ph(Error("$f"))};nM.prototype.close=function(){this.ha("Closing database")};nM.prototype.log=function(a){this.Ad.info("drive.ds.sync.storage.VersionedDb",a)};
var FAc=function(a){if(1>=a.zi())return!1;var b=a.H.objectStoreNames;return _.Qa(_.OI).every(function(c){return b&&b.contains(c)})},GAc=function(){var a=_.Sh();_.pec("GoogleDriveDs").hg(function(b){b?FAc(b)?a.resolve(b):(b.close(),_.Oh(evc()).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},HAc=function(a,b,c){var d=_.Sh();a?_.nec(a,[_.OI.p_],"readonly").objectStore(_.OI.p_).getAll().hg(function(e){e=
_.Qa(e).map(function(f){return pAc(f)}).filter(function(f){return null!=f});d.resolve(e.filter(function(f){return(!b||f.gs()==b)&&(!c||f.clientId==c)}))},d.reject):d.resolve([]);return d.promise},IAc=function(a,b,c){var d=_.Sh();GAc().then(function(e){if(e){var f=_.OI.mU;_.nec(e,[f],"readonly").objectStore(f).get(a+":"+b).then(function(h){return fAc(h)}).then(function(h){if(h){var k=0;"number"==typeof c&&"number"==typeof h.O&&(k=c+h.O-Date.now());var l=_.OI.p_,p=_.nec(e,[l],"readonly");p.objectStore(l).get(h.H).then(function(q){(q=
pAc(q))?(q.ka=!0,0>k?q.ha=!0:0<k&&(q.ma=k),d.resolve(q)):d.resolve(null)});_.Wh(p.wait(),function(){e.close()})}else d.resolve(null),e.close()},function(h){d.reject(h);e.close()})}else d.resolve(null)},d.reject);return d.promise},JAc=function(a,b,c){var d=_.Sh(),e=new nM(_.Oh(a),b);qAc(e,c).then(function(){return d.resolve(e)},d.reject);return d.promise},KAc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=[];a.forEach(function(h){var k=JAc(h,b,c);f.push(k.then(function(l){return l.clear(e)}).then(function(l){return l?
h:void 0}))});_.Rh(f).then(function(h){var k=[];h.forEach(function(l){l&&(k.push(l),b.info("drive.ds.sync.storage.VersionedDb","Cleared version: "+mM(l)))});d.resolve(k)})},LAc=function(a,b,c){var d=Date.now()-12096E5,e=_.Sh();GAc().then(function(f){f?(_.Th(e.promise,function(){f.close()}),HAc(f,a,b).then(function(h){return h.filter(function(k){return k.H<d})},function(){return[]}).then(function(h){KAc(h,c,f,e)})):e.resolve([])});return e.promise},MAc=function(a,b,c){var d=_.Sh();GAc().then(function(e){e?
(_.Th(d.promise,function(){e.close()}),HAc(e,a,b).then(function(f){KAc(f,c,e,d,!0)})):d.resolve([])});return d.promise},NAc=function(a,b,c,d){if(a.length){var e=_.OI.K5,f=a.shift(),h=jAc(f,3,0,1);try{_.nec(c,[e],"readonly").objectStore(e).get(h).then(function(k){(k=mAc(k))&&(!k.B0||k.B0&&d.has(f.V))?b.resolve(f):NAc(a,b,c,d)},function(){return b.resolve(null)})}catch(k){b.resolve(null)}}else b.resolve(null)},OAc=function(a,b,c,d,e,f,h){var k=_.Sh();GAc().then(function(l){l?(_.Th(k.promise,function(){l.close()}),
HAc(l,a,b).then(function(p){return p.filter(function(q){return(!h||h!=mM(q))&&q.W==c&&q.H>=e&&Gnc(d.filter(function(r){return!_.egc.has(r)}),q.Jg(),b)})},function(){return[]}).then(function(p){p.length?(p.sort(function(q,r){return r.H-q.H}),NAc(p,k,l,new Set(f))):k.resolve(null)})):k.resolve(null)});return k.promise},PAc={key:"rid",global:!0},QAc={key:"ooi",global:!0},RAc={key:"rtds",global:!1},SAc={key:"dct",global:!1},TAc={key:"pc",global:!1},UAc=function(a){this.H=new _.Nh(function(b){a?a.initialize().then(function(){return b(a)},
function(){return b(null)}):b(null)})};UAc.prototype.get=function(a){return this.H.then(function(b){if(b&&!b.kf())return b.getMetadata([a]).then(function(c){return(c=c[0])?c.Za():void 0},function(){})})};UAc.prototype.set=function(a,b){return this.H.then(function(c){return c&&!c.kf()?AAc(c,[new bAc(a.key,b,a.global)]).then(function(){return!0},function(){return!1}):!1})};UAc.prototype.Wn=function(){return this.get(PAc).then(function(a){return a?a:null})};
UAc.prototype.yu=function(a){return this.set(PAc,a)};var VAc=function(a){return a.get(QAc).then(function(b){return"boolean"===typeof b?b:null})};UAc.prototype.Qy=function(a){return this.set(QAc,a)};var WAc=function(a){return a.get(TAc).then(function(b){return"boolean"===typeof b?b:null})},XAc=function(a){return a.get(RAc).then(function(b){return Array.isArray(b)?b:null})},YAc=function(a){return a.get(SAc).then(function(b){return"number"===typeof b?b:null})},ZAc=function(){this.fj=[]};_.N(ZAc,_.IK);
ZAc.prototype.add=function(a,b){var c=a.Bv.request;return c instanceof _.JJ&&_.B(c.request,12)?_.IK.prototype.add.call(this,a,b):!1};ZAc.prototype.Yra=function(a){return this.fj.splice(0,Math.min(a,1))};var $Ac=function(a,b){this.fj=[];this.H=b};_.N($Ac,_.IK);$Ac.prototype.add=function(a,b){return a.Bv.request instanceof _.JJ?!1:_.IK.prototype.add.call(this,a,b)};
$Ac.prototype.Yra=function(a){for(var b=[],c=[],d={},e=0,f=0;f<this.fj.length&&b.length<a;f++){var h=this.fj[f],k=h.Bv.request;k instanceof _.dJ||k instanceof _.pJ||k instanceof _.EJ?k="app|"+k.zh():k instanceof _.ZI||k instanceof _.$I||k instanceof _.fJ||k instanceof _.JI?k="item|"+(k instanceof _.ZI?k.Ac():k.getId()):k instanceof _.gJ||k instanceof _.qJ?k="item|"+k.Ac():k instanceof _.hJ||k instanceof _.GJ?k="item|"+k.Ac():k instanceof _.FD||k instanceof _.ED?(k=k instanceof _.FD?_.C(k,_.lp,1).getKey():
k.getKey(),k="pref|"+_.B(k,2)+"|"+_.mp(k)):k=k instanceof _.iJ?"td|"+k.getId():null;var l=h.Bv.request;if(l instanceof _.bJ)l=!!_.Q(l,8);else if(l instanceof _.$I){l=this.H.H(l.getId());var p;if(p=!!l)p=!!(l&&l.getMimeType()&&_.Mdb.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++)_.sa(this.fj,c[a]);return b};
aBc=function(a,b,c,d,e,f,h,k,l){a=a.$f();h=new _.qlc(k,h,d,_.Zj(a,32,1073741824),_.Zj(a,21,1E3));h=new _.rlc(h);k=new _.Qkc(_.Zj(a,59,2E3),_.Zj(a,60,2E4),_.Zj(a,61,6));c=new _.Okc(l?l:c,l?void 0:e);e={};e[1]=_.tlc(b,d);e[2]=_.ulc(b,a,k,c,d);e[3]=_.vlc(b,a,k,c,d,"batch");l=_.Zj(a,10,50);f=new _.KK(d,b,[_.Pkc(c),new _.Tkc(l,_.Zj(a,11,100)),new _.JK(l),new _.HK(k,d)],[new $Ac(a,f),new ZAc,new _.IK],[new _.blc(a,k,c.Gj(),d)],"mutation");return e[4]=f,e[5]=_.wlc(h,a,d),e[6]=_.vlc(b,a,k,c,d,"find_by_ids_batch"),
e[7]=_.vlc(b,a,k,c,d,"xd4_batch"),e[8]=_.vlc(b,a,k,c,d,"xd4_batch_one",1),e};bBc=function(a){return a.nextPageToken?a.nextPageToken:a.continuationToken?a.continuationToken:""};cBc=function(a){var b={};return b.parentId=a.Ik(),b};dBc=function(a){var b={};_.ee(_.Og(a.getTitle()))||(b.title=a.getTitle());_.Jmc(b,_.Qd(a,3));_.Q(a,8)&&(b.description="",a={},b.labels=(a.starred=!1,a));return b};
eBc=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());null!=_.B(a,3)&&(b.workspaceToken=_.B(a,3));return b};fBc=function(a){var b={};b.sourceIds=_.Qd(a.request,1);b.destinationFolderId=_.B(a.request,2);a.pageToken&&(b.continuationToken=a.pageToken);return b};
gBc=function(a){var b={},c={};_.ee(_.Og(a.getTitle()))||(b.title=a.getTitle());null!=a.Fe()&&(b.description=a.Fe());null!=_.Q(a,4)&&(c.starred=_.Q(a,4));null!=a.Th()&&(c.trashed=a.Th());_.ee(_.Og(a.getMimeType()))||(b.mimeType=a.getMimeType());"number"===typeof _.B(a,7)&&(b.modifiedDate=_.pic(_.njc(_.B(a,7)||0)));null!=_.Q(a,11)&&(c.restricted=_.Q(a,11));_.Pa(c)&&(b.labels=c);null!=a.Vi()&&(b.folderColor=a.Vi());null!=_.Q(a,16)&&(b.subscribed=_.Q(a,16));null!=_.Q(a,40)&&(c={},b.linkShareMetadata=
(c.securityUpdateEnabled=_.Q(a,40),c));if(c=_.C(a,_.Zk,25)){b.contentRestrictions=[];var d={};null!=_.Q(c,1)&&(d.readOnly=_.Q(c,1));null!=_.B(c,2)&&(d.reason=_.B(c,2));b.contentRestrictions.push(d)}_.Jmc(b,_.Qd(a,8));return b};hBc=function(a){var b={};null!=_.Q(a,3)&&(b.pinned=_.Q(a,3));return b};
iBc=function(a){var b={};null!=a.getTitle()&&(b.name=a.getTitle());if(null!=_.B(a,3))b.backgroundImageId=_.B(a,3);else{var c=_.B(a,6);null!=c&&(c=c.toString(16),b.colorRgb="#"+(0,_.Lg)("0",6-c.length)+c);c=_.C(a,_.arc,9);if(null!=c){a={};var d=c.getId();d&&(a.id=d);d=_.B(c,2);"number"===typeof d&&(a.xCoordinate=d);d=_.B(c,3);"number"===typeof d&&(a.yCoordinate=d);(c=c.Ge())&&(a.width=c);b.backgroundImageFile=a}}return b};
jBc=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());null!=a.getState()&&(a=_.Mmc[a.getState()])&&(b.state=a);return b};_.kBc=function(a){_.K.call(this,a)};_.N(_.kBc,_.K);_.kBc.prototype.O=function(){return _.B(this,1)};var lBc=function(a){_.K.call(this,a)};_.N(lBc,_.K);lBc.prototype.O=function(){return _.Q(this,1)};lBc.prototype.V=function(){return _.B(this,2)};_.pM=function(a){_.K.call(this,a)};_.N(_.pM,_.K);_.g=_.pM.prototype;_.g.getId=function(){return _.B(this,1)};
_.g.Ob=function(a){return _.y(this,1,a)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.$ra=function(){return _.B(this,3)};_.g.bz=function(){return _.B(this,4)};_.g.l$=function(){return _.C(this,lBc,6)};_.g.frb=function(){return _.C(this,_.kBc,7)};_.g.HUa=function(){return _.B(this,8)};_.g.Zra=function(){return _.Q(this,9)};_.qM=function(a){_.K.call(this,a)};_.N(_.qM,_.K);_.g=_.qM.prototype;_.g.getType=function(){return _.B(this,1)};
_.g.getId=function(){return _.B(this,2)};_.g.Ob=function(a){return _.y(this,2,a)};_.g.getTitle=function(){return _.B(this,3)};_.g.setTitle=function(a){return _.y(this,3,a)};_.g.Ld=function(){return _.B(this,5)};_.g.setSize=function(a){return _.y(this,5,a)};_.g.z9a=function(){return _.B(this,6)};_.mBc=function(a,b){return _.y(a,6,b)};_.qM.prototype.Fe=function(){return _.B(this,8)};_.qM.prototype.Il=function(a){return _.y(this,8,a)};_.qM.prototype.O=function(){return _.Q(this,9)};var cpc=[90,59,75];
_.t("sy1nx");
var nBc=function(a){_.K.call(this,a)};_.N(nBc,_.K);
var oBc=function(a){_.K.call(this,a)};_.N(oBc,_.K);oBc.prototype.getType=function(){return _.B(this,1)};var pBc=function(a){var b=new oBc;return _.y(b,1,a)},qBc=function(a,b){return _.J(a,2,b)};oBc.prototype.ny=function(){return _.B(this,3)};oBc.prototype.Ry=function(a){return _.y(this,3,a)};oBc.prototype.Ki=function(){return _.B(this,4)};oBc.prototype.setPosition=function(a){return _.y(this,4,a)};
var rM=function(a){_.K.call(this,a)};_.N(rM,_.K);rM.prototype.getType=function(){return _.B(this,1)};var rBc=function(a){var b=new rM;return _.y(b,1,a)};rM.prototype.jn=function(){return _.C(this,IL,2)};var sBc=function(a,b){return _.J(a,2,b)};rM.prototype.ny=function(){return _.B(this,3)};rM.prototype.Ry=function(a){return _.y(this,3,a)};rM.prototype.Ki=function(){return _.B(this,4)};rM.prototype.setPosition=function(a){return _.y(this,4,a)};
var sM=function(a){_.K.call(this,a)};_.N(sM,_.K);sM.prototype.getType=function(){return _.B(this,1)};var tBc=function(a){var b=new sM;return _.y(b,1,a)};sM.prototype.jn=function(){return _.C(this,_.jG,2)};var uBc=function(a,b){return _.J(a,2,b)};sM.prototype.ny=function(){return _.B(this,3)};sM.prototype.Ry=function(a){return _.y(this,3,a)};sM.prototype.Ki=function(){return _.B(this,4)};sM.prototype.setPosition=function(a){return _.y(this,4,a)};
var vBc=function(a){_.K.call(this,a)};_.N(vBc,_.K);vBc.prototype.Bb=function(){return _.B(this,1)};vBc.prototype.Bc=function(a){return _.y(this,1,a)};vBc.prototype.sr=function(){return _.C(this,_.HL,2)};
var xBc=function(a){_.K.call(this,a,-1,wBc)};_.N(xBc,_.K);xBc.prototype.Bb=function(){return _.B(this,1)};xBc.prototype.Bc=function(a){return _.y(this,1,a)};xBc.prototype.Uj=function(){return _.B(this,3)};var wBc=[2];
var yBc=function(a){_.K.call(this,a)};_.N(yBc,_.K);yBc.prototype.ld=function(){return _.C(this,mL,1)};yBc.prototype.Vn=function(){return _.B(this,2)};
var zBc=function(a){_.K.call(this,a)};_.N(zBc,_.K);_.g=zBc.prototype;_.g.Bb=function(){return _.B(this,1)};_.g.Bc=function(a){return _.y(this,1,a)};_.g.sr=function(){return _.C(this,_.HL,2)};_.g.Uj=function(){return _.B(this,3)};_.g.zh=function(){return _.B(this,4)};
var tM=function(a){_.K.call(this,a)};_.N(tM,_.K);tM.prototype.Bb=function(){return _.B(this,1)};tM.prototype.Bc=function(a){return _.y(this,1,a)};tM.prototype.Uj=function(){return _.B(this,3)};
var ABc=function(a){_.K.call(this,a)};_.N(ABc,_.K);_.g=ABc.prototype;_.g.Bb=function(){return _.B(this,1)};_.g.Bc=function(a){return _.y(this,1,a)};_.g.Uj=function(){return _.B(this,2)};_.g.ELa=function(){return _.C(this,_.lp,3)};_.g.getKey=function(){return _.C(this,_.Rb,4)};_.g.ht=function(){return _.P(this,4)};
var CBc=function(a){_.K.call(this,a,-1,void 0,BBc)};_.N(CBc,_.K);CBc.prototype.getKey=function(){return _.B(this,1)};CBc.prototype.ht=function(){return _.P(this,1)};var EBc=function(a){_.K.call(this,a,-1,DBc)};_.N(EBc,_.K);var BBc=[[2,4,6,10],[3,5,7,8,9]],DBc=[1];
var FBc=function(a){_.K.call(this,a)};_.N(FBc,_.K);
var uM=function(a){_.K.call(this,a,-1,GBc)};_.N(uM,_.K);uM.prototype.Bb=function(){return _.B(this,1)};uM.prototype.Bc=function(a){return _.y(this,1,a)};uM.prototype.O=function(){return _.Rj(this,wL,2)};var HBc=function(a,b){return _.Mj(a,2,b)};uM.prototype.Uj=function(){return _.B(this,3)};var GBc=[2];
var IBc=function(a){_.K.call(this,a)};_.N(IBc,_.K);IBc.prototype.Bb=function(){return _.B(this,1)};IBc.prototype.Bc=function(a){return _.y(this,1,a)};IBc.prototype.O=function(){return _.C(this,wL,2)};IBc.prototype.Uj=function(){return _.B(this,3)};
var JBc=function(a){_.K.call(this,a)};_.N(JBc,_.K);JBc.prototype.my=function(){return _.B(this,2)};
var LBc=function(a){_.K.call(this,a,-1,KBc)};_.N(LBc,_.K);LBc.prototype.Bb=function(){return _.B(this,1)};LBc.prototype.Bc=function(a){return _.y(this,1,a)};LBc.prototype.$i=function(){return _.Rj(this,_.m7a,2)};LBc.prototype.uq=function(a,b){return _.Tj(this,2,a,_.m7a,b)};var KBc=[2];
var NBc=function(a){_.K.call(this,a,-1,MBc)};_.N(NBc,_.K);NBc.prototype.Bb=function(){return _.B(this,1)};NBc.prototype.Bc=function(a){return _.y(this,1,a)};NBc.prototype.kl=function(){return _.Rj(this,rM,2)};var MBc=[2];
_.PBc=function(a){_.K.call(this,a,-1,OBc)};_.N(_.PBc,_.K);var OBc=[1];
var vM=function(a){_.K.call(this,a,-1,QBc)},TBc,UBc;_.N(vM,_.K);vM.prototype.Vn=function(){return _.B(this,1)};var RBc=function(a,b){return _.y(a,1,b)},SBc=function(a,b){return _.y(a,2,b)};vM.prototype.Bb=function(){return _.B(this,3)};vM.prototype.Bc=function(a){return _.y(this,3,a)};TBc=function(a,b){return _.y(a,4,b)};UBc=function(a,b){return _.Mj(a,5,b)};_.VBc=function(a){_.K.call(this,a)};_.N(_.VBc,_.K);_.VBc.prototype.$b=function(){return _.B(this,2)};_.XBc=function(a){_.K.call(this,a,-1,WBc)};
_.N(_.XBc,_.K);var YBc=function(a,b){return _.y(a,1,b)},ZBc=function(a,b){return _.y(a,2,b)},$Bc=function(a,b){return _.Mj(a,3,b)},QBc=[5],WBc=[3];
_.wM=function(a){_.K.call(this,a,-1,aCc)};_.N(_.wM,_.K);_.wM.prototype.HV=function(){return _.Rj(this,_.fG,2)};_.wM.prototype.ve=function(){return _.C(this,_.rf,3)};var aCc=[1,2];
_.xM=function(a){_.K.call(this,a)};_.N(_.xM,_.K);_.xM.prototype.Bb=function(){return _.B(this,1)};_.xM.prototype.Bc=function(a){return _.y(this,1,a)};_.xM.prototype.vf=function(){return _.C(this,_.xB,2)};_.bCc=function(a,b){return _.J(a,2,b)};_.xM.prototype.Uj=function(){return _.B(this,3)};
var cCc=function(a){_.K.call(this,a)};_.N(cCc,_.K);cCc.prototype.Bb=function(){return _.B(this,1)};cCc.prototype.Bc=function(a){return _.y(this,1,a)};
var eCc=function(a){_.K.call(this,a,-1,dCc)};_.N(eCc,_.K);eCc.prototype.Bb=function(){return _.B(this,1)};eCc.prototype.Bc=function(a){return _.y(this,1,a)};eCc.prototype.kl=function(){return _.Rj(this,sM,2)};var dCc=[2];
var fCc=function(a){_.K.call(this,a)};_.N(fCc,_.K);fCc.prototype.getType=function(){return _.B(this,1)};var gCc=function(a){var b=new fCc;return _.y(b,1,a)};fCc.prototype.ny=function(){return _.B(this,3)};fCc.prototype.Ry=function(a){return _.y(this,3,a)};fCc.prototype.Ki=function(){return _.B(this,4)};fCc.prototype.setPosition=function(a){return _.y(this,4,a)};
var iCc=function(a){_.K.call(this,a,-1,hCc)};_.N(iCc,_.K);iCc.prototype.Bb=function(){return _.B(this,1)};iCc.prototype.Bc=function(a){return _.y(this,1,a)};iCc.prototype.Uj=function(){return _.B(this,3)};var hCc=[2];
_.jCc=function(a){_.K.call(this,a)};_.N(_.jCc,_.K);_.jCc.prototype.getId=function(){return _.B(this,1)};_.jCc.prototype.Ob=function(a){return _.y(this,1,a)};_.jCc.prototype.ve=function(){return _.C(this,_.rf,4)};
var lCc=function(a){_.K.call(this,a,-1,kCc)};_.N(lCc,_.K);lCc.prototype.Bb=function(){return _.B(this,1)};lCc.prototype.Bc=function(a){return _.y(this,1,a)};lCc.prototype.Uj=function(){return _.B(this,3)};var kCc=[2];
_.yM=function(a){_.K.call(this,a)};_.N(_.yM,_.K);_.yM.prototype.getType=function(){return _.B(this,1)};var mCc=function(a){var b=new _.yM;return _.y(b,1,a)},nCc=function(a,b){return _.J(a,2,b)};_.yM.prototype.ny=function(){return _.B(this,3)};_.yM.prototype.Ry=function(a){return _.y(this,3,a)};_.yM.prototype.Ki=function(){return _.B(this,4)};_.yM.prototype.setPosition=function(a){return _.y(this,4,a)};
_.Poc=function(a){_.K.call(this,a)};_.N(_.Poc,_.K);_.g=_.Poc.prototype;_.g.getItem=function(){return _.C(this,_.cl,1)};_.g.setItem=function(a){return _.J(this,1,a)};_.g.getError=function(){return _.C(this,_.mc,2)};_.g.Oe=function(a){return _.J(this,2,a)};_.g.Yn=function(){return _.P(this,2)};_.g.Xs=function(){return _.B(this,4)};
var pCc=function(a){_.K.call(this,a,-1,oCc)};_.N(pCc,_.K);var oCc=[2,4];
var rCc=function(a){_.K.call(this,a,-1,qCc)};_.N(rCc,_.K);var qCc=[1];
var tCc=function(a){_.K.call(this,a,-1,sCc)};_.N(tCc,_.K);tCc.prototype.Bb=function(){return _.B(this,1)};tCc.prototype.Bc=function(a){return _.y(this,1,a)};tCc.prototype.Uj=function(){return _.B(this,3)};var sCc=[2];
var vCc=function(a){_.K.call(this,a,-1,uCc)};_.N(vCc,_.K);vCc.prototype.Bb=function(){return _.B(this,1)};vCc.prototype.Bc=function(a){return _.y(this,1,a)};vCc.prototype.Uj=function(){return _.B(this,3)};var uCc=[2];
var wCc=function(a){_.K.call(this,a)};_.N(wCc,_.K);
var yCc=function(a){_.K.call(this,a,-1,xCc)};_.N(yCc,_.K);yCc.prototype.O=function(){return _.B(this,2)};var zCc=function(a,b){_.y(a,2,b)},xCc=[1];
var ACc=function(a){_.gi.call(this,"Ob");this.dataType=a};_.N(ACc,_.gi);
var BCc=function(a,b){_.gi.call(this,"Pb");this.vOa=a;this.Fta=b};_.N(BCc,_.gi);
var CCc=function(){};_.g=CCc.prototype;_.g.zM=function(a,b){return vtc(utc(1),a).setPosition(b)};_.g.yM=function(a,b){return vtc(utc(2).setPosition(b),a)};_.g.GE=function(a,b,c){return vtc(utc(3).Ry(b).setPosition(c),a)};_.g.pQ=function(a,b){return vtc(utc(4),a).setPosition(b)};_.g.YM=function(a){return _.C(a,tL,2)};
var DCc=function(){_.yy.call(this,new CCc,function(a){return a&&a.getName()})};_.N(DCc,_.yy);
var zM=function(a,b,c){c=void 0===c?50:c;_.qi.call(this);var d=this;this.W=a;this.connectionState=b;this.limit=c;this.active=!1;this.status=6;this.va=pnc(new _.RK,[1]);this.ha=this.H=!1;this.Pc=new _.Je(this);this.Ma(this.Pc);_.Ae(this,function(){d.active=!1;d.Pc.removeAll()})};_.N(zM,_.qi);_.g=zM.prototype;_.g.vi=function(){return String(_.Ca(this))};_.g.Te=function(){return this.W.Te()||this.connectionState.Te()};
_.g.activate=function(){var a=this;this.active||(this.active=!0,this.Pc.listen(this.W,"Fb",function(){return void a.Rt()}),this.Pc.listen(this.connectionState,[].concat(_.ld(Object.values(_.zB))),function(){return void a.Rt()}),this.W.Te()?this.Pc.Zc(this.W,"Fb",function(b){b.Te()||(a.PG(),a.dispatchEvent(new _.gi(_.lq)))}):this.connectionState.Te()?this.Pc.Zc(this.connectionState,[_.zB.wL,_.zB.nU],function(){a.PG();a.dispatchEvent(new _.gi(_.lq))}):(this.PG(),this.dispatchEvent(new _.gi(_.lq))))};
_.g.PG=function(){};_.g.Er=function(a){var b=this;if(this.Nj()){var c=this.limit;this.limit+=a||50;this.$b()>c&&this.Rt();this.W.Te()?this.Pc.Zc(this.W,"Fb",function(d){d.Te()||b.ZO()}):this.ZO()}};_.g.BL=function(){this.Te()&&!this.H?this.status=2:this.status=this.H?1:6};_.g.Bb=function(){return this.status};_.g.Jq=function(){return this.va};_.g.handleError=function(a){this.dispatchEvent(new _.oc(a))};_.g.kW=function(){this.dispatchEvent(new _.gi(_.PEa))};_.g.Nj=function(){return!this.H||this.ha};
_.g.refresh=function(){this.H=this.active=!1;this.status=6;this.Pc.removeAll();this.activate()};_.g.ZO=function(){};
var ECc=function(a,b,c,d,e){zM.call(this,a,b,e.xi()||void 0);this.ka=c;this.request=e;this.O=[];this.data=[];this.changed=!1;this.V=new DCc;this.ma=d};_.N(ECc,zM);_.g=ECc.prototype;_.g.PG=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.gi(_.Ac,this))};_.g.getData=function(){return ztc(new yL,this.data).Bc(this.status)};_.g.ur=function(){var a=this.V.Hz(this.O,this.data);this.O=this.data;var b=(new xtc).Bc(this.status);return _.Mj(b,2,a)};
_.g.ZO=function(){this.ma(this.vi(),this.limit)};_.g.Rt=function(){if(this.active){var a=this.status;this.BL();if(this.changed||a!==this.status)this.changed=!1,FCc(this)}};_.g.$b=function(){return this.data.length};_.g.od=function(){return this.request};_.g.update=function(a){var b=a.response;if(this.status!==b.Bb()||hL(0,this.data,b.O()))this.H=!0,this.status=b.Bb(),this.data=b.O(),this.ha=a.H,FCc(this)};
var FCc=function(a){a.log("Livelist "+a.vi()+" returning "+a.data.length+" for "+(a.request.Ac()+". Status: ")+(_.Za(esc)[a.Bb()]+"."));a.dispatchEvent(new _.gi(_.Ac,a))};ECc.prototype.rB=function(a){this.dispatchEvent(new _.oc(new _.nc("Error occurred running a category metadata query after "+a.H+" retries.",a.error)))};ECc.prototype.log=function(a){this.ka.info("drive.ds.sync.CategoryMetadataLiveList",a)};
var GCc=function(a,b,c,d,e,f,h){_.oL.call(this,a,b,c,e,f,d);this.Ad=h;this.W="drive.ds.sync.ViewCacheLiveList";this.ta=null;this.ma=void 0};_.N(GCc,_.oL);GCc.prototype.getData=function(){this.H=this.items;var a=Hqc((new _.mB).Bc(this.Bb()).Pw(this.items),this.Nj());a=_.J(a,7,this.ta).sP(this.suggestionSessionId).Ei(this.Le);return _.Jj(a,18,this.ma)};
GCc.prototype.update=function(a){if(hsc(this,a)&&(isc(this,a),this.ta=a.W5(),this.suggestionSessionId=a.Wf(),this.ma=a.aka(),gsc(this),this.suggestionSessionId&&zwc(this.V)&&(a=this.Ad.H(106027)))){var b=_.C(_.sK(a),vrc,20);if(!b){b=new vrc;var c=_.sK(a);_.J(c,20,b)}_.y(b,1,this.suggestionSessionId);a.uj()}};
var HCc=function(a,b){var c={};a=_.Ma(a,function(d){return!!d});b=_.Ma(b,function(d){return!!d});_.La(a,function(d,e){var f=b[e];f?_.Vj(d,f)||(d=uBc(tBc(4),f),c[e]=d):(d=uBc(tBc(2),d),c[e]=d)});_.La(b,function(d,e){a[e]||(d=uBc(tBc(1),d),c[e]=d)});return c},ICc=function(a,b){return _.Pa(a)!==_.Pa(b)||!_.Ta(HCc(a,b))};
var JCc=function(a,b){_.qi.call(this);this.request=b;this.active=!1;this.status=6;this.H={};this.data={}};_.N(JCc,_.qi);_.g=JCc.prototype;_.g.activate=function(){this.active||(this.active=!0,_.Ta(this.data)&&6===this.status||this.dispatchEvent(new _.gi(_.Ac,this)))};_.g.Bb=function(){return this.status};_.g.Jq=function(){return new _.RK};_.g.getData=function(){this.H=this.data;var a=(new _.wK).Bc(this.status);_.La(this.data,function(b,c){a.KT().set(c,b||new _.jG)});return a};
_.g.ur=function(){var a=HCc(this.H,this.data);this.H=this.data;var b=(new cCc).Bc(this.status);_.La(a,function(c,d){_.Aj(b,2,void 0,sM).set(d,c)});return b};_.g.eT=function(){throw Error("bg");};_.g.vi=function(){return String(_.Ca(this))};_.g.od=function(){return this.request};_.g.update=function(a){var b={};a.KT().forEach(function(c,d){c||(c=nzc(d));b[d]=c});if(this.status!==a.Bb()||ICc(this.H,b))this.status=a.Bb(),this.data=b,this.active&&this.dispatchEvent(new _.gi(_.Ac,this))};
_.g.rB=function(a){this.dispatchEvent(new _.oc(new _.nc("Error occurred running a Workspace find by id after "+a.H+" retries.",a.error)))};_.g.kW=function(){this.dispatchEvent(new _.gi(_.PEa))};
var KCc=function(a,b,c,d,e,f){_.oL.call(this,a,b,c,d,e,f);this.ma=[];this.W="drive.ds.sync.PeoplePredictLiveList"};_.N(KCc,_.oL);KCc.prototype.getData=function(){this.H=this.items;var a=(new _.vK).Bc(this.Bb()).Pw(this.items);var b=this.Nj();a=_.y(a,4,b);return psc(a,this.ma).sP(this.suggestionSessionId).Ei(this.Le)};KCc.prototype.update=function(a){hsc(this,a)&&(isc(this,a),this.ma=_.Rj(a,_.Gk,6),this.suggestionSessionId=a.Wf(),gsc(this))};
var LCc=function(){};_.g=LCc.prototype;_.g.zM=function(a,b){return sBc(rBc(1),a).setPosition(b)};_.g.yM=function(a,b){return sBc(rBc(2).setPosition(b),a)};_.g.GE=function(a,b,c){return sBc(rBc(3).Ry(b).setPosition(c),a)};_.g.pQ=function(a,b){return sBc(rBc(4),a).setPosition(b)};_.g.YM=function(a){return a.jn()};
var MCc=function(){_.yy.call(this,new LCc,function(a){return a&&a.fq()})};_.N(MCc,_.yy);
var NCc=function(a,b,c){zM.call(this,a.Gj(),a.lk(),b.xi()||10);this.request=b;this.O=[];this.data=[];this.changed=!1;this.V=new MCc;this.suggestionSessionId=null;this.ka=c};_.N(NCc,zM);_.g=NCc.prototype;_.g.PG=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.gi(_.Ac,this))};_.g.getData=function(){this.O=this.data;return tvc(svc((new JL).Bc(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.ur=function(){var a=this.V.Hz(this.O,this.data);this.O=this.data;var b=(new NBc).Bc(this.status);return _.Mj(b,2,a)};_.g.ZO=function(){};_.g.Rt=function(){var a=this.status;this.BL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.gi(_.Ac,this))};_.g.$b=function(){return this.data.length};_.g.od=function(){return this.request};
_.g.update=function(a){if(this.status!==a.Bb()||hL(0,this.data,a.kl())){this.changed=this.H=!0;this.data=a.kl();if(a=a.Wf())this.suggestionSessionId=a;this.Rt()}};_.g.refresh=function(){this.ka()};_.g.rB=function(a){this.dispatchEvent(new _.oc(new _.nc("Error occurred running a Suggested Workspace query after "+(a.H+" retries."),a.error)))};
var OCc=function(a,b,c){_.qi.call(this);var d=this;this.request=a;this.ka=b;this.ha=c;this.V=[];this.items=[];this.H=!1;this.status=6;this.W=pnc(new _.RK,[1]);this.O=!0;this.limit=a.xi();_.Ae(this,function(){d.H=!1;d.V=[]})};_.N(OCc,_.qi);_.g=OCc.prototype;_.g.vi=function(){return String(_.Ca(this))};_.g.activate=function(){this.H=!0;_.pa(this.items)&&6===this.status&&this.O||this.dispatchEvent(new _.gi(_.Ac,this))};_.g.od=function(){return this.request};_.g.Bb=function(){return this.status};
_.g.Jq=function(){return this.W};_.g.Nj=function(){return this.O};_.g.getData=function(){this.V=this.items;return Hqc((new _.mB).Bc(this.status).Pw(this.items),this.O)};_.g.ur=function(){var a=_.u7a().Hz(this.V,this.items),b=(new _.lI).Bc(this.status);a=_.Mj(b,2,a);this.V=this.items;return a};_.g.Er=function(a){this.H&&(this.limit+=a||20,this.ka.HF(this.vi(),this.limit))};
_.g.update=function(a){if(this.status!==a.Bb()||hL(_.u7a(),this.items,a.xd()))this.items=a.xd(),this.status=a.Bb(),_.yI(this.ha)&&(this.W=qnc(this.status,this.items)),this.O=a.fl(),this.H&&this.dispatchEvent(new _.gi(_.Ac,this))};_.g.rB=function(a){this.dispatchEvent(new _.oc(new _.nc("Error occurred running a Team Drive query after "+a.H+" retries.",a.error)))};_.g.kW=function(){this.dispatchEvent(new _.gi(_.PEa))};_.g.ru=function(){throw Error("cg");};_.g.refresh=function(){};
var PCc=function(a,b,c){_.qi.call(this);var d=this;this.context=a;this.ha=b;this.request=c;this.V=!1;this.O={};this.H={};this.status=6;this.W=pnc(new _.RK,[1]);this.context.Rf().info("drive.ds.sync.TeamDriveLiveMap","Creating TD find by ids live map: "+this.request.hn().join(", "));_.Ae(this,function(){d.V=!1;d.O=[]})};_.N(PCc,_.qi);_.g=PCc.prototype;_.g.vi=function(){return String(_.Ca(this))};
_.g.activate=function(){this.V=!0;(0<Object.values(this.H).length||6!==this.status)&&this.dispatchEvent(new _.gi(_.Ac,this))};_.g.od=function(){return this.request};_.g.getData=function(){this.O=this.H;var a=new _.uK;a.Bc(this.status);a.map=this.H;return a};_.g.ur=function(){var a=Nnc(this.O,this.H),b=new nsc;b.Bc(this.status);b.map=a;this.O=this.H;return b};_.g.Bb=function(){return this.status};_.g.Jq=function(){return this.W};
_.g.eT=function(a){var b=this.request;this.request=a;this.ha.WY(this.vi(),b,a)};_.g.update=function(a){if(this.status!==a.Bb()||Onc(this.H,a.eq()))this.status=a.Bb(),this.H=a.eq(),_.yI(this.context.Lc)&&(this.W=qnc(this.status,Object.values(this.H))),this.V&&this.dispatchEvent(new _.gi(_.Ac,this))};_.g.rB=function(a){this.dispatchEvent(new _.oc(new _.nc("Error occurred running a team drive find-by-IDs query after "+a.H+" retries.",a.error)))};_.g.kW=function(){this.dispatchEvent(new _.gi(_.PEa))};
var QCc=function(){};_.g=QCc.prototype;_.g.zM=function(a,b){return uBc(tBc(1),a).setPosition(b)};_.g.yM=function(a,b){return uBc(tBc(2).setPosition(b),a)};_.g.GE=function(a,b,c){return uBc(tBc(3).Ry(b).setPosition(c),a)};_.g.pQ=function(a,b){return uBc(tBc(4),a).setPosition(b)};_.g.YM=function(a){return a.jn()};
var RCc=function(){_.yy.call(this,new QCc,function(a){return a&&a.getId()})};_.N(RCc,_.yy);
var SCc=function(a,b,c){zM.call(this,a.Gj(),a.lk(),b.xi()||10);this.request=b;this.ka=c;this.O=[];this.data=[];this.changed=!1;this.V=new RCc};_.N(SCc,zM);_.g=SCc.prototype;_.g.PG=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.gi(_.Ac,this))};_.g.getData=function(){this.O=this.data;return rxc((new YL).Bc(this.status),this.data.slice(0))};_.g.ur=function(){var a=this.V.Hz(this.O,this.data);this.O=this.data;var b=(new eCc).Bc(this.status);return _.Mj(b,2,a)};
_.g.ZO=function(){this.ka.HF(this.vi(),this.limit)};_.g.Rt=function(){var a=this.status;this.BL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.gi(_.Ac,this))};_.g.$b=function(){return this.data.length};_.g.od=function(){return this.request};_.g.update=function(a){var b=a.response;if(this.status!==b.Bb()||hL(0,this.data,b.kl()))this.H=!0,this.status=b.Bb(),this.data=b.kl(),this.ha=a.H,this.dispatchEvent(new _.gi(_.Ac,this))};
_.g.rB=function(a){this.dispatchEvent(new _.oc(new _.nc("Error occurred running a Workspace query after "+a.H+" retries.",a.error)))};
var TCc=function(a,b){this.context=a;this.ha=b;this.H={};this.ka={};this.ma={};this.V=null;this.W=a.uf;this.O=this.context.lfa;this.ta=this.context.Z5};_.g=TCc.prototype;_.g.Dwa=function(a){var b=this,c=new GCc(this.context.Bm,this.context.cQ,this.context.Rf(),this.context.Lc,function(d,e){b.HF(d,e)},a,this.context.Hk());this.ii(c);_.Ae(c,function(){b.ak(c)});return c};
_.g.Gwa=function(a){var b=this,c=new KCc(this.context.Bm,this.context.cQ,this.context.Rf(),function(d,e){b.HF(d,e)},a,this.context.Lc);this.ii(c);_.Ae(c,function(){b.ak(c)});return c};_.g.Awa=function(a){var b=this,c=new qL(this.context.Lc,this.context.Bm,this.context.Rf(),this.context.LZ,this.WY.bind(this),a);this.ii(c);_.Ae(c,function(){b.ak(c)});return c};_.g.Jwa=function(a){var b=this,c=new OCc(a,this,this.context.Lc);this.ii(c);_.Ae(c,function(){b.ak(c)});return c};
_.g.Kwa=function(a){var b=this,c=new PCc(this.context,this,a);this.ii(c);_.Ae(c,function(){b.ak(c)});return c};_.g.Nwa=function(a){var b=this,c=new SCc(this.context,a,this);this.ii(c);_.Ae(c,function(){b.ak(c)});return c};_.g.Hwa=function(a){var b=this,c=new NCc(this.context,a,function(){if(a instanceof _.Zz){var d=UCc(b.context);Vyc(d,d.getKey(a)).refresh()}});this.ii(c);_.Ae(c,function(){b.ak(c)});return c};
_.g.Owa=function(a){var b=this,c=new JCc(this.context,a);this.ii(c);_.Ae(c,function(){b.ak(c)});return c};_.g.wwa=function(a){var b=this,c=new ECc(this.context.Gj(),this.context.lk(),this.context.Rf(),function(d,e){b.HF(d,e)},a);this.ii(c);_.Ae(c,function(){b.ak(c)});return c};
_.g.ii=function(a){var b=a.vi();this.H[b]=a;this.ha.create(b,a.od());if(a.od()instanceof _.aA)a=this.O.ii(b,a.od());else if(a.od()instanceof _.kG)a=Tyc(this.O,b,a.od());else if(a.od()instanceof _.Zz)a=UCc(this.context).ii(b,a.od());else if(a.od()instanceof _.vG)a=this.ta.ii(b,a.od());else{var c=a.od(),d=pL(this.context.Bm,c,2);this.log("Registering LiveList "+a.vi()+" "+d);a=this.W.ii(b,c)}"boolean"===typeof a&&axc(this.ha,b,a)};
_.g.ak=function(a){if(a.od()instanceof _.aA)this.O.ak(a.vi(),a.od());else if(a.od()instanceof _.kG)Uyc(this.O,a.vi(),a.od());else if(a.od()instanceof _.Zz)UCc(this.context).ak(a.vi(),a.od());else if(a.od()instanceof _.vG)this.ta.ak(a.vi(),a.od());else{var b=a.od(),c=pL(this.context.Bm,b,2);this.log("Unregistering LiveList "+a.vi()+" "+c);this.W.ak(a.vi(),b)}UL(this.ha,a.vi(),4);delete this.H[a.vi()]};_.g.WY=function(a,b,c){this.W.ak(a,b);this.W.ii(a,c)};
_.g.HF=function(a,b){var c=VCc(this,a).od();c.ri(b);c instanceof _.aA?this.O.ii(a,c):c instanceof _.kG?Tyc(this.O,a,c):c instanceof _.vG?this.ta.ii(a,c):this.W.ii(a,c)};_.g.tO=function(a,b){var c=this.H[a]&&this.H[a].od();c&&(c instanceof _.ef?wnc(c.O(),b.xd().filter(function(d){return!PL(d)})):c instanceof _.tA&&wnc(c.O(),Object.values(b.eq()).filter(function(d){return d&&!PL(d)})));this.ka[a]=b;this.V||(this.V=_.si(this.Q8,50,this))};
_.g.KX=function(a,b){this.ma[a]=b;this.V||(this.V=_.si(this.Q8,50,this))};_.g.jA=function(a){(a=this.H[a])&&a.kW()};_.g.Q8=function(){_.ti(this.V);this.V=null;var a=Object.keys(this.ka),b=Object.keys(this.ma);a=_.m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=this.ka[c];if(d){delete this.ka[c];var e=this.H[c];e&&(dxc(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])UL(this.ha,a,3),d.rB(c)};
_.g.oka=function(a){return VCc(this,a).od()};var VCc=function(a,b){if(!a.H[b])throw Error("dg`"+b);return a.H[b]};TCc.prototype.log=function(a,b){this.context.Rf().log("drive.ds.sync.cache.LocalLiveRequestManager",a,void 0===b?"info":b)};
var AM=function(a,b){_.qi.call(this);this.O=a;this.request=b;this.ke=_.Sh();this.complete=!1;this.H=""};_.N(AM,_.qi);AM.prototype.start=function(){var a=this;this.O.then(function(b){return b.Re(a.request)}).then(this.W.bind(this)).Fg(this.handleError.bind(this));return this.ke.promise};AM.prototype.W=function(a){this.H=a.H;this.dispatchEvent(new BCc(0,this.H));WCc(this)};
var WCc=function(a){_.n.setTimeout(function(){a.O.then(function(b){return b.Re(new _.Pgc(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 pCc;c=_.Jj(c,2,b.V);c=_.y(c,3,a.H);c=_.y(c,5,b.ka);c=_.y(c,6,b.ha);c=_.y(c,7,b.gA);c=_.y(c,8,b.H);b=_.Mj(c,4,b.W);a.ke.resolve(b)}else b=_.FI(_.fq(_.eq(new _.mc,"Export failed for request "+a.H+": "+b.status),JSON.stringify(b)),8),a.handleError(b);a.dispose()}else a.dispatchEvent(new BCc(b.O,
a.H)),WCc(a)}).Fg(function(b){a.handleError(b)})},5E3)};AM.prototype.cancel=function(){var a=this;this.O.then(function(b){return b.Re(new _.Ogc(a.H))}).then(this.V.bind(this)).Fg(this.handleError.bind(this))};AM.prototype.V=function(){if(!this.complete){var a=new pCc;a=_.y(a,3,this.H);a=_.y(a,1,!0);this.ke.resolve(a);this.complete=!0;this.dispose()}};AM.prototype.handleError=function(a){this.complete=!0;this.ke.reject(_.UI(a));this.dispose()};
var XCc=function(){_.gi.call(this,"VbxEwf")};_.N(XCc,_.gi);
var YCc=function(a,b){this.context=a;this.H=null;this.tc=b||null};_.g=YCc.prototype;_.g.La=function(){return _.C(this.context.Lc,_.PI,58)};_.g.getContext=function(){return this.context};_.g.Gz=function(){return this.context.PA.Gz(this.H)};_.g.Rf=function(){return this.context.Rf()};_.g.OM=function(a){return _.Zh(this.context.uf.lm.H(a))};_.g.cR=function(){return _.Zh(this.context.PA.cR())};
_.g.V4=function(a,b,c){var d=new _.Uh;if(_.C(a,_.zI,3)||_.C(a,_.KJ,4)||_.C(a,_.EK,5)||_.C(a,_.HJ,6)||_.C(a,_.iJ,7)||_.C(a,_.bJ,8)||_.C(a,_.fJ,9)||_.C(a,_.JI,10)){var e=Ywc(a);this.context.Nm().then(function(f){return f.Re(e,{I5a:b,J5a:c})}).then(this.A9a.bind(this,d),d.Hd,d);return d}throw Error("eg");};
_.g.A9a=function(a,b){var c=[],d="";if(b instanceof _.FK){c=b.ld().xd();var e=_.B(b,2);d=b.Vn()}else if(b instanceof _.MJ)b.getItem()&&c.push(b.getItem()),e=b.WM();else throw Error("fg");a.callback({items:c,hia:e,pageToken:d})};_.g.Apa=function(){var a=this.context.Lc,b=a.$f();a="email:"+_.tI(a).getEmail().replace(/@.*$/,"");_.y(b,13,a)};_.g.Iha=function(){this.context.Ls.hS();var a=this.context.Lc;MAc(_.eK(_.tI(a)),_.fK(a),this.context.Rf()).Fg(function(){})};
_.g.c9=function(){return _.Pfc[_.yj(this.context.Lc.$f(),8,0)]};_.g.fda=function(){this.context.RF.H=new Bzc(_.Pg().substring(0,8))};_.g.OS=function(){var a=this.context.RF.oN(),b=null;a&&(b=Dzc(this.context.RF),b={traceId:a,spanRecs:b});a=this.context.RF;a.H=null;a.CY=[];return _.Zh(b)};_.g.oN=function(){return _.Zh(this.context.RF.oN())};
_.g.getState=function(a){var b=this.context.Kj,c=b.H.bind(b);b={};b.b=this.context.Lc.Ji();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.uf.lm.Ld();c=this.context.uf.Xr;var d=c.H;d&&(b.cs_sutd=d.V7,b.cs_ss=d.Ld());b.cs_ch=Txc(c).length;b.cs_td=c.bW().length;(c=this.context.a6)&&(b.t_cps=c.JVa().getStats().join(","));b.t_id=ZCc(this.context);
var e=[];$Cc(this.context.bR()).forEach(function(f,h){e.push(h+":"+f.join(";"))});b.t_ct=e.join(",");b.n_a=this.context.cz?this.context.lk().isConnected():this.context.wI.xB();b.n_o=this.context.cz?this.context.lk().Te():this.context.Gj().Te();b.n_csm=!!this.context.cz;a&&(b.csw_cc=_.Pa(a.channels),b.csw_ac=a.O,b.csw_mcc=a.H);return _.Zh(JSON.stringify(b))};_.g.$oa=function(){this.tc&&(this.tc.dispatchEvent(new XCc),this.tc.Au())};
_.g.Kl=function(a){var b=this.context.cz;b&&a!==b.V&&(b.V=a,b.reset(),a?b.state.update(3):_.xkc(b))};
var cDc=function(a,b){this.context=a;this.Ng=b;this.H=_.Bgc(_.mK(this.Ng),aDc);this.O=_.Bgc(_.mK(this.Ng),bDc)};
cDc.prototype.nl=function(a){var b=this,c=this.context.UP.vf().vf(),d=(c=c?c.getUser():null)?c.getId():null,e={};a.forEach(function(h){_.Fgc(h);var k=h.getId(),l=b.context.Wn();_.$hc(h,3);_.MI(h,5);var p=Tnc(h,!0);h.getCapabilities()||_.ZJ(h,new _.Xk);_.Q(p,2)&&((p=h.jk())&&p.length?_.y(h,46,p[0]):(_.YJ(h,[l]),_.y(h,46,l)),l=h.tq(),_.y(h,12,l),l=new _.Gk,l.Ob(d),_.y(l,6,1),_.lhc(l,!0),_.Thc(h,l),_.Shc(h,[l]),_.XVb(h,1));e[k]=h});a=Object.keys(e);c=this.context.uf;var f=hwc(c.lm,a);_.La(f,function(h,
k){WK(h.getItem(),e[k],b.H);(b.context.Gj().Te()||b.context.lk().Te()||3===h.getItem().gv())&&WK(h.getItem(),e[k],b.O);_.Ua(e,k)});_.La(e,function(h){_.$k(h.Lm())&&(f[h.getId()]=new NL(h))});dDc(c,Object.values(f))};
var eDc=function(a,b){var c=[];b.forEach(function(d){c.push(d.getItem())});a.nl(c)},fDc=function(a){a=a.context.uf;var b=new _.ef;b.Kl(!0);b=jwc(a.lm,b);for(var c=[],d=[],e=0;e<b.length;e++){var f=b[e].getItem();if(3===f.gv()){var h=new _.CI;_.DI(h,f.getId());_.NI(h);d.push(h)}else h=new _.Vna,_.TK(h,!1),_.y(h,2,!1),_.J(f,81,h),c.push(b[e])}dDc(a,c);a.Po(d)},aDc=[50],bDc=[12,11,10,67,68];
var gDc=function(a){this.context=a;this.H=null;this.V=!1;this.O=new cDc(a,a.Ng)};_.g=gDc.prototype;_.g.mY=function(a){this.H=a;this.V=!1;if(a){if(this.H){a=this.C9a.bind(this);var b=this.B9a.bind(this);this.log("Querying all offline items.");this.H.vV().hg(a,b);this.V||(this.H.x_((0,_.u)(this.qwb,this)),this.V=!0)}}else fDc(this.O)};_.g.C9a=function(a){this.log("Processing all offline item(s): "+a.length);this.O.nl(a);aM(this.context.Kj,"GZTDpc")};_.g.B9a=function(){this.log("Error fetching offline items.")};
_.g.qwb=function(a){this.log("Handling offline change(s): "+a.length);eDc(this.O,a)};_.g.log=function(a){this.context.Rf().info("drive.ds.sync.offline.LocalDataService",a)};
var BM=function(a){_.qi.call(this);this.context=a;this.Ba="drive.ds.sync.BaseItemService";this.Pc=new _.Je(this);this.ma=null;this.Ta=this.va=!1;var b=new gDc(a);this.context.ha=b;this.Fa=new YCc(a,this);Boc(this.Fa);(b=_.C(a.Lc,_.PI,58))&&_.S(b,1,!1);this.Ma(this.Pc);this.O=this.context.Kj;this.W=a.ifa;this.V=new TCc(a,this.W);a=this.context;b=this.V;a.W=b;a.O.resolve(b);this.rRa()};_.N(BM,_.qi);_.g=BM.prototype;_.g.rRa=function(){};
_.g.initialize=function(){var a=this;if(!this.ma){this.ma=_.Sh();var b=this.context.Hk().H(106E3);this.ma.promise.then(function(){b&&b.uj()},function(){_.CK(a.context.Hk(),181008852)});var c=_.gK(this.context.Lc)?"(coldstart) ":"";this.context.Rf().info(this.Ba,"Initializing "+c+"with client build: "+this.context.Lc.Ji());this.Pc.listen(this.context,_.yc,this.Ttb);this.Pc.listen(this.context.wI,["nb","ob"],function(d){return void a.dispatchEvent(d)});this.Pc.listen(this.context.lk(),[].concat(_.ld(Object.values(_.zB))),
function(d){return void a.dispatchEvent(d)});this.$a();this.O.start();aM(this.O,"NSockf")}return this.ma.promise};_.g.kWa=function(){this.context.Rf().info(this.Ba,"Ready to process requests.");this.va||(this.va=!0,this.ma.resolve())};_.g.Ttb=function(a){var b=a.error,c=b.Rg;c&&3===c.getType()&&!this.va?(this.va=!0,this.ma.reject(b)):this.dispatchEvent(a)};_.g.JY=function(){throw CM("teamDriveQuery");};_.g.nda=function(){throw CM("teamDriveFindByIds");};
_.g.tpa=function(){throw CM("teamDriveMovePreflight");};_.g.lFa=function(){throw CM("peoplePredictQuery");};_.g.query=function(a){xwc(this.context.Bm,a,Irc(this.context.Ng));this.kF();var b=a.clone();b=this.V.Dwa(b);this.Ta||(a=a.ve(),a&&121===_.B(a,1)||(this.Ta=!0,this.Pc.listen(b,_.Ac,this.FLa)));return b};_.g.FLa=function(a){a=a.currentTarget;if(1===a.Bb()){var b=this.O.H("W6J7De");this.Fa.H=b;this.Pc.Vc(a,_.Ac,this.FLa)}};_.g.yq=function(a){this.kF();rsc(a);return this.V.Awa(a.clone())};
_.g.Aua=function(){throw CM("activityQuery");};_.g.mva=function(){throw CM("backupsQuery");};_.g.YFa=function(){throw CM("refreshBackups");};_.g.wV=function(){throw CM("getAndroidBackupItems");};_.g.j8=function(){throw CM("deleteBackup");};_.g.oFa=function(){throw CM("permissionQuery");};_.g.U$=function(){throw CM("insertPermission");};_.g.k8=function(){throw CM("deletePermission");};_.g.qd=function(){throw CM("mutate");};_.g.VN=function(){throw CM("mutateWorkspace");};
_.g.rz=function(){throw CM("bulkMutate");};_.g.zwa=function(){throw CM("createFileUploader");};_.g.GRa=function(a){return new AM(this.context.Nm(),a)};_.g.tr=function(a){if(3===a.getType())return _.$h(this.context.Nm().then(function(b){return b.Re(a)}).then(null,_.VI));throw CM("getApps with type "+a.getType());};_.g.sr=function(){throw CM("getApp");};_.g.W$=function(){throw CM("installApp");};_.g.i8=function(){throw CM("deleteApp");};_.g.bT=function(){throw CM("updateApp");};
_.g.sN=function(){throw CM("getUserAccount");};_.g.NG=function(){throw CM("getUserPrefs");};_.g.YR=function(){throw CM("mutateUserPref");};_.g.fu=function(){throw CM("getRevisions");};_.g.bBa=function(){return!1};_.g.Kl=function(a){this.context.cz?a?_.ykc(this.context.cz,!0):this.context.lk().Te()&&this.context.cz.qM(!0).then(null,function(){}):this.context.Gj().Kl(a)};_.g.Qy=function(){throw CM("setOfflineOptIn");};_.g.mY=function(){throw CM("setLocalItemService");};_.g.kF=function(){};
_.g.$R=function(){this.context.$R();this.context.Hk().O(106006)};_.g.t9=function(){return this.Fa};_.g.jY=function(){};_.g.xB=function(){return this.context.wI.xB()};_.g.hQ=function(){return _.S(this.context.Lc.$f(),52,!1)?_.Oh(Rwc(new Qwc,0)):this.context.wI.hQ()};_.g.isConnected=function(){return 1===this.context.lk().get()};_.g.E7=function(){var a=this.context.cz;return a?a.qM():_.Oh(_.hkc(0))};_.g.sync=function(){throw CM("sync");};_.g.Au=function(){return this.context.Au()};
_.g.oba=function(){throw CM("offlineDataLoaded");};_.g.xna=function(a){return this.context.Nm().then(function(b){return b.Re(a)}).then(function(b){return b})};_.g.Ova=function(){throw CM("categoryMetadataQuery");};_.g.D7=function(){throw CM("changeCategoryLinks");};_.g.bP=function(){throw CM("updateCategoryMetadata");};_.g.IFa=function(){throw CM("publishedCategoriesQuery");};_.g.JFa=function(){throw CM("publishedCategoryQuery");};_.g.iKa=function(){throw CM("workspaceFindByIdsRequest");};
_.g.nqa=function(){throw CM("workspaceQueryRequest");};_.g.yIa=function(){throw CM("suggestedWorkspaceItemQueryRequest");};_.g.zIa=function(){throw CM("suggestedWorkspaceQueryRequest");};_.g.v_=function(){throw CM("addCacheHint");};_.g.a0=function(){throw CM("createUserFeedback");};_.g.Po=function(){throw CM("handleChanges");};var CM=function(a){return new _.nc(a+" is unsupported",_.TI(3))};
var $oc=function(a){BM.call(this,a);this.Ba="drive.ds.sync.AnonymousItemService";a.yu("")};_.N($oc,BM);$oc.prototype.$a=function(){$L(this.O,["NSockf"],this.kWa.bind(this))};
var hDc=new Set([1,2,4,5,6]),iDc=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.Le=0};iDc.prototype.vf=function(){var a=new _.xM;a.Bc(this.status);this.H&&_.bCc(a,jDc(this));return a};
var kDc=function(a,b,c,d){d=void 0===d?!1:d;var e=hDc.has(c);if(1===a.status&&!e)return!1;a.Le=c;var f=a.status;c=!a.H;if(_.yI(a.O)){var h=(h=b&&b.getUser())&&UK(h);h=!(!h||!Cyc(a.ka,h));a.status=h&&e||d?1:6}f=!_.Vj(a.H,b)||(_.yI(a.O)?a.status!==f:6===a.status&&e);a.H=b.clone();_.yI(a.O)||(a.status=e||d?1:6);c&&(aM(a.ha,"toquGd"),a.W.info("drive.ds.sync.account.InMemoryAccountCache","Account loaded from "+(e?"server":"cache")));f&&a.V.update(0);return f};iDc.prototype.Ye=function(){return this.Le};
var jDc=function(a){return a.H?a.H.clone():null};
var lDc=function(a){_.qi.call(this);this.ha=a;this.Le=0};_.N(lDc,_.qi);var mDc=function(a){a=a.clone();var b=function(c){return c.toLowerCase()};kvc(a,_.Qd(a,4).map(b));lvc(a,_.Qd(a,5).map(b));return a};_.g=lDc.prototype;_.g.tr=function(){};_.g.put=function(){};_.g.remove=function(){};_.g.dQ=function(){};_.g.mD=function(){return 0!==this.Le};_.g.Ye=function(){return this.Le};
var nDc=new Set([1,2,4,5,6]),oDc=function(a,b,c){lDc.call(this,b);this.W=a;this.V=c;this.H={};this.O=[];this.status=6;this.xo=!1};_.N(oDc,lDc);oDc.prototype.tr=function(){var a=new VL;if(!_.Ta(this.H)){_.Jj(a,4,this.O);var b=[];_.La(this.H,function(c){b.push(c.clone())});_.Mj(a,2,b)}a.Bc(this.status);return a};oDc.prototype.put=function(a){this.H[a.getId()]=mDc(a);this.V.update(1);this.dispatchEvent(new _.gi("Qb",this))};oDc.prototype.remove=function(a){_.Ua(this.H,a)&&this.V.update(1)};
oDc.prototype.dQ=function(a,b,c){c=void 0===c?!1:c;var d=!nDc.has(b);1===this.status&&d||(this.Le=b,pDc(this,a,!d||c),d||this.V.update(1),this.xo||(this.xo=!0,this.W.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache","Apps initialized."),aM(this.ha,"nVUlO")))};
var pDc=function(a,b,c){var d=!1,e=c?1:6;d=e!==a.status;a.status=e;e=_.Qd(b,4);if(!d)if(e.length!==a.O.length)d=!0;else{var f=e.concat(a.O);_.Da(f);d=f.length!==a.O.length}a.O=e;var h=_.Ya(a.H);_.qgc(a.H);b=_.Rj(b,_.HL,2);d||(d=b.length!==_.Pa(h));b.forEach(function(k){var l=mDc(k);a.H[k.getId()]=l;d||(k=h[k.getId()],d=!k||!_.Vj(l,k))});a.W.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache",(c?"Fresh":"Stale")+" apps loaded: "+b.length);d&&a.dispatchEvent(new _.gi("Qb",a))};
var DM=function(a){_.O.call(this);this.context=a;this.Cy=new Set;this.zp=6;this.QBa=!0;this.Le=0;this.Pc=new _.Je(this);this.Ma(this.Pc)};_.N(DM,_.O);_.g=DM.prototype;_.g.ii=function(a){this.EQa(a);this.Cy.add(a);this.resize(!0);this.tO(a)};_.g.EQa=function(){};_.g.ak=function(a){this.Cy.delete(a);0!=this.Cy.size||this.uYa()?this.resize(!1):this.dispose()};_.g.Ye=function(){return this.Le};_.g.Ei=function(a){this.Le=a};_.g.UB=function(a){this.QBa=!1;this.zp=a};_.g.AJ=function(){return this.zp};
_.g.refresh=function(){};_.g.Wj=function(){};
var rDc=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)}}qDc(a.context.uf,d,b);d.forEach(function(k){Azc(a.context.JLa,k,b);if(k.yc()){var l=k.getCapabilities();PL(k)?l&&(_.xhc(l,_.Q(l,13)),_.uhc(l,!1),_.Bhc(l,!1)):YK(k)?(l&&_.y(l,3,!1),_.y(k,30,!1)):l&&(_.Fhc(l,!1),_.Ghc(l,!1))}k.getCapabilities()||_.ZJ(k,
new _.Xk)})};DM.prototype.resize=function(){};DM.prototype.od=function(){};DM.prototype.nl=function(a,b){var c=this,d=!1;a.forEach(function(e){e=ZL(e);d=c.Fu(e,!0)||d});b||(1!=this.AJ()&&(d=!0),this.UB(1));d&&this.LX()};var sDc=function(a,b){var c=!1;b.forEach(function(d){c=a.Fu(d)||c});c&&a.LX();return c};_.g=DM.prototype;_.g.update=function(a){return sDc(this,[a])};_.g.Fu=function(){};_.g.LX=function(){var a=this;this.DQa();this.Cy.forEach(function(b){a.tO(b)})};_.g.DQa=function(){};
_.g.tO=function(a){var b=tDc(this.context).oka(a);this.HXa(b)||(b=this.Wj(b),tDc(this.context).tO(a,b))};_.g.KX=function(a){var b=this;this.UB(3);this.Cy.forEach(function(c){tDc(b.context).KX(c,a)})};_.g.jA=function(){var a=this;this.Cy.forEach(function(b){tDc(a.context).jA(b)});this.Ei(0==this.Ye()?1:6)};_.g.uYa=function(){return!1};_.g.HXa=function(){return!1};
var uDc=function(a){_.gi.call(this,"Ba");this.id=a};_.N(uDc,_.gi);
var vDc=function(a,b,c,d){d=void 0===d?!1:d;_.qi.call(this);this.request=a;this.context=b;this.ZJa=d;this.ke=null;this.items={};this.W=[];this.V=[];this.H=null;this.originalRequest=c||a;this.O=new Set};_.N(vDc,_.qi);
vDc.prototype.Zg=function(){var a=this;if(this.ke)return this.ke.promise;this.ke=_.Sh();for(var b={},c=_.m(this.request.hn().entries()),d=c.next();!d.done;b={Rqa:b.Rqa,hea:b.hea,Dqa:b.Dqa},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.Dqa=e;b.Rqa=Urc(Trc(d),this.request);b.hea=void 0;this.ZJa&&(b.hea={ZJa:!0});this.context.Nm().then(function(f){return function(h){return h.Re(f.Rqa,f.hea)}}(b)).then(function(f){return void wDc(a,f)},function(f){return function(h){var k=f.Dqa;h=
_.yB(h);5===h.Rg.Xs()||4===h.Rg.kk()?(a.context.Rf().info("drive.ds.sync.query.ViewCacheFindByIdsRunner","Deleting "+k+" due to: "+h.message),a.V.push(k),xDc(a)):a.handleError(h)}}(b))}return this.ke.promise};var wDc=function(a,b){b.ld().xd().forEach(function(c){_.MI(c,1);a.W.push(c)});xDc(a)},xDc=function(a){a.H||(a.H=_.n.setTimeout(a.ha.bind(a),10))};
vDc.prototype.ha=function(){_.n.clearTimeout(this.H);this.H=null;yDc(this);zDc(this);this.O.size===this.request.hn().length?(this.context.uf.nl([],1,this.originalRequest,!1),this.dispatchEvent("Da"),this.ke.resolve(this.items)):this.dispatchEvent("Aa")};
var yDc=function(a){var b=a.W;a.W=[];b=a.context.kfa.M8(b);if(_.SI(_.tI(a.context.Lc))){var c=a.context.uf.lm;_.Ja(b,function(d){var e=c.H(d.getId());e&&_.YJ(d,e.jk())})}b.forEach(function(d){a.O.add(d.getId());a.items[d.getId()]=d});a.context.uf.nl(b,1,a.originalRequest,!0)},zDc=function(a){var b=a.V;a.V=[];b.forEach(function(c){var d=_.NI(_.DI(new _.CI,c));a.context.uf.Po([d]);a.O.add(c);a.items[c]=null;a.dispatchEvent(new uDc(c))})};
vDc.prototype.handleError=function(a){var b=new nL(a.Rg,_.Zj(this.context.Lc.$f(),1,1));this.context.uf.rB(this.request,b);this.dispatchEvent(b);this.ke.reject(a)};
var ADc=function(a,b,c,d){DM.call(this,a);this.Ng=b;this.request=c;this.Jd={};this.H=null;this.O=_.II(a.Lc)||new _.Lfc;d&&this.nl(d,!0)};_.N(ADc,DM);
ADc.prototype.refresh=function(){var a=this;if(this.H)return this.H.promise;this.zp=6;if(_.S(this.request,5,!1))return this.UB(1),_.Oh();var b=!this.QBa&&_.S(this.O,3,!1)?!1:!znc(_.mK(this.Ng),this.request.O()),c=[],d=this.context.Wn();this.request.hn().forEach(function(h){if("root"!==h&&h!==d){var k=a.Jd[h],l=k&&k.getItem();if(k=!k||l&&1!==l.gv()||b)l=l&&l.Lm(),k=!(l&&_.Q(l,2));k&&c.push(h)}});if(0===c.length)return this.nl([],!1),_.Oh();this.H=_.Sh();this.H.promise.then(function(){a.H=null},function(){a.H=
null});var e=this.request.clone();_.vA(e,c);var f=new vDc(e,this.context,this.request);this.context.Gj().Te()?(this.Pc.listen(this.context.Gj(),"Fb",function(h){h.Te()||(a.Pc.Vc(a.context.Gj(),"Fb"),BDc(a,f,a.H))}),this.zp=0<Object.values(this.Jd).length?1:2):(this.context.lk().Te()&&(this.zp=0<Object.values(this.Jd).length?1:2),BDc(this,f,this.H));return this.H.promise};var BDc=function(a,b,c){a.Pc.listen(b,"Ba",function(d){a.Jd[d.id]=null});a.jA();b.Zg().then(function(){c.resolve()},c.reject)};
_.g=ADc.prototype;_.g.Fha=function(a){var b=this;if(this.context.Bm.equals(a,this.request,!0)){if(znc(_.mK(this.Ng),a.O()))return!0;if(znc(this.request.O(),a.O(),_.mK(this.Ng))){if(this.QBa)return!0;if(_.S(this.O,5,!1)&&_.S(this.O,3,!1))return this.request.hn().every(function(c){return(c=b.Jd[c])&&_.Q(c.getItem(),31)})}}return!1};
_.g.Wj=function(a){var b=new _.uK;_.yI(this.context.Lc)?b.Bc(Mnc(Object.values(this.Jd))?6:this.zp):b.Bc(this.zp);b.Ei(this.Ye());lsc(b,_.Na(this.Jd,function(c){return c?c.getItem():null}));rDc(this,a.O(),b.eq());return b};_.g.resize=function(){};_.g.od=function(){return this.request};_.g.Fu=function(a){var b=this.ms(a.O),c=this.ms(a.H);if(b||c)c?(this.Jd[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Jd[a.id]=null,a.O.count--);else return!1;return!0};
_.g.ms=function(a){return!!a&&_.oa(this.request.hn(),a.getId())};
var CDc=function(a,b){_.gi.call(this,a);this.changes=b};_.N(CDc,_.gi);
var DDc=function(a){var b=new Iyc;if(a.Wf()){var c=a.Wf();b.H=!1;b.suggestionSessionId=c}a instanceof _.vK&&_.Rj(a,_.Gk,6).length?(a=_.Rj(a,_.Gk,6),b.H=!1,b.V=a):a instanceof _.mB&&(a.W5()||a.Nra()||a.aka().length)&&(c=a.W5(),b.H=!1,b.W=c,c=a.Nra()||!1,b.H=!1,b.incompleteSearch=c,a=a.aka(),b.H=!1,b.O=a);return b};
var EM=function(a,b,c,d,e){e=void 0===e?"":e;_.qi.call(this);this.context=a;this.request=b;this.nextPageToken=e;this.W=0;this.va=!1;this.V=[];this.O=!1;this.ka=0;this.Ka=a.Rf();this.Ba=new Set;this.ma=c||!1;this.Ha=d||!1;this.Fa=this.FFa(b);this.ha=new Iyc};_.N(EM,_.qi);var EDc=function(a){return!a.va||""!==a.nextPageToken},GDc=function(a,b){a.W=b;return a.V.length<a.W&&!a.O&&EDc(a)?FDc(a):_.Zh()};EM.prototype.$b=function(){return this.V.length};EM.prototype.H=function(){return this.V.slice()};
var FDc=function(a){var b=a.W-a.V.length+a.ka;a.log("Get more items called with limit of "+b);var c=a.nextPageToken,d=new _.Uh;d.addCallback(function(f){return void HDc(a,c,f)});var e=_.ogc(_.pgc(new _.zI,a.Fa),c);b=_.mgc(new _.kfc,b);a.Ha&&_.y(b,10,!0);_.ngc(e,b);a.va=!0;a.O=!0;a.context.Nm().then(function(f){return f.Re(e)}).then(a.ta.bind(a,d),a.handleError.bind(a,d,b));return d};
EM.prototype.ta=function(a,b){this.O=!1;if(b instanceof _.vK)var c=b;else c=b.ld(),this.nextPageToken=b.Vn()||"";this.ha=DDc(c);this.ha.vc()||this.dispatchEvent("Ca");a.callback(c.xd())};
EM.prototype.handleError=function(a,b,c){c=_.yB(c);this.O=!1;if(5===c.Rg.Xs())a.callback([]);else{if(10===c.Rg.Xs()&&(_.mgc(b,Math.ceil(_.Zj(b,1,1E3)/2-2E-15)),1<_.Zj(b,1,1E3))){var d=_.ngc(_.ogc(_.pgc(new _.zI,this.Fa),this.nextPageToken),b);this.O=!0;this.context.Nm().then(function(e){return e.Re(d)}).then(this.ta.bind(this,a),this.handleError.bind(this,a,b));return}b=new nL(c.Rg,_.Zj(this.context.Lc.$f(),1,1));this.GLa(b);this.dispatchEvent(b);a.Hd(c)}};
var HDc=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: ")+(_.yjc(a.request)+" paginationToken: ")+b;b=_.gq(_.eq(_.FI(_.EI(new _.mc,2),9),f));a.context.dispatchEvent(new _.oc(new _.nc(f,b)));break}d.add(f.getId())}f=c.filter(function(h){var k=a.Ba.has(h.getId());a.Ba.add(h.getId());return!k});a.ka+=c.length-f.length;c=_.m(f);for(b=c.next();!b.done;b=c.next())_.MI(b.value,
a.ma?2:1);c=[];b=_.m(a.Y0a(f));for(f=b.next();!f.done;f=b.next())f=f.value,a.V.push(f.getId()),f=_.DI(new _.CI,f.getId()).setItem(f),c.push(f);c.length&&a.dispatchEvent(new CDc("Aa",c));if(a.V.length<a.W&&a.nextPageToken)return FDc(a);a.dispatchEvent("Da")};_.g=EM.prototype;_.g.Y0a=function(a){return a};_.g.GLa=function(){};_.g.od=function(){return this.request};_.g.FFa=function(a){a=a.clone();this.ma&&_.y(a,46,!0);return a};_.g.log=function(a){this.Ka.info("drive.ds.sync.query.QueryRunner",a)};
var IDc=function(a,b,c,d){EM.call(this,a,b,void 0,c,d)};_.N(IDc,EM);IDc.prototype.Y0a=function(a){a=this.context.kfa.M8(a);this.context.uf.nl(a,1,this.request,EDc(this));return a};IDc.prototype.GLa=function(a){this.context.uf.rB(this.request,a)};IDc.prototype.FFa=function(a){var b=a=EM.prototype.FFa.call(this,a),c=_.Fl(b);0===_.Qd(b,33).length&&1===c.length&&(c=this.context.uf.lm.H(c[0].Za()))&&(c=c.yc())&&(_.Hl(b,[c]),_.Il(b,2));JDc(this,a);return a};
var JDc=function(a,b){if(_.Fl(b).some(function(d){return(d=a.context.uf.lm.H(d.Za()))&&_.Q(d,108)})){var c=b.ve();c||(c=new _.rf,_.Gl(b,c));_.sf(c,937)}};
var KDc=function(a,b,c,d){this.context=a;this.Ng=b;this.W=d;this.zna=0;this.H=c},ODc=function(a,b){if(b){a.log("Processing potential rejoin for TD: "+b);var c=_.Il(_.Dl(_.Hl(new _.ef,[b]),_.mK(a.Ng)),1),d=_.sf(new _.rf,306);_.Gl(c,d);LDc(a);c=new IDc(a.context,c);GDc(c,5E3).addCallback(a.V.bind(a,c));MDc(a);NDc(a,b)}},MDc=function(a){var b=_.Qa(a.H);b=b.filter(function(d){return d instanceof ADc});var c=new Set;b.forEach(function(d){d.od().hn().forEach(function(e){a.W.get(e)||c.add(e)})});b=_.sf(new _.rf,
310);a.log("Re-querying missing find-by-ids :"+c.size);a.vO([].concat(_.ld(c)),b)},NDc=function(a,b){var c=[];(a.context.uf.OFa.nQ[b||"subscribed"]||[]).forEach(function(d){_.La(a.H,function(e){_.Vj(e.od(),d)&&c.push(e)})});_.Da(c);0<c.length&&(LDc(a),c.forEach(function(d){d=pL(a.context.Bm,d.od(),3);a.log("Refreshing "+b+" cache: "+d)}),_.Th(_.Rh(c.map(function(d){return d.refresh().Fg(_.Kf)})),a.O.bind(a)))};
KDc.prototype.vO=function(a,b,c,d,e){c=void 0===c?!1:c;a=a.filter(function(f){return!_.ee(f)});if(0===a.length)return _.Oh({});a=_.y(_.uA(_.vA(new _.tA,a),d||_.mK(this.Ng)),7,!0);_.wA(a,b);e&&e.length&&_.Mj(a,11,e);LDc(this);b=new vDc(a,this.context,void 0,c);return _.Th(b.Zg(),this.V.bind(this,b))};KDc.prototype.V=function(a){a.dispose();this.O()};var LDc=function(a){a.zna++;a.context.Ls.setActive(!1)};KDc.prototype.O=function(){this.zna--;0===this.zna&&this.context.Ls.setActive(!0)};
KDc.prototype.log=function(a){this.context.Rf().info("drive.ds.sync.cache.CacheRefresher",a)};
var PDc=function(a,b,c){_.O.call(this);this.context=a;this.H=b;this.request=c;this.O=this.ke=null;a=new _.rf;_.tf(a,!1);_.sf(a,305);_.Gl(this.request,a);this.Pc=new _.Je(this);this.Ma(this.Pc)};_.N(PDc,_.O);
PDc.prototype.Zg=function(){if(!this.ke){this.ke=_.Sh();if(_.S(this.request,48,!1))return this.H.Ei(9),this.ke.resolve(this.H),this.ke.promise;this.O=new EM(this.context,this.request,!0);this.Pc.listen(this.O,"Aa",this.W);this.Pc.listen(this.O,"Da",this.V.bind(this));this.Pc.listen(this.O,"Ea",this.ke.reject.bind(this.ke));GDc(this.O,this.request.xi())}return this.ke.promise};PDc.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(ZL(new NL(b)))};
PDc.prototype.V=function(){this.H instanceof cM?this.H.H=!EDc(this.O):EDc(this.O)&&bM(this.H,!1);this.H.Ei(5);this.ke.resolve(this.H)};
var RDc=function(a,b){_.gi.call(this,QDc);this.cache=a;this.changes=b};_.N(RDc,_.gi);var QDc="Rb";
var SDc=function(a,b){return new _.Nh(function(c,d){b.then(function(e){for(var f=new Map,h=_.m(a.iy()),k=h.next();!k.done;k=h.next()){k=k.value;var l=k.getId();Unc(k.getItem());f.set(l,Ovc(new NL(k.getItem()),k.H))}h=_.m(e.items);for(k=h.next();!k.done;k=h.next())k=k.value,l=k.Ac(),l=f.get(l)||null,k.mk()?l&&a.update(new Axc(l.getId(),l,null)):(k=k.getItem(),Unc(k),a.update(Bxc(l,Ovc(new NL(k),null===l||void 0===l?void 0:l.H))));a.bX();c(e.cKb)},d)})};
var TDc=function(a,b){_.O.call(this);this.context=a;this.Ng=b};_.N(TDc,_.O);
TDc.prototype.Zg=function(a){this.log("Running initial view populator (IVDP).");try{var b=new LL(JSON.parse(a))}catch(q){this.handleError("Error parsing initial view dump.",_.UI(q));return}a=_.tI(this.context.Lc);if(!_.SI(a)){var c=b.vf();if(c){var d=c.getUser();d&&d.getId()===_.E(a,6,"")&&kDc(this.context.UP,c,4)}(a=b.Wn())&&this.context.yu(a,6)}var e=_.B(b,3)||void 0;e&&UDc(this.context,e,!0);if((a=_.Rj(b,_.lp,9))&&a.length){c=(c=this.context.Lc.$f())&&_.Qd(c,30)||[];var f=new Set(c);a.forEach(function(q){(q=
(q=q.getKey())&&_.mp(q))&&f.add(q)});this.context.eE.dQ(a,4,[].concat(_.ld(f.values())))}a=b.xd();a.forEach(function(q){_.Fgc(q);_.MI(q,6)});if(c=_.Rj(b,KL,5)[0])if(b=this.context.Bm,Gnc(_.mK(this.Ng),c.getQuery().O(),_.fK(this.context.Lc)))if((d=c.getQuery().wc())&&4===d.getType()&&!_.Ecc())this.handleError("Invalid initial view data, natural sort unsupported");else{if(0<a.length){d=RL(b,c.getQuery());var h=_.B(c,2)||void 0;d.ri(h);h=a.map(function(q){return new NL(q,void 0,1,e)});var k=_.C(c,_.cl,
3);if(k&&_.B(c,2)){var l=h[h.length-1];_.MI(k,6);if(!_.Vj(k,l.getItem())){this.handleError("Invalid last item in initial view data.");return}}c=(k=_.II(this.context.Lc))&&_.S(k,2,!1)&&c.Vn()||"";var p=new cM(this.context.pt,this.context.uv,this.context.Bm,d,l,c);p.Ei(4);h.forEach(function(q){p.update(ZL(q))});VDc(this.context.uf,p);l=p.od();this.log("Imported "+a.length+" initial view items (IVDP) into a cache\n                hint corpus cache. Query: "+pL(b,l));b=new _.zI;_.pgc(b,l);l=_.Hkc(this.context.PA,
b,"IVDP");_.Ikc(l,a);aM(this.context.Kj,"W6J7De")}}else this.handleError("Invalid initial view data, fields: "+vwc(b,c.getQuery().O()));else this.handleError("No initial query found")};TDc.prototype.handleError=function(a,b){var c=b?void 0:_.gq(_.FI(_.EI(new _.mc,2),6));b=new _.nc(a,c,b);this.context.mJ(b.Rg);this.log("Initial view dump population failed. Message: "+a);aM(this.context.Kj,"DEJoH")};TDc.prototype.log=function(a){this.context.Rf().info("drive.ds.sync.cache.InitialViewPopulator",a)};
var WDc=function(a){_.qi.call(this);this.context=a;this.W="drive.ds.sync.cache.CorpusCachePopulator";this.V=0;this.O=new fM(a.pt,a.uv,a.Kj,function(){return a.Wn()});this.H=this.context.Lc;this.ta=new eM(a.pt,a.uv)};_.N(WDc,_.qi);
var XDc=function(a,b){var c=_.Zj(a.H,31,2E4);("number"===typeof _.B(b,3)?_.B(b,3):c+1)>c?(bM(a.O,!1),b="partialCorpus",a.log("Too many subscribed items; skipping subscribed cache.")):(b="fullCorpus",a.log("Caching all subscribed items."));a.context.PA.Jb("CachedCorpusType",b)};WDc.prototype.log=function(a,b){this.context.Rf().log(this.W,a,b||"info")};var YDc=function(a,b){0===a.V&&(a.V=b)};
var ZDc=function(a,b){var c;if(c=!!b&&!!b.wg())a=_.Q(a,4),c=null==a||!!_.Q(b.wg(),7)==a;return c};
var $Dc=function(a,b){_.qi.call(this);this.context=a;this.request=b;this.V=[];this.nextPageToken="";this.H=this.O=!1};_.N($Dc,_.qi);$Dc.prototype.Zg=function(){return this.H||this.O&&""===this.nextPageToken?_.Zh():aEc(this)};$Dc.prototype.$b=function(){return this.V.length};
var aEc=function(a){a.O=!0;a.H=!0;var b=frc(grc(new _.KJ,a.request),a.nextPageToken),c=_.Hkc(a.context.PA,b);return _.$h(a.context.Nm().then(function(d){return d.Re(b)}).then(function(d){var e=d.ld().xd();a.nextPageToken=d.Vn()||"";bEc(a,c,e)},function(d){return void a.handleError(d)}))},bEc=function(a,b,c){_.Ikc(b,c);for(b=0;b<c.length;b++)_.MI(c[b],1);a.context.uf.nl(c,1,a.request,!a.O||""!==a.nextPageToken);var d=[];_.Ja(c,function(e){this.V.push(e.getId());e=_.DI(new _.CI,e.getId()).setItem(e);
d.push(e)},a);d.length&&a.dispatchEvent(new CDc("Aa",d));a.nextPageToken?aEc(a):(a.H=!1,a.dispatchEvent("Da"))};$Dc.prototype.handleError=function(a){this.H=!1;a=new nL(_.GI(a),_.Zj(this.context.Lc.$f(),1,1));this.dispatchEvent(a)};$Dc.prototype.od=function(){return this.request};
var cEc=function(a){this.H=_.Fcc(a,{numeric:!0})};cEc.prototype.sort=function(a){_.Ga(a,this.compare.bind(this))};cEc.prototype.compare=function(a,b){a=a.getItem();b=b.getItem();var c=this.H(a.getTitle(),b.getTitle());return 0===c?_.Ea(a.getId(),b.getId()):c};
var dEc=function(a,b,c,d){d=void 0===d?!1:d;DM.call(this,a);this.Ng=b;this.Jd=[];this.ke=null;this.request=c.clone();this.zv=new $Dc(a,this.request);this.NOb=new cEc(fL(_.tI(a.Lc)));this.aCa=null!=_.Q(this.request,6);_.Ae(this,this.amb,this);d&&(this.ke=_.Sh(),this.ke.resolve())};_.N(dEc,DM);_.g=dEc.prototype;_.g.refresh=function(){3===this.zp&&(this.zp=6,this.ke=null);return this.kca()};_.g.isInitialized=function(){return!!this.ke};
_.g.kca=function(){var a=this;if(this.isInitialized())return this.ke.promise;this.ke=_.Sh();this.context.Gj().Te()?this.Pc.listen(this.context.Gj(),"Fb",function(b){b.Te()||(a.Pc.Vc(a.context.Gj(),"Fb"),a.jA(),a.zv.Zg().hg(a.ke.resolve,a.ke.reject,a.ke))}):this.context.lk().Te()?this.Pc.Zc(this.context.lk(),[_.zB.wL,_.zB.nU],function(){a.jA();a.zv.Zg().hg(a.ke.resolve,a.ke.reject,a.ke)}):(this.jA(),this.zv.Zg().hg(this.ke.resolve,this.ke.reject,this.ke));return this.ke.promise};_.g.resize=function(){};
_.g.od=function(){return this.request};_.g.iy=function(){return this.Jd};_.g.Fha=function(a){return this.context.Bm.equals(a,this.request)};_.g.Wj=function(a){a=a.xi();this.NOb.sort(this.Jd);var b=woc(_.za(this.Jd,0,Math.min(a,this.Jd.length)));rDc(this,Jrc(this.Ng),b);var c=new _.mB;c.Pw(b);c.Bc(this.ewa(a));c.Ei(this.Ye());Hqc(c,a<this.Jd.length||!(this.context.Gj().Te()||this.context.lk().Te())&&1!==this.zp);return c};
_.g.ewa=function(a){return 1===this.zp||a<=this.Jd.length?1:this.context.Gj().Te()||this.context.lk().Te()?0<this.Jd.length?1:2:6};_.g.nl=function(a,b){this.isInitialized()&&DM.prototype.nl.call(this,a,b)};_.g.Fu=function(a,b){b=void 0===b?!1:b;if(!this.isInitialized())return!1;var c=a.id,d=_.ma(this.Jd,function(h){return h.getId()===c}),e=!!d;b=this.ms(a.H,b);var f=a.O;d&&(f=d,e=!0);if(e||b)e?b?this.FJa(f,a.H):this.iJ(f):this.tR(a.H);else return!1;return!0};_.g.tR=function(a){this.Jd.push(a);a.count++};
_.g.iJ=function(a){_.ta(this.Jd,a);a.count--};_.g.nya=function(a){return _.na(this.Jd,a)};_.g.FJa=function(a,b){this.Jd[this.nya(a)]=b;b.count++;a.count--};_.g.ms=function(a,b){b=void 0===b?!1:b;if(!a)return!1;if(this.aCa&&null!=_.Q(this.request,6)){if(b)return!0;var c=a.getId();b=!!this.Jd.find(function(d){return c===d.getId()},this);a=PL(a.getItem())&&ZDc(this.request,a.getItem());return b&&a}return PL(a.getItem())&&ZDc(this.request,a.getItem())};_.g.amb=function(){this.Jd.forEach(function(a){a.count--})};
_.g.uYa=function(){return!0};_.g.getType=function(){return"TeamDriveViewCache"};_.g.Ld=function(){return this.Jd.length};_.g.bX=function(){this.zp=1};
var eEc=function(a){this.H=a},fEc=function(a,b,c,d,e){if(0===e||null===b){var f=new JBc;_.y(f,2,b);_.y(f,1,d);return _.Oh(f)}var h=Pwc();_.y(h,2,b);c&&_.y(h,3,c);return a.H.then(function(k){return k.Re(h)}).then(function(k){var l,p=null!==(l=k.my())&&void 0!==l?l:null;k=d+_.B(k,1);return fEc(a,p,c,k,e-1)})};
var gEc=function(a,b){WDc.call(this,a);this.Ng=b;this.ha=void 0;this.ka=null;this.ma=!1;this.BD=void 0;this.W="drive.ds.sync.cache.LocalDumpPopulator"};_.N(gEc,WDc);gEc.prototype.handleError=function(){this.log("Local dump population failed.");aM(this.context.Kj,"mrK8ic")};
gEc.prototype.Zg=function(){var a=this;if(this.ka)return this.ka;if(this.context.uQ){var b=new _.Uh;this.ka=b;this.initialize().then(function(){var c=_.Rj(_.gL(a.H),eL,11);c=c[0]&&c[0].getKey()||"";return hEc(a,a.context.uQ,c,4)}).Fg(function(c){if(_.S(a.H,8,!0))return iEc(a);throw c;}).then(function(){_.yI(a.H)||a.context.uf.qq.H.clear();aM(a.context.Kj,"zaOY7");b.callback()},function(c){YDc(a,8);a.handleError();b.Hd(c)});return b}this.handleError();return _.ai(Error("gg"))};
gEc.prototype.initialize=function(){var a=this;return _.Oh(this.context.uQ.initialize()).then(function(){if(!_.gK(a.H)){var b=_.Zj(_.gL(a.H),7,432E6);b&&(a.ha=Date.now()-b);return new _.Nh(function(c,d){WAc(a.context.uD).then(function(e){e?c():d(Error("hg"))})})}})};
var hEc=function(a,b,c,d){return _.Pf(a,function f(){var h=this,k;return _.Ff(f,function(l){return 1==l.H?(k=h.ha,jEc(h,b,c,k),kEc(h,b,c,k),lEc(h,b,c,k),_.yf(l,mEc(h,b,c,k),2)):_.yf(l,Promise.all([nEc(h,b,c,d,k),oEc(h,b,c,d,k),pEc(h,b,c,d,k),qEc(h,b,c,d,k)]),0)})})},jEc=function(a,b,c,d){var e=function(){return a.log("Failed to load account from storage.")};lM(b,c,0,void 0,d,a.BD).then(function(f){f[0]?kDc(a.context.UP,f[0],a.Ye(),_.gK(a.H)):e()},function(){return e()})},kEc=function(a,b,c,d){var e=
function(){return a.log("Failed to load apps from storage.")};lM(b,c,1,void 0,d,a.BD).then(function(f){f[0]?a.context.MZ.dQ(f[0],a.Ye(),_.gK(a.H)):e()},function(){return e()})},lEc=function(a,b,c,d){var e=function(){return a.log("Failed to load user prefs from storage.")};lM(b,c,5,void 0,d,a.BD).then(function(f){if(f[0]){f=f[0];var h=_.Rj(f,_.lp,1);h.length&&a.context.eE.dQ(h,a.Ye(),_.Qd(f,2),_.gK(a.H))}else e()},function(){return e()})},nEc=function(a,b,c,d,e){var f=new _.An;lM(b,c,3,1,e,a.BD).then(function(h){return rEc(a,
h[0])}).then(function(h){if(h){b!==a.context.uQ||Gnc(_.Qd(h,12),_.mK(a.Ng),_.fK(a.H))||(a.log("Disabling dump updater due to inconsistent fields.","warning"),a.context.Ls.hS());var k=_.B(h,3);if(!k||0>k)throw Error("kg");a.context.yu(h.Wn(),d);k=_.B(h,3);"number"===typeof k&&UDc(a.context,Number(k));_.gK(a.H)&&(a.log("Coldstart: Firing INITIAL_CHANGES_PROCESSED."),a.context.jDa());a.nl(h,d);f.resolve()}else f.reject("Failed to load cache hints from storage.")},f.reject,f);return f.promise},oEc=function(a,
b,c,d,e){var f=new _.An;lM(b,c,3,2,e,a.BD).then(function(h){h[0]?(a.nl(h[0],d),f.resolve()):f.reject(Error("ig"))},function(h){return f.reject(h)});return f.promise},pEc=function(a,b,c,d,e){var f=new _.An;lM(b,c,3,4,e,a.BD).then(function(h){h.forEach(function(k){a.nl(k,d)});f.resolve()},function(h){return f.reject(h)});return f.promise},qEc=function(a,b,c,d,e){var f=new _.An;lM(b,c,3,3,e,a.BD).then(function(h){h.length?h.forEach(function(k){a.nl(k,d)}):aM(a.context.Kj,"rVezo");f.resolve()},function(h){return f.reject(h)});
return f.promise},mEc=function(a,b,c,d){var e=new _.An;lM(b,c,6,void 0,d,a.BD).then(function(f){f=_.m(f);for(var h=f.next();!h.done;h=f.next())h=h.value,_.Rj(h,XL,1).length&&(a.log("Importing "+_.Rj(h,XL,1).length+" people into the PeopleCache."),h=_.Rj(h,XL,1),eyc(a.context.uf.qq.H,h,2));e.resolve()},function(f){return e.reject(f)});return e.promise},rEc=function(a,b){var c=_.B(b,3);if(c&&!_.gK(a.H)){var d=new eEc(a.context.Nm()),e=_.Zj(_.gL(a.H),13,5);return fEc(d,c,null,0,e).then(function(f){return _.P(f,
2)?(a.log("Encrypted dump too stale."),a.context.Hk().O(106007),YDc(a,9),null):b},function(){return b})}return _.Oh(b)},iEc=function(a){var b=mM(a.context.CL.zi()),c=_.Rj(_.gL(a.H),eL,11).filter(function(d){return d.ht()});return OAc(_.eK(_.tI(a.H)),_.fK(a.H),_.Zj(_.gL(a.H),10,0)||0,_.mK(a.Ng),a.ha||0,c.map(function(d){return _.B(d,1)}),b).then(function(d){if(d){var e=c.find(function(k){return d.V===_.B(k,1)}),f=new nM(_.Oh(d),a.context.Rf(),null,!0),h=new Mzc(f,a.H,function(k){a.context.mJ(k)});
h.initialize();a.ma=!0;return hEc(a,h,e?e.getKey():null,8).then(function(){return f.getMetadata([TAc])}).then(function(k){k[0]?(k=k[0].Za(),k=a.context.uD.set(TAc,k)):k=Promise.resolve();return k}).then(function(){f.close()})}return _.Ph(Error("jg"))})},vEc=function(a,b,c){switch(b.Un()){case 1:return sEc(a,b,c);case 2:var d;b=_.C(b,Foc,11);if(!b)throw Error("lg");XDc(a,b);(b=a.O.YG?a.O:(null===(d=_.II(a.H))||void 0===d?0:_.S(d,17,!1))?a.ta:null)?(b.Ei(a.Ye()),a=[{cache:b,changes:kM(a.context.sz,
null)}]):a=[];return a;case 3:return tEc(a,b);case 4:return uEc(a,b);default:return null}},sEc=function(a,b,c){var d=[];_.Rj(b,KL,5).forEach(function(e){var f=void 0,h=_.C(e,_.cl,3);h&&(_.Fgc(h),_.Q(a.H,67)&&unc(h,Jnc),_.MI(h,c),f=new NL(h));var k=e.getQuery();if(!_.S(k,48,!1)||_.Rj(a.H,_.ef,44).some(function(l){if(!_.S(l,48,!1))return!1;l=RL(a.context.Bm,l,!0);return _.Vj(l,k)}))e=new cM(a.context.pt,a.context.uv,a.context.Bm,k,f),e.Ei(a.Ye()),d.push({cache:e,changes:kM(a.context.sz,null)})});return d},
uEc=function(a,b){return _.Rj(b,KL,5).map(function(c){c=new dEc(a.context,a.Ng,_.C(c,_.mI,5),!0);c.Ei(a.Ye());return{cache:c,changes:kM(a.context.sz,null)}})},tEc=function(a,b){var c=_.Qd(_.Rj(b,KL,5)[0].getQuery(),33)[0],d=_.B(b,3)||void 0;b=kM(a.context.sz,c);FM(a.context).addCallback(function(f){f.Jua(c,d)});var e=new gM(a.context.pt,a.context.uv,c);e.Ei(a.Ye());return[{cache:e,changes:b}]};
gEc.prototype.nl=function(a,b){var c=this,d=vEc(this,a,b);if(d&&0!==d.length){for(var e=_.m(a.xd()),f=e.next();!f.done;f=e.next()){var h=f.value;_.Fgc(h);_.Q(this.H,67)&&unc(h,Jnc);_.MI(h,b);_.yI(this.H)||this.context.uf.qq.H.vc()||Ayc(this.context.uf.qq,[h]);f=new NL(h);_.Qd(a,14).includes(h.getId())&&Ovc(f,!0);for(h=0;h<d.length;h++)d[h].cache.update(ZL(f))}d.forEach(function(k){var l=k.cache;c.dispatchEvent(new RDc(l,k.changes));c.log("Imported "+l.Ld()+" items into the "+l.getType());var p=null;
l instanceof gM&&(p=l.yc());c.context.R$.promise.then(function(){hzc(c.context.sz,p)})});1===a.Un()&&aM(this.context.Kj,"ZA9qG")}else this.log("Ignoring corpus cache for "+a.Un()+".")};gEc.prototype.Ye=function(){return this.ma?7:3};
var wEc=function(a){_.O.call(this);this.context=a};_.N(wEc,_.O);wEc.prototype.Zg=function(a){try{xEc(this,new CBc(JSON.parse(a)))}catch(b){this.handleError("Error parsing prefetched request.",b)}};
var xEc=function(a,b){a.log("Running prefetched request populator for "+b.getKey()+".");switch(b.getKey()){case 1:case 3:yEc(a,b);break;case 4:zEc(a,b);break;case 6:AEc(a,b);break;case 2:BEc(a,b);break;case 7:CEc(a,b);break;case 5:_.Rj(_.C(b,EBc,7),CBc,1).forEach(function(c){xEc(a,c)});break;default:a.handleError("Unsupported prefetched request.")}},yEc=function(a,b){var c=_.C(b,_.ef,2);b=JSON.parse(_.B(b,3)||"{}");var d=new _.zI;_.pgc(d,c);b=a.context.bR().bsa.FE(d,{headers:{},text:"",json:b}).ld();
DEc(a,c,b)},AEc=function(a,b){DEc(a,_.C(b,_.ef,2),_.C(b,_.mB,9))},DEc=function(a,b,c){for(var d=c.xd(),e=_.m(d),f=e.next();!f.done;f=e.next())_.MI(f.value,7);c=DDc(c);a=a.context.uf;b=RL(a.context.Bm,b);e=GM(a,b);a.log("Initializing cache with "+d.length+" items for key '"+e+"'");f=a.O[e];f||(f=new HM(a.context,b),f.Ei(2),a.O[e]=f);c.vc()||f.asa(c);a.nl(d,1,b)},BEc=function(a,b){b=_.C(b,_.Xz,5);var c=a.context.Lc.$f();c=c&&_.Qd(c,30)||[];var d=new Set(c);_.Rj(b,_.lp,3).forEach(function(e){(e=(e=e.getKey())&&
_.mp(e))&&d.add(e)});a.context.eE.dQ(_.Rj(b,_.lp,3),2,[].concat(_.ld(d.values())))},zEc=function(a,b){a.context.lfa.D2(_.C(b,YL,8).kl(),_.C(b,_.aA,6),2,!1)},CEc=function(a,b){var c=_.C(b,_.Zz,10);b=JSON.parse(_.B(b,3)||"{}");b=a.context.bR().bsa.FE(c,{headers:{},text:"",json:b});UCc(a.context).D2([b],c,2,!1)};wEc.prototype.handleError=function(a,b){var c=b?void 0:_.gq(_.FI(_.EI(new _.mc,2),6));this.context.dispatchEvent(new _.oc(new _.nc(a,c,b)));this.log("Prefetched request population failed.")};
wEc.prototype.log=function(a){this.context.Rf().info("drive.ds.sync.cache.PrefetchedRequestPopulator",a)};
var IM=function(a){WDc.call(this,a);this.ha=[];this.ka=[];this.W="drive.ds.sync.cache.SdkCachePopulator";this.va=Math.ceil(1.1*_.Zj(a.Lc,31,2E4))};_.N(IM,WDc);IM.prototype.Zg=function(){if(!_.S(this.H,45,!1))return YDc(this,5),this.handleError(),_.ai(Error("mg"));this.log("Drive SDK cache population initiated.");return this.context.RUa().addCallback(this.Fa,this).addCallback(this.Ba,this).Qg(this.handleError,this)};
IM.prototype.Fa=function(){var a=this;aM(this.context.Kj,"L6uQWd");FM(this.context).addCallback(function(b){b.Dda()});if(_.S(this.H,46,!1))return Eoc(this.context.Nm(),this.context.Rf()).addCallback(function(b){if(!b)throw YDc(a,4),Error("ng");XDc(a,b)});this.log("Subscribed corpus cache population disabled.");bM(this.O,!1);return _.Zh()};
IM.prototype.Ba=function(){this.context.jDa();var a=new _.Uh;if(this.O.YG){this.log("Starting subscribed corpus cache population.");var b=this.O.od();b.ri(this.va);this.O.Ei(5);EEc(this,this.O,b)}b=_.Rj(this.H,_.ef,44);b=_.m(b);for(var c=b.next();!c.done;c=b.next())c=new cM(this.context.pt,this.context.uv,this.context.Bm,c.value),c.Ei(5),EEc(this,c,c.od()),c=pL(this.context.Bm,c.od()),this.log("Starting "+c+" cache hint corpus cache population.");_.Rh(this.ka).then(a.callback,this.ma.bind(this,a),
a);return a};var EEc=function(a,b,c){var d=kM(a.context.sz,null);b=new PDc(a.context,b,c);a.ha.push(b);b=_.Th(b.Zg().then(function(e){!e.YG&&e instanceof fM&&(a.log("Subscribed corpus cache disabled, too many backfill items."),a.context.PA.Jb("CachedCorpusType","errorUncachedCorpus"));a.dispatchEvent(new RDc(e,d))}),function(){a.context.R$.promise.then(function(){hzc(a.context.sz,null)})});a.ka.push(b)};
IM.prototype.ma=function(a,b){for(var c=_.m(this.ha),d=c.next();!d.done;d=c.next())d.value.dispose();YDc(this,7);c=b;b instanceof nL?c=_.UI(b.error):_.xI(b)||(c=Error("og`"+b));a.Hd(c)};IM.prototype.handleError=function(){this.log("Drive SDK cache population failed.");aM(this.context.Kj,"Gv4zef")};IM.prototype.Ye=function(){return 5};
var FEc=function(a,b){_.O.call(this);this.context=a;this.V=b;this.Pc=new _.Je(this);this.impression=null;this.W=[];this.Ma(this.Pc);this.H=new gEc(this.context,this.context.Ng);this.Ma(this.H);this.O=new IM(this.context);this.Ma(this.O)};_.N(FEc,_.O);
FEc.prototype.Zg=function(){var a=this;this.log("Corpus cache population initiated.");this.impression=this.context.Hk().H(106002);_.n._DRIVE_dsp&&GEc(this);_.n._DRIVE_dspc=function(c){GEc(a,c)};kM(this.context.sz,null);_.S(this.context.Lc,24,!1)&&!_.gK(this.context.Lc)&&(_.n._DRIVE_ivd||null===_.n._DRIVE_ivd?HEc(this):_.n._DRIVE_ivdc=function(){HEc(a)});var b=this.context.uQ;if(b)return this.Pc.listen(this.H,QDc,this.ha),this.Pc.listen(this.O,QDc,this.ha),(!_.S(this.context.Lc,10,!1)&&_.Q(this.context.Lc,
69)?this.context.AX.promise:Promise.resolve()).then(function(){return b.initialize().then(function(){a.log("Dump storage initialized.");a.impression&&(a.H.BD=a.impression);return a.H.Zg().hg(function(){return IEc(a,a.H.Ye())},function(){JEc(a,a.H.Ye(),a.H.V);return _.gK(a.context.Lc)?a.handleError(Error("pg")):a.O.Zg().then(function(){return IEc(a,a.O.Ye())},function(c){JEc(a,a.O.Ye(),a.O.V);return a.handleError(c)})})},function(c){a.handleError(_.xI(c)?c:void 0,!0)})});this.handleError(void 0,!0)};
var GEc=function(a,b){var c=new wEc(a.context);(_.n._DRIVE_dsp||[]).filter(function(d,e){return d&&[,!0,!0,!0,!0,,!0,!0][e]&&(!b||e===b)}).forEach(function(d){c.Zg(d)});c.dispose()};FEc.prototype.ha=function(a){var b=a.cache;this.log("Cache populated: "+b.getType());this.W.push(KEc(this,b,a.changes))};
var IEc=function(a,b){hzc(a.context.sz,null);aM(a.context.Kj,"L6uQWd");FM(a.context).addCallback(function(c){c.Dda()});return Promise.all(a.W).then(function(){LEc(a,b)})},LEc=function(a,b){if(!a.isDisposed()){_.gK(a.context.Lc)||MEc(a.V,_.Rj(a.context.Lc,_.ef,44));a.log("Corpus cache population complete.");var c=a.context.Kj;c.H("mrK8ic")?c.H("Gv4zef")||a.context.Ls.kDa():WAc(a.context.uD).then(function(d){d&&a.context.Ls.kDa()},function(){});aM(c,"rVezo");aM(c,"BNEDtc");a.impression&&(b=_.tK(_.zfc,
b),Drc(Lrc(a.impression),b),Crc(Lrc(a.impression),!0),Erc(Lrc(a.impression),kwc(a.V.lm)),Frc(Lrc(a.impression),a.context.uf.Un()),a.impression.uj());a.dispose()}},JEc=function(a,b,c){a.impression&&(b=_.tK(_.zfc,b),Drc(Lrc(a.impression),b),a=Lrc(a.impression),_.Pj(a,3,c,void 0))};
FEc.prototype.handleError=function(a,b){b=void 0===b?!1:b;hzc(this.context.sz,null);var c=this.context.Kj;aM(c,"L6uQWd");FM(this.context).addCallback(function(d){d.Dda()});aM(c,"mrK8ic");aM(c,"Gv4zef");aM(c,"rVezo");aM(c,"BNEDtc");this.context.PA.Jb("CachedCorpusType","partialCorpus");c=!!this.H.context.uQ||_.S(this.O.H,45,!1);a&&!b&&c?(c=void 0,b="Corpus population failed: ",_.xI(a)?(c=a,b+=c.message):b+=String(a),this.log(b),a=new _.nc(b,void 0,c),c=a.Rg,_.EI(c,_.gK(this.context.Lc)?3:1),_.FI(c,
6),_.eq(c,b),_.gq(c),this.context.dispatchEvent(new _.oc(a))):this.log("Corpus population skipped");this.impression&&(Crc(Lrc(this.impression),!1),this.impression.uj());this.dispose()};var KEc=function(a,b,c){return SDc(b,c).then(function(d){d.some(function(e){return b instanceof gM&&e.mk()&&e.Ac()===b.yc()})||VDc(a.V,b,d)},function(){return a.handleError(Error("qg"))})},HEc=function(a){if(_.n._DRIVE_ivd){var b=new TDc(a.context,a.context.Ng);a.Ma(b);b.Zg(_.n._DRIVE_ivd)}else aM(a.context.Kj,"DEJoH")};
FEc.prototype.log=function(a){this.context.Rf().info("drive.ds.sync.cache.CorpusCachePopulatorManager",a)};
var NEc=function(){dM.apply(this,arguments)};_.N(NEc,dM);NEc.prototype.ms=function(a){var b;if(b=dM.prototype.ms.call(this,a))a=a&&a.getItem()&&a.getItem().Lm(),b=!(!a||!_.Q(a,3));return b};NEc.prototype.od=function(){};NEc.prototype.getType=function(){};NEc.prototype.IN=function(){};
var OEc=function(a,b){this.context=a;this.H=b;this.nQ={}},QEc=function(a,b){if(!_.rJ(b)){var c=_.Qd(b,33);if(1===c.length)PEc(a,c[0],b);else{c=_.Fl(b);if(1===c.length&&!_.S(c[0],2,!1)){var d=c[0].Za();c=a.H.get(d);if(!c){c=a.context.uf.vI;var e=_.sf(new _.rf,310);c.vO([d],e).then(function(f){if((f=f[d])&&f.yc()){var h=f.getCapabilities();h&&_.ne(h)&&(f=f.yc(),PEc(a,f,b))}else PEc(a,null,b)});return}if(c.getItem().yc()&&_.ne(c.getItem().getCapabilities())){c=c.getItem().yc();PEc(a,c,b);return}}PEc(a,
null,b)}}},PEc=function(a,b,c){if(b){var d=a.H.get(b);if(d&&!PL(d.getItem()))return}d=b||"subscribed";a.nQ[d]||(a.nQ[d]=[]);a.nQ[d].push(c);b&&(FM(a.context).addCallback(function(e){e.Jua(b)}),REc(a.context.KIa,b))},SEc=function(a,b){if(!_.rJ(b)){var c={},d;for(d in a.nQ){c.xT=d;for(var e=0;e<a.nQ[c.xT].length;e++)if(_.Vj(b,a.nQ[c.xT][e])){_.sa(a.nQ[c.xT],e);"subscribed"!==c.xT&&FM(a.context).addCallback(function(f){return function(h){h.qGa(f.xT,!1)}}(c));return}c={xT:c.xT}}}};
var TEc=function(){this.H=new Map;this.O=[];this.V=[]};
TEc.prototype.update=function(a){var b=this,c=a.id,d=a.O;a=a.H;var e=(d||a).getItem();XK(e)&&(a?(e=a.getItem().Hf())&&_.B(e,1)&&(1===_.Wd(e)||3===_.Wd(e))&&(e=_.B(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&&!_.Vj(a.getItem(),d.getItem()))&&this.H.get(c).forEach(function(f){b.V.push(f)})};
var UEc=function(a){return a.V.filter(function(b){return!a.O.includes(b)})},VEc=function(a){a.O=[];a.V=[]};
var WEc=function(a,b){lzc.call(this,a.clone(),b.Nm(),b.Lc,b.Rf());this.context=b};_.N(WEc,lzc);WEc.prototype.W=function(a){var b=new Map;a.hn().forEach(function(c){var d=_.SVb(a.clone(),[c]);b.set(c,d)});return b};WEc.prototype.V=function(a){a=a.xd()[0];this.context.uf.nl([a],1,void 0,!0,this.request.O())};WEc.prototype.ha=function(a){this.context.uf.nl([],1,a,!1,this.request.O())};WEc.prototype.ka=function(a){a=_.NI(_.DI(new _.CI,a));this.context.uf.Po([a])};
var XEc=function(a,b,c,d){DM.call(this,a);this.Ng=b;this.request=c;this.Jd={};d&&this.nl(d,!0)};_.N(XEc,DM);_.g=XEc.prototype;
_.g.refresh=function(){var a=this;this.zp=6;var b=OL(this.context.Lc)!==OL(this.context.Lc,this.request.O()),c=[];this.request.hn().forEach(function(h){var k=a.Jd[h];k&&k.getItem().wg()&&!b||c.push(h)});if(0===c.length)return this.nl([],!1),_.Oh();var d=this.request.clone();_.SVb(d,c);var e=new WEc(d,this.context),f=_.Sh();this.context.Gj().Te()?(this.Pc.listen(this.context.Gj(),"Fb",function(h){h.Te()||(a.Pc.Vc(a.context.Gj(),"Fb"),a.jA(),e.Zg().then(f.resolve,f.reject,f))}),this.zp=0<_.Pa(this.Jd)?
1:2):(this.context.lk().Te()&&(this.zp=0<_.Pa(this.Jd)?1:2),this.jA(),e.Zg().then(f.resolve,f.reject,f));return f.promise};_.g.Fha=function(a){return this.context.Bm.equals(a,this.request)&&znc(_.mK(this.Ng),a.O())};_.g.Wj=function(a){var b=new _.uK;b.Bc(this.zp);b.Ei(this.Ye());lsc(b,_.Na(this.Jd,function(c){return c?c.getItem():null}));rDc(this,a.O(),b.eq());return b};_.g.resize=function(){};_.g.od=function(){return this.request};
_.g.Fu=function(a){var b=this.ms(a.O),c=this.ms(a.H);if(b||c)c?(this.Jd[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Jd[a.id]=null,a.O.count--);else return!1;return!0};_.g.ms=function(a){return!!a&&this.request.hn().includes(a.getId())};
var HM=function(a,b,c,d,e){DM.call(this,a);var f=this;this.V=0;this.Jd=[];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.zv=new IDc(this.context,this.request,!1,e);b=this.request.wc()&&mwc(this.request.wc());var h=this.context.uv;this.H=b?function(k,l){return h.compare(f.request,k,l)}:null;this.aCa=!b||!ewc(this.request)||_.SI(_.tI(a.Lc));this.Fa=Kxc(this.request);
c&&this.nl(c,!d);this.va=_.Zj(a.Lc.$f(),16,36E5);_.OJ(this.request)&&this.Pc.listen(this.context.Sga,"Hb",this.Ha);_.Ae(this,function(){_.aa(f.zv);f.clear()})};_.N(HM,DM);HM.prototype.refresh=function(){return YEc(this,!1)};var YEc=function(a,b){a.zp=6;if(_.S(a.request,48,!1))return a.zp=1,_.Oh();if(_.OJ(a.request)){var c=ZEc,d=a.context.Sga.H;d=Math.max(Date.now()-d,a.va);c(a,Math.min(d,2592E5))}return $Ec(a,b)};
HM.prototype.initialize=function(){return this.count>=this.request.xi()||1===this.zp?_.Oh():this.refresh()};HM.prototype.clear=function(){aFc(this)};var aFc=function(a){a.Jd.forEach(function(b){b.count--});a.count=0;a.Jd=[];a.O.clear()},ZEc=function(a,b){_.n.clearTimeout(a.Ba);a.Ba=_.n.setTimeout(function(){return YEc(a,!0)},b)};HM.prototype.Ha=function(){Date.now()-this.ta>this.va&&ZEc(this,0)};
var $Ec=function(a,b){a.zv&&(a.Pc.Vc(a.zv,"Ca",a.asa),a.Pc.Vc(a.zv,"Da",a.HLa),a.zv.dispose());var c=a.request.ve();c&&_.tf(c,!1);a.zv=new IDc(a.context,a.request,b);a.V=0;a.Pc.listen(a.zv,"Ca",function(){return a.asa(a.zv.ha)});a.Pc.listen(a.zv,"Da",a.HLa);return a.kca()};
HM.prototype.kca=function(){var a=this,b=_.Sh();this.context.Gj().Te()?this.Pc.listen(this.context.Gj(),"Fb",function(c){c.Te()||(a.Pc.Vc(a.context.Gj(),"Fb"),bFc(a,b))}):this.context.lk().Te()?this.Pc.Zc(this.context.lk(),[_.zB.wL,_.zB.nU],function(){bFc(a,b)}):bFc(this,b);return b.promise};var bFc=function(a,b){a.jA();var c=a.request.xi()+a.V;_.hka(GDc(a.zv,c).hg(b.resolve,b.reject,b),function(){return a.ta=Date.now()})};_.g=HM.prototype;
_.g.resize=function(a){var b=0;for(var c=_.m(new Set([].concat(_.ld(this.Cy)))),d=c.next();!d.done;d=c.next())d=d.value,d=tDc(this.context).oka(d),b=Math.max(b,d.xi());_.OJ(this.request)?(this.request.ri(b),2!==this.Ye()&&!this.zv.O&&(b>this.count||a)?this.refresh():this.rJ()):this.request.xi()!==b&&(this.request.ri(b),b>this.count?this.kca():this.rJ())};_.g.od=function(){return this.request};_.g.Fha=function(a){return this.context.Bm.equals(a,this.request)};
_.g.Wj=function(a){var b=a.xi(),c,d=!1;if(_.sJ(this.request)){var e=this.Jd.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=_.gl(k.getItem()).filter(function(l){return h.includes(_.C(l,_.Gk,1).getId())});k=k.clone();Dnc(k.getItem(),d);e[c]=k}e=e.filter(function(l){return _.gl(l.getItem()).length})}d=Mnc(e);c=new _.vK;_.y(c,4,!1);psc(c,f)}else e=this.Jd.slice(0,b),c=new _.mB,Hqc(c,b<this.Jd.length||!(this.context.Gj().Te()||
this.context.lk().Te())&&1!==this.zp),_.J(c,7,this.ka),_.y(c,8,this.incompleteSearch),_.Jj(c,18,this.ha),d=Mnc(e);e=woc(e);rDc(this,a.O(),e);c.Pw(e);c.Bc(d?6:this.ewa(b));c.Ei(this.Ye());c.sP(this.suggestionSessionId);return c};_.g.ewa=function(a){return 1===this.zp||a<=this.count?1:this.context.Gj().Te()||this.context.lk().Te()?0<this.Jd.length?1:2:6};_.g.asa=function(a){this.ka=a.W;this.incompleteSearch=a.incompleteSearch;this.ha=a.Fza();this.W=a.V;this.suggestionSessionId=a.Wf()};
_.g.HLa=function(){var a=this.request.xi()-this.count;0<a&&EDc(this.zv)&&(this.V+=a,this.kca())};_.g.nl=function(a,b){_.OJ(this.request)&&aFc(this);var c=!1;a=_.m(a);for(var d=a.next();!d.done;d=a.next())d=ZL(d.value),c=this.Fu(d,!0)||c;b||(1!==this.zp&&(c=!0),this.zp=1);if(a=this.H){a:{a=this.Jd;d=this.H||_.Ea;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.bo("ViewCache unsorted after import"),this.context.uv.sort(this.request,this.Jd));c&&(this.LX(),cFc(this,b))};
var cFc=function(a,b){_.Fl(a.request).length&&a.Jd.length&&a.context.LZ.then(function(c){var d=kL(a.context.Hk(),106024,a.ma);if(d){var e=_.Fl(a.request)[0].Za(),f=_.C(_.sK(d),urc,18);if(!f){f=new urc;var h=_.sK(d);_.J(h,18,f)}f=_.y(f,1,!b);c=_.y(f,2,c===e).At(a.Jd.length);e=a.context.uf.Un();_.y(c,4,e);a.ma=d;d.uj()}})};_.g=HM.prototype;
_.g.Fu=function(a,b){var c=this.O.get(a.id),d=!!c,e=this.ms(a.H,b),f=a.O;c&&(d?a.O&&a.O!==c&&this.bo("Updating different wrapper from the existing one"):this.bo("Updating existing item but old wrapper did not match"),f=c,d=!0);if(d||e)if(d)e?this.FJa(f,a.H):(this.iJ(f),_.OJ(this.request)&&ZEc(this,0));else{if(_.OJ(this.request)&&!b)return!1;this.tR(a.H)}else return!1;return!0};_.g.tR=function(a){this.H?onc(this.Jd,a,this.H):this.Jd.push(a);a.count++;dFc(a)&&this.count++;this.O.set(a.getId(),a)};
_.g.iJ=function(a){if(this.H){var b=this.Jd,c=_.Fa(b,a,this.H);0<=c&&_.sa(b,c)}else _.ta(this.Jd,a);a.count--;dFc(a)&&this.count--;this.O.delete(a.getId())};_.g.nya=function(a){return this.H?_.Fa(this.Jd,a,this.H):_.na(this.Jd,a)};_.g.FJa=function(a,b){this.H&&0!==this.H(a,b)?(this.iJ(a),this.tR(b)):(this.Jd[this.nya(a)]=b,b.count++,dFc(b)&&this.count++,a.count--,dFc(a)&&this.count--,this.O.delete(a.getId()),this.O.set(b.getId(),b))};
_.g.ms=function(a,b){if(!a)return!1;if(this.aCa&&!_.OJ(this.request)){if(b)return!0;if(!this.Fa){var c=a.getId();b=!!this.Jd.find(function(e){return c===e.getId()},this);a=QL(this.context.pt,this.request,a.getItem());return b&&a}}if(!QL(this.context.pt,this.request,a.getItem()))return!1;var d=1.2*this.request.xi();if(1===this.zp||!this.H||Mvc(a.V,2)||this.count<d||b||Vnc(a.getItem()))return!0;b=0===this.Jd.length?null:this.Jd[this.Jd.length-1];return!!b&&0>=this.H(a,b)};
_.g.rJ=function(){if(1!==this.zp&&!this.context.Gj().Te()&&!this.context.lk().Te()){var a=1.2*this.request.xi();if(!(a>=this.count||this.zv&&a>=this.zv.$b())){a=this.count-this.request.xi();for(var b=this.Jd.length-1;0<=b&&0<a;b--){var c=this.Jd[b];Mvc(c.V,2)||Vnc(c.getItem())||(c.count--,dFc(c)&&this.count--,this.O.delete(c.getId()),_.sa(this.Jd,b),a--)}$Ec(this,!1)}}};_.g.bo=function(a){var b=new _.mc;_.EI(b,2);_.FI(b,6);_.gq(b);this.context.dispatchEvent(new _.oc(new _.nc(a,b)))};
var dFc=function(a){return!Mvc(a.V,2)&&3!==a.getItem().gv()};HM.prototype.EQa=function(a){var b=this,c=_.Fl(this.request);c.length&&(c=c.some(function(d){return(d=b.context.uf.lm.H(d.Za()))&&_.Q(d,108)}),bxc(this.context.ifa,a,c))};HM.prototype.DQa=function(){this.rJ()};HM.prototype.HXa=function(a){return 1!==this.zp&&a.xi()>this.count&&this.zv.O};
var JM=function(a,b){var c;_.O.call(this);var d=this;this.O={};this.W=new TEc;this.Pc=new _.Je(this);this.Ma(this.Pc);this.context=a;this.Ng=b;this.Xr=new Rxc(a.Bm,a.Rf());if(null===(c=_.II(this.context.Lc))||void 0===c?0:_.S(c,15,!1))b=new eM(a.pt,a.uv),this.Xr.add(b),a.jfa.promise.then(function(){var e,f,h,k;null===(f=null===(e=d.Xr)||void 0===e?void 0:e.O)||void 0===f?void 0:bM(f,!(null===(k=null===(h=d.Xr)||void 0===h?void 0:h.H)||void 0===k?0:k.YG))});this.H=new dwc(a.LZ,a.pt,a.uv);_.Q(a.Lc,
60)&&(this.va=new NEc(a.pt,a.uv));this.V=new Yvc(a.Rf(),_.mK(this.Ng));eFc(this,_.Qd(this.context.Lc,28));this.lm=new gwc(this.Ng,this.context.Bm,this.H,this.V);this.context.Hk().W.H=this.lm;this.vI=new KDc(this.context,this.Ng,this.O,this.H);this.OFa=new OEc(this.context,this.H);this.ka=new FEc(this.context,this);_.Ae(this.ka,function(){d.ka=null});this.ta=_.Bgc(_.mK(this.Ng),fFc);$L(this.context.Kj,["NSockf"],function(){return d.initialize()});$L(this.context.Kj,["NSockf","jroI5d"],function(){var e=
d.context.Lc;if(_.C(e,_.cl,12))e=_.C(e,_.cl,12);else{var f=_.lhc(_.nhc(new _.Gk,_.eK(_.tI(e))),!0);f=_.y(f,6,1);var h=_.E(_.tI(e),6,"");h&&f.Ob(h);f=_.XVb(_.Shc(_.Thc(_.lG((new _.cl).Ob(d.context.Wn()).setTitle(_.E(e,38,"My Drive")),"application/vnd.google-apps.folder").Jn(!1),f),[f]),1);f=_.y(f,29,!0);f=_.y(f,63,!0);e=_.ohc(new _.Xk,_.S(e,6,!0));e=_.y(e,2,!1);e=_.ZJ(f,_.Bhc(_.uhc(_.thc(_.xhc(_.yhc(_.whc(_.vhc(_.shc(_.rhc(_.qhc(_.phc(_.y(e,3,!1),!1),!1),!0),!0),!1),!1),!1),!1),!1),!1),!1))}d.nl([e],
1);aM(d.context.Kj,"hVFf7")});this.ha=_.Sh();$L(this.context.Kj,["BNEDtc"],function(){d.ha.resolve()});this.qq=new qyc(this.context.Lc,this.context.Rf(),a.Nm(),a.ifa,this.context.Hk(),this.context.AX.promise);_.yI(this.context.Lc)&&this.Pc.listen(this.qq,"Kb",this.ma);this.ILa=new _.tkc(this.context.Lc,this.lm)};_.N(JM,_.O);
JM.prototype.ma=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=_.B(d.value,1);for(var e=this.qq.Fd(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.qq.H.get(d),e=!(!d||1!==d.Ye()&&4!==d.Ye()||3===ayc(d));e&&a.add(h)}b=[];c=_.m(c);for(h=c.next();!h.done;h=c.next())h=h.value,(d=this.H.get(h))?(h=d.getItem().clone(),gFc(this,h),b.push(Bxc(d,new NL(h,
void 0,1)))):this.log("b/154479164 Unexpected missing wrapper for "+h+".","warning");hFc(this,b,[]);this.context.Ls.update(6);a.size&&this.vI.vO([].concat(_.ld(a)),_.sf(new _.rf,311))};JM.prototype.initialize=function(){this.ka.Zg()};
JM.prototype.ii=function(a,b){if(b instanceof _.ef)b=RL(this.context.Bm,b),iFc(this,b.O()),QEc(this.OFa,b),b=jFc(this,b),b.cache.ii(a);else if(b instanceof _.tA)b=kFc(this,b),iFc(this,b.O()),b=lFc(this,b),b.cache.ii(a);else if(b instanceof _.mI){var c=GM(this,b),d=this.O[c];d?(3==d.AJ()?(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 dEc(this.context,this.Ng,b),d.refresh().Fg(_.Kf),this.O[c]=d,b={cache:d,sv:!0});b.cache.ii(a)}else if(b instanceof _.iG)c=b.O(),d=this.V,Zvc(d,d.H,d.O,c),b=lFc(this,b),b.cache.ii(a);else throw Error("rg");return b.sv};JM.prototype.ak=function(a,b){if(b instanceof _.ef)b=RL(this.context.Bm,b),SEc(this.OFa,b);else if(b instanceof _.tA)b=kFc(this,b);else if(!(b instanceof _.mI||b instanceof _.iG))throw Error("rg");b=GM(this,b);var c=this.O[b];c&&(c.ak(a),c.isDisposed()&&delete this.O[b])};
var GM=function(a,b){return pL(a.context.Bm,b,2)},jFc=function(a,b){var c,d,e=GM(a,b),f=a.O[e];if(f)return 3==f.AJ()?(a.log(e+" | ItemQueryRequest backed by refreshing existing cache"),f.refresh()):a.log(e+" | ItemQueryRequest backed by existing view cache"),{cache:f,sv:!1};for(var h=[],k=5,l,p,q=!1,r=Sxc(a.Xr),v=0;v<r.length;v++){var z=r[v];k=z.zE(b);if(5!=k){r=1==k?void 0:b.xi();if((null===(c=_.II(a.context.Lc))||void 0===c?0:_.S(c,18,!1))&&z instanceof eM){q=!0;k=5;a.log("Partial Caching dark launch: Skipped returning from the MyDrive cache for "+
(e+"."));break}h=z.Bka(b,r);l=z.Ye();p=z instanceof cM?z.my():"";a.log(e+" | ItemQueryRequest backed by "+z.getType()+" | size "+(z.Ld()+" | initial "+h.length));break}}5==k&&a.log(e+" | ItemQueryRequest backed by new cache");if(a.context.Gj().Te()||a.context.lk().Te())h=h.concat(a.H.query(b,1)),_.Da(h,void 0,function(A){return A.getId()}),k=(k=a.Xr.H)&&k.V7&&5!=k.zE(b)?k.zE(b):6,a.log("Offline: Populate with "+h.length+" initial items(s)");f=new HM(a.context,b,h,1==k,p);l&&f.Ei(l);f.nl(a.H.query(b,
2),1!=k);h=f.initialize();(null===(d=_.II(a.context.Lc))||void 0===d?0:_.S(d,18,!1))&&q&&h.then(function(){return FM(a.context)}).then(function(A){return A.JVa().bSb()}).then(function(){var A,D;if(f.isDisposed())a.log("Partial Caching dark launch: ViewCache is disposed skipping match check for "+e);else{var G=f.Wj(b).xd().map(function(R){return R.getId()}),H=(null===(D=null===(A=a.Xr)||void 0===A?void 0:A.O)||void 0===D?void 0:D.Wj(b,b.xi()).xd().map(function(R){return R.getId()}))||[],L=_.Ha(G.sort(),
H.sort()),M=kL(a.context.Hk(),106030);M&&(zrc(yrc(xrc(Prc(M),G.length),H.length),L),M.uj());L?a.log("Partial Caching dark launch: Network/Cache match for "+e):a.log("Partial Caching dark launch: Network/Cache mismatch for "+e+("\nNetwork: "+G.length+".  Cache: ")+(H.length+".\nNetwork: ")+(G+".\nCache: ")+(H+"."),"warning")}},function(){a.log("Partial Caching dark launch: Error waiting for changelog processing.Won't be checking match for "+e,"warning")});h.Fg(function(A){A=_.GI(A);_.gq(A);a.context.dispatchEvent(new _.oc(new _.nc("Error during view cache init",
A)))});a.O[e]=f;return{cache:f,sv:!0}},lFc=function(a,b){var c=GM(a,b),d=!1,e=a.O[c];if(e&&e.Fha(b))a.log("FindByIdsRequest backed by existing query cache: "+c);else{var f=a.H.getAll(b.hn()),h;b instanceof _.tA?h=new ADc(a.context,a.Ng,b,f):h=new XEc(a.context,a.Ng,b,f);f.length&&h.Ei(8);h.refresh().Fg(_.Kf);b=h;d=!0;a.O[c]=b;e?(mFc(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}};JM.prototype.bW=function(){return Object.values(this.O).filter(function(a){return a.od()instanceof _.mI})};
JM.prototype.q1a=function(a){for(var b=_.sf(new _.rf,309),c=[],d=_.m(Object.entries(this.V.items)),e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;f=_.m(Object.entries(f));for(var h=f.next();!h.done;h=f.next()){h=_.m(h.value);var k=h.next().value;h.next();if(k===a){c.push(Number(e));break}}}c.length&&(d=vwc(this.context.Bm,c,!0),this.log("Refreshing "+a+" for secondary fields: "+d+"."),this.vI.vO([a],b,!1,c))};
var qDc=function(a,b,c){c&&c.length&&awc(a.V,b,c);_.yI(a.context.Lc)&&Ayc(a.qq,b)},VDc=function(a,b,c){var d,e,f;if(b instanceof dEc){var h=GM(a,b.od());if(a.O[h]){a.log(h+" | Cache already exists, ignoring persisted data");return}}b instanceof Exc&&a.Xr.remove(b);h=new Map;var k=a.H.iy(),l=new Map(k);k=[];for(var p=_.m(b.iy()),q=p.next();!q.done;q=p.next()){q=q.value;var r=q.getId(),v=a.H.get(r);if(v){var z=v.getItem().gv();(null===(d=_.II(a.context.Lc))||void 0===d?0:_.S(d,15,!1))&&!0===q.H&&Ovc(v,
q.H);3==z||4==z?h.set(q.getId(),q.getItem()):v!=q&&k.push(new Axc(q.getId(),q,v));l.delete(r)}else{r=ZL(q);if(null===(e=_.II(a.context.Lc))||void 0===e?0:_.S(e,15,!1))null===(f=a.Xr.O)||void 0===f?void 0:f.update(r);a.H.update(r);a.W.update(r);_.yI(a.context.Lc)&&a.qq.cP(r)}_.yI(a.context.Lc)&&gFc(a,q.getItem())}l=_.m(l.values());for(q=l.next();!q.done;q=l.next())k.push(ZL(q.value));k=_.m(k);for(l=k.next();!l.done;l=k.next())b.update(l.value);b instanceof dEc?(k=GM(a,b.od()),a.O[k]=b):a.Xr.add(b);
k=[];h=_.m(h.values());for(l=h.next();!l.done;l=h.next())l=l.value,p=new _.CI,_.DI(p,l.getId()),p.setItem(l),k.push(p);a.Po(k);a.log("Merged cache: "+b.getType());b instanceof gM&&c.forEach(function(A){nFc(a.context.csa,A)});a.context.Ls.update(3)},mFc=function(a,b){(new Set([].concat(_.ld(a.Cy)))).forEach(function(c){b.ii(c);a.ak(c)})};
JM.prototype.nl=function(a,b,c,d,e){var f=this,h;e||(e=c?[].concat(_.ld(c.O().filter(function(D){return!_.mK(f.Ng).includes(D)}))):[]);c&&c instanceof _.ef&&_.OJ(c)&&oFc(this,a,c);for(var k=[],l=[],p=0;p<a.length;p++){var q=a[p],r=new NL(q,void 0,b),v=this.H.get(q.getId()),z=v?v.getItem():null,A=pFc(this,v,r);if(null!=A)r.Ty(A),qFc(this,z,q),Unc(q),q=Wvc(q,z,e),r.setItem(q);else if(null!=v)r=v,q=z;else continue;_.yI(this.context.Lc)&&gFc(this,q);!v||rFc(this,z,q,e)?(l.push(Bxc(v,r)),k.push(r)):k.push(v)}a=
null;if(c){if(c instanceof _.ef){if(null===(h=_.II(this.context.Lc))||void 0===h?0:_.S(h,15,!1))a=_.Fl(c),1==a.length&&(a=a[0].Za(),(a=this.H.get(a))&&!a.H&&Ovc(a,!d));(a=Vxc(this.Xr,c))&&a.nl(k,!!d)}c=GM(this,c);(a=this.O[c])&&a.nl(k,!!d)}0<l.length&&(_.yI(this.context.Lc)&&l.forEach(function(D){return f.qq.cP(D)}),hFc(this,l,e,a?[a]:[]),sFc(this,k));tDc(this.context).Q8()};
var gFc=function(a,b){Dyc(a.qq,b)||5!=b.gv()||_.$hc(b,1)},rFc=function(a,b,c,d){(b=b?_.Kj(b.clone(),82):null)&&qDc(a,[b],d);c=_.Kj(c.clone(),82);qDc(a,[c],[]);return!_.Vj(b,c)},oFc=function(a,b,c){tFc(a,b,c);b.forEach(function(d,e){var f=a.lm.H(d.getId());f&&(WK(f,d,[1002]),WK(f,d,[1003]),WK(f,d,[1005]),b[e]=f);_.rJ(c)&&0<_.Qd(c,33).length&&_.aic(d,_.Qd(c,33)[0])})},tFc=function(a,b,c){var d;_.rJ(c)?d="quick access":_.sJ(c)?d="people predict":_.tJ(c)&&(d="drive priority");c=b.map(function(e){return e.getId()}).join(", ");
a.log("Got "+b.length+" items for "+d+": "+c)},dDc=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.nl(woc(d),b)};JM.prototype.fla=function(a){this.ILa.fla(a)};
JM.prototype.Po=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a[d],f=e.mk()?null:e.getItem(),h=e.Ac(),k=(h=this.H.get(h))?h.getItem():null,l=null;if(f){l=new NL(f,void 0,void 0,_.B(e,1)||void 0);var p=pFc(this,h,l);if(null==p)continue;l.Ty(p);qFc(this,k,f);_.S(e,5,!1)&&unc(f,Jnc);Unc(f);f=Wvc(f,k);l.setItem(f);_.yI(this.context.Lc)&&gFc(this,f)}if(k&&!f||f&&rFc(this,k,f,[]))this.context.KIa.ty(e),c.push(Bxc(h,l))}_.yI(this.context.Lc)&&c.forEach(function(q){return b.qq.cP(q)});hFc(this,
c,[])};var qFc=function(a,b,c){b&&!c.Lm()&&WK(c,b,a.ta);var d=b?b.Hf():null,e=c.Hf();e=e?_.Ud(e):null;d&&e&&qFc(a,_.Ud(d),e);b&&!_.fl(c)&&WK(c,b,[1002]);b&&!_.gl(c).length&&WK(c,b,[1003]);b&&!_.hl(c).length&&WK(c,b,[1005]);b&&null==c.D1()&&WK(c,b,[71]);b&&null==_.B(c,79)&&WK(c,b,[73]);b&&_.Q(b,31)&&!_.Q(c,31)&&(unc(c,Jnc),a.log("Cleared Item Suggest data for "+b.getId()+"."))};
JM.prototype.rB=function(a,b){if(a instanceof _.ef||a instanceof _.tA||a instanceof _.mI)a=GM(this,a),(a=this.O[a])&&a.KX(b);else throw Error("rg");};var pFc=function(a,b,c){var d=c.getItem();if(Zyc(a.context.kfa,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.gv()&&!PL(a)&&!PL(d)&&a.yc()==d.yc())if(a.zi()&&d.zi()){if(a.zi()>d.zi())return null}else if(b.O&&c.O){if(b.O>c.O)return null}else if(a.tq()>d.tq())return null}return Nvc(b&&b.V,c.V)};
JM.prototype.XH=function(a,b){(a=this.H.get(a))&&a.Ty(Nvc(a.V,b))};
var hFc=function(a,b,c,d){d=void 0===d?[]:d;var e;if(null===(e=_.II(a.context.Lc))||void 0===e?0:_.S(e,15,!1))for(var f=_.m(b),h=f.next();!h.done;h=f.next())h=h.value,h.O&&h.H&&Ovc(h.H,h.O.H);h=_.m(b);for(f=h.next();!f.done;f=h.next())f=f.value,a.V.update(f.id,f.H?f.H.getItem():null,c);c=Object.values(a.O);d=_.m(d);for(h=d.next();!h.done;h=d.next())_.ta(c,h.value);d=_.m(c);for(h=d.next();!h.done;h=d.next())sDc(h.value,b);h=Sxc(a.Xr);d=0;c=_.m(h);for(h=c.next();!h.done;h=c.next()){f=h.value;var k=
!1,l=_.m(b);for(h=l.next();!h.done;h=l.next())f.update(h.value)&&(k=!0);k&&d++;f instanceof gM&&f.Ld()>=1.2*f.limit&&uFc(a.context.KIa,f.yc(),!1)}b=_.m(b);for(h=b.next();!h.done;h=b.next())h=h.value,_.Q(a.context.Lc,60)&&a.va.update(h),a.H.update(h),a.H.get(h.id)||a.V.rJ(h.id),a.W.update(h);0<d&&a.context.Ls.Vma(d);vFc(a)},vFc=function(a){var b=a.W.O.slice(0),c=UEc(a.W);VEc(a.W);if(b.length){a.log("Refreshing shortcuts with unknown targets: "+b.join(", "));var d=new _.rf;_.sf(d,308);a.vI.vO(b,d,!0)}if(c.length){a.log("Updating locally stale shortcuts: "+
c.join(", "));b=hwc(a.lm,c);var e=[];Object.values(b).forEach(function(f){var h=f.getItem().Hf(),k=_.B(h,1);if(k=a.lm.H(k))_.J(h,5,k),_.y(h,4,1),e.push(f)});dDc(a,e)}},wFc=function(a){tDc(a.context).Q8();a.H.rJ()},kFc=function(a,b){_.Ga(b.O());var c=_.na(b.hn(),"root");if(0>c)return b;b=b.clone();b.hn()[c]=a.context.Wn();return b},eFc=function(a,b){var c;null!==(c=_.II(a.context.Lc))&&void 0!==c&&_.S(c,1,!1)||(b=Krc(a.Ng,b),a=a.V,Zvc(a,a.items,a.fields,b))},iFc=function(a,b){var c;if(null===(c=_.II(a.context.Lc))||
void 0===c?0:_.S(c,1,!1))b=Krc(a.Ng,b),a=a.V,Zvc(a,a.items,a.fields,b)},sFc=function(a,b){a.ha.promise.then(function(){var c=b.filter(function(e){return 4==e.getItem().gv()});if(c.length){c=c.map(function(e){return e.getId()});a.log("Refreshing "+c.length+" partial items. "+c);var d=_.sf(new _.rf,311);a.vI.vO(c,d)}})},MEc=function(a,b){a.ha.promise.then(function(){b.forEach(function(c){if(!Vxc(a.Xr,c)){a.log("Adding new cache hint for "+GM(a,c));var d=new cM(a.context.pt,a.context.uv,a.context.Bm,
c);c=new PDc(a.context,d,c);var e=kM(a.context.sz,null);_.Th(c.Zg().then(function(){SDc(d,e).then(function(f){VDc(a,d,f)})}),function(){hzc(a.context.sz,null)})}})})};JM.prototype.Un=function(){var a=this.Xr.H;return a&&a.YG?1:2};JM.prototype.log=function(a,b){this.context.Rf().log("drive.ds.sync.cache.CacheManager",a,void 0===b?"info":b)};var fFc=[50];
var yFc=function(a){_.O.call(this);var b=this;this.context=a;this.H=[];this.V=new _.ml;this.O=new Map;this.ka=-1;this.ha=0;var c=_.Sh();this.va=c.promise;XAc(this.context.uD).then(function(d){b.H=d||[];c.resolve();xFc(b)},function(){return c.resolve()});$L(this.context.Kj,["rVezo"],(0,_.u)(this.W,this))};_.N(yFc,_.O);
var REc=function(a,b){_.S(a.context.Lc,46,!1)&&a.va.then(function(){if(a.H[0]!==b){_.ta(a.H,b);for(Xvc(a.context.uf.lm.H(b))?a.log(b,"Hidden TD, not tracking in recency list"):_.Aa(a.H,0,0,b);a.H.length>2*_.Zj(a.context.Lc,47,5);)a.H.pop();a.context.uD.set(RAc,a.H)}a.context.uf.Xr.bW().length+a.O.size<_.Zj(a.context.Lc,47,5)&&(xFc(a),a.W())})},zFc=function(a,b){_.ta(a.H,b)&&a.context.uD.set(RAc,a.H)};
yFc.prototype.ty=function(a){nFc(this.context.csa,a);if(PL(a)){var b=a.yc();a.mk()?uFc(this,b,!0):(a=a.getItem(),Xvc(a)&&zFc(this,b))}};var uFc=function(a,b,c){zFc(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.uf.Xr;for(var e=d.bW(),f=0;f<e.length;f++){var h=e[f];if(h.yc()===b){a.log(b,"Cache removed");d.remove(h);a.context.Ls.update(3);break}}FM(a.context).addCallback(function(k){k.qGa(b,c)});a.W()};
yFc.prototype.W=function(){if(this.context.Kj.H("rVezo")){var a=this.context.uf.Xr;AFc(this);for(var b={};this.V.$b()&&!(this.ha>=_.Zj(this.context.Lc,47,5));){var c=_.nl(this.V);this.ha++;Uxc(a,c)||this.O.has(c)||(this.O.set(c,null),b.Gea=new _.Xgc,_.y(b.Gea,1,c),this.context.Nm().then(function(d){return function(e){return e.Re(d.Gea)}}(b)).then(this.ta.bind(this,c),this.ma.bind(this,c)));b={Gea:b.Gea}}}};
var xFc=function(a){a.H&&a.H.length&&(a.ha=0,a.V.clear(),a.H.forEach(function(b){a.V.enqueue(b)}))},AFc=function(a){_.n.clearTimeout(a.ka);a.ka=_.n.setTimeout(function(){xFc(a);a.W()},36E5)};yFc.prototype.ta=function(a,b){var c=_.B(b,1);c&&c>_.Zj(this.context.Lc,48,1E3)?(this.log(a,"Too large to backfill: "+_.B(b,1)),BFc(this,a,!1)):CFc(this,a)};
yFc.prototype.ma=function(a,b){(b=_.GI(b).kk())&&4===b?(this.log(a,"Non-existent or inaccessible, removing from cache"),a=_.NI(_.bgc(_.DI(new _.CI,a),a)),this.context.uf.Po([a])):CFc(this,a)};
var CFc=function(a,b){var c=new gM(a.context.pt,a.context.uv,b),d=c.od().clone();d.ri(_.Zj(a.context.Lc,48,1E3));d=new PDc(a.context,c,d);a.O.set(b,d);a.log(b,"Backfill started");var e=kM(a.context.sz,b);FM(a.context).addCallback(function(f){f.Jua(b)});_.Th(d.Zg().then(function(){DFc(a,b,c,e)},function(){a.log(b,"Backfill failed");a.ha--;BFc(a,b,!0)}),function(){hzc(a.context.sz,b)})},DFc=function(a,b,c,d){c.YG?(c.bX(),SDc(c,d).then(function(e){a.log(b,"Backfill complete, size: "+c.Ld());VDc(a.context.uf,
c,e);BFc(a,b,!1)},function(){a.log(b,"Backfill changes failed");BFc(a,b,!0)})):(a.log(b,"Backfill exceeded size limit"),BFc(a,b,!0))},BFc=function(a,b,c){var d=a.O.get(b);d&&d.dispose();a.O.delete(b);c&&FM(a.context).addCallback(function(e){e.qGa(b,!1)});a.W();0<a.O.size||a.context.uf.Xr.bW().map(function(e){return e.yc()}).filter(function(e){return!a.H.includes(e)}).forEach(function(e){uFc(a,e,!0)})};
yFc.prototype.log=function(a,b){this.context.Rf().info("drive.ds.sync.cache.TeamDriveCacheManager",a+" | "+b)};
var EFc=function(){_.O.apply(this,arguments)};_.N(EFc,_.O);
var HFc=function(a,b){b=FFc(b);var c=a.getItem(),d=GFc(c.getCapabilities());b.S3.forEach(function(e){_.XVb(e.getItem(),c.Yo());_.ZJ(e.getItem(),d.clone())});return b},KFc=function(a,b,c){var d=IFc(c);c=c.find(function(e){return e.getId()===b.getId()});c={iK:c?c:new NL(b),children:[]};JFc(a,d,c);return c},IFc=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().jk()),e=d.next();!e.done;e=d.next())e=e.value,b[e]||(b[e]=[]),b[e].push(c)}return b},JFc=
function(a,b,c){var d=c.iK.getItem();(b[d.getId()]||[]).forEach(function(e){c.children.push(JFc(a,b,{iK:e,parent:c,children:[]}))});return c},MFc=function(a,b){b=b.children.filter(function(l){return!_.el(l.iK.getItem())});for(var c=new Map,d=[];b.length;){var e=b.pop(),f=e.iK.getItem();if(!c.has(f.getId())){_.XVb(f,a.Yo());LFc(a,f,e.parent?e.parent.iK.getItem():void 0);for(var h=_.m(e.children),k=h.next();!k.done;k=h.next())k=k.value,_.el(k.iK.getItem())||b.push(k);c.set(f.getId(),!0);d.push(e.iK)}}return d},
NFc=function(a){a=a.children.filter(function(h){return!_.el(h.iK.getItem())});for(var b=new Map,c=[];a.length;){var d=a.pop(),e=d.iK.getItem();if(!b.has(e.getId())){c.push(_.NI(_.DI(new _.CI,e.getId())));d=_.m(d.children);for(var f=d.next();!f.done;f=d.next())f=f.value,_.el(f.iK.getItem())||a.push(f);b.set(e.getId(),!0)}}return c},FFc=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();_.el(e)||_.Q(e,137)?c.push(e):b.push(d)}return{rQ:c,S3:b}},GFc=
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);_.y(a,45,c);_.Hhc(a,b);_.y(a,30,c);_.Chc(a,b);_.Ihc(a,c);_.Dhc(a,c);_.Ehc(a,b);_.phc(a,b);_.uhc(a,c);_.Ahc(a,b);_.zhc(a,_.Q(a,7));_.thc(a,_.Q(a,10)||_.Q(a,11));_.Bhc(a,_.Yk(a));_.Kj(a,18);_.Kj(a,13);_.Kj(a,10);_.Fhc(a,_.Q(a,42));_.Ghc(a,_.Q(a,43));_.Jhc(a,_.Q(a,48));return a},LFc=function(a,b,c){var d=a.getCapabilities(),e=b.getCapabilities(),f=_.Q(d,30);_.y(e,30,f);_.Chc(e,_.Q(d,31));_.Ihc(e,_.Q(d,
47));_.Dhc(e,_.Q(d,32));_.Ehc(e,_.Q(d,33));_.phc(e,_.Q(d,4));_.uhc(e,_.Q(d,9));_.Bhc(e,_.Q(d,21));_.Ahc(e,_.Q(d,20));_.zhc(e,_.Q(d,17));_.ohc(e,_.Yk(d));_.shc(e,_.Q(d,7));_.vhc(e,_.Q(d,10));_.whc(e,_.Q(d,11));f=_.Q(d,45);_.y(e,45,f);_.Hhc(e,_.Q(d,46));_.Jhc(e,_.Q(d,48));a=_.el(a);_.y(b,137,a);c&&(c=c.getCapabilities(),YK(b)?(_.thc(e,_.Q(c,43)),_.Ghc(e,_.Q(c,43)),_.Fhc(e,_.Q(c,42))):_.thc(e,_.Q(c,42)))};
var OFc=function(a){this.context=a;this.V=new EFc;this.O=_.sf(new _.rf,306);this.H=a.uf},nFc=function(a,b){if(PL(b))b.mk()?PFc(a,b):QFc(a,b);else if(_.S(a.context.Lc,86,!1)){var c=b.Ac(),d=a.H.lm.H(c);var e=d&&d.yc();var f=b.getItem()&&b.getItem().yc();if(!d||!e||!YK(b.getItem()||d)||f&&f!==e)e=!1;else if(e=!!_.el(d),!b.mk()){var h=b.getItem();f=_.el(d)!==_.el(h);h=h.Yo()!==d.Yo();e=f||e&&h}if(e)if(b.mk()){if(b=RFc(a,d.yc()),d=a.V,e=(new _.cl).Ob(c),b=(b=KFc(d,e,b))?NFc(b):[],a.context.uf.Po(b),a.log(c,
"SD shared folder delete | Removed "+b.length+" item(s)"),a=kL(a.context.Hk(),106009))c=Mrc(a),_.y(c,2,b.length),a.uj()}else if(c=b.getItem(),d=RFc(a,c.yc()),e=a.V,c=b.getItem(),c=(d=KFc(e,c,d))?MFc(c,d):[],dDc(a.context.uf,c),a.log(b.Ac(),"SD shared folder update | Updated "+c.length+" item(s)"),a=kL(a.context.Hk(),106010))b=Mrc(a),_.y(b,1,c.length),a.uj()}},PFc=function(a,b){var c=b.Ac();b=RFc(a,c);b=FFc(b);var d=_.cf(b.S3,function(e){return _.NI(_.DI(new _.CI,e.getId()))});a.context.uf.Po(d);a.H.vI.vO(b.rQ.map(function(e){return e.getId()}),
a.O,void 0,void 0,b.rQ.map(function(e){return _.Cl((new _.Bl).Ob(e.getId()),_.jl(e))}));a.log(c,"SD delete | Remove "+d.length+" item(s), "+(b.rQ.length+" divergent items"));if(a=kL(a.context.Hk(),106016))c=Nrc(a),_.y(c,1,b.rQ.length),_.y(c,2,b.S3.length),a.uj()},QFc=function(a,b){var c=b.Ac(),d=RFc(a,c),e=a.H.lm.H(c);b=HFc(b,d);dDc(a.context.uf,b.S3);a.H.vI.vO(b.rQ.map(function(h){return h.getId()}),a.O,void 0,void 0,b.rQ.map(function(h){return _.Cl((new _.Bl).Ob(h.getId()),_.jl(h))}));a.log(c,"SD update | Update "+
b.S3.length+" item(s), "+(b.rQ.length+" divergent items"));if(d=kL(a.context.Hk(),106017)){var f=Nrc(d);_.y(f,1,b.rQ.length);_.y(f,2,b.S3.length);d.uj()}e||ODc(a.H.vI,c)},RFc=function(a,b){var c=new _.ef;_.Hl(c,[b]);_.Il(c,2);return jwc(a.H.lm,c)};OFc.prototype.log=function(a,b){this.context.Rf().info("drive.ds.sync.change.TdChangeProcessor",a+": "+b)};
var SFc=function(a,b,c){this.H=a;this.V=b;this.mJ=c};
SFc.prototype.Uw=function(a,b){var c=this;if(a.HV().length){var d=Vyc(this.H,a.Ac());if(d){var e=d?Wyc(this.H,a):[];for(var f={},h=_.m(a.HV()),k=h.next();!k.done;f={pL:f.pL},k=h.next())if(k=k.value,f.pL=TFc(e,k.Gm(),a.Ac()),_.Q(k,3))bzc(this.H,f.pL),_.Th(b,function(r){return function(){c.H.O.W(Lyc(r.pL))}}(f));else{for(var l=_.m(_.Rj(k,_.eG,2)),p=l.next();!p.done;p=l.next())UFc(this,f.pL,p.value);k=_.m(_.Qd(k,4));for(l=k.next();!l.done;l=k.next())VFc(f.pL,l.value);this.H.nD([f.pL],!1,-1);b.then(function(r){return function(){return void c.H.XH(r.pL.getName(),
-2)}}(f),function(r){return function(){c.H.XH(r.pL.getName(),-2)}}(f))}e=this.ld(d.Wj().response)}}e=e?e:this.ld();var q=e.V2a;b.then(function(r){q.resolve(r)},function(r){q.reject(_.yB(r));c.handleError(a.Ac(),r)});return e};SFc.prototype.ld=function(a){a=void 0===a?new yL:a;return new Rvc(a.Bc(1))};var TFc=function(a,b,c){var d=a.find(function(e){return Kyc(e.getName(),b)});d||(d=Esc((new tL).$c(b),c),a.push(d));return d};
SFc.prototype.handleError=function(a,b){dzc(this.V,a);a=_.GI(b);_.y(a,21,"Server error updating metadata after optimistic application.");this.mJ(a)};
var UFc=function(a,b,c){var d=b.O().find(function(e){return e.getId()===c.getId()});d||(d=new rL,d.Ob(c.getId()),Dsc(b,b.O().concat([d])),WFc(d,c));if(1===sL(d))d.setBooleanValue(_.Q(c,3));else if(12===sL(d))d.setDateStringValue(_.B(c,17));else if(2===sL(d))d.setTextValue(_.B(c,4));else if(3===sL(d))_.Qd(c,6).length?d.Ioa(_.Qd(c,6)):_.Qd(c,5).length&&(a=_.Qd(d,7).concat(_.Qd(c,5)),d.Ioa(a));else if(4===sL(d))d.setLongTextValue(_.B(c,7));else if(5===sL(d))d.setSelectionValue(_.B(c,8));else if(6===
sL(d))_.Qd(c,10).length?d.Eoa(_.Qd(c,10)):_.Qd(c,9).length&&(a=d.vLa().concat(_.Qd(c,9)),d.Eoa(a));else if(7===sL(d))d.setIntegerValue(_.B(c,11));else if(8===sL(d))_.Qd(c,13).length?d.woa(_.Qd(c,13)):_.Qd(c,12).length&&(a=_.Qd(d,12).concat(_.Qd(c,12)),d.woa(a));else if(10===sL(d))d.setUserValue(a.O(_.B(c,14)));else if(11===sL(d))_.Qd(c,16).length?Asc(d,_.Qd(c,16).map(a.O)):_.Qd(c,15).length&&Asc(d,d.TVa().concat(_.Qd(c,15).map(a.O)));else throw d="Optimistic Applier: Unsupported value type "+(sL(d)+
"."),new _.nc(d,new _.mc);},VFc=function(a,b){if(a=a.O().find(function(c){return c.getId()===b}))if(1===sL(a))_.Kj(a,5);else if(12===sL(a))_.Kj(a,17);else if(2===sL(a))_.Kj(a,6);else if(3===sL(a))_.aI(a,7);else if(4===sL(a))_.Kj(a,8);else if(5===sL(a))_.Kj(a,9);else if(6===sL(a))_.aI(a,10);else if(7===sL(a))_.Kj(a,11);else if(8===sL(a))_.aI(a,12);else if(10===sL(a))_.Lj(a,15);else if(11===sL(a))_.Nj(a,16);else throw a="Optimistic Applier: Unsupported value type "+(sL(a)+"."),new _.nc(a,new _.mc);
},WFc=function(a,b){_.P(b,3)?a.OA(1):_.P(b,17)?a.OA(12):_.P(b,4)?a.OA(2):_.Qd(b,6).length||_.Qd(b,5).length?a.OA(3):_.P(b,7)?a.OA(4):_.P(b,8)?a.OA(5):_.Qd(b,10).length||_.Qd(b,9).length?a.OA(6):_.P(b,11)?a.OA(7):_.Qd(b,13).length||_.Qd(b,12).length?a.OA(8):_.P(b,14)?a.OA(10):(_.Qd(b,16).length||_.Qd(b,15).length)&&a.OA(11)};SFc.prototype.O=function(a){return _.mhc(_.khc(1),a)};
var XFc=function(a,b,c,d,e,f,h,k,l){this.H=a;this.ha=b;this.va=c;this.O=d;this.ka=e;this.Ng=f;this.W=0;this.V=k;this.ma=l;this.Ba=h};XFc.prototype.apply=function(a,b){var c=this;if(!_.NJ(a))return b;var d=null;a instanceof _.fJ?d=YFc(this,a,b):a instanceof _.mJ?d=ZFc(this,a,b):a instanceof _.JI?d=this.Uw(a,b):a instanceof _.aJ?d=$Fc(this,a,b):a instanceof _.FJ&&(d=this.va.Uw(a,b));d&&(this.W++,this.ha.setActive(!1),_.Th(b,function(){c.W--;0==c.W&&c.ha.setActive(!0)}));return d?_.Oh(d):b};
var YFc=function(a,b,c){Yyc(a.O,b.getId());var d=a.H.lm.H(b.getId());_.Th(c.then(function(){return void a.ma("VMiG2e")},a.ta.bind(a,b.getId(),d)),a.O.W.bind(a.O,b.getId()));c.then(null,function(e){e=_.GI(e);_.y(e,21,"Server error deleting item after optimistic application.");a.V(e)});return(new _.MJ).Bc(1)},ZFc=function(a,b,c){var d=_.B(b,2);d&&a.O.H.push(d);c.then(function(){d&&$yc(a.O,d)&&_.Th(aGc(a,d,new _.skc(1E4,3E5),Date.now()+72E5,5),function(){return void a.ma("VMiG2e")})},function(){d&&_.ta(a.O.H,
d)});c.then(null,function(e){e=_.GI(e);_.y(e,21,"Server error emptying trash after optimistic application.");a.V(e)});return(new _.MJ).Bc(1)},aGc=function(a,b,c,d,e){if(Date.now()>d||0>=e)return _.Oh();var f=_.Sh(),h=c.Za();_.WH(c);setTimeout(function(){a.ka.then(function(k){var l=_.sf(new _.rf,1425);l=voc(!0,1,l);return k.Re(l).then(function(p){if(p=p.ld())if(p=p.xd()[0],!p||(p.Xv()||0)>b){f.resolve();return}_.Th(aGc(a,b,c,d,e),function(){return void f.resolve()})},function(){return _.Th(aGc(a,b,
c,d,e-1),function(){return void f.resolve()})})})},h);return f.promise},$Fc=function(a,b,c){var d=b.yc(),e=a.H.lm.H(d);if(!e)return null;e=e.clone();qDc(a.H,[e],[157]);var f=e.wg();bGc(f,_.Rj(b,_.bl,2));cGc(f,_.Rj(b,_.bl,3));a.H.nl([e],-1,void 0,void 0,[157]);_.Th(c,function(){a.H.XH(d,-2)}).then(function(h){a.H.nl([_.C(h,_.cl,2)],1,void 0,void 0,[157])},null);c.then(null,function(h){h=_.GI(h);_.y(h,21,"Server error updating item after optimistic application.");a.V(h)});return Btc(new Atc,e).Bc(1)},
bGc=function(a,b){var c={};b=_.m(b);for(var d=b.next();!d.done;c={xea:c.xea},d=b.next())c.xea=d.value,_.Rj(a,_.bl,8).some(function(e){return function(f){return f.Gm()==e.xea.Gm()}}(c))||_.Tj(a,8,c.xea,_.bl,void 0)},cGc=function(a,b){var c=b.map(function(d){return d.Gm()});b=_.Rj(a,_.bl,8).filter(function(d){return!c.includes(d.Gm())});Cnc(a,b)};
XFc.prototype.Uw=function(a,b){var c=this,d=this.H.lm.H(a.getId());if(!d||d.yc()&&0==a.Th()||null!=_.Q(a,40))return null;var e=_.Qd(a,10),f=_.Qd(a,9);if(0<e.length&&0<f.length&&(e=Object.values(iwc(this.H.lm,e.concat(f))).map(function(k){return k.yc()||"root"}),_.Da(e),1<e.length))return null;var h=d.clone();dGc(this,a,h);this.H.nl([h],-1,void 0,void 0,Irc(this.Ng));b.then(function(){return c.H.XH(a.getId(),-2)},function(){c.H.XH(a.getId(),-2);c.ta(a.getId(),d)});b.then(null,function(k){k=_.GI(k);
if(63==k.kk()){var l=h.getId();_.y(k,22,l);_.y(k,23,f[0])}_.y(k,21,"Server error updating item after optimistic application.");c.V(k)});return _.Sic((new _.MJ).setItem(h),h.getId()).Bc(1)};
var dGc=function(a,b,c){null!=b.Fe()&&c.Il(b.Fe());null!=b.Vi()&&_.Xhc(c,b.Vi());null!=b.getMimeType()&&_.lG(c,b.getMimeType());null!=_.B(b,7)&&_.WVb(c,_.B(b,7));null!=_.Q(b,11)&&_.Rhc(c,_.Q(b,11));null!=_.Q(b,4)&&c.Ev(_.Q(b,4));null!=_.Q(b,16)&&_.Whc(c,_.Q(b,16));null!=b.getTitle()&&c.setTitle(b.getTitle());null!=b.Th()&&(c.Jn(b.Th()),_.Vhc(c,b.Th()));null!=_.Q(b,18)&&_.TK(Tnc(c,!0),_.Q(b,18));_.Qd(b,8).length&&_.YJ(c,_.Qd(b,8));if(_.Qd(b,9).length){var d=new Set(c.jk());_.Qd(b,9).forEach(function(p){return d.add(p)});
_.YJ(c,[].concat(_.ld(d)))}if(_.Qd(b,10).length){var e=new Set(c.jk());_.Qd(b,10).forEach(function(p){return e.delete(p)});_.YJ(c,[].concat(_.ld(e)));var f=c.xw();f&&_.Qd(b,10).includes(f)&&_.Kj(c,46)}if(!c.xw()){var h=a.Ba();f=c.jk().find(function(p){var q=a.H.lm.H(p);return q&&!!q.xw()||p==h});_.y(c,46,f||void 0)}c.jk().length&&(f=a.H.lm.H(c.jk()[0]))&&_.aic(c,f.yc());if(f=_.C(b,_.Zk,25)){var k=_.C(c,_.Zk,111)||new _.Zk;null!=_.Q(f,1)&&_.Lhc(k,_.Q(f,1));null!=_.B(f,2)&&_.Mhc(k,_.B(f,2));_.J(c,111,
k)}var l=_.Qd(c,120);_.Qd(b,31).forEach(function(p){l.includes(p)||l.push(p)});_.Qd(b,32).forEach(function(p){_.ta(l,p)});_.Jj(c,120,l)};XFc.prototype.ta=function(a,b){var c=this,d=_.vA(new _.tA,[a]);this.ka.then(function(e){return e.Re(d)}).then(function(e){e=e.ld().xd()[0];c.H.nl([e.clone()],1)},function(){b&&c.H.nl([b.clone()],1)})};
var eGc=function(a){this.H=a};_.N(eGc,_.$lc);eGc.prototype.execute=function(a,b,c){var d=_.$lc.prototype.execute.call(this,a,b,c);if(d)return d;if(c.ZJa||b instanceof _.zI&&_.OJ(b.od()))if(c=$rc(this.H))return c;return b instanceof _.mJ?(c=_.sf(new _.rf,1424),a.Re(voc(!1,1,c)).then(function(e){(e=e.ld())&&(e=e.xd()[0])&&_.P(e,96)&&b.Lca(e.Xv())},function(){})):null};
var Ioc=function(a,b){return[fGc,gGc,hGc,iGc].reduce(function(c,d){var e;0!==c?e=c:e=_.Ea(d(a),d(b));return e},0)},fGc=function(a){return jGc[a.wf()]},gGc=function(a){return kGc[a.getType()]},hGc=function(a){return a.getName()||""},iGc=function(a){return a.getId()||""},KM={},jGc=(KM[5]=0,KM[7]=1,KM[1]=2,KM[3]=3,KM[4]=4,KM[2]=5,KM[6]=6,KM),lGc={},kGc=(lGc[1]=0,lGc[2]=1,lGc[3]=2,lGc[4]=3,lGc);
var mGc=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.Ng=l};
mGc.prototype.apply=function(a,b){var c=this;if(!(b instanceof _.MJ&&8===b.Bb()))if(a instanceof _.$I||a instanceof _.bJ||a instanceof _.Ngc||a instanceof _.JI||a instanceof _.HJ||a instanceof _.Vgc||a instanceof _.JJ||a instanceof _.$K){var d=_.MI(b.getItem().clone(),9);this.H.nl([d],1);Azc(this.ta,b.getItem(),_.mK(this.Ng))}else if(a instanceof _.fJ)b=_.NI(_.DI(new _.CI,a.getId())),this.H.Po([b]);else if(a instanceof _.iJ)b=_.NI(_.bgc(_.DI(new _.CI,a.getId()),a.getId())),this.H.Po([b]),nFc(this.ma,
b);else if(a instanceof _.mJ)b=voc(!0).od(),b=this.H.lm.query(b).map(function(e){return _.NI(_.DI(new _.CI,e.getId()))}),this.H.Po(b);else if(a instanceof _.dJ)this.O.remove(a.zh());else if(a instanceof _.pJ||a instanceof _.EJ)this.O.put(b.sr());else if(a instanceof _.gJ)Hoc(this.H,a);else if(a instanceof _.ED)this.W.remove(a.getKey());else if(a instanceof _.qJ)Joc(this.H,a,_.C(b,_.Gk,2));else if(a instanceof _.FD)this.W.put(b.ELa());else if(a instanceof _.cJ||a instanceof _.IJ)this.ha.nD([b.jn()],
!1);else if(a instanceof _.jJ)this.ha.nD([nzc(a.getId())],!1);else if(a instanceof _.Mgc)this.V.nD(b.response.O(),!1,1);else if(a instanceof _.FJ)a.HV().filter(function(e){return _.Q(e,3)}).forEach(function(e){return c.V.removeItem(e.Gm()||"",a.Ac())}),dzc(this.ka,a.Ac()),this.H.q1a(a.Ac());else if(a instanceof _.rK)for(b=_.m(_.Rj(a,_.otc,1)),d=b.next();!d.done;d=b.next())switch(d=d.value,d.getFeature()){case 3:case 4:case 1:switch(d=_.C(d,_.xL,2),d.getType()){case 1:case 2:if(d=this.H.lm.H(d.Ac()))d=
_.DI(hrc(),d.getId()).setItem(d.clone()),this.H.Po([d])}}};
var nGc=function(a){this.H=a};
nGc.prototype.translate=function(a){if(a instanceof _.BJ){var b=this.H.H(a.getId());if(!b)return new _.mc;var c=(new _.JI).Ob(a.getId());if(b.yc()){var d=b.getCapabilities();_.ne(d)||_.Q(d,9)?c.Jn(!0):_.KI(c,!1)}else d=a.getParent(),1===b.Yo()?c.Jn(!0):d?(b=this.H.H(d),!b||_.Q(b.getCapabilities(),7)?crc(c,[d]):_.KI(c,!1)):_.KI(c,!1);return c}if(a instanceof _.CJ)return erc(drc(crc(brc((new _.JI).Ob(a.getId()),_.Qd(a,2)),_.Qd(a,3)),_.Q(a,6)),_.Rj(a,_.Bl,8));if(a instanceof _.DJ){b=this.H.H(a.getId());
if(!b)return new _.mc;c=(new _.JI).Ob(a.getId());b.yc()?(d=b.getCapabilities(),_.ne(d)||_.Q(d,9)?c.Jn(!1):_.KI(c,!0)):(d=a.getParent(),1===b.Yo()?c.Jn(!1):d?(b=this.H.H(d),!b||_.Yk(b.getCapabilities())?brc(c,[d]):_.KI(c,!0)):_.KI(c,!0));return c}if(a instanceof _.EK)return new _.Ngc(a);if(a instanceof _.wM)return _.Qd(a,1).map(function(f){var h=new _.FJ;f=_.y(h,1,f);h=a.HV();f=_.Mj(f,2,h);h=a.ve();return _.J(f,3,h)});if(a instanceof _.lJ){c=voc(!1,1).od();var e=0;this.H.query(c).forEach(function(f){(f=
f.Xv())&&(e=Math.max(e,f))});return Vrc(new _.mJ,a).Lca(e)}return a};
var oGc=function(){};oGc.prototype.validate=function(a){var b=null;a instanceof _.uJ?(a=a.getId()||"",_.ee(a)&&(b="Tried to request backup with no id.")):a instanceof _.eJ&&(a=a.getId()||"",_.ee(a)&&(b="Tried to delete backup with no id."));return b?_.GI(b):null};
var pGc=function(a,b){this.H=a;this.O=b},tGc=function(a,b){_.LK(["drive#about"],b);var c=new _.xM,d=new _.xB;if(b.user){var e=_.NK(a.H,b.user);_.J(d,1,e)}a=qGc(a,b);a=Wqc(Vqc(_.Uqc(new _.Mub,a),b.rootFolderId),b.domainSharingPolicy);b.gsuiteSubscriptionInfo&&(e=b.gsuiteSubscriptionInfo,_.Yqc(a,_.Jqc(_.Iqc((new _.wB).Bc(rGc[e.status]),Number(e.trialMillisRemaining)),_.MK(e.trialEndTime))));b.teamDashboardCapabilities&&(e=b.teamDashboardCapabilities,_.Zqc(a,_.Lqc(_.Kqc(new _.Hub,e.canAdministerTeam),
e.canManageInvites)));b.importFormats&&Xqc(a,b.importFormats.map(function(f){var h=new _.Tqc;h=_.y(h,1,f.source);return _.Jj(h,2,f.targets)}));b.adminSecureLinkSetting&&_.y(a,10,sGc[b.adminSecureLinkSetting]);_.J(d,3,a);_.bCc(c,d);b=b.largestChangeId;null!=b&&_.y(c,4,Number(b));return c},qGc=function(a,b){var c;var d=new _.Lub;d=_.y(d,1,Number(b.quotaBytesTotal));d=_.y(d,2,Number(b.quotaBytesUsed));d=_.y(d,3,Number(b.quotaBytesUsedAggregate));d=_.y(d,4,Number(b.quotaBytesUsedInTrash));d=_.Pqc(_.Oqc(_.Nqc(_.Mqc(d,
Loc(b.quotaBytesByService||[])),uGc[b.quotaType]),Number(b.quotaBytesTotal)),"-1"===b.quotaBytesTotal?-1:Math.max(Number(b.quotaBytesTotal)-Number(b.quotaBytesUsedAggregate),0));var e=Number(b.quotaBytesUsedAggregate)-Noc(b);d=_.y(d,9,e);d=_.Qqc(d,Number(b.quotaBytesUsedAggregate));d=_.y(d,11,Number(b.quotaBytesUsedInTrash));d=_.y(d,13,_.Pnc(Number(b.quotaBytesUsedAggregate),Number(b.quotaBytesTotal)));d=_.Rqc(d,vGc[b.quotaStatus]||0);if(b.graceQuotaInfo&&b.graceQuotaInfo.endDate){e=new _.Kub;var f=
_.S3a(new Date(b.graceQuotaInfo.endDate));e=_.J(e,1,f);e=_.y(e,2,Number(b.graceQuotaInfo.additionalQuotaBytes));_.J(d,12,e)}(null===(c=_.II(a.O))||void 0===c?0:_.S(c,16,!1))?(a=_.y(d,16,Number(b.individualQuotaBytesTotal)),a=_.y(a,17,_.Pnc(Number(b.individualQuotaBytesUsedAggregate),Number(b.individualQuotaBytesTotal))),b=_.y(a,9,Number(b.individualQuotaBytesUsedAggregate))):b=d;return b},vGc={softLimitExceeded:2,hardLimitExceeded:3,underLimit:1},Moc=new Set(["POOLED_STORAGE","FAMILY"]),rGc={isInTrial:1,
hasPaidContract:2,noSubscription:3,trialExpired:4},Koc={DRIVE:1,FAMILY:4,GMAIL:2,PHOTOS:3,POOLED_STORAGE:5},uGc={LIMITED:1,UNLIMITED:2,POOLED:3},sGc={unknown:0,requireLessSecureLinks:1,removeLessSecureLinks:2,userCanChoose:3};
var wGc={TYPE_UNSPECIFIED:0,MOBILE:1,SYNC_CLIENT:2,APP:3},xGc={TYPE_UNSPECIFIED:0,MY_DRIVE_ROOT:1,SHARED_DRIVE_ROOT:2,STANDARD_FOLDER:3},yGc={TYPE_UNSPECIFIED:0,USER_DELETION:1,TRASH_AUTO_PURGE:2,MULTIPARENTING_MIGRATION:4},zGc={TYPE_UNSPECIFIED:0,TRASH:1,PERMANENT_DELETE:2},AGc={TYPE_UNSPECIFIED:0,UNTRASH:1,REVIVE:2},BGc={ROLE_UNSPECIFIED:0,OWNER:1,ORGANIZER:2,FILE_ORGANIZER:3,EDITOR:4,COMMENTER:5,VIEWER:6,PUBLISHED_VIEWER:7},CGc={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,
RESOLVED:5,REOPENED:6},DGc={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,RESOLVED:5,REOPENED:6,REASSIGNED:7},EGc={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,ACCEPTED:7,REJECTED:8,ACCEPT_DELETED:9,REJECT_DELETED:10},FGc={TYPE_UNSPECIFIED:0,FLAGGED:1,CLEARED:2},GGc={TYPE_UNSPECIFIED:0,LOADED_FOR_VIEW:1,VIEWED_MORE_CONTENT:2,OPEN_WITH_APP_INITIATED:3},HGc={DOMAIN_VISIBILITY_UNKNOWN:0,DOMAIN_VISIBILITY_CONSUMER:1,DOMAIN_VISIBILITY_SAME_DOMAIN:2,DOMAIN_VISIBILITY_ALL_DOMAINS:3,
DOMAIN_VISIBILITY_RESTRICTED:4},IGc={NAMED_PARTY_UNKNOWN:0,NAMED_PARTY_UNNAMED:1,NAMED_PARTY_NAMED:2},JGc={TYPE_UNSPECIFIED:0,DOWNLOADED:1,DOWNLOAD_INITIATED:2,PRINT_INITIATED:3},KGc={UNSPECIFIED_REFERENCE_TYPE:0,LINK:1,DISCUSS:2},LGc={FEATURE_UNSPECIFIED:0,SHARING_OUTSIDE_DOMAIN:1,DIRECT_SHARING:2,ITEM_DUPLICATION:3,DRIVE_FILE_STREAM:4},MGc={RESTRICTION_UNSPECIFIED:0,UNRESTRICTED:1,FULLY_RESTRICTED:2},NGc={STATUS_UNSPECIFIED:0,IN_PROGRESS:1,COMPLETED:2,CANCELLED:3},OGc={DECISION_UNSPECIFIED:0,APPROVED:1,
DECLINED:2},PGc={TYPE_UNSPECIFIED:0,LABEL_ADDED:1,LABEL_REMOVED:2,LABEL_FIELD_VALUE_CHANGED:3},QGc={PUBLISH_MODE_UNSPECIFIED:0,NONE:1,FIXED:2,AUTO:3},RGc={REASON_UNSPECIFIED:0,ORPHAN_REPARENTED:1},YGc=function(a){return a.map(function(b){var c=new _.Jvc;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "primaryActionDetail":d=SGc(e);_.J(c,2,d);break;case "actors":d=TGc(e);_.Mj(c,3,d);break;case "actions":d=UGc(e);_.Mj(c,
4,d);break;case "targets":d=VGc(e);_.Mj(c,5,d);break;case "timestamp":c.O(WGc(e));break;case "timeRange":d=XGc(e),_.Sj(c,7,Ivc[0],d)}}return c})},UGc=function(a){return a.map(function(b){var c=new _.Gvc;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "detail":d=SGc(e);_.J(c,1,d);break;case "source":d=new Zuc;e=_.m(Object.entries(e));for(var f=e.next();!f.done;f=e.next()){var h=_.m(f.value);f=h.next().value;h=h.next().value;
switch(f){case "type":_.dk(d,2,wGc[h]);break;case "appId":_.ck(d,1,h)}}_.J(c,2,d);break;case "actor":d=ZGc(e);_.J(c,3,d);break;case "target":d=$Gc(e);_.J(c,4,d);break;case "timestamp":c.O(WGc(e));break;case "timeRange":d=XGc(e),_.Sj(c,6,Fvc[0],d)}}return c})},VGc=function(a){return a.map(function(b){return $Gc(b)})},bHc=function(a){return a.map(function(b){return aHc(b)})},cHc=function(a){return a.map(function(b){var c=new _.Duc;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=
_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "parent":c.Eg(aHc(e));break;case "shortcut":d=aHc(e),_.J(c,2,d)}}return c})},$Gc=function(a){var b=new _.cvc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "driveItem":c=dHc(d);_.Sj(b,1,_.bvc[0],c);break;case "drive":c=new _.$uc;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "name":c.$c(f);
break;case "title":c.setTitle(f);break;case "root":e=dHc(f),_.J(c,3,e)}}_.Sj(b,5,_.bvc[0],c);break;case "fileComment":c=new _.avc;d=_.m(Object.entries(d));for(e=d.next();!e.done;e=d.next())switch(f=_.m(e.value),e=f.next().value,f=f.next().value,e){case "legacyCommentId":_.ck(c,1,f);break;case "legacyDiscussionId":_.ck(c,2,f);break;case "linkToDiscussion":_.ck(c,3,f);break;case "parent":c.Eg(dHc(f))}_.Sj(b,3,_.bvc[0],c)}}return b},aHc=function(a){var b=new _.BL;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=
a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "driveItem":c=new muc;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "name":c.$c(f);break;case "title":c.setTitle(f);break;case "driveFile":e=c;f=new kuc;_.Sj(e,8,luc[0],f);break;case "driveFolder":e=eHc(f);_.Sj(c,9,luc[0],e);break;case "driveShortcut":e=fHc(f),_.Sj(c,10,luc[0],e)}}_.Sj(b,1,nuc[0],c);break;case "drive":c=gHc(d),_.Sj(b,3,
nuc[0],c)}}return b},dHc=function(a){var b=new _.juc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "name":b.$c(d);break;case "title":b.setTitle(d);break;case "mimeType":_.ck(b,6,d);break;case "version":_.bk(b,5,d);break;case "owner":c=new fuc;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "domain":e=hHc(f);_.J(c,3,e);break;case "user":e=
LM(f);_.Sj(c,1,euc[0],e);break;case "drive":e=gHc(f),_.Sj(c,4,euc[0],e)}}_.J(b,7,c);break;case "driveFile":c=new kuc;_.Sj(b,8,guc[0],c);break;case "driveFolder":c=eHc(d);_.Sj(b,9,guc[0],c);break;case "driveShortcut":c=fHc(d),_.Sj(b,10,guc[0],c)}}return b},gHc=function(a){var b=new duc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "name":b.$c(d);break;case "title":b.setTitle(d)}}return b},eHc=function(a){var b=new huc;
a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "type":_.dk(b,6,xGc[d])}}return b},fHc=function(a){var b=new iuc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "targetName":_.ck(b,1,d);break;case "targetMimeType":_.ck(b,2,d)}}return b},TGc=function(a){return a.map(function(b){return ZGc(b)})},ZGc=function(a){var b=new _.Yuc;a=_.m(Object.entries(a));
for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "user":c=LM(d);_.Sj(b,1,_.Xuc[0],c);break;case "anonymous":c=new Uuc;_.Sj(b,2,_.Xuc[0],c);break;case "impersonation":c=new _.Vuc;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "impersonatedUser":e=LM(f),_.J(c,1,e)}}_.Sj(b,3,_.Xuc[0],c);break;case "system":c=new _.Wuc;d=_.m(Object.entries(d));for(e=d.next();!e.done;e=
d.next())switch(f=_.m(e.value),e=f.next().value,f=f.next().value,e){case "type":_.dk(c,1,yGc[f])}_.Sj(b,4,_.Xuc[0],c);break;case "administrator":c=new _.Tuc,_.Sj(b,5,_.Xuc[0],c)}}return b},iHc=function(a){return a.map(function(b){return LM(b)})},LM=function(a){var b=new _.Ltc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "knownUser":c=new _.zL;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=
_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "personName":_.ck(c,1,f);break;case "isCurrentUser":_.ak(c,2,f);break;case "displayName":_.ck(c,3,f);break;case "photoUrl":c.In(f)}}_.Sj(b,2,_.Jtc[0],c);break;case "unknownUser":c=new Mtc;_.Sj(b,4,_.Jtc[0],c);break;case "deletedUser":c=new _.Ktc,_.Sj(b,3,_.Jtc[0],c)}}return b},WGc=function(a){var b=(new Date(a)).getTime();a=Math.floor(b/1E3);b=b%1E3*1E6;return _.R3a((new _.Xx).setSeconds(a),b)},XGc=function(a){var b=new _.ML;a=_.m(Object.entries(a));
for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "startTime":b.qY(WGc(d));break;case "endTime":b.JO(WGc(d))}}return b},hHc=function(a){var b=new _.cuc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "name":b.$c(d);break;case "legacyId":_.ck(b,3,d);break;case "audienceDisplayName":_.ck(b,4,d)}}return b},SGc=function(a){for(var b=new _.GL,c=_.m(Object.entries(a)),
d=c.next();!d.done;d=c.next()){var e=_.m(d.value),f=e.next().value,h=e.next().value;switch(f){case "create":for(var k=new _.quc,l=_.m(Object.entries(h)),p=l.next();!p.done;p=l.next()){var q=_.m(p.value),r=q.next().value,v=q.next().value;switch(r){case "new":var z=k,A=new ruc;_.Sj(z,1,_.ouc[0],A);break;case "upload":var D=k,G=new suc;_.Sj(D,2,_.ouc[0],G);break;case "copy":for(var H=v,L=new _.puc,M=_.m(Object.entries(H)),R=M.next();!R.done;R=M.next()){var Z=_.m(R.value),ia=Z.next().value,ja=Z.next().value;
switch(ia){case "originalObject":var xa=aHc(ja);_.J(L,1,xa)}}_.Sj(k,3,_.ouc[0],L)}}_.Sj(b,1,_.FL[0],k);break;case "edit":var ha=new xuc;_.Sj(b,2,_.FL[0],ha);break;case "move":for(var Va=new _.Fuc,Ia=_.m(Object.entries(h)),ob=Ia.next();!ob.done;ob=Ia.next()){var $a=_.m(ob.value),yb=$a.next().value,Zb=$a.next().value;switch(yb){case "addedParents":var Hc=bHc(Zb);_.Mj(Va,1,Hc);break;case "removedParents":var ie=bHc(Zb);_.Mj(Va,2,ie);break;case "fromOwnershipTransfer":_.ak(Va,3,Zb);break;case "reparents":var Dd=
Zb.map(jHc);_.Mj(Va,4,Dd);break;case "multiparentingMigration":for(var Gd=Zb,vf=new _.Euc,nd=_.m(Object.entries(Gd)),Db=nd.next();!Db.done;Db=nd.next()){var je=_.m(Db.value),og=je.next().value,Ee=je.next().value;switch(og){case "removedParents":var hi=bHc(Ee);_.Mj(vf,2,hi);break;case "migratedParents":var bf=cHc(Ee);_.Mj(vf,1,bf)}}_.J(Va,5,vf)}}_.Sj(b,3,_.FL[0],Va);break;case "rename":for(var Di=new _.Luc,eh=_.m(Object.entries(h)),lm=eh.next();!lm.done;lm=eh.next()){var Ve=_.m(lm.value),pe=Ve.next().value,
Xf=Ve.next().value;switch(pe){case "oldTitle":_.ck(Di,1,Xf);break;case "newTitle":_.ck(Di,2,Xf)}}_.Sj(b,4,_.FL[0],Di);break;case "delete":for(var pi=new _.vuc,qk=_.m(Object.entries(h)),mm=qk.next();!mm.done;mm=qk.next()){var Jo=_.m(mm.value),Lm=Jo.next().value,aj=Jo.next().value;switch(Lm){case "type":_.dk(pi,1,zGc[aj])}}_.Sj(b,5,_.FL[0],pi);break;case "restore":for(var Sn=new _.Muc,Cj=_.m(Object.entries(h)),Ig=Cj.next();!Ig.done;Ig=Cj.next()){var bj=_.m(Ig.value),Dj=bj.next().value,oj=bj.next().value;
switch(Dj){case "type":_.dk(Sn,1,AGc[oj])}}_.Sj(b,6,_.FL[0],Sn);break;case "permissionChange":for(var Pi=new _.Iuc,Wj=_.m(Object.entries(h)),Xj=Wj.next();!Xj.done;Xj=Wj.next()){var Qi=_.m(Xj.value),pj=Qi.next().value,Kh=Qi.next().value;switch(pj){case "addedPermissions":var pl=kHc(Kh);_.Mj(Pi,1,pl);break;case "removedPermissions":var Ej=kHc(Kh);_.Mj(Pi,2,Ej);break;case "resharedPermissions":var Fj=kHc(Kh);_.Mj(Pi,3,Fj);break;case "otherActivePermissions":var Gj=kHc(Kh);_.Mj(Pi,4,Gj)}}_.Sj(b,7,_.FL[0],
Pi);break;case "comment":for(var Hj=new _.buc,qn=_.m(Object.entries(h)),Pk=qn.next();!Pk.done;Pk=qn.next()){var Qk=_.m(Pk.value),Af=Qk.next().value,Ij=Qk.next().value;switch(Af){case "post":for(var nm=Ij,om=new _.Ztc,Mm=_.m(Object.entries(nm)),Ei=Mm.next();!Ei.done;Ei=Mm.next()){var Yj=_.m(Ei.value),zc=Yj.next().value,Rk=Yj.next().value;switch(zc){case "subtype":_.dk(om,1,CGc[Rk])}}_.Sj(Hj,1,_.Ytc[0],om);break;case "assignment":for(var fh=Ij,Tg=new _.$tc,We=_.m(Object.entries(fh)),Nm=We.next();!Nm.done;Nm=
We.next()){var pm=_.m(Nm.value),zh=pm.next().value,cj=pm.next().value;switch(zh){case "subtype":_.dk(Tg,1,DGc[cj]);break;case "assignedUser":var qm=LM(cj);_.J(Tg,7,qm)}}_.Sj(Hj,2,_.Ytc[0],Tg);break;case "suggestion":for(var Qh=Ij,rn=new _.auc,Tn=_.m(Object.entries(Qh)),Om=Tn.next();!Om.done;Om=Tn.next()){var Sk=_.m(Om.value),Tk=Sk.next().value,Ko=Sk.next().value;switch(Tk){case "subtype":_.dk(rn,1,EGc[Ko])}}_.Sj(Hj,3,_.Ytc[0],rn);break;case "mentionedUsers":var xq=iHc(Ij);_.Mj(Hj,7,xq)}}_.Sj(b,8,
_.FL[0],Hj);break;case "dlpChange":for(var Op=new _.uuc,io=_.m(Object.entries(h)),Vi=io.next();!Vi.done;Vi=io.next()){var Yl=_.m(Vi.value),Pp=Yl.next().value,Hr=Yl.next().value;switch(Pp){case "type":_.dk(Op,1,FGc[Hr])}}_.Sj(b,9,_.FL[0],Op);break;case "view":for(var Ir=new Suc,Iy=_.m(Object.entries(h)),Nq=Iy.next();!Nq.done;Nq=Iy.next()){var Jr=_.m(Nq.value),vD=Jr.next().value,dB=Jr.next().value;switch(vD){case "type":_.dk(Ir,1,GGc[dB]);break;case "viewHistoryVisibility":for(var Jy=dB,Ky=new Ruc,
Ly=_.m(Object.entries(Jy)),Oq=Ly.next();!Oq.done;Oq=Ly.next()){var Kr=_.m(Oq.value),Rs=Kr.next().value,My=Kr.next().value;switch(Rs){case "domainPolicyVisibilityState":_.dk(Ky,1,HGc[My]);break;case "namedPartyState":_.dk(Ky,2,IGc[My])}}_.J(Ir,2,Ky)}}_.Sj(b,10,_.FL[0],Ir);break;case "download":for(var wD=new wuc,ex=_.m(Object.entries(h)),fx=ex.next();!fx.done;fx=ex.next()){var Ny=_.m(fx.value),rG=Ny.next().value,Oy=Ny.next().value;switch(rG){case "type":_.dk(wD,1,JGc[Oy])}}_.Sj(b,11,_.FL[0],wD);break;
case "reference":for(var $t=new _.Etc,Ss=_.m(Object.entries(h)),gk=Ss.next();!gk.done;gk=Ss.next()){var Ts=_.m(gk.value),Zm=Ts.next().value,SJ=Ts.next().value;switch(Zm){case "type":_.dk($t,1,KGc[SJ]);break;case "context":for(var wO=SJ,eB=new Dtc,wi=_.m(Object.entries(wO)),sG=wi.next();!sG.done;sG=wi.next()){var zv=_.m(sG.value),au=zv.next().value,YZ=zv.next().value;switch(au){case "description":eB.Il(YZ);break;case "url":_.ck(eB,2,YZ)}}_.J($t,2,eB)}}_.Sj(b,12,_.FL[0],$t);break;case "settingsChange":for(var ZZ=
new _.Puc,xD=_.m(Object.entries(h)),Mg=xD.next();!Mg.done;Mg=xD.next()){var $Z=_.m(Mg.value),Py=$Z.next().value,$m=$Z.next().value;switch(Py){case "restrictionChanges":var fB=lHc($m);_.Mj(ZZ,1,fB)}}_.Sj(b,13,_.FL[0],ZZ);break;case "approvalChange":for(var $o=new _.Ptc,xO=_.m(Object.entries(h)),yD=xO.next();!yD.done;yD=xO.next()){var bT=_.m(yD.value),yO=bT.next().value,Bn=bT.next().value;switch(yO){case "approvalName":_.ck($o,2,Bn);break;case "approvalEventNames":_.Jj($o,3,Bn);break;case "initiator":var TJ=
LM(Bn);_.J($o,4,TJ);break;case "reviewers":var I7=iHc(Bn);_.Mj($o,5,I7);break;case "status":$o.Bc(NGc[Bn]);break;case "dueTime":var cT=WGc(Bn);_.J($o,7,cT);break;case "approvalRequested":var a_=$o,b_=new Qtc;_.Sj(a_,8,_.AL[0],b_);break;case "approvalCancelled":var gB=$o,gx=new Rtc;_.Sj(gB,9,_.AL[0],gx);break;case "reviewerResponded":for(var UJ=Bn,c_=new _.Otc,zO=_.m(Object.entries(UJ)),tG=zO.next();!tG.done;tG=zO.next()){var d_=_.m(tG.value),VJ=d_.next().value,zha=d_.next().value;switch(VJ){case "reviewerDecision":_.dk(c_,
1,OGc[zha])}}_.Sj($o,10,_.AL[0],c_);break;case "commentAdded":var tza=$o,uia=new Stc;_.Sj(tza,11,_.AL[0],uia);break;case "reviewersChanged":for(var kB=Bn,jx=new Utc,cK=_.m(Object.entries(kB)),BD=cK.next();!BD.done;BD=cK.next()){var zT=_.m(BD.value),AT=zT.next().value,via=zT.next().value;switch(AT){case "reviewerChanges":var uza=mHc(via);_.Mj(jx,1,uza)}}_.Sj($o,12,_.AL[0],jx);break;case "dueTimeChanged":for(var l8=Bn,w_=new Wtc,oAb=_.m(Object.entries(l8)),xZa=oAb.next();!xZa.done;xZa=oAb.next()){var vza=
_.m(xZa.value),pAb=vza.next().value,xqc=vza.next().value;switch(pAb){case "oldDueTime":var qAb=WGc(xqc);_.J(w_,1,qAb)}}_.Sj($o,13,_.AL[0],w_)}}_.Sj(b,18,_.FL[0],$o);break;case "lock":var yZa=new zuc;_.Sj(b,15,_.FL[0],yZa);break;case "unlock":var CD=new Quc;_.Sj(b,16,_.FL[0],CD);break;case "appliedLabelChange":for(var zZa=new _.Itc,AZa=_.m(Object.entries(h)),wza=AZa.next();!wza.done;wza=AZa.next()){var BZa=_.m(wza.value),rAb=BZa.next().value,sAb=BZa.next().value;switch(rAb){case "changes":var CZa=
nHc(sAb);_.Mj(zZa,1,CZa)}}_.Sj(b,19,_.FL[0],zZa);break;case "publishChange":for(var xza=new _.Kuc,DZa=_.m(Object.entries(h)),yza=DZa.next();!yza.done;yza=DZa.next()){var tAb=_.m(yza.value),wia=tAb.next().value,xia=tAb.next().value;switch(wia){case "oldPublishState":var BT=oHc(xia);_.J(xza,1,BT);break;case "newPublishState":var yqc=oHc(xia);_.J(xza,2,yqc)}}_.Sj(b,20,_.FL[0],xza);break;case "linkShareMetadataChange":for(var uAb=new _.yuc,vAb=_.m(Object.entries(h)),zza=vAb.next();!zza.done;zza=vAb.next()){var dK=
_.m(zza.value),zqc=dK.next().value,EZa=dK.next().value;switch(zqc){case "securityUpdateEnabled":_.ak(uAb,1,EZa)}}_.Sj(b,21,_.FL[0],uAb)}}return b},jHc=function(a){var b=new _.Buc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "reason":_.dk(b,1,RGc[d])}}return b},kHc=function(a){return a.map(function(b){var c=new _.EL;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;
e=e.next().value;switch(d){case "role":_.dk(c,1,BGc[e]);break;case "user":d=LM(e);_.Sj(c,2,_.DL[0],d);break;case "group":d=new _.CL;e=_.m(Object.entries(e));for(var f=e.next();!f.done;f=e.next()){var h=_.m(f.value);f=h.next().value;h=h.next().value;switch(f){case "email":_.ck(d,1,h);break;case "title":d.setTitle(h)}}_.Sj(c,3,_.DL[0],d);break;case "domain":d=hHc(e);_.Sj(c,4,_.DL[0],d);break;case "anyone":d=new Guc;_.Sj(c,5,_.DL[0],d);break;case "allowDiscovery":_.ak(c,6,e)}}return c})},lHc=function(a){return a.map(function(b){var c=
new _.Ouc;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "feature":_.dk(c,1,LGc[e]);break;case "newRestriction":_.dk(c,2,MGc[e])}}return c})},mHc=function(a){return a.map(function(b){var c=new Vtc;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "removedReviewer":d=LM(e);_.J(c,3,d);break;case "addedReviewer":d=LM(e),_.J(c,4,d)}}return c})},
nHc=function(a){return a.map(function(b){var c=new _.Htc;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "label":_.ck(c,1,e);break;case "types":d=pHc(e),_.Jj(c,2,d)}}return c})},pHc=function(a){return a.map(function(b){return PGc[b]})},oHc=function(a){var b=new _.Juc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "publishMode":_.dk(b,
1,QGc[d]);break;case "signinRequired":_.ak(b,2,d);break;case "publishedTime":c=WGc(d),_.J(b,3,c)}}return b};
var rHc=function(a,b){var c=new zBc;b=_.y(c,4,b);a&&"drive#app"==a.kind&&(a=qHc(a),_.J(b,2,a));return b},qHc=function(a){_.LK(["drive#app"],a);var b=(new _.HL).Ob(a.id);b=_.y(b,3,a.useByDefault).$c(a.name);b=_.y(b,7,a.openUrlTemplate);b=lvc(kvc(b,a.primaryMimeTypes),a.secondaryMimeTypes);b=_.y(b,8,a.createUrl);b=_.y(b,9,a.createInFolderTemplate);b=_.y(b,10,a.objectType);b=_.y(b,11,a.supportsCreate);b=_.y(b,12,a.supportsImport);b=_.y(b,13,a.supportsMultiOpen);b=_.y(b,27,a.supportsOfflineCreate);b=
_.y(b,14,a.installed);b=_.y(b,15,a.authorized);b=_.y(b,16,a.productUrl);b=_.Jj(b,17,a.primaryFileExtensions);b=_.Jj(b,18,a.secondaryFileExtensions);b=_.y(b,19,a.shortDescription);b=_.y(b,20,a.longDescription);b=_.y(b,21,a.productId);b=_.y(b,22,a.removable);b=_.y(b,23,sHc[a.type]);b=_.y(b,25,a.hasAppData);b=_.y(b,26,a.appDataQuotaBytesUsed);b=_.y(b,28,a.requiresAuthorizationBeforeOpenWith);b=_.y(b,30,a.hasDriveWideScope);b=_.y(b,31,a.driveSource);b=_.y(b,32,a.driveBranded);b=_.y(b,33,a.hidden);b=_.y(b,
34,a.supportsMobileBrowser);b=_.y(b,35,a.supportsTeamDrives);b=_.y(b,36,a.hasGsmListing);for(var c=a.icons||[],d=[],e=0;e<c.length;e++){var f=d,h=f.push,k=c[e],l=new _.fvc;l=_.y(l,3,k.iconUrl).setSize(k.size);k.category&&_.y(l,1,tHc[k.category]);h.call(f,l)}_.Mj(b,6,d);c=a.chromeExtensionIds||[];d=[];for(e=0;e<c.length;e++)d.push(c[e]);_.Jj(b,24,d);c=a.rankingInfo||{};a=new _.ivc;d=c.absoluteScore;null!=d&&_.y(a,1,Number(d));d=uHc(c.mimeTypeScores||[]);_.Mj(a,2,d);c=uHc(c.fileExtensionScores||[]);
_.Mj(a,3,c);_.J(b,29,a);return b},uHc=function(a){for(var b=[],c=0;c<a.length;c++){var d=new _.gvc;d=_.y(d,1,a[c].type);d=_.y(d,2,Number(a[c].score));b.push(d)}return b},sHc={WEB_ONLY:1,WEB_AND_CHROME_EXTENSION:2,CHROME_EXTENSION_ONLY:3},tHc={application:1,document:2,documentShared:3};
var wHc=function(a){var b=new vCc;if(!a.backups)return b;a=a.backups.map(function(c){var d=(new _.pM).Ob(c.id).setTitle(c.title);d=_.y(d,3,_.MK(c.updateTime));d=_.y(d,4,vHc[c.backupSource]);d=_.y(d,5,c.iconUri);d=_.y(d,8,_.MK(c.expiryTime));d=_.y(d,9,"boolean"===typeof c.hasGoogleoneBackup?c.hasGoogleoneBackup:!1);if(1===d.bz()){var e=new lBc;e=_.y(e,1,c.whatsappOngoingBackupEnabled);c=_.y(e,2,c.whatsappPhoneNumber);_.J(d,6,c)}else 2===d.bz()&&(e=new _.kBc,e=_.y(e,1,c.deviceName),e=_.y(e,2,c.deviceModelName),
e=_.y(e,3,c.shouldIncludeSpecialSyncItems),c=_.y(e,4,c.deviceAndroidId),_.J(d,7,c));return d});_.Mj(b,2,a);return b},yHc=function(a){var b=new rCc;if(!a.backupItems)return b;a=a.backupItems.map(function(c){var d=(new _.qM).Ob(c.id);d=_.y(d,1,xHc[c.type]).setTitle(c.title);d=_.y(d,4,c.iconUri);d=_.mBc(d.setSize(c.size),_.MK(c.updateTime));d=_.y(d,7,c.hasCustomBehavior).Il(c.description);return _.y(d,9,c.ongoingSyncEnabled)});_.Mj(b,1,a);return b},vHc={BACKUP_SOURCE_UNSPECIFIED:0,BACKUP_SOURCE_WHATSAPP:1,
BACKUP_SOURCE_ANDROID:2},xHc={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 zHc=function(a,b){this.H=a;this.O=b};
var AHc={read:2,write:3,comment:4},BHc=function(a,b,c){var d=c.itemId;c=c.driveItem;d=_.lG((new _.cl).Ob(d).setTitle(c.title),c.mimeType);c.userCapabilities&&_.ZJ(d,_.bmc(c.userCapabilities));_.mK(b).includes(19)&&_.Yhc(d,!0);Azc(a,d,_.mK(b));_.$hc(d,4);return d},EHc=function(a,b,c){var d=[],e=[];(c.item||[]).forEach(function(f){if(f.person){var h=f.itemId,k=CHc(f.person).Ob(h);(f.childItem||[]).forEach(function(l){e.some(function(r){return r.getId()===h})||e.push(k);var p=l.itemId,q=d.find(function(r){return r.getId()===
p});q||(q=BHc(a,b,l),d.push(q));l=Bqc(Aqc(wqc(new _.Wna,k.clone()),DHc(l)),l.url);_.Tj(q,107,l,_.Wna,void 0)})}});return psc((new _.vK).Pw(d),e).sP(c.suggestionSessionId)},CHc=function(a){return _.mhc((new _.Gk).Ob(a.id).$c(a.displayName),a.emailAddress).In(a.photoUrl)},GHc=function(a,b,c){var d=[];(c.item||[]).forEach(function(e){if(e.driveItem){var f=BHc(a,b,e);e=FHc(e);f=_.Mj(f,117,e);d.push(f)}});c=(new _.mB).Pw(d).sP(c.suggestionSessionId);return _.Jkc(new _.FK,c)},FHc=function(a){var b=a.action;
return b?b.map(function(c){var d=new _.Dna,e=HHc(c);e&&_.Sj(d,2,_.Kk[0],e);(e=IHc(c))&&npc(d,e);(e=JHc(c))&&_.Sj(d,4,_.Kk[0],e);(e=KHc(c))&&_.Sj(d,5,_.Kk[0],e);(e=LHc(c))&&_.Sj(d,6,_.Kk[0],e);(e=MHc(c))&&_.Sj(d,7,_.Kk[0],e);(e=NHc(c))&&_.Sj(d,8,_.Kk[0],e);(e=OHc(c))&&_.Sj(d,9,_.Kk[0],e);(e=PHc(c))&&_.Sj(d,10,_.Kk[0],e);(c=QHc(c))&&_.Sj(d,11,_.Kk[0],c);return d}):(a=MM(a),a=Zpc([a]),[npc(new _.Dna,a)])},SHc=function(a){return(a.justification||[]).map(function(b){return RHc(b)})},MM=function(a){return(a=
a.justification)?RHc(a):null},RHc=function(a){var b=jpc(new _.Jk,THc(a.displayText)),c=a.primaryPerson,d=a.allPeople;c?(c=CHc(c),_.Sj(b,3,_.Cna[0],c),kpc(b,[c])):d?(c=(d.person||[]).map(function(e){return CHc(e)}),d=ipc(c),_.Sj(b,4,_.Cna[0],d),kpc(b,c)):(c=(a.person||[]).map(function(e){return CHc(e)}),c.length&&(d=ipc(c),_.Sj(b,4,_.Cna[0],d),kpc(b,c)));_.y(b,5,_.MK(a.eventTime));lpc(b,THc(a.justificationDescription));mpc(b,THc(a.unstructuredJustificationDescription));return b},THc=function(a){if(!a)return null;
a=a.textSegment||[];return fpc(new _.Dk,a.map(function(b){var c=(new _.Ek).kh(b.text),d=b.link;if(d){var e=new _.Fk;d=_.y(e,1,d.url)}else d=null;c=_.J(c,2,d);c=_.y(c,3,b.bold);return _.y(c,4,b.italic)}))},HHc=function(a){a=a.documentDocosAction;if(!a)return null;var b=Npc(new _.Jna,MM(a));Mpc(b,(a.subAction||[]).map(function(c){var d=new _.Lna;c.reply?(c=new _.Fna,_.Sj(d,1,_.Kna[0],c)):c.resolve?(c=new vpc,_.Sj(d,2,_.Kna[0],c)):c.reassign?(c=new tpc,_.Sj(d,3,_.Kna[0],c)):c.acceptSuggestion?(c=new opc,
_.Sj(d,4,_.Kna[0],c)):c.rejectSuggestion?(c=new upc,_.Sj(d,5,_.Kna[0],c)):c.openThread&&(c=new _.Ena,_.Sj(d,6,_.Kna[0],c));return d}));_.y(b,2,a.discussionId);_.y(b,3,a.postId);Opc(b,THc(a.anchorText));return b},JHc=function(a){a=a.documentShareAction;if(!a)return null;var b=Rpc(new _.Nk,MM(a));Qpc(b,(a.subAction||[]).map(function(c){var d=new Tpc;c.suggestedShare?(c=new zpc,_.Sj(d,1,Spc[0],c)):c.responseToRequest&&(c=new wpc,_.Sj(d,2,Spc[0],c));return d}));Ppc(b,(a.sharee||[]).map(function(c){return CHc(c)}));
_.y(b,3,AHc[a.shareeRole]);return b},IHc=function(a){a=a.documentViewAction;if(!a)return null;var b=Zpc(SHc(a));Ypc(b,(a.subAction||[]).map(function(c){var d=new aqc;c.open?d.zg(new qpc):c.reviewEdits&&(c=new xpc,_.Sj(d,2,$pc[0],c));return d}));return b},KHc=function(a){a=a.emailViewAction;if(!a)return null;var b=lqc(new jqc,MM(a));kqc(b,(a.subAction||[]).map(function(c){var d=new nqc;c.openEmail&&d.zg(new rpc);return d}));return b},LHc=function(a){a=a.calendarEventAction;if(!a)return null;var b=
Fpc(Epc(Dpc(new _.Lk,a.eventId),MM(a)),a.guestCount);Cpc(b,(a.subAction||[]).map(function(c){var d=new Hpc;if(c.viewCalendarEvent){var e=new Apc;_.Sj(d,1,Gpc[0],e)}c.shareWithAttendees&&(e=new ypc,_.Sj(d,2,Gpc[0],e));c.present&&(e=new spc,_.Sj(d,3,Gpc[0],e));c.openDocument&&(c=new qpc,_.Sj(d,4,Gpc[0],c));return d}));return b},MHc=function(a){a=a.documentWorkspaceAction;if(!a)return null;var b=fqc(eqc(new cqc,a.workspaceId),MM(a));dqc(b,(a.subAction||[]).map(function(c){var d=new hqc;c.addToWorkspace&&
(c=new ppc,_.Sj(d,1,gqc[0],c));return d}));return b},NHc=function(a){a=a.documentTopicAction;if(!a)return null;var b=Vpc(new _.Ok,MM(a));Upc(b,(a.subAction||[]).map(function(c){var d=new Xpc;c.openDocument&&(c=new qpc,_.Sj(d,1,Wpc[0],c));return d}));return b},OHc=function(a){a=a.popularDocumentAction;if(!a)return null;var b=tqc(new _.Wk,MM(a));sqc(b,(a.subAction||[]).map(function(c){var d=new vqc;c.openDocument&&(c=new qpc,_.Sj(d,1,uqc[0],c));return d}));return b},PHc=function(a){a=a.collaboratorActivityAction;
if(!a)return null;var b=Jpc(new _.Mk,MM(a));Ipc(b,(a.subAction||[]).map(function(c){var d=new Lpc;c.openDocument&&(c=new qpc,_.Sj(d,1,Kpc[0],c));return d}));return b},QHc=function(a){a=a.formResponseAction;if(!a)return null;var b=pqc(new _.Vk,SHc(a));oqc(b,(a.subAction||[]).map(function(c){var d=new rqc;c.openDocument?(c=new qpc,_.Sj(d,1,qqc[0],c)):c.viewResponses&&(c=new Bpc,_.Sj(d,2,qqc[0],c));return d}));return b},DHc=function(a){a=((a.justification||{}).displayText||{}).textSegment||[];return 0<
a.length?(a[0]||{}).text||"":""};
var UHc=function(a,b){this.H=a;this.O=b},WHc=function(a,b,c){_.LK(["drive#categoryMetadataList"],c);var d=new yL,e=Object.values(c.categoryMetadata||{});ztc(d,e.map(function(f){return VHc(a,f,b.Ac())}));d.Bc(1);return new _.yK(d,bBc(c))},YHc=function(a,b){var c=new uM;HBc(c,(b.categories||[]).map(function(d){return XHc(a,d)}));c.Bc(1);return new Svc(c,bBc(b))},VHc=function(a,b,c){_.LK(["drive#categoryMetadata"],b);c=Esc((new tL).$c(b.categoryName),c);b=Object.values(b.attributeValues||[]);Dsc(c,b.map(function(d){return ZHc(a,
d)}).filter(function(d){return d}));return c},XHc=function(a,b){var c,d=mtc(dtc(jtc(itc(htc(ctc(btc((new wL).$c(b.name),b.categoryName),b.latestName).setTitle(b.title).Il(b.description),_.MK(b.createTime)),_.MK(b.updateTime)),_.MK(b.publishTime)),(null!==(c=b.attributes)&&void 0!==c?c:[]).map(function(e){var f=e.type;var h=(new Zsc).Ob(e.id);h=_.y(h,2,e.queryGuid);h=_.y(h,3,e.helpText);h=_.y(h,4,e.displayName);if(e.attributeDisplayHints){var k=$Hc(e.attributeDisplayHints);_.J(h,5,k)}if(e.capabilities){k=
e.capabilities;var l=new Hsc;l=_.y(l,1,k.canSearch);k=_.y(l,2,k.canWrite);_.J(h,6,k)}_.y(h,7,aIc[f]);e=e[bIc(f)+"Options"];return cIc(a,h,f,e)?h:null}).filter(function(e){return e})),b.customer);b.createdBy&&etc(d,dIc(b.createdBy));b.updatedBy&&ftc(d,dIc(b.updatedBy));b.publishedBy&&gtc(d,dIc(b.publishedBy));b.displayHints&&ktc(d,$Hc(b.displayHints));b.capabilities&&ltc(d,eIc(b.capabilities));b.learnMoreUri&&_.y(d,15,b.learnMoreUri);return d},ZHc=function(a,b){_.LK(["drive#categoryAttributeValue"],
b);var c=(new rL).Ob(b.id);if(b.userScoped)b=Object.values(b.userScoped),Bsc(c,b.map(function(d){_.LK(["drive#userScopedAttributeValue"],d);var e=new ysc,f=_.NK(a.H,d.scopedUser);e=_.J(e,1,f);return a.Jb(e,d)?e:null}).filter(function(d){return d})),c.OA(9);else if(!a.Jb(c,b))return null;return c},$Hc=function(a){var b=new Gsc;b=_.y(b,1,a.disabled);b=_.y(b,2,a.hidden);b=_.y(b,3,a.activatedInAllDrives);return _.y(b,4,!!a.required)},eIc=function(a){var b=new atc;b=_.y(b,1,a.canSearch);b=_.y(b,2,a.canApply);
b=_.y(b,4,a.canRemove);return _.y(b,3,a.canManageSharedDriveActivation)},cIc=function(a,b,c,d){return fIc(a,function(){gIc(a)[c](b,d)},c,b)},hIc=function(a){a=void 0===a?{}:a;var b=new Ksc;b=_.y(b,1,a.minSize);return _.y(b,2,a.maxSize)},jIc=function(a){var b=new Qsc;Rsc(b,(a.choices||[]).map(function(c){var d=new Psc;d=_.y(d,1,c.label).Jb(c.value);c.description&&d.Il(c.description);if(c.capabilities){var e=c.capabilities;var f=new Nsc;f=_.y(f,1,e.canSearch);e=_.y(f,2,e.canSelect);_.J(d,3,e)}c.displayHints&&
(c=c.displayHints,e=new Osc,e=_.y(e,1,c.disabled),e=_.y(e,2,c.hidden),c.badgePriority&&_.y(e,5,c.badgePriority),c.badgeColors&&(f=iIc(c.badgeColors),_.J(e,3,f)),c.darkBadgeColors&&(c=iIc(c.darkBadgeColors),_.J(e,4,c)),_.J(d,4,e));return d}));return b},iIc=function(a){var b=new Fsc;var c=kIc(a.backgroundColor);b=_.J(b,1,c);c=kIc(a.foregroundColor);b=_.J(b,2,c);a=kIc(a.soloColor);return _.J(b,3,a)},kIc=function(a){var b=new _.UC;b=_.Oj(b,1,a.red,0);b=_.Oj(b,2,a.green,0);b=_.Oj(b,3,a.blue,0);a.alpha&&
(a=(new $qc).Jb(a.alpha),_.J(b,4,a));return b},lIc=function(a){var b=new Usc;b=_.y(b,1,a.showThousandsSeparator);b=_.y(b,2,a.minValue);return _.y(b,3,a.maxValue)},mIc=function(a){var b=(new _.qoa).setYear(a.year).setMonth(a.month);return _.y(b,3,a.day)};UHc.prototype.Jb=function(a,b){var c=this,d=b.valueType.replace(/([A-Z])/g,"_$1").toLowerCase().toUpperCase();a.OA(aIc[d]);return fIc(this,function(){nIc(c)[d](a,b[b.valueType])},b.valueType)};
var fIc=function(a,b,c,d){try{b()}catch(e){if(e instanceof TypeError&&!(d instanceof Wsc))return Hrc(a.O,"drive.ds.response.MetadataParser","Response Parser: Error parsing type "+c+"."),!1;throw e;}return!0},dIc=function(a){return _.khc(1).Ob(a.personName.split("/")[1])},bIc=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},gIc=function(a){return{BOOLEAN:function(b,c){var d=b.Y2a;var e=new Lsc;e=_.y(e,1,c.trueLabel);c=_.y(e,2,c.falseLabel);return d.call(b,
c)},TEXT:function(b,c){return b.Jca(hIc(c))},TEXT_LIST:function(b,c){var d=b.X3a;var e=new Tsc;e=_.y(e,1,c.maxEntries);c=hIc(c.options);c=_.J(e,2,c);return d.call(b,c)},LONG_TEXT:function(b,c){var d=new Jsc;d=_.y(d,1,c.minSize);c=_.y(d,2,c.maxSize);return _.Sj(b,10,uL[0],c)},SELECTION:function(b,c){return b.K3a(jIc(c))},SELECTION_LIST:function(b,c){var d=b.J3a;var e=new Ssc;e=_.y(e,1,c.maxEntries);c=jIc(c.options);c=_.J(e,2,c);return d.call(b,c)},INTEGER:function(b,c){return b.l3a(lIc(c))},INTEGER_LIST:function(b,
c){var d=b.k3a;var e=new Vsc;e=_.y(e,1,c.maxEntries);c=lIc(c.options);c=_.J(e,2,c);return d.call(b,c)},USER:function(b){return b.b4a(new Xsc)},USER_LIST:function(b,c){var d=b.Koa,e=new Ysc;c=_.y(e,1,c.maxEntries);e=new Xsc;c=_.J(c,2,e);return d.call(b,c)},DATE:function(b,c){var d=b.soa;var e=new Isc;e=_.y(e,4,c.dateFormat);var f=mIc(c.minValue);e=_.J(e,2,f);c=mIc(c.maxValue);c=_.J(e,3,c);return d.call(b,c)},USER_SCOPED:function(b,c){var d=new Wsc;d=_.y(d,1,c.canReadCollaboratorValues);var e=c.subtype;
_.y(d,2,aIc[e]);c=c[bIc(e)+"Options"];cIc(a,d,e,c);return _.Sj(b,16,uL[0],d)}}},nIc=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.Ioa(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.Eoa(c)},INTEGER:function(b,c){return b.setIntegerValue(parseInt(c,10))},INTEGER_LIST:function(b,c){return b.woa(c.map(function(d){return parseInt(d,
10)}))},USER:function(b,c){return b.setUserValue(_.NK(a.H,c))},USER_LIST:function(b,c){Asc(b,c.map(function(d){return _.NK(a.H,d)}))},DATE_STRING:function(b,c){return b.setDateStringValue(c)}}},aIc={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 oIc=function(a){a=a.personResponse;return oxc(new nxc,a.map(function(b){var c=b.person;b=kxc(new XL,b.personId);var d=b.$c,e=c;e=void 0===e?{}:e;e=e.metadata;b=d.call(b,e?e.bestDisplayName.displayName:"");d=c;d=void 0===d?{}:d;d=d.email;b=lxc(b,d?d[0].value:"");c=void 0===c?{}:c;c=c.photo?c.photo[0]:null;d=new jxc;c=_.y(d,1,c&&!c.isDefault?c.url:null);return _.J(b,4,c)}))};
var pIc=function(a){this.H=a},rIc=function(a,b){_.LK(["drive#teamDriveList","drive#driveList"],b);return(b.items||[]).map(function(c){return qIc(a,c)})},qIc=function(a,b){_.LK(["drive#teamDrive","drive#drive"],b);var c=new _.aoa,d=b.colorRgb;d=d?parseInt(d.substring(1),16):0;_.y(c,2,d);_.y(c,1,b.backgroundImageLink);_.y(c,3,b.trusted);_.y(c,5,b.backgroundImageGridViewLink);_.y(c,6,b.backgroundImageListViewLink);_.y(c,7,b.hidden);_.y(c,9,b.removeSecureLinkUpdateForAllFiles);(d=b.categoryReferences)&&
Cnc(c,d.map(function(e){_.LK(["drive#driveCategoryReference"],e);var f=new _.bl;return _.y(f,1,e.category)}));c=_.gic(_.eic(_.dic(_.$hc(_.aic(Bnc(_.lG((new _.cl).Ob(b.id).setTitle(b.name),"application/vnd.google-apps.folder"),c),b.id),2),b.primaryDomainName),b.organizationDisplayName),b.customerId);b.capabilities&&(d=_.yhc(_.bmc(b.capabilities),!0),_.ZJ(c,d));b.permissionsSummary&&_.bic(c,_.rmc(a.H,b.permissionsSummary));b.restrictions&&Enc(c,sIc(b.restrictions));return c},sIc=function(a){var b=new Cqc;
b=_.y(b,1,a.copyRequiresWriterPermission);b=_.y(b,2,a.disallowDriveFileStream);b=_.y(b,3,a.domainUsersOnly);return _.y(b,4,a.teamMembersOnly)};
var tIc={DRIVE_FE:2,DRIVE_BE:4,EXPLORER:1,GENERAL:3,PSYNCHO:5,SLACK:6,DRIVE_BE_EX:7,DRIVE_SHARING:9,TEAMKIT:10},Soc=_.Za(tIc);
var uIc=function(a){_.LK(["drive#setting"],a);var b=new _.Rb;b=_.y(b,2,a.key);b=_.y(b,1,tIc[a.namespace]);return _.yBa(new _.lp,b).Jb(a.value)};
var wIc=function(a){_.LK(["drive#workspaceList"],a);var b=a.items||[];b=rxc(new YL,b.map(function(c){return vIc(c)}));return new _.BK(b,bBc(a))},vIc=function(a){_.LK(["drive#workspace"],a);var b=(new _.jG).Ob(a.id).setTitle(a.title);b=_.y(b,3,_.MK(a.createdDate));return _.y(b,4,_.MK(a.modifiedDate)).Id(xIc[a.state])},yIc=function(a,b,c){var d=c.item||[];return _.hnc(_.gnc(new _.SK,d.map(function(e){return BHc(a,b,e)})),c.suggestionSessionId)},AIc=function(a,b,c){var d=c.item||[];return tvc(svc(new JL,
d.map(function(e){return zIc(a,b,e)})),c.suggestionSessionId)},zIc=function(a,b,c){var d=c.driveWorkspace,e=c.childItem||[];return qvc(ovc(pvc(nvc(new IL,c.predictionId).setTitle(d&&d.title),d&&d.workspaceToken),e.map(function(f){return BHc(a,b,f)})),MM(c))},BIc=function(a){var b=new _.vsc;a.kind&&(a=vIc(a),_.J(b,2,a));b.Bc(1);return b},xIc={active:1,archived:2};
var Ooc={QUEUED:1,COUNTING:3,BUILDING:2,SUCCEEDED:4,FAILED:5};
var CIc=function(a,b,c,d){_.Bmc.call(this,b);this.Ng=a;this.ka=c;this.O=d;this.W=null;this.ma=new pGc(this.V,b);this.H=new pIc(this.pF);this.ta=new zHc(this.pF,this.H)};_.N(CIc,_.Bmc);var DIc=function(a){a.W||(a.W=new UHc(a.V,a.ka));return a.W};
CIc.prototype.ha=function(a,b){if(a instanceof _.XI)var c=_.jmc(_.Gmc(a));else{if(a instanceof _.YI)var d=_.Dmc(this,a,b);else{if(a instanceof _.Mgc)var e=EIc(this,a.request,b);else{if(a instanceof _.ZI)var f=_.Dmc(this,a,b);else{if(a instanceof _.aJ){if(!b.json)throw _.OK();var h=Btc((new Atc).Bc(1),qIc(this.H,b.json))}else{if(a instanceof _.$I)var k=_.Dmc(this,a,b);else{if(a instanceof _.rK)var l=new rtc;else{if(a instanceof _.cJ)var p=FIc(a,b);else{if(a instanceof _.dJ)var q=rHc(void 0,a.zh());
else{if(a instanceof _.eJ)var r=new wCc;else{if(a instanceof _.fJ)var v=_.jmc(_.Gmc(a));else{if(a instanceof _.gJ)var z=new tM;else{if(a instanceof _.hJ)var A=_.jmc(_.Gmc(a));else{if(a instanceof _.iJ)var D=_.jmc(_.Gmc(a));else{if(a instanceof _.ED){var G=new ABc,H=a.getKey();var L=_.J(G,4,H)}else{if(a instanceof _.jJ)var M=FIc(a,b);else{if(a instanceof _.mJ)var R=_.jmc(_.Gmc(a));else{if(a instanceof _.Jgc){if(!b.json)throw _.OK();var Z=new Qvc(b.json.exportJob.id)}else{if(a instanceof _.oJ){if(!b.json)throw _.OK();
var ia=b.json,ja=new vBc,xa=qHc(ia);var ha=_.J(ja,2,xa).Bc(1)}else{if(a instanceof _.pJ)var Va=GIc(a,b);else{if(a instanceof _.qJ){if(!b.json)throw _.OK();var Ia=(new tM).Bc(1),ob=_.kmc(this.pF,b.json);var $a=_.J(Ia,2,ob)}else{if(a instanceof _.zI)a:{if(!b.json)throw _.OK();if(a instanceof _.zI){var yb=a.od();if(yb&&_.rJ(yb)){for(var Zb=this.O,Hc=this.Ng,ie=b.json,Dd=[],Gd=_.m(ie.item||[]),vf=Gd.next();!vf.done;vf=Gd.next()){var nd=vf.value;if(nd.driveItem){var Db=new _.Zna,je=_.y(Db,2,DHc(nd));_.S(yb,
74,!1)?_.y(je,4,!0):_.y(je,3,!0);var og=BHc(Zb,Hc,nd);var Ee=_.J(og,100,je);Dd.push(Ee)}}var hi=(new _.mB).Pw(Dd).sP(ie.suggestionSessionId);var bf=_.Jkc(new _.FK,hi);break a}if(yb&&_.sJ(yb)){bf=EHc(this.O,this.Ng,b.json);break a}if(yb&&_.tJ(yb)){bf=GHc(this.O,this.Ng,b.json);break a}}bf=_.gmc(this.pF,b.json,b.headers)}else{if(a instanceof _.uJ){if(!b.json)throw _.OK();var Di=yHc(b.json)}else{if(a instanceof _.vJ){if(!b.json)throw _.OK();var eh=b.json;_.LK(["drive#appList"],eh);for(var lm=new VL,
Ve=[],pe=eh.items||[],Xf=0;Xf<pe.length;Xf++)Ve.push(qHc(pe[Xf]));var pi=_.Mj(lm,2,Ve);var qk=_.Jj(pi,4,eh.defaultAppIds).Bc(1)}else{if(a instanceof _.Kgc){if(!b.json)throw _.OK();var mm=wHc(b.json)}else{if(a instanceof _.LI)var Jo=HIc(this,b);else{if(a instanceof _.wJ){if(!b.json)throw _.OK();var Lm=new yBc,aj=this.pF,Sn=b.json,Cj=new mL,Ig=_.lmc(aj,Sn,"items");var bj=_.Mj(Cj,2,Ig);var Dj=_.J(Lm,1,bj);var oj=_.y(Dj,2,bBc(b.json))}else{if(a instanceof _.xJ){if(!b.json)throw _.OK();var Pi=this.pF,
Wj=b.json,Xj=new Zrc;_.LK(["drive#revisionList"],Wj);for(var Qi=[],pj=Wj.items||[],Kh=0;Kh<pj.length;Kh++){var pl=_.hmc(Pi,pj[Kh]);Qi.push(pl)}var Ej=_.Mj(Xj,2,Qi)}else{if(a instanceof _.cI)var Fj=IIc(a,b);else{if(a instanceof _.zJ){if(!b.json)throw _.OK();var Gj=oIc(b.json)}else{if(a instanceof _.Sgc){if(!b.json)throw _.OK();var Hj=YHc(DIc(this),b.json)}else{if(a instanceof _.gG){if(!b.json)throw _.OK();var qn=DIc(this),Pk=b.json,Qk=new IBc,Af=XHc(qn,Pk);var Ij=_.J(Qk,2,Af).Bc(1)}else{if(a instanceof
_.AJ){if(!b.json)throw _.OK();var nm=b.json;_.LK(["drive#remainingCount"],nm);var om=new JBc,Mm=nm.nextPageToken;null!=Mm&&_.y(om,2,Number(Mm));_.y(om,1,Number(nm.remainingCount));var Ei=om}else{if(a instanceof _.iG){if(!b.json)throw _.OK();var Yj=(new _.mB).Pw([qIc(this.H,b.json)])}else{if(a instanceof _.KJ){if(!b.json)throw _.OK();var zc=(new _.mB).Pw(rIc(this.H,b.json)),Rk=_.Jkc(new _.FK,zc);var fh=_.y(Rk,3,bBc(b.json))}else{if(a instanceof _.EJ)var Tg=GIc(a,b);else{if(a instanceof _.FJ)var We=
EIc(this,a,b);else{if(a instanceof _.JI)var Nm=_.Dmc(this,a,b);else{if(a instanceof _.GJ)var pm=_.Dmc(this,a,b);else{if(a instanceof _.HJ)var zh=JIc(this,b);else{if(a instanceof _.FD){if(!b.json)throw _.OK();var cj=uIc(b.json),qm=new ABc;var Qh=_.J(qm,3,cj);var rn=cj.getKey();var Tn=_.J(Qh,4,rn)}else{if(a instanceof _.IJ)var Om=FIc(a,b);else{if(a instanceof _.uI){if(!b.json)throw _.OK();var Sk=tGc(this.ma,b.json)}else{if(a instanceof _.kG){if(!b.json)throw _.OK();var Tk=vIc(b.json),Ko=new _.wK;Ko.KT().set(Tk.getId(),
Tk);var xq=Ko}else{if(a instanceof _.Lgc){if(!b.json)throw _.OK();for(var Op=b.json,io=new Lvc,Vi=_.m(Object.entries(Op)),Yl=Vi.next();!Yl.done;Yl=Vi.next()){var Pp=_.m(Yl.value),Hr=Pp.next().value,Ir=Pp.next().value;switch(Hr){case "nextPageToken":_.ck(io,2,Ir);break;case "activities":var Iy=YGc(Ir);_.Mj(io,1,Iy)}}var Nq=io}else{if(a instanceof _.Ngc)var Jr=JIc(this,b);else{if("undefined"!=typeof _.Rgc&&a instanceof _.Rgc)var vD=HIc(this,b);else{if(a instanceof _.Ogc){if(!b.json)throw _.OK();var dB=
new Pvc}else{if(a instanceof _.Pgc){if(!b.json)throw _.OK();var Jy=Roc(b)}else{if(a instanceof _.DD){if(!b.json)throw _.OK();var Ky=b.json,Ly=new _.Xz;_.LK(["drive#settingList"],Ky);for(var Oq=[],Kr=Ky.items||[],Rs=0;Rs<Kr.length;Rs++){var My=uIc(Kr[Rs]);My&&Oq.push(My)}var wD=_.jkb(Ly,Oq)}else{if(a instanceof _.Zz){if(!b.json)throw _.OK();var ex=AIc(this.O,this.Ng,b.json).Bc(1)}else{if(a instanceof _.hG){if(!b.json)throw _.OK();var fx=yIc(this.O,this.Ng,b.json)}else{if(a instanceof _.Xgc){if(!b.json)throw _.OK();
var Ny=b.json;_.LK(["drive#teamDrive"],Ny);var rG=Ny.recursiveFolderCount,Oy=Ny.recursiveFileCount,$t=new nBc;var Ss=_.y($t,1,Oy);var gk=_.y(Ss,2,rG)}else{if(a instanceof _.Wgc)var Ts=KIc(b);else{if(a instanceof _.Zgc){if(!b.json)throw _.OK();var Zm=wIc(b.json)}else Zm=a instanceof _.$K?JIc(this,b):null;Ts=Zm}gk=Ts}fx=gk}ex=fx}wD=ex}Jy=wD}dB=Jy}vD=dB}Jr=vD}Nq=Jr}xq=Nq}Sk=xq}Om=Sk}Tn=Om}zh=Tn}pm=zh}Nm=pm}We=Nm}Tg=We}fh=Tg}Yj=fh}Ei=Yj}Ij=Ei}Hj=Ij}Gj=Hj}Fj=Gj}Ej=Fj}oj=Ej}Jo=oj}mm=Jo}qk=mm}Di=qk}bf=Di}$a=
bf}Va=$a}ha=Va}Z=ha}R=Z}M=R}L=M}D=L}A=D}z=A}v=z}r=v}q=r}p=q}l=p}k=l}h=k}f=h}e=f}d=e}c=d}return c};
var FIc=function(a,b){if(!b.json){if(a instanceof _.jJ)return BIc({});throw _.OK();}return BIc(b.json)},JIc=function(a,b){if(!b.json)throw _.OK();a=qIc(a.H,b.json);return(new _.MJ).Bc(1).setItem(a)},EIc=function(a,b,c){if(!c.json)throw _.OK();return WHc(DIc(a),b,c.json)},GIc=function(a,b){if(!b.json)throw _.OK();return rHc(b.json,a.zh())},HIc=function(a,b){if(!b.json)throw _.OK();a=a.ta;var c=b.json;_.LK(["drive#about","drive#changeList"],c);b=new hxc;var d=c.nextPageToken;null!=d&&_.y(b,2,Number(d));
d=c.largestChangeId;null!=d&&_.y(b,3,Number(d));if("drive#changeList"==c.kind){_.LK(["drive#changeList"],c);d=[];c=c.items||[];for(var e=0;e<c.length;e++){var f=a,h=c[e];_.LK(["drive#change"],h);var k=new _.CI;k=_.y(k,1,Number(h.id));h.teamDriveId?(_.bgc(k,h.teamDriveId),_.DI(k,h.teamDriveId)):_.DI(k,h.fileId);h.file?k.setItem(_.dmc(f.H,h.file)):h.teamDrive&&k.setItem(qIc(f.O,h.teamDrive));h.deleted&&!k.getItem()&&_.NI(k);d.push(k)}_.Mj(b,4,d)}return b},KIc=function(a){var b,c;if(!a.json)throw _.OK();
a=a.json;var d=a.result&&a.result.status;d=d&&LIc[d];var e=null!==(c=a.result&&(null===(b=a.result.sourceResults)||void 0===b?void 0:b.map(function(f){var h,k;return $Bc(ZBc(YBc(new _.XBc,f.sourceId),f.fileCount),null!==(k=null===(h=f.unmovableFileReasons)||void 0===h?void 0:h.map(function(l){var p=new _.VBc;p=_.y(p,1,l.unmovableReason);return _.y(p,2,l.count)}))&&void 0!==k?k:[])})))&&void 0!==c?c:[];return UBc(TBc(SBc(RBc(new vM,bBc(a)),a.processedFileCount).Bc(d),a.result&&a.result.validationToken),
e)},IIc=function(a,b){var c=new yCc;if(_.Qd(a,6).length){var d=[];Qnc(_.Qd(a,6),b.headers).forEach(function(e,f){var h=new _.pdc;e=_.y(h,1,f).Jb(e);d.push(e)});_.Mj(c,1,d)}zCc(c,b.json?JSON.stringify(b.json):b.text);return c},LIc={movable:1,deadlineExceeded:2,exceedsSourceLimit:3,exceedsDestinationDepthLimit:4,exceedsDestinationSizeLimit:5,tooManyUnmovableFiles:6,tooHighProportionUnmovableFiles:7};
var NIc=function(a){var b=new _.To;if(a=a.getState()){var c=[];c.push("state");c.push("=");c.push(MIc[a]);_.oK(b,c.join(" "))}return b.toString()},OIc={},MIc=(OIc[1]="active",OIc[2]="archived",OIc);
var PIc=function(a,b,c,d){_.PK.call(this,b,c,a.ILa,d);this.ma=a;this.ha=new uwc(_.mK(c),b)};_.N(PIc,_.PK);
PIc.prototype.V=function(a,b,c){var d=this;try{return _.PK.prototype.V.call(this,a,b,c)}catch(M){}var e=0,f={},h="GET",k={},l=!1,p=!1;if(a instanceof _.YI){h="POST";var q="admin/files/"+a.getId()+"/migrateToTeamDrive";_.Q(a,3)&&(k.useDomainAdminAccess=!0);k.fields="kind,id,parentId,teamDriveId";k.fileId=a.getId();_.P(a,4)&&(k.preFlightValidationToken=_.B(a,4));var r=cBc(a);f["content-type"]="application/json";l=p=!0}else if(a instanceof _.ZI){h="POST";q="files/"+a.Ac()+"/authorize";k.appId=a.zh();
_.Q(a,3)&&(k.propagate=!0);var v=a.ve();p=!0;_.lK(k);_.PJ(this.H,[],[a.Ac()],this.O,f)}else if(a instanceof _.$K)q="drives/"+a.getId(),h="PUT",r={},r=(r.removeSecureLinkUpdateForAllFiles=_.S(a,2,!1),r),f["content-type"]="application/json",k.fields=OL(this.H,[],!0),v=a.ve(),p=!0;else if(a instanceof _.Ngc)h="POST",q="teamdrives/"+a.requestId,k.fields=OL(this.H),r={},r=(r.name=a.request.getTitle(),r),f["content-type"]="application/json",v=a.request.ve(),p=!0;else if(a instanceof _.cJ)h="POST",q="workspaces",
k.fields="kind,id,title,createdDate,modifiedDate,state",r=eBc(a),f["content-type"]="application/json",v=a.ve(),p=!0;else if(a instanceof _.$I)h="POST",q="files/"+a.getId()+"/copy",k.fields=_.Agc({fields:this.Jg(c),jr:_.SI(_.tI(this.H)),yG:_.yI(this.H)}),k.convert=_.S(a,4,!1),r=dBc(a),f["content-type"]="application/json",v=a.ve(),a=_.Qd(a,3).concat([a.getId()]),_.PJ(this.H,[],a,this.O,f),p=!0,_.lK(k),_.Smc(this.H,k);else if(a instanceof _.dJ)h="DELETE",q="apps/"+a.zh(),k.appId=a.zh(),k.deleteAppData=
!!_.Q(a,2),v=a.ve(),p=!0;else if(a instanceof _.eJ)h="DELETE",q="backups/"+a.getId(),e=9;else if(a instanceof _.fJ)h="DELETE",q="files/"+a.getId(),v=a.ve(),p=!0,_.lK(k),_.Smc(this.H,k),_.PJ(this.H,[],[a.getId()],this.O,f);else if(a instanceof _.gJ)h="DELETE",q="files/"+a.Ac()+"/permissions/"+_.B(a,2),v=a.ve(),p=!0,_.lK(k);else if(a instanceof _.hJ)h="DELETE",q="files/"+a.Ac()+"/revisions/"+_.B(a,2),v=a.ve(),p=!0,_.PJ(this.H,[],[a.Ac()],this.O,f);else if(a instanceof _.iJ)h="DELETE",q="teamdrives/"+
a.getId(),v=a.ve(),p=!0;else if(a instanceof _.ED)h="DELETE",v=a.getKey(),q="settings/"+_.B(v,2),_.mp(v)&&(k.namespace=Soc[_.mp(v)]),v=a.ve(),p=!0;else if(a instanceof _.jJ)h="DELETE",q="workspaces/"+a.getId(),v=a.ve(),p=!0;else if(a instanceof _.mJ)h="DELETE",q="files/trash",v=a.od().ve(),p=!0,_.Smc(this.H,k);else if(a instanceof _.oJ)q="apps/"+a.zh(),v=a.ve(),p=!0,k.fields="kind,id,useByDefault,name,openUrlTemplate,primaryMimeTypes,secondaryMimeTypes,createUrl,createInFolderTemplate,objectType,supportsCreate,supportsImport,supportsMultiOpen,supportsOfflineCreate,installed,authorized,productUrl,primaryFileExtensions,secondaryFileExtensions,shortDescription,longDescription,productId,removable,icons(iconUrl,size,category),type,chromeExtensionIds,requiresAuthorizationBeforeOpenWith,hasDriveWideScope,driveBranded,driveSource,supportsMobileBrowser,supportsTeamDrives,hasGsmListing";
else if(a instanceof _.uJ)q="backups/"+a.getId()+"/items",e=9,k.languageCode=fL(_.tI(this.H));else if(a instanceof _.pJ)h="POST",q="apps",k.appId=a.zh(),v=a.ve(),p=!0;else if(a instanceof _.qJ)h="POST",q="files/"+a.Ac()+"/permissions",k.fields=_.yI(this.H)?"kind,type,id,userId,nameIfNotUser,emailAddress,withLink,role,additionalRoles,deleted,view,audienceId,customerId":"kind,type,id,userId,name,emailAddress,withLink,photoLink,role,additionalRoles,deleted,view,audienceId,customerId",k.emailMessage=
_.B(a,5)||"",k.sendNotificationEmail=!_.S(a,6,!1),r={},1==a.wf()?r.role="owner":3==a.wf()?r.role="writer":4==a.wf()?(r.role="reader",r.additionalRoles=["commenter"]):2==a.wf()&&(r.role="reader"),1==a.getType()?r.type="user":2==a.getType()?r.type="group":3==a.getType()?r.type="domain":4==a.getType()?r.type="anyone":5==a.getType()&&(r.type="audience"),a.Za()&&(r.value=a.Za()),r.withLink=!_.S(a,8,!1),f["content-type"]="application/json",v=a.ve(),p=!0,_.lK(k);else if(a instanceof _.Jgc)e=8,h="POST",q=
"/v1/exports",f["content-type"]="application/json",r=_.Qd(a,1).map(function(M){if(_.S(d.H,89,!1)){var R=_.ukc(d.O,M);if(null!==R)return{id:M,resource_key:{resource_key:R}}}return{id:M}}),r={archiveFormat:null,archivePrefix:_.B(a,2),conversions:null,items:r,locale:null};else if(a instanceof _.zI||a instanceof _.rK||a instanceof _.Zz||a instanceof _.hG)if(b=a instanceof _.zI?a.od():a,_.OJ(b)){e=10;h="POST";q="/v1/items";f["content-type"]="application/json";r={};var z=9==_.fK(this.H)?"WEB_MOBILE":"WEB_DESKTOP",
A={};A.applicationType=Cwc(this.H);A.platformType=z;A.languageCode=fL(_.tI(this.H));A.timeZone=(new _.It).f$();A.requestType="LIVE_REQUEST";a instanceof _.zI&&(z=a.getOptions())&&_.S(z,10,!1)&&(A.requestType="BACKGROUND_REQUEST");b instanceof _.ef?_.rJ(b)?(zwc(this.ha)?(A.scenarioType="ONE_PICK",this.Ad.O(106026)):_.S(b,74,!1)?A.scenarioType="QUICK_ACCESS_FOR_SHARED_FILES":A.scenarioType="QUICK_ACCESS",2==_.bK(b)&&(zwc(this.ha)||(A.scenarioType="QUICK_ACCESS_FOR_SHARED_DRIVE"),r.contextFeature={type:"DRIVE_TEAM_DRIVE_ROOT_ID",
stringValue:_.Qd(b,33)[0]}),_.El(b).length&&(r.itemType=Bwc(b))):_.sJ(b)?A.scenarioType="DRIVE_PEOPLE_WITH_ACTIONS":_.tJ(b)&&(A.scenarioType="DRIVE_PRIORITY"):b instanceof _.rK?(q="/v1/userfeedback",r.userFeedback=_.Rj(b,_.otc,1).map(function(M){var R=_.C(M,_.xL,2),Z={},ia={};ia.feedbackType=Ctc[R.getType()];Z.item=ia;Z.clientInfo=A;switch(M.getFeature()){case 1:A.scenarioType="DRIVE_PRIORITY";ia.itemId=R.Ac();break;case 3:A.scenarioType="QUICK_ACCESS";ia.itemId=R.Ac();break;case 4:A.scenarioType=
"QUICK_ACCESS_FOR_SHARED_FILES";ia.itemId=R.Ac();break;case 2:A.scenarioType="DRIVE_WORKSPACES",ia.itemId=R.Ac(),ia.childItem=_.Rj(R,_.xL,3).map(function(ja){var xa={};xa.itemId=ja.Ac();return xa})}return Z})):b instanceof _.Zz?A.scenarioType="DRIVE_WORKSPACES":b instanceof _.hG?(A.scenarioType="ITEMS_FOR_DRIVE_WORKSPACE",r.contextFeature=[{type:"GENERIC_TITLE",stringValue:b.getTitle()||""},{type:"DRIVE_WORKSPACE_ID",stringValue:b.Ip()||""},{type:"DRIVE_EMPTY_WORKSPACE",boolValue:_.Q(b,5)}]):_.Vmc(a);
b instanceof _.rK||(r.maxSuggestions=b.xi(),r.clientInfo=A)}else{v=b.ve();p=!0;q="files";k.q=_.xjc(b);z=[];var D;(D=_.II(this.H))&&_.S(D,4,!1)?(D=_.va(this.Jg(c),this.Jg(c,b.O())),_.Da(D)):D=_.wa(this.Jg(c));var G=void 0,H=!1;0<_.Rj(b,_.zl,5).length&&(G=_.B(this.H.$f(),50),H=!0);k.fields=tnc({fields:D,jr:_.SI(_.tI(this.H)),f7:G||void 0,yG:_.yI(this.H),Wzb:H});k.appDataFilter="NO_APP_DATA";0<_.Rj(b,_.aK,25).length&&(k.sources=_.pjc(b));0<b.pB().length&&(k.spaces=_.qjc(b));a.Vn()&&(k.pageToken=a.Vn());
(a=a.getOptions())&&_.Zj(a,1,1E3)&&(k.maxResults=_.Zj(a,1,1E3));_.S(b,36,!1)&&(k.includeUnsubscribed=!0);_.B(b,43)&&(k.rawUserQuery=_.B(b,43));_.lK(k);k.includeItemsFromAllDrives=_.S(b,66,!0);0<_.Qd(b,33).length&&2==_.bK(b)&&(a=_.Qd(b,33)[0],k.teamDriveId=a,z.push(a));k.corpora=_.Xic[_.bK(b)];_.Q(b,18)&&(_.Ua(k,"corpora"),k.corpus="DOMAIN");a=_.Fl(b);D=_.Rj(b,_.ul,35);G=_.Rj(b,_.ul,38);z=z.concat(a.filter(function(M){return!_.S(M,2,!1)}).map(function(M){return M.Za()})).concat(D.map(function(M){return M.Za()})).concat(G.map(function(M){return M.Za()}));
_.PJ(this.H,_.Rj(b,_.Bl,63),z,this.O,f);Snc(k,b.wc());_.Tmc(this.H,k);_.Umc(this.H,k);_.C(b,_.xea,64)&&(a=Dqc(_.C(b,_.xea,64)),a=_.nb(a,4),k.searchSessionData=a)}else if(a instanceof _.vJ){q="apps";switch(a.getType()){case 1:k.fields=QIc;break;case 2:k.fields=RIc;break;case 4:k.fields=SIc;break;case 3:e=5,q="apps",k.fields="items(icons[category='application'],icons(size,iconUrl),id,name,openUrlTemplate,primaryFileExtensions,primaryMimeTypes,productId,rankingInfo,secondaryFileExtensions,secondaryMimeTypes,kind),kind",
k.appQueryScope="all_webstore",b.iu=!0}k.languageCode=fL(_.tI(this.H));0<_.Qd(a,3).length&&(k.appFilterExtensions=_.Qd(a,3).join(","));0<_.Qd(a,4).length&&(k.appFilterMimeTypes=_.Qd(a,4).join(","));v=a.ve();p=!0}else if(a instanceof _.Kgc)q="backups",e=9,k.languageCode=fL(_.tI(this.H));else if(a instanceof _.LI)q="changes",k.includeDeleted=_.S(a,3,!0),k.includeSubscribed=_.S(a,4,!0),k.maxResults=a.SQ(),k.startChangeId=_.B(a,1),k.fields=snc({fields:this.Jg(c),f7:OL(this.H,_.Qd(a,5)),jr:_.SI(_.tI(this.H)),
yG:_.yI(this.H)}),k.appDataFilter="NO_APP_DATA",a.yc()||(k.filters="DRIVE_DATASERVICE"),v=_.Qd(this.H.$f(),31),v.length&&(k.spaces=_.cf(v,function(M){return _.sdc[M]}).join(",")),_.lK(k),k.includeCorpusRemovals=!0,k.includeItemsFromAllDrives=!0,a.yc()&&(k.teamDriveId=a.yc()),v=a.ve(),p=!0;else if(a instanceof _.wJ)b=a.od(),q="files/"+b.getId()+"/permissions",k.fields=_.yI(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.Vn()&&(k.pageToken=a.Vn()),_.B(a,1)&&(k.maxResults=_.B(a,1)),v=b.ve(),p=!0,_.lK(k),_.Tmc(this.H,k),_.Umc(this.H,k),_.PJ(this.H,[],[b.getId()],this.O,f);else if(a instanceof _.xJ)k.fields=_.yI(this.H)?"kind,items(kind,id,mimeType,modifiedDate,pinned,downloadUrl,originalFilename,fileSize,lastModifyingUser(kind,id,permissionId,emailAddressFromAccount,domain))":
"kind,items(kind,id,mimeType,modifiedDate,pinned,downloadUrl,originalFilename,fileSize,lastModifyingUser(kind,displayName,picture,permissionId,emailAddress))",k.maxResults=a.xi(),q="files/"+a.Ac()+"/revisions",v=a.ve(),p=!0,_.PJ(this.H,[],[a.Ac()],this.O,f);else if(a instanceof _.iG)q="teamdrives/"+a.hn()[0],k.fields=OL(this.H,a.O()),v=a.ve(),p=!0;else if(a instanceof _.Wgc)h="POST",q="admin/files/migrateToTeamDrivePreFlight",_.Q(a.request,3)&&(k.useDomainAdminAccess=!0),r=fBc(a),f["content-type"]=
"application/json",p=l=!0,_.PJ(this.H,[],_.Qd(a.request,1),this.O,f);else if(a instanceof _.KJ)v=a.od(),q="teamdrives",k.fields=Uvc(this.H,v.O()),k.q=lwc(v),a.Vn()&&(k.pageToken=a.Vn()),(v=(v=a.getOptions())&&_.Zj(v,1,1E3))&&(k.maxResults=v),v=a.od().ve(),p=!0;else if(a instanceof _.Xgc)q="teamdrives/"+a.yc(),k.fields="kind,id,recursiveFileCount,recursiveFolderCount",p=l=!0;else if(a instanceof _.EJ)h="PUT",q="apps/"+a.zh(),k.appId=a.zh(),r={},r.useByDefault=_.Q(a,2),_.Q(a,3)&&(r.hasAppData=!1),f["content-type"]=
"application/json",v=a.ve(),p=!0;else if(a instanceof _.JI)h="PUT",q="files/"+a.getId(),k.fields=_.Agc({fields:this.Jg(c),jr:_.SI(_.tI(this.H)),yG:_.yI(this.H)}),k.modifiedDateBehavior="DRIVE_UI",k.updateViewedDate=!!_.Q(a,15),k.fileId=a.getId(),_.Qd(a,9).length&&(k.addParents=_.Qd(a,9).join(",")),_.Qd(a,10).length&&(k.removeParents=_.Qd(a,10).join(",")),_.Qd(a,31).length&&(k.addWorkspaces=_.Qd(a,31).join(",")),_.Qd(a,32).length&&(k.removeWorkspaces=_.Qd(a,32).join(",")),null!=_.Q(a,24)&&(k.confirmed=
_.Q(a,24)),k.languageCode=fL(_.tI(this.H)),r=gBc(a),f["content-type"]="application/json",v=a.ve(),p=!0,_.lK(k),this.W(a.getId(),k),_.Q(a,36)?k.bypassMultiparentingCheck=!0:_.Smc(this.H,k),b=_.Qd(a,9).concat(_.Qd(a,10)),b.push(a.getId()),_.PJ(this.H,_.Rj(a,_.Bl,38),b,this.O,f);else if(a instanceof _.GJ)h="PUT",q="files/"+a.Ac()+"/revisions/"+_.B(a,2),r=hBc(a),f["content-type"]="application/json",v=a.ve(),_.PJ(this.H,[],[a.Ac()],this.O,f);else if(a instanceof _.HJ)q="teamdrives/"+a.getId(),null!=_.Q(a,
15)?(h="POST",q+="/"+(_.Q(a,15)?"hide":"unhide")):(h="PUT",r=iBc(a),f["content-type"]="application/json"),k.fields=OL(this.H),v=a.ve(),p=!0;else if(a instanceof _.IJ)h="PUT",q="workspaces/"+a.getId(),k.fields="kind,id,title,createdDate,modifiedDate,state",r=jBc(a),f["content-type"]="application/json",v=a.ve(),p=!0;else if(a instanceof _.FD)h="PUT",r=_.C(a,_.lp,1),v=r.getKey(),q="settings/"+_.B(v,2),(v=_.mp(v))&&(k.namespace=Soc[v]),r=Toc(r),f["content-type"]="application/json",v=a.ve(),p=!0;else if(a instanceof
_.uI)q="about",k.fields=_.yI(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",
k.fields=Woc(k.fields,this.H),k.fields=Xoc(k.fields,this.H),v=a.ve(),p=!0;else if(a instanceof _.cI){e=11;h=a.Oz();q=a.getUrl();var L=_.B(a,5)||"";_.Rj(a,_.pdc,2).forEach(function(M){f[M.getKey()]=M.Za()});_.Rj(a,_.pdc,4).forEach(function(M){k[M.getKey()]=M.Za()});_.Q(a,7)&&(b.kJb=!0);_.Q(a,8)&&(b.iu=!0);_.Q(a,9)&&(b.$Da=!0)}else a instanceof _.Mgc?(b=a.request.Ac(),q="files/"+b+"/listCategoryMetadata",v=a.request.ve(),a.pageToken&&(k.pageToken=a.pageToken),a.request.xi()&&(k.maxResults=a.request.xi()),
k.fields="kind,nextPageToken,categoryMetadata",_.PJ(this.H,[],[b],this.O,f)):a instanceof _.FJ?(f["content-type"]="application/json",h="POST",b=a.Ac(),q="files/"+b+"/updateCategoryMetadata",v=a.ve(),r={categoryMetadata:a.HV().map(function(M){var R=_.Rj(M,_.eG,2).map(function(ia){return{id:ia.getId(),userId:ia.gs(),setBooleanValue:_.Q(ia,3),setTextValue:_.B(ia,4),setTextValues:_.Qd(ia,6),addTextValues:_.Qd(ia,5),setLongTextValue:_.B(ia,7),setSelectionValue:_.B(ia,8),setSelectionValues:_.Qd(ia,10),
addSelectionValues:_.Qd(ia,9),setIntegerValue:_.B(ia,11),setIntegerValues:_.Qd(ia,13),addIntegerValues:_.Qd(ia,12),setUserValue:_.B(ia,14),setUserValues:_.Qd(ia,16),addUserValues:_.Qd(ia,15),setDateStringValue:_.B(ia,17)}}),Z={categoryName:M.Gm()};R.length?Z.categoryAttributeValueDeltas=R:_.Qd(M,4).length?Z.revertAttributeIds=_.Qd(M,4):_.Q(M,3)&&(Z.removeCategory=_.Q(M,3));return Z})},_.PJ(this.H,[],[b],this.O,f)):a instanceof _.zJ?(e=13,q=_.SI(_.tI(this.H))?"/v2/people/public":"/v2/people",k.person_id=
a.hn(),k["request_mask.include_container"]=["PROFILE","DOMAIN_PROFILE"],k["request_mask.include_field.paths"]=["person.metadata.best_display_name","person.photo","person.email"],k["merged_person_source_options.included_profile_states"]=["DASHER_ADMIN_DISABLED"],_.SI(_.tI(this.H))||(k["core_id_params.enable_private_names"]=!0)):a instanceof _.Sgc?(e=12,q="/v1/categories/-/published",f["content-type"]="application/json",a.pageToken&&(k.pageToken=a.pageToken),a.request.xi()&&(k.maxResults=a.request.xi()),
a.request.getCustomer()&&(k.customer=a.request.getCustomer()),k.$outputDefaults=!0,k.languageCode=fL(_.tI(this.H))):a instanceof _.gG?(e=12,q="/v1/"+a.getName(),f["content-type"]="application/json",k.$outputDefaults=!0,k.languageCode=fL(_.tI(this.H))):a instanceof _.aJ?(f["content-type"]="application/json",h="POST",q="drives/"+a.yc()+"/changeCategoryReferences",v=a.ve(),p=!0,k.fields=OL(this.H,[157],!0),r={},b=_.Rj(a,_.bl,2),b.length&&(r.addCategoryReferences=b.map(function(M){return{category:M.Gm()}})),
a=_.Rj(a,_.bl,3),a.length&&(r.removeCategoryReferences=a.map(function(M){return M.Gm()}))):a instanceof _.kG?(q="workspaces/"+a.hn()[0],k.fields="kind,id,title,createdDate,modifiedDate,state",v=a.ve(),p=!0):a instanceof _.Lgc?(e=7,h="POST",q="/v2/activity:query",f["content-type"]="application/json",r={},r.pageSize=a.pageSize,a.pageToken&&(r.pageToken=a.pageToken),b="items/"+a.request.getId(),_.S(a.request,2,!1)?r.ancestorName=b:r.itemName=b,r.consolidationStrategy={legacy:{}},(a=_.II(this.H))&&_.S(a,
13,!1)&&(r.filter="actor.type_case:(USER IMPERSONATION ADMINISTRATOR SYSTEM) actor.system.type:MULTIPARENTING_MIGRATION")):a instanceof _.Ogc?(e=8,h="POST",q="/v1/exports/"+a.H+":cancel"):a instanceof _.Pgc?(e=8,q="/v1/exports/"+a.H):"undefined"!=typeof _.Rgc&&a instanceof _.Rgc?(q="changes",k.fields="kind,largestChangeId",_.lK(k),k.includeItemsFromAllDrives=!0,a.teamDriveId&&(k.teamDriveId=a.teamDriveId),v=a.H,p=!0):a instanceof _.DD?(q="settings",v=_.Qd(a,3),k.namespace=Uoc(v),v=a.ve(),p=!0):a instanceof
_.Zgc?(q="workspaces",k.fields="kind,nextPageToken,items(kind,id,title,createdDate,modifiedDate,state)",a.pageToken&&(k.pageToken=a.pageToken),a.request.xi()&&(k.maxResults=a.request.xi()),k.q=NIc(a.request),(v=a.request.yw())&&1==v.getType()&&(k.orderBy="title"),v=a.request.ve(),p=!0):a instanceof _.AJ?(q="changes/getRemainingCount",k.pageToken=_.B(a,2),_.P(a,3)&&(k.supportsTeamDrives=!0,k.includeItemsFromAllDrives=!0,k.teamDriveId=a.yc()),v=a.ve()):a instanceof _.XI?(f["content-type"]="application/json",
h="POST",q="files/"+a.Ac()+"/sendAccessRequest",r={},l=!0):_.Vmc(a);p&&_.Wmc(c,k);0!=e||l||v&&_.B(v,1)||_.CK(this.Ad,74438989);return _.Xmc(this,e,q,k,f,h,v,r,L)};PIc.prototype.W=function(a,b){a=this.ma.lm.H(a);b.expectedParentIds=a?a.jk().join(","):[]};
var QIc=Voc("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"),RIc=
Voc("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"),
SIc=Voc("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 TIc=function(a,b,c,d,e,f,h,k,l,p,q,r,v,z,A,D,G,H,L,M,R,Z,ia){this.foa=_.Sh();this.hfa=new _.jkc;var ja=new _.Lkc(this.ZJ.bind(this),function(){return R("w8KrJc")}),xa=new nGc(b.lm),ha=new eGc(ja);c=new XFc(b,f,new SFc(d,e,c),h,this.foa.promise,k,l,c,R);d=new mGc(b,p,q,r,v,d,e,D,k);this.O=new _.mkc(a,z);z=new PIc(b,a,k,Z);this.bsa=new CIc(k,a,A,D);this.H=aBc(a,new _.Zlc(this.O,this.hfa,z,this.bsa,G,H,L),H,A,M,b.lm,this.hfa,this.foa.promise,L||void 0);this.foa.resolve(ia?ia:new _.xlc(new oGc,xa,
ha,this.H,ja,c,d,a))};TIc.prototype.ZJ=function(){return _.Oa(this.H,function(a){return a.ZJ()})};var $Cc=function(a){var b=new Map,c=Date.now();_.La(a.H,function(d,e){d=bsc(d);d.length&&b.set(e,d.map(function(f){return f?c-f:null}))});return b};
var UIc=function(a,b){var c=this;this.context=a;this.Ng=b;this.ha=null;this.zR=0;this.ka=this.active=!1;this.H=this.ta=null;this.V={};this.Fa=this.Ba=!1;this.Ad=a.Hk();this.W=_.Sh();this.O=a.Lc;this.Ha=_.II(this.O)||new _.Lfc;b=_.gL(this.O);this.va=new _.skc(_.Zj(b,2,37500),_.Zj(b,3,6E5));this.ma=a.uQ;_.La(Owc,function(d){c.V[d]=[]});$L(a.Kj,["hVFf7","T8oKm","BNEDtc"],function(){c.log("Initializing: loaded from local dump");c.initialize()});$L(a.Kj,["hVFf7","T8oKm","mrK8ic"],function(){c.log("Initializing: loaded from sdk backfill");
c.initialize()});$L(a.Kj,["mrK8ic","BNEDtc"],function(){c.log("Updating: sdk backfill complete");c.eL().Fg(_.Kf)})};_.g=UIc.prototype;_.g.initialize=function(){var a=this;this.Ba||(this.Ba=!0,FM(this.context).addCallback(function(b){a.ma.initialize().hg(function(){a.ha=b;a.setActive(!0)},function(c){c&&Hrc(a.context.Rf(),"drive.ds.sync.storage.LiveDumpUpdater","Error initializing dump storage",_.UI(c));a.log("Error initializing dump storage");a.hS()})}))};
_.g.isInitialized=function(){return!!this.ha||this.ka};_.g.Vma=function(a){this.active&&(this.zR+=a,this.zR>_.Zj(_.gL(this.O),1,500)&&this.update(3))};_.g.setActive=function(a){if(this.isInitialized()&&this.active!==a){var b=this.context;a&&(b.bR().ZJ()||0<b.uf.vI.zna||b.Gj().Te()||b.lk().Te())||((this.active=a)?(this.W.resolve(),this.H||this.eL().Fg(_.Kf)):(this.W=_.Sh(),_.n.clearTimeout(this.ta)))}};_.g.hS=function(){this.ka=!0};_.g.SVa=function(){return this.H?this.H.promise:_.Oh()};
_.g.eL=function(){var a=this;if(this.H)return this.H.promise;this.H=_.Sh();_.Th(this.H.promise,function(){a.H=null});var b=this.Ad.H(106021)||void 0;this.W.promise.then(function(){return VAc(a.context.uD)}).then(function(c){var d=!c;return a.ka?d:_.Rh([VIc(a,3,d,void 0,void 0,b),VIc(a,0,d,void 0,!0,b),VIc(a,1,d,void 0,!0,b),VIc(a,5,d,void 0,!0,b),VIc(a,6,d,void 0,!0,b)]).then(function(){return d},function(e){e=new _.nc("Failed to update dump",void 0,_.UI(e));return _.Ph(e)})},function(){return _.Ph(Error("sg"))}).then(function(c){a.H.resolve(c);
b&&(c=Orc(b),_.y(c,2,!0),b.uj())},function(c){a.H.reject(c);b&&(c=Orc(b),_.y(c,2,!1),b.uj())});return this.H.promise};_.g.update=function(a,b){var c=this,d=new _.Uh,e=this.Ad.H(106021)||void 0;e&&(trc(Orc(e),_.tK(_.Ffc,a)),d.then(function(){var f=Orc(e);_.y(f,2,!0);e.uj()},function(){var f=Orc(e);_.y(f,2,!1);e.uj()}));this.W.promise.then(function(){return VAc(c.context.uD)}).then(function(f){f=!f;c.ka?d.callback():_.Xh(VIc(c,a,f,b,void 0,e),d)});return d};
var VIc=function(a,b,c,d,e,f){var h=_.fa(a.V[b]);if(h){if(h.encrypt===c&&1<a.V[b].length)return h.mg.Vm();var k=new _.Uh;_.Wh(h.mg,function(){_.Xh(a.Fu(b,c,d,e,f),k)})}else k=a.Fu(b,c,d,e,f);var l={encrypt:c,mg:k};a.V[b].push(l);_.Wh(k,function(){_.ua(a.V[b],function(p){return l===p})});k.Qg(function(p){a.ma.O.kf()?a.hS():p instanceof _.nc&&(p=p.O||null,p instanceof _.oI&&"InvalidStateError"==p.getName()&&p.message&&-1<p.message.indexOf("The database connection is closing.")&&a.hS());return null});
return k};
UIc.prototype.Fu=function(a,b,c,d,e){var f=this,h=new _.Uh;this.W.promise.then(function(){if(3===a)_.Xh(WIc(f,c||!1,b,e),h);else{switch(a){case 0:var k=jDc(f.context.UP);break;case 1:k=f.context.MZ.tr();break;case 5:k=XIc(f.context.eE);break;case 6:k=Eyc(f.context.uf.qq);break;default:h.Hd("Invalid data type to write to storage.");return}if(k){var l=_.Rj(_.gL(f.O),eL,11)[0].getKey();!l&&b?(f.log("Skipping dump update, encrypted and no key"),h.callback()):Szc(f.ma,b?l:null,[k],e).then(function(){return void h.callback()},function(p){return void h.Hd(p)})}else d?
(f.log("Skipping dump update: "+a),h.callback()):h.Hd("Failed to get data to write to dump.")}});return h};
var WIc=function(a,b,c,d){_.n.clearTimeout(a.ta);a.ta=_.n.setTimeout((0,_.u)(a.Ka,a),a.va.Za());if(b&&0===a.zR)return _.Zh();a.zR=0;var e=_.Rj(_.gL(a.O),eL,11)[0].getKey();if(!e&&c)return a.log("Skipping dump update, encrypted and no key"),_.Zh();var f=[];_.La(Evc,function(k){0<k&&(k=YIc(a,k),k.length&&f.push(Szc(a.ma,c?e:null,k,d)))});var h=new _.Uh;Promise.all(f).then(function(){a.Fa&&a.context.uD.set(TAc,!0);h.callback()},function(k){return void h.Hd(k)});return h};
UIc.prototype.Ka=function(){_.WH(this.va);this.update(3,!0)};
var YIc=function(a,b){switch(b){case 1:return[ZIc(a)];case 2:var c;b=null===(c=_.II(a.context.Lc))||void 0===c?void 0:_.S(c,17,!1);c=a.context.uf.Xr;var d=c.H;c=(b=!b||d&&d.YG?d:c.O)?b.iy():[];c=$Ic(a,_.Qa(xoc(c)));a.log("Exporting "+c.length+" secondary dump items.");c.length>_.Zj(_.gL(a.O),5,2E4)&&(b&&bM(b,!1),c=[]);c=yvc(new LL,aJc(c));d=a.context.uf.Xr;a=new Foc;(d=d.H)&&d.YG&&(d=d.iy(),_.y(a,3,d.length));a=_.J(c,11,a);a=Dvc(a,2);b&&Bvc(a,b.IN());b instanceof eM&&(b=Gxc(b),_.Jj(a,14,b));return[a];
case 3:return bJc(a);case 4:return cJc(a);default:throw new _.nc("Unsupported CacheType");}},ZIc=function(a){for(var b={},c=[],d=Txc(a.context.uf.Xr,!0),e=!0,f=0;f<d.length;f++){var h=d[f],k=h.iy(),l=$Ic(a,woc(k));k=l.length;var p=0<k?l[k-1]:null;_.Ja(l,function(q){b[q.getId()]=q});if(0<k||h.H)l=vvc(new KL,h.od()),h.H||(_.y(l,2,k),_.J(l,3,p),e=!1),c.push(l)}d=_.Qa(b);a.log("Exporting "+d.length+" initial dump items.");return Bvc(Dvc(Avc(yvc(zvc(Cvc((new LL).yu(a.context.Wn()),_.mK(a.Ng)),a.ha.ZQ(null)),
aJc(d)),c),1),!e)},bJc=function(a){var b=[],c=a.ha;a.context.uf.Xr.bW().forEach(function(d){var e=c.ZQ(d.yc());if(e){var f=$Ic(a,woc(d.iy()));a.log("Exporting "+f.length+" TD dump items for: "+d.yc());e=Bvc(Dvc(zvc(yvc(new LL,aJc(f)),e),3),d.IN(d.od()));d=vvc(new KL,d.od());Avc(e,[d]);b.push(e)}});return b},cJc=function(a){var b={},c=[];a.context.uf.bW().forEach(function(d){1===d.AJ()&&null==_.Q(d.od(),6)&&(woc(d.iy()).forEach(function(e){b[e.getId()]=e}),d=wvc(vvc(new KL,new _.ef),d.od()),c.push(d))});
return[Bvc(Dvc(Avc(yvc(new LL,aJc(Object.values(b))),c),4),!1)]},$Ic=function(a,b){b=Wnc(b);_.Q(a.O,67)&&(b=dJc(b));_.yI(a.O)&&(_.S(a.Ha,9,!1)?Hyc(a.context.uf.qq,b)&&(_.CK(a.Ad,179490965),a.log("b/179490965 Unexpected people data when writing to disk cache.","warning"),b=Fyc(a.context.uf.qq,b)):b=Fyc(a.context.uf.qq,b));return b.filter(function(c){return 4!==c.gv()})},dJc=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Knc(c)?(c=c.clone(),unc(c,Jnc),b.push(c)):b.push(c);
return b},aJc=function(a){return a.map(function(b){return b.clone()})};UIc.prototype.log=function(a,b){this.context.Rf().log("drive.ds.sync.storage.LiveDumpUpdater",a,void 0===b?"info":b)};UIc.prototype.kDa=function(){this.Fa=!0};
var eJc=function(){};_.g=eJc.prototype;_.g.setActive=function(){};_.g.hS=function(){};_.g.update=function(){return _.Zh()};_.g.SVa=function(){return _.Oh()};_.g.eL=function(){return _.Oh()};_.g.Vma=function(){};_.g.kDa=function(){};
var cL=function(a,b,c,d){_.qi.call(this);var e=this;this.Aa=a;this.iw=c;this.rootId=null;this.Fa=!0;this.ha=null;this.ma=[];this.va=d||new _.cjc;this.Lc=b.clone();(a=_.II(this.Lc))&&_.S(a,1,!1)&&_.aI(this.Lc,28);this.Ng=new _.ljc(this.Lc);this.Bm=new uwc(_.mK(this.Ng),this.Lc);fJc(this);this.AX=new _.An;this.rb=_.n.setTimeout(function(){e.Rf().info("drive.ds.sync.ThinContext","Page stable timed out.");e.AX.resolve();e.Hk().O(106020)},1E4);this.LZ=new _.Uh;this.Ba=new _.Njc(_.gK(this.Lc),_.S(this.Lc.$f(),
52,!1));this.connectionState=new _.Gjc(_.gK(this.Lc)?3:1,!_.S(this.Lc.$f(),52,!1));this.Ad=_.ckc(this.Lc,this.Ba,this.connectionState,this.va,this.AX.promise,this.iw);this.ifa=new $wc(this.Ad);this.cQ=new _.Uh;gJc(this)};_.N(cL,_.qi);cL.prototype.getEnvironment=function(){return this.iw};cL.prototype.$R=function(){this.Rf().info("drive.ds.sync.ThinContext","Notified of page stable.");_.n.clearTimeout(this.rb);this.AX.resolve()};
var gJc=function(a){var b=function(){a.Au().Fg(_.Kf)},c=a.Aa;(c=c&&_.jc(c,_.Vl))?_.Pe(c,"w",b):_.Kfc()||_.Pe(_.n,"unload",b)};cL.prototype.Au=function(){this.Ad.O(106005);Src(this.Ad);var a=this.ma.map(function(b){return b()});_.qa(this.ma);return _.fI(a).then()};var hJc=function(a,b){a.ma.push(b)};_.g=cL.prototype;_.g.Rf=function(){return this.va};_.g.yu=function(a,b){"string"===typeof a&&null===this.rootId&&(this.rootId=a,this.LZ.callback(a),a.length&&this.F3a(a,b||null))};_.g.F3a=function(){};
_.g.Wn=function(){return this.rootId};_.g.Hk=function(){return this.Ad};var iJc=function(a){if(!a.ha)throw Error("tg");return a.ha},jJc=function(a,b){a.ha=b};cL.prototype.xB=function(){return this.Fa||this.connectionState.isConnected()};cL.prototype.Gj=function(){return this.Ba};cL.prototype.lk=function(){return this.connectionState};cL.prototype.GMb=function(a){this.cQ.callback(a)};
var fJc=function(a){var b=a.Lc.$f();0===_.Qd(b,30).length&&(a.log("No user pref namespaces provided, user prefs disabled."),_.y(b,19,3));if(!_.E(b,37,""))throw Error("ug");_.B(b,57)||(a.log("No root URI provided; using prod default."),_.y(b,57,"https://clients6.google.com"));if(_.S(_.gL(a.Lc),9,!1))if(b=_.Rj(_.gL(a.Lc),eL,11),0<b.length){if(!_.B(b[0],1)||!b[0].getKey()&&!_.gK(a.Lc)&&!_.S(a.Lc,10,!1))throw Error("vg");}else _.y(_.gL(a.Lc),9,!1),a.log("Disabling IndexedDB support, missing configuration.");
if(!_.S(_.gL(a.Lc),9,!1)&&(_.gK(a.Lc)||_.S(a.Lc,10,!1)))throw Error("wg");var c=_.tI(a.Lc);b=!(!c||!_.SI(c));c=c&&_.eK(c)||"";if(!b&&!c)throw Error("xg");b&&_.Nj(a.Lc,44);_.Rj(a.Lc,_.ef,44).forEach(function(d){try{xwc(a.Bm,d)}catch(e){if(e instanceof _.nc&&(d=e.Rg)&&3===d.Xs())throw Error("yg");throw e;}})};cL.prototype.mJ=function(a){this.dispatchEvent(new _.oc(new _.nc(void 0,a)))};cL.prototype.log=function(a){this.Rf().info("drive.ds.sync.ThinContext",a)};
var kJc=function(a,b){this.H=a;this.Le=b};
var lJc=new Set([5,4,1,6,2]),mJc=new Map([[3,1],[7,1],[2,2],[4,2],[5,3],[1,4],[6,5]]),nJc=function(a,b,c){_.qi.call(this);this.ha=a;this.V=b;this.W=c;this.IF=new Map;this.O=new Map;this.status=6;this.H=null};_.N(nJc,_.qi);
nJc.prototype.dQ=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())&&_.mp(q))&&f.add(q)});[].concat(_.ld(f.values())).forEach(function(q){return void c.push(q)})}if(c.length){var h=lJc.has(b),k=new Map;c.forEach(function(q){k.set(q,new Map)});a.forEach(function(q){var r=q.getKey(),v=r&&_.mp(r);r=r&&_.B(r,2);v=k.get(v);r&&v&&v.set(r,oJc(q))});var l=0,p=0;[].concat(_.ld(k.keys())).forEach(function(q){var r=k.get(q),v=e.IF.get(q);v?h&&
(r.forEach(function(z){var A=z.getKey();(A=v.get(A&&_.B(A,2)))&&_.Vj(z,A)||l++}),[].concat(_.ld(v.values())).forEach(function(z){z=z.getKey();r.has(_.B(z,2))||p++}),e.IF.set(q,r),e.O.set(q,b)):(l+=r.size,e.IF.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,aM(this.V,"px2C2c");aM(this.V,"rkYxSd")}(l||p)&&pJc(this,!h)}};
nJc.prototype.mD=function(){return 0<this.IF.size};var pJc=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 _.gi("WPi0i"))};nJc.prototype.put=function(a){var b=a.getKey(),c=b&&_.mp(b);b=b&&_.B(b,2);if(c&&b&&(c=this.IF.get(c))){var d=c.get(b);a=oJc(a);d&&_.Vj(a,d)||(c.set(b,a),pJc(this))}};nJc.prototype.remove=function(a){var b=a&&_.mp(a);a=a&&_.B(a,2);b&&a&&(b=this.IF.get(b))&&b.delete(a)&&pJc(this)};
var XIc=function(a,b){var c=[];(b||[].concat(_.ld(a.IF.keys()))).forEach(function(e){(e=a.IF.get(e))&&[].concat(_.ld(e.values())).forEach(function(f){return void c.push(f.clone())})});b=b?b.filter(function(e){return a.IF.has(e)}):[].concat(_.ld(a.IF.keys()));var d=new usc;_.Mj(d,1,c);_.Jj(d,2,b);return d};
nJc.prototype.NG=function(a){var b=this,c=XIc(this,a),d=new _.Xz;d.Bc(this.status);_.jkb(d,_.Rj(c,_.lp,1));_.J(d,4,c);var e=0;a.forEach(function(f){f=b.O.get(f);mJc.has(f)&&Infinity>mJc.get(f)&&(e=f)});return new kJc(d,e)};var oJc=function(a){a=a.clone();a.ih()||a.Jb("");return a};
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var qJc=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},sJc=function(a,b){return rJc(a[b])+(rJc(a[b+1])<<8)+(rJc(a[b+2])<<16)+(rJc(a[b+3])<<24)},rJc=function(a){return 127<a?a-256:a};
var dL=function(a,b,c,d,e,f){cL.call(this,a,b,c,d);var h=this;this.Ta=_.Sh();this.pt=new Jxc;this.W=null;this.O=_.Sh();this.Ha=new _.Uh;this.a6=null;this.kfa=new Xyc;this.V=null;this.$a=_.Sh();this.ta=new _.Uh;this.RF=new Czc;this.sz=new ezc;this.Sga=new Dxc;this.R$=new _.An;this.Ka=!1;this.jfa=new _.An;this.H={};this.ka=null;this.Lb=new _.Je;this.Ma(this.Lb);this.Kj=e?e:new Cxc(this.Rf());this.Hk().W.O=this.Kj;this.CL=_.S(_.gL(b),9,!1)&&Yoc()?tJc(this,b):null;this.uv=new nwc(fL(_.tI(b)));this.uD=
uJc(this,this.CL);this.uQ=vJc(this,this.CL,b);this.Ls=wJc(this);this.uf=new JM(this,this.Ng);(a=(a=_.C(this.Lc,_.cl,12))&&a.getId())&&this.yu(a,6);this.UP=new iDc(this.Lc,this.uf.qq,this.Kj,this.Rf(),this.Ls);this.MZ=new oDc(this.Rf(),this.Kj,this.Ls);this.eE=new nJc(this.Rf(),this.Kj,this.Ls);this.wI=new Swc(this.Nm(),this.Rf(),function(k){return void h.mJ(k)});this.cz=_.S(this.Lc.$f(),52,!1)?new _.DK(this.lk(),this.Nm(),this.Rf(),this.Hk()):null;$L(this.Kj,["mrK8ic"],function(){h.$a.promise.then(function(){UDc(h,
h.V)})});this.JLa=new yzc(this.Lc);this.PA=new _.Ekc(this.Lc,this.uf.lm);this.csa=new OFc(this);this.Z5=new azc(this.O.promise,this.Nm());this.kb=new czc(this.Nm(),this.Z5);this.lfa=new uzc(this.O.promise,this.Nm(),this.Rf(),this.Lc);this.Qa=new TIc(this.Lc,this.uf,this.mJ.bind(this),this.Z5,this.kb,this.Ls,this.kfa,this.Ng,this.Wn.bind(this),this.csa,this.MZ,this.eE,this.lfa,this.RF,this.Rf(),this.JLa,this.PA,this.wI,this.cz,this.Gj(),this.zob.bind(this),this.Hk(),f);this.Ta.resolve(this.Qa);this.KIa=
new yFc(this);$L(this.Kj,["BNEDtc"],function(){return h.jfa.resolve()});hJc(this,function(){h.Ls.hS();return _.Oh()})};_.N(dL,cL);
var tJc=function(a,b){var c=_.eK(_.tI(b)),d=_.fK(b),e=function(){},f=_.Rj(_.gL(b),eL,11);f=f[0]&&_.B(f[0],1);var h=new nAc(c,d,_.Zj(_.gL(b),10,0)||0,f||"",_.mK(a.Ng));_.gK(b)?c=IAc(c,d).then(function(l){return l?l:h}):_.S(b,10,!1)&&0<_.Zj(_.gL(b),8,432E6)?(b=xJc(a,c),c=IAc(c,d,b).then(function(l){return l&&(e=function(p){return p.Kl(h).Fg(function(){return null})},!l.ha)?l:h})):c=_.Oh(h);var k=new nM(c,a.Rf(),a.Hk());k.initialize().then(function(){return e(k)},function(){return null});return k},xJc=
function(a,b){var c=_.Zj(_.gL(a.Lc),8,432E6);if(!_.gK(a.Lc)&&0<c){a=Math;var d=a.abs;b=_.wma(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+=sJc(b,e),h.b+=sJc(b,e+4),h.c+=sJc(b,e+8),qJc(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+=sJc(b,e+4);h.a+=sJc(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+=sJc(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=qJc(h);return d.call(a,b)%c}};dL.prototype.Qy=function(a){var b=this;return this.CL?this.CL.kf()?_.Ph(Error("zg`"+uAc(this.CL))):VAc(this.uD).then(function(c){var d=b.CL,e=[];e.push(b.Ls.SVa());e.push(a?d.Kl():EAc(d));if(a===c)return _.Rh(e).then(function(){return!1});!1===a&&(e.push(tAc(d)),(c=b.Wn())&&e.push(b.uD.yu(c)));return _.Rh(e).then(function(){return b.uD.Qy(a)},function(){return!1})}):_.Ph(Error("Ag"))};
var vJc=function(a,b,c){var d=null;b&&(d=new Mzc(b,c,function(e){a.mJ(e)},a.Hk()),d.initialize());return d},uJc=function(a,b){var c=new UAc(b||void 0);c.Wn().then(function(d){d&&a.yu(d,5)});b&&(VAc(c).then(function(d){a.Gj().Qy(d)}),_.Rh([b.initialize(),a.AX.promise]).then(function(){yJc(a,c)},function(){}));return c},yJc=function(a,b){YAc(b).then(function(c){(!c||c<Date.now()-864E5)&&LAc(_.eK(_.tI(a.Lc)),_.fK(a.Lc),a.Rf()).then(function(d){d&&(d=Date.now(),b.set(SAc,d))},function(){})})},wJc=function(a){if(!a.uQ)return new eJc;
var b=new UIc(a,a.Ng);a.Lb.listen(a.Gj(),"Fb",function(c){return void b.setActive(!c.Te())});a.Lb.listen(a.lk(),[].concat(_.ld(Object.values(_.zB))),function(){return void b.setActive(a.lk().isConnected())});return b};dL.prototype.jY=function(a){this.a6=a;this.Ha.callback(a)};var FM=function(a){return a.Ha.Vm()},ZCc=function(a){return a.CL?a.CL.kf():null},zJc=function(a,b){a.Kj.H("NSockf")?aM(a.Kj,b):$L(a.Kj,["NSockf"],function(){aM(a.Kj,b)})};
dL.prototype.F3a=function(a,b){this.log("Setting Root ID: "+a);a&&(this.pt.yu(a),this.Bm.yu(a),6!==b&&1!==b||this.uD.yu(a),zJc(this,"jroI5d"))};dL.prototype.RUa=function(){return this.ta.Vm()};var UDc=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.ag()||(a.ta.callback(b),zJc(a,"T8oKm")))},tDc=function(a){if(!a.W)throw Error("Bg");return a.W};_.g=dL.prototype;_.g.bR=function(){return this.Qa};_.g.Nm=function(){return this.Ta.promise.then(function(a){return a.foa.promise})};
_.g.jDa=function(){this.Ka||(this.Ka=!0,this.R$.resolve(),aM(this.Kj,"aU7Ts"))};_.g.xB=function(){throw Error("Cg");};_.g.zob=function(a){this.dispatchEvent(a)};var AJc=function(a,b){eFc(a.uf,b)},BJc=function(a,b,c){a.H[b]=c},UCc=function(a){a.ka||(a.ka=new kzc(a.O.promise,a.Nm(),a.Rf()));return a.ka};
var NM=function(a,b,c){_.qi.call(this);var d=this;this.Fa=a;this.rb=b;this.va=_.Sh();this.Ba=this.channel=this.clientId=null;c.then(function(e){return CJc(d,e)})};_.N(NM,_.qi);var CJc=function(a,b){a.clientId=b.clientId;a.channel=b.channel;a.Ba=b.H;SL(a.channel,a.Fa,function(c){c=Mwc(c);a.x$(c.O,!(!c.data||!c.H),c.data,c.error)});a.log("Service initialized: "+a.Fa);a.va.resolve()};NM.prototype.x$=function(){};
NM.prototype.send=function(a,b,c,d){var e=this,f=_.Sh();this.va.promise.then(function(){var h=e.channel;TL(h,e.Fa,Iwc(new Hwc(e.clientId,a,b,d),h.W),function(k){return void DJc(k,a,f,c||function(){})})});return f.promise};var DJc=function(a,b,c,d){a=Mwc(a);a.data?c.resolve(d(a.data,a.H)):(a.error?d=a.error:(d=new _.mc,_.EI(d,2),_.FI(d,6),_.y(d,21,"Worker["+b+"]: An invalid response was received")),c.reject(new _.nc(void 0,d)))};NM.prototype.log=function(a){this.Ba&&this.Ba.info(this.rb,a)};
var EJc=function(a,b,c,d){this.clientId=a;this.channel=b;this.H=c;this.O=d};
var OM=function(a,b){_.O.call(this);this.V=a;this.va=b;this.Ka=this.RU()};_.N(OM,_.O);OM.prototype.registerService=function(a){var b=this;SL(a,this.V,function(c){return b.Aw(c)})};
OM.prototype.Aw=function(a){var b=this;a=Jwc(a);var c=a.H,d=this.Ka[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=_.GI(h);return Lwc(b.ld(void 0,h),c)})}catch(h){e=_.UI(h)}f=new _.mc;_.EI(f,2);_.FI(f,3);_.eq(f,this.V+":"+a.method+": "+(e?e.message:"unsupported method"));e&&e.stack&&_.y(f,20,e.stack);return Lwc(this.ld(void 0,f),c)};
OM.prototype.ld=function(a,b,c){if(a&&!b)return new Kwc(a,void 0,c);a=_.GI(b);return new Kwc(void 0,a,c)};OM.prototype.update=function(a,b,c,d){(a=this.va.channels[a]||null)&&TL(a,this.V,Lwc(this.ld(c,d,b),a.W))};
var FJc=function(){this.channels={};this.H=this.O=this.V=0},GJc=function(a,b){var c=a.V++;a.channels[c]=b;a.O++;a.H=Math.max(a.H,_.Pa(a.channels));return c},HJc=function(a,b){var c=a.channels[b];return c?(delete a.channels[b],c):null};
var IJc=function(a,b){OM.call(this,"LRM",b);this.context=a;this.H={};a=this.context;a.W=this;a.O.resolve(this);this.ha=this.context.uf;this.O=this.context.lfa;this.W=UCc(this.context);this.ka=this.context.Z5};_.N(IJc,OM);
IJc.prototype.RU=function(){var a=this,b={};return b["4.1"]=function(c){var d=c.clientId+":"+c.requestId;c=bL(c.args[0],!!c.H,_.ef);return a.ii(d,c)},b["4.9"]=function(c){var d=c.clientId+":"+c.requestId;c=bL(c.args[0],!!c.H,_.mI);return a.ii(d,c)},b["4.2"]=function(c){var d=c.clientId+":"+c.requestId;c=bL(c.args[0],!!c.H,_.tA);return a.ii(d,c)},b["4.10"]=function(c){var d=c.clientId+":"+c.requestId;c=bL(c.args[0],!!c.H,_.iG);return a.ii(d,c)},b["4.3"]=function(c){var d=c.clientId+":"+c.requestId;
c=bL(c.args[0],!!c.H,_.ef);return a.ak(d,c)},b["4.11"]=function(c){var d=c.clientId+":"+c.requestId;c=bL(c.args[0],!!c.H,_.mI);return a.ak(d,c)},b["4.4"]=function(c){var d=c.clientId+":"+c.requestId;c=bL(c.args[0],!!c.H,_.tA);return a.ak(d,c)},b["4.12"]=function(c){var d=c.clientId+":"+c.requestId;c=bL(c.args[0],!!c.H,_.iG);return a.ak(d,c)},b["4.5"]=function(c){var d=c.clientId+":"+c.requestId,e=bL(c.args[0],!!c.H,_.tA);c=bL(c.args[1],!!c.H,_.tA);return a.WY(d,e,c)},b["4.6"]=function(c){var d=c.clientId+
":"+c.requestId,e=bL(c.args[0],!!c.H,_.iG);c=bL(c.args[1],!!c.H,_.iG);return a.WY(d,e,c)},b["4.7"]=function(c){return a.HF(c)},b["4.8"]=function(c){return a.HF(c)},b["4.13"]=function(c){var d=c.clientId+":"+c.requestId;c=bL(c.args[0],!!c.H,_.aA);return a.ii(d,c)},b["4.14"]=function(c){var d=c.clientId+":"+c.requestId;c=bL(c.args[0],!!c.H,_.kG);return a.ii(d,c)},b["4.15"]=function(c){var d=c.clientId+":"+c.requestId;c=bL(c.args[0],!!c.H,_.aA);return a.ak(d,c)},b["4.16"]=function(c){var d=c.clientId+
":"+c.requestId;c=bL(c.args[0],!!c.H,_.kG);return a.ak(d,c)},b["4.18"]=function(c){var d=c.clientId+":"+c.requestId;c=bL(c.args[0],!!c.H,_.vG);return a.ii(d,c)},b["4.19"]=function(c){var d=c.clientId+":"+c.requestId;c=bL(c.args[0],!!c.H,_.vG);return a.ak(d,c)},b["4.22"]=function(c){var d=c.clientId+":"+c.requestId;c=bL(c.args[0],!!c.H,_.Zz);return a.ii(d,c)},b["4.23"]=function(c){var d=c.clientId+":"+c.requestId;c=bL(c.args[0],!!c.H,_.Zz);return a.ak(d,c)},b["4.21"]=function(c){c=a.H[c.clientId+":"+
c.requestId].query;if(c instanceof _.Zz){var d=a.W;Vyc(d,d.getKey(c)).refresh()}return a.ld([])},b};IJc.prototype.ii=function(a,b){var c=this,d=new _.An;this.H[a]={query:b,LRb:d.promise};b instanceof _.aA?d.resolve(this.O.ii(a,b)):b instanceof _.kG?d.resolve(Tyc(this.O,a,b)):b instanceof _.Zz?d.resolve(this.W.ii(a,b)):b instanceof _.vG?d.resolve(this.ka.ii(a,b)):d.resolve(this.ha.ii(a,b));return d.promise.then(function(){return c.ld([])})};IJc.prototype.ak=function(a,b){JJc(this,a,b);return this.ld([])};
var JJc=function(a,b,c){delete a.H[b];c instanceof _.aA?a.O.ak(b,c):c instanceof _.kG?Uyc(a.O,b,c):c instanceof _.Zz?a.W.ak(b,c):c instanceof _.vG?a.ka.ak(b,c):a.ha.ak(b,c)};_.g=IJc.prototype;_.g.WY=function(a,b,c){JJc(this,a,b);return this.ii(a,c)};_.g.HF=function(a){var b=a.clientId+":"+a.requestId,c=this.H[b].query;c.ri(a.args[0]);c instanceof _.aA?this.O.ii(b,c):c instanceof _.kG?Tyc(this.O,b,c):c instanceof _.Zz?this.W.ii(b,c):c instanceof _.vG?this.ka.ii(b,c):this.ha.ii(b,c);return this.ld([])};
_.g.tO=function(a,b){var c=this,d=this.H[a];if(d){a=a.split(":");var e=_.Qg(a[0]),f=a[1];d.LRb.then(function(h){b instanceof _.BK||b instanceof _.yK?c.update(e,f,[b.response,b.pageToken,b.H,b.Le,h]):(d.query instanceof _.ef?wnc(d.query.O(),b.xd().filter(function(k){return!PL(k)})):d.query instanceof _.tA&&wnc(d.query.O(),Object.values(b.eq()).filter(function(k){return k&&!PL(k)})),c.update(e,f,[b,h]))})}};
_.g.KX=function(a,b){if(this.H[a]){var c=a.split(":");a=_.Qg(c[0]);c=c[1];var d=b.error;d.gfa(b.H);this.update(a,c,void 0,d)}};_.g.jA=function(a){this.H[a]&&(a=a.split(":"),this.update(_.Qg(a[0]),a[1],["cacheRefresh"]))};_.g.Q8=function(){};_.g.oka=function(a){if(!this.H[a])throw Error("dg`"+a);return this.H[a].query};var KJc=function(a,b){_.La(a.H,function(c,d){_.Qg(d.split(":")[0])===b&&JJc(a,d,c.query)})};
var LJc=function(a,b,c){NM.call(this,"LRM","drive.ds.sync.cache.LiveRequestManagerProxy",a);this.context=b;this.H=c;this.O={}};_.N(LJc,NM);LJc.prototype.Dwa=function(a){var b=this;a=new GCc(this.context.Bm,this.context.cQ,this.context.Rf(),this.context.Lc,function(c,d){return b.HF(c,d)},a,this.context.Hk());MJc(this,a);return a};LJc.prototype.Gwa=function(a){var b=this;a=new KCc(this.context.Bm,this.context.cQ,this.context.Rf(),function(c,d){return b.HF(c,d)},a,this.context.Lc);MJc(this,a);return a};
var MJc=function(a,b){a.ii(b);_.Ae(b,function(){a.ak(b);a.send("4.3",[b.od()],void 0,b.vi())});a.send("4.1",[b.od()],void 0,b.vi())};_.g=LJc.prototype;_.g.Awa=function(a){var b=this,c=new qL(this.context.Lc,this.context.Bm,this.context.Rf(),this.context.LZ,this.WY.bind(this),a);this.ii(c);_.Ae(c,function(){b.ak(c);b.send("4.4",[c.od()],void 0,c.vi())});this.send("4.2",[c.od()],void 0,c.vi());return c};
_.g.Jwa=function(a){var b=this,c=new OCc(a,this,this.context.Lc);this.ii(c);_.Ae(c,function(){b.ak(c);b.send("4.11",[c.od()],void 0,c.vi())});this.send("4.9",[c.od()],void 0,c.vi());return c};_.g.Kwa=function(a){var b=this,c=new PCc(this.context,this,a);this.ii(c);_.Ae(c,function(){b.ak(c);b.send("4.12",[c.od()],void 0,c.vi())});this.send("4.10",[c.od()],void 0,c.vi());return c};
_.g.Nwa=function(a){var b=this,c=new SCc(this.context,a,this);this.ii(c);_.Ae(c,function(){b.ak(c);b.send("4.15",[c.od()],void 0,c.vi())});this.send("4.13",[c.od()],void 0,c.vi());return c};_.g.Owa=function(a){var b=this,c=new JCc(this.context,a);this.ii(c);_.Ae(c,function(){b.ak(c);b.send("4.16",[c.od()],void 0,c.vi())});this.send("4.14",[c.od()],void 0,c.vi());return c};
_.g.Hwa=function(a){var b=this,c=new NCc(this.context,a,function(){b.send("4.21",[],void 0,c.vi())});this.ii(c);_.Ae(c,function(){b.ak(c);b.send("4.23",[c.od()],void 0,c.vi())});this.send("4.22",[c.od()],void 0,c.vi());return c};_.g.wwa=function(a){var b=this,c=new ECc(this.context.Gj(),this.context.lk(),this.context.Rf(),function(d,e){return b.HF(d,e)},a);this.ii(c);_.Ae(c,function(){b.ak(c);b.send("4.19",[c.od()],void 0,c.vi())});this.send("4.18",[c.od()],void 0,c.vi());return c};
_.g.ii=function(a){this.H.create(a.vi(),a.od());this.O[a.vi()]=a};_.g.ak=function(a){UL(this.H,a.vi(),4);delete this.O[a.vi()]};_.g.WY=function(a,b,c){if(b instanceof _.tA&&c instanceof _.tA)this.send("4.5",[b,c],void 0,a);else if(b instanceof _.iG&&c instanceof _.iG)this.send("4.6",[b,c],void 0,a);else throw Error("Dg");};
_.g.HF=function(a,b){if(!this.O[a])throw Error("dg`"+a);var c=this.O[a];if(c.od()instanceof _.ef)var d="4.7";else if(c.od()instanceof _.mI)d="4.8";else if(c.od()instanceof _.vG)d="4.20";else if(c.od()instanceof _.aA)d="4.17";else throw Error("Eg");c.od().ri(b);this.send(d,[b],void 0,a)};
_.g.x$=function(a,b,c,d){if(a=this.O[a]){var e,f=0;if(d)b=new nL(d,d.S6()),a.rB(b),UL(this.H,a.vi(),3);else if(c&&c[f]){d=c[f++];if("cacheRefresh"===d){a.kW();return}var h=a.od();if(h instanceof _.ef||h instanceof _.mI)h instanceof _.ef&&_.sJ(h)?e=bL(d,b,_.vK):e=bL(d,b,_.mB);else if(h instanceof _.tA||h instanceof _.iG)b?(e=new _.uK,msc(e,function(k){return new _.cl(JSON.parse(k))},d)):e=d;else if(h instanceof _.vG)e=new _.yK(bL(d,b,yL),c[f++],c[f++],c[f++]);else if(h instanceof _.aA)e=new _.BK(bL(d,
b,YL),c[f++],c[f++],c[f++]);else if(h instanceof _.kG)e=bL(d,b,_.wK);else if(h instanceof _.Zz)e=bL(d,b,JL);else throw Error("Fg");}e&&(b=f,c&&"boolean"===typeof c[b]&&axc(this.H,a.vi(),!!c[b]),dxc(this.H,a.vi(),e),a.update(e))}};
var PM=function(){_.qi.apply(this,arguments);this.commands=new _.ml;this.ha=this.active=this.xo=!1};_.N(PM,_.qi);PM.prototype.initialize=function(){this.xo||(this.xo=!0,this.V(),this.setActive(!0))};PM.prototype.V=function(){};PM.prototype.setActive=function(a){this.active=a;NJc(this)};var NJc=function(a){if(a.active&&!a.ha){var b=_.nl(a.commands);if(b)if(a.va()){do a.ka(b);while(b=_.nl(a.commands))}else a.ha=!0,_.Th(a.Ba(b),function(){a.ha=!1;NJc(a)})}};PM.prototype.ka=function(){};
PM.prototype.Ba=function(){};PM.prototype.va=function(){return!0};PM.prototype.enqueue=function(a){try{var b=new _.Uh;this.commands.enqueue(new OJc(a,b));NJc(this);return b}catch(c){return _.ai(_.UI(c))}};var OJc=function(a,b){this.H=a;this.mg=b};OJc.prototype.getCommand=function(){return this.H};OJc.prototype.DG=function(){return this.mg};
var RJc=function(a){PM.call(this);var b=this;this.context=a;this.O=null;this.Pc=new _.Je(this);this.Ma(this.Pc);this.Pc.listen(this.context,"VMiG2e",function(){return void PJc(b)});this.H=this.context.uf.qq;_.yI(this.context.Lc)&&this.Pc.listen(this.H,"Kb",this.W);var c=a.Kj;$L(c,["toquGd"],function(){return b.initialize()});var d=["NSockf"];1!==_.yj(a.Lc.$f(),17,1)&&(d.push("iuEtc"),$L(c,["mrK8ic"],function(){aM(c,"iuEtc")}));$L(c,d,function(){QJc(b)})};_.N(RJc,PM);RJc.prototype.V=function(){SJc(this)};
var QJc=function(a){if(1===a.context.UP.vf().Bb())Promise.resolve();else{var b=_.sf(_.tf(new _.rf,!0),301);b=_.vI(new _.uI,b);a.refresh(b).then(null,function(c){c=_.GI(c);_.y(c,21,"Initial account request failed.");a.context.mJ(c)})}},PJc=function(a){var b=_.sf(new _.rf,304);b=_.vI(new _.uI,b);a.refresh(b).then(null,function(){})};
RJc.prototype.refresh=function(a,b){var c=this;this.O||(this.O=_.Th(this.context.Nm().then(function(d){return d.Re(a,b)}).then(function(d){var e=d.vf(),f=e.getUser();if(f&&!1===_.Hk(f))d=_.HI(_.tI(c.context.Lc)),d=Error("Gg`"+d+"`"+UK(f)),_.wb(d),_.CK(c.context.Hk(),73301807),d=Promise.reject(d);else{f=c.context.UP;var h=0===f.Ye()?1:6;_.yI(c.context.Lc)&&xyc(c.H,e);h=kDc(f,e,h);(e=e.getMetadata())&&c.context.yu(_.B(e,2),1);(d=_.B(d,4))&&UDc(c.context,d,!0);h&&c.dispatchEvent(new _.gi("WPi0i"));d=
Promise.resolve(new _.AK(f.vf(),f.Ye(),!1))}return d}).then(function(d){return d},function(d){d=_.GI(d);_.y(d,5,1);return Promise.reject(new _.nc("Error fetching account from server.",d))}),function(){c.O=null}));return this.O};
RJc.prototype.ka=function(a){var b=a.getCommand();if(b.H){var c={};b.AD&&(c.AD=b.AD);this.refresh(b.request,c).then(function(e){return a.DG().callback(e)},function(e){return void a.DG().Hd(e)})}else if(b=this.context.UP,c=b.vf(),_.yI(this.context.Lc)){c=c.vf();var d=c.getUser();d=Cyc(this.H,UK(d));xyc(this.H,c);kDc(b,c,b.Ye())&&this.dispatchEvent(new _.gi("WPi0i"));a.DG().callback(new _.AK(b.vf(),b.Ye(),d))}else c.Bb(),b=new _.AK(c,b.Ye(),!0),a.DG().callback(b)};
var SJc=function(a){var b=a.context.Lc.$f();_.n.setTimeout(function(){var c=_.sf(new _.rf,306);c=_.vI(new _.uI,c);a.refresh(c).then(function(){SJc(a)},function(){SJc(a)})},Math.ceil(_.Zj(b,7,9E5)*Math.random())+_.Zj(b,3,72E5))};RJc.prototype.W=function(a){var b=this.context.UP,c=b.vf().vf();c&&a.getPeople().find(function(d){return _.B(d,1)===UK(c.getUser())})&&(xyc(this.H,c),kDc(b,c,b.Ye())&&this.dispatchEvent(new _.gi("WPi0i")))};var TJc=function(a,b,c){this.request=a;this.H=!!b;this.AD=c||null};
var VJc=function(a){PM.call(this);this.context=a;this.ta=this.W=!1;this.O=null;this.H=1;this.ma=0;this.error=null;this.Pc=new _.Je(this);this.Ma(this.Pc);this.Pc.listen(this.context.MZ,"Qb",_.Ab(this.dispatchEvent,new _.gi("Qb",this)));UJc(this)};_.N(VJc,PM);
var UJc=function(a){var b=a.context.Kj;$L(b,["nVUlO"],function(){a.ta=!0;a.setActive(!0)});if(!_.gK(a.context.Lc)){var c=_.yj(a.context.Lc.$f(),18,1);$L(b,["NSockf"],function(){1===c?WJc(a):a.setActive(!0)});2===c&&$L(b,["mrK8ic"],function(){a.W||WJc(a)})}},WJc=function(a){var b=new _.rf;_.tf(b,!0);_.sf(b,301);var c=new _.vJ;_.Grc(c,b);_.y(c,1,1);a.refresh(c).Fg(function(){return null})};
VJc.prototype.refresh=function(a,b){var c=this;_.n.clearTimeout(this.ma);this.ma=0;var d=_.Sh();this.O=d.promise;_.Th(this.O,function(){c.O=null;XJc(c)});var e=this.H;this.H=a.getType()||e;var f=!this.W;this.W=!0;var h=new _.vJ;_.y(h,1,this.H);_.Grc(h,a.ve());this.context.Nm().then(function(k){return k.Re(h,b)}).then(function(k){c.error=null;var l=c.context.MZ;l.dQ(k,l.mD()?6:1);d.resolve()},function(k){c.H=e;k=_.yB(k);var l=k.Rg;_.y(l,5,2);f?(_.EI(l,1),k.message="Initial app settings refresh failed.",
_.y(k.Rg,21,"Initial app settings refresh failed."),c.context.mJ(l),c.setActive(!0)):(_.EI(l,2),k.message="Error occurred while loading the latest set of apps.",_.y(k.Rg,21,"Error occurred while loading the latest set of apps."));c.error=k;d.reject(k)});return this.O};VJc.prototype.va=function(){return!1};
VJc.prototype.Ba=function(a){var b=this,c=a.getCommand(),d=c.request,e=c.eja,f=c.AD?{AD:c.AD}:void 0;if(!YJc(d))return this.context.Nm().then(function(l){return l.Re(d,f)}).then(function(l){a.DG().callback(new _.xK(l,1,!1))},function(l){a.DG().Hd(_.UI(l))}),_.Oh();c=_.Oh();var h=!1;this.O?ZJc(this,d.getType())?e=this.O:c=e=new _.Nh(function(l,p){b.O.then(function(){b.refresh(d,f).then(function(){return l()},p)})}):!e&&this.ta&&ZJc(this,d.getType())&&!this.error?(h=!0,e=_.Oh()):e=this.refresh(d,f);
var k=a.DG();e.then(function(){var l=b.context.MZ;k.callback(new _.xK(l.tr(),l.Ye(),h))},function(l){k.Hd(l)});return c.then()};
var YJc=function(a){var b=a.getType();return 1===b||2===b||4===b?(b=_.Qd(a,4),a=_.Qd(a,3),!(b&&b.length)&&!(a&&a.length)):!1},ZJc=function(a,b){return a.H===b||4===a.H||2===a.H&&1===b},XJc=function(a){var b=a.context.Lc.$f(),c=new _.rf;_.sf(c,306);var d=new _.vJ;_.y(d,1,1);_.Grc(d,c);a.ma=_.n.setTimeout(function(){return void a.refresh(d)},Math.ceil(_.Zj(b,7,9E5)*Math.random())+_.Zj(b,4,72E5))},$Jc=function(a,b,c){this.request=a;this.eja=!!b;this.AD=c||null};
var bKc=function(a){PM.call(this);var b=this;this.context=a;this.error=null;this.Pc=new _.Je(this);this.Ma(this.Pc);this.Pc.listen(this.context.eE,"WPi0i",function(){return b.dispatchEvent(new _.gi("WPi0i"))});this.H=_.Sh();this.O=_.Qd(this.context.Lc.$f(),30);aKc(this)};_.N(bKc,PM);
var aKc=function(a){var b=a.context.Kj;$L(b,["rkYxSd"],function(){return a.initialize()});$L(b,["px2C2c"],function(){a.context.Rf().info("drive.ds.sync.userprefs.UserPrefsManager","All user prefs loaded.");a.H.resolve();a.H=null});var c=["NSockf"],d=_.yj(a.context.Lc.$f(),19,1);1!==d&&(c.push("OZvrNc"),2===d&&$L(b,["mrK8ic"],function(){aM(b,"OZvrNc")}));!_.S(a.context.Lc,11,!1)&&_.S(a.context.Lc,24,!1)&&(c.push("DEJoH"),_.n.setTimeout(function(){0<_.Rj(XIc(a.context.eE),_.lp,1).length||(b.H("NSockf")?
aM(b,"DEJoH"):$L(b,["NSockf"],function(){aM(b,"DEJoH")}))},12E3));$L(b,c,function(){if(!b.H("px2C2c")){var e=new _.rf;_.tf(e,!0);_.sf(e,301);var f=new _.DD;_.J(f,1,e);Coc(f,cKc(a));a.query(f).Fg(function(){a.initialize()})}})};bKc.prototype.V=function(){var a="User prefs detected: "+_.Rj(XIc(this.context.eE),_.lp,1).length;this.context.Rf().info("drive.ds.sync.userprefs.UserPrefsManager",a);dKc(this)};
bKc.prototype.query=function(a,b){var c=this,d=b?{AD:b}:void 0;return this.context.Nm().then(function(e){return e.Re(a,d)}).then(function(e){c.error=null;var f=c.context.eE;f.dQ(_.Rj(e,_.lp,3),f.mD()?6:1,_.Qd(a,3))}).then(null,function(e){e=_.yB(e);_.y(e.Rg,5,4);0<c.commands.$b()||c.context.mJ(e.Rg);c.error=e;throw e;})};
bKc.prototype.ka=function(a){var b=this,c=a.getCommand(),d=a.DG(),e=new Set([].concat(_.ld(this.context.eE.IF.keys()))),f=_.Qd(c.request,3);f.find(function(h){return!e.has(h)})&&(c.eja=!0);this.error?d.Hd(this.error):c.eja?(Coc(c.request,cKc(this,f)),_.Th(this.H?this.H.promise:this.query(c.request,c.AD||void 0),function(){b.getData(d,f,!1)})):this.getData(d,f,!0)};var cKc=function(a,b){b=void 0===b?[]:b;a=new Set([].concat(_.ld(a.O),_.ld([].concat(_.ld(a.context.eE.IF.keys()))),_.ld(b)));return[].concat(_.ld(a.values()))};
bKc.prototype.getData=function(a,b,c){b=this.context.eE.NG(b);a.callback(new _.zK(b.H,b.Le,c))};var dKc=function(a){var b=a.context.Lc.$f();_.n.setTimeout(function(){var c=new _.DD,d=new _.rf;_.sf(d,306);_.J(c,1,d);Coc(c,cKc(a));_.Th(a.query(c).Fg(_.Kf),function(){dKc(a)})},Math.ceil(_.Zj(b,7,9E5)*Math.random())+_.Zj(b,5,72E5))},eKc=function(a,b,c){this.request=a;this.eja=!!b;this.AD=c||null};
var fKc=function(a,b,c,d){OM.call(this,"IS",b);this.context=a;this.Pc=new _.Je(this);this.Ba=_.Sh();this.O=null;this.ha=!1;this.W=null;this.Fa=new YCc(a);Boc(this.Fa);this.Ma(this.Pc);this.ka=new RJc(a);this.Ma(this.ka);this.Pc.listen(this.ka,"WPi0i",function(){return c(new ACc(1))});this.ma=new VJc(a);this.Ma(this.ma);this.Pc.listen(this.ma,"Qb",function(){return c(new ACc(2))});this.ta=new bKc(a);this.Ma(this.ta);this.Pc.listen(this.ta,"WPi0i",function(){return c(new ACc(4))});this.Ha=d;this.H=
this.context.Nm()};_.N(fKc,OM);_.g=fKc.prototype;
_.g.RU=function(){var a={};return a["3.43"]=this.v_.bind(this),a["3.42"]=this.D7.bind(this),a["3.1"]=this.sN.bind(this),a["3.2"]=this.NG.bind(this),a["3.3"]=this.qd.bind(this),a["3.35"]=this.VN.bind(this),a["3.4"]=this.rz.bind(this),a["3.5"]=this.tr.bind(this),a["3.6"]=this.YR.bind(this),a["3.8"]=this.Kl.bind(this),a["3.36"]=this.Qy.bind(this),a["3.9"]=this.kF.bind(this),a["3.10"]=this.sr.bind(this),a["3.11"]=this.W$.bind(this),a["3.12"]=this.i8.bind(this),a["3.13"]=this.bT.bind(this),a["3.14"]=this.U$.bind(this),
a["3.15"]=this.k8.bind(this),a["3.16"]=this.fu.bind(this),a["3.17"]=this.xCb.bind(this),a["3.18"]=this.BCb.bind(this),a["3.19"]=this.hQ.bind(this),a["3.20"]=this.zCb.bind(this),a["3.25"]=this.yCb.bind(this),a["3.22"]=this.j8.bind(this),a["3.28"]=this.sync.bind(this),a["3.30"]=this.xna.bind(this),a["3.29"]=this.Jwb.bind(this),a["3.40"]=this.DCb.bind(this),a["3.33"]=this.ECb.bind(this),a["3.39"]=this.bP.bind(this),a["3.37"]=this.CCb.bind(this),a["3.38"]=this.D9a.bind(this),a["3.41"]=this.$R.bind(this),
a["3.44"]=this.a0.bind(this),a["3.45"]=this.Po.bind(this),a["3.46"]=this.E7.bind(this),a};_.g.sN=function(a){var b=this,c=bL(a.args[0],!!a.H,_.uI);a=new TJc(c,a.args[1],this.context.H[a.clientId]);aM(this.context.Kj,"iuEtc");return this.ka.enqueue(a).then(function(d){return b.ld([d.response,d.Le,d.N_])},function(d){return b.ld(void 0,d)})};
_.g.NG=function(a){var b=this,c=bL(a.args[0],!!a.H,_.DD);a=new eKc(c,a.args[1],this.context.H[a.clientId]);aM(this.context.Kj,"OZvrNc");return this.ta.enqueue(a).then(function(d){return b.ld([d.response,d.Le,d.N_])},function(d){return b.ld(void 0,d)})};
_.g.qd=function(a){var b=this,c=bL(a.args[0],!!a.H,hoc),d=_.C(c,_.XI,16)||_.C(c,_.YI,1)||_.C(c,_.ZI,2)||_.C(c,_.bJ,3)||_.C(c,_.EK,4)||_.C(c,_.$I,5)||_.C(c,_.fJ,6)||_.C(c,_.hJ,7)||_.C(c,_.iJ,8)||_.C(c,_.lJ,9)||_.C(c,_.BJ,10)||_.C(c,_.CJ,11)||_.C(c,_.DJ,12)||_.C(c,_.JI,13)||_.C(c,_.GJ,14)||_.C(c,_.HJ,15)||_.C(c,_.$K,17),e=QM(this,a);return this.H.then(function(f){return f.Re(d,e)}).then(function(f){return b.ld([f])},function(f){return b.ld(void 0,f)})};
_.g.VN=function(a){var b=this,c=bL(a.args[0],!!a.H,qoc),d=_.C(c,_.cJ,1)||_.C(c,_.jJ,2)||_.C(c,_.IJ,3),e=QM(this,a);return this.H.then(function(f){return f.Re(d,e)}).then(function(f){return b.ld([f])},function(f){return b.ld(void 0,f)})};
_.g.rz=function(a){var b=this,c=bL(a.args[0],!!a.H,koc),d=QM(this,a),e=[],f=[];moc(c).forEach(function(h){h instanceof _.XI?e.push(String(h.Ac())):e.push(String(h.getId()));f.push(b.H.then(function(k){return k.Re(h,d)}))});a=_.fI(f).then(function(h){return h.map(function(k){return k.value||k.reason})});_.Th(a,function(){return void wFc(b.context.uf)});return a.then(function(h){return b.ld([new Xnc(e,h)])})};
_.g.tr=function(a){var b=this,c=bL(a.args[0],!!a.H,_.vJ),d=a.args[1];if(3===c.getType())if(!d&&this.W)a=this.W;else{var e=QM(this,a);a=this.H.then(function(f){return f.Re(c,e)}).then(function(f){return new _.xK(f,1,!1)});this.W||(this.W=a.then(function(f){return new _.xK(f.response,f.Le,!0)}),setTimeout(function(){b.W=null},9E5))}else a=new $Jc(c,d,this.context.H[a.clientId]),aM(this.context.Kj,"Qubz4b"),a=this.ma.enqueue(a);return a.then(function(f){return b.ld([f.response,f.Le,f.N_])},function(f){return b.ld(void 0,
f)})};_.g.YR=function(a){var b=this,c=bL(a.args[0],!!a.H,noc),d=_.C(c,_.ED,1)||_.C(c,_.FD,2),e=QM(this,a);return this.H.then(function(f){return f.Re(d,e)}).then(function(f){return b.ld([f])},function(f){return b.ld(void 0,f)})};_.g.Kl=function(a){a=a.args[0];if(this.context.cz)a?_.ykc(this.context.cz,!0):this.context.lk().Te()&&this.context.cz.qM(!0).then(null,function(){});else try{this.context.Gj().Kl(a)}catch(b){return this.ld(void 0,b)}return this.ld([])};
_.g.Qy=function(a){var b=this,c=a.args[0];return this.context.Qy(c).then(function(d){return d?(b.context.Gj().Qy(c),b.Ha(c),b.context.Ls.eL().Fg(function(){return!c})):_.Oh(!c)}).then(function(d){return b.ld([d])},function(d){return b.ld(void 0,d)})};_.g.sync=function(){var a=this;return _.Rh([this.context.R$.promise,this.context.jfa.promise]).then(function(){return a.context.Ls.eL()}).then(function(){return a.ld([])},function(b){return a.ld(void 0,b)})};
_.g.kF=function(){try{var a=this.context.a6;a&&a.$na();this.context.Sga.kF();return this.ld([])}catch(b){return this.ld(void 0,b)}};_.g.$R=function(){this.context.$R();return this.ld([])};_.g.sr=function(a){var b=this,c=bL(a.args[0],!!a.H,_.oJ),d=QM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};
_.g.W$=function(a){var b=this,c=bL(a.args[0],!!a.H,_.pJ),d=QM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};_.g.i8=function(a){var b=this,c=bL(a.args[0],!!a.H,_.dJ),d=QM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};
_.g.bT=function(a){var b=this,c=bL(a.args[0],!!a.H,_.EJ),d=QM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};_.g.U$=function(a){var b=this,c=bL(a.args[0],!!a.H,_.qJ),d=QM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return _.yI(b.context.Lc)?Byc(b.context.uf.qq,[_.C(e,_.Gk,2)],c.Ac()).then(function(){return e}):e}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};
_.g.k8=function(a){var b=this,c=bL(a.args[0],!!a.H,_.gJ),d=QM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};_.g.fu=function(a){var b=this,c=bL(a.args[0],!!a.H,_.xJ),d=QM(this,a);return this.H.then(function(e){return e.Re(c,d).then(function(f){return _.yI(b.context.Lc)?zyc(b.context.uf.qq,f):f})}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};
_.g.xCb=function(a){var b=this,c=bL(a.args[0],!!a.H,_.jCc),d=new _.Lgc(c,a.args[1],a.args[2]||void 0),e=QM(this,a);return this.H.then(function(f){return f.Re(d,e)}).then(function(f){return b.ld([f])},function(f){return b.ld(void 0,f)})};
_.g.BCb=function(a){var b=this,c=bL(a.args[0],!!a.H,_.wJ),d=QM(this,a);return this.H.then(function(e){return e.Re(c,d).then(function(f){return _.yI(b.context.Lc)?Byc(b.context.uf.qq,_.Rj(f.ld(),_.Gk,2),c.od().getId()).then(function(){return f}):f})}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};_.g.hQ=function(){var a=this;return(_.S(this.context.Lc.$f(),52,!1)?_.Oh(Rwc(new Qwc,0)):this.context.wI.hQ()).then(function(b){return a.ld([b])},function(b){return a.ld(void 0,b)})};
_.g.zCb=function(a){var b=this,c=bL(a.args[0],!!a.H,_.Kgc),d=QM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};_.g.yCb=function(a){var b=this,c=bL(a.args[0],!!a.H,_.uJ),d=QM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};
_.g.j8=function(a){var b=this,c=bL(a.args[0],!!a.H,_.eJ),d=QM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};_.g.xna=function(a){var b=this,c=bL(a.args[0],!!a.H,_.cI),d=QM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e,null])},function(e){return b.ld([null,_.GI(e)])})};_.g.Jwb=function(){return this.ld([!0])};
_.g.DCb=function(a){var b=this,c=bL(a.args[0],!!a.H,_.hG),d=QM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};_.g.ECb=function(a){var b=this,c=bL(a.args[0],!!a.H,_.Zz),d=QM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};_.g.v_=function(a){a=bL(a.args[0],!!a.H,_.ef);MEc(this.context.uf,[a]);return this.ld([])};
_.g.D7=function(a){var b=this,c=bL(a.args[0],!!a.H,_.aJ),d=QM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};_.g.bP=function(a){var b=this,c=bL(a.args[0],!!a.H,_.wM),d=QM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return Myc(c,e)}).then(function(e){return b.ld(e)},function(e){return b.ld(void 0,e)})};
_.g.CCb=function(a){var b=this,c=new _.Sgc(bL(a.args[0],!!a.H,_.YVb),a.args[1]),d=QM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e.response,e.pageToken])},function(e){return b.ld(void 0,e)})};_.g.D9a=function(a){var b=this,c=bL(a.args[0],!!a.H,_.gG),d=QM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};
_.g.a0=function(a){var b=this,c=bL(a.args[0],!!a.H,_.rK),d=QM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};_.g.Po=function(a){var b=a.args.map(function(c){return bL(c,!!a.H,_.CI)});this.context.uf.Po(b);wFc(this.context.uf);return this.ld([])};_.g.E7=function(){var a=this,b=this.context.cz;return(b?b.qM():_.Oh(_.hkc(0))).then(function(c){return a.ld([c])},function(c){return a.ld(void 0,c)})};
_.g.initialize=function(){var a=this;if(!this.O){this.O=_.Sh();this.context.Rf().info("drive.ds.sync.cacheproxy.WorkerSyncedItemService","Initializing with client build: "+this.context.Lc.Ji());this.Pc.listen(this.context,_.yc,function(e){e=e.error;var f=e.Rg;f&&3===f.getType()&&!a.ha?(a.ha=!0,a.O.reject(e)):Hrc(a.context.Rf(),"drive.ds.sync.cacheproxy.WorkerSyncedItemService","An error occurred in the Shared Worker")});var b=this.context.Kj,c=["hVFf7"];_.gK(this.context.Lc)&&c.push("BNEDtc");$L(b,
c,function(){a.ha||(a.ha=!0,a.O.resolve())});$L(b,["GZTDpc"],function(){return a.Ba.resolve()});var d=function(){FM(a.context).then(function(e){return void e.start()})};$L(b,["T8oKm","ZA9qG"],function(){return void d()});$L(b,["T8oKm","mrK8ic"],function(){return void d()});b.start();aM(b,"NSockf")}return this.O.promise};_.g.oba=function(){return this.Ba.promise};_.g.Au=function(){var a=this.context.a6;a&&a.dispose();return this.context.Au()};
var QM=function(a,b){return(a=a.context.H[b.clientId])?{AD:a}:{}};
var gKc=function(a,b,c){OM.call(this,"DU",b);this.context=a;this.O=c;this.H=new YCc(a)};_.N(gKc,OM);_.g=gKc.prototype;
_.g.RU=function(){var a=this,b={};return b["5.1"]=function(){return a.Iha()},b["5.2"]=function(c){return a.OM(c)},b["5.4"]=function(c){return a.Gz(c)},b["5.5"]=function(){return a.cR()},b["5.10"]=function(){return a.oN()},b["5.6"]=function(){return a.fda()},b["5.7"]=function(){return a.OS()},b["5.9"]=function(c){return a.Apa(c)},b["5.8"]=function(c){return a.V4(c)},b["5.11"]=function(){return a.$oa()},b["5.12"]=function(c){return a.getState(c)},b["5.13"]=function(c){return a.Kl(c)},b};
_.g.Iha=function(){var a=this;this.context.Ls.hS();var b=this.context.Lc;return MAc(_.eK(_.tI(b)),_.fK(b),this.context.Rf()).Fg(function(){}).then(function(){return a.ld([])})};_.g.OM=function(a){a=this.context.uf.lm.H(a.args[0]);return this.ld([a])};_.g.Gz=function(a){var b=this;return this.context.PA.Gz(a.args[0]).then(function(c){return b.ld([c])})};_.g.cR=function(){return this.ld(this.context.PA.cR())};
_.g.V4=function(a){var b=this,c=bL(a.args[0],!!a.H,_.lfc),d=a.args[1],e=a.args[2];if(_.C(c,_.zI,3)||_.C(c,_.KJ,4)||_.C(c,_.EK,5)||_.C(c,_.HJ,6)||_.C(c,_.iJ,7)||_.C(c,_.bJ,8)||_.C(c,_.fJ,9)||_.C(c,_.JI,10)){var f=Ywc(c);return this.context.Nm().then(function(h){return h.Re(f,{I5a:d,J5a:e})}).then(function(h){a:{var k=[],l="";if(h instanceof _.FK){k=h.ld().xd();var p=_.B(h,2);l=h.Vn()}else if(h instanceof _.MJ)h.getItem()&&k.push(h.getItem()),p=h.WM();else{h=b.ld(void 0,Error("fg"));break a}h=b.ld([p,
l].concat(_.ld(k)))}return h},function(h){return b.ld(void 0,h)})}return _.Oh(this.ld(void 0,Error("eg")))};_.g.Apa=function(){var a=this.context.Lc,b=a.$f();a="email:"+_.tI(a).getEmail().replace(/@.*$/,"");_.y(b,13,a);return this.ld([])};_.g.fda=function(){this.context.RF.H=new Bzc(_.Pg().substring(0,8));return this.ld([])};_.g.OS=function(){var a=this.context.RF.oN();if(a){var b=Dzc(this.context.RF);a=[a.yda,a.startTime].concat(_.ld(b))}else a=[];b=this.context.RF;b.H=null;b.CY=[];return this.ld(a)};
_.g.oN=function(){var a=this.context.RF.oN();return this.ld(a?[a.yda,a.startTime]:[])};_.g.getState=function(){var a=this;return this.H.getState(this.va).then(function(b){return a.ld([b])})};_.g.$oa=function(){var a=[this.O.Au(),_.ui(3E4)];_.Th(_.Tja(a),function(){_.n.setTimeout(function(){self.close()})});return this.ld([])};_.g.Kl=function(a){this.H.Kl(a.args[0]);return this.ld([])};
var hKc=function(a,b,c,d,e,f,h){_.QK.call(this,a,b,c,d,f,h);this.H=e;this.Ad=null};_.N(hKc,_.QK);hKc.prototype.xM=function(a,b){var c=this;return _.$h(this.H.then(function(d){return d.W1a(mnc(c.O,c.va,a,b,c.fj,c.ha))},null))};hKc.prototype.ma=function(a,b){var c=this.od(a);if(c){var d=0;if(c.file){var e=c.request&&c.request.Gz();e&&(d=_.B(e,1));0===d&&(d=c.file.size)}this.dispatchEvent(new _.Kkc(a,b,d))}};
var iKc=function(a,b,c,d,e,f,h,k){OM.call(this,"FU",k);this.ka=a;this.ha=b;this.ta=c;this.Ba=d;this.W=e;this.ma=f;this.Ad=h;this.H={};this.O={};this.Pc=new _.Je(this);this.Ma(this.Pc)};_.N(iKc,OM);_.g=iKc.prototype;
_.g.RU=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.hG(c)},b["7.4"]=function(c){return a.retry(c)},b["7.5"]=function(c){return a.xM(c)},b["7.6"]=function(c){c=c.clientId+":"+c.requestId;a.H[c]&&(a.H[c].dispose(),delete a.H[c]);return a.ld([])},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.ld([])},b};
_.g.upload=function(a){var b=this,c=a.clientId+":"+a.requestId,d=bL(a.args[0],!!a.H,_.bJ),e=a.args[1];if(!this.H[c]){var f=new hKc(this.ka,this.ha,this.ta,this.Ba,this.W,this.ma,this.Ad);this.Pc.listen(f,"Lb",_.Ab(this.E9a,a.clientId,a.requestId));this.Ma(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.aj(),r=_.Sh();b.O[q]=r;b.update(l,p,jKc(3,q,[h,k]));return r.promise}).then(function(h){return b.ld([h])},function(h){return b.ld(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.ld([])};_.g.hG=function(a){a=a.clientId+":"+a.requestId;this.H[a]&&this.H[a].hG();return this.ld([])};
_.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;_.Ja(f,function(p){k[p]=h[l++]});_.La(k,function(p,q){p.hg(function(r){b.update(a.clientId,c,jKc(0,e,[q,r]))},function(r){b.update(a.clientId,c,jKc(1,e,[q,r.Rg]))})});return this.ld([])}return this.ld(void 0,_.GI("Could not retry upload."))};
_.g.xM=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=mnc(b.O,b.va,c,a,b.fj,b.ha),this.ld([toc(c)])):this.ld(void 0,_.GI("FileUploader not found."))};_.g.E9a=function(a,b,c){this.update(a,b,jKc(2,c.requestId,[c.progress,c.totalBytes]))};var jKc=function(a,b,c){return[Number(a),b].concat(_.ld(c))};
var kKc=function(a,b){OM.call(this,"IE",b);this.O=a;this.H=new Map};_.N(kKc,OM);kKc.prototype.RU=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};
kKc.prototype.export=function(a){var b=this,c=a.requestId,d=a.clientId+":"+c,e=bL(a.args[0],!!a.H,_.Jgc);e=new AM(this.O,e);var f=_.ye(e,"Pb",function(h){b.update(a.clientId,c,[h.vOa,h.Fta])});_.Ae(e,function(){_.ni(f);b.H.delete(d)});this.H.set(d,e);return e.start().then(function(h){return b.ld([h])},function(h){return b.ld(void 0,h)})};kKc.prototype.cancel=function(a){(a=this.H.get(a.clientId+":"+a.requestId))&&a.cancel();return this.ld([])};
var lKc=function(a,b){OM.call(this,"ODS",b);this.context=a;this.H=!1;this.W=_.Sh();this.O=new cDc(a,a.Ng)};_.N(lKc,OM);lKc.prototype.RU=function(){var a=this,b={};return b["6.1"]=function(c){return mKc(a,c)},b["6.2"]=function(c){return nKc(a,c)},b["6.3"]=function(){a.H&&(fDc(a.O),a.H=!1,a.W=_.Sh());return a.ld([])},b};
var mKc=function(a,b){if(!a.H){a.H=!0;var c=b.args.map(function(d){return bL(d,!!b.H,_.cl)});a.O.nl(c);aM(a.context.Kj,"GZTDpc");a.W.resolve()}return a.ld([])},nKc=function(a,b){return a.W.promise.then(function(){var c=b.args.map(function(d){return bL(d,!!b.H,_.CI)});eDc(a.O,c);return a.ld([])})};
var oKc=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("Hg`"+b);a.services.set(b,new _.Uh)})};oKc.prototype.activate=function(a){var b=this.services.get(a.V);if(b&&!b.ag())b.callback(a);else throw Error("Ig`"+a.V);};var pKc=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)})};oKc.prototype.Ao=function(){return[].concat(_.ld(this.services.values())).every(function(a){return a.ag()})};
var qKc=function(){},rKc={0:2E3,1:3E3,2:5E3},sKc=function(a,b){this.request=a;this.ha=b;this.O=_.Sh();this.continuationToken="";this.V=0;this.BE=this.W=!1;this.H=qKc};sKc.prototype.Zg=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=qKc;b.V=0;return c},function(c){b.H=qKc;b.V=0;return Promise.reject(c)})};
sKc.prototype.sendRequest=function(){var a=this;if(this.BE)this.O.resolve((new vM).Bc(8));else{var b=new _.Wgc(this.request,this.continuationToken);this.ha.then(function(c){return c.Re(b)}).then(function(c){tKc(a,c)},function(c){a.handleError(c)})}};var tKc=function(a,b){var c;a.continuationToken=null!==(c=b.Vn())&&void 0!==c?c:"";a.H(b);a.continuationToken?setTimeout(function(){a.sendRequest()},uKc(a.V++,a.ka)):a.O.resolve(b)};sKc.prototype.handleError=function(a){a=_.yB(a);this.O.reject(a)};
sKc.prototype.cancel=function(){this.BE=!0};var uKc=function(a,b){return b?b:(a=rKc[a])?a:1E4};
var vKc=function(a,b){OM.call(this,"TM",b);this.O=a;this.H=new Map};_.N(vKc,OM);vKc.prototype.RU=function(){var a=this,b={};return b["10.1"]=function(c){return wKc(a,c)},b["10.2"]=function(c){return a.cancel(c)},b};
var wKc=function(a,b){var c=b.clientId+":"+b.requestId,d=bL(b.args[0],!!b.H,_.PBc);d=new sKc(d,a.O);a.H.set(c,d);return _.Th(d.Zg(function(e){var f;a.update(b.clientId,null!==(f=b.requestId)&&void 0!==f?f:"",[e])}).then(function(e){return a.ld([e])},function(e){return a.ld(void 0,e)}),function(){a.H.delete(c)})};vKc.prototype.cancel=function(a){this.H.get(a.clientId+":"+a.requestId).cancel();return this.ld([])};
var RM=function(a,b,c){_.O.call(this);this.H=a;this.iw=b;this.kb=c;this.fields=null;this.Ha=!1;this.Ka=_.Sh();this.W=!1;this.Ba=_.Sh();this.O=_.Sh();this.ta=null;this.va=this.Ta=!1;this.Ab=_.Sh();this.ha=new Set;this.Fa=new Set;this.V=new Map;this.ma=new Set;this.WB=Date.now();this.services=new oKc;this.Lb=new _.Je(this);this.Ma(this.Lb)};_.N(RM,_.O);RM.prototype.jY=function(a){this.O.promise.then(function(b){b.a6||a.YLa(b)})};
var AKc=function(a,b){var c=GJc(a.H,b),d=a.Rb.bind(a,c);SL(b,"8.1",d);b.registerService("8.1",d);SL(b,"8.4",a.Qa.bind(a,c));b.registerService("8.5",function(f){return xKc(a,c,f)});SL(b,"8.2",a.Gb.bind(a,c));SL(b,"8.3",a.Nb.bind(a,c));pKc(a.services,b);b.start();yKc(a,c,b);a.ka(c,b);var e=[];a.ta||(a.ta=_.Rh([a.Ka.promise,a.Ba.promise]).then((0,_.u)(a.initialize,a)));e.push(a.ta);_.Rh(e).then(function(){return void zKc(a,c,b)},function(f){a.Ta=!0;TL(b,"2.2",{err:_.GI(f).Kc()},d)})},BKc=function(a){return Math.floor((Date.now()-
a.WB)/1E3)},CKc=function(a,b,c){var d=function(e){TL(b,"2.8",{au:"nb"===e.type})};a.Lb.listen(c.wI,["nb","ob"],d);_.Ae(b,a.Lb.Vc.bind(a.Lb,c.wI,["nb","ob"],d))},DKc=function(a,b,c){var d=c.lk(),e=[].concat(_.ld(Object.values(_.zB))),f=function(h){TL(b,"2.19",{cs:h.connectionState})};a.Lb.listen(d,e,f);_.Ae(b,function(){a.Lb.Vc(d,e,f)})};
RM.prototype.Rb=function(a){var b=HJc(this.H,a);if(b&&((this.services.services.get("LRM")||null).addCallback(function(d){KJc(d,a)}),b.dispose(),this.log(_.xt("Client %d disconnected (num clients remaining: %d)",a,_.Pa(this.H.channels))),0===_.Pa(this.H.channels))){var c=function(){_.n.setTimeout(function(){self.close()})};this.Ta?c():(this.services.services.get("IS")||null).addCallback(function(d){_.Th(d.Au(),c)})}};
RM.prototype.Qa=function(a,b){if(this.ha.has(a))return _.Oh();var c=new _.Vb(JSON.parse(b.dsc));_.y(c,24,!1);this.Ha||(this.Ha=!0,this.Ka.resolve(c));this.ha.add(a);return this.O.promise.then(function(d){BJc(d,a,_.E(c.$f(),37,""));AJc(d,_.Qd(c,28));d.uf.fla(_.Rj(c,_.Bl,91));return d.AX.promise.then(function(){MEc(d.uf,_.Rj(c,_.ef,44))})},function(){})};
RM.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 TDc(e,e.Ng);e.Zg(d);e.dispose();(e=c.H.channels[a]||null)&&TL(e,"2.16")})}};RM.prototype.Nb=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){EKc(new wEc(h),e);(h=c.H.channels[a]||null)&&TL(h,"2.17",{t:f})})}};
var EKc=function(a,b){b.filter(function(c){return c}).forEach(function(c){return a.Zg(c)});a.dispose()};RM.prototype.$a=function(){for(var a=[],b={},c=_.m(_.Qa(this.H.channels)),d=c.next();!d.done;b={bea:b.bea,Eea:b.Eea},d=c.next())b.bea=d.value,b.Eea=_.Sh(),TL(b.bea,"2.12",void 0,function(e){return function(){e.bea.dispose();e.Eea.resolve()}}(b)),a.push(b.Eea.promise);return _.Rh(a).then()};
RM.prototype.initialize=function(a){var b=this;a=a[0];_.oic(a,this.fields);var c=_.C(a,_.PI,58);c=c&&_.S(c,1,!1)?this.kb:void 0;try{var d=new dL(null,a,this.iw,c,void 0,void 0),e=d.Hk().H(106E3);hJc(d,this.$a.bind(this));this.Lb.listen(d.Gj(),"Fb",function(k){k={os:k.Te()};for(var l=_.m(_.Qa(b.H.channels)),p=l.next();!p.done;p=l.next())TL(p.value,"2.6",k)});this.Lb.listen(d,_.yc,this.rb);this.Lb.listen(d,"w8KrJc",this.Hc);Vwc(d.wI,this.ka.bind(this));var f=d.cz;f&&Wrc(f,function(){return b.ka()});
this.O.resolve(d);var h=FKc(this,d,new fKc(d,this.H,(0,_.u)(this.oc,this),(0,_.u)(this.zc,this)));e&&h.then(function(){return e&&e.uj()});return h}catch(k){return _.Ph(k)}};
var FKc=function(a,b,c){a.services.activate(c);a.services.activate(new IJc(b,a.H));a.services.activate(new gKc(b,a.H,c));a.services.activate(new lKc(b,a.H));a.services.activate(new iKc(b.Lc,b.PA,b.bR().hfa,b.Nm(),b.cQ,b.Rf(),b.Hk(),a.H));a.services.activate(new kKc(b.Nm(),a.H));a.services.activate(new vKc(b.Nm(),a.H));return c.initialize()},zKc=function(a,b,c){var d=_.Pa(a.H.channels);a.log(_.xt("Client %d connected (num clients: %d, added: %d, max concurrent: %d)",b,d,a.H.O,a.H.H));TL(c,"2.2",{id:b,
clients:d,uptimeSec:BKc(a),dsp:!a.V.has(b),ivd:!a.ma.has(b)});a.O.promise.then(function(e){e.LZ.addCallback(function(f){c.isDisposed()||TL(c,"2.5",{id:f})});1<d&&FM(e).addCallback(function(f){return f.Tva()});(a.services.services.get("IS")||null).addCallback(function(f){f.oba().then(function(){c.isDisposed()||TL(c,"2.14")})});CKc(a,c,e);DKc(a,c,e)})};RM.prototype.oc=function(a){a={dt:a.dataType};for(var b=_.m(_.Qa(this.H.channels)),c=b.next();!c.done;c=b.next())TL(c.value,"2.15",a)};
RM.prototype.zc=function(a){var b={oois:a};_.Qa(this.H.channels).forEach(function(c){TL(c,"2.18",b)})};RM.prototype.rb=function(a){a={p:a.error.Rg.Kc()};for(var b=_.m(_.Qa(this.H.channels)),c=b.next();!c.done;c=b.next())TL(c.value,"2.10",a)};RM.prototype.Hc=function(){for(var a=_.m(_.Qa(this.H.channels)),b=a.next();!b.done;b=a.next())TL(b.value,"2.7")};var yKc=function(a,b,c){a.ha.has(b)?_.Oh():new _.Nh(function(d){TL(c,"2.1",void 0,function(e){d(a.Qa(b,e))})})};
RM.prototype.ka=function(a,b){var c=this;if("number"===typeof a){if(!b)return _.Ph(Error("Jg"));if(this.W&&this.Fa.has(a))return _.Oh()}b=b||_.Qa(this.H.channels)[0];if(!b)return _.Ph(Error("Kg"));var d=_.Sh();b.send("1.1",void 0,function(e){xKc(c,a,e);d.resolve()});return d.promise};var xKc=function(a,b,c){_.La(c.ac,function(d,e){_.n[e]=d});"number"===typeof b&&a.Fa.add(b);a.W||(c.bl&&!a.va&&(a.va=!0,a.Ab.resolve(c.bl)),a.fields||(a.fields=c.ufds),a.W=!0,a.Ba.resolve())};
RM.prototype.log=function(a){this.O.promise.then(function(b){return b.Rf().info("drive.ds.sync.cacheproxy.Worker",a)})};
var GKc=function(a,b){NM.call(this,"DU","drive.ds.sync.DebugUtilProxy",a);this.context=b;this.H=null};_.N(GKc,NM);_.g=GKc.prototype;_.g.La=function(){return _.C(this.context.Lc,_.PI,58)};_.g.getContext=function(){return this.context};_.g.Gz=function(){return _.$h(this.send("5.4",[this.H],function(a,b){return bL(a[0],b,_.bjc)}))};_.g.Rf=function(){return this.context.Rf()};_.g.OM=function(a){return _.$h(this.send("5.2",[a],function(b,c){return b[0]?bL(b[0],c,_.cl):null}))};
_.g.cR=function(){return _.$h(this.send("5.5",[],function(a,b){return a.map(function(c){return bL(c,b,_.lfc)})}))};_.g.V4=function(a,b,c){return _.$h(this.send("5.8",[a,b,c],function(d,e){var f=d[0],h=d[1];return{items:d.slice(2).map(function(k){return bL(k,e,_.cl)}),hia:f,pageToken:h}}))};_.g.Apa=function(){this.send("5.9",[])};_.g.Iha=function(){this.send("5.1",[])};_.g.c9=function(){return _.Pfc[_.yj(this.context.Lc.$f(),8,0)]};_.g.fda=function(){this.send("5.6",[])};
_.g.OS=function(){return _.$h(this.send("5.7",[],function(a,b){if(0===a.length)return null;var c=a[0],d=new Date(a[1]);a=a.slice(2).map(function(e){return bL(e,b,Zwc)});return{traceId:new Bzc(c,d),spanRecs:a}}))};_.g.oN=function(){return _.$h(this.send("5.10",[],function(a){return 0===a.length?null:new Bzc(a[0],new Date(a[1]))}))};_.g.getState=function(){return _.$h(this.send("5.12",[],function(a){return a[0]}))};_.g.$oa=function(){this.send("5.11",[])};_.g.Kl=function(a){this.send("5.13",[a])};
var HKc=function(a,b){NM.call(this,"IE","drive.ds.sync.itemexport.ItemExportSessionProxy",a);this.request=b;this.promise=null;this.id=String(_.Ca(this))};_.N(HKc,NM);HKc.prototype.start=function(){var a=this;this.promise||(this.promise=this.send("9.1",[this.request],function(b,c){return bL(b[0],c,pCc)},this.id).then(),this.promise.then(function(){return a.dispose()},function(){return a.dispose()}));return this.promise};HKc.prototype.cancel=function(){this.send("9.2",[],void 0,this.id)};
HKc.prototype.x$=function(a,b,c){this.dispatchEvent(new BCc(c[0],c[1]))};
var IKc=function(a){NM.call(this,"ODS","drive.ds.sync.offline.DataServiceProxy",a);this.H=null};_.N(IKc,NM);IKc.prototype.mY=function(a){var b=this;(this.H=a)?(this.log("Querying all offline items."),this.H.vV().hg(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.x_(function(c){b.log("Forwarding offline items changes, count:"+c.length);b.send("6.2",c)})):this.send("6.3",[])};
var JKc=function(a,b){iM.call(this,a,b)};_.N(JKc,iM);JKc.prototype.Xha=function(a,b,c){return new _.Sgc(a,c)};JKc.prototype.ika=function(a){return a.pageToken||""};JKc.prototype.zja=function(a){return a.response.O()};JKc.prototype.Y5=function(){};
var KKc=function(a,b,c){zM.call(this,a.Gj(),a.lk(),b.xi()||void 0);this.request=b;this.O=[];this.changed=!1;this.ka=c;this.V=new JKc(this.request,this.ka)};_.N(KKc,zM);_.g=KKc.prototype;_.g.PG=function(){this.V.Zg().then(this.F9a.bind(this),this.handleError.bind(this))};_.g.getData=function(){return HBc(new uM,this.O).Bc(this.status)};_.g.ur=function(){return new FBc};_.g.Nj=function(){return!this.Te()&&(!this.H||Oyc(this.V))};_.g.F9a=function(a){this.changed=this.H=!0;this.O=a;this.Rt()};
_.g.Rt=function(){if(this.active){var a=this.status;this.BL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.gi(_.Ac,this))}};_.g.$b=function(){return this.O.length};
var LKc=function(a,b,c){zM.call(this,a.Gj(),a.lk(),b.xi()||10);this.request=b;this.O=[];this.data=[];this.changed=!1;this.V=new _.s7a;this.suggestionSessionId=null;this.ka=c};_.N(LKc,zM);_.g=LKc.prototype;_.g.PG=function(){var a=this;this.ka(this.request).then(function(b){a.H=!0;a.changed=!0;a.data=b.$i();a.suggestionSessionId=b.Wf();a.Rt()},this.handleError.bind(this))};_.g.getData=function(){this.O=this.data;return _.hnc(_.gnc((new _.SK).Bc(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.ur=function(){var a=this.V.Hz(this.O,this.data);this.O=this.data;var b=(new LBc).Bc(this.status);return _.Mj(b,2,a)};_.g.ZO=function(){};_.g.Rt=function(){var a=this.status;this.BL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.gi(_.Ac,this))};_.g.$b=function(){return this.data.length};
var MKc=function(){};_.g=MKc.prototype;_.g.zM=function(a,b){b=gCc(1).setPosition(b);_.J(b,2,a);return b};_.g.yM=function(a,b){b=gCc(2).setPosition(b);_.J(b,2,a);return b};_.g.GE=function(a,b,c){b=gCc(3).Ry(b).setPosition(c);_.J(b,2,a);return b};_.g.pQ=function(a,b){b=gCc(4).setPosition(b);_.J(b,2,a);return b};_.g.YM=function(a){return _.C(a,_.Jvc,2)};
var OKc=function(){_.yy.call(this,new MKc,function(a){return NKc(a)})};_.N(OKc,_.yy);var NKc=function(a){switch(_.wj(a,Ivc[0])){case 6:return _.Yx(_.C(a,_.Xx,6)).getTime().toString();case 7:var b=_.C(a,_.ML,7);a=_.C(b,_.Xx,1);b=b.av();return a&&b?(a=_.Yx(a).getTime(),_.Yx(b).getTime()+"--"+a):"";default:return""}},QKc=function(){PKc||(PKc=new OKc);return PKc},PKc;
var RKc=function(a,b,c,d){zM.call(this,b.Gj(),b.lk(),d);this.request=a;this.V=!1;this.ka=[];this.O=[];this.token="";this.changed=!1;this.ma=new _.skc(_.Zj(b.Lc.$f(),6,1E3));this.ta=c};_.N(RKc,zM);_.g=RKc.prototype;_.g.activate=function(){zM.prototype.activate.call(this);this.Rt()};_.g.PG=function(){_.Q(this.request,3)?this.page():this.poll()};_.g.Er=function(a){if(a=a||50,this.O.length>this.limit)this.changed=!0;zM.prototype.Er.call(this,a)};
_.g.getData=function(){var a=(new lCc).Bc(this.status);_.Mj(a,2,this.O.slice(0,this.limit));this.ka=_.wa(this.O);return a};_.g.ur=function(){var a=QKc().Hz(this.ka,this.O),b=new iCc;a=_.Mj(b,2,a).Bc(this.status);this.ka=_.wa(this.O);return a};_.g.Nj=function(){return!this.Te()&&(!this.H||this.O.length>this.limit||!!this.token)};_.g.od=function(){return this.request};
_.g.page=function(a){var b=this;this.active?(this.V=!0,this.Nj()&&this.O.length<this.limit?this.ta(this.request,this.limit-this.O.length,this.token).then(function(c){b.H=!0;var d=_.Rj(c,_.Jvc,1);b.O=b.O.concat(d);b.token=c.my()||"";0<d.length&&(b.changed=!0);b.Rt();b.page(a)},function(c){b.dispatchEvent(new _.oc(c));b.V=!1}):(this.V=!1,a&&a.callback(),SKc(this))):this.V=!1};
_.g.poll=function(){var a=this;this.active&&(this.V=!0,this.ta(this.request,this.limit).then(function(b){QKc();a.H=!0;var c=_.Rj(b,_.Jvc,1);hL(0,a.O.slice(0,c.length),c)?(a.O=c,a.token=b.my()||"",a.changed=!0,a.Rt(),a.page()):(a.V=!1,SKc(a))},function(b){a.dispatchEvent(new _.oc(b));a.V=!1}))};_.g.Rt=function(){if(this.active){var a=this.status;this.BL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.gi(_.Ac,this))}};
_.g.BL=function(){this.Te()&&!this.H?this.status=2:this.status=this.O.length<this.limit&&(!this.H||this.token)?6:1};_.g.ZO=function(){this.active&&this.Nj()&&!this.V&&this.page(new _.Uh)};var SKc=function(a){_.Q(a.request,3)||(_.WH(a.ma),_.n.setTimeout((0,_.u)(a.poll,a),a.ma.Za()))};RKc.prototype.$b=function(){return this.O.length};
var TKc=function(){};_.g=TKc.prototype;_.g.zM=function(a,b){return nCc(mCc(1),a).setPosition(b)};_.g.yM=function(a,b){return nCc(mCc(2).setPosition(b),a)};_.g.GE=function(a,b,c){return nCc(mCc(3).Ry(b).setPosition(c),a)};_.g.pQ=function(a,b){return nCc(mCc(4),a).setPosition(b)};_.g.YM=function(a){return _.C(a,_.pM,2)};
var UKc=function(){_.yy.call(this,new TKc,function(a){return a.getId()})};_.N(UKc,_.yy);var WKc=function(){VKc||(VKc=new UKc);return VKc},VKc;
var XKc=function(a,b,c){zM.call(this,b.Gj(),b.lk());this.request=a;this.ka=[];this.O=[];this.changed=!1;this.V=new _.skc(_.Zj(b.Lc.$f(),54,1E3));this.ma=c};_.N(XKc,zM);_.g=XKc.prototype;_.g.activate=function(){zM.prototype.activate.call(this);this.Rt()};_.g.PG=function(){this.poll()};_.g.getData=function(){var a=new vCc;a=_.Mj(a,2,this.O).Bc(this.status);this.ka=_.wa(this.O);return a};_.g.ur=function(){var a=WKc().Hz(this.ka,this.O),b=new tCc;a=_.Mj(b,2,a).Bc(this.status);this.ka=_.wa(this.O);return a};
_.g.Nj=function(){return!this.Te()&&!this.H};_.g.poll=function(){var a=this,b=new _.Uh;this.ma(this.request).then(function(c){a.H=!0;c=_.Rj(c,_.pM,2);hL(WKc(),a.O,c)&&(a.changed=!0,a.O=c,a.V.reset());a.Rt();b.callback();YKc(a)},function(c){a.dispatchEvent(new _.oc(c));b.Hd(c);YKc(a)});return b};_.g.Rt=function(){if(this.active){var a=this.status;this.BL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.gi(_.Ac,this))}};_.g.ZO=function(){};
var YKc=function(a){a.active&&(_.n.setTimeout((0,_.u)(a.poll,a),a.V.Za()),_.WH(a.V))};XKc.prototype.$b=function(){return this.O.length};
var ZKc=function(){};_.g=ZKc.prototype;_.g.zM=function(a,b){return qBc(pBc(1),a).setPosition(b)};_.g.yM=function(a,b){return qBc(pBc(2).setPosition(b),a)};_.g.GE=function(a,b,c){return qBc(pBc(3).Ry(b).setPosition(c),a)};_.g.pQ=function(a,b){return qBc(pBc(4),a).setPosition(b)};_.g.YM=function(a){return _.C(a,_.Gk,2)};
var $Kc=function(){_.yy.call(this,new ZKc,function(a){return a.getId()})};_.N($Kc,_.yy);_.Lf($Kc);
var SM=function(a,b,c){_.qi.call(this);this.context=a;this.request=b;this.nextPageToken="";this.H=this.O=!1;this.limit=0;this.permissions=[];this.V=c};_.N(SM,_.qi);SM.prototype.ri=function(a){this.limit=a};SM.prototype.Zg=function(){return this.H||this.O&&""===this.nextPageToken?Promise.resolve():aLc(this)};SM.prototype.kka=function(){return this.permissions};
var aLc=function(a){a.O=!0;a.H=!0;var b=Math.min(a.limit-a.permissions.length,100);var c=new _.wJ;c=_.J(c,3,a.request);c=_.y(c,2,a.nextPageToken);b=_.y(c,1,b);return a.V(b).then(a.W.bind(a)).then(null,a.handleError.bind(a))};SM.prototype.W=function(a){this.H=!1;this.nextPageToken=a.Vn()||"";a=_.Rj(a.ld(),_.Gk,2);this.permissions=_.va(this.permissions,a);a.length&&this.dispatchEvent("Aa");if(this.nextPageToken&&this.permissions.length<this.limit)return aLc(this);this.dispatchEvent("Da")};
SM.prototype.handleError=function(a){this.H=!1;a=new nL(_.GI(a),_.Zj(this.context.Lc.$f(),1,1));this.dispatchEvent(a)};
var bLc=function(a,b,c,d){zM.call(this,b.Gj(),b.lk(),d||100);var e=this;this.request=a;this.context=b;this.ka=[];this.permissions=[];this.changed=!1;this.V=null;this.ma=c;this.O=new SM(b,this.request,this.ma);_.Ae(this,function(){e.V&&(_.n.clearTimeout(e.V),e.V=null)})};_.N(bLc,zM);_.g=bLc.prototype;_.g.activate=function(){zM.prototype.activate.call(this);this.Rt()};_.g.PG=function(){this.query()};_.g.Er=function(a){zM.prototype.Er.call(this,a||100)};
_.g.getData=function(){var a=new mL;a=_.Mj(a,2,this.permissions.slice(0,this.limit)).Bc(this.status);this.ka=_.wa(this.permissions);return a};_.g.ur=function(){var a=$Kc.tb().Hz(this.ka,this.permissions),b=new xBc;a=_.Mj(b,2,a).Bc(this.status);this.ka=_.wa(this.permissions);return a};_.g.Nj=function(){var a;(a=!this.Te())&&!(a=!this.H)&&(a=this.O,a=!a.O||""!==a.nextPageToken);return a};_.g.od=function(){return this.request};
_.g.query=function(){var a=this;this.O=new SM(this.context,this.request,this.ma);this.O.ri(this.limit);return this.O.Zg().then(function(){return cLc(a)},function(b){return a.handleError(b)})};_.g.handleError=function(a){zM.prototype.handleError.call(this,a);dLc(this)};var cLc=function(a){a.H=!0;var b=a.O.kka();hL($Kc.tb(),a.permissions,b)&&(a.changed=!0,a.permissions=b);a.Rt();dLc(a)};
bLc.prototype.Rt=function(){if(this.active){var a=this.status;this.BL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.gi(_.Ac,this))}};bLc.prototype.ZO=function(){var a=this;this.O.ri(this.limit);this.O.Zg().then(function(){return cLc(a)},function(b){return a.handleError(b)})};var dLc=function(a){if(a.active){var b=a.context.Lc.$f();a.V=_.n.setTimeout((0,_.u)(a.query,a),Math.ceil(_.Zj(b,7,9E5)*Math.random())+_.Zj(b,15,36E5))}};bLc.prototype.$b=function(){return this.permissions.length};
var eLc=function(a){6!==a.status&&_.n.setTimeout(function(){a.dispatchEvent(new _.gi(_.Ac,a))},0)};
var fLc=function(){},gLc=function(a,b){NM.call(this,"TM","drive.ds.sync.TeamDriveMovePreflightRunnerProxy",a);this.request=b;this.O=fLc;this.H=null;this.id=String(_.Ca(this))};_.N(gLc,NM);gLc.prototype.x$=function(a,b,c){a===this.id&&(a=_.m(c).next().value,this.O(bL(a,b,vM)))};gLc.prototype.Zg=function(a){a=void 0===a?fLc:a;if(!this.H){this.O=a;var b=_.Sh();this.H=b;this.send("10.1",[this.request],function(c,d){return bL(c[0],d,vM)},this.id).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)})}return this.H.promise};
gLc.prototype.cancel=function(){this.send("10.2",[this.request],void 0,this.id)};
var hLc=function(a,b,c){_.qi.call(this);var d=this;this.instanceId=a;this.H=b;this.V=c;this.uu={};this.O={};_.Ae(this,function(){d.H("7.6",[])})};_.N(hLc,_.qi);_.g=hLc.prototype;_.g.getId=function(){return this.instanceId};_.g.oQ=function(){return _.eI()};
_.g.upload=function(a,b){!_.B(a,26)&&b&&b.lastModified&&_.y(a,26,b.lastModified);var c;b&&(c=b.type?b:new File([b],b.name,{type:b.type}));if(b){var d=new _.tic;_.y(d,1,b.size);_.J(a,15,d);this.O[a.aj()]=b}return _.$h(this.H("7.1",[a,c],function(e,f){return bL(e[0],f,_.MJ)}))};_.g.cancel=function(a){this.H("7.2",[a])};_.g.hG=function(){this.H("7.3",[])};
_.g.retry=function(a){for(var b={},c=_.m(a),d=c.next();!d.done;d=c.next())b[d.value]=new _.Uh;c=this.oQ();this.uu[c]=b;b=_.Qa(b);this.H("7.4",[c].concat(_.ld(a)));return b};_.g.xM=function(a,b){var c=this;return _.$h(this.H("7.5",[a].concat(_.ld(b)),function(d){return uoc(d[0])}).then(function(d){return c.V.addCallback(function(e){return e.W1a(d)})}))};var iLc=function(a,b,c,d){if(a.uu[b]&&a.uu[b][c]){var e=a.uu[b][c];d instanceof _.MJ?e.callback(d):e.Hd(d);delete a.uu[b][c];_.Ta(a.uu[b])&&delete a.uu[b]}};
var jLc=function(a,b){NM.call(this,"FU","drive.ds.sync.upload.FileUploaderProxyManager",a);this.O=b;this.H=new Map};_.N(jLc,NM);var kLc=function(a){var b=_.eI(),c=new hLc(b,function(d,e,f){return a.send(d,e,f,b)},a.O);a.H.set(b,c);_.Ae(c,function(){return void a.H.delete(b)});return c};
jLc.prototype.x$=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.O[d];a.H("7.7",[d,_.wgc(c,b,Math.min(c.size,b+e))]);break;case 0:b=bL(e[1],b,_.MJ);iLc(a,d,e[0],b);break;case 1:b=new _.nc(void 0,bL(e[1],b,_.mc));iLc(a,d,e[0],b);break;case 2:a.dispatchEvent(new _.Kkc(d,e[0],e[1]));break;default:throw Error("Lg");}}};
var lLc=function(a,b){if(0===a.length)throw new _.nc("mutateUserPref requires a namespace.",_.TI(3));var c=null;b instanceof _.FD?c=(b=(b=_.C(b,_.lp,1))&&b.getKey())&&_.mp(b)||null:b instanceof _.ED&&(c=(b=b.getKey())&&_.mp(b)||null);if(!c||!a.find(function(d){return d===c}))throw new _.nc("mutateUserPref unsupported for namespace: "+c,_.TI(3));};
var mLc=function(a){this.H=a};
var Zoc=function(a){NM.call(this,"IS","drive.ds.sync.ItemServiceProxy",(nLc=_.Sh()).promise);var b=this;this.ta=null;this.Qa=this.Ta=this.$a=this.ma=!1;this.ha=this.ka=this.W=null;this.kb=new _.An;this.Ka=new _.An;this.V=nLc;nLc=void 0;this.context=a;jJc(this.context,new IKc(this.V.promise));Krc(this.context.Ng,_.Qd(this.context.Lc,28));this.H=this.context.ifa;this.O=new LJc(this.V.promise,this.context,this.H);this.Ab=new jLc(this.V.promise,this.context.cQ);this.Ha=new GKc(this.V.promise,this.context);
this.Pc=new _.Je(this);this.Ma(this.Pc);this.Pc.listen(this.context.lk(),[].concat(_.ld(Object.values(_.zB))),function(c){return void b.dispatchEvent(c)})},nLc;_.N(Zoc,NM);
Zoc.prototype.initialize=function(){var a=this;if(!this.ta){this.ta=this.va.promise;var b=this.context.Hk().H(106E3);this.ta.then(function(){b&&b.uj();a.L0a()},function(){_.CK(a.context.Hk(),181008852)});var c=_.gK(this.context.Lc)?"(coldstart) ":"";this.context.Rf().info("drive.ds.sync.ItemServiceProxy","Initializing "+c+"with client build: "+this.context.Lc.Ji());var d=goc(this.context.Lc,this.vi(),_.mK(this.context.Ng));oLc(this,d);2===d.H?(c=new RM(new FJc,6,this.context.Rf()),AKc(c,d.O),this.Ka.resolve(c)):
Boc(this.Ha);this.context.Rf().info("drive.ds.sync.ItemServiceProxy","Connecting to worker: "+d.endpoint);d.channel.start();hJc(this.context,function(){return pLc(d.channel)})}return this.ta};
var pLc=function(a){return _.Tja([new _.Nh(function(b){a.isDisposed()||TL(a,"8.1",void 0,function(){a.dispose();b()})}),_.ui(1E4)])},oLc=function(a,b){var c=b.channel;0===b.H?c.registerService("2.0",function(){return{uid:a.vi(),fds:_.mK(a.context.Ng)}}):c.registerService("1.1",function(){return qLc(a,b)});2===b.H?a.Ka.promise.then(function(){return void rLc(a,b)}):rLc(a,b);SL(c,"2.1",function(){return{dsc:a.context.Lc.Kc()}});SL(c,"2.2",function(d){"number"===typeof d.id?(a.V.resolve(new EJc(d.id,
c,a.context.Rf(),d.clients)),d.dsp&&sLc(c),d.ivd&&tLc(a,c)):(d=new _.mc(JSON.parse(d.err)),a.va.reject(new _.nc("Unable to initialize dataservice.",d)))});SL(c,"2.15",function(d){a.dispatchEvent(new ACc(d.dt))});SL(c,"2.5",function(d){a.context.yu(d.id)});SL(c,"2.6",function(d){a.context.Gj().Kl(d.os)});SL(c,"2.18",function(d){a.context.Gj().Qy(d.oois)});SL(c,"2.7",function(){a.ma=!1});SL(c,"2.8",function(d){a.context.Fa=d.au;a.dispatchEvent(new wsc(d.au?"nb":"ob"))});SL(c,"2.19",function(d){a.context.lk().update(d.cs)});
SL(c,"2.9",function(d){var e=d.logName,f=d.level;d=_.xt("[CSW %s] %s",d.totalTime,d.message);switch(f){case "config":a.context.Rf().config(e,d);break;case "fine":_.kK(a.context.Rf(),e,d,"fine");break;case "finer":_.kK(a.context.Rf(),e,d,"finer");break;case "finest":_.kK(a.context.Rf(),e,d,"finest");break;case "info":a.context.Rf().info(e,d);break;case "warning":case "severe":Hrc(a.context.Rf(),e,d);break;default:Hrc(a.context.Rf(),"drive.ds.sync.ItemServiceProxy","Unknown log level: "+f),Hrc(a.context.Rf(),
e,d)}});SL(c,"2.10",function(d){return void a.v$(d)});SL(c,"2.12",function(){a.Qa=!0;TM(a)});SL(c,"2.14",function(){return a.kb.resolve()});SL(c,"2.16",function(){return a.$a=!0});SL(c,"2.17",function(d){a.context.Rf().info("drive.ds.sync.ItemServiceProxy","Prefetched request loaded for: "+d.t.join(","))})},rLc=function(a,b){1!==b.H&&2!==b.H||b.channel.send("8.5",qLc(a,b));TL(b.channel,"8.4",{dsc:a.context.Lc.Kc()});sLc(b.channel);tLc(a,b.channel)},sLc=function(a){_.n._DRIVE_dsp&&TL(a,"8.3",{dsp:uLc(_.n._DRIVE_dsp)});
_.n._DRIVE_dspc=function(b){if(_.n._DRIVE_dsp){var c=[];c[b]=_.n._DRIVE_dsp[b];TL(a,"8.3",{dsp:uLc(c)})}}},tLc=function(a,b){_.S(a.context.Lc,24,!1)&&(_.n._DRIVE_ivd?TL(b,"8.2",{ivd:_.n._DRIVE_ivd}):void 0===_.n._DRIVE_ivd&&(_.n._DRIVE_ivdc=function(){_.n._DRIVE_ivd&&TL(b,"8.2",{ivd:_.n._DRIVE_ivd})}))},qLc=function(a,b){var c={};if(1===b.H){var d=new _.XPa(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.Lc.Ji(),
ufds:b.V}};Zoc.prototype.vi=function(){var a=_.Nj(_.Nj(_.aI(this.context.Lc.clone(),28),44),91),b=new _.kI;b.update(_.eK(_.tI(a)));b.update(String(_.HI(_.tI(a))));b.update(a.Kc());return _.zdc(b.digest())};var uLc=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=Zoc.prototype;_.g.v$=function(a){this.dispatchEvent(new _.oc(new _.nc(void 0,new _.mc(JSON.parse(a.p)))))};
_.g.query=function(a){TM(this);xwc(this.context.Bm,a,Irc(this.context.Ng));this.kF();var b=this.O.Dwa(a);this.Ta||(a=a.ve(),a&&121===_.B(a,1)||(this.Ta=!0,this.Pc.listen(b,_.Ac,this.KLa)));return b};_.g.KLa=function(a){a=a.currentTarget;1===a.Bb()&&(this.Ha.H=this.$a,this.Pc.Vc(a,_.Ac,this.KLa))};_.g.yq=function(a){TM(this);rsc(a);this.kF();return this.O.Awa(a)};
_.g.Aua=function(a,b){var c=this;TM(this);if(this.ka&&_.Vj(this.ka.od(),a))return this.ka;this.ka=new RKc(a.clone(),this.context,function(d,e,f){return c.send("3.17",[d,e,f],function(h,k){return bL(h[0],k,Lvc)})},b);_.n.setTimeout(function(){c.ka=null},3E3);return this.ka};
_.g.oFa=function(a,b){var c=this;TM(this);if(this.ha&&_.Vj(this.ha.od(),a))return eLc(this.ha),this.ha;this.ha=new bLc(a,this.context,function(d){return c.send("3.18",[d],function(e,f){return bL(e[0],f,yBc)})},b);_.n.setTimeout(function(){c.ha=null},3E3);return this.ha};_.g.U$=function(a){TM(this);return _.$h(this.send("3.14",[a],function(b,c){return bL(b[0],c,tM)}))};_.g.k8=function(a){TM(this);return _.$h(this.send("3.15",[a],function(b,c){return bL(b[0],c,tM)}))};
_.g.qd=function(a){TM(this);!this.ma&&_.NJ(a)&&(this.ma=!0);a=ioc(a);return _.$h(this.send("3.3",[a],function(b,c){return bL(b[0],c,_.MJ)}))};_.g.VN=function(a){TM(this);a=soc(a);return this.send("3.35",[a],function(b,c){return bL(b[0],c,_.vsc)})};_.g.rz=function(a){TM(this);for(var b=0;b<a.length;b++)!this.ma&&_.NJ(a[b])&&(this.ma=!0);a=loc(a);return _.$h(this.send("3.4",[a],function(c,d){return Nwc(c[0],d).get()}))};_.g.zwa=function(){TM(this);return kLc(this.Ab)};
_.g.GRa=function(a){TM(this);return new HKc(this.V.promise,a)};_.g.tr=function(a,b){var c=this;TM(this);var d=_.Pg();this.H.create(d,a);return _.$h(this.send("3.5",[a,!!b],function(e,f){f=bL(e[0],f,VL);return new _.xK(f,e[1],e[2])})).addCallback(function(e){exc(c.H,d,e);return e.response}).Qg(function(e){UL(c.H,d);return e})};_.g.sr=function(a){TM(this);return this.send("3.10",[a],function(b,c){return bL(b[0],c,vBc)})};
_.g.W$=function(a){TM(this);return _.$h(this.send("3.11",[a],function(b,c){return bL(b[0],c,zBc)}))};_.g.i8=function(a){TM(this);return _.$h(this.send("3.12",[a],function(b,c){return bL(b[0],c,zBc)}))};_.g.bT=function(a){TM(this);return _.$h(this.send("3.13",[a],function(b,c){return bL(b[0],c,zBc)}))};
_.g.sN=function(a,b){var c=this;TM(this);var d=_.Pg();this.H.create(d,a);return _.$h(this.send("3.1",[a,!!b],function(e,f){f=bL(e[0],f,_.xM);return new _.AK(f,e[1],e[2])})).addCallback(function(e){exc(c.H,d,e);return e.response}).Qg(function(e){UL(c.H,d);return e})};
_.g.NG=function(a,b){var c=this,d=_.Qd(this.context.Lc.$f(),30);if(!d||0===d.length)return _.ai(new _.nc("getUserPrefs requires a namespace.",_.TI(3)));0===_.Qd(a,3).length&&Coc(a,d);TM(this);var e=_.Pg();this.H.create(e,a);return _.$h(this.send("3.2",[a,!!b],function(f,h){h=bL(f[0],h,_.Xz);return new _.zK(h,f[1],f[2])})).addCallback(function(f){exc(c.H,e,f);return f.response}).Qg(function(f){UL(c.H,e);return f})};
_.g.YR=function(a){TM(this);lLc(_.Qd(this.context.Lc.$f(),30),a);a=poc(a);return this.send("3.6",[a],function(b,c){return bL(b[0],c,ABc)})};_.g.fu=function(a){TM(this);return _.$h(this.send("3.16",[a],function(b,c){return bL(b[0],c,Zrc)}))};_.g.bBa=function(){return this.ma};_.g.Kl=function(a){TM(this);this.send("3.8",[a])};_.g.Qy=function(a){TM(this);return _.Oh(this.send("3.36",[a],function(b){return!!b[0]}))};_.g.mY=function(a){TM(this);iJc(this.context).mY(a);this.Qy(!!a)};
_.g.kF=function(){TM(this);this.send("3.9",[])};_.g.$R=function(){TM(this);this.send("3.41",[]);this.context.$R();var a=kL(this.context.Hk(),106006);a&&this.V.promise.then(function(b){var c=_.C(_.sK(a),jrc,6);if(!c){c=new jrc;var d=_.sK(a);_.J(d,6,c)}c=_.y(c,1,b.clientId);_.y(c,2,b.O);a.uj()},function(){})};_.g.xB=function(){TM(this);return this.context.xB()};_.g.hQ=function(){TM(this);return _.Oh(this.send("3.19",[],function(a,b){return bL(a[0],b,Qwc)}))};_.g.isConnected=function(){return this.context.lk().isConnected()};
_.g.E7=function(){return this.send("3.46",[],function(a,b){return bL(a[0],b,_.gkc)})};_.g.t9=function(){return this.Ha};_.g.sync=function(){TM(this);return _.Oh(this.send("3.28",[]))};_.g.Au=function(){return this.context.Au()};_.g.jY=function(a){this.Ka.promise.then(function(b){return void b.jY(a)})};_.g.nda=function(a){TM(this);return this.O.Kwa(a)};_.g.JY=function(a){TM(this);return this.O.Jwa(a)};_.g.lFa=function(a){TM(this);Awc(this.context.Bm,a,Irc(this.context.Ng));return this.O.Gwa(a)};
_.g.tpa=function(a){TM(this);return new gLc(this.V.promise,a)};_.g.mva=function(a){var b=this;TM(this);if(!this.W||this.W.isDisposed())this.W=new XKc(a,this.context,function(c){return b.send("3.20",[c],function(d,e){return bL(d[0],e,vCc)})});return this.W};_.g.YFa=function(){this.W&&!this.W.isDisposed()?this.W.poll():_.Oh()};_.g.j8=function(a){TM(this);return _.$h(this.send("3.22",[a],function(b,c){return bL(b[0],c,wCc)}))};
_.g.wV=function(a){TM(this);return _.$h(this.send("3.25",[a],function(b,c){return bL(b[0],c,rCc)}))};_.g.oba=function(){return this.kb.promise};_.g.xna=function(a){var b=_.Sh();_.$h(this.send("3.30",[a],function(c,d){c[0]?b.resolve(bL(c[0],d,yCc)):b.reject(new _.nc(void 0,bL(c[1],d,_.mc)))})).Qg(function(c){return void b.reject(c)});return b.promise};_.g.Ova=function(a){TM(this);return this.O.wwa(a)};_.g.D7=function(a){TM(this);return this.send("3.42",[a],function(b,c){return bL(b[0],c,Atc)})};
_.g.bP=function(a){TM(this);var b=new _.An;this.send("3.39",[a],function(c,d){return c.map(function(e){return bL(e,d,pxc)})}).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)});return Promise.resolve(new mLc(b.promise))};_.g.IFa=function(a){var b=this;TM(this);return new KKc(this.context,a,function(c){return _.Oh(b.send("3.37",[c.request,c.pageToken],function(d,e){return new Svc(bL(d[0],e,uM),d[1])}))})};
_.g.JFa=function(a){TM(this);return this.send("3.38",[a],function(b,c){return bL(b[0],c,IBc)})};_.g.iKa=function(a){TM(this);return this.O.Owa(a)};_.g.nqa=function(a){TM(this);return this.O.Nwa(a)};_.g.yIa=function(a){var b=this;TM(this);return new LKc(this.context,a,function(){return _.Oh(b.send("3.40",[a],function(c,d){return bL(c[0],d,_.SK)}))})};_.g.zIa=function(a){TM(this);return this.O.Hwa(a)};_.g.v_=function(a){TM(this);this.send("3.43",[a])};
_.g.a0=function(a){TM(this);return _.Oh(this.send("3.44",[a],function(b,c){return bL(b[0],c,rtc)}))};_.g.Po=function(a){TM(this);if(1!==_.fK(this.context.Lc))return Promise.reject(Error("Mg"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.Ac())return Promise.reject(Error("Ng"));if(!c.mk()&&!c.getItem())return Promise.reject(Error("Og"))}return Promise.resolve(this.send("3.45",a))};
_.g.L0a=function(){var a=this;if(3===this.context.getEnvironment()){var b=[_.ui(1E4,!1),this.send("3.29",[],function(c){return!!c[0]}).then()];_.Tja(b).then(function(c){c?_.si(a.L0a.bind(a),6E4):(a.Qa=!0,TM(a))})}};var TM=function(a){a.Qa&&a.dispatchEvent(new XCc)};
var apc=function(a){BM.call(this,a);this.ha=this.ka=this.ta=null;this.kb=_.Sh();this.H=a.Nm()};_.N(apc,BM);apc.prototype.rRa=function(){this.Ha=new RJc(this.context);this.Ma(this.Ha);this.Ka=new VJc(this.context);this.Ma(this.Ka);this.Qa=new bKc(this.context);this.Ma(this.Qa)};
apc.prototype.$a=function(){var a=this,b=["hVFf7"];_.gK(this.context.Lc)&&b.push("BNEDtc");$L(this.O,b,function(){return void a.kWa()});$L(this.O,["T8oKm","ZA9qG"],function(){return void vLc(a)});$L(this.O,["T8oKm","mrK8ic"],function(){return void vLc(a)});this.Pc.listen(this.Ha,"WPi0i",this.dsa.bind(this,1));this.Pc.listen(this.Ka,"Qb",this.dsa.bind(this,2));this.Pc.listen(this.Qa,"WPi0i",this.dsa.bind(this,4));$L(this.O,["GZTDpc"],function(){return a.kb.resolve()})};var vLc=function(a){FM(a.context).addCallback(function(b){b.start()})};
_.g=apc.prototype;_.g.dsa=function(a){_.oa(stc,a)&&this.dispatchEvent(new ACc(a))};_.g.JY=function(a){return this.V.Jwa(a.clone())};_.g.lFa=function(a){Awc(this.context.Bm,a,Irc(this.context.Ng));return this.V.Gwa(a.clone())};_.g.nda=function(a){return this.V.Kwa(a.clone())};_.g.tpa=function(a){return new sKc(a,this.context.Nm())};
_.g.Aua=function(a,b){var c=this;if(this.ta&&_.Vj(this.ta.od(),a))return this.ta;this.ta=new RKc(a.clone(),this.context,this.ajb.bind(this),b);_.n.setTimeout(function(){c.ta=null},3E3);return this.ta};_.g.ajb=function(a,b,c){var d=new _.Lgc(a,b,c);return _.$h(this.H.then(function(e){return e.Re(d)}).Fg(function(e){return _.VI(e)}))};_.g.mva=function(a){var b=this;if(!this.ha||this.ha.isDisposed())this.ha=new XKc(a,this.context,function(c){return wLc(b,c)});return this.ha};var wLc=function(a,b){return _.$h(a.H.then(function(c){return c.Re(b)}).Fg(function(c){return _.VI(c)}))};
_.g=apc.prototype;_.g.YFa=function(){this.ha&&!this.ha.isDisposed()?this.ha.poll().then():_.Oh()};_.g.wV=function(a){return _.$h(this.H.then(function(b){return b.Re(a)}))};_.g.j8=function(a){return _.$h(this.H.then(function(b){return b.Re(a)}))};_.g.oFa=function(a,b){var c=this;if(this.ka&&_.Vj(this.ka.od(),a))return eLc(this.ka),this.ka;this.ka=new bLc(a.clone(),this.context,this.zJb.bind(this),b);_.n.setTimeout(function(){c.ka=null},3E3);return this.ka};
_.g.zJb=function(a){var b=this;return this.H.then(function(c){return c.Re(a)}).then(function(c){return _.yI(b.context.Lc)?Byc(b.context.uf.qq,_.Rj(c.ld(),_.Gk,2),a.od().getId()).then(function(){return c}):c},_.VI)};_.g.U$=function(a){var b=this;return _.$h(this.H.then(function(c){return c.Re(a)}).then(function(c){return _.yI(b.context.Lc)?Byc(b.context.uf.qq,[_.C(c,_.Gk,2)],a.Ac()).then(function(){return c}):c},_.VI))};
_.g.k8=function(a){return _.$h(this.H.then(function(b){return b.Re(a)}).then(null,_.VI))};_.g.Ova=function(a){return this.V.wwa(a.clone())};_.g.D7=function(a){return this.H.then(function(b){return b.Re(a)}).then(null,_.VI)};_.g.bP=function(a){return this.H.then(function(b){return b.Re(a)}).then(function(b){var c=new _.An;Myc(a,b).then(function(d){return c.resolve(d)});return new mLc(c.promise)},function(b){return void _.VI(b)})};_.g.IFa=function(a){var b=this;return new KKc(this.context,a,function(c){return b.H.then(function(d){return d.Re(c)}).Fg(function(d){return _.VI(d)})})};
_.g.JFa=function(a){return this.H.then(function(b){return b.Re(a)}).then(null,_.VI)};_.g.qd=function(a){return _.$h(this.H.then(function(b){return b.Re(a)}).then(null,_.VI))};_.g.VN=function(a){return this.H.then(function(b){return b.Re(a)}).then(null,_.VI)};_.g.rz=function(a){var b=this,c=[],d=[];a.forEach(function(f){f instanceof _.XI?c.push(String(f.Ac())):c.push(String(f.getId()));d.push(b.qd(f))});a=new _.ro(d);var e=new _.Uh;a.addCallback(this.Klb.bind(this,e,c));return e};
_.g.zwa=function(){return new hKc(this.context.Lc,this.context.PA,this.context.bR().hfa,this.context.Nm(),this.context.cQ,this.context.Rf(),this.context.Hk())};_.g.tr=function(a,b){var c=this,d=_.Pg();this.W.create(d,a);3===a.getType()?a=BM.prototype.tr.call(this,a).addCallback(function(e){return new _.xK(e,1,!1)}):(aM(this.O,"Qubz4b"),a=this.Ka.enqueue(new $Jc(a,b)));return a.addCallback(function(e){exc(c.W,d,e);return e.response}).Qg(function(){UL(c.W,d)})};
_.g.sr=function(a){return _.$h(this.H.then(function(b){return b.Re(a)}).then(null,_.VI))};_.g.W$=function(a){return _.$h(this.H.then(function(b){return b.Re(a)}).then(null,_.VI))};_.g.i8=function(a){return _.$h(this.H.then(function(b){return b.Re(a)}).then(null,_.VI))};_.g.bT=function(a){return _.$h(this.H.then(function(b){return b.Re(a)}).then(null,_.VI))};
_.g.sN=function(a,b){var c=this;aM(this.O,"iuEtc");var d=_.Pg();this.W.create(d,a);return this.Ha.enqueue(new TJc(a,b)).addCallback(function(e){exc(c.W,d,e);return e.response}).Qg(function(){UL(c.W,d)})};
_.g.NG=function(a,b){var c=this,d=_.Qd(this.context.Lc.$f(),30);if(!d||0===d.length)return _.ai(new _.nc("getUserPrefs requires a namespace.",_.TI(3)));0===_.Qd(a,3).length&&Coc(a,d);var e=_.Pg();this.W.create(e,a);aM(this.O,"OZvrNc");return this.Qa.enqueue(new eKc(a,b)).addCallback(function(f){exc(c.W,e,f);return f.response}).Qg(function(){UL(c.W,e)})};_.g.YR=function(a){lLc(_.Qd(this.context.Lc.$f(),30),a);return _.$h(this.H.then(function(b){return b.Re(a)}).then(null,_.VI))};
_.g.fu=function(a){var b=this;return _.$h(this.H.then(function(c){return c.Re(a)}).then(function(c){return _.yI(b.context.Lc)?zyc(b.context.uf.qq,c):c},_.VI))};_.g.iKa=function(a){return this.V.Owa(a.clone())};_.g.nqa=function(a){return this.V.Nwa(a.clone())};_.g.yIa=function(a){var b=this;return new LKc(this.context,a,function(c){return b.H.then(function(d){return d.Re(c)}).Fg(function(d){return _.VI(d)})})};_.g.zIa=function(a){return this.V.Hwa(a.clone())};
_.g.v_=function(a){MEc(this.context.uf,[a])};_.g.a0=function(a){return this.H.then(function(b){return b.Re(a)}).then(null,_.VI)};_.g.Po=function(a){if(1!==_.fK(this.context.Lc))return Promise.reject(Error("Mg"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.Ac())return Promise.reject(Error("Ng"));if(!c.mk()&&!c.getItem())return Promise.reject(Error("Og"))}this.context.uf.Po(a);wFc(this.context.uf);return Promise.resolve()};_.g.bBa=function(){return this.context.bR().ZJ()};
_.g.Qy=function(a){var b=this;return this.context.Qy(a).then(function(c){return c?(b.context.Gj().Qy(a),b.context.Ls.eL()):_.Oh(!a)})};_.g.mY=function(a){iJc(this.context).mY(a);this.Qy(!!a)};_.g.kF=function(){FM(this.context).addCallback(function(a){a&&a.$na()});this.context.Sga.kF()};_.g.jY=function(a){a.YLa(this.context)};_.g.Klb=function(a,b,c){for(var d={},e=0;e<c.length;e++)d[b[e]]=c[e][1];wFc(this.context.uf);a.callback(d)};
_.g.sync=function(){var a=this;return _.Rh([this.context.R$.promise,this.context.jfa.promise]).then(function(){return a.context.Ls.eL()}).then()};_.g.Au=function(){FM(this.context).addCallback(function(a){a&&a.dispose()});return BM.prototype.Au.call(this)};_.g.oba=function(){return this.kb.promise};
var xLc=function(){var a='<div class="'+_.F("la-r")+'">';a=a+'Something went wrong. Please reload.</div><button class="'+(_.F("la-Y-A")+" "+_.F("kc-A")+'" data-target="reload">');return(0,_.I)(a+"Reload</button>")};
_.yn({id:_.Wl,callback:function(a){var b=_.jnc(a),c=dpc(a),d=_.C(a.get(_.Vc),_.Vb,10);_.oic(d,b);_.Jj(d,28,c);b=bpc(a,d);a.registerService(_.Xl,b.t9());_.Pe(b,"VbxEwf",function(){var e={};_.wc(_.Ot.getService(a),new _.oq(new _.nq(xLc,{}),"d",(e.reload=function(){_.n.window.location.reload()},e),4))});return b}});

_.w();

}catch(e){_._DumpException(e)}
try{
_.yLc=function(a,b){return _.J(a,17,b)};_.zLc=function(a,b){return _.y(a,2,b)};_.ALc=function(a,b){return _.y(a,1,b)};_.BLc=function(a,b){return _.J(a,2,b)};_.CLc=function(a,b){return _.Mj(a,1,b)};_.DLc=function(a,b){return _.Jj(a,1,b)};_.ELc=function(a,b){return _.Mj(a,2,b)};_.FLc=function(a,b){return _.J(a,3,b)};_.t("RsR2Mc");


_.w();

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