????

Your IP : 216.73.216.130


Current Path : C:/inetpub/vhost/quanlycanbo.gdtvietnam.com/www/static/js/
Upload File :
Current File : C:/inetpub/vhost/quanlycanbo.gdtvietnam.com/www/static/js/138.f44df4fe.chunk.js

(this["webpackJsonpgdt-qlcb"]=this["webpackJsonpgdt-qlcb"]||[]).push([[138],{1012:function(e,t,a){"use strict";a.d(t,"a",(function(){return h})),a.d(t,"b",(function(){return m}));var n=a(18),c=a.n(n),r=a(36),i=a(10),s=a(34),l=a(11),o=a(17),u=a(7),d=a(63),j=function(e){Object(l.a)(a,e);var t=Object(o.a)(a);function a(e){return Object(i.a)(this,a),t.call(this,"",e)}return a}(a(109).a),h=new(function(e){Object(l.a)(a,e);var t=Object(o.a)(a);function a(){return Object(i.a)(this,a),t.call(this,"/Picture")}return Object(s.a)(a,[{key:"getImgUrl",value:function(e){return e&&"null"!==e?u.i+this.prefix+u.g+this.path+"/image?id="+e:"/assets/img/avatar.png"}},{key:"download",value:function(){var e=Object(r.a)(c.a.mark((function e(t){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(d.e)("".concat(this.prefix).concat(u.g).concat(this.path,"/download"),JSON.stringify(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"uploadFile",value:function(){var e=Object(r.a)(c.a.mark((function e(t){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.UploadPublic(!0,!1,t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),a}(j)),b=(new(function(e){Object(l.a)(a,e);var t=Object(o.a)(a);function a(){return Object(i.a)(this,a),t.call(this,"/Certificate")}return Object(s.a)(a,[{key:"uploadCertificate",value:function(e){return this.UploadAllows(!0,!0,e)}},{key:"getCertificateImgUrlById",value:function(e){return u.i+this.prefix+u.g+this.path+"/image?id="+e}}]),a}(j)),a(92)),m=(new(function(e){Object(l.a)(a,e);var t=Object(o.a)(a);function a(){var e;return Object(i.a)(this,a),(e=t.call(this,"/Others")).Upload=e.Upload.bind(Object(b.a)(e)),e}return a}(j)),new(function(e){Object(l.a)(a,e);var t=Object(o.a)(a);function a(){return Object(i.a)(this,a),t.call(this,"/UploadAuth")}return Object(s.a)(a,[{key:"getImgUrl",value:function(e){return this.GetAuthenADMIN("/DownloadAuth/AvatarDownload?idUpload=".concat(e))}},{key:"download",value:function(){var e=Object(r.a)(c.a.mark((function e(t){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(d.e)("".concat(this.prefix).concat(u.g).concat(this.path,"/download"),JSON.stringify(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"uploadFile",value:function(e){return this.UploadAuth("/AvatarUpload",!0,!1,e)}},{key:"uploadAvataCanBo",value:function(e,t,a){return this.UploadAuth("/HinhAnhCanBo",!0,!1,t,e,a)}}]),a}(a(43).a)))},1157:function(e,t,a){},1588:function(e,t,a){"use strict";a.r(t);var n=a(15),c=a(5),r=a(14),i=a(1),s=a(0),l=a.n(s),o=a(661),u=a(660),d=a(624),j=a(355),h=a(101),b=a(120),m=a(118),O=(a(1157),a(693)),f=a(1012),v=a(1009),p=a.n(v),x=a(1010),g=a.n(x),N=a(1245),w=a.n(N),k=a(99),C=a(709);var y=" ";function U(e){var t=e.isOpen,a=e.toggle,n=Object(C.a)(),r=n.handleInput,l=n.formValue,o=n.setFormValue,u=l||{},d=u.oldPassword,b=void 0===d?"":d,m=u.newPassword,O=void 0===m?"":m,f=u.reNewPassword,v=void 0===f?"":f,x=Object(s.useMemo)((function(){return v&&O?v!==O?Object(i.jsx)("div",{className:"valid-feedback text-warning",children:"M\u1eadt kh\u1ea9u kh\xf4ng kh\u1edbp"}):v===O?Object(i.jsx)("div",{className:"valid-feedback text-success",children:"M\u1eadt kh\u1ea9u kh\u1edbp"}):Object(i.jsx)("div",{className:"valid-feedback",children:y}):Object(i.jsx)("div",{className:"valid-feedback",children:y})}),[O,v]),N=Object(s.useMemo)((function(){if(!O)return Object(i.jsx)("div",{className:"valid-feedback",children:y});var e=function(e){var t=0;if(!e)return t;for(var a={},n=0;n<e.length;n++)a[e[n]]=(a[e[n]]||0)+1,t+=5/a[e[n]];var c={digits:/\d/.test(e),lower:/[a-z]/.test(e),upper:/[A-Z]/.test(e),nonWords:/\W/.test(e)},r=0;for(var i in c)r+=!0===c[i]?1:0;return t+=10*(r-1),parseInt(t.toString())}(O);return e>80?Object(i.jsx)("div",{className:"valid-feedback text-success mt-0",children:"M\u1ea1nh"}):e>60?Object(i.jsx)("div",{className:"valid-feedback text-warning mt-0",children:"V\u1eeba"}):e<=60?Object(i.jsx)("div",{className:"valid-feedback text-danger mt-0",children:"Y\u1ebfu"}):Object(i.jsx)("div",{className:"valid-feedback",children:y})}),[O]),U=Object(s.useCallback)((function(e){e.preventDefault();h.a.editPassword(l).then((function(){o(null),Object(k.c)("\u0110\u1ed5i m\u1eadt kh\u1ea9u th\xe0nh c\xf4ng!","Th\xe0nh c\xf4ng")})).then((function(){return setTimeout(a,300)})).catch((function(){return Object(k.b)("\u0110\u1ed5i m\u1eadt kh\u1ea9u th\u1ea5t b\u1ea1i. Vui l\xf2ng th\u1eed l\u1ea1i","Th\u1ea5t b\u1ea1i")}))}),[l,a,o]);return Object(i.jsxs)(p.a,Object(c.a)(Object(c.a)({},{isOpen:t,toggle:a}),{},{size:"lg",children:[Object(i.jsx)(g.a,{children:"\u0110\u1ed5i m\u1eadt kh\u1ea9u"}),Object(i.jsx)(w.a,{children:Object(i.jsxs)("form",{className:"m-user-profile-container",onSubmit:U,children:[Object(i.jsx)("input",{hidden:!0}),Object(i.jsxs)("div",{className:"form-group row",children:[Object(i.jsx)("label",{htmlFor:"oldPassword",className:"col-sm-3 col-form-label",children:"M\u1eadt kh\u1ea9u c\u0169"}),Object(i.jsx)("div",{className:"col-sm-9",children:Object(i.jsx)("input",{type:"password",autoComplete:"current-password",required:!0,onChange:r,className:"form-control",id:"oldPassword",name:"oldPassword",value:b})})]}),Object(i.jsxs)("div",{className:"form-group row",children:[Object(i.jsx)("label",{htmlFor:"newPassword",className:"col-sm-3 col-form-label",children:"M\u1eadt kh\u1ea9u m\u1edbi"}),Object(i.jsxs)("div",{className:"col-sm-9",children:[Object(i.jsx)("input",{type:"password",className:"form-control",required:!0,autoComplete:"new-password",minLength:8,maxLength:20,id:"newPassword",onChange:r,name:"newPassword",value:O}),Object(i.jsxs)("div",{className:"d-flex valid-feedback",children:[Object(i.jsx)("div",{className:"text-muted flex-grow-1",children:"M\u1eadt kh\u1ea9u \xedt nh\u1ea5t 8 k\xed t\u1ef1 v\xe0 n\xean ch\u1ee9a ch\u1eef c\xe1i in hoa,s\u1ed1 v\xe0 k\xed t\u1ef1 \u0111\u1eb7c bi\u1ec7t"}),Object(i.jsx)("div",{className:"ml-2",children:N})]})]})]}),Object(i.jsxs)("div",{className:"form-group row",children:[Object(i.jsx)("label",{htmlFor:"reNewPassword",className:"col-sm-3 col-form-label",children:"Nh\u1eadp l\u1ea1i m\u1eadt kh\u1ea9u m\u1edbi"}),Object(i.jsxs)("div",{className:"col-sm-9",children:[Object(i.jsx)("input",{type:"password",autoComplete:"new-password",className:"form-control",required:!0,id:"reNewPassword",onChange:r,name:"reNewPassword",value:v}),x]})]}),Object(i.jsxs)("div",{className:"d-flex justify-content-end",children:[Object(i.jsx)(j.a,{color:"danger",type:"button",onClick:a,children:"H\u1ee7y"}),Object(i.jsx)(j.a,Object(c.a)(Object(c.a)({color:"primary",type:"submit",className:"ml-2"},""===v||""===O||v!==O?{disabled:!0}:{}),{},{children:"C\u1eadp nh\u1eadt"}))]})]})})]}))}var A=l.a.memo(U),S=a(86),T=a.n(S),P={showClass:{popup:"animate__animated animate__fadeInDown animate__faster"},hideClass:{popup:"animate__animated animate__fadeOutUp animate__faster"}},B=Object(c.a)({title:"B\u1ea1n c\xf3 ch\u1eafc mu\u1ed1n x\xf3a \u1ea3nh n\xe0y",text:"Thao t\xe1c n\xe0y kh\xf4ng th\u1ec3 ho\xe0n t\xe1c",icon:"warning"},P),M={title:"\u0110\xe3 x\u1ea3y ra l\u1ed7i",text:"Kh\xf4ng t\xecm th\u1ea5y id c\u1ee7a \u1ea3nh n\xe0y. T\u1ea1m th\u1eddi kh\xf4ng th\u1ec3 thao t\xe1c",icon:"warning"},_=function(e,t){var a=e.idUpload,n=e.onClick;return Object(i.jsx)("div",{className:"col-md-6",children:Object(i.jsx)("img",{src:f.a.getImgUrl(a),alt:"avatar",onClick:n,className:"w-100 btn p-0 mb-4 m-avatar-item"})},t)};function I(e){var t=e.isOpen,a=e.toggle,n=e.avatarList,r=Object(s.useCallback)((function(e){var t=e.idUpload,a=e.uuid;if(!a)return T.a.fire(M);T.a.fire(function(e){return Object(c.a)({imageUrl:f.a.getImgUrl(e),confirmButtonText:"Ch\u1ecdn l\xe0m \u1ea3nh \u0111\u1ea1i di\u1ec7n",showCancelButton:!0,cancelButtonText:"X\xf3a \u1ea3nh",cancelButtonColor:"#d33",allowOutsideClick:!0},P)}(t)).then((function(e){var t=e.value,n=e.dismiss;if(t)return h.f.setAvatar(a).then((function(){return Object(k.a)({position:"bottom",icon:"success",title:"C\u1eadp nh\u1eadt th\xe0nh c\xf4ng",showConfirmButton:!1,timer:1500,toast:!0})}));if(n===T.a.DismissReason.cancel){return T.a.fire(B).then((function(e){return e.value&&h.f.deleteAvatar(a)}))}}))}),[]),l=Object(s.useMemo)((function(){return Array.isArray(n)?0===n.length?Object(i.jsx)("div",{className:"m-height-156"}):n.map((function(e){return Object(c.a)({onClick:function(){return r(e)}},e)})).map(_):Object(i.jsx)("div",{className:"m-height-156"})}),[n,r]);return Object(i.jsxs)(p.a,Object(c.a)(Object(c.a)({},{isOpen:t,toggle:a}),{},{size:"lg",children:[Object(i.jsx)(g.a,{children:"C\u1eadp nh\u1eadt \u1ea3nh \u0111\u1ea1i di\u1ec7n"}),Object(i.jsx)(w.a,{children:Object(i.jsx)("div",{className:"row",children:l})})]}))}var q=l.a.memo(I),D=a(1568),L=a(1257),R=a(1244),F=a(1004),V=a(799),E=l.a.memo(o.a),H=function(e,t){return{label:e,value:t}},G=[H("Nam","male"),H("N\u1eef","female")],z=[h.a.getInfo(),h.a.getAuthorities()],J=function(e){var t=Object(r.a)(e,2),a=t[0],n=t[1];return Object(c.a)(Object(c.a)({},a),{},{authorities:n})},K=function(){return Promise.all(z).then(J)};t.default=function(){var e=Object(O.a)(K),t=e.value,a=e.pending,l=e.error,o=Object(s.useState)(null),v=Object(r.a)(o,2),p=v[0],x=v[1],g=Object(s.useState)(!1),N=Object(r.a)(g,2),w=N[0],C=N[1],y=Object(s.useState)(!1),U=Object(r.a)(y,2),S=U[0],T=U[1],P=Object(s.useState)(!1),B=Object(r.a)(P,2),M=B[0],_=B[1],I=Object(s.useState)(null),H=Object(r.a)(I,2),z=H[0],J=H[1],W=Object(s.useCallback)((function(){return T((function(e){return!e}))}),[]),X=Object(s.useCallback)((function(){return C((function(e){return!e}))}),[]),Q=Object(s.useCallback)((function(){return _((function(e){return!e}))}),[]);Object(s.useEffect)((function(){t&&h.a.getDefault().then((function(e){e&&Object(V.a)(e).then((function(e){J(e?URL.createObjectURL(e):null)}))})),x(t)}),[t]);var Y=Object(s.useCallback)((function(e){var t=e.target,a=t.name,r=t.value;a&&x((function(e){return Object(c.a)(Object(c.a)({},e),{},Object(n.a)({},a,r))}))}),[]),Z=Object(s.useCallback)((function(){return Object(k.a)({position:"bottom",icon:"error",title:"C\u1eadp nh\u1eadt th\u1ea5t b\u1ea1i, vui l\xf2ng th\u1eed l\u1ea1i",showConfirmButton:!1,timer:1500,toast:!0})}),[]),$=Object(s.useCallback)((function(){return Object(k.a)({position:"bottom",icon:"success",title:"C\u1eadp nh\u1eadt th\xe0nh c\xf4ng",showConfirmButton:!1,timer:1500,toast:!0})}),[]),ee=Object(s.useCallback)((function(e){e.preventDefault(),delete p.authorities,h.a.UpdateChiTietTaiKhoan(p).then($).catch(Z)}),[Z,$,p]),te=p||{},ae=te.email,ne=void 0===ae?"":ae,ce=te.name,re=void 0===ce?"":ce,ie=te.phoneNumber,se=void 0===ie?"":ie,le=te.gender,oe=void 0===le?"":le,ue=te.about,de=void 0===ue?"":ue,je=te.birthday,he=void 0===je?"":je,be=te.authorities,me=te.avatarList,Oe=Object(s.useRef)(),fe=Object(s.useCallback)((function(){Oe.current&&Oe.current.click()}),[]),ve=Object(s.useCallback)((function(e){var t=e.target.files[0];if(t){f.b.uploadFile(t).then((function(e){return Object(V.a)(e.id).then((function(e){J(URL.createObjectURL(e)),Object(k.f)("C\u1eadp nh\u1eadt \u1ea3nh \u0111\u1ea1i di\u1ec7n th\xe0nh c\xf4ng")}))})).catch((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.CUSTOM_MESSAGE,a=void 0===t?"Thao t\xe1c th\u1ea5t b\u1ea1i, vui l\xf2ng th\u1eed l\u1ea1i":t;return Object(k.a)({position:"bottom",icon:"error",title:a,showConfirmButton:!1,timer:1500,toast:!0})}))}}),[]),pe=Object(s.useCallback)((function(){return x(t)}),[t]);return Object(i.jsxs)("div",{className:"row m-user-profile-container",children:[Object(i.jsx)("div",{className:"col-md-7",children:Object(i.jsxs)("div",{className:"border rounded bg-white p-3",children:[Object(i.jsxs)("div",{className:"d-flex align-items-center mb-3",children:[Object(i.jsx)("h4",{className:"mr-2 mb-0",children:"Th\xf4ng tin c\xe1 nh\xe2n"}),a&&Object(i.jsx)("p",{className:"text-muted mb-0",children:"\u0110ang t\u1ea3i th\xf4ng tin"}),l&&Object(i.jsx)("p",{className:"text-danger mb-0",children:"Ch\u01b0a t\u1ea3i \u0111\u01b0\u1ee3c th\xf4ng tin"})]}),Object(i.jsxs)("form",{onSubmit:ee,children:[Object(i.jsxs)("div",{className:"row",children:[Object(i.jsx)("div",{className:"col-md-6",children:Object(i.jsxs)(u.a,{children:[Object(i.jsx)(d.a,{for:"email",children:"Email"}),Object(i.jsx)(E,{type:"email",name:"email",value:ne,onChange:Y,id:"email",required:!0,placeholder:"Nh\u1eadp email"})]})}),Object(i.jsx)("div",{className:"col-md-6",children:Object(i.jsxs)(u.a,{children:[Object(i.jsx)(d.a,{for:"name",children:"T\xean hi\u1ec3n th\u1ecb"}),Object(i.jsx)(E,{type:"name",required:!0,name:"name",value:re,onChange:Y,id:"name",placeholder:"Nh\u1eadp t\xean"})]})})]}),Object(i.jsxs)("div",{className:"row",children:[Object(i.jsx)("div",{className:"col-md-4",children:Object(i.jsxs)(u.a,{children:[Object(i.jsx)(d.a,{for:"phoneNumber",children:"S\u1ed1 \u0111i\u1ec7n tho\u1ea1i"}),Object(i.jsx)(E,{type:"phoneNumber",name:"phoneNumber",required:!0,value:se,onChange:Y,id:"phoneNumber",placeholder:"S\u1ed1 \u0111i\u1ec7n tho\u1ea1i"})]})}),Object(i.jsx)("div",{className:"col-md-4",children:Object(i.jsxs)(u.a,{children:[Object(i.jsx)(d.a,{for:"gender",children:"Gi\u1edbi t\xednh"}),Object(i.jsx)(b.a,{options:G,name:"gender",value:G.find((function(e){return e.value===oe})),onChange:function(e){var t=e.value;Y({target:{name:"gender",value:t}})},id:"gender",placeholder:"Ch\u1ecdn gi\u1edbi t\xednh"})]})}),Object(i.jsx)("div",{className:"col-md-4",children:Object(i.jsxs)(u.a,{children:[Object(i.jsx)(d.a,{for:"birthday",children:"Ng\xe0y sinh"}),Object(i.jsx)(m.a,{isRequired:!0,value:he,onChange:function(e){return Y({target:{name:"birthday",value:e}})},name:"birthday",id:"birthday",placeholder:"Ng\xe0y sinh"})]})})]}),Object(i.jsxs)("div",{className:"d-flex",children:[Object(i.jsx)("div",{className:"flex-grow-1",children:Object(i.jsxs)(u.a,{children:[Object(i.jsx)(d.a,{for:"about",children:"Th\xf4ng tin b\u1ed5 sung"}),Object(i.jsx)(E,{type:"textarea",name:"about",value:de,onChange:Y,id:"about",placeholder:"M\xf4 t\u1ea3"})]})}),Object(i.jsxs)("div",{className:"ml-3 mt-auto mb-3",children:[Object(i.jsx)(j.a,{color:"danger",disabled:t===p,onClick:pe,children:"Ho\xe0n t\xe1c"}),Object(i.jsx)(j.a,{color:"primary",type:"submit",className:"ml-2",disabled:t===p,children:"C\u1eadp nh\u1eadt"})]})]})]})]})}),Object(i.jsx)("div",{className:"col-md-5",children:Object(i.jsx)("div",{className:"rounded border bg-white p-3",children:Object(i.jsx)("div",{className:"d-flex flex-column",children:Object(i.jsxs)("div",{className:"d-flex",children:[Object(i.jsx)("img",{src:z,style:{objectFit:"cover"},className:"rounded-circle ",width:186,height:186,alt:"H\xecnh \u0111\u1ea1i di\u1ec7n"}),Object(i.jsx)("div",{className:"d-flex align-items-center ml-4",children:Object(i.jsxs)("div",{className:"my-auto",children:[Object(i.jsxs)("h2",{children:[re,"male"===oe&&Object(i.jsx)("i",{className:"fas fa-mars text-primary ml-2"})||"female"===oe&&Object(i.jsx)("i",{className:"fas fa-venus text-danger ml-2"})]}),Object(i.jsxs)("h4",{children:[Object(i.jsx)("i",{className:"far fa-envelope mr-1"}),ne]}),Object(i.jsxs)("h4",{children:[Object(i.jsx)("i",{className:"fas fa-phone mr-1"}),se]}),Object(i.jsxs)("h4",{children:[" Vai tr\xf2:",be?be.join(", "):null]}),Object(i.jsxs)(D.a,{isOpen:M,toggle:Q,children:[Object(i.jsxs)(L.a,{caret:!0,color:"primary",children:[Object(i.jsx)("i",{className:"fas fa-user-cog mr-2"})," C\u1ea5u h\xecnh"]}),Object(i.jsxs)(R.a,{children:[Object(i.jsx)(F.a,{header:!0,children:"\u0110\u1ed5i \u1ea3nh \u0111\u1ea1i di\u1ec7n"}),Object(i.jsxs)(F.a,{onClick:W,children:[Object(i.jsx)("i",{className:"fas fa-image mr-1"}),"\u1ea2nh c\xf3 s\u1eb5n"]}),Object(i.jsxs)(F.a,{onClick:fe,children:[Object(i.jsx)("input",{className:"d-none",type:"file",onChange:ve,ref:Oe}),Object(i.jsx)("i",{className:"fas fa-file-upload mr-1"}),"T\u1ea3i \u1ea3nh l\xean"]}),Object(i.jsx)(F.a,{divider:!0}),Object(i.jsxs)(F.a,{onClick:X,children:[Object(i.jsx)("i",{className:"fas fa-key mr-1"}),"\u0110\u1ed5i m\u1eadt kh\u1ea9u"]})]})]})]})})]})})})}),Object(i.jsx)(A,{isOpen:w,toggle:X}),Object(i.jsx)(q,{isOpen:S,avatarList:me,toggle:W})]})}},693:function(e,t,a){"use strict";var n=a(14),c=a(0);t.a=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=Object(c.useState)("idle"),r=Object(n.a)(a,2),i=r[0],s=r[1],l=Object(c.useState)(void 0),o=Object(n.a)(l,2),u=o[0],d=o[1],j=Object(c.useState)(void 0),h=Object(n.a)(j,2),b=h[0],m=h[1],O=Object(c.useRef)(!1),f=Object(c.useCallback)((function(){return s("pending"),m(null),e().then((function(e){O.current&&(d(e),s("success"))})).catch((function(e){O.current&&(m(e),s("error"))}))}),[e]);return Object(c.useEffect)((function(){t&&f()}),[f,t]),Object(c.useEffect)((function(){return O.current=!0,function(){O.current=!1}}),[]),{execute:f,status:i,value:u,error:b,setValue:d,setStatus:s}}},709:function(e,t,a){"use strict";var n=a(15),c=a(5),r=a(14),i=a(0);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=Object(i.useState)((function(){return e})),a=Object(r.a)(t,2),s=a[0],l=a[1],o=Object(i.useCallback)((function(e){var t=e.target,a=t.name,r=t.value;return l((function(e){return Object(c.a)(Object(c.a)({},e),{},Object(n.a)({},a,r))}))}),[]);return{formValue:s,handleInput:o,setFormValue:l}}},799:function(e,t,a){"use strict";var n=a(7),c=a(57),r=a.n(c);t.a=function(e){var t=n.i+n.b+"/Accounts/DownloadAuth/AvatarDownload?idUpload="+e;return new Promise((function(e,a){var n=new XMLHttpRequest,c=r.a.get("GDTQLCB");n.open("GET",t),n.setRequestHeader("Authorization","Bearer ".concat(c)),n.responseType="blob",n.send(),n.onerror=a,n.onreadystatechange=function(){4===n.readyState&&e(n.response)}}))}}}]);