(()=>{var e={284(e,t,n){const o=n(37);e.exports=function(){(new o).setStatus({type:"pro",message:ai1wm_locale.restore_from_file})}},11(e,t,n){const o=n(132),s=jQuery,i=function(){const e=this;this.params=[],this.modal=new o,this.modal.onStop=function(t){e.onStop(t)}};i.prototype.setParams=function(e){this.params=Ai1wm.Util.list(e)},i.prototype.start=function(e,t){const n=this;if(0===(t=t||0)&&this.stopExport(!1),this.isExportStopped())return;s(window).on("beforeunload",function(){return ai1wmke_locale.stop_resetting_your_website}),this.setStatus({type:"info",message:ai1wm_locale.preparing_to_export});let o=this.params.concat({name:"secret_key",value:ai1wm_export.secret_key});e&&(o=o.concat(Ai1wm.Util.list(e))),s.ajax({url:ai1wm_export.ajax.url,type:"POST",dataType:"json",data:o,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(){n.getStatus()}).done(function(e){e&&n.run(e)}).fail(function(s){const i=1e3*t;try{const e=Ai1wm.Util.json(s.responseText);if(e){const t=JSON.parse(e).errors.pop();if(t.message)return n.stopExport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_export,message:t.message,nonce:Ai1wm.Util.findValueByName(o,"storage")})}}catch(e){}if(t>=5)return n.stopExport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_export,message:ai1wm_locale.unable_to_start_the_export,nonce:Ai1wm.Util.findValueByName(o,"storage")});t++,setTimeout(n.start.bind(n,e,t),i)})},i.prototype.run=function(e,t){const n=this;t=t||0,this.isExportStopped()||s.ajax({url:ai1wm_export.ajax.url,type:"POST",dataType:"json",data:e,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(e){e&&n.run(e)}).fail(function(o){const s=1e3*t;try{const t=Ai1wm.Util.json(o.responseText);if(t){const o=JSON.parse(t).errors.pop();if(o.message)return n.stopExport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_export,message:o.message,nonce:Ai1wm.Util.findValueByName(e,"storage")})}}catch(e){}if(t>=5)return n.stopExport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_export,message:ai1wm_locale.unable_to_run_the_export,nonce:Ai1wm.Util.findValueByName(e,"storage")});t++,setTimeout(n.run.bind(n,e,t),s)})},i.prototype.clean=function(e,t){const n=this;0===(t=t||0)&&this.stopExport(!0),this.setStatus({type:"info",message:ai1wm_locale.please_wait_stopping_the_export});let o=this.params.concat({name:"secret_key",value:ai1wm_export.secret_key}).concat({name:"priority",value:300}).concat({name:"ai1wm_export_cancel",value:1});e&&(o=o.concat(Ai1wm.Util.list(e))),s.ajax({url:ai1wm_export.ajax.url,type:"POST",dataType:"json",data:o,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(){s(window).off("beforeunload"),n.modal.destroy()}).fail(function(s){const i=1e3*t;try{const e=Ai1wm.Util.json(s.responseText);if(e){const t=JSON.parse(e).errors.pop();if(t.message)return n.stopExport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_export,message:t.message,nonce:Ai1wm.Util.findValueByName(o,"storage")})}}catch(e){}if(t>=5)return n.stopExport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_export,message:ai1wm_locale.unable_to_stop_the_export,nonce:Ai1wm.Util.findValueByName(o,"storage")});t++,setTimeout(n.clean.bind(n,e,t),i)})},i.prototype.getStatus=function(){const e=this;this.isExportStopped()||(this.statusXhr=s.ajax({url:ai1wm_export.status.url,type:"GET",dataType:"json",cache:!1,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(t){if(t)switch(e.setStatus(t),t.type){case"done":case"error":case"download":return void s(window).off("beforeunload")}setTimeout(e.getStatus.bind(e),3e3)}).fail(function(){setTimeout(e.getStatus.bind(e),3e3)}))},i.prototype.setStatus=function(e){this.modal.render(e)},i.prototype.onStop=function(e){this.clean(e)},i.prototype.stopExport=function(e){try{e&&this.statusXhr&&this.statusXhr.abort()}finally{this.isStopped=e}},i.prototype.isExportStopped=function(){return this.isStopped},e.exports=i},132(e){const t=jQuery,n=function(){const e=this;this.error=function(n){const o=t("
"),s=t(""),i=t(""),r=t("").html(n.message),a=t(""),c=t("").addClass("ai1wm-title-red").text(n.title),l=t('').on("click",function(){e.destroy()});if(l.append(ai1wm_locale.close_export),a.append(l),i.append(c),s.append(i).append(r),n.nonce){const e=t('');e.text(ai1wm_locale.view_error_log_button),e.prop("href",ai1wm_export.storage.url+"/"+ai1wm_export.error_log.pattern.replace("%s",n.nonce)),s.append(t("").append(e))}o.append(s).append(a),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.info=function(n){const o=t(""),s=t(""),i=t(""),r=t("").html(n.message),a=t(""),c=t(''),l=t('').on("click",function(){l.attr("disabled","disabled"),e.onStop()});l.append(' '+ai1wm_locale.stop_export),a.append(l),i.append(c),s.append(i).append(r),o.append(s).append(a),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.done=function(n){const o=t(""),s=t(""),i=t(""),r=t("").html(n.message),a=t(""),c=t("").addClass("ai1wm-title-green").text(n.title),l=t('').on("click",function(){e.destroy()});l.append(ai1wm_locale.close_export),a.append(l),i.append(c),s.append(i).append(r),o.append(s).append(a),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.download=function(n){const o=t(""),s=t(""),i=t("").html(n.message),r=t(""),a=t('').on("click",function(){e.destroy()}),c=t(".ai1wm-menu-count");c.text(+c.text()+1),c.text()>1?c.prop("title",ai1wm_locale.backups_count_plural.replace("%d",c.text())):(c.removeClass("ai1wm-menu-hide"),c.prop("title",ai1wm_locale.backups_count_singular.replace("%d",c.text()))),a.append(ai1wm_locale.close_export),r.append(a),s.append(i),o.append(s).append(r),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.overlay=t(''),this.modal=t(''),t("body").append(this.overlay).append(this.modal)};n.prototype.render=function(e){switch(t(document).trigger("ai1wm-export-status",e),e.type){case"error":this.error(e);break;case"info":this.info(e);break;case"done":this.done(e);break;case"download":this.download(e)}},n.prototype.destroy=function(){this.modal.hide(),this.overlay.hide()},e.exports=n},37(e,t,n){const o=n(595),s=jQuery,i=function(){const e=this;this.params=[],this.modal=new o,this.modal.onConfirm=function(t){e.onConfirm(t)},this.modal.onBlogs=function(t){e.onBlogs(t)},this.modal.onStop=function(t){t=(t||[]).concat({name:"ai1wm_import_cancel",value:1}),e.onStop(t)},this.modal.onDiskSpaceConfirm=function(t){e.onDiskSpaceConfirm(t)},this.modal.onDecryptPassword=function(t){e.onDecryptPassword(t)}};i.prototype.setParams=function(e){this.params=Ai1wm.Util.list(e)},i.prototype.start=function(e,t){const n=this;if(0===(t=t||0)&&this.stopImport(!1),this.isImportStopped())return;s(window).on("beforeunload",function(){return ai1wm_locale.stop_importing_your_website}),this.setStatus({type:"info",message:ai1wm_locale.preparing_to_import});let o=this.params.concat({name:"secret_key",value:ai1wm_import.secret_key});e&&(o=o.concat(Ai1wm.Util.list(e))),s.ajax({url:ai1wm_import.ajax.url,type:"POST",dataType:"json",data:o,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(){n.getStatus()}).done(function(e){e&&n.run(e)}).fail(function(s){const i=1e3*t;try{const e=Ai1wm.Util.json(s.responseText);if(e){const t=JSON.parse(e).errors.pop();if(t.message)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:t.message,nonce:Ai1wm.Util.findValueByName(o,"storage")})}}catch(e){}if(t>=5)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:ai1wm_locale.unable_to_start_the_import,nonce:Ai1wm.Util.findValueByName(o,"storage")});t++,setTimeout(n.start.bind(n,e,t),i)})},i.prototype.run=function(e,t){const n=this;t=t||0,this.isImportStopped()||s.ajax({url:ai1wm_import.ajax.url,type:"POST",dataType:"json",data:e,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(e){e&&n.run(e)}).fail(function(o){const s=1e3*t;try{const t=Ai1wm.Util.json(o.responseText);if(t){const o=JSON.parse(t).errors.pop();if(o.message)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:o.message,nonce:Ai1wm.Util.findValueByName(e,"storage")})}}catch(e){}t++,setTimeout(n.run.bind(n,e,t),s)})},i.prototype.decryptPassword=function(e,t){const n=this;if(t=t||0,this.isImportStopped())return;let o=this.params.concat({name:"secret_key",value:ai1wm_import.secret_key}).concat({name:"priority",value:75});e&&(o=o.concat(Ai1wm.Util.list(e)),this.params=this.params.concat(Ai1wm.Util.list(e))),s.ajax({url:ai1wm_import.ajax.url,type:"POST",dataType:"json",data:o,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(){n.getStatus()}).done(function(e){e&&n.run(e)}).fail(function(s){const i=1e3*t;try{const e=Ai1wm.Util.json(s.responseText);if(e){const t=JSON.parse(e).errors.pop();if(t.message)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:t.message,nonce:Ai1wm.Util.findValueByName(o,"storage")})}}catch(e){}if(t>=5)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:ai1wm_locale.unable_to_check_decryption_password,nonce:Ai1wm.Util.findValueByName(o,"storage")});t++,setTimeout(n.decryptPassword.bind(n,e,t),i)})},i.prototype.confirm=function(e,t){const n=this;if(t=t||0,this.isImportStopped())return;let o=this.params.concat({name:"secret_key",value:ai1wm_import.secret_key}).concat({name:"priority",value:150});e&&(o=o.concat(Ai1wm.Util.list(e))),s.ajax({url:ai1wm_import.ajax.url,type:"POST",dataType:"json",data:o,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(){n.getStatus()}).done(function(e){e&&n.run(e)}).fail(function(s){const i=1e3*t;try{const e=Ai1wm.Util.json(s.responseText);if(e){const t=JSON.parse(e).errors.pop();if(t.message)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:t.message,nonce:Ai1wm.Util.findValueByName(o,"storage")})}}catch(e){}if(t>=5)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:ai1wm_locale.unable_to_confirm_the_import,nonce:Ai1wm.Util.findValueByName(o,"storage")});t++,setTimeout(n.confirm.bind(n,e,t),i)})},i.prototype.checkDiskSpace=function(e,t){this.diskSpaceCallback=t;const n=parseInt(ai1wm_disk_space.free,10),o=parseInt(ai1wm_disk_space.factor,10),s=parseInt(ai1wm_disk_space.extra,10);if(n>=0){const t=e*o+s;if(t>n)return void this.setStatus({type:"disk_space_confirm",message:ai1wm_locale.out_of_disk_space.replace("%s",Ai1wm.Util.sizeFormat(t-n))})}t()},i.prototype.blogs=function(e,t){const n=this;if(t=t||0,this.isImportStopped())return;let o=this.params.concat({name:"secret_key",value:ai1wm_import.secret_key}).concat({name:"priority",value:150});e&&(o=o.concat(Ai1wm.Util.list(e))),s.ajax({url:ai1wm_import.ajax.url,type:"POST",dataType:"json",data:o,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(){n.getStatus()}).done(function(e){e&&n.run(e)}).fail(function(s){const i=1e3*t;try{const e=Ai1wm.Util.json(s.responseText);if(e){const t=JSON.parse(e).errors.pop();if(t.message)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:t.message,nonce:Ai1wm.Util.findValueByName(o,"storage")})}}catch(e){}if(t>=5)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:ai1wm_locale.unable_to_prepare_blogs_on_import,nonce:Ai1wm.Util.findValueByName(o,"storage")});t++,setTimeout(n.blogs.bind(n,e,t),i)})},i.prototype.clean=function(e,t){const n=this;0===(t=t||0)&&this.stopImport(!0),this.setStatus({type:"info",message:ai1wm_locale.please_wait_stopping_the_import});let o=this.params.concat({name:"secret_key",value:ai1wm_import.secret_key}).concat({name:"priority",value:400});e&&(o=o.concat(Ai1wm.Util.list(e))),s.ajax({url:ai1wm_import.ajax.url,type:"POST",dataType:"json",data:o,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(){s(window).off("beforeunload"),n.modal.destroy()}).fail(function(s){const i=1e3*t;try{const e=Ai1wm.Util.json(s.responseText);if(e){const t=JSON.parse(e).errors.pop();if(t.message)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:t.message,nonce:Ai1wm.Util.findValueByName(o,"storage")})}}catch(e){}if(t>=5)return n.stopImport(!0),void n.setStatus({type:"error",title:ai1wm_locale.unable_to_import,message:ai1wm_locale.unable_to_stop_the_import,nonce:Ai1wm.Util.findValueByName(o,"storage")});t++,setTimeout(n.clean.bind(n,e,t),i)})},i.prototype.getStatus=function(){const e=this;this.isImportStopped()||(this.statusXhr=s.ajax({url:ai1wm_import.status.url,type:"GET",dataType:"json",cache:!1,dataFilter:function(e){return Ai1wm.Util.json(e)}}).done(function(t){if(t)switch(e.setStatus(t),t.type){case"done":case"error":return void s(window).off("beforeunload");case"confirm":case"disk_space_confirm":case"blogs":case"backup_is_encrypted":return}setTimeout(e.getStatus.bind(e),3e3)}).fail(function(){setTimeout(e.getStatus.bind(e),3e3)}))},i.prototype.setStatus=function(e){this.modal.render(e)},i.prototype.onConfirm=function(e){this.confirm(e)},i.prototype.onDecryptPassword=function(e){this.decryptPassword(e)},i.prototype.onBlogs=function(e){this.blogs(e)},i.prototype.onStop=function(e){this.clean(e)},i.prototype.onDiskSpaceConfirm=function(e){this.diskSpaceCallback(e)},i.prototype.stopImport=function(e){try{e&&this.statusXhr&&this.statusXhr.abort()}finally{this.isStopped=e}},i.prototype.isImportStopped=function(){return this.isStopped},e.exports=i},595(e){const t=jQuery,n=function(){const e=this;this.error=function(n){const o=t(""),s=t(""),i=t(""),r=t("").html(n.message).addClass(n.leftAligned?"ai1wm-left-aligned":""),a=t(""),c=t("").addClass("ai1wm-title-red").text(n.title),l=t('').on("click",function(){e.destroy()});if(l.append(ai1wm_locale.close_import),a.append(l),i.append(c),s.append(i).append(r),n.nonce){const e=t('');e.text(ai1wm_locale.view_error_log_button),e.prop("href",ai1wm_export.storage.url+"/"+ai1wm_export.error_log.pattern.replace("%s",n.nonce)),s.append(t("").append(e))}o.append(s).append(a),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.progress=function(n){if(this.progress.progressBarMeter&&this.progress.progressBarMeter.width(n.percent+"%"),this.progress.progressBarPercent)return void this.progress.progressBarPercent.text(n.percent+"%");const o=t(""),s=t(""),i=t(""),r=t(""),a=t('');this.progress.progressBarMeter=t('').width(n.percent+"%"),this.progress.progressBarPercent=t('').text(n.percent+"%");const c=t('').on("click",function(){c.attr("disabled","disabled"),e.onStop()});c.append(' '+ai1wm_locale.stop_import),a.append(this.progress.progressBarMeter).append(this.progress.progressBarPercent),r.append(c),i.append(a),s.append(i),o.append(s).append(r),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.pro=function(n){const o=t(""),s=t(""),i=t(""),r=t('').html(n.message),a=t(""),c=t(''),l=t('').on("click",function(){e.destroy()});l.append(ai1wm_locale.close_import),a.append(l),i.append(c),s.append(i).append(r),o.append(s).append(a),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.confirm=function(n){const o=t(""),s=t(""),i=t(""),r=t('').html(n.message),a=t(''),c=t(''),l=t('').on("click",function(){l.attr("disabled","disabled"),e.onStop()}),p=t('').on("click",function(){p.attr("disabled","disabled"),e.onConfirm()});l.append(ai1wm_locale.close_import),p.append(ai1wm_locale.confirm_import+" >"),a.append(l),a.append(p),i.append(c),s.append(i).append(r),o.append(s).append(a),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.diskSpaceConfirm=function(n){const o=t(""),s=t(""),i=t(""),r=t('').html(n.message),a=t(''),c=t(''),l=t('').on("click",function(){e.destroy()}),p=t('').on("click",function(){t(this).attr("disabled","disabled"),e.onDiskSpaceConfirm()});l.append(ai1wm_locale.close_import),p.append(ai1wm_locale.confirm_disk_space),a.append(l),a.append(p),i.append(c),s.append(i).append(r),o.append(s).append(a),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.blogs=function(n){const o=t("").on("submit",function(t){t.preventDefault(),l.attr("disabled","disabled"),e.onBlogs(o.serializeArray())}),s=t(""),i=t(""),r=t("").html(n.message),a=t(""),c=t("").addClass("ai1wm-title-grey").text(n.title),l=t('');l.append(ai1wm_locale.continue_import),a.append(l),i.append(c),s.append(i).append(r),o.append(s).append(a),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.info=function(n){const o=t(""),s=t(""),i=t(""),r=t("").html(n.message),a=t(""),c=t(''),l=t("").html(ai1wm_locale.please_do_not_close_this_browser),p=t('');p.append(l),a.append(p),i.append(c),s.append(i).append(r),o.append(s).append(a),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.done=function(n){const o=t(""),s=t(""),i=t(""),r=t('').html(n.message),a=t(''),c=t("").addClass("ai1wm-title-green").text(n.title),l=t('').on("click",function(){e.destroy()});l.append(ai1wm_locale.finish_import+" >"),a.append(l),i.append(c),s.append(i).append(r),o.append(s).append(a),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.backupIsEncrypted=function(n){const o=t(""),s=t(''),i=t("").html(ai1wm_locale.backup_encrypted),r=t('').html(ai1wm_locale.backup_encrypted_message),a=t(''),c=t(''),l=t('').prop("placeholder",ai1wm_locale.enter_password).on("keyup",function(){const e=t(this),n=t("#ai1wm-backup-decrypt-password-confirmation");e.val()!==n.val()?(n.parent().addClass("ai1wm-has-error"),e.parent().addClass("ai1wm-has-error")):(e.parent().removeClass("ai1wm-has-error"),n.parent().removeClass("ai1wm-has-error"))}),p=t('').on("click",function(){return t(this).toggleClass("ai1wm-icon-eye ai1wm-icon-eye-blocked"),t(this).prev().prop("type",function(e,t){return"text"===t?"password":"text"}),!1});if(c.append(l).append(p),n.error){c.addClass("ai1wm-has-error");const e=t('').html(n.error);c.append(e)}const u=t(''),d=t('').prop("placeholder",ai1wm_locale.repeat_password).on("keyup",function(){const e=t(this),n=t("#ai1wm-backup-decrypt-password");l.val()!==e.val()?(n.parent().addClass("ai1wm-has-error"),e.parent().addClass("ai1wm-has-error")):(n.parent().removeClass("ai1wm-has-error"),e.parent().removeClass("ai1wm-has-error"))}),h=t('').on("click",function(){return t(this).toggleClass("ai1wm-icon-eye ai1wm-icon-eye-blocked"),t(this).prev().prop("type",function(e,t){return"text"===t?"password":"text"}),!1}),f=t('').html(ai1wm_locale.passwords_do_not_match);u.append(d).append(h).append(f);const m=t('').on("click",function(){const n=t("#ai1wm-backup-decrypt-password"),o=t("#ai1wm-backup-decrypt-password-confirmation");n.val().length&&n.val()===o.val()?(m.attr("disabled","disabled"),e.onDecryptPassword(a.serializeArray())):(o.parent().addClass("ai1wm-has-error"),n.parent().addClass("ai1wm-has-error"))}),g=t('').on("click",function(){g.attr("disabled","disabled"),e.onStop()});m.append(ai1wm_locale.unlock),g.append(ai1wm_locale.close_import);const y=t('');y.append(g).append(m),a.append(c).append(u),s.append(i).append(r).append(a).append(y),o.append(s),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.serverCannotDecrypt=function(n){const o=t(""),s=t(""),i=t(""),r=t("").html(n.message),a=t(''),c=t(""),l=t('').on("click",function(){l.attr("disabled","disabled"),e.onStop()});l.append(ai1wm_locale.close_import),c.append(l),i.append(a),s.append(i).append(r),o.append(s).append(c),e.modal.html(o).show(),e.modal.trigger("focus"),e.overlay.show()},this.overlay=t(''),this.modal=t(''),t("body").append(this.overlay).append(this.modal)};n.prototype.render=function(e){switch(t(document).trigger("ai1wm-import-status",e),e.type){case"pro":this.pro(e);break;case"error":this.error(e);break;case"confirm":this.confirm(e);break;case"disk_space_confirm":this.diskSpaceConfirm(e);break;case"blogs":this.blogs(e);break;case"progress":this.progress(e);break;case"info":this.info(e);break;case"done":this.done(e);break;case"backup_is_encrypted":this.backupIsEncrypted(e);break;case"server_cannot_decrypt":this.serverCannotDecrypt(e)}},n.prototype.destroy=function(){this.modal.hide(),this.overlay.hide(),this.progress.progressBarMeter=null,this.progress.progressBarPercent=null},e.exports=n},213(e,t){var n,o;void 0===(o="function"==typeof(n=function(){"use strict";function t(e,t,n){var o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){r(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof globalThis&&globalThis.global===globalThis?globalThis:void 0,i=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),r=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(e,i,r){var a=s.URL||s.webkitURL,c=document.createElement("a");i=i||e.name||"download",c.download=i,c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?o(c):n(c.href)?t(e,i,r):o(c,c.target="_blank")):(c.href=a.createObjectURL(e),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){o(c)},0))}:"msSaveOrOpenBlob"in navigator?function(e,s,i){if(s=s||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,i),s);else if(n(e))t(e,s,i);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){o(r)})}}:function(e,n,o,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,o);var a="application/octet-stream"===e.type,c=/constructor/i.test(s.HTMLElement)||s.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&c||i)&&"undefined"!=typeof FileReader){var p=new FileReader;p.onloadend=function(){var e=p.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},p.readAsDataURL(e)}else{var u=s.URL||s.webkitURL,d=u.createObjectURL(e);r?r.location=d:location.href=d,r=null,setTimeout(function(){u.revokeObjectURL(d)},4e4)}});s.saveAs=r.saveAs=r,e.exports=r})?n.apply(t,[]):n)||(e.exports=o)},504(e){function t(){}t.prototype={on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var o=this;function s(){o.off(e,s),t.apply(n,arguments)}return s._=t,this.on(e,s,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,s=n.length;o