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


_.W("a","block",1,function(a){a=a||{};return(0,_.F)('<svg class="'+(a.ob?_.E("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>')});

_.u();

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



_.u();

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


_.u();

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


_.u();

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


_.u();

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


_.u();

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


_.u();

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


_.u();

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


_.u();

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


_.u();

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


_.u();

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


_.u();

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

var Onb;_.Ec=function(a){_.ti.call(this,_.Nc);this.error=a};_.K(_.Ec,_.ti);_.zA=function(a){_.J.call(this,a,-1,Onb)};_.K(_.zA,_.J);_.zA.prototype.O=function(){return _.fe(this,1)};_.AA=function(a,b){return _.Ij(a,1,b)};_.zA.prototype.mn=function(){return _.fe(this,2)};_.BA=function(a,b){return _.Ij(a,2,b)};_.zA.prototype.se=function(){return _.B(this,_.Cf,3)};_.CA=function(a,b){return _.I(a,3,b)};_.Pnb=function(a,b){return _.w(a,5,b)};Onb=[1,2,6,11];

_.u();

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


_.u();

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

_.SB=function(a){return a instanceof _.Dc?a:a instanceof _.Cc?new _.Dc(void 0,a):a instanceof Error?new _.Dc(a.message,void 0,a):new _.Dc("Not an Error",void 0,Error("sb`"+JSON.stringify(a)))};_.oIb=function(a){return a instanceof Error?_.SB(a).Sg:a instanceof _.Dc?a.Sg:a};

_.u();

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

_.uA=function(a){if(Array.isArray(a))return a.map(_.uA).join("");if(_.y(a,2)){if(!a.getId())throw Error("sd");return a.getId()+"/"+_.y(a,2)+","}return""};

_.u();

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

/*

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

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var YJb;_.XJb=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")};YJb=function(a){var b=_.paa(_.XEa,function(c){return a==c});if(void 0===b)throw Error("qb`"+a);return b};_.ZJb=function(a,b){void 0!==a.name?(this.name=a.name,this.code=_.XEa[a.name]):(this.code=a=a.code,this.name=YJb(a));_.fa.call(this,_.XJb("%s %s",this.name,b))};_.Yf(_.ZJb,_.fa);var $Jb=function(a,b){_.ti.call(this,a.type,b)};
_.Yf($Jb,_.ti);_.aKb=function(){_.Di.call(this);this.H=new FileReader;this.H.onloadstart=(0,_.N)(this.k0,this);this.H.onprogress=(0,_.N)(this.k0,this);this.H.onload=(0,_.N)(this.k0,this);this.H.onabort=(0,_.N)(this.k0,this);this.H.onerror=(0,_.N)(this.k0,this);this.H.onloadend=(0,_.N)(this.k0,this)};_.Yf(_.aKb,_.Di);_.g=_.aKb.prototype;_.g.abort=function(){try{this.H.abort()}catch(a){throw new _.ZJb(a,"aborting read");}};_.g.dk=function(){return this.H.result};
_.g.getError=function(){return this.H.error&&new _.ZJb(this.H.error,"reading file")};_.g.k0=function(a){this.dispatchEvent(new $Jb(a,this))};_.g.Ya=function(){_.aKb.wb.Ya.call(this);delete this.H};

_.u();

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

var gLb,jLb;gLb=[4,5,6,7];_.pC=function(a){_.J.call(this,a)};_.K(_.pC,_.J);_.pC.prototype.Bb=function(){return _.y(this,1)};_.pC.prototype.Dc=function(a){return _.w(this,1,a)};_.pC.prototype.l$=function(){return _.y(this,2)};_.pC.prototype.Wb="JmcaR";_.hLb=function(a){_.J.call(this,a)};_.K(_.hLb,_.J);_.hLb.prototype.O=function(){return _.P(this,1)};_.hLb.prototype.Wb="dvhrqe";_.iLb=function(a){_.J.call(this,a)};_.K(_.iLb,_.J);_.iLb.prototype.No=function(){return _.y(this,2)};
_.iLb.prototype.D1=function(){return _.y(this,3)};jLb=[5];_.kLb=function(a){_.J.call(this,a)};_.K(_.kLb,_.J);_.kLb.prototype.O=function(){return _.P(this,4)};_.kLb.prototype.setActive=function(a){return _.w(this,4,a)};_.lLb=function(a){_.J.call(this,a,-1,jLb)};_.K(_.lLb,_.J);_.g=_.lLb.prototype;_.g.FZ=function(){return _.y(this,1)};_.g.CT=function(){return _.y(this,3)};_.g.YJ=function(){return _.Oj(this,_.iLb,5)};_.g.tk=function(){return _.y(this,6)};_.g.Fq=function(){return _.y(this,7)};
_.g.KM=function(){return _.y(this,9)};_.g.Us=function(){return _.y(this,10)};_.g.JJ=function(){return _.B(this,_.kLb,12)};_.g.$k=function(){return _.y(this,13)};_.g.jx=function(){return _.y(this,16)};_.g.vzb=function(){return _.Cj(this,16)};_.g.ov=function(){return _.y(this,17)};_.g.Wb="dzR11e";_.mLb=function(a){_.J.call(this,a,-1,gLb)};_.K(_.mLb,_.J);_.mLb.prototype.ul=function(){return _.B(this,_.lLb,1)};_.mLb.prototype.WM=function(){return _.B(this,_.pC,8)};
_.mLb.prototype.O=function(){return _.B(this,_.hLb,9)};_.qC=function(a){_.J.call(this,a,-1,nLb)};_.K(_.qC,_.J);_.qC.prototype.getUser=function(){return _.B(this,_.Rk,1)};_.qC.prototype.getMetadata=function(){return _.B(this,_.mLb,3)};_.qC.prototype.yo=function(){return _.Cj(this,3)};var nLb=[2];

_.u();

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


_.u();

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

_.rC={AL:"lb",Kga:"mb",gU:"nb",fU:"ob"};_.oLb=new Map([[_.rC.AL,1],[_.rC.Kga,2],[_.rC.gU,2],[_.rC.fU,3]]);

_.u();

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

_.rLb=function(a,b,c,d,e,f,h){return(0,_.F)(_.Un("a",b,!1)({fillColor:d,mb:c,color:"#000000",ob:!0,Ir:e,size:f,Vd:h},a))};_.wC=function(a){_.J.call(this,a)};_.K(_.wC,_.J);
_.tLb=function(a){_.J.call(this,a,-1,sLb)};_.K(_.tLb,_.J);var sLb=[4];

_.u();

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


_.u();

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

_.GNb=function(a){a=parseInt(_.y(a,3)||"0",10);return 100<=a?"over":90<=a?"near":"under"};_.INb=function(a,b,c,d){var e=_.$e.getService(a);a=e.wg(a,c);_.HNb(a.H.yk,b,d);e.eg(a)};_.HNb=function(a,b,c){var d=new _.JNb;b.BU&&_.w(d,2,b.BU);b.bG&&0<=b.bG&&_.w(d,1,b.bG);b.quotaType&&_.w(d,3,b.quotaType);_.KNb(a,d);c&&(b=new _.LNb,_.w(b,1,c),_.MNb(a,b))};_.NNb=function(a){return isNaN(a)?0:100<=a?6:95<=a?5:90<=a?4:80<=a?3:70<=a?2:1};_.ONb=function(a,b){return!_.Q(a,6,!1)||_.Q(b,15,!1)};
_.KNb=function(a,b){b&&(a=a.Vc(),_.I(a,29,b))};_.MNb=function(a,b){b&&(a=a.Vc(),_.I(a,38,b))};_.JNb=function(a){_.J.call(this,a)};_.K(_.JNb,_.J);_.JNb.prototype.tk=function(){return _.y(this,3)};_.LNb=function(a){_.J.call(this,a)};_.K(_.LNb,_.J);_.LNb.prototype.Rh=function(){return _.y(this,1)};
_.QNb=function(a,b,c){var d=_.D(a.get(_.LDa),1,""),e=_.GNb(b);d=new _.kj(d);a:switch(e){case "over":var f="o";break a;case "near":f="u";break a;default:f="m"}return _.pj(_.rj(_.rj(_.rj(_.rj(d,"i",f),"utm_source","drive"),"utm_medium","web"),"utm_campaign",_.PNb(a,e,c)),-1!=parseInt(String(_.B(b,_.wC,2)),10)?"upgrade":"")};
_.PNb=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"}}};
_.RNb=function(a,b,c){if(!b)return"g1_widget_unknown";a=Number(_.y(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"};

_.u();

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


_.u();

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

_.pD=function(a){_.J.call(this,a)};_.K(_.pD,_.J);_.pD.prototype.ha=function(){return _.Gj(this,1)};_.pD.prototype.V=function(){return _.Gj(this,2)};_.pD.prototype.O=function(){return _.Gj(this,3)};

_.u();

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


_.u();

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


_.u();

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


_.u();

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


_.u();

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

_.gub=function(a){_.J.call(this,a)};_.K(_.gub,_.J);_.gub.prototype.O=function(){return _.y(this,1)};_.gub.prototype.Bb=function(){return _.y(this,2)};_.gub.prototype.Dc=function(a){return _.w(this,2,a)};_.gub.prototype.V=function(){return _.y(this,3)};_.iub=function(a){_.J.call(this,a,-1,hub)};_.K(_.iub,_.J);_.iub.prototype.O=function(){return _.fe(this,1)};var hub=[1];
_.kub=function(a){_.J.call(this,a,-1,jub)};_.K(_.kub,_.J);_.kub.prototype.O=function(){return _.Oj(this,_.gub,1)};var jub=[1];
_.mub=function(a){_.J.call(this,a,-1,lub)};_.K(_.mub,_.J);_.mub.prototype.O=function(){return _.Oj(this,_.kub,1)};var lub=[1];
_.nub=function(a){_.J.call(this,a)};_.K(_.nub,_.J);_.nub.prototype.V=function(){return _.B(this,_.mub,1)};_.nub.prototype.O=function(){return _.B(this,_.iub,2)};
_.xB=function(a){_.J.call(this,a,-1,oub)};_.K(_.xB,_.J);_.g=_.xB.prototype;_.g.Bb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.w(this,1,a)};_.g.wd=function(){return _.Oj(this,_.hl,2)};_.g.Tw=function(a){return _.Kj(this,2,a)};_.g.mh=function(a,b){return _.Xj(this,2,a,_.hl,b)};_.g.ak=function(){return _.y(this,3)};_.g.tl=function(){return _.Q(this,5,!0)};_.g.R5=function(){return _.B(this,_.nub,7)};_.g.fsa=function(){return _.P(this,8)};_.g.ag=function(){return _.y(this,17)};
_.g.lP=function(a){return _.w(this,17,a)};_.g.Ye=function(){return _.y(this,12)};_.g.Ji=function(a){return _.w(this,12,a)};_.g.Yn=function(){return _.y(this,15)};_.g.dka=function(){return _.fe(this,18)};var oub=[2,14,18];

_.u();

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


_.u();

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


_.u();

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

_.XD=function(a){_.J.call(this,a)};_.K(_.XD,_.J);_.XD.prototype.getKey=function(){return _.B(this,_.Xb,1)};_.XD.prototype.et=function(){return _.Cj(this,1)};_.XD.prototype.se=function(){return _.B(this,_.Cf,2)};
_.YD=function(a){_.J.call(this,a)};_.K(_.YD,_.J);_.YD.prototype.se=function(){return _.B(this,_.Cf,2)};

_.u();

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

_.WD=function(a){_.J.call(this,a,-1,mRb)};_.K(_.WD,_.J);_.WD.prototype.se=function(){return _.B(this,_.Cf,1)};var mRb=[3];

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.mE=function(a,b,c){_.O.call(this);this.Jn=null!=c?(0,_.N)(a,c):a;this.ka=b;this.Jg=(0,_.N)(this.E9a,this);this.O=!1;this.V=0;this.W=this.H=null;this.ha=[]};_.Yf(_.mE,_.O);_.g=_.mE.prototype;_.g.ne=function(a){this.ha=arguments;this.O=!1;this.H?this.W=_.Wf()+this.ka:this.H=_.Fi(this.Jg,this.ka)};_.g.stop=function(){this.H&&(_.Gi(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.Jn.apply(null,this.ha)))};_.g.Ya=function(){this.stop();_.mE.wb.Ya.call(this)};_.g.E9a=function(){this.H&&(_.Gi(this.H),this.H=null);this.W?(this.H=_.Fi(this.Jg,this.W-_.Wf()),this.W=null):this.V?this.O=!0:(this.O=!1,this.Jn.apply(null,this.ha))};

_.u();

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


_.u();

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


_.u();

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

_.CG=function(a){_.J.call(this,a,-1,D8b)};_.K(_.CG,_.J);_.CG.prototype.getId=function(){return _.y(this,1)};_.CG.prototype.Ob=function(a){return _.w(this,1,a)};_.CG.prototype.hs=function(){return _.y(this,2)};_.CG.prototype.eK=function(){return _.Cj(this,2)};var D8b=[5,6,9,10,12,13,15,16];
var E8b;_.DG=function(a){_.J.call(this,a,-1,E8b)};_.K(_.DG,_.J);_.DG.prototype.Nm=function(){return _.y(this,1)};_.F8b=function(a,b){return _.w(a,1,b)};E8b=[2,4];

_.u();

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


_.u();

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

_.EG=function(a){_.J.call(this,a)};_.K(_.EG,_.J);_.EG.prototype.getName=function(){return _.y(this,1)};_.EG.prototype.hd=function(a){return _.w(this,1,a)};_.EG.prototype.se=function(){return _.B(this,_.Cf,2)};

_.u();

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

_.FG=function(a){_.J.call(this,a)};_.K(_.FG,_.J);_.g=_.FG.prototype;_.g.Di=function(){return _.y(this,1)};_.g.ui=function(a){return _.w(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.w(this,2,a)};_.g.se=function(){return _.B(this,_.Cf,3)};_.g.Op=function(){return _.y(this,4)};

_.u();

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

var M8b;_.GG=function(a){_.J.call(this,a,-1,M8b)};_.K(_.GG,_.J);_.GG.prototype.O=function(){return _.fe(this,1)};_.GG.prototype.mn=function(){return _.fe(this,2)};_.N8b=function(a,b){return _.Ij(a,2,b)};_.GG.prototype.se=function(){return _.B(this,_.Cf,3)};_.O8b=function(a,b){return _.I(a,3,b)};M8b=[1,2];

_.u();

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

_.HG=function(a){_.J.call(this,a)};_.K(_.HG,_.J);_.g=_.HG.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Ob=function(a){return _.w(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.w(this,2,a)};_.g.getState=function(){return _.y(this,5)};_.g.Ld=function(a){return _.w(this,5,a)};_.g.gt=function(){return _.Cj(this,5)};_.JG=function(a){_.J.call(this,a,-1,P8b)};_.K(_.JG,_.J);_.JG.prototype.mn=function(){return _.fe(this,1)};
_.Q8b=function(a,b){return _.Ij(a,1,b)};_.JG.prototype.se=function(){return _.B(this,_.Cf,2)};var P8b=[1,3];

_.u();

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

_.KG=function(a,b){return _.w(a,4,b)};_.R8b=function(a,b){_.w(a,11,b)};_.S8b=function(a,b){return _.w(a,25,b)};

_.u();

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


_.u();

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

_.T8b=function(a){_.J.call(this,a)};_.K(_.T8b,_.J);_.T8b.prototype.Di=function(){return _.y(this,3)};_.T8b.prototype.ui=function(a){return _.w(this,3,a)};_.T8b.prototype.se=function(){return _.B(this,_.Cf,5)};_.T8b.prototype.getCustomer=function(){return _.y(this,6)};

_.u();

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

_.SG=function(a){_.J.call(this,a)};_.K(_.SG,_.J);_.SG.prototype.Ac=function(){return _.y(this,1)};_.P9b=function(a){var b=new _.SG;return _.w(b,1,a)};_.SG.prototype.Di=function(){return _.y(this,2)};_.SG.prototype.ui=function(a){return _.w(this,2,a)};_.SG.prototype.se=function(){return _.B(this,_.Cf,3)};

_.u();

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

_.Aqc=function(a){for(var b in a)delete a[b]};_.vI=function(a,b){if(a.H)return a=a.H.responseText,b&&0==a.indexOf(b)&&(a=a.substring(b.length)),(0,_.kla)(a)};_.wI=function(a){return _.Q(a,5,!1)};_.Bqc=function(a,b){var c=_.B(a.H,_.zya,9);null==c&&(c=new _.zya);var d=_.y(b.H,10);d=_.w(c,5,d);b=_.y(b.H,12);_.w(d,2,b);_.I(a.H,9,c)};_.Cqc=function(a,b){a=_.Si(a);b=_.Si(b);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]};
_.Dqc=function(a){var b=_.sla(a);if("undefined"==typeof b)throw Error("X");var c=new _.qj(null,void 0);a=_.rla(a);for(var d=0;d<b.length;d++){var e=b[d],f=a[d];Array.isArray(f)?_.qma(c,e,f):c.add(e,f)}return c};

_.u();

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

var Eqc,Fqc;Eqc=[2];_.xI=function(a){_.J.call(this,a,-1,Eqc)};_.K(_.xI,_.J);_.xI.prototype.Bb=function(){return _.y(this,1)};_.xI.prototype.Dc=function(a){return _.w(this,1,a)};_.xI.prototype.eVa=function(){return _.Oj(this,_.qEa,2)};_.xI.prototype.ak=function(){return _.y(this,3)};_.yI=function(a){_.J.call(this,a,-1,Fqc)};_.K(_.yI,_.J);_.yI.prototype.O=function(){return _.fe(this,1)};_.yI.prototype.se=function(){return _.B(this,_.Cf,2)};_.Gqc=function(a,b){return _.I(a,2,b)};
_.yI.prototype.Di=function(){return _.ak(this,3,20)};_.yI.prototype.ui=function(a){return _.w(this,3,a)};_.Hqc=function(a,b){return _.w(a,4,b)};Fqc=[1];

_.u();

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

_.Iqc={drive:1,appDataFolder:2,photos:3,androidBackup:4};_.Jqc=_.Za(_.Iqc);

_.u();

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

/*

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

_.u();

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

/*

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

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Pqc=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a;return c};_.Qqc=function(){this.blockSize=-1};

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.zI=function(){this.blockSize=-1;this.blockSize=64;this.H=Array(4);this.W=Array(this.blockSize);this.V=this.O=0;this.reset()};_.Yf(_.zI,_.Qqc);_.zI.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 Rqc=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};
_.zI.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;)Rqc(this,a,f),f+=this.blockSize;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.blockSize){Rqc(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.blockSize){Rqc(this,d);e=0;break}}this.O=e;this.V+=b};
_.zI.prototype.digest=function(){var a=Array((56>this.O?this.blockSize:2*this.blockSize)-this.O);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.V;for(b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.H[b]>>>d&255;return a};

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Sqc,AI,Tqc,CI,Vqc,Uqc;Sqc=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(_.gga);try{delete a[_.gga]}catch(b){}};
AI=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[_.gga]||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++)Sqc(c[a]);return b.join("")};_.BI=function(a,b,c){if("number"===typeof a)var d={name:Uqc(a)};else d=a,a=Vqc(a.name);this.code=a;this.O=d;b="Error "+b+": "+this.getName();c&&(b+=", "+c);_.fa.call(this,b)};_.Yf(_.BI,_.fa);_.BI.prototype.getName=function(){return this.O.name||""};
CI={Oib:1,Whb:2,NOT_FOUND_ERR:3,f8a:4,k8a:5,Yhb:6,Jib:7,ABORT_ERR:8,mib:9,C6b:10,TIMEOUT_ERR:11,jib:12,INVALID_ACCESS_ERR:13,INVALID_STATE_ERR:14};_.Wqc=(_.n.lI||_.n.pL||CI).Oib;_.Xqc=(_.n.lI||_.n.pL||CI).Whb;_.Yqc=(_.n.lI||_.n.pL||CI).NOT_FOUND_ERR;_.Zqc=(_.n.lI||_.n.pL||CI).f8a;_.$qc=(_.n.lI||_.n.pL||CI).k8a;_.arc=(_.n.lI||_.n.pL||CI).Yhb;_.brc=(_.n.lI||_.n.pL||CI).Jib;_.crc=(_.n.lI||_.n.pL||CI).ABORT_ERR;_.drc=(_.n.lI||_.n.pL||CI).mib;_.erc=(_.n.lI||_.n.pL||CI).TIMEOUT_ERR;
_.frc=(_.n.lI||_.n.pL||CI).jib;_.grc=(_.n.DOMException||CI).INVALID_ACCESS_ERR;_.hrc=(_.n.DOMException||CI).INVALID_STATE_ERR;
Vqc=function(a){switch(a){case "UnknownError":return _.Wqc;case "NotFoundError":return _.Yqc;case "ConstraintError":return _.Zqc;case "DataError":return _.$qc;case "TransactionInactiveError":return _.brc;case "AbortError":return _.crc;case "ReadOnlyError":return _.drc;case "TimeoutError":return _.erc;case "QuotaExceededError":return _.frc;case "InvalidAccessError":return _.grc;case "InvalidStateError":return _.hrc;default:return _.Wqc}};
Uqc=function(a){switch(a){case _.Wqc:return"UnknownError";case _.Yqc:return"NotFoundError";case _.Zqc:return"ConstraintError";case _.$qc:return"DataError";case _.brc:return"TransactionInactiveError";case _.crc:return"AbortError";case _.drc:return"ReadOnlyError";case _.erc:return"TimeoutError";case _.frc:return"QuotaExceededError";case _.grc:return"InvalidAccessError";case _.hrc:return"InvalidStateError";default:return"UnknownError"}};
_.DI=function(a,b){return"error"in a?new _.BI(a.error,b):new _.BI({name:"UnknownError"},b)};_.EI=function(a,b){if("name"in a)return b=b+": "+a.message,new _.BI(a,b);if("code"in a){var c=Uqc(a.code);b=b+": "+a.message;return new _.BI({name:c},b)}return new _.BI({name:"UnknownError"},b)};
_.irc=function(a){this.H=a};_.jrc=_.n.IDBKeyRange||_.n.webkitIDBKeyRange;_.irc.prototype.range=function(){return this.H};
var krc=function(a){this.H=a};krc.prototype.getName=function(){return this.H.name};var orc=function(a,b,c,d){var e=new _.di;try{var f=a.H[b](d)}catch(h){return c+=" with key "+AI(d),e.Jd(_.EI(h,c)),e}f.onsuccess=function(h){e.callback(h.target.result)};f.onerror=function(h){c+=" with key "+AI(d);e.Jd(_.DI(h.target,c))};return e};krc.prototype.get=function(a){return orc(this,"get","getting from index "+this.getName(),a)};
krc.prototype.getKey=function(a){return orc(this,"getKey","getting key from index "+this.getName(),a)};krc.prototype.getAll=function(a,b){return _.prc(this,"getAll","getting all from index "+this.getName(),a,b)};
_.prc=function(a,b,c,d,e){var f;void 0===d?f=void 0:f=d instanceof _.irc?d.range():(new _.irc(_.jrc.only(d))).range();var h=new _.di;try{var k=a.H[b](f,e)}catch(l){return c+=" for range "+(f?AI(f):"<all>"),h.Jd(_.EI(l,c)),h}k.onsuccess=function(){h.callback(k.result)};k.onerror=function(l){c+=" for range "+(f?AI(f):"<all>");h.Jd(_.DI(l.target,c))};return h};
var qrc=function(a){this.H=a};qrc.prototype.getName=function(){return this.H.name};var rrc=function(a,b,c,d,e){var f=new _.di;try{var h=e?a.H[b](d,e):a.H[b](d)}catch(k){return c+=AI(d),e&&(c+=", with key "+AI(e)),f.Jd(_.EI(k,c)),f}h.onsuccess=function(k){f.callback(k.target.result)};h.onerror=function(k){c+=AI(d);e&&(c+=", with key "+AI(e));f.Jd(_.DI(k.target,c))};return f};_.g=qrc.prototype;_.g.put=function(a,b){return rrc(this,"put","putting into "+this.getName()+" with value",a,b)};
_.g.add=function(a,b){return rrc(this,"add","adding into "+this.getName()+" with value ",a,b)};_.g.remove=function(a){var b=new _.di;try{var c=this.H["delete"](a instanceof _.irc?a.range():a)}catch(e){return c="removing from "+this.getName()+" with key "+AI(a),b.Jd(_.EI(e,c)),b}c.onsuccess=function(){b.callback()};var d=this;c.onerror=function(e){var f="removing from "+d.getName()+" with key "+AI(a);b.Jd(_.DI(e.target,f))};return b};
_.g.get=function(a){var b=new _.di;try{var c=this.H.get(a)}catch(e){return c="getting from "+this.getName()+" with key "+AI(a),b.Jd(_.EI(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 "+AI(a);b.Jd(_.DI(e.target,f))};return b};_.g.getAll=function(a,b){return src(this,"getting all from index "+this.getName(),a,b)};
var src=function(a,b,c,d){var e;void 0===c?e=void 0:e=c instanceof _.irc?c.range():(new _.irc(_.jrc.only(c))).range();var f=new _.di;try{var h=a.H.getAll(e,d)}catch(k){return b+=" for range "+(e?AI(e):"<all>"),f.Jd(_.EI(k,b)),f}h.onsuccess=function(){f.callback(h.result)};h.onerror=function(k){b+=" for range "+(e?AI(e):"<all>");f.Jd(_.DI(k.target,b))};return f};
qrc.prototype.clear=function(){var a="clearing store "+this.getName(),b=new _.di;try{var c=this.H.clear()}catch(d){return b.Jd(_.EI(d,a)),b}c.onsuccess=function(){b.callback()};c.onerror=function(d){b.Jd(_.DI(d.target,a))};return b};qrc.prototype.getIndex=function(a){try{return new krc(this.H.index(a))}catch(b){throw _.EI(b,"getting index "+a);}};
qrc.prototype.count=function(a){var b=new _.di;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.Jd(_.DI(e.target,d.getName()))}}catch(e){b.Jd(_.EI(e,this.getName()))}return b};
var trc=function(a,b){_.Di.call(this);this.H=a;this.O=b;this.Cb=new _.Ye(this);this.Cb.listen(this.H,"complete",(0,_.N)(this.dispatchEvent,this,"complete"));this.Cb.listen(this.H,"abort",(0,_.N)(this.dispatchEvent,this,"abort"));this.Cb.listen(this.H,"error",this.r$a)};_.Yf(trc,_.Di);_.g=trc.prototype;_.g.r$a=function(a){a.target instanceof _.BI?this.dispatchEvent({type:"error",target:a.target}):this.dispatchEvent({type:"error",target:_.DI(a.target,"in transaction")})};_.g.Ng=function(){return this.H.mode};
_.g.objectStore=function(a){try{return new qrc(this.H.objectStore(a))}catch(b){throw _.EI(b,"getting object store "+a);}};_.g.commit=function(a){if(this.H.commit||!a)try{this.H.commit()}catch(b){throw _.EI(b,"cannot commit the transaction");}};
_.g.wait=function(){var a=new _.di;_.xi(this,"complete",(0,_.N)(a.callback,a));var b=_.xi(this,"abort",function(){_.Bi(c);a.Jd(new _.BI(_.crc,"waiting for transaction to complete"))});var c=_.xi(this,"error",function(e){_.Bi(b);a.Jd(e.target)});var d=this.O;return a.addCallback(function(){return d})};_.g.abort=function(){this.H.abort()};_.g.Ya=function(){trc.wb.Ya.call(this);this.Cb.dispose()};
var urc=function(a){_.Di.call(this);this.H=a;this.Cb=new _.Ye(this);this.Cb.listen(this.H,"abort",(0,_.N)(this.dispatchEvent,this,"abort"));this.Cb.listen(this.H,"error",this.s$a);this.Cb.listen(this.H,"versionchange",this.Vob);this.Cb.listen(this.H,"close",(0,_.N)(this.dispatchEvent,this,"close"))};_.Yf(urc,_.Di);_.g=urc.prototype;_.g.rsa=!0;_.g.s$a=function(a){a=(a=a.target)&&a.error;this.dispatchEvent({type:"error",errorCode:a&&a.severity})};
_.g.Vob=function(a){this.dispatchEvent(new vrc(a.oldVersion,a.newVersion))};_.g.close=function(){this.rsa&&(this.H.close(),this.rsa=!1)};_.g.ih=function(){return this.rsa};_.g.getName=function(){return this.H.name};_.g.hj=function(){return Number(this.H.version)};_.wrc=function(a,b,c){try{return new qrc(a.H.createObjectStore(b,c))}catch(d){throw _.EI(d,"creating object store "+b);}};
_.xrc=function(a,b,c){try{var d=c?a.H.transaction(b,c):a.H.transaction(b);return new trc(d,a)}catch(e){throw _.EI(e,"creating transaction");}};urc.prototype.Ya=function(){urc.wb.Ya.call(this);this.Cb.dispose()};var vrc=function(a,b){_.ti.call(this,"versionchange");this.oldVersion=a;this.newVersion=b};_.Yf(vrc,_.ti);
_.yrc=function(){void 0==Tqc&&(Tqc=_.n.indexedDB||_.n.mozIndexedDB||_.n.webkitIndexedDB||_.n.moz_indexedDB);return Tqc};
_.zrc=function(a,b,c,d){var e=new _.di;b=b?_.yrc().open(a,b):_.yrc().open(a);b.onsuccess=function(f){f=new urc(f.target.result);e.callback(f)};b.onerror=function(f){e.Jd(_.DI(f.target,"opening database "+a))};b.onupgradeneeded=function(f){if(c){var h=new urc(f.target.result);c(new vrc(f.oldVersion,f.newVersion),h,new trc(f.target.transaction,h))}};b.onblocked=function(f){d&&d(new vrc(f.oldVersion,f.newVersion))};return e};

_.u();

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

/*

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

_.u();

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

_.Arc=function(a,b,c){_.ij(a.url,function(d){d=d.target;d.xv()?b(d.Jl()):c(d.Bb())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};_.Brc=function(a,b,c,d){return _.D(a,1).split("/").pop()==d?(d=_.y(a,2),Array.isArray(d)?new b(d):c(_.nb(a.Za()))):null};_.Drc=function(a){_.J.call(this,a,-1,Crc)};_.K(_.Drc,_.J);var Crc=[2];
_.Erc=function(a){_.J.call(this,a)};_.K(_.Erc,_.J);var Frc=function(){var a=new _.Erc,b=document.documentElement.getAttribute("lang");return _.w(a,5,b)};_.Erc.prototype.Wi=function(){return _.y(this,7)};
_.Grc=function(a){_.J.call(this,a)};_.K(_.Grc,_.J);
var Hrc;_.HI=function(a){_.J.call(this,a,31,Hrc)};_.K(_.HI,_.J);_.II=function(a,b){return _.w(a,8,b)};Hrc=[3,20,27];
var Jrc=function(a){_.J.call(this,a,17,Irc)};_.K(Jrc,_.J);var Krc=function(a){var b=Date.now().toString();return _.w(a,4,b)},Lrc=function(a,b){return _.Kj(a,3,b)},Mrc=function(a,b){return _.w(a,14,b)},Irc=[3,5];
var Orc=function(a){_.J.call(this,a,6,Nrc)};_.K(Orc,_.J);var Nrc=[5];
var Prc=function(a){_.J.call(this,a)};_.K(Prc,_.J);
var Qrc=new _.Ck(175237375,Prc);
_.JI=function(a,b,c,d,e,f,h,k,l,p,q){_.Di.call(this);var r=this;this.Ka="";this.O=[];this.Ic="";this.Gb=this.Mb=this.ha=!1;this.Qc=this.rb=-1;this.Rb=!1;this.Fa=this.V=null;this.va=0;this.je=1;this.timeoutMillis=0;this.kb=!1;_.Di.call(this);this.Tc=a;this.oc=b||_.Tf;this.ka=new Jrc;this.Bd=d;this.Ab=q;this.ke=_.Db(_.Yia,0,1);this.Ba=e||null;this.Ha=c||null;this.Ta=h||!1;this.$a=l||null;this.dg=null;this.withCredentials=!k;this.zc=f||!1;this.Od=!this.zc&&(_.Aj.On&&_.Fb(65)||_.Aj.Ku&&_.Fb(45)||_.Aj.$x&&
_.Fb(12)||_.ah()&&0<=_.rg(_.Aia(),12))&&!!_.zf()&&!!_.zf().navigator&&!!_.zf().navigator.sendBeacon;a=_.w(new _.Grc,1,1);f||(f=Frc(),_.I(a,11,f));_.I(this.ka,1,a);_.w(this.ka,2,this.Tc);this.ma=new _.FI(1E4,3E5,.1);this.H=new _.Ei(this.ma.Za());this.Ma(this.H);_.Oe(this.H,"tick",_.pga(Rrc(this,p)),!1,this);this.Qa=new _.Ei(6E5);this.Ma(this.Qa);_.Oe(this.Qa,"tick",_.pga(Rrc(this,p)),!1,this);this.Ta||this.Qa.start();this.zc||(_.Oe(_.zf(),"beforeunload",this.ta,!1,this),_.Oe(_.zf(),"unload",this.ta,
!1,this),_.Oe(document,"visibilitychange",function(){"hidden"===document.visibilityState&&r.ta()}),_.Oe(document,"pagehide",this.ta,!1,this))};_.K(_.JI,_.Di);var Rrc=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};_.JI.prototype.Ya=function(){this.ta();_.Di.prototype.Ya.call(this)};var Src=function(a){a.Ba||(a.Ba=.01>a.ke()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.Ba};
_.JI.prototype.W=function(a){a instanceof _.HI?this.log(a):(a=_.II(new _.HI,a.Lc()),this.log(a))};_.Trc=function(a,b){b?(a.V||(a.V=new _.Drc),b=b.Lc(),_.w(a.V,4,b)):a.V&&_.pb(a.V,4)};_.Urc=function(a){a.Mb=a.Od};_.Vrc=function(a,b){a.ma=new _.FI(1>b?1:b,3E5,.1);a.H.setInterval(a.ma.Za())};
_.JI.prototype.log=function(a){a=a.clone();var b=this.je++;_.w(a,21,b);this.Ka&&_.w(a,26,this.Ka);if(!_.y(a,1)){b=a;var c=Date.now().toString();_.w(b,1,c)}_.Cj(a,15)||_.w(a,15,60*(new Date).getTimezoneOffset());this.V&&(b=this.V.clone(),_.I(a,16,b));for(;1E3<=this.O.length;)this.O.shift(),++this.va;this.O.push(a);this.dispatchEvent(new Wrc(a));this.Ta||this.H.enabled||this.H.start()};
_.JI.prototype.flush=function(a,b){var c=this;if(0===this.O.length)a&&a();else if(this.kb)Xrc(this);else{var d=Date.now();if(this.Qc>d&&this.rb<d)b&&b("throttled");else{var e=Mrc(Lrc(Krc(this.ka.clone()),this.O),this.va);d={};var f=this.oc();f&&(d.Authorization=f);var h=Src(this);this.Ha&&(d["X-Goog-AuthUser"]=this.Ha,h=_.dj(h,"authuser",this.Ha));this.$a&&(d["X-Goog-PageId"]=this.$a,h=_.dj(h,"pageId",this.$a));if(f&&this.Ic===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.Lc(),l;this.Fa&&this.Fa.ru(k.length)&&(l=this.Fa.u8b(k));var p={url:h,body:k,Zkb: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 C=JSON.parse(z.replace(")]}'\n",""));A=new Orc(C)}catch(G){}A&&(z=Number(_.Nma(A,1,"-1")),0<z&&(c.rb=Date.now(),c.Qc=c.rb+z),A=_.tb(A,Qrc))&&(A=_.ak(A,1,-1),-1!=A&&(c.Rb||_.Vrc(c,A)))}a&&a()},r=
function(z){var A=_.Oj(e,_.HI,3);_.GI(c.ma);c.H.setInterval(c.ma.Za());401===z&&f&&(c.Ic=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.Bd(p,q,r)};l?l.then(function(z){p.requestHeaders["Content-Encoding"]="gzip";p.requestHeaders["Content-Type"]="application/binary";p.body=z;p.Zkb=2;v()},function(){v()}):v()}}}};_.JI.prototype.ta=function(){this.ha||(this.Mb&&Xrc(this),this.Gb&&Yrc(this),this.flush())};
var Xrc=function(a){Zrc(a,32,10,function(b,c){b=_.dj(b,"format","json");b=_.zf().navigator.sendBeacon(b,c.Lc());a.kb&&!b&&(a.kb=!1);return b})},Yrc=function(a){Zrc(a,6,5,function(b,c){b=_.bj(b,"format","base64json","p",_.Bj(c.Lc(),3));_.Hg(new Image,b);return!0})},Zrc=function(a,b,c,d){if(0!==a.O.length){var e=_.Rla(Src(a),"format");e=_.bj(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=Lrc(Krc(a.ka.clone()),h);0===f&&Mrc(k,a.va);if(!d(e,k))break;a.O=
a.O.slice(h.length)}a.H.enabled&&a.H.stop();a.va=0}},Wrc=function(){_.ti.call(this,"event-logged",void 0)};_.K(Wrc,_.ti);

_.u();

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

var $rc=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],C=e[2],G=e[3],H=e[4];for(z=0;80>z;z++){if(40>z)if(20>z){var L=G^A&(C^G);var M=1518500249}else L=A^C^G,M=1859775393;else 60>z?(L=A&C|G&(A|C),M=2400959708):(L=A^C^G,M=3395469782);L=((r<<5|r>>>27)&4294967295)+
L+H+M+v[z]&4294967295;H=G;G=C;C=(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]+C&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,C=r.length;A<C;++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}}},asc=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("Re`"+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("Se`"+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 csc=function(a,b,c){var d=String(_.n.location.href);return d&&a&&b?[b,bsc(asc(d),a,c||null)].join(" "):null},bsc=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],_.Ia(d,function(k){e.push(k)}),dsc(e.join(" "));var f=[],h=[];_.Ia(c,function(k){h.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=_.oa(f)?[c,b,a]:[f.join(":"),c,b,a];_.Ia(d,function(k){e.push(k)});a=dsc(e.join(" "));a=[c,a];_.oa(h)||a.push(h.join(""));return a.join("_")},dsc=function(a){var b=
$rc();b.update(a);return b.digestString().toLowerCase()};
var esc={};
var fsc,hsc;fsc=function(a){return!!esc.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};_.gsc=function(a){a=void 0===a?!1:a;var b=_.n.__SAPISID||_.n.__APISID||_.n.__3PSAPISID||_.n.__OVERRIDE_SID;fsc(a)&&(b=b||_.n.__1PSAPISID);if(b)return!0;var c=new _.fQa(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");fsc(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};hsc=function(a,b,c,d){(a=_.n[a])||(a=(new _.fQa(document)).get(b));return a?csc(a,c,d):null};
_.isc=function(a,b){b=void 0===b?!1:b;var c=asc(String(_.n.location.href)),d=[];if(_.gsc(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 _.fQa(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?csc(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&fsc(b)&&((b=hsc("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=hsc("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",
a))&&d.push(a))}return 0==d.length?null:d.join(" ")};

_.u();

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

_.jsc=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=_.Arc;this.H=""};
_.jsc.prototype.build=function(){var a=new _.JI(this.ka,this.Ka?this.Ka:_.isc,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;_.y(b,1)||_.w(b,1,1);_.I(a.ka,1,b)}if(this.O){b=this.O;var c=_.B(a.ka,_.Grc,1),d=_.B(c,_.Erc,11);d||(d=new _.Erc);_.w(d,7,b);_.I(c,11,d);_.y(c,1)||_.w(c,1,1);_.I(a.ka,1,c)}this.ha&&(a.Fa=this.ha);this.H&&(a.Ka=this.H);this.Ba&&_.Trc(a,this.Ba);this.Qa&&(b=this.Qa,a.V||(a.V=new _.Drc),_.Ij(a.V,2,b));this.Ha&&(b=this.Ha,
a.Rb=!0,_.Vrc(a,b));return a};

_.u();

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

_.ksc=function(a,b,c){a.O[b.getId()]=c;a.H&&c.O(a.H)};_.lsc=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null};_.lsc.prototype.DA=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=_.II(new _.HI,a.Lc());b(a);return new _.Xh(function(d){c(d,function(){d()})}.bind(this))};
_.msc=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null;this.O&&_.Urc(this.O)};_.msc.prototype.DA=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=_.II(new _.HI,a.Lc());b(a);c()};

_.u();

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

var nsc=function(a){_.J.call(this,a)};_.K(nsc,_.J);nsc.prototype.getEmail=function(){return _.D(this,3,"")};nsc.prototype.mp=function(){return _.Cj(this,3)};_.KI=function(a){return _.B(a,nsc,36,1)};

_.u();

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

_.LI=function(a){_.J.call(this,a)};_.K(_.LI,_.J);_.LI.prototype.se=function(){return _.B(this,_.Cf,1)};_.MI=function(a,b){return _.I(a,1,b)};_.LI.prototype.Mg=function(){return _.y(this,4)};_.LI.prototype.yoa=function(a){return _.w(this,4,a)};

_.u();

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


_.u();

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

_.NI=function(a,b){a.H=b;a.ka=0};_.OI=function(a,b){return _.w(a,b,_.lb([]))};_.osc=function(a){if(_.zma)return _.n.atob(a);var b="";_.Bma(a,function(c){b+=String.fromCharCode(c)});return b};_.PI=function(a,b,c,d,e,f,h){_.JI.call(this,a,_.isc,b,_.Arc,c,d,e,void 0,f,h)};_.K(_.PI,_.JI);

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var psc,ssc;psc=[3,42];_.qsc=function(a){_.J.call(this,a,-1,psc)};_.K(_.qsc,_.J);_.qsc.prototype.getMimeType=function(){return _.y(this,27)};_.rsc=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};ssc=function(a,b){if(b&&a in b)return a;var c=_.RFa();return c?(c=c.toLowerCase(),a=c+_.via(a),void 0===b||a in b?a:null):null};
var tsc=function(a){_.ti.call(this,"visibilitychange");this.hidden=a};_.K(tsc,_.ti);
_.usc=function(a){_.Di.call(this);this.Zc=a||_.oc();if(this.Lz=this.Hrb())this.H=_.Oe(this.Zc.Vb(),this.Lz,(0,_.N)(this.t$a,this))};_.Yf(_.usc,_.Di);_.g=_.usc.prototype;_.g.Hrb=_.kda(function(){var a=this.ru(),b="hidden"!=this.Nza();if(a){var c;b?c=((_.RFa()||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});_.g.Nza=_.kda(function(){return ssc("hidden",this.Zc.Vb())});_.g.otb=_.kda(function(){return ssc("visibilityState",this.Zc.Vb())});_.g.ru=function(){return!!this.Nza()};
_.g.JB=function(){return!!this.Zc.Vb()[this.Nza()]};_.g.t$a=function(){var a=this.ru()?this.Zc.Vb()[this.otb()]:null;a=new tsc(this.JB(),a);this.dispatchEvent(a)};_.g.Ya=function(){_.Bi(this.H);_.usc.wb.Ya.call(this)};

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.QI=function(a,b){a.V.remove(b);return a};_.RI=function(){return"goog_"+_.sia++};_.vsc=function(a,b,c,d,e,f){var h=new _.kj(null,void 0);a&&_.lj(h,a);b&&_.hma(h,b);c&&_.mj(h,c);d&&_.nj(h,d);e&&h.Ki(e);f&&_.oj(h,f);return h};_.SI=function(a){return new _.Xh(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],_.Nja(h,_.Db(e,f,!0),_.Db(e,f,!1));else b(d)})};
_.TI=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 _.Iq(c,e,d-c,a-e)}return null};_.UI=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};_.UI.prototype.clone=function(){return new _.UI(this.start,this.end)};_.VI=function(a){return a.end-a.start};_.WI=function(a,b,c){_.O.call(this);this.Jn=null!=c?a.bind(c):a;this.ha=b;this.W=null;this.O=!1;this.V=0;this.H=null};
_.K(_.WI,_.O);_.g=_.WI.prototype;_.g.ne=function(a){this.W=arguments;this.H||this.V?this.O=!0:wsc(this)};_.g.stop=function(){this.H&&(_.Gi(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,wsc(this))};_.g.Ya=function(){_.O.prototype.Ya.call(this);this.stop()};var wsc=function(a){a.H=_.Fi(function(){a.H=null;a.O&&!a.V&&(a.O=!1,wsc(a))},a.ha);var b=a.W;a.W=null;a.Jn.apply(null,b)};

_.u();

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

var xsc=function(a){_.J.call(this,a)},Csc;_.K(xsc,_.J);var ysc=function(a){_.J.call(this,a)};_.K(ysc,_.J);_.XI=function(a){_.J.call(this,a)};_.K(_.XI,_.J);_.XI.prototype.s4=function(a){_.w(this,3,a)};_.XI.prototype.Ol=function(a){return _.I(this,5,a)};_.XI.prototype.getMimeType=function(){return _.y(this,7)};var zsc=[2],Asc=function(a){_.J.call(this,a,-1,zsc)};_.K(Asc,_.J);var Bsc=function(a){_.J.call(this,a)};_.K(Bsc,_.J);Csc=function(a){this.H=a};_.Dsc=function(a){this.Cd=a};
_.Dsc.prototype.getId=function(){return this.Cd};var Esc=function(a){_.J.call(this,a)};_.K(Esc,_.J);Esc.prototype.hj=function(){return _.y(this,1)};var Fsc=function(a){_.J.call(this,a)};_.K(Fsc,_.J);
var Hsc=function(){this.O=this.ha=!1;this.H=null;for(var a=this.W=this.V=0;a<_.$Aa.length;a++){var b=_.$Aa[a];if(b&&b.chrome&&b.chrome.runtime&&b.chrome.runtime.connect){this.ha=!0;Gsc(this,b);break}}},Gsc=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})};
Hsc.prototype.DA=function(a){if(this.ha&&this.O){var b=_.B(a,_.Tb,2)||new _.Tb,c=_.B(a,_.$o,5)||new _.$o,d=_.B(a,_.XI,3)||new _.XI;a=_.Oj(a,_.Zya,1);a=_.m(a);for(var e=a.next();!e.done;e=a.next())this.H.postMessage({detail:{impression:e.value.Lc(),session_info:b.Lc(),session_invariants:c.Lc(),client_info:d.Lc()}});document.dispatchEvent(new CustomEvent("ripple",{detail:{clientX:this.V,clientY:this.W}}))}};
var Isc=function(){_.To.call(this)};_.K(Isc,_.To);Isc.prototype.wv=function(){return 1==_.y(_.B(this.H,xsc,7),1)};var Jsc=new _.Oo("high_frequency_builder");
var Ksc=function(a,b,c){a=new _.Ei(a);c.Ma(a);var d=new _.Ye(c);c.Ma(d);d.listen(a,"tick",b);a.start()};
var Lsc=function(){_.To.call(this)};_.K(Lsc,_.To);var Msc=function(a,b,c){var d=1E3*Date.now();if(0==b){b=new _.Fo;var e=new _.xya;e=_.w(e,1,d);_.I(b,1,e);_.w(b,3,1);_.I(a.H,8,b);_.w(a.H,12,c);_.w(a.H,13,c);_.w(a.H,4,d);_.w(a.H,3,c)}else 1==b&&(b=new _.Fo,e=new _.yya,d=_.w(e,1,d),_.I(b,2,d),_.w(b,3,2),_.I(a.H,8,b),_.w(a.H,12,c),_.w(a.H,3,c));return a},Nsc=new _.Oo("system_builder");
var Osc=function(a,b){_.O.call(this);this.O=a;this.H=new _.usc(b);this.Ma(this.H);this.Cb=new _.Ye(this);this.Ma(this.Cb);this.H.ru()&&this.Cb.listen(this.H,"visibilitychange",this.V)};_.K(Osc,_.O);Osc.prototype.V=function(){if(this.O.oP()){var a=this.H.JB()?102001:102E3;a=this.O.LF(a,0);this.O.Wp(a)}};
var Psc=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};_.K(Psc,_.O);_.g=Psc.prototype;_.g.Wp=function(a){var b=this.H;_.w(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.ne();return new Csc(a)};_.g.LF=function(a,b){a=Msc(Qsc(this.H,a),b,this.H.ha++);1==b&&this.H.ka.add(a);return a};_.g.FL=function(){return this.H.O};
_.g.hw=function(a){var b=this.H,c=_.Uo(a,Nsc),d=b.ha++,e=_.B(_.B(c.H,_.Fo,8),_.yya,2),f=1E3*Date.now();_.w(e,2,f);_.w(c.H,13,d);b.ka.remove(_.y(a.H,12))};_.g.HZ=function(){var a=this.O;if(!a.ha||a.H.V){var b=Rsc(a.H,691).build();b=Ssc(a.H,[b]);a.ka.DA(b)}a.W();this.H.ma=!1;this.V&&(_.aa(this.V),this.V=null)};_.g.IZ=function(){var a=this.H,b=Rsc(a,716);Tsc(a,b);b=b.build();a.H.add(b);a.va=!0;a.ma=!0;this.O.initialize();this.O.O.ne();this.W&&(this.V=new Osc(this))};_.g.fja=function(){this.O.W();return _.SI(Array.from(this.O.V)).then()};
_.g.oP=function(){var a=this.H;return a.va&&a.ma&&!0};
var Usc=function(a,b,c,d,e){_.O.call(this);this.H=a;this.ta=b;this.ka=c;this.O=new _.WI(this.W,3E3,this);this.V=new Set;this.ha=d;this.ma=e||6E4};_.K(Usc,_.O);Usc.prototype.initialize=function(){Ksc(this.ma,this.O.ne,this.O);Ksc(36E5,this.va,this)};Usc.prototype.W=function(){var a=this;if(0!=this.H.H.$b()&&(!this.ha||this.H.V)){var b=Vsc(this.H),c=this.ta.DA(b);c&&(_.ci(c,function(){return void a.V.delete(c)}),this.V.add(c))}};
Usc.prototype.va=function(){var a=this.H,b=Rsc(a,1153).build();a.H.add(b);this.O.ne()};
var Wsc=function(a){_.O.call(this);this.H=a;this.Ma(this.H)};_.K(Wsc,_.O);_.g=Wsc.prototype;_.g.Wp=function(a){a=this.H.Wp(a);this.fja();return a};_.g.LF=function(a,b){return this.H.LF(a,b)};_.g.FL=function(){return this.H.FL()};_.g.hw=function(a){return this.H.hw(a)};_.g.HZ=function(){return this.H.HZ()};_.g.IZ=function(){return this.H.IZ()};_.g.fja=function(){return this.H.fja()};_.g.oP=function(){return this.H.oP()};
var Xsc=function(){};Xsc.prototype.EQ=function(){return new Isc};
var Ysc=function(){this.H=[]};Ysc.prototype.add=function(a){this.H.push(a)};Ysc.prototype.$b=function(){return this.H.length};
var Zsc=function(){this.H={}};Zsc.prototype.add=function(a){var b=_.y(a.H,12);this.H[b]=a};Zsc.prototype.remove=function(a){delete this.H[a]};
var $sc=function(a,b){this.O=a;this.Ba=b;this.ha=1;this.ta=this.W=null;this.ka=new Zsc;this.H=new Ysc;this.ma=this.va=this.V=!1},Qsc=function(a,b){a=_.Uo((new _.To).initialize(new _.Zya,a.Ba),Nsc);_.w(a.H,10,b);return a},Vsc=function(a){var b=a.H,c=b.H;b.H=[];return Ssc(a,c)},Ssc=function(a,b){var c=new _.oAa;var d=a.O.W.clone();c=_.I(c,2,d);d=a.O;(d=d.O?d.O.clone():null)&&_.I(c,5,d);var e;d=a.O;for(var f,h=b.length-1;0<=h;h--){var k=_.B(b[h],_.Mo,5);if(k&&_.B(k,_.qsc,1)){k=_.B(k,_.qsc,1);_.Cj(k,
12)&&void 0===e&&(e=_.P(k,12));k=_.B(k,ysc,20);if(void 0!==k&&void 0===f){f=new Fsc;var l=_.P(k,2);void 0!==l&&_.w(f,2,l);k=_.P(k,1);void 0!==k&&_.w(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 _.XI),void 0!==e&&_.w(d,6,e),void 0!==f&&_.I(d,13,f);(e=d)&&_.I(c,3,e);a=a.O.ha.clone();_.I(c,4,a);_.Kj(c,1,b);return c},Rsc=function(a,b){var c=Msc(Qsc(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 Bsc;k=_.w(p,1,k);l=_.y(l.H,10);l=_.w(k,2,l);f.push(l)}d=f}716!=b&&(b=a.ta,_.w(c.H,6,a.W),e=new Asc,b=_.w(e,1,b),d&&_.Kj(b,2,d),d=_.Vo(c),_.I(d,3,b));Tsc(a,c);return c},Tsc=function(a,b){a.W=_.y(b.H,12);a.ta=_.y(_.B(_.B(b.H,_.Fo,8),_.xya,1),1)};
var atc=function(){};atc.prototype.EQ=function(){return new Lsc};
var btc=function(){this.H=this.O=null};btc.prototype.build=function(){null==this.H&&(this.H=new _.Cza);_.Xo(this.H,Nsc,new atc);_.Xo(this.H,Jsc,new Xsc);var a=this.H;var b=this.O;if(!_.Cj(_.ctc(b),1)){var c=_.ctc(b),d=new _.Uza;_.I(c,1,d)}b=_.B(_.ctc(b),_.Uza,1);a.H=b;b=_.Qa(a.O);for(c=0;c<b.length;c++)b[c].O(a.H);return new $sc(this.O,this.H)};
var dtc=function(){this.W=new _.Tb;this.O=null;this.ha=new Esc;_.w(this.ha,1,6);this.H=this.V=null};dtc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.etc=function(a,b){_.w(a.W,2,b);return a};_.ftc=function(a,b){if(null==a.V){a.V=new _.mAa;var c=_.ctc(a);_.I(c,2,a.V)}_.w(a.V,1,b)};_.ctc=function(a){null==a.O&&(a.O=new _.$o);return a.O};_.gtc=function(a){null==a.H&&(a.H=new _.XI);return a.H};
_.htc=function(){this.H=this.ha=null;this.W=new dtc;this.V=null;this.ka=this.ma=!1;this.O=null};_.itc=function(a,b){a.ha=b;return a};_.jtc=function(a,b){a.H=b;return a};_.ktc=function(a,b){a.V=b;return a};_.htc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.ltc=function(a,b){_.w(a.W.W,6,b);return a};
_.htc.prototype.build=function(){var a=new btc;a.O=this.W;null!=this.V&&(a.H=this.V);a=a.build();if(this.ka){var b=new Hsc;this.H=this.ha=b}b=new Usc(a,this.ha,this.H,this.ma,this.O);a=new Psc(a,b,!1);this.ka&&(a=new Wsc(a));return a};

_.u();

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

_.YI=function(a){return a instanceof Error};_.ZI=function(a){return _.Q(a,84,!1)};
_.mtc=function(a){_.J.call(this,a)};_.K(_.mtc,_.J);
_.$I=function(a){_.J.call(this,a)};_.K(_.$I,_.J);_.$I.prototype.getOptions=function(){return _.B(this,_.mtc,1)};_.$I.prototype.Yn=function(){return _.y(this,2)};_.$I.prototype.ud=function(){return _.B(this,_.nf,3)};
_.ntc=function(a){_.J.call(this,a)};_.K(_.ntc,_.J);_.aJ=[3,4,5,6,7,8,9,10];
_.otc=new Map([[157,"categoryReferences"],[5,"hidden"]]);
var bJ,qtc;bJ={};_.ptc=(bJ[1]="modifiedDate",bJ[2]="modifiedByMeDate",bJ[3]="quotaBytesUsed",bJ[4]="title",bJ[6]="lastViewedByMeDate",bJ[10]="createdDate",bJ[7]="sharedWithMeDate",bJ[9]="starred",bJ[11]="recency",bJ[5]="relevance",bJ[12]="trashedDate",bJ[13]="lastViewedByMeDate",bJ);qtc={};_.rtc=(qtc[1]="asc",qtc[2]="desc",qtc);
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.stc=function(a,b,c,d,e,f,h){a="number"===typeof a?Date.UTC(a,b||0,c||1,d||0,e||0,f||0,h||0):a?a.getTime():_.Wf();this.date=new Date(a)};_.Yf(_.stc,_.Tt);_.g=_.stc.prototype;_.g.clone=function(){var a=new _.stc(this.date);a.uG=this.uG;a.gV=this.gV;return a};_.g.add=function(a){(a.W||a.V)&&_.St.prototype.add.call(this,new _.Rt(a.W,a.V));this.date=new Date(this.date.getTime()+1E3*(a.seconds+60*(a.O+60*(a.H+24*a.dw))))};_.g.getTimezoneOffset=function(){return 0};_.g.getFullYear=_.Tt.prototype.getUTCFullYear;
_.g.getMonth=_.Tt.prototype.getUTCMonth;_.g.getDate=_.Tt.prototype.getUTCDate;_.g.getHours=_.Tt.prototype.getUTCHours;_.g.getMinutes=_.Tt.prototype.getUTCMinutes;_.g.getSeconds=_.Tt.prototype.j9a;_.g.getMilliseconds=_.Tt.prototype.i9a;_.g.getDay=_.Tt.prototype.getUTCDay;_.g.setFullYear=_.Tt.prototype.setUTCFullYear;_.g.setMonth=_.Tt.prototype.setUTCMonth;_.g.setDate=_.Tt.prototype.setUTCDate;_.g.setHours=_.Tt.prototype.JLa;_.g.setMinutes=_.Tt.prototype.KLa;_.g.setSeconds=_.Tt.prototype.LLa;
_.g.setMilliseconds=_.Tt.prototype.k9a;
var ttc,vtc;ttc={};_.utc=(ttc[1]="0",ttc[2]="1",ttc[3]="2",ttc);vtc={};_.wtc=(vtc[1]="asc",vtc[2]="desc",vtc);
_.xtc=new _.Oo("drive_dataservice_builder");
_.ytc=_.eh&&0>_.rg(_.hh,"533");
_.ztc=new _.Dsc("drive_dataservice_invariants");
_.Atc=new Map([[[1],1],[[6],7],[[2],2]]);_.Btc=new Map([[[1],3],[[2],4],[[3],5],[[4],6],[[5],7],[[6],8],[[10],12],[[7],9],[[8],10],[[9],11]]);
_.Ctc=new Map([[12,function(a){return _.P(a,69)}],[24,function(a){return _.Q(a,3,!1)}],[9,function(a){return _.Q(a,17,!1)}],[21,function(a){return _.ZI(a)}],[13,function(a){return _.P(a,60)}],[2,function(a){return _.Q(a,8,!0)}],[6,function(a){return _.Q(a,11,!1)}],[14,function(){return!0}],[16,function(a){return _.Q(a,56,!1)}],[17,function(a){return _.Q(a,57,!1)}],[18,function(a){return _.Q(a,54,!1)}],[19,function(a){return _.Q(a,53,!1)}],[23,function(){return!0}],[28,function(){return!0}]]);
_.Dtc=new Map([[36,function(a){return _.Q(a,11,!1)}],[34,function(a){return _.Q(a,9,!1)}],[25,function(a){return _.Q(a,1,!1)}],[33,function(a){return _.Q(a,8,!1)}],[26,function(a){return _.Q(a,2,!1)}],[29,function(a){return _.Q(a,4,!1)}],[32,function(a){return _.Q(a,7,!1)}],[40,function(a){return _.Q(a,15,!1)}],[43,function(a){return _.Q(a,18,!1)}],[42,function(a){return _.Q(a,17,!1)}],[44,function(a){return _.Q(a,19,!1)}],[30,function(a){return _.Q(a,5,!1)}],[31,function(a){return _.Q(a,6,!1)}],
[35,function(a){return _.Q(a,10,!1)}],[38,function(a){return _.Q(a,13,!1)}],[39,function(a){return _.Q(a,14,!1)}],[41,function(a){return _.Q(a,16,!1)}]]);_.Etc=new Map([[[1],1],[[2],2],[[3],3],[[4],4],[[5],5]]);
_.Ftc=new Map([[[3,4,5,6,8],3],[[1],1],[[15],15],[[2],2],[[7],4],[[9],5],[[10],6],[[11],7],[[16],16],[[12],8],[[13],9],[[14],10],[[200],200],[[201],201],[[202],202],[[203],203],[[204],204],[[205],205],[[206],206],[[207],207],[[208],208],[[209],209],[[210],210],[[211],211],[[212],212],[[213],213],[[214],214],[[215],215],[[216],216],[[217],217],[[218],218],[[219],219],[[220],220],[[221],221],[[222],222],[[223],223],[[224],224],[[225],225],[[226],226],[[227],227],[[228],228],[[229],229],[[230],230],
[[231],231],[[232],232],[[233],233],[[234],234],[[235],235],[[236],236],[[237],237],[[238],238],[[239],239],[[240],240],[[241],241],[[242],242],[[251],251],[[243],243],[[244],244],[[245],245],[[246],246],[[247],247],[[248],248],[[249],249],[[250],250],[[252],252],[[253],253],[[254],254],[[255],255],[[256],256]]);_.Gtc=new Map([[[2],3],[[1],2],[[0],1]]);_.Htc=new Map([[[0],1],[[1],2],[[3],3],[[5],4],[[6],5]]);
_.Itc=new Map([[[_.Xqc],1],[[_.Yqc],2],[[_.Zqc],3],[[_.$qc],4],[[_.arc],5],[[_.brc],6],[[_.crc],7],[[_.drc],8],[[_.erc],10],[[_.frc],11],[[_.grc],12],[[_.hrc],13]]);_.Jtc=new Map([[[0],1],[[1],2],[[2],3],[[3],4],[[4],5],[[5],6],[[6],7]]);

_.u();

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

_.cJ=function(a){_.J.call(this,a,-1,Ktc)};_.K(_.cJ,_.J);_.cJ.prototype.Ac=function(){return _.y(this,2)};_.dJ=function(a,b){return _.w(a,2,b)};_.g=_.cJ.prototype;_.g.Ck=function(){return _.Q(this,3,!1)};_.g.getItem=function(){return _.B(this,_.hl,4)};_.g.setItem=function(a){return _.I(this,4,a)};_.g.yc=function(){return _.y(this,7)};_.g.P9=function(){return _.y(this,13)};_.g.WHa=function(a){_.w(this,13,a)};var Ktc=[8,17];

_.u();

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


_.u();

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

var Ntc;_.gJ=function(a){if(a instanceof _.Cc)return a;if(_.YI(a)){if(a=_.oIb(a))return a}else a="string"===typeof a?_.NEa(a):_.NEa("Converting an unexpected reason type to drive.ds.Error which should be drive.ds.Error, Error, or string. Found:"+a);_.eJ(a,2);_.fJ(a,6);return a};_.Ltc=function(a){var b=a.zk();a=a.JF();return 15===b||32===b||33===b||401===a};_.Mtc=function(){return _.n.WorkerGlobalScope&&self instanceof _.n.WorkerGlobalScope};_.hJ=function(a){return _.ak(a,1,0)};
_.eJ=function(a,b){return _.w(a,1,b)};_.fJ=function(a,b){return _.w(a,2,b)};Ntc=[8,9,10,13,14,27,28,29,31,32,33,34,38];_.iJ=function(a){_.J.call(this,a,-1,Ntc)};_.K(_.iJ,_.J);_.g=_.iJ.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Ob=function(a){return _.w(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.w(this,2,a)};_.g.Bf=function(){return _.y(this,3)};_.g.Xl=function(a){return _.w(this,3,a)};_.g.Jv=function(a){return _.w(this,4,a)};
_.g.Wh=function(){return _.P(this,5)};_.g.Mn=function(a){return _.w(this,5,a)};_.g.getMimeType=function(){return _.y(this,6)};_.g.rE=function(a,b){_.Mj(this,8,a,b)};_.g.Yi=function(){return _.y(this,12)};_.g.se=function(){return _.B(this,_.Cf,17)};_.g.hj=function(){return _.y(this,20)};_.g.yc=function(){return _.y(this,21)};_.jJ=function(a,b){return _.w(a,16,b)};
_.kJ=function(a){_.J.call(this,a,-1,Otc)};_.K(_.kJ,_.J);_.kJ.prototype.LQ=function(){return _.ak(this,2,100)};_.kJ.prototype.CO=function(a){return _.w(this,2,a)};_.kJ.prototype.se=function(){return _.B(this,_.Cf,6)};_.kJ.prototype.yc=function(){return _.y(this,8)};var Otc=[5];
_.Ptc=new Map([[1,"connected"],[2,"unauthenticated/online"],[3,"offline"]]);
var Qtc;Qtc={};_.Rtc=(Qtc[0]="/drive/v2internal",Qtc[1]="/drive/v2internal.corp",Qtc[2]="/drive/v2internal.scary",Qtc[4]="/drive/v2internal.scary",Qtc[5]="/drive/v2beta",Qtc[6]="/drive/v2.1beta",Qtc);
_.Stc=new Set([0,1,2,3]);
_.Ttc=_.w(new _.iJ,15,!0);_.Utc=_.jJ(new _.iJ,!0);_.Vtc=_.jJ(new _.iJ,!1);
_.Wtc=new Map([["CacheSize","Number of items currently in the in-memory cache."],["SecondaryFields","List of secondary fields"],["CachedCorpusType","Type of corpus cached (full, partial)."],["InitialChanges","Status of initial catchup changelog requests."],["SdkBackfillEnabled","Whether backfill via Drive SDK is enabled."],["UploadFailureCount","Number of failed uploads."],["UploadSuccessCount","Number of successful uploads."],["UploadTotalCount","Number of initiated uploads."],["InitialViewDataLoaded",
"Whether initial view data was loaded before the initial query."]]);

_.u();

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

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

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Ytc=function(a){a=_.eb(a);return 0===a.length?_.Nha:new _.vg(a,_.Lha)};_.Ztc=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)};_.Yf(_.Ztc,_.Qqc);_.Ztc.prototype.reset=function(){this.H.reset();this.H.update(this.O)};
_.Ztc.prototype.update=function(a,b){this.H.update(a,b)};_.Ztc.prototype.digest=function(){var a=this.H.digest();this.H.reset();this.H.update(this.V);this.H.update(a);return this.H.digest()};_.$tc=function(a,b){a.reset();a.update(b);return a.digest()};
_.auc=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()};_.Yf(_.auc,_.Qqc);_.auc.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 buc=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};
_.auc.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;)buc(this,a,d),d+=this.blockSize;if("string"===typeof a)for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.blockSize){buc(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.blockSize){buc(this,e);f=0;break}}this.O=f;this.V+=b}};
_.auc.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;buc(this,this.ha);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.H[c]>>d&255,++b;return a};

_.u();

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

_.lJ=function(a,b){return _.w(a,82,b)};_.mJ=function(a){return _.w(a,3,!0)};_.cuc=function(a,b){return _.w(a,7,b)};
_.duc=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
*/
_.nJ={m_:"Versions",O6:"Metadata",A5:"Data",fU:"Offline"};_.euc=new Map([[_.nJ.m_,"versionKey"],[_.nJ.O6,"k"]]);_.fuc=new Set([1004]);

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.guc=function(a,b,c){c&&(a=_.Pg(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=_.Og(a));return a};_.huc=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};
_.iuc=function(a,b,c){void 0===c&&(c=a.size);return a.slice?a.slice(b,c):null};

_.u();

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

_.juc=function(a){_.J.call(this,a)};_.K(_.juc,_.J);_.g=_.juc.prototype;_.g.getKey=function(){return _.y(this,1)};_.g.et=function(){return _.Cj(this,1)};_.g.Za=function(){return _.y(this,2)};_.g.Jb=function(a){return _.w(this,2,a)};_.g.Ti=function(){return _.pb(this,2)};_.g.Og=function(){return _.Cj(this,2)};
_.oJ=function(a){_.J.call(this,a,-1,kuc)};_.K(_.oJ,_.J);_.oJ.prototype.Vz=function(){return _.y(this,1)};_.oJ.prototype.getUrl=function(){return _.y(this,3)};var kuc=[2,4,6];

_.u();

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

var ouc,puc,ruc;_.luc=function(a){var b={};_.La(a,function(c,d){b[d.toLowerCase()]=c});return b};_.muc=function(a){return(a=a&&_.luc(a))&&a["x-guploader-uploadid"]};_.nuc=function(a){return(a=a&&_.luc(a))&&a["x-google-trace"]};ouc=[6];_.pJ=function(a){_.J.call(this,a,-1,ouc)};_.K(_.pJ,_.J);_.qJ=function(a,b){return _.w(a,14,b)};
_.quc=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=puc(e)||new _.Cc;_.w(e,8,!0);k&&(k=_.oj(new _.kj(k),void 0).toString(),_.w(e,19,k));e.JF()||_.w(e,15,a||f);e.getMessage()||_.mq(e,["HTTP status code: "+a,"HTTP status text: "+b,"XHR error code: "+f,"XHR error text: "+h].join(", "));_.y(e,4)||_.nq(e,d);e.zk()||(5===f?_.qJ(e,7):0!==a||d?403===a?_.qJ(e,22):503===a||429===a?_.qJ(e,24):(_.pb(e,14),_.w(e,10,1),_.w(e,8,!0)):l||_.qJ(e,2));e.Hca(_.muc(c));
e.yca(_.nuc(c));return e};puc=function(a){if(!_.Ba(a))return null;var b=new _.Cc,c=a.error;if(!c)return _.nq(b,JSON.stringify(a)),null;_.w(b,15,c.code);_.mq(b,c.message);a=c.errors&&c.errors[0];if(!a)return b;c=a.reason;var d=ruc[c];d?_.w(b,10,d):c&&!d&&_.w(b,10,2);(a=a.debugInfo)&&_.nq(b,a);return b};
ruc={appliedCategoryLimitExceeded:64,authError:15,backendError:9,badContent:14,badRequest:11,cannotAddParent:63,cannotMoveTrashedItemIntoTeamDrive:45,conflict:8,conversionCorruptedInput:16,conversionInputDoesNotMatchSpecifiedMimeType:17,conversionInputTooLarge:18,conversionInvalidRequest:19,conversionInvalidLanguage:20,conversionMissingCredentials:21,conversionOutputTooLarge:22,conversionQuotaExceeded:23,conversionTimeout:24,conversionTooManyCharts:25,conversionTooManyDrawings:26,conversionTooManyImages:27,
conversionUnsupportedConversionPath:28,conversionUnsupportedLanguage:29,conversionUnsupportedFormat:30,deadlineExceeded:31,expiredMoveValidationToken:66,fileOwnerNotMemberOfTeamDrive:42,fileOwnerNotMemberOfTeamDriveDomain:43,fileOwnerNotMemberOfWriterDomain:47,fileWriterTeamDriveMoveInDisabled:46,forbidden:10,internalError:3,invalid:12,missingCookie:33,notFound:4,quotaExceeded:6,rateLimitExceeded:7,responseTooLarge:5,required:32,uploadBrokenConnection:35,shareOutNotPermittedForContent:50,crossDomainMoveRestriction:52,
teamDriveFileLimitExceeded:40,teamDriveHierarchyTooDeep:49,teamDriveMembershipRequired:48,teamDriveNameRequired:59,teamDriveNameTooLong:44,teamDrivesFileTypeNotSupported:39,teamDrivesFolderMoveInNotSupported:36,teamDrivesFolderMoveOutNotSupported:37,teamDrivesParentLimit:41,teamDrivesShortcutFileNotSupported:38,tooManyFiles:53,tooManySourceIdsForMove:65,tooManyUnmovableFiles:54,transientError:13,userCannotCreateFileForMimeType:51,userRateLimitExceeded:7,richContentLimitExceeded:55,numChildrenLimitExceeded:56,
sharedDriveInitializationInProgress:68,shortcutLimitExceeded:57,shortcutPerCreatorLimitExceeded:58,simultaneousPreflightLimitExceeded:67,mimeTypeSizeExceeded:60,onlyCriticalWritesAllowed:61,wrappedKeyExceededLimit:62,permissionDenied:69};

_.u();

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

var suc,tuc,xuc,Buc,Cuc,Duc,Vuc,oK,Wuc,Xuc,dvc,zuc,Lvc,yuc,mwc,owc,qwc,swc,Lwc,Mwc,Qwc,Rwc,Twc,Uwc,Wwc,Zwc,MK,OK,cxc,exc,hxc,ixc,jxc,kxc,lxc,mxc,pxc,rxc,sxc,Kxc,Oxc,Qxc,Rxc,Sxc,Xxc,$xc,evc,hyc,iyc,dyc,jyc,eyc,lyc,myc,syc,ryc,qyc,oyc,pyc,Ouc,Puc,Yuc,tyc,Zuc,$uc,avc,bvc,cvc,uyc,wyc;_.rJ=function(a,b,c){var d=new _.Cc,e=_.nka(_.rJ);_.w(d,20,e);_.fJ(d,a);_.eJ(d,b?b:2);c&&_.qJ(d,c);return d};
_.sJ=function(a){var b;a instanceof _.Cc?b=new _.Dc(null,a):_.YI(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=_.nka(_.sJ));return b};_.tJ=function(a){throw _.SB(a);};suc=function(a){return 7===a.zk()||24===a.Ip()&&(a=a.JF(),503===a||429===a)?!0:!1};tuc=function(a,b){return b?b+"("+a+")":a};
_.uJ=function(a,b,c){var d={},e=[];b&&e.push("kind");a.sAb&&e.push("searchResultSource");a.fields.forEach(function(p){if(!_.uuc.includes(p)){var q=_.ueb.get(p);if(q){var r=_.xeb[p];a.DE&&r&&(q=r);a.Aq&&(a.DE?(p=_.web[p])&&(q=p):(p=_.veb[p])&&(q=p));q.split(",").forEach(function(v){var z=_.wia(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={t5:f.t5},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;
f.t5=[];l.forEach(function(p){return function(q){p.t5.push(q)}}(f));"owners"==k&&b&&f.t5.push("kind");e.push(tuc(f.t5.join(","),k))}return tuc(e.join(","),c)};_.vuc=function(a){var b=new _.Wo;b.append(_.uJ(a,!0));return b.toString()};_.wuc=function(a,b){return a.filter(function(c){return b.includes(c)})};xuc=function(a){a=a.filter(function(b){return!_.ueb.has(b)});if(a.length)throw Error("Tc`"+a.join(", "));};
_.Auc=function(a){if(a){var b=a.getMimeType();b&&_.KG(a,b.toLowerCase());yuc(a,_.Oj(a,zuc,58).map(function(c){var d=c.getMimeType();d&&_.w(c,1,d.toLowerCase());return c}))}};Buc=function(a,b){b&&(_.rj(a,"openDrive",!!_.Q(b,2,!1)),_.rj(a,"reason",_.y(b,1)||0),_.rj(a,"syncType",_.y(b,3)||0),_.rj(a,"errorRecovery",!!_.Q(b,4,!1)))};Cuc=function(a){if(_.Ta(a))return"\r\n";var b="";_.La(a,function(c,d){b+=d+": "+c+"\r\n"});return b};
Duc=function(a){a=_.mq(_.qJ(_.eJ(new _.Cc,2),39),"Multiple resource key definitions found for itemId "+a);throw _.SB(a);};
Vuc=function(a){if(a instanceof _.vJ)return"request access";if(a instanceof _.wJ)return"admin migrate to TD";if(a instanceof _.xJ)return"authorize app";if(a instanceof _.yJ)return"copy item";if(a instanceof _.zJ)return"change category links";if(a instanceof _.AJ)return"create item";if(a instanceof _.BJ)return"create ws";if("undefined"!=typeof _.CJ&&a instanceof _.CJ)return"delete app";if("undefined"!=typeof _.DJ&&a instanceof _.DJ)return"delete backup";if(a instanceof _.EJ)return"delete item";if("undefined"!=
typeof _.FJ&&a instanceof _.FJ)return"delete permission";if(a instanceof _.GJ)return"delete revision";if(a instanceof _.HJ)return"delete TD";if(a instanceof _.XD)return"delete pref";if(a instanceof _.IJ)return"delete ws";if(a instanceof _.JJ)return"download item";if(a instanceof _.KJ||a instanceof _.LJ)return"empty trash";if(a instanceof _.MJ)return"find by ID";if(a instanceof _.zA)return"find by IDs";if(a instanceof _.Euc)return"item export start";if("undefined"!=typeof _.NJ&&a instanceof _.NJ)return"get app";
if("undefined"!=typeof _.OJ&&a instanceof _.OJ)return"insert app";if("undefined"!=typeof _.PJ&&a instanceof _.PJ)return"insert permission";if(a instanceof _.$I)return a=a.ud(),_.QJ(a)?"quick access item query":_.RJ(a)?"people predict item query":_.SJ(a)?"drive priority query":"item query";if("undefined"!=typeof _.TJ&&a instanceof _.TJ)return"list android backup items request";if(a instanceof _.UJ){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 _.Fuc&&a instanceof _.Fuc?"list backups":a instanceof _.kJ?"list changes":a instanceof _.VJ?"list permissions":"undefined"!=typeof _.WJ&&a instanceof _.WJ?"list revisions":a instanceof _.XJ?"migrate to shared drive":a instanceof _.YJ?"partial download item":a instanceof _.ZJ?"people api":a instanceof _.EG?"get published category":"undefined"!=typeof _.$J&&a instanceof _.$J?"get remaining changes":
a instanceof _.aK?"remove item":"undefined"!=typeof _.bK&&a instanceof _.bK?"reparent item":a instanceof _.cK?"restore item":a instanceof _.FG?"list suggested workspace items":a instanceof _.kA?"list suggested workspaces":"undefined"!=typeof _.fK&&a instanceof _.fK?"update app":a instanceof _.gK?"update category metadata":a instanceof _.iJ?"update item":a instanceof _.hK?"update revision":a instanceof _.iK?"update TD":a instanceof _.YD?"update pref":a instanceof _.jK?"update ws":a instanceof _.LI?
"get account":a instanceof _.JG?"get workspace":a instanceof _.Guc?"list activity":a instanceof _.Huc?"list category metadata":a instanceof _.Iuc?"create TD":"undefined"!=typeof _.Juc&&a instanceof _.Juc?"item export cancel":"undefined"!=typeof _.Kuc&&a instanceof _.Kuc?"item export status":"undefined"!=typeof _.Luc&&a instanceof _.Luc?"generate cse token":"undefined"!=typeof _.Muc&&a instanceof _.Muc?"get largest change ID":a instanceof _.WD?"list prefs":a instanceof _.kK?"multipart upload":a instanceof
_.Nuc?"list published categories":a instanceof Ouc?"init resumable upload":a instanceof Puc?"resumable upload chunk":a instanceof _.Quc?"resumable upload":a instanceof _.GG?"get TD":"undefined"!=typeof _.Ruc&&a instanceof _.Ruc?"move TD preflight":a instanceof _.lK?"list TDs":"undefined"!=typeof _.Suc&&a instanceof _.Suc?"get TD stats":a instanceof _.Tuc?"test connection":"undefined"!=typeof _.Uuc&&a instanceof _.Uuc?"list workspaces":"unknown"};
oK=function(a,b,c){null!=c&&(Array.isArray(c)?0<c.length&&a.push(b+": "+c.join(", ")):a.push(b+": "+c))};Wuc=function(a){if(a instanceof _.AJ||a instanceof _.kK||a instanceof _.Quc||a instanceof Ouc||a instanceof Puc)return(new _.pK).Dc(8);throw Error("ff");};Xuc=function(a){if(a instanceof _.iJ){var b=_.Jj(_.pb(a.clone(),1),17);b=_.Zj(b,_.Ttc)}else b=!1;b||(a instanceof _.iJ?(a=_.Jj(_.pb(a.clone(),1),17),b=_.Zj(a,_.Utc)||_.Zj(a,_.Vtc)):b=!1);return b?!1:!0};
_.qK=function(a){return Yuc.includes(a.constructor)?Xuc(a):!1};dvc=function(a,b){if(Zuc.includes(a.constructor))return!0;if(b){if(_.Q(b,54,!1)&&$uc.includes(a.constructor))return!0;var c=_.rK(b);if(c&&!_.Q(c,7,!1)&&avc.includes(a.constructor)&&!_.sK(a)||_.Q(b,56,!1)&&_.sK(a)||_.Q(b,57,!1)&&bvc.includes(a.constructor)||!(!_.Q(b,53,!1)||$uc.includes(a.constructor)||avc.includes(a.constructor)||_.sK(a)||bvc.includes(a.constructor)||cvc.includes(a.constructor)))return!0}return!1};
_.tK=function(a,b,c,d,e){if(_.Q(a,89,!1)){if(c&&c.length&&d){c=b.concat(evc(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)!==_.y(d,2)&&Duc(h):(a.set(h,_.y(d,2)),b.push(d))}f=b}else f=b;f.length&&(f=_.uA(f),f.length&&(e["X-Goog-Drive-Resource-Keys"]=f))}};_.fvc=function(a){var b=new _.Rk;return _.w(b,1,a)};_.gvc=function(a,b){return _.w(a,7,b)};_.hvc=function(a,b){return _.w(a,8,b)};
_.ivc=function(a,b){return _.w(a,11,b)};_.jvc=function(a,b){return _.w(a,1,b)};_.kvc=function(a,b){return _.w(a,4,b)};_.lvc=function(a,b){return _.w(a,5,b)};_.mvc=function(a,b){return _.w(a,6,b)};_.nvc=function(a,b){return _.w(a,7,b)};_.ovc=function(a,b){return _.w(a,8,b)};_.pvc=function(a,b){return _.w(a,9,b)};_.qvc=function(a,b){return _.w(a,10,b)};_.rvc=function(a,b){return _.w(a,11,b)};_.svc=function(a,b){return _.w(a,12,b)};_.tvc=function(a,b){return _.w(a,16,b)};
_.uvc=function(a,b){return _.w(a,17,b)};_.vvc=function(a,b){return _.w(a,20,b)};_.wvc=function(a,b){return _.w(a,21,b)};_.xvc=function(a,b){return _.w(a,31,b)};_.yvc=function(a,b){return _.w(a,32,b)};_.zvc=function(a,b){return _.w(a,33,b)};_.Avc=function(a,b){return _.w(a,42,b)};_.Bvc=function(a,b){return _.w(a,43,b)};_.Cvc=function(a,b){return _.w(a,46,b)};_.Dvc=function(a,b){return _.w(a,47,b)};_.Evc=function(a,b){return _.w(a,48,b)};_.uK=function(a){_.J.call(this,a)};_.K(_.uK,_.J);
_.Fvc=function(a){_.J.call(this,a)};_.K(_.Fvc,_.J);_.Gvc=function(a,b){return _.w(a,1,b)};_.Hvc=function(a,b){return _.w(a,2,b)};zuc=function(a){_.J.call(this,a)};_.K(zuc,_.J);zuc.prototype.getMimeType=function(){return _.y(this,1)};zuc.prototype.getUrl=function(){return _.y(this,2)};_.vK=function(a){_.J.call(this,a)};_.K(_.vK,_.J);_.vK.prototype.De=function(){return _.y(this,2)};_.vK.prototype.yh=function(a){return _.w(this,2,a)};_.vK.prototype.xh=function(a){return _.w(this,3,a)};
_.Ivc=function(a,b){return _.w(a,1,b)};_.Jvc=function(a,b){return _.Kj(a,2,b)};_.Kvc=function(a,b){return _.Kj(a,3,b)};Lvc=[2];_.wK=function(a){_.J.call(this,a,-1,Lvc)};_.K(_.wK,_.J);_.wK.prototype.Bf=function(){return _.y(this,1)};_.wK.prototype.Xl=function(a){return _.w(this,1,a)};_.wK.prototype.Vua=function(a,b){return _.Mj(this,2,a,b)};_.xK=function(a){_.J.call(this,a)};_.K(_.xK,_.J);_.xK.prototype.De=function(){return _.y(this,1)};_.xK.prototype.yh=function(a){return _.w(this,1,a)};
_.xK.prototype.xh=function(a){return _.w(this,2,a)};_.yK=function(a,b){return _.Ij(a,2,b)};_.Mvc=function(a,b){_.w(a,8,b)};_.Nvc=function(a,b){return _.Kj(a,15,b)};_.Ovc=function(a,b){return _.I(a,17,b)};_.Pvc=function(a,b){return _.w(a,19,b)};_.Qvc=function(a,b){_.w(a,26,b)};_.Rvc=function(a,b){_.w(a,31,b)};_.Svc=function(a,b){_.w(a,34,b)};_.Tvc=function(a,b){return _.w(a,44,b)};_.Uvc=function(a,b){_.I(a,47,b)};_.Vvc=function(a,b){return _.w(a,52,b)};yuc=function(a,b){_.Kj(a,58,b)};
_.Wvc=function(a,b){return _.w(a,72,b)};_.zK=function(a,b){return _.I(a,84,b)};_.Xvc=function(a,b){_.I(a,85,b)};_.Yvc=function(a,b){_.I(a,91,b)};_.Zvc=function(a,b){return _.w(a,92,b)};_.$vc=function(a,b){return _.w(a,93,b)};_.awc=function(a,b){_.I(a,95,b)};_.bwc=function(a,b){return _.w(a,136,b)};_.cwc=function(a){_.J.call(this,a)};_.K(_.cwc,_.J);_.AK=function(a){return _.Q(a,2,!1)};_.dwc=function(a){_.J.call(this,a)};_.K(_.dwc,_.J);var ewc=[3],fwc=function(a){_.J.call(this,a,-1,ewc)};_.K(fwc,_.J);
fwc.prototype.Ei=function(){var a=_.y(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}_.jb(this)&&_.kb(a);return a};var gwc=[3],hwc=function(a){_.J.call(this,a,-1,gwc)};_.K(hwc,_.J);hwc.prototype.Ei=function(){return _.fe(this,3)};var iwc=[3],jwc=function(a){_.J.call(this,a,-1,iwc)};_.K(jwc,_.J);jwc.prototype.Ei=function(){return _.fe(this,3)};_.BK=function(a){_.J.call(this,a)};_.K(_.BK,_.J);_.BK.prototype.Za=function(){return _.y(this,1)};
_.BK.prototype.Jb=function(a){return _.w(this,1,a)};_.BK.prototype.Ti=function(){return _.pb(this,1)};_.BK.prototype.Og=function(){return _.Cj(this,1)};_.CK=function(a){return _.Fj(a,45,1)};_.QJ=function(a){return _.Q(a,47,!1)};_.RJ=function(a){return _.Q(a,49,!1)};_.SJ=function(a){return _.Q(a,52,!1)};_.DK=function(a){return _.D(a,2,"")};_.rK=function(a){return _.B(a,_.dwc,4)};_.kwc=function(a,b){return _.Ij(a,27,b)};_.EK=function(a){return _.Fj(a,39,0)};_.FK=function(a){return _.Q(a,40,!1)};
_.lwc=function(a){return _.St.prototype.NO.call(a,!0)+"T"+_.Tg(a.getHours(),2)+":"+_.Tg(a.getMinutes(),2)+":"+_.Tg(a.getSeconds(),2)+a.i$()};mwc=function(a,b){return _.prc(a,"getAllKeys","getting all keys index "+a.getName(),b,void 0)};_.nwc=function(a,b){try{a.H.deleteObjectStore(b)}catch(c){throw _.EI(c,"deleting object store "+b);}};owc=function(){var a=new _.htc;a.O=12E4;a.ma=!0;return a};_.pwc=function(a){_.J.call(this,a)};_.K(_.pwc,_.J);qwc=[3,4,10,18,19,28];
_.AJ=function(a){_.J.call(this,a,-1,qwc)};_.K(_.AJ,_.J);_.g=_.AJ.prototype;_.g.getMimeType=function(){return _.y(this,1)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.w(this,2,a)};_.g.rE=function(a,b){_.Mj(this,3,a,b)};_.g.se=function(){return _.B(this,_.Cf,7)};_.g.fj=function(){return _.y(this,9)};_.g.yc=function(){return _.y(this,14)};_.g.Pz=function(){return _.B(this,_.pwc,15)};_.g.G1=function(){return _.y(this,21)};_.g.Ac=function(){return _.y(this,23)};
_.g.Aj=function(){return _.y(this,33)};_.GK=function(a,b){return _.w(a,1,b)};_.HK=function(a,b){return _.Ij(a,3,b)};_.rwc=function(a,b){return _.w(a,12,b)};_.EJ=function(a){_.J.call(this,a)};_.K(_.EJ,_.J);_.EJ.prototype.getId=function(){return _.y(this,1)};_.EJ.prototype.Ob=function(a){return _.w(this,1,a)};_.EJ.prototype.se=function(){return _.B(this,_.Cf,3)};_.HJ=function(a){_.J.call(this,a)};_.K(_.HJ,_.J);_.HJ.prototype.getId=function(){return _.y(this,1)};
_.HJ.prototype.Ob=function(a){return _.w(this,1,a)};_.HJ.prototype.se=function(){return _.B(this,_.Cf,2)};swc=[7,8];_.iK=function(a){_.J.call(this,a,-1,swc)};_.K(_.iK,_.J);_.g=_.iK.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Ob=function(a){return _.w(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.w(this,2,a)};_.g.se=function(){return _.B(this,_.Cf,4)};_.lK=function(a){_.J.call(this,a)};_.K(_.lK,_.J);
_.lK.prototype.getOptions=function(){return _.B(this,_.mtc,1)};_.lK.prototype.Yn=function(){return _.y(this,2)};_.lK.prototype.ud=function(){return _.B(this,_.yI,3)};var twc=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}},uwc=null,vwc=function(){this.O=0;this.H=[]};_.g=vwc.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=wwc(this,a);return this.H[a]};_.g.set=function(a,b){a=wwc(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.qh=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.Jf=function(){for(var a=[],b=this.$b(),c=0;c<b;c++)a[c]=c;return a};_.g.af=function(a){return a<this.$b()};_.g.Cq=function(a){for(var b=this.$b(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};
var wwc=function(a,b){if(b>=a.H.length)throw Error("ha");return 40>a.H.length?b:(a.O+Number(b))%40},xwc=function(a){_.J.call(this,a)};_.K(xwc,_.J);_.ywc=function(a){_.J.call(this,a)};_.K(_.ywc,_.J);_.ywc.prototype.Ye=function(){return _.y(this,1)};_.ywc.prototype.Ji=function(a){return _.w(this,1,a)};_.ywc.prototype.Bb=function(){return _.y(this,4)};_.ywc.prototype.Dc=function(a){return _.w(this,4,a)};var zwc=function(a){_.J.call(this,a)};_.K(zwc,_.J);zwc.prototype.Xn=function(){return _.y(this,5)};
var Awc=function(a,b){_.w(a,6,b)},Bwc=function(a){_.J.call(this,a)};_.K(Bwc,_.J);_.g=Bwc.prototype;_.g.ghb=function(a){_.w(this,1,a)};_.g.uOb=function(a){_.w(this,2,a)};_.g.Ay=function(){return _.P(this,3)};_.g.hhb=function(a){_.w(this,3,a)};_.g.$Nb=function(a){_.w(this,4,a)};var Cwc=function(a){_.J.call(this,a)};_.K(Cwc,_.J);Cwc.prototype.Ay=function(){return _.P(this,2)};var Dwc=function(a,b){return _.w(a,2,b)},Ewc=function(a,b){_.w(a,3,b)};Cwc.prototype.yB=function(){return _.y(this,6)};
var Fwc=function(a,b){return _.w(a,8,b)},Gwc=function(a){_.J.call(this,a)};_.K(Gwc,_.J);var Hwc=function(a){_.J.call(this,a)};_.K(Hwc,_.J);var Iwc=function(a,b){_.w(a,4,b)},Jwc=function(a){_.J.call(this,a)};_.K(Jwc,_.J);Jwc.prototype.ud=function(){return _.B(this,_.ywc,1)};Jwc.prototype.getState=function(){return _.B(this,zwc,2)};Jwc.prototype.Ld=function(a){return _.I(this,2,a)};Jwc.prototype.gt=function(){return _.Cj(this,2)};var Kwc=function(a){_.J.call(this,a)};_.K(Kwc,_.J);
Kwc.prototype.Kj=function(){return _.y(this,1)};Kwc.prototype.getEnvironment=function(){return _.y(this,2)};Kwc.prototype.setEnvironment=function(a){return _.w(this,2,a)};_.uuc=[42,1005,20,50,18,1003,1002];Lwc=[73,71];_.IK=function(a){_.J.call(this,a)};_.K(_.IK,_.J);_.IK.prototype.getId=function(){return _.y(this,1)};_.IK.prototype.Ob=function(a){return _.w(this,1,a)};_.IK.prototype.getMimeType=function(){return _.y(this,2)};Mwc=[22];_.pK=function(a){_.J.call(this,a,-1,Mwc)};_.K(_.pK,_.J);_.g=_.pK.prototype;
_.g.Bb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.w(this,1,a)};_.g.getItem=function(){return _.B(this,_.hl,2)};_.g.setItem=function(a){return _.I(this,2,a)};_.g.ak=function(){return _.y(this,3)};_.g.Ac=function(){return _.y(this,5)};_.Nwc=function(a,b){return _.w(a,5,b)};_.g=_.pK.prototype;_.g.WJ=function(){return _.y(this,7)};_.g.Hca=function(a){return _.w(this,7,a)};_.g.jfa=function(a){_.w(this,9,a)};_.g.iMa=function(a){_.w(this,10,a)};_.g.PM=function(){return _.y(this,16)};
_.g.yca=function(a){return _.w(this,16,a)};var Owc=function(a){var b=new _.di;a.listen("loadend",_.Db(function(c,d){var e=d.dk(),f=d.getError();null==e||f?c.Jd(f):c.callback(e);d.dispose()},b,a));return b},Pwc=function(a){_.ti.call(this,a);this.connectionState=_.oLb.get(a)};_.K(Pwc,_.ti);_.vJ=function(a){_.J.call(this,a)};_.K(_.vJ,_.J);_.vJ.prototype.Ac=function(){return _.y(this,1)};_.wJ=function(a){_.J.call(this,a)};_.K(_.wJ,_.J);_.wJ.prototype.getId=function(){return _.y(this,1)};
_.wJ.prototype.Ob=function(a){return _.w(this,1,a)};_.wJ.prototype.Ek=function(){return _.y(this,2)};_.wJ.prototype.O=function(a){_.w(this,4,a)};_.xJ=function(a){_.J.call(this,a)};_.K(_.xJ,_.J);_.xJ.prototype.Mh=function(){return _.y(this,1)};_.xJ.prototype.Ac=function(){return _.y(this,2)};_.xJ.prototype.se=function(){return _.B(this,_.Cf,4)};Qwc=[3,7];_.yJ=function(a){_.J.call(this,a,-1,Qwc)};_.K(_.yJ,_.J);_.g=_.yJ.prototype;_.g.getId=function(){return _.y(this,1)};
_.g.Ob=function(a){return _.w(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.w(this,2,a)};_.g.rE=function(a,b){_.Mj(this,3,a,b)};_.g.se=function(){return _.B(this,_.Cf,5)};_.BJ=function(a){_.J.call(this,a)};_.K(_.BJ,_.J);_.BJ.prototype.getTitle=function(){return _.y(this,1)};_.BJ.prototype.setTitle=function(a){return _.w(this,1,a)};_.BJ.prototype.se=function(){return _.B(this,_.Cf,2)};_.GJ=function(a){_.J.call(this,a)};_.K(_.GJ,_.J);
_.GJ.prototype.Ac=function(){return _.y(this,1)};_.GJ.prototype.se=function(){return _.B(this,_.Cf,3)};_.IJ=function(a){_.J.call(this,a)};_.K(_.IJ,_.J);_.IJ.prototype.getId=function(){return _.y(this,1)};_.IJ.prototype.Ob=function(a){return _.w(this,1,a)};_.IJ.prototype.se=function(){return _.B(this,_.Cf,3)};_.KJ=function(a){_.J.call(this,a)};_.K(_.KJ,_.J);_.KJ.prototype.se=function(){return _.B(this,_.Cf,1)};_.aK=function(a){_.J.call(this,a)};_.K(_.aK,_.J);_.g=_.aK.prototype;
_.g.getId=function(){return _.y(this,1)};_.g.Ob=function(a){return _.w(this,1,a)};_.g.getParent=function(){return _.y(this,2)};_.g.qg=function(a){return _.w(this,2,a)};_.g.se=function(){return _.B(this,_.Cf,3)};_.cK=function(a){_.J.call(this,a)};_.K(_.cK,_.J);_.g=_.cK.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Ob=function(a){return _.w(this,1,a)};_.g.getParent=function(){return _.y(this,2)};_.g.qg=function(a){return _.w(this,2,a)};_.g.se=function(){return _.B(this,_.Cf,3)};
_.hK=function(a){_.J.call(this,a)};_.K(_.hK,_.J);_.hK.prototype.Ac=function(){return _.y(this,1)};_.hK.prototype.se=function(){return _.B(this,_.Cf,4)};_.jK=function(a){_.J.call(this,a)};_.K(_.jK,_.J);_.g=_.jK.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Ob=function(a){return _.w(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.w(this,2,a)};_.g.getState=function(){return _.y(this,3)};_.g.Ld=function(a){return _.w(this,3,a)};
_.g.gt=function(){return _.Cj(this,3)};_.g.se=function(){return _.B(this,_.Cf,5)};Rwc=[2,3];_.zJ=function(a){_.J.call(this,a,-1,Rwc)};_.K(_.zJ,_.J);_.zJ.prototype.yc=function(){return _.y(this,1)};_.zJ.prototype.se=function(){return _.B(this,_.Cf,4)};_.Swc={1:"default",2:"teamDrive",3:"default,allTeamDrives"};Twc=[3,4];_.UJ=function(a){_.J.call(this,a,-1,Twc)};_.K(_.UJ,_.J);_.UJ.prototype.getType=function(){return _.y(this,1)};_.UJ.prototype.se=function(){return _.B(this,_.Cf,2)};
_.XJ=function(a){_.J.call(this,a)};_.K(_.XJ,_.J);_.XJ.prototype.O=function(a){_.w(this,4,a)};Uwc=[1];_.ZJ=function(a){_.J.call(this,a,-1,Uwc)};_.K(_.ZJ,_.J);_.ZJ.prototype.mn=function(){return _.fe(this,1)};_.Vwc=function(a){_.J.call(this,a)};_.K(_.Vwc,_.J);_.g=_.Vwc.prototype;_.g.getKey=function(){return _.y(this,1)};_.g.et=function(){return _.Cj(this,1)};_.g.Za=function(){return _.y(this,2)};_.g.Jb=function(a){return _.w(this,2,a)};_.g.Ti=function(){return _.pb(this,2)};
_.g.Og=function(){return _.Cj(this,2)};_.g.Bf=function(){return _.y(this,3)};_.g.Xl=function(a){return _.w(this,3,a)};_.g.getType=function(){return _.y(this,4)};Wwc=[1];_.Xwc=function(a){_.J.call(this,a,-1,Wwc)};_.K(_.Xwc,_.J);_.Ywc=function(){var a=void 0===a?1E3:a;this.O=new _.sl;this.H=new _.sl;this.startTime=Date.now();this.V=!1;this.W=Math.ceil(a/2);this.ha=Math.floor(a/2)};_.$wc=function(a){var b=a.O.qh();a.V&&b.push(Zwc("...","...","...","..."));_.xa(b,a.H.qh());return b};
_.axc=function(a){var b=[];a=_.$wc(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")};_.Ywc.prototype.info=function(a,b){_.JK(this,a,b,"info")};_.Ywc.prototype.config=function(a,b){_.JK(this,a,b,"config")};_.Ywc.prototype.log=function(a,b,c){if(!uwc){uwc={};for(var d=0,e;e=_.ska[d];d++)uwc[e.value]=e,uwc[e.name]=e}_.JK(this,a,b,c)};
_.JK=function(a,b,c,d){a.H.$b()>=a.ha&&(a.V=!0,_.tl(a.H));var e=Date.now()-a.startTime;b=Zwc(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)};Zwc=function(a,b,c,d){var e={};return e.logName=a,e.message=b,e.level=c,e.totalTime=d,e};_.KK=function(a){a.supportsTeamDrives=!0};_.bxc=function(a){this.O=new Set;this.H=[].concat(_.Ad(_.fe(a,27)));this.initialize(a)};
_.bxc.prototype.initialize=function(a){var b=_.wuc(this.H,_.fe(a,28));if(0<b.length)throw Error("Ue`"+b.join(","));this.H.push(21);this.H.push(70);this.H.push(83);this.H.push(87);_.wI(_.KI(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();xuc(this.H)};_.LK=function(a){return[].concat(_.Ad(a.H))};MK=function(a){return"'"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"};
_.NK=function(a,b,c){0!==b.length&&(a.mI.length&&a.append(" "+(c||"and")+" "),a.append(b))};OK=function(a,b,c,d){if(c){var e=[];(void 0===d?0:d)&&e.push("not");e.push(MK(c));e.push("in");e.push(b);_.NK(a,e.join(" "))}};_.PK=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());_.NK(a,e.join(" "),d)}};cxc=function(a,b,c){if(b.length){var d=[];d.push(c?"not (":"(");d.push(b.join(" or "));d.push(")");_.NK(a,d.join(""))}};
_.dxc=function(a){var b=new _.stc;b.setTime(a);return b};exc=function(a,b){b=_.fe(b,33)[0];if(null!=b){var c=[];c.push("teamDriveId");c.push("=");c.push(MK(b));_.NK(a,c.join(" "))}};_.fxc=function(a){a=_.Oj(a,_.BK,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(",")};_.gxc=function(a){a=a.AB();return null==a||0==a.length?"":a.map(function(b){b=b.YQ();if(0==b)throw Error("Ve");return _.Jqc[b]}).join(",")};
hxc=function(a,b){if(a.length){var c=new _.Wo;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(MK(d.Za()));_.NK(c,e.join(" "),"or")}return c.toString()}return""};ixc=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 MK(e.Za())});d.push(a.join(", "));return d.join(" ")}return""};
jxc=function(a){if(_.P(a,2))return"any";switch(a.Za()){case 0:return"mentions";case 1:return"suggestions";case 2:return"todos";default:return""}};kxc=function(a){switch(a){case 1:return"<=";case 2:return"<";case 3:return"=";case 4:return">";case 5:return">=";default:return""}};lxc=function(a,b,c){if(null!=_.y(c,2)){var d=kxc(_.y(c,1));c=MK(_.lwc(_.dxc(_.y(c,2)||0)));_.NK(a,[b,d,c].join(" "))}};
mxc=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""};
_.nxc=function(a){for(var b=new _.Wo,c=_.Oj(a,_.Il,4),d=0;d<c.length;d++){var e=c[d],f=e.Za();if(f){var h=_.y(e,1),k=_.Q(e,3,!1),l=[];k&&1==h&&l.push("not");l.push("title");l.push(1==h?"contains":k?"!=":"=");l.push(MK(f));_.NK(b,l.join(" "))}}for(var p=_.Oj(a,_.Hl,5),q=0;q<p.length;q++){var r=p[q],v=r.Za();if(v){var z=[];_.Q(r,2,!1)&&z.push("not");z.push("fullText");z.push("contains");z.push(MK(v));_.NK(b,z.join(" "))}}var A=_.Ml(a);if(A&&0!=A.length){for(var C=[],G=[],H=[],L=[],M=[],T=[],U=0;U<A.length;U++){var ca=
A[U];ca.Za()&&(1===_.Fj(ca,3,0)?_.P(ca,4)?G.push(ca):C.push(ca):_.P(ca,4)?_.Q(ca,2,!1)?T.push(ca):M.push(ca):_.Q(ca,2,!1)?L.push(ca):H.push(ca))}var Z=hxc(C,!1),ja=hxc(G,!0),qa=ixc(H,!1,!1),Aa=ixc(L,!0,!1),Ja=ixc(M,!1,!0),ib=ixc(T,!0,!0),Xa=new _.Wo;if(qa||Ja||Z||ja)_.NK(Xa,qa,"or"),_.NK(Xa,Ja,"or"),_.NK(Xa,Z,"or"),_.NK(Xa,ja,"or");Xa.mI.length&&_.NK(b,"("+Xa.toString()+")","and");var Hb=new _.Wo;if(Aa||ib)_.NK(Hb,Aa,"and"),_.NK(Hb,ib,"and");Hb.mI.length&&_.NK(b,"("+Hb.toString()+")","and")}for(var $b=
_.Oj(a,_.Fl,7),Bc=0;Bc<$b.length;Bc++)lxc(b,"modifiedDate",$b[Bc]);for(var td=_.Oj(a,_.Fl,8),Xd=0;Xd<td.length;Xd++)lxc(b,"lastViewedByMeDate",td[Xd]);_.PK(b,"trashed",a.Wh());_.PK(b,"explicitlyTrashed",_.P(a,17));_.PK(b,"starred",_.P(a,10));_.PK(b,"hidden",_.P(a,11));for(var Jd=_.Nl(a),qf=0;qf<Jd.length;qf++){var ud=Jd[qf];OK(b,"parents",ud.Za(),_.Q(ud,2,!1))}for(var Cb=_.Oj(a,_.pf,13),ne=0;ne<Cb.length;ne++){var Xg=Cb[ne];OK(b,"owners",Xg.Za(),_.Q(Xg,2,!1))}for(var se=_.Oj(a,_.pf,14),li=0;li<se.length;li++){var Wi=
se[li];OK(b,"writers",Wi.Za(),_.Q(Wi,2,!1))}for(var vf=_.Oj(a,_.pf,15),Ek=0;Ek<vf.length;Ek++){var Vh=vf[Ek];OK(b,"readers",Vh.Za(),_.Q(Vh,2,!1))}_.P(a,16)&&_.NK(b,"sharedWithMe");_.PK(b,"unparented",_.P(a,34));for(var Vf=_.Oj(a,_.Al,35)||[],Yd=_.m(Vf),Yg=Yd.next();!Yg.done;Yg=Yd.next())OK(b,"ancestors",Yg.value.Za(),!1);for(var Nh=_.Oj(a,_.Al,38)||[],yi=_.m(Nh),$k=yi.next();!$k.done;$k=yi.next())OK(b,"descendants",$k.value.Za(),!1);for(var Wn=_.Oj(a,_.Gl,37)||[],Am=_.m(Wn),Dh=Am.next();!Dh.done;Dh=
Am.next())OK(b,"folderFeatures",Dh.value.Za(),!1);for(var al=_.fe(a,39),jk=_.m(al),Zg=jk.next();!Zg.done;Zg=jk.next()){var Pj=Zg.value,sj=[];sj.push("templateData.description");sj.push("contains");sj.push(MK(Pj));_.NK(b,sj.join(" "))}for(var kk=_.fe(a,40),Wh=0;Wh<kk.length;Wh++){var Qj=[];0==Wh&&Qj.push("(");Qj.push(MK(kk[Wh]));Qj.push("in");Qj.push("templateData.categories");Wh==kk.length-1&&Qj.push(")");_.NK(b,Qj.join(" "),0==Wh?"and":"or")}var Rj=_.y(a,41);if(null!=Rj){var tj=[];tj.push("templateData.galleryState");
tj.push("=");tj.push(MK(_.utc[Rj]||""));_.NK(b,tj.join(" "))}var lk=_.y(a,42);if(null!=lk){var bi=[];bi.push("visibility");bi.push("=");bi.push(MK(mxc(lk)));_.NK(b,bi.join(" "))}for(var Bm=_.Oj(a,_.zl,44),Sj=0;Sj<Bm.length;++Sj){var mk=Bm[Sj];OK(b,"actionItems",jxc(mk),_.Q(mk,3,!1))}if(_.Cj(a,50)){var Cl=[];Cl.push("pairedDocType");var Tj=_.Q(a,50,!1)?"!=":"=";Cl.push(Tj);Cl.push(MK("NONE"));_.NK(b,Cl.join(" "))}OK(b,"workspaceIds",a.Op(),!1);for(var wn=_.Oj(a,_.Bl,57),bl=0;bl<wn.length;bl++){var cl=
[];0==bl&&cl.push("(");cl.push(MK(wn[bl].Za()));cl.push("in");cl.push("approvals");bl==wn.length-1&&cl.push(")");_.NK(b,cl.join(" "),0==bl?"and":"or")}if(_.Cj(a,58)){var Af=a.Iq(),Uj=Af.Za(),em=_.Q(Af,2,!1);if(Uj){var Dl=[];em&&Dl.push("not");Dl.push("creator");Dl.push("=");Dl.push(MK(Uj));_.NK(b,Dl.join(" "))}}var fm=_.B(a,_.Ioa,59);if(fm)for(var qc=_.m(_.Oj(fm,_.Foa,1)),Vj=qc.next();!Vj.done;Vj=qc.next()){var Oh=Vj.value;OK(b,"categoryMetadata",Oh.Nm());for(var nk=_.m(Oh.Ak()),Ph=nk.next();!Ph.done;Ph=
nk.next()){var mi=Ph.value,eg=_.y(mi,1),Fk=_.rb(mi,_.El);if(10==Fk){_.dk(mi,_.woa,10,_.El);var Hp=_.P(mi,15);(void 0===Hp?0:Hp)?_.NK(b,eg+" is null"):_.NK(b,"not ("+eg+" is null)")}else{var Qh=new _.Wo,Eh=void 0;switch(Fk){case 3:Eh=_.dk(mi,fwc,3,_.El);for(var xn=_.m(Eh.Ei()),uj=xn.next();!uj.done;uj=xn.next())_.PK(Qh,eg,uj.value,"or");break;case 14:for(var yn=Eh=_.dk(mi,_.poa,14,_.El),gm=new Map([[1,"="],[2,">"],[3,"<"]]),Gk=_.m(yn.Ei()),Cm=Gk.next();!Cm.done;Cm=Gk.next()){var Po=Cm.value,Ip=gm.get(_.y(yn,
2));if(!Ip)throw Error("We");var rr=[eg,Ip,MK(Po.getYear()+"-"+Po.getMonth()+"-"+Po.getDay())];_.NK(Qh,rr.join(" "),"or")}break;case 8:for(var Nm=Eh=_.dk(mi,_.voa,8,_.El),lm=new Map([[1,"="],[2,">"],[3,"<"]]),tk=_.m(Nm.Ei()),dp=tk.next();!dp.done;dp=tk.next()){var Up=dp.value,Kq=lm.get(_.y(Nm,2));if(!Kq)throw Error("We");_.NK(Qh,[eg,Kq,Up].join(" "),"or")}break;case 9:for(var Nr=Eh=_.dk(mi,hwc,9,_.El),lu=new Map([[1,"in"]]),Or=_.m(Nr.Ei()),Zs=Or.next();!Zs.done;Zs=Or.next()){var rB=Zs.value,sB=lu.get(_.y(Nr,
2));if(!sB)throw Error("We");_.NK(Qh,[rB,sB,eg].join(" "),"or")}break;case 6:for(var Qy=Eh=_.dk(mi,_.Aoa,6,_.El),mu=new Map([[1,"="]]),Lq=_.m(Qy.Ei()),Mq=Lq.next();!Mq.done;Mq=Lq.next()){var tB=Mq.value,OD=mu.get(_.y(Qy,2));if(!OD)throw Error("We");_.NK(Qh,[eg,OD,MK(tB)].join(" "),"or")}break;case 7:for(var qx=Eh=_.dk(mi,_.yoa,7,_.El),Ry=new Map([[1,"in"]]),rx=_.m(qx.Ei()),sx=rx.next();!sx.done;sx=rx.next()){var tx=sx.value,$s=Ry.get(_.y(qx,2));if(!$s)throw Error("We");_.NK(Qh,[MK(tx),$s,eg].join(" "),
"or")}break;case 4:for(var at=Eh=_.dk(mi,_.Coa,4,_.El),il=new Map([[1,"="],[2,"contains"],[3,"starts with"]]),Pr=_.m(at.Ei()),Pl=Pr.next();!Pl.done;Pl=Pr.next()){var uB=Pl.value,PD=il.get(_.y(at,2));if(!PD)throw Error("We");_.NK(Qh,[eg,PD,MK(uB)].join(" "),"or")}break;case 5:for(var Sy=Eh=_.dk(mi,jwc,5,_.El),Li=new Map([[1,"in"]]),Ty=_.m(Sy.Ei()),Nq=Ty.next();!Nq.done;Nq=Ty.next()){var Vp=Nq.value,IG=Li.get(_.y(Sy,2));if(!IG)throw Error("We");_.NK(Qh,[MK(Vp),IG,eg].join(" "),"or")}break;case 12:for(var X7=
Eh=_.dk(mi,_.toa,12,_.El),dK=new Map([[1,"="]]),Kg=_.m(X7.Ei()),gT=Kg.next();!gT.done;gT=Kg.next()){var ux=gT.value,mm=dK.get(_.y(X7,2));if(!mm)throw Error("We");_.NK(Qh,[eg,mm,MK(ux)].join(" "),"or")}break;case 11:for(var vB=Eh=_.dk(mi,_.roa,11,_.El),hT=new Map([[1,"in"]]),vO=_.m(vB.Ei()),mo=vO.next();!mo.done;mo=vO.next()){var h_=mo.value,wO=hT.get(_.y(vB,2));if(!wO)throw Error("We");_.NK(Qh,[MK(h_),wO,eg].join(" "),"or")}}_.P(mi,15)?_.NK(b,"not ("+Qh+")"):_.NK(b,1<Eh.Ei().length?"("+Qh+")":""+
Qh)}}}null!=_.P(a,60)&&_.PK(b,"linkShareMetadata.securityUpdateEligible",_.P(a,60));var nu=_.P(a,65);if(null!=nu){var QD=[];QD.push("clientEncryptionDetails.encryptionState");QD.push("=");QD.push(MK(nu?"encrypted":"unencrypted"));_.NK(b,QD.join(" "))}var Uy=_.Oj(a,_.pf,68);if(Uy.length){for(var iT=[],Y7=[],i_=_.m(Uy),Vy=i_.next();!Vy.done;Vy=i_.next()){var vx=Vy.value,eK="sharedFrom = "+MK(vx.Za());_.Q(vx,2,!1)?Y7.push(eK):iT.push(eK)}cxc(b,iT,!1);cxc(b,Y7,!0)}var Z7=_.Oj(a,_.pf,67);if(Z7.length){for(var jT=
[],xO=[],j_=_.m(Z7),wB=j_.next();!wB.done;wB=j_.next()){var k_=wB.value,l_="sharedTo = "+MK(k_.Za());_.Q(k_,2,!1)?xO.push(l_):jT.push(l_)}cxc(b,jT,!1);cxc(b,xO,!0)}null!=_.P(a,69)&&_.PK(b,"linkShareMetadata.securityUpdateEnabled",_.P(a,69));null!=_.P(a,72)&&_.PK(b,"canAcceptOwnership",_.P(a,72));if(_.P(a,73)){var m_=(new _.sf).Jb("application/vnd.google-apps.shortcut");_.PK(b,"impactedByMultiparentingMigration",!0);_.NK(b,ixc([m_],!1,!1))}1==_.CK(a)&&exc(b,a);return b.toString()};
_.oxc=function(a){var b=new _.Wo(_.nxc(a));_.Q(a,74,!1)?_.NK(b,"isQuickAccessForSharedFilesRequest"):_.QJ(a)?_.NK(b,"isQuickAccessRequest"):_.RJ(a)?_.NK(b,"isPeoplePredictRequest"):_.SJ(a)&&_.NK(b,"isDrivePriorityRequest");var c=a.wc();if(c){var d=[];d.push("sortBy");d.push(_.ptc[c.getType()]);d.push(_.wtc[c.mf()]);_.P(c,3)&&d.push("foldersFirst");_.NK(b,d.join(" "))}_.PK(b,"domainSearch",_.P(a,18));_.PK(b,"offline",_.P(a,19));_.Oj(a,_.BK,25).length&&(c=[],c.push("sources"),c.push("contains"),c.push(_.fxc(a)),
_.NK(b,c.join(" ")));a.AB().length&&(c=[],c.push("spaces"),c.push("contains"),c.push(_.gxc(a)),_.NK(b,c.join(" ")));if(c=_.CK(a))d=[],d.push("corpora"),d.push("="),d.push(MK(_.Swc[c])),_.NK(b,d.join(" "));_.Q(a,66,!0)||_.PK(b,"includeItemsFromAllDrives",_.Q(a,66,!0));1!=_.CK(a)&&exc(b,a);_.Q(a,48,!1)&&_.NK(b,"cachedOnly");return b.toString()};
_.sK=function(a){if(a instanceof _.$I)a=a.ud();else if(!a)return!1;return a instanceof _.kA||a instanceof _.FG||"undefined"!=typeof _.QK&&a instanceof _.QK||a instanceof _.nf&&(_.QJ(a)||_.RJ(a)||_.SJ(a))};pxc=function(){_.To.call(this);this.V=this.O=null;this.ka=!1;this.ha=null};_.K(pxc,_.To);_.qxc=function(a){!a.ka&&a.V&&(a.V(),a.ka=!0)};rxc=function(a,b){a.V||(a.V=b)};pxc.prototype.zj=function(){_.qxc(this);(0,this.ha)()};sxc=function(a,b){a.ha||(a.ha=b)};
_.RK=function(a){if(!a.O){a.O=new Jwc;var b=_.Vo(a);_.I(b,56,a.O)}return a.O};pxc.prototype.getState=function(){var a=_.RK(this).getState();a||(a=new zwc,_.RK(this).Ld(a));return a};var txc=function(a,b){var c=new xwc;_.w(c,1,b);a=_.Vo(a);_.I(a,12,c)};pxc.prototype.ma=function(){var a=_.B(_.RK(this),Bwc,4);if(!a){a=new Bwc;var b=_.RK(this);_.I(b,4,a)}return a};
var uxc=function(a){var b=_.B(_.RK(a),Cwc,8);b||(b=new Cwc,a=_.RK(a),_.I(a,8,b));return b},vxc=function(a){var b=_.B(_.RK(a),Hwc,19);b||(b=new Hwc,a=_.RK(a),_.I(a,19,b));return b},wxc=function(a){_.ti.call(this,"Bb");this.H=a};_.K(wxc,_.ti);wxc.prototype.Re=function(){return this.H};_.xxc=function(a,b){a=void 0===a?1:a;b=void 0===b?!1:b;_.Di.call(this);this.H=!1;this.connectionState=b?1:a;this.O=b?!0:1===a;this.V=b};_.K(_.xxc,_.Di);_.g=_.xxc.prototype;
_.g.isConnected=function(){return!this.H&&1===this.connectionState};_.g.Sk=function(){return 1===this.connectionState||2===this.connectionState};_.g.Re=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?_.rC.gU:_.rC.Kga;else 1===a?(b=_.rC.AL,this.O=!0):3===a&&(b=_.rC.fU);if(b)return b=new Pwc(b),this.connectionState=a,this.H=!1,this.dispatchEvent(b),!0}return!1};
var yxc=function(a,b){this.userId=a;this.H=b;this.db=null},Axc=function(a,b){a.H.info("drive.ds.sync.logging.ImpressionPersister","Persisting offline impressions.");return zxc(a,function(c){return c.count().then(function(d){return 1E3>d?a.add(c,b):a.handleError(Error("Ze"))},function(d){return a.handleError(d)})},"readwrite")};yxc.prototype.add=function(a,b){var c=this,d={};return a.add((d.userId=this.userId,d.qAb=b.toJSON(),d)).then(null,function(e){c.handleError(e)})};
var Bxc=function(a){return new _.Xh(function(b){var c=new Map;zxc(a,function(d){return mwc(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={Oqa:f.Oqa},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;f.Oqa=k;l.then(function(p){return function(q){q&&c.set(p.Oqa,new _.oAa(q.qAb))}}(f))}return _.SI([].concat(_.Ad(e.values()))).then(function(){return b(c)})})})})},Cxc=function(a,b){return zxc(a,
function(c){return c.remove(b)},"readwrite")},zxc=function(a,b,c){c=void 0===c?"readonly":c;return Dxc(a).then(function(d){try{var e=_.xrc(d,["OfflineImpressions"],c).objectStore("OfflineImpressions");return b(e)}catch(f){return a.handleError(f?_.sJ(f):void 0)}},function(d){return a.handleError(d)})},Dxc=function(a){return a.db?_.Yh(a.db):_.zrc("GoogleDriveDsImpressions",2,function(b,c){c.H.objectStoreNames.contains("OfflineImpressions")&&_.nwc(c,"OfflineImpressions");b=_.wrc(c,"OfflineImpressions",
{autoIncrement:!0});try{b.H.createIndex("userId","userId",void 0)}catch(d){throw _.EI(d,"creating new index userId with key path userId");}},function(){return a.handleError(Error("$e"))}).then(function(b){return a.db=b},function(b){return _.Zh(_.sJ(b))})};yxc.prototype.handleError=function(a){a||(a=Error("af"));_.JK(this.H,"drive.ds.sync.logging.ImpressionPersister",a.message,"severe");return _.Yh()};
_.Exc=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;_.Di.call(this);this.V=b;this.O=null;this.H=b?!1:a};_.K(_.Exc,_.Di);_.Exc.prototype.Re=function(){return this.H};_.Exc.prototype.Ol=function(a){var b=this.H!==a;!this.V&&b&&(this.H=a,this.dispatchEvent(new wxc(a)))};_.Exc.prototype.$y=function(a){this.O=a};
var Gxc=function(a,b,c,d,e,f){_.Di.call(this);var h=this;this.V=a;this.H=b;this.connectionState=c;this.O=d;this.Ib=new _.Ye(this);this.Ib.listen(b,"Bb",function(k){k.Re()||Fxc(h)});this.Ib.listen(c,[_.rC.AL,_.rC.gU],function(){return void Fxc(h)});this.W=e;f.then(function(){return Fxc(h)})};_.K(Gxc,_.Di);Gxc.prototype.DA=function(a){return(this.H.Re()||this.connectionState.Re())&&this.H.O?Axc(this.O,a):this.V.DA(a)};
var Fxc=function(a){return a.H.O?Bxc(a.O).then(function(b){b.forEach(function(c,d){a.V.DA(c).then(function(){return Hxc(a,d)},function(){a.log("Unable to send offline impression batch "+d+".")})})}):Promise.resolve()},Hxc=function(a,b){a.log("Sent offline impression batch "+b+".");a.dispatchEvent("Cb");return Cxc(a.O,b).then(function(){a.log("Removed offline impression batch "+b+".")},function(){a.log("Unable to remove offline impression batch "+b+".")})};
Gxc.prototype.log=function(a){this.W.info("drive.ds.sync.logging.ClearcutOfflineTransport",a)};var Ixc=function(){};Ixc.prototype.EQ=function(){return new pxc};var Jxc=function(){this.H=new Kwc};Jxc.prototype.O=function(a){_.I(a,13,this.H)};Jxc.prototype.setEnvironment=function(a){this.H.setEnvironment(a);return this};
var Lxc=function(a,b,c,d){this.ha=b;this.connectionState=c;this.iw=d;this.O=this.H=this.V=null;this.client=_.SK(_.Ftc,_.EK(a));this.ka=_.y(a,94);this.ma=_.SK(_.Jtc,_.Fj(a.hg(),8,0));this.Kwa=_.SK(_.Gtc,_.Fj(a.hg(),9,2));this.ta=_.Q(a,10,!1);this.ou=_.wI(_.KI(a));this.fCa=_.FK(a);this.W=Kxc(a);this.buildLabel=a.Wi()};Lxc.prototype.Kj=function(){return this.client};
Kxc=function(a){var b=[].concat(_.Ad(_.Ctc.keys())),c=[].concat(_.Ad(_.Dtc.keys())),d=_.rK(a);return b.filter(function(e){return _.Ctc.get(e)(a)}).concat(c.filter(function(e){return d&&_.Dtc.get(e)(d)}))};_.SK=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};Lxc.prototype.Xn=function(a){return null==a?0:a?2:1};var Mxc=function(a){if(a.O)return a.O.H("aU7Ts")};
Lxc.prototype.Bb=function(a){return a instanceof _.xB||"undefined"!=typeof _.TK&&a instanceof _.TK||"undefined"!=typeof _.UK&&a instanceof _.UK||"undefined"!=typeof _.VK&&a instanceof _.VK?a.Bb():"undefined"!=typeof _.WK&&a instanceof _.WK||"undefined"!=typeof _.XK&&a instanceof _.XK||"undefined"!=typeof _.YK&&a instanceof _.YK||"undefined"!=typeof _.ZK&&a instanceof _.ZK||"undefined"!=typeof _.$K&&a instanceof _.$K?a.response?a.response.Bb():null:null};Lxc.prototype.Wi=function(){return this.buildLabel};
var Nxc=function(a){return a.ha.Re()||a.connectionState.Re()?2:1};Lxc.prototype.getEnvironment=function(){return this.iw};Oxc=function(a,b){this.H=a;var c=new _.Nya;_.Oya(c,b.W);a=this.H.FL();var d=_.gtc(a);_.I(d,10,c);(c=b.Wi())&&_.ftc(a,c);this.H.IZ();this.O=b};
_.Pxc=function(a,b,c){var d=_.Uo(a.H.LF(b,c),_.xtc);txc(d,Nxc(a.O));b=Mxc(a.O);"boolean"===typeof b&&Awc(d.getState(),b);1===c&&rxc(d,function(){return void a.H.hw(d)});sxc(d,function(){var e;var f=null===(e=a.O.V)||void 0===e?void 0:e.Ed();e=d.getState();_.w(e,1,f);var h,k;f=null===(k=null===(h=a.O.H)||void 0===h?void 0:h.H)||void 0===k?void 0:k.Ed();h=d.getState();_.w(h,2,f);var l,p;h=null===(p=null===(l=a.O.H)||void 0===l?void 0:l.O)||void 0===p?void 0:p.Ed();l=d.getState();_.w(l,7,h);a.H.Wp(d)});
return d};Qxc=function(a){var b=new _.Cza,c=new Jxc,d=a.Kj();_.w(c.H,1,d);_.w(c.H,8,a.ka);_.w(c.H,3,a.ma);_.w(c.H,4,a.Kwa);_.w(c.H,5,a.ta);_.w(c.H,6,a.ou);_.w(c.H,7,a.fCa);a=c.setEnvironment(a.getEnvironment());_.ksc(b,_.ztc,a);_.Xo(b,_.xtc,new Ixc);return b};
Rxc=function(a,b,c,d,e,f,h,k){k=void 0===k?!1:k;var l=new _.PI(906,b,void 0,_.Mtc());l.ha=!1;var p=new _.lsc(l);b=new Date;l=_.ltc(_.ktc(_.jtc(owc(),new _.msc(l)),Qxc(c)),109).setSessionId(b.getTime()+"_"+_.Vg());if(k){a=new Gxc(p,d,e,new yxc(a,f),f,h);_.itc(l,a);d=l.build();_.etc(d.FL(),1E3*b.getTime());var q=new Oxc(d,c);(new _.Ye).listen(a,"Cb",function(){_.Pxc(q,106008,0).zj()});return q}_.itc(l,p);a=l.build();_.etc(a.FL(),1E3*b.getTime());return new Oxc(a,c)};
Sxc=function(a,b){this.V=a;this.W=b};Sxc.prototype.O=function(a,b){this.V&&_.Txc(this)&&(a=_.Pxc(this.V,a,0),b&&_.Bqc(a,b),a.zj())};_.aL=function(a,b){if(a.V&&_.Txc(a)){a=_.Pxc(a.V,106018,0);var c=_.B(_.RK(a),Gwc,15);if(!c){c=new Gwc;var d=_.RK(a);_.I(d,15,c)}c=_.w(c,1,1);_.w(c,2,b);a.zj()}};Sxc.prototype.H=function(a,b){return this.V&&_.Txc(this)?(a=_.Pxc(this.V,a,1),b&&_.Bqc(a,b),a):null};_.Txc=function(a){return!(!a.V||!a.V.H.oP())};
_.Uxc=function(a,b,c,d,e,f){var h=_.P(a,59),k=_.hJ(_.KI(a)).toString(),l=_.DK(_.KI(a));f=new Lxc(a,b,c,f);a=h?Rxc(l,k,f,b,c,d,e,_.Q(a,17,!1)):null;return new Sxc(a,f)};_.MJ=function(a){_.J.call(this,a)};_.K(_.MJ,_.J);_.Vxc=function(a){_.J.call(this,a)};_.K(_.Vxc,_.J);_.Vxc.prototype.getId=function(){return _.y(this,1)};_.Vxc.prototype.Ob=function(a){return _.w(this,1,a)};_.Vxc.prototype.se=function(){return _.B(this,_.Cf,2)};_.VJ=function(a){_.J.call(this,a)};_.K(_.VJ,_.J);
_.VJ.prototype.Yn=function(){return _.y(this,2)};_.VJ.prototype.ud=function(){return _.B(this,_.Vxc,3)};_.LJ=function(a){_.J.call(this,a)};_.K(_.LJ,_.J);_.LJ.prototype.ud=function(){return _.B(this,_.KJ,1)};_.LJ.prototype.Mca=function(a){return _.w(this,2,a)};_.JJ=function(a){_.J.call(this,a)};_.K(_.JJ,_.J);_.JJ.prototype.getId=function(){return _.y(this,1)};_.JJ.prototype.Ob=function(a){return _.w(this,1,a)};_.Wxc=function(a,b){return _.w(a,2,b)};_.YJ=function(a){_.J.call(this,a)};_.K(_.YJ,_.J);
_.YJ.prototype.ud=function(){return _.B(this,_.JJ,1)};Xxc=[2];_.gK=function(a){_.J.call(this,a,-1,Xxc)};_.K(_.gK,_.J);_.gK.prototype.Ac=function(){return _.y(this,1)};_.gK.prototype.zV=function(){return _.Oj(this,_.DG,2)};_.gK.prototype.se=function(){return _.B(this,_.Cf,3)};_.Yxc=function(a){_.J.call(this,a)};_.K(_.Yxc,_.J);_.Yxc.prototype.Bk=function(){return _.y(this,1)};_.Zxc=function(a){var b=new _.Yxc;return _.w(b,1,a)};$xc=[1];_.Euc=function(a){_.J.call(this,a,-1,$xc)};_.K(_.Euc,_.J);
_.ayc=function(a,b){this.O=b;this.H=new Map;this.nla(_.Oj(a,_.Jl,91))};_.ayc.prototype.nla=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;b=c.getId();c=_.y(c,2);if(!b||!c)break;var d=_.byc(this,b);if(d){d!==c&&Duc(b);break}this.H.set(b,c)}};evc=function(a,b){return[].concat(_.Ad(new Set(b))).map(function(c){var d=(new _.Jl).Ob(c);a.H.has(c)?_.Kl(d,a.H.get(c)):a.O&&(c=a.O.H(c))&&_.Kl(d,_.pl(c));return d}).filter(function(c){return _.Cj(c,2)})};
_.byc=function(a,b){return a.H.has(b)?String(a.H.get(b)):a.O&&(a=a.O.H(b))&&_.Cj(a,140)?_.pl(a):null};_.Huc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.Nuc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.Tuc=function(){this.H=_.Df(new _.Cf,312)};_.cyc=function(a,b){_.FI.call(this,a?a:500,b?b:6E5)};_.K(_.cyc,_.FI);_.bL=function(a,b,c,d){this.state=a;this.ma=b;this.ka=c;this.dg=d;this.ha=this.O=this.timeout=this.W=null;this.V=!1;this.H=null};
_.bL.prototype.getState=function(){return this.state};_.bL.prototype.kM=function(a){var b=this;if(this.W)return this.W;var c=_.ai();this.W=c.promise.then(function(){return _.Zxc(1)},function(d){d=_.SB(d).Sg;var e=0;2===d.Ip()?e=3:_.Ltc(d)&&(e=2);return _.Zxc(e)});a&&this.W.then(function(d){3===d.Bk()&&_.aL(b.dg,186469046)});this.H&&(a=_.y(vxc(this.H),4)||0,Iwc(vxc(this.H),a+1));setTimeout(function(){b.W=null},5E3);dyc(this,c);return this.W};_.gyc=function(a,b){eyc(a,3)&&_.fyc(a,b)};
_.bL.prototype.reset=function(){this.O=null;hyc(this)};hyc=function(a){a.timeout&&(clearTimeout(a.timeout),a.timeout=null)};_.fyc=function(a,b){if(!a.O&&!a.V){a.H=a.dg.H(106025);if(a.H){var c=vxc(a.H);var d=!(!a.state.isConnected()&&a.state.Sk());c=_.w(c,1,d);c=_.w(c,2,a.state.O);_.w(c,5,!!b)}a.O=new _.cyc(5E3,6E4);iyc(a)}};iyc=function(a){hyc(a);dyc(a);a.O&&(a.timeout=setTimeout(function(){return void iyc(a)},a.O.Za()),_.GI(a.O))};
dyc=function(a,b){_.ci((a.ha?a.ha():_.Yh()).then(null,function(){return null}),function(){if(a.H){var c=_.y(vxc(a.H),3)||0,d=vxc(a.H);_.w(d,3,c+1)}jyc(a,b)})};jyc=function(a,b){a.log("Checking connection state.");var c=a.ma.then(function(d){return d.Pe(new _.Tuc)}).then(null,function(d){d=_.SB(d);_.Ltc(d.Sg)&&eyc(a,2);return _.Zh(d)});b?b.resolve(c):c.then(null,function(){return null})};_.bL.prototype.log=function(a){this.ka.info("drive.ds.sync.connection.StateManager",a)};
eyc=function(a,b){return!a.V&&a.state.update(b)?(a.log("Connection status: "+_.Ptc.get(b)),!0):!1};_.kyc=function(){this.H={}};lyc=function(a,b,c){if(a.H[b])throw Error("bf");a.H[b]=c};_.kyc.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)}};myc=function(a,b){for(var c=0;c<b.length;c++)delete a.H[b[c]]};
_.nyc=function(a,b){this.H=a;this.V=b;this.O=_.Rtc[_.Fj(a.hg(),8,0)];this.W=_.Rtc[_.Fj(a.hg(),51,5)];this.nonce=_.Vg()};
_.nyc.prototype.lc=function(a,b){if(b.AN)oyc(this,a,b),pyc(this,a,b);else if(11===a.Zm){if(b.gKb){var c=b.zD||_.D(this.H.hg(),37,"");_.rj(a.uri,"key",c)}oyc(this,a,b);qyc(this,a,b)}else switch(a.uri=ryc(this,a.Zm,a.uri),a.Zm){case 1:qyc(this,a,b);oyc(this,a,b);break;case 0:b.ou||_.wI(_.KI(this.H))||_.Q(this.H,83,!1)&&_.rj(a.uri,"dsNonce",this.nonce);qyc(this,a,b);pyc(this,a,b);oyc(this,a,b);break;case 2:case 3:case 4:case 5:qyc(this,a,b);pyc(this,a,b);oyc(this,a,b);break;case 8:case 9:case 10:case 13:case 12:case 7:qyc(this,
a,b);pyc(this,a,b);break;default:throw Error("cf`"+a.Zm);}};syc=function(a,b){var c=ryc(a,b,new _.kj);if(!c.H)throw Error("ef");return _.nj(_.mj(_.lj(new _.kj,c.O),c.H),c.W).Ki(_.Stc.has(b)?"/batch"+a.O:"/batch")};
ryc=function(a,b,c){var d=_.y(a.H.hg(),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=_.D(a.H.hg(),62,"");break;case 8:a=_.y(a.H.hg(),53);break;case 9:a=_.y(a.H.hg(),56);break;case 10:a=_.y(a.H.hg(),22);break;case 13:a=_.y(a.H.hg(),55);break;case 12:a=_.y(a.H.hg(),43);break;default:throw Error("cf`"+b);}a&&a.endsWith("/")&&(a=a.slice(0,-1));c=c.toString();if(!c)return new _.kj(a);
_.Td(c,"/")&&(c=c.slice(1));return new _.kj(a+"/"+c)};qyc=function(a,b,c){a=_.KI(a.H);c.ou||_.wI(a)||(c=[{key:"u",value:_.DK(a)}],b.headers.authorization=_.isc(c)||"",c=_.hJ(a),0<=c&&(b.headers["x-goog-authuser"]=String(c)))};
oyc=function(a,b,c){var d=_.KI(a.H),e=a.H.hg(),f=c.p6a||!!_.y(e,13);c=c.q6a||_.Q(e,14,!1);var h=11===b.Zm;f&&((f=_.y(e,13))&&_.Td(f,"email:")?_.rj(b.uri,"trace",f):f&&"trace:true"===f?_.rj(b.uri,"$trace","true"):f?_.rj(b.uri,"trace","token:"+f):_.rj(b.uri,"trace","email:"+d.getEmail().replace(/(@|\+).*$/,"")),h||_.rj(b.uri,"trace.deb","genoa:3:all,driveService:3:all"+(2===_.Fj(e,9,2)?"":",cospel:3:all,DriveService:3:all")));c&&!h&&a.V&&a.V.O(b.headers,b.method,b.uri.toString())};
pyc=function(a,b,c){c.ou||_.wI(_.KI(a.H))?_.rj(b.uri,"key",_.D(a.H.hg(),36,"")):(a=c.zD||_.D(a.H.hg(),37,""),_.rj(b.uri,"key",a))};_.Guc=function(a,b,c){this.request=a;this.pageSize=b;this.pageToken=c};_.Iuc=function(a){this.request=a;this.requestId=_.Vg()};_.Quc=function(a,b,c,d){this.request=a;this.file=b;this.eQ=void 0===c?null:c;this.metadata=d};Ouc=function(a,b){this.request=a;this.metadata=b};
Puc=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};_.kK=function(a,b,c,d){this.request=a;this.file=b;this.eQ=void 0===c?null:c;this.metadata=d};Yuc=[_.vJ,_.xJ,_.wJ,_.zJ,_.yJ,_.AJ,_.BJ,_.EJ,_.GJ,_.HJ,_.IJ,_.KJ,_.LJ,_.XJ,_.aK,_.cK,_.gK,_.iJ,_.hK,_.iK,_.jK,_.Iuc,_.kK];tyc=[_.kJ];Zuc=[_.EG,_.Nuc];$uc=[_.VJ,_.LI,_.WD,_.lK];avc=[_.$I,_.MJ,_.zA,_.kJ,_.Huc];bvc=[_.lK,_.GG];cvc=[_.JJ,_.Euc,_.UJ,_.YJ,_.ZJ,_.Guc,_.kK,Puc,Ouc];
uyc=function(a){return a instanceof _.$I||a instanceof _.lK||"undefined"!=typeof _.cL&&a instanceof _.cL||a instanceof _.iK||a instanceof _.HJ||a instanceof _.AJ||a instanceof _.EJ||a instanceof _.iJ&&_.qK(a)};_.vyc=function(a,b){this.H=b;this.Y3={};this.ij=new vwc;b=_.uJ({fields:_.fe(a,28),Aq:_.wI(_.KI(a))});this.Jb("SecondaryFields",b);this.Jb("SdkBackfillEnabled",!!_.Q(a,45,!1)+" (Include corpus cache: "+!!_.Q(a,46,!1)+")")};_.vyc.prototype.Jb=function(a,b){this.Y3[a]=wyc(a,b)};
var xyc=function(a,b){var c=a.Y3[b];c||(c=wyc(b,0,2),a.Y3[b]=c);c.Jb(String(Number(c.Za())+1))};_.vyc.prototype.Pz=function(a){var b=_.Qa(this.Y3);this.H&&b.push(wyc("CacheSize",this.H.Ed()));b.push(wyc("InitialViewDataLoaded",a));a=new _.Xwc;_.Kj(a,1,b);return _.ii(a)};wyc=function(a,b,c){var d=new _.Vwc;_.w(d,1,a);_.w(d,4,c||1);d.Jb(String(b));d.Xl(_.Wtc.get(a));return d};
_.yyc=function(a,b,c){var d=new _.ntc;_.w(d,2,"Pending...");b instanceof _.$I?_.Wj(d,3,_.aJ,b):b instanceof _.lK?_.Wj(d,4,_.aJ,b):"undefined"!=typeof _.cL&&b instanceof _.cL?_.Wj(d,5,_.aJ,b):b instanceof _.iK?_.Wj(d,6,_.aJ,b):b instanceof _.HJ?_.Wj(d,7,_.aJ,b):b instanceof _.AJ?_.Wj(d,8,_.aJ,b):b instanceof _.EJ?_.Wj(d,9,_.aJ,b):b instanceof _.iJ&&_.Wj(d,10,_.aJ,b);var e=Vuc(b),f=[];if(b instanceof _.wJ)oK(f,"ID",b.getId()),oK(f,"Parent ID",b.Ek());else if(b instanceof _.HJ)oK(f,"TD ID",b.getId());
else if(b instanceof _.$I)b=_.oxc(b.ud()),oK(f,"Query",b);else if(b instanceof _.lK)oK(f,"Query","All");else if(b instanceof _.iK)oK(f,"TD ID",b.getId()),oK(f,"Title",b.getTitle()),oK(f,"Theme Image ID",_.y(b,3));else if(b instanceof _.AJ)oK(f,"MimeType",b.getMimeType()),oK(f,"Title",b.getTitle()),oK(f,"Parents",_.fe(b,3)),oK(f,"Convert",_.P(b,8)),oK(f,"Request ID",b.fj()),oK(f,"Parent Request IDs",_.fe(b,10)),oK(f,"Revision Item ID",_.y(b,12)),oK(f,"Pinned",_.P(b,8));else if(b instanceof _.BJ)oK(f,
"Title",b.getTitle());else if(b instanceof _.EJ)oK(f,"ID",b.getId());else if(b instanceof _.IJ)oK(f,"WS ID",b.getId());else if(b instanceof _.XJ)oK(f,"Source ID",_.y(b,1)),oK(f,"Destination Parent ID",_.y(b,2)),oK(f,"validation token",_.y(b,4));else if(b instanceof _.iJ){if(oK(f,"ID",b.getId()),oK(f,"Title",b.getTitle()),oK(f,"Description",b.Bf()),oK(f,"Starred",_.P(b,4)),oK(f,"Trashed",b.Wh()),oK(f,"MimeType",b.getMimeType()),oK(f,"Parents",_.fe(b,8)),oK(f,"Parents to add",_.fe(b,9)),oK(f,"Parents to remove",
_.fe(b,10)),oK(f,"Restricted",_.P(b,11)),oK(f,"Folder Color",b.Yi()),oK(f,"Update Last Viewed",_.P(b,15)),oK(f,"Subscribed",_.P(b,16)),oK(f,"Available Offline",_.P(b,18)),oK(f,"Wksp to add",_.fe(b,31)),oK(f,"Wksp to remove",_.fe(b,32)),b=_.B(b,_.Zk,25))oK(f,"Read Only",_.P(b,1)),oK(f,"Reason",_.y(b,2))}else b instanceof _.jK?(oK(f,"WS ID",b.getId()),oK(f,"Title",b.getTitle()),oK(f,"State",b.getState())):b instanceof _.Iuc&&oK(f,"Title",b.request.getTitle());_.w(d,1,"Request: "+e+(c?" ("+c+")":"")+
"\n"+f.join("\n"));a.ij.add(d);return d};_.zyc=function(a,b){for(var c=new _.Wo,d=0;d<b.length&&20>d;d++){var e=b[d];c.append(e.getId()+":"+_.guc(e.getTitle()||"",20)+"\n")}20<b.length&&c.append(b.length-20+" more item(s)");_.w(a,2,c.toString()||"Done.")};_.vyc.prototype.XQ=function(){return this.ij.qh()};_.dL=function(a){_.J.call(this,a)};_.K(_.dL,_.J);_.dL.prototype.jd=function(){return _.B(this,_.xB,1)};_.Ayc=function(a,b){return _.I(a,1,b)};_.dL.prototype.Yn=function(){return _.y(this,3)};
_.Byc=function(a,b,c){_.ti.call(this,"Hb");this.requestId=a;this.progress=b;this.totalBytes=c};_.K(_.Byc,_.ti);
_.Cyc=function(a,b){this.O=a;this.V=b;this.H=null};
var eL=function(a){_.Di.call(this);this.name=a};_.K(eL,_.Di);_.g=eL.prototype;_.g.O3=function(){};_.g.HEa=function(){};_.g.A0a=function(){};_.g.hMa=function(){};_.g.z0a=function(){};_.g.MF=function(){this.dispatchEvent(new _.ti("Ib"))};_.g.toString=function(){return this.name+": "+this.max(Infinity)};
var Dyc=function(a,b){eL.call(this,"Online");var c=this;this.O=a;this.H=b;this.Sc=new _.Ye(this);this.Ma(this.Sc);this.Sc.listen(this.O,"Bb",function(d){d.Re()||c.MF()});this.Sc.listen(this.H,"pb",this.MF)};_.K(Dyc,eL);Dyc.prototype.max=function(){var a=this.O.Re(),b=this.H.IB();return!a&&b?Infinity:0};Dyc.prototype.O3=function(){this.MF()};
var Eyc=function(a){eL.call(this,"Online");var b=this;this.connectionState=a;this.Sc=new _.Ye(this);this.Ma(this.Sc);this.Sc.listen(this.connectionState,[_.rC.AL,_.rC.Kga,_.rC.gU],function(){return b.MF()})};_.K(Eyc,eL);Eyc.prototype.max=function(){return this.connectionState.isConnected()?Infinity:0};Eyc.prototype.O3=function(){this.MF()};
_.Fyc=function(a,b){this.H=a;this.O=b};_.Gyc=function(a){return a.H instanceof _.bL?new Eyc(a.H.getState()):new Dyc(a.O,a.H)};_.Fyc.prototype.Lj=function(){return this.H instanceof _.bL?this.H.getState():this.O};
var Iyc;_.Hyc=function(a,b,c){this.zK=c;this.O=!0;this.V=0;this.H=new _.FI(a,b,.5)};Iyc=function(a){return a.H.O+a.V};
_.fL=function(a,b){eL.call(this,"Backoff");this.H=a;this.O=b};_.K(_.fL,eL);_.fL.prototype.max=function(){return this.H.O?Infinity:0};_.fL.prototype.hMa=function(){var a=this.H;a.V=0;a.H.reset()};_.fL.prototype.z0a=function(a){var b=this;Jyc(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.MF()},a),_.GI(this.H.H))};
var Jyc=function(a){var b;return(a=null===(b=_.ha(a.ED))||void 0===b?void 0:b.response)?suc(_.oIb(a)):!1};_.fL.prototype.log=function(a){this.O.info("drive.ds.network.queue.BackoffState",a)};
_.Kyc=function(a,b){eL.call(this,"Batch");this.O=a;this.V=b;this.H=null};_.K(_.Kyc,eL);_.Kyc.prototype.max=function(a){return a>=this.O?this.O:null!=this.H?this.V<=Date.now()-this.H?this.O:0:0};_.Kyc.prototype.O3=function(a){a>=this.O?this.MF():null==this.H&&Lyc(this)};_.Kyc.prototype.HEa=function(a,b){0<b?Lyc(this):this.H=null};var Lyc=function(a){a.H=Date.now()-1;_.n.setTimeout(a.MF.bind(a),a.V)};
_.gL=function(){this.ij=[]};_.g=_.gL.prototype;_.g.add=function(a,b){b?this.ij.unshift(a):this.ij.push(a);return!0};_.g.ssa=function(a){return _.za(this.ij,0,a)};_.g.Ed=function(){return this.ij.length};_.g.cancel=function(a){return _.ua(this.ij,function(b){return b.Cv.config.requestId===a?(b.ie.resolve(Wuc(b.Cv.Jw)),!0):!1})};_.g.dK=function(){return _.og(this.ij,function(a){return _.qK(a.Cv.Jw)})};
var Myc=function(){eL.call(this,"Immediate")};_.K(Myc,eL);Myc.prototype.max=function(){return Infinity};Myc.prototype.O3=function(){this.MF()};
var Nyc=function(){eL.call(this,"One Request")};_.K(Nyc,eL);Nyc.prototype.max=function(){return 1};
_.hL=function(a){eL.call(this,"Parallel");this.limit=a;this.H=0};_.K(_.hL,eL);_.hL.prototype.max=function(){return Math.max(0,this.limit-this.H)};_.hL.prototype.O3=function(){this.H<this.limit&&this.MF()};_.hL.prototype.HEa=function(a){this.H+=a.length};_.hL.prototype.A0a=function(a){this.H-=a.length;this.H<this.limit&&this.MF()};
var Oyc=function(){_.Di.apply(this,arguments)};_.K(Oyc,_.Di);var Qyc=function(a,b){a.dispatchEvent(new Pyc(b))};Oyc.prototype.O=function(){};var Pyc=function(a){_.ti.call(this,"Jb");this.request=a};_.K(Pyc,_.ti);
_.iL=function(a,b,c,d,e,f){_.Di.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.Sc=new _.Ye(this);this.Ma(this.Sc);for(a=0;a<this.H.length;a++)this.Sc.listen(this.H[a],"Ib",this.z_a);for(a=0;a<this.O.length;a++)this.Sc.listen(this.O[a],"Jb",function(k){Ryc(h,!0,k.request)});this.ka=_.Ht("drive.ds.network.queue.Queue [%s]",f)};_.K(_.iL,_.Di);_.iL.prototype.add=function(a){return Ryc(this,!1,{Cv:a,ie:_.ai(),ED:[]})};
_.iL.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};_.iL.prototype.dK=function(){return this.V.dK()?!0:this.buckets.some(function(a){return a.dK()})};
var Ryc=function(a,b,c){if(!a.buckets.some(function(f){return f.add(c,b)}))return a=_.mq(new _.Cc,"No queue bucket accepted request."),_.Zh(_.SB(a));for(var d=Syc(a),e=0;e<a.H.length;e++)a.H[e].O3(d);return c.ie.promise};_.g=_.iL.prototype;
_.g.z_a=function(){var a=Syc(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].ssa(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.rvb.bind(this,a[e]),this.qvb.bind(this,a[e]));e=Syc(this);for(var f=0;f<this.H.length;f++)this.H[f].HEa(a,e);_.ci(_.SI(d).then(this.pvb.bind(this,a)),function(){b.W.delete(c)});_.n.setTimeout(this.z_a.bind(this),0)};
_.g.rvb=function(a,b){var c=a.Cv.config;this.log(Vuc(a.Cv.Jw)+" request completed successfully. xd4: "+!(!c||!c.AN));this.H.forEach(function(d){return d.hMa()});this.O.forEach(function(d){return d.O(a)});a.ie.resolve(b)};
_.g.qvb=function(a,b){b=_.SB(b);this.log(Vuc(a.Cv.Jw)+(" request failed with error: "+b.ha+"."));a.ED.push({response:b,aRb:Date.now()});for(var c=0;c<this.H.length;c++)this.H[c].z0a(a);a.Cv.config.DEa||!this.O.some(function(d){return d.intercept(a)})?a.ie.reject(b):this.log(Vuc(a.Cv.Jw)+" encountered an error, but was intercepted to be retried.")};_.g.pvb=function(a){Syc(this);for(var b=0;b<this.H.length;b++)this.H[b].A0a(a)};
var Syc=function(a){for(var b=0,c=0;c<a.buckets.length;c++)if(a.buckets[c].Ed()){b=a.buckets[c].Ed();break}return b};_.iL.prototype.log=function(a){this.ha.info(this.ka,a)};
_.Tyc=function(a,b,c,d){Oyc.call(this);this.V=b;this.ka=c;this.W=d;this.H=new Map;this.ha=_.ak(a,21,1E3);this.ta=_.ak(a,1,1);this.ma=function(){return new _.Hyc(_.ak(a,63,1E3),_.ak(a,64,3E5),_.ak(a,65,10))}};_.K(_.Tyc,Oyc);
_.Tyc.prototype.intercept=function(a){var b=a.ED.length,c=0<b&&_.ha(a.ED).response||null;if(c){c=_.gJ(c);if(2===c.Ip())return Uyc(this,a);if(_.Ltc(c))return 2>=b?(Qyc(this,a),a=!0):a=!1,a;var d=c.zk();if(3===d||31===d||13===d||9===d)return Vyc(this,a,b);if(suc(c))return b=Iyc(this.V),c=this.V,Iyc(c)<c.zK?(this.log("Backoff number "+b+" for a User Rate Limit error."),Qyc(this,a),a=!0):(this.log("Done retrying User Rate Limit errors after "+(b+" backoffs.")),a=!1),a}return!1};
var Uyc=function(a,b){var c=Wyc(a,b),d=Iyc(c);if(Iyc(c)<c.zK)return a.log("Retry "+(d+1)+" for a failed request due to an offline error."),a.ka.Re()?(d=c.H.Za(),_.n.setTimeout(function(){return Qyc(a,b)},d),_.GI(c.H)):(_.n.setTimeout(function(){return Qyc(a,b)}),c.V++),!0;a.H.delete(b);return!1},Wyc=function(a,b){a.H.has(b)||a.H.set(b,a.ma());return a.H.get(b)},Vyc=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 Qyc(a,
b)},a.ha*Math.pow(2,c)),!0;a.log("Done retrying retriable requests after "+d+" retries.");return!1};_.Tyc.prototype.O=function(a){this.H.delete(a)};_.Tyc.prototype.log=function(a){this.W.info("drive.ds.network.queue.RetryInterceptor",a)};
var Xyc=function(a){try{if("undefined"!==typeof FileReaderSync&&_.Mtc()){var b=new FileReaderSync;return Promise.resolve(b.readAsDataURL(a))}var c=new _.aKb,d=Owc(c);c.H.readAsDataURL(a);return d.then()}catch(e){return Promise.reject(new _.ZJb(_.sJ(e),"reading data"))}},Yyc=function(a){return Xyc(a.size?a.slice(0,1):a).then(function(){return null},function(b){return b.name})};
var Zyc=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.ie=_.ai();this.finished=!1;this.Ba=this.zu=0;this.ka=null;this.ma=!1;this.V=null;a=f.request.Pz();a=_.Mtc()&&a?_.y(a,1):null;this.fileSize="number"===typeof a?a:f.file.size;this.requestId=h.requestId;this.fO="progress_"+this.requestId;h.fO=this.fO;this.ma=!!f.metadata};
Zyc.prototype.log=function(a){this.Ka.info("drive.ds.sync.request.ResumableUpload",a)};Zyc.prototype.start=function(){var a=this,b=new Ouc(this.request.request,this.request.metadata),c=$yc(this);this.Ha.then(function(d){return d.Pe(b,c)}).then(function(d){a.ha=d.O;a.va=d.H;a.Fa=d.V;azc(a)},function(d){return void a.ie.reject(d)});return _.ci(this.ie.promise.then(function(d){bzc(a,d);return d},function(d){d=_.SB(d);bzc(a,d.Sg);return _.Zh(d)}),function(){myc(a.H,[a.fO])})};
var $yc=function(a){var b=_.Ya(a.config);lyc(a.H,a.fO,twc(function(){return void a.H.notify([a.requestId],0)}));return b};Zyc.prototype.cancel=function(){return this.finished?!1:(this.finished=!0,this.ie.resolve(Wuc(this.request)),!0)};
var azc=function(a){a.finished||(a.log("Uploading chunk "+a.Ba+" for "+a.ha+"."),czc(a,4))},czc=function(a,b){dzc(a).then(function(c){if(c){var d=ezc(a,c.blob.size);a.Ha.then(function(f){return f.Pe(c,d)}).then(function(f){a.V=null;var h=c.blob.size;a.progress+=a.O;a.ta+=h;a.Ba++;f.WJ()&&(a.va=f.WJ());f.PM()&&(a.Fa=f.PM());a.progress<a.fileSize?azc(a):a.ie.resolve(f)},function(f){if(d.DEa)a.cancel();else{var h=_.gJ(f);h.zBa()||h.dla()||a.ma?fzc(a,b,h,!1):Yyc(c.blob).then(function(k){k=k?_.YEa.get(k)||
25:38;_.qJ(h,k);k=38===h.Ip();var l=38!==h.Ip()&&25!==h.Ip();fzc(a,b,h,k,l)},function(){})}})}else{var e=_.SB(_.qJ(_.mq(new _.Cc,"Could not read more of the file. Read "+a.progress+"/"+a.fileSize+" bytes."),5));a.ie.reject(e)}})},fzc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=4-b;c.jfa(f);!e&&0<b?(a.zu++,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+"."));czc(a,b)},a.Qa*Math.pow(1.5,f))):a.ie.reject(_.SB(c))},dzc=function(a,b){return a.ma&&a.V?_.Yh(a.V):gzc(a,b).then(function(c){if(!c)return null;if(a.ma&&0<a.fileSize&&0===c.size)return dzc(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 Puc(a.ha,c,a.ta,a.ta+c.size-1,a.finished,a.request.request.getMimeType(),_.y(a.request.request,
12)||void 0);return a.V})},gzc=function(a,b){a.O=b?b:Math.min(a.fileSize-a.progress,a.W);b=a.progress;return a.request.eQ?a.request.eQ(b,a.O):_.Yh(_.iuc(a.request.file,b,b+a.O))},ezc=function(a,b){var c=_.Ya(a.config);c.kRa=!0;var d=a.progress/a.fileSize,e=b/a.fileSize;myc(a.H,[a.fO]);lyc(a.H,a.fO,function(f){a.H.notify([a.requestId],Math.min(d+e*f,1))});return c},bzc=function(a,b){b.iMa(3);b.jfa(a.zu);b.WJ()||b.Hca(a.va);b.PM()||b.yca(a.Fa)};
_.hzc=function(a,b,c,d,e){this.ha=a;this.V=b;this.H=c;this.W=d;this.O=e};_.hzc.prototype.create=function(a,b){return new Zyc(this.ha,this.V,this.H,this.W,this.O,a,b)};
_.izc=function(a){this.O=a;this.H={}};_.izc.prototype.execute=function(a){for(var b=[],c=0;c<a.length;c++)if(a[c].Cv.Jw instanceof _.Quc)b.push(jzc(this,a[c].Cv));else{var d=_.mq(new _.Cc,"ResumableUploadExecutor only supports ResumableUploadRequests.");b.push(Promise.reject(_.SB(d)))}return b};_.izc.prototype.cancel=function(a){return!!this.H[a]&&this.H[a].cancel()};_.izc.prototype.dK=function(){return!_.Ta(this.H)};
var jzc=function(a,b){var c=a.O.create(b.Jw,b.config),d=c.start(),e=b.config.requestId;a.H[e]=c;return _.ci(d,function(){delete a.H[e]})};
_.kzc=function(a,b){return new _.iL(b,a,[new Myc],[new _.gL],[],"immediate")};_.lzc=function(a,b,c,d,e){return new _.iL(e,a,[_.Gyc(d),new _.fL(c,e),new Nyc],[new _.gL],[new _.Tyc(b,c,d.Lj(),e)],"connected")};_.mzc=function(a,b,c,d,e,f,h){h=void 0===h?_.ak(b,10,50):h;return new _.iL(e,a,[_.Gyc(d),new _.Kyc(h,_.ak(b,12,10)),new _.hL(3*h),new _.fL(c,e)],[new _.gL],[new _.Tyc(b,c,d.Lj(),e)],f)};_.nzc=function(a,b,c){b=_.ak(b,46,1);return new _.iL(c,a,[new _.hL(b)],[new _.gL],[],"resumable_upload")};
_.ozc=function(a,b,c,d,e,f,h,k){this.bI=a;this.ma=b;this.V=c;this.H=d;this.W=e;this.ha=f;this.ka=h;this.O=k};_.ozc.prototype.Pe=function(a,b){return pzc(this,a,b).then(null,function(c){c=_.SB(c);var d=c.Sg;Xuc(a)||_.oq(d);return _.Zh(c)})};
var pzc=function(a,b,c){c=void 0===c?{}:c;var d=a.bI.validate(b);if(d)return _.Zh(_.SB(d));var e=a.ma.translate(b);e instanceof _.Cc?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 _.Yh(d).then(function(){if(e instanceof _.Cc)return _.Zh(_.SB(e));if(Array.isArray(e)){var f=e.map(function(h){return qzc(a,b,h,c)});return _.SI(f)}return qzc(a,b,e,c)},function(f){return _.Zh(_.SB(f))})},
qzc=function(a,b,c,d){var e=rzc(a,c);if(!e)return b=_.qJ(_.mq(new _.Cc,"Failed to choose a queue for server request."),18),_.Zh(_.SB(b));if(e===a.H[7]||e===a.H[8])d.AN=!0;d=e.add({Jw:c,config:d});(_.qK(b)||_.qK(c))&&_.ci(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};_.ozc.prototype.cancel=function(a){return _.Oa(this.H,function(b){return b.cancel(a)})};
var rzc=function(a,b){var c,d=!1;b instanceof _.MJ?d=!(null===(c=_.B(b,_.zA,2))||void 0===c||!_.P(c,7)):b instanceof _.zA?d=!!_.P(b,7):b instanceof _.$I&&(d=(d=b.ud())&&!!_.P(d,46));return(b instanceof _.Tuc||b instanceof _.oJ&&_.P(b,9))&&a.H[1]?a.H[1]:b instanceof _.Quc&&a.H[5]?a.H[5]:d&&dvc(b,a.O)&&a.H[7]?a.H[7]:dvc(b,a.O)&&a.H[8]?a.H[8]:d&&(b instanceof _.MJ||b instanceof _.zA)&&a.H[6]?a.H[6]:(d||tyc.includes(b.constructor))&&a.H[3]?a.H[3]:Yuc.includes(b.constructor)&&a.H[4]?a.H[4]:a.H[2]||a.H[1]};
var szc=function(a){this.H=a};szc.prototype.build=function(a,b){var c="====="+_.Vg()+"=====",d=a[0].Zm,e=b.every(function(l){return l.AN});if(e){var f=d;var h={"content-type":"text/plain; charset=UTF-8"};d="POST";var k=syc(this.H,a[0].Zm);_.rj(k,"$ct",'multipart/mixed; boundary="'+c+'"')}else f=tzc[d],h=uzc[d]||{},h["content-type"]=_.Ht('multipart/mixed; boundary="%s"',c),d=vzc[d],k=new _.kj("");a=wzc(this,a,b,c,e);return{Zm:f,body:a,headers:h,method:d,uri:k}};
var wzc=function(a,b,c,d,e){for(var f=Cuc(xzc[b[0].Zm]||{}),h="",k=0;k<b.length;k++){e&&qyc(a.H,b[k],c[k]);var l=b[k],p=a.H,q=l,r=c[k];q.uri=ryc(p,q.Zm,q.uri);switch(q.Zm){case 0:case 5:pyc(p,q,r);oyc(p,q,r);break;case 2:qyc(p,q,r);pyc(p,q,r);var v=q,z=_.y(p.H.hg(),57);v.headers.host=_.yj(z).H;v.headers.origin=_.n.location.origin?_.n.location.origin:_.n.location.protocol+"//"+_.n.location.host;oyc(p,q,r);break;case 12:case 10:case 13:break;case 8:case 7:throw Error("df`"+q.Zm);default:throw Error("cf`"+
q.Zm);}p=l;q=p.uri.clone();_.lj(q,"");_.mj(q,"");_.nj(q,null);l=f+"\r\n"+(p.method+" "+q+" HTTP/1.1\r\n")+Cuc(l.headers)+"\r\n"+(l.body?l.body+"\r\n":"");h+="--"+d+"\r\n";h+=l}return h+("--"+d+"--\r\n")},yzc={},tzc=(yzc[0]=1,yzc[2]=3,yzc),zzc={},vzc=(zzc[0]="POST",zzc[2]="PUT",zzc[12]="POST",zzc),Azc={},Bzc={},uzc=(Bzc[2]=(Azc["x-goog-upload-protocol"]="batch",Azc),Bzc),Czc={},Dzc={},Ezc={},Fzc={},xzc=(Fzc[0]=(Czc["content-type"]="application/http",Czc["content-transfer-encoding"]="binary",Czc),Fzc[12]=
(Dzc["content-type"]="application/http",Dzc["content-transfer-encoding"]="binary",Dzc),Fzc[2]=(Ezc["content-type"]="application/http",Ezc),Fzc);
var Gzc=/^HTTP\/1\.1 (\d+) ([\w ]+)/,Hzc=/^multipart\/mixed; boundary="?([^"]+)"?$/;
var Izc=function(a,b,c,d,e){this.V=a;this.W=b;this.ha=c;this.H=d;this.O=e;this.ij=new Map};Izc.prototype.add=function(a,b){var c="DEFAULT";b.AN&&(c=syc(this.V,a.Zm).toString());this.ij.has(c)||this.ij.set(c,[]);c=this.ij.get(c);if(1<=c.length&&!b.AN&&!tzc[a.Zm])return a=_.mq(new _.Cc,"Unsupported batch API: "+a.Zm),_.Zh(_.SB(a));var d=_.ai();c.push({request:a,config:b,ie:d});return d.promise};
Izc.prototype.send=function(){for(var a={},b=_.m(this.ij.entries()),c=b.next();!c.done;a={Xqa:a.Xqa},c=b.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;try{Jzc(this,d)}catch(f){var e=_.sJ(f);e=_.nq(_.mq(new _.Cc,"Error executing XHR: "+e.message),e.stack);a.Xqa=_.SB(e);d.forEach(function(h){return function(k){k.ie.reject(h.Xqa)}}(a));this.ij.delete(c)}}};
var Jzc=function(a,b){if(1===b.length){var c=b[0];if(!c.config.cCa&&!c.config.AN){var d=!1;if(tzc[c.request.Zm]){var e={Zm:c.request.Zm,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){Kzc(a,c);return}}}Lzc(a,b)},Kzc=function(a,b){var c=b.ie;a.W.Zg(b.request,b.config).then(function(d){c.resolve(d);Mzc(a,b)},function(d){a.handleError(b,d);c.reject(d)})},Lzc=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),{cCa:!0,AN:d.every(function(e){return e.AN})}).then(function(e){e.headers=_.luc(e.headers);var f=Hzc.exec(e.headers["content-type"]);var h=f&&f[1]?"--"+f[1]:null;if(!h)throw new _.Dc("Could not extract batch boundary.",_.qJ(_.nq(new _.Cc,JSON.stringify(e)),14));f=h+"\r\n";h=e.text.split(h+"--");if(2===h.length&&_.Td(_.nia(h[0]),f)&&_.xe(h[1]))h=_.nia(h[0]).substring(f.length);else throw new _.Dc("Could not parse batch response; did not begin and end with boundary.",
_.qJ(_.nq(new _.Cc,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,C=f[l],G=p&&p.uri,H=C.split("\r\n\r\n");if(2>H.length)v=new _.Dc("Individual batch response contained too few parts.",_.qJ(_.nq(new _.Cc,C),17));else{var L=H[1].split("\r\n");if(z=Gzc.exec(L[0])){p=_.$g(z[1]);z=z[2];L.shift();A=_.Ya(A);for(var M=Object,T=M.assign,U={},ca=0;ca<L.length;ca++){var Z=_.wia(L[ca],":",1);Z&&2===Z.length&&
(U[(0,_.qg)(Z[0])]=(0,_.qg)(Z[1]))}L=_.luc(U);T.call(M,A,L);try{v=_.xe(_.Ug(H[2]))?void 0:JSON.parse(H[2])}catch(ja){}v=(p=_.quc(p,z,A,C,v,void 0,void 0,G&&G.toString()))?_.SB(p):{headers:A,text:C,json:v||void 0}}else v=new _.Dc("Could not extract HTTP status code and text.",_.qJ(_.nq(new _.Cc,C),16))}r.call(q,v)}return k}).then(null,function(e){e=_.SB(e);return _.Pqc(e,b.length)}).then(function(e){for(var f=!1,h=0;h<b.length;h++){var k=b[h].ie,l=e[h];l instanceof _.Cc||l instanceof _.Dc?(l=_.SB(l),
f||(f=a.handleError(b[h],l)),k.reject(l)):k.resolve(l)}f||Mzc(a,b[0])})},Mzc=function(a,b){var c=b.request.Zm;b=!b.config.ou&&_.na(Nzc,c);if(a.H){if(a=a.H,c=b?1:2,!a.state.isConnected()||b)c=eyc(a,c),b&&c&&a.reset(),a.H&&c&&(b||!a.state.O)&&(a.H.zj(),a.H=null)}else a.O&&b&&a.O.va()};
Izc.prototype.handleError=function(a,b){a=_.oIb(b);if(2===a.Ip()){if(this.H)return _.gyc(this.H),!0}else if(_.Ltc(a)){if(this.H){a=this.H;if(b=!a.V)b=a.state,b=!b.V&&b.isConnected()?b.H=!0:!1;b&&_.fyc(a);return!0}if(this.O)return this.O.ta(),!0}return!1};var Nzc=[0,2,4,7,8];
var Ozc=function(){_.hj.apply(this,arguments)};_.K(Ozc,_.hj);Ozc.prototype.getAllResponseHeaders=function(){return _.nia(_.hj.prototype.getAllResponseHeaders.call(this))};
var Pzc=function(a,b){this.W=a;this.V=b;this.O={};this.H={}};
Pzc.prototype.Zg=function(a,b){var c=this;try{this.W.lc(a,b);var d=new Ozc;d.uC=!0;var e=b.requestId||"",f=_.ai();d.listen("complete",function(){var h=b.cCa,k=4===a.Zm;h=void 0===h?!1:h;k=void 0===k?!1:k;e&&(delete c.O[e],delete c.H[e]);var l={headers:_.ema(d),text:d.Jl()};if(!h)try{l.json=_.vI(d)}catch(p){}h=_.quc(d.Bb(),_.bma(d),l.headers,l.text,l.json,d.O,_.fma(d),String(d.ta),k);d.dispose();h?f.reject(_.SB(h)):f.resolve(l)});e&&b.fO&&!b.AN&&(this.O[e]=d,this.H[e]=b,d.Gb=!0,d.listen("uploadprogress",
function(h){h.lengthComputable&&c.V.notify([b.fO],b.kRa?h.loaded/h.total:h.loaded/h.total/2)}),b.kRa||d.listen("downloadprogress",function(h){h.lengthComputable&&c.V.notify([b.fO],h.loaded/h.total/2+.5)}));d.send(a.uri,a.method,a.body,a.headers);return f.promise}catch(h){return _.Zh(_.SB(h))}};Pzc.prototype.cancel=function(a){var b=this.O[a];a=this.H[a];return b&&b.isActive()?(a.DEa=!0,b.abort(),!0):!1};
_.Qzc=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 szc(this.O);this.W=new Pzc(this.O,this.va)};_.g=_.Qzc.prototype;
_.g.execute=function(a){for(var b=[],c=[],d=0;d<a.length;d++){var e=a[d].Cv;this.V.push(e);b.push(this.Ba.xE(e,a[d].ED));c.push(uyc(e.Jw)?_.yyc(this.ma,e.Jw):void 0)}if(this.H&&this.H.V){var f=Promise.reject(_.SB(_.quc(0,"",{},"",void 0,-99)));return a.map(function(){return f})}var h=new Izc(this.O,this.W,this.ka,this.H||void 0,this.ha||void 0);d=[];e={};for(var k=0;k<a.length;e={Dqa:e.Dqa},k++){e.Dqa=a[k].Cv.config;var l=b[k].then(function(p){return function(q){return h.add(q,p.Dqa)}}(e));d.push(l)}Promise.allSettled(b).then(function(){h.send()});
b=[];for(e=0;e<a.length;e++)k=a[e].Cv,l=d[e].then(this.jnb.bind(this,k.Jw,c[e],a[e].ED)).then(null,function(p){return Promise.reject(_.SB(p))}),l.then(this.jMa.bind(this,k),this.jMa.bind(this,k)),b.push(l);return b};_.g.jnb=function(a,b,c,d){a=this.ta.xE(a,d,c);b&&(c=a.wd?a.wd():[],_.zyc(b,c));return a};_.g.cancel=function(a){return this.W.cancel(a)};_.g.dK=function(){return this.V.some(function(a){return _.qK(a.Jw)})};_.g.jMa=function(a){_.ta(this.V,a)};
_.Rzc=function(){};_.Rzc.prototype.execute=function(){return null};
var Szc=function(){};
var Tzc=function(a,b){this.H=a;this.O=b};
_.Uzc=function(a,b,c,d,e){this.id=a;this.jwt=b;this.currentKaclsId=c;this.currentKaclsName=void 0===d?"":d;this.customerId=void 0===e?"":e};
var Vzc=function(a){return"drive#fileList"===a.kind};
var Wzc;Wzc=function(a){this.H=a};_.jL=function(a,b){if(!_.Ba(b))throw new _.Dc("Expected an object, but got a "+_.fga(b)+".",_.rJ(11,void 0,8));var c=b.kind;if(!c)throw new _.Dc("Expected 'kind' parameter in response: "+JSON.stringify(b),_.rJ(11,void 0,21));if(!a.includes(c))throw new _.Dc("Expected "+a.join(" or ")+" but got a "+c+".",_.rJ(11,void 0,9));};_.kL=function(a){return null!=a?(new Date(a)).getTime():void 0};
_.Xzc=function(a){var b=null!=a.canDelete?a.canDelete:a.canDeleteTeamDrive;var c=_.jvc(new _.Xk,a.canAddChildren);c=_.w(c,18,a.canChangeTeamDriveBackground);c=_.w(c,2,a.canComment);c=_.w(c,3,a.canCopy);b=_.svc(_.nvc(_.tvc(_.uvc(_.vvc(_.rvc(_.qvc(_.mvc(_.lvc(_.kvc(c,b),a.canDownload),a.canEdit),a.canManageMembers),a.canManageVisitors),a.canMoveItemIntoTeamDrive),a.canMoveTeamDriveItem),a.canReadTeamDrive),a.canRemoveChildren),a.canRename);b=_.w(b,13,a.canRenameTeamDrive);b=_.wvc(_.pvc(_.ovc(b,a.canShare),
a.canTrash),a.canUntrash);b=_.w(b,27,a.canModifyContentRestriction);b=_.w(b,26,a.canShareOutsideDomain);b=_.zvc(_.yvc(_.xvc(_.w(b,30,a.canMoveItemWithinTeamDrive),a.canMoveItemOutOfTeamDrive),a.canMoveChildrenWithinTeamDrive),a.canMoveChildrenOutOfTeamDrive);b=_.w(b,34,a.canDeleteChildren);b=_.w(b,35,a.canTrashChildren);b=_.w(b,36,a.canRequestApproval);b=_.w(b,37,a.canReadCategoryMetadata);b=_.w(b,38,a.canEditCategoryMetadata);b=_.w(b,39,a.canChangeCategoryReferences);b=_.w(b,49,a.canSetMissingRequiredFields);
b=_.w(b,40,a.canAddMyDriveParent);b=_.w(b,41,a.canRemoveMyDriveParent);b=_.Bvc(_.Avc(b,a.canShareChildFiles),a.canShareChildFolders);b=_.w(b,44,a.canRead);b=_.Evc(_.Dvc(_.Cvc(_.w(b,45,a.canMoveItemWithinDrive),a.canMoveItemOutOfDrive),a.canMoveChildrenWithinDrive),a.canAddFolderFromAnotherDrive);b=_.w(b,50,a.canChangeSecurityUpdateEnabled);b=_.w(b,51,a.canRemoveSecureLinkUpdateForAllFiles);b=_.w(b,52,a.canCreateDecryptedCopy);b=_.w(b,53,a.canCreateEncryptedCopy);b=_.w(b,54,void 0===a.canAddEncryptedChildren?
a.canAddChildren:a.canAddEncryptedChildren);return _.w(b,55,a.canBlockOwner)};_.lL=function(a,b){_.jL(["drive#user"],b);var c=_.hvc(_.ivc(_.fvc(1).Ob(b.permissionId),b.id).hd(b.displayName),b.emailAddress);b.picture&&c.Ln(b.picture.url);_.ZI(a.H)&&_.hvc(c,b.emailAddressFromAccount||b.emailAddress);_.gvc(c,a.Tf(b.id));_.w(c,9,b.domain);return c};Wzc.prototype.Tf=function(a){if(a)return _.DK(_.KI(this.H))==a};
var Yzc,cAc,kAc,qAc,fAc,eAc,hAc,jAc,lAc,$zc,nAc,mAc,oAc,pAc,sAc,tAc,rAc,iAc;Yzc=function(a,b){this.H=a;this.O=b};
_.aAc=function(a,b,c){var d=new _.dL,e=new _.xB,f=e.Tw;_.jL(["drive#fileList","drive#file"],b);var h=[];if("drive#file"===b.kind)(a=_.Zzc(a,b))&&h.push(a);else if(Vzc(b))for(var k=b.items||[],l=0;l<k.length;l++){var p=_.Zzc(a,k[l]);h.push(p)}e=f.call(e,h);if(Vzc(b)){_.w(e,8,b.incompleteSearch);_.jL(["drive#fileList"],b);if(h=b.spellResponse){f=[];var q=_.m(h.spellCorrections);for(a=q.next();!a.done;a=q.next()){h=[];a=_.m(a.value.spellFragments);for(k=a.next();!k.done;k=a.next())k=k.value,l=(new _.gub).Dc($zc.get(k.status)),
l=_.w(l,1,k.original),k=_.w(l,3,k.correction),h.push(k);a=new _.kub;h=_.Kj(a,1,h);f.push(h)}q=new _.mub;_.Kj(q,1,f)}if((f=b.suggestedNlpQueries)&&0<f.length){var r=new _.iub;_.Ij(r,1,f)}q||r?(f=new _.nub,q&&_.I(f,1,q),r&&_.I(f,2,r),r=f):r=null;_.I(e,7,r);_.jL(["drive#fileList"],b);r=[];f=_.m(b.items||[]);for(q=f.next();!q.done;q=f.next())q=q.value,h=q.id,!h||"1"!=q.searchResultSource&&"3"!=q.searchResultSource||r.push(h);_.Ij(e,18,r)}d=_.Ayc(d,e);c=_.nuc(c);c=_.w(d,2,c);Vzc(b)&&b.nextPageToken&&_.w(c,
3,b.nextPageToken);return c};
cAc=function(a,b,c,d,e){_.jL(["drive#adminFile","drive#file","drive#revision"],b);var f=_.Nwc(new _.pK,c);"drive#adminFile"===b.kind?(_.jL(["drive#adminFile"],b),c=(new _.hl).Ob(b.id),b.parentId&&_.yK(c,[b.parentId]),_.Wvc(c,b.teamDriveId),f.setItem(c),_.Nwc(f,c.getId())):"drive#file"===b.kind?(b=_.Zzc(a,b),f.setItem(b),c||_.Nwc(f,b.getId())):"drive#revision"===b.kind&&(b=_.bAc(a,b),_.I(f,4,b));f.Hca(_.muc(d));f.yca(_.nuc(d));(d=(d=d&&_.luc(d))&&d["x-server-object-version"])&&e&&(e=(new _.IK).Ob(d),
_.I(f,4,e));f.Dc(1);return f};_.dAc=function(a,b){return _.Nwc(new _.pK,a).Dc(1).Hca(_.muc(b)).yca(_.nuc(b))};
_.gAc=function(a,b){_.jL(["drive#permission"],b);var c=_.gvc(_.ivc(_.fvc(eAc.get(b.type)).Ob(b.id),b.userId),a.H.Tf(b.userId));c=_.w(c,4,b.withLink);c=_.hvc(c.hd(b.name).Ln(b.photoLink),b.emailAddress);c=_.w(c,9,b.domain);c=_.w(c,10,b.deleted);c=_.w(c,12,b.audienceId);c=_.w(c,13,b.customerId);_.ZI(a.O)&&c.hd(b.nameIfNotUser);b.role&&(a=fAc.get(b.role),2==a&&b.additionalRoles&&"commenter"==b.additionalRoles[0]?a=4:2==a&&"published"==b.view&&(a=6),_.w(c,6,a));return c};
_.Zzc=function(a,b){_.jL(["drive#file"],b);var c=b.title,d=(new _.hl).Ob(b.id),e=[];if(b&&b.parents)for(var f=_.m(b.parents),h=f.next();!h.done;h=f.next())e.push(h.value.id);c=_.Tvc(_.Pvc(_.KG(_.yK(d,e).setTitle(c),b.mimeType),b.alternateLink),b.hasThumbnail);null!=b.thumbnailVersion&&_.w(c,90,Number(b.thumbnailVersion));_.w(c,21,b.iconLink);c.Xl(b.description);_.Qvc(c,b.explicitlyTrashed);_.w(c,22,b.shared);null!=b.quotaBytesUsed&&_.w(c,28,Number(b.quotaBytesUsed));null!=b.fileSize&&_.w(c,14,Number(b.fileSize));
_.w(c,30,b.copyable);b.labels&&(d=b.labels,c.Jv(d.starred),_.w(c,6,d.hidden),c.Mn(d.trashed),_.Mvc(c,d.restricted),_.w(c,9,d.viewed));_.w(c,10,_.kL(b.createdDate));_.w(c,69,_.kL(b.serverCreatedDate));_.R8b(c,_.kL(b.modifiedDate));_.w(c,12,_.kL(b.modifiedByMeDate));_.w(c,13,_.kL(b.lastViewedByMeDate));_.w(c,23,_.kL(b.sharedWithMeDate));_.w(c,62,_.kL(b.vac));_.w(c,70,_.kL(b.recency));b.recencyReason&&(d=hAc.get(b.recencyReason)||0,_.w(c,71,d));d=[];if(b&&b.owners)for(e=b.owners,f=0;f<e.length;f++)(h=
_.lL(a.H,e[f]))&&d.push(h);_.Nvc(c,d);b.lastModifyingUser&&(d=_.lL(a.H,b.lastModifyingUser),_.Ovc(c,d));b.userPermission&&(d=fAc.get(b.userPermission.role),_.S8b(c,d));b.imageMediaMetadata&&(e=b.imageMediaMetadata,d=(new _.vK).yh(e.width).xh(e.height),d=_.w(d,4,e.rotation),e.date&&(e=e.date,f=new _.stc,f.setMilliseconds(0),iAc.parse(e,f),_.w(d,1,f.getTime())),_.I(c,27,d));null!=b.folderColor&&_.Svc(c,Number(b.folderColor));_.Rvc(c,b.subscribed);_.w(c,45,b.fileExtension);_.Ij(c,50,b.folderFeatures);
_.w(c,36,b.flaggedForAbuse);_.w(c,53,b.gplusMedia);_.w(c,46,b.primarySyncParentId||void 0);_.w(c,35,b.hasChildFolders);b.source&&(_.w(c,42,b.source.client_service_id),_.w(c,43,b.source.value));b.sharingUser&&(d=_.lL(a.H,b.sharingUser),_.Uvc(c,d));b.sources?_.Ij(c,56,b.sources):b.gplusMedia&&_.Ij(c,56,["GOOGLE_PHOTOS"]);if(b.spaces){d=b.spaces;e=[];for(f=0;f<d.length;f++)h=d[f],_.Iqc[h]&&(h=_.kf(new _.jf,_.Iqc[h]),e.push(h));c.HA(e)}_.w(c,63,b.ownedByMe);_.w(c,29,b.shareable);b.sourceAppId&&_.w(c,
61,b.sourceAppId);_.w(c,74,b.changed);null!=b.recursiveFileSize&&_.w(c,77,Number(b.recursiveFileSize));null!=b.recursiveFileCount&&_.w(c,79,Number(b.recursiveFileCount));if(b.actionItems){d=b.actionItems;e=[];for(f=0;f<d.length;f++){var k=d[f];k.id&&k.type&&(h=(new _.Pna).Ob(k.id),k=jAc.get(k.type),h=_.w(h,2,k),e.push(h))}_.Kj(c,83,e)}b.capabilities&&_.zK(c,_.Xzc(b.capabilities));b.permissionsSummary&&_.Xvc(c,kAc(a,b.permissionsSummary));b.headRevisionId&&_.w(c,78,b.headRevisionId);b.templateData&&
(d=b.templateData,e=(new _.wK).Xl(d.description),f=lAc.get(d.galleryState),e=_.w(e,3,f),d=_.Ij(e,2,d.category),_.I(c,86,d));_.Wvc(c,b.teamDriveId);_.w(c,76,b.hasAugmentedPermissions);_.w(c,137,b.ancestorHasAugmentedPermissions);b.creator&&(d=_.lL(a.H,b.creator),_.Yvc(c,d));_.Zvc(c,b.primaryDomainName);_.$vc(c,b.organizationDisplayName);_.w(c,94,b.passivelySubscribed);b.trashingUser&&_.awc(c,_.lL(a.H,b.trashingUser));c.Mca(_.kL(b.trashedDate));b.version&&_.w(c,75,Number(b.version));_.w(c,98,b.hasVisitorPermissions);
_.w(c,102,b.hasAppsScriptAddOn);if(d=b.pairedDocType)d=mAc.get(d),_.w(c,101,d);b.videoMediaMetadata&&(d=b.videoMediaMetadata,e=(new _.xK).yh(d.width).xh(d.height),d.durationMillis&&_.w(e,3,Number(d.durationMillis)),_.I(c,103,e));_.Ij(c,104,b.detectors);_.w(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=_.Hvc(_.Gvc(new _.Zk,f.readOnly),f.reason),d.push(f);_.Kj(c,125,d)}if(d=b.publishingInfo)_.w(c,118,d.published),
_.w(c,119,d.publishedUrl);_.Ij(c,120,b.workspaceIds);b.approvalMetadata&&b.approvalMetadata.approvalVersion&&_.w(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 _.Rna).Ob(f.approvalId).Dc(nAc.get(f.status)),d.push(f);_.Kj(c,127,d)}b.shortcutDetails&&(d=b.shortcutDetails,e=new _.aoa,e=_.w(e,1,d.targetId),e=_.w(e,3,d.targetMimeType),e=_.w(e,6,d.canRequestAccessToTarget),
d.targetLookupStatus&&(f=oAc.get(d.targetLookupStatus)||0,_.w(e,4,f)),d.targetFile&&(d=_.Zzc(a,d.targetFile),_.I(e,5,d)),_.I(c,132,e));b.clientEncryptionDetails&&(d=b.clientEncryptionDetails,e=new _.uK,f=pAc.get(d.encryptionState),e=_.w(e,1,f),d.decryptionMetadata&&(d=qAc(d.decryptionMetadata),_.I(e,2,d)),_.I(c,138,e));b.linkShareMetadata&&(d=b.linkShareMetadata,e=new _.Sna,e=_.w(e,2,d.securityUpdateEligible),e=_.w(e,3,d.securityUpdateEnabled),d=_.w(e,5,d.securityUpdateExplicitlySet),_.I(c,139,d));
_.w(c,140,b.resourceKey);_.Ij(c,135,b.authorizedAppIds);_.bwc(c,b.customerId);_.w(c,144,b.abuseIsAppealable);b.abuseNoticeReason&&(b=rAc.get(b.abuseNoticeReason)||0,_.w(c,145,b));_.Auc(c);_.ZI(a.O)&&_.Vvc(c,5);return c};
_.bAc=function(a,b){_.jL(["drive#revision"],b);var c=(new _.IK).Ob(b.id);c=_.w(c,2,b.mimeType);c=_.w(c,3,_.kL(b.modifiedDate));c=_.w(c,4,b.pinned);c=_.w(c,5,b.downloadUrl);c=_.w(c,7,b.originalFilename);null!=b.fileSize&&_.w(c,8,Number(b.fileSize));b.lastModifyingUser&&(a=_.lL(a.H,b.lastModifyingUser),_.I(c,9,a));b.decryptionMetadata&&(b=qAc(b.decryptionMetadata),_.I(c,10,b));return c};
kAc=function(a,b){return _.Kvc(_.Jvc(_.Ivc(new _.Wna,b.entryCount),(b.visibility||[]).map(function(c){var d=_.fvc(eAc.get(c.type));d=_.w(d,9,c.domain);d=_.w(d,4,c.withLink).Ob(c.type+"|"+(c.domain||"")+"|"+c.withLink);if(c.role){var e=fAc.get(c.role);2==e&&c.additionalRoles&&"commenter"==c.additionalRoles[0]&&(e=4);_.w(d,6,e)}return d})),(b.selectPermissions||[]).map(function(c){return _.gAc(a,c)}))};
qAc=function(a){var b=a.wrappedKey;var c=new _.Fvc;b=b?_.osc(b):void 0;c=_.w(c,1,b);c=_.w(c,2,Number(a.kaclsId));c=_.w(c,5,a.kaclsName);b=sAc.get(a.aes256GcmChunkSize);c=_.w(c,3,b);b=tAc.get(a.keyFormat);c=_.w(c,6,b);return _.w(c,4,a.jwt)};fAc=new Map([["fileOrganizer",7],["organizer",5],["owner",1],["reader",2],["writer",3]]);eAc=new Map([["anyone",4],["audience",5],["domain",3],["group",2],["user",1]]);hAc=new Map([["createdByMe",1],["modifiedByMe",2],["modified",3],["viewedByMe",4]]);
jAc=new Map([["MENTION",0],["SUGGESTION",1],["ASSIGNMENT",2]]);lAc=new Map([["UNAVAILABLE",1],["AVAILABLE",2],["PENDING",3]]);$zc=new Map([["CORRECT",1],["INCORRECT",2],["SUSPICIOUS",3]]);nAc=new Map([["IN_PROGRESS",1],["APPROVED",2],["CANCELLED",3]]);mAc=new Map([["docs",1],["sheets",2],["slides",3]]);oAc=new Map([["ok",1],["notFound",2],["permissionDenied",3]]);pAc=new Map([["unencrypted",1],["encrypted",2]]);sAc=new Map([["unset",0],["default",1],["small",2],["size16kb",3]]);
tAc=new Map([["unsetKeyFormat",0],["tinkKeyset",1],["tinkAesGcmKey",2]]);rAc=new Map([["unknownReason",0],["accessibleOnlyToOwner",1],["accessibleOnlyToOwningCustomer",2],["suspiciousOther",3],["suspiciousPhishing",4],["suspiciousMalware",5]]);iAc=new _.BWa("yyyy:MM:dd HH:mm:ss");
var uAc=function(a,b,c){this.O=a;this.H=b;this.V=c};
var xAc;_.vAc=function(a){this.V=new Wzc(a);this.kF=new Yzc(this.V,a)};_.vAc.prototype.xE=function(a,b,c){c=void 0===c?[]:c;try{return wAc(this,a,b,c)}catch(d){_.tJ(d)}};
var wAc=function(a,b,c,d){var e=a.ha(b,c);if(e)return e;if(b instanceof _.AJ)return _.mL(a,b,c);if(b instanceof _.JJ)return xAc(0,c,d);if(b instanceof _.zA||b instanceof _.MJ){if(!c.json)throw _.nL();return _.aAc(a.kF,c.json,c.headers)}if(b instanceof _.kK)return _.mL(a,b,c);if("undefined"!=typeof _.Luc&&b instanceof _.Luc){if(!c.json)throw _.nL();a=c.json;return new _.Uzc(a.fileId,a.jwt,Number(a.currentKaclsId),a.currentKaclsName,a.customerId)}if("undefined"!=typeof _.yAc&&b instanceof _.yAc){if(!c.json)throw _.nL();
return _.bAc(a.kF,c.json)}if(b instanceof _.YJ)return xAc(b.ud(),c,d);if(b instanceof Puc){if(b.V){if(!c.json)throw _.nL();a=cAc(a.kF,c.json,null,c.headers,!!b.revisionId)}else a=_.dAc(null,c.headers);return a}if(b instanceof Ouc){a=_.luc(c.headers);b=a.location;if(!b)throw a=_.qJ(new _.Cc,10),new _.Dc("No upload session URI included.",a);return new uAc(b,_.muc(a),_.nuc(a))}if(b instanceof _.Tuc)return new Szc;throw new _.Dc("FromXhrConverter: Unsupported request type.",new _.Cc);};
_.vAc.prototype.ha=function(){return null};xAc=function(a,b,c){return"base64"===b.headers["x-goog-safety-encoding"]?new Tzc(_.Naa(b.text),c.length):new Tzc(new Uint8Array(_.uma(b.text)),c.length)};_.mL=function(a,b,c){if(!c.json){if(b instanceof _.iJ)return _.dAc(_.zAc(b));throw _.nL();}var d=!1;b instanceof _.kK&&(d=!!_.y(b.request,12));return cAc(a.kF,c.json,_.zAc(b),c.headers,d)};_.nL=function(){var a=_.qJ(new _.Cc,11);return new _.Dc("FromXhrConverter: JSON required, but none found",a)};
_.zAc=function(a){return a.getId?a.getId():a.Ac?a.Ac():null};
var DAc,EAc,GAc,AAc,HAc,BAc;
DAc=function(a,b){var c={};_.xe(_.Ug(a.getTitle()))||(_.y(a,12)?c.originalFilename=a.getTitle():c.title=a.getTitle());if(a.getMimeType()&&(c.mimeType=a.getMimeType(),a.Ac()&&_.gfa(a.getMimeType())&&b)){var d=b.j$(),e=b.O(),f={encryptionState:"encrypted"},h={};f.decryptionMetadata=(h.wrappedKey=_.Bj(b.V()),h.kaclsId=b.ha(),h.aes256GcmChunkSize=AAc[d?d.O():0],h.keyFormat=BAc[e?e.O():0],h);c.clientEncryptionDetails=f}_.CAc(c,_.fe(a,3));(b=a.Ac())&&(c.id=b);_.y(a,16)&&(c.embeddingParent=_.y(a,16));a.G1()&&
(c.shortcutDetails={},c.shortcutDetails.targetId=a.G1());"number"===typeof _.y(a,26)&&(c.modifiedDate=_.lwc(_.dxc(_.y(a,26)||0)));return c};_.CAc=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)}}};EAc={};_.FAc=(EAc[1]="active",EAc[2]="archived",EAc);GAc={};AAc=(GAc[0]="unset",GAc[1]="default",GAc[2]="small",GAc[3]="size16kb",GAc);HAc={};BAc=(HAc[0]="unsetKeyFormat",HAc[1]="tinkKeyset",HAc[2]="tinkAesGcmKey",HAc);
var KAc=function(a,b,c){return(a.eQ?a.eQ(0,a.file.size):Promise.resolve(a.file)).then(function(d){return Xyc(d)}).then(function(d){return IAc(a,b,d,c)},JAc)},IAc=function(a,b,c,d){var e=!!_.y(a.request,12),f="files";e&&(f+="/"+_.y(a.request,12));f=new _.kj(f);_.rj(f,"uploadType","multipart");_.rj(f,"supportsTeamDrives",!0);_.rj(f,"pinned",!!_.Q(a.request,13,!1));null!=_.P(a.request,8)&&_.rj(f,"convert",_.P(a.request,8));_.rj(f,"fields",_.vuc({fields:_.LK(b).filter(function(q){return 194!=q}),Aq:!1}));
Buc(f,a.request.se());var h=DAc(a.request,a.metadata),k=_.Vg();b={};b=(b["content-type"]=_.Ht('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());_.tK(d,_.Oj(a.request,_.Jl,28),[],null,b);a="--"+k;a=a+"\r\n"+Cuc(l)+"\r\n"+h+"\r\n"+a+"\r\n"+Cuc(p)+"\r\n"+c+"\r\n"+
a+"--";return{Zm:2,headers:b,method:e?"PUT":"POST",uri:f,body:a}},JAc=function(a){if(a instanceof _.ZJb){var b=new _.Cc;_.mq(b,"fs.Error: "+a.message);a=(a=a.name)?_.YEa.get(a)||25:38;_.qJ(b,a);b=_.SB(b)}else b=_.sJ(a);return Promise.reject(b)};
_.oL=function(a,b,c,d){this.H=a;this.Lg=b;this.O=c;this.dg=d;this.ka=_.rK(a)||new _.dwc};_.oL.prototype.xE=function(a,b){try{return a.Jw instanceof _.kK?KAc(a.Jw,this.Lg,this.H):Promise.resolve(this.V(a.Jw,a.config,b))}catch(c){return c instanceof _.Dc?a=c.Sg:(a=new _.Cc,_.mq(a,"Error converting XHR: "+c.message),_.nq(a,c.stack),_.qJ(a,4)),Promise.reject(a)}};
_.oL.prototype.V=function(a,b,c){var d=0,e,f={},h="GET",k={},l=!1,p=!1;if(a instanceof _.AJ){h=(e=!!_.y(a,12))?"PUT":"POST";var q="files";e&&(q+="/"+_.y(a,12),k.pinned=!!_.Q(a,13,!1));null!=_.P(a,8)&&(k.convert=_.P(a,8));k.fields=_.vuc({fields:this.Mg(c),Aq:_.wI(_.KI(this.H)),DE:_.ZI(this.H)});e=DAc(a);f["content-type"]="application/json";var r=a.se();p=!0;_.KK(k);_.LAc(this.H,k);_.tK(this.H,_.Oj(a,_.Jl,28),_.fe(a,3).concat([_.y(a,16),a.G1(),a.Ac()]),this.O,f)}else if(a instanceof _.JJ||a instanceof
_.YJ)a instanceof _.YJ?(l=a.ud(),_.Cj(a,2)&&(q="bytes="+_.y(a,2)+"-",_.Cj(a,3)&&(q+=_.y(a,3)),f.range=q)):l=a,q="files/"+l.getId(),_.y(l,2)&&(k.revisionId=_.y(l,2)),k.alt="media",f["X-Goog-Encode-Response-If-Executable"]="base64",_.tK(this.H,[_.Kl((new _.Jl).Ob(l.getId()),_.y(l,3))],[l.getId()],this.O,f),p=l=!0;else if(a instanceof _.MJ||a instanceof _.zA){if(a instanceof _.MJ)q=_.y(a,1),a=_.B(a,_.zA,2);else if(a instanceof _.zA)q=0,_.aL(this.dg,190196159);else throw Error("bg");p=a.mn()[q];q="files/"+
p;r=_.va(this.Mg(c),this.Mg(c,a.O()));_.Da(r);k.fields=_.vuc({fields:r,Aq:_.wI(_.KI(this.H)),DE:_.ZI(this.H)});_.KK(k);_.MAc(this.H,k);_.NAc(this.H,k);this.W(p,k);r=a.se();p=!0;_.P(a,7)&&(b.cCa=!0);_.tK(this.H,_.Oj(a,_.Jl,11),a.mn(),this.O,f)}else if("undefined"!=typeof _.Luc&&a instanceof _.Luc)q="files/generateCseToken",a.id&&(k.fileId=a.id),k.role=a.role,r=a.H;else if("undefined"!=typeof _.yAc&&a instanceof _.yAc)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 Puc){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?_.Ht("bytes %d-%d/%d",v,b,b+1):_.Ht("bytes %d-%d/*",v,b)}v=a.blob;p=!0}else a instanceof Ouc?(d=2,h=(e=!!_.y(a.request,12))?"PUT":"POST",q="files",e&&(q+="/"+_.y(a.request,12)),k.uploadType="resumable",k.pinned=!!_.Q(a.request,13,!1),null!=_.P(a.request,8)&&(k.convert=_.P(a.request,8)),k.fields=_.vuc({fields:this.Mg(c).filter(function(z){return 194!=
z}),Aq:_.wI(_.KI(this.H)),DE:_.ZI(this.H)}),_.KK(k),e=DAc(a.request,a.metadata),f["content-type"]="application/json",null!=a.request.getMimeType()&&(f["x-upload-content-type"]=a.request.getMimeType()),_.tK(this.H,[],_.fe(a.request,3),this.O,f),r=a.request.se(),p=!0):a instanceof _.Tuc?(q="about",k.fields="kind",r=a.H,p=!0):_.OAc(a);p&&_.PAc(c,k);0!=d||l||r&&_.y(r,1)||_.aL(this.dg,74438989);return _.QAc(this,d,q,k,f,h,r,e,v)};
_.QAc=function(a,b,c,d,e,f,h,k,l){c=new _.kj(c);[10,12,13].includes(b)||Buc(c,h);_.Q(a.ka,11,!1)&&(a=a.H.Wi())&&(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,_.vj(c,a,h);return{Zm:b,headers:e,method:f,uri:c,body:k?JSON.stringify(k):l}};_.MAc=function(a,b){_.Q(a.hg(),23,!1)&&(b.includePermissionsForView="published")};_.oL.prototype.W=function(){};
_.NAc=function(a,b){_.Q(a,14,!1)&&(b.useLegacyDomainPermissionBehavior=!1)};_.LAc=function(a,b){_.Q(a,3,!1)&&(b.enforceSingleParent=!0)};_.PAc=function(a,b){a&&a.length?(b.retryCount=a.length,b.msSinceLastAttempt=Date.now()-_.ha(a).aRb):b.retryCount=0};_.oL.prototype.Mg=function(a,b){b||(b=_.LK(this.Lg));0<a.length&&(b=b.slice(0),_.jaa(b,function(c){return Lwc.includes(c)}));return b};_.OAc=function(a){var b=_.qJ(new _.Cc,4);throw new _.Dc("ToXhrConverter: Unsupported request type: "+Vuc(a),b);};
_.qL=function(a,b,c,d,e,f){_.Di.call(this);var h=this;this.O=a;this.V=b;this.Ba=c;this.W=d;this.va=e;this.ta=f;this.ij={};this.ha={};this.dg=null;_.Qe(this,function(){h.cG()})};_.K(_.qL,_.Di);_.qL.prototype.jQ=function(){return _.RI()};
_.qL.prototype.upload=function(a,b,c,d){xyc(this.V,"UploadTotalCount");var e=a.fj();if(e&&this.ij[e])throw new _.Dc("Upload requested with a duplicate request ID.");var f=_.fe(a,10);if(f&&f.length){if(1!==f.length)throw new _.Dc("Multi-parented uploads are not supported.");var h=this.ij[f[0]];if(!h)throw new _.Dc("The parent upload request must precede this request.");}!_.y(a,26)&&b&&b.lastModified&&_.w(a,26,b.lastModified);e||(e=this.jQ(),_.w(a,9,e));a=a.clone();f=RAc(this,e);this.ij[e]={request:a,
file:b,vf:f,CM:!1,zu:0,success:!1,wE:!1,children:[],metadata:c,ola:void 0,eQ:d};h?SAc(this,e,h):this.ka(e);return f.$m()};
var RAc=function(a,b){var c=new _.di;c.lg(_.Db(a.Fa,b),_.Db(a.Ha,b),a);return c},SAc=function(a,b,c,d){var e=a.ij[b];c.children.push(b);_.Da(c.children);c.vf.then(function(f){if(1===f.Bb()&&(f=f.Ac(),_.fe(e.request,3).push(f),_.OI(e.request,10),!c.wE||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.vf.Jd(_.YI(f)?f:Error(f))})};
_.qL.prototype.Fa=function(a,b){xyc(this.V,"UploadSuccessCount");a=this.ij[a];a.success=1===b.Bb();(b=a.ola)&&!a.wE&&(Dwc(Fwc(uxc(b),a.zu),!0),b.zj())};_.qL.prototype.Ha=function(a,b){var c=_.B(this.O,_.pJ,58);c&&_.Q(c,1,!1)&&(this.ha[a]=b);xyc(this.V,"UploadFailureCount");c=this.ij[a];(a=c.ola)&&!c.wE&&(Dwc(Fwc(uxc(a),c.zu),!1),b=(c=b&&b.Sg)&&c.zk(),c=c&&c.Ip(),b?Ewc(uxc(a),TAc.get(b)||13):c&&Ewc(uxc(a),UAc.get(c)||0),a.zj())};
_.qL.prototype.ka=function(a){var b=this.ij[a];if(!b.CM){b.CM=!0;a=this.ij[a];var c=a.request,d=_.B(this.O,_.pJ,58);d&&_.Q(d,4,!1)&&(d=c.getTitle().match(VAc))&&(!d[1]||a.zu<Number(d[1].substr(1)))&&(c=c.clone(),_.ra(_.fe(c,3),"$#@! Invalid parent ID."));a=c;c=(c=b.request.Pz())?_.y(c,1)||0:0;var e=b.file&&b.file.size||c;c=this.O.hg();d=_.ak(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.ola=f;f=uxc(f);f=_.w(f,1,2===d?2:1);f=_.w(f,4,!!b.metadata);
var h=!!_.y(a,12);f=_.w(f,5,h);e=_.w(f,6,e);c=_.ak(c,32,1073741824);_.w(e,7,c)}}switch(d){case 2:b.file&&WAc(this,new _.Quc(a,b.file,b.eQ,b.metadata),b.vf,a.fj());break;case 1:b.file&&(c=b.vf,d=b.file,e=b.metadata,b=b.eQ,f=_.B(this.O,_.cwc,2),WAc(this,new _.kK(a,d,b,f&&_.AK(f)?e:void 0),c,a.fj()));break;case 3:WAc(this,a,b.vf,a.fj());break;default:throw new _.Dc("Upload type ${uploadType} not supported.");}}};
var WAc=function(a,b,c,d){lyc(a.Ba,d,a.ma.bind(a,d));_.ci(a.W.then(function(e){return e.Pe(b,{requestId:d})}).then(null,function(e){return XAc(a,b,e)}),function(){myc(a.Ba,[d])}).then(c.callback,c.Jd,c)},XAc=function(a,b,c){var d=_.SB(c),e=b instanceof _.kK&&b.request.Ac()||"";c=d.Sg;if(e&&8===c.zk()){a.log("Create failed with 409 Conflict, re-querying: "+e);var f=_.BA(new _.zA,[e]);return _.ji(a.W.then(function(h){return h.Pe(f)}).then(function(h){h=h.jd().wd()[0];var k=b.request;if(h&&!h.Wh()&&
(h.getMimeType()||"").replace(/\s/g,"")===(k.getMimeType()||"").replace(/\s/g,"")&&h.getTitle()===k.getTitle())return a.log("Matching item found for: "+e),_.Nwc((new _.pK).setItem(h),e).Dc(1);a.log("No matching item found for: "+e);return _.Zh(d)}))}return _.ki(d)};_.g=_.qL.prototype;
_.g.cancel=function(a){var b=this,c=this.ij[a];if(c&&(!c.wE||0!==c.children.length))if(c.wE=!0,c.vf.jg())this.log('[Cancel] Response for "'+c.request.getTitle()+'" already received. Cannot cancel.'+(c.children.length?" Attempting to cancel children.":"")),_.Ia(c.children,this.cancel,this);else{var d=c.ola;d&&(Ewc(Dwc(Fwc(uxc(d),c.zu),!1),2),d.zj());var e=_.ai();c.CM?this.W.then(function(f){return void e.resolve(f.cancel(a))}):(c.CM=!0,c.vf.callback(Wuc(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.cG=function(){var a=this;_.La(this.ij,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.ij[f]){var h=[];do{h.push(f);var k=(_.fe(b.ij[f].request,10)||[])[0];if(k){var l=b.ij[k];if(l.success||!l.vf.jg()||e[k])break;else if(!c.has(k)){e[f]=new _.Dc("Unable to retry request due to failed parent upload.");break}}f=k}while(f);_.ia(h,function(p){var q=b.ij[p];q.zu++;if(!e[p])if(!q.vf.jg()||q.success)e[p]=new _.Dc("Unable to retry request.");else{var r=(_.fe(q.request,10)||[])[0];e[r]instanceof _.Dc?
e[p]=e[r]:(q.vf=RAc(b,p),q.CM=!1,q.wE=!1,(r=r?b.ij[r]:null)?SAc(b,p,r,!0):d.push(p),e[p]=q.vf.$m())}})}else e[f]=new _.Dc("Retry request with unknown ID.")});a=a.map(function(f){f=e[f];return f instanceof _.di?f:_.ki(f)});_.Ia(d,this.ka,this);return a};_.g.log=function(){this.isDisposed()};_.g.ud=function(a){return this.ij[a]};var VAc=/^uploadTestFailMe(\.[1-9])?$/,UAc=new Map([[2,12],[5,1],[27,3],[29,4],[30,5],[31,6],[35,7],[36,8],[37,9],[38,10],[25,11]]),TAc=new Map([[3,14]]);

_.u();

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


_.u();

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


_.u();

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


_.u();

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

_.YAc=function(a,b){return _.w(a,1,b)};_.ZAc=function(a,b){return _.I(a,1,b)};_.$Ac=function(a,b){return _.w(a,2,b)};_.aBc=function(a,b){return _.I(a,3,b)};

_.u();

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


_.u();

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

var bBc,cBc;bBc=[1];_.rL=function(a){_.J.call(this,a,-1,bBc)};_.K(_.rL,_.J);_.rL.prototype.O=function(){return _.fe(this,1)};_.sL=function(a){_.J.call(this,a,-1,cBc)};_.K(_.sL,_.J);_.sL.prototype.Bb=function(){return _.y(this,1)};_.sL.prototype.Dc=function(a){return _.w(this,1,a)};_.sL.prototype.Oi=function(){return _.Oj(this,_.hl,2)};_.dBc=function(a,b){return _.Kj(a,2,b)};_.sL.prototype.zq=function(a,b){return _.Xj(this,2,a,_.hl,b)};_.sL.prototype.ag=function(){return _.y(this,4)};
_.eBc=function(a,b){return _.w(a,4,b)};cBc=[2];

_.u();

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

_.tL=function(a,b){_.w(a,1,b)};

_.u();

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

var fBc;_.gBc=function(a){return _.Ie(a).Mg(_.Q(a.get(_.gp),19,!1)?fBc:_.Ge)};fBc=[9,42,41,44,38,20,21,16,12,3,10,11,18,14,32,1,67,68,210,7,24,25,159,154,158,155,55,4,83,19,2,6,27];

_.u();

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

var hBc,iBc,jBc,kBc,lBc,nBc,oBc,pBc,qBc,rBc,tBc,uBc,vBc,wBc,xBc,wL,CBc,DBc,xL,yL,EBc,FBc,HBc,IBc,JBc,KBc,LBc,NBc,OBc,PBc,QBc,RBc,SBc,TBc,VBc,XBc,dCc,fCc,iCc,jCc,mCc,pCc,CL,qCc,rCc,sCc,tCc,uCc,vCc,wCc,xCc,yCc,BCc,ACc,ECc,GCc,ICc,KCc,OCc,QCc,RCc,SCc,TCc,UCc,VCc,ZCc,aDc,bDc,cDc,uL,dDc,eDc,zBc,yBc,ABc,BBc,BEc,GL,IL,HEc,SEc,VEc,WEc,XEc,$Ec,aFc,zCc,DFc,EFc,FFc,GFc,IFc,JFc,KFc,LFc,JL,MFc,KL,NFc,OFc,PFc,QFc,RFc,SFc,LL,TFc,UFc,VFc,WFc,XFc,YFc,ML,bGc,cGc,dGc,eGc,mBc,fGc,gGc,hGc,kGc,pHc,qHc,sHc,tHc,vHc,wHc,
xHc,yHc,BHc,DHc,NHc,WIc,$Bc,XIc,YIc,ZIc,bJc,iJc,jJc,xNc,yNc,GNc,QNc,ZNc,gOc,mOc,tOc,vOc,AOc,GOc;hBc=function(a){a={Title:a.getTitle(),Type:a.getMimeType(),Parents:_.fe(a,3),Convert:_.P(a,8),ID:a.fj()};var b=[];_.La(a,function(c,d){c&&b.push(d+": "+c)});return b.join("; ")};
iBc=function(a){var b=[];b.push(hBc(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.zu&&b.push("# of retries by client: "+a.zu);var d="";a.CM?a.vf.jg()?a.vf.lg(function(){d="Completed successfully."},function(e){d=e instanceof _.ei?"Canceled.":"Completed with failure. See attachment."}):d="In progress.":d="Not yet executed.";b.push("State: "+
d);return b.join("\n")};
jBc=function(a,b,c,d,e,f){var h=_.Ht("Drive Upload Report: %d/%d failed",_.Pa(f),_.Pa(e));a=a.hg();d.push("Batch query interval: "+_.ak(a,12,10)+"ms");d.push("Max resumable upload chunk size: "+_.ak(a,32,1073741824)/1024/1024+" MiB");d.push("Max batch upload file size: "+_.ak(a,33,1048576)/1024/1024+" MiB");d.push("Max files in an upload batch: "+_.ak(a,35,10)+" files");d.push("Max files in a non-upload batch: "+_.ak(a,10,50)+" files");d=d.join("\n");var k=[],l=[];_.La(e,function(p){l.push(iBc(p))});k.push({name:"AllUploadRequests.txt",
content:l.join("\n---------\n")});k.push({name:"DataserviceLogs.txt",content:_.axc(b)});_.La(f,function(p,q){var r=k.push;q=e[q].request;q=_.Ht('ErrorResponseFor"%s"(ID:%s).txt',q.getTitle()||"",q.fj()||"");var v=p.Sg;v=v?_.y(v,4):"No detail.";r.call(k,{name:q,content:p.toString()+"\n"+v})});return{title:h,description:d,RP:k,od:152391,V8:c,e0:361003}};kBc=function(a){return Array.prototype.concat.apply([],arguments)};lBc=function(a,b,c){c=_.Fa(a,b,c);return 0>c?(_.za(a,-(c+1),0,b),!0):!1};
nBc=function(a,b){var c=new _.rL,d=new Set;if(6===a){a=_.m(b);for(b=a.next();!b.done;b=a.next())(b=b.value)?(b=_.$7a.get(b.rv()))&&d.add(b):d.add(1);0===d.size&&d.add(0)}mBc(c,[].concat(_.Ad(d)));return c};
oBc=function(a){var b=[],c={};a=_.m(a);for(var d=a.next();!d.done;c={Gea:c.Gea},d=a.next())if(d=d.value){c.Gea=new Map;[].concat(_.Ad(_.jl(d)),[d.ym(),d.Rt(),d.Iq()]).forEach(function(p){return function(q){q&&p.Gea.set(uL(q),q)}}(c));for(var e=[],f=_.m(c.Gea.values()),h=f.next();!h.done;h=f.next())if(h=h.value){var k=h.getName(),l=h.getEmail();e.push(uL(h)+"-"+((k?k.length:k)+"-")+((l?l.length:l)+"-")+_.Tk(h))}b.push(d.getId()+","+d.rv()+","+(e.length?e.join(","):"-"))}return b.length?"People: "+
b.join("|"):""};pBc=function(a){var b=new _.Wo;b.append("kind,largestChangeId,nextPageToken,");b.append("items(deleted,fileId,id,kind,");b.append(_.uJ(a,!0,"file"));a.a7&&(b.append(",teamDriveId,teamDrive("),b.append(a.a7),b.append(")"));b.append(")");return b.toString()};qBc=function(a){var b=new _.Wo;b.append("kind,nextPageToken,items(");b.append(_.uJ(a,!0));b.append("),incompleteSearch");a.a7&&(b.append(","),b.append(a.a7));return b.toString()};
rBc=function(a,b){for(var c=0;c<b.length;c++){var d=a,e=b[c],f=d.getCapabilities(),h=_.B(d,_.uK,138),k=_.B(d,_.Zk,111),l=_.B(d,_.vK,27),p=_.ol(d),q=d.Ff(),r=d.ig(),v=_.B(d,_.xK,103);switch(e){case 227:_.pb(d,144);break;case 228:_.pb(d,145);break;case 74:_.Lj(d,83);break;case 188:_.pb(d,137);break;case 149:_.OI(d,128);break;case 148:_.Lj(d,127);break;case 138:_.pb(d,126);break;case 184:_.OI(d,135);break;case 76:f&&_.pb(f,1);break;case 223:f&&_.pb(f,54);break;case 208:f&&_.pb(f,48);break;case 185:f&&
_.pb(f,40);break;case 224:f&&_.pb(f,55);break;case 213:f&&_.pb(f,50);break;case 156:f&&_.pb(f,39);break;case 61:f&&_.pb(f,2);break;case 216:f&&_.pb(f,52);break;case 217:f&&_.pb(f,53);break;case 77:f&&_.pb(f,4);break;case 134:f&&_.pb(f,34);break;case 147:f&&_.pb(f,38);break;case 81:f&&_.pb(f,10);break;case 82:f&&_.pb(f,11);break;case 114:f&&_.pb(f,27);break;case 133:f&&_.pb(f,33);break;case 202:f&&_.pb(f,47);break;case 132:f&&_.pb(f,32);break;case 101:f&&_.pb(f,20);break;case 201:f&&_.pb(f,46);break;
case 131:f&&_.pb(f,31);break;case 200:f&&_.pb(f,45);break;case 130:f&&_.pb(f,30);break;case 93:f&&_.pb(f,17);break;case 191:f&&_.pb(f,44);break;case 146:f&&_.pb(f,37);break;case 90:f&&_.pb(f,16);break;case 78:f&&_.pb(f,7);break;case 186:f&&_.pb(f,41);break;case 222:f&&_.pb(f,51);break;case 85:f&&_.pb(f,12);break;case 137:f&&_.pb(f,36);break;case 209:f&&_.pb(f,49);break;case 79:f&&_.pb(f,8);break;case 189:f&&_.pb(f,42);break;case 190:f&&_.pb(f,43);break;case 80:f&&_.pb(f,9);break;case 135:f&&_.pb(f,
35);break;case 102:f&&_.pb(f,21);break;case 69:_.pb(d,74);break;case 194:h&&_.Jj(h,2);break;case 193:h&&_.pb(h,1);break;case 1004:_.pb(d,108);break;case 136:_.Lj(d,125);break;case 115:k&&_.pb(k,1);break;case 116:k&&_.pb(k,2);break;case 34:_.pb(d,30);f&&_.pb(f,3);break;case 9:_.pb(d,10);break;case 91:_.Jj(d,91);break;case 43:_.pb(d,42);_.pb(d,43);break;case 187:_.pb(d,136);break;case 26:_.pb(d,24);break;case 108:_.OI(d,104);break;case 41:_.pb(d,40);f&&_.pb(f,5);break;case 42:_.pb(d,41);break;case 1005:_.Lj(d,
117);break;case 59:f&&_.pb(f,6);break;case 28:_.pb(d,26);break;case 44:_.pb(d,45);break;case 13:_.pb(d,14);break;case 48:_.pb(d,36);break;case 38:_.pb(d,34);break;case 49:_.OI(d,50);break;case 51:_.pb(d,53);break;case 104:_.pb(d,102);break;case 39:_.pb(d,35);break;case 87:_.pb(d,76);break;case 100:_.pb(d,98);break;case 72:_.pb(d,78);break;case 5:_.pb(d,6);break;case 20:_.pb(d,21);break;case 21:break;case 29:l&&_.pb(l,1);break;case 31:l&&_.pb(l,3);break;case 92:l&&_.pb(l,4);break;case 30:l&&_.pb(l,
2);break;case 16:_.Jj(d,17);break;case 12:_.pb(d,13);break;case 211:p&&_.pb(p,2);break;case 212:p&&_.pb(p,3);break;case 220:p&&_.pb(p,5);break;case 157:r&&_.Lj(r,8);break;case 3:_.pb(d,4);break;case 11:_.pb(d,12);break;case 10:_.pb(d,11);break;case 50:_.pb(d,49);_.pb(d,51);_.Jj(d,81);break;case 18:_.pb(d,19);break;case 95:_.pb(d,93);break;case 58:_.pb(d,63);break;case 14:_.Lj(d,15);break;case 103:_.pb(d,101);break;case 1:_.OI(d,2);break;case 96:_.pb(d,94);break;case 1003:_.Lj(d,107);break;case 75:_.Jj(d,
85);break;case 94:_.pb(d,92);break;case 45:_.pb(d,46);break;case 124:_.pb(d,118);break;case 125:_.pb(d,119);break;case 1002:_.Jj(d,100);break;case 32:_.pb(d,28);break;case 67:_.pb(d,70);break;case 68:_.pb(d,71);break;case 73:_.pb(d,79);break;case 71:_.pb(d,77);break;case 221:r&&_.pb(r,9);break;case 210:_.pb(d,140);break;case 7:_.pb(d,8);break;case 122:_.Jj(d,109);break;case 66:_.pb(d,69);break;case 33:_.pb(d,29);break;case 24:_.pb(d,22);break;case 25:_.pb(d,23);break;case 46:_.Jj(d,47);break;case 192:q&&
_.pb(q,6);break;case 159:q&&_.Jj(q,5);break;case 154:q&&_.pb(q,1);break;case 158:q&&_.pb(q,4);break;case 155:q&&_.pb(q,3);break;case 52:_.OI(d,56);break;case 56:_.pb(d,61);break;case 55:_.Lj(d,60);break;case 4:_.pb(d,5);break;case 35:_.pb(d,31);break;case 57:_.pb(d,62);break;case 83:_.pb(d,72);break;case 84:_.Jj(d,86);break;case 19:_.pb(d,20);_.pb(d,44);_.pb(d,90);break;case 2:_.pb(d,3);break;case 6:_.pb(d,7);break;case 98:_.pb(d,96);break;case 97:_.Jj(d,95);break;case 27:_.pb(d,25);break;case 70:_.pb(d,
75);break;case 107:v&&_.pb(v,3);break;case 106:v&&_.pb(v,2);break;case 105:v&&_.pb(v,1);break;case 8:_.pb(d,9);break;case 126:_.OI(d,120);break;default:throw Error("Qc`"+e);}}};tBc=function(a,b){if(0!=a.length){var c=new Set([].concat(_.Ad(a),_.Ad(sBc)));a=[].concat(_.Ad(_.ueb.keys())).filter(function(e){return!c.has(e)});for(var d=0;d<b.length;d++)rBc(b[d],a)}};
uBc=function(a,b){var c=a.getCapabilities()||new _.Xk,d=_.B(a,_.uK,138),e=_.B(a,_.Zk,111),f=_.B(a,_.vK,27),h=_.ol(a),k=a.Ff(),l=a.ig(),p=_.B(a,_.xK,103);switch(b){case 227:return null!=_.P(a,144);case 228:return null!=_.y(a,145);case 74:return 0<a.cu().length;case 188:return null!=_.P(a,137);case 149:return 0<_.fe(a,128).length;case 148:return 0<a.cza().length;case 138:return null!=a.e9();case 184:return 0<_.fe(a,135).length;case 76:return null!=_.Yk(c);case 223:return null!=_.P(c,54);case 208:return null!=
_.P(c,48);case 185:return null!=_.P(c,40);case 224:return null!=_.P(c,55);case 213:return null!=_.P(c,50);case 156:return null!=_.P(c,39);case 61:return null!=_.P(c,2);case 216:return null!=_.P(c,52);case 217:return null!=_.P(c,53);case 77:return null!=_.P(c,4);case 134:return null!=_.P(c,34);case 147:return null!=_.P(c,38);case 81:return null!=_.P(c,10);case 82:return null!=_.P(c,11);case 114:return null!=_.P(c,27);case 133:return null!=_.P(c,33);case 202:return null!=_.P(c,47);case 132:return null!=
_.P(c,32);case 101:return null!=_.P(c,20);case 201:return null!=_.P(c,46);case 131:return null!=_.P(c,31);case 200:return null!=_.P(c,45);case 130:return null!=_.P(c,30);case 93:return null!=_.P(c,17);case 191:return null!=_.P(c,44);case 146:return null!=_.P(c,37);case 90:return null!=_.Ee(c);case 78:return null!=_.P(c,7);case 186:return null!=_.P(c,41);case 222:return null!=_.P(c,51);case 85:return null!=_.P(c,12);case 137:return null!=_.P(c,36);case 209:return null!=_.P(c,49);case 79:return null!=
_.P(c,8);case 189:return null!=_.P(c,42);case 190:return null!=_.P(c,43);case 80:return null!=_.P(c,9);case 135:return null!=_.P(c,35);case 102:return null!=_.P(c,21);case 69:return null!=_.P(a,74);case 194:return null!=d&&null!=_.B(d,_.Fvc,2);case 193:return null!=d&&null!=_.y(d,1);case 1004:return null!=_.P(a,108);case 136:return 0<a.U0().length;case 115:return null!=e&&null!=_.P(e,1);case 116:return null!=e&&null!=_.y(e,2);case 34:return null!=_.P(a,30)||null!=_.P(c,3);case 9:return null!=a.VC();
case 91:return null!=a.Iq();case 43:return null!=_.y(a,42)||null!=_.y(a,43);case 187:return null!=a.Aj();case 26:return null!=a.Bf();case 108:return 0<_.fe(a,104).length;case 41:return null!=_.P(c,5);case 42:return null!=_.y(a,41);case 1005:return 0<_.nl(a).length;case 59:return null!=_.P(c,6);case 28:return null!=a.GI();case 44:return null!=_.y(a,45);case 13:return null!=a.VL();case 48:return null!=_.P(a,36);case 38:return null!=a.Yi();case 49:return 0<_.fe(a,50).length;case 51:return null!=_.P(a,
53);case 104:return null!=_.P(a,102);case 39:return null!=a.Tja();case 87:return null!=_.kl(a);case 100:return null!=_.P(a,98);case 72:return null!=_.y(a,78);case 5:return null!=_.P(a,6);case 20:return null!=a.nf();case 21:return null!=a.getId();case 29:return!(!f||null==_.y(f,1));case 31:return!(!f||null==_.y(f,3));case 92:return!(!f||null==_.y(f,4));case 30:return!(!f||null==f.De());case 16:return null!=a.ym();case 12:return null!=a.pz();case 211:return null!=h&&null!=_.P(h,2);case 212:return null!=
h&&null!=_.P(h,3);case 220:return null!=h&&null!=_.P(h,5);case 157:return!(!l||!_.Oj(l,_.fl,8));case 3:return null!=a.getMimeType();case 11:return null!=a.tB();case 10:return null!=a.yq();case 50:return null!=_.P(a,49)||null!=_.P(a,51)||null!=a.Rm();case 18:return null!=a.Kp();case 14:return 0<_.jl(a).length;case 95:return null!=a.dm();case 58:return null!=_.P(a,63);case 103:return null!=_.y(a,101);case 1:return 0<a.vk().length;case 96:return null!=_.P(a,94);case 1003:return 0<_.ml(a).length;case 75:return null!=
a.Yv();case 94:return null!=a.bN();case 45:return null!=a.Bw();case 124:return null!=_.P(a,118);case 125:return null!=_.y(a,119);case 1002:return null!=_.ll(a);case 32:return null!=a.Qu();case 67:return null!=a.TJ();case 68:return null!=_.y(a,71);case 73:return null!=_.y(a,79);case 71:return null!=a.w1();case 221:return null!=l&&null!=_.P(l,9);case 210:return null!=_.pl(a);case 7:return null!=a.N6();case 122:return null!=_.vL(a);case 66:return null!=_.y(a,69);case 33:return null!=_.P(a,29);case 24:return null!=
a.Ij();case 25:return null!=a.zy();case 46:return null!=a.Rt();case 192:return null!=k&&null!=_.P(k,6);case 159:return null!=k&&null!=_.ke(k);case 154:return null!=k&&null!=_.y(k,1);case 158:return null!=k&&null!=_.me(k);case 155:return null!=k&&null!=_.y(k,3);case 52:return 0<_.fe(a,56).length;case 55:return 0<a.AB().length;case 56:return null!=_.y(a,61);case 4:return null!=a.dB();case 35:return null!=_.P(a,31);case 57:return null!=_.y(a,62);case 83:return null!=a.yc();case 84:return null!=_.B(a,
_.wK,86);case 2:return null!=a.getTitle();case 19:return null!=a.Xx()||null!=_.P(a,44)||null!=_.y(a,90);case 6:return null!=a.Wh();case 98:return null!=a.Zv();case 97:return null!=a.iD();case 27:return null!=a.Xo();case 70:return null!=a.hj();case 107:return null!=p&&null!=_.y(p,3);case 106:return null!=p&&null!=_.y(p,2);case 105:return null!=p&&null!=p.De();case 8:return null!=_.P(a,9);case 126:return 0<_.fe(a,120).length;default:throw Error("Rc`"+b);}};
vBc=function(a,b){return b.every(function(c){return uBc(a,c)})};wBc=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)})};xBc=function(a,b){var c=new Set(b.concat(_.uuc));return a.filter(function(d){return!c.has(d)})};
wL=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(uBc(b,l))if(_.yeb.has(l)){if(f){var p=a.getCapabilities()||new _.Xk;_.zK(a,p);switch(l){case 76:_.jvc(p,_.Yk(f));break;case 223:var q=_.P(f,54);_.w(p,54,q);break;case 208:_.Evc(p,_.P(f,48));break;case 185:var r=_.P(f,40);_.w(p,40,r);break;case 224:var v=_.P(f,55);_.w(p,55,v);break;case 213:var z=_.P(f,50);_.w(p,50,z);break;case 156:var A=_.P(f,39);_.w(p,39,A);break;case 61:var C=
_.P(f,2);_.w(p,2,C);break;case 216:var G=_.P(f,52);_.w(p,52,G);break;case 217:var H=_.P(f,53);_.w(p,53,H);break;case 77:_.kvc(p,_.P(f,4));break;case 134:var L=_.P(f,34);_.w(p,34,L);break;case 147:var M=_.P(f,38);_.w(p,38,M);break;case 81:_.qvc(p,_.P(f,10));break;case 82:_.rvc(p,_.P(f,11));break;case 114:var T=_.P(f,27);_.w(p,27,T);break;case 133:_.zvc(p,_.P(f,33));break;case 202:_.Dvc(p,_.P(f,47));_.yvc(p,_.P(f,32));break;case 132:_.yvc(p,_.P(f,32));break;case 101:_.vvc(p,_.P(f,20));break;case 201:_.Cvc(p,
_.P(f,46));break;case 131:_.xvc(p,_.P(f,31));break;case 200:var U=_.P(f,45);_.w(p,45,U);break;case 130:var ca=_.P(f,30);_.w(p,30,ca);break;case 93:_.uvc(p,_.P(f,17));break;case 191:var Z=_.P(f,44);_.w(p,44,Z);break;case 146:var ja=_.P(f,37);_.w(p,37,ja);break;case 90:_.tvc(p,_.Ee(f));break;case 78:_.nvc(p,_.P(f,7));break;case 186:var qa=_.P(f,41);_.w(p,41,qa);break;case 222:var Aa=_.P(f,51);_.w(p,51,Aa);break;case 85:_.svc(p,_.P(f,12));break;case 137:var Ja=_.P(f,36);_.w(p,36,Ja);break;case 209:var ib=
_.P(f,49);_.w(p,49,ib);break;case 79:_.ovc(p,_.P(f,8));break;case 189:_.Avc(p,_.P(f,42));break;case 190:_.Bvc(p,_.P(f,43));break;case 80:_.pvc(p,_.P(f,9));break;case 135:var Xa=_.P(f,35);_.w(p,35,Xa);break;case 102:_.wvc(p,_.P(f,21));break;case 34:var Hb=_.P(b,30);_.w(a,30,Hb);var $b=_.P(f,3);_.w(p,3,$b);break;case 41:var Bc=_.P(b,40);_.w(a,40,Bc);_.lvc(p,_.P(f,5));break;case 59:_.mvc(p,_.P(f,6))}}}else if(_.zeb.has(l)){var td=_.B(b,_.uK,138);if(td){var Xd=_.B(a,_.uK,138)||new _.uK;_.I(a,138,Xd);
switch(l){case 194:var Jd=_.B(td,_.Fvc,2);_.I(Xd,2,Jd);break;case 193:var qf=_.y(td,1);_.w(Xd,1,qf)}}}else if(_.Aeb.has(l)){var ud=_.B(b,_.Zk,111);if(ud){var Cb=_.B(a,_.Zk,111)||new _.Zk;_.I(a,111,Cb);switch(l){case 115:_.Gvc(Cb,_.P(ud,1));break;case 116:_.Hvc(Cb,_.y(ud,2))}}}else if(_.Beb.has(l)){var ne=_.B(b,_.vK,27);if(ne){var Xg=_.B(a,_.vK,27)||new _.vK;_.I(a,27,Xg);switch(l){case 29:var se=_.y(ne,1);_.w(Xg,1,se);break;case 31:Xg.xh(_.y(ne,3));break;case 92:var li=_.y(ne,4);_.w(Xg,4,li);break;
case 30:Xg.yh(ne.De())}}}else if(_.Ceb.has(l)){var Wi=_.ol(b);if(Wi){var vf=_.ol(a)||new _.Sna;_.I(a,139,vf);switch(l){case 211:var Ek=_.P(Wi,2);_.w(vf,2,Ek);break;case 212:var Vh=_.P(Wi,3);_.w(vf,3,Vh);break;case 220:var Vf=_.P(Wi,5);_.w(vf,5,Vf)}}}else if(_.Deb.has(l)){var Yd=b.Ff();if(Yd){var Yg=a.Ff()||new _.aoa;_.I(a,132,Yg);switch(l){case 192:var Nh=_.P(Yd,6);_.w(Yg,6,Nh);break;case 159:var yi=_.ke(Yd);_.I(Yg,5,yi);break;case 154:var $k=_.y(Yd,1);_.w(Yg,1,$k);break;case 158:var Wn=_.me(Yd);
_.w(Yg,4,Wn);break;case 155:var Am=_.y(Yd,3);_.w(Yg,3,Am)}}}else if(_.Eeb.has(l)){var Dh=b.ig();switch(l){case 157:if(Dh){var al=a.ig()||new _.Zna;yBc(a,al);zBc(al,_.Oj(Dh,_.fl,8))}break;case 221:if(Dh){var jk=a.ig()||new _.Zna;yBc(a,jk);var Zg=_.P(Dh,9);_.w(jk,9,Zg)}}}else if(_.Feb.has(l)){var Pj=_.B(b,_.xK,103);if(Pj){var sj=_.B(a,_.xK,103)||new _.xK;_.I(a,103,sj);switch(l){case 107:var kk=_.y(Pj,3);_.w(sj,3,kk);break;case 106:sj.xh(_.y(Pj,2));break;case 105:sj.yh(Pj.De())}}}else switch(l){case 227:var Wh=
_.P(b,144);_.w(a,144,Wh);break;case 228:var Qj=_.y(b,145);_.w(a,145,Qj);break;case 74:var Rj=b.cu();_.Kj(a,83,Rj);break;case 188:var tj=_.P(b,137);_.w(a,137,tj);break;case 149:var lk=_.fe(b,128);_.Ij(a,128,lk);break;case 148:var bi=b.cza();_.Kj(a,127,bi);break;case 138:var Bm=b.e9();_.w(a,126,Bm);break;case 184:var Sj=_.fe(b,135);_.Ij(a,135,Sj);break;case 69:var mk=_.P(b,74);_.w(a,74,mk);break;case 1004:var Cl=_.P(b,108);_.w(a,108,Cl);break;case 136:var Tj=b.U0();_.Kj(a,125,Tj);break;case 9:var wn=
b.VC();_.w(a,10,wn);break;case 91:_.Yvc(a,b.Iq());break;case 43:var bl=_.y(b,42);_.w(a,42,bl);var cl=_.y(b,43);_.w(a,43,cl);break;case 187:_.bwc(a,b.Aj());break;case 26:a.Xl(b.Bf());break;case 108:var Af=_.fe(b,104);_.Ij(a,104,Af);break;case 42:var Uj=_.y(b,41);_.w(a,41,Uj);break;case 1005:var em=_.nl(b);_.Kj(a,117,em);break;case 28:_.Qvc(a,b.GI());break;case 44:var Dl=_.y(b,45);_.w(a,45,Dl);break;case 13:var fm=b.VL();_.w(a,14,fm);break;case 48:var qc=_.P(b,36);_.w(a,36,qc);break;case 38:_.Svc(a,
b.Yi());break;case 49:var Vj=_.fe(b,50);_.Ij(a,50,Vj);break;case 51:var Oh=_.P(b,53);_.w(a,53,Oh);break;case 104:var nk=_.P(b,102);_.w(a,102,nk);break;case 39:var Ph=b.Tja();_.w(a,35,Ph);break;case 87:var mi=_.kl(b);_.w(a,76,mi);break;case 100:var eg=_.P(b,98);_.w(a,98,eg);break;case 72:var Fk=_.y(b,78);_.w(a,78,Fk);break;case 5:var Hp=_.P(b,6);_.w(a,6,Hp);break;case 20:var Qh=b.nf();_.w(a,21,Qh);break;case 21:a.Ob(b.getId());break;case 16:_.Ovc(a,b.ym());break;case 12:var Eh=b.pz();_.w(a,13,Eh);
break;case 3:_.KG(a,b.getMimeType());break;case 11:var xn=b.tB();_.w(a,12,xn);break;case 10:_.R8b(a,b.yq());break;case 50:var uj=_.P(b,49);_.w(a,49,uj);var yn=_.P(b,51);_.w(a,51,yn);var gm=b.Rm();_.I(a,81,gm);break;case 95:_.$vc(a,b.dm());break;case 18:_.Pvc(a,b.Kp());break;case 58:var Gk=_.P(b,63);_.w(a,63,Gk);break;case 14:_.Nvc(a,_.jl(b));break;case 1:_.yK(a,b.vk());break;case 96:var Cm=_.P(b,94);_.w(a,94,Cm);break;case 103:var Po=_.y(b,101);_.w(a,101,Po);break;case 1003:ABc(a,_.ml(b));break;case 75:_.Xvc(a,
b.Yv());break;case 94:_.Zvc(a,b.bN());break;case 45:var Ip=b.Bw();_.w(a,46,Ip);break;case 124:var rr=_.P(b,118);_.w(a,118,rr);break;case 125:var Nm=_.y(b,119);_.w(a,119,Nm);break;case 1002:var lm=_.ll(b).clone();(null===(d=_.ll(a))||void 0===d?0:_.P(d,3))&&_.w(lm,3,!0);(null===(e=_.ll(a))||void 0===e?0:_.P(e,4))&&_.w(lm,4,!0);_.I(a,100,lm);break;case 32:var tk=b.Qu();_.w(a,28,tk);break;case 67:var dp=b.TJ();_.w(a,70,dp);break;case 68:var Up=_.y(b,71);_.w(a,71,Up);break;case 73:var Kq=_.y(b,79);_.w(a,
79,Kq);break;case 71:var Nr=b.w1();_.w(a,77,Nr);break;case 210:var lu=_.pl(b);_.w(a,140,lu);break;case 7:_.Mvc(a,b.N6());break;case 122:BBc(a,_.vL(b));break;case 66:var Or=_.y(b,69);_.w(a,69,Or);break;case 33:var Zs=_.P(b,29);_.w(a,29,Zs);break;case 24:var rB=b.Ij();_.w(a,22,rB);break;case 25:var sB=b.zy();_.w(a,23,sB);break;case 46:_.Uvc(a,b.Rt());break;case 52:var Qy=_.fe(b,56);_.Ij(a,56,Qy);break;case 56:var mu=_.y(b,61);_.w(a,61,mu);break;case 55:a.HA(b.AB());break;case 4:a.Jv(b.dB());break;case 35:_.Rvc(a,
_.P(b,31));break;case 57:var Lq=_.y(b,62);_.w(a,62,Lq);break;case 83:_.Wvc(a,b.yc());break;case 84:var Mq=_.B(b,_.wK,86);_.I(a,86,Mq);break;case 98:a.Mca(b.Zv());break;case 97:_.awc(a,b.iD());break;case 19:var tB=b.Xx();_.w(a,20,tB);_.Tvc(a,_.P(b,44));var OD=_.y(b,90);_.w(a,90,OD);break;case 2:a.setTitle(b.getTitle());break;case 6:a.Mn(b.Wh());break;case 27:_.S8b(a,b.Xo());break;case 70:var qx=b.hj();_.w(a,75,qx);break;case 8:var Ry=_.P(b,9);_.w(a,9,Ry);break;case 126:var rx=_.fe(b,120);_.Ij(a,120,
rx);break;default:throw Error("Sc`"+l);}}};CBc=function(a,b){var c=_.Iz[a];return b.filter(function(d){return!c||!c.has(d)})};DBc=function(a,b,c){a=CBc(c,a);return wBc(b,a,_.uuc)};xL=function(a){return a?"application/vnd.google-apps.shortcut"===a.getMimeType():!1};yL=function(a,b){b=void 0===b?!1:b;if(!a)return!1;var c=a.getMimeType();return b&&xL(a)?(a=a.Ff(),!!a&&"application/vnd.google-apps.folder"===_.y(a,3)):"application/vnd.google-apps.folder"===c};
EBc=function(a){var b=a&&a.getId()||null;a&&xL(a)&&(a=(a=a.Ff())&&_.y(a,1))&&(b=a);return b};FBc=function(a){return!!_.P(a,31)&&!_.P(a,94)};HBc=function(a){return GBc.some(function(b){return uBc(a,b)})};IBc=function(a){return a.filter(function(b){return b}).some(function(b){return[4,5,2].includes(b.rv())})};JBc=function(a){return IBc(a.filter(function(b){return b}).map(function(b){return b.getItem()}))};
KBc=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?_.Zj(d,f)||(d=_.rEa(4).setItem(f),c[e]=d):(d=_.rEa(2).setItem(d),c[e]=d)});_.La(b,function(d,e){a[e]||(d=_.rEa(1).setItem(d),c[e]=d)});return c};LBc=function(a,b){return _.Pa(a)!==_.Pa(b)||!_.Ta(KBc(a,b))};_.MBc=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};
NBc=function(a,b){var c=_.luc(b||{}),d=new Map;a.forEach(function(e){d.set(e,c[e]||null)});return d};OBc=function(a,b){return 0<=b?!a||a<=b:!0};PBc=function(a,b){var c=a.Rm();c||(c=new _.Tna,b&&_.I(a,81,c));return c};QBc=function(a){if(yL(a))_.tL(PBc(a,!0),!0);else if(yL(a,!0)){var b=a.Ff();if(b=b&&_.ke(b))_.tL(PBc(b,!0),!0),_.tL(PBc(a,!0),!0)}};RBc=function(a){return!!a.Rm()&&!yL(a)};
SBc=function(a){var b=[];_.Ia(a,function(c){if(3!=c.rv()){var d=c;if(null!=_.P(d,49)||null!=_.P(d,51)||null!=d.Rm())c=c.clone(),_.pb(c,49),_.pb(c,51),_.Jj(c,81);b.push(c)}});return b};TBc=function(a,b){if(b){var c=[];_.P(b,3)&&c.push("folder");var d=_.Kqc()&&4===b.getType()?"title_natural":_.ptc[b.getType()];b=_.rtc[b.mf()];d&&(b&&(d+=" "+b),c.push(d));c.length&&(a.orderBy=c.join(","))}};
VBc=function(a){for(var b=0;b<a.length;b++){var c=a[b];c&&c instanceof _.J?a[b]=c.Lc():c&&c instanceof _.TK?a[b]=c.Lc(function(d){return d?d.Lc():null}):c&&c instanceof UBc&&(a[b]=c.Lc())}};XBc=function(a){var b=a.slice(0),c=new Set(b);WBc.forEach(function(d){c.has(d)||b.push(d)});b.sort();return b};
dCc=function(a,b,c){var d=_.B(a,YBc,66);if(d){var e=_.y(d,1),f=_.FK(a);a=_.hJ(_.KI(a));e=new _.kj(e);var h=new _.kj(window.location);var k=h.O+"://"+h.H;null!=h.W&&(k+=":"+h.W);h=_.Bj(k,3);_.rj(e,"co",h);h=e.Je();!f&&0<a&&(h+="u/"+a+"/");e.Ki(h+"_/dataservice/cacheproxy");f=_.y(d,5)||"";if(_.Cqc(window.location.href,e.toString())&&f)return e=XBc(c),c=_.y(d,6),b="#"+b+"_",d=new _.zI,d.update(e.join(",")),b+=_.rsc(d.digest()),c&&(b+="&jobset="+c),b=_.Wy(f+"?"+b),_.n.SharedWorker?(c=new SharedWorker(_.Jba(b),
void 0),b=new ZBc(c.port),c.port.start()):b=new ZBc(new Worker(_.Jba(b),void 0)),new $Bc(new aCc(b,!0),1,f,e);c=e.toString();b="cpiframe_"+_.RI();c=_.vh("IFRAME",{name:b,id:b,src:c});c.style.cssText=_.Mha(_.Ytc(_.dg("display: none;")));document.body.appendChild(c);c=_.vsc(e.O,void 0,e.H,e.W).toString();return new $Bc(new aCc(bCc(window.frames[b],c),!0),0,e.toString())}b=new cCc;return new $Bc(new aCc(b.O,!1),2,"inline",c,new aCc(b.H,!1))};
fCc=function(a){var b=new eCc;if(a instanceof _.vJ)_.Wj(b,16,zL,a);else if(a instanceof _.wJ)_.Wj(b,1,zL,a);else if(a instanceof _.xJ)_.Wj(b,2,zL,a);else if(a instanceof _.AL)_.Wj(b,17,zL,a);else if(a instanceof _.AJ)_.Wj(b,3,zL,a);else if(a instanceof _.cL)_.Wj(b,4,zL,a);else if(a instanceof _.yJ)_.Wj(b,5,zL,a);else if(a instanceof _.EJ)_.Wj(b,6,zL,a);else if(a instanceof _.GJ)_.Wj(b,7,zL,a);else if(a instanceof _.HJ)_.Wj(b,8,zL,a);else if(a instanceof _.KJ)_.Wj(b,9,zL,a);else if(a instanceof _.XJ)_.Wj(b,
18,zL,a);else if(a instanceof _.aK)_.Wj(b,10,zL,a);else if(a instanceof _.bK)_.Wj(b,11,zL,a);else if(a instanceof _.cK)_.Wj(b,12,zL,a);else if(a instanceof _.iJ)_.Wj(b,13,zL,a);else if(a instanceof _.hK)_.Wj(b,14,zL,a);else if(a instanceof _.iK)_.Wj(b,15,zL,a);else throw new _.Dc("Unsupported request type");return b};
iCc=function(a){a=a.map(function(c){var d=new gCc;if(c instanceof _.vJ)_.Wj(d,6,BL,c);else if(c instanceof _.AL)_.Wj(d,7,BL,c);else if(c instanceof _.EJ)_.Wj(d,1,BL,c);else if(c instanceof _.aK)_.Wj(d,2,BL,c);else if(c instanceof _.bK)_.Wj(d,3,BL,c);else if(c instanceof _.iJ)_.Wj(d,4,BL,c);else if(c instanceof _.iK)_.Wj(d,5,BL,c);else throw new _.Dc("Unsupported request type");return d});var b=new hCc;_.Kj(b,1,a);return b};
jCc=function(a){return _.Oj(a,gCc,1).map(function(b){return _.dk(b,_.vJ,6,BL)||_.dk(b,_.EJ,1,BL)||_.dk(b,_.aK,2,BL)||_.dk(b,_.bK,3,BL)||_.dk(b,_.iJ,4,BL)||_.dk(b,_.iK,5,BL)||_.dk(b,_.AL,7,BL)})};mCc=function(a){var b=new kCc;if(a instanceof _.XD)_.Wj(b,1,lCc,a);else if(a instanceof _.YD)_.Wj(b,2,lCc,a);else throw new _.Dc("Unsupported request type");return b};
pCc=function(a){var b=new nCc;if(a instanceof _.BJ)_.Wj(b,1,oCc,a);else if(a instanceof _.IJ)_.Wj(b,2,oCc,a);else if(a instanceof _.jK)_.Wj(b,3,oCc,a);else throw new _.Dc("Unsupported request type");return b};CL=function(a,b,c){return b?new c(JSON.parse(a)):a};qCc=function(a){a={t:a.title,d:a.description,c:a.od,fi:a.V8,dti:a.e0,a:a.RP?a.RP.map(function(b){return JSON.stringify({n:b.name,c:b.content,ct:b.contentType,ec:b.D8})}):void 0};return JSON.stringify(a)};
rCc=function(a){a=JSON.parse(a);return{title:a.t,description:a.d,od:a.c,V8:a.fi,e0:a.dti,RP: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}};sCc=function(a,b,c){a=a?1:2;a=_.od(_.nd(new _.md,12),a);var d=(new _.nf).Mn(!0);d=_.w(d,17,!0);a=_.of(d,a);c&&_.Ol(a,c);c=new _.mtc;b&&_.YAc(c,b);return _.ZAc(_.aBc(new _.$I,a),c)};tCc=function(a){return a.map(function(b){return b.getItem()})};
uCc=function(a){var b={};a.forEach(function(c){b[c.getId()]=c.getItem()});return b};vCc=function(a,b){var c=new _.kj(_.D(b,16,"")+"/open"),d=a.getId();xL(a)&&(d=EBc(a));_.rj(c,"id",d);_.rj(c,"authuser",_.hJ(_.KI(b)));_.Q(b,89,!1)&&_.Cj(a,140)&&_.rj(c,"resourcekey",_.pl(a));return c.toString()};wCc=function(a){return String.fromCharCode(10>a?48+a:87+a)};xCc=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]=wCc(d>>4);b[2*c+3]=wCc(d&15)}return b.join("")};
yCc=function(a){_.Xf("drive.DebugUtil.printFindById",function(c){a.HM(c).then(function(d){window.console.log(JSON.stringify(d))})});_.Xf("drive.DebugUtil.getLogs",function(){return _.axc(a.Qf())});_.Xf("drive.DebugUtil.printLogs",function(){window.console.log(_.axc(a.Qf()))});_.Xf("drive.DebugUtil.printRequestHistory",function(){a.XQ().then(function(c){c.forEach(function(d){window.console.log(_.y(d,1));window.console.log(_.y(d,2))})})});_.Xf("drive.DebugUtil.getState",function(){return a.getState()});
var b=a.La();b&&_.Q(b,1,!1)&&(_.Xf("drive.DebugUtil.getContext",function(){return a.getContext()}),_.Xf("drive.DebugUtil.setOffline",function(c){return void a.Ol(c)}))};BCc=function(a,b){b.info("drive.ds.sync.api.Dump","Requesting dump stats.");b=new _.Cf;_.Df(b,305);_.Ef(b,!0);_.w(b,3,2);var c=new _.WD;_.I(c,1,b);zCc(c,[7]);a=a.then(function(d){return d.Pe(c)}).then(ACc);return _.ji(a)};
ACc=function(a){a=_.Oj(a,_.op,3);var b=new CCc;a.forEach(function(c){var d=c.getKey();"corpusSize"===(d&&_.y(d,2))&&(c=_.$g(c.Za()),_.w(b,3,c))});return"number"===typeof _.y(b,3)?b:null};ECc=function(a,b){var c=DCc(a.um,b.Ac());if(c){var d=c.getItem(),e=d.Yv();if(e){var f=e.aR(),h=_.ua(f,function(k){return k.getId()===_.y(b,2)});_.Jvc(e,f);h||(f=_.Oj(e,_.Rk,3),_.ua(f,function(k){return k.getId()===_.y(b,2)}),_.Kvc(e,f));_.Ivc(e,(_.y(e,1)||1)-1);a.yl([d],c.V)}}};
GCc=function(a,b,c){if(b=DCc(a.um,b.Ac())){var d=b.getItem(),e=d.Yv();if(e){if(1===c.getType()||2===c.getType()){var f=_.Oj(e,_.Rk,3);f.push(c);_.Ga(f,FCc);_.Kvc(e,f)}else f=e.aR(),f.push(c),_.Ga(f,FCc),_.Jvc(e,f);_.Ivc(e,(_.y(e,1)||0)+1);a.yl([d],b.V)}}};ICc=function(a){return a.map(function(b){var c=new _.iLb;var d=b.serviceName?HCc.get(b.serviceName):void 0;c=_.w(c,3,d);return _.w(c,2,Number(b.bytesUsed))})};
KCc=function(a){return(a.quotaBytesByService||[]).reduce(function(b,c){return c.serviceName&&JCc.has(c.serviceName)?b+Number(c.bytesUsed):b},0)};
OCc=function(a){var b=a.json.exportJob,c=LCc[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=_.lf(b.archives||[],function(l){f=f+Number(l.sizeOfContents)||0;h=h+Number(l.compressedSize)||0;return l.storagePath});b=_.lf(b.failedItemInfos||[],function(l){var p=_.KG((new _.hl).Ob(l.docId).setTitle(l.title),l.mediaType);p=(new _.MCc).setItem(p);p=_.w(p,3,l.relativePath);return _.w(p,4,l.cause)});return new NCc(c,d,k,f,h,e,a,b)};
QCc=function(a){var b={},c=a.getKey(),d=c&&_.y(c,2);b.key=d;b.value=a.Za();(a=c&&_.pp(c))&&(b.namespace=PCc[a]);return b};RCc=function(a){for(var b=[],c=0;c<a.length;c++)b.push(PCc[a[c]]);return b};SCc=function(a){return"kind,defaultAppIds,items("+a+")"};TCc=function(a,b){return _.Q(b,93,!1)?a+",adminSecureLinkSetting":a};UCc=function(a,b){var c;return(null===(c=_.rK(b))||void 0===c?0:_.Q(c,16,!1))?a+",individualQuotaBytesTotal,individualQuotaBytesUsedAggregate":a};
VCc=function(){var a=!(!_.n.IDBObjectStore||!_.n.IDBObjectStore.prototype.getAll);return!!(_.n.indexedDB||_.n.mozIndexedDB||_.n.webkitIndexedDB||_.n.moz_indexedDB)&&a};
ZCc=function(a,b){var c,d,e;b=b.clone();if((null===(c=_.rK(b))||void 0===c?0:_.Q(c,18,!1))||(null===(d=_.rK(b))||void 0===d?0:_.Q(d,17,!1)))null===(e=_.rK(b))||void 0===e?void 0:_.w(e,15,!0);_.w(b,75,1<_.n.devicePixelRatio);var f=b;var h=_.Q(f,61,!1),k=_.rK(f),l=!!k&&_.Q(k,10,!1);if(_.wI(_.KI(f))||!h&&!l)_.w(f,61,!1),_.Jj(f,66),k&&_.w(k,10,!1),f=!1;else{if(h){_.n.SharedWorker||(h=!1);var p=_.B(f,YBc,66);p&&_.y(p,1)||(h=!1);_.FK(f)&&!_.Q(f,52,!1)&&(h=!1)}h?k&&_.w(k,10,!1):(_.w(f,61,!1),_.Jj(f,66));
f=h||l}if(f)return f=_.Q(b,61,!1)?3:5,a=new DL(a,b,f),new WCc(a);f=_.wI(_.KI(b))?2:1;a=new EL(a,b,f,void 0,void 0,void 0);return _.wI(_.KI(b))?new XCc(a):new YCc(a)};aDc=function(a){return _.Ie(a).Mg(_.Q(a.get(_.gp),19,!1)?$Cc:_.MVa)};bDc=function(a,b){a.push(b>>>0&255);a.push(b>>>8&255);a.push(b>>>16&255);a.push(b>>>24&255)};cDc=function(a,b){return _.Kj(a,1,b)};uL=function(a){return _.y(a,11)};dDc=[1];eDc=function(a){_.J.call(this,a,-1,dDc)};_.K(eDc,_.J);
eDc.prototype.$ga=function(a){_.Xj(this,1,a,_.Rk,void 0)};var fDc=function(a){var b=new eDc;return _.Kj(b,1,a)},gDc=function(a,b){return _.I(a,1,b)},hDc=function(a,b){_.Kj(a,2,b)},iDc=function(a,b){_.I(a,6,b)},jDc=function(a,b){_.I(a,7,b)},kDc=function(a,b){return _.Wj(a,3,_.Vk,b)},lDc=function(a){_.J.call(this,a)};_.K(lDc,_.J);var mDc=function(a){_.J.call(this,a)};_.K(mDc,_.J);var nDc=function(a){_.J.call(this,a)};_.K(nDc,_.J);var oDc=function(a){_.J.call(this,a)};_.K(oDc,_.J);
var pDc=function(a){_.J.call(this,a)};_.K(pDc,_.J);var qDc=function(a){_.J.call(this,a)};_.K(qDc,_.J);var rDc=function(a){_.J.call(this,a)};_.K(rDc,_.J);var sDc=function(a){_.J.call(this,a)};_.K(sDc,_.J);var tDc=function(a){_.J.call(this,a)};_.K(tDc,_.J);var uDc=function(a){_.J.call(this,a)};_.K(uDc,_.J);var vDc=function(a){_.J.call(this,a)};_.K(vDc,_.J);var wDc=function(a){_.J.call(this,a)};_.K(wDc,_.J);var xDc=function(a){_.J.call(this,a)};_.K(xDc,_.J);var yDc=function(a){_.J.call(this,a)};
_.K(yDc,_.J);var zDc=function(a,b){_.Kj(a,1,b)},ADc=function(a,b){return _.w(a,2,b)},BDc=function(a,b){return _.I(a,3,b)},CDc=function(a,b){return _.w(a,4,b)},DDc=function(a){_.J.call(this,a)};_.K(DDc,_.J);var EDc=function(a,b){_.Kj(a,1,b)},FDc=function(a,b){return _.I(a,2,b)},GDc=function(a){_.J.call(this,a)};_.K(GDc,_.J);
var HDc=function(a,b){_.Kj(a,1,b)},IDc=function(a,b){return _.I(a,4,b)},JDc=function(a,b){_.I(a,5,b)},KDc=function(a,b){_.Kj(a,2,b)},LDc=function(a,b){_.w(a,3,b)},MDc=function(a,b){_.Kj(a,4,b)},NDc=function(a,b){return _.I(a,5,b)},ODc=function(a){_.J.call(this,a)};_.K(ODc,_.J);var PDc=function(a,b){_.Kj(a,1,b)},QDc=function(a,b){return _.I(a,2,b)},RDc=function(a){_.J.call(this,a)};_.K(RDc,_.J);
var SDc=function(a,b){_.Kj(a,2,b)},TDc=function(a){var b=new _.Kna;return _.Kj(b,3,a)},UDc=[1,2],VDc=function(a){_.J.call(this,a)};_.K(VDc,_.J);VDc.prototype.Bg=function(a){return _.Wj(this,1,UDc,a)};var WDc=[1],XDc=function(a){_.J.call(this,a,-1,WDc)};_.K(XDc,_.J);XDc.prototype.Op=function(){return _.y(this,2)};var YDc=function(a,b){_.Kj(a,1,b)},ZDc=function(a,b){return _.w(a,2,b)},$Dc=function(a,b){return _.I(a,3,b)},aEc=function(a){_.J.call(this,a)};_.K(aEc,_.J);
var bEc=[2],cEc=function(a){_.J.call(this,a,-1,bEc)};_.K(cEc,_.J);var dEc=function(a,b){_.Kj(a,2,b)},eEc=function(a,b){return _.I(a,3,b)},fEc=[1],gEc=function(a){_.J.call(this,a)};_.K(gEc,_.J);gEc.prototype.Bg=function(a){return _.Wj(this,1,fEc,a)};var hEc=function(a,b){_.Kj(a,1,b)},iEc=function(a,b){return _.Kj(a,2,b)},jEc=function(a){_.J.call(this,a)};_.K(jEc,_.J);var kEc=function(a,b){_.Kj(a,1,b)},lEc=function(a,b){return _.I(a,2,b)},mEc=function(a){_.J.call(this,a)};_.K(mEc,_.J);
var nEc=[1,2,3,4],oEc=[1],pEc=[1,2],qEc=[1],rEc=[1],sEc=[1,2],tEc=[1],uEc=function(a,b){return _.I(a,1,b)},vEc=function(a,b){return _.w(a,2,b)},wEc=function(a,b){return _.w(a,3,b)},xEc=function(a,b){return _.w(a,4,b)},yEc=function(a,b){return _.w(a,5,b)},zEc=function(a,b){return _.w(a,6,b)},AEc=function(a){_.J.call(this,a)};_.K(AEc,_.J);zBc=function(a,b){_.Kj(a,8,b)};yBc=function(a,b){return _.I(a,73,b)};ABc=function(a,b){_.Kj(a,107,b)};_.vL=function(a){return _.B(a,AEc,109)};
BBc=function(a,b){_.I(a,109,b)};BEc=function(a){_.J.call(this,a)};_.K(BEc,_.J);var CEc=function(a){_.J.call(this,a)};_.K(CEc,_.J);var DEc=function(a){var b=new _.vk;_.Ak(b,1,_.y(a,1));_.Ak(b,2,_.y(a,2));return _.xk(b)},EEc=function(a){_.J.call(this,a)};_.K(EEc,_.J);var YBc=function(a){_.J.call(this,a)};_.K(YBc,_.J);var FEc=[11],GEc=function(a){_.J.call(this,a,-1,FEc)};_.K(GEc,_.J);var FL=function(a){_.J.call(this,a)};_.K(FL,_.J);FL.prototype.getKey=function(){return _.y(this,2)};
FL.prototype.et=function(){return _.Cj(this,2)};GL=function(a){return _.D(a,4,"en")};_.HL=function(a){return _.B(a,GEc,34,1)};IL=function(a,b,c){if(b.length!=c.length)return!0;for(var d=0;d<b.length;d++)if(!a.O(b[d]||void 0,c[d]||void 0))return!0;return!1};HEc=function(a,b){return _.w(a,5,b)};_.IEc=function(a,b){return _.w(a,2,b)};_.JEc=function(a,b){return _.w(a,3,b)};_.KEc=function(a,b){return _.w(a,1,b)};_.LEc=function(a,b){return _.w(a,2,b)};_.MEc=function(a,b){return _.Kj(a,5,b)};
_.NEc=function(a,b){return _.w(a,6,b)};_.OEc=function(a,b){return _.w(a,7,b)};_.PEc=function(a,b){return _.w(a,8,b)};_.QEc=function(a,b){return _.w(a,10,b)};_.REc=function(a,b){return _.w(a,15,b)};SEc=[2];_.TEc=function(a){_.J.call(this,a,-1,SEc)};_.K(_.TEc,_.J);_.TEc.prototype.Rh=function(){return _.y(this,1)};_.UEc=function(a,b){return _.I(a,1,b)};VEc=function(a,b){return _.w(a,2,b)};WEc=function(a,b){return _.w(a,3,b)};XEc=function(a,b){_.Kj(a,4,b)};_.YEc=function(a,b){_.I(a,8,b)};
_.ZEc=function(a,b){_.I(a,9,b)};$Ec=function(a,b){_.w(a,10,b)};aFc=function(a){_.J.call(this,a)};_.K(aFc,_.J);aFc.prototype.Za=function(){return _.Gj(this,1)};aFc.prototype.Jb=function(a){return _.qb(this,1,a,0)};zCc=function(a,b){_.Ij(a,3,b)};_.bFc=function(a){_.J.call(this,a)};_.K(_.bFc,_.J);_.bFc.prototype.getId=function(){return _.y(this,1)};_.bFc.prototype.Ob=function(a){return _.w(this,1,a)};_.bFc.prototype.De=function(){return _.y(this,4)};_.bFc.prototype.yh=function(a){return _.w(this,4,a)};
_.cL=function(a){_.J.call(this,a)};_.K(_.cL,_.J);_.cL.prototype.getTitle=function(){return _.y(this,1)};_.cL.prototype.setTitle=function(a){return _.w(this,1,a)};_.cL.prototype.se=function(){return _.B(this,_.Cf,2)};
var cFc=function(a,b){return _.Ij(a,9,b)},dFc=function(a,b){return _.Ij(a,10,b)},eFc=function(a,b){return _.w(a,36,b)},fFc=function(a,b){return _.Kj(a,38,b)},gFc=function(a,b){return _.w(a,2,b)},hFc=function(a,b){return _.I(a,3,b)},iFc=function(){var a=new _.cJ;return _.w(a,5,!0)},jFc=function(a){_.J.call(this,a)};_.K(jFc,_.J);var kFc=function(a){_.J.call(this,a)};_.K(kFc,_.J);var lFc=function(a){_.J.call(this,a)};_.K(lFc,_.J);var mFc=function(a){_.J.call(this,a)};_.K(mFc,_.J);
var nFc=function(a){_.J.call(this,a)};_.K(nFc,_.J);var oFc=function(a){_.J.call(this,a)};_.K(oFc,_.J);oFc.prototype.Ay=function(){return _.P(this,1)};oFc.prototype.Xn=function(){return _.y(this,5)};oFc.prototype.Qm=function(){return _.y(this,6)};oFc.prototype.zt=function(a){return _.w(this,6,a)};var pFc=function(a,b){return _.w(a,1,b)},qFc=function(a,b){return _.w(a,3,b)},rFc=function(a,b){return _.w(a,4,b)},sFc=function(a,b){_.w(a,7,b)},tFc=function(a){_.J.call(this,a)};_.K(tFc,_.J);
tFc.prototype.Ay=function(){return _.P(this,2)};var uFc=function(a,b){_.w(a,1,b)},vFc=function(a){_.J.call(this,a)};_.K(vFc,_.J);vFc.prototype.Qm=function(){return _.y(this,3)};vFc.prototype.zt=function(a){return _.w(this,3,a)};vFc.prototype.Xn=function(){return _.y(this,4)};var wFc=function(a){_.J.call(this,a)};_.K(wFc,_.J);var xFc=function(a){_.J.call(this,a)};_.K(xFc,_.J);
var yFc=function(a,b){return _.w(a,1,b)},zFc=function(a,b){return _.w(a,2,b)},AFc=function(a,b){_.w(a,3,b)},BFc=[1,3,5],CFc=function(a){_.J.call(this,a,-1,BFc)};_.K(CFc,_.J);CFc.prototype.NE=function(){return _.fe(this,1)};CFc.prototype.Ay=function(){return _.P(this,2)};CFc.prototype.Xn=function(){return _.y(this,7)};DFc=function(a,b){_.w(a,2,b)};EFc=function(a,b){_.Mj(a,5,b,void 0)};FFc=function(a,b){_.w(a,6,b)};GFc=function(a,b){_.w(a,7,b)};_.HFc=function(a,b){_.I(a,2,b)};
IFc=function(a,b,c){_.JK(a,b,c,"warning")};JFc=function(a){return[].concat(_.Ad(a.O))};KFc=function(a){return a.H.concat([].concat(_.Ad(a.O)))};LFc=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(_.Ad(c))};JL=function(a){var b=_.RK(a).ud();b||(b=new _.ywc,a=_.RK(a),_.I(a,1,b));return b};MFc=function(a){var b=_.B(_.RK(a),CFc,3);b||(b=new CFc,a=_.RK(a),_.I(a,3,b));return b};
KL=function(a){var b=_.B(_.RK(a),oFc,16);b||(b=new oFc,a=_.RK(a),_.I(a,16,b));return b};NFc=function(a){var b=_.B(_.RK(a),lFc,7);b||(b=new lFc,a=_.RK(a),_.I(a,7,b));return b};OFc=function(a){var b=_.B(_.RK(a),nFc,12);b||(b=new nFc,a=_.RK(a),_.I(a,12,b));return b};PFc=function(a){var b=_.B(_.RK(a),tFc,17);b||(b=new tFc,a=_.RK(a),_.I(a,17,b));return b};QFc=function(a){var b=_.B(_.RK(a),xFc,21);b||(b=new xFc,a=_.RK(a),_.I(a,21,b));return b};
RFc=function(a){if(a instanceof _.yI)return 2;if(a instanceof _.GG)return 10;if(a instanceof _.nf)return _.QJ(a)?3:_.RJ(a)?7:_.SJ(a)?8:1;if(a instanceof _.zA)return 9;if(a instanceof _.SG)return 11;if(a instanceof _.ZJ)return 15;if(a instanceof _.LI)return 6;if(a instanceof _.UJ){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 _.WD)return 4;if(a instanceof _.mA)return 12;if(a instanceof _.JG)return 13}return 0};
SFc=function(a){var b=null;a instanceof _.xB||"undefined"!=typeof _.TK&&a instanceof _.TK||"undefined"!=typeof _.UK&&a instanceof _.UK?b=a.Ye()||0:"undefined"!=typeof _.WK&&a instanceof _.WK||"undefined"!=typeof _.XK&&a instanceof _.XK||"undefined"!=typeof _.YK&&a instanceof _.YK||"undefined"!=typeof _.ZK&&a instanceof _.ZK||"undefined"!=typeof _.$K&&a instanceof _.$K?b=a.Ie:"undefined"!=typeof _.VK&&a instanceof _.VK&&(b=a.Ye());return b||0};
LL=function(a,b,c){return a.V&&_.Txc(a)?(a=_.Pxc(a.V,b,0),c&&_.Bqc(a,c),a):null};TFc=function(a){a.V&&_.Txc(a)&&(a=a.V,a.H.oP()&&a.H.HZ())};UFc=function(a){var b=new _.MJ;return _.w(b,1,a)};VFc=function(a,b){return _.I(a,2,b)};WFc=function(a,b){return _.I(a,1,b)};XFc=function(a,b){a.ha=b};YFc=[2];ML=function(a){_.J.call(this,a,-1,YFc)};_.K(ML,_.J);ML.prototype.Bb=function(){return _.y(this,1)};ML.prototype.Dc=function(a){return _.w(this,1,a)};ML.prototype.$ga=function(a){_.Xj(this,2,a,_.Rk,void 0)};
ML.prototype.ak=function(){return _.y(this,3)};var ZFc=function(a,b){return _.Kj(a,2,b)},$Fc=[2],aGc=function(a){_.J.call(this,a,-1,$Fc)};_.K(aGc,_.J);aGc.prototype.Bb=function(){return _.y(this,1)};aGc.prototype.Dc=function(a){return _.w(this,1,a)};aGc.prototype.ak=function(){return _.y(this,3)};bGc=function(a){return a.H?a.H.promise:a.O()?(a.H=new _.Gn,a.H.promise):null};
cGc=function(a){for(var b=[],c=_.m(a.W),d=c.next();!d.done;d=c.next()){d=_.m(d.value);d.next();d=d.next().value;d=_.m(d);for(var e=d.next();!e.done;e=d.next())(e=e.value.Cv.config.timestamp)&&b.push(e)}a=_.m(a.buckets);for(d=a.next();!d.done;d=a.next()){c=[];d=_.m(d.value.ij);for(e=d.next();!e.done;e=d.next())(e=e.value.Cv.config.timestamp)&&c.push(e);_.xa(b,c)}return b};dGc=function(a,b){_.jL(["drive#permissionList"],b);return ZFc(new ML,(b.items||[]).map(function(c){return _.gAc(a,c)}))};
eGc=function(a,b){return zEc(yEc(xEc(_.Kvc(_.Ivc(new _.Wna,b.entryCount),(b.selectPermissions||[]).map(function(c){return _.gAc(a,c)})),b.memberCount),b.userEntryCount),b.groupEntryCount)};mBc=function(a,b){return _.Ij(a,1,b)};fGc=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};
gGc=function(a,b){if(!(a instanceof b.constructor))throw Error("aa");var c=a.$q(!1);b=b.$q(!1);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++)_.Oaa(c[e],b[e])||(d[e]=b[e]);return new a.constructor(d)};hGc=[2,6];_.UK=function(a){_.J.call(this,a,-1,hGc)};_.K(_.UK,_.J);_.g=_.UK.prototype;_.g.Bb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.w(this,1,a)};_.g.wd=function(){return _.Oj(this,_.hl,2)};
_.g.Tw=function(a){return _.Kj(this,2,a)};_.g.mh=function(a,b){return _.Xj(this,2,a,_.hl,b)};_.g.ak=function(){return _.y(this,3)};_.g.tl=function(){return _.Q(this,4,!0)};var iGc=function(a,b){return _.Kj(a,6,b)};_.UK.prototype.ag=function(){return _.y(this,10)};_.UK.prototype.lP=function(a){return _.w(this,10,a)};_.UK.prototype.Ye=function(){return _.y(this,9)};_.UK.prototype.Ji=function(a){return _.w(this,9,a)};
var jGc={SUCCESS:1,M6b:2,NYb:3,sUb:4,Z6b:5,r1b:6,g1b:7,eVb:8,K5b:9,Z5b:10,L6b:11,GWb:12,kWb:13,NZb:14,fYb:15,oWb:16,nWb:17,tWb:18,qWb:19,rWb:20,p6b:21,V6b:22,K1b:23,Q0b:24,XUb:25,PERMISSION_DENIED:26,f0b:27,jVb:28,iVb:29,INTERRUPTED:30,j2b:31,D2b:32,VWb:33,aXb:34,R5b:35,hXb:36,gYb:37,$Wb:38,f1b:39,NVb:40,e2b:41,F2b:42,I5b:43,zVb:44,MVb:45,dYb:46,a0b:47,d1b:48,B1b:49,f2b:50,B5b:51,lWb:52,J5b:53,H5b:54,FVb:55,CVb:56,sXb:57,y0b:58,g2b:59,z_b:60,V3b:61,J4b:62,p5b:63,b_b:64,S0b:65,b7b:66,jXb:67,hYb:68,
K6b:69,g_b:70,hVb:71,uVb:72,R4b:73,q5b:74,m5b:75,k5b:76,F4b:190,j5b:191,S4b:192,Y4b:126,U4b:128,V4b:129,W4b:130,X4b:131,Z4b:132,$4b:133,d4b:127,a4b:134,b4b:135,f4b:136,g4b:137,h4b:138,c4b:194,e4b:195,i4b:196,$3b:197,I4b:189,U3b:139,W3b:140,j4b:141,k4b:142,w4b:143,z4b:144,A4b:145,B4b:146,C4b:147,D4b:148,E4b:149,H4b:150,N4b:151,P4b:152,Q4b:153,T4b:154,a5b:155,c5b:156,d5b:157,e5b:158,f5b:159,g5b:160,h5b:161,l5b:162,o5b:163,r5b:164,X3b:165,Y3b:166,Z3b:167,S3b:168,T3b:169,n4b:170,l4b:171,m4b:172,o4b:173,
p4b:174,q4b:175,r4b:176,s4b:177,t4b:178,u4b:179,v4b:180,x4b:181,y4b:182,G4b:106,O4b:183,b5b:184,i5b:185,K4b:186,L4b:187,M4b:188,n5b:244,d2b:77,P6b:78,U6b:79,m0b:80,SZb:81,UZb:82,rXb:83,cYb:84,g0b:85,i6b:86,ZWb:87,i_b:88,h_b:89,u5b:90,s5b:91,t5b:92,Q6b:93,aWb:94,$Vb:95,XVb:96,ZVb:97,YVb:98,a7b:99,D3b:100,wWb:101,pWb:102,uWb:103,sWb:104,vWb:105,iYb:107,W5b:108,x3b:109,E6b:110,lYb:111,kYb:112,E_b:113,F_b:114,J2b:115,GVb:116,M_b:117,BXb:118,R6b:119,l1b:120,m1b:121,OZb:193,mWb:122,PWb:123,RZb:124,L0b:125,
j_b:198,o2b:199,ZZb:200,WTb:201,e_b:202,c_b:203,kVb:204,z7b:205,U_b:206,UVb:207,i1b:208,E2b:209,z3b:210,wUb:211,C_b:212,J_b:213,M5b:214,L5b:215,a_b:216,MZb:217,$Zb:218,lXb:219,$5b:220,mXb:221,A_b:222,T5b:223,k7b:224,W0b:225,S5b:226,RWb:227,S_b:228,qXb:229,PVb:230,g6b:231,N0b:232,FILE_TOO_LARGE:233,f_b:234,kXb:235,$Xb:236,A2b:237,T0b:238,HTb:239,QVb:240,$0b:241,K3b:242,XWb:243,UTb:245,VZb:246,D1b:247,TZb:248,l0b:249,R0b:250,eYb:251,UYb:252,D_b:253,DVb:254,jYb:255,$6b:256,GYb:257,v0b:258,Q2b:259,n2b:260,
q_b:261,BWb:262,YWb:263,WUb:264,e0b:265,Y6b:266,LTb:267,MUb:268,LUb:269,e1b:270,FTb:271,GTb:272,ZUb:273,TVb:274,OUb:275,NUb:276,T_b:277,mYb:278},NL=function(a,b){_.ti.call(this,"Aa");this.error=a;this.H=b};_.K(NL,_.ti);kGc={S6b:0,w0b:1,M1b:2,z1b:3,l_b:4,tUb:5,x0b:6,A1b:7,tZb:8,VUb:9,x1b:10};
_.OL=function(a,b,c,d,e,f){_.Di.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=mBc(new _.rL,[1]);this.limit=e.Di();this.Ie=0;_.Qe(this,function(){h.O=!1;h.H=[]});_.i8a++};_.K(_.OL,_.Di);_.g=_.OL.prototype;_.g.ri=function(){return String(_.Ca(this))};_.g.isActive=function(){return this.O};
_.g.activate=function(){this.O=!0;_.oa(this.items)&&6===this.Bb()&&this.Uj()||lGc(this)};_.g.ud=function(){return this.request};_.g.Di=function(){return this.limit};_.g.Bb=function(){return this.status};_.g.hq=function(){return this.ka};_.g.Uj=function(){return this.ha};_.g.xr=function(){var a=_.h8a().qy(this.H,this.items),b=(new _.xI).Dc(this.Bb());a=_.Kj(b,2,a);this.H=this.items;return a};
_.g.Dr=function(a){this.isActive()&&(this.limit+=a||50,this.log("incrementMaxCount with "+a+" called on Livelist "+(this.ri()+". New limit is ")+(this.limit+".")),this.Ha(this.ri(),this.limit))};var mGc=function(a,b){return a.Bb()!==b.Bb()||IL(_.h8a(),a.items,b.wd())},nGc=function(a,b){a.items=b.wd();a.status=b.Bb();_.ZI(a.Ba)&&(a.ka=nBc(a.status,a.items));a.ha=b.tl();a.Ie=b.Ye()};
_.OL.prototype.CB=function(a){this.dispatchEvent(new _.Ec(new _.Dc("Error occurred running a query after "+a.H+" retries.",a.error)))};_.OL.prototype.fW=function(){this.dispatchEvent(new _.ti(_.WEa))};_.OL.prototype.yu=function(a,b){var c=this;b+="\n\n\nQuery:\n"+PL(this.V,this.ud());return _.ji(this.va.then(function(d){return d.dMb(a,b,c.ud(),c.Di(),c.items)}))};
var lGc=function(a){if(a.isActive()){var b=a.hq().O();a.log("Livelist "+a.ri()+" returning "+a.items.length+". Status: "+(_.Za(jGc)[a.Bb()]+". ")+(6===a.Bb()?"MissingTypes: "+b.join(",")+". ":"")+("Datasource: "+_.Za(kGc)[a.Ie]+". Query: ")+(PL(a.V,a.request)+" ")+oBc(a.items));oGc(a,a.items,a.request);a.dispatchEvent(new _.ti(_.Oc,a))}},oGc=function(a,b,c){if(_.QJ(c))c="quick access";else if(_.RJ(c))c="people predict";else if(_.SJ(c))c="drive priority";else return;b=b.map(function(d){return d.getId()}).join(", ");
a.log("Livelist "+a.ri()+" 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(){_.j8a++;_.Di.prototype.Ya.call(this)};var pGc=function(){this.map={};this.status=6;this.Ie=null};_.g=pGc.prototype;_.g.Bb=function(){return this.status};_.g.Dc=function(a){this.status=a};_.g.Ye=function(){return this.Ie};_.g.Ji=function(a){this.Ie=a};_.g.fq=function(){return this.map};
var qGc=function(a,b){a.map=b};pGc.prototype.Lc=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.Ie,me:b})};var rGc=function(a,b,c){c=JSON.parse(c);a.Dc(c.s);a.Ji(c.d);var d={};c.me.forEach(function(e){d[e.k]=e.v?b(e.v):null});a.map=d},sGc=function(){pGc.apply(this,arguments)};_.K(sGc,pGc);_.TK=function(){pGc.apply(this,arguments)};_.K(_.TK,pGc);
var sBc=[1004,1005,1002,1003],GBc=[1002,1003,1005],QL=function(a,b,c,d,e,f){_.Di.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=mBc(new _.rL,[1]);this.log("Creating find by ids live map: "+this.request.mn().join(", "));_.Qe(this,function(){h.O=!1;h.H=[]});_.llb++};_.K(QL,_.Di);_.g=QL.prototype;_.g.ri=function(){return String(_.Ca(this))};
_.g.activate=function(){this.O=!0;_.Ta(this.items)&&6===this.status||tGc(this)};_.g.ud=function(){return this.request};_.g.getData=function(){this.H=this.items;var a=new _.TK;_.ZI(this.V)?a.Dc(IBc(Object.values(this.items))?6:this.status):a.Dc(this.status);a.map=this.items;return a};_.g.xr=function(){var a=KBc(this.H,this.items),b=new sGc;b.Dc(this.status);b.map=a;this.H=this.items;return b};_.g.Bb=function(){return this.status};_.g.hq=function(){return this.W};
_.g.YS=function(a){uGc(a);var b=this.request;this.request=a;this.ta(this.ri(),b,a)};_.g.update=function(a){var b=this;0<=_.ma(this.ud().mn(),"root")?this.ma.addCallback(function(c){var d=a.fq()[c];d&&(_.Ua(a.map,c),a.map.root=d);vGc(b,a)}):vGc(this,a)};var vGc=function(a,b){if(a.status!==b.Bb()||LBc(a.items,b.fq()))a.status=b.Bb(),a.items=b.fq(),_.ZI(a.V)&&(a.W=nBc(a.status,Object.values(a.items))),tGc(a)};
QL.prototype.CB=function(a){this.dispatchEvent(new _.Ec(new _.Dc("Error occurred running a find-by-IDs query after "+a.H+" retries.",a.error)))};QL.prototype.fW=function(){this.dispatchEvent(new _.ti(_.WEa))};var tGc=function(a){a.O&&(a.log("Livelist "+a.ri()+" returning "+(Object.values(a.items).length+". Status: ")+(_.Za(jGc)[a.Bb()]+". Query: ")+(PL(a.ka,a.request)+" ")+oBc(Object.values(a.items))),a.dispatchEvent(new _.ti(_.Oc,a)))};
QL.prototype.log=function(a){this.ha.info("drive.ds.sync.IdViewCacheLiveMap",a)};QL.prototype.Ya=function(){_.mlb++;_.Di.prototype.Ya.call(this)};var wGc=[1,2],xGc=function(a){_.J.call(this,a,-1,wGc)};_.K(xGc,_.J);_.yGc=function(a){_.J.call(this,a)};_.K(_.yGc,_.J);_.yGc.prototype.Bb=function(){return _.y(this,1)};_.yGc.prototype.Dc=function(a){return _.w(this,1,a)};_.yGc.prototype.nn=function(){return _.B(this,_.HG,2)};var zGc=function(a){_.ti.call(this,a)};_.K(zGc,_.ti);
var AGc=function(a){_.J.call(this,a)};_.K(AGc,_.J);AGc.prototype.O=function(){return _.B(this,_.pD,1)};AGc.prototype.V=function(){return _.B(this,_.pD,2)};AGc.prototype.ha=function(){return _.B(this,_.pD,3)};var BGc=function(a){_.J.call(this,a)};_.K(BGc,_.J);BGc.prototype.O=function(){return _.P(this,1)};BGc.prototype.V=function(){return _.P(this,3)};BGc.prototype.ha=function(){return _.P(this,4)};var CGc=function(a){_.J.call(this,a)};_.K(CGc,_.J);CGc.prototype.O=function(){return _.P(this,1)};
CGc.prototype.V=function(){return _.P(this,2)};var RL=[13,19,12,11,10,15,14,9,8,18,17,16],DGc=function(a){_.J.call(this,a)};_.K(DGc,_.J);DGc.prototype.O=function(){return _.y(this,4)};var EGc=function(a){_.J.call(this,a)};_.K(EGc,_.J);EGc.prototype.V=function(){return _.y(this,1)};EGc.prototype.O=function(){return _.y(this,2)};var FGc=function(a){_.J.call(this,a)};_.K(FGc,_.J);FGc.prototype.V=function(){return _.y(this,1)};FGc.prototype.O=function(){return _.y(this,2)};
var GGc=function(a){_.J.call(this,a)};_.K(GGc,_.J);var HGc=[1],IGc=function(a){_.J.call(this,a)};_.K(IGc,_.J);IGc.prototype.O=function(){return _.P(this,1)};IGc.prototype.V=function(){return _.P(this,2)};var JGc=function(a){_.J.call(this,a)};_.K(JGc,_.J);_.g=JGc.prototype;_.g.Z9a=function(){return _.P(this,1)};_.g.$9a=function(){return _.P(this,2)};_.g.W9a=function(){return _.B(this,AGc,3)};_.g.a$a=function(){return _.Cj(this,3)};_.g.Y9a=function(){return _.B(this,AGc,4)};
_.g.c$a=function(){return _.Cj(this,4)};_.g.X9a=function(){return _.y(this,5)};_.g.b$a=function(){return _.Cj(this,5)};var KGc=function(a){_.J.call(this,a)};_.K(KGc,_.J);_.g=KGc.prototype;_.g.getLabel=function(){return _.y(this,1)};_.g.Rp=function(){return _.Cj(this,1)};_.g.Za=function(){return _.y(this,2)};_.g.Jb=function(a){return _.w(this,2,a)};_.g.Ti=function(){return _.pb(this,2)};_.g.Og=function(){return _.Cj(this,2)};_.g.Bf=function(){return _.y(this,5)};
_.g.Xl=function(a){return _.w(this,5,a)};_.g.V9a=function(){return _.Cj(this,5)};_.g.getCapabilities=function(){return _.B(this,IGc,3)};_.g.U9a=function(){return _.B(this,JGc,4)};var LGc=function(a){_.J.call(this,a,-1,HGc)};_.K(LGc,_.J);LGc.prototype.O=function(){return _.Oj(this,KGc,1)};var MGc=function(a,b){_.Kj(a,1,b)},NGc=function(a){_.J.call(this,a)};_.K(NGc,_.J);NGc.prototype.O=function(){return _.y(this,1)};NGc.prototype.hW=function(){return _.Cj(this,1)};
NGc.prototype.getOptions=function(){return _.B(this,LGc,2)};var OGc=function(a){_.J.call(this,a)};_.K(OGc,_.J);OGc.prototype.hW=function(){return _.Cj(this,1)};OGc.prototype.getOptions=function(){return _.B(this,FGc,2)};var PGc=function(a){_.J.call(this,a)};_.K(PGc,_.J);var QGc=function(a){_.J.call(this,a)};_.K(QGc,_.J);QGc.prototype.hW=function(){return _.Cj(this,1)};QGc.prototype.getOptions=function(){return _.B(this,PGc,2)};var SL=[3,4,5,6,7,8,9,10,11,12],RGc=function(a){_.J.call(this,a)};
_.K(RGc,_.J);_.g=RGc.prototype;_.g.qMa=function(a){return _.Wj(this,3,SL,a)};_.g.F4a=function(a){return _.Wj(this,4,SL,a)};_.g.U3a=function(a){return _.Wj(this,5,SL,a)};_.g.T3a=function(a){return _.Wj(this,6,SL,a)};_.g.H3a=function(a){return _.Wj(this,7,SL,a)};_.g.s4a=function(a){return _.Wj(this,8,SL,a)};_.g.r4a=function(a){return _.Wj(this,9,SL,a)};_.g.K4a=function(a){return _.Wj(this,10,SL,a)};_.g.rMa=function(a){return _.Wj(this,11,SL,a)};_.g.pMa=function(a){return _.Wj(this,12,SL,a)};
var SGc=function(a){_.J.call(this,a)};_.K(SGc,_.J);var TGc=function(a){_.J.call(this,a)};_.K(TGc,_.J);TGc.prototype.O=function(){return _.y(this,1)};TGc.prototype.hW=function(){return _.Cj(this,1)};TGc.prototype.getOptions=function(){return _.B(this,SGc,2)};var UGc=function(a){_.J.call(this,a)};_.K(UGc,_.J);_.g=UGc.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Ob=function(a){return _.w(this,1,a)};_.g.O9a=function(){return _.y(this,2)};_.g.ve=function(){return _.y(this,4)};
_.g.N9a=function(){return _.B(this,BGc,5)};_.g.getCapabilities=function(){return _.B(this,CGc,6)};_.g.T9a=function(){return _.y(this,7)};_.g.H3a=function(a){return _.Wj(this,13,RL,a)};_.g.M9a=function(){return _.dk(this,DGc,19,RL)};_.g.pMa=function(a){return _.Wj(this,19,RL,a)};_.g.T3a=function(a){return _.Wj(this,12,RL,a)};_.g.U3a=function(a){return _.Wj(this,11,RL,a)};_.g.ysb=function(){return _.dk(this,EGc,10,RL)};_.g.P9a=function(){return _.dk(this,NGc,15,RL)};
_.g.r4a=function(a){return _.Wj(this,15,RL,a)};_.g.Q9a=function(){return _.dk(this,LGc,14,RL)};_.g.s4a=function(a){return _.Wj(this,14,RL,a)};_.g.F4a=function(a){return _.Wj(this,9,RL,a)};_.g.R9a=function(){return _.dk(this,FGc,8,RL)};_.g.qMa=function(a){return _.Wj(this,8,RL,a)};_.g.S9a=function(){return _.dk(this,TGc,18,RL)};_.g.rMa=function(a){return _.Wj(this,18,RL,a)};_.g.K4a=function(a){return _.Wj(this,17,RL,a)};var VGc=[5],WGc=function(a){_.J.call(this,a)};_.K(WGc,_.J);
WGc.prototype.ha=function(){return _.P(this,1)};WGc.prototype.O=function(){return _.P(this,2)};WGc.prototype.ka=function(){return _.P(this,3)};WGc.prototype.V=function(){return _.P(this,4)};var TL=function(a){_.J.call(this,a,-1,VGc)};_.K(TL,_.J);TL.prototype.getName=function(){return _.y(this,1)};TL.prototype.hd=function(a){return _.w(this,1,a)};TL.prototype.Nm=function(){return _.y(this,2)};var XGc=function(a,b){return _.w(a,2,b)};TL.prototype.V=function(){return _.y(this,14)};
var YGc=function(a,b){return _.w(a,14,b)};_.g=TL.prototype;_.g.getTitle=function(){return _.y(this,3)};_.g.setTitle=function(a){return _.w(this,3,a)};_.g.Bf=function(){return _.y(this,4)};_.g.Xl=function(a){return _.w(this,4,a)};_.g.d$a=function(){return _.y(this,15)};_.g.Ak=function(){return _.Oj(this,UGc,5)};
var ZGc=function(a,b){return _.Kj(a,5,b)},$Gc=function(a,b){_.I(a,6,b)},aHc=function(a,b){_.I(a,7,b)},bHc=function(a,b){_.I(a,8,b)},cHc=function(a,b){return _.w(a,9,b)},dHc=function(a,b){return _.w(a,10,b)},eHc=function(a,b){return _.w(a,11,b)};TL.prototype.O=function(){return _.B(this,BGc,12)};var fHc=function(a,b){_.I(a,12,b)};TL.prototype.getCapabilities=function(){return _.B(this,WGc,13)};var gHc=function(a,b){_.I(a,13,b)};TL.prototype.getCustomer=function(){return _.y(this,16)};
var hHc=function(a,b){return _.w(a,16,b)},iHc=[5,7,9],jHc=function(a){_.J.call(this,a,-1,iHc)};_.K(jHc,_.J);_.g=jHc.prototype;_.g.getUser=function(){return _.B(this,_.Rk,1)};_.g.XA=function(a){_.w(this,2,a)};_.g.setBooleanValue=function(a){return _.w(this,3,a)};_.g.setTextValue=function(a){return _.w(this,4,a)};_.g.Moa=function(a){return _.Ij(this,5,a)};_.g.addTextValues=function(a,b){return _.Mj(this,5,a,b)};_.g.setSelectionValue=function(a){return _.w(this,6,a)};
_.g.Ioa=function(a){return _.Ij(this,7,a)};_.g.addSelectionValues=function(a,b){return _.Mj(this,7,a,b)};_.g.setIntegerValue=function(a){return _.w(this,8,a)};_.g.zoa=function(a){return _.Ij(this,9,a)};_.g.addIntegerValues=function(a,b){return _.Mj(this,9,a,b)};var kHc=[7,10,12,16,13,3],UL=function(a){_.J.call(this,a,-1,kHc)};_.K(UL,_.J);var VL=function(a){return _.y(a,4)};_.g=UL.prototype;_.g.XA=function(a){_.w(this,4,a)};_.g.setBooleanValue=function(a){return _.w(this,5,a)};
_.g.h$a=function(){return _.y(this,6)};_.g.setTextValue=function(a){return _.w(this,6,a)};_.g.Moa=function(a){return _.Ij(this,7,a)};_.g.addTextValues=function(a,b){return _.Mj(this,7,a,b)};_.g.f$a=function(){return _.y(this,8)};_.g.setLongTextValue=function(a){return _.w(this,8,a)};_.g.g$a=function(){return _.y(this,9)};_.g.setSelectionValue=function(a){return _.w(this,9,a)};_.g.bMa=function(){return _.fe(this,10)};_.g.Ioa=function(a){return _.Ij(this,10,a)};
_.g.addSelectionValues=function(a,b){return _.Mj(this,10,a,b)};_.g.e$a=function(){return _.y(this,11)};_.g.setIntegerValue=function(a){return _.w(this,11,a)};_.g.zoa=function(a){return _.Ij(this,12,a)};_.g.addIntegerValues=function(a,b){return _.Mj(this,12,a,b)};_.g.i$a=function(){return _.B(this,_.Rk,15)};_.g.setUserValue=function(a){return _.I(this,15,a)};_.g.CWa=function(){return _.Oj(this,_.Rk,16)};var lHc=function(a,b){_.Kj(a,16,b)};
UL.prototype.addUserValues=function(a,b){return _.Xj(this,16,a,_.Rk,b)};UL.prototype.O=function(){return _.y(this,17)};UL.prototype.setDateStringValue=function(a){return _.w(this,17,a)};UL.prototype.V=function(){return _.Cj(this,17)};var mHc=function(a,b){_.Kj(a,13,b)};UL.prototype.getId=function(){return _.y(this,14)};UL.prototype.Ob=function(a){return _.w(this,14,a)};UL.prototype.getName=function(){return _.y(this,1)};UL.prototype.hd=function(a){return _.w(this,1,a)};
var nHc=[2],XL=function(a){_.J.call(this,a,-1,nHc)};_.K(XL,_.J);XL.prototype.getName=function(){return _.y(this,1)};XL.prototype.hd=function(a){return _.w(this,1,a)};XL.prototype.O=function(){return _.Oj(this,UL,2)};var oHc=function(a,b){_.Kj(a,2,b)};XL.prototype.Ac=function(){return _.y(this,3)};pHc=function(a,b){return _.w(a,3,b)};_.AL=function(a){_.J.call(this,a)};_.K(_.AL,_.J);_.AL.prototype.getId=function(){return _.y(this,1)};_.AL.prototype.Ob=function(a){return _.w(this,1,a)};
_.AL.prototype.se=function(){return _.B(this,_.Cf,3)};qHc=[3];_.YL=function(a){_.J.call(this,a,-1,qHc)};_.K(_.YL,_.J);_.YL.prototype.getType=function(){return _.y(this,1)};_.YL.prototype.Ac=function(){return _.y(this,2)};_.rHc=function(a){_.J.call(this,a)};_.K(_.rHc,_.J);_.rHc.prototype.getFeature=function(){return _.y(this,1)};sHc=[1];_.QK=function(a){_.J.call(this,a,-1,sHc)};_.K(_.QK,_.J);tHc=[2,3,8];_.bK=function(a){_.J.call(this,a,-1,tHc)};_.K(_.bK,_.J);
_.bK.prototype.getId=function(){return _.y(this,1)};_.bK.prototype.Ob=function(a){return _.w(this,1,a)};_.bK.prototype.se=function(){return _.B(this,_.Cf,4)};_.bK.prototype.yc=function(){return _.y(this,5)};var uHc=function(a){_.J.call(this,a)};_.K(uHc,_.J);vHc=[1,2,4];wHc={0:"UNSPECIFIED_FEEDBACK",1:"IMPLICIT_REJECT",2:"NOT_HELPFUL_RIGHT_NOW"};xHc=function(a,b){return new _.irc(_.jrc.bound(a,b,void 0,void 0))};
yHc=function(){var a=new _.di,b=_.yrc().deleteDatabase("GoogleDriveDs");b.onsuccess=function(){a.callback()};b.onerror=function(c){a.Jd(_.DI(c.target,"deleting database GoogleDriveDs"))};b.onblocked=function(){};return a};_.zHc=function(a){_.J.call(this,a)};_.K(_.zHc,_.J);_.zHc.prototype.Hp=function(){return _.y(this,1)};_.zHc.prototype.Ed=function(){return _.y(this,2)};_.zHc.prototype.setSize=function(a){return _.w(this,2,a)};_.zHc.prototype.getUrl=function(){return _.y(this,3)};
_.AHc=function(a){_.J.call(this,a)};_.K(_.AHc,_.J);_.AHc.prototype.getType=function(){return _.y(this,1)};BHc=[2,3];_.CHc=function(a){_.J.call(this,a,-1,BHc)};_.K(_.CHc,_.J);DHc=[4,5,6,17,18,24];_.ZL=function(a){_.J.call(this,a,-1,DHc)};_.K(_.ZL,_.J);_.ZL.prototype.getId=function(){return _.y(this,1)};_.ZL.prototype.Ob=function(a){return _.w(this,1,a)};_.ZL.prototype.getName=function(){return _.y(this,2)};_.ZL.prototype.hd=function(a){return _.w(this,2,a)};
var EHc=function(a,b){return _.Ij(a,4,b)},FHc=function(a,b){return _.Ij(a,5,b)};_.ZL.prototype.GQ=function(){return _.y(this,8)};_.ZL.prototype.getType=function(){return _.y(this,23)};var GHc=[3],$L=function(a){_.J.call(this,a,-1,GHc)};_.K($L,_.J);$L.prototype.iq=function(){return _.y(this,1)};var HHc=function(a,b){return _.w(a,1,b)};$L.prototype.getTitle=function(){return _.y(this,2)};$L.prototype.setTitle=function(a){return _.w(this,2,a)};$L.prototype.wd=function(){return _.Oj(this,_.hl,3)};
var IHc=function(a,b){return _.Kj(a,3,b)};$L.prototype.mh=function(a,b){return _.Xj(this,3,a,_.hl,b)};$L.prototype.V=function(){return _.y(this,4)};var JHc=function(a,b){return _.w(a,4,b)};$L.prototype.O=function(){return _.B(this,_.Uk,5)};var KHc=function(a,b){return _.I(a,5,b)},CCc=function(a){_.J.call(this,a)};_.K(CCc,_.J);var LHc=[2],aM=function(a){_.J.call(this,a,-1,LHc)};_.K(aM,_.J);aM.prototype.Bb=function(){return _.y(this,1)};aM.prototype.Dc=function(a){return _.w(this,1,a)};
aM.prototype.wl=function(){return _.Oj(this,$L,2)};var MHc=function(a,b){return _.Kj(a,2,b)};aM.prototype.ag=function(){return _.y(this,4)};NHc=function(a,b){return _.w(a,4,b)};_.VK=function(a){_.J.call(this,a)};_.K(_.VK,_.J);_.g=_.VK.prototype;_.g.Bb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.w(this,1,a)};_.g.ET=function(){return _.Hj(this,2,void 0,_.HG)};_.g.ak=function(){return _.y(this,3)};_.g.Ye=function(){return _.y(this,5)};_.g.Ji=function(a){return _.w(this,5,a)};
var OHc=[1],BL=[1,2,3,4,5,6,7],gCc=function(a){_.J.call(this,a)};_.K(gCc,_.J);var hCc=function(a){_.J.call(this,a,-1,OHc)};_.K(hCc,_.J);var bM=function(a){_.J.call(this,a)};_.K(bM,_.J);bM.prototype.getQuery=function(){return _.B(this,_.nf,1,1)};var PHc=function(a,b){return _.I(a,1,b)};bM.prototype.Yn=function(){return _.y(this,4)};var QHc=function(a,b){return _.I(a,5,b)},RHc=[1,2,5,7,9,10,12,14],cM=function(a){_.J.call(this,a,-1,RHc)};_.K(cM,_.J);cM.prototype.wd=function(){return _.Oj(this,_.hl,1)};
var SHc=function(a,b){return _.Kj(a,1,b)};cM.prototype.mh=function(a,b){return _.Xj(this,1,a,_.hl,b)};cM.prototype.$ga=function(a){_.Xj(this,2,a,_.Rk,void 0)};var THc=function(a,b){return _.w(a,3,b)};cM.prototype.$n=function(){return _.y(this,4)};cM.prototype.Cu=function(a){return _.w(this,4,a)};var UHc=function(a,b){return _.Kj(a,5,b)};cM.prototype.rv=function(){return _.P(this,6)};var VHc=function(a,b){return _.w(a,6,b)};cM.prototype.wf=function(){return _.B(this,_.qC,8)};
var WHc=function(a,b){return _.Ij(a,12,b)};cM.prototype.Xn=function(){return _.Fj(this,13,0)};var XHc=function(a,b){return _.w(a,13,b)},YHc={$Ub:0,YUb:1,L_b:2,U5b:3,X5b:4,q1b:5},zL=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],eCc=function(a){_.J.call(this,a)};_.K(eCc,_.J);var lCc=[1,2],kCc=function(a){_.J.call(this,a)};_.K(kCc,_.J);var oCc=[1,2,3],nCc=function(a){_.J.call(this,a)};_.K(nCc,_.J);
var ZHc=function(a,b){return 1<a?2===b:a===b},$Hc=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("Te");},dM=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=dM.prototype;_.g.clone=function(){return new dM(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.cz=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&&_.Zj(this.item,a.getItem())};
var aIc=function(a,b){a.H=b;return a},eM=function(a){return a instanceof _.hl?null!=a.getId()&&a.getId()==a.yc():null!=a.Ac()&&a.Ac()==a.yc()},bIc=function(a,b,c){c=void 0===c?[]:c;var d=a.clone(),e=b.ig();null!=e&&yBc(a,e.clone());if((e=b.getCapabilities())&&null!=_.P(e,13)){var f=a.getCapabilities()||new _.Xk,h=_.P(e,13);_.w(f,13,h);_.zK(a,f)}e&&null!=_.P(e,18)&&(f=a.getCapabilities()||new _.Xk,e=_.P(e,18),_.w(f,18,e),_.zK(a,f));wL(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.ig()&&wL(a,d,c)},cIc=function(a,b,c){c=void 0===c?[]:c;if(!b||!eM(a)&&!eM(b))return a;if(2==a.rv()){c=_.y(a,82);var d=b.clone();bIc(d,a);_.Vvc(d,b.rv());_.lJ(d,c);return d}a=a.clone();bIc(a,b,c);return a},dIc=function(a){return(a=a?a.ig():null)&&_.P(a,7)||!1},eIc=function(a,b){this.V=a;this.items={};this.fields=new Set;this.H={};this.O=new Set;this.W=new Set(b)},fIc=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]={}})},hIc=function(a,b,c){b.every(function(d){return eM(d)})?gIc(b,c,a.H,a.O):b.every(function(d){return!eM(d)})&&gIc(b,c,a.items,a.fields)},gIc=function(a,b,c,d){b=_.wuc(b,[].concat(_.Ad(d)));if(0!==b.length)for(a=_.m(a),d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Ff();e=e?_.ke(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&&wL(d,k,[h]);e&&(k=c[h][e.getId()])&&wL(e,k,[h])}}};
eIc.prototype.update=function(a,b,c){b&&eM(b)?iIc(a,b,this.H,this.O,c):iIc(a,b,this.items,this.fields,c)};eIc.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 iIc=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&&vBc(b,[h])&&(f[a]=jIc(b,h)),b)){var k=b.Ff();(k=k?_.ke(k):null)&&vBc(k,[h])&&(f[k.getId()]=jIc(k,h))}});b&&rBc(b,[].concat(_.Ad(d)))},jIc=function(a,b){var c=new _.hl;c.Ob(a.getId());wL(c,a,[b]);return c};eIc.prototype.clear=function(){var a=this;_.La(this.items,function(b,c){a.items[c]={}});_.La(this.H,function(b,c){a.H[c]={}})};
eIc.prototype.log=function(a){this.V.info("drive.ds.sync.cache.FieldsCache",a)};var kIc=function(a,b,c){var d=this;this.nt=b;this.yv=c;this.Hd=new Map;this.rootId="";a.addCallback(function(e){d.rootId=e})};_.g=kIc.prototype;_.g.py=function(){return this.Hd};_.g.ek=function(a){var b=new Map;a=_.m(a.mn());for(var c=a.next();!c.done;c=a.next())c=c.value,this.Hd.has(c)&&b.set(c,this.Hd.get(c).getItem());return b};
_.g.query=function(a,b){var c=[];if(lIc(a)){for(var d=_.m(this.Hd.values()),e=d.next();!e.done;e=d.next())e=e.value,fM(this.nt,a,e.getItem())&&(void 0===b||ZHc(e.V,b))&&c.push(e);this.yv.sort(a,c)}return c};_.g.get=function(a){return this.Hd.get(a)||null};_.g.getAll=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())(c=this.Hd.get(c.value))&&b.push(c);return b};
_.g.update=function(a){a.H?(a.H.count++,a.O&&a.O.count--,mIc(this,a.H)?(this.Hd.delete(a.id),a.H.count--):this.Hd.set(a.id,a.H)):(this.Hd.delete(a.id),a.O.count--)};var mIc=function(a,b){return 1<b.$b()||ZHc(b.V,2)||b.getItem().GI()||RBc(b.getItem())?!1:"root"!==b.getId()&&b.getId()!==a.rootId};kIc.prototype.rJ=function(){for(var a=_.m(this.Hd.values()),b=a.next();!b.done;b=a.next())b=b.value,mIc(this,b)&&(this.Hd.delete(b.getId()),b.count--)};
var nIc=function(a,b,c,d){this.Lg=a;this.W=b;this.O=c;this.V=d},DCc=function(a,b){return(b=a.O.get(b))?(b=b.clone(),hIc(a.V,[b.getItem()],KFc(a.Lg)),b):null};nIc.prototype.H=function(a){return(a=DCc(this,a))?a.getItem():null};var oIc=function(a,b){var c={};b.forEach(function(d){var e=DCc(a,d);e&&(c[d]=e)});return c},pIc=function(a,b){return _.Na(oIc(a,b),function(c){return c.getItem()})},qIc=function(a,b){b=gM(a.W,b);return a.O.query(b).map(function(c){return c.clone()})};
nIc.prototype.query=function(a){return qIc(this,a).map(function(b){return b.getItem()})};nIc.prototype.Ed=function(){return this.O.py().size};
var rIc=function(a){var b=new Set;a=_.m(a.O.py().values());for(var c=a.next();!c.done;c=a.next()){c=c.value.getItem();for(var d=_.m(_.jl(c)),e=d.next();!e.done;e=d.next())e=e.value,b.add(e.getId()||uL(e));(d=c.ym())&&b.add(d.getId()||uL(d));(d=c.Rt())&&b.add(d.getId()||uL(d));(d=c.Iq())&&b.add(d.getId()||uL(d));(c=c.iD())&&b.add(c.getId()||uL(c))}return b.size},sIc=function(a){return[].concat(_.Ad(new Set(a.map(function(b){return _.otc.get(b)}).filter(function(b){return b})))).join(",")},hM=function(a,
b,c){b=void 0===b?[]:b;c=void 0===c?!1:c;b=[].concat(_.Ad(b));b=sIc(b);var d=_.ZI(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":
_.Q(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";_.Q(a,77,!1)&&(c+=",canChangeCategoryReferences");
_.Q(a,93,!1)&&(c+=",canRemoveSecureLinkUpdateForAllFiles",d+=",removeSecureLinkUpdateForAllFiles");return(b.length?d+","+b:d)+",capabilities("+c+")"},tIc=function(a,b){b=void 0===b?[]:b;return"kind,nextPageToken,items("+hM(a,b,!1)+")"},uIc=function(a){var b=new _.Wo;_.PK(b,"hidden",_.P(a,4));a=_.P(a,6);null!=a&&_.PK(b,"canRemoveSecureLinkUpdateForAllFiles",a);return b.toString()},vIc=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}},wIc=function(a){var b=_.Kqc(),c={};b&&(c.numeric=b);this.H=_.Lqc(a,c)};wIc.prototype.compare=function(a,b,c){b=xIc(b);c=xIc(c);a=a.wc();var d=vIc(a);if(a&&d){d=yIc(this,a);var e=4===a.getType()?this.H:_.Ea;return zIc(a,d,e,b,c)}return _.Ea(b.getId(),c.getId())};
wIc.prototype.sort=function(a,b,c){a=a.wc();var d=vIc(a);a&&d&&(d=yIc(this,a),d=AIc(b,d),_.Ga(b,BIc(this,a,d)));c&&0<c&&_.za(b,c,b.length-c)};
var xIc=function(a){return a instanceof _.hl?a:a.getItem()},yIc=function(a,b){b=vIc(b);return _.N(a.O,a,b,_.Ea)},AIc=function(a,b){var c={};a.forEach(function(d){d=xIc(d);var e=d.getId();c[e]=b(d)});return c},BIc=function(a,b,c){return function(d,e){var f=4===b.getType()?a.H:_.Ea;d=xIc(d);e=xIc(e);return zIc(b,function(h){return c[h.getId()]},f,d,e)}},zIc=function(a,b,c,d,e){var f=1===a.mf()?1:-1;if(_.P(a,3)){a=yL(d,!0);var h=yL(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()))};wIc.prototype.O=function(a,b,c){for(var d=CIc(a[0],c),e=1;e<a.length;e++){var f=CIc(a[e],c);d=1===b(f,d)?f:d}return d};
var CIc=function(a,b){switch(a){case 21:return b.getId()||"";case 3:return b.getMimeType()||"";case 4:return b.dB()||!1;case 12:return b.pz()||0;case 11:return b.tB()||0;case 10:return b.yq()||0;case 2:return(b.getTitle()||"").toLowerCase();case 25:return b.zy()||0;case 57:return _.y(b,62)||0;case 32:return b.Qu()||0;case 9:return b.VC()||0;case 67:return b.TJ()||0;case 98:return b.Zv()||0;default:return""}},DIc=function(a,b){this.fields=a;this.rootId="";this.fields.sort();this.H=b;this.Aq=_.wI(_.KI(b));
a=_.rK(b);this.V=!(!a||!_.Q(a,1,!1));this.O=!(!a||!_.Q(a,8,!1))};DIc.prototype.Cu=function(a){this.rootId=a||""};
var gM=function(a,b,c){b=b.clone();"root"===b.getId()&&b.Ob(a.rootId);_.Nl(b).filter(function(d){return"root"===d.Za()}).forEach(function(d){return d.Jb(a.rootId)});_.uf(b,_.Ml(b).map(function(d){d.Jb(d.Za().toLowerCase());return d}));c&&_.Ll(b,a.fields);b.O().sort();return b},PL=function(a,b,c){if(b instanceof _.nf){b=gM(a,b);var d=_.oxc(b)}else if(b instanceof _.zA)d=b.mn().sort().join(","),_.Q(b,5,!1)&&(d+="|cachedOnly");else{if(b instanceof _.yI)return d=uIc(b),d+"|tdList";if(b instanceof _.GG)return d=
b.mn().sort().join(","),b.O().length&&(d+="|"+sIc(b.O())),d+"|tdMap";throw Error("Xe");}return 3===c?d:d+"|"+EIc(a,b.O(),2===c)},EIc=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(_.Ad(e)).filter(function(h){return f.has(h)}).forEach(function(h){e.delete(h);f.delete(h)});f.size&&(d=d+" - "+_.uJ({fields:[].concat(_.Ad(f)),Aq:a.Aq}));e.size&&(d=d+" + "+_.uJ({fields:[].concat(_.Ad(e)),Aq:a.Aq}));
return d};DIc.prototype.equals=function(a,b,c){var d;c&&(d=3);return PL(this,a,d)===PL(this,b,d)};
var uGc=function(a){if(!a.mn().every(function(b){return!_.xe(b)}))throw new _.Dc("Invalid ids for FindByIdsRequest");},GIc=function(a,b,c){if(_.RJ(b))throw new _.Dc("Did not expect a PeoplePredict request. Use peoplePredictQuery() for PeoplePredict requests. ");FIc(a,b,c)},FIc=function(a,b,c){var d;a.O||(d=_.rJ(3));if(b.getId())throw new _.Dc("Use findByIds() for find by id queries.",d?d:_.rJ(3));if(!b.Di()||0>=b.Di())throw new _.Dc("A positive limit is required on an ItemQueryRequest.",d?d:_.rJ(3));
_.fe(b,33);a.V&&c||(d=a.fields.slice(),c&&(d=d.concat(c)),HIc(a,d,b.O()));if(c=(c=b.wc())&&vIc(c))d=b.O().length?b.O():a.fields,HIc(a,d,c);if(_.QJ(b)){if(a.Aq)throw new _.Dc("User must be authenticated for a Quick Access request.");if(!IIc(a)&&20<b.Di())throw new _.Dc("Limit must be in the range [1, 20].");c=2===_.CK(b);d=_.fe(b,33).length;if(c&&1!==d||d&&!c)throw new _.Dc("A Team Drive Quick Access request must specify the Team Drive corpora and a single Team Drive id.");c=_.Lj(_.pb(_.Jj(_.pb(_.pb(_.pb(_.OI(_.pb(_.Jj(_.OI(b.clone(),
1),30),32),33),45),47),74),75),48),6);d=new _.nf;if(!_.Zj(c,d))throw new _.Dc("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: "+gGc(d,c));}else if(_.Q(b,74,!1))throw new _.Dc("If is_quick_access_for_shared_files_request is set to true, is_quick_access_request must also be true.");if(_.SJ(b)){if(a.Aq)throw new _.Dc("User must be authenticated for a DrivePriority request.");if(2===
_.CK(b))throw new _.Dc("Team Drive corpora is not valid for a Drive Priority request.");a=_.pb(_.pb(_.pb(_.Jj(_.OI(b.clone(),1),30),32),45),52);b=new _.nf;if(!_.Zj(a,b))throw new _.Dc("Some fields specified are not valid for a Drive Priority request. Valid: field, request_descriptor, limit, corpora and is_drive_priority_request. Extra: "+gGc(b,a));}},JIc=function(a,b,c){if(!_.RJ(b))throw new _.Dc("Expected a PeoplePredict request.");FIc(a,b,c);if(a.Aq)throw new _.Dc("User must be authenticated for a People Predict request.");
if(2===_.CK(b))throw new _.Dc("Team Drive corpora is not valid for a People Predict request.");a=_.pb(_.pb(_.pb(_.Jj(_.OI(b.clone(),1),30),32),45),49);b=new _.nf;if(!_.Zj(a,b))throw new _.Dc("Some fields specified are not valid for a People Predict request. Valid: field, request_descriptor, limit, corpora and is_people_predict_request. Extra: "+gGc(b,a));},HIc=function(a,b,c){var d;a.O||(d=_.rJ(3));if(!wBc(b,c,_.uuc)){var e=_.uJ({fields:c,Aq:a.Aq}),f=_.uJ({fields:b,Aq:a.Aq});a=_.uJ({fields:xBc(c,
b),Aq:a.Aq});throw new _.Dc("Requested field was not previously specified. Needed "+e+", but had "+(f+". Missing: "+a+"."),d?d:_.rJ(3));}},IIc=function(a){return 200<=_.EK(a.H)&&300>_.EK(a.H)},KIc=function(a){var b=new Set;a=_.m(_.Ml(a));for(var c=a.next();!c.done;c=a.next())switch(_.MOa(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(_.Ad(b))},LIc=function(a){switch(_.EK(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"}},MIc=function(a){_.O.call(this);this.H=a};_.Yf(MIc,_.O);_.g=MIc.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.kO=function(a){this.H.addCallback(function(b){b.kO(a)})};_.g.send=function(a,b){this.H.addCallback(function(c){c.send(a,b)})};_.g.Ya=function(){this.cancel();MIc.wb.Ya.call(this)};
var ZBc=function(a){_.dz.call(this);this.H=a;this.V=_.Oe(this.H,"message",this.sob,!1,this)};_.Yf(ZBc,_.dz);_.g=ZBc.prototype;_.g.dg=null;_.g.send=function(a,b){var c=[];b=this.xya(c,b);a={serviceName:a,payload:b,"--goog.messaging.PortChannel":!0};_.ytc&&(a=(0,_.Ii)(a));this.H.postMessage(a,c)};
_.g.sob=function(a){a=a.ze;var b=a.data;if(_.ytc)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.XBa(a.ports||[],b),d.NEa),null!=b&&d.callback(b))}};
_.g.xya=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,_.N)(this.xya,this,a)):b&&b.constructor==Object?_.Na(b,function(c,d){c=this.xya(a,c);return"_port"==d?{type:"escaped",val:c}:c},this):b};
_.g.XBa=function(a,b){return Array.isArray(b)?b.map((0,_.N)(this.XBa,this,a)):b&&b.constructor==Object?b._port&&"real"==b._port.type?a[b._port.index]:_.Na(b,function(c,d){return this.XBa(a,"_port"==d?c.val:c)},this):b};_.g.Ya=function(){_.Bi(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;ZBc.wb.Ya.call(this)};
var bCc=function(a,b){if("*"==b)return new MIc(_.ki(Error("Ye")));var c=new _.Ei(50),d=_.Db(_.aa,c),e=new _.di(d);_.fi(e,d);c.start();_.Oe(c,"tick",function(){var f=new MessageChannel,h=function(){f.port1.removeEventListener("message",h,!0);c.isDisposed()||e.callback(new ZBc(f.port1))};f.port1.start();f.port1.addEventListener("message",h,!0);a.postMessage({"--goog.messaging.PortChannel":!0},b,[f.port2])});return new MIc(e)},NIc=function(a){_.O.call(this);this.H=new _.Mqc(a);this.V={};this.O=_.Oqc(this.H,
"private");this.W=_.Oqc(this.H,"public");this.O.registerService("mics",(0,_.N)(this.Klb,this),!0)};_.Yf(NIc,_.O);_.g=NIc.prototype;_.g.uFb=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.uFb++;this.V[d]=c;c={signature:d};c.data=b;this.W.send(a,c)};_.g.Klb=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,_.N)(this.Jlb,this,b),!0)};
_.g.Jlb=function(a,b){a=a(b.data);var c=b.signature;_.Yh(a).then((0,_.N)(function(d){var e={};e.data=d;e.signature=c;this.O&&this.O.send("mics",e)},this))};var OIc=function(a,b){_.O.call(this);this.W=b;this.started=!1;this.V=new _.Mqc(a);this.Ma(this.V);this.H=new NIc(_.Oqc(this.V,"direct"));this.Ma(this.H)};_.K(OIc,_.O);OIc.prototype.registerService=function(a,b){this.H.registerService(a,b)};OIc.prototype.send=function(a,b,c){this.H.send(a,b||{},function(d){return(c||_.Tf)(d)})};
var aCc=function(a,b){OIc.call(this,a,b);this.O=new NIc(_.Oqc(this.V,"passthrough"));this.Ma(this.O)};_.K(aCc,OIc);var iM=function(a,b,c){a.O.registerService(b,function(d){return c(d)})},jM=function(a,b,c,d){a.O.send(b,c||{},d||_.Tf)};aCc.prototype.start=function(){this.started||(this.started=!0)};var WBc=[],PIc=function(){_.dz.call(this);this.H=null};_.K(PIc,_.dz);PIc.prototype.send=function(a,b){_.e9a(this.H,a,b)};
var cCc=function(){this.O=new PIc;this.H=new PIc;var a=this.O;a.H||(a.H=this.H);a=this.H;a.H||(a.H=this.O)},QIc=function(a,b,c,d){this.clientId=a;this.method=b;this.args=c;this.requestId=d;this.H=void 0},RIc=function(a,b){b=void 0===b?!1:b;void 0===a.H&&(a.H=b)&&VBc(a.args);return{c:a.clientId,m:a.method,a:a.args,req:a.requestId,s:a.H}},SIc=function(a){var b=new QIc(a.c,a.m,a.a,a.req);b.H=a.s;return b},TIc=function(a,b,c){this.data=b?void 0:a;this.error=b;this.O=c;this.H=void 0},UIc=function(a,b){b=
void 0===b?!1:b;void 0===a.H&&a.data&&(a.H=b)&&VBc(a.data);return{d:a.data,err:a.error&&b?a.error.Lc():a.error,uid:a.O,s:b}},VIc=function(a){var b=a.s,c=a.err;c=void 0===c?void 0:b?new _.Cc(JSON.parse(a.err)):c;a=new TIc(c?void 0:a.d,c,a.uid);c||(a.H=b);return a},UBc=function(a,b){this.H=a;this.ED=b};UBc.prototype.get=function(){for(var a={},b=0;b<this.H.length;b++)a[this.H[b]]=this.ED[b];return a};
UBc.prototype.Lc=function(){for(var a={},b={},c=0;c<this.ED.length;c++){var d=this.ED[c],e=this.H[c];d instanceof Error?b[e]=_.gJ(d).Lc():a[e]=d.Lc()}return{r:a,e:b}};WIc=function(a,b){if(b){var c=[],d=[];_.La(a.r,function(e,f){c.push(f);d.push(new _.pK(JSON.parse(e)))});_.La(a.e,function(e,f){c.push(f);e=new _.Cc(JSON.parse(e));d.push(_.sJ(e))});return new UBc(c,d)}return a};$Bc=function(a,b,c,d,e){this.channel=a;this.H=b;this.endpoint=c;this.V=d;this.O=e};
_.WK=function(a,b,c){this.response=a;this.Ie=void 0===b?0:b;this.L_=void 0===c?null:c};_.XK=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Ie=void 0===d?0:d};XIc=function(a){_.XK.call(this,a,void 0,void 0,void 0);this.E3a=new _.Gn};_.K(XIc,_.XK);YIc=function(a,b){this.response=a;this.pageToken=void 0===b?"":b};_.ZK=function(a,b,c){this.response=a;this.Ie=void 0===b?0:b;this.L_=void 0===c?null:c};
_.YK=function(a,b,c){this.response=a;this.Ie=void 0===b?0:b;this.L_=void 0===c?null:c};_.$K=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Ie=void 0===d?0:d};ZIc={ETb:0,$Tb:1,XZb:3,l7b:5,gib:6,0:"ACCOUNT",1:"APPS",3:"ITEMS",5:"USER_PREFS",6:"PEOPLE"};_.CJ=function(a){_.J.call(this,a)};_.K(_.CJ,_.J);_.CJ.prototype.Mh=function(){return _.y(this,1)};_.CJ.prototype.se=function(){return _.B(this,_.Cf,3)};_.FJ=function(a){_.J.call(this,a)};_.K(_.FJ,_.J);
_.FJ.prototype.Ac=function(){return _.y(this,1)};_.FJ.prototype.se=function(){return _.B(this,_.Cf,3)};_.NJ=function(a){_.J.call(this,a)};_.K(_.NJ,_.J);_.NJ.prototype.Mh=function(){return _.y(this,1)};_.NJ.prototype.se=function(){return _.B(this,_.Cf,2)};_.OJ=function(a){_.J.call(this,a)};_.K(_.OJ,_.J);_.OJ.prototype.Mh=function(){return _.y(this,1)};_.OJ.prototype.se=function(){return _.B(this,_.Cf,2)};_.PJ=function(a){_.J.call(this,a)};_.K(_.PJ,_.J);_.g=_.PJ.prototype;
_.g.Ac=function(){return _.y(this,1)};_.g.yf=function(){return _.y(this,2)};_.g.getType=function(){return _.y(this,3)};_.g.Za=function(){return _.y(this,4)};_.g.Jb=function(a){return _.w(this,4,a)};_.g.Ti=function(){return _.pb(this,4)};_.g.Og=function(){return _.Cj(this,4)};_.g.se=function(){return _.B(this,_.Cf,7)};_.WJ=function(a){_.J.call(this,a)};_.K(_.WJ,_.J);_.WJ.prototype.Ac=function(){return _.y(this,1)};_.WJ.prototype.se=function(){return _.B(this,_.Cf,2)};
_.WJ.prototype.Di=function(){return _.ak(this,3,1E3)};_.WJ.prototype.ui=function(a){return _.w(this,3,a)};_.$J=function(a){_.J.call(this,a)};_.K(_.$J,_.J);_.$J.prototype.se=function(){return _.B(this,_.Cf,1)};var $Ic=function(){var a=new _.$J,b=_.Df(new _.Cf,301);return _.I(a,1,b)};_.$J.prototype.yc=function(){return _.y(this,3)};_.Suc=function(a){_.J.call(this,a)};_.K(_.Suc,_.J);_.Suc.prototype.yc=function(){return _.y(this,1)};_.fK=function(a){_.J.call(this,a)};_.K(_.fK,_.J);
_.fK.prototype.Mh=function(){return _.y(this,1)};_.fK.prototype.se=function(){return _.B(this,_.Cf,4)};var aJc=function(a){_.J.call(this,a)};_.K(aJc,_.J);bJc=function(a,b){return _.w(a,1,b)};_.DJ=function(a){_.J.call(this,a)};_.K(_.DJ,_.J);_.DJ.prototype.getId=function(){return _.y(this,1)};_.DJ.prototype.Ob=function(a){return _.w(this,1,a)};_.TJ=function(a){_.J.call(this,a)};_.K(_.TJ,_.J);_.TJ.prototype.getId=function(){return _.y(this,1)};_.TJ.prototype.Ob=function(a){return _.w(this,1,a)};
_.Fuc=function(a){_.J.call(this,a)};_.K(_.Fuc,_.J);var cJc=function(a,b,c){_.Di.call(this);this.Ba=a;this.ma=b;this.O=!0;this.ha=this.H=this.timeout=this.W=null;this.V=!1;this.ka=c};_.K(cJc,_.Di);cJc.prototype.IB=function(){return this.O};cJc.prototype.cQ=function(){var a=this;if(this.W)return this.W;var b=_.ai();this.W=b.promise;_.n.setTimeout(function(){a.W=null},5E3);dJc(this,b);return b.promise};
cJc.prototype.ta=function(){!0===this.O&&(this.log("Became unauthenticated."),this.O=!1,this.V=!0,eJc(this))};cJc.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 zGc("pb")))};
var fJc=function(a,b){a.ha=b},eJc=function(a){a.H||(a.H=new _.cyc(5E3),a.timeout=_.n.setTimeout(function(){return gJc(a)},a.H.Za()))},gJc=function(a){dJc(a);a.H&&(_.GI(a.H),a.timeout=_.n.setTimeout(function(){return gJc(a)},a.H.Za()))},dJc=function(a,b){var c=_.Yh();a.ha&&(c=a.ha());c.then(function(){return hJc(a,b)})},hJc=function(a,b){a.log("Checking authentication state.");var c=a.Ba.then(function(d){return d.Pe(new _.Tuc)});b?c.then(function(){b.resolve(bJc(new aJc,1))},function(d){var e=_.SB(d).Sg;
d=0;_.Ltc(e)?(a.log("Checked authentication state: unauthenticated."),d=2):(a.log("Checked authentication state: error occurred."),_.oq(e),_.w(e,21,"Checked authentication state: error occurred."),a.ka(e));e=new aJc;bJc(e,d);b.resolve(e)}):c.then(null,function(d){d=_.SB(d);_.Ltc(d.Sg)&&a.V&&(a.dispatchEvent(new zGc("qb")),a.V=!1)})};cJc.prototype.log=function(a){this.ma.info("drive.ds.sync.auth.StateManager",a)};_.Uuc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};
_.Juc=function(a){this.H=a;this.type=1};_.Kuc=function(a){this.H=a;this.type=0};_.Ruc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};iJc=function(a){return _.dk(a,_.$I,3,_.aJ)||_.dk(a,_.lK,4,_.aJ)||_.dk(a,_.cL,5,_.aJ)||_.dk(a,_.iK,6,_.aJ)||_.dk(a,_.HJ,7,_.aJ)||_.dk(a,_.AJ,8,_.aJ)||_.dk(a,_.EJ,9,_.aJ)||_.dk(a,_.iJ,10,_.aJ)};jJc=function(a){_.J.call(this,a)};_.K(jJc,_.J);_.g=jJc.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Ob=function(a){return _.w(this,1,a)};
_.g.Vz=function(){return _.y(this,3)};_.g.Je=function(){return _.y(this,4)};_.g.Ki=function(a){return _.w(this,4,a)};var kJc=function(a){this.dg=a;this.H=new Map;this.O=this.dg.W};
kJc.prototype.create=function(a,b){if(0!=RFc(b)){var c=this.dg.H(106001);if(c){var d=RFc(b),e=JL(c);_.w(e,2,d);d=JL(c);e=null;if(b instanceof _.SG||b instanceof _.zA||b instanceof _.nf||b instanceof _.UJ||b instanceof _.WD||b instanceof _.GG||b instanceof _.yI||b instanceof _.LI||b instanceof _.JG||b instanceof _.mA)e=b.se();e=e&&_.Q(e,2,!1);_.w(d,7,"boolean"==typeof e?e:void 0);d=JL(c);b=b instanceof _.nf?0<_.Nl(b).length:void 0;_.w(d,8,b);this.H.set(a,c)}}};
var lJc=function(a,b,c){if(a=a.H.get(b))a=JL(a),_.w(a,5,c)},mJc=function(a,b,c){(a=a.H.get(b))&&_.P(JL(a),8)&&(a=JL(a),_.w(a,9,c))},nJc=function(a,b,c,d,e){var f=a.H.get(b);f&&(JL(f).Dc(c),JL(f).Ji(d),null!=e&&(c=JL(f),_.w(c,6,e)),f.zj(),a.H.delete(b))},oJc=function(a,b,c){var d=a.H.get(b);if(d){var e=a.O.Bb(c);c=SFc(c);if(1==e||2==c)e=_.SK(_.Btc,c),d=JL(d),d=3==e||8==e?!_.P(d,5):0!=e?_.Xtc.has(e):null,nJc(a,b,1,e,d)}},pJc=function(a,b,c){var d=a.O.Bb(c);d=_.SK(_.Atc,d||22);var e=SFc(c);e=_.SK(_.Btc,
e);nJc(a,b,d,e,"undefined"!=typeof _.WK&&c instanceof _.WK||"undefined"!=typeof _.YK&&c instanceof _.YK||"undefined"!=typeof _.ZK&&c instanceof _.ZK?c.L_:null)},kM=function(a,b,c){c=void 0===c?3:c;var d=a.H.get(b);d&&(JL(d).Dc(c),d.zj(),a.H.delete(b))},qJc=[2,4],lM=function(a){_.J.call(this,a,-1,qJc)};_.K(lM,_.J);lM.prototype.Bb=function(){return _.y(this,1)};lM.prototype.Dc=function(a){return _.w(this,1,a)};lM.prototype.ak=function(){return _.y(this,3)};
var rJc=[2],mM=function(a){_.J.call(this,a,-1,rJc)};_.K(mM,_.J);mM.prototype.Bb=function(){return _.y(this,1)};mM.prototype.Dc=function(a){return _.w(this,1,a)};mM.prototype.O=function(){return _.Oj(this,XL,2)};var sJc=function(a,b){return _.Kj(a,2,b)};mM.prototype.ak=function(){return _.y(this,3)};var tJc=[4,9],uJc=function(a){_.J.call(this,a,-1,tJc)};_.K(uJc,_.J);_.g=uJc.prototype;_.g.Bb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.w(this,1,a)};_.g.TVa=function(){return _.y(this,2)};
_.g.eMa=function(){return _.y(this,3)};_.g.ksb=function(){return _.Oj(this,_.cJ,4)};var vJc={T6b:0,v1b:1,y1b:2,w1b:4,d_b:5,pXb:6,k_b:7,L1b:8},wJc=function(a){_.J.call(this,a)};_.K(wJc,_.J);wJc.prototype.getUrl=function(){return _.y(this,1)};var nM=function(a){_.J.call(this,a)};_.K(nM,_.J);var xJc=function(a,b){return _.w(a,1,b)};nM.prototype.getName=function(){return _.y(this,2)};nM.prototype.hd=function(a){return _.w(this,2,a)};nM.prototype.getEmail=function(){return _.y(this,3)};
var yJc=function(a,b){return _.w(a,3,b)};nM.prototype.mp=function(){return _.Cj(this,3)};var zJc=[1],AJc=function(a){_.J.call(this,a,-1,zJc)};_.K(AJc,_.J);var BJc=function(a,b){return _.Kj(a,1,b)},CJc=[2],oM=function(a){_.J.call(this,a,-1,CJc)};_.K(oM,_.J);oM.prototype.Bb=function(){return _.y(this,1)};oM.prototype.Dc=function(a){return _.w(this,1,a)};oM.prototype.wl=function(){return _.Oj(this,_.HG,2)};var DJc=function(a,b){return _.Kj(a,2,b)};oM.prototype.ak=function(){return _.y(this,3)};
var EJc=function(a){_.J.call(this,a)};_.K(EJc,_.J);_.g=EJc.prototype;_.g.Ac=function(){return _.y(this,1)};_.g.Bb=function(){return _.y(this,2)};_.g.Dc=function(a){return _.w(this,2,a)};_.g.getError=function(){return _.B(this,_.Cc,3)};_.g.He=function(a){return _.I(this,3,a)};_.g.bo=function(){return _.Cj(this,3)};var FJc=[1],GJc=function(a){_.J.call(this,a,-1,FJc)};_.K(GJc,_.J);var HJc=function(a,b){return _.Ij(a,1,b)},IJc=function(a,b){this.O=a|0;this.H=b|0};
IJc.prototype.equals=function(a){return this===a?!0:a instanceof IJc?this.O===a.O&&this.H===a.H:!1};IJc.prototype.Ec=function(){return 31*this.O+17*this.H|0};
var JJc=function(a,b){return new IJc(a,b)},KJc=function(a,b){b=~b;a?a=~a+1:b+=1;return JJc(a,b)},LJc=function(a){var b="-"===a[0];a=a.slice(b?3:2);return(b?KJc:JJc)(parseInt(a.slice(-8),16),parseInt(a.slice(-16,-8)||"",16))},MJc=function(){this.H=this.W=this.O=this.V=null},NJc=function(a){this.W=a;this.O=new Map;this.V=new Set;this.enabled=!0;this.error=null;this.started=!1},pM=function(a,b,c){if(a.started)throw Error("gf");c={Fo: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)}},qM=function(a,b){if(!a.started)throw Error("hf");if(!a.enabled)throw Error("jf`"+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.Fo.delete(b);if(0===e.Fo.size)try{e.callback()}catch(f){throw a.enabled=!1,a.error=f?_.sJ(f):null,f;}}}};NJc.prototype.H=function(a){return this.V.has(a)};
NJc.prototype.start=function(){this.started=!0};NJc.prototype.log=function(a){this.W.info("drive.ds.MilestoneManager",a)};var OJc=function(a,b,c){this.id=a;this.O=b;this.H=c},PJc=function(a,b){return new OJc((a?a:b).getId(),a,b)},rM=function(a){return new OJc(a.getId(),null,a)},QJc=function(a,b){this.nt=a;this.yv=b;this.UE=!0;this.U7=!1;this.Ie=0},sM=function(a,b){(a.UE=b)||a.rJ()};_.g=QJc.prototype;
_.g.Hka=function(a,b){if(5===this.uE(a))throw Error("kf");for(var c=[],d=_.m(this.py()),e=d.next();!e.done;e=d.next())e=e.value,fM(this.nt,a,e.getItem())&&c.push(e);this.yv.sort(a,c,b);return c};_.g.Ed=function(){return this.py().length};_.g.ek=function(a,b){a=this.Hka(a,b);a=tCc(a);b=new _.xB;b.Tw(a);b.Dc(this.YG()?6:1);return b};_.g.update=function(a){var b=this.rs(a.O),c=this.rs(a.H);if(!b&&!c)return!1;b&&this.iJ(a.O);c&&this.nR(a.H);return!0};
_.g.uE=function(a){return this.UE&&this.U7?lIc(a)?1:5:5};_.g.YW=function(){this.U7=!0};_.g.rs=function(a){return!!a&&this.UE};_.g.Ji=function(a){this.Ie=a};_.g.Ye=function(){return this.Ie};var tM=function(a,b,c,d,e,f){f=void 0===f?"":f;QJc.call(this,a,b);var h=this;this.ha=c;this.nextPageToken=f;this.Hd=[];this.O={};this.request=gM(c,d,!0);this.W=PL(c,d);this.H=!e;RJc(this,e);this.V=function(k,l){return h.yv.compare(h.request,k,l)}};_.K(tM,QJc);_.g=tM.prototype;_.g.ud=function(){return this.request};
_.g.LM=function(){return this.W};_.g.nR=function(a){var b=this.O[a.getId()];b&&this.iJ(b);lBc(this.Hd,a,this.V);this.O[a.getId()]=a;a.count++;this.Hd.length>this.request.Di()&&(this.iJ(_.ha(this.Hd)),this.H=!1)};_.g.iJ=function(a){var b=this.Hd,c=_.Fa(b,a,this.V);0<=c&&_.sa(b,c);_.Ua(this.O,a.getId());a.count--};_.g.rJ=function(){this.Hd.forEach(function(a){a.count--});this.Hd=[];this.O={}};_.g.py=function(){return this.Hd};
_.g.uE=function(a){var b;if(b=this.ha.equals(this.request,a,!0))a=a.O(),b=this.request.O(),b=wBc(b,a,_.uuc);return b?this.H?1:6:5};_.g.Hka=function(a,b){if(5===this.uE(a))throw Error("kf");b=b?Math.min(b,this.Hd.length):this.Hd.length;return _.ya(this.Hd,0,b)};_.g.rs=function(a){if(!QJc.prototype.rs.call(this,a)||!fM(this.nt,this.request,a.getItem()))return!1;if(this.H||_.Q(this.request,48,!1))return!0;var b=_.ha(this.Hd);return!!b&&0>=this.V(a,b)};_.g.YG=function(){return this.H?!1:!0};
_.g.getType=function(){return"CacheHintCorpusCache"};_.g.yl=function(a,b){var c=this,d=_.ha(this.Hd);!this.H&&d&&_.la(a,function(e){return e.getId()===d.getId()})&&(b?(this.iJ(d),RJc(this,_.ha(a))):this.H=!0);_.Ia(a,function(e){c.update(rM(e))})};var RJc=function(a,b){b&&fM(a.nt,a.request,b.getItem())&&a.nR(b)};tM.prototype.wy=function(){return this.nextPageToken};var uM=function(a,b){QJc.call(this,a,b);this.Hd=new Map};_.K(uM,QJc);uM.prototype.nR=function(a){this.Hd.set(a.getId(),a);a.count++};
uM.prototype.iJ=function(a){this.Hd.delete(a.getId());a.count--};uM.prototype.rJ=function(){for(var a=_.m(this.Hd.values()),b=a.next();!b.done;b=a.next())b.value.count--;this.Hd=new Map};uM.prototype.py=function(){return Array.from(this.Hd.values())};var SJc=function(a,b){uM.call(this,a,b);this.YW()};_.K(SJc,uM);_.g=SJc.prototype;
_.g.uE=function(a){var b=this,c=uM.prototype.uE.call(this,a);if(5===c)return c;if(0<_.fe(a,33).length)return 5;a=_.Nl(a);return 0<a.length?a.every(function(d){return(d=b.Hd.get(d.Za()))&&!d.getItem().yc()&&d.H})?1:5:5};_.g.rs=function(a){return uM.prototype.rs.call(this,a)&&!(null===a||void 0===a?0:a.getItem().yc())};_.g.Hka=function(a,b){for(var c=[],d=_.m(this.py()),e=d.next();!e.done;e=d.next())e=e.value,fM(this.nt,a,e.getItem())&&c.push(e);this.yv.sort(a,c,b);return c};_.g.ud=function(){return new _.nf};
_.g.LM=function(){return null};_.g.getType=function(){return"MyDriveCorpusCache"};_.g.YG=function(){return!1};var TJc=function(a){return[].concat(_.Ad(a.Hd.values())).filter(function(b){return b.H}).map(function(b){return b.getId()})},vM=function(a,b,c,d){uM.call(this,a,b);var e=this;this.H=d;pM(c,["aU7Ts","BNEDtc"],function(){return e.YW()})};_.K(vM,uM);
vM.prototype.uE=function(a){var b=this,c=uM.prototype.uE.call(this,a);if(5==c)return c;if(0<_.fe(a,33).length)return 5;a=_.Nl(a);return 0<a.length&&!a.every(function(d){d=b.Hd.get(d.Za());return null!=d&&!d.getItem().yc()&&FBc(d.getItem())&&!_.P(d.getItem(),108)})?5:1};vM.prototype.rs=function(a){return uM.prototype.rs.call(this,a)&&UJc(this,a.getItem())};var UJc=function(a,b){if(_.P(b,31)||!a.U7)return!0;var c=a.H();return b.vk().some(function(d){var e=a.Hd.get(d);return d==c||null!=e&&FBc(e.getItem())})};
_.g=vM.prototype;_.g.YW=function(){uM.prototype.YW.call(this);for(var a=_.m(this.Hd),b=a.next();!b.done;b=a.next()){var c=_.m(b.value);b=c.next().value;c=c.next().value;UJc(this,c.getItem())||(c.count--,this.Hd.delete(b))}};_.g.ud=function(){return new _.nf};_.g.LM=function(){return null};_.g.getType=function(){return"SubscribedCorpusCache"};_.g.YG=function(){return!1};
var VJc=/^[\x00-\x7F]*$/,wM=function(){this.H=[this.W,this.O,this.V,this.ha,this.vEb,this.rEb,this.hEb,this.kEb,this.jEb,this.oEb,this.fEb,this.iEb,this.pEb,this.qEb,this.sEb,this.gEb,this.uEb,this.tEb,this.cEb,this.mEb,this.lEb,this.dEb,this.nEb,this.wEb,this.eEb];this.rootId=""};wM.prototype.Cu=function(a){this.rootId=a||""};
var lIc=function(a){return WJc(a)&&0==_.fe(a,40).length&&void 0==_.y(a,41)},WJc=function(a){var b=!0;_.Oj(a,_.pf,13).forEach(function(d){"me"!=d.Za()&&(b=!1)});var c=a.wc();c=!c||5!=c.getType();return 0==_.Oj(a,_.Hl,5).length&&0==_.Oj(a,_.pf,14).length&&0==_.Oj(a,_.pf,15).length&&!_.Cj(a,58)&&!_.P(a,18)&&!_.P(a,34)&&0==_.Oj(a,_.Al,35).length&&0==_.Oj(a,_.Al,38).length&&c&&b&&0==_.fe(a,39).length&&!_.y(a,42)&&0==_.Oj(a,_.zl,44).length&&!_.QJ(a)&&!_.RJ(a)&&!_.SJ(a)&&0==_.Oj(a,_.Bl,57).length&&XJc(a)&&
!_.B(a,_.Ioa,59)&&null==_.P(a,60)&&0==_.Oj(a,_.pf,68).length&&0==_.Oj(a,_.pf,67).length&&null==_.P(a,69)&&!_.P(a,73)},XJc=function(a){return _.Oj(a,_.Il,4).every(function(b){b=b.Za();return!b||!b.includes("*")&&VJc.test(b)})};wM.prototype.N8=function(a,b){var c=this;return b.filter(function(d){return fM(c,a,d)})};var fM=function(a,b,c){return!!c&&YJc(a,c)&&a.H.every(function(d){return d.call(a,b,c)})},YJc=function(a,b){return b.getId()!=a.rootId&&!eM(b)};
wM.prototype.W=function(a,b){var c=!0,d=_.Oj(a,_.Il,4);if(!XJc(a))return!0;for(a=0;a<d.length&&c;a++){var e=d[a];if(e.Za()){var f=_.Q(e,3,!1),h=(b.getTitle()||"").toLowerCase(),k=e.Za().toLowerCase();if(2==_.y(e,1))h=k==h,c=c&&(f?!h:h);else{e=[];if(0<=k.indexOf("-"))for(var l=RegExp("\\w*-[\\w-]*"),p=_.m(k.match(l)||[]),q=p.next();!q.done;q=p.next())e.push(q.value),k=k.replace(l,"");e.push.apply(e,_.Ad(k.split(RegExp("\\b"))));for(k=0;k<e.length&&c;k++)l=e[k],p=!0,0!=(0,_.qg)(l).length&&(0==l.replace(/\./g,
"").length&&(p=!1),l=!!h.match(p?new RegExp("(^|[^\\w])"+_.Rg(l)+"($|[^\\w])|(^|[ ])"+_.Rg(l)):new RegExp(_.Rg(l))),c=c&&(f?!l:l))}}}return c};
wM.prototype.O=function(a,b){var c=_.Ml(a),d=0,e=0,f=!1,h=!1;c=_.m(c);for(var k=c.next();!k.done;k=c.next())if(k=k.value,k.Za()){var l=b.getMimeType()||"";if(_.P(k,4)){var p=b.Ff();l=p&&_.y(p,3)||""}p=_.Q(k,2,!1);var q=k.Za();_.sK(a)&&(q=q.toLowerCase(),l=l.toLowerCase());k=0===_.Fj(k,3,0)?q===l:l.includes(q);p?(e++,h=h||k):(d++,f=f||k)}return d&&!f||e&&h?!1:!0};
wM.prototype.V=function(a,b){var c=!0;a=_.Oj(a,_.Fl,7);a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b.yq();c=c&&ZJc(e,d)}return c};wM.prototype.ha=function(a,b){var c=!0;a=_.Oj(a,_.Fl,8);a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b.pz();c=c&&ZJc(e,d)}return c};var ZJc=function(a,b){if(null!=_.y(b,2))switch(_.y(b,1)){case 1:return a<=_.y(b,2);case 2:return a<_.y(b,2);case 3:return a==_.y(b,2);case 4:return a>_.y(b,2);case 5:return a>=_.y(b,2);default:return!1}return!0};
_.g=wM.prototype;_.g.vEb=function(a,b){var c=a.Wh();a=(a=_.CK(a))&&(2==a||3==a);return null==c||c==!!b.Wh()&&(!c||1==b.Xo()||!!a)};_.g.rEb=function(a,b){return null==_.P(a,10)||_.P(a,10)==!!b.dB()};_.g.hEb=function(a,b){return null==_.P(a,11)||_.P(a,11)==!!_.P(b,6)};_.g.kEb=function(a,b){a=_.Nl(a);a=_.m(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.Za()){var d="root"==c.Za()&&this.rootId||c.Za();d=b.vk().includes(d);if(_.Q(c,2,!1)?d:!d)return!1}return!0};
_.g.jEb=function(a,b){a=_.Oj(a,_.pf,13);a=_.m(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,"me"==c.Za()){var d=1==b.Xo();if(_.Q(c,2,!1)?d:!d)return!1}return!0};_.g.oEb=function(a,b){return null==_.P(a,16)||(_.P(a,16)?null!=b.zy():!0)};_.g.fEb=function(a,b){var c=_.P(a,17);a=(a=_.CK(a))&&(2==a||3==a);return null==c||c==!!b.GI()&&(!c||1==b.Xo()||!!a)};_.g.iEb=function(a,b){b=PBc(b);return null==_.P(a,19)||_.P(a,19)==!!_.dl(b)};
_.g.pEb=function(a,b){var c=_.ab(_.fe(b,56));a=_.Oj(a,_.BK,25);return 0==a.length?!0:a.every(function(d){return c[d.Za()]})};_.g.qEb=function(a,b){if(0==a.AB().length)return!0;var c=_.ab(b.AB().map(function(d){return d.YQ()}));a=_.ab(a.AB().map(function(d){return d.YQ()}));return _.Oa(a,function(d,e){return c[e]})};_.g.sEb=function(a,b){a=_.fe(a,33);return!a.length||a.includes(b.yc()||"")};_.g.gEb=function(a,b){var c=_.ab(_.fe(b,50));a=_.Oj(a,_.Gl,37);return 0==a.length?!0:a.every(function(d){return c[d.Za()]})};
_.g.uEb=function(a,b){return _.y(a,41)?(b=_.B(b,_.wK,86),null!=b&&_.y(a,41)==_.y(b,3)):!0};_.g.tEb=function(a,b){if(_.fe(a,40).length){if(b=_.B(b,_.wK,86)){var c=_.ab(_.fe(b,2));return _.fe(a,40).some(function(d){return c[d]})}return!1}return!0};_.g.cEb=function(a,b){var c=_.CK(a);return 1==c?(b=_.P(b,31),!!_.Nl(a).length||!!_.Oj(a,_.Al,35).length||1==_.P(a,18)||_.QJ(a)||_.RJ(a)||_.SJ(a)||!!a.Op()||null==b||b):2==c?!!b.yc():!0};
_.g.mEb=function(a,b){return _.QJ(a)?!_.Cj(b,100)||b.Wh()?!1:_.Q(a,74,!1)?!!_.P(_.ll(b),4):!!_.P(_.ll(b),3):!0};_.g.lEb=function(a,b){return _.RJ(a)?!!_.ml(b).length&&!b.Wh():!0};_.g.dEb=function(a,b){return _.SJ(a)?!!_.nl(b).length&&!b.Wh():!0};_.g.nEb=function(a,b){return _.Cj(a,50)?_.Q(a,50,!1)?_.Cj(b,101)&&0!==_.y(b,101):!_.Cj(b,101):!0};_.g.wEb=function(a,b){a=a.Op();return!a||_.fe(b,120).includes(a)};
_.g.eEb=function(a,b){b=_.B(b,_.uK,138);if(null==_.P(a,65)||null==b)return!0;b=2==_.y(b,1);return _.P(a,65)==b};var xM=function(a,b,c,d){d=void 0===d?5E3:d;uM.call(this,a,b);this.teamDriveId=c;this.limit=d};_.K(xM,uM);_.g=xM.prototype;
_.g.uE=function(a){var b=this,c=uM.prototype.uE.call(this,a);if(5==c)return c;c=_.Nl(a);var d=c.every(function(e){var f=e.Za();return(null!=b.Hd.get(f)||b.teamDriveId==f)&&!_.Q(e,2,!1)});if(0<c.length&&d)return 1;a=_.fe(a,33);return 0!=a.length&&a.includes(this.teamDriveId)?1:5};_.g.rs=function(a){return uM.prototype.rs.call(this,a)&&!!a&&a.getItem().yc()==this.teamDriveId&&!eM(a.getItem())};_.g.YG=function(){return!1};_.g.ud=function(){var a=new _.nf;_.Ql(a,[this.teamDriveId]);_.Rl(a,2);return a};
_.g.LM=function(){return null};_.g.yc=function(){return this.teamDriveId};_.g.getType=function(){return"TeamDriveCorpusCache: "+this.teamDriveId};var $Jc=function(a,b){this.W=a;this.ka=b;this.ha=[];this.O=this.H=null;this.V=[];a=new _.nf;_.w(a,48,!0);b=new _.md;_.nd(b,11);_.od(b,2);_.of(a,b);this.ma=gM(this.W,a,!0)};
$Jc.prototype.add=function(a){a instanceof vM?this.H=a:a instanceof SJc?this.O=a:a instanceof tM?(this.log("Adding new cache hint for "+PL(this.W,a.ud(),2)),this.ha.push(a)):a instanceof xM&&this.V.push(a)};
$Jc.prototype.remove=function(a){var b=this;if(a instanceof vM)this.H&&(sM(this.H,!1),this.H=null);else if(a instanceof SJc)this.O&&(sM(this.O,!1),this.O=null);else if(a instanceof tM){var c=_.ka(this.ha,function(d){return b.W.equals(d.ud(),a.ud())});0<=c&&(sM(this.ha[c],!1),_.sa(this.ha,c))}else a instanceof xM&&(c=_.ka(this.V,function(d){return b.W.equals(d.ud(),a.ud())}),0<=c&&(sM(this.V[c],!1),_.sa(this.V,c)))};
var aKc=function(a){var b=[];a.H&&b.push(a.H);a.O&&b.push(a.O);_.xa(b,_.wa(a.ha));_.xa(b,_.wa(a.V));return b},bKc=function(a,b){b=void 0===b?!1:b;return a.ha.filter(function(c){return a.H&&b?(c=c.ud().clone(),_.pb(c,32),_.Lj(c,26),!_.Zj(a.ma,c)):!0})};$Jc.prototype.WV=function(){return _.wa(this.V)};var cKc=function(a,b){return _.og(a.V,function(c){return c.yc()===b})},dKc=function(a,b){return bKc(a).find(function(c){return a.W.equals(c.ud(),gM(a.W,b,!0))})};
$Jc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.CorpusCacheList",a,void 0===b?"info":b)};var eKc=function(a,b){_.ti.call(this,"Db");this.ids=a;this.error=b};_.K(eKc,_.ti);eKc.prototype.getError=function(){return this.error};eKc.prototype.H=function(){return this.ids};var fKc=function(a){_.ti.call(this,"Eb");this.people=a};_.K(fKc,_.ti);fKc.prototype.getPeople=function(){return this.people};var gKc=function(a){_.ti.call(this,"Fb");this.people=a};_.K(gKc,_.ti);
gKc.prototype.getPeople=function(){return this.people};var iKc=function(a,b,c){c=void 0===c?0:c;this.person=a;this.Ie=c;this.V=this.W=null;this.O=!1;this.H=new Set(b?[b]:[]);6===c&&(this.O=!0);hKc(this)};iKc.prototype.Ye=function(){return this.Ie};
var jKc=function(a){return 0===a.Ie?1:2===a.Ie||(1===a.Ie||4===a.Ie)&&(a.person.mp()||a.O)?3:2},kKc=function(a,b,c){if(_.y(b,1)!==_.y(a.person.clone(),1))return!1;6===c&&(a.O=!0);var d=jKc(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=yJc(b.clone(),a.getEmail(b)),e=!_.Zj(a.person,b),a.person=b,a.Ie=c,hKc(a),e||d!==jKc(a);if(4===c)return a.Ie=c,hKc(a),d!==jKc(a);c=b;return!a.person.getEmail()&&c.getEmail()?(yJc(a.person,a.getEmail(b)),!0):!1};
iKc.prototype.getEmail=function(a){var b=this.person.getEmail();a=a.getEmail();return!a&&b&&0!==b.length?b:a};var hKc=function(a){1===a.Ie?(a.W=Date.now(),a.V=null):4===a.Ie&&(a.V=Date.now())},mKc=function(a,b,c,d){_.Di.call(this);var e=this;this.O=a;this.V=b;this.W=c;this.ha=d;this.H=[];this.ka=new _.WI(function(){return lKc(e)},100,this)};_.K(mKc,_.Di);mKc.prototype.Zg=function(a){a&&_.ZI(this.O)&&(this.H.includes(a)||this.H.push(a),this.ka.ne())};
var lKc=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)}})};mKc.prototype.sendRequest=function(a){var b=this;return this.W.then(function(c){var d=c.Pe;var e=new _.ZJ;e=_.Ij(e,1,a);return d.call(c,e)}).then(function(c){c=_.Oj(c,nM,1);b.dispatchEvent(new fKc(c))},function(c){c=_.SB(c);b.dispatchEvent(new eKc(a,c))})};
mKc.prototype.log=function(a){this.V.info("drive.ds.sync.query.PeopleQueryRunner",a)};
var pKc=function(a,b,c,d,e){_.Di.call(this);var f=this;this.H=new Map;this.O=new Set;this.V=new Map;this.Sc=new _.Ye(this);this.Ma(this.Sc);this.ka=b;this.ha=d;this.ta=_.ak(_.B(a,EEc,85)||new EEc,1,864E5);this.W=new mKc(a,b,c,e);this.ma=new _.mE(function(){var h,k=null===(h=f.ha)||void 0===h?void 0:LL(h,106015);if(k){h=_.B(_.RK(k),mFc,11);if(!h){h=new mFc;var l=_.RK(k);_.I(l,11,h)}h=_.w(h,1,f.H.size);_.w(h,2,f.O.size);k.zj()}},500,this);this.Sc.listen(this.W,"Eb",function(h){h=h.getPeople();nKc(f,
h,1);f.ma.ne()});this.Sc.listen(this.W,"Db",function(h){oKc(f,h)})};_.K(pKc,_.Di);pKc.prototype.get=function(a){var b=this.H.get(a);return b?(qKc(this,b)&&rKc(this,a),b):null};var rKc=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 _.Gn;a.V.set(b,c);return c.promise};pKc.prototype.Sb=function(a){var b=this;return sKc(this,a)?Promise.resolve(this.H.get(a)):rKc(this,a).then(function(){return b.H.get(a)})};
pKc.prototype.vc=function(){return 0===this.H.size};pKc.prototype.clear=function(){this.log("Clearing the PeopleCache.");this.H.clear();this.O.clear()};
var tKc=function(a){return[].concat(_.Ad(a.H.values())).filter(function(b){return 3===jKc(b)&&4!==b.Ye()}).map(function(b){return b.person.clone()})},uKc=function(a,b){return(a=a.H.get(b))?[].concat(_.Ad(a.H)):[]},vKc=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(_.Ad(e.H)).length&&(a.H.delete(d),a.O.delete(d)))}},nKc=function(a,b,c){if(![1,2].includes(c))throw Error("lf");0!==b.length&&(a.log("Importing "+b.length+" from "+
(Object.keys(vJc)[c]+".")),wKc(a,b,c))},yKc=function(a,b,c,d){0!==b.length&&xKc(a,b,c,void 0===d?0:d)},sKc=function(a,b){b=a.H.get(b);return!(!b||3!==jKc(b)||qKc(a,b))},xKc=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=_.y(f,1),k=a.H.get(h);if(k)kKc(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&&rKc(k,_.y(f,1));l=new iKc(f,p,l);k.H.set(_.y(f,1),l)}e&&1===d&&(f.getName()?a.O.delete(h):a.O.add(h))}return e},qKc=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}};pKc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.PeopleCache",a,void 0===b?"info":b)};
var oKc=function(a,b){b=b.H().map(function(c){var d=a.H.get(c);return d?d.person.clone():xJc(new nM,c)});wKc(a,b,4)},wKc=function(a,b,c){for(var d=_.m(b),e=d.next();!e.done;e=d.next()){e=_.y(e.value,1);var f=a.V.get(e);f&&(f.resolve(),a.V.delete(e))}xKc(a,b,void 0,c)&&a.dispatchEvent(new gKc(b))},zKc=function(a,b,c,d,e,f){_.Di.call(this);var h=this;this.Sc=new _.Ye(this);this.Ma(this.Sc);this.H=new pKc(a,b,c,e,f);this.O=_.rK(a)||new _.dwc;this.Sc.listen(this.H,"Fb",function(k){return h.dispatchEvent(k)})};
_.K(zKc,_.Di);zKc.prototype.TO=function(a){var b=this;if(a.H){var c=a.H.getItem(),d=AKc(this,[c]).map(function(e){return BKc(b,e)});yKc(this.H,d,a.H.getId(),this.Ye(_.y(c,82)))}a.O&&vKc(this.H,a.id,CKc(this,a))};zKc.prototype.Ye=function(a){return _.duc.get(a)||0};
var CKc=function(a,b){var c=DKc(a,b.O),d=DKc(a,b.H);return c.filter(function(e){return!d.includes(e)})},DKc=function(a,b){return b?EKc(a,[b.getItem()]):[]},GKc=function(a,b){b=b.getUser();yKc(a.H,[BKc(a,b)],"ACCOUNT");FKc(a,b)},IKc=function(a,b){var c=_.Oj(b,_.IK,2).map(function(d){var e=_.B(d,_.Rk,9,1);return a.H.Sb(uL(e)).then(function(){return void HKc(a,[e])})});return Promise.all(c).then(function(){return b})},JKc=function(a,b){HKc(a,AKc(a,b))},HKc=function(a,b){b=_.m(b);for(var c=b.next();!c.done;c=
b.next())c=c.value,uL(c)&&FKc(a,c)},KKc=function(a,b,c){for(var d=new Set,e=_.m(b),f=e.next();!f.done;f=e.next())f=f.value,uL(f)&&(d.add(uL(f)),yKc(a.H,[BKc(a,f)],c));return Promise.all([].concat(_.Ad(d)).map(function(h){return a.H.Sb(h)})).then(function(){return HKc(a,b)})},MKc=function(a,b){return EKc(a,[b]).some(function(c){return!LKc(a,c)})},LKc=function(a,b){return sKc(a.H,b)},EKc=function(a,b){var c=new Set;a=AKc(a,b);a=_.m(a);for(b=a.next();!b.done;b=a.next())(b=uL(b.value))&&c.add(b);return[].concat(_.Ad(c))},
AKc=function(a,b){return b.map(function(c){var d=c.Yv();d=d?[].concat(_.Ad(d.aR()),_.Ad(_.Oj(d,_.Rk,3))):[];var e=c.Ff();e=(e=e&&_.ke(e))?AKc(a,[e]):[];return[].concat(_.Ad(_.jl(c)),[c.ym(),c.Rt(),c.Iq(),c.iD()],_.Ad(d),_.Ad(e))}).flat().filter(function(c){return c&&!!uL(c)})};zKc.prototype.Gd=function(a){return uKc(this.H,a).filter(function(b){return"ACCOUNT"!==b})};
var NKc=function(a){return BJc(new AJc,tKc(a.H))},OKc=function(a,b){return b.map(function(c){c=c.clone();var d=AKc(a,[c]);d=_.m(d);for(var e=d.next();!e.done;e=d.next())e=e.value,_.pb(e,3),_.pb(e,8),_.pb(e,5);return c})},QKc=function(a,b){return b.some(function(c){return PKc(a,c)})},PKc=function(a,b){return AKc(a,[b]).some(function(c){return _.Cj(c,3)||c.mp()||_.Cj(c,5)})},FKc=function(a,b){var c=a.H.get(uL(b));if(c){a=c.person.clone();var d=_.hvc(b.hd(a.getName()),a.getEmail());c=jKc(c);_.w(d,16,
c);(a=_.B(a,wJc,4))&&b.Ln(a.getUrl())}},BKc=function(a,b){var c=uL(b);c=yJc(xJc(new nM,c).hd(b.getName()),b.getEmail());var d=new wJc;var e=_.y(b,5);d=_.w(d,1,e);c=_.I(c,4,d);_.Q(a.O,9,!1)&&(_.pb(b,3),_.pb(b,8),_.pb(b,5));return c},RKc=function(){this.suggestionSessionId=this.W=null;this.V=[];this.incompleteSearch=!1;this.O=[];this.H=!0};RKc.prototype.ag=function(){return this.suggestionSessionId};RKc.prototype.Zza=function(){return this.O};RKc.prototype.vc=function(){return this.H};
var SKc=function(a){if(!a)return null;a=a.split("/");return 2>a.length?null:a[1]},TKc=function(a,b){a=SKc(a);b=SKc(b);return!(!a||!b||a!==b)},UKc=function(a){return a.Ac()+"_"+SKc(a.getName())},VKc=function(a,b){var c=_.fe(a,1).map(function(d,e){return b[Number(e)].value.E3a.promise});return Promise.allSettled(c).then(function(d){return _.fe(a,1).map(function(e,f){e=e.toString();var h=new EJc;e=_.w(h,1,e);f=d[Number(f)];"fulfilled"===f.status?e.Dc(1):(e.Dc(3),e.He(f.reason.Sg));return e})})},yM=function(a,
b){_.O.call(this);this.O=a;this.request=b;this.Ky=new Set;this.status=6;this.V=new Map;this.Ie=0};_.K(yM,_.O);_.g=yM.prototype;_.g.ii=function(a){var b=this;this.Ky.add(a);return this.resize().then(function(){return b.hO(a)})};_.g.jk=function(a){this.Ky.delete(a);0===this.Ky.size&&this.dispose()};_.g.Ye=function(){return this.Ie};_.g.Ji=function(a){this.Ie=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.Ju(f,c)||e});b||(e=1!==this.status||e,this.status=1);return e?this.HX():_.Yh([])};_.g.HX=function(){for(var a=[],b=_.m(this.Ky.values()),c=b.next();!c.done;c=b.next())a.push(this.hO(c.value));return _.$h(a)};
_.g.GX=function(a){this.status=3;for(var b=[],c={},d=_.m(this.Ky.values()),e=d.next();!e.done;c={Hqa:c.Hqa},e=d.next())c.Hqa=e.value,b.push(this.O.then(function(f){return function(h){return void h.GX(f.Hqa,a)}}(c)));return _.$h(b)};_.g.uA=function(){for(var a=this,b=[],c={},d=_.m(this.Ky.values()),e=d.next();!e.done;c={Iqa:c.Iqa},e=d.next())c.Iqa=e.value,b.push(this.O.then(function(f){return function(h){return void h.uA(f.Iqa)}}(c)));return _.$h(b).then(function(){a.Ji(0===a.Ye()?1:6)})};
_.g.resize=function(){var a=this;return this.O.then(function(b){var c=0;a.Ky.forEach(function(d){d=b.ska(d);c=Math.max(c,d.Di?d.Di()||0:0)});a.ifa(c)})};var WKc=function(a,b){return b?a.V.get(a.Xja(b))||null:null};_.g=yM.prototype;_.g.RH=function(a,b){var c=WKc(this,a);b=$Hc(c,b);this.V.set(this.Xja(a),b)};_.g.Xja=function(a){return a};_.g.fMa=function(){return[]};_.g.hO=function(a){var b=this;return this.O.then(function(c){return void c.hO(a,b.ek())})};_.g.removeItem=function(){};
var zM=function(a,b){_.Di.call(this);this.request=a;this.pageToken="";this.H=this.O=!1;this.data=[];this.limit=0;this.W=b};_.K(zM,_.Di);var XKc=function(a){return!a.O||""!==a.pageToken};zM.prototype.Zg=function(a){this.limit=void 0===a?1E5:a;return!this.H&&this.data.length<=this.limit&&XKc(this)?YKc(this):_.Yh()};
var YKc=function(a){a.O=!0;a.H=!0;var b=a.aia(a.request,a.limit-a.data.length,a.pageToken);return a.W(b).then(function(c){return ZKc(a,c)},function(c){return a.handleError(c)})},ZKc=function(a,b){a.H=!1;a.pageToken=a.mka(b);b=a.Aja(b);b.forEach(function(c){return a.data.push(c)});a.U5(b);return a.data.length<a.limit&&XKc(a)?_.$h([_.Yh(b),YKc(a)]).then(function(c){return c[0].concat(c[1])}):_.Yh(b)};
zM.prototype.handleError=function(a){this.H=!1;a=_.gJ(a);var b=new NL(a);this.gMa(b);this.dispatchEvent(b);return _.Zh(a)};zM.prototype.U5=function(){};zM.prototype.gMa=function(){};var $Kc=function(a,b,c){zM.call(this,c,function(d){return a.then(function(e){return e.Pe(d)}).Cg(function(e){return void _.tJ(e)})});this.V=b};_.K($Kc,zM);_.g=$Kc.prototype;_.g.aia=function(a,b,c){a=a.clone();a.ui(b);return new _.Huc(a,c)};_.g.mka=function(a){return a.pageToken||""};_.g.Aja=function(a){return a.response.O()};
_.g.U5=function(a){this.V.nD(a,!1,1)};_.g.gMa=function(a){this.V.CB(this.request,a)};var aLc=function(a,b,c,d){yM.call(this,a,d.clone());this.ha=b;this.W=c;this.data=[];this.H=null};_.K(aLc,yM);_.g=aLc.prototype;_.g.refresh=function(){this.uA();this.H=new $Kc(this.ha,this.W,this.request);return this.H.Zg(this.request.Di()||100)};_.g.Hp=function(a){return this.data.find(function(b){return TKc(b.getName(),a)})};
_.g.ifa=function(a){this.H&&a===this.request.Di()||(this.request.ui(a),this.H?this.H.Zg(a):this.refresh())};_.g.ek=function(){var a=this,b=sJc((new mM).Dc(this.status),this.data.filter(function(c){return a.W.ZCa(c)}).map(function(c){return c.clone()}));return new _.XK(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 yM.prototype.nD.call(this,a,b,c)};
_.g.Ju=function(a,b){b=void 0===b?1:b;if(!OBc(WKc(this,a.getName()),b))return!1;var c=-1===b?0:this.data.length,d=this.data.findIndex(function(e){return TKc(e.getName(),a.getName())});-1<d&&(this.data.splice(d,1),c=d);this.data.splice(c,0,a);this.RH(a.getName(),b);return!0};_.g.removeItem=function(a){_.ua(this.data,function(b){return TKc(b.getName(),a)})&&(this.V.delete(this.Xja(a)),this.HX())};_.g.Xja=function(a){return SKc(a)};_.g.RH=function(a,b){this.Hp(a)&&yM.prototype.RH.call(this,a,b)};
_.g.fMa=function(a){var b=this;return a instanceof _.gK&&a.Ac()===this.request.Ac()?a.zV().map(function(c){return b.Hp(c.Nm())}).filter(function(c){return!!c}).map(function(c){return c.clone()}):[]};var AM=function(){this.H=new Map};AM.prototype.ii=function(a,b){var c=this.getKey(b),d=this.H.get(c),e=!d;d||(d=this.cia(b),this.H.set(c,d));d.ii(a);return e};var bLc=function(a,b,c){var d=a.getKey(c),e=a.H.get(d),f=!e;e||(e=a.Twa(c),a.H.set(d,e));e.ii(b);return f};
AM.prototype.jk=function(a,b){var c=this.H.get(this.getKey(b));c&&(c.jk(a),c.isDisposed()&&this.H.delete(this.getKey(b)))};var cLc=function(a,b,c){var d=a.H.get(a.getKey(c));d&&(d.jk(b),d.isDisposed()&&a.H.delete(a.getKey(c)))},dLc=function(a,b){return a.H.get(b)};AM.prototype.nD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=a.filter(function(f){return d.ZCa(f)});this.H.forEach(function(f){f.nD(e,b,c)})};AM.prototype.removeItem=function(a,b){b=b?this.H.get(b):null;(b?[b]:this.H).forEach(function(c){c.removeItem(a)})};
var eLc=function(a,b){a=Array.from(a.H.values()).map(function(c){return c.fMa(b)});return[].concat.apply([],_.Ad(a))};AM.prototype.RH=function(a,b){this.H.forEach(function(c){c.RH(a,b)})};AM.prototype.ZCa=function(){return!0};AM.prototype.CB=function(a,b){(a=this.H.get(this.getKey(a)))&&a.GX(b)};AM.prototype.u2=function(a,b,c,d){var e=this.getKey(b),f=this.H.get(e);f||(f=this.cia(b),f.Ji(c),this.H.set(e,f),this.nD(a,d))};var fLc=function(){this.V=new Set;this.O=0;this.H=[]},gLc=function(a,b){a.V.add(b)};
fLc.prototype.W=function(a){this.V.delete(a)};var hLc=function(a,b){var c;if(c=b instanceof _.hl)c=b.Zv(),c=!!(b.Wh()&&c&&c<=Math.max.apply(Math,_.Ad([a.O].concat(_.Ad(a.H)))));if(c)return!0;b=b instanceof _.hl?b.getId():b;return a.V.has(b)},iLc=function(a,b){return _.ua(a.H,function(c){return c===b})&&b>a.O?(a.O=b,!0):!1};fLc.prototype.N8=function(a){var b=this;return a.filter(function(c){return!hLc(b,c)})};var jLc=function(a,b){this.H=new Map;this.V=a;this.W=b;this.O=new fLc};_.K(jLc,AM);
var kLc=function(a,b){gLc(a.O,UKc(b));(a=dLc(a,b.Ac()))&&a.HX()};_.g=jLc.prototype;_.g.getKey=function(a){return a.Ac()};_.g.cia=function(a){return new aLc(this.V,this.W,this,a)};_.g.Twa=function(a){return new aLc(this.V,this.W,this,a)};_.g.Qo=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next())(b=b.value.getItem())&&(b=dLc(this,b.getId()))&&b.refresh()};_.g.ZCa=function(a){return!hLc(this.O,UKc(a))};
var lLc=function(a){var b=new _.HG;b.Ob(a);return b},mLc=function(){_.Di.call(this);this.H=Date.now()};_.K(mLc,_.Di);mLc.prototype.gF=function(){this.H=Date.now();this.dispatchEvent("Gb")};
var nLc=function(a,b){this.O=a;this.H=b},oLc=function(a,b){b=_.P9b(b);var c=new $Kc(a.O,a.H,b);new Promise(function(d,e){return c.Zg(100).then(d,e)})},pLc=function(){this.Hd={}},BM=function(a,b){qLc(a,"subscribed");b&&qLc(a,b);return a.Hd[b||"subscribed"].ie.promise},qLc=function(a,b){a.Hd[b]||(a.Hd[b]={count:0,vR:[],J1a:[],ie:_.ai()});a.Hd[b].count++},sLc=function(a,b){b&&!rLc(a,b)||rLc(a,"subscribed")},rLc=function(a,b){if(!a.Hd[b])return!1;a.Hd[b].count--;0===a.Hd[b].count&&(a.Hd[b].ie.resolve({items:a.Hd[b].vR,
$Kb:a.Hd[b].J1a}),_.Ua(a.Hd,b));return!0};pLc.prototype.Qo=function(a,b){var c=this,d=b||"subscribed";a.forEach(function(e){var f=e.yc();f&&f===e.Ac()&&c.Hd[f]&&c.Hd[f].J1a.push(e);c.Hd[d]&&c.Hd[d].vR.push(e)})};var tLc=function(a,b,c){zM.call(this,a,c);this.V=b};_.K(tLc,zM);tLc.prototype.aia=function(a,b){return a.clone().ui(b)};tLc.prototype.mka=function(){return""};tLc.prototype.Aja=function(a){return[a]};tLc.prototype.U5=function(a){this.V(a)};
var uLc=function(a,b,c,d){yM.call(this,a,d.clone());this.ha=b;this.H=this.JS=null;this.W=c};_.K(uLc,yM);uLc.prototype.refresh=function(){var a=this;this.uA();this.H=new tLc(this.request,this.W,function(b){return a.ha.then(function(c){return c.Pe(b)})});return this.H.Zg(this.request.Di()||0)};uLc.prototype.ifa=function(a){1===this.status||this.H&&a===this.request.Di()||(this.request.ui(a),this.H?this.H.Zg(a):this.refresh())};
uLc.prototype.ek=function(){if(this.JS)return this.JS;var a=new aM;a.Dc(this.status);return a};uLc.prototype.Ju=function(a){this.JS=a;return!0};var vLc=function(a,b,c){this.H=new Map;this.O=a;this.W=b;this.V=c};_.K(vLc,AM);_.g=vLc.prototype;_.g.log=function(a){this.V.info("drive.ds.sync.cache.SuggestedWorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};_.g.cia=function(a){var b=this;return new uLc(this.O,this.W,function(c){b.nD(c,!1)},a)};_.g.Twa=function(){throw Error("mf");};
_.g.u2=function(a,b,c,d){var e=a[0].wl();this.log("Initialized "+e.length+" suggested workspaces: "+e.map(function(f){return f.iq()}).join(", "));AM.prototype.u2.call(this,a,b,c,d)};var wLc=function(a,b,c,d){_.Di.call(this);this.request=a;this.Ba=b;this.ta=c;this.va=d;this.ma=0;this.ie=null;this.O=new Set};_.K(wLc,_.Di);
wLc.prototype.Zg=function(){var a=this;if(this.ie)return this.ie.promise;this.ie=_.ai();for(var b={},c=_.m(this.W(this.request)),d=c.next();!d.done;b={Yqa:b.Yqa,nea:b.nea},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.nea=d;b.Yqa=e;this.ma++;this.Ba.then(function(f){return function(h){return h.Pe(f.Yqa)}}(b)).then(function(f){return function(h){var k=f.nea;a.V(h);xLc(a,k)}}(b),function(f){return function(h){return void a.handleError(f.nea,h)}}(b))}return this.ie.promise};
var xLc=function(a,b){a.O.add(b);a.O.size===a.ma?(a.ha(a.request),a.dispatchEvent("za"),a.ie.resolve()):a.dispatchEvent("wa")};wLc.prototype.handleError=function(a,b){b=_.SB(b);var c=b.Sg;5===c.Vs()||4===c.zk()?(this.va.info("drive.ds.sync.query.SimpleFindByIdsRunner","Deleting "+a+" due to: "+b.message),this.ka(a),xLc(this,a)):(a=new NL(c,_.ak(this.ta.hg(),1,1)),this.dispatchEvent(a),this.ie.reject(b))};var yLc=function(a,b,c,d,e){wLc.call(this,a.clone(),c,d,e);this.H=b};_.K(yLc,wLc);
yLc.prototype.W=function(a){var b=new Map;a.mn().forEach(function(c){var d=_.Q8b(a.clone(),[c]);b.set(c,d)});return b};yLc.prototype.V=function(a){var b=[];a.ET().forEach(function(c){b.push(c)});this.H(b,!0)};yLc.prototype.ha=function(){this.H([],!1)};yLc.prototype.ka=function(a){this.H([lLc(a)],!0)};var zLc=function(a,b,c,d,e,f){yM.call(this,a,f.clone());this.ma=b;this.W=c;this.ka=d;this.ha=e;this.nl={};this.H=null};_.K(zLc,yM);
zLc.prototype.refresh=function(){this.H=new yLc(this.request,this.ha,this.ma,this.W,this.ka);return this.H.Zg()};zLc.prototype.ifa=function(){this.H||this.refresh()};zLc.prototype.ek=function(){var a=new _.VK;a.Dc(this.status);_.La(this.nl,function(b,c){a.ET().set(c,b||new _.HG)});a.Ji(this.Ye());return a};zLc.prototype.Ju=function(a){var b=a.getId();if(_.Zj(a,lLc(a.getId()))){if(this.nl[b])return delete this.nl[b],!0}else if(0<=this.request.mn().indexOf(b))return this.nl[b]=a,!0;return!1};
var ALc=function(a,b){a=a.getState();return null==a||b.getState()==a},BLc=function(a,b,c){zM.call(this,a,c);this.V=b};_.K(BLc,zM);BLc.prototype.aia=function(a,b,c){a=a.clone();a.ui(b);return new _.Uuc(a,c)};BLc.prototype.mka=function(a){return a.pageToken||""};BLc.prototype.Aja=function(a){return a.response.wl()};BLc.prototype.U5=function(a){this.V(a)};var CLc=function(a){this.H=_.Lqc(a,{numeric:!0})};
CLc.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};CLc.prototype.V=function(a,b,c){var d=_.y(b,4),e=_.y(c,4),f;d!==e?f=_.Ea(d,e)*(a?1:-1):f=_.Ea(b.getId(),c.getId())*(a?1:-1);return f};var DLc=function(a,b,c,d,e){yM.call(this,a,e.clone());this.ha=b;this.nl=[];this.H=null;this.W=d;a=new CLc(c);b=(c=this.request.Cw())?c.getType():0;c=c?c.mf():0;this.ka=1===b?a.O.bind(a,2!==c):a.V.bind(a,1===c)};
_.K(DLc,yM);DLc.prototype.refresh=function(){var a=this;this.uA();this.H=new BLc(this.request,this.W,function(b){return a.ha.then(function(c){return c.Pe(b)})});return this.H.Zg(this.request.Di()||0)};DLc.prototype.ifa=function(a){1===this.status||this.H&&a===this.request.Di()||(this.request.ui(a),this.H?this.H.Zg(a):this.refresh())};DLc.prototype.ek=function(){var a=new oM;a.Dc(this.status);DJc(a,this.nl.map(function(b){return b.clone()}));return new _.$K(a,void 0,1!==this.status&&XKc(this.H),this.Ye())};
DLc.prototype.Ju=function(a){var b=_.ua(this.nl,function(c){return c.getId()===a.getId()});return a&&ALc(this.request,a)&&!_.Zj(a,lLc(a.getId()))?lBc(this.nl,a,this.ka):b};var ELc=function(a,b,c,d){this.H=new Map;this.V=a;this.ha=b;this.W=c;this.O=d};_.K(ELc,AM);_.g=ELc.prototype;_.g.log=function(a){this.W.info("drive.ds.sync.cache.WorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};
_.g.cia=function(a){var b=this;return new DLc(this.V,this.ha,GL(_.KI(this.O)),function(c){return void b.nD(c,!1)},a)};_.g.Twa=function(a){var b=this;return new zLc(this.V,this.ha,this.O,this.W,function(c,d){return b.nD(c,d)},a)};_.g.u2=function(a,b,c,d){this.log("Initialized "+a.length+" items for workspaces: "+a.map(function(e){return e.getId()}).join(", "));AM.prototype.u2.call(this,a,b,c,d)};
var FLc=function(a,b){b=void 0===b?!1:b;var c=a.getMimeType();xL(a)&&(c=(c=a.Ff())?_.y(c,3):"");yL(a)&&(a.Yi()&&(c+="+"+String(a.Yi())),a.Ij()&&(c+="+shared"));return _.bUa(c,b?"32":"16")},GLc=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("&")},HLc=function(a,b){var c=_.P(a,44),d=a.Ff();if(d){if(1!==_.me(d))return null;c=(c=_.ke(d))?_.P(c,44):!0}if(!c)return null;c={};d=a.getId();xL(a)&&(d=EBc(a));
d=[_.D(b,65,"https://lh3.google.com"),"u",_.hJ(_.KI(b)),"d",d].join("/");d+="={size}";_.Q(b,89,!1)&&_.Cj(a,140)&&(c.resourcekey=_.pl(a));return d=GLc(d,c)},ILc=function(a){this.H=a},KLc=function(a,b,c){if(c.includes(20)&&c.includes(3)){var d=FLc(b,_.Q(a.H,75,!1));_.w(b,21,d)}c.includes(18)&&_.Pvc(b,vCc(b,a.H));c.includes(19)&&(d=HLc(b,a.H),_.w(b,20,d));JLc(a,b,c);if(xL(b)){if(d=(d=b.Ff())&&_.ke(d)){if(c.includes(20)&&c.includes(3)){var e=FLc(d,_.Q(a.H,75,!1));_.w(d,21,e)}c.includes(18)&&_.Pvc(d,vCc(d,
a.H));c.includes(19)&&(e=HLc(d,a.H),_.w(d,20,e));JLc(a,d,c)}_.Tvc(b,!!b.Xx())}},JLc=function(a,b,c){var d=c.includes(41);c=c.includes(42);if(d||c){var e=b.getMimeType();e&&(e=!yL(b)&&!xL(b)&&!_.Sd(e)&&(!b.N6()||2!==b.Xo()),d&&_.w(b,40,e),e&&c&&(a=a.H,d=b.getId(),xL(b)&&(d=EBc(b)),c=new _.kj(_.D(a,16,"")+"/uc"),_.rj(c,"id",d),_.rj(c,"authuser",_.hJ(_.KI(a))),_.rj(c,"export","download"),_.Q(a,89,!1)&&_.Cj(b,140)&&_.rj(c,"resourcekey",_.pl(b)),_.w(b,41,c.toString())))}},LLc=function(a,b){this.lia="";
this.startTime=b||new Date;this.H=a;this.K$=xCc(a)};LLc.prototype.clone=function(){return new LLc(this.H,this.startTime)};var MLc=function(){this.H=null;this.yY=[]},NLc=function(a){return _.lf(a.yY,function(b){return _.Ya(b)})};MLc.prototype.fN=function(){return this.H};
MLc.prototype.O=function(a,b,c){if(this.H){var d=this.H;if(!a["X-Google-DapperTraceInfo"]){var e=new MJc;e.V=LJc(d.K$);var f=_.Vg().substring(0,8);d=xCc(f);f=(new jJc).Ob(f);f=_.w(f,2,d);b=_.w(f,3,b).Ki(c);this.yY.push(b);e.O=LJc(d);e.H=JJc(808464432,808464432);e.W=41;b=String.fromCharCode;c=b.apply;d=new _.vk;if(e.V){f=e.V.O>>>0;var h=e.V.H>>>0;_.wk(d,1,1);var k=d.O;bDc(k,f);bDc(k,h)}e.O&&(f=e.O.O>>>0,h=e.O.H>>>0,_.wk(d,2,1),k=d.O,bDc(k,f),bDc(k,h));f=e.W;null!=f&&(_.wk(d,3,5),bDc(d.O,f));e.H&&(f=
e.H.O>>>0,e=e.H.H>>>0,_.wk(d,4,1),h=d.O,bDc(h,f),bDc(h,e));e=_.xk(d);a["X-Google-DapperTraceInfo"]=_.n.btoa(c.call(b,null,e))}}};var OLc=function(){this.Eb=[];this.O=this.H=0};OLc.prototype.discard=function(a){for(var b=this.H,c=this.O,d=this.Eb,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 PLc=function(a,b){if(!c)var c=b.length;for(var d=a.H,e=a.O,f=a.Eb,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},QLc=function(a){this.key=a;this.H=new _.auc;this.O=new _.Ztc(new _.auc,_.uma(a))};QLc.prototype.encrypt=function(a){for(var b=[],c=0;16>c;c++)b[c]=Math.floor(256*Math.random());b=fGc(b);c=RLc(this,a);return b.concat(c,SLc(this,b,a,!0))};
var TLc=function(a,b){var c=SLc(a,b.substring(0,16),b.substring(36),!1);b=b.substring(16,36);a=RLc(a,c);if(b!==a)throw Error("nf");return c},RLc=function(a,b){a=_.$tc(a.O,_.huc(b));return fGc(a)},SLc=function(a,b,c,d){a.H.reset();a.H.update(b);a.H.update(a.key);b=new OLc;a=a.H.digest();if(!e)var e=a.length;for(var f=b.Eb,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=_.huc(c.substring(8192*
e,8192*(e+1))),PLc(b,a),d+=fGc(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;PLc(b,a);d.push(a)}if(d.length){for(c=0;c<d.length-1;c++)if(8192!==d[c].length)throw Error("of");c=8192*(d.length-1)+d[d.length-1].length;b=Array(c);for(a=e=0;e<c;)f=ULc(d,e++),128>f?b[a++]=String.fromCharCode(f):191<f&&224>f?(h=ULc(d,e++),b[a++]=String.fromCharCode((f&31)<<6|h&63)):
239<f&&365>f?(h=ULc(d,e++),k=ULc(d,e++),l=ULc(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=ULc(d,e++),k=ULc(d,e++),b[a++]=String.fromCharCode((f&15)<<12|(h&63)<<6|k&63));b.length=a;d=b.join("")}else d="";return d},ULc=function(a,b){return a[Math.floor(b/8192)][b%8192]},VLc=function(a,b,c){this.data=a;this.AZa=b;this.H=c;this.isEncrypted=!1};VLc.prototype.getData=function(){return this.data};
VLc.prototype.Qm=function(){return this.AZa};var WLc=function(a,b,c,d){this.O=a;this.H=_.ai();this.qp=!1;this.V=_.D(b,7,"");this.W=_.ak(_.HL(b),6,2E7);this.DE=_.ZI(b);this.ha=_.ak(_.HL(b),12,0);this.ka=c;this.dg=d||null};WLc.prototype.initialize=function(){var a=this;this.qp||(this.qp=!0,this.O.initialize().then(function(){a.H.resolve()},function(b){a.H.reject(b)}));return _.ji(this.H.promise)};
WLc.prototype.qB=function(a){if(a instanceof _.qC)return 0;if(a instanceof lM)return 1;if(a instanceof xGc)return 5;if(a instanceof cM)return 3;if(a instanceof AJc)return 6;throw new _.Dc("Unsupported dataShard in getDataType");};var XLc=function(a){if(0==a)return _.qC;if(1==a)return lM;if(5==a)return xGc;if(3==a)return cM;if(6==a)return AJc;throw new _.Dc("Unsupported dataType:"+a+" in getDataTypeCtor");};WLc.prototype.Xn=function(a){if(a instanceof cM)return a.Xn()};
WLc.prototype.Qm=function(a){if(a instanceof cM)return a.wd().length};WLc.prototype.rv=function(a){if(a instanceof cM)return a=a.rv(),null!=a?a:void 0};
var bMc=function(a,b,c,d){if(0==c.length)return _.Yh();for(var e=a.qB(c[0]),f=_.m(c),h=f.next();!h.done;h=f.next())a.qB(h.value);var k=a.Xn(c[0]),l=0;3==e&&YLc(a,c);var p=!!b;return ZLc(a,c).then(function(q){if(p){var r=a.dg?a.dg.H(106023,d):null;l=q.reduce(function(z,A){(A=A.Qm())&&(z+=A);return z},0);var v=$Lc(a,b,q.map(function(z){return z.getData()})).then(function(z){if(z.length!=q.length)return _.Zh(Error("pf"));z=_.m(z.entries());for(var A=z.next();!A.done;A=z.next()){var C=_.m(A.value);A=
C.next().value;C=C.next().value;A=q[A];A.data=C;A.isEncrypted=!0}return q});r&&(sFc(rFc(qFc(KL(r),_.SK(_.Htc,e)),_.SK(_.Etc,k)),!0),v.then(function(){var z=l;pFc(KL(r),!0).zt(z);r.zj()},function(){var z=l;pFc(KL(r),!1).zt(z);r.zj()}));return v}return q}).then(function(q){return a.H.promise.then(function(){return aMc(a.O,q,e,k,p,d)})})},ZLc=function(a,b){return new _.Xh(function(c,d){var e=!1,f=[];b.forEach(function(l){if(!e){var p=l.Lc();p.length>a.W?e=!0:f.push(new VLc(p,a.Qm(l),a.rv(l)))}});if(e){var h=
Error("qf"),k=new _.Cc;_.eJ(k,2);_.qJ(k,23);_.w(k,21,h.message);_.oq(k);a.ka(k);d(h)}c(f)})},YLc=function(a,b){a.Xn(b[0]);for(var c=_.m(b),d=c.next();!d.done;d=c.next())a.Xn(d.value);a.DE||cMc(b);if(a.ha)for(a=a.ha,c=b.length-1;0<=c;c--)if(b[c].Xn()){d=[];for(var e=b[c].wd();e.length>a;){var f=_.za(e,a-1,a);f=SHc(new cM,f);d.push(f)}SHc(b[c],e);d.length&&_.Db(_.za,b,c+1,0).apply(null,d)}},CM=function(a,b,c,d,e,f){var h=_.ai(),k;_.ci(a.H.promise.then(function(){return dMc(a.O,c,d,e)}).then(function(l){var p=
l.map(function(r){return r.data}),q=new _.di;if(l[0]&&l[0].y0){if(k=a.dg?a.dg.H(106022,f):null)sFc(rFc(qFc(KL(k),_.SK(_.Htc,c)),_.SK(_.Etc,d)),!0),q.$m().then(function(r){var v=k;r=void 0!=r;pFc(KL(v),r);_.qxc(v)});eMc(a,q,b,p)}else q.callback(p);return _.Yh(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 (XLc(c))(JSON.parse(r)),q+=a.Qm(r),p.push(r);3==c&&(a.DE||fMc(p),gMc(p));k&&KL(k).zt(q)}h.resolve(p)}),function(){k&&k.zj()}).Cg(h.reject,
h);return h.promise},cMc=function(a){if(a.length){for(var b=0;b<a.length;b++)if(_.Oj(a[b],_.Rk,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.wd()||[];e=_.m(e);for(var f=e.next();!f.done;f=e.next())if(f=f.value,_.Nvc(f,hMc(_.jl(f),b,c)),_.Ovc(f,hMc([f.ym()],b,c)[0]),_.Uvc(f,hMc([f.Rt()],b,c)[0]),_.Yvc(f,hMc([f.Iq()],b,c)[0]),_.awc(f,hMc([f.iD()],b,c)[0]),f=f.Yv())_.Jvc(f,hMc(f.aR(),b,c)),_.Kvc(f,hMc(_.Oj(f,_.Rk,3),b,c))}var h=[];b.forEach(function(k){h.push(k)});
_.Kj(a[0],2,h)}},hMc=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)?_.Zj(f,b.get(e))?d.push(c.get(e)):d.push(f):(b.set(e,f.clone()),f=new _.Rk,f.Ob(e),c.set(e,f),d.push(f))):d.push(f)}return d},fMc=function(a){var b=new Map,c=new Map;a[0]&&_.Oj(a[0],_.Rk,2)&&_.Oj(a[0],_.Rk,2).forEach(function(h){b.set(h.getId(),h);h=(new _.Rk).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.wd()||[];e=_.m(e);for(var f=e.next();!f.done;f=e.next())if(f=f.value,_.Nvc(f,iMc(_.jl(f),b,c)),_.Ovc(f,iMc([f.ym()],b,c)[0]),_.Uvc(f,iMc([f.Rt()],b,c)[0]),_.Yvc(f,iMc([f.Iq()],b,c)[0]),_.awc(f,iMc([f.iD()],b,c)[0]),f=f.Yv())_.Jvc(f,iMc(f.aR(),b,c)),_.Kvc(f,iMc(_.Oj(f,_.Rk,3),b,c));_.Lj(d,2)}}},iMc=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();_.Zj(c.get(f),e)?d.push(b.get(f).clone()):d.push(e)}else d.push(e);
return d},gMc=function(a){for(var b={},c=1;c<a.length;b={Wda:b.Wda},c++)if(!a[c].Xn()){for(var d=0,e=c;e<a.length&&!a[e].Xn();e++)d++;e=a[c-1];d=_.za(a,c,d);b.Wda=e.wd();d.forEach(function(f){return function(h){_.xa(f.Wda,h.wd())}}(b));SHc(e,b.Wda)}},$Lc=function(a,b,c){if(!_.Mtc()&&a.V){var d=new Worker(_.Jba(_.Wy(a.V)),void 0),e=new _.di;d.addEventListener("message",function(k){d.terminate();e.callback(k.data)},!1);d.addEventListener("error",function(k){d.terminate();e.Jd(Error(String(k)))},!1);
c=HJc(new GJc,c);d.postMessage({command:"encrypt",data:{request:c.Lc(),key:b}});return e}try{a=[];var f=new QLc(b);for(b=0;b<c.length;b++)a.push(f.encrypt(c[b]));var h=_.ii(a)}catch(k){h=_.ki(k)}return h},eMc=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(!_.Mtc()&&a.V){var f=new Worker(_.Jba(_.Wy(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 QLc(c);for(c=0;c<d.length;c++)a.push(TLc(h,d[c]));b.callback(a)}catch(k){b.callback(void 0)}},jMc=/^[\w]+$/,kMc=function(a,b,c){return[a.hs(),a.clientId,b?"#":DM(a)].join(":")+":"+(c||"")},lMc=function(a,b,c){this.global=void 0===c?!1:c;a.match(jMc);this.key=a;this.value=b};lMc.prototype.getKey=function(){return this.key};lMc.prototype.Za=function(){return this.value};
var mMc=function(a,b){return{k:kMc(b,a.global,a.key),v:a.value}},nMc=function(a,b){a=kMc(a,b);return xHc(a+"A",a+"z")},oMc=function(a,b){this.H=a;this.O=b},pMc=function(a){return a?new oMc(a.versionKey,a.versionChangeTimestamp):null},qMc=function(a,b){return a+":"+b},rMc=function(a,b,c,d,e){this.data=a;this.index=b;this.size=c;this.timestamp=d;this.y0=void 0===e?null:e},sMc=function(a){return{data:a.data,index:a.index,size:a.size,timestamp:a.timestamp,e:a.y0}},tMc=function(a,b,c,d){a=DM(a)+"_"+b;
3===b&&(a+="_"+d);return a+=_.Ht(":%02d",c)},uMc=function(a,b,c,d){c=tMc(a,b,void 0===c?0:c,d);a=DM(a)+"_"+b;3===b&&(a+="_"+d);return xHc(c,a+":a")},vMc=function(a){var b=DM(a)+"_";a=DM(a)+"_A";return xHc(b,a)},wMc=function(a){return a?new rMc(a.data,a.index,a.size,a.timestamp,a.e):null},xMc=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};
xMc.prototype.hs=function(){return this.userId};xMc.prototype.Mg=function(){return _.wa(this.fields)};
var DM=function(a){if(!a.O){var b=new _.zI;b.update([a.userId,a.clientId,a.W,a.V].join(":"));b.update(a.fields);a.O=_.rsc(b.digest())}return a.O},yMc=function(a){return{versionKey:DM(a),versionInfo:{u:a.userId,c:a.clientId,pv:a.W,phk:a.V,f:a.fields},lastAccessedTimestamp:a.H}},zMc=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 xMc(c.u,c.c,c.pv,c.phk,c.f,a.lastAccessedTimestamp);b?a.O=d:DM(a)!==d&&(a=null);return a},EM=function(a,
b,c,d){c=void 0===c?null:c;d=void 0===d?!1:d;_.O.call(this);var e=this;this.dg=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.Ib=new _.Ye(this);this.Ma(this.Ib)};_.K(EM,_.O);EM.prototype.initialize=function(){return AMc(this)};
var AMc=function(a,b){a.V||(a.V=_.ai(),a.Qa.then(function(){b?(a.va=!1,BMc(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)"),_.zrc("GoogleDriveDs",2,a.Fa.bind(a),a.ta.bind(a)).lg(a.Ka.bind(a),a.ta.bind(a)),_.Hi(2E4).then(a.Ha.bind(a)))},function(c){a.V.reject(new _.Dc("Database version error",void 0,_.YI(c)?c:void 0))}));return a.V.promise},BMc=function(a,b){a.H=b;a.Ib.listen(a.H,"close",
a.ha.bind(a,"Browser closing database"));a.Ib.listen(a.H,"versionchange",a.ha.bind(a,"Database version change detected, closing"))};EM.prototype.Fa=function(a,b){this.log("Upgrading GoogleDriveDs to version "+a.newVersion);this.Ba=!0;_.Ia(b.H.objectStoreNames,function(c){return _.nwc(b,c)});_.La(_.nJ,function(c){var d=_.euc.get(c);_.wrc(b,c,d?{keyPath:d}:void 0)})};
EM.prototype.ta=function(a){var b;a&&a instanceof _.BI&&"InvalidStateError"==a.getName()&&_.Aj.Ku?b=Error("rf"):_.YI(a)&&(b=a);this.ha("Unable to open database GoogleDriveDs (version 2)");this.V.reject(b);CMc(this,!1)};EM.prototype.Ka=function(a){this.ka?a.dispose():(BMc(this,a),this.Ma(this.H),this.readOnly||DMc(this).then(null,function(){}),this.log("Initialized database GoogleDriveDs"),this.V.resolve(),CMc(this,!0))};
var CMc=function(a,b){if(a.ma){var c=a.ma,d=_.B(_.RK(c),jFc,5);d||(d=new jFc,c=_.RK(c),_.I(c,5,d));d=_.w(d,1,2);c=a.hj().W;d=_.w(d,2,c);c=a.hj().ka;d=_.w(d,5,c);b=_.w(d,3,b);b=_.w(b,4,a.Ba);d=a.hj().ma;_.w(b,6,d);a.ma.zj();a.ma=null}};EM.prototype.Ha=function(){this.H||this.Sf()||(this.ha("Opening database GoogleDriveDs timed out."),this.ta(Error("sf")))};EM.prototype.ha=function(a){this.log(a);this.ka||(this.ka=!0,this.O="Database disabled: "+a,this.H&&this.va&&this.H.close())};EM.prototype.Sf=function(){return this.ka};
var EMc=function(a){return a.ka?a.O:null};EM.prototype.hj=function(){return this.version};
var FM=function(a,b,c){c=void 0===c?"readonly":c;if(a.readOnly&&"readonly"!=c)return null;a=a.H;try{return _.xrc(a,[b],c)}catch(d){return null}},DMc=function(a){var b=_.nJ.m_,c=FM(a,b,"readwrite");if(!c)return _.Zh(Error("tf"));c.objectStore(b).put(yMc(a.hj()));return _.Yh(c.wait()).then(function(){})},FMc=function(a){if(!a.H)return _.Zh(Error("uf"));if(a.Sf())return _.Zh(Error(a.O));var b=_.nJ.m_,c=FM(a,b,"readwrite");if(!c)return _.Zh(Error("vf"));b=c.objectStore(b);return _.Yh(b.remove(DM(a.hj())))},
GMc=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=wMc(e.value))&&(d[e.index]=e);if(!d[0])return b.reject(Error("wf")),0;a=d[0].timestamp;if(!a)return b.reject(Error("xf")),0;e=d[0].size;if(!e)return b.reject(Error("yf")),0;if(e>d.length)return b.reject(Error("zf`"+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("Af`"+e)),0;if(c&&a<c)return b.reject(Error("Bf`"+a+"`"+c)),d.length>
e?e:null;if(d.length>e)return b.resolve(d.slice(0,e)),e;b.resolve(d);return null},dMc=function(a,b,c,d){if(!a.H||3==b&&void 0==c)return _.Zh(Error("Cf"));if(a.Sf())return _.Zh(Error(a.O));var e=uMc(a.hj(),b,0,c),f=_.nJ.A5,h=FM(a,f);if(!h)return _.Zh(Error("Df"));e=h.objectStore(f).getAll(e);var k=_.ai();e.lg(function(l){l=GMc(l,k,d);a.readOnly||null==l||HMc(a,b,c,l).then(null,function(){})},k.reject);return k.promise},aMc=function(a,b,c,d,e,f){if(a.H){if(a.Sf())return _.Zh(Error(a.O));if(100<b.length||
3==c&&void 0==d)return _.Zh(Error("Ef"))}else return _.Zh(Error("Ff"));var h=Date.now(),k=b.length,l=b.map(function(v,z){return{key:tMc(a.hj(),c,z,d),data:new rMc(v.getData(),z,k,h,e),metadata:v}}),p=_.nJ.A5;b=FM(a,p,"readwrite");if(!b)return _.Zh(Error("Gf"));p=b.objectStore(p);var q={};l=_.m(l);for(var r=l.next();!r.done;q={oea:q.oea},r=l.next())r=r.value,q.oea=IMc(a,c,d,r.metadata,f),p.put(sMc(r.data),r.key).then(function(v){return function(){var z=v.oea;z&&(pFc(KL(z),!0),z.zj())}}(q),function(v){return function(z){var A=
v.oea,C=z instanceof _.BI?z.code:_.Wqc;A&&a.W&&(z=pFc(KL(A),!1),C=_.SK(_.Itc,C),_.w(z,2,C),A.zj())}}(q));return _.Yh(b.wait()).then(function(){})},IMc=function(a,b,c,d,e){if(a.W){var f=a.W.W;if(a=a.W.H(106019,e))b=rFc(qFc(KL(a),_.SK(_.Htc,b)),_.SK(_.Etc,c)),f=f.Xn(d.H),f=_.w(b,5,f),sFc(f,d.isEncrypted),void 0!=d.Qm()&&KL(a).zt(d.Qm());return a}return null},HMc=function(a,b,c,d){d=void 0===d?0:d;if(a.H){if(a.Sf())return _.Zh(Error(a.O));if(3==b&&void 0==c)return _.Zh(Error("Hf"))}else return _.Zh(Error("If"));
b=uMc(a.hj(),b,d,c);c=_.nJ.A5;a=FM(a,c,"readwrite");if(!a)return _.Zh(Error("Jf"));a.objectStore(c).remove(b);return _.Yh(a.wait()).then(function(){})},JMc=function(a){if(!a.H)return _.Zh(Error("Kf"));if(a.Sf())return _.Zh(Error(a.O));var b=vMc(a.hj()),c=_.nJ.A5;a=FM(a,c,"readwrite");if(!a)return _.Zh(Error("Lf"));a.objectStore(c).remove(b);return _.Yh(a.wait()).then(function(){})};
EM.prototype.getMetadata=function(a){if(this.H){if(this.Sf())return _.Zh(Error(this.O));if(a&&0==a.length)return _.Zh(Error("Mf"))}else return _.Zh(Error("Nf"));var b=this.hj(),c=_.nJ.O6,d=FM(this,c);if(!d)return _.Zh(Error("Of"));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(_.Yh(c.get(kMc(b,e.global,e.key))));c=_.$h(d)}else c=_.$h([c.getAll(nMc(b,!1)).then(),c.getAll(nMc(b,!0)).then()]).then(function(f){var h=_.m(f);f=h.next().value;h=h.next().value;
return kBc(f,h)});return c.then(function(f){return f.map(function(h){a:{if(h){var k=h.k.split(":"),l="#"===k[2];if(4===k.length&&(l||k[2]===DM(b))){h=k[0]!==b.hs()||k[1]!==String(b.clientId)?void 0:new lMc(k[3],h.v,l);break a}}h=void 0}return h})})};
var KMc=function(a,b){if(a.H){if(a.Sf())return _.Zh(Error(a.O));if(0==b.length)return _.Zh(Error("Pf"))}else return _.Zh(Error("Qf"));var c=_.nJ.O6,d=FM(a,c,"readwrite");if(!d)return _.Zh(Error("Rf"));c=d.objectStore(c);d=[];b=_.m(b);for(var e=b.next();!e.done;e=b.next())d.push(c.put(mMc(e.value,a.hj())).then());return _.$h(d).then(function(){})},LMc=function(a,b){b=void 0===b?!1:b;if(a.H){if(a.Sf())return _.Zh(Error(a.O))}else return _.Zh(Error("Tf"));var c=a.hj(),d=_.nJ.O6;a=FM(a,d,"readwrite");
if(!a)return _.Zh(Error("Uf"));d=a.objectStore(d);a=[];a.push(d.remove(nMc(c,!1)).then());b&&a.push(d.remove(nMc(c,!0)).then());return _.$h(a).then(function(){})},MMc=function(a){if(!a.H)return _.Zh(Error("Vf"));if(a.Sf())return _.Zh(Error(a.O));var b=qMc(a.hj().hs(),a.hj().clientId),c=_.nJ.fU;a=FM(a,c);if(!a)return _.Zh(Error("Wf"));c=a.objectStore(c);return _.Yh(c.get(b)).then(function(d){return pMc(d)})},NMc=function(a,b){b=void 0===b?!1:b;if(!a.H)return _.Zh(Error("Xf"));if(a.Sf())return _.Zh(Error(a.O));
var c=a.hj(),d=qMc(c.hs(),c.clientId);b=new oMc(DM(c),b?Date.now():void 0);c=_.nJ.fU;a=FM(a,c,"readwrite");if(!a)return _.Zh(Error("Yf"));a.objectStore(c).put({versionKey:b.H,versionChangeTimestamp:b.O},d);return _.Yh(a.wait())};EM.prototype.Ol=function(a){var b=this;return this.H?this.Sf()?_.Zh(Error(this.O)):MMc(this).then(function(c){var d=DM(b.hj());if(c)if(a){if(!c.O&&d==c.H&&d!=DM(a))return NMc(b,!0);if(c.O&&d==DM(a))return NMc(b)}else{if(d!=c.H)return NMc(b)}else if(!a)return NMc(b)}):_.Zh(Error("Zf"))};
var OMc=function(a){if(!a.H)return _.Zh(Error("$f"));if(a.Sf())return _.Zh(Error(a.O));var b=a.hj(),c=qMc(b.hs(),b.clientId);return MMc(a).then(function(d){if(d){d=_.nJ.fU;var e=FM(a,d,"readwrite");if(e)return e.objectStore(d).remove(c).then()}})};
EM.prototype.clear=function(a){var b=this;a=void 0===a?!1:a;return this.H?this.Sf()?_.Zh(Error(this.O)):MMc(this).then(function(c){var d=c&&c.H==DM(b.hj());return d&&!a?!1:(c&&d?OMc(b):_.Yh()).then(function(){return _.$h([LMc(b,a),JMc(b),FMc(b)]).then(function(){return!0},function(){return!1})},function(){return!1})}):_.Zh(Error("ag"))};EM.prototype.close=function(){this.ha("Closing database")};EM.prototype.log=function(a){this.dg.info("drive.ds.sync.storage.VersionedDb",a)};
var PMc=function(a){if(1>=a.hj())return!1;var b=a.H.objectStoreNames;return _.Qa(_.nJ).every(function(c){return b&&b.contains(c)})},QMc=function(){var a=_.ai();_.zrc("GoogleDriveDs").lg(function(b){b?PMc(b)?a.resolve(b):(b.close(),_.Yh(yHc()).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},RMc=function(a,b,c){var d=_.ai();a?_.xrc(a,[_.nJ.m_],"readonly").objectStore(_.nJ.m_).getAll().lg(function(e){e=
_.Qa(e).map(function(f){return zMc(f)}).filter(function(f){return null!=f});d.resolve(e.filter(function(f){return(!b||f.hs()==b)&&(!c||f.clientId==c)}))},d.reject):d.resolve([]);return d.promise},SMc=function(a,b,c){var d=_.ai();QMc().then(function(e){if(e){var f=_.nJ.fU;_.xrc(e,[f],"readonly").objectStore(f).get(a+":"+b).then(function(h){return pMc(h)}).then(function(h){if(h){var k=0;"number"==typeof c&&"number"==typeof h.O&&(k=c+h.O-Date.now());var l=_.nJ.m_,p=_.xrc(e,[l],"readonly");p.objectStore(l).get(h.H).then(function(q){(q=
zMc(q))?(q.ka=!0,0>k?q.ha=!0:0<k&&(q.ma=k),d.resolve(q)):d.resolve(null)});_.fi(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},TMc=function(a,b,c){var d=_.ai(),e=new EM(_.Yh(a),b);AMc(e,c).then(function(){return d.resolve(e)},d.reject);return d.promise},UMc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=[];a.forEach(function(h){var k=TMc(h,b,c);f.push(k.then(function(l){return l.clear(e)}).then(function(l){return l?
h:void 0}))});_.$h(f).then(function(h){var k=[];h.forEach(function(l){l&&(k.push(l),b.info("drive.ds.sync.storage.VersionedDb","Cleared version: "+DM(l)))});d.resolve(k)})},VMc=function(a,b,c){var d=Date.now()-12096E5,e=_.ai();QMc().then(function(f){f?(_.ci(e.promise,function(){f.close()}),RMc(f,a,b).then(function(h){return h.filter(function(k){return k.H<d})},function(){return[]}).then(function(h){UMc(h,c,f,e)})):e.resolve([])});return e.promise},WMc=function(a,b,c){var d=_.ai();QMc().then(function(e){e?
(_.ci(d.promise,function(){e.close()}),RMc(e,a,b).then(function(f){UMc(f,c,e,d,!0)})):d.resolve([])});return d.promise},XMc=function(a,b,c,d){if(a.length){var e=_.nJ.A5,f=a.shift(),h=tMc(f,3,0,1);try{_.xrc(c,[e],"readonly").objectStore(e).get(h).then(function(k){(k=wMc(k))&&(!k.y0||k.y0&&d.has(f.V))?b.resolve(f):XMc(a,b,c,d)},function(){return b.resolve(null)})}catch(k){b.resolve(null)}}else b.resolve(null)},YMc=function(a,b,c,d,e,f,h){var k=_.ai();QMc().then(function(l){l?(_.ci(k.promise,function(){l.close()}),
RMc(l,a,b).then(function(p){return p.filter(function(q){return(!h||h!=DM(q))&&q.W==c&&q.H>=e&&DBc(d.filter(function(r){return!_.fuc.has(r)}),q.Mg(),b)})},function(){return[]}).then(function(p){p.length?(p.sort(function(q,r){return r.H-q.H}),XMc(p,k,l,new Set(f))):k.resolve(null)})):k.resolve(null)});return k.promise},ZMc={key:"rid",global:!0},$Mc={key:"ooi",global:!0},aNc={key:"rtds",global:!1},bNc={key:"dct",global:!1},cNc={key:"pc",global:!1},dNc=function(a){this.H=new _.Xh(function(b){a?a.initialize().then(function(){return b(a)},
function(){return b(null)}):b(null)})};dNc.prototype.get=function(a){return this.H.then(function(b){if(b&&!b.Sf())return b.getMetadata([a]).then(function(c){return(c=c[0])?c.Za():void 0},function(){})})};dNc.prototype.set=function(a,b){return this.H.then(function(c){return c&&!c.Sf()?KMc(c,[new lMc(a.key,b,a.global)]).then(function(){return!0},function(){return!1}):!1})};dNc.prototype.$n=function(){return this.get(ZMc).then(function(a){return a?a:null})};
dNc.prototype.Cu=function(a){return this.set(ZMc,a)};var eNc=function(a){return a.get($Mc).then(function(b){return"boolean"===typeof b?b:null})};dNc.prototype.$y=function(a){return this.set($Mc,a)};var fNc=function(a){return a.get(cNc).then(function(b){return"boolean"===typeof b?b:null})},gNc=function(a){return a.get(aNc).then(function(b){return Array.isArray(b)?b:null})},hNc=function(a){return a.get(bNc).then(function(b){return"number"===typeof b?b:null})},iNc=function(){this.ij=[]};_.K(iNc,_.gL);
iNc.prototype.add=function(a,b){var c=a.Cv.Jw;return c instanceof _.kK&&_.y(c.request,12)?_.gL.prototype.add.call(this,a,b):!1};iNc.prototype.ssa=function(a){return this.ij.splice(0,Math.min(a,1))};var jNc=function(a,b){this.ij=[];this.H=b};_.K(jNc,_.gL);jNc.prototype.add=function(a,b){return a.Cv.Jw instanceof _.kK?!1:_.gL.prototype.add.call(this,a,b)};
jNc.prototype.ssa=function(a){for(var b=[],c=[],d={},e=0,f=0;f<this.ij.length&&b.length<a;f++){var h=this.ij[f],k=h.Cv.Jw;k instanceof _.CJ||k instanceof _.OJ||k instanceof _.fK?k="app|"+k.Mh():k instanceof _.xJ||k instanceof _.yJ||k instanceof _.EJ||k instanceof _.iJ?k="item|"+(k instanceof _.xJ?k.Ac():k.getId()):k instanceof _.FJ||k instanceof _.PJ?k="item|"+k.Ac():k instanceof _.GJ||k instanceof _.hK?k="item|"+k.Ac():k instanceof _.YD||k instanceof _.XD?(k=k instanceof _.YD?_.B(k,_.op,1).getKey():
k.getKey(),k="pref|"+_.y(k,2)+"|"+_.pp(k)):k=k instanceof _.HJ?"td|"+k.getId():null;var l=h.Cv.Jw;if(l instanceof _.AJ)l=!!_.P(l,8);else if(l instanceof _.yJ){l=this.H.H(l.getId());var p;if(p=!!l)p=!!(l&&l.getMimeType()&&_.Geb.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.ij,c[a]);return b};
var kNc=function(a,b,c,d,e,f,h,k,l){a=a.hg();h=new _.hzc(k,h,d,_.ak(a,32,1073741824),_.ak(a,21,1E3));h=new _.izc(h);k=new _.Hyc(_.ak(a,59,2E3),_.ak(a,60,2E4),_.ak(a,61,6));c=new _.Fyc(l?l:c,l?void 0:e);e={};e[1]=_.kzc(b,d);e[2]=_.lzc(b,a,k,c,d);e[3]=_.mzc(b,a,k,c,d,"batch");l=_.ak(a,10,50);f=new _.iL(d,b,[_.Gyc(c),new _.Kyc(l,_.ak(a,11,100)),new _.hL(l),new _.fL(k,d)],[new jNc(a,f),new iNc,new _.gL],[new _.Tyc(a,k,c.Lj(),d)],"mutation");return e[4]=f,e[5]=_.nzc(h,a,d),e[6]=_.mzc(b,a,k,c,d,"find_by_ids_batch"),
e[7]=_.mzc(b,a,k,c,d,"xd4_batch"),e[8]=_.mzc(b,a,k,c,d,"xd4_batch_one",1),e},lNc=function(a){return a.nextPageToken?a.nextPageToken:a.continuationToken?a.continuationToken:""},mNc=function(a){var b={};return b.parentId=a.Ek(),b},nNc=function(a){var b={};_.CAc(b,[_.y(a,2)||""]);return b},oNc=function(a){var b={};_.xe(_.Ug(a.getTitle()))||(b.title=a.getTitle());_.CAc(b,_.fe(a,3));_.P(a,8)&&(b.description="",a={},b.labels=(a.starred=!1,a));return b},pNc=function(a){var b={};null!=a.getTitle()&&(b.title=
a.getTitle());null!=_.y(a,3)&&(b.workspaceToken=_.y(a,3));return b},qNc=function(a){var b={};b.sourceIds=_.fe(a.request,1);b.destinationFolderId=_.y(a.request,2);a.pageToken&&(b.continuationToken=a.pageToken);return b},rNc=function(a){var b={},c={};_.xe(_.Ug(a.getTitle()))||(b.title=a.getTitle());null!=a.Bf()&&(b.description=a.Bf());null!=_.P(a,4)&&(c.starred=_.P(a,4));null!=a.Wh()&&(c.trashed=a.Wh());_.xe(_.Ug(a.getMimeType()))||(b.mimeType=a.getMimeType());"number"===typeof _.y(a,7)&&(b.modifiedDate=
_.lwc(_.dxc(_.y(a,7)||0)));null!=_.P(a,11)&&(c.restricted=_.P(a,11));_.Pa(c)&&(b.labels=c);null!=a.Yi()&&(b.folderColor=a.Yi());null!=_.P(a,16)&&(b.subscribed=_.P(a,16));null!=_.P(a,40)&&(c={},b.linkShareMetadata=(c.securityUpdateEnabled=_.P(a,40),c));if(c=_.B(a,_.Zk,25)){b.contentRestrictions=[];var d={};null!=_.P(c,1)&&(d.readOnly=_.P(c,1));null!=_.y(c,2)&&(d.reason=_.y(c,2));b.contentRestrictions.push(d)}_.CAc(b,_.fe(a,8));return b},sNc=function(a){var b={};null!=_.P(a,3)&&(b.pinned=_.P(a,3));
return b},tNc=function(a){var b={};null!=a.getTitle()&&(b.name=a.getTitle());if(null!=_.y(a,3))b.backgroundImageId=_.y(a,3);else{var c=_.y(a,6);null!=c&&(c=c.toString(16),b.colorRgb="#"+(0,_.Sg)("0",6-c.length)+c);c=_.B(a,_.bFc,9);if(null!=c){a={};var d=c.getId();d&&(a.id=d);d=_.y(c,2);"number"===typeof d&&(a.xCoordinate=d);d=_.y(c,3);"number"===typeof d&&(a.yCoordinate=d);(c=c.De())&&(a.width=c);b.backgroundImageFile=a}}return b},uNc=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());
null!=a.getState()&&(a=_.FAc[a.getState()])&&(b.state=a);return b},vNc=function(a){_.J.call(this,a)};_.K(vNc,_.J);vNc.prototype.Bf=function(){return _.D(this,1)};vNc.prototype.Xl=function(a){return _.gk(this,1,a)};vNc.prototype.getUrl=function(){return _.D(this,2)};_.wNc=function(a){_.J.call(this,a)};_.K(_.wNc,_.J);_.wNc.prototype.getType=function(){return _.Fj(this,1,0)};_.wNc.prototype.getContext=function(){return _.B(this,vNc,2)};xNc=[1];yNc=[2,4];_.zNc=function(a){_.J.call(this,a,-1,yNc)};
_.K(_.zNc,_.J);_.zNc.prototype.getLabel=function(){return _.D(this,1)};_.zNc.prototype.getTitle=function(){return _.D(this,3)};_.zNc.prototype.setTitle=function(a){return _.gk(this,3,a)};_.ANc=function(a){_.J.call(this,a,-1,xNc)};_.K(_.ANc,_.J);_.BNc=[2,3,4];_.CNc=function(a){_.J.call(this,a)};_.K(_.CNc,_.J);_.CNc.prototype.ve=function(){return _.D(this,3)};_.CNc.prototype.Ln=function(a){return _.gk(this,4,a)};_.DNc=function(a){_.J.call(this,a)};_.K(_.DNc,_.J);_.ENc=function(a){_.J.call(this,a)};
_.K(_.ENc,_.J);var FNc=function(a){_.J.call(this,a)};_.K(FNc,_.J);GNc=[3,5];_.GM=[8,9,10,11,12,13,14];_.HNc=function(a){_.J.call(this,a)};_.K(_.HNc,_.J);_.INc=function(a){_.J.call(this,a,-1,GNc)};_.K(_.INc,_.J);_.INc.prototype.Bb=function(){return _.Fj(this,6,0)};_.INc.prototype.Dc=function(a){return _.hk(this,6,a)};var JNc=function(a){_.J.call(this,a)};_.K(JNc,_.J);var KNc=function(a){_.J.call(this,a)};_.K(KNc,_.J);var LNc=function(a){_.J.call(this,a)};_.K(LNc,_.J);
var MNc=[1],NNc=function(a){_.J.call(this,a,-1,MNc)};_.K(NNc,_.J);var ONc=function(a){_.J.call(this,a)};_.K(ONc,_.J);var PNc=function(a){_.J.call(this,a)};_.K(PNc,_.J);QNc=[7];_.RNc=[1,2,3];_.SNc=function(a){_.J.call(this,a)};_.K(_.SNc,_.J);_.TNc=function(a){_.J.call(this,a)};_.K(_.TNc,_.J);_.UNc=function(a){_.J.call(this,a)};_.K(_.UNc,_.J);_.VNc=function(a){_.J.call(this,a,-1,QNc)};_.K(_.VNc,_.J);_.WNc=function(a){_.J.call(this,a)};_.K(_.WNc,_.J);
_.WNc.prototype.getName=function(){return _.D(this,1)};_.WNc.prototype.hd=function(a){return _.gk(this,1,a)};var XNc=function(a){_.J.call(this,a)};_.K(XNc,_.J);XNc.prototype.getName=function(){return _.D(this,1)};XNc.prototype.hd=function(a){return _.gk(this,1,a)};XNc.prototype.getTitle=function(){return _.D(this,2)};XNc.prototype.setTitle=function(a){return _.gk(this,2,a)};_.YNc=[1,4];ZNc=function(a){_.J.call(this,a)};_.K(ZNc,_.J);ZNc.prototype.getUser=function(){return _.dk(this,_.ENc,1,_.YNc)};
var $Nc=[8,9,10],aOc=function(a){_.J.call(this,a)};_.K(aOc,_.J);aOc.prototype.getType=function(){return _.Fj(this,6,0)};var bOc=function(a){_.J.call(this,a)};_.K(bOc,_.J);_.cOc=function(a){_.J.call(this,a)};_.K(_.cOc,_.J);_.g=_.cOc.prototype;_.g.getName=function(){return _.D(this,1)};_.g.hd=function(a){return _.gk(this,1,a)};_.g.getTitle=function(){return _.D(this,2)};_.g.setTitle=function(a){return _.gk(this,2,a)};_.g.Ija=function(){return _.dk(this,aOc,9,$Nc)};
_.g.lVa=function(){return _.dk(this,bOc,10,$Nc)};_.g.hj=function(){return _.ak(this,5)};_.g.getMimeType=function(){return _.D(this,6)};_.g.aD=function(){return _.B(this,ZNc,7)};var dOc=function(a){_.J.call(this,a)};_.K(dOc,_.J);var eOc=[8,9,10],fOc=function(a){_.J.call(this,a)};_.K(fOc,_.J);_.g=fOc.prototype;_.g.getName=function(){return _.D(this,1)};_.g.hd=function(a){return _.gk(this,1,a)};_.g.getTitle=function(){return _.D(this,2)};_.g.setTitle=function(a){return _.gk(this,2,a)};
_.g.Ija=function(){return _.dk(this,aOc,9,eOc)};_.g.lVa=function(){return _.dk(this,bOc,10,eOc)};gOc=[1,3];_.HM=function(a){_.J.call(this,a)};_.K(_.HM,_.J);_.HM.prototype.Dh=function(){return _.dk(this,fOc,1,gOc)};_.hOc=[1,2,3];_.iOc=function(a){_.J.call(this,a)};_.K(_.iOc,_.J);_.jOc=function(a){_.J.call(this,a)};_.K(_.jOc,_.J);var kOc=function(a){_.J.call(this,a)};_.K(kOc,_.J);var lOc=function(a){_.J.call(this,a)};_.K(lOc,_.J);mOc=[2,3];_.nOc=function(a){_.J.call(this,a,-1,mOc)};_.K(_.nOc,_.J);
_.nOc.prototype.getType=function(){return _.Fj(this,1,0)};_.oOc=function(a){_.J.call(this,a)};_.K(_.oOc,_.J);_.oOc.prototype.getType=function(){return _.Fj(this,1,0)};var pOc=function(a){_.J.call(this,a)};_.K(pOc,_.J);pOc.prototype.getType=function(){return _.Fj(this,1,0)};var qOc=function(a){_.J.call(this,a)};_.K(qOc,_.J);_.rOc=function(a){_.J.call(this,a)};_.K(_.rOc,_.J);_.rOc.prototype.O=function(){return _.Q(this,1)};var sOc=function(a){_.J.call(this,a)};_.K(sOc,_.J);tOc=[1,2,4];
_.uOc=function(a){_.J.call(this,a)};_.K(_.uOc,_.J);vOc=[1,2];_.wOc=function(a){_.J.call(this,a)};_.K(_.wOc,_.J);_.wOc.prototype.getParent=function(){return _.B(this,_.HM,1)};_.wOc.prototype.qg=function(a){return _.I(this,1,a)};_.xOc=function(a){_.J.call(this,a,-1,vOc)};_.K(_.xOc,_.J);_.yOc=function(a){_.J.call(this,a,-1,tOc)};_.K(_.yOc,_.J);_.IM=function(a){_.J.call(this,a)};_.K(_.IM,_.J);_.IM.prototype.getEmail=function(){return _.D(this,1)};_.IM.prototype.getTitle=function(){return _.D(this,2)};
_.IM.prototype.setTitle=function(a){return _.gk(this,2,a)};_.JM=[2,3,4,5];_.KM=function(a){_.J.call(this,a)};_.K(_.KM,_.J);_.KM.prototype.yf=function(){return _.Fj(this,1,0)};_.KM.prototype.getUser=function(){return _.dk(this,_.ENc,2,_.JM)};var zOc=function(a){_.J.call(this,a)};_.K(zOc,_.J);AOc=[1,2,3,4];_.BOc=function(a){_.J.call(this,a,-1,AOc)};_.K(_.BOc,_.J);_.COc=function(a){_.J.call(this,a)};_.K(_.COc,_.J);_.DOc=function(a){_.J.call(this,a)};_.K(_.DOc,_.J);_.EOc=function(a){_.J.call(this,a)};
_.K(_.EOc,_.J);_.FOc=function(a){_.J.call(this,a)};_.K(_.FOc,_.J);_.FOc.prototype.getType=function(){return _.Fj(this,1,0)};GOc=[1];_.HOc=function(a){_.J.call(this,a)};_.K(_.HOc,_.J);_.HOc.prototype.getFeature=function(){return _.Fj(this,1,0)};_.IOc=function(a){_.J.call(this,a,-1,GOc)};_.K(_.IOc,_.J);var JOc=function(a){_.J.call(this,a)};_.K(JOc,_.J);var KOc=function(a){_.J.call(this,a)};_.K(KOc,_.J);var LOc=function(a){_.J.call(this,a)};_.K(LOc,_.J);
LOc.prototype.getType=function(){return _.Fj(this,1,0)};_.LM=[1,2,3,4,5,6,7,8,9,10,11,12,13,18,15,16,19,20,21];_.MM=function(a){_.J.call(this,a)};_.K(_.MM,_.J);_.MM.prototype.$z=function(){return _.dk(this,LOc,10,_.LM)};_.MOc=function(a){_.J.call(this,a)};_.K(_.MOc,_.J);var NOc=function(a){_.J.call(this,a)};_.K(NOc,_.J);_.OOc=function(a){_.J.call(this,a)};_.K(_.OOc,_.J);_.POc=function(a){_.J.call(this,a)};_.K(_.POc,_.J);_.POc.prototype.getType=function(){return _.Fj(this,1,0)};_.NM=[1,2,3,4,5];
_.QOc=function(a){_.J.call(this,a)};_.K(_.QOc,_.J);_.QOc.prototype.getUser=function(){return _.dk(this,_.ENc,1,_.NM)};var ROc=function(a){_.J.call(this,a)};_.K(ROc,_.J);ROc.prototype.getType=function(){return _.Fj(this,2,0)};ROc.prototype.Mh=function(){return _.D(this,1)};_.SOc=function(a){_.J.call(this,a)};_.K(_.SOc,_.J);_.g=_.SOc.prototype;_.g.getName=function(){return _.D(this,1)};_.g.hd=function(a){return _.gk(this,1,a)};_.g.getTitle=function(){return _.D(this,2)};
_.g.setTitle=function(a){return _.gk(this,2,a)};_.g.Na=function(){return _.B(this,_.cOc,3)};_.TOc=function(a){_.J.call(this,a)};_.K(_.TOc,_.J);_.TOc.prototype.getParent=function(){return _.B(this,_.cOc,4)};_.TOc.prototype.qg=function(a){return _.I(this,4,a)};_.OM=[1,5,3];_.UOc=function(a){_.J.call(this,a)};_.K(_.UOc,_.J);_.UOc.prototype.Dh=function(){return _.dk(this,_.cOc,1,_.OM)};_.VOc=function(a){_.J.call(this,a)};_.K(_.VOc,_.J);_.VOc.prototype.O=function(){return _.y(this,1)};
var WOc=function(a){_.J.call(this,a)};_.K(WOc,_.J);WOc.prototype.O=function(){return _.P(this,1)};WOc.prototype.V=function(){return _.y(this,2)};_.PM=function(a){_.J.call(this,a)};_.K(_.PM,_.J);_.g=_.PM.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Ob=function(a){return _.w(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.w(this,2,a)};_.g.usa=function(){return _.y(this,3)};_.g.lz=function(){return _.y(this,4)};
_.g.o$=function(){return _.B(this,WOc,6)};_.g.Drb=function(){return _.B(this,_.VOc,7)};_.g.qVa=function(){return _.y(this,8)};_.g.tsa=function(){return _.P(this,9)};_.QM=function(a){_.J.call(this,a)};_.K(_.QM,_.J);_.g=_.QM.prototype;_.g.getType=function(){return _.y(this,1)};_.g.getId=function(){return _.y(this,2)};_.g.Ob=function(a){return _.w(this,2,a)};_.g.getTitle=function(){return _.y(this,3)};_.g.setTitle=function(a){return _.w(this,3,a)};_.g.Ed=function(){return _.y(this,5)};
_.g.setSize=function(a){return _.w(this,5,a)};_.g.u$a=function(){return _.y(this,6)};_.XOc=function(a,b){return _.w(a,6,b)};_.QM.prototype.Bf=function(){return _.y(this,8)};_.QM.prototype.Xl=function(a){return _.w(this,8,a)};_.QM.prototype.O=function(){return _.P(this,9)};var YOc=function(a){_.J.call(this,a)};_.K(YOc,_.J);YOc.prototype.Bb=function(){return _.y(this,1)};YOc.prototype.Dc=function(a){return _.w(this,1,a)};
var ZOc=function(a,b){return _.I(a,2,b)},$Cc=[90,59,75],$Oc=function(a){_.J.call(this,a)};_.K($Oc,_.J);$Oc.prototype.getType=function(){return _.y(this,1)};var aPc=function(a){var b=new $Oc;return _.w(b,1,a)},bPc=function(a,b){return _.I(a,2,b)};$Oc.prototype.xy=function(){return _.y(this,3)};$Oc.prototype.az=function(a){return _.w(this,3,a)};$Oc.prototype.Pi=function(){return _.y(this,4)};$Oc.prototype.setPosition=function(a){return _.w(this,4,a)};
var dPc=function(a){_.J.call(this,a,-1,cPc)};_.K(dPc,_.J);dPc.prototype.Bb=function(){return _.y(this,1)};dPc.prototype.Dc=function(a){return _.w(this,1,a)};var cPc=[2];
var ePc=function(a){_.J.call(this,a)};_.K(ePc,_.J);
var fPc=function(a){_.J.call(this,a)};_.K(fPc,_.J);fPc.prototype.getType=function(){return _.y(this,1)};var gPc=function(a){var b=new fPc;return _.w(b,1,a)},hPc=function(a,b){return _.I(a,2,b)};fPc.prototype.xy=function(){return _.y(this,3)};fPc.prototype.az=function(a){return _.w(this,3,a)};fPc.prototype.Pi=function(){return _.y(this,4)};fPc.prototype.setPosition=function(a){return _.w(this,4,a)};
var RM=function(a){_.J.call(this,a)};_.K(RM,_.J);RM.prototype.getType=function(){return _.y(this,1)};var iPc=function(a){var b=new RM;return _.w(b,1,a)};RM.prototype.nn=function(){return _.B(this,$L,2)};var jPc=function(a,b){return _.I(a,2,b)};RM.prototype.xy=function(){return _.y(this,3)};RM.prototype.az=function(a){return _.w(this,3,a)};RM.prototype.Pi=function(){return _.y(this,4)};RM.prototype.setPosition=function(a){return _.w(this,4,a)};
var SM=function(a){_.J.call(this,a)};_.K(SM,_.J);SM.prototype.getType=function(){return _.y(this,1)};var kPc=function(a){var b=new SM;return _.w(b,1,a)};SM.prototype.nn=function(){return _.B(this,_.HG,2)};var lPc=function(a,b){return _.I(a,2,b)};SM.prototype.xy=function(){return _.y(this,3)};SM.prototype.az=function(a){return _.w(this,3,a)};SM.prototype.Pi=function(){return _.y(this,4)};SM.prototype.setPosition=function(a){return _.w(this,4,a)};
var mPc=function(a){_.J.call(this,a)};_.K(mPc,_.J);mPc.prototype.Bb=function(){return _.y(this,1)};mPc.prototype.Dc=function(a){return _.w(this,1,a)};mPc.prototype.vr=function(){return _.B(this,_.ZL,2)};
var oPc=function(a){_.J.call(this,a,-1,nPc)};_.K(oPc,_.J);oPc.prototype.Bb=function(){return _.y(this,1)};oPc.prototype.Dc=function(a){return _.w(this,1,a)};oPc.prototype.ak=function(){return _.y(this,3)};var nPc=[2];
var pPc=function(a){_.J.call(this,a)};_.K(pPc,_.J);pPc.prototype.jd=function(){return _.B(this,ML,1)};pPc.prototype.Yn=function(){return _.y(this,2)};
var qPc=function(a){_.J.call(this,a)};_.K(qPc,_.J);_.g=qPc.prototype;_.g.Bb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.w(this,1,a)};_.g.vr=function(){return _.B(this,_.ZL,2)};_.g.ak=function(){return _.y(this,3)};_.g.Mh=function(){return _.y(this,4)};
var TM=function(a){_.J.call(this,a)};_.K(TM,_.J);TM.prototype.Bb=function(){return _.y(this,1)};TM.prototype.Dc=function(a){return _.w(this,1,a)};TM.prototype.ak=function(){return _.y(this,3)};
var rPc=function(a){_.J.call(this,a)};_.K(rPc,_.J);_.g=rPc.prototype;_.g.Bb=function(){return _.y(this,1)};_.g.Dc=function(a){return _.w(this,1,a)};_.g.ak=function(){return _.y(this,2)};_.g.kMa=function(){return _.B(this,_.op,3)};_.g.getKey=function(){return _.B(this,_.Xb,4)};_.g.et=function(){return _.Cj(this,4)};
var sPc=function(a){_.J.call(this,a)};_.K(sPc,_.J);sPc.prototype.getKey=function(){return _.y(this,1)};sPc.prototype.et=function(){return _.Cj(this,1)};var uPc=function(a){_.J.call(this,a,-1,tPc)};_.K(uPc,_.J);var vPc=[2,4,6,10],wPc=[3,5,7,8,9],tPc=[1];
var xPc=function(a){_.J.call(this,a)};_.K(xPc,_.J);
var UM=function(a){_.J.call(this,a,-1,yPc)};_.K(UM,_.J);UM.prototype.Bb=function(){return _.y(this,1)};UM.prototype.Dc=function(a){return _.w(this,1,a)};UM.prototype.O=function(){return _.Oj(this,TL,2)};var zPc=function(a,b){return _.Kj(a,2,b)};UM.prototype.ak=function(){return _.y(this,3)};var yPc=[2];
var APc=function(a){_.J.call(this,a)};_.K(APc,_.J);APc.prototype.Bb=function(){return _.y(this,1)};APc.prototype.Dc=function(a){return _.w(this,1,a)};APc.prototype.O=function(){return _.B(this,TL,2)};APc.prototype.ak=function(){return _.y(this,3)};
var BPc=function(a){_.J.call(this,a)};_.K(BPc,_.J);BPc.prototype.wy=function(){return _.y(this,2)};
var DPc=function(a){_.J.call(this,a,-1,CPc)};_.K(DPc,_.J);DPc.prototype.Bb=function(){return _.y(this,1)};DPc.prototype.Dc=function(a){return _.w(this,1,a)};DPc.prototype.Oi=function(){return _.Oj(this,_.qEa,2)};DPc.prototype.zq=function(a,b){return _.Xj(this,2,a,_.qEa,b)};var CPc=[2];
var FPc=function(a){_.J.call(this,a,-1,EPc)};_.K(FPc,_.J);FPc.prototype.Bb=function(){return _.y(this,1)};FPc.prototype.Dc=function(a){return _.w(this,1,a)};FPc.prototype.wl=function(){return _.Oj(this,RM,2)};var EPc=[2];
_.HPc=function(a){_.J.call(this,a,-1,GPc)};_.K(_.HPc,_.J);var GPc=[1];
var VM=function(a){_.J.call(this,a,-1,IPc)},LPc,MPc;_.K(VM,_.J);VM.prototype.Yn=function(){return _.y(this,1)};var JPc=function(a,b){return _.w(a,1,b)},KPc=function(a,b){return _.w(a,2,b)};VM.prototype.Bb=function(){return _.y(this,3)};VM.prototype.Dc=function(a){return _.w(this,3,a)};LPc=function(a,b){return _.w(a,4,b)};MPc=function(a,b){return _.Kj(a,5,b)};_.NPc=function(a){_.J.call(this,a)};_.K(_.NPc,_.J);_.NPc.prototype.$b=function(){return _.y(this,2)};_.PPc=function(a){_.J.call(this,a,-1,OPc)};
_.K(_.PPc,_.J);var QPc=function(a,b){return _.w(a,1,b)},RPc=function(a,b){return _.w(a,2,b)},SPc=function(a,b){return _.Kj(a,3,b)},IPc=[5],OPc=[3];
_.WM=function(a){_.J.call(this,a,-1,TPc)};_.K(_.WM,_.J);_.WM.prototype.zV=function(){return _.Oj(this,_.DG,2)};_.WM.prototype.se=function(){return _.B(this,_.Cf,3)};var TPc=[1,2];
_.XM=function(a){_.J.call(this,a)};_.K(_.XM,_.J);_.XM.prototype.Bb=function(){return _.y(this,1)};_.XM.prototype.Dc=function(a){return _.w(this,1,a)};_.XM.prototype.wf=function(){return _.B(this,_.qC,2)};_.UPc=function(a,b){return _.I(a,2,b)};_.XM.prototype.ak=function(){return _.y(this,3)};
var VPc=function(a){_.J.call(this,a)};_.K(VPc,_.J);VPc.prototype.Bb=function(){return _.y(this,1)};VPc.prototype.Dc=function(a){return _.w(this,1,a)};
var XPc=function(a){_.J.call(this,a,-1,WPc)};_.K(XPc,_.J);XPc.prototype.Bb=function(){return _.y(this,1)};XPc.prototype.Dc=function(a){return _.w(this,1,a)};XPc.prototype.wl=function(){return _.Oj(this,SM,2)};var WPc=[2];
_.YM=function(a){_.J.call(this,a)};_.K(_.YM,_.J);_.YM.prototype.oY=function(a){_.I(this,1,a)};_.YM.prototype.kv=function(){return _.B(this,_.Ky,2)};_.YM.prototype.zO=function(a){_.I(this,2,a)};
_.YPc=function(a){_.J.call(this,a)};_.K(_.YPc,_.J);_.YPc.prototype.Rh=function(){return _.B(this,ROc,2)};_.YPc.prototype.O=function(a){_.Wj(this,5,_.ZPc,a)};_.ZPc=[5,6];
var $Pc;_.aQc=function(a){_.J.call(this,a,-1,$Pc)};_.K(_.aQc,_.J);_.aQc.prototype.O=function(a){_.Wj(this,6,_.ZM,a)};$Pc=[3,4,5];_.ZM=[6,7];
var bQc=function(a){_.J.call(this,a)};_.K(bQc,_.J);bQc.prototype.getType=function(){return _.y(this,1)};var cQc=function(a){var b=new bQc;return _.w(b,1,a)};bQc.prototype.xy=function(){return _.y(this,3)};bQc.prototype.az=function(a){return _.w(this,3,a)};bQc.prototype.Pi=function(){return _.y(this,4)};bQc.prototype.setPosition=function(a){return _.w(this,4,a)};
var eQc=function(a){_.J.call(this,a,-1,dQc)};_.K(eQc,_.J);eQc.prototype.Bb=function(){return _.y(this,1)};eQc.prototype.Dc=function(a){return _.w(this,1,a)};eQc.prototype.ak=function(){return _.y(this,3)};var dQc=[2];
_.fQc=function(a){_.J.call(this,a)};_.K(_.fQc,_.J);_.fQc.prototype.getId=function(){return _.y(this,1)};_.fQc.prototype.Ob=function(a){return _.w(this,1,a)};_.fQc.prototype.se=function(){return _.B(this,_.Cf,4)};
var hQc=function(a){_.J.call(this,a,-1,gQc)};_.K(hQc,_.J);hQc.prototype.Bb=function(){return _.y(this,1)};hQc.prototype.Dc=function(a){return _.w(this,1,a)};hQc.prototype.ak=function(){return _.y(this,3)};var gQc=[2];
_.$M=function(a){_.J.call(this,a)};_.K(_.$M,_.J);_.$M.prototype.getType=function(){return _.y(this,1)};var iQc=function(a){var b=new _.$M;return _.w(b,1,a)},jQc=function(a,b){return _.I(a,2,b)};_.$M.prototype.xy=function(){return _.y(this,3)};_.$M.prototype.az=function(a){return _.w(this,3,a)};_.$M.prototype.Pi=function(){return _.y(this,4)};_.$M.prototype.setPosition=function(a){return _.w(this,4,a)};
_.MCc=function(a){_.J.call(this,a)};_.K(_.MCc,_.J);_.g=_.MCc.prototype;_.g.getItem=function(){return _.B(this,_.hl,1)};_.g.setItem=function(a){return _.I(this,1,a)};_.g.getError=function(){return _.B(this,_.Cc,2)};_.g.He=function(a){return _.I(this,2,a)};_.g.bo=function(){return _.Cj(this,2)};_.g.Vs=function(){return _.y(this,4)};
var lQc=function(a){_.J.call(this,a,-1,kQc)};_.K(lQc,_.J);var kQc=[2,4];
var nQc=function(a){_.J.call(this,a,-1,mQc)};_.K(nQc,_.J);var mQc=[1];
var pQc=function(a){_.J.call(this,a,-1,oQc)};_.K(pQc,_.J);pQc.prototype.Bb=function(){return _.y(this,1)};pQc.prototype.Dc=function(a){return _.w(this,1,a)};pQc.prototype.ak=function(){return _.y(this,3)};var oQc=[2];
var rQc=function(a){_.J.call(this,a,-1,qQc)};_.K(rQc,_.J);rQc.prototype.Bb=function(){return _.y(this,1)};rQc.prototype.Dc=function(a){return _.w(this,1,a)};rQc.prototype.ak=function(){return _.y(this,3)};var qQc=[2];
var sQc=function(a){_.J.call(this,a)};_.K(sQc,_.J);
var uQc=function(a){_.J.call(this,a,-1,tQc)};_.K(uQc,_.J);uQc.prototype.O=function(){return _.y(this,2)};var vQc=function(a,b){_.w(a,2,b)},tQc=[1];
var xQc=function(a){_.J.call(this,a,-1,wQc)};_.K(xQc,_.J);xQc.prototype.wy=function(){return _.D(this,2)};var wQc=[1];
var yQc=function(a){_.ti.call(this,"Kb");this.dataType=a};_.K(yQc,_.ti);
var zQc=function(a,b){_.ti.call(this,"Lb");this.bPa=a;this.Tta=b};_.K(zQc,_.ti);
var AQc=function(){};_.g=AQc.prototype;_.g.tM=function(a,b){return bPc(aPc(1),a).setPosition(b)};_.g.sM=function(a,b){return bPc(aPc(2).setPosition(b),a)};_.g.yE=function(a,b,c){return bPc(aPc(3).az(b).setPosition(c),a)};_.g.kQ=function(a,b){return bPc(aPc(4),a).setPosition(b)};_.g.RM=function(a){return _.B(a,XL,2)};
var BQc=function(){_.My.call(this,new AQc,function(a){return a&&a.getName()})};_.K(BQc,_.My);
var aN=function(a,b,c){c=void 0===c?50:c;_.Di.call(this);var d=this;this.W=a;this.connectionState=b;this.limit=c;this.active=!1;this.status=6;this.va=mBc(new _.rL,[1]);this.ha=this.H=!1;this.Sc=new _.Ye(this);this.Ma(this.Sc);_.Qe(this,function(){d.active=!1;d.Sc.removeAll()})};_.K(aN,_.Di);_.g=aN.prototype;_.g.ri=function(){return String(_.Ca(this))};_.g.Re=function(){return this.W.Re()||this.connectionState.Re()};
_.g.activate=function(){var a=this;this.active||(this.active=!0,this.Sc.listen(this.W,"Bb",function(){return void a.Vt()}),this.Sc.listen(this.connectionState,[].concat(_.Ad(Object.values(_.rC))),function(){return void a.Vt()}),this.W.Re()?this.Sc.$c(this.W,"Bb",function(b){b.Re()||(a.JG(),a.dispatchEvent(new _.ti(_.tq)))}):this.connectionState.Re()?this.Sc.$c(this.connectionState,[_.rC.AL,_.rC.gU],function(){a.JG();a.dispatchEvent(new _.ti(_.tq))}):(this.JG(),this.dispatchEvent(new _.ti(_.tq))))};
_.g.JG=function(){};_.g.Dr=function(a){var b=this;if(this.Uj()){var c=this.limit;this.limit+=a||50;this.$b()>c&&this.Vt();this.W.Re()?this.Sc.$c(this.W,"Bb",function(d){d.Re()||b.QO()}):this.QO()}};_.g.GL=function(){this.Re()&&!this.H?this.status=2:this.status=this.H?1:6};_.g.Bb=function(){return this.status};_.g.hq=function(){return this.va};_.g.handleError=function(a){this.dispatchEvent(new _.Ec(a))};_.g.fW=function(){this.dispatchEvent(new _.ti(_.WEa))};_.g.Uj=function(){return!this.H||this.ha};
_.g.refresh=function(){this.H=this.active=!1;this.status=6;this.Sc.removeAll();this.activate()};_.g.QO=function(){};
var CQc=function(a,b,c,d,e){aN.call(this,a,b,e.Di()||void 0);this.ka=c;this.request=e;this.V=[];this.data=[];this.changed=!1;this.O=new BQc;this.ma=d};_.K(CQc,aN);_.g=CQc.prototype;_.g.JG=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.ti(_.Oc,this))};_.g.getData=function(){return sJc(new mM,this.data).Dc(this.status)};_.g.xr=function(){var a=this.O.qy(this.V,this.data);this.V=this.data;var b=(new dPc).Dc(this.status);return _.Kj(b,2,a)};
_.g.QO=function(){this.ma(this.ri(),this.limit)};_.g.Vt=function(){if(this.active){var a=this.status;this.GL();if(this.changed||a!==this.status)this.changed=!1,DQc(this)}};_.g.$b=function(){return this.data.length};_.g.ud=function(){return this.request};_.g.update=function(a){var b=a.response;if(this.status!==b.Bb()||IL(this.O,this.data,b.O()))this.H=!0,this.status=b.Bb(),this.data=b.O(),this.ha=a.H,DQc(this)};
var DQc=function(a){a.log("Livelist "+a.ri()+" returning "+a.data.length+" for "+(a.request.Ac()+". Status: ")+(_.Za(jGc)[a.Bb()]+"."));a.dispatchEvent(new _.ti(_.Oc,a))};CQc.prototype.CB=function(a){this.dispatchEvent(new _.Ec(new _.Dc("Error occurred running a category metadata query after "+a.H+" retries.",a.error)))};CQc.prototype.log=function(a){this.ka.info("drive.ds.sync.CategoryMetadataLiveList",a)};
var EQc=function(a,b,c,d,e,f,h){_.OL.call(this,a,b,c,e,f,d);this.dg=h;this.W="drive.ds.sync.ViewCacheLiveList";this.ta=null;this.ma=void 0};_.K(EQc,_.OL);EQc.prototype.getData=function(){this.H=this.items;var a=HEc((new _.xB).Dc(this.Bb()).Tw(this.items),this.Uj());a=_.I(a,7,this.ta).lP(this.suggestionSessionId).Ji(this.Ie);return _.Ij(a,18,this.ma)};
EQc.prototype.update=function(a){if(mGc(this,a)&&(nGc(this,a),this.ta=a.R5(),this.suggestionSessionId=a.ag(),this.ma=a.dka(),lGc(this),this.suggestionSessionId&&IIc(this.V)&&(a=this.dg.H(106027)))){var b=_.B(_.RK(a),wFc,20);if(!b){b=new wFc;var c=_.RK(a);_.I(c,20,b)}_.w(b,1,this.suggestionSessionId);a.zj()}};
var FQc=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?_.Zj(d,f)||(d=lPc(kPc(4),f),c[e]=d):(d=lPc(kPc(2),d),c[e]=d)});_.La(b,function(d,e){a[e]||(d=lPc(kPc(1),d),c[e]=d)});return c},GQc=function(a,b){return _.Pa(a)!==_.Pa(b)||!_.Ta(FQc(a,b))};
var HQc=function(a,b){_.Di.call(this);this.request=b;this.active=!1;this.status=6;this.H={};this.data={}};_.K(HQc,_.Di);_.g=HQc.prototype;_.g.activate=function(){this.active||(this.active=!0,_.Ta(this.data)&&6===this.status||this.dispatchEvent(new _.ti(_.Oc,this)))};_.g.Bb=function(){return this.status};_.g.hq=function(){return new _.rL};_.g.getData=function(){this.H=this.data;var a=(new _.VK).Dc(this.status);_.La(this.data,function(b,c){a.ET().set(c,b||new _.HG)});return a};
_.g.xr=function(){var a=FQc(this.H,this.data);this.H=this.data;var b=(new VPc).Dc(this.status);_.La(a,function(c,d){_.Hj(b,2,void 0,SM).set(d,c)});return b};_.g.YS=function(){throw Error("cg");};_.g.ri=function(){return String(_.Ca(this))};_.g.ud=function(){return this.request};_.g.update=function(a){var b={};a.ET().forEach(function(c,d){c||(c=lLc(d));b[d]=c});if(this.status!==a.Bb()||GQc(this.H,b))this.status=a.Bb(),this.data=b,this.active&&this.dispatchEvent(new _.ti(_.Oc,this))};
_.g.CB=function(a){this.dispatchEvent(new _.Ec(new _.Dc("Error occurred running a Workspace find by id after "+a.H+" retries.",a.error)))};_.g.fW=function(){this.dispatchEvent(new _.ti(_.WEa))};
var IQc=function(a,b,c,d,e,f){_.OL.call(this,a,b,c,d,e,f);this.ma=[];this.W="drive.ds.sync.PeoplePredictLiveList"};_.K(IQc,_.OL);IQc.prototype.getData=function(){this.H=this.items;var a=(new _.UK).Dc(this.Bb()).Tw(this.items);var b=this.Uj();a=_.w(a,4,b);return iGc(a,this.ma).lP(this.suggestionSessionId).Ji(this.Ie)};IQc.prototype.update=function(a){mGc(this,a)&&(nGc(this,a),this.ma=_.Oj(a,_.Rk,6),this.suggestionSessionId=a.ag(),lGc(this))};
var JQc=function(){};_.g=JQc.prototype;_.g.tM=function(a,b){return jPc(iPc(1),a).setPosition(b)};_.g.sM=function(a,b){return jPc(iPc(2).setPosition(b),a)};_.g.yE=function(a,b,c){return jPc(iPc(3).az(b).setPosition(c),a)};_.g.kQ=function(a,b){return jPc(iPc(4),a).setPosition(b)};_.g.RM=function(a){return a.nn()};
var KQc=function(){_.My.call(this,new JQc,function(a){return a&&a.iq()})};_.K(KQc,_.My);
var LQc=function(a,b,c){aN.call(this,a.Lj(),a.Bk(),b.Di()||10);this.request=b;this.O=[];this.data=[];this.changed=!1;this.V=new KQc;this.suggestionSessionId=null;this.ka=c};_.K(LQc,aN);_.g=LQc.prototype;_.g.JG=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.ti(_.Oc,this))};_.g.getData=function(){this.O=this.data;return NHc(MHc((new aM).Dc(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.xr=function(){var a=this.V.qy(this.O,this.data);this.O=this.data;var b=(new FPc).Dc(this.status);return _.Kj(b,2,a)};_.g.QO=function(){};_.g.Vt=function(){var a=this.status;this.GL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ti(_.Oc,this))};_.g.$b=function(){return this.data.length};_.g.ud=function(){return this.request};
_.g.update=function(a){if(this.status!==a.Bb()||IL(this.V,this.data,a.wl())){this.changed=this.H=!0;this.data=a.wl();if(a=a.ag())this.suggestionSessionId=a;this.Vt()}};_.g.refresh=function(){this.ka()};_.g.CB=function(a){this.dispatchEvent(new _.Ec(new _.Dc("Error occurred running a Suggested Workspace query after "+(a.H+" retries."),a.error)))};
var MQc=function(a,b,c){_.Di.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=mBc(new _.rL,[1]);this.O=!0;this.limit=a.Di();_.Qe(this,function(){d.H=!1;d.V=[]})};_.K(MQc,_.Di);_.g=MQc.prototype;_.g.ri=function(){return String(_.Ca(this))};_.g.activate=function(){this.H=!0;_.oa(this.items)&&6===this.status&&this.O||this.dispatchEvent(new _.ti(_.Oc,this))};_.g.ud=function(){return this.request};_.g.Bb=function(){return this.status};
_.g.hq=function(){return this.W};_.g.Uj=function(){return this.O};_.g.getData=function(){this.V=this.items;return HEc((new _.xB).Dc(this.status).Tw(this.items),this.O)};_.g.xr=function(){var a=_.h8a().qy(this.V,this.items),b=(new _.xI).Dc(this.status);a=_.Kj(b,2,a);this.V=this.items;return a};_.g.Dr=function(a){this.H&&(this.limit+=a||20,this.ka.CF(this.ri(),this.limit))};
_.g.update=function(a){if(this.status!==a.Bb()||IL(_.h8a(),this.items,a.wd()))this.items=a.wd(),this.status=a.Bb(),_.ZI(this.ha)&&(this.W=nBc(this.status,this.items)),this.O=a.tl(),this.H&&this.dispatchEvent(new _.ti(_.Oc,this))};_.g.CB=function(a){this.dispatchEvent(new _.Ec(new _.Dc("Error occurred running a Team Drive query after "+a.H+" retries.",a.error)))};_.g.fW=function(){this.dispatchEvent(new _.ti(_.WEa))};_.g.yu=function(){throw Error("dg");};_.g.refresh=function(){};
var NQc=function(a,b,c){_.Di.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=mBc(new _.rL,[1]);this.context.Qf().info("drive.ds.sync.TeamDriveLiveMap","Creating TD find by ids live map: "+this.request.mn().join(", "));_.Qe(this,function(){d.V=!1;d.O=[]})};_.K(NQc,_.Di);_.g=NQc.prototype;_.g.ri=function(){return String(_.Ca(this))};
_.g.activate=function(){this.V=!0;(0<Object.values(this.H).length||6!==this.status)&&this.dispatchEvent(new _.ti(_.Oc,this))};_.g.ud=function(){return this.request};_.g.getData=function(){this.O=this.H;var a=new _.TK;a.Dc(this.status);a.map=this.H;return a};_.g.xr=function(){var a=KBc(this.O,this.H),b=new sGc;b.Dc(this.status);b.map=a;this.O=this.H;return b};_.g.Bb=function(){return this.status};_.g.hq=function(){return this.W};
_.g.YS=function(a){var b=this.request;this.request=a;this.ha.RY(this.ri(),b,a)};_.g.update=function(a){if(this.status!==a.Bb()||LBc(this.H,a.fq()))this.status=a.Bb(),this.H=a.fq(),_.ZI(this.context.Nc)&&(this.W=nBc(this.status,Object.values(this.H))),this.V&&this.dispatchEvent(new _.ti(_.Oc,this))};_.g.CB=function(a){this.dispatchEvent(new _.Ec(new _.Dc("Error occurred running a team drive find-by-IDs query after "+a.H+" retries.",a.error)))};_.g.fW=function(){this.dispatchEvent(new _.ti(_.WEa))};
var OQc=function(){};_.g=OQc.prototype;_.g.tM=function(a,b){return lPc(kPc(1),a).setPosition(b)};_.g.sM=function(a,b){return lPc(kPc(2).setPosition(b),a)};_.g.yE=function(a,b,c){return lPc(kPc(3).az(b).setPosition(c),a)};_.g.kQ=function(a,b){return lPc(kPc(4),a).setPosition(b)};_.g.RM=function(a){return a.nn()};
var PQc=function(){_.My.call(this,new OQc,function(a){return a&&a.getId()})};_.K(PQc,_.My);
var QQc=function(a,b,c){aN.call(this,a.Lj(),a.Bk(),b.Di()||10);this.request=b;this.ka=c;this.O=[];this.data=[];this.changed=!1;this.V=new PQc};_.K(QQc,aN);_.g=QQc.prototype;_.g.JG=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.ti(_.Oc,this))};_.g.getData=function(){this.O=this.data;return DJc((new oM).Dc(this.status),this.data.slice(0))};_.g.xr=function(){var a=this.V.qy(this.O,this.data);this.O=this.data;var b=(new XPc).Dc(this.status);return _.Kj(b,2,a)};
_.g.QO=function(){this.ka.CF(this.ri(),this.limit)};_.g.Vt=function(){var a=this.status;this.GL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ti(_.Oc,this))};_.g.$b=function(){return this.data.length};_.g.ud=function(){return this.request};_.g.update=function(a){var b=a.response;if(this.status!==b.Bb()||IL(this.V,this.data,b.wl()))this.H=!0,this.status=b.Bb(),this.data=b.wl(),this.ha=a.H,this.dispatchEvent(new _.ti(_.Oc,this))};
_.g.CB=function(a){this.dispatchEvent(new _.Ec(new _.Dc("Error occurred running a Workspace query after "+a.H+" retries.",a.error)))};
var RQc=function(a,b){this.context=a;this.ha=b;this.H={};this.ka={};this.ma={};this.V=null;this.W=a.Mf;this.O=this.context.ofa;this.ta=this.context.V5};_.g=RQc.prototype;_.g.Uwa=function(a){var b=this,c=new EQc(this.context.wm,this.context.XP,this.context.Qf(),this.context.Nc,function(d,e){b.CF(d,e)},a,this.context.rk());this.ii(c);_.Qe(c,function(){b.jk(c)});return c};
_.g.Xwa=function(a){var b=this,c=new IQc(this.context.wm,this.context.XP,this.context.Qf(),function(d,e){b.CF(d,e)},a,this.context.Nc);this.ii(c);_.Qe(c,function(){b.jk(c)});return c};_.g.Rwa=function(a){var b=this,c=new QL(this.context.Nc,this.context.wm,this.context.Qf(),this.context.JZ,this.RY.bind(this),a);this.ii(c);_.Qe(c,function(){b.jk(c)});return c};_.g.$wa=function(a){var b=this,c=new MQc(a,this,this.context.Nc);this.ii(c);_.Qe(c,function(){b.jk(c)});return c};
_.g.axa=function(a){var b=this,c=new NQc(this.context,this,a);this.ii(c);_.Qe(c,function(){b.jk(c)});return c};_.g.dxa=function(a){var b=this,c=new QQc(this.context,a,this);this.ii(c);_.Qe(c,function(){b.jk(c)});return c};_.g.Ywa=function(a){var b=this,c=new LQc(this.context,a,function(){if(a instanceof _.kA){var d=SQc(b.context);dLc(d,d.getKey(a)).refresh()}});this.ii(c);_.Qe(c,function(){b.jk(c)});return c};
_.g.exa=function(a){var b=this,c=new HQc(this.context,a);this.ii(c);_.Qe(c,function(){b.jk(c)});return c};_.g.Nwa=function(a){var b=this,c=new CQc(this.context.Lj(),this.context.Bk(),this.context.Qf(),function(d,e){b.CF(d,e)},a);this.ii(c);_.Qe(c,function(){b.jk(c)});return c};
_.g.ii=function(a){var b=a.ri();this.H[b]=a;this.ha.create(b,a.ud());if(a.ud()instanceof _.mA)a=this.O.ii(b,a.ud());else if(a.ud()instanceof _.JG)a=bLc(this.O,b,a.ud());else if(a.ud()instanceof _.kA)a=SQc(this.context).ii(b,a.ud());else if(a.ud()instanceof _.SG)a=this.ta.ii(b,a.ud());else{var c=a.ud(),d=PL(this.context.wm,c,2);this.log("Registering LiveList "+a.ri()+" "+d);a=this.W.ii(b,c)}"boolean"===typeof a&&lJc(this.ha,b,a)};
_.g.jk=function(a){if(a.ud()instanceof _.mA)this.O.jk(a.ri(),a.ud());else if(a.ud()instanceof _.JG)cLc(this.O,a.ri(),a.ud());else if(a.ud()instanceof _.kA)SQc(this.context).jk(a.ri(),a.ud());else if(a.ud()instanceof _.SG)this.ta.jk(a.ri(),a.ud());else{var b=a.ud(),c=PL(this.context.wm,b,2);this.log("Unregistering LiveList "+a.ri()+" "+c);this.W.jk(a.ri(),b)}kM(this.ha,a.ri(),4);delete this.H[a.ri()]};_.g.RY=function(a,b,c){this.W.jk(a,b);this.W.ii(a,c)};
_.g.CF=function(a,b){var c=TQc(this,a).ud();c.ui(b);c instanceof _.mA?this.O.ii(a,c):c instanceof _.JG?bLc(this.O,a,c):c instanceof _.SG?this.ta.ii(a,c):this.W.ii(a,c)};_.g.hO=function(a,b){var c=this.H[a]&&this.H[a].ud();c&&(c instanceof _.nf?tBc(c.O(),b.wd().filter(function(d){return!eM(d)})):c instanceof _.zA&&tBc(c.O(),Object.values(b.fq()).filter(function(d){return d&&!eM(d)})));this.ka[a]=b;this.V||(this.V=_.Fi(this.S8,50,this))};
_.g.GX=function(a,b){this.ma[a]=b;this.V||(this.V=_.Fi(this.S8,50,this))};_.g.uA=function(a){(a=this.H[a])&&a.fW()};_.g.S8=function(){_.Gi(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&&(oJc(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])kM(this.ha,a,3),d.CB(c)};
_.g.ska=function(a){return TQc(this,a).ud()};var TQc=function(a,b){if(!a.H[b])throw Error("eg`"+b);return a.H[b]};RQc.prototype.log=function(a,b){this.context.Qf().log("drive.ds.sync.cache.LocalLiveRequestManager",a,void 0===b?"info":b)};
var UQc=function(){},VQc=function(a){this.H=a},NCc=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.rA=f;this.H=h;this.W=k};
var bN=function(a,b){_.Di.call(this);this.O=a;this.request=b;this.ie=_.ai();this.complete=!1;this.H=""};_.K(bN,_.Di);bN.prototype.start=function(){var a=this;this.O.then(function(b){return b.Pe(a.request)}).then(this.W.bind(this)).Cg(this.handleError.bind(this));return this.ie.promise};bN.prototype.W=function(a){this.H=a.H;this.dispatchEvent(new zQc(0,this.H));WQc(this)};
var WQc=function(a){_.n.setTimeout(function(){a.O.then(function(b){return b.Pe(new _.Kuc(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 lQc;c=_.Ij(c,2,b.V);c=_.w(c,3,a.H);c=_.w(c,5,b.ka);c=_.w(c,6,b.ha);c=_.w(c,7,b.rA);c=_.w(c,8,b.H);b=_.Kj(c,4,b.W);a.ie.resolve(b)}else b=_.fJ(_.nq(_.mq(new _.Cc,"Export failed for request "+a.H+": "+b.status),JSON.stringify(b)),8),a.handleError(b);a.dispose()}else a.dispatchEvent(new zQc(b.O,
a.H)),WQc(a)}).Cg(function(b){a.handleError(b)})},5E3)};bN.prototype.cancel=function(){var a=this;this.O.then(function(b){return b.Pe(new _.Juc(a.H))}).then(this.V.bind(this)).Cg(this.handleError.bind(this))};bN.prototype.V=function(){if(!this.complete){var a=new lQc;a=_.w(a,3,this.H);a=_.w(a,1,!0);this.ie.resolve(a);this.complete=!0;this.dispose()}};bN.prototype.handleError=function(a){this.complete=!0;this.ie.reject(_.sJ(a));this.dispose()};
var XQc=function(){_.ti.call(this,"VbxEwf")};_.K(XQc,_.ti);
var YQc=function(a,b){this.context=a;this.H=null;this.qc=b||null};_.g=YQc.prototype;_.g.La=function(){return _.B(this.context.Nc,_.pJ,58)};_.g.getContext=function(){return this.context};_.g.Pz=function(){return this.context.YA.Pz(this.H)};_.g.Qf=function(){return this.context.Qf()};_.g.HM=function(a){return _.ii(this.context.Mf.um.H(a))};_.g.XQ=function(){return _.ii(this.context.YA.XQ())};
_.g.N4=function(a,b,c){var d=new _.di;if(_.dk(a,_.$I,3,_.aJ)||_.dk(a,_.lK,4,_.aJ)||_.dk(a,_.cL,5,_.aJ)||_.dk(a,_.iK,6,_.aJ)||_.dk(a,_.HJ,7,_.aJ)||_.dk(a,_.AJ,8,_.aJ)||_.dk(a,_.EJ,9,_.aJ)||_.dk(a,_.iJ,10,_.aJ)){var e=iJc(a);this.context.Sm().then(function(f){return f.Pe(e,{p6a:b,q6a:c})}).then(this.v$a.bind(this,d),d.Jd,d);return d}throw Error("fg");};
_.g.v$a=function(a,b){var c=[],d="";if(b instanceof _.dL){c=b.jd().wd();var e=_.y(b,2);d=b.Yn()}else if(b instanceof _.pK)b.getItem()&&c.push(b.getItem()),e=b.PM();else throw Error("gg");a.callback({items:c,lia:e,pageToken:d})};_.g.Epa=function(){var a=this.context.Nc,b=a.hg();a="email:"+_.KI(a).getEmail().replace(/@.*$/,"");_.w(b,13,a)};_.g.Lha=function(){this.context.Is.dS();var a=this.context.Nc;WMc(_.DK(_.KI(a)),_.EK(a),this.context.Qf()).Cg(function(){})};
_.g.d9=function(){return _.Rtc[_.Fj(this.context.Nc.hg(),8,0)]};_.g.fda=function(){this.context.NF.H=new LLc(_.Vg().substring(0,8))};_.g.IS=function(){var a=this.context.NF.fN(),b=null;a&&(b=NLc(this.context.NF),b={traceId:a,spanRecs:b});a=this.context.NF;a.H=null;a.yY=[];return _.ii(b)};_.g.fN=function(){return _.ii(this.context.NF.fN())};
_.g.getState=function(a){var b=this.context.Rj,c=b.H.bind(b);b={};b.b=this.context.Nc.Wi();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.Mf.um.Ed();c=this.context.Mf.It;var d=c.H;d&&(b.cs_sutd=d.U7,b.cs_ss=d.Ed());b.cs_ch=bKc(c).length;b.cs_td=c.WV().length;(c=this.context.W5)&&(b.t_cps=c.sWa().getStats().join(","));b.t_id=ZQc(this.context);
var e=[];$Qc(this.context.WQ()).forEach(function(f,h){e.push(h+":"+f.join(";"))});b.t_ct=e.join(",");b.n_a=this.context.mz?this.context.Bk().isConnected():this.context.uI.IB();b.n_o=this.context.mz?this.context.Bk().Re():this.context.Lj().Re();b.n_csm=!!this.context.mz;a&&(b.csw_cc=_.Pa(a.channels),b.csw_ac=a.O,b.csw_mcc=a.H);return _.ii(JSON.stringify(b))};_.g.bpa=function(){this.qc&&(this.qc.dispatchEvent(new XQc),this.qc.Eu())};
_.g.Ol=function(a){var b=this.context.mz;b&&a!==b.V&&(b.V=a,b.reset(),a?b.state.update(3):_.fyc(b))};
var cRc=function(a,b){this.context=a;this.Lg=b;this.H=_.wuc(_.LK(this.Lg),aRc);this.O=_.wuc(_.LK(this.Lg),bRc)};
cRc.prototype.yl=function(a){var b=this,c=this.context.NP.wf().wf(),d=(c=c?c.getUser():null)?c.getId():null,e={};a.forEach(function(h){_.Auc(h);var k=h.getId(),l=b.context.$n();_.Vvc(h,3);_.lJ(h,5);var p=PBc(h,!0);h.getCapabilities()||_.zK(h,new _.Xk);_.P(p,2)&&((p=h.vk())&&p.length?_.w(h,46,p[0]):(_.yK(h,[l]),_.w(h,46,l)),l=h.yq(),_.w(h,12,l),l=new _.Rk,l.Ob(d),_.w(l,6,1),_.gvc(l,!0),_.Ovc(h,l),_.Nvc(h,[l]),_.S8b(h,1));e[k]=h});a=Object.keys(e);c=this.context.Mf;var f=oIc(c.um,a);_.La(f,function(h,
k){wL(h.getItem(),e[k],b.H);(b.context.Lj().Re()||b.context.Bk().Re()||3===h.getItem().rv())&&wL(h.getItem(),e[k],b.O);_.Ua(e,k)});_.La(e,function(h){_.dl(h.Rm())&&(f[h.getId()]=new dM(h))});dRc(c,Object.values(f))};
var eRc=function(a,b){var c=[];b.forEach(function(d){c.push(d.getItem())});a.yl(c)},fRc=function(a){a=a.context.Mf;var b=new _.nf;b.Ol(!0);b=qIc(a.um,b);for(var c=[],d=[],e=0;e<b.length;e++){var f=b[e].getItem();if(3===f.rv()){var h=new _.cJ;_.dJ(h,f.getId());_.mJ(h);d.push(h)}else h=new _.Tna,_.tL(h,!1),_.w(h,2,!1),_.I(f,81,h),c.push(b[e])}dRc(a,c);a.Qo(d)},aRc=[50],bRc=[12,11,10,67,68];
var gRc=function(a){this.context=a;this.H=null;this.V=!1;this.O=new cRc(a,a.Lg)};_.g=gRc.prototype;_.g.jY=function(a){this.H=a;this.V=!1;if(a){if(this.H){a=this.x$a.bind(this);var b=this.w$a.bind(this);this.log("Querying all offline items.");this.H.oV().lg(a,b);this.V||(this.H.v_((0,_.N)(this.Mwb,this)),this.V=!0)}}else fRc(this.O)};_.g.x$a=function(a){this.log("Processing all offline item(s): "+a.length);this.O.yl(a);qM(this.context.Rj,"GZTDpc")};_.g.w$a=function(){this.log("Error fetching offline items.")};
_.g.Mwb=function(a){this.log("Handling offline change(s): "+a.length);eRc(this.O,a)};_.g.log=function(a){this.context.Qf().info("drive.ds.sync.offline.LocalDataService",a)};
var cN=function(a){_.Di.call(this);this.context=a;this.Ba="drive.ds.sync.BaseItemService";this.Sc=new _.Ye(this);this.ma=null;this.Ta=this.va=!1;var b=new gRc(a);this.context.ha=b;this.Fa=new YQc(a,this);yCc(this.Fa);(b=_.B(a.Nc,_.pJ,58))&&_.Q(b,1,!1);this.Ma(this.Sc);this.O=this.context.Rj;this.W=a.lfa;this.V=new RQc(a,this.W);a=this.context;b=this.V;a.W=b;a.O.resolve(b);this.XRa()};_.K(cN,_.Di);_.g=cN.prototype;_.g.XRa=function(){};
_.g.initialize=function(){var a=this;if(!this.ma){this.ma=_.ai();var b=this.context.rk().H(106E3);this.ma.promise.then(function(){b&&b.zj()},function(){_.aL(a.context.rk(),181008852)});var c=_.FK(this.context.Nc)?"(coldstart) ":"";this.context.Qf().info(this.Ba,"Initializing "+c+" with client build: "+this.context.Nc.Wi());this.Sc.listen(this.context,_.Nc,this.qub);this.Sc.listen(this.context.uI,["pb","qb"],function(d){return void a.dispatchEvent(d)});this.Sc.listen(this.context.Bk(),[].concat(_.Ad(Object.values(_.rC))),
function(d){return void a.dispatchEvent(d)});this.$a();this.O.start();qM(this.O,"NSockf")}return this.ma.promise};_.g.UWa=function(){this.context.Qf().info(this.Ba,"Ready to process requests.");this.va||(this.va=!0,this.ma.resolve())};_.g.qub=function(a){var b=a.error,c=b.Sg;c&&3===c.getType()&&!this.va?(this.va=!0,this.ma.reject(b)):this.dispatchEvent(a)};_.g.FY=function(){throw dN("teamDriveQuery");};_.g.nda=function(){throw dN("teamDriveFindByIds");};
_.g.wpa=function(){throw dN("teamDriveMovePreflight");};_.g.PFa=function(){throw dN("peoplePredictQuery");};_.g.query=function(a){GIc(this.context.wm,a,JFc(this.context.Lg));this.gF();var b=a.clone();b=this.V.Uwa(b);this.Ta||(a=a.se(),a&&121===_.y(a,1)||(this.Ta=!0,this.Sc.listen(b,_.Oc,this.lMa)));return b};_.g.lMa=function(a){a=a.currentTarget;if(1===a.Bb()){var b=this.O.H("W6J7De");this.Fa.H=b;this.Sc.Yc(a,_.Oc,this.lMa)}};_.g.Eq=function(a){this.gF();uGc(a);return this.V.Rwa(a.clone())};
_.g.Tua=function(){throw dN("activityQuery");};_.g.Eva=function(){throw dN("backupsQuery");};_.g.zGa=function(){throw dN("refreshBackups");};_.g.pV=function(){throw dN("getAndroidBackupItems");};_.g.i8=function(){throw dN("deleteBackup");};_.g.SFa=function(){throw dN("permissionQuery");};_.g.W$=function(){throw dN("insertPermission");};_.g.j8=function(){throw dN("deletePermission");};_.g.ld=function(){throw dN("mutate");};_.g.KN=function(){throw dN("mutateWorkspace");};
_.g.Cz=function(){throw dN("bulkMutate");};_.g.Qwa=function(){throw dN("createFileUploader");};_.g.kSa=function(a){return new bN(this.context.Sm(),a)};_.g.wr=function(a){if(3===a.getType())return _.ji(this.context.Sm().then(function(b){return b.Pe(a)}).then(null,_.tJ));throw dN("getApps with type "+a.getType());};_.g.vr=function(){throw dN("getApp");};_.g.Y$=function(){throw dN("installApp");};_.g.h8=function(){throw dN("deleteApp");};_.g.VS=function(){throw dN("updateApp");};
_.g.kN=function(){throw dN("getUserAccount");};_.g.HG=function(){throw dN("getUserPrefs");};_.g.UR=function(){throw dN("mutateUserPref");};_.g.ku=function(){throw dN("getRevisions");};_.g.CBa=function(){return!1};_.g.Ol=function(a){this.context.mz?a?_.gyc(this.context.mz,!0):this.context.Bk().Re()&&this.context.mz.kM(!0).then(null,function(){}):this.context.Lj().Ol(a)};_.g.$y=function(){throw dN("setOfflineOptIn");};_.g.jY=function(){throw dN("setLocalItemService");};_.g.gF=function(){};
_.g.WR=function(){this.context.WR();this.context.rk().O(106006)};_.g.u9=function(){return this.Fa};_.g.gY=function(){};_.g.IB=function(){return this.context.uI.IB()};_.g.cQ=function(){return _.Q(this.context.Nc.hg(),52,!1)?_.Yh(bJc(new aJc,0)):this.context.uI.cQ()};_.g.isConnected=function(){return 1===this.context.Bk().get()};_.g.D7=function(){var a=this.context.mz;return a?a.kM():_.Yh(_.Zxc(0))};_.g.sync=function(){throw dN("sync");};_.g.Eu=function(){return this.context.Eu()};
_.g.nba=function(){throw dN("offlineDataLoaded");};_.g.Cna=function(a){return this.context.Sm().then(function(b){return b.Pe(a)}).then(function(b){return b})};_.g.ewa=function(){throw dN("categoryMetadataQuery");};_.g.y7=function(){throw dN("changeCategoryLinks");};_.g.SO=function(){throw dN("updateCategoryMetadata");};_.g.jGa=function(){throw dN("publishedCategoriesQuery");};_.g.kGa=function(){throw dN("publishedCategoryQuery");};_.g.PKa=function(){throw dN("workspaceFindByIdsRequest");};
_.g.sqa=function(){throw dN("workspaceQueryRequest");};_.g.hJa=function(){throw dN("suggestedWorkspaceItemQueryRequest");};_.g.iJa=function(){throw dN("suggestedWorkspaceQueryRequest");};_.g.t_=function(){throw dN("addCacheHint");};_.g.Z_=function(){throw dN("createUserFeedback");};_.g.Qo=function(){throw dN("handleChanges");};var dN=function(a){return new _.Dc(a+" is unsupported",_.rJ(3))};
var XCc=function(a){cN.call(this,a);this.Ba="drive.ds.sync.AnonymousItemService";a.Cu("")};_.K(XCc,cN);XCc.prototype.$a=function(){pM(this.O,["NSockf"],this.UWa.bind(this))};
var hRc=new Set([1,2,4,5,6]),iRc=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.Ie=0};iRc.prototype.wf=function(){var a=new _.XM;a.Dc(this.status);this.H&&_.UPc(a,jRc(this));return a};
var kRc=function(a,b,c,d){d=void 0===d?!1:d;var e=hRc.has(c);if(1===a.status&&!e)return!1;a.Ie=c;var f=a.status;c=!a.H;if(_.ZI(a.O)){var h=(h=b&&b.getUser())&&uL(h);h=!(!h||!LKc(a.ka,h));a.status=h&&e||d?1:6}f=!_.Zj(a.H,b)||(_.ZI(a.O)?a.status!==f:6===a.status&&e);a.H=b.clone();_.ZI(a.O)||(a.status=e||d?1:6);c&&(qM(a.ha,"toquGd"),a.W.info("drive.ds.sync.account.InMemoryAccountCache","Account loaded from "+(e?"server":"cache")));f&&a.V.update(0);return f};iRc.prototype.Ye=function(){return this.Ie};
var jRc=function(a){return a.H?a.H.clone():null};
var lRc=function(a){_.Di.call(this);this.ha=a;this.Ie=0};_.K(lRc,_.Di);var mRc=function(a){a=a.clone();var b=function(c){return c.toLowerCase()};EHc(a,_.fe(a,4).map(b));FHc(a,_.fe(a,5).map(b));return a};_.g=lRc.prototype;_.g.wr=function(){};_.g.put=function(){};_.g.remove=function(){};_.g.YP=function(){};_.g.NG=function(){return 0!==this.Ie};_.g.Ye=function(){return this.Ie};
var nRc=new Set([1,2,4,5,6]),oRc=function(a,b,c){lRc.call(this,b);this.W=a;this.V=c;this.H={};this.O=[];this.status=6;this.qp=!1};_.K(oRc,lRc);oRc.prototype.wr=function(){var a=new lM;if(!_.Ta(this.H)){_.Ij(a,4,this.O);var b=[];_.La(this.H,function(c){b.push(c.clone())});_.Kj(a,2,b)}a.Dc(this.status);return a};oRc.prototype.put=function(a){this.H[a.getId()]=mRc(a);this.V.update(1);this.dispatchEvent(new _.ti("Mb",this))};oRc.prototype.remove=function(a){_.Ua(this.H,a)&&this.V.update(1)};
oRc.prototype.YP=function(a,b,c){c=void 0===c?!1:c;var d=!nRc.has(b);1===this.status&&d||(this.Ie=b,pRc(this,a,!d||c),d||this.V.update(1),this.qp||(this.qp=!0,this.W.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache","Apps initialized."),qM(this.ha,"nVUlO")))};
var pRc=function(a,b,c){var d=!1,e=c?1:6;d=e!==a.status;a.status=e;e=_.fe(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);_.Aqc(a.H);b=_.Oj(b,_.ZL,2);d||(d=b.length!==_.Pa(h));b.forEach(function(k){var l=mRc(k);a.H[k.getId()]=l;d||(k=h[k.getId()],d=!k||!_.Zj(l,k))});a.W.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache",(c?"Fresh":"Stale")+" apps loaded: "+b.length);d&&a.dispatchEvent(new _.ti("Mb",a))};
var eN=function(a){_.O.call(this);this.context=a;this.Ky=new Set;this.Dp=6;this.tCa=!0;this.Ie=0;this.Sc=new _.Ye(this);this.Ma(this.Sc)};_.K(eN,_.O);_.g=eN.prototype;_.g.ii=function(a){this.jRa(a);this.Ky.add(a);this.resize(!0);this.hO(a)};_.g.jRa=function(){};_.g.jk=function(a){this.Ky.delete(a);0!=this.Ky.size||this.dZa()?this.resize(!1):this.dispose()};_.g.Ye=function(){return this.Ie};_.g.Ji=function(a){this.Ie=a};_.g.aC=function(a){this.tCa=!1;this.Dp=a};_.g.DJ=function(){return this.Dp};
_.g.refresh=function(){};_.g.ek=function(){};
var rRc=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)}}qRc(a.context.Mf,d,b);d.forEach(function(k){KLc(a.context.sMa,k,b);if(k.yc()){var l=k.getCapabilities();eM(k)?l&&(_.svc(l,_.P(l,13)),_.pvc(l,!1),_.wvc(l,!1)):yL(k)?(l&&_.w(l,3,!1),_.w(k,30,!1)):l&&(_.Avc(l,!1),_.Bvc(l,!1))}k.getCapabilities()||_.zK(k,
new _.Xk)})};eN.prototype.resize=function(){};eN.prototype.ud=function(){};eN.prototype.yl=function(a,b){var c=this,d=!1;a.forEach(function(e){e=rM(e);d=c.Ju(e,!0)||d});b||(1!=this.DJ()&&(d=!0),this.aC(1));d&&this.HX()};var sRc=function(a,b){var c=!1;b.forEach(function(d){c=a.Ju(d)||c});c&&a.HX();return c};_.g=eN.prototype;_.g.update=function(a){return sRc(this,[a])};_.g.Ju=function(){};_.g.HX=function(){var a=this;this.iRa();this.Ky.forEach(function(b){a.hO(b)})};_.g.iRa=function(){};
_.g.hO=function(a){var b=tRc(this.context).ska(a);this.qYa(b)||(b=this.ek(b),tRc(this.context).hO(a,b))};_.g.GX=function(a){var b=this;this.aC(3);this.Ky.forEach(function(c){tRc(b.context).GX(c,a)})};_.g.uA=function(){var a=this;this.Ky.forEach(function(b){tRc(a.context).uA(b)});this.Ji(0==this.Ye()?1:6)};_.g.dZa=function(){return!1};_.g.qYa=function(){return!1};
var uRc=function(a){_.ti.call(this,"xa");this.id=a};_.K(uRc,_.ti);
var vRc=function(a,b,c,d){d=void 0===d?!1:d;_.Di.call(this);this.request=a;this.context=b;this.FKa=d;this.ie=null;this.items={};this.W=[];this.V=[];this.H=null;this.originalRequest=c||a;this.O=new Set};_.K(vRc,_.Di);
vRc.prototype.Zg=function(){var a=this;if(this.ie)return this.ie.promise;this.ie=_.ai();for(var b={},c=_.m(this.request.mn().entries()),d=c.next();!d.done;b={Zqa:b.Zqa,fea:b.fea,Jqa:b.Jqa},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.Jqa=e;b.Zqa=VFc(UFc(d),this.request);b.fea=void 0;this.FKa&&(b.fea={FKa:!0});this.context.Sm().then(function(f){return function(h){return h.Pe(f.Zqa,f.fea)}}(b)).then(function(f){return void wRc(a,f)},function(f){return function(h){var k=f.Jqa;h=
_.SB(h);5===h.Sg.Vs()||4===h.Sg.zk()?(a.context.Qf().info("drive.ds.sync.query.ViewCacheFindByIdsRunner","Deleting "+k+" due to: "+h.message),a.V.push(k),xRc(a)):a.handleError(h)}}(b))}return this.ie.promise};var wRc=function(a,b){b.jd().wd().forEach(function(c){_.lJ(c,1);a.W.push(c)});xRc(a)},xRc=function(a){a.H||(a.H=_.n.setTimeout(a.ha.bind(a),10))};
vRc.prototype.ha=function(){_.n.clearTimeout(this.H);this.H=null;yRc(this);zRc(this);this.O.size===this.request.mn().length?(this.context.Mf.yl([],1,this.originalRequest,!1),this.dispatchEvent("za"),this.ie.resolve(this.items)):this.dispatchEvent("wa")};
var yRc=function(a){var b=a.W;a.W=[];b=a.context.nfa.N8(b);if(_.wI(_.KI(a.context.Nc))){var c=a.context.Mf.um;_.Ia(b,function(d){var e=c.H(d.getId());e&&_.yK(d,e.vk())})}b.forEach(function(d){a.O.add(d.getId());a.items[d.getId()]=d});a.context.Mf.yl(b,1,a.originalRequest,!0)},zRc=function(a){var b=a.V;a.V=[];b.forEach(function(c){var d=_.mJ(_.dJ(new _.cJ,c));a.context.Mf.Qo([d]);a.O.add(c);a.items[c]=null;a.dispatchEvent(new uRc(c))})};
vRc.prototype.handleError=function(a){var b=new NL(a.Sg,_.ak(this.context.Nc.hg(),1,1));this.context.Mf.CB(this.request,b);this.dispatchEvent(b);this.ie.reject(a)};
var ARc=function(a,b,c,d){eN.call(this,a);this.Lg=b;this.request=c;this.Hd={};this.H=null;this.O=_.rK(a.Nc)||new _.dwc;d&&this.yl(d,!0)};_.K(ARc,eN);
ARc.prototype.refresh=function(){var a=this;if(this.H)return this.H.promise;this.Dp=6;if(_.Q(this.request,5,!1))return this.aC(1),_.Yh();var b=this.tCa?!wBc(_.LK(this.Lg),this.request.O()):!1,c=[],d=this.context.$n();this.request.mn().forEach(function(h){if("root"!==h&&h!==d){var k=a.Hd[h],l=k&&k.getItem();if(k=!k||l&&1!==l.rv()||b)l=l&&l.Rm(),k=!(l&&_.P(l,2));k&&c.push(h)}});if(0===c.length)return this.yl([],!1),_.Yh();this.H=_.ai();this.H.promise.then(function(){a.H=null},function(){a.H=null});
var e=this.request.clone();_.BA(e,c);var f=new vRc(e,this.context,this.request);this.context.Lj().Re()?(this.Sc.listen(this.context.Lj(),"Bb",function(h){h.Re()||(a.Sc.Yc(a.context.Lj(),"Bb"),BRc(a,f,a.H))}),this.Dp=0<Object.values(this.Hd).length?1:2):(this.context.Bk().Re()&&(this.Dp=0<Object.values(this.Hd).length?1:2),BRc(this,f,this.H));return this.H.promise};var BRc=function(a,b,c){a.Sc.listen(b,"xa",function(d){a.Hd[d.id]=null});a.uA();b.Zg().then(function(){c.resolve()},c.reject)};_.g=ARc.prototype;
_.g.Iha=function(a){var b=this;if(this.context.wm.equals(a,this.request,!0)){if(wBc(_.LK(this.Lg),a.O()))return!0;if(wBc(this.request.O(),a.O(),_.LK(this.Lg))){if(this.tCa)return!0;if(_.Q(this.O,5,!1))return this.request.mn().every(function(c){return(c=b.Hd[c])&&_.P(c.getItem(),31)})}}return!1};
_.g.ek=function(a){var b=new _.TK;_.ZI(this.context.Nc)?b.Dc(JBc(Object.values(this.Hd))?6:this.Dp):b.Dc(this.Dp);b.Ji(this.Ye());qGc(b,_.Na(this.Hd,function(c){return c?c.getItem():null}));rRc(this,a.O(),b.fq());return b};_.g.resize=function(){};_.g.ud=function(){return this.request};_.g.Ed=function(){return Object.values(this.Hd).length};_.g.Ju=function(a){var b=this.rs(a.O),c=this.rs(a.H);if(b||c)c?(this.Hd[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Hd[a.id]=null,a.O.count--);else return!1;return!0};
_.g.rs=function(a){return!!a&&_.na(this.request.mn(),a.getId())};
var CRc=function(a,b){_.ti.call(this,a);this.changes=b};_.K(CRc,_.ti);
var DRc=function(a){var b=new RKc;if(a.ag()){var c=a.ag();b.H=!1;b.suggestionSessionId=c}a instanceof _.UK&&_.Oj(a,_.Rk,6).length?(a=_.Oj(a,_.Rk,6),b.H=!1,b.V=a):a instanceof _.xB&&(a.R5()||a.fsa()||a.dka().length)&&(c=a.R5(),b.H=!1,b.W=c,c=a.fsa()||!1,b.H=!1,b.incompleteSearch=c,a=a.dka(),b.H=!1,b.O=a);return b};
var fN=function(a,b,c,d,e){e=void 0===e?"":e;_.Di.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.Qf();this.Ba=new Set;this.ma=c||!1;this.Ha=d||!1;this.Fa=this.gGa(b);this.ha=new RKc};_.K(fN,_.Di);var ERc=function(a){return!a.va||""!==a.nextPageToken},GRc=function(a,b){a.W=b;return a.V.length<a.W&&!a.O&&ERc(a)?FRc(a):_.ii()};fN.prototype.$b=function(){return this.V.length};fN.prototype.H=function(){return this.V.slice()};
var FRc=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 _.di;d.addCallback(function(f){return void HRc(a,c,f)});var e=_.$Ac(_.aBc(new _.$I,a.Fa),c);b=_.YAc(new _.mtc,b);a.Ha&&_.w(b,10,!0);_.ZAc(e,b);a.va=!0;a.O=!0;a.context.Sm().then(function(f){return f.Pe(e)}).then(a.ta.bind(a,d),a.handleError.bind(a,d,b));return d};
fN.prototype.ta=function(a,b){this.O=!1;if(b instanceof _.UK)var c=b;else c=b.jd(),this.nextPageToken=b.Yn()||"";this.ha=DRc(c);this.ha.vc()||this.dispatchEvent("ya");a.callback(c.wd())};
fN.prototype.handleError=function(a,b,c){c=_.SB(c);this.O=!1;if(5===c.Sg.Vs())a.callback([]);else{if(10===c.Sg.Vs()&&(_.YAc(b,Math.ceil(_.ak(b,1,1E3)/2-2E-15)),1<_.ak(b,1,1E3))){var d=_.ZAc(_.$Ac(_.aBc(new _.$I,this.Fa),this.nextPageToken),b);this.O=!0;this.context.Sm().then(function(e){return e.Pe(d)}).then(this.ta.bind(this,a),this.handleError.bind(this,a,b));return}b=new NL(c.Sg,_.ak(this.context.Nc.hg(),1,1));this.mMa(b);this.dispatchEvent(b);a.Jd(c)}};
var HRc=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: ")+(_.oxc(a.request)+" paginationToken: ")+b;b=_.oq(_.mq(_.fJ(_.eJ(new _.Cc,2),9),f));a.context.dispatchEvent(new _.Ec(new _.Dc(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())_.lJ(b.value,
a.ma?2:1);c=[];b=_.m(a.I1a(f));for(f=b.next();!f.done;f=b.next())f=f.value,a.V.push(f.getId()),f=_.dJ(new _.cJ,f.getId()).setItem(f),c.push(f);c.length&&a.dispatchEvent(new CRc("wa",c));if(a.V.length<a.W&&a.nextPageToken)return FRc(a);a.dispatchEvent("za")};_.g=fN.prototype;_.g.I1a=function(a){return a};_.g.mMa=function(){};_.g.ud=function(){return this.request};_.g.gGa=function(a){a=a.clone();this.ma&&_.w(a,46,!0);return a};_.g.log=function(a){this.Ka.info("drive.ds.sync.query.QueryRunner",a)};
var IRc=function(a,b,c,d){fN.call(this,a,b,void 0,c,d)};_.K(IRc,fN);IRc.prototype.I1a=function(a){a=this.context.nfa.N8(a);this.context.Mf.yl(a,1,this.request,ERc(this));return a};IRc.prototype.mMa=function(a){this.context.Mf.CB(this.request,a)};IRc.prototype.gGa=function(a){var b=a=fN.prototype.gGa.call(this,a),c=_.Nl(b);0===_.fe(b,33).length&&1===c.length&&(c=this.context.Mf.um.H(c[0].Za()))&&(c=c.yc())&&(_.Ql(b,[c]),_.Rl(b,2));JRc(this,a);return a};
var JRc=function(a,b){if(_.Nl(b).some(function(d){return(d=a.context.Mf.um.H(d.Za()))&&_.P(d,108)})){var c=b.se();c||(c=new _.Cf,_.Ol(b,c));_.Df(c,937)}};
var KRc=function(a,b,c,d){this.context=a;this.Lg=b;this.W=d;this.Ena=0;this.H=c},ORc=function(a,b){if(b){a.log("Processing potential rejoin for TD: "+b);var c=_.Rl(_.Ll(_.Ql(new _.nf,[b]),_.LK(a.Lg)),1),d=_.Df(new _.Cf,306);_.Ol(c,d);LRc(a);c=new IRc(a.context,c);GRc(c,5E3).addCallback(a.V.bind(a,c));MRc(a);NRc(a,b)}},MRc=function(a){var b=_.Qa(a.H);b=b.filter(function(d){return d instanceof ARc});var c=new Set;b.forEach(function(d){d.ud().mn().forEach(function(e){a.W.get(e)||c.add(e)})});b=_.Df(new _.Cf,
310);a.log("Re-querying missing find-by-ids :"+c.size);a.jO([].concat(_.Ad(c)),b)},NRc=function(a,b){var c=[];(a.context.Mf.pGa.iQ[b||"subscribed"]||[]).forEach(function(d){_.La(a.H,function(e){_.Zj(e.ud(),d)&&c.push(e)})});_.Da(c);0<c.length&&(LRc(a),c.forEach(function(d){d=PL(a.context.wm,d.ud(),3);a.log("Refreshing "+b+" cache: "+d)}),_.ci(_.$h(c.map(function(d){return d.refresh().Cg(_.Tf)})),a.O.bind(a)))};
KRc.prototype.jO=function(a,b,c,d,e){c=void 0===c?!1:c;a=a.filter(function(f){return!_.xe(f)});if(0===a.length)return _.Yh({});a=_.w(_.AA(_.BA(new _.zA,a),d||_.LK(this.Lg)),7,!0);_.CA(a,b);e&&e.length&&_.Kj(a,11,e);LRc(this);b=new vRc(a,this.context,void 0,c);return _.ci(b.Zg(),this.V.bind(this,b))};KRc.prototype.V=function(a){a.dispose();this.O()};var LRc=function(a){a.Ena++;a.context.Is.setActive(!1)};KRc.prototype.O=function(){this.Ena--;0===this.Ena&&this.context.Is.setActive(!0)};
KRc.prototype.log=function(a){this.context.Qf().info("drive.ds.sync.cache.CacheRefresher",a)};
var PRc=function(a,b,c){_.O.call(this);this.context=a;this.H=b;this.request=c;this.O=this.ie=null;a=new _.Cf;_.Ef(a,!1);_.Df(a,305);_.Ol(this.request,a);this.Sc=new _.Ye(this);this.Ma(this.Sc)};_.K(PRc,_.O);
PRc.prototype.Zg=function(){if(!this.ie){this.ie=_.ai();if(_.Q(this.request,48,!1))return this.H.Ji(9),this.ie.resolve(this.H),this.ie.promise;this.O=new fN(this.context,this.request,!0);this.Sc.listen(this.O,"wa",this.W);this.Sc.listen(this.O,"za",this.V.bind(this));this.Sc.listen(this.O,"Aa",this.ie.reject.bind(this.ie));GRc(this.O,this.request.Di())}return this.ie.promise};PRc.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(rM(new dM(b)))};
PRc.prototype.V=function(){this.H instanceof tM?this.H.H=!ERc(this.O):ERc(this.O)&&sM(this.H,!1);this.H.Ji(5);this.ie.resolve(this.H)};
var RRc=function(a,b){_.ti.call(this,QRc);this.cache=a;this.changes=b};_.K(RRc,_.ti);var QRc="Nb";
var SRc=function(a,b){return new _.Xh(function(c,d){b.then(function(e){for(var f=new Map,h=_.m(a.py()),k=h.next();!k.done;k=h.next()){k=k.value;var l=k.getId();QBc(k.getItem());f.set(l,aIc(new dM(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.Ck()?l&&a.update(new OJc(l.getId(),l,null)):(k=k.getItem(),QBc(k),a.update(PJc(l,aIc(new dM(k),null===l||void 0===l?void 0:l.H))));a.YW();c(e.$Kb)},d)})};
var TRc=function(a,b){_.O.call(this);this.context=a;this.Lg=b};_.K(TRc,_.O);
TRc.prototype.Zg=function(a){this.log("Running initial view populator (IVDP).");try{var b=new cM(JSON.parse(a))}catch(l){this.handleError("Error parsing initial view dump.",_.sJ(l));return}a=_.KI(this.context.Nc);if(!_.wI(a)){var c=b.wf();if(c){var d=c.getUser();d&&d.getId()===_.D(a,6,"")&&kRc(this.context.NP,c,4)}(a=b.$n())&&this.context.Cu(a,6)}var e=_.y(b,3)||void 0;e&&URc(this.context,e,!0);if((a=_.Oj(b,_.op,9))&&a.length){c=(c=this.context.Nc.hg())&&_.fe(c,30)||[];var f=new Set(c);a.forEach(function(l){(l=
(l=l.getKey())&&_.pp(l))&&f.add(l)});this.context.cE.YP(a,4,[].concat(_.Ad(f.values())))}a=b.wd();a.forEach(function(l){_.Auc(l);_.lJ(l,6)});if(c=_.Oj(b,bM,5)[0])if(b=this.context.wm,DBc(_.LK(this.Lg),c.getQuery().O(),_.EK(this.context.Nc)))if((d=c.getQuery().wc())&&4===d.getType()&&!_.Kqc())this.handleError("Invalid initial view data, natural sort unsupported");else{if(0<a.length){d=gM(b,c.getQuery());b=_.y(c,2)||void 0;d.ui(b);b=a.map(function(l){return new dM(l,void 0,1,e)});var h=_.B(c,_.hl,3);
if(h&&_.y(c,2)){var k=b[b.length-1];_.lJ(h,6);if(!_.Zj(h,k.getItem())){this.handleError("Invalid last item in initial view data.");return}}c=(h=_.rK(this.context.Nc))&&_.Q(h,2,!1)&&c.Yn()||"";k=new tM(this.context.nt,this.context.yv,this.context.wm,d,k,c);k.Ji(4);d=c=0;b=_.m(b);for(h=b.next();!h.done;h=b.next())k.update(rM(h.value))?c++:d++;VRc(this.context.Mf,k);b=k.ud();this.log("Imported "+c+" initial view items (IVDP) successfully ("+d+" failed) into the cache hint corpus cache. Query: "+k.LM());
k=new _.$I;_.aBc(k,b);k=_.yyc(this.context.YA,k,"IVDP");_.zyc(k,a);qM(this.context.Rj,"W6J7De")}}else this.handleError("Invalid initial view data, fields: "+EIc(b,c.getQuery().O()));else this.handleError("No initial query found")};TRc.prototype.handleError=function(a,b){var c=b?void 0:_.oq(_.fJ(_.eJ(new _.Cc,2),6));b=new _.Dc(a,c,b);this.context.mJ(b.Sg);this.log("Initial view dump population failed. Message: "+a);qM(this.context.Rj,"DEJoH")};
TRc.prototype.log=function(a){this.context.Qf().info("drive.ds.sync.cache.InitialViewPopulator",a)};
var WRc=function(a){_.Di.call(this);this.context=a;this.W="drive.ds.sync.cache.CorpusCachePopulator";this.V=0;this.O=new vM(a.nt,a.yv,a.Rj,function(){return a.$n()});this.H=this.context.Nc;this.ta=new SJc(a.nt,a.yv)};_.K(WRc,_.Di);
var XRc=function(a,b){var c=_.ak(a.H,31,2E4);b="number"===typeof _.y(b,3)?_.y(b,3):c+1;b>c?(sM(a.O,!1),c="partialCorpus",a.log("Too many subscribed items at "+b+"; skipping subscribed cache.")):(c="fullCorpus",a.log("Caching all subscribed items."));a.context.YA.Jb("CachedCorpusType",c)};WRc.prototype.log=function(a,b){this.context.Qf().log(this.W,a,b||"info")};var YRc=function(a,b){0===a.V&&(a.V=b)};
var ZRc=function(a,b){var c;if(c=!!b&&!!b.ig())a=_.P(a,4),c=null==a||!!_.P(b.ig(),7)==a;return c};
var $Rc=function(a,b){_.Di.call(this);this.context=a;this.request=b;this.V=[];this.nextPageToken="";this.H=this.O=!1};_.K($Rc,_.Di);$Rc.prototype.Zg=function(){return this.H||this.O&&""===this.nextPageToken?_.ii():aSc(this)};$Rc.prototype.$b=function(){return this.V.length};
var aSc=function(a){a.O=!0;a.H=!0;var b=gFc(hFc(new _.lK,a.request),a.nextPageToken),c=_.yyc(a.context.YA,b);return _.ji(a.context.Sm().then(function(d){return d.Pe(b)}).then(function(d){var e=d.jd().wd();a.nextPageToken=d.Yn()||"";bSc(a,c,e)},function(d){return void a.handleError(d)}))},bSc=function(a,b,c){_.zyc(b,c);for(b=0;b<c.length;b++)_.lJ(c[b],1);a.context.Mf.yl(c,1,a.request,!a.O||""!==a.nextPageToken);var d=[];_.Ia(c,function(e){this.V.push(e.getId());e=_.dJ(new _.cJ,e.getId()).setItem(e);
d.push(e)},a);d.length&&a.dispatchEvent(new CRc("wa",d));a.nextPageToken?aSc(a):(a.H=!1,a.dispatchEvent("za"))};$Rc.prototype.handleError=function(a){this.H=!1;a=new NL(_.gJ(a),_.ak(this.context.Nc.hg(),1,1));this.dispatchEvent(a)};$Rc.prototype.ud=function(){return this.request};
var cSc=function(a){this.H=_.Lqc(a,{numeric:!0})};cSc.prototype.sort=function(a){_.Ga(a,this.compare.bind(this))};cSc.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 dSc=function(a,b,c,d){d=void 0===d?!1:d;eN.call(this,a);this.Lg=b;this.Hd=[];this.ie=null;this.request=c.clone();this.Fv=new $Rc(a,this.request);this.OPb=new cSc(GL(_.KI(a.Nc)));this.ECa=null!=_.P(this.request,6);_.Qe(this,this.smb,this);d&&(this.ie=_.ai(),this.ie.resolve())};_.K(dSc,eN);_.g=dSc.prototype;_.g.refresh=function(){3===this.Dp&&(this.Dp=6,this.ie=null);return this.mca()};_.g.isInitialized=function(){return!!this.ie};
_.g.mca=function(){var a=this;if(this.isInitialized())return this.ie.promise;this.ie=_.ai();this.context.Lj().Re()?this.Sc.listen(this.context.Lj(),"Bb",function(b){b.Re()||(a.Sc.Yc(a.context.Lj(),"Bb"),a.uA(),a.Fv.Zg().lg(a.ie.resolve,a.ie.reject,a.ie))}):this.context.Bk().Re()?this.Sc.$c(this.context.Bk(),[_.rC.AL,_.rC.gU],function(){a.uA();a.Fv.Zg().lg(a.ie.resolve,a.ie.reject,a.ie)}):(this.uA(),this.Fv.Zg().lg(this.ie.resolve,this.ie.reject,this.ie));return this.ie.promise};_.g.resize=function(){};
_.g.ud=function(){return this.request};_.g.py=function(){return this.Hd};_.g.Iha=function(a){return this.context.wm.equals(a,this.request)};_.g.ek=function(a){a=a.Di();this.OPb.sort(this.Hd);var b=tCc(_.ya(this.Hd,0,Math.min(a,this.Hd.length)));rRc(this,KFc(this.Lg),b);var c=new _.xB;c.Tw(b);c.Dc(this.wwa(a));c.Ji(this.Ye());HEc(c,a<this.Hd.length||!(this.context.Lj().Re()||this.context.Bk().Re())&&1!==this.Dp);return c};
_.g.wwa=function(a){return 1===this.Dp||a<=this.Hd.length?1:this.context.Lj().Re()||this.context.Bk().Re()?0<this.Hd.length?1:2:6};_.g.yl=function(a,b){this.isInitialized()&&eN.prototype.yl.call(this,a,b)};_.g.Ju=function(a,b){b=void 0===b?!1:b;if(!this.isInitialized())return!1;var c=a.id,d=_.la(this.Hd,function(h){return h.getId()===c}),e=!!d;b=this.rs(a.H,b);var f=a.O;d&&(f=d,e=!0);if(e||b)e?b?this.nKa(f,a.H):this.iJ(f):this.nR(a.H);else return!1;return!0};_.g.nR=function(a){this.Hd.push(a);a.count++};
_.g.iJ=function(a){_.ta(this.Hd,a);a.count--};_.g.Gya=function(a){return _.ma(this.Hd,a)};_.g.nKa=function(a,b){this.Hd[this.Gya(a)]=b;b.count++;a.count--};_.g.rs=function(a,b){b=void 0===b?!1:b;if(!a)return!1;if(this.ECa&&null!=_.P(this.request,6)){if(b)return!0;var c=a.getId();b=!!this.Hd.find(function(d){return c===d.getId()},this);a=eM(a.getItem())&&ZRc(this.request,a.getItem());return b&&a}return eM(a.getItem())&&ZRc(this.request,a.getItem())};_.g.smb=function(){this.Hd.forEach(function(a){a.count--})};
_.g.dZa=function(){return!0};_.g.getType=function(){return"TeamDriveViewCache"};_.g.Ed=function(){return this.Hd.length};_.g.YW=function(){this.Dp=1};
var eSc=function(a){this.H=a},fSc=function(a,b,c,d,e){if(0===e||null===b){var f=new BPc;_.w(f,2,b);_.w(f,1,d);return _.Yh(f)}var h=$Ic();_.w(h,2,b);c&&_.w(h,3,c);return a.H.then(function(k){return k.Pe(h)}).then(function(k){var l,p=null!==(l=k.wy())&&void 0!==l?l:null;k=d+_.y(k,1);return fSc(a,p,c,k,e-1)})};
var gSc=function(a,b){WRc.call(this,a);this.Lg=b;this.ha=void 0;this.ka=null;this.ma=!1;this.AD=void 0;this.W="drive.ds.sync.cache.LocalDumpPopulator"};_.K(gSc,WRc);gSc.prototype.handleError=function(){this.log("Local dump population failed.");qM(this.context.Rj,"mrK8ic")};
gSc.prototype.Zg=function(){var a=this;if(this.ka)return this.ka;if(this.context.pQ){var b=new _.di;this.ka=b;this.initialize().then(function(){var c=_.Oj(_.HL(a.H),FL,11);c=c[0]&&c[0].getKey()||"";return hSc(a,a.context.pQ,c,4)}).then(null,function(c){if(_.Q(a.H,8,!0))return iSc(a,c);throw c;}).then(function(){_.ZI(a.H)||a.context.Mf.vq.H.clear();qM(a.context.Rj,"zaOY7");b.callback()},function(c){YRc(a,8);a.handleError();b.Jd(c)});return b}this.handleError();return _.ki(Error("hg"))};
gSc.prototype.initialize=function(){var a=this;return _.Yh(this.context.pQ.initialize()).then(function(){if(!_.FK(a.H)){var b=_.ak(_.HL(a.H),7,432E6);b&&(a.ha=Date.now()-b);return new _.Xh(function(c,d){fNc(a.context.tD).then(function(e){e?c():d(Error("ig"))})})}})};
var hSc=function(a,b,c,d){return _.Zf(a,function f(){var h=this,k;return _.Pf(f,function(l){return 1==l.H?(k=h.ha,jSc(h,b,c,k),kSc(h,b,c,k),lSc(h,b,c,k),_.Jf(l,mSc(h,b,c,k),2)):_.Jf(l,Promise.all([nSc(h,b,c,d,k),oSc(h,b,c,d,k),pSc(h,b,c,d,k),qSc(h,b,c,d,k)]),0)})})},jSc=function(a,b,c,d){var e=function(){return a.log("Failed to load account from storage.")};CM(b,c,0,void 0,d,a.AD).then(function(f){f[0]?kRc(a.context.NP,f[0],a.Ye(),_.FK(a.H)):e()},function(){return e()})},kSc=function(a,b,c,d){var e=
function(){return a.log("Failed to load apps from storage.")};CM(b,c,1,void 0,d,a.AD).then(function(f){f[0]?a.context.KZ.YP(f[0],a.Ye(),_.FK(a.H)):e()},function(){return e()})},lSc=function(a,b,c,d){var e=function(){return a.log("Failed to load user prefs from storage.")};CM(b,c,5,void 0,d,a.AD).then(function(f){if(f[0]){f=f[0];var h=_.Oj(f,_.op,1);h.length&&a.context.cE.YP(h,a.Ye(),_.fe(f,2),_.FK(a.H))}else e()},function(){return e()})},nSc=function(a,b,c,d,e){var f=new _.Gn;CM(b,c,3,1,e,a.AD).then(function(h){return rSc(a,
h[0])}).then(function(h){if(h){b!==a.context.pQ||DBc(_.fe(h,12),_.LK(a.Lg),_.EK(a.H))||(a.log("Disabling dump updater due to inconsistent fields.","warning"),a.context.Is.dS());var k=_.y(h,3);if(!k||0>k)throw Error("lg");a.context.Cu(h.$n(),d);k=_.y(h,3);"number"===typeof k&&URc(a.context,Number(k));_.FK(a.H)&&(a.log("Coldstart: Firing INITIAL_CHANGES_PROCESSED."),a.context.NDa());a.yl(h,d);f.resolve()}else f.reject("Failed to load cache hints from storage.")},f.reject,f);return f.promise},oSc=function(a,
b,c,d,e){return sSc(a,2,b,c,d,e).then(null,function(){var f;return(null===(f=_.rK(a.H))||void 0===f?0:_.Q(f,17,!1))?sSc(a,5,b,c,d,e):Promise.reject(Error("jg"))})},sSc=function(a,b,c,d,e,f){var h=new _.Gn;CM(c,d,3,b,f,a.AD).then(function(k){k[0]?(a.yl(k[0],e),h.resolve()):h.reject(Error("kg"))},function(k){return h.reject(k)});return h.promise},pSc=function(a,b,c,d,e){var f=new _.Gn;CM(b,c,3,4,e,a.AD).then(function(h){h.forEach(function(k){a.yl(k,d)});f.resolve()},function(h){return f.reject(h)});
return f.promise},qSc=function(a,b,c,d,e){var f=new _.Gn;CM(b,c,3,3,e,a.AD).then(function(h){h.length?h.forEach(function(k){a.yl(k,d)}):qM(a.context.Rj,"rVezo");f.resolve()},function(h){return f.reject(h)});return f.promise},mSc=function(a,b,c,d){var e=new _.Gn;CM(b,c,6,void 0,d,a.AD).then(function(f){f=_.m(f);for(var h=f.next();!h.done;h=f.next())h=h.value,_.Oj(h,nM,1).length&&(a.log("Importing "+_.Oj(h,nM,1).length+" people into the PeopleCache."),h=_.Oj(h,nM,1),nKc(a.context.Mf.vq.H,h,2));e.resolve()},
function(f){return e.reject(f)});return e.promise},rSc=function(a,b){var c=_.y(b,3);if(c&&!_.FK(a.H)){var d=new eSc(a.context.Sm()),e=_.ak(_.HL(a.H),13,5);return fSc(d,c,null,0,e).then(function(f){return _.Cj(f,2)?(a.log("Encrypted dump too stale."),a.context.rk().O(106007),YRc(a,9),null):b},function(){return b})}return _.Yh(b)},iSc=function(a,b){var c=DM(a.context.HL.hj()),d=_.Oj(_.HL(a.H),FL,11).filter(function(e){return e.et()});return YMc(_.DK(_.KI(a.H)),_.EK(a.H),_.ak(_.HL(a.H),10,0)||0,_.LK(a.Lg),
a.ha||0,d.map(function(e){return _.y(e,1)}),c).then(function(e){if(e){var f=d.find(function(l){return e.V===_.y(l,1)}),h=new EM(_.Yh(e),a.context.Qf(),null,!0),k=new WLc(h,a.H,function(l){a.context.mJ(l)});k.initialize();a.ma=!0;return hSc(a,k,f?f.getKey():null,8).then(function(){return h.getMetadata([cNc])}).then(function(l){l[0]?(l=l[0].Za(),l=a.context.tD.set(cNc,l)):l=Promise.resolve();return l}).then(function(){h.close()})}return _.Zh(new _.Dc("No compatible dumps to forklift were found.",null,
b))})},xSc=function(a,b,c){var d;switch(b.Xn()){case 1:return tSc(a,b,c);case 2:return uSc(a,b,a.O);case 5:return(null===(d=_.rK(a.H))||void 0===d?0:_.Q(d,17,!1))?uSc(a,b,a.ta):null;case 3:return vSc(a,b);case 4:return wSc(a,b);default:return null}},tSc=function(a,b,c){var d=[];_.Oj(b,bM,5).forEach(function(e){var f=void 0,h=_.B(e,_.hl,3);h&&(_.Auc(h),_.P(a.H,67)&&rBc(h,GBc),_.lJ(h,c),f=new dM(h));var k=e.getQuery();if(!_.Q(k,48,!1)||_.Oj(a.H,_.nf,44).some(function(l){if(!_.Q(l,48,!1))return!1;l=
gM(a.context.wm,l,!0);return _.Zj(l,k)}))e=new tM(a.context.nt,a.context.yv,a.context.wm,k,f),e.Ji(a.Ye()),d.push({cache:e,changes:BM(a.context.Dz,null)})});return d},uSc=function(a,b,c){b=_.B(b,CCc,11);if(!b)throw Error("mg");XRc(a,b);return c.UE?(c.Ji(a.Ye()),[{cache:c,changes:BM(a.context.Dz,null)}]):[]},wSc=function(a,b){return _.Oj(b,bM,5).map(function(c){c=new dSc(a.context,a.Lg,_.B(c,_.yI,5),!0);c.Ji(a.Ye());return{cache:c,changes:BM(a.context.Dz,null)}})},vSc=function(a,b){var c=_.fe(_.Oj(b,
bM,5)[0].getQuery(),33)[0],d=_.y(b,3)||void 0;b=BM(a.context.Dz,c);gN(a.context).addCallback(function(f){f.bva(c,d)});var e=new xM(a.context.nt,a.context.yv,c);e.Ji(a.Ye());return[{cache:e,changes:b}]};
gSc.prototype.yl=function(a,b){var c=this,d=xSc(this,a,b);if(d&&0!==d.length){for(var e=_.m(a.wd()),f=e.next();!f.done;f=e.next()){var h=f.value;_.Auc(h);_.P(this.H,67)&&rBc(h,GBc);_.lJ(h,b);_.ZI(this.H)||this.context.Mf.vq.H.vc()||JKc(this.context.Mf.vq,[h]);f=new dM(h);_.fe(a,14).includes(h.getId())&&aIc(f,!0);for(h=0;h<d.length;h++)d[h].cache.update(rM(f))}d.forEach(function(k){var l=k.cache;c.dispatchEvent(new RRc(l,k.changes));c.log("Imported "+l.Ed()+" items into the "+l.getType());var p=null;
l instanceof xM&&(p=l.yc());c.context.T$.promise.then(function(){sLc(c.context.Dz,p)})});1===a.Xn()&&qM(this.context.Rj,"ZA9qG")}else this.log("Ignoring corpus cache for "+a.Xn()+".")};gSc.prototype.Ye=function(){return this.ma?7:3};
var ySc=function(a){_.O.call(this);this.context=a};_.K(ySc,_.O);ySc.prototype.Zg=function(a){try{zSc(this,new sPc(JSON.parse(a)))}catch(b){this.handleError("Error parsing prefetched request.",b)}};
var zSc=function(a,b){a.log("Running prefetched request populator for "+b.getKey()+".");switch(b.getKey()){case 1:case 3:ASc(a,b);break;case 4:BSc(a,b);break;case 6:CSc(a,b);break;case 2:DSc(a,b);break;case 7:ESc(a,b);break;case 5:_.Oj(_.dk(b,uPc,7,wPc),sPc,1).forEach(function(c){zSc(a,c)});break;default:a.handleError("Unsupported prefetched request.")}},ASc=function(a,b){var c=_.dk(b,_.nf,2,vPc);b=JSON.parse(_.ck(b,3,wPc)||"{}");var d=new _.$I;_.aBc(d,c);b=a.context.WQ().wsa.xE(d,{headers:{},text:"",
json:b}).jd();FSc(a,c,b)},CSc=function(a,b){FSc(a,_.dk(b,_.nf,2,vPc),_.dk(b,_.xB,9,wPc))},FSc=function(a,b,c){for(var d=c.wd(),e=_.m(d),f=e.next();!f.done;f=e.next())_.lJ(f.value,7);c=DRc(c);a=a.context.Mf;b=gM(a.context.wm,b);e=hN(a,b);a.log("Initializing cache with "+d.length+" items for key '"+e+"'");f=a.O[e];f||(f=new iN(a.context,b),f.Ji(2),GSc(a,e,f));c.vc()||f.vsa(c);a.yl(d,1,b)},DSc=function(a,b){b=_.dk(b,_.iA,5,wPc);var c=a.context.Nc.hg();c=c&&_.fe(c,30)||[];var d=new Set(c);_.Oj(b,_.op,
3).forEach(function(e){(e=(e=e.getKey())&&_.pp(e))&&d.add(e)});a.context.cE.YP(_.Oj(b,_.op,3),2,[].concat(_.Ad(d.values())))},BSc=function(a,b){a.context.ofa.u2(_.dk(b,oM,8,wPc).wl(),_.dk(b,_.mA,6,vPc),2,!1)},ESc=function(a,b){var c=_.dk(b,_.kA,10,vPc);b=JSON.parse(_.ck(b,3,wPc)||"{}");b=a.context.WQ().wsa.xE(c,{headers:{},text:"",json:b});SQc(a.context).u2([b],c,2,!1)};
ySc.prototype.handleError=function(a,b){var c=b?void 0:_.oq(_.fJ(_.eJ(new _.Cc,2),6));this.context.dispatchEvent(new _.Ec(new _.Dc(a,c,b)));this.log("Prefetched request population failed.")};ySc.prototype.log=function(a){this.context.Qf().info("drive.ds.sync.cache.PrefetchedRequestPopulator",a)};
var jN=function(a){WRc.call(this,a);this.ha=[];this.ka=[];this.W="drive.ds.sync.cache.SdkCachePopulator";this.va=Math.ceil(1.1*_.ak(a.Nc,31,2E4))};_.K(jN,WRc);jN.prototype.Zg=function(){if(!_.Q(this.H,45,!1))return YRc(this,5),this.handleError(),_.ki(Error("ng"));this.log("Drive SDK cache population initiated.");return this.context.CVa().addCallback(this.Fa,this).addCallback(this.Ba,this).Rg(this.handleError,this)};
jN.prototype.Fa=function(){var a=this;qM(this.context.Rj,"L6uQWd");gN(this.context).addCallback(function(b){b.Cda()});if(_.Q(this.H,46,!1))return BCc(this.context.Sm(),this.context.Qf()).addCallback(function(b){if(!b)throw YRc(a,4),Error("og");XRc(a,b)});this.log("Subscribed corpus cache population disabled.");sM(this.O,!1);return _.ii()};
jN.prototype.Ba=function(){this.context.NDa();var a=new _.di;if(this.O.UE){this.log("Starting subscribed corpus cache population.");var b=this.O.ud();b.ui(this.va);this.O.Ji(5);HSc(this,this.O,b)}b=_.Oj(this.H,_.nf,44);b=_.m(b);for(var c=b.next();!c.done;c=b.next())c=new tM(this.context.nt,this.context.yv,this.context.wm,c.value),c.Ji(5),HSc(this,c,c.ud()),c=PL(this.context.wm,c.ud()),this.log("Starting "+c+" cache hint corpus cache population.");_.$h(this.ka).then(a.callback,this.ma.bind(this,a),
a);return a};var HSc=function(a,b,c){var d=BM(a.context.Dz,null);b=new PRc(a.context,b,c);a.ha.push(b);b=_.ci(b.Zg().then(function(e){!e.UE&&e instanceof vM&&(a.log("Subscribed corpus cache disabled, too many backfill items."),a.context.YA.Jb("CachedCorpusType","errorUncachedCorpus"));a.dispatchEvent(new RRc(e,d))}),function(){a.context.T$.promise.then(function(){sLc(a.context.Dz,null)})});a.ka.push(b)};
jN.prototype.ma=function(a,b){for(var c=_.m(this.ha),d=c.next();!d.done;d=c.next())d.value.dispose();YRc(this,7);c=b;b instanceof NL?c=_.sJ(b.error):_.YI(b)||(c=Error("pg`"+b));a.Jd(c)};jN.prototype.handleError=function(){this.log("Drive SDK cache population failed.");qM(this.context.Rj,"Gv4zef")};jN.prototype.Ye=function(){return 5};
var ISc=function(a,b){_.O.call(this);this.context=a;this.V=b;this.Sc=new _.Ye(this);this.impression=null;this.W=[];this.Ma(this.Sc);this.H=new gSc(this.context,this.context.Lg);this.Ma(this.H);this.O=new jN(this.context);this.Ma(this.O)};_.K(ISc,_.O);
ISc.prototype.Zg=function(){var a=this;this.log("Corpus cache population initiated.");this.impression=this.context.rk().H(106002);_.n._DRIVE_dsp&&JSc(this);_.n._DRIVE_dspc=function(c){JSc(a,c)};BM(this.context.Dz,null);_.Q(this.context.Nc,24,!1)&&!_.FK(this.context.Nc)&&(_.n._DRIVE_ivd||null===_.n._DRIVE_ivd?KSc(this):_.n._DRIVE_ivdc=function(){KSc(a)});var b=this.context.pQ;if(b)return this.Sc.listen(this.H,QRc,this.ha),this.Sc.listen(this.O,QRc,this.ha),(!_.Q(this.context.Nc,10,!1)&&_.P(this.context.Nc,
69)?this.context.vX.promise:Promise.resolve()).then(function(){return b.initialize().then(function(){a.log("Dump storage initialized.");a.impression&&(a.H.AD=a.impression);return a.H.Zg().lg(function(){return LSc(a,a.H.Ye())},function(){MSc(a,a.H.Ye(),a.H.V);return _.FK(a.context.Nc)?a.handleError(Error("qg")):a.O.Zg().then(function(){return LSc(a,a.O.Ye())},function(c){MSc(a,a.O.Ye(),a.O.V);return a.handleError(c)})})},function(c){a.handleError(_.YI(c)?c:void 0,!0)})});this.handleError(void 0,!0)};
var JSc=function(a,b){var c=new ySc(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()};ISc.prototype.ha=function(a){var b=a.cache;this.log("Cache populated: "+b.getType());this.W.push(NSc(this,b,a.changes))};
var LSc=function(a,b){sLc(a.context.Dz,null);qM(a.context.Rj,"L6uQWd");gN(a.context).addCallback(function(c){c.Cda()});return Promise.all(a.W).then(function(){OSc(a,b)})},OSc=function(a,b){if(!a.isDisposed()){_.FK(a.context.Nc)||PSc(a.V,_.Oj(a.context.Nc,_.nf,44));a.log("Corpus cache population complete.");var c=a.context.Rj;c.H("mrK8ic")?c.H("Gv4zef")||a.context.Is.ODa():fNc(a.context.tD).then(function(d){d&&a.context.Is.ODa()},function(){});qM(c,"rVezo");qM(c,"BNEDtc");a.impression&&(b=_.SK(_.Btc,
b),EFc(MFc(a.impression),b),DFc(MFc(a.impression),!0),FFc(MFc(a.impression),rIc(a.V.um)),GFc(MFc(a.impression),a.context.Mf.Xn()),a.impression.zj());a.dispose()}},MSc=function(a,b,c){a.impression&&(b=_.SK(_.Btc,b),EFc(MFc(a.impression),b),a=MFc(a.impression),_.Mj(a,3,c,void 0))};
ISc.prototype.handleError=function(a,b){b=void 0===b?!1:b;sLc(this.context.Dz,null);var c=this.context.Rj;qM(c,"L6uQWd");gN(this.context).addCallback(function(d){d.Cda()});qM(c,"mrK8ic");qM(c,"Gv4zef");qM(c,"rVezo");qM(c,"BNEDtc");this.context.YA.Jb("CachedCorpusType","partialCorpus");c=!!this.H.context.pQ||_.Q(this.O.H,45,!1);a&&!b&&c?(c=void 0,b="Corpus population failed: ",_.YI(a)?(c=a,b+=c.message):b+=String(a),this.log(b),a=new _.Dc(b,void 0,c),c=a.Sg,_.eJ(c,_.FK(this.context.Nc)?3:1),_.fJ(c,
6),_.mq(c,b),_.oq(c),this.context.dispatchEvent(new _.Ec(a))):this.log("Corpus population skipped");this.impression&&(DFc(MFc(this.impression),!1),this.impression.zj());this.dispose()};var NSc=function(a,b,c){return SRc(b,c).then(function(d){d.some(function(e){return b instanceof xM&&e.Ck()&&e.Ac()===b.yc()})||VRc(a.V,b,d)},function(){return a.handleError(Error("rg"))})},KSc=function(a){if(_.n._DRIVE_ivd){var b=new TRc(a.context,a.context.Lg);a.Ma(b);b.Zg(_.n._DRIVE_ivd)}else qM(a.context.Rj,"DEJoH")};
ISc.prototype.log=function(a){this.context.Qf().info("drive.ds.sync.cache.CorpusCachePopulatorManager",a)};
var QSc=function(){uM.apply(this,arguments)};_.K(QSc,uM);_.g=QSc.prototype;_.g.rs=function(a){var b;if(b=uM.prototype.rs.call(this,a))a=a&&a.getItem()&&a.getItem().Rm(),b=!(!a||!_.P(a,3));return b};_.g.ud=function(){};_.g.LM=function(){return null};_.g.getType=function(){};_.g.YG=function(){};
var RSc=function(a,b){this.context=a;this.H=b;this.iQ={}},TSc=function(a,b){if(!_.QJ(b)){var c=_.fe(b,33);if(1===c.length)SSc(a,c[0],b);else{c=_.Nl(b);if(1===c.length&&!_.Q(c[0],2,!1)){var d=c[0].Za();c=a.H.get(d);if(!c){c=a.context.Mf.tI;var e=_.Df(new _.Cf,310);c.jO([d],e).then(function(f){if((f=f[d])&&f.yc()){var h=f.getCapabilities();h&&_.Ee(h)&&(f=f.yc(),SSc(a,f,b))}else SSc(a,null,b)});return}if(c.getItem().yc()&&_.Ee(c.getItem().getCapabilities())){c=c.getItem().yc();SSc(a,c,b);return}}SSc(a,
null,b)}}},SSc=function(a,b,c){if(b){var d=a.H.get(b);if(d&&!eM(d.getItem()))return}d=b||"subscribed";a.iQ[d]||(a.iQ[d]=[]);a.iQ[d].push(c);b&&(gN(a.context).addCallback(function(e){e.bva(b)}),USc(a.context.sJa,b))},VSc=function(a,b){if(!_.QJ(b)){var c={},d;for(d in a.iQ){c.qT=d;for(var e=0;e<a.iQ[c.qT].length;e++)if(_.Zj(b,a.iQ[c.qT][e])){_.sa(a.iQ[c.qT],e);"subscribed"!==c.qT&&gN(a.context).addCallback(function(f){return function(h){h.UGa(f.qT,!1)}}(c));return}c={qT:c.qT}}}};
var WSc=function(){this.H=new Map;this.O=[];this.V=[]};
WSc.prototype.update=function(a){var b=this,c=a.id,d=a.O;a=a.H;var e=(d||a).getItem();xL(e)&&(a?(e=a.getItem().Ff())&&_.y(e,1)&&(1===_.me(e)||3===_.me(e))&&(e=_.y(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&&!_.Zj(a.getItem(),d.getItem()))&&this.H.get(c).forEach(function(f){b.V.push(f)})};
var XSc=function(a){return a.V.filter(function(b){return!a.O.includes(b)})},YSc=function(a){a.O=[];a.V=[]};
var ZSc=function(a,b){wLc.call(this,a.clone(),b.Sm(),b.Nc,b.Qf());this.context=b};_.K(ZSc,wLc);ZSc.prototype.W=function(a){var b=new Map;a.mn().forEach(function(c){var d=_.N8b(a.clone(),[c]);b.set(c,d)});return b};ZSc.prototype.V=function(a){a=a.wd()[0];this.context.Mf.yl([a],1,void 0,!0,this.request.O())};ZSc.prototype.ha=function(a){this.context.Mf.yl([],1,a,!1,this.request.O())};ZSc.prototype.ka=function(a){a=_.mJ(_.dJ(new _.cJ,a));this.context.Mf.Qo([a])};
var $Sc=function(a,b,c,d){eN.call(this,a);this.Lg=b;this.request=c;this.Hd={};d&&this.yl(d,!0)};_.K($Sc,eN);_.g=$Sc.prototype;
_.g.refresh=function(){var a=this;this.Dp=6;var b=hM(this.context.Nc)!==hM(this.context.Nc,this.request.O()),c=[];this.request.mn().forEach(function(h){var k=a.Hd[h];k&&k.getItem().ig()&&!b||c.push(h)});if(0===c.length)return this.yl([],!1),_.Yh();var d=this.request.clone();_.N8b(d,c);var e=new ZSc(d,this.context),f=_.ai();this.context.Lj().Re()?(this.Sc.listen(this.context.Lj(),"Bb",function(h){h.Re()||(a.Sc.Yc(a.context.Lj(),"Bb"),a.uA(),e.Zg().then(f.resolve,f.reject,f))}),this.Dp=0<_.Pa(this.Hd)?
1:2):(this.context.Bk().Re()&&(this.Dp=0<_.Pa(this.Hd)?1:2),this.uA(),e.Zg().then(f.resolve,f.reject,f));return f.promise};_.g.Iha=function(a){return this.context.wm.equals(a,this.request)&&wBc(_.LK(this.Lg),a.O())};_.g.ek=function(a){var b=new _.TK;b.Dc(this.Dp);b.Ji(this.Ye());qGc(b,_.Na(this.Hd,function(c){return c?c.getItem():null}));rRc(this,a.O(),b.fq());return b};_.g.resize=function(){};_.g.ud=function(){return this.request};_.g.Ed=function(){return _.Pa(this.Hd)};
_.g.Ju=function(a){var b=this.rs(a.O),c=this.rs(a.H);if(b||c)c?(this.Hd[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Hd[a.id]=null,a.O.count--);else return!1;return!0};_.g.rs=function(a){return!!a&&this.request.mn().includes(a.getId())};
var iN=function(a,b,c,d,e){eN.call(this,a);var f=this;this.V=0;this.Hd=[];this.O=new Map;this.ka=null;this.incompleteSearch=!1;this.ha=[];this.W=[];this.suggestionSessionId=null;this.count=0;this.ma=this.Ba=null;this.ta=Date.now();this.request=b.clone();this.Fa=PL(this.context.wm,b);this.Fv=new IRc(this.context,this.request,!1,e);b=this.request.wc()&&vIc(this.request.wc());var h=this.context.yv;this.H=b?function(k,l){return h.compare(f.request,k,l)}:null;this.ECa=!b||!lIc(this.request)||_.wI(_.KI(a.Nc));
this.Ha=WJc(this.request);c&&this.yl(c,!d);this.va=_.ak(a.Nc.hg(),16,36E5);_.sK(this.request)&&this.Sc.listen(this.context.Uga,"Gb",this.Ka);_.Qe(this,function(){_.aa(f.Fv);f.clear()})};_.K(iN,eN);iN.prototype.refresh=function(){this.log(this.LM()+" | Refresh called, currently "+this.Ed()+" items cached");return aTc(this,!1)};
var aTc=function(a,b){a.Dp=6;if(_.Q(a.request,48,!1))return a.Dp=1,_.Yh();if(_.sK(a.request)){var c=bTc,d=a.context.Uga.H;d=Math.max(Date.now()-d,a.va);c(a,Math.min(d,2592E5))}return cTc(a,b)};iN.prototype.initialize=function(){return this.count>=this.request.Di()||1===this.Dp?_.Yh():this.refresh()};iN.prototype.clear=function(){dTc(this)};
var dTc=function(a){a.Hd.forEach(function(b){b.count--});a.count=0;a.Hd=[];a.O.clear()},bTc=function(a,b){_.n.clearTimeout(a.Ba);a.Ba=_.n.setTimeout(function(){return aTc(a,!0)},b)};iN.prototype.Ka=function(){Date.now()-this.ta>this.va&&bTc(this,0)};
var cTc=function(a,b){a.Fv&&(a.Sc.Yc(a.Fv,"ya",a.vsa),a.Sc.Yc(a.Fv,"za",a.nMa),a.Fv.dispose());var c=a.request.se();c&&_.Ef(c,!1);a.Fv=new IRc(a.context,a.request,b);a.V=0;a.Sc.listen(a.Fv,"ya",function(){return a.vsa(a.Fv.ha)});a.Sc.listen(a.Fv,"za",a.nMa);return a.mca()};
iN.prototype.mca=function(){var a=this,b=_.ai();this.context.Lj().Re()?this.Sc.listen(this.context.Lj(),"Bb",function(c){c.Re()||(a.Sc.Yc(a.context.Lj(),"Bb"),eTc(a,b))}):this.context.Bk().Re()?this.Sc.$c(this.context.Bk(),[_.rC.AL,_.rC.gU],function(){eTc(a,b)}):eTc(this,b);return b.promise};var eTc=function(a,b){a.uA();var c=a.request.Di()+a.V;_.cka(GRc(a.Fv,c).lg(b.resolve,b.reject,b),function(){return a.ta=Date.now()})};_.g=iN.prototype;
_.g.resize=function(a){this.log(this.LM()+" | Resize called");var b=0;for(var c=_.m(new Set([].concat(_.Ad(this.Ky)))),d=c.next();!d.done;d=c.next())d=d.value,d=tRc(this.context).ska(d),b=Math.max(b,d.Di());_.sK(this.request)?(this.request.ui(b),2!==this.Ye()&&!this.Fv.O&&(b>this.count||a)?this.refresh():this.rJ()):this.request.Di()!==b&&(this.request.ui(b),b>this.count?this.mca():this.rJ())};_.g.ud=function(){return this.request};_.g.LM=function(){return this.Fa};_.g.Ed=function(){return this.Hd.length};
_.g.Iha=function(a){return this.context.wm.equals(a,this.request)};
_.g.ek=function(a){var b=a.Di(),c,d=!1;if(_.RJ(this.request)){var e=this.Hd.slice();var f=this.W.slice(0,b);if(this.W.length>b){var h=f.map(function(l){return l.getId()});for(c=0;c<e.length;c++){var k=e[c];d=_.ml(k.getItem()).filter(function(l){return h.includes(_.B(l,_.Rk,1).getId())});k=k.clone();ABc(k.getItem(),d);e[c]=k}e=e.filter(function(l){return _.ml(l.getItem()).length})}d=JBc(e);c=new _.UK;_.w(c,4,!1);iGc(c,f)}else e=this.Hd.slice(0,b),c=new _.xB,HEc(c,b<this.Hd.length||!(this.context.Lj().Re()||
this.context.Bk().Re())&&1!==this.Dp),_.I(c,7,this.ka),_.w(c,8,this.incompleteSearch),_.Ij(c,18,this.ha),d=JBc(e);e=tCc(e);rRc(this,a.O(),e);c.Tw(e);c.Dc(d?6:this.wwa(b));c.Ji(this.Ye());c.lP(this.suggestionSessionId);return c};_.g.wwa=function(a){return 1===this.Dp||a<=this.count?1:this.context.Lj().Re()||this.context.Bk().Re()?0<this.Hd.length?1:2:6};_.g.vsa=function(a){this.ka=a.W;this.incompleteSearch=a.incompleteSearch;this.ha=a.Zza();this.W=a.V;this.suggestionSessionId=a.ag()};
_.g.nMa=function(){var a=this.request.Di()-this.count;0<a&&ERc(this.Fv)&&(this.V+=a,this.mca())};_.g.yl=function(a,b){_.sK(this.request)&&dTc(this);var c=!1;a=_.m(a);for(var d=a.next();!d.done;d=a.next())d=rM(d.value),c=this.Ju(d,!0)||c;b||(1!==this.Dp&&(c=!0),this.Dp=1);if(a=this.H){a:{a=this.Hd;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.ho("ViewCache unsorted after import"),this.context.yv.sort(this.request,this.Hd));c&&(this.HX(),fTc(this,b))};
var fTc=function(a,b){_.Nl(a.request).length&&a.Hd.length&&a.context.JZ.then(function(c){var d=LL(a.context.rk(),106024,a.ma);if(d){var e=_.Nl(a.request)[0].Za(),f=_.B(_.RK(d),vFc,18);if(!f){f=new vFc;var h=_.RK(d);_.I(h,18,f)}f=_.w(f,1,!b);c=_.w(f,2,c===e).zt(a.Hd.length);e=a.context.Mf.Xn();_.w(c,4,e);a.ma=d;d.zj()}})};_.g=iN.prototype;
_.g.Ju=function(a,b){var c=this.O.get(a.id),d=!!c,e=this.rs(a.H,b),f=a.O;c&&(d?a.O&&a.O!==c&&this.ho("Updating different wrapper from the existing one"):this.ho("Updating existing item but old wrapper did not match"),f=c,d=!0);if(d||e)if(d)e?this.nKa(f,a.H):(this.iJ(f),_.sK(this.request)&&bTc(this,0));else{if(_.sK(this.request)&&!b)return!1;this.nR(a.H)}else return!1;return!0};_.g.nR=function(a){this.H?lBc(this.Hd,a,this.H):this.Hd.push(a);a.count++;gTc(a)&&this.count++;this.O.set(a.getId(),a)};
_.g.iJ=function(a){if(this.H){var b=this.Hd,c=_.Fa(b,a,this.H);0<=c&&_.sa(b,c)}else _.ta(this.Hd,a);a.count--;gTc(a)&&this.count--;this.O.delete(a.getId())};_.g.Gya=function(a){return this.H?_.Fa(this.Hd,a,this.H):_.ma(this.Hd,a)};_.g.nKa=function(a,b){this.H&&0!==this.H(a,b)?(this.iJ(a),this.nR(b)):(this.Hd[this.Gya(a)]=b,b.count++,gTc(b)&&this.count++,a.count--,gTc(a)&&this.count--,this.O.delete(a.getId()),this.O.set(b.getId(),b))};
_.g.rs=function(a,b){if(!a)return!1;if(this.ECa&&!_.sK(this.request)){if(b)return!0;if(!this.Ha){var c=a.getId();b=!!this.Hd.find(function(e){return c===e.getId()},this);a=fM(this.context.nt,this.request,a.getItem());return b&&a}}if(!fM(this.context.nt,this.request,a.getItem()))return!1;var d=1.2*this.request.Di();if(1===this.Dp||!this.H||ZHc(a.V,2)||this.count<d||b||RBc(a.getItem()))return!0;b=0===this.Hd.length?null:this.Hd[this.Hd.length-1];return!!b&&0>=this.H(a,b)};
_.g.rJ=function(){this.log(this.LM()+" | Evict called");if(1!==this.Dp&&!this.context.Lj().Re()&&!this.context.Bk().Re()){var a=1.2*this.request.Di();if(!(a>=this.count||this.Fv&&a>=this.Fv.$b())){a=this.count-this.request.Di();for(var b=this.Hd.length-1;0<=b&&0<a;b--){var c=this.Hd[b];ZHc(c.V,2)||RBc(c.getItem())||(c.count--,gTc(c)&&this.count--,this.O.delete(c.getId()),_.sa(this.Hd,b),a--)}cTc(this,!1)}}};
_.g.ho=function(a){var b=new _.Cc;_.eJ(b,2);_.fJ(b,6);_.oq(b);this.context.dispatchEvent(new _.Ec(new _.Dc(a,b)))};var gTc=function(a){return!ZHc(a.V,2)&&3!==a.getItem().rv()};iN.prototype.log=function(a,b){this.context.Qf().log("drive.ds.sync.cache.ViewCache",a,void 0===b?"info":b)};iN.prototype.jRa=function(a){var b=this,c=_.Nl(this.request);c.length&&(c=c.some(function(d){return(d=b.context.Mf.um.H(d.Za()))&&_.P(d,108)}),mJc(this.context.lfa,a,c))};iN.prototype.iRa=function(){this.rJ()};
iN.prototype.qYa=function(a){return 1!==this.Dp&&a.Di()>this.count&&this.Fv.O};
var kN=function(a,b){var c;_.O.call(this);var d=this;this.O={};this.W=new WSc;this.Sc=new _.Ye(this);this.Ma(this.Sc);this.context=a;this.Lg=b;this.It=new $Jc(a.wm,a.Qf());this.context.rk().W.H=this.It;if(null===(c=_.rK(this.context.Nc))||void 0===c?0:_.Q(c,15,!1))b=new SJc(a.nt,a.yv),this.It.add(b),a.mfa.promise.then(function(){var e,f,h,k;null===(f=null===(e=d.It)||void 0===e?void 0:e.O)||void 0===f?void 0:sM(f,!(null===(k=null===(h=d.It)||void 0===h?void 0:h.H)||void 0===k?0:k.UE))});this.H=new kIc(a.JZ,
a.nt,a.yv);_.P(a.Nc,60)&&(this.va=new QSc(a.nt,a.yv));this.V=new eIc(a.Qf(),_.LK(this.Lg));hTc(this,_.fe(this.context.Nc,28));this.um=new nIc(this.Lg,this.context.wm,this.H,this.V);this.context.rk().W.V=this.um;this.tI=new KRc(this.context,this.Lg,this.O,this.H);this.pGa=new RSc(this.context,this.H);this.ka=new ISc(this.context,this);_.Qe(this.ka,function(){d.ka=null});this.ta=_.wuc(_.LK(this.Lg),iTc);pM(this.context.Rj,["NSockf"],function(){return d.initialize()});pM(this.context.Rj,["NSockf","jroI5d"],
function(){var e=d.context.Nc;if(_.B(e,_.hl,12))e=_.B(e,_.hl,12);else{var f=_.gvc(_.ivc(new _.Rk,_.DK(_.KI(e))),!0);f=_.w(f,6,1);var h=_.D(_.KI(e),6,"");h&&f.Ob(h);f=_.S8b(_.Nvc(_.Ovc(_.KG((new _.hl).Ob(d.context.$n()).setTitle(_.D(e,38,"My Drive")),"application/vnd.google-apps.folder").Mn(!1),f),[f]),1);f=_.w(f,29,!0);f=_.w(f,63,!0);e=_.jvc(new _.Xk,_.Q(e,6,!0));e=_.w(e,2,!1);e=_.zK(f,_.wvc(_.pvc(_.ovc(_.svc(_.tvc(_.rvc(_.qvc(_.nvc(_.mvc(_.lvc(_.kvc(_.w(e,3,!1),!1),!1),!0),!0),!1),!1),!1),!1),!1),
!1),!1))}d.yl([e],1);qM(d.context.Rj,"hVFf7")});this.ha=_.ai();pM(this.context.Rj,["BNEDtc"],function(){d.ha.resolve()});this.vq=new zKc(this.context.Nc,this.context.Qf(),a.Sm(),a.lfa,this.context.rk(),this.context.vX.promise);_.ZI(this.context.Nc)&&this.Sc.listen(this.vq,"Fb",this.ma);this.oMa=new _.ayc(this.context.Nc,this.um)};_.K(kN,_.O);
kN.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=_.y(d.value,1);for(var e=this.vq.Gd(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.vq.H.get(d),e=!(!d||1!==d.Ye()&&4!==d.Ye()||3===jKc(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(),jTc(this,h),b.push(PJc(d,new dM(h,
void 0,1)))):this.log("b/154479164 Unexpected missing wrapper for "+h+".","warning");kTc(this,b,[]);this.context.Is.update(6);a.size&&this.tI.jO([].concat(_.Ad(a)),_.Df(new _.Cf,311))};kN.prototype.initialize=function(){this.ka.Zg()};
kN.prototype.ii=function(a,b){if(b instanceof _.nf)b=gM(this.context.wm,b),lTc(this,b.O()),TSc(this.pGa,b),b=mTc(this,b),b.cache.ii(a);else if(b instanceof _.zA)b=nTc(this,b),lTc(this,b.O()),b=oTc(this,b),b.cache.ii(a);else if(b instanceof _.yI){var c=hN(this,b),d=this.O[c];d?(3==d.DJ()?(this.log(c+" | TeamDriveQueryRequest backed by refreshing existing cache"),d.refresh()):this.log(c+" | TeamDriveQueryRequest backed by existing view cache"),b={cache:d,wv:!1}):(this.log(c+" | ItemQueryRequest backed by new cache"),
d=new dSc(this.context,this.Lg,b),d.refresh().Cg(_.Tf),GSc(this,c,d),b={cache:d,wv:!0});b.cache.ii(a)}else if(b instanceof _.GG)c=b.O(),d=this.V,fIc(d,d.H,d.O,c),b=oTc(this,b),b.cache.ii(a);else throw Error("sg");return b.wv};kN.prototype.jk=function(a,b){if(b instanceof _.nf)b=gM(this.context.wm,b),VSc(this.pGa,b);else if(b instanceof _.zA)b=nTc(this,b);else if(!(b instanceof _.yI||b instanceof _.GG))throw Error("sg");b=hN(this,b);var c=this.O[b];c&&(c.jk(a),c.isDisposed()&&delete this.O[b])};
var hN=function(a,b){return PL(a.context.wm,b,2)},mTc=function(a,b){var c,d,e=hN(a,b),f=a.O[e];if(f)return 3==f.DJ()?(a.log(e+" | ItemQueryRequest backed by refreshing existing cache"),f.refresh()):a.log(e+" | ItemQueryRequest backed by existing view cache"),{cache:f,wv:!1};var h=[],k=5;f=!1;for(var l=aKc(a.It),p=0;p<l.length;p++){var q=l[p];k=q.uE(b);if(5!=k){l=1==k?void 0:b.Di();if((null===(c=_.rK(a.context.Nc))||void 0===c?0:_.Q(c,18,!1))&&q instanceof SJc){f=!0;k=5;a.log("Partial Caching dark launch: Skipped returning from the MyDrive cache for "+
(e+"."));break}h=q.Hka(b,l);var r=q.Ye();var v=q instanceof tM?q.wy():"";a.log(e+" | ItemQueryRequest backed by "+q.getType()+" | size "+(q.Ed()+" | initial "+h.length));break}}5==k&&a.log(e+" | ItemQueryRequest backed by new cache");if(a.context.Lj().Re()||a.context.Bk().Re())h=h.concat(a.H.query(b,1)),_.Da(h,void 0,function(A){return A.getId()}),k=(k=a.It.H)&&k.U7&&5!=k.uE(b)?k.uE(b):6,a.log("Offline: Populate with "+h.length+" initial items(s)");var z=new iN(a.context,b,h,1==k,v);r&&z.Ji(r);z.yl(a.H.query(b,
2),1!=k);r=z.initialize();(null===(d=_.rK(a.context.Nc))||void 0===d?0:_.Q(d,18,!1))&&f&&r.then(function(){return gN(a.context)}).then(function(A){return A.sWa().gTb()}).then(function(){var A,C;if(z.isDisposed())a.log("Partial Caching dark launch: ViewCache is disposed skipping match check for "+e);else{var G=z.ek(b).wd().map(function(T){return T.getId()}),H=(null===(C=null===(A=a.It)||void 0===A?void 0:A.O)||void 0===C?void 0:C.ek(b,b.Di()).wd().map(function(T){return T.getId()}))||[],L=_.Ha(G.sort(),
H.sort()),M=LL(a.context.rk(),106030);M&&(AFc(zFc(yFc(QFc(M),G.length),H.length),L),M.zj());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")});r.Cg(function(A){A=_.gJ(A);_.oq(A);a.context.dispatchEvent(new _.Ec(new _.Dc("Error during view cache init",
A)))});GSc(a,e,z);return{cache:z,wv:!0}},oTc=function(a,b){var c=hN(a,b),d=!1,e=a.O[c];if(e&&e.Iha(b))a.log("FindByIdsRequest backed by existing query cache: "+c);else{var f=a.H.getAll(b.mn()),h;b instanceof _.zA?h=new ARc(a.context,a.Lg,b,f):h=new $Sc(a.context,a.Lg,b,f);f.length&&h.Ji(8);h.refresh().Cg(_.Tf);b=h;d=!0;GSc(a,c,b);e?(pTc(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,
wv:d}};kN.prototype.WV=function(){return Object.values(this.O).filter(function(a){return a.ud()instanceof _.yI})};
kN.prototype.$1a=function(a){for(var b=_.Df(new _.Cf,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=EIc(this.context.wm,c,!0),this.log("Refreshing "+a+" for secondary fields: "+d+"."),this.tI.jO([a],b,!1,c))};
var qRc=function(a,b,c){c&&c.length&&hIc(a.V,b,c);_.ZI(a.context.Nc)&&JKc(a.vq,b)},VRc=function(a,b,c){var d,e,f;if(b instanceof dSc){var h=hN(a,b.ud());if(a.O[h]){a.log(h+" | Cache already exists, ignoring persisted data");return}}b instanceof QJc&&a.It.remove(b);h=new Map;var k=a.H.py(),l=new Map(k);k=[];for(var p=_.m(b.py()),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().rv();(null===(d=_.rK(a.context.Nc))||void 0===d?0:_.Q(d,15,!1))&&!0===q.H&&aIc(v,
q.H);3==z||4==z?h.set(q.getId(),q.getItem()):v!=q&&k.push(new OJc(q.getId(),q,v));l.delete(r)}else{r=rM(q);if(null===(e=_.rK(a.context.Nc))||void 0===e?0:_.Q(e,15,!1))null===(f=a.It.O)||void 0===f?void 0:f.update(r);a.H.update(r);a.W.update(r);_.ZI(a.context.Nc)&&a.vq.TO(r)}_.ZI(a.context.Nc)&&jTc(a,q.getItem())}l=_.m(l.values());for(q=l.next();!q.done;q=l.next())k.push(rM(q.value));a.log("Applying "+k.length+" updates to newly added CorpusCache");k=_.m(k);for(l=k.next();!l.done;l=k.next())b.update(l.value);
b instanceof dSc?(k=hN(a,b.ud()),GSc(a,k,b)):a.It.add(b);k=[];h=_.m(h.values());for(l=h.next();!l.done;l=h.next())l=l.value,p=new _.cJ,_.dJ(p,l.getId()),p.setItem(l),k.push(p);a.Qo(k);a.log("Merged cache: "+b.getType());b instanceof xM&&c.forEach(function(A){qTc(a.context.xsa,A)});a.context.Is.update(3)},pTc=function(a,b){(new Set([].concat(_.Ad(a.Ky)))).forEach(function(c){b.ii(c);a.jk(c)})};
kN.prototype.yl=function(a,b,c,d,e){var f=this,h;this.log("Importing "+a.length+" items");e||(e=c?[].concat(_.Ad(c.O().filter(function(C){return!_.LK(f.Lg).includes(C)}))):[]);c&&c instanceof _.nf&&_.sK(c)&&rTc(this,a,c);for(var k=[],l=[],p=0;p<a.length;p++){var q=a[p],r=new dM(q,void 0,b),v=this.H.get(q.getId()),z=v?v.getItem():null,A=sTc(this,v,r);if(null!=A)r.cz(A),tTc(this,z,q),QBc(q),q=cIc(q,z,e),r.setItem(q);else if(null!=v)r=v,q=z;else continue;_.ZI(this.context.Nc)&&jTc(this,q);!v||uTc(this,
z,q,e)?(l.push(PJc(v,r)),k.push(r)):k.push(v)}a=null;if(c){if(c instanceof _.nf){if(null===(h=_.rK(this.context.Nc))||void 0===h?0:_.Q(h,15,!1))a=_.Nl(c),1==a.length&&(a=a[0].Za(),(a=this.H.get(a))&&!a.H&&aIc(a,!d));(a=dKc(this.It,c))&&a.yl(k,!!d)}c=hN(this,c);(a=this.O[c])&&a.yl(k,!!d)}0<l.length&&(_.ZI(this.context.Nc)&&l.forEach(function(C){return f.vq.TO(C)}),kTc(this,l,e,a?[a]:[]),vTc(this,k));tRc(this.context).S8()};
var jTc=function(a,b){MKc(a.vq,b)||5!=b.rv()||_.Vvc(b,1)},uTc=function(a,b,c,d){(b=b?_.pb(b.clone(),82):null)&&qRc(a,[b],d);c=_.pb(c.clone(),82);qRc(a,[c],[]);return!_.Zj(b,c)},rTc=function(a,b,c){wTc(a,b,c);b.forEach(function(d,e){var f=a.um.H(d.getId());f&&(wL(f,d,[1002]),wL(f,d,[1003]),wL(f,d,[1005]),b[e]=f);_.QJ(c)&&0<_.fe(c,33).length&&_.Wvc(d,_.fe(c,33)[0])})},wTc=function(a,b,c){var d;_.QJ(c)?d="quick access":_.RJ(c)?d="people predict":_.SJ(c)&&(d="drive priority");c=b.map(function(e){return e.getId()}).join(", ");
a.log("Got "+b.length+" ItemSuggest items for "+d+": "+c)},dRc=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.yl(tCc(d),b)};kN.prototype.nla=function(a){this.oMa.nla(a)};
kN.prototype.Qo=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a[d],f=e.Ck()?null:e.getItem(),h=e.Ac(),k=(h=this.H.get(h))?h.getItem():null,l=null;if(f){l=new dM(f,void 0,void 0,_.y(e,1)||void 0);var p=sTc(this,h,l);if(null==p)continue;l.cz(p);tTc(this,k,f);_.Q(e,5,!1)&&rBc(f,GBc);QBc(f);f=cIc(f,k);l.setItem(f);_.ZI(this.context.Nc)&&jTc(this,f)}if(k&&!f||f&&uTc(this,k,f,[]))this.context.sJa.By(e),c.push(PJc(h,l))}_.ZI(this.context.Nc)&&c.forEach(function(q){return b.vq.TO(q)});kTc(this,
c,[])};var tTc=function(a,b,c){b&&!c.Rm()&&wL(c,b,a.ta);var d=b?b.Ff():null,e=c.Ff();e=e?_.ke(e):null;d&&e&&tTc(a,_.ke(d),e);b&&!_.ll(c)&&wL(c,b,[1002]);b&&!_.ml(c).length&&wL(c,b,[1003]);b&&!_.nl(c).length&&wL(c,b,[1005]);b&&null==c.w1()&&wL(c,b,[71]);b&&null==_.y(c,79)&&wL(c,b,[73]);b&&_.P(b,31)&&!_.P(c,31)&&(rBc(c,GBc),a.log("Cleared Item Suggest data for "+b.getId()+"."))};
kN.prototype.CB=function(a,b){if(a instanceof _.nf||a instanceof _.zA||a instanceof _.yI)a=hN(this,a),(a=this.O[a])&&a.GX(b);else throw Error("sg");};var sTc=function(a,b,c){var d=c.getItem();if(hLc(a.context.nfa,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.rv()&&!eM(a)&&!eM(d)&&a.yc()==d.yc())if(a.hj()&&d.hj()){if(a.hj()>d.hj())return null}else if(b.O&&c.O){if(b.O>c.O)return null}else if(a.yq()>d.yq())return null}return $Hc(b&&b.V,c.V)};
kN.prototype.RH=function(a,b){(a=this.H.get(a))&&a.cz($Hc(a.V,b))};
var kTc=function(a,b,c,d){d=void 0===d?[]:d;var e;if(null===(e=_.rK(a.context.Nc))||void 0===e?0:_.Q(e,15,!1))for(var f=_.m(b),h=f.next();!h.done;h=f.next())h=h.value,h.O&&h.H&&aIc(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())sRc(h.value,b);h=aKc(a.It);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 xM&&f.Ed()>=1.2*f.limit&&xTc(a.context.sJa,f.yc(),!1)}b=_.m(b);for(h=b.next();!h.done;h=b.next())h=h.value,_.P(a.context.Nc,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.Is.Zma(d);yTc(a)},yTc=function(a){var b=a.W.O.slice(0),c=XSc(a.W);YSc(a.W);if(b.length){a.log("Refreshing shortcuts with unknown targets: "+b.join(", "));var d=new _.Cf;_.Df(d,308);a.tI.jO(b,d,!0)}if(c.length){a.log("Updating locally stale shortcuts: "+
c.join(", "));b=oIc(a.um,c);var e=[];Object.values(b).forEach(function(f){var h=f.getItem().Ff(),k=_.y(h,1);if(k=a.um.H(k))_.I(h,5,k),_.w(h,4,1),e.push(f)});dRc(a,e)}},zTc=function(a){tRc(a.context).S8();a.H.rJ()},nTc=function(a,b){_.Ga(b.O());var c=_.ma(b.mn(),"root");if(0>c)return b;b=b.clone();b.mn()[c]=a.context.$n();return b},hTc=function(a,b){var c;null!==(c=_.rK(a.context.Nc))&&void 0!==c&&_.Q(c,1,!1)||(b=LFc(a.Lg,b),a=a.V,fIc(a,a.items,a.fields,b))},lTc=function(a,b){var c;if(null===(c=_.rK(a.context.Nc))||
void 0===c?0:_.Q(c,1,!1))b=LFc(a.Lg,b),a=a.V,fIc(a,a.items,a.fields,b)},vTc=function(a,b){a.ha.promise.then(function(){var c=b.filter(function(e){return 4==e.getItem().rv()});if(c.length){c=c.map(function(e){return e.getId()});a.log("Refreshing "+c.length+" partial items. "+c);var d=_.Df(new _.Cf,311);a.tI.jO(c,d)}})},PSc=function(a,b){a.ha.promise.then(function(){for(var c={},d=_.m(b),e=d.next();!e.done;c={e5:c.e5,Cqa:c.Cqa},e=d.next()){e=e.value;if(dKc(a.It,e))break;c.e5=new tM(a.context.nt,a.context.yv,
a.context.wm,e);e=new PRc(a.context,c.e5,e);c.Cqa=BM(a.context.Dz,null);_.ci(e.Zg().then(function(f){return function(){SRc(f.e5,f.Cqa).then(function(h){VRc(a,f.e5,h)})}}(c)),function(){sLc(a.context.Dz,null)})}})};kN.prototype.Xn=function(){var a=this.It.H;return a&&a.UE?1:2};kN.prototype.log=function(a,b){this.context.Qf().log("drive.ds.sync.cache.CacheManager",a,void 0===b?"info":b)};var GSc=function(a,b,c){a.O[b]=c;a.log(b+" | Set cache with "+c.Ed()+" items")},iTc=[50];
var BTc=function(a){_.O.call(this);var b=this;this.context=a;this.H=[];this.V=new _.sl;this.O=new Map;this.ka=-1;this.ha=0;var c=_.ai();this.va=c.promise;gNc(this.context.tD).then(function(d){b.H=d||[];c.resolve();ATc(b)},function(){return c.resolve()});pM(this.context.Rj,["rVezo"],(0,_.N)(this.W,this))};_.K(BTc,_.O);
var USc=function(a,b){_.Q(a.context.Nc,46,!1)&&a.va.then(function(){if(a.H[0]!==b){_.ta(a.H,b);for(dIc(a.context.Mf.um.H(b))?a.log(b,"Hidden TD, not tracking in recency list"):_.za(a.H,0,0,b);a.H.length>2*_.ak(a.context.Nc,47,5);)a.H.pop();a.context.tD.set(aNc,a.H)}a.context.Mf.It.WV().length+a.O.size<_.ak(a.context.Nc,47,5)&&(ATc(a),a.W())})},CTc=function(a,b){_.ta(a.H,b)&&a.context.tD.set(aNc,a.H)};
BTc.prototype.By=function(a){qTc(this.context.xsa,a);if(eM(a)){var b=a.yc();a.Ck()?xTc(this,b,!0):(a=a.getItem(),dIc(a)&&CTc(this,b))}};var xTc=function(a,b,c){CTc(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.Mf.It;for(var e=d.WV(),f=0;f<e.length;f++){var h=e[f];if(h.yc()===b){a.log(b,"Cache removed");d.remove(h);a.context.Is.update(3);break}}gN(a.context).addCallback(function(k){k.UGa(b,c)});a.W()};
BTc.prototype.W=function(){if(this.context.Rj.H("rVezo")){var a=this.context.Mf.It;DTc(this);for(var b={};this.V.$b()&&!(this.ha>=_.ak(this.context.Nc,47,5));){var c=_.tl(this.V);this.ha++;cKc(a,c)||this.O.has(c)||(this.O.set(c,null),b.Fea=new _.Suc,_.w(b.Fea,1,c),this.context.Sm().then(function(d){return function(e){return e.Pe(d.Fea)}}(b)).then(this.ta.bind(this,c),this.ma.bind(this,c)));b={Fea:b.Fea}}}};
var ATc=function(a){a.H&&a.H.length&&(a.ha=0,a.V.clear(),a.H.forEach(function(b){a.V.enqueue(b)}))},DTc=function(a){_.n.clearTimeout(a.ka);a.ka=_.n.setTimeout(function(){ATc(a);a.W()},36E5)};BTc.prototype.ta=function(a,b){var c=_.y(b,1);c&&c>_.ak(this.context.Nc,48,1E3)?(this.log(a,"Too large to backfill: "+_.y(b,1)),ETc(this,a,!1)):FTc(this,a)};
BTc.prototype.ma=function(a,b){(b=_.gJ(b).zk())&&4===b?(this.log(a,"Non-existent or inaccessible, removing from cache"),a=_.mJ(_.cuc(_.dJ(new _.cJ,a),a)),this.context.Mf.Qo([a])):FTc(this,a)};
var FTc=function(a,b){var c=new xM(a.context.nt,a.context.yv,b),d=c.ud().clone();d.ui(_.ak(a.context.Nc,48,1E3));d=new PRc(a.context,c,d);a.O.set(b,d);a.log(b,"Backfill started");var e=BM(a.context.Dz,b);gN(a.context).addCallback(function(f){f.bva(b)});_.ci(d.Zg().then(function(){GTc(a,b,c,e)},function(){a.log(b,"Backfill failed");a.ha--;ETc(a,b,!0)}),function(){sLc(a.context.Dz,b)})},GTc=function(a,b,c,d){c.UE?(c.YW(),SRc(c,d).then(function(e){a.log(b,"Backfill complete, size: "+c.Ed());VRc(a.context.Mf,
c,e);ETc(a,b,!1)},function(){a.log(b,"Backfill changes failed");ETc(a,b,!0)})):(a.log(b,"Backfill exceeded size limit"),ETc(a,b,!0))},ETc=function(a,b,c){var d=a.O.get(b);d&&d.dispose();a.O.delete(b);c&&gN(a.context).addCallback(function(e){e.UGa(b,!1)});a.W();0<a.O.size||a.context.Mf.It.WV().map(function(e){return e.yc()}).filter(function(e){return!a.H.includes(e)}).forEach(function(e){xTc(a,e,!0)})};
BTc.prototype.log=function(a,b){this.context.Qf().info("drive.ds.sync.cache.TeamDriveCacheManager",a+" | "+b)};
var HTc=function(){_.O.apply(this,arguments)};_.K(HTc,_.O);
var KTc=function(a,b){b=ITc(b);var c=a.getItem(),d=JTc(c.getCapabilities());b.L3.forEach(function(e){_.S8b(e.getItem(),c.Xo());_.zK(e.getItem(),d.clone())});return b},NTc=function(a,b,c){var d=LTc(c);c=c.find(function(e){return e.getId()===b.getId()});c={pK:c?c:new dM(b),children:[]};MTc(a,d,c);return c},LTc=function(a){var b={};a=_.m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=_.m(c.getItem().vk()),e=d.next();!e.done;e=d.next())e=e.value,b[e]||(b[e]=[]),b[e].push(c)}return b},MTc=
function(a,b,c){var d=c.pK.getItem();(b[d.getId()]||[]).forEach(function(e){c.children.push(MTc(a,b,{pK:e,parent:c,children:[]}))});return c},PTc=function(a,b){b=b.children.filter(function(l){return!_.kl(l.pK.getItem())});for(var c=new Map,d=[];b.length;){var e=b.pop(),f=e.pK.getItem();if(!c.has(f.getId())){_.S8b(f,a.Xo());OTc(a,f,e.parent?e.parent.pK.getItem():void 0);for(var h=_.m(e.children),k=h.next();!k.done;k=h.next())k=k.value,_.kl(k.pK.getItem())||b.push(k);c.set(f.getId(),!0);d.push(e.pK)}}return d},
QTc=function(a){a=a.children.filter(function(h){return!_.kl(h.pK.getItem())});for(var b=new Map,c=[];a.length;){var d=a.pop(),e=d.pK.getItem();if(!b.has(e.getId())){c.push(_.mJ(_.dJ(new _.cJ,e.getId())));d=_.m(d.children);for(var f=d.next();!f.done;f=d.next())f=f.value,_.kl(f.pK.getItem())||a.push(f);b.set(e.getId(),!0)}}return c},ITc=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();_.kl(e)||_.P(e,137)?c.push(e):b.push(d)}return{mQ:c,L3:b}},JTc=
function(a){a=a.clone();var b=null!=_.P(a,34)?_.P(a,34):_.P(a,7),c=null!=_.P(a,35)?_.P(a,35):_.P(a,7);_.w(a,45,c);_.Cvc(a,b);_.w(a,30,c);_.xvc(a,b);_.Dvc(a,c);_.yvc(a,c);_.zvc(a,b);_.kvc(a,b);_.pvc(a,c);_.vvc(a,b);_.uvc(a,_.P(a,7));_.ovc(a,_.P(a,10)||_.P(a,11));_.wvc(a,_.Yk(a));_.pb(a,18);_.pb(a,13);_.pb(a,10);_.Avc(a,_.P(a,42));_.Bvc(a,_.P(a,43));_.Evc(a,_.P(a,48));return a},OTc=function(a,b,c){var d=a.getCapabilities(),e=b.getCapabilities(),f=_.P(d,30);_.w(e,30,f);_.xvc(e,_.P(d,31));_.Dvc(e,_.P(d,
47));_.yvc(e,_.P(d,32));_.zvc(e,_.P(d,33));_.kvc(e,_.P(d,4));_.pvc(e,_.P(d,9));_.wvc(e,_.P(d,21));_.vvc(e,_.P(d,20));_.uvc(e,_.P(d,17));_.jvc(e,_.Yk(d));_.nvc(e,_.P(d,7));_.qvc(e,_.P(d,10));_.rvc(e,_.P(d,11));f=_.P(d,45);_.w(e,45,f);_.Cvc(e,_.P(d,46));_.Evc(e,_.P(d,48));a=_.kl(a);_.w(b,137,a);c&&(c=c.getCapabilities(),yL(b)?(_.ovc(e,_.P(c,43)),_.Bvc(e,_.P(c,43)),_.Avc(e,_.P(c,42))):_.ovc(e,_.P(c,42)))};
var RTc=function(a){this.context=a;this.V=new HTc;this.O=_.Df(new _.Cf,306);this.H=a.Mf},qTc=function(a,b){if(eM(b))b.Ck()?STc(a,b):TTc(a,b);else if(_.Q(a.context.Nc,86,!1)){var c=b.Ac(),d=a.H.um.H(c);var e=d&&d.yc();var f=b.getItem()&&b.getItem().yc();if(!d||!e||!yL(b.getItem()||d)||f&&f!==e)e=!1;else if(e=!!_.kl(d),!b.Ck()){var h=b.getItem();f=_.kl(d)!==_.kl(h);h=h.Xo()!==d.Xo();e=f||e&&h}if(e)if(b.Ck()){if(b=UTc(a,d.yc()),d=a.V,e=(new _.hl).Ob(c),b=(b=NTc(d,e,b))?QTc(b):[],a.context.Mf.Qo(b),a.log(c,
"SD shared folder delete | Removed "+b.length+" item(s)"),a=LL(a.context.rk(),106009))c=NFc(a),_.w(c,2,b.length),a.zj()}else if(c=b.getItem(),d=UTc(a,c.yc()),e=a.V,c=b.getItem(),c=(d=NTc(e,c,d))?PTc(c,d):[],dRc(a.context.Mf,c),a.log(b.Ac(),"SD shared folder update | Updated "+c.length+" item(s)"),a=LL(a.context.rk(),106010))b=NFc(a),_.w(b,1,c.length),a.zj()}},STc=function(a,b){var c=b.Ac();b=UTc(a,c);b=ITc(b);var d=_.lf(b.L3,function(e){return _.mJ(_.dJ(new _.cJ,e.getId()))});a.context.Mf.Qo(d);a.H.tI.jO(b.mQ.map(function(e){return e.getId()}),
a.O,void 0,void 0,b.mQ.map(function(e){return _.Kl((new _.Jl).Ob(e.getId()),_.pl(e))}));a.log(c,"SD delete | Remove "+d.length+" item(s), "+(b.mQ.length+" divergent items"));if(a=LL(a.context.rk(),106016))c=OFc(a),_.w(c,1,b.mQ.length),_.w(c,2,b.L3.length),a.zj()},TTc=function(a,b){var c=b.Ac(),d=UTc(a,c),e=a.H.um.H(c);b=KTc(b,d);dRc(a.context.Mf,b.L3);a.H.tI.jO(b.mQ.map(function(h){return h.getId()}),a.O,void 0,void 0,b.mQ.map(function(h){return _.Kl((new _.Jl).Ob(h.getId()),_.pl(h))}));a.log(c,"SD update | Update "+
b.L3.length+" item(s), "+(b.mQ.length+" divergent items"));if(d=LL(a.context.rk(),106017)){var f=OFc(d);_.w(f,1,b.mQ.length);_.w(f,2,b.L3.length);d.zj()}e||ORc(a.H.tI,c)},UTc=function(a,b){var c=new _.nf;_.Ql(c,[b]);_.Rl(c,2);return qIc(a.H.um,c)};RTc.prototype.log=function(a,b){this.context.Qf().info("drive.ds.sync.change.TdChangeProcessor",a+": "+b)};
var VTc=function(a,b,c){this.H=a;this.V=b;this.mJ=c};
VTc.prototype.Xw=function(a,b){var c=this;if(a.zV().length){var d=dLc(this.H,a.Ac());if(d){var e=d?eLc(this.H,a):[];for(var f={},h=_.m(a.zV()),k=h.next();!k.done;f={tL:f.tL},k=h.next())if(k=k.value,f.tL=WTc(e,k.Nm(),a.Ac()),_.P(k,3))kLc(this.H,f.tL),_.ci(b,function(r){return function(){c.H.O.W(UKc(r.tL))}}(f));else{for(var l=_.m(_.Oj(k,_.CG,2)),p=l.next();!p.done;p=l.next())XTc(this,f.tL,p.value);k=_.m(_.fe(k,4));for(l=k.next();!l.done;l=k.next())YTc(f.tL,l.value);this.H.nD([f.tL],!1,-1);b.then(function(r){return function(){return void c.H.RH(r.tL.getName(),
-2)}}(f),function(r){return function(){c.H.RH(r.tL.getName(),-2)}}(f))}e=this.jd(d.ek().response)}}e=e?e:this.jd();var q=e.E3a;b.then(function(r){q.resolve(r)},function(r){q.reject(_.SB(r));c.handleError(a.Ac(),r)});return e};VTc.prototype.jd=function(a){a=void 0===a?new mM:a;return new XIc(a.Dc(1))};var WTc=function(a,b,c){var d=a.find(function(e){return TKc(e.getName(),b)});d||(d=pHc((new XL).hd(b),c),a.push(d));return d};
VTc.prototype.handleError=function(a,b){oLc(this.V,a);a=_.gJ(b);_.w(a,21,"Server error updating metadata after optimistic application.");this.mJ(a)};
var XTc=function(a,b,c){var d=b.O().find(function(e){return e.getId()===c.getId()});d||(d=new UL,d.Ob(c.getId()),oHc(b,b.O().concat([d])),ZTc(d,c));if(1===VL(d))d.setBooleanValue(_.P(c,3));else if(12===VL(d))d.setDateStringValue(_.y(c,17));else if(2===VL(d))d.setTextValue(_.y(c,4));else if(3===VL(d))_.fe(c,6).length?d.Moa(_.fe(c,6)):_.fe(c,5).length&&(a=_.fe(d,7).concat(_.fe(c,5)),d.Moa(a));else if(4===VL(d))d.setLongTextValue(_.y(c,7));else if(5===VL(d))d.setSelectionValue(_.y(c,8));else if(6===
VL(d))_.fe(c,10).length?d.Ioa(_.fe(c,10)):_.fe(c,9).length&&(a=d.bMa().concat(_.fe(c,9)),d.Ioa(a));else if(7===VL(d))d.setIntegerValue(_.y(c,11));else if(8===VL(d))_.fe(c,13).length?d.zoa(_.fe(c,13)):_.fe(c,12).length&&(a=_.fe(d,12).concat(_.fe(c,12)),d.zoa(a));else if(10===VL(d))d.setUserValue(a.O(_.y(c,14)));else if(11===VL(d))_.fe(c,16).length?lHc(d,_.fe(c,16).map(a.O)):_.fe(c,15).length&&lHc(d,d.CWa().concat(_.fe(c,15).map(a.O)));else throw d="Optimistic Applier: Unsupported value type "+(VL(d)+
"."),new _.Dc(d,new _.Cc);},YTc=function(a,b){if(a=a.O().find(function(c){return c.getId()===b}))if(1===VL(a))_.pb(a,5);else if(12===VL(a))_.pb(a,17);else if(2===VL(a))_.pb(a,6);else if(3===VL(a))_.OI(a,7);else if(4===VL(a))_.pb(a,8);else if(5===VL(a))_.pb(a,9);else if(6===VL(a))_.OI(a,10);else if(7===VL(a))_.pb(a,11);else if(8===VL(a))_.OI(a,12);else if(10===VL(a))_.Jj(a,15);else if(11===VL(a))_.Lj(a,16);else throw a="Optimistic Applier: Unsupported value type "+(VL(a)+"."),new _.Dc(a,new _.Cc);
},ZTc=function(a,b){_.Cj(b,3)?a.XA(1):_.Cj(b,17)?a.XA(12):_.Cj(b,4)?a.XA(2):_.fe(b,6).length||_.fe(b,5).length?a.XA(3):_.Cj(b,7)?a.XA(4):_.Cj(b,8)?a.XA(5):_.fe(b,10).length||_.fe(b,9).length?a.XA(6):_.Cj(b,11)?a.XA(7):_.fe(b,13).length||_.fe(b,12).length?a.XA(8):_.Cj(b,14)?a.XA(10):(_.fe(b,16).length||_.fe(b,15).length)&&a.XA(11)};VTc.prototype.O=function(a){return _.hvc(_.fvc(1),a)};
var $Tc=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.Lg=f;this.W=0;this.V=k;this.ma=l;this.Ba=h};$Tc.prototype.apply=function(a,b){var c=this;if(!_.qK(a))return b;var d=null;a instanceof _.EJ?d=aUc(this,a,b):a instanceof _.LJ?d=bUc(this,a,b):a instanceof _.iJ?d=this.Xw(a,b):a instanceof _.zJ?d=cUc(this,a,b):a instanceof _.gK&&(d=this.va.Xw(a,b));d&&(this.W++,this.ha.setActive(!1),_.ci(b,function(){c.W--;0==c.W&&c.ha.setActive(!0)}));return d?_.Yh(d):b};
var aUc=function(a,b,c){gLc(a.O,b.getId());var d=a.H.um.H(b.getId());_.ci(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=_.gJ(e);_.w(e,21,"Server error deleting item after optimistic application.");a.V(e)});return(new _.pK).Dc(1)},bUc=function(a,b,c){var d=_.y(b,2);d&&a.O.H.push(d);c.then(function(){d&&iLc(a.O,d)&&_.ci(dUc(a,d,new _.cyc(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=_.gJ(e);_.w(e,21,"Server error emptying trash after optimistic application.");a.V(e)});return(new _.pK).Dc(1)},dUc=function(a,b,c,d,e){if(Date.now()>d||0>=e)return _.Yh();var f=_.ai(),h=c.Za();_.GI(c);setTimeout(function(){a.ka.then(function(k){var l=_.Df(new _.Cf,1425);l=sCc(!0,1,l);return k.Pe(l).then(function(p){if(p=p.jd())if(p=p.wd()[0],!p||(p.Zv()||0)>b){f.resolve();return}_.ci(dUc(a,b,c,d,e),function(){return void f.resolve()})},function(){return _.ci(dUc(a,b,
c,d,e-1),function(){return void f.resolve()})})})},h);return f.promise},cUc=function(a,b,c){var d=b.yc(),e=a.H.um.H(d);if(!e)return null;e=e.clone();qRc(a.H,[e],[157]);var f=e.ig();eUc(f,_.Oj(b,_.fl,2));fUc(f,_.Oj(b,_.fl,3));a.H.yl([e],-1,void 0,void 0,[157]);_.ci(c,function(){a.H.RH(d,-2)}).then(function(h){a.H.yl([_.B(h,_.hl,2)],1,void 0,void 0,[157])},null);c.then(null,function(h){h=_.gJ(h);_.w(h,21,"Server error updating item after optimistic application.");a.V(h)});return ZOc(new YOc,e).Dc(1)},
eUc=function(a,b){var c={};b=_.m(b);for(var d=b.next();!d.done;c={vea:c.vea},d=b.next())c.vea=d.value,_.Oj(a,_.fl,8).some(function(e){return function(f){return f.Nm()==e.vea.Nm()}}(c))||_.Xj(a,8,c.vea,_.fl,void 0)},fUc=function(a,b){var c=b.map(function(d){return d.Nm()});b=_.Oj(a,_.fl,8).filter(function(d){return!c.includes(d.Nm())});zBc(a,b)};
$Tc.prototype.Xw=function(a,b){var c=this,d=this.H.um.H(a.getId());if(!d||d.yc()&&0==a.Wh()||null!=_.P(a,40))return null;var e=_.fe(a,10),f=_.fe(a,9);if(0<e.length&&0<f.length&&(e=Object.values(pIc(this.H.um,e.concat(f))).map(function(k){return k.yc()||"root"}),_.Da(e),1<e.length))return null;var h=d.clone();gUc(this,a,h);this.H.yl([h],-1,void 0,void 0,JFc(this.Lg));b.then(function(){return c.H.RH(a.getId(),-2)},function(){c.H.RH(a.getId(),-2);c.ta(a.getId(),d)});b.then(null,function(k){k=_.gJ(k);
if(63==k.zk()){var l=h.getId();_.w(k,22,l);_.w(k,23,f[0])}_.w(k,21,"Server error updating item after optimistic application.");c.V(k)});return _.Nwc((new _.pK).setItem(h),h.getId()).Dc(1)};
var gUc=function(a,b,c){null!=b.Bf()&&c.Xl(b.Bf());null!=b.Yi()&&_.Svc(c,b.Yi());null!=b.getMimeType()&&_.KG(c,b.getMimeType());null!=_.y(b,7)&&_.R8b(c,_.y(b,7));null!=_.P(b,11)&&_.Mvc(c,_.P(b,11));null!=_.P(b,4)&&c.Jv(_.P(b,4));null!=_.P(b,16)&&_.Rvc(c,_.P(b,16));null!=b.getTitle()&&c.setTitle(b.getTitle());null!=b.Wh()&&(c.Mn(b.Wh()),_.Qvc(c,b.Wh()));null!=_.P(b,18)&&_.tL(PBc(c,!0),_.P(b,18));_.fe(b,8).length&&_.yK(c,_.fe(b,8));if(_.fe(b,9).length){var d=new Set(c.vk());_.fe(b,9).forEach(function(p){return d.add(p)});
_.yK(c,[].concat(_.Ad(d)))}if(_.fe(b,10).length){var e=new Set(c.vk());_.fe(b,10).forEach(function(p){return e.delete(p)});_.yK(c,[].concat(_.Ad(e)));var f=c.Bw();f&&_.fe(b,10).includes(f)&&_.pb(c,46)}if(!c.Bw()){var h=a.Ba();f=c.vk().find(function(p){var q=a.H.um.H(p);return q&&!!q.Bw()||p==h});_.w(c,46,f||void 0)}c.vk().length&&(f=a.H.um.H(c.vk()[0]))&&_.Wvc(c,f.yc());if(f=_.B(b,_.Zk,25)){var k=_.B(c,_.Zk,111)||new _.Zk;null!=_.P(f,1)&&_.Gvc(k,_.P(f,1));null!=_.y(f,2)&&_.Hvc(k,_.y(f,2));_.I(c,111,
k)}var l=_.fe(c,120);_.fe(b,31).forEach(function(p){l.includes(p)||l.push(p)});_.fe(b,32).forEach(function(p){_.ta(l,p)});_.Ij(c,120,l)};$Tc.prototype.ta=function(a,b){var c=this,d=_.BA(new _.zA,[a]);this.ka.then(function(e){return e.Pe(d)}).then(function(e){e=e.jd().wd()[0];c.H.yl([e.clone()],1)},function(){b&&c.H.yl([b.clone()],1)})};
var hUc=function(a){this.H=a};_.K(hUc,_.Rzc);hUc.prototype.execute=function(a,b,c){var d=_.Rzc.prototype.execute.call(this,a,b,c);if(d)return d;if(c.FKa||b instanceof _.$I&&_.sK(b.ud()))if(c=bGc(this.H))return c;return b instanceof _.LJ?(c=_.Df(new _.Cf,1424),a.Pe(sCc(!1,1,c)).then(function(e){(e=e.jd())&&(e=e.wd()[0])&&_.Cj(e,96)&&b.Mca(e.Zv())},function(){})):null};
var FCc=function(a,b){return[iUc,jUc,kUc,lUc].reduce(function(c,d){var e;0!==c?e=c:e=_.Ea(d(a),d(b));return e},0)},iUc=function(a){return mUc[a.yf()]},jUc=function(a){return nUc[a.getType()]},kUc=function(a){return a.getName()||""},lUc=function(a){return a.getId()||""},lN={},mUc=(lN[5]=0,lN[7]=1,lN[1]=2,lN[3]=3,lN[4]=4,lN[2]=5,lN[6]=6,lN),oUc={},nUc=(oUc[1]=0,oUc[2]=1,oUc[3]=2,oUc[4]=3,oUc);
var pUc=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.Lg=l};
pUc.prototype.apply=function(a,b){var c=this;if(!(b instanceof _.pK&&8===b.Bb()))if(a instanceof _.yJ||a instanceof _.AJ||a instanceof _.Iuc||a instanceof _.XJ||a instanceof _.iJ||a instanceof _.iK||a instanceof _.Quc||a instanceof _.kK||a instanceof _.AL){var d=_.lJ(b.getItem().clone(),9);this.H.yl([d],1);KLc(this.ta,b.getItem(),_.LK(this.Lg))}else if(a instanceof _.EJ)b=_.mJ(_.dJ(new _.cJ,a.getId())),this.H.Qo([b]);else if(a instanceof _.HJ)b=_.mJ(_.cuc(_.dJ(new _.cJ,a.getId()),a.getId())),this.H.Qo([b]),
qTc(this.ma,b);else if(a instanceof _.LJ)b=sCc(!0).ud(),b=this.H.um.query(b).map(function(e){return _.mJ(_.dJ(new _.cJ,e.getId()))}),this.H.Qo(b);else if(a instanceof _.CJ)this.O.remove(a.Mh());else if(a instanceof _.OJ||a instanceof _.fK)this.O.put(b.vr());else if(a instanceof _.FJ)ECc(this.H,a);else if(a instanceof _.XD)this.W.remove(a.getKey());else if(a instanceof _.PJ)GCc(this.H,a,_.B(b,_.Rk,2));else if(a instanceof _.YD)this.W.put(b.kMa());else if(a instanceof _.BJ||a instanceof _.jK)this.ha.nD([b.nn()],
!1);else if(a instanceof _.IJ)this.ha.nD([lLc(a.getId())],!1);else if(a instanceof _.Huc)this.V.nD(b.response.O(),!1,1);else if(a instanceof _.gK)a.zV().filter(function(e){return _.P(e,3)}).forEach(function(e){return c.V.removeItem(e.Nm()||"",a.Ac())}),oLc(this.ka,a.Ac()),this.H.$1a(a.Ac());else if(a instanceof _.QK)for(b=_.m(_.Oj(a,_.rHc,1)),d=b.next();!d.done;d=b.next())switch(d=d.value,d.getFeature()){case 3:case 4:case 1:switch(d=_.B(d,_.YL,2),d.getType()){case 1:case 2:if(d=this.H.um.H(d.Ac()))d=
_.dJ(iFc(),d.getId()).setItem(d.clone()),this.H.Qo([d])}}};
var qUc=function(a){this.H=a};
qUc.prototype.translate=function(a){if(a instanceof _.aK){var b=this.H.H(a.getId());if(!b)return new _.Cc;var c=(new _.iJ).Ob(a.getId());if(b.yc()){var d=b.getCapabilities();_.Ee(d)||_.P(d,9)?c.Mn(!0):_.jJ(c,!1)}else d=a.getParent(),1===b.Xo()?c.Mn(!0):d?(b=this.H.H(d),!b||_.P(b.getCapabilities(),7)?dFc(c,[d]):_.jJ(c,!1)):_.jJ(c,!1);return c}if(a instanceof _.bK)return fFc(eFc(dFc(cFc((new _.iJ).Ob(a.getId()),_.fe(a,2)),_.fe(a,3)),_.P(a,6)),_.Oj(a,_.Jl,8));if(a instanceof _.cK){b=this.H.H(a.getId());
if(!b)return new _.Cc;c=(new _.iJ).Ob(a.getId());b.yc()?(d=b.getCapabilities(),_.Ee(d)||_.P(d,9)?c.Mn(!1):_.jJ(c,!0)):(d=a.getParent(),1===b.Xo()?c.Mn(!1):d?(b=this.H.H(d),!b||_.Yk(b.getCapabilities())?cFc(c,[d]):_.jJ(c,!0)):_.jJ(c,!0));return c}if(a instanceof _.cL)return new _.Iuc(a);if(a instanceof _.WM)return _.fe(a,1).map(function(f){var h=new _.gK;f=_.w(h,1,f);h=a.zV();f=_.Kj(f,2,h);h=a.se();return _.I(f,3,h)});if(a instanceof _.KJ){c=sCc(!1,1).ud();var e=0;this.H.query(c).forEach(function(f){(f=
f.Zv())&&(e=Math.max(e,f))});return WFc(new _.LJ,a).Mca(e)}return a};
var rUc=function(){};rUc.prototype.validate=function(a){var b=null;a instanceof _.TJ?(a=a.getId()||"",_.xe(a)&&(b="Tried to request backup with no id.")):a instanceof _.DJ&&(a=a.getId()||"",_.xe(a)&&(b="Tried to delete backup with no id."));return b?_.gJ(b):null};
var sUc=function(a,b){this.H=a;this.O=b},wUc=function(a,b){_.jL(["drive#about"],b);var c=new _.XM,d=new _.qC;if(b.user){var e=_.lL(a.H,b.user);_.I(d,1,e)}a=tUc(a,b);a=WEc(VEc(_.UEc(new _.mLb,a),b.rootFolderId),b.domainSharingPolicy);b.gsuiteSubscriptionInfo&&(e=b.gsuiteSubscriptionInfo,_.YEc(a,_.JEc(_.IEc((new _.pC).Dc(uUc.get(e.status)),Number(e.trialMillisRemaining)),_.kL(e.trialEndTime))));b.teamDashboardCapabilities&&(e=b.teamDashboardCapabilities,_.ZEc(a,_.LEc(_.KEc(new _.hLb,e.canAdministerTeam),
e.canManageInvites)));b.importFormats&&XEc(a,b.importFormats.map(function(f){var h=new _.TEc;h=_.w(h,1,f.source);return _.Ij(h,2,f.targets)}));b.adminSecureLinkSetting&&$Ec(a,vUc.get(b.adminSecureLinkSetting));_.I(d,3,a);_.UPc(c,d);b=b.largestChangeId;null!=b&&_.w(c,4,Number(b));return c},tUc=function(a,b){var c;var d=new _.lLb;d=_.w(d,1,Number(b.quotaBytesTotal));d=_.w(d,2,Number(b.quotaBytesUsed));d=_.w(d,3,Number(b.quotaBytesUsedAggregate));d=_.w(d,4,Number(b.quotaBytesUsedInTrash));d=_.PEc(_.OEc(_.NEc(_.MEc(d,
ICc(b.quotaBytesByService||[])),b.quotaType?xUc.get(b.quotaType):void 0),Number(b.quotaBytesTotal)),"-1"===b.quotaBytesTotal?-1:Math.max(Number(b.quotaBytesTotal)-Number(b.quotaBytesUsedAggregate),0));var e=Number(b.quotaBytesUsedAggregate)-KCc(b);d=_.w(d,9,e);d=_.QEc(d,Number(b.quotaBytesUsedAggregate));d=_.w(d,11,Number(b.quotaBytesUsedInTrash));d=_.w(d,13,_.MBc(Number(b.quotaBytesUsedAggregate),Number(b.quotaBytesTotal)));d=_.REc(d,yUc.get(b.quotaStatus)||0);if(b.graceQuotaInfo&&b.graceQuotaInfo.endDate){e=
new _.kLb;var f=_.Z7a(new Date(b.graceQuotaInfo.endDate));e=_.I(e,1,f);e=_.w(e,2,Number(b.graceQuotaInfo.additionalQuotaBytes));_.I(d,12,e)}if(null===(c=_.rK(a.O))||void 0===c?0:_.Q(c,16,!1)){var h;(a=d.JJ())&&(null===(h=null===b||void 0===b?void 0:b.graceQuotaInfo)||void 0===h?0:h.gracePeriodActive)&&a.setActive(!!b.graceQuotaInfo.gracePeriodActive);h=_.w(d,16,Number(b.individualQuotaBytesTotal));h=_.w(h,17,_.MBc(Number(b.individualQuotaBytesUsedAggregate),Number(b.individualQuotaBytesTotal)));b=
_.w(h,9,Number(b.individualQuotaBytesUsedAggregate))}else b=d;return b},yUc=new Map([["softLimitExceeded",2],["hardLimitExceeded",3],["underLimit",1]]),JCc=new Set(["POOLED_STORAGE","FAMILY"]),uUc=new Map([["isInTrial",1],["hasPaidContract",2],["noSubscription",3],["trialExpired",4]]),HCc=new Map([["DRIVE",1],["FAMILY",4],["GMAIL",2],["PHOTOS",3],["POOLED_STORAGE",5]]),xUc=new Map([["LIMITED",1],["UNLIMITED",2],["POOLED",3]]),vUc=new Map([["unknown",0],["requireLessSecureLinks",1],["removeLessSecureLinks",
2],["userCanChoose",3]]);
var zUc={TYPE_UNSPECIFIED:0,MOBILE:1,SYNC_CLIENT:2,APP:3},AUc={TYPE_UNSPECIFIED:0,MY_DRIVE_ROOT:1,SHARED_DRIVE_ROOT:2,STANDARD_FOLDER:3},BUc={TYPE_UNSPECIFIED:0,USER_DELETION:1,TRASH_AUTO_PURGE:2,MULTIPARENTING_MIGRATION:4},CUc={TYPE_UNSPECIFIED:0,TRASH:1,PERMANENT_DELETE:2},DUc={TYPE_UNSPECIFIED:0,UNTRASH:1,REVIVE:2},EUc={ROLE_UNSPECIFIED:0,OWNER:1,ORGANIZER:2,FILE_ORGANIZER:3,EDITOR:4,COMMENTER:5,VIEWER:6,PUBLISHED_VIEWER:7},FUc={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,
RESOLVED:5,REOPENED:6},GUc={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,RESOLVED:5,REOPENED:6,REASSIGNED:7},HUc={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,ACCEPTED:7,REJECTED:8,ACCEPT_DELETED:9,REJECT_DELETED:10},IUc={TYPE_UNSPECIFIED:0,FLAGGED:1,CLEARED:2},JUc={TYPE_UNSPECIFIED:0,LOADED_FOR_VIEW:1,VIEWED_MORE_CONTENT:2,OPEN_WITH_APP_INITIATED:3},KUc={DOMAIN_VISIBILITY_UNKNOWN:0,DOMAIN_VISIBILITY_CONSUMER:1,DOMAIN_VISIBILITY_SAME_DOMAIN:2,DOMAIN_VISIBILITY_ALL_DOMAINS:3,
DOMAIN_VISIBILITY_RESTRICTED:4},LUc={NAMED_PARTY_UNKNOWN:0,NAMED_PARTY_UNNAMED:1,NAMED_PARTY_NAMED:2},MUc={TYPE_UNSPECIFIED:0,DOWNLOADED:1,DOWNLOAD_INITIATED:2,PRINT_INITIATED:3},NUc={UNSPECIFIED_REFERENCE_TYPE:0,LINK:1,DISCUSS:2},OUc={FEATURE_UNSPECIFIED:0,SHARING_OUTSIDE_DOMAIN:1,DIRECT_SHARING:2,ITEM_DUPLICATION:3,DRIVE_FILE_STREAM:4},PUc={RESTRICTION_UNSPECIFIED:0,UNRESTRICTED:1,FULLY_RESTRICTED:2},QUc={STATUS_UNSPECIFIED:0,IN_PROGRESS:1,COMPLETED:2,CANCELLED:3},RUc={DECISION_UNSPECIFIED:0,APPROVED:1,
DECLINED:2},SUc={TYPE_UNSPECIFIED:0,LABEL_ADDED:1,LABEL_REMOVED:2,LABEL_FIELD_VALUE_CHANGED:3},TUc={PUBLISH_MODE_UNSPECIFIED:0,NONE:1,FIXED:2,AUTO:3},UUc={REASON_UNSPECIFIED:0,ORPHAN_REPARENTED:1},aVc=function(a){return a.map(function(b){var c=new _.aQc;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=VUc(e);_.I(c,2,d);break;case "actors":d=WUc(e);_.Kj(c,3,d);break;case "actions":d=XUc(e);_.Kj(c,
4,d);break;case "targets":d=YUc(e);_.Kj(c,5,d);break;case "timestamp":c.O(ZUc(e));break;case "timeRange":d=$Uc(e),_.Wj(c,7,_.ZM,d)}}return c})},XUc=function(a){return a.map(function(b){var c=new _.YPc;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=VUc(e);_.I(c,1,d);break;case "source":d=new ROc;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":_.hk(d,2,zUc[h]);break;case "appId":_.gk(d,1,h)}}_.I(c,2,d);break;case "actor":d=bVc(e);_.I(c,3,d);break;case "target":d=cVc(e);_.I(c,4,d);break;case "timestamp":c.O(ZUc(e));break;case "timeRange":d=$Uc(e),_.Wj(c,6,_.ZPc,d)}}return c})},YUc=function(a){return a.map(function(b){return cVc(b)})},eVc=function(a){return a.map(function(b){return dVc(b)})},fVc=function(a){return a.map(function(b){var c=new _.wOc;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.qg(dVc(e));break;case "shortcut":d=dVc(e),_.I(c,2,d)}}return c})},cVc=function(a){var b=new _.UOc;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=gVc(d);_.Wj(b,1,_.OM,c);break;case "drive":c=new _.SOc;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.hd(f);
break;case "title":c.setTitle(f);break;case "root":e=gVc(f),_.I(c,3,e)}}_.Wj(b,5,_.OM,c);break;case "fileComment":c=new _.TOc;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":_.gk(c,1,f);break;case "legacyDiscussionId":_.gk(c,2,f);break;case "linkToDiscussion":_.gk(c,3,f);break;case "parent":c.qg(gVc(f))}_.Wj(b,3,_.OM,c)}}return b},dVc=function(a){var b=new _.HM;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 fOc;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.hd(f);break;case "title":c.setTitle(f);break;case "driveFile":e=c;f=new dOc;_.Wj(e,8,eOc,f);break;case "driveFolder":e=hVc(f);_.Wj(c,9,eOc,e);break;case "driveShortcut":e=iVc(f),_.Wj(c,10,eOc,e)}}_.Wj(b,1,gOc,c);break;case "drive":c=jVc(d),_.Wj(b,3,gOc,c)}}return b},
gVc=function(a){var b=new _.cOc;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.hd(d);break;case "title":b.setTitle(d);break;case "mimeType":_.gk(b,6,d);break;case "version":_.fk(b,5,d);break;case "owner":c=new ZNc;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=kVc(f);_.I(c,3,e);break;case "user":e=mN(f);_.Wj(c,
1,_.YNc,e);break;case "drive":e=jVc(f),_.Wj(c,4,_.YNc,e)}}_.I(b,7,c);break;case "driveFile":c=new dOc;_.Wj(b,8,$Nc,c);break;case "driveFolder":c=hVc(d);_.Wj(b,9,$Nc,c);break;case "driveShortcut":c=iVc(d),_.Wj(b,10,$Nc,c)}}return b},jVc=function(a){var b=new XNc;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.hd(d);break;case "title":b.setTitle(d)}}return b},hVc=function(a){var b=new aOc;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":_.hk(b,6,AUc[d])}}return b},iVc=function(a){var b=new bOc;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":_.gk(b,1,d);break;case "targetMimeType":_.gk(b,2,d)}}return b},WUc=function(a){return a.map(function(b){return bVc(b)})},bVc=function(a){var b=new _.QOc;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=mN(d);_.Wj(b,1,_.NM,c);break;case "anonymous":c=new NOc;_.Wj(b,2,_.NM,c);break;case "impersonation":c=new _.OOc;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=mN(f),_.I(c,1,e)}}_.Wj(b,3,_.NM,c);break;case "system":c=new _.POc;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":_.hk(c,1,BUc[f])}_.Wj(b,4,_.NM,c);break;case "administrator":c=new _.MOc,_.Wj(b,5,_.NM,c)}}return b},lVc=function(a){return a.map(function(b){return mN(b)})},mN=function(a){var b=new _.ENc;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 _.CNc;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":_.gk(c,1,f);break;case "isCurrentUser":_.ek(c,2,f);break;case "displayName":_.gk(c,3,f);break;case "photoUrl":c.Ln(f)}}_.Wj(b,2,_.BNc,c);break;case "unknownUser":c=new FNc;_.Wj(b,4,_.BNc,c);break;case "deletedUser":c=new _.DNc,_.Wj(b,3,_.BNc,c)}}return b},ZUc=function(a){var b=(new Date(a)).getTime();a=Math.floor(b/1E3);b=b%1E3*1E6;return _.Y7a((new _.Ky).setSeconds(a),b)},$Uc=function(a){var b=new _.YM;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.oY(ZUc(d));break;case "endTime":b.zO(ZUc(d))}}return b},kVc=function(a){var b=new _.WNc;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.hd(d);break;case "legacyId":_.gk(b,3,d);break;case "audienceDisplayName":_.gk(b,4,d)}}return b},VUc=function(a){for(var b=new _.MM,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 _.jOc,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 kOc;_.Wj(z,1,_.hOc,A);break;case "upload":var C=k,G=new lOc;_.Wj(C,2,_.hOc,G);break;case "copy":for(var H=v,L=new _.iOc,M=_.m(Object.entries(H)),T=M.next();!T.done;T=M.next()){var U=_.m(T.value),ca=U.next().value,Z=U.next().value;switch(ca){case "originalObject":var ja=
dVc(Z);_.I(L,1,ja)}}_.Wj(k,3,_.hOc,L)}}_.Wj(b,1,_.LM,k);break;case "edit":var qa=new qOc;_.Wj(b,2,_.LM,qa);break;case "move":for(var Aa=new _.yOc,Ja=_.m(Object.entries(h)),ib=Ja.next();!ib.done;ib=Ja.next()){var Xa=_.m(ib.value),Hb=Xa.next().value,$b=Xa.next().value;switch(Hb){case "addedParents":var Bc=eVc($b);_.Kj(Aa,1,Bc);break;case "removedParents":var td=eVc($b);_.Kj(Aa,2,td);break;case "fromOwnershipTransfer":_.ek(Aa,3,$b);break;case "reparents":var Xd=$b.map(mVc);_.Kj(Aa,4,Xd);break;case "multiparentingMigration":for(var Jd=
$b,qf=new _.xOc,ud=_.m(Object.entries(Jd)),Cb=ud.next();!Cb.done;Cb=ud.next()){var ne=_.m(Cb.value),Xg=ne.next().value,se=ne.next().value;switch(Xg){case "removedParents":var li=eVc(se);_.Kj(qf,2,li);break;case "migratedParents":var Wi=fVc(se);_.Kj(qf,1,Wi)}}_.I(Aa,5,qf)}}_.Wj(b,3,_.LM,Aa);break;case "rename":for(var vf=new _.EOc,Ek=_.m(Object.entries(h)),Vh=Ek.next();!Vh.done;Vh=Ek.next()){var Vf=_.m(Vh.value),Yd=Vf.next().value,Yg=Vf.next().value;switch(Yd){case "oldTitle":_.gk(vf,1,Yg);break;case "newTitle":_.gk(vf,
2,Yg)}}_.Wj(b,4,_.LM,vf);break;case "delete":for(var Nh=new _.oOc,yi=_.m(Object.entries(h)),$k=yi.next();!$k.done;$k=yi.next()){var Wn=_.m($k.value),Am=Wn.next().value,Dh=Wn.next().value;switch(Am){case "type":_.hk(Nh,1,CUc[Dh])}}_.Wj(b,5,_.LM,Nh);break;case "restore":for(var al=new _.FOc,jk=_.m(Object.entries(h)),Zg=jk.next();!Zg.done;Zg=jk.next()){var Pj=_.m(Zg.value),sj=Pj.next().value,kk=Pj.next().value;switch(sj){case "type":_.hk(al,1,DUc[kk])}}_.Wj(b,6,_.LM,al);break;case "permissionChange":for(var Wh=
new _.BOc,Qj=_.m(Object.entries(h)),Rj=Qj.next();!Rj.done;Rj=Qj.next()){var tj=_.m(Rj.value),lk=tj.next().value,bi=tj.next().value;switch(lk){case "addedPermissions":var Bm=nVc(bi);_.Kj(Wh,1,Bm);break;case "removedPermissions":var Sj=nVc(bi);_.Kj(Wh,2,Sj);break;case "resharedPermissions":var mk=nVc(bi);_.Kj(Wh,3,mk);break;case "otherActivePermissions":var Cl=nVc(bi);_.Kj(Wh,4,Cl)}}_.Wj(b,7,_.LM,Wh);break;case "comment":for(var Tj=new _.VNc,wn=_.m(Object.entries(h)),bl=wn.next();!bl.done;bl=wn.next()){var cl=
_.m(bl.value),Af=cl.next().value,Uj=cl.next().value;switch(Af){case "post":for(var em=Uj,Dl=new _.SNc,fm=_.m(Object.entries(em)),qc=fm.next();!qc.done;qc=fm.next()){var Vj=_.m(qc.value),Oh=Vj.next().value,nk=Vj.next().value;switch(Oh){case "subtype":_.hk(Dl,1,FUc[nk])}}_.Wj(Tj,1,_.RNc,Dl);break;case "assignment":for(var Ph=Uj,mi=new _.TNc,eg=_.m(Object.entries(Ph)),Fk=eg.next();!Fk.done;Fk=eg.next()){var Hp=_.m(Fk.value),Qh=Hp.next().value,Eh=Hp.next().value;switch(Qh){case "subtype":_.hk(mi,1,GUc[Eh]);
break;case "assignedUser":var xn=mN(Eh);_.I(mi,7,xn)}}_.Wj(Tj,2,_.RNc,mi);break;case "suggestion":for(var uj=Uj,yn=new _.UNc,gm=_.m(Object.entries(uj)),Gk=gm.next();!Gk.done;Gk=gm.next()){var Cm=_.m(Gk.value),Po=Cm.next().value,Ip=Cm.next().value;switch(Po){case "subtype":_.hk(yn,1,HUc[Ip])}}_.Wj(Tj,3,_.RNc,yn);break;case "mentionedUsers":var rr=lVc(Uj);_.Kj(Tj,7,rr)}}_.Wj(b,8,_.LM,Tj);break;case "dlpChange":for(var Nm=new _.nOc,lm=_.m(Object.entries(h)),tk=lm.next();!tk.done;tk=lm.next()){var dp=
_.m(tk.value),Up=dp.next().value,Kq=dp.next().value;switch(Up){case "type":_.hk(Nm,1,IUc[Kq])}}_.Wj(b,9,_.LM,Nm);break;case "view":for(var Nr=new LOc,lu=_.m(Object.entries(h)),Or=lu.next();!Or.done;Or=lu.next()){var Zs=_.m(Or.value),rB=Zs.next().value,sB=Zs.next().value;switch(rB){case "type":_.hk(Nr,1,JUc[sB]);break;case "viewHistoryVisibility":for(var Qy=sB,mu=new KOc,Lq=_.m(Object.entries(Qy)),Mq=Lq.next();!Mq.done;Mq=Lq.next()){var tB=_.m(Mq.value),OD=tB.next().value,qx=tB.next().value;switch(OD){case "domainPolicyVisibilityState":_.hk(mu,
1,KUc[qx]);break;case "namedPartyState":_.hk(mu,2,LUc[qx])}}_.I(Nr,2,mu)}}_.Wj(b,10,_.LM,Nr);break;case "download":for(var Ry=new pOc,rx=_.m(Object.entries(h)),sx=rx.next();!sx.done;sx=rx.next()){var tx=_.m(sx.value),$s=tx.next().value,at=tx.next().value;switch($s){case "type":_.hk(Ry,1,MUc[at])}}_.Wj(b,11,_.LM,Ry);break;case "reference":for(var il=new _.wNc,Pr=_.m(Object.entries(h)),Pl=Pr.next();!Pl.done;Pl=Pr.next()){var uB=_.m(Pl.value),PD=uB.next().value,Sy=uB.next().value;switch(PD){case "type":_.hk(il,
1,NUc[Sy]);break;case "context":for(var Li=Sy,Ty=new vNc,Nq=_.m(Object.entries(Li)),Vp=Nq.next();!Vp.done;Vp=Nq.next()){var IG=_.m(Vp.value),X7=IG.next().value,dK=IG.next().value;switch(X7){case "description":Ty.Xl(dK);break;case "url":_.gk(Ty,2,dK)}}_.I(il,2,Ty)}}_.Wj(b,12,_.LM,il);break;case "settingsChange":for(var Kg=new _.IOc,gT=_.m(Object.entries(h)),ux=gT.next();!ux.done;ux=gT.next()){var mm=_.m(ux.value),vB=mm.next().value,hT=mm.next().value;switch(vB){case "restrictionChanges":var vO=oVc(hT);
_.Kj(Kg,1,vO)}}_.Wj(b,13,_.LM,Kg);break;case "approvalChange":for(var mo=new _.INc,h_=_.m(Object.entries(h)),wO=h_.next();!wO.done;wO=h_.next()){var nu=_.m(wO.value),QD=nu.next().value,Uy=nu.next().value;switch(QD){case "approvalName":_.gk(mo,2,Uy);break;case "approvalEventNames":_.Ij(mo,3,Uy);break;case "initiator":var iT=mN(Uy);_.I(mo,4,iT);break;case "reviewers":var Y7=lVc(Uy);_.Kj(mo,5,Y7);break;case "status":mo.Dc(QUc[Uy]);break;case "dueTime":var i_=ZUc(Uy);_.I(mo,7,i_);break;case "approvalRequested":var Vy=
mo,vx=new JNc;_.Wj(Vy,8,_.GM,vx);break;case "approvalCancelled":var eK=mo,Z7=new KNc;_.Wj(eK,9,_.GM,Z7);break;case "reviewerResponded":for(var jT=Uy,xO=new _.HNc,j_=_.m(Object.entries(jT)),wB=j_.next();!wB.done;wB=j_.next()){var k_=_.m(wB.value),l_=k_.next().value,m_=k_.next().value;switch(l_){case "reviewerDecision":_.hk(xO,1,RUc[m_])}}_.Wj(mo,10,_.GM,xO);break;case "commentAdded":var AB=mo,az=new LNc;_.Wj(AB,11,_.GM,az);break;case "reviewersChanged":for(var HO=Uy,QG=new NNc,HT=_.m(Object.entries(HO)),
mK=HT.next();!mK.done;mK=HT.next()){var D8=_.m(mK.value),Wza=D8.next().value,E8=D8.next().value;switch(Wza){case "reviewerChanges":var F8=pVc(E8);_.Kj(QG,1,F8)}}_.Wj(mo,12,_.GM,QG);break;case "dueTimeChanged":for(var lrc=Uy,WAb=new PNc,Xza=_.m(Object.entries(lrc)),Yza=Xza.next();!Yza.done;Yza=Xza.next()){var XAb=_.m(Yza.value),YAb=XAb.next().value,n_a=XAb.next().value;switch(YAb){case "oldDueTime":var VD=ZUc(n_a);_.I(WAb,1,VD)}}_.Wj(mo,13,_.GM,WAb)}}_.Wj(b,18,_.LM,mo);break;case "lock":var ZAb=new sOc;
_.Wj(b,15,_.LM,ZAb);break;case "unlock":var $Ab=new JOc;_.Wj(b,16,_.LM,$Ab);break;case "appliedLabelChange":for(var o_a=new _.ANc,p_a=_.m(Object.entries(h)),Zza=p_a.next();!Zza.done;Zza=p_a.next()){var q_a=_.m(Zza.value),r_a=q_a.next().value,aBb=q_a.next().value;switch(r_a){case "changes":var bBb=qVc(aBb);_.Kj(o_a,1,bBb)}}_.Wj(b,19,_.LM,o_a);break;case "publishChange":for(var $za=new _.DOc,cBb=_.m(Object.entries(h)),F_=cBb.next();!F_.done;F_=cBb.next()){var Qia=_.m(F_.value),IT=Qia.next().value,dBb=
Qia.next().value;switch(IT){case "oldPublishState":var mrc=rVc(dBb);_.I($za,1,mrc);break;case "newPublishState":var nrc=rVc(dBb);_.I($za,2,nrc)}}_.Wj(b,20,_.LM,$za);break;case "linkShareMetadataChange":for(var s_a=new _.rOc,nK=_.m(Object.entries(h)),t_a=nK.next();!t_a.done;t_a=nK.next()){var aAa=_.m(t_a.value),eBb=aAa.next().value,u_a=aAa.next().value;switch(eBb){case "securityUpdateEnabled":_.ek(s_a,1,u_a)}}_.Wj(b,21,_.LM,s_a)}}return b},mVc=function(a){var b=new _.uOc;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":_.hk(b,1,UUc[d])}}return b},nVc=function(a){return a.map(function(b){var c=new _.KM;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":_.hk(c,1,EUc[e]);break;case "user":d=mN(e);_.Wj(c,2,_.JM,d);break;case "group":d=new _.IM;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":_.gk(d,1,h);break;case "title":d.setTitle(h)}}_.Wj(c,3,_.JM,d);break;case "domain":d=kVc(e);_.Wj(c,4,_.JM,d);break;case "anyone":d=new zOc;_.Wj(c,5,_.JM,d);break;case "allowDiscovery":_.ek(c,6,e)}}return c})},oVc=function(a){return a.map(function(b){var c=new _.HOc;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":_.hk(c,1,OUc[e]);break;case "newRestriction":_.hk(c,
2,PUc[e])}}return c})},pVc=function(a){return a.map(function(b){var c=new ONc;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=mN(e);_.I(c,3,d);break;case "addedReviewer":d=mN(e),_.I(c,4,d)}}return c})},qVc=function(a){return a.map(function(b){var c=new _.zNc;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":_.gk(c,
1,e);break;case "types":d=sVc(e),_.Ij(c,2,d)}}return c})},sVc=function(a){return a.map(function(b){return SUc[b]})},rVc=function(a){var b=new _.COc;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":_.hk(b,1,TUc[d]);break;case "signinRequired":_.ek(b,2,d);break;case "publishedTime":c=ZUc(d),_.I(b,3,c)}}return b};
var uVc=function(a){return(a.items||[]).map(function(b){return tVc(b)})},vVc=function(a,b){var c=new qPc;b=_.w(c,4,b);a&&"drive#app"==a.kind&&(a=tVc(a),_.I(b,2,a));return b},tVc=function(a){_.jL(["drive#app"],a);var b=(new _.ZL).Ob(a.id);b=_.w(b,3,a.useByDefault).hd(a.name);b=_.w(b,7,a.openUrlTemplate);b=FHc(EHc(b,a.primaryMimeTypes),a.secondaryMimeTypes);b=_.w(b,8,a.createUrl);b=_.w(b,9,a.createInFolderTemplate);b=_.w(b,10,a.objectType);b=_.w(b,11,a.supportsCreate);b=_.w(b,12,a.supportsImport);b=
_.w(b,13,a.supportsMultiOpen);b=_.w(b,27,a.supportsOfflineCreate);b=_.w(b,14,a.installed);b=_.w(b,15,a.authorized);b=_.w(b,16,a.productUrl);b=_.Ij(b,17,a.primaryFileExtensions);b=_.Ij(b,18,a.secondaryFileExtensions);b=_.w(b,19,a.shortDescription);b=_.w(b,20,a.longDescription);b=_.w(b,21,a.productId);b=_.w(b,22,a.removable);var c=wVc.get(a.type);b=_.w(b,23,c);b=_.w(b,25,a.hasAppData);b=_.w(b,26,Number(a.appDataQuotaBytesUsed));b=_.w(b,28,a.requiresAuthorizationBeforeOpenWith);b=_.w(b,30,a.hasDriveWideScope);
b=_.w(b,31,a.driveSource);b=_.w(b,32,a.driveBranded);b=_.w(b,33,a.hidden);b=_.w(b,34,a.supportsMobileBrowser);b=_.w(b,35,a.supportsTeamDrives);b=_.w(b,36,a.hasGsmListing);c=a.icons||[];for(var d=[],e=0;e<c.length;e++){var f=d,h=f.push,k=c[e],l=new _.zHc;l=_.w(l,3,k.iconUrl).setSize(k.size);k.category&&(k=xVc.get(k.category),_.w(l,1,k));h.call(f,l)}_.Kj(b,6,d);c=a.chromeExtensionIds||[];d=[];for(e=0;e<c.length;e++)d.push(c[e]);_.Ij(b,24,d);c=a.rankingInfo||{};a=new _.CHc;d=c.absoluteScore;null!=d&&
_.w(a,1,Number(d));d=yVc(c.mimeTypeScores||[]);_.Kj(a,2,d);c=yVc(c.fileExtensionScores||[]);_.Kj(a,3,c);_.I(b,29,a);return b},yVc=function(a){return a.map(function(b){var c=b.type;b=b.score;var d=new _.AHc;c=_.w(d,1,c);return _.w(c,2,Number(b))})},wVc=new Map([["WEB_ONLY",1],["WEB_AND_CHROME_EXTENSION",2],["CHROME_EXTENSION_ONLY",3]]),xVc=new Map([["application",1],["document",2],["documentShared",3]]);
var AVc=function(a){var b=new rQc;if(!a.backups)return b;a=a.backups.map(function(c){var d=(new _.PM).Ob(c.id).setTitle(c.title);d=_.w(d,3,_.kL(c.updateTime));var e=zVc.get(c.backupSource);d=_.w(d,4,e);d=_.w(d,5,c.iconUri);d=_.w(d,8,_.kL(c.expiryTime));d=_.w(d,9,"boolean"===typeof c.hasGoogleoneBackup?c.hasGoogleoneBackup:!1);if(1===d.lz())e=new WOc,e=_.w(e,1,c.whatsappOngoingBackupEnabled),c=_.w(e,2,c.whatsappPhoneNumber),_.I(d,6,c);else if(2===d.lz()){e=Number(c.deviceAndroidId);var f=new _.VOc;
f=_.w(f,1,c.deviceName);f=_.w(f,2,c.deviceModelName);c=_.w(f,3,c.shouldIncludeSpecialSyncItems);c=_.w(c,4,isNaN(e)?void 0:e);_.I(d,7,c)}return d});_.Kj(b,2,a);return b},CVc=function(a){var b=new nQc;if(!a.backupItems)return b;a=a.backupItems.map(function(c){var d=(new _.QM).Ob(c.id);var e=BVc.get(c.type);d=_.w(d,1,e).setTitle(c.title);d=_.w(d,4,c.iconUri);d=_.XOc(d.setSize(c.size?Number(c.size):void 0),_.kL(c.updateTime));d=_.w(d,7,c.hasCustomBehavior).Xl(c.description);return _.w(d,9,c.ongoingSyncEnabled)});
_.Kj(b,1,a);return b},zVc=new Map([["BACKUP_SOURCE_UNSPECIFIED",0],["BACKUP_SOURCE_WHATSAPP",1],["BACKUP_SOURCE_ANDROID",2]]),BVc=new Map([["TYPE_UNSPECIFIED",0],["TYPE_UNSPECIFIED",0],["TYPE_APP",1],["TYPE_SYNC_CALENDAR",2],["TYPE_SYNC_CONTACTS",3],["TYPE_SYNC_PHOTOS_AND_VIDEOS",4],["TYPE_CALL_HISTORY",5],["TYPE_DEVICE_SETTINGS",6],["TYPE_SMS",7],["TYPE_MMS",8]]);
var DVc=function(a,b){this.H=a;this.O=b};
var EVc=new Map([["READ",2],["WRITE",3],["COMMENT",4]]),FVc=function(a,b,c){var d=c.itemId;c=c.driveItem;d=(new _.hl).Ob(d);c&&(_.KG(d.setTitle(c.title),c.mimeType),c.userCapabilities&&_.zK(d,_.Xzc(c.userCapabilities)));_.LK(b).includes(19)&&_.Tvc(d,!0);KLc(a,d,_.LK(b));_.Vvc(d,4);return d},IVc=function(a,b,c){for(var d=[],e=[],f={},h=_.m(c.item||[]),k=h.next();!k.done;f={Bea:f.Bea},k=h.next()){var l=k.value;if(l.person){f.Bea=l.itemId;k=GVc(l.person).Ob(f.Bea);var p={};l=_.m(l.childItem||[]);for(var q=
l.next();!q.done;p={Mqa:p.Mqa},q=l.next()){var r=q.value;e.some(function(v){return function(z){return z.getId()===v.Bea}}(f))||e.push(k);p.Mqa=r.itemId;q=d.find(function(v){return function(z){return z.getId()===v.Mqa}}(p));void 0===q&&(q=FVc(a,b,r),d.push(q));r=wEc(vEc(uEc(new _.Una,k.clone()),HVc(r)),r.url);_.Xj(q,107,r,_.Una,void 0)}}}return iGc((new _.UK).Tw(d),e).lP(c.suggestionSessionId)},GVc=function(a){return _.hvc((new _.Rk).Ob(a.id).hd(a.displayName),a.emailAddress).Ln(a.photoUrl)},TVc=function(a){var b=
a.action;return b?b.map(function(c){var d=new _.vna,e=JVc(c);e&&_.Wj(d,2,_.Vk,e);(e=KVc(c))&&kDc(d,e);(e=LVc(c))&&_.Wj(d,4,_.Vk,e);(e=MVc(c))&&_.Wj(d,5,_.Vk,e);(e=NVc(c))&&_.Wj(d,6,_.Vk,e);(e=OVc(c))&&_.Wj(d,7,_.Vk,e);(e=PVc(c))&&_.Wj(d,8,_.Vk,e);(e=QVc(c))&&_.Wj(d,9,_.Vk,e);(e=RVc(c))&&_.Wj(d,10,_.Vk,e);(c=SVc(c))&&_.Wj(d,11,_.Vk,c);return d}):(a=nN(a),a=TDc([a]),[kDc(new _.vna,a)])},VVc=function(a){return(a.justification||[]).map(function(b){return UVc(b)})},nN=function(a){return(a=a.justification)?
UVc(a):null},UVc=function(a){var b=gDc(new _.Uk,WVc(a.displayText)),c=a.primaryPerson,d=a.allPeople;c?(c=GVc(c),_.Wj(b,3,_.una,c),hDc(b,[c])):d?(c=(d.person||[]).map(function(e){return GVc(e)}),d=fDc(c),_.Wj(b,4,_.una,d),hDc(b,c)):(c=(a.person||[]).map(function(e){return GVc(e)}),c.length&&(d=fDc(c),_.Wj(b,4,_.una,d),hDc(b,c)));_.w(b,5,_.kL(a.eventTime));iDc(b,WVc(a.justificationDescription));jDc(b,WVc(a.unstructuredJustificationDescription));return b},WVc=function(a){if(!a)return null;a=a.textSegment||
[];return cDc(new _.Ok,a.map(function(b){var c=(new _.Pk).kh(b.text),d=b.link;if(d){var e=new _.Qk;d=_.w(e,1,d.url)}else d=null;c=_.I(c,2,d);c=_.w(c,3,b.bold);return _.w(c,4,b.italic)}))},JVc=function(a){a=a.documentDocosAction;if(!a)return null;var b=IDc(new _.Dna,nN(a));HDc(b,(a.subAction||[]).map(function(c){var d=new _.Ena;c.reply?(c=new _.xna,_.Wj(d,1,_.Wk,c)):c.resolve?(c=new sDc,_.Wj(d,2,_.Wk,c)):c.reassign?(c=new qDc,_.Wj(d,3,_.Wk,c)):c.acceptSuggestion?(c=new lDc,_.Wj(d,4,_.Wk,c)):c.rejectSuggestion?
(c=new rDc,_.Wj(d,5,_.Wk,c)):c.openThread&&(c=new _.wna,_.Wj(d,6,_.Wk,c));return d}));_.w(b,2,a.discussionId);_.w(b,3,a.postId);JDc(b,WVc(a.anchorText));return b},LVc=function(a){a=a.documentShareAction;if(!a)return null;var b=NDc(new _.Gna,nN(a));MDc(b,(a.subAction||[]).map(function(c){var d=new ODc;c.suggestedShare?(c=new wDc,_.Wj(d,1,pEc,c)):c.responseToRequest&&(c=new tDc,_.Wj(d,2,pEc,c));return d}));KDc(b,(a.sharee||[]).map(function(c){return GVc(c)}));LDc(b,EVc.get(a.shareeRole));return b},
KVc=function(a){a=a.documentViewAction;if(!a)return null;var b=TDc(VVc(a));SDc(b,(a.subAction||[]).map(function(c){var d=new VDc;c.open?d.Bg(new nDc):c.reviewEdits&&(c=new uDc,_.Wj(d,2,UDc,c));return d}));return b},MVc=function(a){a=a.emailViewAction;if(!a)return null;var b=eEc(new cEc,nN(a));dEc(b,(a.subAction||[]).map(function(c){var d=new gEc;c.open&&d.Bg(new oDc);return d}));return b},NVc=function(a){a=a.calendarEventAction;if(!a)return null;var b=CDc(BDc(ADc(new _.zna,a.eventId),nN(a)),a.guestCount);
zDc(b,(a.subAction||[]).map(function(c){var d=new DDc;if(c.viewCalendarEvent){var e=new xDc;_.Wj(d,1,nEc,e)}c.shareWithAttendees&&(e=new vDc,_.Wj(d,2,nEc,e));c.present&&(e=new pDc,_.Wj(d,3,nEc,e));c.openDocument&&(c=new nDc,_.Wj(d,4,nEc,c));return d}));return b},OVc=function(a){a=a.documentWorkspaceAction;if(!a)return null;var b=$Dc(ZDc(new XDc,a.workspaceId),nN(a));YDc(b,(a.subAction||[]).map(function(c){var d=new aEc;c.addToWorkspace&&(c=new mDc,_.Wj(d,1,rEc,c));return d}));return b},PVc=function(a){a=
a.documentTopicAction;if(!a)return null;var b=QDc(new _.Ina,nN(a));PDc(b,(a.subAction||[]).map(function(c){var d=new RDc;c.openDocument&&(c=new nDc,_.Wj(d,1,qEc,c));return d}));return b},QVc=function(a){a=a.popularDocumentAction;if(!a)return null;var b=lEc(new _.Ona,nN(a));kEc(b,(a.subAction||[]).map(function(c){var d=new mEc;c.openDocument&&(c=new nDc,_.Wj(d,1,tEc,c));return d}));return b},RVc=function(a){a=a.collaboratorActivityAction;if(!a)return null;var b=FDc(new _.Bna,nN(a));EDc(b,(a.subAction||
[]).map(function(c){var d=new GDc;c.openDocument&&(c=new nDc,_.Wj(d,1,oEc,c));return d}));return b},SVc=function(a){a=a.formResponseAction;if(!a)return null;var b=iEc(new _.Mna,VVc(a));hEc(b,(a.subAction||[]).map(function(c){var d=new jEc;c.openDocument?(c=new nDc,_.Wj(d,1,sEc,c)):c.viewResponses&&(c=new yDc,_.Wj(d,2,sEc,c));return d}));return b},HVc=function(a){a=((a.justification||{}).displayText||{}).textSegment||[];return 0<a.length?(a[0]||{}).text||"":""};
var XVc=function(a,b){this.H=a;this.O=b},ZVc=function(a,b,c){_.jL(["drive#categoryMetadataList"],c);var d=new mM,e=Object.values(c.categoryMetadata||{});sJc(d,e.map(function(f){return YVc(a,f,b.Ac())}));d.Dc(1);return new _.XK(d,lNc(c))},aWc=function(a,b){var c=new UM;zPc(c,(b.categories||[]).map(function(d){return $Vc(a,d)}));c.Dc(1);return new YIc(c,lNc(b))},YVc=function(a,b,c){_.jL(["drive#categoryMetadata"],b);c=pHc((new XL).hd(b.categoryName),c);b=Object.values(b.attributeValues||[]);oHc(c,b.map(function(d){return bWc(a,
d)}).filter(function(d){return null!==d}));return c},$Vc=function(a,b){var c,d=hHc(ZGc(eHc(dHc(cHc(YGc(XGc((new TL).hd(b.name),b.categoryName),b.latestName).setTitle(b.title).Xl(b.description),_.kL(b.createTime)),_.kL(b.updateTime)),_.kL(b.publishTime)),(null!==(c=b.attributes)&&void 0!==c?c:[]).map(function(e){a:{var f=e.type;var h=(new UGc).Ob(e.id);h=_.w(h,2,e.queryGuid);h=_.w(h,3,e.helpText);h=_.w(h,4,e.displayName);if(e.attributeDisplayHints){var k=cWc(e.attributeDisplayHints);_.I(h,5,k)}if(e.capabilities){k=
e.capabilities;var l=new CGc;l=_.w(l,1,k.canSearch);k=_.w(l,2,k.canWrite);_.I(h,6,k)}if(f&&(_.w(h,7,dWc[f]),e=e[eWc(f)+"Options"],!fWc(a,h,f,e))){f=null;break a}f=h}return f}).filter(function(e){return null!==e})),b.customer);b.createdBy&&$Gc(d,gWc(b.createdBy));b.xSb&&aHc(d,gWc(b.xSb));b.publishedBy&&bHc(d,gWc(b.publishedBy));b.displayHints&&fHc(d,cWc(b.displayHints));b.capabilities&&gHc(d,hWc(b.capabilities));b.learnMoreUri&&_.w(d,15,b.learnMoreUri);return d},bWc=function(a,b){_.jL(["drive#categoryAttributeValue"],
b);var c=(new UL).Ob(b.id);if(b.userScoped)b=Object.values(b.userScoped),mHc(c,b.map(function(d){_.jL(["drive#userScopedAttributeValue"],d);var e=new jHc,f=_.lL(a.H,d.scopedUser);e=_.I(e,1,f);return a.Jb(e,d)?e:null}).filter(function(d){return null!==d})),c.XA(9);else if(!a.Jb(c,b))return null;return c},cWc=function(a){var b=new BGc;b=_.w(b,1,a.disabled);b=_.w(b,2,a.hidden);b=_.w(b,3,a.activatedInAllDrives);return _.w(b,4,!!a.required)},hWc=function(a){var b=new WGc;b=_.w(b,1,a.canSearch);b=_.w(b,
2,a.canApply);b=_.w(b,4,a.canRemove);return _.w(b,3,a.canManageSharedDriveActivation)},fWc=function(a,b,c,d){return iWc(a,function(){jWc(a)[c](b,d)},c,b)},kWc=function(a){a=void 0===a?{}:a;var b=new FGc;b=_.w(b,1,a.minSize);return _.w(b,2,a.maxSize)},mWc=function(a){var b=new LGc;MGc(b,(a.choices||[]).map(function(c){var d=new KGc;d=_.w(d,1,c.label).Jb(c.value);c.description&&d.Xl(c.description);if(c.capabilities){var e=c.capabilities;var f=new IGc;f=_.w(f,1,e.canSearch);e=_.w(f,2,e.canSelect);_.I(d,
3,e)}c.displayHints&&(c=c.displayHints,e=new JGc,e=_.w(e,1,c.disabled),e=_.w(e,2,c.hidden),c.badgePriority&&_.w(e,5,c.badgePriority),c.badgeColors&&(f=lWc(c.badgeColors),_.I(e,3,f)),c.darkBadgeColors&&(c=lWc(c.darkBadgeColors),_.I(e,4,c)),_.I(d,4,e));return d}));return b},lWc=function(a){var b=new AGc;var c=nWc(a.backgroundColor);b=_.I(b,1,c);c=nWc(a.foregroundColor);b=_.I(b,2,c);a=nWc(a.soloColor);return _.I(b,3,a)},nWc=function(a){var b=new _.pD;b=_.qb(b,1,a.red,0);b=_.qb(b,2,a.green,0);b=_.qb(b,
3,a.blue,0);a.alpha&&(a=(new aFc).Jb(a.alpha),_.I(b,4,a));return b},oWc=function(a){var b=new PGc;b=_.w(b,1,a.showThousandsSeparator);b=_.w(b,2,Number(a.minValue));return _.w(b,3,Number(a.maxValue))},pWc=function(a){var b=(new _.noa).setYear(a.year).setMonth(a.month);return _.w(b,3,a.day)};XVc.prototype.Jb=function(a,b){var c=this,d=b.valueType.replace(/([A-Z])/g,"_$1").toLowerCase().toUpperCase();a.XA(dWc[d]);return iWc(this,function(){qWc(c)[d](a,b[b.valueType])},b.valueType)};
var iWc=function(a,b,c,d){try{b()}catch(e){if(e instanceof TypeError&&!(d instanceof RGc))return IFc(a.O,"drive.ds.response.MetadataParser","Response Parser: Error parsing type "+c+"."),!1;throw e;}return!0},gWc=function(a){return _.fvc(1).Ob(a.personName.split("/")[1])},eWc=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},jWc=function(a){return{BOOLEAN:function(b,c){var d=b.H3a;var e=new GGc;e=_.w(e,1,c.trueLabel);c=_.w(e,2,c.falseLabel);return d.call(b,
c)},TEXT:function(b,c){return b.qMa(kWc(c))},TEXT_LIST:function(b,c){var d=b.F4a;var e=new OGc;e=_.w(e,1,c.maxEntries);c=kWc(c.options);c=_.I(e,2,c);return d.call(b,c)},LONG_TEXT:function(b,c){var d=new EGc;d=_.w(d,1,c.minSize);c=_.w(d,2,c.maxSize);return _.Wj(b,10,RL,c)},SELECTION:function(b,c){return b.s4a(mWc(c))},SELECTION_LIST:function(b,c){var d=b.r4a;var e=new NGc;e=_.w(e,1,c.maxEntries);c=mWc(c.options);c=_.I(e,2,c);return d.call(b,c)},INTEGER:function(b,c){return b.U3a(oWc(c))},INTEGER_LIST:function(b,
c){var d=b.T3a;var e=new QGc;e=_.w(e,1,c.maxEntries);c=oWc(c.options);c=_.I(e,2,c);return d.call(b,c)},USER:function(b){return b.K4a(new SGc)},USER_LIST:function(b,c){var d=b.rMa,e=new TGc;c=_.w(e,1,c.maxEntries);e=new SGc;c=_.I(c,2,e);return d.call(b,c)},DATE:function(b,c){var d=b.pMa;var e=new DGc;e=_.w(e,4,c.dateFormat);var f=pWc(c.minValue);e=_.I(e,2,f);c=pWc(c.maxValue);c=_.I(e,3,c);return d.call(b,c)},USER_SCOPED:function(b,c){var d=new RGc;d=_.w(d,1,c.canReadCollaboratorValues);var e=c.subtype;
_.w(d,2,dWc[e]);var f=eWc(e)+"Options";fWc(a,d,e,c[f]);return _.Wj(b,16,RL,d)}}},qWc=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.Moa(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.Ioa(c)},INTEGER:function(b,c){return b.setIntegerValue(parseInt(c,10))},INTEGER_LIST:function(b,c){return b.zoa(c.map(function(d){return parseInt(d,
10)}))},USER:function(b,c){return b.setUserValue(_.lL(a.H,c))},USER_LIST:function(b,c){lHc(b,c.map(function(d){return _.lL(a.H,d)}))},DATE_STRING:function(b,c){return b.setDateStringValue(c)}}},dWc={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 sWc=function(a){a=a.personResponse||[];return BJc(new AJc,a.map(function(b){var c=b.person;b=xJc(new nM,b.personId);var d=b.hd;var e=c;e=void 0===e?{}:e;var f,h;e=e.metadata;e=null!==(h=null===(f=null===e||void 0===e?void 0:e.bestDisplayName)||void 0===f?void 0:f.displayName)&&void 0!==h?h:"";f=yJc(d.call(b,e),rWc(c));c=void 0===c?{}:c;c=c.photo?c.photo[0]:null;h=new wJc;c=_.w(h,1,c&&!c.isDefault?c.url:null);return _.I(f,4,c)}))},rWc=function(a){a=void 0===a?{}:a;var b;a=(a.email||[]).find(function(c){return"SIGNUP_EMAIL"===
c.classification&&!0===c.metadata.primary});return null!==(b=null===a||void 0===a?void 0:a.value)&&void 0!==b?b:""};
var tWc=function(a){this.H=a},vWc=function(a,b){_.jL(["drive#teamDriveList","drive#driveList"],b);return(b.items||[]).map(function(c){return uWc(a,c)})},uWc=function(a,b){_.jL(["drive#teamDrive","drive#drive"],b);var c=new _.Zna,d=b.colorRgb;d?(d=d.substring(1),d=/^[a-fA-F0-9]+$/.test(d)?parseInt(d,16):0):d=0;_.w(c,2,d);_.w(c,1,b.backgroundImageLink);_.w(c,3,b.trusted);_.w(c,5,b.backgroundImageGridViewLink);_.w(c,6,b.backgroundImageListViewLink);_.w(c,7,b.hidden);_.w(c,9,b.removeSecureLinkUpdateForAllFiles);
(d=b.categoryReferences)&&zBc(c,d.map(function(e){_.jL(["drive#driveCategoryReference"],e);var f=new _.fl;return _.w(f,1,e.category)}));c=_.bwc(_.$vc(_.Zvc(_.Vvc(_.Wvc(yBc(_.KG((new _.hl).Ob(b.id).setTitle(b.name),"application/vnd.google-apps.folder"),c),b.id),2),b.primaryDomainName),b.organizationDisplayName),b.customerId);b.capabilities&&(d=_.tvc(_.Xzc(b.capabilities),!0),_.zK(c,d));b.permissionsSummary&&_.Xvc(c,eGc(a.H,b.permissionsSummary));b.restrictions&&BBc(c,wWc(b.restrictions));return c},
wWc=function(a){var b=new AEc;b=_.w(b,1,a.copyRequiresWriterPermission);b=_.w(b,2,a.disallowDriveFileStream);b=_.w(b,3,a.domainUsersOnly);"teamMembersOnly"in a&&_.w(b,4,a.teamMembersOnly);return b};
var xWc={DRIVE_FE:2,DRIVE_BE:4,EXPLORER:1,GENERAL:3,PSYNCHO:5,SLACK:6,DRIVE_BE_EX:7,DRIVE_SHARING:9,TEAMKIT:10},PCc=_.Za(xWc);
var yWc=function(a){_.jL(["drive#setting"],a);var b=new _.Xb;b=_.w(b,2,a.key);b=_.w(b,1,a.namespace?xWc[a.namespace]:void 0);return _.uBa(new _.op,b).Jb(a.value)};
var AWc=function(a){_.jL(["drive#workspaceList"],a);var b=a.items||[];b=DJc(new oM,b.map(function(c){return zWc(c)}));return new _.$K(b,lNc(a))},zWc=function(a){_.jL(["drive#workspace"],a);var b=(new _.HG).Ob(a.id).setTitle(a.title);b=_.w(b,3,_.kL(a.createdDate));return _.w(b,4,_.kL(a.modifiedDate)).Ld(a.state?BWc[a.state]:void 0)},CWc=function(a,b,c){var d=c.item||[];return _.eBc(_.dBc(new _.sL,d.map(function(e){return FVc(a,b,e)})),c.suggestionSessionId)},EWc=function(a,b,c){var d=c.item||[];return NHc(MHc(new aM,
d.map(function(e){return DWc(a,b,e)})),c.suggestionSessionId)},DWc=function(a,b,c){var d=c.driveWorkspace,e=c.childItem||[];return KHc(IHc(JHc(HHc(new $L,c.predictionId).setTitle(d&&d.title),d&&d.workspaceToken),e.map(function(f){return FVc(a,b,f)})),nN(c))},FWc=function(a){var b=new _.yGc;a.kind&&(a=zWc(a),_.I(b,2,a));b.Dc(1);return b},BWc={active:1,archived:2};
var LCc={QUEUED:1,COUNTING:3,BUILDING:2,SUCCEEDED:4,FAILED:5};
var GWc=function(a,b,c,d){_.vAc.call(this,b);this.Lg=a;this.ka=c;this.O=d;this.W=null;this.ma=new sUc(this.V,b);this.H=new tWc(this.kF);this.ta=new DVc(this.kF,this.H)};_.K(GWc,_.vAc);var HWc=function(a){a.W||(a.W=new XVc(a.V,a.ka));return a.W};
GWc.prototype.ha=function(a,b){if(a instanceof _.vJ)var c=_.dAc(_.zAc(a));else{if(a instanceof _.wJ)var d=_.mL(this,a,b);else{if(a instanceof _.Huc)var e=IWc(this,a.request,b);else{if(a instanceof _.xJ)var f=_.mL(this,a,b);else{if(a instanceof _.zJ){if(!b.json)throw _.nL();var h=ZOc((new YOc).Dc(1),uWc(this.H,b.json))}else{if(a instanceof _.yJ)var k=_.mL(this,a,b);else{if(a instanceof _.QK)var l=new uHc;else{if(a instanceof _.BJ)var p=JWc(a,b);else{if(a instanceof _.CJ)var q=vVc(void 0,a.Mh());else{if(a instanceof
_.DJ)var r=new sQc;else{if(a instanceof _.EJ)var v=_.dAc(_.zAc(a));else{if(a instanceof _.FJ)var z=new TM;else{if(a instanceof _.GJ)var A=_.dAc(_.zAc(a));else{if(a instanceof _.HJ)var C=_.dAc(_.zAc(a));else{if(a instanceof _.XD){var G=new rPc,H=a.getKey();var L=_.I(G,4,H)}else{if(a instanceof _.IJ)var M=JWc(a,b);else{if(a instanceof _.LJ)var T=_.dAc(_.zAc(a));else{if(a instanceof _.Euc){if(!b.json)throw _.nL();var U=new VQc(b.json.exportJob.id)}else{if(a instanceof _.NJ){if(!b.json)throw _.nL();var ca=
b.json,Z=new mPc,ja=tVc(ca);var qa=_.I(Z,2,ja).Dc(1)}else{if(a instanceof _.OJ)var Aa=KWc(a,b);else{if(a instanceof _.PJ){if(!b.json)throw _.nL();var Ja=(new TM).Dc(1),ib=_.gAc(this.kF,b.json);var Xa=_.I(Ja,2,ib)}else{if(a instanceof _.$I)a:{if(!b.json)throw _.nL();if(a instanceof _.$I){var Hb=a.ud();if(Hb&&_.QJ(Hb)){for(var $b=this.O,Bc=this.Lg,td=b.json,Xd=[],Jd=_.m(td.item||[]),qf=Jd.next();!qf.done;qf=Jd.next()){var ud=qf.value;if(ud.driveItem){var Cb=new _.Xna,ne=_.w(Cb,2,HVc(ud));_.Q(Hb,74,
!1)?_.w(ne,4,!0):_.w(ne,3,!0);var Xg=FVc($b,Bc,ud);var se=_.I(Xg,100,ne);Xd.push(se)}}var li=(new _.xB).Tw(Xd).lP(td.suggestionSessionId);var Wi=_.Ayc(new _.dL,li);break a}if(Hb&&_.RJ(Hb)){Wi=IVc(this.O,this.Lg,b.json);break a}if(Hb&&_.SJ(Hb)){for(var vf=this.O,Ek=this.Lg,Vh=b.json,Vf=[],Yd=_.m(Vh.item||[]),Yg=Yd.next();!Yg.done;Yg=Yd.next()){var Nh=Yg.value;if(Nh.driveItem){var yi=FVc(vf,Ek,Nh),$k=TVc(Nh);var Wn=_.Kj(yi,117,$k);Vf.push(Wn)}}var Am=(new _.xB).Tw(Vf).lP(Vh.suggestionSessionId);Wi=
_.Ayc(new _.dL,Am);break a}}Wi=_.aAc(this.kF,b.json,b.headers)}else{if(a instanceof _.TJ){if(!b.json)throw _.nL();var Dh=CVc(b.json)}else{if(a instanceof _.UJ){if(!b.json)throw _.nL();var al=b.json;_.jL(["drive#appList"],al);var jk=new lM,Zg=uVc(al);var Pj=_.Kj(jk,2,Zg);var sj=_.Ij(Pj,4,al.defaultAppIds).Dc(1)}else{if(a instanceof _.Fuc){if(!b.json)throw _.nL();var kk=AVc(b.json)}else{if(a instanceof _.kJ)var Wh=LWc(this,b);else{if(a instanceof _.VJ){if(!b.json)throw _.nL();var Qj=new pPc,Rj=dGc(this.kF,
b.json);var tj=_.I(Qj,1,Rj);var lk=_.w(tj,2,lNc(b.json))}else{if(a instanceof _.WJ){if(!b.json)throw _.nL();var bi=this.kF,Bm=b.json,Sj=new aGc;_.jL(["drive#revisionList"],Bm);for(var mk=[],Cl=Bm.items||[],Tj=0;Tj<Cl.length;Tj++){var wn=_.bAc(bi,Cl[Tj]);mk.push(wn)}var bl=_.Kj(Sj,2,mk)}else{if(a instanceof _.XJ)var cl=_.mL(this,a,b);else{if(a instanceof _.oJ)var Af=MWc(a,b);else{if(a instanceof _.ZJ){if(!b.json)throw _.nL();var Uj=sWc(b.json)}else{if(a instanceof _.Nuc){if(!b.json)throw _.nL();var em=
aWc(HWc(this),b.json)}else{if(a instanceof _.EG){if(!b.json)throw _.nL();var Dl=HWc(this),fm=b.json,qc=new APc,Vj=$Vc(Dl,fm);var Oh=_.I(qc,2,Vj).Dc(1)}else{if(a instanceof _.$J){if(!b.json)throw _.nL();var nk=b.json;_.jL(["drive#remainingCount"],nk);var Ph=new BPc,mi=nk.nextPageToken;null!=mi&&_.w(Ph,2,Number(mi));_.w(Ph,1,Number(nk.remainingCount));var eg=Ph}else{if(a instanceof _.GG){if(!b.json)throw _.nL();var Fk=(new _.xB).Tw([uWc(this.H,b.json)])}else{if(a instanceof _.lK){if(!b.json)throw _.nL();
var Hp=(new _.xB).Tw(vWc(this.H,b.json)),Qh=_.Ayc(new _.dL,Hp);var Eh=_.w(Qh,3,lNc(b.json))}else{if(a instanceof _.fK)var xn=KWc(a,b);else{if(a instanceof _.gK)var uj=IWc(this,a,b);else{if(a instanceof _.iJ)var yn=_.mL(this,a,b);else{if(a instanceof _.hK)var gm=_.mL(this,a,b);else{if(a instanceof _.iK)var Gk=NWc(this,b);else{if(a instanceof _.YD){if(!b.json)throw _.nL();var Cm=yWc(b.json),Po=new rPc;var Ip=_.I(Po,3,Cm);var rr=Cm.getKey();var Nm=_.I(Ip,4,rr)}else{if(a instanceof _.jK)var lm=JWc(a,
b);else{if(a instanceof _.LI){if(!b.json)throw _.nL();var tk=wUc(this.ma,b.json)}else{if(a instanceof _.JG){if(!b.json)throw _.nL();var dp=zWc(b.json),Up=new _.VK;Up.ET().set(dp.getId(),dp);var Kq=Up}else{if(a instanceof _.Guc){if(!b.json)throw _.nL();for(var Nr=b.json,lu=new xQc,Or=_.m(Object.entries(Nr)),Zs=Or.next();!Zs.done;Zs=Or.next()){var rB=_.m(Zs.value),sB=rB.next().value,Qy=rB.next().value;switch(sB){case "nextPageToken":_.gk(lu,2,Qy);break;case "activities":var mu=aVc(Qy);_.Kj(lu,1,mu)}}var Lq=
lu}else{if(a instanceof _.Iuc)var Mq=NWc(this,b);else{if("undefined"!=typeof _.Muc&&a instanceof _.Muc)var tB=LWc(this,b);else{if(a instanceof _.Juc){if(!b.json)throw _.nL();var OD=new UQc}else{if(a instanceof _.Kuc){if(!b.json)throw _.nL();var qx=OCc(b)}else{if(a instanceof _.WD){if(!b.json)throw _.nL();var Ry=b.json,rx=new _.iA;_.jL(["drive#settingList"],Ry);for(var sx=[],tx=Ry.items||[],$s=0;$s<tx.length;$s++){var at=yWc(tx[$s]);at&&sx.push(at)}var il=_.olb(rx,sx)}else{if(a instanceof _.kA){if(!b.json)throw _.nL();
var Pr=EWc(this.O,this.Lg,b.json).Dc(1)}else{if(a instanceof _.FG){if(!b.json)throw _.nL();var Pl=CWc(this.O,this.Lg,b.json)}else{if(a instanceof _.Suc){if(!b.json)throw _.nL();var uB=b.json;_.jL(["drive#teamDrive"],uB);var PD=uB.recursiveFolderCount,Sy=uB.recursiveFileCount,Li=new ePc;var Ty=_.w(Li,1,Sy);var Nq=_.w(Ty,2,PD)}else{if(a instanceof _.Ruc)var Vp=OWc(b);else{if(a instanceof _.Uuc){if(!b.json)throw _.nL();var IG=AWc(b.json)}else IG=a instanceof _.AL?NWc(this,b):null;Vp=IG}Nq=Vp}Pl=Nq}Pr=
Pl}il=Pr}qx=il}OD=qx}tB=OD}Mq=tB}Lq=Mq}Kq=Lq}tk=Kq}lm=tk}Nm=lm}Gk=Nm}gm=Gk}yn=gm}uj=yn}xn=uj}Eh=xn}Fk=Eh}eg=Fk}Oh=eg}em=Oh}Uj=em}Af=Uj}cl=Af}bl=cl}lk=bl}Wh=lk}kk=Wh}sj=kk}Dh=sj}Wi=Dh}Xa=Wi}Aa=Xa}qa=Aa}U=qa}T=U}M=T}L=M}C=L}A=C}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 JWc=function(a,b){if(!b.json){if(a instanceof _.IJ)return FWc({});throw _.nL();}return FWc(b.json)},NWc=function(a,b){if(!b.json)throw _.nL();a=uWc(a.H,b.json);return(new _.pK).Dc(1).setItem(a)},IWc=function(a,b,c){if(!c.json)throw _.nL();return ZVc(HWc(a),b,c.json)},KWc=function(a,b){if(!b.json)throw _.nL();return vVc(b.json,a.Mh())},LWc=function(a,b){if(!b.json)throw _.nL();a=a.ta;var c=b.json;_.jL(["drive#about","drive#changeList"],c);b=new uJc;var d=c.largestChangeId;null!=d&&_.w(b,3,Number(d));
if("drive#changeList"===c.kind){d=c.nextPageToken;null!=d&&_.w(b,2,Number(d));_.jL(["drive#changeList"],c);d=[];c=c.items||[];for(var e=0;e<c.length;e++){var f=a,h=c[e];_.jL(["drive#change"],h);var k=new _.cJ;k=_.w(k,1,Number(h.id));h.teamDriveId?(_.cuc(k,h.teamDriveId),_.dJ(k,h.teamDriveId)):_.dJ(k,h.fileId);h.file?k.setItem(_.Zzc(f.H,h.file)):h.teamDrive&&k.setItem(uWc(f.O,h.teamDrive));h.deleted&&!k.getItem()&&_.mJ(k);d.push(k)}_.Kj(b,4,d)}return b},OWc=function(a){var b,c;if(!a.json)throw _.nL();
a=a.json;var d=a.result&&a.result.status;d=d&&PWc[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 SPc(RPc(QPc(new _.PPc,f.sourceId),f.fileCount),null!==(k=null===(h=f.unmovableFileReasons)||void 0===h?void 0:h.map(function(l){var p=new _.NPc;p=_.w(p,1,l.unmovableReason);return _.w(p,2,l.count)}))&&void 0!==k?k:[])})))&&void 0!==c?c:[];return MPc(LPc(KPc(JPc(new VM,lNc(a)),a.processedFileCount).Dc(d),a.result&&a.result.validationToken),
e)},MWc=function(a,b){var c=new uQc;if(_.fe(a,6).length){var d=[];NBc(_.fe(a,6),b.headers).forEach(function(e,f){var h=new _.juc;e=_.w(h,1,f).Jb(e);d.push(e)});_.Kj(c,1,d)}vQc(c,b.json?JSON.stringify(b.json):b.text);return c},PWc={movable:1,deadlineExceeded:2,exceedsSourceLimit:3,exceedsDestinationDepthLimit:4,exceedsDestinationSizeLimit:5,tooManyUnmovableFiles:6,tooHighProportionUnmovableFiles:7};
var RWc=function(a){var b=new _.Wo;if(a=a.getState()){var c=[];c.push("state");c.push("=");c.push(QWc[a]);_.NK(b,c.join(" "))}return b.toString()},SWc={},QWc=(SWc[1]="active",SWc[2]="archived",SWc);
var TWc=function(a,b,c,d){_.oL.call(this,b,c,a.oMa,d);this.ma=a;this.ha=new DIc(_.LK(c),b)};_.K(TWc,_.oL);
TWc.prototype.V=function(a,b,c){var d=this,e,f;try{return _.oL.prototype.V.call(this,a,b,c)}catch(U){}var h=0,k={},l="GET",p={},q=!1,r=!1;if(a instanceof _.wJ){l="POST";var v="admin/files/"+a.getId()+"/migrateToTeamDrive";_.P(a,3)&&(p.useDomainAdminAccess=!0);p.fields="kind,id,parentId,teamDriveId";p.fileId=a.getId();_.Cj(a,4)&&(p.preFlightValidationToken=_.y(a,4));var z=mNc(a);k["content-type"]="application/json";q=r=!0;_.tK(this.H,[],[a.getId(),a.Ek()],this.O,k)}else if(a instanceof _.xJ){l="POST";
v="files/"+a.Ac()+"/authorize";p.appId=a.Mh();_.P(a,3)&&(p.propagate=!0);var A=a.se();r=!0;_.KK(p);_.tK(this.H,[],[a.Ac()],this.O,k)}else if(a instanceof _.AL)v="drives/"+a.getId(),l="PUT",z={},z=(z.removeSecureLinkUpdateForAllFiles=_.Q(a,2,!1),z),k["content-type"]="application/json",p.fields=hM(this.H,[],!0),A=a.se(),r=!0;else if(a instanceof _.Iuc)l="POST",v="teamdrives/"+a.requestId,p.fields=hM(this.H),z={},z=(z.name=a.request.getTitle(),z),k["content-type"]="application/json",A=a.request.se(),
r=!0;else if(a instanceof _.BJ)l="POST",v="workspaces",p.fields="kind,id,title,createdDate,modifiedDate,state",z=pNc(a),k["content-type"]="application/json",A=a.se(),r=!0;else if(a instanceof _.yJ)l="POST",v="files/"+a.getId()+"/copy",p.fields=_.vuc({fields:this.Mg(c),Aq:_.wI(_.KI(this.H)),DE:_.ZI(this.H)}),p.convert=_.Q(a,4,!1),z=oNc(a),k["content-type"]="application/json",A=a.se(),a=_.fe(a,3).concat([a.getId()]),_.tK(this.H,[],a,this.O,k),r=!0,_.KK(p),_.LAc(this.H,p);else if(a instanceof _.CJ)l=
"DELETE",v="apps/"+a.Mh(),p.appId=a.Mh(),p.deleteAppData=!!_.P(a,2),A=a.se(),r=!0;else if(a instanceof _.DJ)l="DELETE",v="backups/"+a.getId(),h=9;else if(a instanceof _.EJ)l="DELETE",v="files/"+a.getId(),A=a.se(),r=!0,_.KK(p),_.LAc(this.H,p),_.tK(this.H,[],[a.getId()],this.O,k);else if(a instanceof _.FJ)l="DELETE",v="files/"+a.Ac()+"/permissions/"+_.y(a,2),A=a.se(),r=!0,_.KK(p);else if(a instanceof _.GJ)l="DELETE",v="files/"+a.Ac()+"/revisions/"+_.y(a,2),A=a.se(),r=!0,_.tK(this.H,[],[a.Ac()],this.O,
k);else if(a instanceof _.HJ)l="DELETE",v="teamdrives/"+a.getId(),A=a.se(),r=!0;else if(a instanceof _.XD)l="DELETE",A=a.getKey(),v="settings/"+_.y(A,2),_.pp(A)&&(p.namespace=PCc[_.pp(A)]),A=a.se(),r=!0;else if(a instanceof _.IJ)l="DELETE",v="workspaces/"+a.getId(),A=a.se(),r=!0;else if(a instanceof _.LJ)l="DELETE",v="files/trash",A=a.ud().se(),r=!0,_.LAc(this.H,p);else if(a instanceof _.NJ)v="apps/"+a.Mh(),A=a.se(),r=!0,p.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 _.TJ)v="backups/"+a.getId()+"/items",h=9,p.languageCode=GL(_.KI(this.H));else if(a instanceof _.OJ)l="POST",v="apps",p.appId=a.Mh(),A=a.se(),r=!0;else if(a instanceof _.PJ)l="POST",v="files/"+a.Ac()+"/permissions",p.fields=_.ZI(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",p.emailMessage=
_.y(a,5)||"",p.sendNotificationEmail=!_.Q(a,6,!1),z={},1==a.yf()?z.role="owner":3==a.yf()?z.role="writer":4==a.yf()?(z.role="reader",z.additionalRoles=["commenter"]):2==a.yf()&&(z.role="reader"),1==a.getType()?z.type="user":2==a.getType()?z.type="group":3==a.getType()?z.type="domain":4==a.getType()?z.type="anyone":5==a.getType()&&(z.type="audience"),a.Za()&&(z.value=a.Za()),z.withLink=!_.Q(a,8,!1),k["content-type"]="application/json",A=a.se(),r=!0,_.KK(p);else if(a instanceof _.Euc)h=8,l="POST",v=
"/v1/exports",k["content-type"]="application/json",z=_.fe(a,1).map(function(U){if(_.Q(d.H,89,!1)){var ca=_.byc(d.O,U);if(null!==ca)return{id:U,resource_key:{resource_key:ca}}}return{id:U}}),z={archiveFormat:null,archivePrefix:_.y(a,2),conversions:null,items:z,locale:null};else if(a instanceof _.$I||a instanceof _.QK||a instanceof _.kA||a instanceof _.FG)if(b=a instanceof _.$I?a.ud():a,_.sK(b)){h=10;l="POST";v="/v1/items";k["content-type"]="application/json";z={};var C=9==_.EK(this.H)?"WEB_MOBILE":
"WEB_DESKTOP",G={};G.applicationType=LIc(this.H);G.platformType=C;G.languageCode=GL(_.KI(this.H));G.timeZone=(new _.St).i$();G.requestType="LIVE_REQUEST";a instanceof _.$I&&(C=a.getOptions())&&_.Q(C,10,!1)&&(G.requestType="BACKGROUND_REQUEST");if(b instanceof _.nf)if(_.QJ(b)){if(IIc(this.ha)){G.scenarioType="ONE_PICK";if(a=null===(f=null===(e=_.B(b,BEc,75))||void 0===e?void 0:_.B(e,CEc,1))||void 0===f?void 0:_.y(f,1))G.clientTags=G.clientTags||[],G.clientTags.push({name:a});this.dg.O(106026)}else _.Q(b,
74,!1)?G.scenarioType="QUICK_ACCESS_FOR_SHARED_FILES":G.scenarioType="QUICK_ACCESS";2==_.CK(b)&&(IIc(this.ha)||(G.scenarioType="QUICK_ACCESS_FOR_SHARED_DRIVE"),z.contextFeature={type:"DRIVE_TEAM_DRIVE_ROOT_ID",stringValue:_.fe(b,33)[0]});_.Ml(b).length&&(z.itemType=KIc(b))}else _.RJ(b)?G.scenarioType="DRIVE_PEOPLE_WITH_ACTIONS":_.SJ(b)&&(G.scenarioType="DRIVE_PRIORITY");else b instanceof _.QK?(v="/v1/userfeedback",z.userFeedback=_.Oj(b,_.rHc,1).map(function(U){var ca=_.B(U,_.YL,2),Z={},ja={};ja.feedbackType=
wHc[ca.getType()];Z.item=ja;Z.clientInfo=G;switch(U.getFeature()){case 1:G.scenarioType="DRIVE_PRIORITY";ja.itemId=ca.Ac();break;case 3:G.scenarioType="QUICK_ACCESS";ja.itemId=ca.Ac();break;case 4:G.scenarioType="QUICK_ACCESS_FOR_SHARED_FILES";ja.itemId=ca.Ac();break;case 2:G.scenarioType="DRIVE_WORKSPACES",ja.itemId=ca.Ac(),ja.childItem=_.Oj(ca,_.YL,3).map(function(qa){var Aa={};Aa.itemId=qa.Ac();return Aa})}return Z})):b instanceof _.kA?G.scenarioType="DRIVE_WORKSPACES":b instanceof _.FG?(G.scenarioType=
"ITEMS_FOR_DRIVE_WORKSPACE",z.contextFeature=[{type:"GENERIC_TITLE",stringValue:b.getTitle()||""},{type:"DRIVE_WORKSPACE_ID",stringValue:b.Op()||""},{type:"DRIVE_EMPTY_WORKSPACE",boolValue:_.P(b,5)}]):_.OAc(a);b instanceof _.QK||(z.maxSuggestions=b.Di(),z.clientInfo=G)}else{A=b.se();r=!0;v="files";p.q=_.nxc(b);C=[];var H;(H=_.rK(this.H))&&_.Q(H,4,!1)?(H=_.va(this.Mg(c),this.Mg(c,b.O())),_.Da(H)):H=_.wa(this.Mg(c));var L=void 0,M=!1;0<_.Oj(b,_.Hl,5).length&&(L=_.y(this.H.hg(),50),M=!0);p.fields=qBc({fields:H,
Aq:_.wI(_.KI(this.H)),a7:L||void 0,DE:_.ZI(this.H),sAb:M});p.appDataFilter="NO_APP_DATA";0<_.Oj(b,_.BK,25).length&&(p.sources=_.fxc(b));0<b.AB().length&&(p.spaces=_.gxc(b));a.Yn()&&(p.pageToken=a.Yn());(a=a.getOptions())&&_.ak(a,1,1E3)&&(p.maxResults=_.ak(a,1,1E3));_.Q(b,36,!1)&&(p.includeUnsubscribed=!0);_.y(b,43)&&(p.rawUserQuery=_.y(b,43));_.KK(p);p.includeItemsFromAllDrives=_.Q(b,66,!0);0<_.fe(b,33).length&&2==_.CK(b)&&(a=_.fe(b,33)[0],p.teamDriveId=a,C.push(a));p.corpora=_.Swc[_.CK(b)];_.P(b,
18)&&(_.Ua(p,"corpora"),p.corpus="DOMAIN");a=_.Nl(b);H=_.Oj(b,_.Al,35);L=_.Oj(b,_.Al,38);C=C.concat(a.filter(function(U){return!_.Q(U,2,!1)}).map(function(U){return U.Za()})).concat(H.map(function(U){return U.Za()})).concat(L.map(function(U){return U.Za()}));_.tK(this.H,_.Oj(b,_.Jl,63),C,this.O,k);TBc(p,b.wc());_.MAc(this.H,p);_.NAc(this.H,p);_.B(b,_.Bea,64)&&(a=DEc(_.B(b,_.Bea,64)),a=_.mb(a,4),p.searchSessionData=a)}else if(a instanceof _.UJ){v="apps";switch(a.getType()){case 1:p.fields=UWc;break;
case 2:p.fields=VWc;break;case 4:p.fields=WWc;break;case 3:h=5,v="apps",p.fields="items(icons[category='application'],icons(size,iconUrl),id,name,openUrlTemplate,primaryFileExtensions,primaryMimeTypes,productId,rankingInfo,secondaryFileExtensions,secondaryMimeTypes,kind),kind",p.appQueryScope="all_webstore",b.ou=!0}p.languageCode=GL(_.KI(this.H));0<_.fe(a,3).length&&(p.appFilterExtensions=_.fe(a,3).join(","));0<_.fe(a,4).length&&(p.appFilterMimeTypes=_.fe(a,4).join(","));A=a.se();r=!0}else if(a instanceof
_.Fuc)v="backups",h=9,p.languageCode=GL(_.KI(this.H));else if(a instanceof _.kJ)v="changes",p.includeDeleted=_.Q(a,3,!0),p.includeSubscribed=_.Q(a,4,!0),p.maxResults=a.LQ(),p.startChangeId=_.y(a,1),p.fields=pBc({fields:this.Mg(c),a7:hM(this.H,_.fe(a,5)),Aq:_.wI(_.KI(this.H)),DE:_.ZI(this.H)}),p.appDataFilter="NO_APP_DATA",a.yc()||(p.filters="DRIVE_DATASERVICE"),A=_.fe(this.H.hg(),31),A.length&&(p.spaces=_.lf(A,function(U){return _.Jqc[U]}).join(",")),_.KK(p),p.includeCorpusRemovals=!0,p.includeItemsFromAllDrives=
!0,a.yc()&&(p.teamDriveId=a.yc()),A=a.se(),r=!0;else if(a instanceof _.VJ)b=a.ud(),v="files/"+b.getId()+"/permissions",p.fields=_.ZI(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.Yn()&&(p.pageToken=a.Yn()),_.y(a,1)&&(p.maxResults=_.y(a,1)),A=b.se(),r=!0,_.KK(p),
_.MAc(this.H,p),_.NAc(this.H,p),_.tK(this.H,[],[b.getId()],this.O,k);else if(a instanceof _.WJ)p.fields=_.ZI(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))",p.maxResults=a.Di(),v="files/"+a.Ac()+"/revisions",A=a.se(),r=!0,
_.tK(this.H,[],[a.Ac()],this.O,k);else if(a instanceof _.XJ)l="POST",v="files/"+(_.y(a,1)||"")+"/migrateToDrive",_.P(a,3)&&(p.useDomainAdminAccess=!0),p.fields=_.vuc({fields:this.Mg(c),Aq:_.wI(_.KI(this.H)),DE:_.ZI(this.H)}),p.fileId=_.y(a,1),_.Cj(a,4)&&(p.preFlightValidationToken=_.y(a,4)),z=nNc(a),k["content-type"]="application/json",q=r=!0,_.tK(this.H,[],[_.y(a,1)||"",_.y(a,2)||""],this.O,k);else if(a instanceof _.GG)v="teamdrives/"+a.mn()[0],p.fields=hM(this.H,a.O()),A=a.se(),r=!0;else if(a instanceof
_.Ruc)l="POST",v="admin/files/migrateToTeamDrivePreFlight",_.P(a.request,3)&&(p.useDomainAdminAccess=!0),z=qNc(a),k["content-type"]="application/json",r=q=!0,_.tK(this.H,[],_.fe(a.request,1),this.O,k);else if(a instanceof _.lK)A=a.ud(),v="teamdrives",p.fields=tIc(this.H,A.O()),p.q=uIc(A),a.Yn()&&(p.pageToken=a.Yn()),(A=(A=a.getOptions())&&_.ak(A,1,1E3))&&(p.maxResults=A),A=a.ud().se(),r=!0;else if(a instanceof _.Suc)v="teamdrives/"+a.yc(),p.fields="kind,id,recursiveFileCount,recursiveFolderCount",
r=q=!0;else if(a instanceof _.fK)l="PUT",v="apps/"+a.Mh(),p.appId=a.Mh(),z={},z.useByDefault=_.P(a,2),_.P(a,3)&&(z.hasAppData=!1),k["content-type"]="application/json",A=a.se(),r=!0;else if(a instanceof _.iJ)l="PUT",v="files/"+a.getId(),p.fields=_.vuc({fields:this.Mg(c),Aq:_.wI(_.KI(this.H)),DE:_.ZI(this.H)}),p.modifiedDateBehavior="DRIVE_UI",p.updateViewedDate=!!_.P(a,15),p.fileId=a.getId(),_.fe(a,9).length&&(p.addParents=_.fe(a,9).join(",")),_.fe(a,10).length&&(p.removeParents=_.fe(a,10).join(",")),
_.fe(a,31).length&&(p.addWorkspaces=_.fe(a,31).join(",")),_.fe(a,32).length&&(p.removeWorkspaces=_.fe(a,32).join(",")),null!=_.P(a,24)&&(p.confirmed=_.P(a,24)),p.languageCode=GL(_.KI(this.H)),z=rNc(a),k["content-type"]="application/json",A=a.se(),r=!0,_.KK(p),this.W(a.getId(),p),_.P(a,36)?p.bypassMultiparentingCheck=!0:_.LAc(this.H,p),b=_.fe(a,9).concat(_.fe(a,10)),b.push(a.getId()),_.tK(this.H,_.Oj(a,_.Jl,38),b,this.O,k);else if(a instanceof _.hK)l="PUT",v="files/"+a.Ac()+"/revisions/"+_.y(a,2),
z=sNc(a),k["content-type"]="application/json",A=a.se(),_.tK(this.H,[],[a.Ac()],this.O,k);else if(a instanceof _.iK)v="teamdrives/"+a.getId(),null!=_.P(a,15)?(l="POST",v+="/"+(_.P(a,15)?"hide":"unhide")):(l="PUT",z=tNc(a),k["content-type"]="application/json"),p.fields=hM(this.H),A=a.se(),r=!0;else if(a instanceof _.jK)l="PUT",v="workspaces/"+a.getId(),p.fields="kind,id,title,createdDate,modifiedDate,state",z=uNc(a),k["content-type"]="application/json",A=a.se(),r=!0;else if(a instanceof _.YD)l="PUT",
z=_.B(a,_.op,1),A=z.getKey(),v="settings/"+_.y(A,2),(A=_.pp(A))&&(p.namespace=PCc[A]),z=QCc(z),k["content-type"]="application/json",A=a.se(),r=!0;else if(a instanceof _.LI)v="about",p.fields=_.ZI(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",p.fields=TCc(p.fields,this.H),p.fields=UCc(p.fields,this.H),A=a.se(),r=!0;else if(a instanceof _.oJ){h=11;l=a.Vz();v=a.getUrl();var T=_.y(a,5)||"";_.Oj(a,_.juc,2).forEach(function(U){k[U.getKey()]=
U.Za()});_.Oj(a,_.juc,4).forEach(function(U){p[U.getKey()]=U.Za()});_.P(a,7)&&(b.gKb=!0);_.P(a,8)&&(b.ou=!0);_.P(a,9)&&(b.DEa=!0)}else a instanceof _.Huc?(b=a.request.Ac(),v="files/"+b+"/listCategoryMetadata",A=a.request.se(),a.pageToken&&(p.pageToken=a.pageToken),a.request.Di()&&(p.maxResults=a.request.Di()),p.fields="kind,nextPageToken,categoryMetadata",_.tK(this.H,[],[b],this.O,k)):a instanceof _.gK?(k["content-type"]="application/json",l="POST",b=a.Ac(),v="files/"+b+"/updateCategoryMetadata",
A=a.se(),z={categoryMetadata:a.zV().map(function(U){var ca=_.Oj(U,_.CG,2).map(function(ja){return{id:ja.getId(),userId:ja.hs(),setBooleanValue:_.P(ja,3),setTextValue:_.y(ja,4),setTextValues:_.fe(ja,6),addTextValues:_.fe(ja,5),setLongTextValue:_.y(ja,7),setSelectionValue:_.y(ja,8),setSelectionValues:_.fe(ja,10),addSelectionValues:_.fe(ja,9),setIntegerValue:_.y(ja,11),setIntegerValues:_.fe(ja,13),addIntegerValues:_.fe(ja,12),setUserValue:_.y(ja,14),setUserValues:_.fe(ja,16),addUserValues:_.fe(ja,15),
setDateStringValue:_.y(ja,17)}}),Z={categoryName:U.Nm()};ca.length?Z.categoryAttributeValueDeltas=ca:_.fe(U,4).length?Z.revertAttributeIds=_.fe(U,4):_.P(U,3)&&(Z.removeCategory=_.P(U,3));return Z})},_.tK(this.H,[],[b],this.O,k)):a instanceof _.ZJ?(h=13,v=_.wI(_.KI(this.H))?"/v2/people/public":"/v2/people",p.person_id=a.mn(),p["request_mask.include_container"]=["PROFILE","DOMAIN_PROFILE"],p["request_mask.include_field.paths"]=["person.metadata.best_display_name","person.photo","person.email"],p["merged_person_source_options.included_profile_states"]=
["DASHER_ADMIN_DISABLED"],_.wI(_.KI(this.H))||(p["core_id_params.enable_private_names"]=!0)):a instanceof _.Nuc?(h=12,v="/v1/categories/-/published",k["content-type"]="application/json",a.pageToken&&(p.pageToken=a.pageToken),a.request.Di()&&(p.maxResults=a.request.Di()),a.request.getCustomer()&&(p.customer=a.request.getCustomer()),p.$outputDefaults=!0,p.languageCode=GL(_.KI(this.H))):a instanceof _.EG?(h=12,v="/v1/"+a.getName(),k["content-type"]="application/json",p.$outputDefaults=!0,p.languageCode=
GL(_.KI(this.H))):a instanceof _.zJ?(k["content-type"]="application/json",l="POST",v="drives/"+a.yc()+"/changeCategoryReferences",A=a.se(),r=!0,p.fields=hM(this.H,[157],!0),z={},b=_.Oj(a,_.fl,2),b.length&&(z.addCategoryReferences=b.map(function(U){return{category:U.Nm()}})),a=_.Oj(a,_.fl,3),a.length&&(z.removeCategoryReferences=a.map(function(U){return U.Nm()}))):a instanceof _.JG?(v="workspaces/"+a.mn()[0],p.fields="kind,id,title,createdDate,modifiedDate,state",A=a.se(),r=!0):a instanceof _.Guc?
(h=7,l="POST",v="/v2/activity:query",k["content-type"]="application/json",z={},z.pageSize=a.pageSize,a.pageToken&&(z.pageToken=a.pageToken),b="items/"+a.request.getId(),_.Q(a.request,2,!1)?z.ancestorName=b:z.itemName=b,z.consolidationStrategy={legacy:{}},(a=_.rK(this.H))&&_.Q(a,13,!1)&&(z.filter="actor.type_case:(USER IMPERSONATION ADMINISTRATOR SYSTEM) actor.system.type:MULTIPARENTING_MIGRATION")):a instanceof _.Juc?(h=8,l="POST",v="/v1/exports/"+a.H+":cancel"):a instanceof _.Kuc?(h=8,v="/v1/exports/"+
a.H):"undefined"!=typeof _.Muc&&a instanceof _.Muc?(v="changes",p.fields="kind,largestChangeId",_.KK(p),p.includeItemsFromAllDrives=!0,a.teamDriveId&&(p.teamDriveId=a.teamDriveId),A=a.H,r=!0):a instanceof _.WD?(v="settings",A=_.fe(a,3),p.namespace=RCc(A),A=a.se(),r=!0):a instanceof _.Uuc?(v="workspaces",p.fields="kind,nextPageToken,items(kind,id,title,createdDate,modifiedDate,state)",a.pageToken&&(p.pageToken=a.pageToken),a.request.Di()&&(p.maxResults=a.request.Di()),p.q=RWc(a.request),(A=a.request.Cw())&&
1==A.getType()&&(p.orderBy="title"),A=a.request.se(),r=!0):a instanceof _.$J?(v="changes/getRemainingCount",p.pageToken=_.y(a,2),_.Cj(a,3)&&(p.supportsTeamDrives=!0,p.includeItemsFromAllDrives=!0,p.teamDriveId=a.yc()),A=a.se()):a instanceof _.vJ?(k["content-type"]="application/json",l="POST",v="files/"+a.Ac()+"/sendAccessRequest",z={},q=!0):_.OAc(a);r&&_.PAc(c,p);0!=h||q||A&&_.y(A,1)||_.aL(this.dg,74438989);return _.QAc(this,h,v,p,k,l,A,z,T)};
TWc.prototype.W=function(a,b){a=this.ma.um.H(a);b.expectedParentIds=a?a.vk().join(","):[]};
var UWc=SCc("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"),VWc=
SCc("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"),
WWc=SCc("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 XWc=function(a,b,c,d,e,f,h,k,l,p,q,r,v,z,A,C,G,H,L,M,T,U,ca){this.loa=_.ai();this.kfa=new _.kyc;var Z=new _.Cyc(this.dK.bind(this),function(){return T("w8KrJc")}),ja=new qUc(b.um),qa=new hUc(Z);c=new $Tc(b,f,new VTc(d,e,c),h,this.loa.promise,k,l,c,T);d=new pUc(b,p,q,r,v,d,e,C,k);this.O=new _.nyc(a,z);z=new TWc(b,a,k,U);this.wsa=new GWc(k,a,A,C);this.H=kNc(a,new _.Qzc(this.O,this.kfa,z,this.wsa,G,H,L),H,A,M,b.um,this.kfa,this.loa.promise,L||void 0);this.loa.resolve(ca?ca:new _.ozc(new rUc,ja,qa,
this.H,Z,c,d,a))};XWc.prototype.dK=function(){return _.Oa(this.H,function(a){return a.dK()})};var $Qc=function(a){var b=new Map,c=Date.now();_.La(a.H,function(d,e){d=cGc(d);d.length&&b.set(e,d.map(function(f){return f?c-f:null}))});return b};
var YWc=function(a,b){var c=this;this.context=a;this.Lg=b;this.ka=null;this.vR=0;this.ma=this.active=!1;this.H=this.va=null;this.W={};this.Ha=this.Fa=!1;this.dg=a.rk();this.ha=_.ai();this.O=a.Nc;this.Ka=_.rK(this.O)||new _.dwc;b=_.HL(this.O);this.Ba=new _.cyc(_.ak(b,2,37500),_.ak(b,3,6E5));this.ta=a.pQ;_.La(ZIc,function(d){c.W[d]=[]});this.V=a.Mf.It;pM(a.Rj,["hVFf7","T8oKm","BNEDtc"],function(){c.log("Initializing: loaded from local dump");c.initialize()});pM(a.Rj,["hVFf7","T8oKm","mrK8ic"],function(){c.log("Initializing: loaded from sdk backfill");
c.initialize()});pM(a.Rj,["mrK8ic","BNEDtc"],function(){c.log("Updating: sdk backfill complete");c.jL().Cg(_.Tf)})};_.g=YWc.prototype;_.g.initialize=function(){var a=this;this.Fa||(this.Fa=!0,gN(this.context).addCallback(function(b){a.ta.initialize().lg(function(){a.ka=b;a.setActive(!0)},function(c){c&&IFc(a.context.Qf(),"drive.ds.sync.storage.LiveDumpUpdater","Error initializing dump storage",_.sJ(c));a.log("Error initializing dump storage");a.dS()})}))};
_.g.isInitialized=function(){return!!this.ka||this.ma};_.g.Zma=function(a){this.active&&(this.vR+=a,this.vR>_.ak(_.HL(this.O),1,500)&&this.update(3))};_.g.setActive=function(a){if(this.isInitialized()&&this.active!==a){var b=this.context;a&&(b.WQ().dK()||0<b.Mf.tI.Ena||b.Lj().Re()||b.Bk().Re())||((this.active=a)?(this.ha.resolve(),this.H||this.jL().Cg(_.Tf)):(this.ha=_.ai(),_.n.clearTimeout(this.va)))}};_.g.dS=function(){this.ma=!0};_.g.BWa=function(){return this.H?this.H.promise:_.Yh()};
_.g.jL=function(){var a=this;if(this.H)return this.H.promise;this.H=_.ai();_.ci(this.H.promise,function(){a.H=null});var b=this.dg.H(106021)||void 0;this.ha.promise.then(function(){return eNc(a.context.tD)}).then(function(c){var d=!c;return a.ma?d:_.$h([ZWc(a,3,d,void 0,void 0,b),ZWc(a,0,d,void 0,!0,b),ZWc(a,1,d,void 0,!0,b),ZWc(a,5,d,void 0,!0,b),ZWc(a,6,d,void 0,!0,b)]).then(function(){return d},function(e){e=new _.Dc("Failed to update dump",void 0,_.sJ(e));return _.Zh(e)})},function(){return _.Zh(Error("tg"))}).then(function(c){a.H.resolve(c);
b&&(c=PFc(b),_.w(c,2,!0),b.zj())},function(c){a.H.reject(c);b&&(c=PFc(b),_.w(c,2,!1),b.zj())});return this.H.promise};_.g.update=function(a,b){var c=this,d=new _.di,e=this.dg.H(106021)||void 0;e&&(uFc(PFc(e),_.SK(_.Htc,a)),d.then(function(){var f=PFc(e);_.w(f,2,!0);e.zj()},function(){var f=PFc(e);_.w(f,2,!1);e.zj()}));this.ha.promise.then(function(){return eNc(c.context.tD)}).then(function(f){f=!f;c.ma?d.callback():_.gi(ZWc(c,a,f,b,void 0,e),d)});return d};
var ZWc=function(a,b,c,d,e,f){var h=_.ha(a.W[b]);if(h){if(h.encrypt===c&&1<a.W[b].length)return h.vf.$m();var k=new _.di;_.fi(h.vf,function(){_.gi(a.Ju(b,c,d,e,f),k)})}else k=a.Ju(b,c,d,e,f);var l={encrypt:c,vf:k};a.W[b].push(l);_.fi(k,function(){_.ua(a.W[b],function(p){return l===p})});k.Rg(function(p){a.ta.O.Sf()?a.dS():p instanceof _.Dc&&(p=p.O||null,p instanceof _.BI&&"InvalidStateError"==p.getName()&&p.message&&-1<p.message.indexOf("The database connection is closing.")&&a.dS());return null});
return k};
YWc.prototype.Ju=function(a,b,c,d,e){var f=this,h=new _.di;this.ha.promise.then(function(){if(3===a)_.gi($Wc(f,c||!1,b,e),h);else{switch(a){case 0:var k=jRc(f.context.NP);break;case 1:k=f.context.KZ.wr();break;case 5:k=aXc(f.context.cE);break;case 6:k=NKc(f.context.Mf.vq);break;default:h.Jd("Invalid data type to write to storage.");return}if(k){var l=_.Oj(_.HL(f.O),FL,11)[0].getKey();!l&&b?(f.log("Skipping dump update, encrypted and no key"),h.callback()):bMc(f.ta,b?l:null,[k],e).then(function(){return void h.callback()},function(p){return void h.Jd(p)})}else d?
(f.log("Skipping dump update: "+a),h.callback()):h.Jd("Failed to get data to write to dump.")}});return h};
var $Wc=function(a,b,c,d){_.n.clearTimeout(a.va);a.va=_.n.setTimeout((0,_.N)(a.Qa,a),a.Ba.Za());if(b&&0===a.vR)return _.ii();a.vR=0;b=_.Oj(_.HL(a.O),FL,11)[0].getKey();if(!b&&c)return a.log("Skipping dump update, encrypted and no key"),_.ii();for(var e=[],f=_.m(bXc(a)),h=f.next();!h.done;h=f.next())h=cXc(a,h.value),h.length&&e.push(bMc(a.ta,c?b:null,h,d));var k=new _.di;Promise.all(e).then(function(){a.Ha&&a.context.tD.set(cNc,!0);k.callback()},function(l){return void k.Jd(l)});return k},bXc=function(a){var b,
c,d,e=Object.values(YHc).filter(function(f){return 0<f&&!dXc.includes(f)});(null===(b=_.rK(a.context.Nc))||void 0===b?0:_.Q(b,17,!1))?(null===(c=a.V.H)||void 0===c?0:c.UE)||null===(d=a.V.O)||void 0===d||!d.UE?e.push(2):e.push(5):e.push(2);return e};YWc.prototype.Qa=function(){_.GI(this.Ba);this.update(3,!0)};
var cXc=function(a,b){switch(b){case 1:return[eXc(a)];case 2:return b=a.V.H,a=XHc(fXc(a,b),2),b&&VHc(a,b.YG()),[a];case 5:return b=a.V.O,a=XHc(fXc(a,b),5),b&&(VHc(a,b.YG()),b=TJc(b),_.Ij(a,14,b)),[a];case 3:return gXc(a);case 4:return hXc(a);default:throw new _.Dc("Unsupported CacheType");}},eXc=function(a){for(var b={},c=[],d=bKc(a.V,!0),e=!0,f=0;f<d.length;f++){var h=d[f],k=h.py(),l=iXc(a,tCc(k));k=l.length;var p=0<k?l[k-1]:null;_.Ia(l,function(q){b[q.getId()]=q});if(0<k||h.H)l=PHc(new bM,h.ud()),
h.H||(_.w(l,2,k),_.I(l,3,p),e=!1),c.push(l)}d=_.Qa(b);a.log("Exporting "+d.length+" initial dump items.");return VHc(XHc(UHc(SHc(THc(WHc((new cM).Cu(a.context.$n()),_.LK(a.Lg)),a.ka.SQ(null)),jXc(d)),c),1),!e)},fXc=function(a,b){var c=b?b.py():[];c=iXc(a,_.Qa(uCc(c)));a.log("Exporting "+c.length+" secondary dump items.");c.length>_.ak(_.HL(a.O),5,2E4)&&(b&&sM(b,!1),c=[]);c=SHc(new cM,jXc(c));var d=new CCc;(a=a.V.H)&&a.UE&&(a=a.py(),_.w(d,3,a.length));a=_.I(c,11,d);b&&VHc(a,b.YG());return a},gXc=function(a){var b=
[],c=a.ka;a.V.WV().forEach(function(d){var e=c.SQ(d.yc());if(e){var f=iXc(a,tCc(d.py()));a.log("Exporting "+f.length+" TD dump items for: "+d.yc());e=VHc(XHc(THc(SHc(new cM,jXc(f)),e),3),d.YG());d=PHc(new bM,d.ud());UHc(e,[d]);b.push(e)}});return b},hXc=function(a){var b={},c=[];a.context.Mf.WV().forEach(function(d){1===d.DJ()&&null==_.P(d.ud(),6)&&(tCc(d.py()).forEach(function(e){b[e.getId()]=e}),d=QHc(PHc(new bM,new _.nf),d.ud()),c.push(d))});return[VHc(XHc(UHc(SHc(new cM,jXc(Object.values(b))),
c),4),!1)]},iXc=function(a,b){b=SBc(b);_.P(a.O,67)&&(b=kXc(b));_.ZI(a.O)&&(_.Q(a.Ka,9,!1)?QKc(a.context.Mf.vq,b)&&(_.aL(a.dg,179490965),a.log("b/179490965 Unexpected people data when writing to disk cache.","warning"),b=OKc(a.context.Mf.vq,b)):b=OKc(a.context.Mf.vq,b));return b.filter(function(c){return 4!==c.rv()})},kXc=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,HBc(c)?(c=c.clone(),rBc(c,GBc),b.push(c)):b.push(c);return b},jXc=function(a){return a.map(function(b){return b.clone()})};
YWc.prototype.log=function(a,b){this.context.Qf().log("drive.ds.sync.storage.LiveDumpUpdater",a,void 0===b?"info":b)};YWc.prototype.ODa=function(){this.Ha=!0};var dXc=[2,5];
var lXc=function(){};_.g=lXc.prototype;_.g.setActive=function(){};_.g.dS=function(){};_.g.update=function(){return _.ii()};_.g.BWa=function(){return _.Yh()};_.g.jL=function(){return _.Yh()};_.g.Zma=function(){};_.g.ODa=function(){};
var DL=function(a,b,c,d){_.Di.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 _.Ywc;this.Nc=b.clone();(a=_.rK(this.Nc))&&_.Q(a,1,!1)&&_.OI(this.Nc,28);this.Lg=new _.bxc(this.Nc);this.wm=new DIc(_.LK(this.Lg),this.Nc);mXc(this);this.vX=new _.Gn;this.rb=_.n.setTimeout(function(){e.Qf().info("drive.ds.sync.ThinContext","Page stable timed out.");e.vX.resolve();e.rk().O(106020)},1E4);this.JZ=new _.di;this.Ba=new _.Exc(_.FK(this.Nc),_.Q(this.Nc.hg(),
52,!1));this.connectionState=new _.xxc(_.FK(this.Nc)?3:1,!_.Q(this.Nc.hg(),52,!1));this.dg=_.Uxc(this.Nc,this.Ba,this.connectionState,this.va,this.vX.promise,this.iw);this.lfa=new kJc(this.dg);this.XP=new _.di;this.log("Enabled experiments: "+this.rk().W.W);nXc(this)};_.K(DL,_.Di);DL.prototype.getEnvironment=function(){return this.iw};DL.prototype.WR=function(){this.Qf().info("drive.ds.sync.ThinContext","Notified of page stable.");_.n.clearTimeout(this.rb);this.vX.resolve()};
var nXc=function(a){var b=function(){a.Eu().Cg(_.Tf)},c=a.Aa;(c=c&&_.yc(c,_.hm))?_.xi(c,"w",b):_.Mtc()||_.xi(_.n,"unload",b)};DL.prototype.Eu=function(){this.dg.O(106005);TFc(this.dg);var a=this.ma.map(function(b){return b()});_.pa(this.ma);return _.SI(a).then()};var oXc=function(a,b){a.ma.push(b)};_.g=DL.prototype;_.g.Qf=function(){return this.va};_.g.Cu=function(a,b){"string"===typeof a&&null===this.rootId&&(this.rootId=a,this.JZ.callback(a),a.length&&this.n4a(a,b||null))};_.g.n4a=function(){};
_.g.$n=function(){return this.rootId};_.g.rk=function(){return this.dg};var pXc=function(a){if(!a.ha)throw Error("ug");return a.ha},qXc=function(a,b){a.ha=b};DL.prototype.IB=function(){return this.Fa||this.connectionState.isConnected()};DL.prototype.Lj=function(){return this.Ba};DL.prototype.Bk=function(){return this.connectionState};DL.prototype.CNb=function(a){this.XP.callback(a)};
var mXc=function(a){var b=a.Nc.hg();0===_.fe(b,30).length&&(a.log("No user pref namespaces provided, user prefs disabled."),_.w(b,19,3));if(!_.D(b,37,""))throw Error("vg");_.y(b,57)||(a.log("No root URI provided; using prod default."),_.w(b,57,"https://clients6.google.com"));if(_.Q(_.HL(a.Nc),9,!1))if(b=_.Oj(_.HL(a.Nc),FL,11),0<b.length){if(!_.y(b[0],1)||!b[0].getKey()&&!_.FK(a.Nc)&&!_.Q(a.Nc,10,!1))throw Error("wg");}else _.w(_.HL(a.Nc),9,!1),a.log("Disabling IndexedDB support, missing configuration.");
if(!_.Q(_.HL(a.Nc),9,!1)&&(_.FK(a.Nc)||_.Q(a.Nc,10,!1)))throw Error("xg");var c=_.KI(a.Nc);b=!(!c||!_.wI(c));c=c&&_.DK(c)||"";if(!b&&!c)throw Error("yg");b&&_.Lj(a.Nc,44);_.Oj(a.Nc,_.nf,44).forEach(function(d){try{GIc(a.wm,d)}catch(e){if(e instanceof _.Dc&&(d=e.Sg)&&3===d.Vs())throw Error("zg");throw e;}})};DL.prototype.mJ=function(a){this.dispatchEvent(new _.Ec(new _.Dc(void 0,a)))};DL.prototype.log=function(a){this.Qf().info("drive.ds.sync.ThinContext",a)};
var rXc=function(a,b){this.H=a;this.Ie=b};
var sXc=new Set([5,4,1,6,2]),tXc=new Map([[3,1],[7,1],[2,2],[4,2],[5,3],[1,4],[6,5]]),uXc=function(a,b,c){_.Di.call(this);this.ha=a;this.V=b;this.W=c;this.DF=new Map;this.O=new Map;this.status=6;this.H=null};_.K(uXc,_.Di);
uXc.prototype.YP=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())&&_.pp(q))&&f.add(q)});[].concat(_.Ad(f.values())).forEach(function(q){return void c.push(q)})}if(c.length){var h=sXc.has(b),k=new Map;c.forEach(function(q){k.set(q,new Map)});a.forEach(function(q){var r=q.getKey(),v=r&&_.pp(r);r=r&&_.y(r,2);v=k.get(v);r&&v&&v.set(r,vXc(q))});var l=0,p=0;[].concat(_.Ad(k.keys())).forEach(function(q){var r=k.get(q),v=e.DF.get(q);v?h&&
(r.forEach(function(z){var A=z.getKey();(A=v.get(A&&_.y(A,2)))&&_.Zj(z,A)||l++}),[].concat(_.Ad(v.values())).forEach(function(z){z=z.getKey();r.has(_.y(z,2))||p++}),e.DF.set(q,r),e.O.set(q,b)):(l+=r.size,e.DF.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,qM(this.V,"px2C2c");qM(this.V,"rkYxSd")}(l||p)&&wXc(this,!h)}};
uXc.prototype.NG=function(){return 0<this.DF.size};var wXc=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 _.ti("WPi0i"))};uXc.prototype.put=function(a){var b=a.getKey(),c=b&&_.pp(b);b=b&&_.y(b,2);if(c&&b&&(c=this.DF.get(c))){var d=c.get(b);a=vXc(a);d&&_.Zj(a,d)||(c.set(b,a),wXc(this))}};uXc.prototype.remove=function(a){var b=a&&_.pp(a);a=a&&_.y(a,2);b&&a&&(b=this.DF.get(b))&&b.delete(a)&&wXc(this)};
var aXc=function(a,b){var c=[];(b||[].concat(_.Ad(a.DF.keys()))).forEach(function(e){(e=a.DF.get(e))&&[].concat(_.Ad(e.values())).forEach(function(f){return void c.push(f.clone())})});b=b?b.filter(function(e){return a.DF.has(e)}):[].concat(_.Ad(a.DF.keys()));var d=new xGc;_.Kj(d,1,c);_.Ij(d,2,b);return d};
uXc.prototype.HG=function(a){var b=this,c=aXc(this,a),d=new _.iA;d.Dc(this.status);_.olb(d,_.Oj(c,_.op,1));_.I(d,4,c);var e=0;a.forEach(function(f){f=b.O.get(f);tXc.has(f)&&Infinity>tXc.get(f)&&(e=f)});return new rXc(d,e)};var vXc=function(a){a=a.clone();a.Og()||a.Jb("");return a};
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var xXc=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},zXc=function(a,b){return yXc(a[b])+(yXc(a[b+1])<<8)+(yXc(a[b+2])<<16)+(yXc(a[b+3])<<24)},yXc=function(a){return 127<a?a-256:a};
var EL=function(a,b,c,d,e,f){DL.call(this,a,b,c,d);var h=this;this.Ta=_.ai();this.nt=new wM;this.W=null;this.O=_.ai();this.Ha=new _.di;this.W5=null;this.nfa=new fLc;this.V=null;this.$a=_.ai();this.ta=new _.di;this.NF=new MLc;this.Dz=new pLc;this.Uga=new mLc;this.T$=new _.Gn;this.Ka=!1;this.mfa=new _.Gn;this.H={};this.ka=null;this.Ib=new _.Ye;this.Ma(this.Ib);this.Rj=e?e:new NJc(this.Qf());this.rk().W.O=this.Rj;this.HL=_.Q(_.HL(b),9,!1)&&VCc()?AXc(this,b):null;this.yv=new wIc(GL(_.KI(b)));this.tD=
BXc(this,this.HL);this.pQ=CXc(this,this.HL,b);this.Mf=new kN(this,this.Lg);this.Is=DXc(this);(a=(a=_.B(this.Nc,_.hl,12))&&a.getId())&&this.Cu(a,6);this.NP=new iRc(this.Nc,this.Mf.vq,this.Rj,this.Qf(),this.Is);this.KZ=new oRc(this.Qf(),this.Rj,this.Is);this.cE=new uXc(this.Qf(),this.Rj,this.Is);this.uI=new cJc(this.Sm(),this.Qf(),function(k){return void h.mJ(k)});this.mz=_.Q(this.Nc.hg(),52,!1)?new _.bL(this.Bk(),this.Sm(),this.Qf(),this.rk()):null;pM(this.Rj,["mrK8ic"],function(){h.$a.promise.then(function(){URc(h,
h.V)})});this.sMa=new ILc(this.Nc);this.YA=new _.vyc(this.Nc,this.Mf.um);this.xsa=new RTc(this);this.V5=new jLc(this.O.promise,this.Sm());this.kb=new nLc(this.Sm(),this.V5);this.ofa=new ELc(this.O.promise,this.Sm(),this.Qf(),this.Nc);this.Qa=new XWc(this.Nc,this.Mf,this.mJ.bind(this),this.V5,this.kb,this.Is,this.nfa,this.Lg,this.$n.bind(this),this.xsa,this.KZ,this.cE,this.ofa,this.NF,this.Qf(),this.sMa,this.YA,this.uI,this.mz,this.Lj(),this.Uob.bind(this),this.rk(),f);this.Ta.resolve(this.Qa);this.sJa=
new BTc(this);pM(this.Rj,["BNEDtc"],function(){return h.mfa.resolve()});oXc(this,function(){h.Is.dS();return _.Yh()})};_.K(EL,DL);
var AXc=function(a,b){var c=_.DK(_.KI(b)),d=_.EK(b),e=function(){},f=_.Oj(_.HL(b),FL,11);f=f[0]&&_.y(f[0],1);var h=new xMc(c,d,_.ak(_.HL(b),10,0)||0,f||"",_.LK(a.Lg));_.FK(b)?c=SMc(c,d).then(function(l){return l?l:h}):_.Q(b,10,!1)&&0<_.ak(_.HL(b),8,432E6)?(b=EXc(a,c),c=SMc(c,d,b).then(function(l){return l&&(e=function(p){return p.Ol(h).Cg(function(){return null})},!l.ha)?l:h})):c=_.Yh(h);var k=new EM(c,a.Qf(),a.rk());k.initialize().then(function(){return e(k)},function(){return null});return k},EXc=
function(a,b){var c=_.ak(_.HL(a.Nc),8,432E6);if(!_.FK(a.Nc)&&0<c){a=Math;var d=a.abs;b=_.uma(b);var e=0,f=b.length,h={a:-1640531527,b:-1640531527,c:314159265},k;for(k=f;12<=k;k-=12,e+=12)h.a+=zXc(b,e),h.b+=zXc(b,e+4),h.c+=zXc(b,e+8),xXc(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+=zXc(b,e+4);h.a+=zXc(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+=zXc(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=xXc(h);return d.call(a,b)%c}};EL.prototype.$y=function(a){var b=this;return this.HL?this.HL.Sf()?_.Zh(Error("Ag`"+EMc(this.HL))):eNc(this.tD).then(function(c){var d=b.HL,e=[];e.push(b.Is.BWa());e.push(a?d.Ol():OMc(d));if(a===c)return _.$h(e).then(function(){return!1});!1===a&&(e.push(DMc(d)),(c=b.$n())&&e.push(b.tD.Cu(c)));return _.$h(e).then(function(){return b.tD.$y(a)},function(){return!1})}):_.Zh(Error("Bg"))};
var CXc=function(a,b,c){var d=null;b&&(d=new WLc(b,c,function(e){a.mJ(e)},a.rk()),d.initialize());return d},BXc=function(a,b){var c=new dNc(b||void 0);c.$n().then(function(d){d&&a.Cu(d,5)});b&&(eNc(c).then(function(d){a.Lj().$y(d)}),_.$h([b.initialize(),a.vX.promise]).then(function(){FXc(a,c)},function(){}));return c},FXc=function(a,b){hNc(b).then(function(c){(!c||c<Date.now()-864E5)&&VMc(_.DK(_.KI(a.Nc)),_.EK(a.Nc),a.Qf()).then(function(d){d&&(d=Date.now(),b.set(bNc,d))},function(){})})},DXc=function(a){if(!a.pQ)return new lXc;
var b=new YWc(a,a.Lg);a.Ib.listen(a.Lj(),"Bb",function(c){return void b.setActive(!c.Re())});a.Ib.listen(a.Bk(),[].concat(_.Ad(Object.values(_.rC))),function(){return void b.setActive(a.Bk().isConnected())});return b};EL.prototype.gY=function(a){this.W5=a;this.Ha.callback(a)};var gN=function(a){return a.Ha.$m()},ZQc=function(a){return a.HL?a.HL.Sf():null},GXc=function(a,b){a.Rj.H("NSockf")?qM(a.Rj,b):pM(a.Rj,["NSockf"],function(){qM(a.Rj,b)})};
EL.prototype.n4a=function(a,b){this.log("Setting Root ID: "+a);a&&(this.nt.Cu(a),this.wm.Cu(a),6!==b&&1!==b||this.tD.Cu(a),GXc(this,"jroI5d"))};EL.prototype.CVa=function(){return this.ta.$m()};var URc=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.jg()||(a.ta.callback(b),GXc(a,"T8oKm")))},tRc=function(a){if(!a.W)throw Error("Cg");return a.W};_.g=EL.prototype;_.g.WQ=function(){return this.Qa};_.g.Sm=function(){return this.Ta.promise.then(function(a){return a.loa.promise})};
_.g.NDa=function(){this.Ka||(this.Ka=!0,this.T$.resolve(),qM(this.Rj,"aU7Ts"))};_.g.IB=function(){throw Error("Dg");};_.g.Uob=function(a){this.dispatchEvent(a)};var HXc=function(a,b){hTc(a.Mf,b)},IXc=function(a,b,c){a.H[b]=c},SQc=function(a){a.ka||(a.ka=new vLc(a.O.promise,a.Sm(),a.Qf()));return a.ka};
var oN=function(a,b,c){_.Di.call(this);var d=this;this.Fa=a;this.rb=b;this.va=_.ai();this.Ba=this.channel=this.clientId=null;c.then(function(e){return JXc(d,e)})};_.K(oN,_.Di);var JXc=function(a,b){a.clientId=b.clientId;a.channel=b.channel;a.Ba=b.H;iM(a.channel,a.Fa,function(c){c=VIc(c);a.B$(c.O,!(!c.data||!c.H),c.data,c.error)});a.log("Service initialized: "+a.Fa);a.va.resolve()};oN.prototype.B$=function(){};
oN.prototype.send=function(a,b,c,d){var e=this,f=_.ai();this.va.promise.then(function(){var h=e.channel;jM(h,e.Fa,RIc(new QIc(e.clientId,a,b,d),h.W),function(k){return void KXc(k,a,f,c||function(){})})});return f.promise};var KXc=function(a,b,c,d){a=VIc(a);a.data?c.resolve(d(a.data,a.H)):(a.error?d=a.error:(d=new _.Cc,_.eJ(d,2),_.fJ(d,6),_.w(d,21,"Worker["+b+"]: An invalid response was received")),c.reject(new _.Dc(void 0,d)))};oN.prototype.log=function(a){this.Ba&&this.Ba.info(this.rb,a)};
var LXc=function(a,b,c,d){this.clientId=a;this.channel=b;this.H=c;this.O=d};
var pN=function(a,b){_.O.call(this);this.V=a;this.va=b;this.Ka=this.KU()};_.K(pN,_.O);pN.prototype.registerService=function(a){var b=this;iM(a,this.V,function(c){return b.Ew(c)})};
pN.prototype.Ew=function(a){var b=this;a=SIc(a);var c=a.H,d=this.Ka[a.method],e=null;if(d)try{var f=d(a);if(f instanceof TIc)return UIc(f,c);if(f.then)return f.then(function(h){return UIc(h,c)},function(h){h=_.gJ(h);return UIc(b.jd(void 0,h),c)})}catch(h){e=_.sJ(h)}f=new _.Cc;_.eJ(f,2);_.fJ(f,3);_.mq(f,this.V+":"+a.method+": "+(e?e.message:"unsupported method"));e&&e.stack&&_.w(f,20,e.stack);return UIc(this.jd(void 0,f),c)};
pN.prototype.jd=function(a,b,c){if(a&&!b)return new TIc(a,void 0,c);a=_.gJ(b);return new TIc(void 0,a,c)};pN.prototype.update=function(a,b,c,d){(a=this.va.channels[a]||null)&&jM(a,this.V,UIc(this.jd(c,d,b),a.W))};
var MXc=function(){this.channels={};this.H=this.O=this.V=0},NXc=function(a,b){var c=a.V++;a.channels[c]=b;a.O++;a.H=Math.max(a.H,_.Pa(a.channels));return c},OXc=function(a,b){var c=a.channels[b];return c?(delete a.channels[b],c):null};
var PXc=function(a,b){pN.call(this,"LRM",b);this.context=a;this.H={};a=this.context;a.W=this;a.O.resolve(this);this.ha=this.context.Mf;this.O=this.context.ofa;this.W=SQc(this.context);this.ka=this.context.V5};_.K(PXc,pN);
PXc.prototype.KU=function(){var a=this,b={};return b["4.1"]=function(c){var d=c.clientId+":"+c.requestId;c=CL(c.args[0],!!c.H,_.nf);return a.ii(d,c)},b["4.9"]=function(c){var d=c.clientId+":"+c.requestId;c=CL(c.args[0],!!c.H,_.yI);return a.ii(d,c)},b["4.2"]=function(c){var d=c.clientId+":"+c.requestId;c=CL(c.args[0],!!c.H,_.zA);return a.ii(d,c)},b["4.10"]=function(c){var d=c.clientId+":"+c.requestId;c=CL(c.args[0],!!c.H,_.GG);return a.ii(d,c)},b["4.3"]=function(c){var d=c.clientId+":"+c.requestId;
c=CL(c.args[0],!!c.H,_.nf);return a.jk(d,c)},b["4.11"]=function(c){var d=c.clientId+":"+c.requestId;c=CL(c.args[0],!!c.H,_.yI);return a.jk(d,c)},b["4.4"]=function(c){var d=c.clientId+":"+c.requestId;c=CL(c.args[0],!!c.H,_.zA);return a.jk(d,c)},b["4.12"]=function(c){var d=c.clientId+":"+c.requestId;c=CL(c.args[0],!!c.H,_.GG);return a.jk(d,c)},b["4.5"]=function(c){var d=c.clientId+":"+c.requestId,e=CL(c.args[0],!!c.H,_.zA);c=CL(c.args[1],!!c.H,_.zA);return a.RY(d,e,c)},b["4.6"]=function(c){var d=c.clientId+
":"+c.requestId,e=CL(c.args[0],!!c.H,_.GG);c=CL(c.args[1],!!c.H,_.GG);return a.RY(d,e,c)},b["4.7"]=function(c){return a.CF(c)},b["4.8"]=function(c){return a.CF(c)},b["4.13"]=function(c){var d=c.clientId+":"+c.requestId;c=CL(c.args[0],!!c.H,_.mA);return a.ii(d,c)},b["4.14"]=function(c){var d=c.clientId+":"+c.requestId;c=CL(c.args[0],!!c.H,_.JG);return a.ii(d,c)},b["4.15"]=function(c){var d=c.clientId+":"+c.requestId;c=CL(c.args[0],!!c.H,_.mA);return a.jk(d,c)},b["4.16"]=function(c){var d=c.clientId+
":"+c.requestId;c=CL(c.args[0],!!c.H,_.JG);return a.jk(d,c)},b["4.18"]=function(c){var d=c.clientId+":"+c.requestId;c=CL(c.args[0],!!c.H,_.SG);return a.ii(d,c)},b["4.19"]=function(c){var d=c.clientId+":"+c.requestId;c=CL(c.args[0],!!c.H,_.SG);return a.jk(d,c)},b["4.22"]=function(c){var d=c.clientId+":"+c.requestId;c=CL(c.args[0],!!c.H,_.kA);return a.ii(d,c)},b["4.23"]=function(c){var d=c.clientId+":"+c.requestId;c=CL(c.args[0],!!c.H,_.kA);return a.jk(d,c)},b["4.21"]=function(c){c=a.H[c.clientId+":"+
c.requestId].query;if(c instanceof _.kA){var d=a.W;dLc(d,d.getKey(c)).refresh()}return a.jd([])},b};PXc.prototype.ii=function(a,b){var c=this,d=new _.Gn;this.H[a]={query:b,QSb:d.promise};b instanceof _.mA?d.resolve(this.O.ii(a,b)):b instanceof _.JG?d.resolve(bLc(this.O,a,b)):b instanceof _.kA?d.resolve(this.W.ii(a,b)):b instanceof _.SG?d.resolve(this.ka.ii(a,b)):d.resolve(this.ha.ii(a,b));return d.promise.then(function(){return c.jd([])})};PXc.prototype.jk=function(a,b){QXc(this,a,b);return this.jd([])};
var QXc=function(a,b,c){delete a.H[b];c instanceof _.mA?a.O.jk(b,c):c instanceof _.JG?cLc(a.O,b,c):c instanceof _.kA?a.W.jk(b,c):c instanceof _.SG?a.ka.jk(b,c):a.ha.jk(b,c)};_.g=PXc.prototype;_.g.RY=function(a,b,c){QXc(this,a,b);return this.ii(a,c)};_.g.CF=function(a){var b=a.clientId+":"+a.requestId,c=this.H[b].query;c.ui(a.args[0]);c instanceof _.mA?this.O.ii(b,c):c instanceof _.JG?bLc(this.O,b,c):c instanceof _.kA?this.W.ii(b,c):c instanceof _.SG?this.ka.ii(b,c):this.ha.ii(b,c);return this.jd([])};
_.g.hO=function(a,b){var c=this,d=this.H[a];if(d){a=a.split(":");var e=_.Wg(a[0]),f=a[1];d.QSb.then(function(h){b instanceof _.$K||b instanceof _.XK?c.update(e,f,[b.response,b.pageToken,b.H,b.Ie,h]):(d.query instanceof _.nf?tBc(d.query.O(),b.wd().filter(function(k){return!eM(k)})):d.query instanceof _.zA&&tBc(d.query.O(),Object.values(b.fq()).filter(function(k){return k&&!eM(k)})),c.update(e,f,[b,h]))})}};
_.g.GX=function(a,b){if(this.H[a]){var c=a.split(":");a=_.Wg(c[0]);c=c[1];var d=b.error;d.jfa(b.H);this.update(a,c,void 0,d)}};_.g.uA=function(a){this.H[a]&&(a=a.split(":"),this.update(_.Wg(a[0]),a[1],["cacheRefresh"]))};_.g.S8=function(){};_.g.ska=function(a){if(!this.H[a])throw Error("eg`"+a);return this.H[a].query};var RXc=function(a,b){_.La(a.H,function(c,d){_.Wg(d.split(":")[0])===b&&QXc(a,d,c.query)})};
var SXc=function(a,b,c){oN.call(this,"LRM","drive.ds.sync.cache.LiveRequestManagerProxy",a);this.context=b;this.H=c;this.O={}};_.K(SXc,oN);SXc.prototype.Uwa=function(a){var b=this;a=new EQc(this.context.wm,this.context.XP,this.context.Qf(),this.context.Nc,function(c,d){return b.CF(c,d)},a,this.context.rk());TXc(this,a);return a};SXc.prototype.Xwa=function(a){var b=this;a=new IQc(this.context.wm,this.context.XP,this.context.Qf(),function(c,d){return b.CF(c,d)},a,this.context.Nc);TXc(this,a);return a};
var TXc=function(a,b){a.ii(b);_.Qe(b,function(){a.jk(b);a.send("4.3",[b.ud()],void 0,b.ri())});a.send("4.1",[b.ud()],void 0,b.ri())};_.g=SXc.prototype;_.g.Rwa=function(a){var b=this,c=new QL(this.context.Nc,this.context.wm,this.context.Qf(),this.context.JZ,this.RY.bind(this),a);this.ii(c);_.Qe(c,function(){b.jk(c);b.send("4.4",[c.ud()],void 0,c.ri())});this.send("4.2",[c.ud()],void 0,c.ri());return c};
_.g.$wa=function(a){var b=this,c=new MQc(a,this,this.context.Nc);this.ii(c);_.Qe(c,function(){b.jk(c);b.send("4.11",[c.ud()],void 0,c.ri())});this.send("4.9",[c.ud()],void 0,c.ri());return c};_.g.axa=function(a){var b=this,c=new NQc(this.context,this,a);this.ii(c);_.Qe(c,function(){b.jk(c);b.send("4.12",[c.ud()],void 0,c.ri())});this.send("4.10",[c.ud()],void 0,c.ri());return c};
_.g.dxa=function(a){var b=this,c=new QQc(this.context,a,this);this.ii(c);_.Qe(c,function(){b.jk(c);b.send("4.15",[c.ud()],void 0,c.ri())});this.send("4.13",[c.ud()],void 0,c.ri());return c};_.g.exa=function(a){var b=this,c=new HQc(this.context,a);this.ii(c);_.Qe(c,function(){b.jk(c);b.send("4.16",[c.ud()],void 0,c.ri())});this.send("4.14",[c.ud()],void 0,c.ri());return c};
_.g.Ywa=function(a){var b=this,c=new LQc(this.context,a,function(){b.send("4.21",[],void 0,c.ri())});this.ii(c);_.Qe(c,function(){b.jk(c);b.send("4.23",[c.ud()],void 0,c.ri())});this.send("4.22",[c.ud()],void 0,c.ri());return c};_.g.Nwa=function(a){var b=this,c=new CQc(this.context.Lj(),this.context.Bk(),this.context.Qf(),function(d,e){return b.CF(d,e)},a);this.ii(c);_.Qe(c,function(){b.jk(c);b.send("4.19",[c.ud()],void 0,c.ri())});this.send("4.18",[c.ud()],void 0,c.ri());return c};
_.g.ii=function(a){this.H.create(a.ri(),a.ud());this.O[a.ri()]=a};_.g.jk=function(a){kM(this.H,a.ri(),4);delete this.O[a.ri()]};_.g.RY=function(a,b,c){if(b instanceof _.zA&&c instanceof _.zA)this.send("4.5",[b,c],void 0,a);else if(b instanceof _.GG&&c instanceof _.GG)this.send("4.6",[b,c],void 0,a);else throw Error("Eg");};
_.g.CF=function(a,b){if(!this.O[a])throw Error("eg`"+a);var c=this.O[a];if(c.ud()instanceof _.nf)var d="4.7";else if(c.ud()instanceof _.yI)d="4.8";else if(c.ud()instanceof _.SG)d="4.20";else if(c.ud()instanceof _.mA)d="4.17";else throw Error("Fg");c.ud().ui(b);this.send(d,[b],void 0,a)};
_.g.B$=function(a,b,c,d){if(a=this.O[a]){var e,f=0;if(d)b=new NL(d,d.J5()),a.CB(b),kM(this.H,a.ri(),3);else if(c&&c[f]){d=c[f++];if("cacheRefresh"===d){a.fW();return}var h=a.ud();if(h instanceof _.nf||h instanceof _.yI)h instanceof _.nf&&_.RJ(h)?e=CL(d,b,_.UK):e=CL(d,b,_.xB);else if(h instanceof _.zA||h instanceof _.GG)b?(e=new _.TK,rGc(e,function(k){return new _.hl(JSON.parse(k))},d)):e=d;else if(h instanceof _.SG)e=new _.XK(CL(d,b,mM),c[f++],c[f++],c[f++]);else if(h instanceof _.mA)e=new _.$K(CL(d,
b,oM),c[f++],c[f++],c[f++]);else if(h instanceof _.JG)e=CL(d,b,_.VK);else if(h instanceof _.kA)e=CL(d,b,aM);else throw Error("Gg");}e&&(b=f,c&&"boolean"===typeof c[b]&&lJc(this.H,a.ri(),!!c[b]),oJc(this.H,a.ri(),e),a.update(e))}};
var qN=function(){_.Di.apply(this,arguments);this.commands=new _.sl;this.ha=this.active=this.qp=!1};_.K(qN,_.Di);qN.prototype.initialize=function(){this.qp||(this.qp=!0,this.V(),this.setActive(!0))};qN.prototype.V=function(){};qN.prototype.setActive=function(a){this.active=a;UXc(this)};var UXc=function(a){if(a.active&&!a.ha){var b=_.tl(a.commands);if(b)if(a.va()){do a.ka(b);while(b=_.tl(a.commands))}else a.ha=!0,_.ci(a.Ba(b),function(){a.ha=!1;UXc(a)})}};qN.prototype.ka=function(){};
qN.prototype.Ba=function(){};qN.prototype.va=function(){return!0};qN.prototype.enqueue=function(a){try{var b=new _.di;this.commands.enqueue(new VXc(a,b));UXc(this);return b}catch(c){return _.ki(_.sJ(c))}};var VXc=function(a,b){this.H=a;this.vf=b};VXc.prototype.getCommand=function(){return this.H};VXc.prototype.xG=function(){return this.vf};
var YXc=function(a){qN.call(this);var b=this;this.context=a;this.O=null;this.Sc=new _.Ye(this);this.Ma(this.Sc);this.Sc.listen(this.context,"VMiG2e",function(){return void WXc(b)});this.H=this.context.Mf.vq;_.ZI(this.context.Nc)&&this.Sc.listen(this.H,"Fb",this.W);var c=a.Rj;pM(c,["toquGd"],function(){return b.initialize()});var d=["NSockf"];1!==_.Fj(a.Nc.hg(),17,1)&&(d.push("iuEtc"),pM(c,["mrK8ic"],function(){qM(c,"iuEtc")}));pM(c,d,function(){XXc(b)})};_.K(YXc,qN);YXc.prototype.V=function(){ZXc(this)};
var XXc=function(a){if(1===a.context.NP.wf().Bb())Promise.resolve();else{var b=_.Df(_.Ef(new _.Cf,!0),301);b=_.MI(new _.LI,b);a.refresh(b).then(null,function(c){c=_.gJ(c);_.w(c,21,"Initial account request failed.");a.context.mJ(c)})}},WXc=function(a){var b=_.Df(new _.Cf,304);b=_.MI(new _.LI,b);a.refresh(b).then(null,function(){})};
YXc.prototype.refresh=function(a,b){var c=this;this.O||(this.O=_.ci(this.context.Sm().then(function(d){return d.Pe(a,b)}).then(function(d){var e=d.wf(),f=e.getUser();if(f&&!1===_.Sk(f))d=_.hJ(_.KI(c.context.Nc)),d=Error("Hg`"+d+"`"+uL(f)),_.zb(d),_.aL(c.context.rk(),73301807),d=Promise.reject(d);else{f=c.context.NP;var h=0===f.Ye()?1:6;_.ZI(c.context.Nc)&&GKc(c.H,e);h=kRc(f,e,h);(e=e.getMetadata())&&c.context.Cu(_.y(e,2),1);(d=_.y(d,4))&&URc(c.context,d,!0);h&&c.dispatchEvent(new _.ti("WPi0i"));d=
Promise.resolve(new _.ZK(f.wf(),f.Ye(),!1))}return d}).then(function(d){return d},function(d){d=_.gJ(d);_.w(d,5,1);return Promise.reject(new _.Dc("Error fetching account from server.",d))}),function(){c.O=null}));return this.O};
YXc.prototype.ka=function(a){var b=a.getCommand();if(b.H){var c={};b.zD&&(c.zD=b.zD);this.refresh(b.request,c).then(function(e){return a.xG().callback(e)},function(e){return void a.xG().Jd(e)})}else if(b=this.context.NP,c=b.wf(),_.ZI(this.context.Nc)){c=c.wf();var d=c.getUser();d=LKc(this.H,uL(d));GKc(this.H,c);kRc(b,c,b.Ye())&&this.dispatchEvent(new _.ti("WPi0i"));a.xG().callback(new _.ZK(b.wf(),b.Ye(),d))}else c.Bb(),b=new _.ZK(c,b.Ye(),!0),a.xG().callback(b)};
var ZXc=function(a){var b=a.context.Nc.hg();_.n.setTimeout(function(){var c=_.Df(new _.Cf,306);c=_.MI(new _.LI,c);a.refresh(c).then(function(){ZXc(a)},function(){ZXc(a)})},Math.ceil(_.ak(b,7,9E5)*Math.random())+_.ak(b,3,72E5))};YXc.prototype.W=function(a){var b=this.context.NP,c=b.wf().wf();c&&a.getPeople().find(function(d){return _.y(d,1)===uL(c.getUser())})&&(GKc(this.H,c),kRc(b,c,b.Ye())&&this.dispatchEvent(new _.ti("WPi0i")))};var $Xc=function(a,b,c){this.request=a;this.H=!!b;this.zD=c||null};
var bYc=function(a){qN.call(this);this.context=a;this.ta=this.W=!1;this.O=null;this.H=1;this.ma=0;this.error=null;this.Sc=new _.Ye(this);this.Ma(this.Sc);this.Sc.listen(this.context.KZ,"Mb",_.Db(this.dispatchEvent,new _.ti("Mb",this)));aYc(this)};_.K(bYc,qN);
var aYc=function(a){var b=a.context.Rj;pM(b,["nVUlO"],function(){a.ta=!0;a.setActive(!0)});if(!_.FK(a.context.Nc)){var c=_.Fj(a.context.Nc.hg(),18,1);pM(b,["NSockf"],function(){1===c?cYc(a):a.setActive(!0)});2===c&&pM(b,["mrK8ic"],function(){a.W||cYc(a)})}},cYc=function(a){var b=new _.Cf;_.Ef(b,!0);_.Df(b,301);var c=new _.UJ;_.HFc(c,b);_.w(c,1,1);a.refresh(c).Cg(function(){return null})};
bYc.prototype.refresh=function(a,b){var c=this;_.n.clearTimeout(this.ma);this.ma=0;var d=_.ai();this.O=d.promise;_.ci(this.O,function(){c.O=null;dYc(c)});var e=this.H;this.H=a.getType()||e;var f=!this.W;this.W=!0;var h=new _.UJ;_.w(h,1,this.H);_.HFc(h,a.se());this.context.Sm().then(function(k){return k.Pe(h,b)}).then(function(k){c.error=null;var l=c.context.KZ;l.YP(k,l.NG()?6:1);d.resolve()},function(k){c.H=e;k=_.SB(k);var l=k.Sg;_.w(l,5,2);f?(_.eJ(l,1),k.message="Initial app settings refresh failed.",
_.w(k.Sg,21,"Initial app settings refresh failed."),c.context.mJ(l),c.setActive(!0)):(_.eJ(l,2),k.message="Error occurred while loading the latest set of apps.",_.w(k.Sg,21,"Error occurred while loading the latest set of apps."));c.error=k;d.reject(k)});return this.O};bYc.prototype.va=function(){return!1};
bYc.prototype.Ba=function(a){var b=this,c=a.getCommand(),d=c.request,e=c.gja,f=c.zD?{zD:c.zD}:void 0;if(!eYc(d))return this.context.Sm().then(function(l){return l.Pe(d,f)}).then(function(l){a.xG().callback(new _.WK(l,1,!1))},function(l){a.xG().Jd(_.sJ(l))}),_.Yh();c=_.Yh();var h=!1;this.O?fYc(this,d.getType())?e=this.O:c=e=new _.Xh(function(l,p){b.O.then(function(){b.refresh(d,f).then(function(){return l()},p)})}):!e&&this.ta&&fYc(this,d.getType())&&!this.error?(h=!0,e=_.Yh()):e=this.refresh(d,f);
var k=a.xG();e.then(function(){var l=b.context.KZ;k.callback(new _.WK(l.wr(),l.Ye(),h))},function(l){k.Jd(l)});return c.then()};
var eYc=function(a){var b=a.getType();return 1===b||2===b||4===b?(b=_.fe(a,4),a=_.fe(a,3),!(b&&b.length)&&!(a&&a.length)):!1},fYc=function(a,b){return a.H===b||4===a.H||2===a.H&&1===b},dYc=function(a){var b=a.context.Nc.hg(),c=new _.Cf;_.Df(c,306);var d=new _.UJ;_.w(d,1,1);_.HFc(d,c);a.ma=_.n.setTimeout(function(){return void a.refresh(d)},Math.ceil(_.ak(b,7,9E5)*Math.random())+_.ak(b,4,72E5))},gYc=function(a,b,c){this.request=a;this.gja=!!b;this.zD=c||null};
var iYc=function(a){qN.call(this);var b=this;this.context=a;this.error=null;this.Sc=new _.Ye(this);this.Ma(this.Sc);this.Sc.listen(this.context.cE,"WPi0i",function(){return b.dispatchEvent(new _.ti("WPi0i"))});this.H=_.ai();this.O=_.fe(this.context.Nc.hg(),30);hYc(this)};_.K(iYc,qN);
var hYc=function(a){var b=a.context.Rj;pM(b,["rkYxSd"],function(){return a.initialize()});pM(b,["px2C2c"],function(){a.context.Qf().info("drive.ds.sync.userprefs.UserPrefsManager","All user prefs loaded.");a.H.resolve();a.H=null});var c=["NSockf"],d=_.Fj(a.context.Nc.hg(),19,1);1!==d&&(c.push("OZvrNc"),2===d&&pM(b,["mrK8ic"],function(){qM(b,"OZvrNc")}));!_.Q(a.context.Nc,11,!1)&&_.Q(a.context.Nc,24,!1)&&(c.push("DEJoH"),_.n.setTimeout(function(){0<_.Oj(aXc(a.context.cE),_.op,1).length||(b.H("NSockf")?
qM(b,"DEJoH"):pM(b,["NSockf"],function(){qM(b,"DEJoH")}))},12E3));pM(b,c,function(){if(!b.H("px2C2c")){var e=new _.Cf;_.Ef(e,!0);_.Df(e,301);var f=new _.WD;_.I(f,1,e);zCc(f,jYc(a));a.query(f).Cg(function(){a.initialize()})}})};iYc.prototype.V=function(){var a="User prefs detected: "+_.Oj(aXc(this.context.cE),_.op,1).length;this.context.Qf().info("drive.ds.sync.userprefs.UserPrefsManager",a);kYc(this)};
iYc.prototype.query=function(a,b){var c=this,d=b?{zD:b}:void 0;return this.context.Sm().then(function(e){return e.Pe(a,d)}).then(function(e){c.error=null;var f=c.context.cE;f.YP(_.Oj(e,_.op,3),f.NG()?6:1,_.fe(a,3))}).then(null,function(e){e=_.SB(e);_.w(e.Sg,5,4);0<c.commands.$b()||c.context.mJ(e.Sg);c.error=e;throw e;})};
iYc.prototype.ka=function(a){var b=this,c=a.getCommand(),d=a.xG(),e=new Set([].concat(_.Ad(this.context.cE.DF.keys()))),f=_.fe(c.request,3);f.find(function(h){return!e.has(h)})&&(c.gja=!0);this.error?d.Jd(this.error):c.gja?(zCc(c.request,jYc(this,f)),_.ci(this.H?this.H.promise:this.query(c.request,c.zD||void 0),function(){b.getData(d,f,!1)})):this.getData(d,f,!0)};var jYc=function(a,b){b=void 0===b?[]:b;a=new Set([].concat(_.Ad(a.O),_.Ad([].concat(_.Ad(a.context.cE.DF.keys()))),_.Ad(b)));return[].concat(_.Ad(a.values()))};
iYc.prototype.getData=function(a,b,c){b=this.context.cE.HG(b);a.callback(new _.YK(b.H,b.Ie,c))};var kYc=function(a){var b=a.context.Nc.hg();_.n.setTimeout(function(){var c=new _.WD,d=new _.Cf;_.Df(d,306);_.I(c,1,d);zCc(c,jYc(a));_.ci(a.query(c).Cg(_.Tf),function(){kYc(a)})},Math.ceil(_.ak(b,7,9E5)*Math.random())+_.ak(b,5,72E5))},lYc=function(a,b,c){this.request=a;this.gja=!!b;this.zD=c||null};
var mYc=function(a,b,c,d){pN.call(this,"IS",b);this.context=a;this.Sc=new _.Ye(this);this.Ba=_.ai();this.O=null;this.ha=!1;this.W=null;this.Fa=new YQc(a);yCc(this.Fa);this.Ma(this.Sc);this.ka=new YXc(a);this.Ma(this.ka);this.Sc.listen(this.ka,"WPi0i",function(){return c(new yQc(1))});this.ma=new bYc(a);this.Ma(this.ma);this.Sc.listen(this.ma,"Mb",function(){return c(new yQc(2))});this.ta=new iYc(a);this.Ma(this.ta);this.Sc.listen(this.ta,"WPi0i",function(){return c(new yQc(4))});this.Ha=d;this.H=
this.context.Sm()};_.K(mYc,pN);_.g=mYc.prototype;
_.g.KU=function(){var a={};return a["3.43"]=this.t_.bind(this),a["3.42"]=this.y7.bind(this),a["3.1"]=this.kN.bind(this),a["3.2"]=this.HG.bind(this),a["3.3"]=this.ld.bind(this),a["3.35"]=this.KN.bind(this),a["3.4"]=this.Cz.bind(this),a["3.5"]=this.wr.bind(this),a["3.6"]=this.UR.bind(this),a["3.8"]=this.Ol.bind(this),a["3.36"]=this.$y.bind(this),a["3.9"]=this.gF.bind(this),a["3.10"]=this.vr.bind(this),a["3.11"]=this.Y$.bind(this),a["3.12"]=this.h8.bind(this),a["3.13"]=this.VS.bind(this),a["3.14"]=this.W$.bind(this),
a["3.15"]=this.j8.bind(this),a["3.16"]=this.ku.bind(this),a["3.17"]=this.aDb.bind(this),a["3.18"]=this.eDb.bind(this),a["3.19"]=this.cQ.bind(this),a["3.20"]=this.cDb.bind(this),a["3.25"]=this.bDb.bind(this),a["3.22"]=this.i8.bind(this),a["3.28"]=this.sync.bind(this),a["3.30"]=this.Cna.bind(this),a["3.29"]=this.exb.bind(this),a["3.40"]=this.gDb.bind(this),a["3.33"]=this.hDb.bind(this),a["3.39"]=this.SO.bind(this),a["3.37"]=this.fDb.bind(this),a["3.38"]=this.y$a.bind(this),a["3.41"]=this.WR.bind(this),
a["3.44"]=this.Z_.bind(this),a["3.45"]=this.Qo.bind(this),a["3.46"]=this.D7.bind(this),a};_.g.kN=function(a){var b=this,c=CL(a.args[0],!!a.H,_.LI);a=new $Xc(c,a.args[1],this.context.H[a.clientId]);qM(this.context.Rj,"iuEtc");return this.ka.enqueue(a).then(function(d){return b.jd([d.response,d.Ie,d.L_])},function(d){return b.jd(void 0,d)})};
_.g.HG=function(a){var b=this,c=CL(a.args[0],!!a.H,_.WD);a=new lYc(c,a.args[1],this.context.H[a.clientId]);qM(this.context.Rj,"OZvrNc");return this.ta.enqueue(a).then(function(d){return b.jd([d.response,d.Ie,d.L_])},function(d){return b.jd(void 0,d)})};
_.g.ld=function(a){var b=this,c=CL(a.args[0],!!a.H,eCc),d=_.dk(c,_.vJ,16,zL)||_.dk(c,_.wJ,1,zL)||_.dk(c,_.xJ,2,zL)||_.dk(c,_.AJ,3,zL)||_.dk(c,_.cL,4,zL)||_.dk(c,_.yJ,5,zL)||_.dk(c,_.EJ,6,zL)||_.dk(c,_.GJ,7,zL)||_.dk(c,_.HJ,8,zL)||_.dk(c,_.KJ,9,zL)||_.dk(c,_.XJ,18,zL)||_.dk(c,_.aK,10,zL)||_.dk(c,_.bK,11,zL)||_.dk(c,_.cK,12,zL)||_.dk(c,_.iJ,13,zL)||_.dk(c,_.hK,14,zL)||_.dk(c,_.iK,15,zL)||_.dk(c,_.AL,17,zL),e=rN(this,a);return this.H.then(function(f){return f.Pe(d,e)}).then(function(f){return b.jd([f])},
function(f){return b.jd(void 0,f)})};_.g.KN=function(a){var b=this,c=CL(a.args[0],!!a.H,nCc),d=_.dk(c,_.BJ,1,oCc)||_.dk(c,_.IJ,2,oCc)||_.dk(c,_.jK,3,oCc),e=rN(this,a);return this.H.then(function(f){return f.Pe(d,e)}).then(function(f){return b.jd([f])},function(f){return b.jd(void 0,f)})};
_.g.Cz=function(a){var b=this,c=CL(a.args[0],!!a.H,hCc),d=rN(this,a),e=[],f=[];jCc(c).forEach(function(h){h instanceof _.vJ?e.push(String(h.Ac())):e.push(String(h.getId()));f.push(b.H.then(function(k){return k.Pe(h,d)}))});a=_.SI(f).then(function(h){return h.map(function(k){return k.value||k.reason})});_.ci(a,function(){return void zTc(b.context.Mf)});return a.then(function(h){return b.jd([new UBc(e,h)])})};
_.g.wr=function(a){var b=this,c=CL(a.args[0],!!a.H,_.UJ),d=a.args[1];if(3===c.getType())if(!d&&this.W)a=this.W;else{var e=rN(this,a);a=this.H.then(function(f){return f.Pe(c,e)}).then(function(f){return new _.WK(f,1,!1)});this.W||(this.W=a.then(function(f){return new _.WK(f.response,f.Ie,!0)}),setTimeout(function(){b.W=null},9E5))}else a=new gYc(c,d,this.context.H[a.clientId]),qM(this.context.Rj,"Qubz4b"),a=this.ma.enqueue(a);return a.then(function(f){return b.jd([f.response,f.Ie,f.L_])},function(f){return b.jd(void 0,
f)})};_.g.UR=function(a){var b=this,c=CL(a.args[0],!!a.H,kCc),d=_.dk(c,_.XD,1,lCc)||_.dk(c,_.YD,2,lCc),e=rN(this,a);return this.H.then(function(f){return f.Pe(d,e)}).then(function(f){return b.jd([f])},function(f){return b.jd(void 0,f)})};_.g.Ol=function(a){a=a.args[0];if(this.context.mz)a?_.gyc(this.context.mz,!0):this.context.Bk().Re()&&this.context.mz.kM(!0).then(null,function(){});else try{this.context.Lj().Ol(a)}catch(b){return this.jd(void 0,b)}return this.jd([])};
_.g.$y=function(a){var b=this,c=a.args[0];return this.context.$y(c).then(function(d){return d?(b.context.Lj().$y(c),b.Ha(c),b.context.Is.jL().Cg(function(){return!c})):_.Yh(!c)}).then(function(d){return b.jd([d])},function(d){return b.jd(void 0,d)})};_.g.sync=function(){var a=this;return _.$h([this.context.T$.promise,this.context.mfa.promise]).then(function(){return a.context.Is.jL()}).then(function(){return a.jd([])},function(b){return a.jd(void 0,b)})};
_.g.gF=function(){try{var a=this.context.W5;a&&a.foa();this.context.Uga.gF();return this.jd([])}catch(b){return this.jd(void 0,b)}};_.g.WR=function(){this.context.WR();return this.jd([])};_.g.vr=function(a){var b=this,c=CL(a.args[0],!!a.H,_.NJ),d=rN(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};
_.g.Y$=function(a){var b=this,c=CL(a.args[0],!!a.H,_.OJ),d=rN(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};_.g.h8=function(a){var b=this,c=CL(a.args[0],!!a.H,_.CJ),d=rN(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};
_.g.VS=function(a){var b=this,c=CL(a.args[0],!!a.H,_.fK),d=rN(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};_.g.W$=function(a){var b=this,c=CL(a.args[0],!!a.H,_.PJ),d=rN(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return _.ZI(b.context.Nc)?KKc(b.context.Mf.vq,[_.B(e,_.Rk,2)],c.Ac()).then(function(){return e}):e}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};
_.g.j8=function(a){var b=this,c=CL(a.args[0],!!a.H,_.FJ),d=rN(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};_.g.ku=function(a){var b=this,c=CL(a.args[0],!!a.H,_.WJ),d=rN(this,a);return this.H.then(function(e){return e.Pe(c,d).then(function(f){return _.ZI(b.context.Nc)?IKc(b.context.Mf.vq,f):f})}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};
_.g.aDb=function(a){var b=this,c=CL(a.args[0],!!a.H,_.fQc),d=new _.Guc(c,a.args[1],a.args[2]||void 0),e=rN(this,a);return this.H.then(function(f){return f.Pe(d,e)}).then(function(f){return b.jd([f])},function(f){return b.jd(void 0,f)})};
_.g.eDb=function(a){var b=this,c=CL(a.args[0],!!a.H,_.VJ),d=rN(this,a);return this.H.then(function(e){return e.Pe(c,d).then(function(f){return _.ZI(b.context.Nc)?KKc(b.context.Mf.vq,_.Oj(f.jd(),_.Rk,2),c.ud().getId()).then(function(){return f}):f})}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};_.g.cQ=function(){var a=this;return(_.Q(this.context.Nc.hg(),52,!1)?_.Yh(bJc(new aJc,0)):this.context.uI.cQ()).then(function(b){return a.jd([b])},function(b){return a.jd(void 0,b)})};
_.g.cDb=function(a){var b=this,c=CL(a.args[0],!!a.H,_.Fuc),d=rN(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};_.g.bDb=function(a){var b=this,c=CL(a.args[0],!!a.H,_.TJ),d=rN(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};
_.g.i8=function(a){var b=this,c=CL(a.args[0],!!a.H,_.DJ),d=rN(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};_.g.Cna=function(a){var b=this,c=CL(a.args[0],!!a.H,_.oJ),d=rN(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.jd([e,null])},function(e){return b.jd([null,_.gJ(e)])})};_.g.exb=function(){return this.jd([!0])};
_.g.gDb=function(a){var b=this,c=CL(a.args[0],!!a.H,_.FG),d=rN(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};_.g.hDb=function(a){var b=this,c=CL(a.args[0],!!a.H,_.kA),d=rN(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};_.g.t_=function(a){a=CL(a.args[0],!!a.H,_.nf);PSc(this.context.Mf,[a]);return this.jd([])};
_.g.y7=function(a){var b=this,c=CL(a.args[0],!!a.H,_.zJ),d=rN(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};_.g.SO=function(a){var b=this,c=CL(a.args[0],!!a.H,_.WM),d=rN(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return VKc(c,e)}).then(function(e){return b.jd(e)},function(e){return b.jd(void 0,e)})};
_.g.fDb=function(a){var b=this,c=new _.Nuc(CL(a.args[0],!!a.H,_.T8b),a.args[1]),d=rN(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.jd([e.response,e.pageToken])},function(e){return b.jd(void 0,e)})};_.g.y$a=function(a){var b=this,c=CL(a.args[0],!!a.H,_.EG),d=rN(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};
_.g.Z_=function(a){var b=this,c=CL(a.args[0],!!a.H,_.QK),d=rN(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.jd([e])},function(e){return b.jd(void 0,e)})};_.g.Qo=function(a){var b=a.args.map(function(c){return CL(c,!!a.H,_.cJ)});this.context.Mf.Qo(b);zTc(this.context.Mf);return this.jd([])};_.g.D7=function(){var a=this,b=this.context.mz;return(b?b.kM():_.Yh(_.Zxc(0))).then(function(c){return a.jd([c])},function(c){return a.jd(void 0,c)})};
_.g.initialize=function(){var a=this;if(!this.O){this.O=_.ai();this.context.Qf().info("drive.ds.sync.cacheproxy.WorkerSyncedItemService","Initializing with client build: "+this.context.Nc.Wi());this.Sc.listen(this.context,_.Nc,function(e){e=e.error;var f=e.Sg;f&&3===f.getType()&&!a.ha?(a.ha=!0,a.O.reject(e)):IFc(a.context.Qf(),"drive.ds.sync.cacheproxy.WorkerSyncedItemService","An error occurred in the Shared Worker")});var b=this.context.Rj,c=["hVFf7"];_.FK(this.context.Nc)&&c.push("BNEDtc");pM(b,
c,function(){a.ha||(a.ha=!0,a.O.resolve())});pM(b,["GZTDpc"],function(){return a.Ba.resolve()});var d=function(){gN(a.context).then(function(e){return void e.start()})};pM(b,["T8oKm","ZA9qG"],function(){return void d()});pM(b,["T8oKm","mrK8ic"],function(){return void d()});b.start();qM(b,"NSockf")}return this.O.promise};_.g.nba=function(){return this.Ba.promise};_.g.Eu=function(){var a=this.context.W5;a&&a.dispose();return this.context.Eu()};
var rN=function(a,b){return(a=a.context.H[b.clientId])?{zD:a}:{}};
var nYc=function(a,b,c){pN.call(this,"DU",b);this.context=a;this.O=c;this.H=new YQc(a)};_.K(nYc,pN);_.g=nYc.prototype;
_.g.KU=function(){var a=this,b={};return b["5.1"]=function(){return a.Lha()},b["5.2"]=function(c){return a.HM(c)},b["5.4"]=function(c){return a.Pz(c)},b["5.5"]=function(){return a.XQ()},b["5.10"]=function(){return a.fN()},b["5.6"]=function(){return a.fda()},b["5.7"]=function(){return a.IS()},b["5.9"]=function(c){return a.Epa(c)},b["5.8"]=function(c){return a.N4(c)},b["5.11"]=function(){return a.bpa()},b["5.12"]=function(c){return a.getState(c)},b["5.13"]=function(c){return a.Ol(c)},b};
_.g.Lha=function(){var a=this;this.context.Is.dS();var b=this.context.Nc;return WMc(_.DK(_.KI(b)),_.EK(b),this.context.Qf()).Cg(function(){}).then(function(){return a.jd([])})};_.g.HM=function(a){a=this.context.Mf.um.H(a.args[0]);return this.jd([a])};_.g.Pz=function(a){var b=this;return this.context.YA.Pz(a.args[0]).then(function(c){return b.jd([c])})};_.g.XQ=function(){return this.jd(this.context.YA.XQ())};
_.g.N4=function(a){var b=this,c=CL(a.args[0],!!a.H,_.ntc),d=a.args[1],e=a.args[2];if(_.dk(c,_.$I,3,_.aJ)||_.dk(c,_.lK,4,_.aJ)||_.dk(c,_.cL,5,_.aJ)||_.dk(c,_.iK,6,_.aJ)||_.dk(c,_.HJ,7,_.aJ)||_.dk(c,_.AJ,8,_.aJ)||_.dk(c,_.EJ,9,_.aJ)||_.dk(c,_.iJ,10,_.aJ)){var f=iJc(c);return this.context.Sm().then(function(h){return h.Pe(f,{p6a:d,q6a:e})}).then(function(h){a:{var k=[],l="";if(h instanceof _.dL){k=h.jd().wd();var p=_.y(h,2);l=h.Yn()}else if(h instanceof _.pK)h.getItem()&&k.push(h.getItem()),p=h.PM();
else{h=b.jd(void 0,Error("gg"));break a}h=b.jd([p,l].concat(_.Ad(k)))}return h},function(h){return b.jd(void 0,h)})}return _.Yh(this.jd(void 0,Error("fg")))};_.g.Epa=function(){var a=this.context.Nc,b=a.hg();a="email:"+_.KI(a).getEmail().replace(/@.*$/,"");_.w(b,13,a);return this.jd([])};_.g.fda=function(){this.context.NF.H=new LLc(_.Vg().substring(0,8));return this.jd([])};
_.g.IS=function(){var a=this.context.NF.fN();if(a){var b=NLc(this.context.NF);a=[a.H,a.startTime].concat(_.Ad(b))}else a=[];b=this.context.NF;b.H=null;b.yY=[];return this.jd(a)};_.g.fN=function(){var a=this.context.NF.fN();return this.jd(a?[a.H,a.startTime]:[])};_.g.getState=function(){var a=this;return this.H.getState(this.va).then(function(b){return a.jd([b])})};_.g.bpa=function(){var a=[this.O.Eu(),_.Hi(3E4)];_.ci(_.Oja(a),function(){_.n.setTimeout(function(){self.close()})});return this.jd([])};
_.g.Ol=function(a){this.H.Ol(a.args[0]);return this.jd([])};
var oYc=function(a,b,c,d,e,f,h){_.qL.call(this,a,b,c,d,f,h);this.H=e;this.dg=null};_.K(oYc,_.qL);oYc.prototype.rM=function(a,b){var c=this;return _.ji(this.H.then(function(d){return d.G2a(jBc(c.O,c.va,a,b,c.ij,c.ha))},null))};oYc.prototype.ma=function(a,b){var c=this.ud(a);if(c){var d=0;if(c.file){var e=c.request&&c.request.Pz();e&&(d=_.y(e,1));0===d&&(d=c.file.size)}this.dispatchEvent(new _.Byc(a,b,d))}};
var pYc=function(a,b,c,d,e,f,h,k){pN.call(this,"FU",k);this.ka=a;this.ha=b;this.ta=c;this.Ba=d;this.W=e;this.ma=f;this.dg=h;this.H={};this.O={};this.Sc=new _.Ye(this);this.Ma(this.Sc)};_.K(pYc,pN);_.g=pYc.prototype;
_.g.KU=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.cG(c)},b["7.4"]=function(c){return a.retry(c)},b["7.5"]=function(c){return a.rM(c)},b["7.6"]=function(c){c=c.clientId+":"+c.requestId;a.H[c]&&(a.H[c].dispose(),delete a.H[c]);return a.jd([])},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.jd([])},b};
_.g.upload=function(a){var b=this,c=a.clientId+":"+a.requestId,d=CL(a.args[0],!!a.H,_.AJ),e=a.args[1];if(!this.H[c]){var f=new oYc(this.ka,this.ha,this.ta,this.Ba,this.W,this.ma,this.dg);this.Sc.listen(f,"Hb",_.Db(this.z$a,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.fj(),r=_.ai();b.O[q]=r;b.update(l,p,qYc(3,q,[h,k]));return r.promise}).then(function(h){return b.jd([h])},function(h){return b.jd(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.jd([])};_.g.cG=function(a){a=a.clientId+":"+a.requestId;this.H[a]&&this.H[a].cG();return this.jd([])};
_.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;_.Ia(f,function(p){k[p]=h[l++]});_.La(k,function(p,q){p.lg(function(r){b.update(a.clientId,c,qYc(0,e,[q,r]))},function(r){b.update(a.clientId,c,qYc(1,e,[q,r.Sg]))})});return this.jd([])}return this.jd(void 0,_.gJ("Could not retry upload."))};
_.g.rM=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=jBc(b.O,b.va,c,a,b.ij,b.ha),this.jd([qCc(c)])):this.jd(void 0,_.gJ("FileUploader not found."))};_.g.z$a=function(a,b,c){this.update(a,b,qYc(2,c.requestId,[c.progress,c.totalBytes]))};var qYc=function(a,b,c){return[Number(a),b].concat(_.Ad(c))};
var rYc=function(a,b){pN.call(this,"IE",b);this.O=a;this.H=new Map};_.K(rYc,pN);rYc.prototype.KU=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};
rYc.prototype.export=function(a){var b=this,c=a.requestId,d=a.clientId+":"+c,e=CL(a.args[0],!!a.H,_.Euc);e=new bN(this.O,e);var f=_.Oe(e,"Lb",function(h){b.update(a.clientId,c,[h.bPa,h.Tta])});_.Qe(e,function(){_.Bi(f);b.H.delete(d)});this.H.set(d,e);return e.start().then(function(h){return b.jd([h])},function(h){return b.jd(void 0,h)})};rYc.prototype.cancel=function(a){(a=this.H.get(a.clientId+":"+a.requestId))&&a.cancel();return this.jd([])};
var sYc=function(a,b){pN.call(this,"ODS",b);this.context=a;this.H=!1;this.W=_.ai();this.O=new cRc(a,a.Lg)};_.K(sYc,pN);sYc.prototype.KU=function(){var a=this,b={};return b["6.1"]=function(c){return tYc(a,c)},b["6.2"]=function(c){return uYc(a,c)},b["6.3"]=function(){a.H&&(fRc(a.O),a.H=!1,a.W=_.ai());return a.jd([])},b};
var tYc=function(a,b){if(!a.H){a.H=!0;var c=b.args.map(function(d){return CL(d,!!b.H,_.hl)});a.O.yl(c);qM(a.context.Rj,"GZTDpc");a.W.resolve()}return a.jd([])},uYc=function(a,b){return a.W.promise.then(function(){var c=b.args.map(function(d){return CL(d,!!b.H,_.cJ)});eRc(a.O,c);return a.jd([])})};
var vYc=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("Ig`"+b);a.services.set(b,new _.di)})};vYc.prototype.activate=function(a){var b=this.services.get(a.V);if(b&&!b.jg())b.callback(a);else throw Error("Jg`"+a.V);};var wYc=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)})};vYc.prototype.Co=function(){return[].concat(_.Ad(this.services.values())).every(function(a){return a.jg()})};
var xYc=function(){},yYc={0:2E3,1:3E3,2:5E3},zYc=function(a,b){this.request=a;this.ha=b;this.O=_.ai();this.continuationToken="";this.V=0;this.wE=this.W=!1;this.H=xYc};zYc.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=xYc;b.V=0;return c},function(c){b.H=xYc;b.V=0;return Promise.reject(c)})};
zYc.prototype.sendRequest=function(){var a=this;if(this.wE)this.O.resolve((new VM).Dc(8));else{var b=new _.Ruc(this.request,this.continuationToken);this.ha.then(function(c){return c.Pe(b)}).then(function(c){AYc(a,c)},function(c){a.handleError(c)})}};var AYc=function(a,b){var c;a.continuationToken=null!==(c=b.Yn())&&void 0!==c?c:"";a.H(b);a.continuationToken?setTimeout(function(){a.sendRequest()},BYc(a.V++,a.ka)):a.O.resolve(b)};zYc.prototype.handleError=function(a){a=_.SB(a);this.O.reject(a)};
zYc.prototype.cancel=function(){this.wE=!0};var BYc=function(a,b){return b?b:(a=yYc[a])?a:1E4};
var CYc=function(a,b){pN.call(this,"TM",b);this.O=a;this.H=new Map};_.K(CYc,pN);CYc.prototype.KU=function(){var a=this,b={};return b["10.1"]=function(c){return DYc(a,c)},b["10.2"]=function(c){return a.cancel(c)},b};
var DYc=function(a,b){var c=b.clientId+":"+b.requestId,d=CL(b.args[0],!!b.H,_.HPc);d=new zYc(d,a.O);a.H.set(c,d);return _.ci(d.Zg(function(e){var f;a.update(b.clientId,null!==(f=b.requestId)&&void 0!==f?f:"",[e])}).then(function(e){return a.jd([e])},function(e){return a.jd(void 0,e)}),function(){a.H.delete(c)})};CYc.prototype.cancel=function(a){this.H.get(a.clientId+":"+a.requestId).cancel();return this.jd([])};
var sN=function(a,b,c){_.O.call(this);this.H=a;this.iw=b;this.kb=c;this.fields=null;this.Ha=!1;this.Ka=_.ai();this.W=!1;this.Ba=_.ai();this.O=_.ai();this.ta=null;this.va=this.Ta=!1;this.Ab=_.ai();this.ha=new Set;this.Fa=new Set;this.V=new Map;this.ma=new Set;this.dz=Date.now();this.services=new vYc;this.Ib=new _.Ye(this);this.Ma(this.Ib)};_.K(sN,_.O);sN.prototype.gY=function(a){this.O.promise.then(function(b){b.W5||a.GMa(b)})};
var HYc=function(a,b){var c=NXc(a.H,b),d=a.Rb.bind(a,c);iM(b,"8.1",d);b.registerService("8.1",d);iM(b,"8.4",a.Qa.bind(a,c));b.registerService("8.5",function(f){return EYc(a,c,f)});iM(b,"8.2",a.Gb.bind(a,c));iM(b,"8.3",a.Mb.bind(a,c));wYc(a.services,b);b.start();FYc(a,c,b);a.ka(c,b);var e=[];a.ta||(a.ta=_.$h([a.Ka.promise,a.Ba.promise]).then((0,_.N)(a.initialize,a)));e.push(a.ta);_.$h(e).then(function(){return void GYc(a,c,b)},function(f){a.Ta=!0;jM(b,"2.2",{err:_.gJ(f).Lc()},d)})},IYc=function(a){return Math.floor((Date.now()-
a.dz)/1E3)},JYc=function(a,b,c){var d=function(e){jM(b,"2.8",{au:"pb"===e.type})};a.Ib.listen(c.uI,["pb","qb"],d);_.Qe(b,a.Ib.Yc.bind(a.Ib,c.uI,["pb","qb"],d))},KYc=function(a,b,c){var d=c.Bk(),e=[].concat(_.Ad(Object.values(_.rC))),f=function(h){jM(b,"2.19",{cs:h.connectionState})};a.Ib.listen(d,e,f);_.Qe(b,function(){a.Ib.Yc(d,e,f)})};
sN.prototype.Rb=function(a){var b=OXc(this.H,a);if(b&&((this.services.services.get("LRM")||null).addCallback(function(d){RXc(d,a)}),b.dispose(),this.log(_.Ht("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){_.ci(d.Eu(),c)})}};
sN.prototype.Qa=function(a,b){if(this.ha.has(a))return _.Yh();var c=new _.bc(JSON.parse(b.dsc));_.w(c,24,!1);this.Ha||(this.Ha=!0,this.Ka.resolve(c));this.ha.add(a);return this.O.promise.then(function(d){IXc(d,a,_.D(c.hg(),37,""));HXc(d,_.fe(c,28));d.Mf.nla(_.Oj(c,_.Jl,91));return d.vX.promise.then(function(){PSc(d.Mf,_.Oj(c,_.nf,44))})},function(){})};
sN.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 TRc(e,e.Lg);e.Zg(d);e.dispose();(e=c.H.channels[a]||null)&&jM(e,"2.16")})}};sN.prototype.Mb=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){LYc(new ySc(h),e);(h=c.H.channels[a]||null)&&jM(h,"2.17",{t:f})})}};
var LYc=function(a,b){b.filter(function(c){return c}).forEach(function(c){return a.Zg(c)});a.dispose()};sN.prototype.$a=function(){for(var a=[],b={},c=_.m(_.Qa(this.H.channels)),d=c.next();!d.done;b={$da:b.$da,Dea:b.Dea},d=c.next())b.$da=d.value,b.Dea=_.ai(),jM(b.$da,"2.12",void 0,function(e){return function(){e.$da.dispose();e.Dea.resolve()}}(b)),a.push(b.Dea.promise);return _.$h(a).then()};
sN.prototype.initialize=function(a){var b=this;a=a[0];_.kwc(a,this.fields);var c=_.B(a,_.pJ,58);c=c&&_.Q(c,1,!1)?this.kb:void 0;try{var d=new EL(null,a,this.iw,c,void 0,void 0),e=d.rk().H(106E3);oXc(d,this.$a.bind(this));this.Ib.listen(d.Lj(),"Bb",function(k){k={os:k.Re()};for(var l=_.m(_.Qa(b.H.channels)),p=l.next();!p.done;p=l.next())jM(p.value,"2.6",k)});this.Ib.listen(d,_.Nc,this.rb);this.Ib.listen(d,"w8KrJc",this.Ic);fJc(d.uI,this.ka.bind(this));var f=d.mz;f&&XFc(f,function(){return b.ka()});
this.O.resolve(d);var h=MYc(this,d,new mYc(d,this.H,(0,_.N)(this.oc,this),(0,_.N)(this.zc,this)));e&&h.then(function(){return e&&e.zj()});return h}catch(k){return _.Zh(k)}};
var MYc=function(a,b,c){a.services.activate(c);a.services.activate(new PXc(b,a.H));a.services.activate(new nYc(b,a.H,c));a.services.activate(new sYc(b,a.H));a.services.activate(new pYc(b.Nc,b.YA,b.WQ().kfa,b.Sm(),b.XP,b.Qf(),b.rk(),a.H));a.services.activate(new rYc(b.Sm(),a.H));a.services.activate(new CYc(b.Sm(),a.H));return c.initialize()},GYc=function(a,b,c){var d=_.Pa(a.H.channels);a.log(_.Ht("Client %d connected (num clients: %d, added: %d, max concurrent: %d)",b,d,a.H.O,a.H.H));jM(c,"2.2",{id:b,
clients:d,uptimeSec:IYc(a),dsp:!a.V.has(b),ivd:!a.ma.has(b)});a.O.promise.then(function(e){e.JZ.addCallback(function(f){c.isDisposed()||jM(c,"2.5",{id:f})});1<d&&gN(e).addCallback(function(f){return f.jwa()});(a.services.services.get("IS")||null).addCallback(function(f){f.nba().then(function(){c.isDisposed()||jM(c,"2.14")})});JYc(a,c,e);KYc(a,c,e)})};sN.prototype.oc=function(a){a={dt:a.dataType};for(var b=_.m(_.Qa(this.H.channels)),c=b.next();!c.done;c=b.next())jM(c.value,"2.15",a)};
sN.prototype.zc=function(a){var b={oois:a};_.Qa(this.H.channels).forEach(function(c){jM(c,"2.18",b)})};sN.prototype.rb=function(a){a={p:a.error.Sg.Lc()};for(var b=_.m(_.Qa(this.H.channels)),c=b.next();!c.done;c=b.next())jM(c.value,"2.10",a)};sN.prototype.Ic=function(){for(var a=_.m(_.Qa(this.H.channels)),b=a.next();!b.done;b=a.next())jM(b.value,"2.7")};var FYc=function(a,b,c){a.ha.has(b)?_.Yh():new _.Xh(function(d){jM(c,"2.1",void 0,function(e){d(a.Qa(b,e))})})};
sN.prototype.ka=function(a,b){var c=this;if("number"===typeof a){if(!b)return _.Zh(Error("Kg"));if(this.W&&this.Fa.has(a))return _.Yh()}b=b||_.Qa(this.H.channels)[0];if(!b)return _.Zh(Error("Lg"));var d=_.ai();b.send("1.1",void 0,function(e){EYc(c,a,e);d.resolve()});return d.promise};var EYc=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())};
sN.prototype.log=function(a){this.O.promise.then(function(b){return b.Qf().info("drive.ds.sync.cacheproxy.Worker",a)})};
var NYc=function(a,b){oN.call(this,"DU","drive.ds.sync.DebugUtilProxy",a);this.context=b;this.H=null};_.K(NYc,oN);_.g=NYc.prototype;_.g.La=function(){return _.B(this.context.Nc,_.pJ,58)};_.g.getContext=function(){return this.context};_.g.Pz=function(){return _.ji(this.send("5.4",[this.H],function(a,b){return CL(a[0],b,_.Xwc)}))};_.g.Qf=function(){return this.context.Qf()};_.g.HM=function(a){return _.ji(this.send("5.2",[a],function(b,c){return b[0]?CL(b[0],c,_.hl):null}))};
_.g.XQ=function(){return _.ji(this.send("5.5",[],function(a,b){return a.map(function(c){return CL(c,b,_.ntc)})}))};_.g.N4=function(a,b,c){return _.ji(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 CL(k,e,_.hl)}),lia:f,pageToken:h}}))};_.g.Epa=function(){this.send("5.9",[])};_.g.Lha=function(){this.send("5.1",[])};_.g.d9=function(){return _.Rtc[_.Fj(this.context.Nc.hg(),8,0)]};_.g.fda=function(){this.send("5.6",[])};
_.g.IS=function(){return _.ji(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 CL(e,b,jJc)});return{traceId:new LLc(c,d),spanRecs:a}}))};_.g.fN=function(){return _.ji(this.send("5.10",[],function(a){return 0===a.length?null:new LLc(a[0],new Date(a[1]))}))};_.g.getState=function(){return _.ji(this.send("5.12",[],function(a){return a[0]}))};_.g.bpa=function(){this.send("5.11",[])};_.g.Ol=function(a){this.send("5.13",[a])};
var OYc=function(a,b){oN.call(this,"IE","drive.ds.sync.itemexport.ItemExportSessionProxy",a);this.request=b;this.promise=null;this.id=String(_.Ca(this))};_.K(OYc,oN);OYc.prototype.start=function(){var a=this;this.promise||(this.promise=this.send("9.1",[this.request],function(b,c){return CL(b[0],c,lQc)},this.id).then(),this.promise.then(function(){return a.dispose()},function(){return a.dispose()}));return this.promise};OYc.prototype.cancel=function(){this.send("9.2",[],void 0,this.id)};
OYc.prototype.B$=function(a,b,c){this.dispatchEvent(new zQc(c[0],c[1]))};
var PYc=function(a){oN.call(this,"ODS","drive.ds.sync.offline.DataServiceProxy",a);this.H=null};_.K(PYc,oN);PYc.prototype.jY=function(a){var b=this;(this.H=a)?(this.log("Querying all offline items."),this.H.oV().lg(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.v_(function(c){b.log("Forwarding offline items changes, count:"+c.length);b.send("6.2",c)})):this.send("6.3",[])};
var QYc=function(a,b){zM.call(this,a,b)};_.K(QYc,zM);QYc.prototype.aia=function(a,b,c){return new _.Nuc(a,c)};QYc.prototype.mka=function(a){return a.pageToken||""};QYc.prototype.Aja=function(a){return a.response.O()};QYc.prototype.U5=function(){};
var RYc=function(a,b,c){aN.call(this,a.Lj(),a.Bk(),b.Di()||void 0);this.request=b;this.O=[];this.changed=!1;this.ka=c;this.V=new QYc(this.request,this.ka)};_.K(RYc,aN);_.g=RYc.prototype;_.g.JG=function(){this.V.Zg().then(this.A$a.bind(this),this.handleError.bind(this))};_.g.getData=function(){return zPc(new UM,this.O).Dc(this.status)};_.g.xr=function(){return new xPc};_.g.Uj=function(){return!this.Re()&&(!this.H||XKc(this.V))};_.g.A$a=function(a){this.changed=this.H=!0;this.O=a;this.Vt()};
_.g.Vt=function(){if(this.active){var a=this.status;this.GL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ti(_.Oc,this))}};_.g.$b=function(){return this.O.length};
var SYc=function(a,b,c){aN.call(this,a.Lj(),a.Bk(),b.Di()||10);this.request=b;this.O=[];this.data=[];this.changed=!1;this.V=new _.f8a;this.suggestionSessionId=null;this.ka=c};_.K(SYc,aN);_.g=SYc.prototype;_.g.JG=function(){var a=this;this.ka(this.request).then(function(b){a.H=!0;a.changed=!0;a.data=b.Oi();a.suggestionSessionId=b.ag();a.Vt()},this.handleError.bind(this))};_.g.getData=function(){this.O=this.data;return _.eBc(_.dBc((new _.sL).Dc(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.xr=function(){var a=this.V.qy(this.O,this.data);this.O=this.data;var b=(new DPc).Dc(this.status);return _.Kj(b,2,a)};_.g.QO=function(){};_.g.Vt=function(){var a=this.status;this.GL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ti(_.Oc,this))};_.g.$b=function(){return this.data.length};
var TYc=function(){};_.g=TYc.prototype;_.g.tM=function(a,b){b=cQc(1).setPosition(b);_.I(b,2,a);return b};_.g.sM=function(a,b){b=cQc(2).setPosition(b);_.I(b,2,a);return b};_.g.yE=function(a,b,c){b=cQc(3).az(b).setPosition(c);_.I(b,2,a);return b};_.g.kQ=function(a,b){b=cQc(4).setPosition(b);_.I(b,2,a);return b};_.g.RM=function(a){return _.B(a,_.aQc,2)};
var VYc=function(){_.My.call(this,new TYc,function(a){return UYc(a)})};_.K(VYc,_.My);var UYc=function(a){switch(_.rb(a,_.ZM)){case 6:return _.Ly(_.dk(a,_.Ky,6,_.ZM)).getTime().toString();case 7:var b=_.dk(a,_.YM,7,_.ZM);a=_.B(b,_.Ky,1);b=b.kv();return a&&b?(a=_.Ly(a).getTime(),_.Ly(b).getTime()+"--"+a):"";default:return""}},XYc=function(){WYc||(WYc=new VYc);return WYc},WYc;
var YYc=function(a,b,c,d){aN.call(this,b.Lj(),b.Bk(),d);this.request=a;this.V=!1;this.ka=[];this.O=[];this.token="";this.changed=!1;this.ma=new _.cyc(_.ak(b.Nc.hg(),6,1E3));this.ta=c};_.K(YYc,aN);_.g=YYc.prototype;_.g.activate=function(){aN.prototype.activate.call(this);this.Vt()};_.g.JG=function(){_.P(this.request,3)?this.page():this.poll()};_.g.Dr=function(a){if(a=a||50,this.O.length>this.limit)this.changed=!0;aN.prototype.Dr.call(this,a)};
_.g.getData=function(){var a=(new hQc).Dc(this.status);_.Kj(a,2,this.O.slice(0,this.limit));this.ka=_.wa(this.O);return a};_.g.xr=function(){var a=XYc().qy(this.ka,this.O),b=new eQc;a=_.Kj(b,2,a).Dc(this.status);this.ka=_.wa(this.O);return a};_.g.Uj=function(){return!this.Re()&&(!this.H||this.O.length>this.limit||!!this.token)};_.g.ud=function(){return this.request};
_.g.page=function(a){var b=this;this.active?(this.V=!0,this.Uj()&&this.O.length<this.limit?this.ta(this.request,this.limit-this.O.length,this.token).then(function(c){b.H=!0;var d=_.Oj(c,_.aQc,1);b.O=b.O.concat(d);b.token=c.wy()||"";0<d.length&&(b.changed=!0);b.Vt();b.page(a)},function(c){b.dispatchEvent(new _.Ec(c));b.V=!1}):(this.V=!1,a&&a.callback(),ZYc(this))):this.V=!1};
_.g.poll=function(){var a=this;this.active&&(this.V=!0,this.ta(this.request,this.limit).then(function(b){var c=XYc();a.H=!0;var d=_.Oj(b,_.aQc,1);IL(c,a.O.slice(0,d.length),d)?(a.O=d,a.token=b.wy()||"",a.changed=!0,a.Vt(),a.page()):(a.V=!1,ZYc(a))},function(b){a.dispatchEvent(new _.Ec(b));a.V=!1}))};_.g.Vt=function(){if(this.active){var a=this.status;this.GL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ti(_.Oc,this))}};
_.g.GL=function(){this.Re()&&!this.H?this.status=2:this.status=this.O.length<this.limit&&(!this.H||this.token)?6:1};_.g.QO=function(){this.active&&this.Uj()&&!this.V&&this.page(new _.di)};var ZYc=function(a){_.P(a.request,3)||(_.GI(a.ma),_.n.setTimeout((0,_.N)(a.poll,a),a.ma.Za()))};YYc.prototype.$b=function(){return this.O.length};
var $Yc=function(){};_.g=$Yc.prototype;_.g.tM=function(a,b){return jQc(iQc(1),a).setPosition(b)};_.g.sM=function(a,b){return jQc(iQc(2).setPosition(b),a)};_.g.yE=function(a,b,c){return jQc(iQc(3).az(b).setPosition(c),a)};_.g.kQ=function(a,b){return jQc(iQc(4),a).setPosition(b)};_.g.RM=function(a){return _.B(a,_.PM,2)};
var aZc=function(){_.My.call(this,new $Yc,function(a){return a.getId()})};_.K(aZc,_.My);var cZc=function(){bZc||(bZc=new aZc);return bZc},bZc;
var dZc=function(a,b,c){aN.call(this,b.Lj(),b.Bk());this.request=a;this.V=[];this.backups=[];this.changed=!1;this.O=new _.cyc(_.ak(b.Nc.hg(),54,1E3));this.ka=c};_.K(dZc,aN);_.g=dZc.prototype;_.g.activate=function(){aN.prototype.activate.call(this);this.Vt()};_.g.JG=function(){this.poll()};_.g.getData=function(){var a=new rQc;a=_.Kj(a,2,this.backups).Dc(this.status);this.V=_.wa(this.backups);return a};
_.g.xr=function(){var a=cZc().qy(this.V,this.backups),b=new pQc;a=_.Kj(b,2,a).Dc(this.status);this.V=_.wa(this.backups);return a};_.g.Uj=function(){return!this.Re()&&!this.H};_.g.poll=function(){var a=this,b=new _.di;this.ka(this.request).then(function(c){a.H=!0;c=_.Oj(c,_.PM,2);IL(cZc(),a.backups,c)&&(a.changed=!0,a.backups=c,a.O.reset());a.Vt();b.callback();eZc(a)},function(c){a.dispatchEvent(new _.Ec(c));b.Jd(c);eZc(a)});return b};
_.g.Vt=function(){if(this.active){var a=this.status;this.GL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ti(_.Oc,this))}};_.g.QO=function(){};var eZc=function(a){a.active&&(_.n.setTimeout((0,_.N)(a.poll,a),a.O.Za()),_.GI(a.O))};dZc.prototype.$b=function(){return this.backups.length};
var fZc=function(){};_.g=fZc.prototype;_.g.tM=function(a,b){return hPc(gPc(1),a).setPosition(b)};_.g.sM=function(a,b){return hPc(gPc(2).setPosition(b),a)};_.g.yE=function(a,b,c){return hPc(gPc(3).az(b).setPosition(c),a)};_.g.kQ=function(a,b){return hPc(gPc(4),a).setPosition(b)};_.g.RM=function(a){return _.B(a,_.Rk,2)};
var gZc=function(){_.My.call(this,new fZc,function(a){return a.getId()})};_.K(gZc,_.My);_.Uf(gZc);
var tN=function(a,b,c){_.Di.call(this);this.context=a;this.request=b;this.nextPageToken="";this.H=this.O=!1;this.limit=0;this.permissions=[];this.V=c};_.K(tN,_.Di);tN.prototype.ui=function(a){this.limit=a};tN.prototype.Zg=function(){return this.H||this.O&&""===this.nextPageToken?Promise.resolve():hZc(this)};tN.prototype.oka=function(){return this.permissions};
var hZc=function(a){a.O=!0;a.H=!0;var b=Math.min(a.limit-a.permissions.length,100);var c=new _.VJ;c=_.I(c,3,a.request);c=_.w(c,2,a.nextPageToken);b=_.w(c,1,b);return a.V(b).then(a.W.bind(a)).then(null,a.handleError.bind(a))};tN.prototype.W=function(a){this.H=!1;this.nextPageToken=a.Yn()||"";a=_.Oj(a.jd(),_.Rk,2);this.permissions=_.va(this.permissions,a);a.length&&this.dispatchEvent("wa");if(this.nextPageToken&&this.permissions.length<this.limit)return hZc(this);this.dispatchEvent("za")};
tN.prototype.handleError=function(a){this.H=!1;a=new NL(_.gJ(a),_.ak(this.context.Nc.hg(),1,1));this.dispatchEvent(a)};
var iZc=function(a,b,c,d){aN.call(this,b.Lj(),b.Bk(),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 tN(b,this.request,this.ma);_.Qe(this,function(){e.V&&(_.n.clearTimeout(e.V),e.V=null)})};_.K(iZc,aN);_.g=iZc.prototype;_.g.activate=function(){aN.prototype.activate.call(this);this.Vt()};_.g.JG=function(){this.query()};_.g.Dr=function(a){aN.prototype.Dr.call(this,a||100)};
_.g.getData=function(){var a=ZFc(new ML,this.permissions.slice(0,this.limit)).Dc(this.status);this.ka=_.wa(this.permissions);return a};_.g.xr=function(){var a=gZc.tb().qy(this.ka,this.permissions),b=new oPc;a=_.Kj(b,2,a).Dc(this.status);this.ka=_.wa(this.permissions);return a};_.g.Uj=function(){var a;(a=!this.Re())&&!(a=!this.H)&&(a=this.O,a=!a.O||""!==a.nextPageToken);return a};_.g.ud=function(){return this.request};
_.g.query=function(){var a=this;this.O=new tN(this.context,this.request,this.ma);this.O.ui(this.limit);return this.O.Zg().then(function(){return jZc(a)},function(b){return a.handleError(b)})};_.g.handleError=function(a){aN.prototype.handleError.call(this,a);kZc(this)};var jZc=function(a){a.H=!0;var b=a.O.oka();IL(gZc.tb(),a.permissions,b)&&(a.changed=!0,a.permissions=b);a.Vt();kZc(a)};
iZc.prototype.Vt=function(){if(this.active){var a=this.status;this.GL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.ti(_.Oc,this))}};iZc.prototype.QO=function(){var a=this;this.O.ui(this.limit);this.O.Zg().then(function(){return jZc(a)},function(b){return a.handleError(b)})};var kZc=function(a){if(a.active){var b=a.context.Nc.hg();a.V=_.n.setTimeout((0,_.N)(a.query,a),Math.ceil(_.ak(b,7,9E5)*Math.random())+_.ak(b,15,36E5))}};iZc.prototype.$b=function(){return this.permissions.length};
var lZc=function(a){6!==a.status&&_.n.setTimeout(function(){a.dispatchEvent(new _.ti(_.Oc,a))},0)};
var mZc=function(){},nZc=function(a,b){oN.call(this,"TM","drive.ds.sync.TeamDriveMovePreflightRunnerProxy",a);this.request=b;this.O=mZc;this.H=null;this.id=String(_.Ca(this))};_.K(nZc,oN);nZc.prototype.B$=function(a,b,c){a===this.id&&(a=_.m(c).next().value,this.O(CL(a,b,VM)))};nZc.prototype.Zg=function(a){a=void 0===a?mZc:a;if(!this.H){this.O=a;var b=_.ai();this.H=b;this.send("10.1",[this.request],function(c,d){return CL(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};
nZc.prototype.cancel=function(){this.send("10.2",[this.request],void 0,this.id)};
var oZc=function(a,b,c){_.Di.call(this);var d=this;this.instanceId=a;this.H=b;this.V=c;this.zu={};this.O={};_.Qe(this,function(){d.H("7.6",[])})};_.K(oZc,_.Di);_.g=oZc.prototype;_.g.getId=function(){return this.instanceId};_.g.jQ=function(){return _.RI()};
_.g.upload=function(a,b){!_.y(a,26)&&b&&b.lastModified&&_.w(a,26,b.lastModified);var c;b&&(c=b.type?b:new File([b],b.name,{type:b.type}));if(b){var d=new _.pwc;_.w(d,1,b.size);_.I(a,15,d);this.O[a.fj()]=b}return _.ji(this.H("7.1",[a,c],function(e,f){return CL(e[0],f,_.pK)}))};_.g.cancel=function(a){this.H("7.2",[a])};_.g.cG=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 _.di;c=this.jQ();this.zu[c]=b;b=_.Qa(b);this.H("7.4",[c].concat(_.Ad(a)));return b};_.g.rM=function(a,b){var c=this;return _.ji(this.H("7.5",[a].concat(_.Ad(b)),function(d){return rCc(d[0])}).then(function(d){return c.V.addCallback(function(e){return e.G2a(d)})}))};var pZc=function(a,b,c,d){if(a.zu[b]&&a.zu[b][c]){var e=a.zu[b][c];d instanceof _.pK?e.callback(d):e.Jd(d);delete a.zu[b][c];_.Ta(a.zu[b])&&delete a.zu[b]}};
var qZc=function(a,b){oN.call(this,"FU","drive.ds.sync.upload.FileUploaderProxyManager",a);this.O=b;this.H=new Map};_.K(qZc,oN);var rZc=function(a){var b=_.RI(),c=new oZc(b,function(d,e,f){return a.send(d,e,f,b)},a.O);a.H.set(b,c);_.Qe(c,function(){return void a.H.delete(b)});return c};
qZc.prototype.B$=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,_.iuc(c,b,Math.min(c.size,b+e))]);break;case 0:b=CL(e[1],b,_.pK);pZc(a,d,e[0],b);break;case 1:b=new _.Dc(void 0,CL(e[1],b,_.Cc));pZc(a,d,e[0],b);break;case 2:a.dispatchEvent(new _.Byc(d,e[0],e[1]));break;default:throw Error("Mg");}}};
var sZc=function(a,b){if(0===a.length)throw new _.Dc("mutateUserPref requires a namespace.",_.rJ(3));var c=null;b instanceof _.YD?c=(b=(b=_.B(b,_.op,1))&&b.getKey())&&_.pp(b)||null:b instanceof _.XD&&(c=(b=b.getKey())&&_.pp(b)||null);if(!c||!a.find(function(d){return d===c}))throw new _.Dc("mutateUserPref unsupported for namespace: "+c,_.rJ(3));};
var tZc=function(a){this.H=a};
var WCc=function(a){oN.call(this,"IS","drive.ds.sync.ItemServiceProxy",(uZc=_.ai()).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 _.Gn;this.Ka=new _.Gn;this.V=uZc;uZc=void 0;this.context=a;qXc(this.context,new PYc(this.V.promise));LFc(this.context.Lg,_.fe(this.context.Nc,28));this.H=this.context.lfa;this.O=new SXc(this.V.promise,this.context,this.H);this.Ab=new qZc(this.V.promise,this.context.XP);this.Ha=new NYc(this.V.promise,this.context);
this.Sc=new _.Ye(this);this.Ma(this.Sc);this.Sc.listen(this.context.Bk(),[].concat(_.Ad(Object.values(_.rC))),function(c){return void b.dispatchEvent(c)})},uZc;_.K(WCc,oN);
WCc.prototype.initialize=function(){var a=this;if(!this.ta){this.ta=this.va.promise;var b=this.context.rk().H(106E3);this.ta.then(function(){b&&b.zj();a.w1a()},function(){_.aL(a.context.rk(),181008852)});var c=_.FK(this.context.Nc)?"(coldstart) ":"";this.context.Qf().info("drive.ds.sync.ItemServiceProxy","Initializing "+c+"with client build: "+this.context.Nc.Wi());var d=dCc(this.context.Nc,this.ri(),_.LK(this.context.Lg));vZc(this,d);2===d.H?(c=new sN(new MXc,6,this.context.Qf()),HYc(c,d.O),this.Ka.resolve(c)):
yCc(this.Ha);this.context.Qf().info("drive.ds.sync.ItemServiceProxy","Connecting to worker: "+d.endpoint);d.channel.start();oXc(this.context,function(){return wZc(d.channel)})}return this.ta};
var wZc=function(a){return _.Oja([new _.Xh(function(b){a.isDisposed()||jM(a,"8.1",void 0,function(){a.dispose();b()})}),_.Hi(1E4)])},vZc=function(a,b){var c=b.channel;0===b.H?c.registerService("2.0",function(){return{uid:a.ri(),fds:_.LK(a.context.Lg)}}):c.registerService("1.1",function(){return xZc(a,b)});2===b.H?a.Ka.promise.then(function(){return void yZc(a,b)}):yZc(a,b);iM(c,"2.1",function(){return{dsc:a.context.Nc.Lc()}});iM(c,"2.2",function(d){"number"===typeof d.id?(a.V.resolve(new LXc(d.id,
c,a.context.Qf(),d.clients)),d.dsp&&zZc(c),d.ivd&&AZc(a,c)):(d=new _.Cc(JSON.parse(d.err)),a.va.reject(new _.Dc("Unable to initialize dataservice.",d)))});iM(c,"2.15",function(d){a.dispatchEvent(new yQc(d.dt))});iM(c,"2.5",function(d){a.context.Cu(d.id)});iM(c,"2.6",function(d){a.context.Lj().Ol(d.os)});iM(c,"2.18",function(d){a.context.Lj().$y(d.oois)});iM(c,"2.7",function(){a.ma=!1});iM(c,"2.8",function(d){a.context.Fa=d.au;a.dispatchEvent(new zGc(d.au?"pb":"qb"))});iM(c,"2.19",function(d){a.context.Bk().update(d.cs)});
iM(c,"2.9",function(d){var e=d.logName,f=d.level;d=_.Ht("[CSW %s] %s",d.totalTime,d.message);switch(f){case "config":a.context.Qf().config(e,d);break;case "fine":_.JK(a.context.Qf(),e,d,"fine");break;case "finer":_.JK(a.context.Qf(),e,d,"finer");break;case "finest":_.JK(a.context.Qf(),e,d,"finest");break;case "info":a.context.Qf().info(e,d);break;case "warning":case "severe":IFc(a.context.Qf(),e,d);break;default:IFc(a.context.Qf(),"drive.ds.sync.ItemServiceProxy","Unknown log level: "+f),IFc(a.context.Qf(),
e,d)}});iM(c,"2.10",function(d){return void a.y$(d)});iM(c,"2.12",function(){a.Qa=!0;uN(a)});iM(c,"2.14",function(){return a.kb.resolve()});iM(c,"2.16",function(){return a.$a=!0});iM(c,"2.17",function(d){a.context.Qf().info("drive.ds.sync.ItemServiceProxy","Prefetched request loaded for: "+d.t.join(","))})},yZc=function(a,b){1!==b.H&&2!==b.H||b.channel.send("8.5",xZc(a,b));jM(b.channel,"8.4",{dsc:a.context.Nc.Lc()});zZc(b.channel);AZc(a,b.channel)},zZc=function(a){_.n._DRIVE_dsp&&jM(a,"8.3",{dsp:BZc(_.n._DRIVE_dsp)});
_.n._DRIVE_dspc=function(b){if(_.n._DRIVE_dsp){var c=[];c[b]=_.n._DRIVE_dsp[b];jM(a,"8.3",{dsp:BZc(c)})}}},AZc=function(a,b){_.Q(a.context.Nc,24,!1)&&(_.n._DRIVE_ivd?jM(b,"8.2",{ivd:_.n._DRIVE_ivd}):void 0===_.n._DRIVE_ivd&&(_.n._DRIVE_ivdc=function(){_.n._DRIVE_ivd&&jM(b,"8.2",{ivd:_.n._DRIVE_ivd})}))},xZc=function(a,b){var c={};if(1===b.H){var d=new _.fQa(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.Nc.Wi(),
ufds:b.V}};WCc.prototype.ri=function(){var a=_.Lj(_.Lj(_.OI(this.context.Nc.clone(),28),44),91),b=new _.zI;b.update(_.DK(_.KI(a)));b.update(String(_.hJ(_.KI(a))));b.update(a.Lc());return _.rsc(b.digest())};var BZc=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=WCc.prototype;_.g.y$=function(a){this.dispatchEvent(new _.Ec(new _.Dc(void 0,new _.Cc(JSON.parse(a.p)))))};
_.g.query=function(a){uN(this);GIc(this.context.wm,a,JFc(this.context.Lg));this.gF();var b=this.O.Uwa(a);this.Ta||(a=a.se(),a&&121===_.y(a,1)||(this.Ta=!0,this.Sc.listen(b,_.Oc,this.tMa)));return b};_.g.tMa=function(a){a=a.currentTarget;1===a.Bb()&&(this.Ha.H=this.$a,this.Sc.Yc(a,_.Oc,this.tMa))};_.g.Eq=function(a){uN(this);uGc(a);this.gF();return this.O.Rwa(a)};
_.g.Tua=function(a,b){var c=this;uN(this);if(this.ka&&_.Zj(this.ka.ud(),a))return this.ka;this.ka=new YYc(a.clone(),this.context,function(d,e,f){return c.send("3.17",[d,e,f],function(h,k){return CL(h[0],k,xQc)})},b);_.n.setTimeout(function(){c.ka=null},3E3);return this.ka};
_.g.SFa=function(a,b){var c=this;uN(this);if(this.ha&&_.Zj(this.ha.ud(),a))return lZc(this.ha),this.ha;this.ha=new iZc(a,this.context,function(d){return c.send("3.18",[d],function(e,f){return CL(e[0],f,pPc)})},b);_.n.setTimeout(function(){c.ha=null},3E3);return this.ha};_.g.W$=function(a){uN(this);return _.ji(this.send("3.14",[a],function(b,c){return CL(b[0],c,TM)}))};_.g.j8=function(a){uN(this);return _.ji(this.send("3.15",[a],function(b,c){return CL(b[0],c,TM)}))};
_.g.ld=function(a){uN(this);!this.ma&&_.qK(a)&&(this.ma=!0);a=fCc(a);return _.ji(this.send("3.3",[a],function(b,c){return CL(b[0],c,_.pK)}))};_.g.KN=function(a){uN(this);a=pCc(a);return this.send("3.35",[a],function(b,c){return CL(b[0],c,_.yGc)})};_.g.Cz=function(a){uN(this);for(var b=0;b<a.length;b++)!this.ma&&_.qK(a[b])&&(this.ma=!0);a=iCc(a);return _.ji(this.send("3.4",[a],function(c,d){return WIc(c[0],d).get()}))};_.g.Qwa=function(){uN(this);return rZc(this.Ab)};
_.g.kSa=function(a){uN(this);return new OYc(this.V.promise,a)};_.g.wr=function(a,b){var c=this;uN(this);var d=_.Vg();this.H.create(d,a);return _.ji(this.send("3.5",[a,!!b],function(e,f){f=CL(e[0],f,lM);return new _.WK(f,e[1],e[2])})).addCallback(function(e){pJc(c.H,d,e);return e.response}).Rg(function(e){kM(c.H,d);return e})};_.g.vr=function(a){uN(this);return this.send("3.10",[a],function(b,c){return CL(b[0],c,mPc)})};
_.g.Y$=function(a){uN(this);return _.ji(this.send("3.11",[a],function(b,c){return CL(b[0],c,qPc)}))};_.g.h8=function(a){uN(this);return _.ji(this.send("3.12",[a],function(b,c){return CL(b[0],c,qPc)}))};_.g.VS=function(a){uN(this);return _.ji(this.send("3.13",[a],function(b,c){return CL(b[0],c,qPc)}))};
_.g.kN=function(a,b){var c=this;uN(this);var d=_.Vg();this.H.create(d,a);return _.ji(this.send("3.1",[a,!!b],function(e,f){f=CL(e[0],f,_.XM);return new _.ZK(f,e[1],e[2])})).addCallback(function(e){pJc(c.H,d,e);return e.response}).Rg(function(e){kM(c.H,d);return e})};
_.g.HG=function(a,b){var c=this,d=_.fe(this.context.Nc.hg(),30);if(!d||0===d.length)return _.ki(new _.Dc("getUserPrefs requires a namespace.",_.rJ(3)));0===_.fe(a,3).length&&zCc(a,d);uN(this);var e=_.Vg();this.H.create(e,a);return _.ji(this.send("3.2",[a,!!b],function(f,h){h=CL(f[0],h,_.iA);return new _.YK(h,f[1],f[2])})).addCallback(function(f){pJc(c.H,e,f);return f.response}).Rg(function(f){kM(c.H,e);return f})};
_.g.UR=function(a){uN(this);sZc(_.fe(this.context.Nc.hg(),30),a);a=mCc(a);return this.send("3.6",[a],function(b,c){return CL(b[0],c,rPc)})};_.g.ku=function(a){uN(this);return _.ji(this.send("3.16",[a],function(b,c){return CL(b[0],c,aGc)}))};_.g.CBa=function(){return this.ma};_.g.Ol=function(a){uN(this);this.send("3.8",[a])};_.g.$y=function(a){uN(this);return _.Yh(this.send("3.36",[a],function(b){return!!b[0]}))};_.g.jY=function(a){uN(this);pXc(this.context).jY(a);this.$y(!!a)};
_.g.gF=function(){uN(this);this.send("3.9",[])};_.g.WR=function(){uN(this);this.send("3.41",[]);this.context.WR();var a=LL(this.context.rk(),106006);a&&this.V.promise.then(function(b){var c=_.B(_.RK(a),kFc,6);if(!c){c=new kFc;var d=_.RK(a);_.I(d,6,c)}c=_.w(c,1,b.clientId);_.w(c,2,b.O);a.zj()},function(){})};_.g.IB=function(){uN(this);return this.context.IB()};_.g.cQ=function(){uN(this);return _.Yh(this.send("3.19",[],function(a,b){return CL(a[0],b,aJc)}))};_.g.isConnected=function(){return this.context.Bk().isConnected()};
_.g.D7=function(){return this.send("3.46",[],function(a,b){return CL(a[0],b,_.Yxc)})};_.g.u9=function(){return this.Ha};_.g.sync=function(){uN(this);return _.Yh(this.send("3.28",[]))};_.g.Eu=function(){return this.context.Eu()};_.g.gY=function(a){this.Ka.promise.then(function(b){return void b.gY(a)})};_.g.nda=function(a){uN(this);return this.O.axa(a)};_.g.FY=function(a){uN(this);return this.O.$wa(a)};_.g.PFa=function(a){uN(this);JIc(this.context.wm,a,JFc(this.context.Lg));return this.O.Xwa(a)};
_.g.wpa=function(a){uN(this);return new nZc(this.V.promise,a)};_.g.Eva=function(a){var b=this;uN(this);if(!this.W||this.W.isDisposed())this.W=new dZc(a,this.context,function(c){return b.send("3.20",[c],function(d,e){return CL(d[0],e,rQc)})});return this.W};_.g.zGa=function(){this.W&&!this.W.isDisposed()?this.W.poll():_.Yh()};_.g.i8=function(a){uN(this);return _.ji(this.send("3.22",[a],function(b,c){return CL(b[0],c,sQc)}))};
_.g.pV=function(a){uN(this);return _.ji(this.send("3.25",[a],function(b,c){return CL(b[0],c,nQc)}))};_.g.nba=function(){return this.kb.promise};_.g.Cna=function(a){var b=_.ai();_.ji(this.send("3.30",[a],function(c,d){c[0]?b.resolve(CL(c[0],d,uQc)):b.reject(new _.Dc(void 0,CL(c[1],d,_.Cc)))})).Rg(function(c){return void b.reject(c)});return b.promise};_.g.ewa=function(a){uN(this);return this.O.Nwa(a)};_.g.y7=function(a){uN(this);return this.send("3.42",[a],function(b,c){return CL(b[0],c,YOc)})};
_.g.SO=function(a){uN(this);var b=new _.Gn;this.send("3.39",[a],function(c,d){return c.map(function(e){return CL(e,d,EJc)})}).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)});return Promise.resolve(new tZc(b.promise))};_.g.jGa=function(a){var b=this;uN(this);return new RYc(this.context,a,function(c){return _.Yh(b.send("3.37",[c.request,c.pageToken],function(d,e){return new YIc(CL(d[0],e,UM),d[1])}))})};
_.g.kGa=function(a){uN(this);return this.send("3.38",[a],function(b,c){return CL(b[0],c,APc)})};_.g.PKa=function(a){uN(this);return this.O.exa(a)};_.g.sqa=function(a){uN(this);return this.O.dxa(a)};_.g.hJa=function(a){var b=this;uN(this);return new SYc(this.context,a,function(){return _.Yh(b.send("3.40",[a],function(c,d){return CL(c[0],d,_.sL)}))})};_.g.iJa=function(a){uN(this);return this.O.Ywa(a)};_.g.t_=function(a){uN(this);this.send("3.43",[a])};
_.g.Z_=function(a){uN(this);return _.Yh(this.send("3.44",[a],function(b,c){return CL(b[0],c,uHc)}))};_.g.Qo=function(a){uN(this);if(1!==_.EK(this.context.Nc))return Promise.reject(Error("Ng"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.Ac())return Promise.reject(Error("Og"));if(!c.Ck()&&!c.getItem())return Promise.reject(Error("Pg"))}return Promise.resolve(this.send("3.45",a))};
_.g.w1a=function(){var a=this;if(3===this.context.getEnvironment()){var b=[_.Hi(1E4,!1),this.send("3.29",[],function(c){return!!c[0]}).then()];_.Oja(b).then(function(c){c?_.Fi(a.w1a.bind(a),6E4):(a.Qa=!0,uN(a))})}};var uN=function(a){a.Qa&&a.dispatchEvent(new XQc)};
var YCc=function(a){cN.call(this,a);this.ha=this.ka=this.ta=null;this.kb=_.ai();this.H=a.Sm()};_.K(YCc,cN);YCc.prototype.XRa=function(){this.Ha=new YXc(this.context);this.Ma(this.Ha);this.Ka=new bYc(this.context);this.Ma(this.Ka);this.Qa=new iYc(this.context);this.Ma(this.Qa)};
YCc.prototype.$a=function(){var a=this,b=["hVFf7"];_.FK(this.context.Nc)&&b.push("BNEDtc");pM(this.O,b,function(){return void a.UWa()});pM(this.O,["T8oKm","ZA9qG"],function(){return void CZc(a)});pM(this.O,["T8oKm","mrK8ic"],function(){return void CZc(a)});this.Sc.listen(this.Ha,"WPi0i",this.ysa.bind(this,1));this.Sc.listen(this.Ka,"Mb",this.ysa.bind(this,2));this.Sc.listen(this.Qa,"WPi0i",this.ysa.bind(this,4));pM(this.O,["GZTDpc"],function(){return a.kb.resolve()})};var CZc=function(a){gN(a.context).addCallback(function(b){b.start()})};
_.g=YCc.prototype;_.g.ysa=function(a){_.na(vHc,a)&&this.dispatchEvent(new yQc(a))};_.g.FY=function(a){return this.V.$wa(a.clone())};_.g.PFa=function(a){JIc(this.context.wm,a,JFc(this.context.Lg));return this.V.Xwa(a.clone())};_.g.nda=function(a){return this.V.axa(a.clone())};_.g.wpa=function(a){return new zYc(a,this.context.Sm())};
_.g.Tua=function(a,b){var c=this;if(this.ta&&_.Zj(this.ta.ud(),a))return this.ta;this.ta=new YYc(a.clone(),this.context,this.vjb.bind(this),b);_.n.setTimeout(function(){c.ta=null},3E3);return this.ta};_.g.vjb=function(a,b,c){var d=new _.Guc(a,b,c);return _.ji(this.H.then(function(e){return e.Pe(d)}).Cg(function(e){return _.tJ(e)}))};_.g.Eva=function(a){var b=this;if(!this.ha||this.ha.isDisposed())this.ha=new dZc(a,this.context,function(c){return DZc(b,c)});return this.ha};var DZc=function(a,b){return _.ji(a.H.then(function(c){return c.Pe(b)}).Cg(function(c){return _.tJ(c)}))};
_.g=YCc.prototype;_.g.zGa=function(){this.ha&&!this.ha.isDisposed()?this.ha.poll().then():_.Yh()};_.g.pV=function(a){return _.ji(this.H.then(function(b){return b.Pe(a)}))};_.g.i8=function(a){return _.ji(this.H.then(function(b){return b.Pe(a)}))};_.g.SFa=function(a,b){var c=this;if(this.ka&&_.Zj(this.ka.ud(),a))return lZc(this.ka),this.ka;this.ka=new iZc(a.clone(),this.context,this.vKb.bind(this),b);_.n.setTimeout(function(){c.ka=null},3E3);return this.ka};
_.g.vKb=function(a){var b=this;return this.H.then(function(c){return c.Pe(a)}).then(function(c){return _.ZI(b.context.Nc)?KKc(b.context.Mf.vq,_.Oj(c.jd(),_.Rk,2),a.ud().getId()).then(function(){return c}):c},_.tJ)};_.g.W$=function(a){var b=this;return _.ji(this.H.then(function(c){return c.Pe(a)}).then(function(c){return _.ZI(b.context.Nc)?KKc(b.context.Mf.vq,[_.B(c,_.Rk,2)],a.Ac()).then(function(){return c}):c},_.tJ))};
_.g.j8=function(a){return _.ji(this.H.then(function(b){return b.Pe(a)}).then(null,_.tJ))};_.g.ewa=function(a){return this.V.Nwa(a.clone())};_.g.y7=function(a){return this.H.then(function(b){return b.Pe(a)}).then(null,_.tJ)};_.g.SO=function(a){return this.H.then(function(b){return b.Pe(a)}).then(function(b){var c=new _.Gn;VKc(a,b).then(function(d){return c.resolve(d)});return new tZc(c.promise)},function(b){return void _.tJ(b)})};_.g.jGa=function(a){var b=this;return new RYc(this.context,a,function(c){return b.H.then(function(d){return d.Pe(c)}).Cg(function(d){return _.tJ(d)})})};
_.g.kGa=function(a){return this.H.then(function(b){return b.Pe(a)}).then(null,_.tJ)};_.g.ld=function(a){return _.ji(this.H.then(function(b){return b.Pe(a)}).then(null,_.tJ))};_.g.KN=function(a){return this.H.then(function(b){return b.Pe(a)}).then(null,_.tJ)};_.g.Cz=function(a){var b=this,c=[],d=[];a.forEach(function(f){f instanceof _.vJ?c.push(String(f.Ac())):c.push(String(f.getId()));d.push(b.ld(f))});a=new _.vo(d);var e=new _.di;a.addCallback(this.bmb.bind(this,e,c));return e};
_.g.Qwa=function(){return new oYc(this.context.Nc,this.context.YA,this.context.WQ().kfa,this.context.Sm(),this.context.XP,this.context.Qf(),this.context.rk())};_.g.wr=function(a,b){var c=this,d=_.Vg();this.W.create(d,a);3===a.getType()?a=cN.prototype.wr.call(this,a).addCallback(function(e){return new _.WK(e,1,!1)}):(qM(this.O,"Qubz4b"),a=this.Ka.enqueue(new gYc(a,b)));return a.addCallback(function(e){pJc(c.W,d,e);return e.response}).Rg(function(){kM(c.W,d)})};
_.g.vr=function(a){return _.ji(this.H.then(function(b){return b.Pe(a)}).then(null,_.tJ))};_.g.Y$=function(a){return _.ji(this.H.then(function(b){return b.Pe(a)}).then(null,_.tJ))};_.g.h8=function(a){return _.ji(this.H.then(function(b){return b.Pe(a)}).then(null,_.tJ))};_.g.VS=function(a){return _.ji(this.H.then(function(b){return b.Pe(a)}).then(null,_.tJ))};
_.g.kN=function(a,b){var c=this;qM(this.O,"iuEtc");var d=_.Vg();this.W.create(d,a);return this.Ha.enqueue(new $Xc(a,b)).addCallback(function(e){pJc(c.W,d,e);return e.response}).Rg(function(){kM(c.W,d)})};
_.g.HG=function(a,b){var c=this,d=_.fe(this.context.Nc.hg(),30);if(!d||0===d.length)return _.ki(new _.Dc("getUserPrefs requires a namespace.",_.rJ(3)));0===_.fe(a,3).length&&zCc(a,d);var e=_.Vg();this.W.create(e,a);qM(this.O,"OZvrNc");return this.Qa.enqueue(new lYc(a,b)).addCallback(function(f){pJc(c.W,e,f);return f.response}).Rg(function(){kM(c.W,e)})};_.g.UR=function(a){sZc(_.fe(this.context.Nc.hg(),30),a);return _.ji(this.H.then(function(b){return b.Pe(a)}).then(null,_.tJ))};
_.g.ku=function(a){var b=this;return _.ji(this.H.then(function(c){return c.Pe(a)}).then(function(c){return _.ZI(b.context.Nc)?IKc(b.context.Mf.vq,c):c},_.tJ))};_.g.PKa=function(a){return this.V.exa(a.clone())};_.g.sqa=function(a){return this.V.dxa(a.clone())};_.g.hJa=function(a){var b=this;return new SYc(this.context,a,function(c){return b.H.then(function(d){return d.Pe(c)}).Cg(function(d){return _.tJ(d)})})};_.g.iJa=function(a){return this.V.Ywa(a.clone())};
_.g.t_=function(a){PSc(this.context.Mf,[a])};_.g.Z_=function(a){return this.H.then(function(b){return b.Pe(a)}).then(null,_.tJ)};_.g.Qo=function(a){if(1!==_.EK(this.context.Nc))return Promise.reject(Error("Ng"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.Ac())return Promise.reject(Error("Og"));if(!c.Ck()&&!c.getItem())return Promise.reject(Error("Pg"))}this.context.Mf.Qo(a);zTc(this.context.Mf);return Promise.resolve()};_.g.CBa=function(){return this.context.WQ().dK()};
_.g.$y=function(a){var b=this;return this.context.$y(a).then(function(c){return c?(b.context.Lj().$y(a),b.context.Is.jL()):_.Yh(!a)})};_.g.jY=function(a){pXc(this.context).jY(a);this.$y(!!a)};_.g.gF=function(){gN(this.context).addCallback(function(a){a&&a.foa()});this.context.Uga.gF()};_.g.gY=function(a){a.GMa(this.context)};_.g.bmb=function(a,b,c){for(var d={},e=0;e<c.length;e++)d[b[e]]=c[e][1];zTc(this.context.Mf);a.callback(d)};
_.g.sync=function(){var a=this;return _.$h([this.context.T$.promise,this.context.mfa.promise]).then(function(){return a.context.Is.jL()}).then()};_.g.Eu=function(){gN(this.context).addCallback(function(a){a&&a.dispose()});return cN.prototype.Eu.call(this)};_.g.nba=function(){return this.kb.promise};
var EZc=function(){var a='<div class="'+_.E("la-r")+'">';a=a+"Une erreur s'est produite. Veuillez actualiser la page.</div><button class=\""+(_.E("la-Y-A")+" "+_.E("kc-A")+'" data-target="reload">');return(0,_.F)(a+"Actualiser</button>")};
_.En({id:_.im,callback:function(a){var b=_.gBc(a),c=aDc(a),d=_.B(a.get(_.hd),_.bc,10);_.kwc(d,b);_.Ij(d,28,c);b=ZCc(a,d);a.registerService(_.jm,b.u9());_.xi(b,"VbxEwf",function(){var e={};_.Lc(_.Yt.getService(a),new _.wq(new _.vq(EZc,{}),"d",(e.reload=function(){_.n.window.location.reload()},e),4))});return b}});

_.u();

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

_.FZc=function(a,b){return _.I(a,17,b)};_.GZc=function(a,b){return _.w(a,2,b)};_.HZc=function(a,b){return _.w(a,1,b)};_.IZc=function(a,b){return _.I(a,2,b)};_.JZc=function(a,b){return _.Kj(a,1,b)};_.KZc=function(a,b){return _.Ij(a,1,b)};_.LZc=function(a,b){return _.Kj(a,2,b)};_.MZc=function(a,b){return _.I(a,3,b)};

_.u();

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