!function(){function e(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function r(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach((function(e){t(r,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}function t(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function n(e,r,t,n,o,u,i){try{var c=e[u](i),s=c.value}catch(a){return void t(a)}c.done?r(s):Promise.resolve(s).then(n,o)}System.register(["./index-legacy.b746a8e2.js","./vendor-legacy.046e8265.js"],(function(e,t){"use strict";var o,u,i,c,s,a,f,p,l,d;return{setters:[function(e){o=e._,u=e.l,i=e.g,c=e.d,s=e.R,a=e.m,f=e.a},function(e){p=e.q,l=e.s,d=e.x}],execute:function(){var b=c(function(){var e,r=(e=regeneratorRuntime.mark((function e(r){var t,n,o,u,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=Number(r.params.userId)){e.next=3;break}throw new s(a("user_edit.errors.NO_SUCH_USER"));case 3:return e.next=5,f.user.getUserMeta({userId:t});case 5:if(n=e.sent,o=n.requestError,u=n.response,!o){e.next=12;break}throw new s(o,{showRefresh:!0,showBack:!0});case 12:if(!u.error){e.next=14;break}throw new s(a("user_edit.errors.".concat(u.error)));case 14:return(i=r.originalUrl.split("/"))[1]="u",i[2]=u.meta.username,e.abrupt("return",d(i.join("/")));case 18:case"end":return e.stop()}}),e)})),function(){var r=this,t=arguments;return new Promise((function(o,u){var i=e.apply(r,t);function c(e){n(i,o,u,c,s,"next",e)}function s(e){n(i,o,u,c,s,"throw",e)}c(void 0)}))});return function(e){return r.apply(this,arguments)}}());e("default",{groups:p((function(){return o((function(){return t.import("./GroupsPage-legacy.aaf1f3e6.js")}),void 0)})),user:l({"/:userId":l(r(r({},u({edit:d((function(e){return"/user/".concat(e.params.userId,"/edit/profile")}))})),{},{"/edit/:type":b,"/":b}))}),u:l({"/:username":i((function(){return o((function(){return t.import("./UserPage-legacy.8946de38.js")}),void 0)}),"byUsername"),"/:username/edit/:type":p((function(){return o((function(){return t.import("./UserEditPage-legacy.e4814a7b.js").then((function(e){return e.U}))}),void 0)})),"/":p((function(){return o((function(){return t.import("./UsersPage-legacy.92039737.js")}),void 0)}))})})}}}))}();
