const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./overview-CFHOUNfH.js","./index-CCv_8omK.js","./index-DGkT7afN.css","./HelpOutline-DapRasSH.js","./status-DIqT0--1.js","./index-BiAAgnpw.js","./ErrorOutline-CUOja7My.js","./omit-BwCXmJ0x.js","./index-BojVbZw0.js","./index-BCEB7zAW.js","./blocklet-D2MB-zOx.js","./team-BV9bl_r7.js","./url-evaluation-B5iexDQo.js","./metric-BTKuNvY9.js","./spaces-Dif7Qa2a.js","./api-CWyPHkC_.js","./domains-vCwCURM3.js","./index-DkBdKcP-.js","./useAsync-DRXRxEMN.js","./permission-RtK6f5af.js","./actions-Dv4j7XcE.js","./delete-confirm-xUATcCih.js","./click-to-copy-D16LYOaz.js","./status-Dcx3B-gc.js","./VerifiedUser-B-ONuNVC.js","./CardContent-gyrk9EIw.js","./Add-l7OvfXrD.js","./CallMerge-DaaiIZ0e.js","./toLower-CL0ukT8_.js","./use-mobile-DyKd7giP.js","./util-CziUIk8v.js","./is-path-prefix-equal-RoIvuAJE.js","./engine-7ix2eBzw.js","./OpenInNew-CCi7ydva.js","./LoadingButton-D6uT1qbm.js","./index-CO0vAndr.js","./preference-C7Ge_XOi.js","./index-DvBW_mZc.js","./Done-BuJjZzMV.js","./collapse-DjVUQHBf.js","./edit.svg-B0aHUSZw.js","./ArrowDropDown-Br_oPfQI.js","./ButtonGroup-CMlvIctd.js","./getValidReactChildren-BQH98pcn.js","./index-CBrQ9aZ7.js","./iframe-DhbAf7eB.js","./ChevronRight-CV3PmYHH.js","./html-title-xzTyg8m0.js","./Autocomplete-Bme-ElpV.js","./ListSubheader-l4UAKUMT.js","./rotate-session-key-B6NXbgEc.js","./visuallyHidden-Dan1xhjv.js","./chain-l1zX37z1.js","./Switch-B-AVsYNw.js","./index-BsntE0No.js","./index.esm-Bsyk9Gld.js","./index-hu34K3US.js","./redux-DfszZyTl.js","./typeof-QjJsDpFa.js","./switch-control-BLvkR0UT.js","./index-4-FW3N_0.js","./FilterList-xUYmSJ-Y.js","./CSSTransition-Cf_KzaPo.js","./emotion-cache.browser.esm-CdT-VIlA.js","./depsEqual-BNz3Z5UN.js","./TableSearch-CAaRXXpO.js","./Search-3L2yy5pr.js","./Clear-Cz6Yzx0g.js","./MoreVert-BUlWqUnK.js","./use-mobile-DvM8SqYH.js","./simple-select-Dqs9YolY.js","./actions-DVOuh-Fv.js","./useLocalStorage-CbBU4OS9.js","./get-safe-url-B_yWzv49.js","./appearance-BoEskUU3.js","./config-navigation-D5cL0ut2.js","./cloneDeep-BOd1J0Sv.js","./_createAggregator-CqUOxBsA.js","./raf-schd.esm-rR8pKw9W.js","./ListItemButton-Cs40YHcx.js","./index-BZw-IddS.js","./KeyboardArrowDown-9mIUY7eq.js","./index-gqKcev8E.js","./index-COT6fHf0.js","./shorten-label-CvhqR616.js","./Refresh-CGgBW-me.js","./traffic-DrN7qkrg.js","./ChevronLeft-OivB2aTv.js","./index-DBii9-f-.js","./base-chart-AQkuFrPC.js","./index-CEPQQlo6.js","./AdapterDayjs-AIDIzsfb.js","./useThemeProps-CRd6upHX.js","./audit-logs-BjJ1_rVq.js","./index-CGtaecKe.js","./decode-DPztD6kB.js","./index-gnjjKJuC.css","./UnfoldMore-DcBVcc2h.js","./index-aZqjDrOh.js","./ua-parser-DP5omx3I.js","./index-DcXoiIcd.js","./Google-cG0hx3oK.js","./list-header-D-U957cP.js","./ToggleButtonGroup-uvIn6Jyh.js","./lock.svg-Dz9J-uBq.js","./index-BlnAC-LC.js","./ViewList-CvnWfuPG.js","./Verified-BpzZH8QJ.js","./DeleteOutline-DmEDUBgP.js","./index-g_RqxcM4.js","./sdk-BJ8ul4G_.js","./service-Cy6pWzv_.js","./table-icons-DHCKcouf.js","./Edit-HxzEBQ9h.js","./index-CPLXcmCK.js","./Link-DGt16osR.js","./item-CjFxs-Zt.js","./Launch-DITLracb.js","./item-G0iZE90Q.css","./index-Cacyj92F.js","./url-join-DGMfgD17.js","./connect-to-MJFTP0S_.js","./index-DRYJ0xIl.js","./agreement-ttzsGTtZ.js","./install-from-url-4VtQ9_35.js","./without-wallet-DcI5W8cf.js","./Stepper-D4Zig93k.js","./toUpper-CcZcHFDe.js","./log--2ZY9nHz.js","./download-O9kMYIC6.js","./runtime-CVAdQ8wh.js","./memory-r4Kexlry.js","./index-BI2RNyn2.js"])))=>i.map(i=>d[i]);
import{V as He,n as qe,bo as Ct,r as b,aH as F,j as d,X as Qe,K as Z,v as Ge,w as Tt,i as j,bD as jt,H as J,Y as Ke,bn as We,A as Pt,u as At,d as Dt,bE as Ot,bF as Lt,bG as Ae,bH as Bt,bI as Mt,Z as De,C as Oe,I as Rt,bJ as Nt,T as ue,J as Ft,bK as I,s as Vt}from"./index-CCv_8omK.js";import{T as zt,u as $t}from"./html-title-xzTyg8m0.js";import{B as Ut}from"./status-Dcx3B-gc.js";import{D as Ht,B as qt}from"./actions-DVOuh-Fv.js";import{u as Qt}from"./blocklet-D2MB-zOx.js";import{p as Gt}from"./index-yORTeDE5.js";import{B as Kt,a as Wt,T as Jt}from"./team-BV9bl_r7.js";import{P as Xt}from"./permission-RtK6f5af.js";import{B as Yt}from"./Breadcrumbs-Bf0qzrkp.js";import"./useLocalStorage-CbBU4OS9.js";import"./MoreVert-BUlWqUnK.js";import"./url-evaluation-B5iexDQo.js";import"./get-safe-url-B_yWzv49.js";import"./ButtonGroup-CMlvIctd.js";import"./getValidReactChildren-BQH98pcn.js";/**
* (c) Iconify
*
* For the full copyright and license information, please view the license.txt or license.gpl.txt
* files at https://github.com/iconify/iconify
*
* Licensed under MIT.
*
* @license MIT
* @version 3.1.1
*/const Je=Object.freeze({left:0,top:0,width:16,height:16}),ee=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),H=Object.freeze({...Je,...ee}),me=Object.freeze({...H,body:"",hidden:!1});function Zt(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Le(e,t){const n=Zt(e,t);for(const r in me)r in ee?r in e&&!(r in n)&&(n[r]=ee[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function en(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=r[i]&&r[i].parent,l=c&&s(c);l&&(o[i]=[c].concat(l))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function tn(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=Le(r[c]||o[c],s)}return i(t),n.forEach(i),Le(e,s)}function nn(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=en(e);for(const o in r){const s=r[o];s&&(t(o,tn(e,o,s)),n.push(o))}return n}const V=/^[a-z0-9]+(-[a-z0-9]+)*$/,R=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),l=o.pop(),a={provider:o.length>0?o[0]:r,prefix:l,name:c};return t&&!X(a)?null:a}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!X(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!X(c,n)?null:c}return null},X=(e,t)=>e?!!((e.provider===""||e.provider.match(V))&&(t&&e.prefix===""||e.prefix.match(V))&&e.name.match(V)):!1,on={provider:"",aliases:{},not_found:{},...Je};function fe(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function rn(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!fe(e,on))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(V)||typeof s.body!="string"||!fe(s,me))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(V)||typeof i!="string"||!n[i]&&!r[i]||!fe(s,me))return null}return t}const te=Object.create(null);function sn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function C(e,t){const n=te[e]||(te[e]=Object.create(null));return n[t]||(n[t]=sn(e,t))}function Ee(e,t){return rn(t)?nn(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function cn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function an(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(te)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(te[o]||{})).forEach(i=>{const c=C(o,i);n=n.concat(Object.keys(c.icons).map(l=>(o!==""?"@"+o+":":"")+i+":"+l))})}),n}let _e=!1;function ln(e){return _e}function q(e){const t=typeof e=="string"?R(e,!0,_e):e;if(t){const n=C(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function un(e,t){const n=R(e,!0,_e);if(!n)return!1;const r=C(n.provider,n.prefix);return cn(r,n.name,t)}function Xe(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!X({provider:t,prefix:n,name:"a"}))return!1;const r=C(t,n);return!!Ee(r,e)}function fn(e){return!!q(e)}function dn(e){const t=q(e);return t?{...H,...t}:null}const Ye=Object.freeze({width:null,height:null}),Ze=Object.freeze({...Ye,...ee}),pn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,mn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function he(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(pn);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=mn.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const hn=e=>e==="unset"||e==="undefined"||e==="none";function re(e,t){const n={...H,...e},r={...Ze,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(g=>{const y=[],E=g.hFlip,A=g.vFlip;let w=g.rotate;E?A?w+=2:(y.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),y.push("scale(-1 1)"),o.top=o.left=0):A&&(y.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),y.push("scale(1 -1)"),o.top=o.left=0);let S;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:S=o.height/2+o.top,y.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:y.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:S=o.width/2+o.left,y.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}w%2===1&&(o.left!==o.top&&(S=o.left,o.left=o.top,o.top=S),o.width!==o.height&&(S=o.width,o.width=o.height,o.height=S)),y.length&&(s='<g transform="'+y.join(" ")+'">'+s+"</g>")});const i=r.width,c=r.height,l=o.width,a=o.height;let u,p;i===null?(p=c===null?"1em":c==="auto"?a:c,u=he(p,l/a)):(u=i==="auto"?l:i,p=c===null?he(u,a/l):c==="auto"?a:c);const f={},h=(g,y)=>{hn(y)||(f[g]=y.toString())};return h("width",u),h("height",p),f.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+a.toString(),{attributes:f,body:s}}const gn=/\sid="(\S+)"/g,bn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let yn=0;function et(e,t=bn){const n=[];let r;for(;r=gn.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(yn++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const D={local:!0,session:!0},tt={local:new Set,session:new Set};let Ce=!1;function vn(e){Ce=e}const Be="iconify2",U="iconify",nt=U+"-count",Me=U+"-version",ot=36e5,xn=168;function ge(e,t){try{return e.getItem(t)}catch{}}function Te(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Re(e,t){try{e.removeItem(t)}catch{}}function be(e,t){return Te(e,nt,t.toString())}function ye(e){return parseInt(ge(e,nt))||0}let K=typeof window>"u"?{}:window;function rt(e){const t=e+"Storage";try{if(K&&K[t]&&typeof K[t].length=="number")return K[t]}catch{}D[e]=!1}function st(e,t){const n=rt(e);if(!n)return;const r=ge(n,Me);if(r!==Be){if(r){const c=ye(n);for(let l=0;l<c;l++)Re(n,U+l.toString())}Te(n,Me,Be),be(n,0);return}const o=Math.floor(Date.now()/ot)-xn,s=c=>{const l=U+c.toString(),a=ge(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Re(n,l)}};let i=ye(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,be(n,i)):tt[e].add(c))}function it(){if(!Ce){vn(!0);for(const e in D)st(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=C(r,o);if(!Ee(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function ct(e,t){switch(e){case"local":case"session":D[e]=t;break;case"all":for(const n in D)D[n]=t;break}}const ve=Object.create(null);function at(e,t){ve[e]=t}function xe(e){return ve[e]||ve[""]}function je(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const se=Object.create(null),N=["https://api.simplesvg.com","https://api.unisvg.com"],Y=[];for(;N.length>0;)N.length===1||Math.random()>.5?Y.push(N.shift()):Y.push(N.pop());se[""]=je({resources:["https://api.iconify.design"].concat(Y)});function lt(e,t){const n=je(t);return n===null?!1:(se[e]=n,!0)}function ie(e){return se[e]}function wn(){return Object.keys(se)}const Sn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ne=Sn();function In(e){ne=e}function kn(){return ne}function En(e,t){const n=ie(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function _n(e){return e===404}const Cn=(e,t,n)=>{const r=[],o=En(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=o&&a>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),r.push(i),r};function Tn(e){if(typeof e=="string"){const t=ie(e);if(t)return t.path}return"/"}const jn=(e,t,n)=>{if(!ne){n("abort",424);return}let r=Tn(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;ne(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(_n(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Pn={prepare:Cn,send:jn};function An(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,c=o.name,l=n[s]||(n[s]=Object.create(null)),a=l[i]||(l[i]=C(s,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const p={provider:s,prefix:i,name:c};u.push(p)}),t}function ut(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Dn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:r,prefix:o,name:a});else if(e.missing.has(a))i.missing.push({provider:r,prefix:o,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||ut([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let On=0;function Ln(e,t,n){const r=On++,o=ut.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function Bn(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?R(o,t,n):o;s&&r.push(s)}),r}var Mn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Rn(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let m=e.resources.slice(0);for(i=[];m.length>1;){const k=Math.floor(Math.random()*m.length);i.push(m[k]),m=m.slice(0,k).concat(m.slice(k+1))}i=i.concat(m)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let l="pending",a=0,u,p=null,f=[],h=[];typeof r=="function"&&h.push(r);function g(){p&&(clearTimeout(p),p=null)}function y(){l==="pending"&&(l="aborted"),g(),f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function E(m,k){k&&(h=[]),typeof m=="function"&&h.push(m)}function A(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:f.length,subscribe:E,abort:y}}function w(){l="failed",h.forEach(m=>{m(void 0,u)})}function S(){f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function L(m,k,_){const B=k!=="success";switch(f=f.filter(T=>T!==m),l){case"pending":break;case"failed":if(B||!e.dataAfterTimeout)return;break;default:return}if(k==="abort"){u=_,w();return}if(B){u=_,f.length||(i.length?v():w());return}if(g(),S(),!e.random){const T=e.resources.indexOf(m.resource);T!==-1&&T!==e.index&&(e.index=T)}l="completed",h.forEach(T=>{T(_)})}function v(){if(l!=="pending")return;g();const m=i.shift();if(m===void 0){if(f.length){p=setTimeout(()=>{g(),l==="pending"&&(S(),w())},e.timeout);return}w();return}const k={status:"pending",resource:m,callback:(_,B)=>{L(k,_,B)}};f.push(k),a++,p=setTimeout(v,e.rotate),n(m,t,k.callback)}return setTimeout(v),A}function ft(e){const t={...Mn,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,l,a){const u=Rn(t,c,l,(p,f)=>{r(),a&&a(p,f)});return n.push(u),u}function s(c){return n.find(l=>c(l))||null}return{query:o,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function Ne(){}const de=Object.create(null);function Nn(e){if(!de[e]){const t=ie(e);if(!t)return;const n=ft(t),r={config:t,redundancy:n};de[e]=r}return de[e]}function dt(e,t,n){let r,o;if(typeof e=="string"){const s=xe(e);if(!s)return n(void 0,424),Ne;o=s.send;const i=Nn(e);i&&(r=i.redundancy)}else{const s=je(e);if(s){r=ft(s);const i=e.resources?e.resources[0]:"",c=xe(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),Ne):r.query(t,o,n)().abort}function Fn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in D)st(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Vn(e,t){Ce||it();function n(r){let o;if(!D[r]||!(o=rt(r)))return;const s=tt[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ye(o),!be(o,i+1))return;const c={cached:Math.floor(Date.now()/ot),provider:e.provider,data:t};return Te(o,U+i.toString(),JSON.stringify(c))}t.lastModified&&!Fn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Fe(){}function zn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Dn(e)}))}function $n(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=xe(n)))return;s.prepare(n,r,o).forEach(c=>{dt(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=Ee(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(p=>{u.delete(p)}),Vn(e,l)}catch(a){console.error(a)}zn(e)})})}))}const Un=e=>{const n=C(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Pe=(e,t)=>{const n=Bn(e,!0,ln()),r=An(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Fe)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,s.push(C(a,u));const p=o[a]||(o[a]=Object.create(null));p[u]||(p[u]=[])}),r.pending.forEach(l=>{const{provider:a,prefix:u,name:p}=l,f=C(a,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(p)||(h.add(p),o[a][u].push(p))}),s.forEach(l=>{const{provider:a,prefix:u}=l;o[a][u].length&&$n(l,o[a][u])}),t?Ln(t,r,s):Fe},Hn=e=>new Promise((t,n)=>{const r=typeof e=="string"?R(e,!0):e;if(!r){n(e);return}Pe([r||e],o=>{if(o.length&&r){const s=q(r);if(s){t({...H,...s});return}}n(e)})});function pt(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in Ye?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const ce={...Ze,inline:!1},pe="iconify",we="iconify-inline",P="iconifyData"+Date.now();let O=[];function Q(e){for(let t=0;t<O.length;t++){const n=O[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function mt(e,t=!1){let n=Q(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},O.push(n),n)}function qn(){if(document.documentElement)return mt(document.documentElement);O.push({node:()=>document.documentElement})}function Qn(e){O=O.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function G(){return O}function Gn(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let z=null;const Kn={childList:!0,subtree:!0,attributes:!0};function ht(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,z&&z(e)}))}function Wn(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const o=t[r];if(o.addedNodes&&o.addedNodes.length>0||o.type==="attributes"&&o.target[P]!==void 0){n.paused||ht(e);return}}}function gt(e,t){e.observer.instance.observe(t,Kn)}function oe(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(Wn.bind(null,e)),gt(e,n),t.paused||ht(e))}function Ve(){G().forEach(oe)}function bt(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function Jn(e){const t=z!==null;if(z!==e&&(z=e,t&&G().forEach(bt)),t){Ve();return}Gn(Ve)}function Se(e){(e?[e]:G()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function Xn(e){if(e){const t=Q(e);t&&Se(t)}else Se()}function Ie(e){(e?[e]:G()).forEach(t=>{if(!t.observer){oe(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?gt(t,r):oe(t);else return}})}function Yn(e){if(e){const t=Q(e);t&&Ie(t)}else Ie()}function yt(e,t=!1){const n=mt(e,t);return oe(n),n}function vt(e){const t=Q(e);t&&(bt(t),Qn(e))}function Zn(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in ce)if(n[o]!==r[o])return!0;return!1}function eo(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const to=/[\s,]+/;function no(e,t){t.split(to).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const oo=["width","height"],ro=["inline","hFlip","vFlip"];function so(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function io(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&R(t,!0);if(!n)return null;const r={...ce,inline:e.classList&&e.classList.contains(we)};oo.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(r[c]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=eo(o));const s=e.getAttribute("data-flip");typeof s=="string"&&no(r,s),ro.forEach(c=>{const l="data-"+c,a=so(e.getAttribute(l),l);typeof a=="boolean"&&(r[c]=a)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:i}}const co="svg."+pe+", i."+pe+", span."+pe+", i."+we+", span."+we;function ao(e){const t=[];return e.querySelectorAll(co).forEach(n=>{const r=n[P]||n.tagName.toLowerCase()!=="svg"?io(n):null;r&&t.push({node:n,props:r})}),t}function xt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let $;function lo(){try{$=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{$=null}}function uo(e){return $===void 0&&lo(),$?$.createHTML(e):e}function wt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function St(e,t,n,r){const o=e.classList;if(r){const i=r.classList;Array.from(i).forEach(c=>{o.add(c)})}const s=[];return t.forEach(i=>{o.contains(i)?n.has(i)&&s.push(i):(o.add(i),s.push(i))}),n.forEach(i=>{t.has(i)||o.remove(i)}),s}function It(e,t,n){const r=e.style;(n||[]).forEach(s=>{r.removeProperty(s)});const o=[];for(const s in t)r.getPropertyValue(s)||(o.push(s),r.setProperty(s,t[s]));return o}function kt(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,s=re(n,o),i=e[P],c=xt(et(s.body),{"aria-hidden":"true",role:"img",...s.attributes});r.innerHTML=uo(c);const l=r.childNodes[0],a=e.attributes;for(let g=0;g<a.length;g++){const y=a.item(g),E=y.name;E!=="class"&&!l.hasAttribute(E)&&l.setAttribute(E,y.value)}const u=wt(t.icon),p=St(l,u,new Set(i&&i.addedClasses),e),f=It(l,o.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),h={...t,status:"loaded",addedClasses:p,addedStyles:f};return l[P]=h,e.parentNode&&e.parentNode.replaceChild(l,e),l}function fo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function po(e){return"data:image/svg+xml,"+fo(e)}function mo(e){return'url("'+po(e)+'")'}const ho={display:"inline-block"},ke={"background-color":"currentColor"},Et={"background-color":"transparent"},ze={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},$e={"-webkit-mask":ke,mask:ke,background:Et};for(const e in $e){const t=$e[e];for(const n in ze)t[e+"-"+n]=ze[n]}function Ue(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function go(e,t,n,r){const o=t.customisations,s=re(n,o),i=s.attributes,c=e[P],l=xt(s.body,{...i,width:n.width+"",height:n.height+""}),a=wt(t.icon),u=St(e,a,new Set(c&&c.addedClasses)),f={"--svg":mo(l),width:Ue(i.width),height:Ue(i.height),...ho,...r?ke:Et};o.inline&&(f["vertical-align"]="-0.125em");const h=It(e,f,c&&c.addedStyles),g={...t,status:"loaded",addedClasses:u,addedStyles:h};return e[P]=g,e}let W=!1;function bo(){W||(W=!0,setTimeout(()=>{W&&(W=!1,M())}))}function M(e,t=!1){const n=Object.create(null);function r(o,s){const{provider:i,prefix:c,name:l}=o,a=C(i,c),u=a.icons[l];if(u)return{status:"loaded",icon:u};if(a.missing.has(l))return{status:"missing"};if(s&&!Un(o)){const p=n[i]||(n[i]=Object.create(null));(p[c]||(p[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:G()).forEach(o=>{const s=typeof o.node=="function"?o.node():o.node;if(!s||!s.querySelectorAll)return;let i=!1,c=!1;function l(a,u,p){if(c||(c=!0,Se(o)),a.tagName.toUpperCase()!=="SVG"){const f=u.mode,h=f==="mask"||(f==="bg"?!1:f==="style"?p.body.indexOf("currentColor")!==-1:null);if(typeof h=="boolean"){go(a,u,{...H,...p},h);return}}kt(a,u,p)}ao(s).forEach(({node:a,props:u})=>{const p=a[P];if(!p){const{status:h,icon:g}=r(u.icon,!0);if(g){l(a,u,g);return}i=i||h==="loading",a[P]={...u,status:h};return}let f;if(Zn(p,u)){if(f=r(u.icon,p.name!==u.name),!f.icon){i=i||f.status==="loading",Object.assign(p,{...u,status:f.status});return}}else{if(p.status!=="loading")return;if(f=r(u.icon,!1),!f.icon){p.status=f.status;return}}l(a,u,f.icon)}),o.temporary&&!i?vt(s):t&&i?yt(s,!0):c&&o.observer&&Ie(o)});for(const o in n){const s=n[o];for(const i in s){const c=s[i];Pe(Array.from(c).map(l=>({provider:o,prefix:i,name:l})),bo)}}}function yo(e){const t=Q(e);t?M(t):M({node:e,temporary:!0},!0)}function _t(e,t,n=!1){const r=q(e);if(!r)return null;const o=R(e),s=pt(ce,t||{}),i=kt(document.createElement("span"),{name:e,icon:o,customisations:s},r);return n?i.outerHTML:i}function vo(){return"3.1.1"}function xo(e,t){return _t(e,t,!1)}function wo(e,t){return _t(e,t,!0)}function So(e,t){const n=q(e);if(!n)return null;const r=pt(ce,t||{});return re(n,r)}function Io(e){e?yo(e):M()}if(typeof document<"u"&&typeof window<"u"){qn();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Xe(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Jn(M),M()})}function ko(e,t){ct(e,t!==!1)}function Eo(e){ct(e,!0)}at("",Pn);if(typeof document<"u"&&typeof window<"u"){it();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;lt(n,o)||console.error(r)}catch{console.error(r)}}}}const _o={getAPIConfig:ie,setAPIModule:at,sendAPIQuery:dt,setFetch:In,getFetch:kn,listAPIProviders:wn},Co={_api:_o,addAPIProvider:lt,loadIcons:Pe,loadIcon:Hn,iconExists:fn,getIcon:dn,listIcons:an,addIcon:un,addCollection:Xe,replaceIDs:et,calculateSize:he,buildIcon:re,getVersion:vo,renderSVG:xo,renderHTML:wo,renderIcon:So,scan:Io,observe:yt,stopObserving:vt,pauseObserver:Xn,resumeObserver:Yn,enableCache:ko,disableCache:Eo};try{self.Iconify===void 0&&(self.Iconify=Co)}catch{}const To=e=>{const t={};let n=null;return j.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=j.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},jo=(e,t,n)=>{const{hostname:r,href:o}=e;if(!t)return o;if(n){const i=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!i)return o;const c=i[0],a=((t.site?.domainAliases||[]).map(u=>u.value).filter(Boolean).find(u=>u.endsWith(F.DEFAULT_DID_DOMAIN))||"").replace(`.${F.DEFAULT_DID_DOMAIN}`,"");return a?o.replace(r,`${a}-${c}.${F.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function Po(){const{t:e}=He(),{api:t}=qe(),{blocklet:n}=Qt(),{inService:r}=Ct(),[o,s]=b.useState(!1),[i,c]=b.useState(5),l=n&&n.structVersion!==F.APP_STRUCT_VERSION,a=()=>{try{if(j.isBlockletRunning(n)){J.error(e("blocklet.migrate.tip.running"));return}const f=To(n);if(f){J.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}s(!0)}catch(f){J.error(Ke(f))}},u=()=>{const f=jo(window.location,n,r);setTimeout(()=>{window.location.href=f},5e3),c(5),setInterval(()=>{c(h=>h-1)},1e3)},p=()=>s(!1);return[l&&d.jsxs(Qe,{severity:"warning",style:{margin:"12px 0"},children:[d.jsxs(Z,{sx:{display:"flex",alignItems:"center"},children:[d.jsx(Ge,{variant:"contained",size:"small",color:"primary",onClick:()=>a(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),d.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>d.jsx(Z,{sx:{display:"flex",alignItems:"center"},children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&d.jsx(Tt,{popup:!0,open:o,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:u,extraParams:{appDid:n.appDid,did:n.meta.did,wt:jt(n,!0),title:j.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:i>=0?e("blocklet.migrate.success",{sec:i}):"Redirecting..."},onClose:p},"connect")]}const Ao=b.lazy(()=>I(()=>import("./overview-CFHOUNfH.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url)),Do=b.lazy(()=>I(()=>import("./domains-vCwCURM3.js"),__vite__mapDeps([16,1,2,17,18,10,19,12,20,21,22,23,24,25,26,27,28,29,9,30,31,32,33,34,5]),import.meta.url)),Oo=b.lazy(()=>I(()=>import("./index-CO0vAndr.js"),__vite__mapDeps([35,1,2,36,7,37,38,39,40,41,42,43,44,45,46,47,19,5,48,49,50,51,10,22,11,12,9,52,4,6,53,54,55,17,56,57,58,59,26,60,61,62,63,64,65,66,67,68,69,70,71,72,73,25]),import.meta.url)),Lo=b.lazy(()=>I(()=>import("./appearance-BoEskUU3.js"),__vite__mapDeps([74,1,2,10,69]),import.meta.url)),Bo=b.lazy(()=>I(()=>import("./config-navigation-D5cL0ut2.js"),__vite__mapDeps([75,1,2,7,76,37,77,64,10,56,57,58,78,11,12,71,72,68,73,42,43,19,55,70,47,67,41,15,48,49,79,29,80,81,66,26,33,82,45,34]),import.meta.url)),Mo=b.lazy(()=>I(()=>import("./index-COT6fHf0.js"),__vite__mapDeps([83,1,2,60,61,62,63,56,57,58,64,17,65,66,67,68,71,72,12,73,42,43,19,54,47,55,39,10,53,84,9,85,86,45,87,46,88,89,90,91,92,51,69]),import.meta.url)),Ro=b.lazy(()=>I(()=>import("./audit-logs-BjJ1_rVq.js"),__vite__mapDeps([93,17,1,2,65,66,67,72,94,95,96,97,84,11,10,12]),import.meta.url)),No=b.lazy(()=>I(()=>import("./index-aZqjDrOh.js").then(e=>e.i),__vite__mapDeps([98,1,2,60,61,62,63,56,57,58,64,17,65,66,67,68,47,11,10,12,99,69,100,42,43,19,101,76,26,40,102,52,103,104]),import.meta.url)),Fo=b.lazy(()=>I(()=>import("./index-BlnAC-LC.js").then(e=>e.i),__vite__mapDeps([105,1,2,26,106,60,61,62,63,56,57,58,64,17,65,66,67,68,100,42,43,11,10,12,55,101,76,48,49,97,19,22,91,92,51,47,9,107,108,6,109,110,80,69,20,84,99]),import.meta.url)),Vo=b.lazy(()=>I(()=>import("./service-Cy6pWzv_.js"),__vite__mapDeps([111,1,2,112,61,62,63,88,58,78,57,92,47,26,12,67,113,46,87,66,41]),import.meta.url)),zo=b.lazy(()=>I(()=>import("./index-CPLXcmCK.js"),__vite__mapDeps([114,1,2,17,71,72,68,12,73,42,43,19,59,53,10,113,112,61,62,63,88,58,78,57,92,47,26,67,46,87,66,41,36,7,37,38,39,40,44,45,22,100,115,116,80,81,48,49,107,24,117,108,21,118,119,120,32,121,8,14,15,33,122,3,123,94,95,96,101,76,124,23,125,9,79,126,30,31,69,6,104,20,127,11]),import.meta.url)),$o=b.lazy(()=>I(()=>import("./log--2ZY9nHz.js"),__vite__mapDeps([128,1,2,72,129,42,43,49]),import.meta.url)),Uo=b.lazy(()=>I(()=>import("./runtime-CVAdQ8wh.js"),__vite__mapDeps([130,1,2,60,61,62,63,56,57,58,64,17,65,66,67,68,10,122,131,89,90,23,103,43]),import.meta.url)),Ho=b.lazy(()=>I(()=>import("./traffic-DrN7qkrg.js").then(e=>e.t),__vite__mapDeps([86,1,2,45,87,46,88,58,89,90,91,92,62,51]),import.meta.url)),qo=b.lazy(()=>I(()=>import("./index-BI2RNyn2.js"),__vite__mapDeps([132,1,2,47,10,69,121,100,42,43,8,14,15,108,33,122,3,9,90,60,61,62,63,56,57,58,64,17,65,66,67,68,71,72,12,73,19,59,53,102]),import.meta.url)),Qo=({children:e})=>e;function Go(){const e=Pt(),{tab:t="overview"}=We(),{did:n,blocklet:r,error:o,client:s,actions:{setBlocklet:i,refreshBlocklet:c}}=Wt(),{refresh:l}=At(),{t:a}=He(),{session:u}=qe(),{data:p}=Dt(),f=Ot(()=>u.user?.role&&Lt.includes(u.user.role),[u]),h=b.useCallback(()=>d.jsx(Ro,{scope:n,blocklets:p}),[n,p]),g=b.useCallback(()=>f?d.jsx(Mo,{blocklet:r}):d.jsx(Gt,{status:403}),[r,f]),y=r?.environments.find(x=>x.key==="BLOCKLET_APP_URL")?.value||window.location.origin,E=x=>Mt(x,y),A=x=>{e(`/blocklets/${n}/${x}`)},w=x=>{x&&i(x),c()},S=!r||Ae(r.status)?[]:j.getAppMissingConfigs(r);let L=null;const v=[{label:a("common.overview"),value:"overview"},{breadcrumbsLabel:a("common.components"),label:d.jsx(Bt,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!S.length,children:a("common.components")}),value:"components"}];if(o)L=d.jsxs(d.Fragment,{children:[d.jsx(Qe,{severity:"error",children:Ke(o)}),d.jsx(Ge,{onClick:()=>c(),children:d.jsx("span",{style:{textDecoration:"underline"},children:a("common.retry")})})]});else if(r){const x={overview:d.jsx(Ao,{}),domains:d.jsx(Do,{}),configuration:Oo,appearance:Lo,navigation:Bo,services:Vo,members:d.jsx(Fo,{type:"blocklet",createPassportSvg:E}),passports:No,components:zo,"audit-logs":h,notifications:g,logs:$o,runtime:d.jsx(Uo,{}),traffic:d.jsx(Ho,{client:s,did:n}),didSpaces:d.jsx(qo,{})};t==="configuration"&&Ae(r.status)&&A("overview"),v.push({label:a("common.domains"),value:"domains"}),v.push({label:a("common.members"),value:"members"}),v.push({label:a("team.member.passports"),value:"passports"}),v.push({label:a("common.configuration"),value:"configuration"}),v.push({label:a("common.appearance"),value:"appearance"}),v.push({label:a("common.auditLogs"),value:"audit-logs"}),f&&v.push({label:a("common.notificationRecords"),value:"notifications"}),r&&r.children?.length&&r.structVersion===F.APP_STRUCT_VERSION&&v.push({label:a("common.logs"),value:"logs"}),v.push({label:a("common.configNavigation"),value:"navigation"}),v.push({label:a("common.runtime"),value:"runtime"}),v.push({label:a("common.traffic"),value:"traffic"}),v.push({label:a("storage.spaces.title"),value:"didSpaces"}),j.getBlockletServices(r).length&&v.splice(2,0,{label:a("blocklet.services"),value:"services"});const le=x[t]||x.overview;L=d.jsxs(Ht,{type:"components",children:[!j.isExternalBlocklet(r)&&d.jsx(zt,{tabs:v,current:t,onChange:A,scrollButtons:"auto"}),d.jsx("div",{className:"page-content",children:d.jsx(b.Suspense,{fallback:d.jsx(De,{relative:"parent",children:d.jsx(Oe,{})}),children:b.isValidElement(le)?le:d.jsx(le,{blocklet:r,onUpdate:w,createPassportSvg:E})})})]})}else L=d.jsx(De,{relative:"parent",children:d.jsx(Oe,{})});const m=()=>{},k=({action:x,error:ae})=>{if(ae){J.error(ae.message);return}x==="remove"?(l(),e("/blocklets")):c()},_=v.find(x=>x.value===t),B=r?Jt:Qo,T=$t(_,r?.meta?.title||a("common.blocklets"));return d.jsxs(B,{teamDid:n,children:[T,d.jsxs(Ko,{children:[d.jsxs(Yt,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[d.jsx(Rt,{color:"textSecondary",to:"/blocklets",children:a("common.blocklets")}),d.jsx(Nt,{to:`/blocklets/${n}/overview`,style:x=>x?{color:"inherit"}:{},children:a("common.detail")}),d.jsx(ue,{color:"textSecondary",children:_?_.breadcrumbsLabel||_.label:""})]}),d.jsxs(ue,{component:"div",className:"page-header",children:[d.jsxs(ue,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[r?d.jsx(Ft,{blocklet:r,style:{marginRight:16}}):null,r?d.jsxs(Z,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1},children:[d.jsx(Z,{children:j.getDisplayName(r)}),r?.status!=="unknown"&&d.jsx(Ut,{size:"12px",status:r.status,source:r.source,progress:r.progress})]}):`${a("common.blocklet")} ${a("common.detail")}`]}),d.jsx(Xt,{permission:"mutate_blocklets",children:!!r&&!j.isExternalBlocklet(r)&&d.jsx(qt,{className:"page-actions",blocklet:r,onStart:m,onComplete:k,variant:"group"})})]}),d.jsx(Po,{}),L]})]})}function ur(){const{did:e}=We();return e?d.jsx(Kt,{did:e,children:d.jsx(Go,{})}):null}const Ko=Vt.main`
  .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .page-title {
    display: flex;
    align-items: center;

    .page-link {
      font-size: 15px;
      margin-top: 8px;
      margin-left: 8px;
    }
  }

  .page-content {
    margin-top: 16px;
  }

  @media (max-width: ${e=>e.theme.breakpoints.values.md}px) {
    .page-header {
      flex-direction: column;
      align-items: flex-start;
      .page-actions,
      .MuiButtonGroup-root {
        width: 100%;
      }
      .MuiButtonGroup-root {
        .MuiButtonBase-root {
          flex: 1;
        }
        .blocklet-action-text {
          display: none;
        }
      }
    }

    .page-title {
      margin-bottom: 15px;
    }
  }
`;export{ur as default};
