Loading
function(e,t,n){function l(e){let t=[],n=new Set;for(let l of e){let e="string"!=typeof l.type||""===l.type||"string"!=typeof l.label||""===l.label.trim()?null:l.configured?"authorize":"finish-setup";null==e||n.has(l.type)||(n.add(l.type),t.push({connection:l,offer:e}))}return t}function a(e,t){if(e.has(t))return null;let n=new Set(e);return n.add(t),n}function i(e,t){if(!e.has(t))return e;let n=new Set(e);return n.delete(t),n}n.d(t,{K9:()=>a,Q6:()=>i,Xl:()=>l,ls:()=>o,rG:()=>s,rq:()=>u}),n(321073);let r=new Set(["bad_request","bad_connection_type","unknown_project","not_declared","not_configured","not_deployed","child_error","child_malformed","child_unavailable"]);function s(e){return"string"==typeof e&&r.has(e)?e:null}function o(e,t){switch(t){case"not_configured":return"not_configured";case"not_deployed":return"not_deployed";case"not_declared":case"unknown_project":return"not_declared";case"child_error":case"child_malformed":case"child_unavailable":return"unavailable";case"bad_request":case"bad_connection_type":return"unknown"}return 404===e?"not_declared":e>=500?"unavailable":"unknown"}function u(e){return"not_configured"===e?"setup":"generic"}}