var XR={D:"by_value",r:"directory",V:"contact",b:"unknown"};var mq={b:"pdl"};function Gp(){this.T();this.m=null;}Gp.prototype=XE(yY.prototype);Gp.prototype.superClass=yY;Gp.prototype.constructor=Gp;Gp.prototype.T=yY;function Q8(b){var V=new Gp();V.m=QM.K.createElement("distlist");V.r=b;V.k("IPM.DistList");return V;}Gp.lc=Q8;function dh(b,V){var D=new Gp();D.m=b;D.r=V;return D;}Gp.SS=dh;function Yc(){return QM.r(this.m,"display_name","");}Gp.prototype.J=Yc;function j0(b){QM.p(this.m,"display_name",b);QM.p(this.m,"subject",b);QM.p(this.m,"file_as",b);QM.p(this.m,"dl_name",b);}Gp.prototype.z=j0;function ZA(){var b=new Array();var V=this.m.getElementsByTagName("dl_member");var D=this.m.getElementsByTagName("member");for(var r=0;r<V.length;r++){var H=V.item(r);var S=D.item(r);var h=LF.p(H,S);IZ.b(b,h);}function l(o,q){var e=o.e().toLowerCase();var d=q.e().toLowerCase();if(e<d){return -1;}else{if(e>d){return 1;}else{return 0;}}}b.sort(l);return b;}Gp.prototype.g=ZA;function nJ(b){var V=QM.S(this.m,"dl_members",false);if(V){V.removeChild(b.f);}var D=QM.S(this.m,"members",false);if(D){D.removeChild(b.d);}}Gp.prototype.SD=nJ;function mU(b){var V=QM.S(this.m,"dl_members",true);V.appendChild(b.f);var D=QM.S(this.m,"members",true);D.appendChild(b.d);}Gp.prototype.U6=mU;function Ys(){var b=new Gp();b.m=this.m.cloneNode(true);b.r=this.r;b.l=this.l;return b;}Gp.prototype.wB=Ys;function oL(){return this.m.getAttribute("uid");}Gp.prototype.n=oL;function hq(b){if(b!=null){this.m.setAttribute("uid",b);}else{this.m.removeAttribute("uid");}}Gp.prototype.u=hq;function mp(){var b=this.m.getAttribute("msgid");if(b==null||b.strip()==""){return this.m.getAttribute("msgID");}else{return b;}}Gp.prototype.Z=mp;function OU(b){if(b!=null){this.m.setAttribute("msgid",b);}else{this.m.removeAttribute("msgid");}}Gp.prototype.c6=OU;function Gr(){var b=QM.S(this.m,"importance",false);if(b!=null){var V=parseInt(QM.o(b),10);if(!isNaN(V)){if(V==0){return HW.D;}else{if(V==1){return HW.V;}else{if(V==2){return HW.b;}else{return HW.V;}}}}else{return HW.V;}}else{return HW.V;}return (b!=null?parseInt(QM.o(b),10):null);}Gp.prototype.y=Gr;function X0(){return JZ.V;}Gp.prototype.V=X0;function SH(){return false;}Gp.prototype.b=SH;function rr(){return QM.r(this.m,"subject","");}Gp.prototype.A=rr;function y9(){return nf(this.A());}Gp.prototype.h=y9;function TY(b){return QM.p(this.m,"subject",b);}Gp.prototype.ZD=TY;function AF(){var b=QM.S(this.m,"last_modification_time",false);return (b!=null?BN(QM.o(b)):null);}Gp.prototype.B=AF;function ZW(){var b=this.B();return b!=null?b.getTime():null;}Gp.prototype.a=ZW;function Lp(){var b=QM.S(this.m,"message_size",false);return (b!=null?parseInt(QM.o(b),10):null);}Gp.prototype.x=Lp;function gw(){return QM.r(this.m,"message_class");}Gp.prototype.t=gw;function Xk(b){QM.p(this.m,"message_class",b);}Gp.prototype.k=Xk;function jI(){var b=QM.r(this.m,"sent_representing_name");var V=QM.r(this.m,"sent_representing_email_address");return (V!=null?new KC(b,V):null);}Gp.prototype.U=jI;function Rt(){var b=this.U();if(b!=null){var V=b.o();var D=b.S();return V!=null?V:D;}else{return "";}}Gp.prototype.M=Rt;function ZF(){var b=QM.r(this.m,"sender_name");var V=QM.r(this.m,"sender_email_address");return (V!=null?new KC(b,V):null);}Gp.prototype.w=ZF;function wX(b,V,D,r){if(this.p||!this.l){return ;}var H=this.r;var S=new X2.S(nW("contacts"),b,ps(this,this.O),ps(this,this.p4));S.b.add("onSuccessFn",V);S.b.add("onErrorFn",D);S.b.add("onDeletedFn",r);S.b.add("no.report.faults",true);var h=S.D("loadBody",ax);var l=QM.K.createElement("distlist");l.setAttribute("uid",this.n());l.setAttribute("msgid",this.Z());l.setAttribute("ImapFolderName",H.R());h.h(l);this.p=true;S.V.d();}Gp.prototype.q=wX;function vu(b,V){var D=b.D().firstChild;var r=D.firstChild;this.p=false;if(r.getAttribute("deleted")=="true"){this.d=true;var H=this.r;H.I(this);var S=V.item("onDeletedFn");if(S){S(this);}return ;}this.m=r;this.l=false;var h=V.item("onSuccessFn");if(h){h(this);}}Gp.prototype.O=vu;function fB(b,V){this.p=false;this.P=true;var D=V.item("onErrorFn");if(D){D(this);}}Gp.prototype.p4=fB;function FK(b,V,D){if(b==null){b=true;}var r=this.r;var H=new X2.S(nW("contacts"),b,ps(this,this.v),ps(this,this.d8));H.b.add("onSuccessFn",V);H.b.add("onErrorFn",D);H.b.add("no.report.faults",true);var S=H.D("save",ax);var h=this.m.cloneNode(true);h.setAttribute("ImapFolderName",r.R());S.h(h);this.G=true;H.V.d();}Gp.prototype.i=FK;function G3(b,V){var D=b.D().firstChild;var r=D.firstChild;this.m=r;this.G=false;var H=V.item("onSuccessFn");if(H){H(this);}}Gp.prototype.v=G3;function Ec(b,V){this.G=false;var D=V.item("onErrorFn");if(D){D(this);}}Gp.prototype.d8=Ec;function LF(){this.f=null;this.d=null;}function dg(b,V){var D=new LF();D.f=b.m.ownerDocument.createElement("dl_member");D.d=b.m.ownerDocument.createElement("member");D.d.setAttribute("class",V);return D;}LF.B=dg;function ze(b,V){var D=new LF();D.f=b;D.d=V;return D;}LF.p=ze;function Bn(){return this.d.getAttribute("class");}LF.prototype.D=Bn;function LQ(){return QM.r(this.f,"name","");}LF.prototype.e=LQ;function gA(b){QM.p(this.f,"name",b);if(this.D()==XR.D){QM.p(this.d,"display",b);}}LF.prototype.H=gA;function HN(){return QM.r(this.f,"address","");}LF.prototype.S=HN;function Kn(b){QM.p(this.f,"address",b);var V=this.D();if(V==XR.D||V==XR.r){QM.p(this.d,"address",b);}}LF.prototype.r=Kn;function ua(){return QM.r(this.f,"type","");}LF.prototype.l=ua;function bA(b){QM.p(this.f,"type",b);if(this.D()==XR.D){QM.p(this.d,"address_type",b);}}LF.prototype.V=bA;function e2(b){QM.p(this.d,"contact_type",b);}LF.prototype.N=e2;function Io(b){QM.p(this.d,"contact_ref",b);}LF.prototype.o=Io;function UD(){var b=QM.S(this.f,"address");if(b){var V=b.getAttribute("rfc822");return V!=null?V:QM.o(b);}else{return "";}}LF.prototype.h=UD;function PO(){return QM.r(this.d,"src_dir");}LF.prototype.q=PO;function Nl(V){QM.p(this.d,"src_dir",V);}LF.prototype.b=Nl;
