unleash-server 5.0.0 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/db/context-field-store.js +10 -3
- package/dist/lib/db/context-field-store.js.map +1 -1
- package/dist/lib/error/api-error.d.ts +11 -3
- package/dist/lib/error/api-error.js +8 -1
- package/dist/lib/error/api-error.js.map +1 -1
- package/dist/lib/error/api-error.test.js +11 -0
- package/dist/lib/error/api-error.test.js.map +1 -1
- package/dist/lib/routes/admin-api/event.js +12 -0
- package/dist/lib/routes/admin-api/event.js.map +1 -1
- package/dist/lib/routes/admin-api/events.test.js +22 -0
- package/dist/lib/routes/admin-api/events.test.js.map +1 -1
- package/dist/lib/routes/admin-api/project/project-archive.js +0 -10
- package/dist/lib/routes/admin-api/project/project-archive.js.map +1 -1
- package/dist/lib/routes/admin-api/project/project-features.js +0 -4
- package/dist/lib/routes/admin-api/project/project-features.js.map +1 -1
- package/dist/lib/routes/admin-api/tag.js +0 -4
- package/dist/lib/routes/admin-api/tag.js.map +1 -1
- package/dist/lib/types/experimental.d.ts +0 -1
- package/dist/lib/types/experimental.js +0 -1
- package/dist/lib/types/experimental.js.map +1 -1
- package/dist/server-dev.js +0 -1
- package/dist/server-dev.js.map +1 -1
- package/dist/test/e2e/api/admin/feature-archive.e2e.test.js +0 -1
- package/dist/test/e2e/api/admin/feature-archive.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/project/features.e2e.test.js +0 -1
- package/dist/test/e2e/api/admin/project/features.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/tags.e2e.test.js +0 -1
- package/dist/test/e2e/api/admin/tags.e2e.test.js.map +1 -1
- package/frontend/build/index.html +1 -1
- package/frontend/build/static/{CreateProject-3068c6cc.js → CreateProject-ecbf28c7.js} +1 -1
- package/frontend/build/static/{Error-5126b473.js → Error-0161926e.js} +1 -1
- package/frontend/build/static/{FeatureArchiveDialog-942cfb36.js → FeatureArchiveDialog-8ba2065f.js} +1 -1
- package/frontend/build/static/{FeatureMetricsChart-8ece013b.js → FeatureMetricsChart-82dc2cca.js} +1 -1
- package/frontend/build/static/{FeatureViewLazyExport-35333d0a.js → FeatureViewLazyExport-1a3192eb.js} +2 -2
- package/frontend/build/static/{LazyAdminExport-f326ef75.js → LazyAdminExport-b4a3d4f0.js} +2 -2
- package/frontend/build/static/{LazyProjectExport-677103b2.js → LazyProjectExport-23ec9168.js} +7 -7
- package/frontend/build/static/{NetworkOverview-2b96614f.js → NetworkOverview-96260e93.js} +1 -1
- package/frontend/build/static/{NetworkTraffic-f41f3193.js → NetworkTraffic-0e7e6d26.js} +1 -1
- package/frontend/build/static/{Playground-ea21e876.js → Playground-325b0d90.js} +1 -1
- package/frontend/build/static/{StrategyItemContainer-89b76888.js → StrategyItemContainer-af870d19.js} +1 -1
- package/frontend/build/static/{chartjs-adapter-date-fns.esm-c4ad9167.js → chartjs-adapter-date-fns.esm-f9aa93ea.js} +1 -1
- package/frontend/build/static/{index-e40263f5.js → index-2a2ab5f7.js} +37 -37
- package/frontend/build/static/{index-53da3ab8.js → index-9d101e00.js} +1 -1
- package/frontend/build/static/{index-8187b023.js → index-a0912377.js} +1 -1
- package/frontend/build/static/{unknownify-02b43b97.js → unknownify-cbe206ad.js} +1 -1
- package/frontend/build/static/{useProjectRole-7a147557.js → useProjectRole-c87a3043.js} +1 -1
- package/package.json +1 -1
package/frontend/build/static/{LazyProjectExport-677103b2.js → LazyProjectExport-23ec9168.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import{c as q1,j as n,cA as tn,cB as nn,s as h,cm as an,cj as Ke,g as nt,r as u,dM as rn,l as i1,d as r1,f as l,S as at,h as rt,i as ot,k as it,bV as on,aX as Ae,A as U1,aO as se,aP as G1,aQ as K1,dN as B3,aF as Y,dO as k1,bO as S1,a2 as u1,cd as D1,ar as st,H as p1,dP as sn,R as Se,cH as r2,bF as o2,dQ as A1,al as s1,V as w1,ak as d1,C as x,aL as E1,X as ce,W as y1,ch as cn,K as ct,dR as ln,a as A,dS as O1,dT as dn,bG as un,dU as Ee,dV as ke,dW as De,b7 as J1,m as z1,dX as pn,P as lt,di as dt,dY as ee,cn as i2,a8 as W1,dZ as Rt,bb as te,dC as hn,bd as ne,T as j,cp as V3,aK as ut,af as M3,c4 as s2,u as h1,N as g1,d_ as mn,F as G,d$ as L3,ap as R1,a9 as v1,e0 as gn,dh as fn,a4 as f1,bJ as vn,bH as c2,cq as yn,e1 as H3,df as W3,bw as bn,ao as $1,L as l2,aS as pt,e2 as Cn,bE as _n,ck as xn,e3 as wn,e4 as Sn,e5 as Tn,e6 as N3,e7 as q3,O as U3,e8 as An,c9 as ht,Q as mt,cT as En,ci as kn,bM as G3,Y as gt,e9 as Dn,D as Rn,aN as Fn,ce as Zn,M as K3,ea as Pn,ah as B1,eb as J3,ag as Y3,ec as Q3,ai as In,ed as jn,ee as On,aR as X3,ef as d2,a1 as zn,eg as e0,eh as $n,ei as Bn,ej as Vn,ek as Mn,bB as t0,el as n0,em as a0,e as Re,U as ft,en as Ln,eo as Hn,aH as Wn,bl as Nn,ep as vt,eq as qn,er as r0,es as Un,ay as le,az as Y1,aI as F1,aA as de,aD as ue,aE as pe,et as Gn,ca as we,bL as o0,eu as i0,ev as Kn,bk as he,an as s0,a_ as u2,aZ as p2,aW as h2,ew as Jn,ex as Yn,ey as Qn,ez as Xn,eA as ea,eB as ta,eC as na,dx as c0,c8 as aa,db as Je,eD as ra,cr as m2,eE as yt,bR as ae,aJ as N1,aM as g2,aV as f2,d3 as v2,ax as j1,as as l0,eF as oa,ad as z2,eG as ia,d0 as Ve,ac as Kt,eH as sa,eI as ca,d1 as la,d2 as da,eJ as ua,eK as pa,eL as ha,bP as Fe,bQ as n1,eM as ma,c7 as d0,eN as u0,Z as y2,au as ga,eO as fa,cL as va,eP as ya,eQ as ba,eR as Ca,cl as p0,eS as _a,cZ as h0,eT as re,eU as J,eV as xa,eW as wa,eX as Sa,eY as Ta,eZ as Aa,d6 as Ea,e_ as ka,e$ as Da,f0 as Ra,f1 as Fa}from"./index-e40263f5.js";import{A as Za,g as m0,W as $2,d as Pa,c as g0,T as Ia,e as ja,u as Oa,E as za,V as $a,b as Ba,h as Va,C as Ma,a as La,i as B2,R as V2,D as Ha,j as Wa}from"./FeatureArchiveDialog-942cfb36.js";import{a as Na}from"./index-53da3ab8.js";import{m as qa,h as Ua,b as Ga,c as Ka,d as Ja,e as Ya,E as Qa,f as Xa,u as er,a as tr,R as nr,C as ar,A as rr,B as f0}from"./useProjectRole-7a147557.js";import{E as or}from"./Error-5126b473.js";const ir=q1(n("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),sr=q1(n("path",{d:"M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"}),"CallMade"),cr=q1(n("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}),"FileDownload"),lr=q1(n("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}),"FileUpload"),dr=q1(n("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7 13.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm5 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm5 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"}),"Pending"),ur=q1(n("path",{d:"M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),pr=q1(n("path",{d:"M19 9h-2v6.59L5.41 4 4 5.41 15.59 17H9v2h10V9z"}),"SouthEast");function hr(e,t){tn(2,arguments);var a=nn(t);return Na(e,-a)}const M2=h("div")(()=>({display:"flex"})),mr=h("div")(()=>({display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"}));h("div")(()=>({display:"flex",flexDirection:"column"}));const gr=h("span")(({theme:e})=>({fontSize:e.typography.h1.fontSize,textOverflow:"ellipsis",whiteSpace:"nowrap"})),fr=h("span")(({theme:e})=>({fontSize:e.fontSizes.smallBody,fontWeight:"normal"}));h(fr)(({theme:e})=>({color:e.palette.neutral.dark}));const vr=h(an)(({theme:e})=>({marginLeft:e.spacing(-1.5)})),yr=h("div")(({theme:e})=>({backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadiusLarge,marginBottom:e.spacing(2)})),br=h("div")(({theme:e})=>({padding:e.spacing(2.5,5),display:"flex",flexDirection:"column",alignItems:"start"})),Cr=h("span")(({theme:e})=>({margin:0,width:"100%",fontSize:e.fontSizes.mainHeader,fontWeight:"bold",display:"flex",justifyContent:"space-between",alignItems:"center",gap:e.spacing(2)})),_r=h("div")(({theme:e})=>({width:"100%",backgroundColor:e.palette.divider,height:"1px"})),xr=h("div")(({theme:e})=>({padding:e.spacing(0,4)})),wr=h(Ke)(({theme:e})=>({textTransform:"none",fontSize:e.fontSizes.bodySize,flexGrow:1,flexBasis:0,[e.breakpoints.down("md")]:{paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},[e.breakpoints.up("md")]:{minWidth:160}})),Sr=e=>e.reduce((t,a)=>a.enabled?t+1:t,0),Tr=h(nt)(({theme:e})=>({marginTop:e.spacing(3)})),Ar=h("p",{shouldForwardProp:e=>e!=="warning"})(({theme:e,warning:t})=>({color:t?e.palette.error.dark:e.palette.text.primary,textAlign:"center"})),Er=({environment:e,warnEnabledToggles:t})=>{const a=u.useMemo(()=>[{id:"Icon",width:"1%",Cell:({row:{original:d}})=>n(rn,{environment:d})},{Header:"Name",accessor:"name",Cell:i1},{Header:"Type",accessor:"type",Cell:i1},{Header:"Toggles enabled",accessor:"projectEnabledToggleCount",Cell:({value:d})=>n(i1,{children:n(Ar,{warning:d>0,children:d===1?"1 toggle":`${d} toggles`})}),align:"center"}],[t]),{getTableProps:r,getTableBodyProps:o,headerGroups:i,rows:s,prepareRow:c}=r1.useTable({columns:a,data:[e],disableSortBy:!0});return l(Tr,{...r(),rowHeight:"compact",children:[n(at,{headerGroups:i}),n(rt,{...o(),children:s.map(d=>(c(d),n(ot,{hover:!0,...d.getRowProps(),children:d.cells.map(p=>n(it,{...p.getCellProps(),children:p.render("Cell")}))})))})]})},kr=h("p")(({theme:e})=>({marginTop:e.spacing(3),marginBottom:e.spacing(1.5)})),Dr=h(on)(()=>({width:"100%"})),Rr=({environment:e,open:t,setOpen:a,onConfirm:r})=>{const[o,i]=u.useState("");return u.useEffect(()=>{i("")},[t]),l(Ae,{title:"Hide environment and disable feature toggles?",open:t,primaryButtonText:"Hide environment and disable feature toggles",disabledPrimaryButton:(e==null?void 0:e.name)!==o,secondaryButtonText:"Close",onClick:r,onClose:()=>{a(!1)},children:[l(U1,{severity:"error",children:[n("strong",{children:"Danger!"})," Hiding an environment will disable all the feature toggles that are enabled in this environment and it can impact client applications connected to the environment."]}),n(Er,{environment:e}),l(kr,{children:["In order to hide this environment, please enter the id of the environment in the textfield below:"," ",n("strong",{children:e==null?void 0:e.name})]}),n(Dr,{label:"Environment name",value:o,onChange:s=>i(s.target.value)})]})},Fr=e=>{const{data:t,error:a,mutate:r}=se(G1(`api/admin/environments/project/${e}`),Zr),o=u.useMemo(()=>t||[],[t]),i=u.useCallback(async()=>{await r()},[r]);return{environments:o,refetchEnvironments:i,loading:!a&&!t,error:a}},Zr=async e=>(await fetch(e).then(K1("Environments")).then(a=>a.json())).environments.sort((a,r)=>a.sortOrder-r.sortOrder),Pr=h(U1)(({theme:e})=>({marginBottom:e.spacing(4)})),Ir=h("div")(({theme:e})=>({display:"flex",flexWrap:"wrap",[e.breakpoints.down("sm")]:{justifyContent:"center"}})),jr=h(B3)(({theme:e})=>({maxWidth:"400px",marginBottom:e.spacing(2)})),v0=()=>{const e=Y("projectId"),t=k1(e);S1(`Project environments – ${t}`);const{setToastData:a,setToastApiError:r}=u1(),{environments:o,loading:i,error:s,refetchEnvironments:c}=Fr(e),{project:d,refetch:p}=D1(e),{removeEnvironmentFromProject:m,addEnvironmentToProject:v}=st(),[g,b]=u.useState(),[w,S]=u.useState(!1),{isOss:Z}=p1(),y=u.useMemo(()=>o.map(R=>({...R,projectVisible:d==null?void 0:d.environments.includes(R.name)})),[o,d==null?void 0:d.environments]),P=()=>{c(),p()},H=()=>n(jr,{onClick:P,text:"Error fetching environments"}),V=R=>`Got an API error when trying to set the environment as ${R?"visible":"hidden"}`,N=async R=>{if(R.projectVisible){if(Sr(y)>1){b(R),S(!0);return}a({title:"One environment must be visible",text:"You must always have at least one visible environment per project",type:"error"})}else try{await v(e,R.name),P(),a({title:"Environment set as visible",text:"Environment successfully set as visible.",type:"success"})}catch{r(V(!0))}},_=async()=>{if(g)try{await m(e,g.name),P(),a({title:"Environment set as hidden",text:"Environment successfully set as hidden.",type:"success"})}catch{r(V(!1))}finally{S(!1)}},D=R=>Z()&&R==="default",z=u.useMemo(()=>[{Header:"Name",accessor:"name",Cell:({row:{original:R}})=>n(sn,{environment:R})},{Header:"Type",accessor:"type",Cell:Se},{Header:"Project API tokens",accessor:R=>R.projectApiTokenCount===1?"1 token":`${R.projectApiTokenCount} tokens`,Cell:i1},{Header:"Visible in project",accessor:"enabled",align:"center",width:1,Cell:({row:{original:R}})=>n(r2,{children:n(o2,{tooltip:R.projectVisible?"Hide environment and disable feature toggles":"Make it visible",size:"medium",disabled:D(R.name),projectId:e,permission:A1,checked:R.projectVisible,onChange:()=>N(R)})}),disableGlobalFilter:!0}],[y]),{getTableProps:M,getTableBodyProps:W,headerGroups:O,rows:K,prepareRow:Q,state:{globalFilter:L},setGlobalFilter:f}=r1.useTable({columns:z,data:y,disableSortBy:!0},r1.useGlobalFilter),k=n(s1,{title:`Environments (${K.length})`,actions:n(w1,{initialValue:L,onChange:f})});return n(d1,{header:k,isLoading:i,children:l(Ir,{children:[n(x,{condition:Boolean(s),show:H()}),l(Pr,{severity:"info",children:[n("strong",{children:"Important!"})," In order for your application to retrieve configured activation strategies for a specific environment, the application must use an environment specific API token. You can look up the environment-specific"," ",n(E1,{to:"/admin/api",children:"API tokens here"}),".",n("br",{}),n("br",{}),"Your administrator can configure an environment-specific API token to be used in the SDK. If you are an administrator you can ",n(E1,{to:"/admin/api",children:"create a new API token here"}),"."]}),n(ce,{value:L,children:l(nt,{...M(),rowHeight:"compact",children:[n(at,{headerGroups:O}),n(rt,{...W(),children:K.map(R=>(Q(R),n(ot,{hover:!0,...R.getRowProps(),children:R.cells.map(U=>n(it,{...U.getCellProps(),children:U.render("Cell")}))})))})]})}),n(x,{condition:K.length===0,show:n(x,{condition:(L==null?void 0:L.length)>0,show:l(y1,{children:["No environments found matching “",L,"”"]}),elseShow:n(y1,{children:"No environments available. Get started by adding one."})})}),n(Rr,{environment:g,open:w,setOpen:S,onConfirm:_})]})})},Or={id:"archivedAt"},zr=({projectId:e})=>{const{archivedFeatures:t,loading:a,refetchArchived:r}=cn(e),{value:o,setValue:i}=ct(`${e}:ProjectFeaturesArchiveTable`,Or);return n(ln,{title:"Project archive",archivedFeatures:t||[],loading:a,storedParams:o,setStoredParams:i,refetch:r,projectId:e})},$r=()=>{const e=Y("projectId"),t=k1(e);return S1(`Project archive – ${t}`),n(zr,{projectId:e})},Br=(e=[])=>{var a;const t=u.useRef(e);return(e==null?void 0:e.join(""))!==((a=t.current)==null?void 0:a.join(""))&&(t.current=e),t.current},Vr=h(A)(()=>({mx:"auto",...O1})),Mr=({projectId:e,featureName:t,environmentName:a,value:r,onToggle:o})=>{const[i,s,c]=dn(r),d=()=>{s(!i),o(e,t,a,!i).catch(c)},p=`${t}-${a}`;return n(Vr,{"data-testid":`TOGGLE-${p}`,children:n(o2,{checked:r,environmentId:a,projectId:e,permission:un,inputProps:{"aria-label":a},onClick:d,disabled:i!==r})},p)};var b2={},Lr=ke;Object.defineProperty(b2,"__esModule",{value:!0});var y0=b2.default=void 0,Hr=Lr(Ee()),Wr=De,Nr=(0,Hr.default)((0,Wr.jsx)("path",{d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5 6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z"}),"Archive");y0=b2.default=Nr;var C2={},qr=ke;Object.defineProperty(C2,"__esModule",{value:!0});var b0=C2.default=void 0,Ur=qr(Ee()),Gr=De,Kr=(0,Ur.default)((0,Gr.jsx)("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"}),"WatchLater");b0=C2.default=Kr;const Jr=h(A)(({theme:e})=>({display:"flex",justifyContent:"center",paddingRight:e.spacing(2)})),Yr=({projectId:e,row:t,onOpenArchiveDialog:a,onOpenStaleDialog:r})=>{const[o,i]=u.useState(null),{original:{name:s,stale:c}}=t,d=Boolean(o),p=b=>{i(b.currentTarget)},m=()=>{i(null)},v=`feature-${s}-actions`,g=`${v}-menu`;return l(Jr,{children:[n(J1,{title:"Feature toggle actions",arrow:!0,describeChild:!0,children:n(z1,{id:v,"aria-controls":d?g:void 0,"aria-haspopup":"true","aria-expanded":d?"true":void 0,onClick:p,type:"button",children:n(pn,{})})}),n(lt,{id:g,anchorEl:o,open:d,onClose:m,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},disableScrollLock:!0,PaperProps:{sx:b=>({borderRadius:`${b.shape.borderRadius}px`,padding:b.spacing(1,1.5)})},children:l(dt,{"aria-labelledby":v,children:[n(ee,{projectId:e,permission:i2,children:({hasAccess:b})=>l(W1,{sx:Rt,onClick:m,disabled:!b,component:E1,to:`/projects/${e}/features/${s}/strategies/copy`,children:[n(te,{children:n(hn,{})}),n(ne,{children:n(j,{variant:"body2",children:"Copy"})})]})}),n(ee,{projectId:e,permission:V3,children:({hasAccess:b})=>l(W1,{sx:Rt,onClick:()=>{a(s),m()},disabled:!b,children:[n(te,{children:n(y0,{})}),n(ne,{children:n(j,{variant:"body2",children:"Archive"})})]})}),n(ee,{projectId:e,permission:ut,children:({hasAccess:b})=>l(W1,{sx:Rt,onClick:()=>{m(),r({featureId:s,stale:c===!0})},disabled:!b,children:[n(te,{children:n(b0,{})}),n(ne,{children:l(j,{variant:"body2",children:[c?"Un-mark":"Mark"," as stale"]})})]})})]})})]})};var _2={},Qr=ke;Object.defineProperty(_2,"__esModule",{value:!0});var C0=_2.default=void 0,Xr=Qr(Ee()),eo=De,to=(0,Xr.default)((0,eo.jsx)("path",{d:"M5.33 20H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h1.33c1.1 0 2 .9 2 2v12c0 1.1-.89 2-2 2zM22 18V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2H20c1.11 0 2-.9 2-2zm-7.33 0V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h1.33c1.1 0 2-.9 2-2z"}),"ViewWeek");C0=_2.default=to;const no=h(A)(()=>({...O1,justifyContent:"center"})),ao=h(z1)(({theme:e})=>({margin:e.spacing(-1,0)})),ro=h(A)(({theme:e})=>({...O1,justifyContent:"space-between",padding:e.spacing(1,1,0,4)})),oo=h(W1)(({theme:e})=>({padding:e.spacing(0,2),margin:e.spacing(0,2),borderRadius:e.shape.borderRadius})),L2=h(M3)(({theme:e})=>({"&.MuiDivider-root.MuiDivider-fullWidth":{margin:e.spacing(.75,0)}})),io=h(s2)(({theme:e})=>({padding:e.spacing(.75,1)})),so={favorite:"Favorite"},co=({allColumns:e,staticColumns:t=[],dividerBefore:a=[],dividerAfter:r=[],isCustomized:o=!1,setHiddenColumns:i})=>{const[s,c]=u.useState(null),d=h1(),p=g1(d.breakpoints.down("sm")),m=g1(d.breakpoints.down("md")),v=g1(d.breakpoints.down("lg"));u.useEffect(()=>{if(o)return;const y=(P,H=0)=>{const V=e.filter(({id:_})=>_.startsWith("environments.")!==!1).map(({id:_})=>_).slice(0,H),N=e.map(({id:_})=>_).filter(_=>!P.includes(_)).filter(_=>!t.includes(_)).filter(_=>!V.includes(_));i(N)};if(p)return y(["createdAt"]);if(m)return y(["createdAt"],1);if(v)return y(["type","createdAt"],1);y(["lastSeenAt","type","createdAt"],3)},[p,m,v]);const g=y=>{c(y.currentTarget)},b=()=>{c(null)},w=Boolean(s),S="columns-menu",Z=`columns-menu-list-${S}`;return l(no,{children:[n(J1,{title:"Select columns",arrow:!0,describeChild:!0,children:n(ao,{id:S,"aria-controls":w?Z:void 0,"aria-haspopup":"true","aria-expanded":w?"true":void 0,onClick:g,type:"button",size:"large","data-loading":!0,children:n(C0,{})})}),l(lt,{id:Z,open:w,anchorEl:s,onClose:b,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},disableScrollLock:!0,PaperProps:{sx:y=>({borderRadius:y.shape.borderRadius,paddingBottom:y.spacing(2)})},children:[l(ro,{children:[n(j,{variant:"body2",children:n("strong",{children:"Columns"})}),n(z1,{onClick:b,children:n(mn,{})})]}),n(dt,{children:e.filter(({hideInMenu:y})=>!y).map(y=>[n(x,{condition:a.includes(y.id),show:n(L2,{})}),l(oo,{onClick:()=>y.toggleHidden(y.isVisible),disabled:t.includes(y.id),children:[n(te,{children:n(io,{edge:"start",checked:y.isVisible,disableRipple:!0,inputProps:{"aria-labelledby":y.id},size:"medium"})}),n(ne,{id:y.id,primary:n(j,{variant:"body2",children:n(x,{condition:Boolean(typeof y.Header=="string"&&y.Header),show:()=>n(G,{children:y.Header}),elseShow:()=>so[y.id]||y.id})})})]}),n(x,{condition:r.includes(y.id),show:n(L2,{})})])})]})]})},lo=L3()(e=>({container:{boxShadow:"none",marginLeft:"1rem",minHeight:"100%",width:"calc(100% - 1rem)",position:"relative",[e.breakpoints.down("md")]:{marginLeft:"0",paddingBottom:"4rem",width:"inherit"}}})),uo=({projectId:e,features:t})=>{const{refetch:a}=D1(e),[r,o]=u.useState(!1),{trackEvent:i}=R1();return l(G,{children:[n(ee,{projectId:e,permission:V3,children:({hasAccess:c})=>n(v1,{disabled:!c||r,startIcon:n(Za,{}),variant:"outlined",size:"small",onClick:()=>o(!0),children:"Archive"})}),n(m0,{projectId:e,featureIds:t,onConfirm:async()=>{o(!1),await a(),i("batch_operations",{props:{eventType:"features archived"}})},isOpen:r,onClose:()=>o(!1)})]})},Me="selection-actions-menu",po=({projectId:e,data:t})=>{const{refetch:a}=D1(e),[r,o]=u.useState(null),{staleFeatures:i}=st(),{setToastData:s,setToastApiError:c}=u1(),{trackEvent:d}=R1(),p=Boolean(r),m=t.map(({name:y})=>y),v=y=>{o(y.currentTarget)},g=()=>{o(null)},b=t.some(({stale:y})=>y===!0),w=t.some(({stale:y})=>y===!1),S=async()=>{try{g(),await i(e,m),await a(),s({title:"State updated",text:"Feature toggles marked as stale",type:"success"}),d("batch_operations",{props:{eventType:"features staled"}})}catch(y){c(f1(y))}},Z=async()=>{try{g(),await i(e,m,!1),await a(),s({title:"State updated",text:"Feature toggles unmarked as stale",type:"success"}),d("batch_operations",{props:{eventType:"features unstaled"}})}catch(y){c(f1(y))}};return l(G,{children:[n(J1,{title:"More bulk actions",arrow:!0,describeChild:!0,children:n(z1,{id:Me,"aria-controls":p?Me:void 0,"aria-haspopup":"true","aria-expanded":p?"true":void 0,onClick:v,type:"button","data-testid":gn,children:n(fn,{})})}),n(lt,{id:`${Me}-menu`,anchorEl:r,open:p,onClose:g,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},disableScrollLock:!0,PaperProps:{sx:y=>({borderRadius:`${y.shape.borderRadius}px`,padding:y.spacing(1,1.5)})},children:n(dt,{"aria-labelledby":`${Me}-menu`,children:n(ee,{projectId:e,permission:ut,children:({hasAccess:y})=>l(G,{children:[n(x,{condition:w,show:()=>l(W1,{onClick:S,disabled:!y,sx:{borderRadius:P=>`${P.shape.borderRadius}px`},children:[n(te,{children:n($2,{})}),n(ne,{children:n(j,{variant:"body2",children:"Mark as stale"})})]})}),n(x,{condition:b,show:()=>l(W1,{onClick:Z,disabled:!y,sx:{borderRadius:P=>`${P.shape.borderRadius}px`},children:[n(te,{children:n($2,{})}),n(ne,{children:n(j,{variant:"body2",children:"Un-mark as stale"})})]})})]})})})})]})},ho=h("section")(({theme:e})=>({["& > *"]:{margin:e.spacing(1,0)}})),H2="manage-tags-form",W2=(e,t)=>[...e,...e.some(a=>a.value===t.value&&a.type===t.type)?[]:[t]],N2=(e,t)=>e.filter(a=>!(a.value===t.value&&a.type===t.type)),mo=(e,t)=>{switch(t.type){case"add":return{...e,addedTags:W2(e.addedTags,t.payload),removedTags:N2(e.removedTags,t.payload)};case"remove":return{...e,addedTags:N2(e.addedTags,t.payload),removedTags:W2(e.removedTags,t.payload)};case"clear":return{addedTags:[],removedTags:t.payload};default:return e}},q2={name:"",description:"",icon:""},go=({open:e,initialValues:t,initialIndeterminateValues:a,onCancel:r,onSubmit:o})=>{const{tagTypes:i,loading:s}=vn(),[c,d]=u.useState(q2),[p,m]=u.useState([]),[v,g]=u.useState([]),{tags:b,refetch:w}=Pa(c.name),{createTag:S}=g0(),Z=b.map(({value:z})=>({title:z})),[y,P]=u.useReducer(mo,{addedTags:[],removedTags:[]}),H=(z=i.length>0?i[0]:q2)=>{d(z);const M=a.filter(({type:W})=>W===z.name);m(t.filter(({type:W})=>W===z.name).filter(({type:W,value:O})=>!M.some(K=>K.value===O&&K.type===W)).map(({value:W})=>({title:W}))),g(M.map(({value:W})=>({title:W}))),P({type:"clear",payload:[]})};u.useEffect(()=>{i.length>0&&H()},[s]);const V=(z,M)=>{M!=null&&typeof M!="string"&&(z.preventDefault(),H(M))},N=(z,M)=>S({value:z,type:M}).then(async()=>{await w(),m(W=>[...W,{title:z}]),P({type:"add",payload:{value:z,type:M}})}),_=(z,M,W,O)=>{W==="selectOption"?M.forEach(K=>{if(typeof K!="string"&&typeof K.inputValue=="string"&&K.inputValue&&K.title.startsWith("Create new value"))return N(K.inputValue,c.name);m(M),g(Q=>Q.filter(({title:L})=>L!==K.title)),O!=null&&O.option&&P({type:"add",payload:{value:O.option.title,type:c.name}})}):W==="clear"?(m([]),P({type:"clear",payload:t})):W==="removeOption"&&(m(M),O!=null&&O.option&&P({type:"remove",payload:{value:O.option.title,type:c.name}}))},D=()=>{H(),r()};return l(Ae,{open:e,secondaryButtonText:"Cancel",primaryButtonText:"Save tags",title:"Update tags to feature toggle",onClick:()=>o(y),disabledPrimaryButton:y.addedTags.length===0&&y.removedTags.length===0,onClose:D,formId:H2,children:[n(j,{paragraph:!0,sx:{marginBottom:z=>z.spacing(2.5)},children:"Tags allow you to group features together"}),n("form",{id:H2,onSubmit:()=>o(y),children:l(ho,{children:[n(Ia,{options:i,disabled:s||i.length===0,value:c,onChange:V},s?"loading":i.length),n(x,{condition:!s&&i.length===0,show:l(j,{variant:"body1",children:["No"," ",n(c2,{component:E1,to:"/tag-types",children:"tag types"})," ","available."]}),elseShow:n(ja,{disabled:s,options:Z,existingTags:t,indeterminateOptions:v,tagType:c,selectedOptions:p,onChange:_})})]})})]})},fo=({projectId:e,data:t})=>{const{bulkUpdateTags:a}=g0(),{refetch:r}=D1(e),{setToastData:o,setToastApiError:i}=u1(),{trackEvent:s}=R1(),[c,d]=u.useState(!1),[p,m]=u.useMemo(()=>{const g=t.flatMap(({tags:w})=>w||[]).reduce((w,S)=>[...w,...w.some(Z=>Z.type===S.type&&Z.value===S.value)?[]:[S]],[]),b=g.filter(w=>!t.every(({tags:S})=>S==null?void 0:S.some(Z=>Z.type===w.type&&Z.value===w.value)));return[g,b]},[t]);return l(G,{children:[n(ee,{projectId:e,permission:ut,children:({hasAccess:g})=>n(v1,{disabled:!g||c,startIcon:n(yn,{}),variant:"outlined",size:"small",onClick:()=>d(!0),children:"Tags"})}),n(go,{open:c,onCancel:()=>d(!1),onSubmit:async({addedTags:g,removedTags:b})=>{const w=t.map(({name:Z})=>Z),S={features:w,tags:{addedTags:g,removedTags:b}};try{await a(S),r();const Z=g.length?`Added tags: ${g.map(({type:P,value:H})=>`${P}:${H}`).join(", ")}.`:"",y=b.length?`Removed tags: ${b.map(({type:P,value:H})=>`${P}:${H}`).join(", ")}.`:"";o({title:"Tags updated",text:`${w.length} feature toggles updated. ${Z} ${y}`,type:"success",autoHideDuration:12e3}),s("batch_operations",{props:{eventType:"tags updated"}})}catch(Z){i(f1(Z))}d(!1)},initialValues:p,initialIndeterminateValues:m},t.length)]})},vo=({selectedIds:e,data:t,projectId:a})=>{var m,v;const{uiConfig:r}=p1(),[o,i]=u.useState(!1),{trackEvent:s}=R1(),c=u.useMemo(()=>t.filter(g=>e.includes(g.name)),[t,e]),d=u.useMemo(()=>{const g=c.flatMap(b=>b.environments).map(b=>b==null?void 0:b.name).filter(b=>b!==void 0);return Array.from(new Set(g))},[c]),p=()=>{s("batch_operations",{props:{eventType:"features exported"}})};return l(G,{children:[n(uo,{projectId:a,features:e}),n(x,{condition:Boolean((m=r==null?void 0:r.flags)==null?void 0:m.featuresExportImport),show:n(v1,{startIcon:n(cr,{}),variant:"outlined",size:"small",onClick:()=>i(!0),children:"Export"})}),n(fo,{projectId:a,data:c}),n(po,{projectId:a,data:c}),n(x,{condition:Boolean((v=r==null?void 0:r.flags)==null?void 0:v.featuresExportImport),show:n(H3,{showExportDialog:o,data:c,onClose:()=>i(!1),environments:d,onConfirm:p})})]})},yo=h(W3)(()=>({whiteSpace:"nowrap"})),bo=h("div",{shouldForwardProp:e=>e!=="hasWarning"})(({theme:e,hasWarning:t})=>({flexGrow:0,...O1,justifyContent:"center",...t&&{"::before":{content:'""',display:"block",width:e.spacing(2)}}})),Le=["Select","Actions","name","favorite"],Co={id:"createdAt"},_o=({features:e,loading:t,environments:a=[]})=>{var T,I;const{classes:r}=lo(),o=h1(),i=g1(o.breakpoints.down("md")),[s,c]=u.useState({open:!1,featureId:"",environmentName:""}),[d,p]=u.useState({}),[m,v]=u.useState(),g=Y("projectId"),{value:b,setValue:w}=ct(`${g}:FeatureToggleListTable:v1`,Co),{value:S,setValue:Z}=bn(),y=$1(),[P,H]=l2(),{isChangeRequestConfigured:V}=pt(g),N=Br(t?["a","b","c"]:a),{refetch:_}=D1(g),{setToastData:D,setToastApiError:z}=u1(),{isFavoritesPinned:M,sortTypes:W,onChangeIsFavoritePinned:O}=Cn(P.has("favorites")?P.get("favorites")==="true":S.favorites),{toggleFeatureEnvironmentOn:K,toggleFeatureEnvironmentOff:Q}=_n(),{favorite:L,unfavorite:f}=xn(),{onChangeRequestToggle:k,onChangeRequestToggleClose:R,onChangeRequestToggleConfirm:U,changeRequestDialogDetails:C}=Oa(g),[X,c1]=u.useState(!1),{uiConfig:a1}=p1(),m1=u.useCallback(async(F,E,$,B)=>{if(V($))throw k(E,$,B),new Error("Additional approval required");try{B?await K(F,E,$):await Q(F,E,$),_()}catch(e1){const I1=f1(e1);throw I1===za?c({open:!0,featureId:E,environmentName:$}):z(I1),e1}D({type:"success",title:"Updated toggle status",text:"Successfully updated toggle status."}),_()},[Q,K,V]),Z1=u.useCallback(async F=>{F!=null&&F.favorite?await f(g,F.name):await L(g,F.name),_()},[g,_]),je=u.useMemo(()=>e.some(F=>{var E;return(E=F==null?void 0:F.tags)==null?void 0:E.length}),[e]),C1=u.useMemo(()=>{var F;return[...(F=a1==null?void 0:a1.flags)!=null&&F.bulkOperations?[{id:"Select",Header:({getToggleAllRowsSelectedProps:E})=>n(s2,{...E()}),Cell:({row:E})=>{var $;return n(wn,{...($=E==null?void 0:E.getToggleRowSelectedProps)==null?void 0:$.call(E)})},maxWidth:50,disableSortBy:!0,hideInMenu:!0}]:[],{id:"favorite",Header:n(Sn,{isActive:M,onClick:O}),accessor:"favorite",Cell:({row:{original:E}})=>n(Tn,{value:E==null?void 0:E.favorite,onClick:()=>Z1(E)}),maxWidth:50,disableSortBy:!0,hideInMenu:!0},{Header:"Seen",accessor:"lastSeenAt",Cell:N3,sortType:"date",align:"center",maxWidth:80},{Header:"Type",accessor:"type",Cell:q3,align:"center",maxWidth:80},{Header:"Name",accessor:"name",Cell:({value:E})=>n(U3,{title:E,to:`/projects/${g}/features/${E}`}),minWidth:100,sortType:"alphanumeric",searchable:!0},...je?[{id:"tags",Header:"Tags",accessor:E=>{var $;return(($=E.tags)==null?void 0:$.map(({type:B,value:e1})=>`${B}:${e1}`).join(`
|
|
2
|
-
`))||""},Cell:An,width:80,searchable:!0}]:[],{Header:"Created",accessor:"createdAt",Cell:ht,sortType:"date",minWidth:120},...N.map(E=>({Header:t?()=>"":E,maxWidth:90,id:`environments.${E}`,accessor:$=>{var B;return(B=$.environments[E])==null?void 0:B.enabled},align:"center",Cell:({value:$,row:{original:B}})=>{const e1=B.someEnabledEnvironmentHasVariants&&B.environments[E].variantCount===0&&B.environments[E].enabled;return l(bo,{hasWarning:e1,children:[n(Mr,{value:$,projectId:g,featureName:B==null?void 0:B.name,environmentName:E,onToggle:m1}),n(x,{condition:e1,show:n($a,{})})]})},sortType:"boolean",filterName:E,filterParsing:$=>$?"enabled":"disabled"})),{id:"Actions",maxWidth:56,width:56,Cell:E=>n(Yr,{projectId:g,onOpenArchiveDialog:v,onOpenStaleDialog:p,...E}),disableSortBy:!0,hideInMenu:!0}]},[g,N,t,m1]),[l1,ye]=u.useState(P.get("search")||""),Oe=u.useMemo(()=>e.map(F=>{var E;return{...F,environments:Object.fromEntries(N.map($=>{const B=F==null?void 0:F.environments.find(e1=>(e1==null?void 0:e1.name)===$);return[$,{name:$,enabled:(B==null?void 0:B.enabled)||!1,variantCount:(B==null?void 0:B.variantCount)||0}]})),someEnabledEnvironmentHasVariants:((E=F.environments)==null?void 0:E.some($=>$.variantCount>0&&$.enabled))||!1}}),[e,N]),{data:V1,getSearchText:Q1,getSearchContext:T1}=mt(C1,l1,Oe),be=u.useMemo(()=>t?Array(6).fill({type:"-",name:"Feature name",createdAt:new Date,environments:{production:{name:"production",enabled:!1}}}):V1,[t,V1]),ze=u.useMemo(()=>{var $;const F=C1.map(B=>(B==null?void 0:B.accessor)||(B==null?void 0:B.id));let E=N.filter((B,e1)=>e1>=3).map(B=>`environments.${B}`);if(P.has("columns")){const B=(($=P.get("columns"))==null?void 0:$.split(","))||[],e1=[...Le,...B];E=F.filter(I1=>!e1.includes(I1))}else if(b.columns){const B=[...Le,...b.columns];E=F.filter(e1=>!B.includes(e1))}return{sortBy:[{id:P.get("sort")||"createdAt",desc:P.has("order")?P.get("order")==="desc":b.desc}],hiddenColumns:E,selectedRowIds:{}}},[N]),$e=u.useCallback(F=>F.name,[]),{allColumns:Ce,headerGroups:P1,rows:M1,state:{selectedRowIds:L1,sortBy:_1,hiddenColumns:X1},prepareRow:xt,setHiddenColumns:wt}=r1.useTable({columns:C1,data:be,initialState:ze,sortTypes:W,autoResetHiddenColumns:!1,disableSortRemove:!0,autoResetSortBy:!1,getRowId:$e},r1.useFlexLayout,r1.useSortBy,r1.useRowSelect);return u.useEffect(()=>{if(t)return;const F={};F.sort=_1[0].id,_1[0].desc&&(F.order="desc"),l1&&(F.search=l1),M&&(F.favorites="true"),F.columns=Ce.map(({id:E})=>E).filter(E=>!Le.includes(E)&&!(X1!=null&&X1.includes(E))).join(","),H(F,{replace:!0}),w(E=>({...E,id:_1[0].id,desc:_1[0].desc||!1,columns:F.columns.split(",")})),Z(E=>({...E,favorites:Boolean(M)}))},[t,_1,X1,l1,H,M]),l(G,{children:[l(d1,{isLoading:t,className:r.container,header:n(s1,{titleElement:`Feature toggles (${M1.length})`,actions:l(G,{children:[n(x,{condition:!i,show:n(w1,{initialValue:l1,onChange:ye,hasFilters:!0,getSearchContext:T1})}),n(co,{allColumns:Ce,staticColumns:Le,dividerAfter:["createdAt"],dividerBefore:["Actions"],isCustomized:Boolean(b.columns),setHiddenColumns:wt}),n(s1.Divider,{sx:{marginLeft:0}}),n(x,{condition:Boolean((T=a1==null?void 0:a1.flags)==null?void 0:T.featuresExportImport),show:n(J1,{title:"Export toggles visible in the table below",arrow:!0,children:n(z1,{onClick:()=>c1(!0),sx:F=>({marginRight:F.spacing(2)}),children:n(En,{})})})}),n(yo,{onClick:()=>y(kn(g)),maxWidth:"960px",Icon:G3,projectId:g,permission:i2,"data-testid":"NAVIGATE_TO_CREATE_FEATURE",children:"New feature toggle"})]}),children:n(x,{condition:i,show:n(w1,{initialValue:l1,onChange:ye,hasFilters:!0,getSearchContext:T1})})}),children:[n(ce,{value:Q1(l1),children:n(gt,{rows:M1,headerGroups:P1,prepareRow:xt})}),n(x,{condition:M1.length===0,show:n(x,{condition:(l1==null?void 0:l1.length)>0,show:l(y1,{children:["No feature toggles found matching “",l1,"”"]}),elseShow:n(y1,{children:"No feature toggles available. Get started by adding a new feature toggle."})})}),n(Ba,{onClose:()=>c(F=>({...F,open:!1})),projectId:g,...s}),n(Va,{isStale:d.stale===!0,isOpen:Boolean(d.featureId),onClose:()=>{p({}),_()},featureId:d.featureId||"",projectId:g}),n(m0,{isOpen:Boolean(m),onConfirm:()=>{_()},onClose:()=>{v(void 0)},featureIds:[m||""],projectId:g})," ",n(Ma,{isOpen:C.isOpen,onClose:R,environment:C==null?void 0:C.environment,onConfirm:U,messageComponent:n(La,{featureName:C.featureName,enabled:C.enabled,environment:C==null?void 0:C.environment})}),n(x,{condition:Boolean((I=a1==null?void 0:a1.flags)==null?void 0:I.featuresExportImport)&&!t,show:n(H3,{showExportDialog:X,data:be,onClose:()=>c1(!1),environments:N})})]}),n(Dn,{count:Object.keys(L1).length,children:n(vo,{selectedIds:Object.keys(L1),data:e,projectId:g})})]})},Ze=h("div")(({theme:e})=>({margin:"0",textAlign:"center",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadiusLarge,width:"100%",minWidth:225,padding:e.spacing(3),[e.breakpoints.down("md")]:{display:"flex",flexDirection:"column",position:"relative",padding:e.spacing(1.5)}})),Pe=h("p")(({theme:e})=>({marginBottom:e.spacing(2.5)})),x2=h("span")(({theme:e})=>({fontSize:e.typography.h2.fontSize,fontWeight:"bold",color:e.palette.text.primary})),bt=({children:e,to:t})=>n(j,{variant:"body2",textAlign:"center",sx:{paddingTop:a=>a.spacing(2.5),marginTop:"auto",justifySelf:"flex-end"},children:n(c2,{component:E1,to:t,children:e})}),xo=h("p")(({theme:e})=>({fontSize:"1.5rem",[e.breakpoints.down("md")]:{fontSize:e.fontSizes.bodySize,marginBottom:e.spacing(4)}})),wo=h("p")(({theme:e})=>({fontSize:"1.5rem",[e.breakpoints.down("md")]:{fontSize:e.fontSizes.bodySize}})),So=({projectId:e,health:t})=>l(Ze,{children:[n(Pe,{"data-loading":!0,children:"Project health"}),l(A,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:a=>a.spacing(2)},children:[n(wo,{children:n(Rn,{percentage:t})}),l(xo,{"data-loading":!0,children:[t,"%"]})]}),n(bt,{to:`/projects/${e}/health`,children:"View project health"})]}),To=h(x2)(({theme:e})=>({marginLeft:"auto",fontWeight:e.typography.fontWeightRegular,color:e.palette.text.secondary})),Ao=h("div")(({theme:e})=>({display:"flex",gap:e.spacing(1.5),width:"100%",gridTemplateColumns:`${e.spacing(2.5)} auto auto`,margin:e.spacing(1,0),fontSize:e.fontSizes.smallBody,color:e.palette.text.secondary,alignItems:"center",[e.breakpoints.down("md")]:{margin:0}})),Eo=({type:e,Icon:t,count:a})=>l(Ao,{"data-loading":!0,children:[n(t,{fontSize:"small","data-loading":!0}),n("div",{children:(o=>o.charAt(0).toUpperCase()+o.slice(1).replace("-"," "))(e)}),n(To,{children:a})]}),ko=({features:e})=>{const t=u.useMemo(()=>{const a=(e==null?void 0:e.filter(c=>c.type==="release").length)||0,r=(e==null?void 0:e.filter(c=>c.type==="experiment").length)||0,o=(e==null?void 0:e.filter(c=>c.type==="operational").length)||0,i=(e==null?void 0:e.filter(c=>c.type==="kill-switch").length)||0,s=(e==null?void 0:e.filter(c=>c.type==="permission").length)||0;return{release:a,experiment:r,operational:o,"kill-switch":i,permission:s}},[e]);return l(Ze,{sx:{padding:a=>a.spacing(3)},children:[n(Pe,{children:"Toggle types used"}),Object.keys(t).map(a=>n(Eo,{type:a,Icon:Fn(a),count:t[a]},a))]})},Do=h("div")(({theme:e})=>({textAlign:"left",borderRadius:`${e.shape.borderRadius}px`,backgroundColor:`${e.palette.background.elevation2}`,padding:e.spacing(.5,2),fontSize:e.typography.body2.fontSize})),Ro=({id:e,description:t})=>l(Ze,{children:[n(Pe,{children:"Project Meta"}),l(Do,{children:[n(j,{component:"span",variant:"body2",color:"text.secondary",children:"ID:"})," ",n("code",{"data-loading":!0,children:e||"__________"})]}),n(x,{condition:Boolean(t),show:n(j,{variant:"body2",sx:{marginTop:a=>a.spacing(1.5),marginBottom:0,textAlign:"left"},children:t})}),n(x,{condition:!Boolean(t),show:n(bt,{to:`/projects/${e}/edit`,children:"Add description"})})]}),Fo=h(j)(({theme:e})=>({marginBottom:e.spacing(2.5)})),Zo=h(A)(({theme:e})=>({fontSize:e.fontSizes.largeHeader})),Ft=h(A)(({theme:e})=>({...O1,flexDirection:"column",alignItems:"center",marginLeft:e.spacing(2.5)})),U2=h(j)(({theme:e})=>({color:e.palette.text.secondary,fontSize:e.typography.body2.fontSize})),Po=h(j)(({theme:e})=>({marginLeft:e.spacing(1),fontSize:e.typography.body1.fontSize,fontWeight:e.typography.fontWeightBold})),Io=e=>e>0?n(sr,{sx:{color:"success.dark",height:20,width:20}}):n(pr,{sx:{color:"warning.dark",height:20,width:20}}),jo=e=>e>0?"success.dark":"warning.dark",xe=({title:e,boxText:t,change:a,percentage:r,children:o,customChangeElement:i})=>l(G,{children:[n(x,{condition:Boolean(e),show:n(Fo,{children:e})}),o,l(A,{sx:{...O1,justifyContent:"center",width:"auto"},children:[n(Zo,{children:t}),n(x,{condition:Boolean(i),show:n(Ft,{children:i}),elseShow:n(x,{condition:a!==void 0&&a!==0,show:l(Ft,{children:[l(A,{sx:{...O1},children:[Io(a),l(Po,{color:jo(a),children:[a>0?"+":"",a,r?"%":""]})]}),n(U2,{children:"this month"})]}),elseShow:n(Ft,{children:n(U2,{children:"No change"})})})})]})]}),Oo=({projectId:e,memberCount:t,change:a=0})=>{var i,s;const{uiConfig:r}=p1();let o="/admin/users";return(s=(i=r==null?void 0:r.versionInfo)==null?void 0:i.current)!=null&&s.enterprise&&(o=`/projects/${e}/settings/access`),l(Ze,{children:[n(Pe,{"data-loading":!0,children:"Project members"}),n(A,{sx:{display:"flex",justifyContent:"center"},children:n(xe,{boxText:`${t}`,change:a})}),n(bt,{to:o,children:"View all members"})]})},zo=e=>fetch(e).then(K1("ChangeRequest")).then(t=>t.json()),_0=e=>{const{data:t,error:a,mutate:r}=Zn([],G1(`api/admin/projects/${e}/change-requests`),zo);return u.useMemo(()=>({changeRequests:t,loading:!a&&!t,refetch:r,error:a}),[t,a,r])},Ne="change-requests-widget",$o=h(A)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(1.5)})),G2=h(A)(({theme:e})=>({flex:1,textAlign:"left",padding:e.spacing(1.5),borderRadius:e.shape.borderRadiusMedium,alignItems:"center",minWidth:175})),K2=h(A)(({theme:e})=>({display:"flex",alignItems:"center"})),Bo=h(x2)(({theme:e})=>({background:e.palette.seen.recent,padding:e.spacing(0,1),marginRight:e.spacing(.5),borderRadius:e.shape.borderRadius})),Vo=h(x2)(({theme:e})=>({background:e.palette.seen.primary,padding:e.spacing(0,1),marginRight:e.spacing(.5),borderRadius:e.shape.borderRadius})),J2=h(j)(({theme:e})=>({fontSize:e.typography.body2.fontSize,marginBottom:e.spacing(.5)})),Y2=()=>n(j,{component:"span",variant:"body2",color:"text.secondary",lineHeight:1,"data-loading":Ne,children:"change requests"}),Mo=({projectId:e})=>{const{changeRequests:t,loading:a}=_0(e),r=K3(a,`[data-loading="${Ne}"]`),o=t==null?void 0:t.filter(s=>(s==null?void 0:s.state)==="Approved").length,i=t==null?void 0:t.filter(s=>(s==null?void 0:s.state)==="In review").length;return l(Ze,{ref:r,children:[n(Pe,{children:"Open change requests"}),l($o,{children:[l(G2,{sx:{background:s=>s.palette.success.light},children:[n(J2,{children:"To be applied"}),l(K2,{children:[n(Bo,{"data-loading":Ne,children:o||0})," ",n(Y2,{})]})]}),l(G2,{sx:{background:s=>s.palette.secondary.light},children:[n(J2,{children:"To be reviewed"}),l(K2,{children:[n(Vo,{"data-loading":Ne,children:i||0})," ",n(Y2,{})]})]})]}),n(bt,{to:`/projects/${e}/change-requests`,children:"View change requests"})]})},Lo=h(A)(({theme:e})=>({...O1,width:"225px",flexDirection:"column",gap:e.spacing(2),boxShadow:"none",[e.breakpoints.down("md")]:{display:"grid",width:"100%",alignItems:"stretch",marginBottom:e.spacing(2)},[e.breakpoints.down("sm")]:{display:"flex"}})),Ho=({id:e,description:t,memberCount:a,health:r,features:o,stats:i})=>{const{uiConfig:s,isEnterprise:c}=p1(),d=h1(),p=g1(d.breakpoints.down("md")),{isChangeRequestConfiguredInAnyEnv:m}=pt(e),v=c()&&m(),g=e!==Pn;return n("aside",{children:l(Lo,{sx:!v&&!g||p&&v&&g?{gridTemplateColumns:"repeat(auto-fill, minmax(225px, 1fr))"}:{gridTemplateColumns:"repeat(2, 1fr)"},children:[n(x,{condition:v,show:n(A,{sx:{gridColumnStart:g?"span 2":"span 1",flex:1,display:"flex"},children:n(Mo,{projectId:e})})}),n(Ro,{id:e,description:t}),n(So,{projectId:e,health:r}),n(x,{condition:g,show:n(Oo,{projectId:e,memberCount:a,change:i==null?void 0:i.projectMembersAddedCurrentWindow})}),n(ko,{features:o})]})})},Wo=h(B1)(({theme:e})=>({padding:e.spacing(3,3),maxWidth:"350px",borderRadius:`${e.shape.borderRadiusMedium}px`,border:`1px solid ${e.palette.neutral.border}`,fontSize:e.typography.body2.fontSize})),Q2=({children:e,id:t})=>{const[a,r]=u.useState(null),o=c=>r(c.currentTarget),i=()=>r(null),s=Boolean(a);return l(A,{sx:{position:"absolute",top:c=>c.spacing(.5),right:c=>c.spacing(.5)},children:[n(z1,{onClick:o,"aria-describedby":t,size:"small",children:n(J3,{sx:{fontSize:c=>c.typography.body1.fontSize}})}),n(Y3,{id:t,open:s,anchorEl:a,sx:c=>({zIndex:c.zIndex.tooltip}),children:n(Q3,{onClickAway:i,children:l(Wo,{elevation:3,children:[n(z1,{onClick:i,sx:{position:"absolute",right:4,top:4},children:n(In,{sx:{fontSize:c=>c.typography.body1.fontSize}})}),e,n(jn,{id:t,eventName:"project_overview",localStorageKey:"ProjectOverviewFeedback"})]})})})]})},No=h(A)(({theme:e})=>({padding:e.spacing(0,0,2,2),display:"grid",gap:e.spacing(2),gridTemplateColumns:"repeat(4, 1fr)",flexWrap:"wrap",[e.breakpoints.down("lg")]:{gridTemplateColumns:"repeat(2, 1fr)"},[e.breakpoints.down("md")]:{padding:e.spacing(0,0,2)},[e.breakpoints.down("sm")]:{flexDirection:"column"}})),He=h(A)(({theme:e})=>({position:"relative",padding:e.spacing(3),backgroundColor:e.palette.background.paper,flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",borderRadius:`${e.shape.borderRadiusLarge}px`,[e.breakpoints.down("lg")]:{padding:e.spacing(2)}})),qo=h(j)(({theme:e})=>({color:e.palette.text.secondary,fontSize:e.typography.body2.fontSize,lineHeight:e.typography.body2.lineHeight})),Uo=({stats:e})=>{if(Object.keys(e).length===0)return null;const{avgTimeToProdCurrentWindow:t,projectActivityCurrentWindow:a,projectActivityPastWindow:r,createdCurrentWindow:o,createdPastWindow:i,archivedCurrentWindow:s,archivedPastWindow:c}=e;return l(No,{children:[n(He,{children:n(xe,{title:"Total changes",boxText:String(a),change:a-r,children:n(Q2,{id:"total-changes",children:"Sum of all configuration and state modifications in the project."})})}),n(He,{children:n(xe,{title:"Avg. time to production",boxText:l(A,{sx:{display:"flex",alignItems:"center",gap:d=>d.spacing(1)},children:[t," ",n(j,{component:"span",children:"days"})]}),customChangeElement:n(qo,{children:"In project life"}),percentage:!0,children:n(Q2,{id:"avg-time-to-prod",children:'How long did it take on average from a feature toggle was created until it was enabled in an environment of type production. This is calculated only from feature toggles with the type of "release".'})})}),n(He,{children:n(xe,{title:"Features created",boxText:String(o),change:o-i})}),n(He,{children:n(xe,{title:"Features archived",boxText:String(s),change:s-c})})]})},Go=15*1e3,Ko=h("div")(({theme:e})=>({display:"flex",[e.breakpoints.down("md")]:{flexDirection:"column"}})),Jo=h("div")(()=>({width:"100%",minWidth:0})),Yo=h(A)(()=>({display:"flex",flexDirection:"column",width:"100%",minWidth:0})),Qo=()=>{const e=Y("projectId"),t=k1(e),{project:a,loading:r}=D1(e,{refreshInterval:Go}),{members:o,features:i,health:s,description:c,environments:d,stats:p}=a;S1(`Project overview – ${t}`);const{setLastViewed:m}=On();return p1(),u.useEffect(()=>{m(e)},[e,m]),l(Ko,{children:[n(Ho,{id:e,description:c,memberCount:o,health:s,features:i,stats:p}),l(Yo,{children:[n(Uo,{stats:a.stats}),n(Jo,{children:n(_o,{features:i,environments:d,loading:r})})]})]})},Xo=(e,t)=>{const a=G1(`api/admin/projects/${e}/health-report`),{data:r,error:o}=se(a,e4,t),i=u.useCallback(()=>{X3(a).catch(console.warn)},[a]);return{healthReport:r,refetchHealthReport:i,loading:!o&&!r,error:o}},e4=e=>fetch(e).then(K1("Health report")).then(t=>t.json());var w2={},t4=ke;Object.defineProperty(w2,"__esModule",{value:!0});var Jt=w2.default=void 0,n4=t4(Ee()),a4=De,r4=(0,n4.default)((0,a4.jsx)("path",{d:"M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined");Jt=w2.default=r4;const o4=h(A)(({theme:e})=>({display:"flex",alignItems:"center",color:e.palette.success.dark,"& svg":{color:e.palette.success.main}})),X2=h(A)(({theme:e})=>({display:"flex",alignItems:"center",color:e.palette.warning.dark,"& svg":{color:e.palette.warning.main}})),i4=h(B1)(({theme:e})=>({padding:e.spacing(4),marginBottom:e.spacing(2),borderRadius:e.shape.borderRadiusLarge,boxShadow:"none",display:"flex",justifyContent:"space-between",[e.breakpoints.down("md")]:{flexDirection:"column",gap:e.spacing(2)}})),Zt=h("h2")(({theme:e})=>({fontSize:e.fontSizes.mainHeader,marginBottom:e.spacing(1)})),s4=h("p")(({theme:e})=>({fontSize:"2rem",fontWeight:e.fontWeight.bold})),c4=h("p")(({theme:e})=>({color:e.palette.text.secondary})),e3=h("ul")(({theme:e})=>({listStyleType:"none",margin:0,padding:0,"& svg":{marginRight:e.spacing(1)}})),t3=h("p")(({theme:e})=>({marginLeft:e.spacing(4)})),l4=({healthReport:e})=>{const t=e.health<50?"error.main":e.health<75?"warning.main":"success.main",a=()=>l(o4,{children:[n(zn,{}),l("span",{children:[e.activeCount," active toggles"]})]}),r=()=>l(X2,{children:[n(Jt,{}),l("span",{children:[e.staleCount," stale toggles"]})]}),o=()=>l(X2,{children:[n(Jt,{}),l("span",{children:[e.potentiallyStaleCount," potentially stale toggles"]})]});return l(i4,{children:[l(A,{children:[n(Zt,{children:"Health rating"}),n(x,{condition:e.health>-1,show:l(G,{children:[l(s4,{sx:{color:t},children:[e.health,"%"]}),l(c4,{children:["Last updated:"," ",n(d2,{date:e.updatedAt,live:!1})]})]})})]}),l(A,{children:[n(Zt,{children:"Toggle report"}),l(e3,{children:[n("li",{children:n(x,{condition:Boolean(e.activeCount),show:a})}),n(x,{condition:Boolean(e.activeCount),show:n(t3,{children:"Also includes potentially stale toggles."})}),n("li",{children:n(x,{condition:Boolean(e.staleCount),show:r})})]})]}),l(A,{sx:{flexBasis:"40%"},children:[n(Zt,{children:"Potential actions"}),n(e3,{children:n("li",{children:n(x,{condition:Boolean(e.potentiallyStaleCount),show:o})})}),n(x,{condition:Boolean(e.potentiallyStaleCount),show:n(t3,{children:"Review your feature toggles and delete unused toggles."}),elseShow:n("span",{children:"No action is required"})})]})]})},d4=({row:e})=>{const t=h1();return e.original.expiredAt?n(ht,{value:e.original.expiredAt}):n(i1,{children:n(j,{variant:"body2",color:t.palette.text.secondary,children:"N/A"})})},u4=h("span")(({theme:e})=>({display:"flex",gap:"1ch",alignItems:"center",color:e.palette.warning.dark,"& svg":{color:e.palette.warning.main}})),p4=h("span")(({theme:e})=>({display:"flex",gap:"1ch",alignItems:"center",color:e.palette.success.dark,"& svg":{color:e.palette.success.main}})),h4=({row:e})=>e.original.status==="potentially-stale"?n(i1,{children:l(u4,{children:[n(ur,{}),n("span",{children:"Potentially stale"})]})}):n(i1,{children:l(p4,{children:[n(e0,{}),n("span",{children:"Healthy"})]})}),n3=40,m4=7,x0={[Bn]:n3,[Vn]:n3,[Mn]:m4},w0=(e,t)=>Math.abs($n(e,t)),S0=(e,t)=>e>=x0[t],g4=e=>{const{type:t,createdAt:a}=e,r=t0(a),o=new Date,i=w0(r,o);return S0(i,t)&&t!==n0&&t!==a0?"potentially-stale":"healthy"},f4=e=>{const{type:t,createdAt:a}=e;if(t===n0||t===a0)return;const r=t0(a),o=new Date,i=w0(r,o);if(S0(i,t)){const s=i-x0[t];return hr(o,s).toISOString()}},v4=({projectId:e,features:t})=>{const a=h1(),r=g1(a.breakpoints.down("sm")),o=g1(a.breakpoints.down("md")),i=g1(a.breakpoints.down("lg")),s=u.useMemo(()=>t.map(S=>({project:e,name:S.name,type:S.type,stale:S.stale,status:g4(S),lastSeenAt:S.lastSeenAt,createdAt:S.createdAt,expiredAt:f4(S)})),[e,t]),c=u.useMemo(()=>({hiddenColumns:[],sortBy:[{id:"createdAt"}]}),[]),{headerGroups:d,rows:p,prepareRow:m,state:{globalFilter:v},setGlobalFilter:g,setHiddenColumns:b}=r1.useTable({columns:a3,data:s,initialState:c,sortTypes:Re,autoResetGlobalFilter:!1,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0},r1.useGlobalFilter,r1.useFlexLayout,r1.useSortBy);ft([{condition:r,columns:["stale"]},{condition:o,columns:["expiredAt","lastSeenAt"]},{condition:i,columns:["createdAt"]}],b,a3);const w=p.length<s.length?`Feature toggles (${p.length} of ${s.length})`:`Feature toggles (${s.length})`;return l(d1,{header:n(s1,{title:w,actions:n(w1,{initialValue:v,onChange:g})}),children:[n(ce,{value:v,children:n(gt,{headerGroups:d,prepareRow:m,rows:p})}),n(x,{condition:p.length===0,show:n(x,{condition:(v==null?void 0:v.length)>0,show:l(y1,{children:["No feature toggles found matching “",v,"”"]}),elseShow:n(y1,{children:"No feature toggles available. Get started by adding a new feature toggle."})})})]})},a3=[{Header:"Seen",accessor:"lastSeenAt",sortType:"date",align:"center",Cell:N3,disableGlobalFilter:!0,maxWidth:85},{Header:"Type",accessor:"type",align:"center",Cell:q3,disableGlobalFilter:!0,maxWidth:85},{Header:"Name",accessor:"name",sortType:"alphanumeric",Cell:Ln,minWidth:120},{Header:"Created",accessor:"createdAt",sortType:"date",Cell:ht,disableGlobalFilter:!0,maxWidth:150},{Header:"Expired",accessor:"expiredAt",Cell:d4,disableGlobalFilter:!0,maxWidth:150},{Header:"Status",id:"status",accessor:"status",Cell:h4,disableGlobalFilter:!0,width:180},{Header:"State",accessor:"stale",sortType:"boolean",Cell:Hn,disableGlobalFilter:!0,maxWidth:120}],y4=()=>{const e=Y("projectId"),t=k1(e);S1(`Project health – ${t}`);const{healthReport:a,refetchHealthReport:r,error:o}=Xo(e,{refreshInterval:15*1e3});return a?l("div",{children:[n(x,{condition:Boolean(o),show:n(B3,{"data-loading":!0,style:{maxWidth:"500px",marginTop:"1rem"},onClick:r,text:`Could not fetch health rating for ${e}`})}),n(l4,{healthReport:a}),n(v4,{projectId:e,features:a.features})]}):null},b4=h("div")(({theme:e})=>({borderRadius:"12.5px",backgroundColor:e.palette.background.paper,padding:"2rem"})),C4=()=>{const e=Y("projectId");return n(b4,{children:n(Wn,{title:"Event Log",project:e,displayInline:!0})})},T0=(e,t)=>{const{data:a,error:r,mutate:o}=se(G1(`api/admin/projects/${e}/change-requests/${t}`),_4,{refreshInterval:15e3});return{data:a,loading:!r&&!a,refetchChangeRequest:()=>o(),error:r}},_4=e=>fetch(e).then(K1("Request changes")).then(t=>t.json()),x4=h(B1)(({theme:e})=>({padding:e.spacing(3,4),borderRadius:`${e.shape.borderRadiusLarge}px`}));h(A)(({theme:e})=>({display:"flex",alignItems:"center",marginBottom:e.spacing(2)}));const w4=h(A)(({theme:e})=>({display:"flex",alignItems:"center"})),S4=h(j)(({theme:e})=>({display:"flex",alignItems:"center",marginRight:e.spacing(1),fontSize:e.fontSizes.mainHeader})),T4=h(Nn)(({theme:e})=>({padding:e.spacing(.75,1.5),backgroundColor:e.palette.background.elevation2})),A0=h(vt)(({theme:e})=>({height:"24px",width:"24px"})),A4=({changeRequest:e})=>{var r,o,i;const[t,a]=u.useState(e.title);return l(x4,{elevation:0,children:[n(qn,{environmentChangeRequest:e,title:t,setTitle:a,children:n(S4,{variant:"h1",sx:{mr:1.5},children:t})}),l(w4,{children:[n(r0,{state:e.state}),l(j,{variant:"body2",sx:s=>({margin:s.spacing("auto",0,"auto",2)}),children:["Created"," ",n(d2,{minPeriod:60,date:new Date(e.createdAt)})," ","by"]}),n(A,{sx:s=>({marginLeft:s.spacing(1)}),children:n(J1,{title:(r=e==null?void 0:e.createdBy)==null?void 0:r.username,children:n(A0,{src:(o=e==null?void 0:e.createdBy)==null?void 0:o.imageUrl})})}),n(j,{variant:"body2",sx:s=>({marginLeft:s.spacing(.5)}),children:(i=e==null?void 0:e.createdBy)==null?void 0:i.username}),n(A,{sx:s=>({marginLeft:s.spacing(1.5)}),children:n(T4,{variant:"outlined",children:l(j,{variant:"body2",sx:{lineHeight:1},children:["Environment:"," ",n(j,{display:"inline",fontWeight:"bold",variant:"body2",component:"span",children:e==null?void 0:e.environment})," ",n(Un,{})," Updates:"," ",l(j,{variant:"body2",display:"inline",fontWeight:"bold",component:"span",children:[e.features.length," ",e.features.length===1?"feature toggle":"feature toggles"]})]})})})]})]})};function o1(){return o1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},o1.apply(this,arguments)}function me(e,t){if(e==null)return{};var a={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(a[o]=e[o]);return a}const E4=u.createContext({}),Ye=E4;function k4(e){return le("MuiTimeline",e)}Y1("MuiTimeline",["root","positionLeft","positionRight","positionAlternate"]);const D4=["position","className"],R4=e=>{const{position:t,classes:a}=e,r={root:["root",t&&`position${F1(t)}`]};return pe(r,k4,a)},F4=h("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,a.position&&t[`position${F1(a.position)}`]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),Z4=u.forwardRef(function(t,a){const r=de({props:t,name:"MuiTimeline"}),{position:o="right",className:i}=r,s=me(r,D4),c=o1({},r,{position:o}),d=R4(c),p=u.useMemo(()=>({position:o}),[o]);return n(Ye.Provider,{value:p,children:n(F4,o1({className:ue(d.root,i),ownerState:c,ref:a},s))})}),E0=Z4;function P4(e){return le("MuiTimelineContent",e)}const I4=Y1("MuiTimelineContent",["root","positionLeft","positionRight","positionAlternate"]),j4=["className"],O4=e=>{const{position:t,classes:a}=e,r={root:["root",`position${F1(t)}`]};return pe(r,P4,a)},z4=h(j,{name:"MuiTimelineContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[`position${F1(a.position)}`]]}})(({ownerState:e})=>o1({flex:1,padding:"6px 16px",textAlign:"left"},e.position==="left"&&{textAlign:"right"})),$4=u.forwardRef(function(t,a){const r=de({props:t,name:"MuiTimelineContent"}),{className:o}=r,i=me(r,j4),{position:s}=u.useContext(Ye),c=o1({},r,{position:s||"right"}),d=O4(c);return n(z4,o1({component:"div",className:ue(d.root,o),ownerState:c,ref:a},i))}),k0=$4,B4=Y1("MuiTimelineOppositeContent",["root","positionLeft","positionRight","positionAlternate"]),V4=B4;function M4(e){return le("MuiTimelineItem",e)}const L4=Y1("MuiTimelineItem",["root","positionLeft","positionRight","positionAlternate","missingOppositeContent"]),D0=L4,H4=["position","className"],W4=e=>{const{position:t,classes:a,hasOppositeContent:r}=e,o={root:["root",`position${F1(t)}`,!r&&"missingOppositeContent"]};return pe(o,M4,a)},N4=h("li",{name:"MuiTimelineItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[`position${F1(a.position)}`]]}})(({ownerState:e})=>o1({listStyle:"none",display:"flex",position:"relative",minHeight:70},e.position==="left"&&{flexDirection:"row-reverse"},e.position==="alternate"&&{"&:nth-of-type(even)":{flexDirection:"row-reverse",[`& .${I4.root}`]:{textAlign:"right"},[`& .${V4.root}`]:{textAlign:"left"}}},!e.hasOppositeContent&&{"&:before":{content:'""',flex:1,padding:"6px 16px"}})),q4=u.forwardRef(function(t,a){const r=de({props:t,name:"MuiTimelineItem"}),{position:o,className:i}=r,s=me(r,H4),{position:c}=u.useContext(Ye);let d=!1;u.Children.forEach(r.children,g=>{Gn(g,["TimelineOppositeContent"])&&(d=!0)});const p=o1({},r,{position:o||c||"right",hasOppositeContent:d}),m=W4(p),v=u.useMemo(()=>({position:p.position}),[p.position]);return n(Ye.Provider,{value:v,children:n(N4,o1({className:ue(m.root,i),ownerState:p,ref:a},s))})}),qe=q4;function U4(e){return le("MuiTimelineSeparator",e)}Y1("MuiTimelineSeparator",["root"]);const G4=["className"],K4=e=>{const{classes:t}=e;return pe({root:["root"]},U4,t)},J4=h("div",{name:"MuiTimelineSeparator",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",flex:0,alignItems:"center"}),Y4=u.forwardRef(function(t,a){const r=de({props:t,name:"MuiTimelineSeparator"}),{className:o}=r,i=me(r,G4),s=r,c=K4(s);return n(J4,o1({className:ue(c.root,o),ownerState:s,ref:a},i))}),Ue=Y4;function Q4(e){return le("MuiTimelineDot",e)}Y1("MuiTimelineDot",["root","filled","outlined","filledGrey","outlinedGrey","filledPrimary","outlinedPrimary","filledSecondary","outlinedSecondary"]);const X4=["className","color","variant"],ei=e=>{const{color:t,variant:a,classes:r}=e,o={root:["root",a,t!=="inherit"&&`${a}${F1(t)}`]};return pe(o,Q4,r)},ti=h("span",{name:"MuiTimelineDot",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[a.color!=="inherit"&&`${a.variant}${F1(a.color)}`],t[a.variant]]}})(({ownerState:e,theme:t})=>o1({display:"flex",alignSelf:"baseline",borderStyle:"solid",borderWidth:2,padding:4,borderRadius:"50%",boxShadow:(t.vars||t).shadows[1],margin:"11.5px 0"},e.variant==="filled"&&o1({borderColor:"transparent"},e.color!=="inherit"&&o1({},e.color==="grey"?{color:(t.vars||t).palette.grey[50],backgroundColor:(t.vars||t).palette.grey[400]}:{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main})),e.variant==="outlined"&&o1({boxShadow:"none",backgroundColor:"transparent"},e.color!=="inherit"&&o1({},e.color==="grey"?{borderColor:(t.vars||t).palette.grey[400]}:{borderColor:(t.vars||t).palette[e.color].main})))),ni=u.forwardRef(function(t,a){const r=de({props:t,name:"MuiTimelineDot"}),{className:o,color:i="grey",variant:s="filled"}=r,c=me(r,X4),d=o1({},r,{color:i,variant:s}),p=ei(d);return n(ti,o1({className:ue(p.root,o),ownerState:d,ref:a},c))}),R0=ni;function ai(e){return le("MuiTimelineConnector",e)}Y1("MuiTimelineConnector",["root"]);const ri=["className"],oi=e=>{const{classes:t}=e;return pe({root:["root"]},ai,t)},ii=h("span",{name:"MuiTimelineConnector",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.grey[400],flexGrow:1})),si=u.forwardRef(function(t,a){const r=de({props:t,name:"MuiTimelineConnector"}),{className:o}=r,i=me(r,ri),s=r,c=oi(s);return n(ii,o1({className:ue(c.root,o),ownerState:s,ref:a},i))}),S2=si,ci=h(B1)(({theme:e})=>({marginTop:e.spacing(2),borderRadius:`${e.shape.borderRadiusLarge}px`})),li=h(A)(({theme:e})=>({padding:e.spacing(2),marginBottom:`-${e.spacing(4)}`})),di=h(E0)(()=>({[`& .${D0.root}:before`]:{flex:0,padding:0}})),ui=({state:e})=>{const t=r=>["Draft","In review","Approved","Applied"].map(i=>({title:i,active:i===r}));return n(ci,{elevation:0,children:n(li,{children:n(di,{children:(()=>{const r=t(e),o=r.findIndex(s=>s.active),i=o!==-1?o:null;return e==="Cancelled"?hi(r):pi(r,i)})()})})})},pi=(e,t)=>e.map(({title:a},r)=>{const o=r<e.length-1,i=n(x,{condition:o,show:n(S2,{})});return t!==null&&t>=r?Ge("success",a,i):t!==null&&t+1===r?Ge("primary",a,i,{variant:"outlined"}):Ge("grey",a,i)}),hi=e=>e.map(({title:t},a)=>{const r=a<e.length-1;return Ge("grey",t,n(x,{condition:r,show:n(S2,{})}))}),Ge=(e,t,a,r={})=>l(qe,{children:[l(Ue,{children:[n(R0,{color:e,...r}),a]}),n(k0,{children:t})]},t),mi=h(A)(({theme:e})=>({marginBottom:e.spacing(2)})),gi=({actualApprovals:e,minApprovals:t})=>l(G,{children:["Reviewers"," ",l(j,{component:"span",color:"text.secondary",children:["(",e,"/",t," required)"]})]}),fi=({header:e,children:t})=>l(B1,{elevation:0,sx:a=>({marginTop:a.spacing(2),padding:a.spacing(4),borderRadius:r=>`${r.shape.borderRadiusLarge}px`}),children:[n(mi,{children:e}),n(j,{variant:"body1",color:"text.secondary",children:n(x,{condition:we.Children.count(t)>0,show:"Approved by",elseShow:"No approvals yet"})}),t]}),T2=()=>e=>e!=="color"&&e!=="sx"&&e!=="approved"&&e!=="border"&&e!=="bgColor"&&e!=="svgColor",oe=h(A)(({theme:e})=>({display:"flex",alignItems:"center"})),vi=h(o0)(({theme:e})=>({color:e.palette.error.main,height:"35px",width:"35px",marginRight:e.spacing(1)})),r3=h(o0)(({theme:e})=>({color:e.palette.warning.main,height:"35px",width:"35px",marginRight:e.spacing(1)})),Yt=h(i0)(({theme:e})=>({color:e.palette.success.main,height:"35px",width:"35px",marginRight:e.spacing(1)})),yi=h(A)(({theme:e})=>({display:"flex",marginTop:e.spacing(2)})),bi=h(A,{shouldForwardProp:T2()})(({theme:e,bgColor:t,svgColor:a})=>({borderRadius:`${e.shape.borderRadiusMedium}px`,backgroundColor:t,padding:e.spacing(1,2),marginRight:e.spacing(2),height:"45px",width:"45px",display:"flex",alignItems:"center",justifyContent:"center",svg:{color:a}})),F0=h(M3)(({theme:e})=>({margin:e.spacing(2.5,0)})),Ci=h(A,{shouldForwardProp:T2()})(({theme:e,border:t})=>({borderRadius:`${e.shape.borderRadiusLarge}px`,border:t,padding:e.spacing(3),width:"100%"})),ie=h(j,{shouldForwardProp:T2()})(({theme:e,color:t})=>({fontWeight:"bold",color:t})),_i=(e,t)=>e==="Approved"?`2px solid ${t.palette.success.main}`:e==="Applied"?`2px solid ${t.palette.primary.main}`:`1px solid ${t.palette.divider}`,xi=(e,t)=>e==="Approved"?{bgColor:t.palette.success.main,svgColor:t.palette.background.paper}:e==="Applied"?{bgColor:t.palette.primary.main,svgColor:t.palette.background.paper}:{bgColor:t.palette.background.elevation2,svgColor:t.palette.neutral.main},wi=({changeRequest:e})=>{const t=h1();return l(yi,{children:[n(bi,{...xi(e.state,t),children:n(Kn,{style:{transform:"scale(1.5)"}})}),n(Ci,{sx:{backgroundColor:e.state==="In review"?t.palette.warning.light:"initial"},border:_i(e.state,t),children:n(Si,{changeRequest:e})})]})},Si=({changeRequest:e})=>{const{state:t}=e;return t?t==="Approved"?n(Ti,{}):t==="Applied"?n(Ei,{}):t==="Cancelled"?n(ki,{}):n(Ai,{minApprovals:e.minApprovals}):null},Ti=()=>{const e=h1();return l(G,{children:[l(oe,{children:[n(Yt,{}),l(A,{children:[n(ie,{color:e.palette.success.dark,children:"Changes approved"}),n(j,{children:"One approving review from requested approvers"})]})]}),n(F0,{}),l(oe,{children:[n(Yt,{}),n(A,{children:n(ie,{color:e.palette.success.dark,children:"Changes are ready to be applied"})})]})]})},Ai=({minApprovals:e})=>{const t=h1();return l(G,{children:[l(oe,{children:[n(r3,{}),l(A,{children:[n(ie,{color:t.palette.warning.dark,children:"Review required"}),l(j,{children:["At least ",e," approval(s) must be submitted before changes can be applied"]})]})]}),n(F0,{}),l(oe,{children:[n(r3,{}),n(ie,{color:t.palette.warning.dark,children:"Apply changes is blocked"})]})]})},Ei=()=>{const e=h1();return n(G,{children:l(oe,{children:[n(Yt,{sx:{color:e.palette.primary.main}}),n(A,{children:n(ie,{color:e.palette.primary.main,children:"Changes applied"})})]})})},ki=()=>{const e=h1();return n(G,{children:l(oe,{children:[n(vi,{}),n(A,{children:n(ie,{color:e.palette.error.main,children:"Changes cancelled"})})]})})};var A2={},Di=ke;Object.defineProperty(A2,"__esModule",{value:!0});var Z0=A2.default=void 0,Ri=Di(Ee()),Fi=De,Zi=(0,Ri.default)((0,Fi.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");Z0=A2.default=Zi;const Pi=({disabled:e})=>{const{isAdmin:t}=u.useContext(he),a=Y("projectId"),r=Y("id"),{user:o}=s0(),{refetchChangeRequest:i,data:s}=T0(a,r),{refetch:c}=u2(a),{setToastApiError:d,setToastData:p}=u1(),{changeState:m}=p2(),[v,g]=we.useState(!1),b=we.useRef(null),w=async()=>{try{await m(a,Number(r),{state:"Approved"}),i(),c(),p({type:"success",title:"Success",text:"Changes approved"})}catch(y){d(f1(y))}},S=()=>{g(y=>!y)},Z=y=>{b.current&&b.current.contains(y.target)||g(!1)};return l(we.Fragment,{children:[n(h2,{variant:"contained",disabled:e||(s==null?void 0:s.createdBy.id)===(o==null?void 0:o.id)&&!t,"aria-controls":v?"review-options-menu":void 0,"aria-expanded":v?"true":void 0,"aria-label":"review changes","aria-haspopup":"menu",onClick:S,ref:b,endIcon:n(Z0,{}),permission:Jn,projectId:a,environmentId:s==null?void 0:s.environment,children:"Review changes"}),n(Y3,{sx:{zIndex:1},open:v,anchorEl:b.current,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:y,placement:P})=>n(Yn,{...y,style:{transformOrigin:P==="bottom"?"center top":"center bottom"},children:n(B1,{className:"dropdown-outline",children:n(Q3,{onClickAway:Z,children:n(dt,{id:"review-options-menu",autoFocusItem:!0,children:n(W1,{onClick:w,children:"Approve changes"})})})})})})]})},Ii=h(A)(({theme:e})=>({display:"flex",alignItems:"center",flexWrap:"wrap",marginTop:e.spacing(1.5),gap:e.spacing(1)})),ji=h(i0)(({theme:e})=>({color:e.palette.success.main,marginLeft:"auto"})),Oi=({name:e,imageUrl:t})=>l(Ii,{children:[n(A0,{src:t}),n(j,{variant:"body1",color:"text.primary",sx:{maxWidth:"170px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},children:e}),n(ji,{})]});var P0={},E2={},k2={};Object.defineProperty(k2,"__esModule",{value:!0});var zi=u,$i=Bi(zi);function Bi(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}k2.default=function(e,t,a){return $i.createElement("a",{href:e,key:a},t)};var D2={};Object.defineProperty(D2,"__esModule",{value:!0});D2.default=function(e){return e};var R2={},Pt,o3;function Vi(){return o3||(o3=1,Pt=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Pt}var It,i3;function Mi(){return i3||(i3=1,It=/[\0-\x1F\x7F-\x9F]/),It}var jt,s3;function Li(){return s3||(s3=1,jt=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),jt}var Ot,c3;function Hi(){return c3||(c3=1,Ot=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),Ot}var zt,l3;function Wi(){return l3||(l3=1,zt=function(e){var t={};t.src_Any=Vi().source,t.src_Cc=Mi().source,t.src_Z=Li().source,t.src_P=Hi().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var a="[><|]";return t.src_pseudo_letter="(?:(?!"+a+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+a+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+a+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+a+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),zt}function Qt(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(a){a&&Object.keys(a).forEach(function(r){e[r]=a[r]})}),e}function Ct(e){return Object.prototype.toString.call(e)}function Ni(e){return Ct(e)==="[object String]"}function qi(e){return Ct(e)==="[object Object]"}function Ui(e){return Ct(e)==="[object RegExp]"}function d3(e){return Ct(e)==="[object Function]"}function Gi(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var I0={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ki(e){return Object.keys(e||{}).reduce(function(t,a){return t||I0.hasOwnProperty(a)},!1)}var Ji={"http:":{validate:function(e,t,a){var r=e.slice(t);return a.re.http||(a.re.http=new RegExp("^\\/\\/"+a.re.src_auth+a.re.src_host_port_strict+a.re.src_path,"i")),a.re.http.test(r)?r.match(a.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,a){var r=e.slice(t);return a.re.no_http||(a.re.no_http=new RegExp("^"+a.re.src_auth+"(?:localhost|(?:(?:"+a.re.src_domain+")\\.)+"+a.re.src_domain_root+")"+a.re.src_port+a.re.src_host_terminator+a.re.src_path,"i")),a.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(a.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,a){var r=e.slice(t);return a.re.mailto||(a.re.mailto=new RegExp("^"+a.re.src_email_name+"@"+a.re.src_host_strict,"i")),a.re.mailto.test(r)?r.match(a.re.mailto)[0].length:0}}},Yi="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Qi="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Xi(e){e.__index__=-1,e.__text_cache__=""}function es(e){return function(t,a){var r=t.slice(a);return e.test(r)?r.match(e)[0].length:0}}function u3(){return function(e,t){t.normalize(e)}}function Qe(e){var t=e.re=Wi()(e.__opts__),a=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||a.push(Yi),a.push(t.src_xn),t.src_tlds=a.join("|");function r(c){return c.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var o=[];e.__compiled__={};function i(c,d){throw new Error('(LinkifyIt) Invalid schema "'+c+'": '+d)}Object.keys(e.__schemas__).forEach(function(c){var d=e.__schemas__[c];if(d!==null){var p={validate:null,link:null};if(e.__compiled__[c]=p,qi(d)){Ui(d.validate)?p.validate=es(d.validate):d3(d.validate)?p.validate=d.validate:i(c,d),d3(d.normalize)?p.normalize=d.normalize:d.normalize?i(c,d):p.normalize=u3();return}if(Ni(d)){o.push(c);return}i(c,d)}}),o.forEach(function(c){e.__compiled__[e.__schemas__[c]]&&(e.__compiled__[c].validate=e.__compiled__[e.__schemas__[c]].validate,e.__compiled__[c].normalize=e.__compiled__[e.__schemas__[c]].normalize)}),e.__compiled__[""]={validate:null,normalize:u3()};var s=Object.keys(e.__compiled__).filter(function(c){return c.length>0&&e.__compiled__[c]}).map(Gi).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),Xi(e)}function ts(e,t){var a=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(a,r);this.schema=e.__schema__.toLowerCase(),this.index=a+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function p3(e,t){var a=new ts(e,t);return e.__compiled__[a.schema].normalize(a,e),a}function b1(e,t){if(!(this instanceof b1))return new b1(e,t);t||Ki(e)&&(t=e,e={}),this.__opts__=Qt({},I0,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Qt({},Ji,e),this.__compiled__={},this.__tlds__=Qi,this.__tlds_replaced__=!1,this.re={},Qe(this)}b1.prototype.add=function(t,a){return this.__schemas__[t]=a,Qe(this),this};b1.prototype.set=function(t){return this.__opts__=Qt(this.__opts__,t),this};b1.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var a,r,o,i,s,c,d,p,m;if(this.re.schema_test.test(t)){for(d=this.re.schema_search,d.lastIndex=0;(a=d.exec(t))!==null;)if(i=this.testSchemaAt(t,a[2],d.lastIndex),i){this.__schema__=a[2],this.__index__=a.index+a[1].length,this.__last_index__=a.index+a[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(p=t.search(this.re.host_fuzzy_test),p>=0&&(this.__index__<0||p<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=r.index+r[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(m=t.indexOf("@"),m>=0&&(o=t.match(this.re.email_fuzzy))!==null&&(s=o.index+o[1].length,c=o.index+o[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&c>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=c))),this.__index__>=0};b1.prototype.pretest=function(t){return this.re.pretest.test(t)};b1.prototype.testSchemaAt=function(t,a,r){return this.__compiled__[a.toLowerCase()]?this.__compiled__[a.toLowerCase()].validate(t,r,this):0};b1.prototype.match=function(t){var a=0,r=[];this.__index__>=0&&this.__text_cache__===t&&(r.push(p3(this,a)),a=this.__last_index__);for(var o=a?t.slice(a):t;this.test(o);)r.push(p3(this,a)),o=o.slice(this.__last_index__),a+=this.__last_index__;return r.length?r:null};b1.prototype.tlds=function(t,a){return t=Array.isArray(t)?t:[t],a?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,o,i){return r!==i[o-1]}).reverse(),Qe(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Qe(this),this)};b1.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};b1.prototype.onCompile=function(){};var ns=b1;const as=["aaa","aarp","abarth","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alfaromeo","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cbs","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cookingchannel","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","etisalat","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fiat","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","foodnetwork","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","guardian","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hgtv","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hoteles","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerrylogistics","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kinder","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","lancia","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","lipsy","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","maserati","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mutual","mv","mw","mx","my","mz","na","nab","nagoya","name","natura","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","northwesternmutual","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","oldnavy","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","passagens","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocher","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tiffany","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelchannel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volkswagen","volvo","vote","voting","voto","voyage","vu","vuelos","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","اتصالات","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"];Object.defineProperty(R2,"__esModule",{value:!0});var rs=ns,os=j0(rs),is=as,ss=j0(is);function j0(e){return e&&e.__esModule?e:{default:e}}var O0=new os.default;O0.tlds(ss.default);R2.default=function(e){return O0.match(e)};var F2={};Object.defineProperty(F2,"__esModule",{value:!0});F2.default=function(e){return e};Object.defineProperty(E2,"__esModule",{value:!0});var cs=function(){function e(t,a){for(var r=0;r<a.length;r++){var o=a[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),ls=u,_e=ys(ls),ds=k2,us=_t(ds),ps=D2,hs=_t(ps),ms=R2,gs=_t(ms),fs=F2,vs=_t(fs);function _t(e){return e&&e.__esModule?e:{default:e}}function ys(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function bs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cs(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function _s(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var z0=function(e){_s(t,e);function t(){return bs(this,t),Cs(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return cs(t,[{key:"parseString",value:function(r){var o=this;if(r==="")return r;var i=this.props.matchDecorator(r);if(!i)return r;var s=[],c=0;return i.forEach(function(d,p){d.index>c&&s.push(r.substring(c,d.index));var m=o.props.hrefDecorator(d.url),v=o.props.textDecorator(d.text),g=o.props.componentDecorator(m,v,p);s.push(g),c=d.lastIndex}),r.length>c&&s.push(r.substring(c)),s.length===1?s[0]:s}},{key:"parse",value:function(r){var o=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof r=="string"?this.parseString(r):_e.isValidElement(r)&&r.type!=="a"&&r.type!=="button"?_e.cloneElement(r,{key:i},this.parse(r.props.children)):Array.isArray(r)?r.map(function(s,c){return o.parse(s,c)}):r}},{key:"render",value:function(){return _e.createElement(_e.Fragment,null,this.parse(this.props.children))}}]),t}(_e.Component);z0.defaultProps={componentDecorator:us.default,hrefDecorator:hs.default,matchDecorator:gs.default,textDecorator:vs.default};E2.default=z0;Object.defineProperty(P0,"__esModule",{value:!0});var xs=E2,ws=Ss(xs);function Ss(e){return e&&e.__esModule?e:{default:e}}var Ts=P0.default=ws.default;const As=h(A)(({theme:e})=>({display:"flex",marginTop:e.spacing(2)})),Es=h(B1)(({theme:e})=>({width:"100%",padding:e.spacing(1.5,3,2.5,3),backgroundColor:e.palette.neutral.light,borderRadius:e.shape.borderRadiusLarge,borderColor:e.palette.divider})),ks=h(A)(({theme:e})=>({display:"flex",borderBottom:"1px solid",borderColor:e.palette.divider,paddingBottom:e.spacing(1.5)})),Ds=({comment:e})=>l(As,{children:[n(J1,{title:e.createdBy.username,children:n(Qn,{src:e.createdBy.imageUrl})}),l(Es,{variant:"outlined",children:[n(ks,{children:l(A,{children:[n("strong",{children:e.createdBy.username})," ",l(j,{color:"text.secondary",component:"span",children:["commented"," ",n(d2,{minPeriod:60,date:new Date(e.createdAt)})]})]})}),n(A,{sx:{paddingTop:2.5},children:n(Ts,{children:e.text})})]})]}),Rs=h(A)(({theme:e})=>({width:"30%",display:"flex",flexDirection:"column",[e.breakpoints.down("sm")]:{width:"100%"}})),Fs=h(B1)(({theme:e})=>({marginTop:e.spacing(2),marginLeft:e.spacing(2),width:"70%",padding:e.spacing(1,2),borderRadius:e.shape.borderRadiusLarge,[e.breakpoints.down("sm")]:{marginLeft:0,width:"100%"}})),Zs=h(A)(({theme:e})=>({marginTop:e.spacing(3),display:"flex",justifyContent:"flex-end"})),Ps=h(A)(({theme:e})=>({padding:e.spacing(2)})),Is=h(A)(({theme:e})=>({display:"flex",[e.breakpoints.down("sm")]:{flexDirection:"column"}})),js=()=>{var M,W;const e=Y("projectId"),[t,a]=u.useState(!1),{user:r}=s0(),{isAdmin:o}=u.useContext(he),[i,s]=u.useState(""),c=Y("id"),{data:d,refetchChangeRequest:p}=T0(e,c),{changeState:m,addComment:v,loading:g}=p2(),{refetch:b}=u2(e),{setToastData:w,setToastApiError:S}=u1(),{isChangeRequestConfigured:Z}=pt(e);if(!d)return null;const y=Z(d.environment),P=async()=>{try{await m(e,Number(c),{state:"Applied"}),p(),b(),w({type:"success",title:"Success",text:"Changes applied"})}catch(O){S(f1(O))}},H=async()=>{try{await v(e,c,i),s(""),p(),w({type:"success",title:"Success",text:"Comment added"})}catch(O){S(f1(O))}},V=async()=>{try{await m(e,Number(c),{state:"Cancelled"}),a(!1),p(),b(),w({type:"success",title:"Success",text:"Changes cancelled"})}catch(O){S(f1(O))}},N=()=>a(!0),_=()=>a(!1),D=(d==null?void 0:d.createdBy.id)===(r==null?void 0:r.id)&&d.state==="In review"&&!o,z=d.approvals.some(O=>O.createdBy.id===(r==null?void 0:r.id));return l(G,{children:[n(A4,{changeRequest:d}),l(Is,{children:[l(Rs,{children:[n(ui,{state:d.state}),n(fi,{header:n(gi,{actualApprovals:d.approvals.length,minApprovals:d.minApprovals}),children:(M=d.approvals)==null?void 0:M.map(O=>n(Oi,{name:O.createdBy.username||"Unknown user",imageUrl:O.createdBy.imageUrl},O.createdBy.username))})]}),n(Fs,{elevation:0,children:l(Ps,{children:["Requested Changes (",Xn(d),")",n(ea,{changeRequest:d,onRefetch:p}),(W=d.comments)==null?void 0:W.map(O=>n(Ds,{comment:O},O.id)),n(ta,{user:r,commentText:i,onTypeComment:s,children:n(v1,{variant:"outlined",onClick:H,disabled:!y||i.trim().length===0||i.trim().length>1e3,children:"Comment"})}),n(x,{condition:D,show:n(U1,{sx:O=>({marginTop:O.spacing(1.5)}),severity:"info",children:"You can not approve your own change request"})}),n(wi,{changeRequest:d}),l(Zs,{children:[n(x,{condition:d.state==="In review"&&!z,show:n(Pi,{disabled:!y})}),n(x,{condition:d.state==="Approved",show:n(h2,{variant:"contained",onClick:P,projectId:e,permission:na,environmentId:d.environment,disabled:!y||g,children:"Apply changes"})}),n(x,{condition:d.state!=="Applied"&&d.state!=="Cancelled"&&(d.createdBy.id===(r==null?void 0:r.id)||o),show:n(v1,{sx:{marginLeft:O=>O.spacing(2)},variant:"outlined",onClick:N,children:"Cancel changes"})})]})]})}),l(Ae,{open:t,onClick:V,onClose:_,title:"Cancel change request",children:[n(j,{sx:{marginBottom:2},children:"You are about to cancel this change request"}),n(j,{variant:"body2",sx:O=>({color:O.palette.neutral.dark}),children:"The change request will be moved to closed, and it can't be applied anymore. Once cancelled, the change request can't be reopened."})]})]})]})},Os=({value:e})=>{const t=()=>e?n(r0,{state:e}):null;return e?n(i1,{children:t()}):n(i1,{})},zs=h("div")(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",margin:0})),$s=({value:e})=>n(i1,{children:n(zs,{children:l(j,{component:"span",variant:"body2",children:[" ",e==null?void 0:e.username]})})}),Bs=h("div")(({theme:e})=>({display:"flex",flexDirection:"row",margin:0})),Vs=({value:e,row:{original:t}})=>{const a=Y("projectId"),{id:r,title:o,features:i}=t,s=`/projects/${a}/change-requests/${r}`;return e?l(i1,{sx:{minWidth:"200px"},children:[n(Bs,{children:n(j,{variant:"body2",children:n(c2,{component:E1,underline:"hover",to:s,sx:c=>({paddingTop:c.spacing(.2),marginRight:c.spacing(1),"&:hover":{textDecoration:"underline"}}),children:o})})}),l("span",{children:[`${i==null?void 0:i.length}`," ",i.length<=1?"update":"updates"]})]}):n(i1,{})},Ms=L3()(e=>({header:{padding:e.spacing(0,4)},bodyClass:{padding:e.spacing(4),overflowX:"auto"}})),Ls=h(A)(({theme:e})=>({display:"flex",flexDirection:"column",width:"300px",padding:e.spacing(1,0,1,2)})),Hs=h(E1)(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",textDecoration:"none","&:hover, &:focus":{textDecoration:"underline"}})),Ws=h(E1)(({theme:e})=>({textDecoration:"none","&:hover, &:focus":{textDecoration:"underline"}})),Ns=h(A)(({theme:e})=>({display:"flex",flexDirection:"column",fontSize:e.fontSizes.smallBody,width:"100%",whiteSpace:"nowrap"})),qs=({value:e,project:t})=>{const a=e==null?void 0:e.map(r=>r.name);return n(Ls,{children:n(x,{condition:(a==null?void 0:a.length)<3,show:a==null?void 0:a.map(r=>n(Hs,{title:r,to:`/projects/${t}/features/${r}`,children:r})),elseShow:l(c0,{tooltipProps:{maxWidth:"800px"},tooltip:n(Ns,{children:a==null?void 0:a.map(r=>n(Ws,{title:r,to:`/projects/${t}/features/${r}`,children:r}))}),children:[a==null?void 0:a.length," toggles"]})})})},Us={id:"createdAt"},Gs=h("div")({paddingLeft:0,paddingBottom:0}),Ks=h(Ke)(({theme:e})=>({textTransform:"none",width:"auto",fontSize:e.fontSizes.bodySize,[e.breakpoints.up("md")]:{minWidth:160}})),Js=({changeRequests:e=[],loading:t,projectId:a})=>{var Q,L;const{classes:r}=Ms(),o=g1(aa.breakpoints.down("md")),[i,s]=l2(),[c,d]=u.useState(i.get("search")||""),{value:p,setValue:m}=ct(`${a}:ProjectChangeRequest`,Us),[v,g]=u.useMemo(()=>{const f=e.filter(R=>R.state!=="Cancelled"&&R.state!=="Applied"),k=e.filter(R=>R.state==="Cancelled"||R.state==="Applied");return[f,k]},[e]),b=[{title:"Change requests",data:v},{title:"Closed",data:g}],[w,S]=u.useState(0),Z=u.useMemo(()=>[{id:"Title",Header:"Title",width:100,canSort:!0,accessor:"title",searchable:!0,Cell:Vs},{id:"Updated feature toggles",Header:"Updated feature toggles",canSort:!1,accessor:"features",Cell:({value:f,row:{original:{title:k}}})=>n(qs,{project:a,value:f},k)},{Header:"By",accessor:"createdBy",maxWidth:180,canSort:!1,Cell:$s,align:"left"},{Header:"Submitted",accessor:"createdAt",searchable:!0,maxWidth:100,Cell:Je,sortType:"alphanumeric"},{Header:"Environment",accessor:"environment",searchable:!0,maxWidth:100,Cell:i1},{Header:"Status",accessor:"state",searchable:!0,maxWidth:"170px",Cell:Os}],[a]),{data:y,getSearchText:P,getSearchContext:H}=mt(Z,c,(Q=b[w])==null?void 0:Q.data),V=u.useMemo(()=>t?ra:y,[y,t]),[N]=u.useState(()=>({sortBy:[{id:i.get("sort")||p.id,desc:i.has("order")?i.get("order")==="desc":p.desc}],hiddenColumns:[]})),{headerGroups:_,rows:D,state:{sortBy:z},prepareRow:M,setHiddenColumns:W,getTableProps:O,getTableBodyProps:K}=r1.useTable({columns:Z,data:V,initialState:N,sortTypes:Re,autoResetHiddenColumns:!1,disableSortRemove:!0,autoResetSortBy:!1,defaultColumn:{Cell:i1}},r1.useSortBy);return ft([{condition:o,columns:["createdBy"]}],W,Z),u.useEffect(()=>{if(t)return;const f={};f.sort=z[0].id,z[0].desc&&(f.order="desc"),c&&(f.search=c),s(f,{replace:!0}),m(k=>({...k,id:z[0].id,desc:z[0].desc||!1}))},[t,z,c,s]),l(d1,{isLoading:t,bodyClass:r.bodyClass,headerClass:r.header,header:n(s1,{titleElement:n(Gs,{children:n(m2,{value:(L=b[w])==null?void 0:L.title,indicatorColor:"primary",textColor:"primary",variant:"scrollable",allowScrollButtonsMobile:!0,children:b.map((f,k)=>n(Ks,{label:`${f.title} (${f.data.length})`,value:f.title,onClick:()=>S(k)},f.title))})}),actions:n(w1,{initialValue:c,onChange:d,hasFilters:!0,getSearchContext:H})}),children:[n(ce,{value:P(c),children:l(nt,{...O(),children:[n(at,{headerGroups:_}),n(rt,{...K(),children:D.map(f=>(M(f),n(ot,{hover:!0,...f.getRowProps(),children:f.cells.map(k=>n(it,{...k.getCellProps(),padding:"none",children:k.render("Cell")}))})))})]})}),n(x,{condition:D.length===0,show:()=>n(x,{condition:(c==null?void 0:c.length)>0,show:l(y1,{children:["No changes found matching “",c,"”"]}),elseShow:n(y1,{children:"None of the changes were submitted yet."})})})]})},Ys=()=>{const e=Y("projectId"),t=k1(e),{isOss:a,isPro:r}=p1();S1(`Change requests – ${t}`);const{changeRequests:o,loading:i}=_0(e);return a()||r()?n(d1,{sx:{justifyContent:"center"},children:n(yt,{feature:"change-requests"})}):n(Js,{changeRequests:o,projectId:e,loading:i})};var q=(e=>(e.USER="USERS",e.GROUP="GROUPS",e.SERVICE_ACCOUNT="SERVICE ACCOUNTS",e))(q||{});const ge=(e,t={})=>{const a=G1(`api/admin/projects/${e}/access`),r=()=>fetch(a,{method:"GET"}).then(K1("project access")).then(v=>v.json()),o=`api/admin/projects/${e}/users`,{data:i,error:s}=se(o,r,t),[c,d]=u.useState(!s&&!i),p=()=>{X3(o)};return u.useEffect(()=>{d(!s&&!i)},[i,s]),{access:u.useMemo(()=>{if(i)return Qs({roles:i.roles,users:i.users.filter(({accountType:v})=>!v||v==="User"),serviceAccounts:i.users.filter(({accountType:v})=>v==="Service Account"),groups:(i==null?void 0:i.groups.map(v=>({...v,users:qa(v.users??[])})))??[]})},[i]),error:s,loading:c,refetchProjectAccess:p}},Qs=e=>{const t=e.users||[],a=e.serviceAccounts||[],r=e.groups||[];return{...e,rows:[...t.map(o=>({entity:o,type:"USERS"})),...a.map(o=>({entity:o,type:"SERVICE ACCOUNTS"})),...r.map(o=>({entity:o,type:"GROUPS"}))]}},Xs=h(d1)(({theme:e})=>({height:"100vh",overflow:"auto",padding:e.spacing(7.5,6),[e.breakpoints.down("md")]:{padding:e.spacing(4,2)},"& .header":{padding:e.spacing(0,0,2,0)},"& .body":{padding:e.spacing(3,0,0,0)},borderRadius:`${e.spacing(1.5,0,0,1.5)} !important`})),e5=h("div")(({theme:e})=>({display:"flex",flexDirection:"column","& > span":{color:e.palette.text.secondary,fontSize:e.fontSizes.bodySize}})),h3={id:"joinedAt"},$t=[{Header:"Avatar",accessor:"imageUrl",Cell:({row:{original:e}})=>n(i1,{children:n(v2,{user:e})}),maxWidth:85,disableSortBy:!0},{id:"name",Header:"Name",accessor:e=>e.name||"",Cell:Se,minWidth:100,searchable:!0},{id:"username",Header:"Username",accessor:e=>e.username||e.email,Cell:Se,minWidth:100,searchable:!0},{id:"joined",Header:"Joined",accessor:"joinedAt",Cell:ht,sortType:"date",maxWidth:150},{id:"lastLogin",Header:"Last login",accessor:e=>e.seenAt||"",Cell:({row:{original:e}})=>n(Je,{value:e.seenAt,emptyText:"Never",title:t=>`Last login: ${t}`}),sortType:"date",maxWidth:150}],t5=["imageUrl","name","joined","lastLogin"],n5=({open:e,setOpen:t,group:a,projectId:r,subtitle:o,onEdit:i,onRemove:s})=>{const c=h1(),d=g1(c.breakpoints.down("md")),[p]=u.useState(()=>({sortBy:[{id:h3.id,desc:h3.desc}]})),[m,v]=u.useState(""),{data:g,getSearchText:b,getSearchContext:w}=mt($t,m,(a==null?void 0:a.users)??[]),{headerGroups:S,rows:Z,prepareRow:y,setHiddenColumns:P}=r1.useTable({columns:$t,data:g,initialState:p,sortTypes:Re,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0,disableMultiSort:!0},r1.useSortBy,r1.useFlexLayout);return ft([{condition:d,columns:t5}],P,$t),n(ae,{open:e,onClose:()=>{t(!1)},label:(a==null?void 0:a.name)||"Group",children:l(Xs,{header:n(s1,{secondary:!0,titleElement:l(e5,{children:[a==null?void 0:a.name," (",Z.length<g.length?`${Z.length} of ${g.length}`:g.length,")",n("span",{children:o})]}),actions:l(G,{children:[n(x,{condition:!d,show:l(G,{children:[n(w1,{initialValue:m,onChange:v,hasFilters:!0,getSearchContext:w}),n(s1.Divider,{})]})}),n(N1,{permission:A1,projectId:r,tooltipProps:{title:"Edit group access"},onClick:i,children:n(g2,{})}),n(N1,{permission:A1,projectId:r,tooltipProps:{title:"Remove group access"},onClick:s,children:n(f2,{})})]}),children:n(x,{condition:d,show:n(w1,{initialValue:m,onChange:v,hasFilters:!0,getSearchContext:w})})}),children:[n(ce,{value:b(m),children:n(gt,{rows:Z,headerGroups:S,prepareRow:y})}),n(x,{condition:Z.length===0,show:n(x,{condition:(m==null?void 0:m.length)>0,show:l(y1,{children:["No users found matching “",m,"” in this group."]}),elseShow:n(y1,{children:"This group is empty. Get started by adding a user to the group."})})})]})})},a5=({permissions:e})=>n(G,{children:e==null?void 0:e.filter(t=>!t.environment).map(t=>t.displayName).sort().map(t=>n("p",{children:t},t))}),r5=({environment:e,permissions:t})=>n(G,{children:[...new Set(t.filter(a=>a.environment===e).map(a=>a.displayName))].sort().map(a=>n("p",{children:a},`${e}-${a}`))}),o5=h("div",{shouldForwardProp:e=>e!=="roleId"&&e!=="popover"&&e!=="sx"})(({theme:e,popover:t})=>({width:"100%",maxWidth:e.spacing(50),padding:e.spacing(3),backgroundColor:t?e.palette.background.paper:e.palette.neutral.light,color:e.palette.text.secondary,fontSize:e.fontSizes.smallBody,borderRadius:e.shape.borderRadiusMedium})),Bt=h("div")(({theme:e})=>({"& p:last-child":{marginBottom:e.spacing(2)}})),m3=h("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:e.fontSizes.smallBody,fontWeight:e.fontWeight.bold,marginBottom:e.spacing(2)})),g3=h("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:e.fontSizes.smallBody,marginBottom:e.spacing(1)})),$0=u.forwardRef(({roleId:e,projectId:t,className:a,sx:r,...o},i)=>{var v;const{role:s}=Ua(e.toString()),{access:c}=ge(t),d=c==null?void 0:c.roles.find(g=>g.id===e),p=u.useMemo(()=>{var b;const g=new Set;return(b=s.permissions)==null||b.filter(w=>w.environment).forEach(w=>{g.add(w.environment)}),[...g].sort()},[s]),m=u.useMemo(()=>{var g;return(g=s.permissions)==null?void 0:g.filter(b=>!b.environment)},[s]);return n(o5,{className:a,sx:r,...o,ref:i,children:n(x,{condition:((v=s.permissions)==null?void 0:v.length)>0,show:l(G,{children:[n(x,{condition:Boolean(m==null?void 0:m.length),show:l(G,{children:[n(m3,{children:"Project permissions"}),n(Bt,{children:n(a5,{permissions:s.permissions})})]})}),n(x,{condition:Boolean(p.length),show:l(G,{children:[n(m3,{children:"Environment permissions"}),p.map(g=>l("div",{children:[n(g3,{children:g}),n(Bt,{children:n(r5,{environment:g,permissions:s.permissions})})]},g))]})})]}),elseShow:l(G,{children:[n(g3,{children:d==null?void 0:d.name}),n(Bt,{children:d==null?void 0:d.description})]})})})}),i5=h("form")(()=>({display:"flex",flexDirection:"column",height:"100%"})),f3=h("p")(({theme:e})=>({color:e.palette.text.secondary,marginBottom:e.spacing(1)})),v3=h("div")(({theme:e})=>({"& > div:first-of-type":{width:"100%",maxWidth:e.spacing(50),marginBottom:e.spacing(2)}})),s5=h("div")(({theme:e})=>({marginTop:e.spacing(6),display:"flex",justifyContent:"flex-end"})),c5=h(v1)(({theme:e})=>({marginLeft:e.spacing(3)})),l5=h("div")(({theme:e})=>({display:"flex",flexDirection:"column","& > span:last-of-type":{color:e.palette.text.secondary}})),d5=h("div")(({theme:e})=>({display:"flex",flexDirection:"column","& > span:first-of-type":{color:e.palette.text.secondary}})),u5=h("div")(({theme:e})=>({display:"flex",flexDirection:"column","& > span:last-of-type":{fontSize:e.fontSizes.smallerBody,color:e.palette.text.secondary}})),Z2=({selected:e,accesses:t,users:a,serviceAccounts:r,groups:o,roles:i})=>{const{uiConfig:s}=p1(),{flags:c}=s,d=c.UG?"user / group":"user",p=Y("projectId"),{refetchProjectAccess:m}=ge(p),{addAccessToProject:v,changeUserRole:g,changeGroupRole:b,loading:w}=st(),S=Boolean(e),{setToastData:Z,setToastApiError:y}=u1(),P=$1(),H=[...o.filter(f=>S||!t.some(({entity:{id:k},type:R})=>f.id===k&&R===q.GROUP)).map(f=>({id:f.id,entity:f,type:q.GROUP})),...a.filter(f=>S||!t.some(({entity:{id:k},type:R})=>f.id===k&&R===q.USER)).sort((f,k)=>{const R=f.name||f.username||"",U=k.name||k.username||"";return R.localeCompare(U)}).map(f=>({id:f.id,entity:f,type:q.USER})),...r.filter(f=>S||!t.some(({entity:{id:k},type:R})=>f.id===k&&R===q.SERVICE_ACCOUNT)).sort((f,k)=>{const R=f.name||f.username||"",U=k.name||k.username||"";return R.localeCompare(U)}).map(f=>({id:f.id,entity:f,type:q.SERVICE_ACCOUNT}))],[V,N]=u.useState(()=>H.filter(({id:f,type:k})=>f===(e==null?void 0:e.entity.id)&&k===(e==null?void 0:e.type))),[_,D]=u.useState(i.find(({id:f})=>f===(e==null?void 0:e.entity.roleId))??null),z={users:V==null?void 0:V.filter(({type:f})=>f===q.USER||f===q.SERVICE_ACCOUNT).map(({id:f})=>({id:f})),groups:V==null?void 0:V.filter(({type:f})=>f===q.GROUP).map(({id:f})=>({id:f}))},M=async f=>{if(f.preventDefault(),!!L)try{S?(e==null?void 0:e.type)===q.USER||(e==null?void 0:e.type)===q.SERVICE_ACCOUNT?await g(p,_.id,e.entity.id):(e==null?void 0:e.type)===q.GROUP&&await b(p,_.id,e.entity.id):await v(p,_.id,z),m(),P(j1),Z({title:`${V.length} ${V.length===1?"access":"accesses"} ${S?"edited":"assigned"} successfully`,type:"success"})}catch(k){y(f1(k))}},W=()=>S?`curl --location --request ${S?"PUT":"POST"} '${s.unleashUrl}/api/admin/projects/${p}/${(e==null?void 0:e.type)===q.USER||(e==null?void 0:e.type)===q.SERVICE_ACCOUNT?"users":"groups"}/${e==null?void 0:e.entity.id}/roles/${_==null?void 0:_.id}' \\
|
|
3
|
-
--header 'Authorization: INSERT_API_KEY'`:`curl --location --request ${
|
|
1
|
+
import{c as q1,j as n,cA as tn,cB as nn,s as h,cm as an,cj as Ke,g as nt,r as u,dM as rn,l as o1,d as n1,f as l,S as at,h as rt,i as ot,k as it,bV as on,aX as Ae,A as U1,aO as se,aP as G1,aQ as K1,dN as B3,aF as Y,dO as k1,bO as S1,a2 as u1,cd as D1,ar as st,H as p1,dP as sn,R as Se,cH as r2,bF as o2,dQ as A1,al as s1,V as w1,ak as d1,C as w,aL as E1,X as ce,W as y1,ch as cn,K as ct,dR as ln,a as E,dS as O1,dT as dn,bG as un,dU as Ee,dV as ke,dW as De,b7 as J1,m as z1,dX as pn,P as lt,di as dt,dY as ee,cn as i2,a8 as W1,dZ as Rt,bb as te,dC as hn,bd as ne,T as j,cp as V3,aK as ut,af as M3,c4 as s2,u as h1,N as g1,d_ as mn,F as G,d$ as L3,ap as R1,a9 as v1,e0 as gn,dh as fn,a4 as f1,bJ as vn,bH as c2,cq as yn,e1 as H3,df as W3,bw as bn,ao as $1,L as l2,aS as pt,e2 as Cn,bE as _n,ck as xn,e3 as wn,e4 as Sn,e5 as Tn,e6 as N3,e7 as q3,O as U3,e8 as An,c9 as ht,Q as mt,cT as En,ci as kn,bM as G3,Y as gt,e9 as Dn,D as Rn,aN as Fn,ce as Zn,M as K3,ea as Pn,ah as B1,eb as J3,ag as Y3,ec as Q3,ai as In,ed as jn,ee as On,aR as X3,ef as d2,a1 as zn,eg as e0,eh as $n,ei as Bn,ej as Vn,ek as Mn,bB as t0,el as n0,em as a0,e as Re,U as ft,en as Ln,eo as Hn,aH as Wn,bl as Nn,ep as vt,eq as qn,er as r0,es as Un,ay as le,az as Y1,aI as F1,aA as de,aD as ue,aE as pe,et as Gn,ca as we,bL as o0,eu as i0,ev as Kn,bk as he,an as s0,a_ as u2,aZ as p2,aW as h2,ew as Jn,ex as Yn,ey as Qn,ez as Xn,eA as ea,eB as ta,eC as na,dx as c0,c8 as aa,db as Je,eD as ra,cr as m2,eE as yt,bR as ae,aJ as N1,aM as g2,aV as f2,d3 as v2,ax as j1,as as l0,eF as oa,ad as z2,eG as ia,d0 as Ve,ac as Kt,eH as sa,eI as ca,d1 as la,d2 as da,eJ as ua,eK as pa,eL as ha,bP as Fe,bQ as t1,eM as ma,c7 as d0,eN as u0,Z as y2,au as ga,eO as fa,cL as va,eP as ya,eQ as ba,eR as Ca,cl as p0,eS as _a,cZ as h0,eT as re,eU as J,eV as xa,eW as wa,eX as Sa,eY as Ta,eZ as Aa,d6 as Ea,e_ as ka,e$ as Da,f0 as Ra,f1 as Fa}from"./index-2a2ab5f7.js";import{A as Za,g as m0,W as $2,d as Pa,c as g0,T as Ia,e as ja,u as Oa,E as za,V as $a,b as Ba,h as Va,C as Ma,a as La,i as B2,R as V2,D as Ha,j as Wa}from"./FeatureArchiveDialog-8ba2065f.js";import{a as Na}from"./index-9d101e00.js";import{m as qa,h as Ua,b as Ga,c as Ka,d as Ja,e as Ya,E as Qa,f as Xa,u as er,a as tr,R as nr,C as ar,A as rr,B as f0}from"./useProjectRole-c87a3043.js";import{E as or}from"./Error-0161926e.js";const ir=q1(n("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),sr=q1(n("path",{d:"M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"}),"CallMade"),cr=q1(n("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}),"FileDownload"),lr=q1(n("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}),"FileUpload"),dr=q1(n("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7 13.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm5 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm5 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"}),"Pending"),ur=q1(n("path",{d:"M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),pr=q1(n("path",{d:"M19 9h-2v6.59L5.41 4 4 5.41 15.59 17H9v2h10V9z"}),"SouthEast");function hr(e,t){tn(2,arguments);var a=nn(t);return Na(e,-a)}const M2=h("div")(()=>({display:"flex"})),mr=h("div")(()=>({display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"}));h("div")(()=>({display:"flex",flexDirection:"column"}));const gr=h("span")(({theme:e})=>({fontSize:e.typography.h1.fontSize,textOverflow:"ellipsis",whiteSpace:"nowrap"})),fr=h("span")(({theme:e})=>({fontSize:e.fontSizes.smallBody,fontWeight:"normal"}));h(fr)(({theme:e})=>({color:e.palette.neutral.dark}));const vr=h(an)(({theme:e})=>({marginLeft:e.spacing(-1.5)})),yr=h("div")(({theme:e})=>({backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadiusLarge,marginBottom:e.spacing(2)})),br=h("div")(({theme:e})=>({padding:e.spacing(2.5,5),display:"flex",flexDirection:"column",alignItems:"start"})),Cr=h("span")(({theme:e})=>({margin:0,width:"100%",fontSize:e.fontSizes.mainHeader,fontWeight:"bold",display:"flex",justifyContent:"space-between",alignItems:"center",gap:e.spacing(2)})),_r=h("div")(({theme:e})=>({width:"100%",backgroundColor:e.palette.divider,height:"1px"})),xr=h("div")(({theme:e})=>({padding:e.spacing(0,4)})),wr=h(Ke)(({theme:e})=>({textTransform:"none",fontSize:e.fontSizes.bodySize,flexGrow:1,flexBasis:0,[e.breakpoints.down("md")]:{paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},[e.breakpoints.up("md")]:{minWidth:160}})),Sr=e=>e.reduce((t,a)=>a.enabled?t+1:t,0),Tr=h(nt)(({theme:e})=>({marginTop:e.spacing(3)})),Ar=h("p",{shouldForwardProp:e=>e!=="warning"})(({theme:e,warning:t})=>({color:t?e.palette.error.dark:e.palette.text.primary,textAlign:"center"})),Er=({environment:e,warnEnabledToggles:t})=>{const a=u.useMemo(()=>[{id:"Icon",width:"1%",Cell:({row:{original:d}})=>n(rn,{environment:d})},{Header:"Name",accessor:"name",Cell:o1},{Header:"Type",accessor:"type",Cell:o1},{Header:"Toggles enabled",accessor:"projectEnabledToggleCount",Cell:({value:d})=>n(o1,{children:n(Ar,{warning:d>0,children:d===1?"1 toggle":`${d} toggles`})}),align:"center"}],[t]),{getTableProps:r,getTableBodyProps:o,headerGroups:i,rows:s,prepareRow:c}=n1.useTable({columns:a,data:[e],disableSortBy:!0});return l(Tr,{...r(),rowHeight:"compact",children:[n(at,{headerGroups:i}),n(rt,{...o(),children:s.map(d=>(c(d),n(ot,{hover:!0,...d.getRowProps(),children:d.cells.map(p=>n(it,{...p.getCellProps(),children:p.render("Cell")}))})))})]})},kr=h("p")(({theme:e})=>({marginTop:e.spacing(3),marginBottom:e.spacing(1.5)})),Dr=h(on)(()=>({width:"100%"})),Rr=({environment:e,open:t,setOpen:a,onConfirm:r})=>{const[o,i]=u.useState("");return u.useEffect(()=>{i("")},[t]),l(Ae,{title:"Hide environment and disable feature toggles?",open:t,primaryButtonText:"Hide environment and disable feature toggles",disabledPrimaryButton:(e==null?void 0:e.name)!==o,secondaryButtonText:"Close",onClick:r,onClose:()=>{a(!1)},children:[l(U1,{severity:"error",children:[n("strong",{children:"Danger!"})," Hiding an environment will disable all the feature toggles that are enabled in this environment and it can impact client applications connected to the environment."]}),n(Er,{environment:e}),l(kr,{children:["In order to hide this environment, please enter the id of the environment in the textfield below:"," ",n("strong",{children:e==null?void 0:e.name})]}),n(Dr,{label:"Environment name",value:o,onChange:s=>i(s.target.value)})]})},Fr=e=>{const{data:t,error:a,mutate:r}=se(G1(`api/admin/environments/project/${e}`),Zr),o=u.useMemo(()=>t||[],[t]),i=u.useCallback(async()=>{await r()},[r]);return{environments:o,refetchEnvironments:i,loading:!a&&!t,error:a}},Zr=async e=>(await fetch(e).then(K1("Environments")).then(a=>a.json())).environments.sort((a,r)=>a.sortOrder-r.sortOrder),Pr=h(U1)(({theme:e})=>({marginBottom:e.spacing(4)})),Ir=h("div")(({theme:e})=>({display:"flex",flexWrap:"wrap",[e.breakpoints.down("sm")]:{justifyContent:"center"}})),jr=h(B3)(({theme:e})=>({maxWidth:"400px",marginBottom:e.spacing(2)})),v0=()=>{const e=Y("projectId"),t=k1(e);S1(`Project environments – ${t}`);const{setToastData:a,setToastApiError:r}=u1(),{environments:o,loading:i,error:s,refetchEnvironments:c}=Fr(e),{project:d,refetch:p}=D1(e),{removeEnvironmentFromProject:m,addEnvironmentToProject:v}=st(),[g,b]=u.useState(),[S,T]=u.useState(!1),{isOss:F}=p1(),y=u.useMemo(()=>o.map(R=>({...R,projectVisible:d==null?void 0:d.environments.includes(R.name)})),[o,d==null?void 0:d.environments]),Z=()=>{c(),p()},L=()=>n(jr,{onClick:Z,text:"Error fetching environments"}),B=R=>`Got an API error when trying to set the environment as ${R?"visible":"hidden"}`,N=async R=>{if(R.projectVisible){if(Sr(y)>1){b(R),T(!0);return}a({title:"One environment must be visible",text:"You must always have at least one visible environment per project",type:"error"})}else try{await v(e,R.name),Z(),a({title:"Environment set as visible",text:"Environment successfully set as visible.",type:"success"})}catch{r(B(!0))}},x=async()=>{if(g)try{await m(e,g.name),Z(),a({title:"Environment set as hidden",text:"Environment successfully set as hidden.",type:"success"})}catch{r(B(!1))}finally{T(!1)}},D=R=>F()&&R==="default",z=u.useMemo(()=>[{Header:"Name",accessor:"name",Cell:({row:{original:R}})=>n(sn,{environment:R})},{Header:"Type",accessor:"type",Cell:Se},{Header:"Project API tokens",accessor:R=>R.projectApiTokenCount===1?"1 token":`${R.projectApiTokenCount} tokens`,Cell:o1},{Header:"Visible in project",accessor:"enabled",align:"center",width:1,Cell:({row:{original:R}})=>n(r2,{children:n(o2,{tooltip:R.projectVisible?"Hide environment and disable feature toggles":"Make it visible",size:"medium",disabled:D(R.name),projectId:e,permission:A1,checked:R.projectVisible,onChange:()=>N(R)})}),disableGlobalFilter:!0}],[y]),{getTableProps:V,getTableBodyProps:H,headerGroups:O,rows:K,prepareRow:Q,state:{globalFilter:M},setGlobalFilter:f}=n1.useTable({columns:z,data:y,disableSortBy:!0},n1.useGlobalFilter),k=n(s1,{title:`Environments (${K.length})`,actions:n(w1,{initialValue:M,onChange:f})});return n(d1,{header:k,isLoading:i,children:l(Ir,{children:[n(w,{condition:Boolean(s),show:L()}),l(Pr,{severity:"info",children:[n("strong",{children:"Important!"})," In order for your application to retrieve configured activation strategies for a specific environment, the application must use an environment specific API token. You can look up the environment-specific"," ",n(E1,{to:"/admin/api",children:"API tokens here"}),".",n("br",{}),n("br",{}),"Your administrator can configure an environment-specific API token to be used in the SDK. If you are an administrator you can ",n(E1,{to:"/admin/api",children:"create a new API token here"}),"."]}),n(ce,{value:M,children:l(nt,{...V(),rowHeight:"compact",children:[n(at,{headerGroups:O}),n(rt,{...H(),children:K.map(R=>(Q(R),n(ot,{hover:!0,...R.getRowProps(),children:R.cells.map(U=>n(it,{...U.getCellProps(),children:U.render("Cell")}))})))})]})}),n(w,{condition:K.length===0,show:n(w,{condition:(M==null?void 0:M.length)>0,show:l(y1,{children:["No environments found matching “",M,"”"]}),elseShow:n(y1,{children:"No environments available. Get started by adding one."})})}),n(Rr,{environment:g,open:S,setOpen:T,onConfirm:x})]})})},Or={id:"archivedAt"},zr=({projectId:e})=>{const{archivedFeatures:t,loading:a,refetchArchived:r}=cn(e),{value:o,setValue:i}=ct(`${e}:ProjectFeaturesArchiveTable`,Or);return n(ln,{title:"Project archive",archivedFeatures:t||[],loading:a,storedParams:o,setStoredParams:i,refetch:r,projectId:e})},$r=()=>{const e=Y("projectId"),t=k1(e);return S1(`Project archive – ${t}`),n(zr,{projectId:e})},Br=(e=[])=>{var a;const t=u.useRef(e);return(e==null?void 0:e.join(""))!==((a=t.current)==null?void 0:a.join(""))&&(t.current=e),t.current},Vr=h(E)(()=>({mx:"auto",...O1})),Mr=({projectId:e,featureName:t,environmentName:a,value:r,onToggle:o})=>{const[i,s,c]=dn(r),d=()=>{s(!i),o(e,t,a,!i).catch(c)},p=`${t}-${a}`;return n(Vr,{"data-testid":`TOGGLE-${p}`,children:n(o2,{checked:r,environmentId:a,projectId:e,permission:un,inputProps:{"aria-label":a},onClick:d,disabled:i!==r})},p)};var b2={},Lr=ke;Object.defineProperty(b2,"__esModule",{value:!0});var y0=b2.default=void 0,Hr=Lr(Ee()),Wr=De,Nr=(0,Hr.default)((0,Wr.jsx)("path",{d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5 6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z"}),"Archive");y0=b2.default=Nr;var C2={},qr=ke;Object.defineProperty(C2,"__esModule",{value:!0});var b0=C2.default=void 0,Ur=qr(Ee()),Gr=De,Kr=(0,Ur.default)((0,Gr.jsx)("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"}),"WatchLater");b0=C2.default=Kr;const Jr=h(E)(({theme:e})=>({display:"flex",justifyContent:"center",paddingRight:e.spacing(2)})),Yr=({projectId:e,row:t,onOpenArchiveDialog:a,onOpenStaleDialog:r})=>{const[o,i]=u.useState(null),{original:{name:s,stale:c}}=t,d=Boolean(o),p=b=>{i(b.currentTarget)},m=()=>{i(null)},v=`feature-${s}-actions`,g=`${v}-menu`;return l(Jr,{children:[n(J1,{title:"Feature toggle actions",arrow:!0,describeChild:!0,children:n(z1,{id:v,"aria-controls":d?g:void 0,"aria-haspopup":"true","aria-expanded":d?"true":void 0,onClick:p,type:"button",children:n(pn,{})})}),n(lt,{id:g,anchorEl:o,open:d,onClose:m,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},disableScrollLock:!0,PaperProps:{sx:b=>({borderRadius:`${b.shape.borderRadius}px`,padding:b.spacing(1,1.5)})},children:l(dt,{"aria-labelledby":v,children:[n(ee,{projectId:e,permission:i2,children:({hasAccess:b})=>l(W1,{sx:Rt,onClick:m,disabled:!b,component:E1,to:`/projects/${e}/features/${s}/strategies/copy`,children:[n(te,{children:n(hn,{})}),n(ne,{children:n(j,{variant:"body2",children:"Copy"})})]})}),n(ee,{projectId:e,permission:V3,children:({hasAccess:b})=>l(W1,{sx:Rt,onClick:()=>{a(s),m()},disabled:!b,children:[n(te,{children:n(y0,{})}),n(ne,{children:n(j,{variant:"body2",children:"Archive"})})]})}),n(ee,{projectId:e,permission:ut,children:({hasAccess:b})=>l(W1,{sx:Rt,onClick:()=>{m(),r({featureId:s,stale:c===!0})},disabled:!b,children:[n(te,{children:n(b0,{})}),n(ne,{children:l(j,{variant:"body2",children:[c?"Un-mark":"Mark"," as stale"]})})]})})]})})]})};var _2={},Qr=ke;Object.defineProperty(_2,"__esModule",{value:!0});var C0=_2.default=void 0,Xr=Qr(Ee()),eo=De,to=(0,Xr.default)((0,eo.jsx)("path",{d:"M5.33 20H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h1.33c1.1 0 2 .9 2 2v12c0 1.1-.89 2-2 2zM22 18V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2H20c1.11 0 2-.9 2-2zm-7.33 0V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h1.33c1.1 0 2-.9 2-2z"}),"ViewWeek");C0=_2.default=to;const no=h(E)(()=>({...O1,justifyContent:"center"})),ao=h(z1)(({theme:e})=>({margin:e.spacing(-1,0)})),ro=h(E)(({theme:e})=>({...O1,justifyContent:"space-between",padding:e.spacing(1,1,0,4)})),oo=h(W1)(({theme:e})=>({padding:e.spacing(0,2),margin:e.spacing(0,2),borderRadius:e.shape.borderRadius})),L2=h(M3)(({theme:e})=>({"&.MuiDivider-root.MuiDivider-fullWidth":{margin:e.spacing(.75,0)}})),io=h(s2)(({theme:e})=>({padding:e.spacing(.75,1)})),so={favorite:"Favorite"},co=({allColumns:e,staticColumns:t=[],dividerBefore:a=[],dividerAfter:r=[],isCustomized:o=!1,setHiddenColumns:i})=>{const[s,c]=u.useState(null),d=h1(),p=g1(d.breakpoints.down("sm")),m=g1(d.breakpoints.down("md")),v=g1(d.breakpoints.down("lg"));u.useEffect(()=>{if(o)return;const y=(Z,L=0)=>{const B=e.filter(({id:x})=>x.startsWith("environments.")!==!1).map(({id:x})=>x).slice(0,L),N=e.map(({id:x})=>x).filter(x=>!Z.includes(x)).filter(x=>!t.includes(x)).filter(x=>!B.includes(x));i(N)};if(p)return y(["createdAt"]);if(m)return y(["createdAt"],1);if(v)return y(["type","createdAt"],1);y(["lastSeenAt","type","createdAt"],3)},[p,m,v]);const g=y=>{c(y.currentTarget)},b=()=>{c(null)},S=Boolean(s),T="columns-menu",F=`columns-menu-list-${T}`;return l(no,{children:[n(J1,{title:"Select columns",arrow:!0,describeChild:!0,children:n(ao,{id:T,"aria-controls":S?F:void 0,"aria-haspopup":"true","aria-expanded":S?"true":void 0,onClick:g,type:"button",size:"large","data-loading":!0,children:n(C0,{})})}),l(lt,{id:F,open:S,anchorEl:s,onClose:b,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},disableScrollLock:!0,PaperProps:{sx:y=>({borderRadius:y.shape.borderRadius,paddingBottom:y.spacing(2)})},children:[l(ro,{children:[n(j,{variant:"body2",children:n("strong",{children:"Columns"})}),n(z1,{onClick:b,children:n(mn,{})})]}),n(dt,{children:e.filter(({hideInMenu:y})=>!y).map(y=>[n(w,{condition:a.includes(y.id),show:n(L2,{})}),l(oo,{onClick:()=>y.toggleHidden(y.isVisible),disabled:t.includes(y.id),children:[n(te,{children:n(io,{edge:"start",checked:y.isVisible,disableRipple:!0,inputProps:{"aria-labelledby":y.id},size:"medium"})}),n(ne,{id:y.id,primary:n(j,{variant:"body2",children:n(w,{condition:Boolean(typeof y.Header=="string"&&y.Header),show:()=>n(G,{children:y.Header}),elseShow:()=>so[y.id]||y.id})})})]}),n(w,{condition:r.includes(y.id),show:n(L2,{})})])})]})]})},lo=L3()(e=>({container:{boxShadow:"none",marginLeft:"1rem",minHeight:"100%",width:"calc(100% - 1rem)",position:"relative",[e.breakpoints.down("md")]:{marginLeft:"0",paddingBottom:"4rem",width:"inherit"}}})),uo=({projectId:e,features:t})=>{const{refetch:a}=D1(e),[r,o]=u.useState(!1),{trackEvent:i}=R1();return l(G,{children:[n(ee,{projectId:e,permission:V3,children:({hasAccess:c})=>n(v1,{disabled:!c||r,startIcon:n(Za,{}),variant:"outlined",size:"small",onClick:()=>o(!0),children:"Archive"})}),n(m0,{projectId:e,featureIds:t,onConfirm:async()=>{o(!1),await a(),i("batch_operations",{props:{eventType:"features archived"}})},isOpen:r,onClose:()=>o(!1)})]})},Me="selection-actions-menu",po=({projectId:e,data:t})=>{const{refetch:a}=D1(e),[r,o]=u.useState(null),{staleFeatures:i}=st(),{setToastData:s,setToastApiError:c}=u1(),{trackEvent:d}=R1(),p=Boolean(r),m=t.map(({name:y})=>y),v=y=>{o(y.currentTarget)},g=()=>{o(null)},b=t.some(({stale:y})=>y===!0),S=t.some(({stale:y})=>y===!1),T=async()=>{try{g(),await i(e,m),await a(),s({title:"State updated",text:"Feature toggles marked as stale",type:"success"}),d("batch_operations",{props:{eventType:"features staled"}})}catch(y){c(f1(y))}},F=async()=>{try{g(),await i(e,m,!1),await a(),s({title:"State updated",text:"Feature toggles unmarked as stale",type:"success"}),d("batch_operations",{props:{eventType:"features unstaled"}})}catch(y){c(f1(y))}};return l(G,{children:[n(J1,{title:"More bulk actions",arrow:!0,describeChild:!0,children:n(z1,{id:Me,"aria-controls":p?Me:void 0,"aria-haspopup":"true","aria-expanded":p?"true":void 0,onClick:v,type:"button","data-testid":gn,children:n(fn,{})})}),n(lt,{id:`${Me}-menu`,anchorEl:r,open:p,onClose:g,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},disableScrollLock:!0,PaperProps:{sx:y=>({borderRadius:`${y.shape.borderRadius}px`,padding:y.spacing(1,1.5)})},children:n(dt,{"aria-labelledby":`${Me}-menu`,children:n(ee,{projectId:e,permission:ut,children:({hasAccess:y})=>l(G,{children:[n(w,{condition:S,show:()=>l(W1,{onClick:T,disabled:!y,sx:{borderRadius:Z=>`${Z.shape.borderRadius}px`},children:[n(te,{children:n($2,{})}),n(ne,{children:n(j,{variant:"body2",children:"Mark as stale"})})]})}),n(w,{condition:b,show:()=>l(W1,{onClick:F,disabled:!y,sx:{borderRadius:Z=>`${Z.shape.borderRadius}px`},children:[n(te,{children:n($2,{})}),n(ne,{children:n(j,{variant:"body2",children:"Un-mark as stale"})})]})})]})})})})]})},ho=h("section")(({theme:e})=>({["& > *"]:{margin:e.spacing(1,0)}})),H2="manage-tags-form",W2=(e,t)=>[...e,...e.some(a=>a.value===t.value&&a.type===t.type)?[]:[t]],N2=(e,t)=>e.filter(a=>!(a.value===t.value&&a.type===t.type)),mo=(e,t)=>{switch(t.type){case"add":return{...e,addedTags:W2(e.addedTags,t.payload),removedTags:N2(e.removedTags,t.payload)};case"remove":return{...e,addedTags:N2(e.addedTags,t.payload),removedTags:W2(e.removedTags,t.payload)};case"clear":return{addedTags:[],removedTags:t.payload};default:return e}},q2={name:"",description:"",icon:""},go=({open:e,initialValues:t,initialIndeterminateValues:a,onCancel:r,onSubmit:o})=>{const{tagTypes:i,loading:s}=vn(),[c,d]=u.useState(q2),[p,m]=u.useState([]),[v,g]=u.useState([]),{tags:b,refetch:S}=Pa(c.name),{createTag:T}=g0(),F=b.map(({value:z})=>({title:z})),[y,Z]=u.useReducer(mo,{addedTags:[],removedTags:[]}),L=(z=i.length>0?i[0]:q2)=>{d(z);const V=a.filter(({type:H})=>H===z.name);m(t.filter(({type:H})=>H===z.name).filter(({type:H,value:O})=>!V.some(K=>K.value===O&&K.type===H)).map(({value:H})=>({title:H}))),g(V.map(({value:H})=>({title:H}))),Z({type:"clear",payload:[]})};u.useEffect(()=>{i.length>0&&L()},[s]);const B=(z,V)=>{V!=null&&typeof V!="string"&&(z.preventDefault(),L(V))},N=(z,V)=>T({value:z,type:V}).then(async()=>{await S(),m(H=>[...H,{title:z}]),Z({type:"add",payload:{value:z,type:V}})}),x=(z,V,H,O)=>{H==="selectOption"?V.forEach(K=>{if(typeof K!="string"&&typeof K.inputValue=="string"&&K.inputValue&&K.title.startsWith("Create new value"))return N(K.inputValue,c.name);m(V),g(Q=>Q.filter(({title:M})=>M!==K.title)),O!=null&&O.option&&Z({type:"add",payload:{value:O.option.title,type:c.name}})}):H==="clear"?(m([]),Z({type:"clear",payload:t})):H==="removeOption"&&(m(V),O!=null&&O.option&&Z({type:"remove",payload:{value:O.option.title,type:c.name}}))},D=()=>{L(),r()};return l(Ae,{open:e,secondaryButtonText:"Cancel",primaryButtonText:"Save tags",title:"Update tags to feature toggle",onClick:()=>o(y),disabledPrimaryButton:y.addedTags.length===0&&y.removedTags.length===0,onClose:D,formId:H2,children:[n(j,{paragraph:!0,sx:{marginBottom:z=>z.spacing(2.5)},children:"Tags allow you to group features together"}),n("form",{id:H2,onSubmit:()=>o(y),children:l(ho,{children:[n(Ia,{options:i,disabled:s||i.length===0,value:c,onChange:B},s?"loading":i.length),n(w,{condition:!s&&i.length===0,show:l(j,{variant:"body1",children:["No"," ",n(c2,{component:E1,to:"/tag-types",children:"tag types"})," ","available."]}),elseShow:n(ja,{disabled:s,options:F,existingTags:t,indeterminateOptions:v,tagType:c,selectedOptions:p,onChange:x})})]})})]})},fo=({projectId:e,data:t})=>{const{bulkUpdateTags:a}=g0(),{refetch:r}=D1(e),{setToastData:o,setToastApiError:i}=u1(),{trackEvent:s}=R1(),[c,d]=u.useState(!1),[p,m]=u.useMemo(()=>{const g=t.flatMap(({tags:S})=>S||[]).reduce((S,T)=>[...S,...S.some(F=>F.type===T.type&&F.value===T.value)?[]:[T]],[]),b=g.filter(S=>!t.every(({tags:T})=>T==null?void 0:T.some(F=>F.type===S.type&&F.value===S.value)));return[g,b]},[t]);return l(G,{children:[n(ee,{projectId:e,permission:ut,children:({hasAccess:g})=>n(v1,{disabled:!g||c,startIcon:n(yn,{}),variant:"outlined",size:"small",onClick:()=>d(!0),children:"Tags"})}),n(go,{open:c,onCancel:()=>d(!1),onSubmit:async({addedTags:g,removedTags:b})=>{const S=t.map(({name:F})=>F),T={features:S,tags:{addedTags:g,removedTags:b}};try{await a(T),r();const F=g.length?`Added tags: ${g.map(({type:Z,value:L})=>`${Z}:${L}`).join(", ")}.`:"",y=b.length?`Removed tags: ${b.map(({type:Z,value:L})=>`${Z}:${L}`).join(", ")}.`:"";o({title:"Tags updated",text:`${S.length} feature toggles updated. ${F} ${y}`,type:"success",autoHideDuration:12e3}),s("batch_operations",{props:{eventType:"tags updated"}})}catch(F){i(f1(F))}d(!1)},initialValues:p,initialIndeterminateValues:m},t.length)]})},vo=({selectedIds:e,data:t,projectId:a})=>{var m,v;const{uiConfig:r}=p1(),[o,i]=u.useState(!1),{trackEvent:s}=R1(),c=u.useMemo(()=>t.filter(g=>e.includes(g.name)),[t,e]),d=u.useMemo(()=>{const g=c.flatMap(b=>b.environments).map(b=>b==null?void 0:b.name).filter(b=>b!==void 0);return Array.from(new Set(g))},[c]),p=()=>{s("batch_operations",{props:{eventType:"features exported"}})};return l(G,{children:[n(uo,{projectId:a,features:e}),n(w,{condition:Boolean((m=r==null?void 0:r.flags)==null?void 0:m.featuresExportImport),show:n(v1,{startIcon:n(cr,{}),variant:"outlined",size:"small",onClick:()=>i(!0),children:"Export"})}),n(fo,{projectId:a,data:c}),n(po,{projectId:a,data:c}),n(w,{condition:Boolean((v=r==null?void 0:r.flags)==null?void 0:v.featuresExportImport),show:n(H3,{showExportDialog:o,data:c,onClose:()=>i(!1),environments:d,onConfirm:p})})]})},yo=h(W3)(()=>({whiteSpace:"nowrap"})),bo=h("div",{shouldForwardProp:e=>e!=="hasWarning"})(({theme:e,hasWarning:t})=>({flexGrow:0,...O1,justifyContent:"center",...t&&{"::before":{content:'""',display:"block",width:e.spacing(2)}}})),Le=["Select","Actions","name","favorite"],Co={id:"createdAt"},_o=({features:e,loading:t,environments:a=[]})=>{var A,I;const{classes:r}=lo(),o=h1(),i=g1(o.breakpoints.down("md")),[s,c]=u.useState({open:!1,featureId:"",environmentName:""}),[d,p]=u.useState({}),[m,v]=u.useState(),g=Y("projectId"),{value:b,setValue:S}=ct(`${g}:FeatureToggleListTable:v1`,Co),{value:T,setValue:F}=bn(),y=$1(),[Z,L]=l2(),{isChangeRequestConfigured:B}=pt(g),N=Br(t?["a","b","c"]:a),{refetch:x}=D1(g),{setToastData:D,setToastApiError:z}=u1(),{isFavoritesPinned:V,sortTypes:H,onChangeIsFavoritePinned:O}=Cn(Z.has("favorites")?Z.get("favorites")==="true":T.favorites),{toggleFeatureEnvironmentOn:K,toggleFeatureEnvironmentOff:Q}=_n(),{favorite:M,unfavorite:f}=xn(),{onChangeRequestToggle:k,onChangeRequestToggleClose:R,onChangeRequestToggleConfirm:U,changeRequestDialogDetails:C}=Oa(g),[X,c1]=u.useState(!1),{uiConfig:i1}=p1(),m1=u.useCallback(async(_,P,$,W)=>{if(B($))throw k(P,$,W),new Error("Additional approval required");try{W?await K(_,P,$):await Q(_,P,$),x()}catch(a1){const I1=f1(a1);throw I1===za?c({open:!0,featureId:P,environmentName:$}):z(I1),a1}D({type:"success",title:"Updated toggle status",text:"Successfully updated toggle status."}),x()},[Q,K,B]),Z1=u.useCallback(async _=>{_!=null&&_.favorite?await f(g,_.name):await M(g,_.name),x()},[g,x]),je=u.useMemo(()=>e.some(_=>{var P;return(P=_==null?void 0:_.tags)==null?void 0:P.length}),[e]),C1=u.useMemo(()=>[{id:"Select",Header:({getToggleAllRowsSelectedProps:_})=>n(s2,{..._()}),Cell:({row:_})=>{var P;return n(wn,{...(P=_==null?void 0:_.getToggleRowSelectedProps)==null?void 0:P.call(_)})},maxWidth:50,disableSortBy:!0,hideInMenu:!0},{id:"favorite",Header:n(Sn,{isActive:V,onClick:O}),accessor:"favorite",Cell:({row:{original:_}})=>n(Tn,{value:_==null?void 0:_.favorite,onClick:()=>Z1(_)}),maxWidth:50,disableSortBy:!0,hideInMenu:!0},{Header:"Seen",accessor:"lastSeenAt",Cell:N3,sortType:"date",align:"center",maxWidth:80},{Header:"Type",accessor:"type",Cell:q3,align:"center",maxWidth:80},{Header:"Name",accessor:"name",Cell:({value:_})=>n(U3,{title:_,to:`/projects/${g}/features/${_}`}),minWidth:100,sortType:"alphanumeric",searchable:!0},...je?[{id:"tags",Header:"Tags",accessor:_=>{var P;return((P=_.tags)==null?void 0:P.map(({type:$,value:W})=>`${$}:${W}`).join(`
|
|
2
|
+
`))||""},Cell:An,width:80,searchable:!0}]:[],{Header:"Created",accessor:"createdAt",Cell:ht,sortType:"date",minWidth:120},...N.map(_=>({Header:t?()=>"":_,maxWidth:90,id:`environments.${_}`,accessor:P=>{var $;return($=P.environments[_])==null?void 0:$.enabled},align:"center",Cell:({value:P,row:{original:$}})=>{const W=$.someEnabledEnvironmentHasVariants&&$.environments[_].variantCount===0&&$.environments[_].enabled;return l(bo,{hasWarning:W,children:[n(Mr,{value:P,projectId:g,featureName:$==null?void 0:$.name,environmentName:_,onToggle:m1}),n(w,{condition:W,show:n($a,{})})]})},sortType:"boolean",filterName:_,filterParsing:P=>P?"enabled":"disabled"})),{id:"Actions",maxWidth:56,width:56,Cell:_=>n(Yr,{projectId:g,onOpenArchiveDialog:v,onOpenStaleDialog:p,..._}),disableSortBy:!0,hideInMenu:!0}],[g,N,t,m1]),[l1,ye]=u.useState(Z.get("search")||""),Oe=u.useMemo(()=>e.map(_=>{var P;return{..._,environments:Object.fromEntries(N.map($=>{const W=_==null?void 0:_.environments.find(a1=>(a1==null?void 0:a1.name)===$);return[$,{name:$,enabled:(W==null?void 0:W.enabled)||!1,variantCount:(W==null?void 0:W.variantCount)||0}]})),someEnabledEnvironmentHasVariants:((P=_.environments)==null?void 0:P.some($=>$.variantCount>0&&$.enabled))||!1}}),[e,N]),{data:V1,getSearchText:Q1,getSearchContext:T1}=mt(C1,l1,Oe),be=u.useMemo(()=>t?Array(6).fill({type:"-",name:"Feature name",createdAt:new Date,environments:{production:{name:"production",enabled:!1}}}):V1,[t,V1]),ze=u.useMemo(()=>{var $;const _=C1.map(W=>(W==null?void 0:W.accessor)||(W==null?void 0:W.id));let P=N.filter((W,a1)=>a1>=3).map(W=>`environments.${W}`);if(Z.has("columns")){const W=(($=Z.get("columns"))==null?void 0:$.split(","))||[],a1=[...Le,...W];P=_.filter(I1=>!a1.includes(I1))}else if(b.columns){const W=[...Le,...b.columns];P=_.filter(a1=>!W.includes(a1))}return{sortBy:[{id:Z.get("sort")||"createdAt",desc:Z.has("order")?Z.get("order")==="desc":b.desc}],hiddenColumns:P,selectedRowIds:{}}},[N]),$e=u.useCallback(_=>_.name,[]),{allColumns:Ce,headerGroups:P1,rows:M1,state:{selectedRowIds:L1,sortBy:_1,hiddenColumns:X1},prepareRow:xt,setHiddenColumns:wt}=n1.useTable({columns:C1,data:be,initialState:ze,sortTypes:H,autoResetHiddenColumns:!1,disableSortRemove:!0,autoResetSortBy:!1,getRowId:$e},n1.useFlexLayout,n1.useSortBy,n1.useRowSelect);return u.useEffect(()=>{if(t)return;const _={};_.sort=_1[0].id,_1[0].desc&&(_.order="desc"),l1&&(_.search=l1),V&&(_.favorites="true"),_.columns=Ce.map(({id:P})=>P).filter(P=>!Le.includes(P)&&!(X1!=null&&X1.includes(P))).join(","),L(_,{replace:!0}),S(P=>({...P,id:_1[0].id,desc:_1[0].desc||!1,columns:_.columns.split(",")})),F(P=>({...P,favorites:Boolean(V)}))},[t,_1,X1,l1,L,V]),l(G,{children:[l(d1,{isLoading:t,className:r.container,header:n(s1,{titleElement:`Feature toggles (${M1.length})`,actions:l(G,{children:[n(w,{condition:!i,show:n(w1,{initialValue:l1,onChange:ye,hasFilters:!0,getSearchContext:T1})}),n(co,{allColumns:Ce,staticColumns:Le,dividerAfter:["createdAt"],dividerBefore:["Actions"],isCustomized:Boolean(b.columns),setHiddenColumns:wt}),n(s1.Divider,{sx:{marginLeft:0}}),n(w,{condition:Boolean((A=i1==null?void 0:i1.flags)==null?void 0:A.featuresExportImport),show:n(J1,{title:"Export toggles visible in the table below",arrow:!0,children:n(z1,{onClick:()=>c1(!0),sx:_=>({marginRight:_.spacing(2)}),children:n(En,{})})})}),n(yo,{onClick:()=>y(kn(g)),maxWidth:"960px",Icon:G3,projectId:g,permission:i2,"data-testid":"NAVIGATE_TO_CREATE_FEATURE",children:"New feature toggle"})]}),children:n(w,{condition:i,show:n(w1,{initialValue:l1,onChange:ye,hasFilters:!0,getSearchContext:T1})})}),children:[n(ce,{value:Q1(l1),children:n(gt,{rows:M1,headerGroups:P1,prepareRow:xt})}),n(w,{condition:M1.length===0,show:n(w,{condition:(l1==null?void 0:l1.length)>0,show:l(y1,{children:["No feature toggles found matching “",l1,"”"]}),elseShow:n(y1,{children:"No feature toggles available. Get started by adding a new feature toggle."})})}),n(Ba,{onClose:()=>c(_=>({..._,open:!1})),projectId:g,...s}),n(Va,{isStale:d.stale===!0,isOpen:Boolean(d.featureId),onClose:()=>{p({}),x()},featureId:d.featureId||"",projectId:g}),n(m0,{isOpen:Boolean(m),onConfirm:()=>{x()},onClose:()=>{v(void 0)},featureIds:[m||""],projectId:g})," ",n(Ma,{isOpen:C.isOpen,onClose:R,environment:C==null?void 0:C.environment,onConfirm:U,messageComponent:n(La,{featureName:C.featureName,enabled:C.enabled,environment:C==null?void 0:C.environment})}),n(w,{condition:Boolean((I=i1==null?void 0:i1.flags)==null?void 0:I.featuresExportImport)&&!t,show:n(H3,{showExportDialog:X,data:be,onClose:()=>c1(!1),environments:N})})]}),n(Dn,{count:Object.keys(L1).length,children:n(vo,{selectedIds:Object.keys(L1),data:e,projectId:g})})]})},Ze=h("div")(({theme:e})=>({margin:"0",textAlign:"center",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadiusLarge,width:"100%",minWidth:225,padding:e.spacing(3),[e.breakpoints.down("md")]:{display:"flex",flexDirection:"column",position:"relative",padding:e.spacing(1.5)}})),Pe=h("p")(({theme:e})=>({marginBottom:e.spacing(2.5)})),x2=h("span")(({theme:e})=>({fontSize:e.typography.h2.fontSize,fontWeight:"bold",color:e.palette.text.primary})),bt=({children:e,to:t})=>n(j,{variant:"body2",textAlign:"center",sx:{paddingTop:a=>a.spacing(2.5),marginTop:"auto",justifySelf:"flex-end"},children:n(c2,{component:E1,to:t,children:e})}),xo=h("p")(({theme:e})=>({fontSize:"1.5rem",[e.breakpoints.down("md")]:{fontSize:e.fontSizes.bodySize,marginBottom:e.spacing(4)}})),wo=h("p")(({theme:e})=>({fontSize:"1.5rem",[e.breakpoints.down("md")]:{fontSize:e.fontSizes.bodySize}})),So=({projectId:e,health:t})=>l(Ze,{children:[n(Pe,{"data-loading":!0,children:"Project health"}),l(E,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:a=>a.spacing(2)},children:[n(wo,{children:n(Rn,{percentage:t})}),l(xo,{"data-loading":!0,children:[t,"%"]})]}),n(bt,{to:`/projects/${e}/health`,children:"View project health"})]}),To=h(x2)(({theme:e})=>({marginLeft:"auto",fontWeight:e.typography.fontWeightRegular,color:e.palette.text.secondary})),Ao=h("div")(({theme:e})=>({display:"flex",gap:e.spacing(1.5),width:"100%",gridTemplateColumns:`${e.spacing(2.5)} auto auto`,margin:e.spacing(1,0),fontSize:e.fontSizes.smallBody,color:e.palette.text.secondary,alignItems:"center",[e.breakpoints.down("md")]:{margin:0}})),Eo=({type:e,Icon:t,count:a})=>l(Ao,{"data-loading":!0,children:[n(t,{fontSize:"small","data-loading":!0}),n("div",{children:(o=>o.charAt(0).toUpperCase()+o.slice(1).replace("-"," "))(e)}),n(To,{children:a})]}),ko=({features:e})=>{const t=u.useMemo(()=>{const a=(e==null?void 0:e.filter(c=>c.type==="release").length)||0,r=(e==null?void 0:e.filter(c=>c.type==="experiment").length)||0,o=(e==null?void 0:e.filter(c=>c.type==="operational").length)||0,i=(e==null?void 0:e.filter(c=>c.type==="kill-switch").length)||0,s=(e==null?void 0:e.filter(c=>c.type==="permission").length)||0;return{release:a,experiment:r,operational:o,"kill-switch":i,permission:s}},[e]);return l(Ze,{sx:{padding:a=>a.spacing(3)},children:[n(Pe,{children:"Toggle types used"}),Object.keys(t).map(a=>n(Eo,{type:a,Icon:Fn(a),count:t[a]},a))]})},Do=h("div")(({theme:e})=>({textAlign:"left",borderRadius:`${e.shape.borderRadius}px`,backgroundColor:`${e.palette.background.elevation2}`,padding:e.spacing(.5,2),fontSize:e.typography.body2.fontSize})),Ro=({id:e,description:t})=>l(Ze,{children:[n(Pe,{children:"Project Meta"}),l(Do,{children:[n(j,{component:"span",variant:"body2",color:"text.secondary",children:"ID:"})," ",n("code",{"data-loading":!0,children:e||"__________"})]}),n(w,{condition:Boolean(t),show:n(j,{variant:"body2",sx:{marginTop:a=>a.spacing(1.5),marginBottom:0,textAlign:"left"},children:t})}),n(w,{condition:!Boolean(t),show:n(bt,{to:`/projects/${e}/edit`,children:"Add description"})})]}),Fo=h(j)(({theme:e})=>({marginBottom:e.spacing(2.5)})),Zo=h(E)(({theme:e})=>({fontSize:e.fontSizes.largeHeader})),Ft=h(E)(({theme:e})=>({...O1,flexDirection:"column",alignItems:"center",marginLeft:e.spacing(2.5)})),U2=h(j)(({theme:e})=>({color:e.palette.text.secondary,fontSize:e.typography.body2.fontSize})),Po=h(j)(({theme:e})=>({marginLeft:e.spacing(1),fontSize:e.typography.body1.fontSize,fontWeight:e.typography.fontWeightBold})),Io=e=>e>0?n(sr,{sx:{color:"success.dark",height:20,width:20}}):n(pr,{sx:{color:"warning.dark",height:20,width:20}}),jo=e=>e>0?"success.dark":"warning.dark",xe=({title:e,boxText:t,change:a,percentage:r,children:o,customChangeElement:i})=>l(G,{children:[n(w,{condition:Boolean(e),show:n(Fo,{children:e})}),o,l(E,{sx:{...O1,justifyContent:"center",width:"auto"},children:[n(Zo,{children:t}),n(w,{condition:Boolean(i),show:n(Ft,{children:i}),elseShow:n(w,{condition:a!==void 0&&a!==0,show:l(Ft,{children:[l(E,{sx:{...O1},children:[Io(a),l(Po,{color:jo(a),children:[a>0?"+":"",a,r?"%":""]})]}),n(U2,{children:"this month"})]}),elseShow:n(Ft,{children:n(U2,{children:"No change"})})})})]})]}),Oo=({projectId:e,memberCount:t,change:a=0})=>{var i,s;const{uiConfig:r}=p1();let o="/admin/users";return(s=(i=r==null?void 0:r.versionInfo)==null?void 0:i.current)!=null&&s.enterprise&&(o=`/projects/${e}/settings/access`),l(Ze,{children:[n(Pe,{"data-loading":!0,children:"Project members"}),n(E,{sx:{display:"flex",justifyContent:"center"},children:n(xe,{boxText:`${t}`,change:a})}),n(bt,{to:o,children:"View all members"})]})},zo=e=>fetch(e).then(K1("ChangeRequest")).then(t=>t.json()),_0=e=>{const{data:t,error:a,mutate:r}=Zn([],G1(`api/admin/projects/${e}/change-requests`),zo);return u.useMemo(()=>({changeRequests:t,loading:!a&&!t,refetch:r,error:a}),[t,a,r])},Ne="change-requests-widget",$o=h(E)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(1.5)})),G2=h(E)(({theme:e})=>({flex:1,textAlign:"left",padding:e.spacing(1.5),borderRadius:e.shape.borderRadiusMedium,alignItems:"center",minWidth:175})),K2=h(E)(({theme:e})=>({display:"flex",alignItems:"center"})),Bo=h(x2)(({theme:e})=>({background:e.palette.seen.recent,padding:e.spacing(0,1),marginRight:e.spacing(.5),borderRadius:e.shape.borderRadius})),Vo=h(x2)(({theme:e})=>({background:e.palette.seen.primary,padding:e.spacing(0,1),marginRight:e.spacing(.5),borderRadius:e.shape.borderRadius})),J2=h(j)(({theme:e})=>({fontSize:e.typography.body2.fontSize,marginBottom:e.spacing(.5)})),Y2=()=>n(j,{component:"span",variant:"body2",color:"text.secondary",lineHeight:1,"data-loading":Ne,children:"change requests"}),Mo=({projectId:e})=>{const{changeRequests:t,loading:a}=_0(e),r=K3(a,`[data-loading="${Ne}"]`),o=t==null?void 0:t.filter(s=>(s==null?void 0:s.state)==="Approved").length,i=t==null?void 0:t.filter(s=>(s==null?void 0:s.state)==="In review").length;return l(Ze,{ref:r,children:[n(Pe,{children:"Open change requests"}),l($o,{children:[l(G2,{sx:{background:s=>s.palette.success.light},children:[n(J2,{children:"To be applied"}),l(K2,{children:[n(Bo,{"data-loading":Ne,children:o||0})," ",n(Y2,{})]})]}),l(G2,{sx:{background:s=>s.palette.secondary.light},children:[n(J2,{children:"To be reviewed"}),l(K2,{children:[n(Vo,{"data-loading":Ne,children:i||0})," ",n(Y2,{})]})]})]}),n(bt,{to:`/projects/${e}/change-requests`,children:"View change requests"})]})},Lo=h(E)(({theme:e})=>({...O1,width:"225px",flexDirection:"column",gap:e.spacing(2),boxShadow:"none",[e.breakpoints.down("md")]:{display:"grid",width:"100%",alignItems:"stretch",marginBottom:e.spacing(2)},[e.breakpoints.down("sm")]:{display:"flex"}})),Ho=({id:e,description:t,memberCount:a,health:r,features:o,stats:i})=>{const{uiConfig:s,isEnterprise:c}=p1(),d=h1(),p=g1(d.breakpoints.down("md")),{isChangeRequestConfiguredInAnyEnv:m}=pt(e),v=c()&&m(),g=e!==Pn;return n("aside",{children:l(Lo,{sx:!v&&!g||p&&v&&g?{gridTemplateColumns:"repeat(auto-fill, minmax(225px, 1fr))"}:{gridTemplateColumns:"repeat(2, 1fr)"},children:[n(w,{condition:v,show:n(E,{sx:{gridColumnStart:g?"span 2":"span 1",flex:1,display:"flex"},children:n(Mo,{projectId:e})})}),n(Ro,{id:e,description:t}),n(So,{projectId:e,health:r}),n(w,{condition:g,show:n(Oo,{projectId:e,memberCount:a,change:i==null?void 0:i.projectMembersAddedCurrentWindow})}),n(ko,{features:o})]})})},Wo=h(B1)(({theme:e})=>({padding:e.spacing(3,3),maxWidth:"350px",borderRadius:`${e.shape.borderRadiusMedium}px`,border:`1px solid ${e.palette.neutral.border}`,fontSize:e.typography.body2.fontSize})),Q2=({children:e,id:t})=>{const[a,r]=u.useState(null),o=c=>r(c.currentTarget),i=()=>r(null),s=Boolean(a);return l(E,{sx:{position:"absolute",top:c=>c.spacing(.5),right:c=>c.spacing(.5)},children:[n(z1,{onClick:o,"aria-describedby":t,size:"small",children:n(J3,{sx:{fontSize:c=>c.typography.body1.fontSize}})}),n(Y3,{id:t,open:s,anchorEl:a,sx:c=>({zIndex:c.zIndex.tooltip}),children:n(Q3,{onClickAway:i,children:l(Wo,{elevation:3,children:[n(z1,{onClick:i,sx:{position:"absolute",right:4,top:4},children:n(In,{sx:{fontSize:c=>c.typography.body1.fontSize}})}),e,n(jn,{id:t,eventName:"project_overview",localStorageKey:"ProjectOverviewFeedback"})]})})})]})},No=h(E)(({theme:e})=>({padding:e.spacing(0,0,2,2),display:"grid",gap:e.spacing(2),gridTemplateColumns:"repeat(4, 1fr)",flexWrap:"wrap",[e.breakpoints.down("lg")]:{gridTemplateColumns:"repeat(2, 1fr)"},[e.breakpoints.down("md")]:{padding:e.spacing(0,0,2)},[e.breakpoints.down("sm")]:{flexDirection:"column"}})),He=h(E)(({theme:e})=>({position:"relative",padding:e.spacing(3),backgroundColor:e.palette.background.paper,flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",borderRadius:`${e.shape.borderRadiusLarge}px`,[e.breakpoints.down("lg")]:{padding:e.spacing(2)}})),qo=h(j)(({theme:e})=>({color:e.palette.text.secondary,fontSize:e.typography.body2.fontSize,lineHeight:e.typography.body2.lineHeight})),Uo=({stats:e})=>{if(Object.keys(e).length===0)return null;const{avgTimeToProdCurrentWindow:t,projectActivityCurrentWindow:a,projectActivityPastWindow:r,createdCurrentWindow:o,createdPastWindow:i,archivedCurrentWindow:s,archivedPastWindow:c}=e;return l(No,{children:[n(He,{children:n(xe,{title:"Total changes",boxText:String(a),change:a-r,children:n(Q2,{id:"total-changes",children:"Sum of all configuration and state modifications in the project."})})}),n(He,{children:n(xe,{title:"Avg. time to production",boxText:l(E,{sx:{display:"flex",alignItems:"center",gap:d=>d.spacing(1)},children:[t," ",n(j,{component:"span",children:"days"})]}),customChangeElement:n(qo,{children:"In project life"}),percentage:!0,children:n(Q2,{id:"avg-time-to-prod",children:'How long did it take on average from a feature toggle was created until it was enabled in an environment of type production. This is calculated only from feature toggles with the type of "release".'})})}),n(He,{children:n(xe,{title:"Features created",boxText:String(o),change:o-i})}),n(He,{children:n(xe,{title:"Features archived",boxText:String(s),change:s-c})})]})},Go=15*1e3,Ko=h("div")(({theme:e})=>({display:"flex",[e.breakpoints.down("md")]:{flexDirection:"column"}})),Jo=h("div")(()=>({width:"100%",minWidth:0})),Yo=h(E)(()=>({display:"flex",flexDirection:"column",width:"100%",minWidth:0})),Qo=()=>{const e=Y("projectId"),t=k1(e),{project:a,loading:r}=D1(e,{refreshInterval:Go}),{members:o,features:i,health:s,description:c,environments:d,stats:p}=a;S1(`Project overview – ${t}`);const{setLastViewed:m}=On();return p1(),u.useEffect(()=>{m(e)},[e,m]),l(Ko,{children:[n(Ho,{id:e,description:c,memberCount:o,health:s,features:i,stats:p}),l(Yo,{children:[n(Uo,{stats:a.stats}),n(Jo,{children:n(_o,{features:i,environments:d,loading:r})})]})]})},Xo=(e,t)=>{const a=G1(`api/admin/projects/${e}/health-report`),{data:r,error:o}=se(a,e4,t),i=u.useCallback(()=>{X3(a).catch(console.warn)},[a]);return{healthReport:r,refetchHealthReport:i,loading:!o&&!r,error:o}},e4=e=>fetch(e).then(K1("Health report")).then(t=>t.json());var w2={},t4=ke;Object.defineProperty(w2,"__esModule",{value:!0});var Jt=w2.default=void 0,n4=t4(Ee()),a4=De,r4=(0,n4.default)((0,a4.jsx)("path",{d:"M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined");Jt=w2.default=r4;const o4=h(E)(({theme:e})=>({display:"flex",alignItems:"center",color:e.palette.success.dark,"& svg":{color:e.palette.success.main}})),X2=h(E)(({theme:e})=>({display:"flex",alignItems:"center",color:e.palette.warning.dark,"& svg":{color:e.palette.warning.main}})),i4=h(B1)(({theme:e})=>({padding:e.spacing(4),marginBottom:e.spacing(2),borderRadius:e.shape.borderRadiusLarge,boxShadow:"none",display:"flex",justifyContent:"space-between",[e.breakpoints.down("md")]:{flexDirection:"column",gap:e.spacing(2)}})),Zt=h("h2")(({theme:e})=>({fontSize:e.fontSizes.mainHeader,marginBottom:e.spacing(1)})),s4=h("p")(({theme:e})=>({fontSize:"2rem",fontWeight:e.fontWeight.bold})),c4=h("p")(({theme:e})=>({color:e.palette.text.secondary})),e3=h("ul")(({theme:e})=>({listStyleType:"none",margin:0,padding:0,"& svg":{marginRight:e.spacing(1)}})),t3=h("p")(({theme:e})=>({marginLeft:e.spacing(4)})),l4=({healthReport:e})=>{const t=e.health<50?"error.main":e.health<75?"warning.main":"success.main",a=()=>l(o4,{children:[n(zn,{}),l("span",{children:[e.activeCount," active toggles"]})]}),r=()=>l(X2,{children:[n(Jt,{}),l("span",{children:[e.staleCount," stale toggles"]})]}),o=()=>l(X2,{children:[n(Jt,{}),l("span",{children:[e.potentiallyStaleCount," potentially stale toggles"]})]});return l(i4,{children:[l(E,{children:[n(Zt,{children:"Health rating"}),n(w,{condition:e.health>-1,show:l(G,{children:[l(s4,{sx:{color:t},children:[e.health,"%"]}),l(c4,{children:["Last updated:"," ",n(d2,{date:e.updatedAt,live:!1})]})]})})]}),l(E,{children:[n(Zt,{children:"Toggle report"}),l(e3,{children:[n("li",{children:n(w,{condition:Boolean(e.activeCount),show:a})}),n(w,{condition:Boolean(e.activeCount),show:n(t3,{children:"Also includes potentially stale toggles."})}),n("li",{children:n(w,{condition:Boolean(e.staleCount),show:r})})]})]}),l(E,{sx:{flexBasis:"40%"},children:[n(Zt,{children:"Potential actions"}),n(e3,{children:n("li",{children:n(w,{condition:Boolean(e.potentiallyStaleCount),show:o})})}),n(w,{condition:Boolean(e.potentiallyStaleCount),show:n(t3,{children:"Review your feature toggles and delete unused toggles."}),elseShow:n("span",{children:"No action is required"})})]})]})},d4=({row:e})=>{const t=h1();return e.original.expiredAt?n(ht,{value:e.original.expiredAt}):n(o1,{children:n(j,{variant:"body2",color:t.palette.text.secondary,children:"N/A"})})},u4=h("span")(({theme:e})=>({display:"flex",gap:"1ch",alignItems:"center",color:e.palette.warning.dark,"& svg":{color:e.palette.warning.main}})),p4=h("span")(({theme:e})=>({display:"flex",gap:"1ch",alignItems:"center",color:e.palette.success.dark,"& svg":{color:e.palette.success.main}})),h4=({row:e})=>e.original.status==="potentially-stale"?n(o1,{children:l(u4,{children:[n(ur,{}),n("span",{children:"Potentially stale"})]})}):n(o1,{children:l(p4,{children:[n(e0,{}),n("span",{children:"Healthy"})]})}),n3=40,m4=7,x0={[Bn]:n3,[Vn]:n3,[Mn]:m4},w0=(e,t)=>Math.abs($n(e,t)),S0=(e,t)=>e>=x0[t],g4=e=>{const{type:t,createdAt:a}=e,r=t0(a),o=new Date,i=w0(r,o);return S0(i,t)&&t!==n0&&t!==a0?"potentially-stale":"healthy"},f4=e=>{const{type:t,createdAt:a}=e;if(t===n0||t===a0)return;const r=t0(a),o=new Date,i=w0(r,o);if(S0(i,t)){const s=i-x0[t];return hr(o,s).toISOString()}},v4=({projectId:e,features:t})=>{const a=h1(),r=g1(a.breakpoints.down("sm")),o=g1(a.breakpoints.down("md")),i=g1(a.breakpoints.down("lg")),s=u.useMemo(()=>t.map(T=>({project:e,name:T.name,type:T.type,stale:T.stale,status:g4(T),lastSeenAt:T.lastSeenAt,createdAt:T.createdAt,expiredAt:f4(T)})),[e,t]),c=u.useMemo(()=>({hiddenColumns:[],sortBy:[{id:"createdAt"}]}),[]),{headerGroups:d,rows:p,prepareRow:m,state:{globalFilter:v},setGlobalFilter:g,setHiddenColumns:b}=n1.useTable({columns:a3,data:s,initialState:c,sortTypes:Re,autoResetGlobalFilter:!1,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0},n1.useGlobalFilter,n1.useFlexLayout,n1.useSortBy);ft([{condition:r,columns:["stale"]},{condition:o,columns:["expiredAt","lastSeenAt"]},{condition:i,columns:["createdAt"]}],b,a3);const S=p.length<s.length?`Feature toggles (${p.length} of ${s.length})`:`Feature toggles (${s.length})`;return l(d1,{header:n(s1,{title:S,actions:n(w1,{initialValue:v,onChange:g})}),children:[n(ce,{value:v,children:n(gt,{headerGroups:d,prepareRow:m,rows:p})}),n(w,{condition:p.length===0,show:n(w,{condition:(v==null?void 0:v.length)>0,show:l(y1,{children:["No feature toggles found matching “",v,"”"]}),elseShow:n(y1,{children:"No feature toggles available. Get started by adding a new feature toggle."})})})]})},a3=[{Header:"Seen",accessor:"lastSeenAt",sortType:"date",align:"center",Cell:N3,disableGlobalFilter:!0,maxWidth:85},{Header:"Type",accessor:"type",align:"center",Cell:q3,disableGlobalFilter:!0,maxWidth:85},{Header:"Name",accessor:"name",sortType:"alphanumeric",Cell:Ln,minWidth:120},{Header:"Created",accessor:"createdAt",sortType:"date",Cell:ht,disableGlobalFilter:!0,maxWidth:150},{Header:"Expired",accessor:"expiredAt",Cell:d4,disableGlobalFilter:!0,maxWidth:150},{Header:"Status",id:"status",accessor:"status",Cell:h4,disableGlobalFilter:!0,width:180},{Header:"State",accessor:"stale",sortType:"boolean",Cell:Hn,disableGlobalFilter:!0,maxWidth:120}],y4=()=>{const e=Y("projectId"),t=k1(e);S1(`Project health – ${t}`);const{healthReport:a,refetchHealthReport:r,error:o}=Xo(e,{refreshInterval:15*1e3});return a?l("div",{children:[n(w,{condition:Boolean(o),show:n(B3,{"data-loading":!0,style:{maxWidth:"500px",marginTop:"1rem"},onClick:r,text:`Could not fetch health rating for ${e}`})}),n(l4,{healthReport:a}),n(v4,{projectId:e,features:a.features})]}):null},b4=h("div")(({theme:e})=>({borderRadius:"12.5px",backgroundColor:e.palette.background.paper,padding:"2rem"})),C4=()=>{const e=Y("projectId");return n(b4,{children:n(Wn,{title:"Event Log",project:e,displayInline:!0})})},T0=(e,t)=>{const{data:a,error:r,mutate:o}=se(G1(`api/admin/projects/${e}/change-requests/${t}`),_4,{refreshInterval:15e3});return{data:a,loading:!r&&!a,refetchChangeRequest:()=>o(),error:r}},_4=e=>fetch(e).then(K1("Request changes")).then(t=>t.json()),x4=h(B1)(({theme:e})=>({padding:e.spacing(3,4),borderRadius:`${e.shape.borderRadiusLarge}px`}));h(E)(({theme:e})=>({display:"flex",alignItems:"center",marginBottom:e.spacing(2)}));const w4=h(E)(({theme:e})=>({display:"flex",alignItems:"center"})),S4=h(j)(({theme:e})=>({display:"flex",alignItems:"center",marginRight:e.spacing(1),fontSize:e.fontSizes.mainHeader})),T4=h(Nn)(({theme:e})=>({padding:e.spacing(.75,1.5),backgroundColor:e.palette.background.elevation2})),A0=h(vt)(({theme:e})=>({height:"24px",width:"24px"})),A4=({changeRequest:e})=>{var r,o,i;const[t,a]=u.useState(e.title);return l(x4,{elevation:0,children:[n(qn,{environmentChangeRequest:e,title:t,setTitle:a,children:n(S4,{variant:"h1",sx:{mr:1.5},children:t})}),l(w4,{children:[n(r0,{state:e.state}),l(j,{variant:"body2",sx:s=>({margin:s.spacing("auto",0,"auto",2)}),children:["Created"," ",n(d2,{minPeriod:60,date:new Date(e.createdAt)})," ","by"]}),n(E,{sx:s=>({marginLeft:s.spacing(1)}),children:n(J1,{title:(r=e==null?void 0:e.createdBy)==null?void 0:r.username,children:n(A0,{src:(o=e==null?void 0:e.createdBy)==null?void 0:o.imageUrl})})}),n(j,{variant:"body2",sx:s=>({marginLeft:s.spacing(.5)}),children:(i=e==null?void 0:e.createdBy)==null?void 0:i.username}),n(E,{sx:s=>({marginLeft:s.spacing(1.5)}),children:n(T4,{variant:"outlined",children:l(j,{variant:"body2",sx:{lineHeight:1},children:["Environment:"," ",n(j,{display:"inline",fontWeight:"bold",variant:"body2",component:"span",children:e==null?void 0:e.environment})," ",n(Un,{})," Updates:"," ",l(j,{variant:"body2",display:"inline",fontWeight:"bold",component:"span",children:[e.features.length," ",e.features.length===1?"feature toggle":"feature toggles"]})]})})})]})]})};function r1(){return r1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},r1.apply(this,arguments)}function me(e,t){if(e==null)return{};var a={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(a[o]=e[o]);return a}const E4=u.createContext({}),Ye=E4;function k4(e){return le("MuiTimeline",e)}Y1("MuiTimeline",["root","positionLeft","positionRight","positionAlternate"]);const D4=["position","className"],R4=e=>{const{position:t,classes:a}=e,r={root:["root",t&&`position${F1(t)}`]};return pe(r,k4,a)},F4=h("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,a.position&&t[`position${F1(a.position)}`]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),Z4=u.forwardRef(function(t,a){const r=de({props:t,name:"MuiTimeline"}),{position:o="right",className:i}=r,s=me(r,D4),c=r1({},r,{position:o}),d=R4(c),p=u.useMemo(()=>({position:o}),[o]);return n(Ye.Provider,{value:p,children:n(F4,r1({className:ue(d.root,i),ownerState:c,ref:a},s))})}),E0=Z4;function P4(e){return le("MuiTimelineContent",e)}const I4=Y1("MuiTimelineContent",["root","positionLeft","positionRight","positionAlternate"]),j4=["className"],O4=e=>{const{position:t,classes:a}=e,r={root:["root",`position${F1(t)}`]};return pe(r,P4,a)},z4=h(j,{name:"MuiTimelineContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[`position${F1(a.position)}`]]}})(({ownerState:e})=>r1({flex:1,padding:"6px 16px",textAlign:"left"},e.position==="left"&&{textAlign:"right"})),$4=u.forwardRef(function(t,a){const r=de({props:t,name:"MuiTimelineContent"}),{className:o}=r,i=me(r,j4),{position:s}=u.useContext(Ye),c=r1({},r,{position:s||"right"}),d=O4(c);return n(z4,r1({component:"div",className:ue(d.root,o),ownerState:c,ref:a},i))}),k0=$4,B4=Y1("MuiTimelineOppositeContent",["root","positionLeft","positionRight","positionAlternate"]),V4=B4;function M4(e){return le("MuiTimelineItem",e)}const L4=Y1("MuiTimelineItem",["root","positionLeft","positionRight","positionAlternate","missingOppositeContent"]),D0=L4,H4=["position","className"],W4=e=>{const{position:t,classes:a,hasOppositeContent:r}=e,o={root:["root",`position${F1(t)}`,!r&&"missingOppositeContent"]};return pe(o,M4,a)},N4=h("li",{name:"MuiTimelineItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[`position${F1(a.position)}`]]}})(({ownerState:e})=>r1({listStyle:"none",display:"flex",position:"relative",minHeight:70},e.position==="left"&&{flexDirection:"row-reverse"},e.position==="alternate"&&{"&:nth-of-type(even)":{flexDirection:"row-reverse",[`& .${I4.root}`]:{textAlign:"right"},[`& .${V4.root}`]:{textAlign:"left"}}},!e.hasOppositeContent&&{"&:before":{content:'""',flex:1,padding:"6px 16px"}})),q4=u.forwardRef(function(t,a){const r=de({props:t,name:"MuiTimelineItem"}),{position:o,className:i}=r,s=me(r,H4),{position:c}=u.useContext(Ye);let d=!1;u.Children.forEach(r.children,g=>{Gn(g,["TimelineOppositeContent"])&&(d=!0)});const p=r1({},r,{position:o||c||"right",hasOppositeContent:d}),m=W4(p),v=u.useMemo(()=>({position:p.position}),[p.position]);return n(Ye.Provider,{value:v,children:n(N4,r1({className:ue(m.root,i),ownerState:p,ref:a},s))})}),qe=q4;function U4(e){return le("MuiTimelineSeparator",e)}Y1("MuiTimelineSeparator",["root"]);const G4=["className"],K4=e=>{const{classes:t}=e;return pe({root:["root"]},U4,t)},J4=h("div",{name:"MuiTimelineSeparator",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",flex:0,alignItems:"center"}),Y4=u.forwardRef(function(t,a){const r=de({props:t,name:"MuiTimelineSeparator"}),{className:o}=r,i=me(r,G4),s=r,c=K4(s);return n(J4,r1({className:ue(c.root,o),ownerState:s,ref:a},i))}),Ue=Y4;function Q4(e){return le("MuiTimelineDot",e)}Y1("MuiTimelineDot",["root","filled","outlined","filledGrey","outlinedGrey","filledPrimary","outlinedPrimary","filledSecondary","outlinedSecondary"]);const X4=["className","color","variant"],ei=e=>{const{color:t,variant:a,classes:r}=e,o={root:["root",a,t!=="inherit"&&`${a}${F1(t)}`]};return pe(o,Q4,r)},ti=h("span",{name:"MuiTimelineDot",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[a.color!=="inherit"&&`${a.variant}${F1(a.color)}`],t[a.variant]]}})(({ownerState:e,theme:t})=>r1({display:"flex",alignSelf:"baseline",borderStyle:"solid",borderWidth:2,padding:4,borderRadius:"50%",boxShadow:(t.vars||t).shadows[1],margin:"11.5px 0"},e.variant==="filled"&&r1({borderColor:"transparent"},e.color!=="inherit"&&r1({},e.color==="grey"?{color:(t.vars||t).palette.grey[50],backgroundColor:(t.vars||t).palette.grey[400]}:{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main})),e.variant==="outlined"&&r1({boxShadow:"none",backgroundColor:"transparent"},e.color!=="inherit"&&r1({},e.color==="grey"?{borderColor:(t.vars||t).palette.grey[400]}:{borderColor:(t.vars||t).palette[e.color].main})))),ni=u.forwardRef(function(t,a){const r=de({props:t,name:"MuiTimelineDot"}),{className:o,color:i="grey",variant:s="filled"}=r,c=me(r,X4),d=r1({},r,{color:i,variant:s}),p=ei(d);return n(ti,r1({className:ue(p.root,o),ownerState:d,ref:a},c))}),R0=ni;function ai(e){return le("MuiTimelineConnector",e)}Y1("MuiTimelineConnector",["root"]);const ri=["className"],oi=e=>{const{classes:t}=e;return pe({root:["root"]},ai,t)},ii=h("span",{name:"MuiTimelineConnector",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.grey[400],flexGrow:1})),si=u.forwardRef(function(t,a){const r=de({props:t,name:"MuiTimelineConnector"}),{className:o}=r,i=me(r,ri),s=r,c=oi(s);return n(ii,r1({className:ue(c.root,o),ownerState:s,ref:a},i))}),S2=si,ci=h(B1)(({theme:e})=>({marginTop:e.spacing(2),borderRadius:`${e.shape.borderRadiusLarge}px`})),li=h(E)(({theme:e})=>({padding:e.spacing(2),marginBottom:`-${e.spacing(4)}`})),di=h(E0)(()=>({[`& .${D0.root}:before`]:{flex:0,padding:0}})),ui=({state:e})=>{const t=r=>["Draft","In review","Approved","Applied"].map(i=>({title:i,active:i===r}));return n(ci,{elevation:0,children:n(li,{children:n(di,{children:(()=>{const r=t(e),o=r.findIndex(s=>s.active),i=o!==-1?o:null;return e==="Cancelled"?hi(r):pi(r,i)})()})})})},pi=(e,t)=>e.map(({title:a},r)=>{const o=r<e.length-1,i=n(w,{condition:o,show:n(S2,{})});return t!==null&&t>=r?Ge("success",a,i):t!==null&&t+1===r?Ge("primary",a,i,{variant:"outlined"}):Ge("grey",a,i)}),hi=e=>e.map(({title:t},a)=>{const r=a<e.length-1;return Ge("grey",t,n(w,{condition:r,show:n(S2,{})}))}),Ge=(e,t,a,r={})=>l(qe,{children:[l(Ue,{children:[n(R0,{color:e,...r}),a]}),n(k0,{children:t})]},t),mi=h(E)(({theme:e})=>({marginBottom:e.spacing(2)})),gi=({actualApprovals:e,minApprovals:t})=>l(G,{children:["Reviewers"," ",l(j,{component:"span",color:"text.secondary",children:["(",e,"/",t," required)"]})]}),fi=({header:e,children:t})=>l(B1,{elevation:0,sx:a=>({marginTop:a.spacing(2),padding:a.spacing(4),borderRadius:r=>`${r.shape.borderRadiusLarge}px`}),children:[n(mi,{children:e}),n(j,{variant:"body1",color:"text.secondary",children:n(w,{condition:we.Children.count(t)>0,show:"Approved by",elseShow:"No approvals yet"})}),t]}),T2=()=>e=>e!=="color"&&e!=="sx"&&e!=="approved"&&e!=="border"&&e!=="bgColor"&&e!=="svgColor",oe=h(E)(({theme:e})=>({display:"flex",alignItems:"center"})),vi=h(o0)(({theme:e})=>({color:e.palette.error.main,height:"35px",width:"35px",marginRight:e.spacing(1)})),r3=h(o0)(({theme:e})=>({color:e.palette.warning.main,height:"35px",width:"35px",marginRight:e.spacing(1)})),Yt=h(i0)(({theme:e})=>({color:e.palette.success.main,height:"35px",width:"35px",marginRight:e.spacing(1)})),yi=h(E)(({theme:e})=>({display:"flex",marginTop:e.spacing(2)})),bi=h(E,{shouldForwardProp:T2()})(({theme:e,bgColor:t,svgColor:a})=>({borderRadius:`${e.shape.borderRadiusMedium}px`,backgroundColor:t,padding:e.spacing(1,2),marginRight:e.spacing(2),height:"45px",width:"45px",display:"flex",alignItems:"center",justifyContent:"center",svg:{color:a}})),F0=h(M3)(({theme:e})=>({margin:e.spacing(2.5,0)})),Ci=h(E,{shouldForwardProp:T2()})(({theme:e,border:t})=>({borderRadius:`${e.shape.borderRadiusLarge}px`,border:t,padding:e.spacing(3),width:"100%"})),ie=h(j,{shouldForwardProp:T2()})(({theme:e,color:t})=>({fontWeight:"bold",color:t})),_i=(e,t)=>e==="Approved"?`2px solid ${t.palette.success.main}`:e==="Applied"?`2px solid ${t.palette.primary.main}`:`1px solid ${t.palette.divider}`,xi=(e,t)=>e==="Approved"?{bgColor:t.palette.success.main,svgColor:t.palette.background.paper}:e==="Applied"?{bgColor:t.palette.primary.main,svgColor:t.palette.background.paper}:{bgColor:t.palette.background.elevation2,svgColor:t.palette.neutral.main},wi=({changeRequest:e})=>{const t=h1();return l(yi,{children:[n(bi,{...xi(e.state,t),children:n(Kn,{style:{transform:"scale(1.5)"}})}),n(Ci,{sx:{backgroundColor:e.state==="In review"?t.palette.warning.light:"initial"},border:_i(e.state,t),children:n(Si,{changeRequest:e})})]})},Si=({changeRequest:e})=>{const{state:t}=e;return t?t==="Approved"?n(Ti,{}):t==="Applied"?n(Ei,{}):t==="Cancelled"?n(ki,{}):n(Ai,{minApprovals:e.minApprovals}):null},Ti=()=>{const e=h1();return l(G,{children:[l(oe,{children:[n(Yt,{}),l(E,{children:[n(ie,{color:e.palette.success.dark,children:"Changes approved"}),n(j,{children:"One approving review from requested approvers"})]})]}),n(F0,{}),l(oe,{children:[n(Yt,{}),n(E,{children:n(ie,{color:e.palette.success.dark,children:"Changes are ready to be applied"})})]})]})},Ai=({minApprovals:e})=>{const t=h1();return l(G,{children:[l(oe,{children:[n(r3,{}),l(E,{children:[n(ie,{color:t.palette.warning.dark,children:"Review required"}),l(j,{children:["At least ",e," approval(s) must be submitted before changes can be applied"]})]})]}),n(F0,{}),l(oe,{children:[n(r3,{}),n(ie,{color:t.palette.warning.dark,children:"Apply changes is blocked"})]})]})},Ei=()=>{const e=h1();return n(G,{children:l(oe,{children:[n(Yt,{sx:{color:e.palette.primary.main}}),n(E,{children:n(ie,{color:e.palette.primary.main,children:"Changes applied"})})]})})},ki=()=>{const e=h1();return n(G,{children:l(oe,{children:[n(vi,{}),n(E,{children:n(ie,{color:e.palette.error.main,children:"Changes cancelled"})})]})})};var A2={},Di=ke;Object.defineProperty(A2,"__esModule",{value:!0});var Z0=A2.default=void 0,Ri=Di(Ee()),Fi=De,Zi=(0,Ri.default)((0,Fi.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");Z0=A2.default=Zi;const Pi=({disabled:e})=>{const{isAdmin:t}=u.useContext(he),a=Y("projectId"),r=Y("id"),{user:o}=s0(),{refetchChangeRequest:i,data:s}=T0(a,r),{refetch:c}=u2(a),{setToastApiError:d,setToastData:p}=u1(),{changeState:m}=p2(),[v,g]=we.useState(!1),b=we.useRef(null),S=async()=>{try{await m(a,Number(r),{state:"Approved"}),i(),c(),p({type:"success",title:"Success",text:"Changes approved"})}catch(y){d(f1(y))}},T=()=>{g(y=>!y)},F=y=>{b.current&&b.current.contains(y.target)||g(!1)};return l(we.Fragment,{children:[n(h2,{variant:"contained",disabled:e||(s==null?void 0:s.createdBy.id)===(o==null?void 0:o.id)&&!t,"aria-controls":v?"review-options-menu":void 0,"aria-expanded":v?"true":void 0,"aria-label":"review changes","aria-haspopup":"menu",onClick:T,ref:b,endIcon:n(Z0,{}),permission:Jn,projectId:a,environmentId:s==null?void 0:s.environment,children:"Review changes"}),n(Y3,{sx:{zIndex:1},open:v,anchorEl:b.current,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:y,placement:Z})=>n(Yn,{...y,style:{transformOrigin:Z==="bottom"?"center top":"center bottom"},children:n(B1,{className:"dropdown-outline",children:n(Q3,{onClickAway:F,children:n(dt,{id:"review-options-menu",autoFocusItem:!0,children:n(W1,{onClick:S,children:"Approve changes"})})})})})})]})},Ii=h(E)(({theme:e})=>({display:"flex",alignItems:"center",flexWrap:"wrap",marginTop:e.spacing(1.5),gap:e.spacing(1)})),ji=h(i0)(({theme:e})=>({color:e.palette.success.main,marginLeft:"auto"})),Oi=({name:e,imageUrl:t})=>l(Ii,{children:[n(A0,{src:t}),n(j,{variant:"body1",color:"text.primary",sx:{maxWidth:"170px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},children:e}),n(ji,{})]});var P0={},E2={},k2={};Object.defineProperty(k2,"__esModule",{value:!0});var zi=u,$i=Bi(zi);function Bi(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}k2.default=function(e,t,a){return $i.createElement("a",{href:e,key:a},t)};var D2={};Object.defineProperty(D2,"__esModule",{value:!0});D2.default=function(e){return e};var R2={},Pt,o3;function Vi(){return o3||(o3=1,Pt=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Pt}var It,i3;function Mi(){return i3||(i3=1,It=/[\0-\x1F\x7F-\x9F]/),It}var jt,s3;function Li(){return s3||(s3=1,jt=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),jt}var Ot,c3;function Hi(){return c3||(c3=1,Ot=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),Ot}var zt,l3;function Wi(){return l3||(l3=1,zt=function(e){var t={};t.src_Any=Vi().source,t.src_Cc=Mi().source,t.src_Z=Li().source,t.src_P=Hi().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var a="[><|]";return t.src_pseudo_letter="(?:(?!"+a+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+a+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+a+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+a+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),zt}function Qt(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(a){a&&Object.keys(a).forEach(function(r){e[r]=a[r]})}),e}function Ct(e){return Object.prototype.toString.call(e)}function Ni(e){return Ct(e)==="[object String]"}function qi(e){return Ct(e)==="[object Object]"}function Ui(e){return Ct(e)==="[object RegExp]"}function d3(e){return Ct(e)==="[object Function]"}function Gi(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var I0={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ki(e){return Object.keys(e||{}).reduce(function(t,a){return t||I0.hasOwnProperty(a)},!1)}var Ji={"http:":{validate:function(e,t,a){var r=e.slice(t);return a.re.http||(a.re.http=new RegExp("^\\/\\/"+a.re.src_auth+a.re.src_host_port_strict+a.re.src_path,"i")),a.re.http.test(r)?r.match(a.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,a){var r=e.slice(t);return a.re.no_http||(a.re.no_http=new RegExp("^"+a.re.src_auth+"(?:localhost|(?:(?:"+a.re.src_domain+")\\.)+"+a.re.src_domain_root+")"+a.re.src_port+a.re.src_host_terminator+a.re.src_path,"i")),a.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(a.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,a){var r=e.slice(t);return a.re.mailto||(a.re.mailto=new RegExp("^"+a.re.src_email_name+"@"+a.re.src_host_strict,"i")),a.re.mailto.test(r)?r.match(a.re.mailto)[0].length:0}}},Yi="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Qi="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Xi(e){e.__index__=-1,e.__text_cache__=""}function es(e){return function(t,a){var r=t.slice(a);return e.test(r)?r.match(e)[0].length:0}}function u3(){return function(e,t){t.normalize(e)}}function Qe(e){var t=e.re=Wi()(e.__opts__),a=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||a.push(Yi),a.push(t.src_xn),t.src_tlds=a.join("|");function r(c){return c.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var o=[];e.__compiled__={};function i(c,d){throw new Error('(LinkifyIt) Invalid schema "'+c+'": '+d)}Object.keys(e.__schemas__).forEach(function(c){var d=e.__schemas__[c];if(d!==null){var p={validate:null,link:null};if(e.__compiled__[c]=p,qi(d)){Ui(d.validate)?p.validate=es(d.validate):d3(d.validate)?p.validate=d.validate:i(c,d),d3(d.normalize)?p.normalize=d.normalize:d.normalize?i(c,d):p.normalize=u3();return}if(Ni(d)){o.push(c);return}i(c,d)}}),o.forEach(function(c){e.__compiled__[e.__schemas__[c]]&&(e.__compiled__[c].validate=e.__compiled__[e.__schemas__[c]].validate,e.__compiled__[c].normalize=e.__compiled__[e.__schemas__[c]].normalize)}),e.__compiled__[""]={validate:null,normalize:u3()};var s=Object.keys(e.__compiled__).filter(function(c){return c.length>0&&e.__compiled__[c]}).map(Gi).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),Xi(e)}function ts(e,t){var a=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(a,r);this.schema=e.__schema__.toLowerCase(),this.index=a+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function p3(e,t){var a=new ts(e,t);return e.__compiled__[a.schema].normalize(a,e),a}function b1(e,t){if(!(this instanceof b1))return new b1(e,t);t||Ki(e)&&(t=e,e={}),this.__opts__=Qt({},I0,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Qt({},Ji,e),this.__compiled__={},this.__tlds__=Qi,this.__tlds_replaced__=!1,this.re={},Qe(this)}b1.prototype.add=function(t,a){return this.__schemas__[t]=a,Qe(this),this};b1.prototype.set=function(t){return this.__opts__=Qt(this.__opts__,t),this};b1.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var a,r,o,i,s,c,d,p,m;if(this.re.schema_test.test(t)){for(d=this.re.schema_search,d.lastIndex=0;(a=d.exec(t))!==null;)if(i=this.testSchemaAt(t,a[2],d.lastIndex),i){this.__schema__=a[2],this.__index__=a.index+a[1].length,this.__last_index__=a.index+a[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(p=t.search(this.re.host_fuzzy_test),p>=0&&(this.__index__<0||p<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=r.index+r[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(m=t.indexOf("@"),m>=0&&(o=t.match(this.re.email_fuzzy))!==null&&(s=o.index+o[1].length,c=o.index+o[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&c>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=c))),this.__index__>=0};b1.prototype.pretest=function(t){return this.re.pretest.test(t)};b1.prototype.testSchemaAt=function(t,a,r){return this.__compiled__[a.toLowerCase()]?this.__compiled__[a.toLowerCase()].validate(t,r,this):0};b1.prototype.match=function(t){var a=0,r=[];this.__index__>=0&&this.__text_cache__===t&&(r.push(p3(this,a)),a=this.__last_index__);for(var o=a?t.slice(a):t;this.test(o);)r.push(p3(this,a)),o=o.slice(this.__last_index__),a+=this.__last_index__;return r.length?r:null};b1.prototype.tlds=function(t,a){return t=Array.isArray(t)?t:[t],a?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,o,i){return r!==i[o-1]}).reverse(),Qe(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Qe(this),this)};b1.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};b1.prototype.onCompile=function(){};var ns=b1;const as=["aaa","aarp","abarth","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alfaromeo","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cbs","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cookingchannel","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","etisalat","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fiat","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","foodnetwork","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","guardian","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hgtv","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hoteles","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerrylogistics","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kinder","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","lancia","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","lipsy","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","maserati","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mutual","mv","mw","mx","my","mz","na","nab","nagoya","name","natura","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","northwesternmutual","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","oldnavy","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","passagens","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocher","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tiffany","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelchannel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volkswagen","volvo","vote","voting","voto","voyage","vu","vuelos","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","اتصالات","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"];Object.defineProperty(R2,"__esModule",{value:!0});var rs=ns,os=j0(rs),is=as,ss=j0(is);function j0(e){return e&&e.__esModule?e:{default:e}}var O0=new os.default;O0.tlds(ss.default);R2.default=function(e){return O0.match(e)};var F2={};Object.defineProperty(F2,"__esModule",{value:!0});F2.default=function(e){return e};Object.defineProperty(E2,"__esModule",{value:!0});var cs=function(){function e(t,a){for(var r=0;r<a.length;r++){var o=a[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),ls=u,_e=ys(ls),ds=k2,us=_t(ds),ps=D2,hs=_t(ps),ms=R2,gs=_t(ms),fs=F2,vs=_t(fs);function _t(e){return e&&e.__esModule?e:{default:e}}function ys(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function bs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cs(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function _s(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var z0=function(e){_s(t,e);function t(){return bs(this,t),Cs(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return cs(t,[{key:"parseString",value:function(r){var o=this;if(r==="")return r;var i=this.props.matchDecorator(r);if(!i)return r;var s=[],c=0;return i.forEach(function(d,p){d.index>c&&s.push(r.substring(c,d.index));var m=o.props.hrefDecorator(d.url),v=o.props.textDecorator(d.text),g=o.props.componentDecorator(m,v,p);s.push(g),c=d.lastIndex}),r.length>c&&s.push(r.substring(c)),s.length===1?s[0]:s}},{key:"parse",value:function(r){var o=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof r=="string"?this.parseString(r):_e.isValidElement(r)&&r.type!=="a"&&r.type!=="button"?_e.cloneElement(r,{key:i},this.parse(r.props.children)):Array.isArray(r)?r.map(function(s,c){return o.parse(s,c)}):r}},{key:"render",value:function(){return _e.createElement(_e.Fragment,null,this.parse(this.props.children))}}]),t}(_e.Component);z0.defaultProps={componentDecorator:us.default,hrefDecorator:hs.default,matchDecorator:gs.default,textDecorator:vs.default};E2.default=z0;Object.defineProperty(P0,"__esModule",{value:!0});var xs=E2,ws=Ss(xs);function Ss(e){return e&&e.__esModule?e:{default:e}}var Ts=P0.default=ws.default;const As=h(E)(({theme:e})=>({display:"flex",marginTop:e.spacing(2)})),Es=h(B1)(({theme:e})=>({width:"100%",padding:e.spacing(1.5,3,2.5,3),backgroundColor:e.palette.neutral.light,borderRadius:e.shape.borderRadiusLarge,borderColor:e.palette.divider})),ks=h(E)(({theme:e})=>({display:"flex",borderBottom:"1px solid",borderColor:e.palette.divider,paddingBottom:e.spacing(1.5)})),Ds=({comment:e})=>l(As,{children:[n(J1,{title:e.createdBy.username,children:n(Qn,{src:e.createdBy.imageUrl})}),l(Es,{variant:"outlined",children:[n(ks,{children:l(E,{children:[n("strong",{children:e.createdBy.username})," ",l(j,{color:"text.secondary",component:"span",children:["commented"," ",n(d2,{minPeriod:60,date:new Date(e.createdAt)})]})]})}),n(E,{sx:{paddingTop:2.5},children:n(Ts,{children:e.text})})]})]}),Rs=h(E)(({theme:e})=>({width:"30%",display:"flex",flexDirection:"column",[e.breakpoints.down("sm")]:{width:"100%"}})),Fs=h(B1)(({theme:e})=>({marginTop:e.spacing(2),marginLeft:e.spacing(2),width:"70%",padding:e.spacing(1,2),borderRadius:e.shape.borderRadiusLarge,[e.breakpoints.down("sm")]:{marginLeft:0,width:"100%"}})),Zs=h(E)(({theme:e})=>({marginTop:e.spacing(3),display:"flex",justifyContent:"flex-end"})),Ps=h(E)(({theme:e})=>({padding:e.spacing(2)})),Is=h(E)(({theme:e})=>({display:"flex",[e.breakpoints.down("sm")]:{flexDirection:"column"}})),js=()=>{var V,H;const e=Y("projectId"),[t,a]=u.useState(!1),{user:r}=s0(),{isAdmin:o}=u.useContext(he),[i,s]=u.useState(""),c=Y("id"),{data:d,refetchChangeRequest:p}=T0(e,c),{changeState:m,addComment:v,loading:g}=p2(),{refetch:b}=u2(e),{setToastData:S,setToastApiError:T}=u1(),{isChangeRequestConfigured:F}=pt(e);if(!d)return null;const y=F(d.environment),Z=async()=>{try{await m(e,Number(c),{state:"Applied"}),p(),b(),S({type:"success",title:"Success",text:"Changes applied"})}catch(O){T(f1(O))}},L=async()=>{try{await v(e,c,i),s(""),p(),S({type:"success",title:"Success",text:"Comment added"})}catch(O){T(f1(O))}},B=async()=>{try{await m(e,Number(c),{state:"Cancelled"}),a(!1),p(),b(),S({type:"success",title:"Success",text:"Changes cancelled"})}catch(O){T(f1(O))}},N=()=>a(!0),x=()=>a(!1),D=(d==null?void 0:d.createdBy.id)===(r==null?void 0:r.id)&&d.state==="In review"&&!o,z=d.approvals.some(O=>O.createdBy.id===(r==null?void 0:r.id));return l(G,{children:[n(A4,{changeRequest:d}),l(Is,{children:[l(Rs,{children:[n(ui,{state:d.state}),n(fi,{header:n(gi,{actualApprovals:d.approvals.length,minApprovals:d.minApprovals}),children:(V=d.approvals)==null?void 0:V.map(O=>n(Oi,{name:O.createdBy.username||"Unknown user",imageUrl:O.createdBy.imageUrl},O.createdBy.username))})]}),n(Fs,{elevation:0,children:l(Ps,{children:["Requested Changes (",Xn(d),")",n(ea,{changeRequest:d,onRefetch:p}),(H=d.comments)==null?void 0:H.map(O=>n(Ds,{comment:O},O.id)),n(ta,{user:r,commentText:i,onTypeComment:s,children:n(v1,{variant:"outlined",onClick:L,disabled:!y||i.trim().length===0||i.trim().length>1e3,children:"Comment"})}),n(w,{condition:D,show:n(U1,{sx:O=>({marginTop:O.spacing(1.5)}),severity:"info",children:"You can not approve your own change request"})}),n(wi,{changeRequest:d}),l(Zs,{children:[n(w,{condition:d.state==="In review"&&!z,show:n(Pi,{disabled:!y})}),n(w,{condition:d.state==="Approved",show:n(h2,{variant:"contained",onClick:Z,projectId:e,permission:na,environmentId:d.environment,disabled:!y||g,children:"Apply changes"})}),n(w,{condition:d.state!=="Applied"&&d.state!=="Cancelled"&&(d.createdBy.id===(r==null?void 0:r.id)||o),show:n(v1,{sx:{marginLeft:O=>O.spacing(2)},variant:"outlined",onClick:N,children:"Cancel changes"})})]})]})}),l(Ae,{open:t,onClick:B,onClose:x,title:"Cancel change request",children:[n(j,{sx:{marginBottom:2},children:"You are about to cancel this change request"}),n(j,{variant:"body2",sx:O=>({color:O.palette.neutral.dark}),children:"The change request will be moved to closed, and it can't be applied anymore. Once cancelled, the change request can't be reopened."})]})]})]})},Os=({value:e})=>{const t=()=>e?n(r0,{state:e}):null;return e?n(o1,{children:t()}):n(o1,{})},zs=h("div")(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",margin:0})),$s=({value:e})=>n(o1,{children:n(zs,{children:l(j,{component:"span",variant:"body2",children:[" ",e==null?void 0:e.username]})})}),Bs=h("div")(({theme:e})=>({display:"flex",flexDirection:"row",margin:0})),Vs=({value:e,row:{original:t}})=>{const a=Y("projectId"),{id:r,title:o,features:i}=t,s=`/projects/${a}/change-requests/${r}`;return e?l(o1,{sx:{minWidth:"200px"},children:[n(Bs,{children:n(j,{variant:"body2",children:n(c2,{component:E1,underline:"hover",to:s,sx:c=>({paddingTop:c.spacing(.2),marginRight:c.spacing(1),"&:hover":{textDecoration:"underline"}}),children:o})})}),l("span",{children:[`${i==null?void 0:i.length}`," ",i.length<=1?"update":"updates"]})]}):n(o1,{})},Ms=L3()(e=>({header:{padding:e.spacing(0,4)},bodyClass:{padding:e.spacing(4),overflowX:"auto"}})),Ls=h(E)(({theme:e})=>({display:"flex",flexDirection:"column",width:"300px",padding:e.spacing(1,0,1,2)})),Hs=h(E1)(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",textDecoration:"none","&:hover, &:focus":{textDecoration:"underline"}})),Ws=h(E1)(({theme:e})=>({textDecoration:"none","&:hover, &:focus":{textDecoration:"underline"}})),Ns=h(E)(({theme:e})=>({display:"flex",flexDirection:"column",fontSize:e.fontSizes.smallBody,width:"100%",whiteSpace:"nowrap"})),qs=({value:e,project:t})=>{const a=e==null?void 0:e.map(r=>r.name);return n(Ls,{children:n(w,{condition:(a==null?void 0:a.length)<3,show:a==null?void 0:a.map(r=>n(Hs,{title:r,to:`/projects/${t}/features/${r}`,children:r})),elseShow:l(c0,{tooltipProps:{maxWidth:"800px"},tooltip:n(Ns,{children:a==null?void 0:a.map(r=>n(Ws,{title:r,to:`/projects/${t}/features/${r}`,children:r}))}),children:[a==null?void 0:a.length," toggles"]})})})},Us={id:"createdAt"},Gs=h("div")({paddingLeft:0,paddingBottom:0}),Ks=h(Ke)(({theme:e})=>({textTransform:"none",width:"auto",fontSize:e.fontSizes.bodySize,[e.breakpoints.up("md")]:{minWidth:160}})),Js=({changeRequests:e=[],loading:t,projectId:a})=>{var Q,M;const{classes:r}=Ms(),o=g1(aa.breakpoints.down("md")),[i,s]=l2(),[c,d]=u.useState(i.get("search")||""),{value:p,setValue:m}=ct(`${a}:ProjectChangeRequest`,Us),[v,g]=u.useMemo(()=>{const f=e.filter(R=>R.state!=="Cancelled"&&R.state!=="Applied"),k=e.filter(R=>R.state==="Cancelled"||R.state==="Applied");return[f,k]},[e]),b=[{title:"Change requests",data:v},{title:"Closed",data:g}],[S,T]=u.useState(0),F=u.useMemo(()=>[{id:"Title",Header:"Title",width:100,canSort:!0,accessor:"title",searchable:!0,Cell:Vs},{id:"Updated feature toggles",Header:"Updated feature toggles",canSort:!1,accessor:"features",Cell:({value:f,row:{original:{title:k}}})=>n(qs,{project:a,value:f},k)},{Header:"By",accessor:"createdBy",maxWidth:180,canSort:!1,Cell:$s,align:"left"},{Header:"Submitted",accessor:"createdAt",searchable:!0,maxWidth:100,Cell:Je,sortType:"alphanumeric"},{Header:"Environment",accessor:"environment",searchable:!0,maxWidth:100,Cell:o1},{Header:"Status",accessor:"state",searchable:!0,maxWidth:"170px",Cell:Os}],[a]),{data:y,getSearchText:Z,getSearchContext:L}=mt(F,c,(Q=b[S])==null?void 0:Q.data),B=u.useMemo(()=>t?ra:y,[y,t]),[N]=u.useState(()=>({sortBy:[{id:i.get("sort")||p.id,desc:i.has("order")?i.get("order")==="desc":p.desc}],hiddenColumns:[]})),{headerGroups:x,rows:D,state:{sortBy:z},prepareRow:V,setHiddenColumns:H,getTableProps:O,getTableBodyProps:K}=n1.useTable({columns:F,data:B,initialState:N,sortTypes:Re,autoResetHiddenColumns:!1,disableSortRemove:!0,autoResetSortBy:!1,defaultColumn:{Cell:o1}},n1.useSortBy);return ft([{condition:o,columns:["createdBy"]}],H,F),u.useEffect(()=>{if(t)return;const f={};f.sort=z[0].id,z[0].desc&&(f.order="desc"),c&&(f.search=c),s(f,{replace:!0}),m(k=>({...k,id:z[0].id,desc:z[0].desc||!1}))},[t,z,c,s]),l(d1,{isLoading:t,bodyClass:r.bodyClass,headerClass:r.header,header:n(s1,{titleElement:n(Gs,{children:n(m2,{value:(M=b[S])==null?void 0:M.title,indicatorColor:"primary",textColor:"primary",variant:"scrollable",allowScrollButtonsMobile:!0,children:b.map((f,k)=>n(Ks,{label:`${f.title} (${f.data.length})`,value:f.title,onClick:()=>T(k)},f.title))})}),actions:n(w1,{initialValue:c,onChange:d,hasFilters:!0,getSearchContext:L})}),children:[n(ce,{value:Z(c),children:l(nt,{...O(),children:[n(at,{headerGroups:x}),n(rt,{...K(),children:D.map(f=>(V(f),n(ot,{hover:!0,...f.getRowProps(),children:f.cells.map(k=>n(it,{...k.getCellProps(),padding:"none",children:k.render("Cell")}))})))})]})}),n(w,{condition:D.length===0,show:()=>n(w,{condition:(c==null?void 0:c.length)>0,show:l(y1,{children:["No changes found matching “",c,"”"]}),elseShow:n(y1,{children:"None of the changes were submitted yet."})})})]})},Ys=()=>{const e=Y("projectId"),t=k1(e),{isOss:a,isPro:r}=p1();S1(`Change requests – ${t}`);const{changeRequests:o,loading:i}=_0(e);return a()||r()?n(d1,{sx:{justifyContent:"center"},children:n(yt,{feature:"change-requests"})}):n(Js,{changeRequests:o,projectId:e,loading:i})};var q=(e=>(e.USER="USERS",e.GROUP="GROUPS",e.SERVICE_ACCOUNT="SERVICE ACCOUNTS",e))(q||{});const ge=(e,t={})=>{const a=G1(`api/admin/projects/${e}/access`),r=()=>fetch(a,{method:"GET"}).then(K1("project access")).then(v=>v.json()),o=`api/admin/projects/${e}/users`,{data:i,error:s}=se(o,r,t),[c,d]=u.useState(!s&&!i),p=()=>{X3(o)};return u.useEffect(()=>{d(!s&&!i)},[i,s]),{access:u.useMemo(()=>{if(i)return Qs({roles:i.roles,users:i.users.filter(({accountType:v})=>!v||v==="User"),serviceAccounts:i.users.filter(({accountType:v})=>v==="Service Account"),groups:(i==null?void 0:i.groups.map(v=>({...v,users:qa(v.users??[])})))??[]})},[i]),error:s,loading:c,refetchProjectAccess:p}},Qs=e=>{const t=e.users||[],a=e.serviceAccounts||[],r=e.groups||[];return{...e,rows:[...t.map(o=>({entity:o,type:"USERS"})),...a.map(o=>({entity:o,type:"SERVICE ACCOUNTS"})),...r.map(o=>({entity:o,type:"GROUPS"}))]}},Xs=h(d1)(({theme:e})=>({height:"100vh",overflow:"auto",padding:e.spacing(7.5,6),[e.breakpoints.down("md")]:{padding:e.spacing(4,2)},"& .header":{padding:e.spacing(0,0,2,0)},"& .body":{padding:e.spacing(3,0,0,0)},borderRadius:`${e.spacing(1.5,0,0,1.5)} !important`})),e5=h("div")(({theme:e})=>({display:"flex",flexDirection:"column","& > span":{color:e.palette.text.secondary,fontSize:e.fontSizes.bodySize}})),h3={id:"joinedAt"},$t=[{Header:"Avatar",accessor:"imageUrl",Cell:({row:{original:e}})=>n(o1,{children:n(v2,{user:e})}),maxWidth:85,disableSortBy:!0},{id:"name",Header:"Name",accessor:e=>e.name||"",Cell:Se,minWidth:100,searchable:!0},{id:"username",Header:"Username",accessor:e=>e.username||e.email,Cell:Se,minWidth:100,searchable:!0},{id:"joined",Header:"Joined",accessor:"joinedAt",Cell:ht,sortType:"date",maxWidth:150},{id:"lastLogin",Header:"Last login",accessor:e=>e.seenAt||"",Cell:({row:{original:e}})=>n(Je,{value:e.seenAt,emptyText:"Never",title:t=>`Last login: ${t}`}),sortType:"date",maxWidth:150}],t5=["imageUrl","name","joined","lastLogin"],n5=({open:e,setOpen:t,group:a,projectId:r,subtitle:o,onEdit:i,onRemove:s})=>{const c=h1(),d=g1(c.breakpoints.down("md")),[p]=u.useState(()=>({sortBy:[{id:h3.id,desc:h3.desc}]})),[m,v]=u.useState(""),{data:g,getSearchText:b,getSearchContext:S}=mt($t,m,(a==null?void 0:a.users)??[]),{headerGroups:T,rows:F,prepareRow:y,setHiddenColumns:Z}=n1.useTable({columns:$t,data:g,initialState:p,sortTypes:Re,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0,disableMultiSort:!0},n1.useSortBy,n1.useFlexLayout);return ft([{condition:d,columns:t5}],Z,$t),n(ae,{open:e,onClose:()=>{t(!1)},label:(a==null?void 0:a.name)||"Group",children:l(Xs,{header:n(s1,{secondary:!0,titleElement:l(e5,{children:[a==null?void 0:a.name," (",F.length<g.length?`${F.length} of ${g.length}`:g.length,")",n("span",{children:o})]}),actions:l(G,{children:[n(w,{condition:!d,show:l(G,{children:[n(w1,{initialValue:m,onChange:v,hasFilters:!0,getSearchContext:S}),n(s1.Divider,{})]})}),n(N1,{permission:A1,projectId:r,tooltipProps:{title:"Edit group access"},onClick:i,children:n(g2,{})}),n(N1,{permission:A1,projectId:r,tooltipProps:{title:"Remove group access"},onClick:s,children:n(f2,{})})]}),children:n(w,{condition:d,show:n(w1,{initialValue:m,onChange:v,hasFilters:!0,getSearchContext:S})})}),children:[n(ce,{value:b(m),children:n(gt,{rows:F,headerGroups:T,prepareRow:y})}),n(w,{condition:F.length===0,show:n(w,{condition:(m==null?void 0:m.length)>0,show:l(y1,{children:["No users found matching “",m,"” in this group."]}),elseShow:n(y1,{children:"This group is empty. Get started by adding a user to the group."})})})]})})},a5=({permissions:e})=>n(G,{children:e==null?void 0:e.filter(t=>!t.environment).map(t=>t.displayName).sort().map(t=>n("p",{children:t},t))}),r5=({environment:e,permissions:t})=>n(G,{children:[...new Set(t.filter(a=>a.environment===e).map(a=>a.displayName))].sort().map(a=>n("p",{children:a},`${e}-${a}`))}),o5=h("div",{shouldForwardProp:e=>e!=="roleId"&&e!=="popover"&&e!=="sx"})(({theme:e,popover:t})=>({width:"100%",maxWidth:e.spacing(50),padding:e.spacing(3),backgroundColor:t?e.palette.background.paper:e.palette.neutral.light,color:e.palette.text.secondary,fontSize:e.fontSizes.smallBody,borderRadius:e.shape.borderRadiusMedium})),Bt=h("div")(({theme:e})=>({"& p:last-child":{marginBottom:e.spacing(2)}})),m3=h("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:e.fontSizes.smallBody,fontWeight:e.fontWeight.bold,marginBottom:e.spacing(2)})),g3=h("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:e.fontSizes.smallBody,marginBottom:e.spacing(1)})),$0=u.forwardRef(({roleId:e,projectId:t,className:a,sx:r,...o},i)=>{var v;const{role:s}=Ua(e.toString()),{access:c}=ge(t),d=c==null?void 0:c.roles.find(g=>g.id===e),p=u.useMemo(()=>{var b;const g=new Set;return(b=s.permissions)==null||b.filter(S=>S.environment).forEach(S=>{g.add(S.environment)}),[...g].sort()},[s]),m=u.useMemo(()=>{var g;return(g=s.permissions)==null?void 0:g.filter(b=>!b.environment)},[s]);return n(o5,{className:a,sx:r,...o,ref:i,children:n(w,{condition:((v=s.permissions)==null?void 0:v.length)>0,show:l(G,{children:[n(w,{condition:Boolean(m==null?void 0:m.length),show:l(G,{children:[n(m3,{children:"Project permissions"}),n(Bt,{children:n(a5,{permissions:s.permissions})})]})}),n(w,{condition:Boolean(p.length),show:l(G,{children:[n(m3,{children:"Environment permissions"}),p.map(g=>l("div",{children:[n(g3,{children:g}),n(Bt,{children:n(r5,{environment:g,permissions:s.permissions})})]},g))]})})]}),elseShow:l(G,{children:[n(g3,{children:d==null?void 0:d.name}),n(Bt,{children:d==null?void 0:d.description})]})})})}),i5=h("form")(()=>({display:"flex",flexDirection:"column",height:"100%"})),f3=h("p")(({theme:e})=>({color:e.palette.text.secondary,marginBottom:e.spacing(1)})),v3=h("div")(({theme:e})=>({"& > div:first-of-type":{width:"100%",maxWidth:e.spacing(50),marginBottom:e.spacing(2)}})),s5=h("div")(({theme:e})=>({marginTop:e.spacing(6),display:"flex",justifyContent:"flex-end"})),c5=h(v1)(({theme:e})=>({marginLeft:e.spacing(3)})),l5=h("div")(({theme:e})=>({display:"flex",flexDirection:"column","& > span:last-of-type":{color:e.palette.text.secondary}})),d5=h("div")(({theme:e})=>({display:"flex",flexDirection:"column","& > span:first-of-type":{color:e.palette.text.secondary}})),u5=h("div")(({theme:e})=>({display:"flex",flexDirection:"column","& > span:last-of-type":{fontSize:e.fontSizes.smallerBody,color:e.palette.text.secondary}})),Z2=({selected:e,accesses:t,users:a,serviceAccounts:r,groups:o,roles:i})=>{const{uiConfig:s}=p1(),{flags:c}=s,d=c.UG?"user / group":"user",p=Y("projectId"),{refetchProjectAccess:m}=ge(p),{addAccessToProject:v,changeUserRole:g,changeGroupRole:b,loading:S}=st(),T=Boolean(e),{setToastData:F,setToastApiError:y}=u1(),Z=$1(),L=[...o.filter(f=>T||!t.some(({entity:{id:k},type:R})=>f.id===k&&R===q.GROUP)).map(f=>({id:f.id,entity:f,type:q.GROUP})),...a.filter(f=>T||!t.some(({entity:{id:k},type:R})=>f.id===k&&R===q.USER)).sort((f,k)=>{const R=f.name||f.username||"",U=k.name||k.username||"";return R.localeCompare(U)}).map(f=>({id:f.id,entity:f,type:q.USER})),...r.filter(f=>T||!t.some(({entity:{id:k},type:R})=>f.id===k&&R===q.SERVICE_ACCOUNT)).sort((f,k)=>{const R=f.name||f.username||"",U=k.name||k.username||"";return R.localeCompare(U)}).map(f=>({id:f.id,entity:f,type:q.SERVICE_ACCOUNT}))],[B,N]=u.useState(()=>L.filter(({id:f,type:k})=>f===(e==null?void 0:e.entity.id)&&k===(e==null?void 0:e.type))),[x,D]=u.useState(i.find(({id:f})=>f===(e==null?void 0:e.entity.roleId))??null),z={users:B==null?void 0:B.filter(({type:f})=>f===q.USER||f===q.SERVICE_ACCOUNT).map(({id:f})=>({id:f})),groups:B==null?void 0:B.filter(({type:f})=>f===q.GROUP).map(({id:f})=>({id:f}))},V=async f=>{if(f.preventDefault(),!!M)try{T?(e==null?void 0:e.type)===q.USER||(e==null?void 0:e.type)===q.SERVICE_ACCOUNT?await g(p,x.id,e.entity.id):(e==null?void 0:e.type)===q.GROUP&&await b(p,x.id,e.entity.id):await v(p,x.id,z),m(),Z(j1),F({title:`${B.length} ${B.length===1?"access":"accesses"} ${T?"edited":"assigned"} successfully`,type:"success"})}catch(k){y(f1(k))}},H=()=>T?`curl --location --request ${T?"PUT":"POST"} '${s.unleashUrl}/api/admin/projects/${p}/${(e==null?void 0:e.type)===q.USER||(e==null?void 0:e.type)===q.SERVICE_ACCOUNT?"users":"groups"}/${e==null?void 0:e.entity.id}/roles/${x==null?void 0:x.id}' \\
|
|
3
|
+
--header 'Authorization: INSERT_API_KEY'`:`curl --location --request ${T?"PUT":"POST"} '${s.unleashUrl}/api/admin/projects/${p}/role/${x==null?void 0:x.id}/access' \\
|
|
4
4
|
--header 'Authorization: INSERT_API_KEY' \\
|
|
5
5
|
--header 'Content-Type: application/json' \\
|
|
6
|
-
--data-raw '${JSON.stringify(z,void 0,2)}'`,O=f=>{if(f&&Boolean(f.rootRole))return"This group has an Admin or Editor role associated with it. Groups with a root role association cannot be assigned to projects, and users in this group already have the role applied globally."},K=(f,k,R)=>{let U,C;return k.type===q.GROUP?U=k.entity:C=k.entity,n(J1,{title:O(U),children:n("span",{children:l("li",{...f,children:[n(s2,{icon:n(la,{fontSize:"small"}),checkedIcon:n(da,{fontSize:"small"}),style:{marginRight:8},checked:R}),n(x,{condition:k.type===q.GROUP,show:n("span",{children:l(l5,{children:[n("span",{children:U==null?void 0:U.name}),l("span",{children:[U==null?void 0:U.userCount," users"]})]})}),elseShow:l(d5,{children:[n("span",{children:(C==null?void 0:C.name)||(C==null?void 0:C.username)}),n("span",{children:C!=null&&C.name&&(C!=null&&C.username)?C==null?void 0:C.username:C==null?void 0:C.email})]})})]})})})},Q=(f,k)=>n("li",{...f,children:l(u5,{children:[n("span",{children:k.name}),n("span",{children:k.description})]})}),L=V.length>0&&_;return n(ae,{open:!0,onClose:()=>P(j1),label:`${S?"Edit":"Assign"} ${d} access`,children:n(l0,{loading:w,modal:!0,title:`${S?"Edit":"Assign"} ${d} access`,description:"Custom project roles allow you to fine-tune access rights and permissions within your projects.",documentationLink:"https://docs.getunleash.io/how-to/how-to-create-and-assign-custom-project-roles",documentationLinkLabel:"Project access documentation",formatApiCode:W,children:l(i5,{onSubmit:M,children:[l("div",{children:[l(f3,{"data-testid":oa,children:["Select the ",d]}),n(v3,{children:n(z2,{"data-testid":ia,size:"small",multiple:!0,openOnFocus:!0,limitTags:10,disableCloseOnSelect:!0,disabled:S,value:V,getOptionDisabled:f=>{if(f.type===q.GROUP){const k=f.entity;return Boolean(k.rootRole)}return!1},onChange:(f,k,R)=>{f.type==="keydown"&&f.key==="Backspace"&&R==="removeOption"||N(k)},options:H,groupBy:f=>f.type,renderOption:(f,k,{selected:R})=>K(f,k,R),getOptionLabel:f=>{if(f.type===q.USER||f.type===q.SERVICE_ACCOUNT){const k=f.entity;return k.email||k.name||k.username||""}else return f.entity.name},filterOptions:(f,{inputValue:k})=>f.filter(R=>{if(R.type===q.USER||R.type===q.SERVICE_ACCOUNT){const U=R.entity;return Ve(k,U.email)||Ve(k,U.name)||Ve(k,U.username)}return Ve(k,R.entity.name)}),isOptionEqualToValue:(f,k)=>f.type===k.type&&f.entity.id===k.entity.id,renderInput:f=>n(Kt,{...f,label:F1(d)})})}),n(f3,{children:"Select the role to assign for this project"}),n(v3,{children:n(z2,{"data-testid":sa,size:"small",openOnFocus:!0,value:_,onChange:(f,k)=>D(k),options:i,renderOption:Q,getOptionLabel:f=>f.name,renderInput:f=>n(Kt,{...f,label:"Role"})})}),n(x,{condition:Boolean(_==null?void 0:_.id),show:n($0,{roleId:_==null?void 0:_.id,projectId:p})})]}),l(s5,{children:[n(v1,{"data-testid":ca,type:"submit",variant:"contained",color:"primary",disabled:!L,children:S?"Save":`Assign ${d}`}),n(c5,{onClick:()=>P(j1),children:"Cancel"})]})]})})})},P2=()=>{var r,o;const{data:e,error:t,mutate:a}=se(G1("api/admin/user-admin/access"),p5);return{users:(r=e==null?void 0:e.users)==null?void 0:r.filter(({accountType:i})=>!i||i==="User"),serviceAccounts:(o=e==null?void 0:e.users)==null?void 0:o.filter(({accountType:i})=>i==="Service Account"),groups:e==null?void 0:e.groups,loading:!t&&!e,refetch:()=>a(),error:t}},p5=e=>fetch(e).then(K1("Access")).then(t=>t.json()),h5=()=>{const e=Y("projectId"),{access:t}=ge(e),{users:a,serviceAccounts:r,groups:o}=P2();return!t||!a||!r||!o?null:n(Z2,{accesses:t.rows,users:a,serviceAccounts:r,groups:o,roles:t.roles})},m5=()=>{const e=Y("projectId"),t=Y("userId"),{access:a}=ge(e),{users:r,serviceAccounts:o,groups:i}=P2();if(!a||!r||!o||!i)return null;const s=a.rows.find(c=>c.entity.id===Number(t)&&c.type!==q.GROUP);return n(Z2,{accesses:a.rows,selected:s,users:r,serviceAccounts:o,groups:i,roles:a.roles})},g5=()=>{const e=Y("projectId"),t=Y("groupId"),{access:a}=ge(e),{users:r,serviceAccounts:o,groups:i}=P2();if(!a||!r||!o||!i)return null;const s=a.rows.find(c=>c.entity.id===Number(t)&&c.type===q.GROUP);return n(Z2,{accesses:a.rows,selected:s,users:r,serviceAccounts:o,groups:i,roles:a.roles})},f5=({roleId:e,projectId:t,value:a,emptyText:r})=>a?n(i1,{children:n(c0,{tooltip:n($0,{roleId:e,projectId:t,popover:!0}),tooltipProps:{maxWidth:500,maxHeight:600},children:a})}):n(i1,{children:r}),v5={id:"added"},{value:y3,setValue:y5}=ct("ProjectAccess:v1",v5),b5=h("div")(({theme:e})=>({display:"inline-flex",alignItems:"center",flexWrap:"wrap",marginLeft:e.spacing(1)})),C5=h(v2)(({theme:e})=>({marginRight:e.spacing(-3.5)})),_5=h(v2)(({theme:e})=>({outline:`${e.spacing(.25)} solid ${e.palette.background.paper}`})),x5=["imageUrl","role","added","lastLogin"],w5=["lastLogin","added"],S5=()=>{var U;const e=Y("projectId"),{uiConfig:t}=p1(),{flags:a}=t,r=a.UG?"user / group":"user",o=$1(),i=h1(),s=g1(i.breakpoints.down("md")),c=g1(i.breakpoints.down("lg")),{setToastData:d}=u1(),{access:p,refetchProjectAccess:m}=ge(e),{removeUserFromRole:v,removeGroupFromRole:g}=st(),[b,w]=u.useState(!1),[S,Z]=u.useState(!1),[y,P]=u.useState(),H=u.useMemo(()=>[{Header:"Avatar",accessor:"imageUrl",Cell:({row:{original:C}})=>{var X;return l(b5,{children:[n(x,{condition:C.type===q.GROUP,show:n(C5,{})}),n(_5,{user:C.entity,children:(X=C.entity.users)==null?void 0:X.length})]})},maxWidth:85,disableSortBy:!0},{id:"name",Header:"Name",accessor:C=>C.entity.name||"",Cell:({value:C,row:{original:X}})=>{var c1,a1,m1;return n(x,{condition:X.type===q.GROUP,show:n(U3,{onClick:()=>{P(X),Z(!0)},title:C,subtitle:`${(c1=X.entity.users)==null?void 0:c1.length} users`}),elseShow:n(Se,{value:C,subtitle:((a1=X.entity)==null?void 0:a1.username)||((m1=X.entity)==null?void 0:m1.email)})})},minWidth:100,searchable:!0},{id:"username",Header:"Username",accessor:C=>{if(C.type!==q.GROUP){const X=C.entity;return X.username||X.email}return""},Cell:Se,minWidth:100,searchable:!0},{id:"role",Header:"Role",accessor:C=>{var X;return(X=p==null?void 0:p.roles.find(({id:c1})=>c1===C.entity.roleId))==null?void 0:X.name},Cell:({value:C,row:{original:X}})=>n(f5,{roleId:X.entity.roleId,projectId:e,value:C}),maxWidth:125,filterName:"role"},{id:"added",Header:"Added",accessor:C=>C.entity.addedAt||"",Cell:({value:C})=>n(Je,{value:C,emptyText:"Never"}),sortType:"date",maxWidth:130},{id:"lastLogin",Header:"Last login",accessor:C=>C.type!==q.GROUP?C.entity.seenAt||"":C.entity.users.map(({seenAt:c1})=>c1).sort().reverse()[0],Cell:({value:C})=>n(Je,{value:C,emptyText:"Never"}),sortType:"date",maxWidth:130},{id:"actions",Header:"Actions",disableSortBy:!0,align:"center",maxWidth:150,Cell:({row:{original:C}})=>l(r2,{children:[n(N1,{"data-testid":ua,component:E1,permission:A1,projectId:e,to:`edit/${C.type===q.GROUP?"group":"user"}/${C.entity.id}`,disabled:(p==null?void 0:p.rows.length)===1,tooltipProps:{title:(p==null?void 0:p.rows.length)===1?"Cannot edit access. A project must have at least one owner":"Edit access"},children:n(g2,{})}),n(N1,{"data-testid":pa,permission:A1,projectId:e,onClick:()=>{P(C),w(!0)},disabled:(p==null?void 0:p.rows.length)===1,tooltipProps:{title:(p==null?void 0:p.rows.length)===1?"Cannot remove access. A project must have at least one owner":"Remove access"},children:n(f2,{})})]})}],[p,e]),[V,N]=l2(),[_]=u.useState(()=>({sortBy:[{id:V.get("sort")||y3.id,desc:V.has("order")?V.get("order")==="desc":y3.desc}],globalFilter:V.get("search")||""})),[D,z]=u.useState(_.globalFilter),{data:M,getSearchText:W,getSearchContext:O}=mt(H,D,(p==null?void 0:p.rows)??[]),{headerGroups:K,rows:Q,prepareRow:L,setHiddenColumns:f,state:{sortBy:k}}=r1.useTable({columns:H,data:M,initialState:_,sortTypes:Re,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0,disableMultiSort:!0,defaultColumn:{Cell:i1}},r1.useSortBy,r1.useFlexLayout);ft([{condition:s,columns:x5},{condition:c,columns:w5}],f,H),u.useEffect(()=>{const C={};C.sort=k[0].id,k[0].desc&&(C.order="desc"),D&&(C.search=D),N(C,{replace:!0}),y5({id:k[0].id,desc:k[0].desc||!1})},[k,D,N]);const R=async C=>{if(!C)return;const{id:X,roleId:c1}=C.entity;let a1=C.entity.name;if(C.type!==q.GROUP){const m1=C.entity;a1=a1||m1.email||m1.username||""}try{C.type!==q.GROUP?await v(e,c1,X):await g(e,c1,X),m(),d({type:"success",title:`${a1||`The ${r}`} has been removed from project`})}catch(m1){d({type:"error",title:m1.message||`Server problems when removing ${r}.`})}w(!1)};return l(d1,{header:n(s1,{secondary:!0,title:`Access (${Q.length<M.length?`${Q.length} of ${M.length}`:M.length})`,actions:l(G,{children:[n(x,{condition:!s,show:l(G,{children:[n(w1,{initialValue:D,onChange:z,hasFilters:!0,getSearchContext:O}),n(s1.Divider,{})]})}),l(W3,{onClick:()=>o("create"),maxWidth:"700px",Icon:G3,permission:A1,projectId:e,"data-testid":ha,children:["Assign ",r]})]}),children:n(x,{condition:s,show:n(w1,{initialValue:D,onChange:z,hasFilters:!0,getSearchContext:O})})}),children:[n(ce,{value:W(D),children:n(gt,{rows:Q,headerGroups:K,prepareRow:L})}),n(x,{condition:Q.length===0,show:n(x,{condition:(D==null?void 0:D.length)>0,show:l(y1,{children:["No access found matching “",D,"”"]}),elseShow:l(y1,{children:["No access available. Get started by assigning a"," ",r,"."]})})}),l(Fe,{children:[n(n1,{path:"create",element:n(h5,{})}),n(n1,{path:"edit/group/:groupId",element:n(g5,{})}),n(n1,{path:"edit/user/:userId",element:n(m5,{})})]}),n(Ae,{open:b,onClick:()=>R(y),onClose:()=>{w(!1)},title:`Really remove ${r} from this project?`}),n(n5,{open:S,setOpen:Z,group:y==null?void 0:y.entity,projectId:e,subtitle:`Role: ${(U=p==null?void 0:p.roles.find(({id:C})=>C===(y==null?void 0:y.entity.roleId)))==null?void 0:U.name}`,onEdit:()=>{o(`edit/group/${y==null?void 0:y.entity.id}`)},onRemove:()=>{Z(!1),w(!0)}})]})},T5=()=>{const e=Y("projectId"),t=k1(e),{hasAccess:a}=u.useContext(he),{isOss:r}=p1();return S1(`Project access – ${t}`),r()?n(d1,{header:n(s1,{title:"Access"}),sx:{justifyContent:"center"},children:n(yt,{feature:"access"})}):a(A1,e)?n(S5,{}):n(d1,{header:n(s1,{title:"Access"}),children:n(U1,{severity:"error",children:"You need project owner permissions to access this section."})})},A5=e=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:860,height:298,fill:"none",...e},u.createElement("rect",{width:860,height:298,fill:"#F2F2F5",rx:12}),u.createElement("rect",{width:109,height:23,x:515.5,y:114.5,fill:"#F4FAEB",rx:3.5}),u.createElement("g",{clipPath:"url(#a)"},u.createElement("path",{fill:"#68A611",d:"m537.75 129.128-2.603-2.603a.747.747 0 1 0-1.057 1.058l3.135 3.135a.747.747 0 0 0 1.057 0l7.935-7.935a.747.747 0 1 0-1.057-1.058l-7.41 7.403Z"})),u.createElement("path",{fill:"#3B6600",d:"m557.639 122.09 3.656 7.91h-1.91l-.598-1.465h-3.105l-.598 1.465h-1.91l3.656-7.91h.809Zm-.399 2.66-.984 2.402h1.969l-.985-2.402Zm8.473-.82c.469 0 .902.121 1.301.363.406.234.73.582.972 1.043.25.453.375 1.008.375 1.664 0 .656-.125 1.223-.375 1.699a2.675 2.675 0 0 1-.996 1.102c-.414.25-.875.375-1.383.375-.328 0-.656-.078-.984-.235a2.799 2.799 0 0 1-.809-.609v3.48h-1.488v-8.73h1.488v.996c.172-.32.422-.59.75-.808a1.97 1.97 0 0 1 1.149-.34Zm-.375 1.488c-.266 0-.516.07-.75.211a1.557 1.557 0 0 0-.574.574c-.141.25-.207.551-.2.902v.856c.211.219.438.402.68.551.25.14.52.211.809.211.304 0 .57-.082.797-.246.226-.165.402-.375.527-.633.125-.266.187-.547.187-.844 0-.445-.136-.82-.41-1.125-.265-.305-.621-.457-1.066-.457Zm7.828-1.488c.469 0 .902.121 1.301.363.406.234.73.582.972 1.043.25.453.375 1.008.375 1.664 0 .656-.125 1.223-.375 1.699a2.675 2.675 0 0 1-.996 1.102c-.414.25-.875.375-1.382.375-.329 0-.657-.078-.985-.235a2.78 2.78 0 0 1-.808-.609v3.48h-1.489v-8.73h1.489v.996c.171-.32.421-.59.75-.808.328-.227.711-.34 1.148-.34Zm-.375 1.488c-.266 0-.516.07-.75.211a1.557 1.557 0 0 0-.574.574c-.141.25-.207.551-.199.902v.856c.211.219.437.402.679.551.25.14.52.211.809.211.305 0 .57-.082.797-.246.226-.165.402-.375.527-.633a1.96 1.96 0 0 0 .188-.844c0-.445-.137-.82-.411-1.125-.265-.305-.621-.457-1.066-.457Zm8.168.328a1.576 1.576 0 0 0-.785-.211 1.16 1.16 0 0 0-.856.34 3.196 3.196 0 0 0-.597.82V130h-1.489v-5.918h1.489v1.113c.203-.351.441-.644.715-.879.281-.234.597-.351.949-.351.211 0 .402.035.574.105v1.676Zm3.902-1.816c.578 0 1.106.14 1.582.422.477.273.86.648 1.149 1.125.297.468.445.996.445 1.582 0 .586-.148 1.113-.445 1.582a3.31 3.31 0 0 1-1.149 1.125 3.125 3.125 0 0 1-1.582.41 3.17 3.17 0 0 1-1.582-.41 3.315 3.315 0 0 1-1.148-1.125 2.954 2.954 0 0 1-.434-1.582c0-.586.145-1.114.434-1.582a3.165 3.165 0 0 1 1.148-1.125 3.09 3.09 0 0 1 1.582-.422Zm0 1.441c-.281 0-.543.067-.785.199a1.539 1.539 0 0 0-.586.575c-.14.25-.211.554-.211.914 0 .359.071.664.211.914.149.25.344.441.586.574.242.125.504.187.785.187.282 0 .543-.062.785-.187.243-.133.438-.324.586-.574.149-.25.223-.555.223-.914 0-.36-.074-.664-.223-.914a1.525 1.525 0 0 0-.586-.575 1.612 1.612 0 0 0-.785-.199Zm10.067-1.289L592.127 130h-.949l-2.766-5.918h1.734l1.489 3.668 1.558-3.668h1.735Zm3.328-.152c.578 0 1.074.125 1.488.375.422.25.742.597.961 1.043.227.437.34.945.34 1.523v.633h-4.289c.078.398.273.719.586.961.312.242.695.363 1.148.363.43 0 .821-.086 1.172-.258.352-.172.633-.347.844-.527l-.012 1.383c-.187.164-.469.332-.844.504a2.952 2.952 0 0 1-1.218.246 3.283 3.283 0 0 1-1.606-.399 3.14 3.14 0 0 1-1.148-1.089c-.282-.461-.422-.989-.422-1.583 0-.578.129-1.105.387-1.582a3.071 3.071 0 0 1 1.066-1.148 2.759 2.759 0 0 1 1.547-.445Zm-.035 1.3c-.367 0-.676.114-.926.34-.25.227-.422.532-.516.914h2.836c-.031-.422-.187-.734-.469-.937a1.506 1.506 0 0 0-.925-.317Zm9.808-3.668V130h-1.488v-.996c-.172.32-.422.598-.75.832-.328.226-.711.34-1.148.34-.477 0-.918-.121-1.325-.364-.398-.242-.718-.593-.961-1.054-.242-.461-.363-1.02-.363-1.676 0-.656.121-1.219.363-1.687.25-.469.582-.829.997-1.079a2.625 2.625 0 0 1 1.394-.386c.32 0 .645.074.973.222.328.149.601.348.82.598v-3.188h1.488Zm-2.976 3.833c-.313 0-.582.082-.809.246-.219.156-.39.363-.515.621-.125.25-.188.523-.188.82 0 .445.133.824.398 1.137.274.312.633.469 1.079.469.265 0 .511-.071.738-.211a1.56 1.56 0 0 0 .562-.586c.149-.258.223-.567.223-.926v-.844a2.44 2.44 0 0 0-.691-.527 1.63 1.63 0 0 0-.797-.199Z"}),u.createElement("rect",{width:109,height:23,x:515.5,y:114.5,stroke:"#B0D182",rx:3.5}),u.createElement("rect",{width:141,height:23,x:680.5,y:114.5,fill:"#F4FAEB",rx:3.5}),u.createElement("path",{fill:"#68A611",d:"m690.692 122.251 1.058-1.057 2.557 2.557-1.057 1.058-2.558-2.558Zm9.308 7.125v-2.625h-4.193l-4.057 4.058-1.057-1.058 4.499-4.5H700v-2.625l3.375 3.375-3.375 3.375Z"}),u.createElement("path",{fill:"#3B6600",d:"M715.097 121.304c.533 0 .995.076 1.384.228.389.144.728.343 1.016.597v1.777c-.204-.152-.415-.3-.635-.444a2.983 2.983 0 0 0-1.714-.495 2.67 2.67 0 0 0-1.384.368 2.735 2.735 0 0 0-1.358 2.412c0 .525.122.999.368 1.422.245.415.575.745.99.99a2.74 2.74 0 0 0 1.384.356c.567 0 1.041-.085 1.422-.254.389-.178.74-.394 1.054-.648v1.714a3.276 3.276 0 0 1-1.08.635 4.333 4.333 0 0 1-1.447.228 4.69 4.69 0 0 1-1.726-.317 4.617 4.617 0 0 1-1.435-.914 4.348 4.348 0 0 1-.978-1.409 4.47 4.47 0 0 1-.355-1.803c0-.66.119-1.261.355-1.803a4.2 4.2 0 0 1 .978-1.396 4.313 4.313 0 0 1 1.435-.914 4.54 4.54 0 0 1 1.726-.33Zm7.643 2.12c.651 0 1.197.22 1.637.66.441.44.661 1.1.661 1.98V130h-1.613l-.012-3.72c0-.431-.106-.753-.318-.965-.203-.211-.486-.317-.85-.317-.288 0-.559.093-.813.279a2.974 2.974 0 0 0-.635.661V130h-1.612v-9.141h1.612v3.644a3.32 3.32 0 0 1 .787-.736 2.016 2.016 0 0 1 1.156-.343Zm6.69 0c.347 0 .698.08 1.054.241.355.161.652.377.889.647v-.723h1.612V130h-1.612v-1.079a2.648 2.648 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.995-.131-1.435-.393-.431-.262-.778-.643-1.041-1.143-.262-.499-.393-1.104-.393-1.815 0-.711.131-1.32.393-1.828a2.95 2.95 0 0 1 1.079-1.168c.457-.28.961-.419 1.511-.419Zm.33 1.574c-.338 0-.63.089-.876.267a1.733 1.733 0 0 0-.558.673 2.027 2.027 0 0 0-.203.901c0 .482.143.893.431 1.231.296.339.686.508 1.168.508.288 0 .555-.076.8-.228a1.69 1.69 0 0 0 .609-.635c.161-.279.242-.614.242-1.003v-.914a2.864 2.864 0 0 0-.749-.584 1.77 1.77 0 0 0-.864-.216Zm6.818-1.409v.914a3.3 3.3 0 0 1 .787-.736 2.01 2.01 0 0 1 1.155-.343c.652 0 1.198.22 1.638.66.44.44.66 1.1.66 1.98V130h-1.612l-.013-3.72c0-.431-.106-.753-.318-.965-.203-.211-.486-.317-.85-.317-.288 0-.559.093-.813.279a2.947 2.947 0 0 0-.634.661V130h-1.613v-6.411h1.613Zm8.632-.165c.347 0 .699.08 1.054.241.356.161.652.377.889.647v-.723h1.612v6.246c0 .728-.161 1.341-.482 1.841a3.12 3.12 0 0 1-1.283 1.155 3.808 3.808 0 0 1-1.751.406c-.568 0-1.033-.084-1.397-.254a6.634 6.634 0 0 1-1.016-.584v-1.523c.195.118.398.245.61.381.22.135.465.25.736.343.279.093.601.139.965.139.381 0 .724-.072 1.028-.216.305-.143.542-.347.711-.609.178-.254.267-.546.267-.876v-1.117a2.638 2.638 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.041-1.143-.263-.499-.394-1.104-.394-1.815 0-.711.131-1.32.394-1.828.27-.508.63-.897 1.079-1.168.457-.28.96-.419 1.51-.419Zm.331 1.587c-.339 0-.631.089-.876.266a1.75 1.75 0 0 0-.559.673 1.965 1.965 0 0 0-.203.889c0 .482.144.893.431 1.231.297.33.686.495 1.168.495.288 0 .555-.072.8-.215a1.7 1.7 0 0 0 .61-.635c.16-.279.241-.614.241-1.003v-.914a2.62 2.62 0 0 0-.749-.571 1.766 1.766 0 0 0-.863-.216Zm8.01-1.587c.627 0 1.164.135 1.613.406.457.271.804.648 1.041 1.13.245.474.368 1.024.368 1.65v.686h-4.647c.085.432.296.779.635 1.041.339.262.753.393 1.244.393.466 0 .889-.093 1.27-.279.381-.186.685-.376.914-.571l-.013 1.498c-.203.178-.508.36-.914.546a3.197 3.197 0 0 1-1.32.266 3.557 3.557 0 0 1-1.74-.431 3.405 3.405 0 0 1-1.244-1.181c-.304-.499-.457-1.071-.457-1.714 0-.626.14-1.197.419-1.714.28-.516.665-.931 1.155-1.244a2.996 2.996 0 0 1 1.676-.482Zm-.038 1.409a1.44 1.44 0 0 0-1.003.368c-.271.246-.457.576-.558.99h3.072c-.034-.457-.203-.795-.508-1.015a1.633 1.633 0 0 0-1.003-.343Zm6.602-1.409c.398 0 .766.059 1.104.178.339.118.601.253.787.406v1.422a4.603 4.603 0 0 0-.749-.394 2.205 2.205 0 0 0-.901-.19c-.305 0-.546.067-.724.203-.177.135-.266.296-.266.482 0 .136.051.263.152.381.102.11.296.207.584.292l.724.241c.973.288 1.46.851 1.46 1.689 0 .398-.115.753-.343 1.066a2.27 2.27 0 0 1-.901.724 2.853 2.853 0 0 1-1.245.266c-.431 0-.85-.067-1.256-.203-.407-.135-.716-.283-.927-.444v-1.409c.161.11.355.216.584.317.228.102.465.186.711.254.245.059.469.089.673.089.321 0 .567-.055.736-.165a.563.563 0 0 0 .266-.495.431.431 0 0 0-.215-.381 2.91 2.91 0 0 0-.635-.279l-.787-.28c-.491-.16-.83-.389-1.016-.685-.186-.296-.279-.648-.279-1.054s.101-.757.305-1.054c.211-.304.503-.541.876-.711a2.95 2.95 0 0 1 1.282-.266Zm9.889 0c.347 0 .699.08 1.054.241.356.161.652.377.889.647v-.723h1.612V130h-1.612v-1.079a2.638 2.638 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.041-1.143-.263-.499-.394-1.104-.394-1.815 0-.711.131-1.32.394-1.828.27-.508.63-.897 1.079-1.168.457-.28.96-.419 1.51-.419Zm.33 1.574c-.338 0-.63.089-.876.267a1.742 1.742 0 0 0-.558.673 2.027 2.027 0 0 0-.203.901c0 .482.144.893.431 1.231.297.339.686.508 1.168.508.288 0 .555-.076.8-.228a1.7 1.7 0 0 0 .61-.635c.16-.279.241-.614.241-1.003v-.914a2.848 2.848 0 0 0-.749-.584 1.767 1.767 0 0 0-.864-.216Zm8.874-1.574c.508 0 .978.131 1.41.393.44.254.791.631 1.053 1.13.271.491.407 1.092.407 1.803 0 .711-.136 1.325-.407 1.841a2.897 2.897 0 0 1-1.079 1.193 2.84 2.84 0 0 1-1.498.406c-.355 0-.711-.084-1.066-.253a3.017 3.017 0 0 1-.876-.661v3.771h-1.612v-9.458h1.612v1.079a2.43 2.43 0 0 1 .812-.876 2.141 2.141 0 0 1 1.244-.368Zm-.406 1.612c-.288 0-.558.076-.812.229a1.68 1.68 0 0 0-.622.622c-.153.271-.225.596-.216.977v.927c.228.237.474.436.736.597.271.152.563.228.876.228.33 0 .618-.089.863-.266a1.81 1.81 0 0 0 .572-.686c.135-.288.203-.592.203-.914 0-.482-.148-.889-.444-1.219-.288-.33-.673-.495-1.156-.495Zm8.481-1.612c.508 0 .977.131 1.409.393.44.254.791.631 1.054 1.13.27.491.406 1.092.406 1.803 0 .711-.136 1.325-.406 1.841a2.903 2.903 0 0 1-1.079 1.193 2.843 2.843 0 0 1-1.499.406c-.355 0-.71-.084-1.066-.253a3.017 3.017 0 0 1-.876-.661v3.771h-1.612v-9.458h1.612v1.079c.186-.347.457-.639.813-.876.355-.245.77-.368 1.244-.368Zm-.407 1.612c-.287 0-.558.076-.812.229a1.686 1.686 0 0 0-.622.622c-.152.271-.224.596-.216.977v.927c.229.237.474.436.736.597.271.152.563.228.876.228.33 0 .618-.089.864-.266.245-.178.436-.407.571-.686.135-.288.203-.592.203-.914 0-.482-.148-.889-.444-1.219-.288-.33-.673-.495-1.156-.495Zm6.424-4.177V130h-1.612v-9.141h1.612Zm3.314-.609c.304 0 .567.11.787.33a1.048 1.048 0 0 1 0 1.524c-.22.22-.483.33-.787.33-.305 0-.567-.11-.787-.33a1.067 1.067 0 0 1-.318-.762c0-.296.106-.55.318-.762.22-.22.482-.33.787-.33Zm.939 3.339V130h-1.612v-5.04h-1.028v-1.371h2.64Zm4.837-.165c.626 0 1.164.135 1.612.406.457.271.804.648 1.041 1.13.246.474.369 1.024.369 1.65v.686h-4.647c.085.432.296.779.635 1.041.338.262.753.393 1.244.393.466 0 .889-.093 1.27-.279.38-.186.685-.376.914-.571l-.013 1.498c-.203.178-.508.36-.914.546a3.197 3.197 0 0 1-1.32.266 3.557 3.557 0 0 1-1.74-.431 3.405 3.405 0 0 1-1.244-1.181c-.305-.499-.457-1.071-.457-1.714 0-.626.14-1.197.419-1.714a3.328 3.328 0 0 1 1.155-1.244 2.996 2.996 0 0 1 1.676-.482Zm-.038 1.409a1.44 1.44 0 0 0-1.003.368c-.271.246-.457.576-.558.99h3.072c-.034-.457-.203-.795-.508-1.015a1.633 1.633 0 0 0-1.003-.343Zm10.626-3.974V130h-1.612v-1.079a2.638 2.638 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.042-1.143-.262-.499-.393-1.104-.393-1.815 0-.711.131-1.32.393-1.828a2.946 2.946 0 0 1 1.08-1.168c.457-.28.96-.419 1.51-.419.347 0 .699.08 1.054.241.356.161.652.377.889.647v-3.453h1.612Zm-3.225 4.152c-.338 0-.63.089-.876.266-.237.17-.423.394-.558.673a1.952 1.952 0 0 0-.203.889c0 .482.144.893.431 1.231.297.339.686.508 1.168.508.288 0 .555-.076.8-.228a1.7 1.7 0 0 0 .61-.635c.16-.279.241-.614.241-1.003v-.914a2.62 2.62 0 0 0-.749-.571 1.767 1.767 0 0 0-.864-.216Z"}),u.createElement("rect",{width:141,height:23,x:680.5,y:114.5,stroke:"#B0D182",rx:3.5}),u.createElement("rect",{width:141,height:23,x:680.5,y:177.5,fill:"#FFF2F3",rx:3.5}),u.createElement("path",{fill:"#D93644",d:"M725.724 184.283a.745.745 0 0 0-1.057 0l-3.668 3.66-3.667-3.668a.748.748 0 0 0-1.058 1.058l3.668 3.667-3.668 3.668a.747.747 0 1 0 1.058 1.057l3.667-3.667 3.668 3.667a.745.745 0 0 0 1.057 0 .745.745 0 0 0 0-1.057L722.057 189l3.667-3.667a.752.752 0 0 0 0-1.05Z"}),u.createElement("path",{fill:"#D11525",d:"M738.973 184.973c.492 0 .918.07 1.277.211.359.132.672.316.938.55v1.641a11.253 11.253 0 0 0-.586-.41 2.99 2.99 0 0 0-.692-.328 2.745 2.745 0 0 0-.89-.129c-.469 0-.895.113-1.278.34a2.558 2.558 0 0 0-.914.914c-.226.383-.34.82-.34 1.312 0 .485.114.922.34 1.313.227.383.531.687.914.914.383.219.809.328 1.278.328.523 0 .96-.078 1.312-.234.359-.165.684-.364.973-.598v1.582a3.048 3.048 0 0 1-.996.586c-.399.14-.844.211-1.336.211a4.347 4.347 0 0 1-1.594-.293 4.263 4.263 0 0 1-1.324-.844 4.01 4.01 0 0 1-.903-1.301 4.118 4.118 0 0 1-.328-1.664c0-.609.11-1.164.328-1.664.219-.5.52-.93.903-1.289a4.007 4.007 0 0 1 1.324-.844 4.195 4.195 0 0 1 1.594-.304Zm6.117 1.957c.32 0 .644.074.972.222.329.149.602.348.821.598v-.668h1.488V193h-1.488v-.996c-.172.32-.422.598-.75.832-.328.226-.711.34-1.149.34-.476 0-.918-.121-1.324-.364a2.627 2.627 0 0 1-.961-1.054c-.242-.461-.363-1.02-.363-1.676 0-.656.121-1.219.363-1.687a2.72 2.72 0 0 1 .996-1.079 2.631 2.631 0 0 1 1.395-.386Zm.305 1.453a1.34 1.34 0 0 0-.809.246 1.606 1.606 0 0 0-.516.621 1.882 1.882 0 0 0-.187.832c0 .445.133.824.398 1.137.274.312.633.469 1.078.469.266 0 .512-.071.739-.211a1.56 1.56 0 0 0 .562-.586c.149-.258.223-.567.223-.926v-.844a2.652 2.652 0 0 0-.692-.539 1.624 1.624 0 0 0-.796-.199Zm6.293-1.301v.844c.179-.242.421-.469.726-.68a1.862 1.862 0 0 1 1.066-.316c.602 0 1.106.203 1.512.609.406.406.61 1.016.61 1.828V193h-1.489l-.011-3.434c0-.398-.098-.695-.293-.89-.188-.196-.45-.293-.786-.293-.265 0-.515.086-.75.258a2.707 2.707 0 0 0-.585.609V193h-1.489v-5.918h1.489Zm8.32-.152c.437 0 .797.07 1.078.211.281.14.504.277.668.41v1.371a3.03 3.03 0 0 0-.692-.375c-.25-.102-.558-.152-.925-.152a1.641 1.641 0 0 0-1.43.82c-.148.25-.223.535-.223.855 0 .485.157.883.469 1.196.313.312.707.468 1.184.468.367 0 .675-.046.925-.14.258-.102.489-.227.692-.375v1.359a2.998 2.998 0 0 1-.668.41c-.281.125-.641.188-1.078.188-.602 0-1.137-.141-1.606-.422a3.257 3.257 0 0 1-1.101-1.137 3.12 3.12 0 0 1-.399-1.547c0-.414.075-.808.223-1.183.156-.375.375-.707.656-.996.281-.297.61-.532.985-.703a2.99 2.99 0 0 1 1.242-.258Zm5.66 0c.578 0 1.074.125 1.488.375.422.25.742.597.961 1.043.227.437.34.945.34 1.523v.633h-4.289c.078.398.273.719.586.961.312.242.695.363 1.148.363.43 0 .821-.086 1.172-.258.352-.172.633-.347.844-.527l-.012 1.383c-.187.164-.468.332-.844.504a2.952 2.952 0 0 1-1.218.246 3.283 3.283 0 0 1-1.606-.399 3.14 3.14 0 0 1-1.148-1.089c-.281-.461-.422-.989-.422-1.583 0-.578.129-1.105.387-1.582a3.071 3.071 0 0 1 1.066-1.148 2.759 2.759 0 0 1 1.547-.445Zm-.035 1.3c-.367 0-.676.114-.926.34-.25.227-.422.532-.516.914h2.836c-.031-.422-.187-.734-.468-.937a1.511 1.511 0 0 0-.926-.317Zm5.672-3.668V193h-1.489v-8.438h1.489Zm3.304 0V193h-1.488v-8.438h1.488Zm4.407 2.368c.578 0 1.074.125 1.488.375.422.25.742.597.961 1.043.226.437.34.945.34 1.523v.633h-4.289c.078.398.273.719.586.961.312.242.695.363 1.148.363.43 0 .82-.086 1.172-.258.351-.172.633-.347.844-.527l-.012 1.383c-.188.164-.469.332-.844.504a2.953 2.953 0 0 1-1.219.246 3.277 3.277 0 0 1-1.605-.399 3.132 3.132 0 0 1-1.148-1.089c-.282-.461-.422-.989-.422-1.583 0-.578.129-1.105.386-1.582a3.082 3.082 0 0 1 1.067-1.148 2.759 2.759 0 0 1 1.547-.445Zm-.036 1.3c-.367 0-.675.114-.925.34-.25.227-.422.532-.516.914h2.836c-.031-.422-.187-.734-.469-.937a1.51 1.51 0 0 0-.926-.317Zm9.809-3.668V193h-1.488v-.996c-.172.32-.422.598-.75.832-.328.226-.711.34-1.149.34-.476 0-.918-.121-1.324-.364a2.627 2.627 0 0 1-.961-1.054c-.242-.461-.363-1.02-.363-1.676 0-.656.121-1.219.363-1.687a2.72 2.72 0 0 1 .996-1.079 2.631 2.631 0 0 1 1.395-.386c.32 0 .644.074.972.222.329.149.602.348.821.598v-3.188h1.488Zm-2.977 3.833a1.34 1.34 0 0 0-.808.246 1.606 1.606 0 0 0-.516.621c-.125.25-.187.523-.187.82 0 .445.133.824.398 1.137.274.312.633.469 1.078.469.266 0 .512-.071.739-.211a1.56 1.56 0 0 0 .562-.586c.149-.258.223-.567.223-.926v-.844a2.443 2.443 0 0 0-.692-.527 1.625 1.625 0 0 0-.797-.199Z"}),u.createElement("rect",{width:141,height:23,x:680.5,y:177.5,stroke:"#FEB0B7",rx:3.5}),u.createElement("rect",{width:139,height:23,x:287.5,y:146.5,fill:"#F1F0FC",rx:3.5}),u.createElement("path",{fill:"#6C65E5",d:"M304 150.5a7.493 7.493 0 0 0-7.5 7.5c0 4.148 3.352 7.5 7.5 7.5s7.5-3.352 7.5-7.5-3.352-7.5-7.5-7.5Zm0 13.5c-3.307 0-6-2.693-6-6s2.693-6 6-6 6 2.693 6 6-2.693 6-6 6Z"}),u.createElement("path",{fill:"#615BC2",d:"M321.979 153.494c.398 0 .788.055 1.168.165.381.11.724.279 1.029.508.313.229.558.516.736.863.186.339.279.745.279 1.219 0 .499-.127.931-.38 1.295a2.56 2.56 0 0 1-.978.838 3.637 3.637 0 0 1-1.32.343l3.059 3.275h-2.323l-2.958-3.479V162h-1.765v-8.506h3.453Zm-1.688 1.651v2.145c.203.068.427.123.673.165.254.034.508.051.762.051.507 0 .909-.102 1.206-.305.304-.211.457-.508.457-.889 0-.414-.161-.71-.483-.888-.313-.186-.698-.279-1.155-.279h-1.46Zm9.052.279c.626 0 1.164.135 1.612.406.457.271.804.648 1.041 1.13.246.474.368 1.024.368 1.65v.686h-4.646c.084.432.296.779.635 1.041.338.262.753.393 1.244.393.465 0 .888-.093 1.269-.279.381-.186.686-.376.914-.571l-.012 1.498c-.204.178-.508.36-.914.546a3.198 3.198 0 0 1-1.321.266 3.553 3.553 0 0 1-1.739-.431 3.405 3.405 0 0 1-1.244-1.181c-.305-.499-.457-1.071-.457-1.714 0-.626.139-1.197.419-1.714a3.328 3.328 0 0 1 1.155-1.244 2.993 2.993 0 0 1 1.676-.482Zm-.038 1.409a1.44 1.44 0 0 0-1.003.368c-.271.246-.457.576-.559.99h3.072c-.033-.457-.203-.795-.507-1.015a1.633 1.633 0 0 0-1.003-.343Zm10.727-1.244L336.998 162h-1.028l-2.996-6.411h1.879l1.612 3.973 1.688-3.973h1.879Zm2.463-3.339c.305 0 .567.11.787.33a1.048 1.048 0 0 1 0 1.524c-.22.22-.482.33-.787.33-.305 0-.567-.11-.787-.33a1.066 1.066 0 0 1-.317-.762c0-.296.105-.55.317-.762.22-.22.482-.33.787-.33Zm.94 3.339V162h-1.613v-5.04h-1.028v-1.371h2.641Zm4.836-.165c.627 0 1.164.135 1.613.406.457.271.804.648 1.041 1.13.245.474.368 1.024.368 1.65v.686h-4.647c.085.432.297.779.635 1.041.339.262.754.393 1.244.393.466 0 .889-.093 1.27-.279.381-.186.685-.376.914-.571l-.013 1.498c-.203.178-.508.36-.914.546a3.197 3.197 0 0 1-1.32.266 3.55 3.55 0 0 1-1.739-.431 3.397 3.397 0 0 1-1.244-1.181c-.305-.499-.458-1.071-.458-1.714 0-.626.14-1.197.419-1.714.28-.516.665-.931 1.156-1.244a2.992 2.992 0 0 1 1.675-.482Zm-.038 1.409c-.397 0-.732.123-1.003.368-.27.246-.457.576-.558.99h3.072c-.034-.457-.203-.795-.508-1.015a1.63 1.63 0 0 0-1.003-.343Zm13.445-1.244L359.456 162h-1.168l-1.498-4.151-1.498 4.151h-1.181l-2.209-6.411h1.752l1.181 3.796 1.384-3.796h1.155l1.371 3.796 1.181-3.796h1.752Zm8.963 1.803a1.707 1.707 0 0 0-.851-.229 1.26 1.26 0 0 0-.927.368 3.44 3.44 0 0 0-.647.889V162h-1.612v-6.411h1.612v1.206a3.63 3.63 0 0 1 .774-.952 1.566 1.566 0 0 1 1.029-.381c.228 0 .435.038.622.114v1.816Zm4.049-1.968c.627 0 1.164.135 1.613.406.457.271.804.648 1.041 1.13.245.474.368 1.024.368 1.65v.686h-4.647c.085.432.297.779.635 1.041.339.262.753.393 1.244.393.466 0 .889-.093 1.27-.279.381-.186.685-.376.914-.571l-.013 1.498c-.203.178-.508.36-.914.546a3.197 3.197 0 0 1-1.32.266 3.55 3.55 0 0 1-1.739-.431 3.407 3.407 0 0 1-1.245-1.181c-.304-.499-.457-1.071-.457-1.714 0-.626.14-1.197.419-1.714.28-.516.665-.931 1.156-1.244a2.992 2.992 0 0 1 1.675-.482Zm-.038 1.409c-.397 0-.732.123-1.003.368-.27.246-.457.576-.558.99h3.072c-.034-.457-.203-.795-.508-1.015a1.63 1.63 0 0 0-1.003-.343Zm7.072-1.409c.347 0 .698.08 1.053.241.356.161.652.377.889.647v-.723h1.612v9.458h-1.612v-4.126a2.645 2.645 0 0 1-.812.901 2.135 2.135 0 0 1-1.245.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.041-1.143-.263-.499-.394-1.104-.394-1.815 0-.711.131-1.32.394-1.828.271-.508.63-.897 1.079-1.168.457-.28.961-.419 1.511-.419Zm.33 1.587c-.339 0-.631.089-.876.266-.237.17-.423.394-.559.673a1.965 1.965 0 0 0-.203.889c0 .482.144.893.432 1.231.296.33.685.495 1.168.495.287 0 .554-.072.799-.215a1.7 1.7 0 0 0 .61-.635c.161-.279.241-.614.241-1.003v-.914a2.606 2.606 0 0 0-.749-.571 1.763 1.763 0 0 0-.863-.216Zm10.867-1.422v3.821c0 .567-.127 1.058-.381 1.473a2.543 2.543 0 0 1-1.041.939 3.2 3.2 0 0 1-1.473.33c-.558 0-1.058-.11-1.498-.33a2.565 2.565 0 0 1-1.028-.939c-.245-.415-.368-.906-.368-1.473v-3.821h1.625l.013 3.529c0 .5.114.872.342 1.117.229.246.534.369.914.369.373 0 .673-.123.902-.369.237-.245.355-.617.355-1.117v-3.529h1.638Zm3.186-3.339c.305 0 .567.11.788.33a1.048 1.048 0 0 1 0 1.524c-.221.22-.483.33-.788.33-.304 0-.567-.11-.787-.33a1.07 1.07 0 0 1-.317-.762c0-.296.106-.55.317-.762.22-.22.483-.33.787-.33Zm.94 3.339V162h-1.612v-5.04h-1.029v-1.371h2.641Zm6.068 1.803a1.703 1.703 0 0 0-.85-.229c-.373 0-.682.123-.927.368a3.441 3.441 0 0 0-.648.889V162h-1.612v-6.411h1.612v1.206c.22-.381.479-.698.775-.952a1.564 1.564 0 0 1 1.028-.381c.229 0 .436.038.622.114v1.816Zm4.05-1.968c.626 0 1.164.135 1.612.406.457.271.804.648 1.041 1.13.246.474.369 1.024.369 1.65v.686h-4.647c.085.432.296.779.635 1.041.338.262.753.393 1.244.393a2.85 2.85 0 0 0 1.269-.279c.381-.186.686-.376.915-.571l-.013 1.498c-.203.178-.508.36-.914.546a3.198 3.198 0 0 1-1.321.266 3.556 3.556 0 0 1-1.739-.431 3.405 3.405 0 0 1-1.244-1.181c-.305-.499-.457-1.071-.457-1.714 0-.626.14-1.197.419-1.714a3.328 3.328 0 0 1 1.155-1.244 2.996 2.996 0 0 1 1.676-.482Zm-.038 1.409a1.44 1.44 0 0 0-1.003.368c-.271.246-.457.576-.559.99h3.073c-.034-.457-.203-.795-.508-1.015a1.633 1.633 0 0 0-1.003-.343Zm10.626-3.974V162h-1.612v-1.079a2.648 2.648 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.994-.131-1.435-.393-.431-.262-.778-.643-1.041-1.143-.262-.499-.393-1.104-.393-1.815 0-.711.131-1.32.393-1.828a2.946 2.946 0 0 1 1.08-1.168c.457-.28.96-.419 1.51-.419.347 0 .698.08 1.054.241.355.161.652.377.889.647v-3.453h1.612Zm-3.225 4.152c-.338 0-.63.089-.876.266-.237.17-.423.394-.558.673a1.952 1.952 0 0 0-.203.889c0 .482.144.893.431 1.231.296.339.686.508 1.168.508.288 0 .555-.076.8-.228a1.69 1.69 0 0 0 .609-.635c.161-.279.242-.614.242-1.003v-.914a2.633 2.633 0 0 0-.749-.571 1.77 1.77 0 0 0-.864-.216Z"}),u.createElement("rect",{width:139,height:23,x:287.5,y:146.5,stroke:"#BEBBF3",rx:3.5}),u.createElement("rect",{width:88,height:23,x:142.5,y:146.5,fill:"#FFF4E5",rx:3.5}),u.createElement("path",{fill:"#B35300",d:"M154.692 153.291c.897 0 1.684.182 2.361.546a3.9 3.9 0 0 1 1.574 1.523c.381.652.572 1.418.572 2.298 0 .838-.178 1.6-.533 2.285a4.056 4.056 0 0 1-1.524 1.613c-.66.397-1.447.596-2.361.596a17.819 17.819 0 0 1-3.39-.33v-8.201a41.433 41.433 0 0 1 1.612-.228 13.767 13.767 0 0 1 1.689-.102Zm.038 1.65a9.506 9.506 0 0 0-1.574.14v5.281c.254.051.516.089.787.115.279.016.542.025.787.025.559 0 1.037-.119 1.435-.356.397-.245.702-.579.914-1.002.211-.424.317-.898.317-1.422 0-.542-.106-1.02-.317-1.435a2.372 2.372 0 0 0-.914-.977c-.398-.246-.876-.369-1.435-.369Zm10.067 2.451a1.7 1.7 0 0 0-.85-.229c-.373 0-.682.123-.927.368a3.44 3.44 0 0 0-.647.889V162h-1.613v-6.411h1.613v1.206a3.63 3.63 0 0 1 .774-.952 1.564 1.564 0 0 1 1.028-.381c.229 0 .436.038.622.114v1.816Zm3.784-1.968c.347 0 .698.08 1.053.241.356.161.652.377.889.647v-.723h1.612V162h-1.612v-1.079a2.638 2.638 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.041-1.143-.263-.499-.394-1.104-.394-1.815 0-.711.131-1.32.394-1.828.271-.508.63-.897 1.079-1.168.457-.28.96-.419 1.511-.419Zm.33 1.574a1.45 1.45 0 0 0-.876.267 1.735 1.735 0 0 0-.559.673 2.04 2.04 0 0 0-.203.901c0 .482.144.893.432 1.231.296.339.685.508 1.168.508.287 0 .554-.076.799-.228a1.7 1.7 0 0 0 .61-.635c.161-.279.241-.614.241-1.003v-.914a2.848 2.848 0 0 0-.749-.584 1.763 1.763 0 0 0-.863-.216Zm8.963-1.409v1.346h-1.664V162h-1.612v-5.065h-.977v-1.346h.977v-.571c0-.491.102-.91.305-1.257.211-.356.486-.627.825-.813a2.283 2.283 0 0 1 1.117-.279c.271 0 .508.03.711.089.203.059.381.139.533.241v1.346a1.731 1.731 0 0 0-.964-.241.985.985 0 0 0-.648.253c-.178.153-.267.407-.267.762v.47h1.664Zm3.656-1.866v1.866h1.777v1.346h-1.777v2.767c0 .288.063.516.19.686.136.161.335.241.597.241.228 0 .423-.025.584-.076.169-.051.326-.123.47-.216v1.282a2.012 2.012 0 0 1-.61.406c-.237.11-.537.165-.901.165-.576 0-1.045-.182-1.409-.545-.356-.373-.534-.881-.534-1.524v-3.186h-1.155v-.826c.406-.144.779-.414 1.117-.812.347-.398.622-.923.826-1.574h.825Zm8.912 1.866v.812c.195-.245.427-.469.698-.672.279-.204.635-.305 1.067-.305.448 0 .854.106 1.218.317.364.203.648.512.851.927.254-.347.55-.639.889-.876a1.96 1.96 0 0 1 1.18-.368c.432 0 .825.101 1.181.305.355.194.639.486.85.875.221.39.331.876.331 1.46V162h-1.613l-.012-3.72c0-.431-.115-.753-.343-.965-.22-.211-.512-.317-.876-.317-.28 0-.521.089-.724.267a3.597 3.597 0 0 0-.571.609V162h-1.612l-.013-3.72c0-.431-.114-.753-.343-.965-.22-.211-.508-.317-.863-.317a1.13 1.13 0 0 0-.724.254 3.057 3.057 0 0 0-.571.571V162h-1.612v-6.411h1.612Zm13.089-.165a3.31 3.31 0 0 1 1.714.457c.516.296.931.702 1.244 1.219.321.507.482 1.079.482 1.713 0 .635-.161 1.207-.482 1.714a3.576 3.576 0 0 1-1.244 1.219 3.388 3.388 0 0 1-1.714.444 3.43 3.43 0 0 1-1.714-.444 3.576 3.576 0 0 1-1.244-1.219 3.198 3.198 0 0 1-.47-1.714c0-.634.157-1.206.47-1.713a3.428 3.428 0 0 1 1.244-1.219 3.351 3.351 0 0 1 1.714-.457Zm0 1.561c-.305 0-.588.072-.851.216a1.662 1.662 0 0 0-.635.622c-.152.271-.228.601-.228.99 0 .39.076.72.228.991.161.271.373.478.635.622.263.135.546.203.851.203.304 0 .588-.068.85-.203.263-.144.474-.351.635-.622.161-.271.241-.601.241-.991 0-.389-.08-.719-.241-.99a1.655 1.655 0 0 0-.635-.622 1.738 1.738 0 0 0-.85-.216Zm11.057-4.126V162h-1.612v-1.079a2.645 2.645 0 0 1-.812.901 2.135 2.135 0 0 1-1.245.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.041-1.143-.263-.499-.394-1.104-.394-1.815 0-.711.131-1.32.394-1.828.271-.508.63-.897 1.079-1.168.457-.28.961-.419 1.511-.419.347 0 .698.08 1.053.241.356.161.652.377.889.647v-3.453h1.612Zm-3.224 4.152c-.339 0-.631.089-.876.266-.237.17-.423.394-.559.673a1.965 1.965 0 0 0-.203.889c0 .482.144.893.432 1.231.296.339.685.508 1.168.508.287 0 .554-.076.799-.228.254-.153.458-.364.61-.635.161-.279.241-.614.241-1.003v-.914a2.606 2.606 0 0 0-.749-.571 1.763 1.763 0 0 0-.863-.216Zm8.011-1.587c.626 0 1.163.135 1.612.406.457.271.804.648 1.041 1.13.245.474.368 1.024.368 1.65v.686h-4.646c.084.432.296.779.634 1.041.339.262.754.393 1.244.393.466 0 .889-.093 1.27-.279.381-.186.685-.376.914-.571l-.013 1.498c-.203.178-.507.36-.914.546a3.197 3.197 0 0 1-1.32.266 3.55 3.55 0 0 1-1.739-.431 3.397 3.397 0 0 1-1.244-1.181c-.305-.499-.457-1.071-.457-1.714 0-.626.139-1.197.418-1.714.28-.516.665-.931 1.156-1.244a2.993 2.993 0 0 1 1.676-.482Zm-.039 1.409c-.397 0-.732.123-1.003.368-.27.246-.457.576-.558.99h3.072c-.034-.457-.203-.795-.508-1.015a1.63 1.63 0 0 0-1.003-.343Z"}),u.createElement("rect",{width:88,height:23,x:142.5,y:146.5,stroke:"#FFC46F",rx:3.5}),u.createElement("path",{fill:"#202021",d:"M243 157.25a.75.75 0 0 0 0 1.5v-1.5Zm32.53 1.28a.749.749 0 0 0 0-1.06l-4.773-4.773a.749.749 0 1 0-1.06 1.06l4.242 4.243-4.242 4.243a.749.749 0 1 0 1.06 1.06l4.773-4.773Zm-32.53.22h32v-1.5h-32v1.5ZM110 157.25a.75.75 0 0 0 0 1.5v-1.5Zm20.53 1.28a.749.749 0 0 0 0-1.06l-4.773-4.773a.749.749 0 1 0-1.06 1.06l4.242 4.243-4.242 4.243a.749.749 0 1 0 1.06 1.06l4.773-4.773Zm-20.53.22h20v-1.5h-20v1.5ZM636 125.25a.75.75 0 0 0 0 1.5v-1.5Zm32.53 1.28a.749.749 0 0 0 0-1.06l-4.773-4.773a.749.749 0 1 0-1.06 1.06l4.242 4.243-4.242 4.243a.749.749 0 1 0 1.06 1.06l4.773-4.773Zm-32.53.22h32v-1.5h-32v1.5ZM636 188.25a.75.75 0 0 0 0 1.5v-1.5Zm32.53 1.28a.749.749 0 0 0 0-1.06l-4.773-4.773a.749.749 0 1 0-1.06 1.06l4.242 4.243-4.242 4.243a.749.749 0 1 0 1.06 1.06l4.773-4.773Zm-32.53.22h32v-1.5h-32v1.5Z"}),u.createElement("path",{stroke:"#202021",strokeLinecap:"round",strokeWidth:1.5,d:"M439 158h30"}),u.createElement("path",{fill:"#202021",d:"m480.501 132.407-.643-.386.643.386Zm22.984-5.428a.75.75 0 0 0 .089-1.057l-4.361-5.153a.75.75 0 1 0-1.145.969l3.876 4.58-4.58 3.876a.75.75 0 1 0 .969 1.145l5.152-4.36ZM466 158.75c3.095 0 5.328-1.166 6.97-3.066 1.61-1.863 2.622-4.395 3.406-7.092.779-2.68 1.374-5.69 2.059-8.428.696-2.786 1.499-5.353 2.709-7.372l-1.286-.771c-1.332 2.221-2.177 4.972-2.879 7.78-.714 2.856-1.27 5.714-2.043 8.372-.768 2.643-1.709 4.919-3.101 6.53-1.36 1.574-3.18 2.547-5.835 2.547v1.5Zm15.144-25.958c1.006-1.676 2.803-2.906 5.046-3.789 2.235-.881 4.835-1.386 7.331-1.664 2.491-.277 4.849-.323 6.587-.3.868.012 1.579.04 2.071.066.247.013.438.026.567.034l.146.011a.637.637 0 0 1 .036.003h.009l.002.001.062-.748.062-.747h-.001l-.003-.001h-.011l-.042-.004-.157-.011a50.879 50.879 0 0 0-.591-.036 56.858 56.858 0 0 0-2.13-.068 55.836 55.836 0 0 0-6.773.309c-2.566.286-5.31.811-7.715 1.759-2.398.945-4.538 2.34-5.782 4.414l1.286.771Z"}),u.createElement("path",{fill:"#202021",d:"m480.502 183.5-.643.386.643-.386Zm22.984 5.428a.75.75 0 0 1 .088 1.057l-4.36 5.153a.75.75 0 0 1-1.145-.969l3.875-4.58-4.58-3.876a.75.75 0 0 1 .969-1.145l5.153 4.36ZM466 157.25c3.094 0 5.326 1.159 6.969 3.05 1.61 1.854 2.623 4.375 3.407 7.06.779 2.669 1.374 5.668 2.059 8.396.697 2.778 1.499 5.34 2.71 7.358l-1.286.772c-1.332-2.22-2.177-4.966-2.879-7.765-.714-2.847-1.271-5.694-2.044-8.34-.768-2.63-1.708-4.895-3.1-6.497-1.36-1.565-3.18-2.534-5.836-2.534v-1.5Zm15.145 25.864c1.005 1.677 2.803 2.907 5.045 3.79 2.235.881 4.835 1.386 7.332 1.663 2.491.277 4.849.324 6.587.301a53.867 53.867 0 0 0 2.638-.101l.146-.01.036-.003.008-.001h.002l.062.747.062.748h-.004l-.011.001a54.48 54.48 0 0 1-2.919.119c-1.779.023-4.202-.024-6.773-.31-2.566-.285-5.31-.811-7.716-1.758-2.398-.945-4.538-2.34-5.781-4.414l1.286-.772ZM47.633 143.635c.665 0 1.207.091 1.627.273.428.182.802.419 1.12.711v1.354c-.2-.146-.428-.306-.683-.479a3.959 3.959 0 0 0-.875-.451c-.328-.137-.724-.205-1.19-.205-.683 0-1.293.155-1.831.465-.538.31-.962.738-1.272 1.285-.31.538-.465 1.148-.465 1.832 0 .684.155 1.294.465 1.832.31.538.734.966 1.272 1.285.538.31 1.148.465 1.832.465.702 0 1.299-.114 1.79-.342a6.756 6.756 0 0 0 1.231-.724v1.23c-.319.283-.738.529-1.258.738-.51.201-1.098.301-1.763.301-.693 0-1.33-.123-1.914-.369a4.952 4.952 0 0 1-1.532-1.039 4.798 4.798 0 0 1-1.025-1.518 4.89 4.89 0 0 1-.355-1.859c0-.656.118-1.272.355-1.846a4.755 4.755 0 0 1 2.557-2.556 4.71 4.71 0 0 1 1.914-.383Zm8.217 2.392a2.6 2.6 0 0 1 1.271.315c.383.2.688.51.916.929.228.411.342.93.342 1.559V153h-1.121l-.014-4.061c0-.592-.132-1.043-.396-1.353-.256-.31-.652-.465-1.19-.465-.364 0-.729.137-1.093.41a4.8 4.8 0 0 0-.944.93V153H52.5v-9.844h1.121v4.088c.146-.182.333-.364.56-.547.229-.191.484-.351.766-.478.292-.128.593-.192.903-.192Zm7.465 0c.391 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.12V153h-1.12v-1.162c-.237.364-.56.683-.971.957-.401.273-.861.41-1.38.41a3.041 3.041 0 0 1-1.6-.437 3.326 3.326 0 0 1-1.163-1.245c-.282-.528-.423-1.139-.423-1.832 0-.756.14-1.408.423-1.955a3.102 3.102 0 0 1 1.19-1.257 3.204 3.204 0 0 1 1.681-.452Zm.205 1.094c-.493 0-.912.123-1.258.369a2.497 2.497 0 0 0-.807.957 2.858 2.858 0 0 0-.273 1.244c0 .438.09.844.273 1.217.182.365.438.656.766.875.337.219.724.328 1.162.328.42 0 .793-.109 1.12-.328.329-.219.589-.519.78-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.525 3.525 0 0 0-.916-.834 2.033 2.033 0 0 0-1.107-.301Zm6.603-.957v1.08c.146-.182.333-.364.56-.547.228-.191.484-.351.766-.478.292-.128.593-.192.903-.192a2.6 2.6 0 0 1 1.271.315c.383.2.688.51.916.929.228.411.342.93.342 1.559V153H73.76l-.014-4.061c0-.592-.132-1.043-.396-1.353-.256-.31-.652-.465-1.19-.465-.364 0-.729.137-1.094.41-.355.265-.67.574-.943.93V153h-1.121v-6.836h1.121Zm9.693-.137c.392 0 .789.096 1.19.287.41.183.76.438 1.053.766v-.916h1.12v6.699c0 .811-.163 1.486-.492 2.024a3.092 3.092 0 0 1-1.312 1.203 4.065 4.065 0 0 1-1.791.396c-.42 0-.78-.05-1.08-.15a2.73 2.73 0 0 1-.752-.356c-.21-.136-.401-.268-.574-.396v-1.203c.136.1.314.228.533.383.228.164.497.31.807.437a2.84 2.84 0 0 0 1.066.192c.447 0 .857-.082 1.23-.247.374-.164.675-.405.903-.724.228-.319.342-.702.342-1.149v-1.435c-.237.364-.561.683-.971.957-.401.273-.861.41-1.381.41a3.042 3.042 0 0 1-1.6-.437 3.327 3.327 0 0 1-1.162-1.245c-.282-.528-.423-1.139-.423-1.832 0-.756.14-1.408.423-1.955a3.102 3.102 0 0 1 1.19-1.257 3.204 3.204 0 0 1 1.681-.452Zm.206 1.108c-.493 0-.912.123-1.258.369a2.39 2.39 0 0 0-.807.943 2.858 2.858 0 0 0-.273 1.244c0 .438.09.839.273 1.204.182.364.438.656.766.875.337.218.724.328 1.162.328.419 0 .793-.11 1.12-.328a2.29 2.29 0 0 0 .78-.903c.192-.383.283-.816.274-1.299l-.014-1.312a3.307 3.307 0 0 0-.916-.82 2.033 2.033 0 0 0-1.108-.301Zm8.298-1.108c.702 0 1.286.146 1.75.438a2.69 2.69 0 0 1 1.04 1.189c.236.502.355 1.067.355 1.696v.67h-5.25c.054.382.187.733.396 1.052.21.319.483.574.82.766.338.182.725.273 1.163.273.492 0 .952-.123 1.38-.369a5.187 5.187 0 0 0 1.08-.834l-.013 1.217a2.73 2.73 0 0 1-.574.492 3.583 3.583 0 0 1-.861.41 2.87 2.87 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.656 3.656 0 0 1-.452-1.791c0-.647.142-1.244.424-1.791.283-.547.67-.984 1.162-1.312a3.045 3.045 0 0 1 1.71-.493Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.115c-.045-.446-.173-.811-.382-1.093a1.873 1.873 0 0 0-.739-.629 2.02 2.02 0 0 0-.916-.219Zm7.028-1.094c.4 0 .774.06 1.12.178.347.109.598.223.753.342v1.203a3.562 3.562 0 0 0-.78-.424 2.602 2.602 0 0 0-1.011-.205c-.429 0-.752.1-.971.301-.21.2-.315.41-.315.629 0 .173.06.351.178.533.128.173.347.314.656.424l1.149.41c.447.155.78.378.998.67.219.292.328.633.328 1.025 0 .383-.11.734-.328 1.053a2.23 2.23 0 0 1-.889.766c-.373.182-.806.273-1.299.273-.264 0-.542-.036-.834-.109a5.115 5.115 0 0 1-.765-.233 3.618 3.618 0 0 1-.506-.259V151.4c.128.092.305.196.533.315.237.109.488.205.752.287.264.073.51.109.739.109.428 0 .765-.095 1.011-.287.255-.191.383-.428.383-.711a.61.61 0 0 0-.26-.519c-.164-.128-.405-.251-.724-.369l-1.012-.37c-.529-.2-.88-.451-1.053-.751a2.122 2.122 0 0 1-.26-1.053c0-.584.22-1.067.657-1.449.437-.383 1.02-.575 1.75-.575Zm-49.26 17.129V173h-1.121v-1.162c-.237.364-.56.683-.97.957-.402.273-.862.41-1.382.41a3.042 3.042 0 0 1-1.6-.437 3.327 3.327 0 0 1-1.162-1.245c-.282-.528-.423-1.139-.423-1.832 0-.756.141-1.408.423-1.955a3.102 3.102 0 0 1 1.19-1.257 3.204 3.204 0 0 1 1.682-.452c.392 0 .788.096 1.19.287.41.183.76.438 1.052.766v-3.924h1.12Zm-3.158 3.992c-.492 0-.912.123-1.258.37a2.412 2.412 0 0 0-.807.929 2.858 2.858 0 0 0-.273 1.244c0 .438.09.844.273 1.217.182.365.438.656.766.875.337.219.724.328 1.162.328.42 0 .793-.109 1.121-.328.328-.219.588-.519.78-.902a2.83 2.83 0 0 0 .273-1.313l-.014-1.312a3.307 3.307 0 0 0-.916-.82 2.105 2.105 0 0 0-1.107-.288Zm8.298-1.121c.702 0 1.286.146 1.75.438a2.69 2.69 0 0 1 1.04 1.189c.237.502.355 1.067.355 1.696v.67h-5.25c.055.382.187.733.397 1.052.21.319.483.574.82.766.337.182.724.273 1.162.273.492 0 .952-.123 1.38-.369a5.187 5.187 0 0 0 1.08-.834l-.013 1.217a2.73 2.73 0 0 1-.574.492 3.583 3.583 0 0 1-.861.41 2.87 2.87 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.656 3.656 0 0 1-.451-1.791c0-.647.14-1.244.423-1.791.283-.547.67-.984 1.163-1.312a3.045 3.045 0 0 1 1.708-.493Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.116c-.046-.446-.174-.811-.383-1.093a1.873 1.873 0 0 0-.739-.629 2.02 2.02 0 0 0-.916-.219Zm6.877-2.926v1.969h1.997v1.053h-1.996v4.006c0 .282.072.506.218.67.146.164.37.246.67.246.274 0 .501-.032.684-.096.182-.073.342-.15.478-.232v.916a2.268 2.268 0 0 1-.588.341c-.2.092-.474.137-.82.137-.583 0-1.025-.173-1.326-.519-.292-.356-.438-.825-.438-1.409v-4.06h-1.312v-.328c.447-.201.82-.529 1.121-.985.3-.465.565-1.034.793-1.709h.52Zm6.85 1.832c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.04 1.189c.236.502.355 1.067.355 1.696v.67h-5.25c.054.382.186.733.396 1.052.21.319.483.574.82.766.338.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.187 5.187 0 0 0 1.08-.834l-.013 1.217a2.73 2.73 0 0 1-.574.492 3.582 3.582 0 0 1-.862.41 2.87 2.87 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.272-1.299 3.656 3.656 0 0 1-.45-1.791c0-.647.14-1.244.423-1.791.282-.547.67-.984 1.162-1.312a3.045 3.045 0 0 1 1.71-.493Zm0 1.094c-.565 0-1.03.191-1.395.574-.364.374-.592.83-.683 1.367h4.115c-.045-.446-.173-.811-.383-1.093a1.873 1.873 0 0 0-.738-.629 2.02 2.02 0 0 0-.916-.219Zm8.08-1.094c.502 0 .934.082 1.299.246.365.155.615.297.752.424v1.135a4.067 4.067 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219a2.28 2.28 0 0 0-1.271.356 2.336 2.336 0 0 0-.848.916 2.654 2.654 0 0 0-.287 1.23c0 .438.096.848.287 1.231.2.373.483.679.848.916.364.227.788.341 1.271.341.456 0 .848-.068 1.176-.205a4.47 4.47 0 0 0 .875-.506v1.135c-.137.137-.387.283-.752.438-.365.155-.797.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.656 3.656 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.58 3.58 0 0 1 1.271-1.312c.538-.329 1.153-.493 1.846-.493Zm5.783-1.832v1.969h1.996v1.053h-1.996v4.006c0 .282.073.506.22.67.145.164.368.246.669.246.274 0 .501-.032.684-.096.182-.073.341-.15.478-.232v.916a2.269 2.269 0 0 1-.588.341c-.2.092-.474.137-.82.137-.583 0-1.025-.173-1.326-.519-.292-.356-.438-.825-.438-1.409v-4.06h-1.312v-.328c.446-.201.82-.529 1.12-.985.302-.465.566-1.034.794-1.709h.52Zm6.85 1.832c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.039 1.189c.237.502.356 1.067.356 1.696v.67h-5.25c.054.382.186.733.396 1.052.21.319.483.574.82.766.338.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.184 5.184 0 0 0 1.08-.834l-.013 1.217a2.73 2.73 0 0 1-.575.492 3.584 3.584 0 0 1-.86.41 2.87 2.87 0 0 1-1.013.178c-.692 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.656 3.656 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.312a3.044 3.044 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.395.574-.364.374-.592.83-.683 1.367h4.115c-.046-.446-.173-.811-.383-1.093a1.873 1.873 0 0 0-.738-.629 2.02 2.02 0 0 0-.916-.219Zm11.17-3.965V173h-1.121v-1.162c-.237.364-.56.683-.97.957-.402.273-.862.41-1.382.41a3.042 3.042 0 0 1-1.6-.437 3.327 3.327 0 0 1-1.162-1.245c-.282-.528-.423-1.139-.423-1.832 0-.756.141-1.408.423-1.955a3.102 3.102 0 0 1 1.19-1.257 3.204 3.204 0 0 1 1.682-.452c.392 0 .788.096 1.19.287.41.183.76.438 1.052.766v-3.924h1.12Zm-3.158 3.992c-.493 0-.912.123-1.258.37a2.412 2.412 0 0 0-.807.929 2.858 2.858 0 0 0-.273 1.244c0 .438.09.844.273 1.217.183.365.438.656.766.875.337.219.725.328 1.162.328.42 0 .793-.109 1.121-.328.328-.219.588-.519.78-.902a2.83 2.83 0 0 0 .273-1.313l-.014-1.312a3.307 3.307 0 0 0-.916-.82 2.105 2.105 0 0 0-1.107-.288Z"}),u.createElement("circle",{cx:455,cy:158,r:5,fill:"#6C65E5",stroke:"#F2F2F5",strokeWidth:2}),u.createElement("path",{stroke:"#6C65E5",strokeLinecap:"round",strokeWidth:1.5,d:"M455 157v-50"}),u.createElement("path",{fill:"#615BC2",d:"M371.349 64.813v5.564c0 .793-.169 1.477-.506 2.05a3.34 3.34 0 0 1-1.34 1.3c-.565.3-1.208.45-1.928.45-.711 0-1.353-.15-1.928-.45a3.43 3.43 0 0 1-1.353-1.3c-.328-.574-.492-1.257-.492-2.05v-5.564h1.23v5.523c0 .62.114 1.121.342 1.504.237.383.547.66.93.834.392.164.815.246 1.271.246.456-.01.875-.096 1.258-.26.392-.173.702-.447.93-.82.237-.383.355-.884.355-1.504v-5.523h1.231Zm4.566 2.214c.401 0 .775.06 1.121.178.346.11.597.223.752.342v1.203a3.548 3.548 0 0 0-.779-.424 2.61 2.61 0 0 0-1.012-.205c-.428 0-.752.1-.971.3-.209.201-.314.411-.314.63 0 .173.059.35.178.533.127.173.346.314.656.424l1.148.41c.447.155.78.378.998.67.219.292.329.633.329 1.025 0 .383-.11.734-.329 1.053a2.217 2.217 0 0 1-.888.766c-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.073 5.073 0 0 1-.766-.232 3.571 3.571 0 0 1-.506-.26V72.4c.128.091.306.196.534.315.237.11.487.205.752.287.264.073.51.11.738.11.428 0 .765-.096 1.012-.288.255-.191.382-.428.382-.71a.611.611 0 0 0-.259-.52c-.164-.128-.406-.25-.725-.37l-1.012-.368c-.528-.201-.879-.452-1.052-.752-.174-.31-.26-.661-.26-1.053 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574Zm6.631 0c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.21.32.483.575.82.766.337.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.735 2.735 0 0 1-.575.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm6.111-.957v1.367a3.53 3.53 0 0 1 .957-1.094c.374-.273.757-.41 1.149-.41.264 0 .501.046.711.137v1.299a1.704 1.704 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.283.328-.552.72-.807 1.176V74h-1.121v-6.836h1.121Zm17.322 0L403.587 74h-.697l-1.873-4.826L399.144 74h-.698l-2.392-6.836h1.34l1.517 4.799 1.791-4.799h.629l1.791 4.799 1.518-4.799h1.339Zm2.461-3.281c.265 0 .484.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.847.847 0 0 1-.657.287.887.887 0 0 1-.669-.287.93.93 0 0 1-.26-.642.9.9 0 0 1 .26-.643.887.887 0 0 1 .669-.287Zm.698 3.281V74h-1.121v-5.783h-1.08v-1.053h2.201Zm4.306-1.969v1.97h1.996v1.052h-1.996v4.006c0 .282.073.505.219.67.146.164.369.246.67.246a2.1 2.1 0 0 0 .684-.096c.182-.073.341-.15.478-.233v.917c-.182.145-.378.26-.588.341-.2.091-.474.137-.82.137-.583 0-1.025-.173-1.326-.52-.292-.355-.438-.824-.438-1.408v-4.06h-1.312v-.328c.446-.2.82-.529 1.121-.985.301-.465.565-1.034.793-1.709h.519Zm7.383 1.832c.465 0 .889.105 1.272.315.382.2.688.51.916.93.228.41.341.93.341 1.558V74h-1.121l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V74h-1.121v-9.844h1.121v4.088c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192Zm12.223 0a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.292.51.437 1.112.437 1.805 0 .747-.145 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.391 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V67.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.315-.328.21-.588.5-.779.874-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383.347-.255.611-.583.793-.984.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.15 2.15 0 0 0-.766-.847c-.328-.21-.715-.315-1.162-.315Zm6.33-.957v1.367c.264-.456.583-.82.957-1.094.374-.273.757-.41 1.149-.41.264 0 .501.046.711.137v1.299a1.704 1.704 0 0 0-.875-.26c-.465 0-.844.164-1.135.492-.283.328-.552.72-.807 1.176V74h-1.121v-6.836h1.121Zm7.342-.137c.693 0 1.308.164 1.846.492.537.329.957.766 1.257 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.3.538-.72.97-1.257 1.299-.538.328-1.153.492-1.846.492-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.733-.984 1.271-1.313.538-.328 1.153-.492 1.846-.492Zm0 1.094c-.483 0-.907.119-1.272.356a2.342 2.342 0 0 0-.847.916 2.652 2.652 0 0 0-.287 1.23c0 .438.095.848.287 1.23.2.374.483.68.847.916.365.228.789.342 1.272.342.492 0 .916-.114 1.271-.342.365-.236.643-.542.834-.916.201-.382.301-.792.301-1.23 0-.447-.1-.857-.301-1.23a2.239 2.239 0 0 0-.834-.916c-.355-.237-.779-.356-1.271-.356Zm8.887-1.094a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.291.51.437 1.112.437 1.805 0 .747-.146 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.392 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V67.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.315-.328.21-.588.5-.779.874-.183.365-.274.793-.274 1.286l.014 1.312c.291.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.492 0 .912-.127 1.258-.383a2.47 2.47 0 0 0 .793-.984 2.98 2.98 0 0 0 .287-1.271 2.52 2.52 0 0 0-.273-1.19 2.157 2.157 0 0 0-.766-.847c-.328-.21-.715-.315-1.162-.315Zm8.025-1.094c.702 0 1.285.146 1.75.438.465.291.812.688 1.039 1.19.237.5.356 1.066.356 1.695v.67h-5.25c.055.382.187.733.396 1.052.21.32.483.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.752 2.752 0 0 1-.574.492c-.246.164-.533.301-.862.41a2.88 2.88 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.606 3.606 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.452-1.791c0-.647.142-1.244.424-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.394.574-.365.374-.593.83-.684 1.368h4.115c-.045-.447-.173-.812-.382-1.094a1.878 1.878 0 0 0-.739-.63 2.021 2.021 0 0 0-.916-.218Zm6.112-.957v1.367c.264-.456.583-.82.957-1.094.373-.273.756-.41 1.148-.41.264 0 .501.046.711.137v1.299a1.701 1.701 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V74h-1.121v-6.836h1.121Zm11.826-.137a2.99 2.99 0 0 1 1.599.438c.484.282.866.683 1.149 1.203.292.51.437 1.112.437 1.805 0 .747-.145 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.391 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V67.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.315-.328.21-.588.5-.779.874-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383.347-.255.611-.583.793-.984.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.15 2.15 0 0 0-.766-.847c-.328-.21-.715-.315-1.162-.315Zm8.025-1.094c.702 0 1.286.146 1.75.438a2.69 2.69 0 0 1 1.04 1.19c.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.396 1.052.21.32.484.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.885 2.885 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.029.192-1.394.574-.365.374-.593.83-.684 1.368h4.116c-.046-.447-.174-.812-.383-1.094a1.878 1.878 0 0 0-.739-.63 2.021 2.021 0 0 0-.916-.218Zm6.112-.957v1.367c.264-.456.583-.82.957-1.094.374-.273.756-.41 1.148-.41.265 0 .502.046.711.137v1.299a1.698 1.698 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V74h-1.121v-6.836h1.121Zm5.373 0v.875c.219-.246.497-.474.834-.683.346-.22.752-.329 1.217-.329.492 0 .952.119 1.38.356.429.228.757.574.985 1.039a5.844 5.844 0 0 1 1.039-.984c.374-.274.811-.41 1.312-.41.465 0 .898.104 1.299.314.41.2.739.51.985.93.255.41.382.93.382 1.558V74h-1.121l-.013-4.06c0-.593-.155-1.044-.465-1.354-.301-.31-.72-.465-1.258-.465-.392 0-.734.123-1.025.37-.292.245-.57.532-.834.86V74h-1.121l-.014-4.06c0-.593-.155-1.044-.465-1.354-.301-.31-.72-.465-1.258-.465-.373 0-.715.11-1.025.328a4.535 4.535 0 0 0-.834.793V74h-1.121v-6.836h1.121Zm12.646-3.281c.265 0 .483.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.849.849 0 0 1-.657.287.891.891 0 0 1-.67-.287.934.934 0 0 1-.259-.642c0-.247.086-.46.259-.643a.891.891 0 0 1 .67-.287Zm.698 3.281V74h-1.121v-5.783h-1.081v-1.053h2.202Zm4.457-.137c.401 0 .774.06 1.121.178.346.11.597.223.752.342v1.203a3.558 3.558 0 0 0-.78-.424 2.605 2.605 0 0 0-1.011-.205c-.429 0-.752.1-.971.3-.21.201-.314.411-.314.63 0 .173.059.35.177.533.128.173.347.314.656.424l1.149.41c.447.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.373.182-.806.273-1.299.273-.264 0-.542-.036-.834-.11a5.095 5.095 0 0 1-.765-.232 3.516 3.516 0 0 1-.506-.26V72.4c.128.091.305.196.533.315.237.11.488.205.752.287.264.073.511.11.738.11.429 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.405-.25-.724-.37l-1.012-.368c-.529-.201-.88-.452-1.053-.752-.173-.31-.26-.661-.26-1.053 0-.584.219-1.067.657-1.45.437-.382 1.02-.574 1.75-.574Zm5.851 0c.401 0 .775.06 1.121.178.347.11.597.223.752.342v1.203a3.548 3.548 0 0 0-.779-.424 2.606 2.606 0 0 0-1.012-.205c-.428 0-.752.1-.97.3-.21.201-.315.411-.315.63 0 .173.059.35.178.533.127.173.346.314.656.424l1.148.41c.447.155.78.378.999.67.218.292.328.633.328 1.025 0 .383-.11.734-.328 1.053-.21.319-.506.574-.889.766-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.109 5.109 0 0 1-.766-.232 3.548 3.548 0 0 1-.505-.26V72.4c.127.091.305.196.533.315.237.11.487.205.752.287.264.073.51.11.738.11.428 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.406-.25-.725-.37l-1.012-.368c-.528-.201-.879-.452-1.052-.752-.173-.31-.26-.661-.26-1.053 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574Zm4.908-3.144c.265 0 .483.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.849.849 0 0 1-.657.287.891.891 0 0 1-.67-.287.934.934 0 0 1-.259-.642c0-.247.086-.46.259-.643a.891.891 0 0 1 .67-.287Zm.698 3.281V74h-1.121v-5.783h-1.081v-1.053h2.202Zm5.509-.137c.693 0 1.308.164 1.846.492.538.329.957.766 1.258 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.97-1.258 1.299-.538.328-1.153.492-1.846.492-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.734-.984 1.272-1.313.537-.328 1.153-.492 1.845-.492Zm0 1.094a2.28 2.28 0 0 0-1.271.356 2.344 2.344 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.201.374.483.68.848.916.365.228.788.342 1.271.342.493 0 .916-.114 1.272-.342.364-.236.642-.542.834-.916.2-.382.301-.792.301-1.23 0-.447-.101-.857-.301-1.23a2.253 2.253 0 0 0-.834-.916c-.356-.237-.779-.356-1.272-.356Zm6.536-.957v1.08c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192.465 0 .889.105 1.272.315.382.2.688.51.916.93.227.41.341.93.341 1.558V74h-1.121l-.013-4.06c0-.593-.133-1.044-.397-1.354-.255-.31-.652-.465-1.189-.465-.365 0-.729.137-1.094.41-.356.265-.67.575-.943.93V74h-1.122v-6.836h1.122ZM384.877 87.027c.501 0 .934.082 1.299.246.364.155.615.297.752.424v1.135a4.042 4.042 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.272.356a2.342 2.342 0 0 0-.847.916 2.652 2.652 0 0 0-.287 1.23c0 .438.095.848.287 1.23.2.374.483.68.847.916.365.228.789.342 1.272.342.456 0 .848-.068 1.176-.205a4.49 4.49 0 0 0 .875-.506v1.135c-.137.137-.388.283-.752.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.733-.984 1.271-1.313.538-.328 1.153-.492 1.846-.492Zm6.713 0c.392 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.121V94h-1.121v-1.162a3.355 3.355 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.035 3.035 0 0 1-1.599-.437 3.32 3.32 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.106 3.106 0 0 1 1.189-1.258 3.208 3.208 0 0 1 1.682-.45Zm.205 1.094c-.492 0-.912.123-1.258.37a2.506 2.506 0 0 0-.807.956 2.86 2.86 0 0 0-.273 1.244c0 .438.091.843.273 1.217.183.365.438.656.766.875.337.219.725.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.52.78-.902.191-.392.282-.83.273-1.313l-.014-1.312a3.535 3.535 0 0 0-.916-.834c-.319-.2-.688-.3-1.107-.3Zm6.603-.957v1.08c.146-.182.333-.364.561-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192a2.6 2.6 0 0 1 1.271.315c.383.2.689.51.916.93.228.41.342.93.342 1.558V94h-1.121l-.014-4.06c0-.593-.132-1.044-.396-1.354-.255-.31-.652-.465-1.189-.465-.365 0-.73.137-1.094.41-.356.265-.67.575-.944.93V94h-1.121v-6.836h1.121Zm14.848-2.324 4.279 9.16h-1.476l-.957-2.188h-4.293L409.828 94h-1.476l4.279-9.16h.615Zm-.287 2.078-1.654 3.732h3.281l-1.627-3.732Zm9.338.11c.592 0 1.126.145 1.599.437.484.282.866.683 1.149 1.203.292.51.437 1.112.437 1.805 0 .747-.145 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.089 3.089 0 0 1-1.681.464c-.392 0-.793-.105-1.204-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V87.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.093c-.41 0-.784.105-1.121.315-.328.21-.588.5-.779.874-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383.347-.255.611-.583.793-.984.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.15 2.15 0 0 0-.766-.847c-.328-.21-.715-.315-1.162-.315Zm8.682-1.094a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.291.51.437 1.112.437 1.805 0 .747-.146 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.392 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V87.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.315-.328.21-.588.5-.779.874-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383a2.47 2.47 0 0 0 .793-.984c.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.157 2.157 0 0 0-.766-.847c-.328-.21-.715-.315-1.162-.315Zm6.33-.957v1.367c.264-.456.583-.82.957-1.094.374-.273.757-.41 1.149-.41.264 0 .501.046.711.137v1.299a1.704 1.704 0 0 0-.875-.26c-.465 0-.844.164-1.135.492-.283.328-.552.72-.807 1.176V94h-1.121v-6.836h1.121Zm7.342-.137c.693 0 1.308.164 1.846.492.537.329.957.766 1.257 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.3.538-.72.97-1.257 1.299-.538.328-1.153.492-1.846.492-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.733-.984 1.271-1.313.538-.328 1.153-.492 1.846-.492Zm0 1.094c-.483 0-.907.119-1.272.356a2.342 2.342 0 0 0-.847.916 2.652 2.652 0 0 0-.287 1.23c0 .438.095.848.287 1.23.2.374.483.68.847.916.365.228.789.342 1.272.342.492 0 .916-.114 1.271-.342.365-.236.643-.542.834-.916.201-.382.301-.792.301-1.23 0-.447-.1-.857-.301-1.23a2.239 2.239 0 0 0-.834-.916c-.355-.237-.779-.356-1.271-.356Zm11.17-.957L452.252 94h-.697l-3.076-6.836h1.339l2.065 5.031 2.242-5.03h1.34Zm4.047-.137c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.725.273 1.162.273.492 0 .953-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.882 1.882 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm12.181-1.094c.693 0 1.308.164 1.846.492.538.329.957.766 1.258 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.97-1.258 1.299-.538.328-1.153.492-1.846.492-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.734-.984 1.272-1.313.537-.328 1.153-.492 1.845-.492Zm0 1.094c-.483 0-.907.119-1.271.356a2.344 2.344 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.201.374.483.68.848.916.364.228.788.342 1.271.342.493 0 .916-.114 1.272-.342.364-.236.642-.542.834-.916.2-.382.301-.792.301-1.23 0-.447-.101-.857-.301-1.23a2.253 2.253 0 0 0-.834-.916c-.356-.237-.779-.356-1.272-.356Zm6.536-.957v1.367c.264-.456.583-.82.957-1.094.373-.273.756-.41 1.148-.41.264 0 .501.046.711.137v1.299a1.701 1.701 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V94h-1.122v-6.836h1.122Zm12.701-2.53c.665 0 1.207.092 1.627.274.428.183.802.42 1.121.711v1.354a26.966 26.966 0 0 0-.684-.479 3.94 3.94 0 0 0-.875-.451c-.328-.137-.724-.205-1.189-.205-.684 0-1.295.155-1.832.465-.538.31-.962.738-1.272 1.285-.31.538-.465 1.148-.465 1.832 0 .683.155 1.294.465 1.832.31.538.734.966 1.272 1.285.537.31 1.148.465 1.832.465.702 0 1.299-.114 1.791-.342a6.754 6.754 0 0 0 1.23-.724v1.23c-.319.283-.738.529-1.258.738-.51.2-1.098.301-1.763.301a4.872 4.872 0 0 1-1.914-.37 4.95 4.95 0 0 1-1.532-1.038 4.805 4.805 0 0 1-1.025-1.518 4.892 4.892 0 0 1-.355-1.86c0-.655.118-1.27.355-1.845a4.76 4.76 0 0 1 2.557-2.557 4.72 4.72 0 0 1 1.914-.382Zm7.683 2.393c.392 0 .789.096 1.19.287.41.183.761.438 1.052.766v-.916h1.122V94h-1.122v-1.162c-.237.365-.56.684-.97.957-.401.273-.862.41-1.381.41a3.039 3.039 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.109 3.109 0 0 1 1.19-1.258 3.202 3.202 0 0 1 1.681-.45Zm.205 1.094c-.492 0-.911.123-1.257.37a2.489 2.489 0 0 0-.807.956 2.86 2.86 0 0 0-.274 1.244c0 .438.092.843.274 1.217.182.365.437.656.766.875.337.219.724.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.52.779-.902a2.82 2.82 0 0 0 .273-1.313l-.013-1.312a3.55 3.55 0 0 0-.916-.834c-.319-.2-.688-.3-1.108-.3Zm6.604-.957v1.08c.146-.182.333-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.383.2.688.51.916.93.228.41.342.93.342 1.558V94h-1.121l-.014-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V94h-1.121v-6.836h1.121Zm9.967-.137c.501 0 .934.082 1.299.246.364.155.615.297.751.424v1.135a4.018 4.018 0 0 0-.875-.492c-.328-.146-.72-.219-1.175-.219-.483 0-.907.119-1.272.356a2.342 2.342 0 0 0-.847.916 2.652 2.652 0 0 0-.288 1.23c0 .438.096.848.288 1.23.2.374.483.68.847.916.365.228.789.342 1.272.342.455 0 .847-.068 1.175-.205a4.46 4.46 0 0 0 .875-.506v1.135c-.136.137-.387.283-.751.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.617 3.617 0 0 1-1.272-1.299 3.664 3.664 0 0 1-.451-1.791c0-.647.151-1.244.451-1.791.31-.547.734-.984 1.272-1.313.538-.328 1.153-.492 1.846-.492Zm6.713 0c.701 0 1.285.146 1.75.438.464.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.725.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.885 2.885 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.163-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.566 0-1.03.192-1.395.574-.365.374-.592.83-.684 1.368h4.116c-.046-.447-.174-.812-.383-1.094a1.882 1.882 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm6.111-3.965V94h-1.121v-9.844h1.121Z"}),u.createElement("circle",{cx:652,cy:126,r:5,fill:"#6C65E5",stroke:"#F2F2F5",strokeWidth:2}),u.createElement("path",{stroke:"#6C65E5",strokeLinecap:"round",strokeWidth:1.5,d:"M652 126V76"}),u.createElement("path",{fill:"#615BC2",d:"M568.349 33.813v5.564c0 .793-.169 1.476-.506 2.05a3.34 3.34 0 0 1-1.34 1.3c-.565.3-1.208.45-1.928.45-.711 0-1.353-.15-1.928-.45a3.43 3.43 0 0 1-1.353-1.3c-.328-.574-.492-1.257-.492-2.05v-5.565h1.23v5.524c0 .62.114 1.121.342 1.504.237.383.547.66.93.834.392.164.815.246 1.271.246.456-.01.875-.096 1.258-.26.392-.173.702-.446.93-.82.237-.383.355-.884.355-1.504v-5.523h1.231Zm4.566 2.214c.401 0 .775.06 1.121.178.346.11.597.223.752.342v1.203a3.548 3.548 0 0 0-.779-.424 2.61 2.61 0 0 0-1.012-.205c-.428 0-.752.1-.971.3-.209.201-.314.411-.314.63 0 .173.059.35.178.533.127.173.346.314.656.424l1.148.41c.447.155.78.378.998.67.219.292.329.633.329 1.025 0 .383-.11.734-.329 1.053a2.217 2.217 0 0 1-.888.766c-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.073 5.073 0 0 1-.766-.232 3.571 3.571 0 0 1-.506-.26V41.4c.128.092.306.196.534.315.237.11.487.205.752.287.264.073.51.11.738.11.428 0 .765-.096 1.012-.288.255-.191.382-.428.382-.71a.611.611 0 0 0-.259-.52c-.164-.128-.406-.25-.725-.37l-1.012-.368c-.528-.201-.879-.452-1.052-.753-.174-.31-.26-.66-.26-1.052 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574Zm6.631 0c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.21.32.483.575.82.766.337.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.735 2.735 0 0 1-.575.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.191-1.395.574-.364.374-.592.83-.683 1.367h4.115c-.046-.446-.173-.81-.383-1.093a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm6.111-.957v1.367a3.53 3.53 0 0 1 .957-1.093c.374-.274.757-.41 1.149-.41.264 0 .501.045.711.136v1.299a1.704 1.704 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.283.328-.552.72-.807 1.176V43h-1.121v-6.836h1.121Zm17.322 0L600.587 43h-.697l-1.873-4.826L596.144 43h-.698l-2.392-6.836h1.34l1.517 4.799 1.791-4.799h.629l1.791 4.799 1.518-4.799h1.339Zm2.461-3.281c.265 0 .484.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.847.847 0 0 1-.657.287.887.887 0 0 1-.669-.287.93.93 0 0 1-.26-.642.9.9 0 0 1 .26-.643.887.887 0 0 1 .669-.287Zm.698 3.281V43h-1.121v-5.783h-1.08v-1.053h2.201Zm4.306-1.969v1.97h1.996v1.052h-1.996v4.006c0 .282.073.505.219.67.146.164.369.246.67.246a2.1 2.1 0 0 0 .684-.096c.182-.073.341-.15.478-.233v.917c-.182.145-.378.26-.588.341-.2.092-.474.137-.82.137-.583 0-1.025-.173-1.326-.52-.292-.355-.438-.824-.438-1.408v-4.06h-1.312v-.328c.446-.2.82-.529 1.121-.985.301-.465.565-1.034.793-1.709h.519Zm7.383 1.832c.465 0 .889.105 1.272.315.382.2.688.51.916.93.228.41.341.93.341 1.558V43h-1.121l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V43h-1.121v-9.844h1.121v4.088c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192Zm12.223 0a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.292.51.437 1.112.437 1.805 0 .747-.145 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.391 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V36.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.314-.328.21-.588.502-.779.875-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383.347-.255.611-.583.793-.984.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.15 2.15 0 0 0-.766-.848c-.328-.21-.715-.314-1.162-.314Zm6.33-.957v1.367c.264-.456.583-.82.957-1.093.374-.274.757-.41 1.149-.41.264 0 .501.045.711.136v1.299a1.704 1.704 0 0 0-.875-.26c-.465 0-.844.164-1.135.492-.283.328-.552.72-.807 1.176V43h-1.121v-6.836h1.121Zm7.342-.137c.693 0 1.308.164 1.846.492.537.329.957.766 1.257 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.3.538-.72.97-1.257 1.299-.538.328-1.153.492-1.846.492-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.733-.984 1.271-1.313.538-.328 1.153-.492 1.846-.492Zm0 1.094c-.483 0-.907.119-1.272.356a2.342 2.342 0 0 0-.847.916 2.652 2.652 0 0 0-.287 1.23c0 .438.095.848.287 1.23.2.374.483.68.847.916.365.228.789.342 1.272.342.492 0 .916-.114 1.271-.341.365-.237.643-.543.834-.917.201-.382.301-.793.301-1.23 0-.447-.1-.857-.301-1.23a2.239 2.239 0 0 0-.834-.916c-.355-.237-.779-.356-1.271-.356Zm8.887-1.094a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.291.51.437 1.112.437 1.805 0 .747-.146 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.392 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V36.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.314-.328.21-.588.502-.779.875-.183.365-.274.793-.274 1.286l.014 1.312c.291.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.492 0 .912-.127 1.258-.383a2.47 2.47 0 0 0 .793-.984 2.98 2.98 0 0 0 .287-1.271 2.52 2.52 0 0 0-.273-1.19 2.157 2.157 0 0 0-.766-.848c-.328-.21-.715-.314-1.162-.314Zm8.025-1.094c.702 0 1.285.146 1.75.438.465.291.812.688 1.039 1.19.237.5.356 1.066.356 1.695v.67h-5.25c.055.382.187.733.396 1.052.21.32.483.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.752 2.752 0 0 1-.574.492c-.246.164-.533.301-.862.41a2.88 2.88 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.606 3.606 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.452-1.791c0-.647.142-1.244.424-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.115c-.045-.446-.173-.81-.382-1.093a1.878 1.878 0 0 0-.739-.63 2.021 2.021 0 0 0-.916-.218Zm6.112-.957v1.367c.264-.456.583-.82.957-1.093.373-.274.756-.41 1.148-.41.264 0 .501.045.711.136v1.299a1.701 1.701 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V43h-1.121v-6.836h1.121Zm11.826-.137a2.99 2.99 0 0 1 1.599.438c.484.282.866.683 1.149 1.203.292.51.437 1.112.437 1.805 0 .747-.145 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.391 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V36.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.314-.328.21-.588.502-.779.875-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383.347-.255.611-.583.793-.984.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.15 2.15 0 0 0-.766-.848c-.328-.21-.715-.314-1.162-.314Zm8.025-1.094c.702 0 1.286.146 1.75.438a2.69 2.69 0 0 1 1.04 1.19c.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.396 1.052.21.32.484.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.885 2.885 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.029.191-1.394.574-.365.374-.593.83-.684 1.367h4.116c-.046-.446-.174-.81-.383-1.093a1.878 1.878 0 0 0-.739-.63 2.021 2.021 0 0 0-.916-.218Zm6.112-.957v1.367c.264-.456.583-.82.957-1.093.374-.274.756-.41 1.148-.41.265 0 .502.045.711.136v1.299a1.698 1.698 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V43h-1.121v-6.836h1.121Zm5.373 0v.875c.219-.246.497-.474.834-.684.346-.218.752-.328 1.217-.328.492 0 .952.119 1.38.356.429.228.757.574.985 1.039a5.844 5.844 0 0 1 1.039-.984c.374-.274.811-.41 1.312-.41.465 0 .898.104 1.299.314.41.2.739.51.985.93.255.41.382.93.382 1.558V43h-1.121l-.013-4.06c0-.593-.155-1.044-.465-1.354-.301-.31-.72-.465-1.258-.465-.392 0-.734.123-1.025.37-.292.245-.57.532-.834.86V43h-1.121l-.014-4.06c0-.593-.155-1.044-.465-1.354-.301-.31-.72-.465-1.258-.465-.373 0-.715.11-1.025.328a4.535 4.535 0 0 0-.834.793V43h-1.121v-6.836h1.121Zm12.646-3.281c.265 0 .483.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.849.849 0 0 1-.657.287.891.891 0 0 1-.67-.287.934.934 0 0 1-.259-.642c0-.247.086-.46.259-.643a.891.891 0 0 1 .67-.287Zm.698 3.281V43h-1.121v-5.783h-1.081v-1.053h2.202Zm4.457-.137c.401 0 .774.06 1.121.178.346.11.597.223.752.342v1.203a3.558 3.558 0 0 0-.78-.424 2.605 2.605 0 0 0-1.011-.205c-.429 0-.752.1-.971.3-.21.201-.314.411-.314.63 0 .173.059.35.177.533.128.173.347.314.656.424l1.149.41c.447.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.373.182-.806.273-1.299.273-.264 0-.542-.036-.834-.11a5.095 5.095 0 0 1-.765-.232 3.516 3.516 0 0 1-.506-.26V41.4c.128.092.305.196.533.315.237.11.488.205.752.287.264.073.511.11.738.11.429 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.405-.25-.724-.37l-1.012-.368c-.529-.201-.88-.452-1.053-.753-.173-.31-.26-.66-.26-1.052 0-.584.219-1.067.657-1.45.437-.382 1.02-.574 1.75-.574Zm5.851 0c.401 0 .775.06 1.121.178.347.11.597.223.752.342v1.203a3.548 3.548 0 0 0-.779-.424 2.606 2.606 0 0 0-1.012-.205c-.428 0-.752.1-.97.3-.21.201-.315.411-.315.63 0 .173.059.35.178.533.127.173.346.314.656.424l1.148.41c.447.155.78.378.999.67.218.292.328.633.328 1.025 0 .383-.11.734-.328 1.053-.21.319-.506.574-.889.766-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.109 5.109 0 0 1-.766-.232 3.548 3.548 0 0 1-.505-.26V41.4c.127.092.305.196.533.315.237.11.487.205.752.287.264.073.51.11.738.11.428 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.406-.25-.725-.37l-1.012-.368c-.528-.201-.879-.452-1.052-.753-.173-.31-.26-.66-.26-1.052 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574Zm4.908-3.144c.265 0 .483.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.849.849 0 0 1-.657.287.891.891 0 0 1-.67-.287.934.934 0 0 1-.259-.642c0-.247.086-.46.259-.643a.891.891 0 0 1 .67-.287Zm.698 3.281V43h-1.121v-5.783h-1.081v-1.053h2.202Zm5.509-.137c.693 0 1.308.164 1.846.492.538.329.957.766 1.258 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.97-1.258 1.299-.538.328-1.153.492-1.846.492-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.734-.984 1.272-1.313.537-.328 1.153-.492 1.845-.492Zm0 1.094a2.28 2.28 0 0 0-1.271.356 2.344 2.344 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.201.374.483.68.848.916.365.228.788.342 1.271.342.493 0 .916-.114 1.272-.341.364-.237.642-.543.834-.917.2-.382.301-.793.301-1.23 0-.447-.101-.857-.301-1.23a2.253 2.253 0 0 0-.834-.916c-.356-.237-.779-.356-1.272-.356Zm6.536-.957v1.08c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192.465 0 .889.105 1.272.315.382.2.688.51.916.93.227.41.341.93.341 1.558V43h-1.121l-.013-4.06c0-.593-.133-1.044-.397-1.354-.255-.31-.652-.465-1.189-.465-.365 0-.729.137-1.094.41-.356.265-.67.575-.943.93V43h-1.122v-6.836h1.122ZM595.2 56.027c.501 0 .934.082 1.299.246.365.155.615.297.752.424v1.135a4.042 4.042 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.271.356a2.344 2.344 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.201.374.483.68.848.916.364.228.788.342 1.271.342.456 0 .848-.068 1.176-.205a4.49 4.49 0 0 0 .875-.506v1.135c-.137.137-.387.283-.752.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.59 3.59 0 0 1 1.271-1.313c.538-.328 1.153-.492 1.846-.492Zm6.713 0c.392 0 .788.096 1.19.288.41.182.761.437 1.052.765v-.916h1.121V63h-1.121v-1.162c-.237.364-.56.684-.97.957-.401.273-.862.41-1.381.41a3.036 3.036 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.113 3.113 0 0 1 1.189-1.258 3.208 3.208 0 0 1 1.682-.45Zm.205 1.094c-.492 0-.911.123-1.258.37a2.495 2.495 0 0 0-.806.956 2.847 2.847 0 0 0-.274 1.244c0 .438.091.843.274 1.217.182.365.437.657.765.875a2.09 2.09 0 0 0 1.162.328c.42 0 .793-.109 1.122-.328.328-.218.587-.52.779-.902.191-.392.282-.83.273-1.313l-.013-1.312a3.55 3.55 0 0 0-.916-.834 2.04 2.04 0 0 0-1.108-.3Zm6.604-.957v1.08c.146-.182.332-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.382.2.688.51.916.93.228.41.341.93.341 1.558V63h-1.121l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V63h-1.121v-6.836h1.121Zm13.795-.137c.392 0 .788.096 1.189.288.41.182.761.437 1.053.765v-.916h1.121V63h-1.121v-1.162a3.355 3.355 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.035 3.035 0 0 1-1.599-.437 3.32 3.32 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.106 3.106 0 0 1 1.189-1.258 3.205 3.205 0 0 1 1.682-.45Zm.205 1.094c-.493 0-.912.123-1.258.37a2.506 2.506 0 0 0-.807.956 2.86 2.86 0 0 0-.273 1.244c0 .438.091.843.273 1.217.183.365.438.657.766.875.337.219.724.328 1.162.328.419 0 .793-.109 1.121-.328.328-.218.588-.52.779-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.535 3.535 0 0 0-.916-.834c-.319-.2-.688-.3-1.107-.3Zm8.955-1.094a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.291.51.437 1.112.437 1.805 0 .747-.146 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.392 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V56.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.314-.328.21-.588.502-.779.875-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.492 0 .912-.127 1.258-.383a2.47 2.47 0 0 0 .793-.984 2.98 2.98 0 0 0 .287-1.271 2.52 2.52 0 0 0-.273-1.19 2.157 2.157 0 0 0-.766-.848c-.328-.21-.715-.314-1.162-.314Zm8.682-1.094a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.291.51.437 1.112.437 1.805 0 .747-.146 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.392 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V56.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.314-.328.21-.588.502-.779.875-.183.365-.274.793-.274 1.286l.014 1.312c.291.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.492 0 .912-.127 1.258-.383a2.47 2.47 0 0 0 .793-.984 2.98 2.98 0 0 0 .287-1.271 2.52 2.52 0 0 0-.273-1.19 2.157 2.157 0 0 0-.766-.848c-.328-.21-.715-.314-1.162-.314Zm6.33-3.965V63h-1.121v-9.844h1.121Zm2.707 3.008 2.393 5.031 2.324-5.03h1.34l-5.032 10.116h-1.298l1.955-3.691-3.022-6.426h1.34Zm14.615-.137c.502 0 .935.082 1.299.246.365.155.615.297.752.424v1.135a4.042 4.042 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.271.356a2.344 2.344 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.201.374.483.68.848.916.364.228.788.342 1.271.342.456 0 .848-.068 1.176-.205a4.49 4.49 0 0 0 .875-.506v1.135c-.137.137-.387.283-.752.438-.364.155-.797.232-1.299.232-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.734-.984 1.272-1.313.537-.328 1.153-.492 1.845-.492Zm7.246 0c.465 0 .889.105 1.272.315.383.2.688.51.916.93.228.41.342.93.342 1.558V63h-1.121l-.014-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V63h-1.121v-9.844h1.121v4.088c.146-.182.333-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192Zm7.465 0c.392 0 .789.096 1.19.288.41.182.761.437 1.052.765v-.916h1.121V63h-1.121v-1.162c-.237.364-.56.684-.97.957-.401.273-.862.41-1.381.41a3.039 3.039 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.109 3.109 0 0 1 1.19-1.258 3.202 3.202 0 0 1 1.681-.45Zm.205 1.094c-.492 0-.911.123-1.258.37a2.495 2.495 0 0 0-.806.956 2.86 2.86 0 0 0-.274 1.244c0 .438.092.843.274 1.217.182.365.437.657.765.875.338.219.725.328 1.163.328.419 0 .793-.109 1.121-.328.328-.218.588-.52.779-.902a2.82 2.82 0 0 0 .273-1.313l-.013-1.312a3.55 3.55 0 0 0-.916-.834c-.319-.2-.688-.3-1.108-.3Zm6.604-.957v1.08c.146-.182.332-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.383.2.688.51.916.93.228.41.342.93.342 1.558V63h-1.121l-.014-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V63h-1.121v-6.836h1.121Zm9.693-.137c.392 0 .789.096 1.19.288.41.182.761.437 1.052.765v-.916h1.121v6.7c0 .81-.164 1.485-.492 2.023a3.087 3.087 0 0 1-1.312 1.203 4.06 4.06 0 0 1-1.791.396c-.42 0-.78-.05-1.08-.15a2.726 2.726 0 0 1-.752-.355c-.21-.137-.401-.27-.575-.397v-1.203c.137.1.315.228.534.383.228.164.496.31.806.437.319.128.675.192 1.067.192.446 0 .857-.082 1.23-.246.374-.165.675-.406.903-.725.227-.32.341-.702.341-1.149v-1.435c-.237.364-.56.684-.97.957-.401.273-.862.41-1.381.41a3.036 3.036 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.109 3.109 0 0 1 1.19-1.258 3.202 3.202 0 0 1 1.681-.45Zm.205 1.108c-.492 0-.911.123-1.258.369a2.39 2.39 0 0 0-.806.943 2.847 2.847 0 0 0-.274 1.244c0 .438.091.839.274 1.203.182.365.437.657.765.876.338.218.725.328 1.163.328.419 0 .792-.11 1.121-.328.328-.22.588-.52.779-.903.191-.383.282-.816.273-1.299l-.013-1.312a3.334 3.334 0 0 0-.916-.82c-.319-.201-.688-.301-1.108-.301Zm8.299-1.108c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.356 1.066.356 1.695v.67h-5.25c.054.382.186.733.396 1.052.21.32.483.575.82.766a2.41 2.41 0 0 0 1.163.273c.492 0 .952-.123 1.38-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.752 2.752 0 0 1-.574.492c-.247.164-.534.301-.862.41a2.88 2.88 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.617 3.617 0 0 1-1.272-1.299 3.664 3.664 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.283-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.115c-.045-.446-.173-.81-.383-1.093a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm7.027-1.094c.401 0 .775.06 1.122.178.346.11.597.223.751.342v1.203a3.548 3.548 0 0 0-.779-.424 2.606 2.606 0 0 0-1.012-.205c-.428 0-.752.1-.97.3-.21.201-.315.411-.315.63 0 .173.06.35.178.533.128.173.346.314.656.424l1.149.41c.446.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.095 5.095 0 0 1-.765-.232 3.516 3.516 0 0 1-.506-.26V61.4c.127.092.305.196.533.315.237.11.488.205.752.287.264.073.51.11.738.11.429 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.406-.25-.725-.37l-1.011-.368c-.529-.201-.88-.452-1.053-.753-.173-.31-.26-.66-.26-1.052 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574ZM554.439 234.84l4.28 9.16h-1.477l-.957-2.188h-4.293l-.971 2.188h-1.476l4.279-9.16h.615Zm-.287 2.078-1.654 3.732h3.281l-1.627-3.732Zm11.457.246v4.047c0 .601-.127 1.121-.382 1.559a2.65 2.65 0 0 1-1.039 1.011c-.438.237-.93.356-1.477.356a3.052 3.052 0 0 1-1.477-.356 2.65 2.65 0 0 1-1.039-1.011c-.255-.438-.383-.958-.383-1.559v-4.047h1.163v4.047c0 .592.173 1.048.519 1.367a1.8 1.8 0 0 0 1.217.465c.456 0 .857-.155 1.203-.465.356-.319.533-.775.533-1.367v-4.047h1.162Zm4.006-1.969v1.969h1.996v1.053h-1.996v4.006c0 .282.073.506.219.67.146.164.369.246.67.246.273 0 .501-.032.684-.096.182-.073.341-.15.478-.232v.916a2.26 2.26 0 0 1-.588.341c-.2.092-.474.137-.82.137-.584 0-1.026-.173-1.326-.519-.292-.356-.438-.825-.438-1.409v-4.06h-1.312v-.328c.446-.201.82-.529 1.121-.985.301-.465.565-1.034.793-1.709h.519Zm7.123 1.832c.693 0 1.308.164 1.846.493.538.328.957.765 1.258 1.312a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.971-1.258 1.299-.538.328-1.153.492-1.846.492-.692 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.58 3.58 0 0 1 1.272-1.312c.537-.329 1.153-.493 1.845-.493Zm0 1.094c-.483 0-.907.119-1.271.356a2.337 2.337 0 0 0-.848.916 2.66 2.66 0 0 0-.287 1.23c0 .438.096.848.287 1.231.201.373.483.679.848.916.364.227.788.341 1.271.341.492 0 .916-.114 1.272-.341a2.38 2.38 0 0 0 .834-.916c.2-.383.301-.793.301-1.231 0-.447-.101-.857-.301-1.23a2.246 2.246 0 0 0-.834-.916c-.356-.237-.78-.356-1.272-.356Zm6.535-.957v.875c.219-.246.497-.474.834-.684.347-.218.752-.328 1.217-.328.492 0 .953.119 1.381.356.428.228.757.574.984 1.039a5.825 5.825 0 0 1 1.04-.984 2.157 2.157 0 0 1 1.312-.411c.465 0 .898.105 1.299.315.41.2.738.51.984.929.255.411.383.93.383 1.559V244h-1.121l-.014-4.061c0-.592-.155-1.043-.465-1.353-.3-.31-.72-.465-1.257-.465-.392 0-.734.123-1.026.369a6.287 6.287 0 0 0-.834.862V244h-1.121l-.014-4.061c0-.592-.154-1.043-.464-1.353-.301-.31-.72-.465-1.258-.465-.374 0-.716.109-1.026.328-.3.219-.578.483-.834.793V244h-1.121v-6.836h1.121Zm14.37-.137c.392 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.121V244h-1.121v-1.162a3.37 3.37 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.04 3.04 0 0 1-1.599-.437 3.332 3.332 0 0 1-1.163-1.245c-.282-.528-.423-1.139-.423-1.832 0-.756.141-1.408.423-1.955a3.107 3.107 0 0 1 1.19-1.257 3.204 3.204 0 0 1 1.682-.452Zm.205 1.094c-.493 0-.912.123-1.258.369a2.497 2.497 0 0 0-.807.957 2.862 2.862 0 0 0-.273 1.244c0 .438.091.844.273 1.217.182.365.438.656.766.875.337.219.724.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.519.779-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.517 3.517 0 0 0-.916-.834 2.032 2.032 0 0 0-1.107-.301Zm7.369-2.926v1.969h1.996v1.053h-1.996v4.006c0 .282.073.506.219.67.145.164.369.246.669.246.274 0 .502-.032.684-.096.182-.073.342-.15.479-.232v.916a2.293 2.293 0 0 1-.588.341c-.201.092-.474.137-.821.137-.583 0-1.025-.173-1.326-.519-.291-.356-.437-.825-.437-1.409v-4.06h-1.313v-.328c.447-.201.821-.529 1.121-.985.301-.465.565-1.034.793-1.709h.52Zm5.127-1.312c.264 0 .483.096.656.287a.879.879 0 0 1 .273.642.91.91 0 0 1-.273.643.848.848 0 0 1-.656.287.89.89 0 0 1-.67-.287.936.936 0 0 1-.26-.643c0-.246.087-.46.26-.642a.89.89 0 0 1 .67-.287Zm.697 3.281V244h-1.121v-5.783h-1.08v-1.053h2.201Zm5.51-.137c.501 0 .934.082 1.299.246.364.155.615.297.752.424v1.135a4.091 4.091 0 0 0-.875-.492c-.329-.146-.72-.219-1.176-.219-.483 0-.907.119-1.272.356a2.335 2.335 0 0 0-.847.916 2.647 2.647 0 0 0-.287 1.23c0 .438.095.848.287 1.231.2.373.483.679.847.916.365.227.789.341 1.272.341.456 0 .847-.068 1.176-.205a4.5 4.5 0 0 0 .875-.506v1.135c-.137.137-.388.283-.752.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.603 3.603 0 0 1-1.271-1.299 3.655 3.655 0 0 1-.452-1.791c0-.647.151-1.244.452-1.791a3.57 3.57 0 0 1 1.271-1.312c.538-.329 1.153-.493 1.846-.493Zm6.713 0c.392 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.121V244h-1.121v-1.162a3.37 3.37 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.04 3.04 0 0 1-1.599-.437 3.322 3.322 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.099 3.099 0 0 1 1.189-1.257 3.204 3.204 0 0 1 1.682-.452Zm.205 1.094c-.492 0-.912.123-1.258.369a2.505 2.505 0 0 0-.807.957 2.862 2.862 0 0 0-.273 1.244c0 .438.091.844.273 1.217.183.365.438.656.766.875.337.219.725.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.519.779-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.517 3.517 0 0 0-.916-.834 2.032 2.032 0 0 0-1.107-.301Zm6.603-3.965V244h-1.121v-9.844h1.121Zm3.446 0V244h-1.122v-9.844h1.122Zm2.707 3.008 2.392 5.031 2.324-5.031h1.34l-5.031 10.117h-1.299l1.955-3.691-3.021-6.426h1.34Zm14.341-.137c.392 0 .789.096 1.19.287.41.183.761.438 1.053.766v-.916h1.121v6.699c0 .811-.164 1.486-.492 2.024a3.098 3.098 0 0 1-1.313 1.203 4.066 4.066 0 0 1-1.791.396c-.419 0-.779-.05-1.08-.15a2.731 2.731 0 0 1-.752-.356c-.21-.136-.401-.268-.574-.396v-1.203c.136.1.314.228.533.383.228.164.497.31.807.437.319.128.674.192 1.066.192.447 0 .857-.082 1.23-.247.374-.164.675-.405.903-.724.228-.319.342-.702.342-1.149v-1.435a3.37 3.37 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.044 3.044 0 0 1-1.6-.437 3.33 3.33 0 0 1-1.162-1.245c-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.1 3.1 0 0 1 1.19-1.257 3.203 3.203 0 0 1 1.681-.452Zm.205 1.108c-.492 0-.911.123-1.257.369a2.382 2.382 0 0 0-.807.943 2.862 2.862 0 0 0-.273 1.244c0 .438.091.839.273 1.204.182.364.438.656.766.875.337.218.724.328 1.162.328.419 0 .793-.11 1.121-.328.328-.219.588-.52.779-.903.192-.383.283-.816.274-1.299l-.014-1.312a3.316 3.316 0 0 0-.916-.82 2.033 2.033 0 0 0-1.108-.301Zm8.573-1.108c.692 0 1.308.164 1.845.493.538.328.957.765 1.258 1.312a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.971-1.258 1.299-.537.328-1.153.492-1.845.492-.693 0-1.308-.164-1.846-.492a3.603 3.603 0 0 1-1.271-1.299 3.655 3.655 0 0 1-.452-1.791c0-.647.151-1.244.452-1.791a3.57 3.57 0 0 1 1.271-1.312c.538-.329 1.153-.493 1.846-.493Zm0 1.094c-.483 0-.907.119-1.272.356a2.335 2.335 0 0 0-.847.916 2.647 2.647 0 0 0-.287 1.23c0 .438.095.848.287 1.231.2.373.483.679.847.916.365.227.789.341 1.272.341.492 0 .916-.114 1.271-.341.365-.237.643-.543.834-.916.201-.383.301-.793.301-1.231 0-.447-.1-.857-.301-1.23a2.233 2.233 0 0 0-.834-.916c-.355-.237-.779-.356-1.271-.356Zm8.23-1.094c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.039 1.189c.237.502.356 1.067.356 1.696v.67h-5.25c.054.382.187.733.396 1.052.21.319.483.574.821.766.337.182.724.273 1.162.273a2.73 2.73 0 0 0 1.381-.369 5.205 5.205 0 0 0 1.08-.834l-.014 1.217a2.743 2.743 0 0 1-.574.492 3.57 3.57 0 0 1-.862.41 2.868 2.868 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.272-1.299 3.665 3.665 0 0 1-.451-1.791c0-.647.142-1.244.424-1.791a3.45 3.45 0 0 1 1.162-1.312 3.046 3.046 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.115c-.045-.446-.173-.811-.382-1.093a1.876 1.876 0 0 0-.739-.629 2.019 2.019 0 0 0-.916-.219Zm7.028-1.094c.401 0 .774.06 1.121.178.346.109.597.223.752.342v1.203a3.586 3.586 0 0 0-.78-.424 2.599 2.599 0 0 0-1.011-.205c-.429 0-.752.1-.971.301-.21.2-.315.41-.315.629 0 .173.06.351.178.533.128.173.347.314.656.424l1.149.41c.446.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.373.182-.806.273-1.299.273-.264 0-.542-.036-.834-.109a5.128 5.128 0 0 1-.765-.233 3.592 3.592 0 0 1-.506-.259V242.4c.128.092.305.196.533.315.237.109.488.205.752.287.264.073.511.109.738.109.429 0 .766-.095 1.012-.287.255-.191.383-.428.383-.711a.611.611 0 0 0-.26-.519c-.164-.128-.405-.251-.724-.369l-1.012-.37c-.529-.2-.88-.451-1.053-.751a2.124 2.124 0 0 1-.26-1.053c0-.584.219-1.067.657-1.449.437-.383 1.02-.575 1.75-.575Zm9.802-1.832v1.969h1.996v1.053h-1.996v4.006c0 .282.073.506.219.67.146.164.369.246.67.246.273 0 .501-.032.684-.096.182-.073.341-.15.478-.232v.916a2.26 2.26 0 0 1-.588.341c-.2.092-.474.137-.82.137-.583 0-1.026-.173-1.326-.519-.292-.356-.438-.825-.438-1.409v-4.06h-1.312v-.328c.446-.201.82-.529 1.121-.985.301-.465.565-1.034.793-1.709h.519Zm7.123 1.832c.693 0 1.308.164 1.846.493.538.328.957.765 1.258 1.312a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.971-1.258 1.299-.538.328-1.153.492-1.846.492-.692 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.58 3.58 0 0 1 1.272-1.312c.537-.329 1.153-.493 1.845-.493Zm0 1.094c-.483 0-.907.119-1.271.356a2.337 2.337 0 0 0-.848.916 2.66 2.66 0 0 0-.287 1.23c0 .438.096.848.287 1.231.201.373.483.679.848.916.364.227.788.341 1.271.341.493 0 .916-.114 1.272-.341a2.38 2.38 0 0 0 .834-.916c.2-.383.301-.793.301-1.231 0-.447-.101-.857-.301-1.23a2.246 2.246 0 0 0-.834-.916c-.356-.237-.779-.356-1.272-.356Zm13.864-3.486c.665 0 1.207.091 1.627.273a3.91 3.91 0 0 1 1.121.711v1.354a26.162 26.162 0 0 0-.684-.479 3.961 3.961 0 0 0-.875-.451c-.328-.137-.725-.205-1.189-.205-.684 0-1.295.155-1.832.465-.538.31-.962.738-1.272 1.285-.31.538-.465 1.148-.465 1.832 0 .684.155 1.294.465 1.832.31.538.734.966 1.272 1.285.537.31 1.148.465 1.832.465.701 0 1.298-.114 1.791-.342a6.76 6.76 0 0 0 1.23-.724v1.23c-.319.283-.738.529-1.258.738-.51.201-1.098.301-1.763.301a4.874 4.874 0 0 1-1.914-.369 4.954 4.954 0 0 1-1.532-1.039 4.804 4.804 0 0 1-1.025-1.518 4.89 4.89 0 0 1-.356-1.859c0-.656.119-1.272.356-1.846a4.749 4.749 0 0 1 2.557-2.556 4.708 4.708 0 0 1 1.914-.383Zm7.683 2.392c.392 0 .789.096 1.19.287.41.183.761.438 1.052.766v-.916h1.122V244h-1.122v-1.162c-.237.364-.56.683-.97.957-.401.273-.862.41-1.381.41a3.044 3.044 0 0 1-1.6-.437 3.33 3.33 0 0 1-1.162-1.245c-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.1 3.1 0 0 1 1.19-1.257 3.2 3.2 0 0 1 1.681-.452Zm.205 1.094c-.492 0-.911.123-1.258.369a2.494 2.494 0 0 0-.806.957 2.863 2.863 0 0 0-.274 1.244c0 .438.092.844.274 1.217.182.365.437.656.765.875a2.09 2.09 0 0 0 1.163.328c.419 0 .793-.109 1.121-.328.328-.219.588-.519.779-.902.191-.392.283-.83.273-1.313l-.013-1.312a3.533 3.533 0 0 0-.916-.834 2.033 2.033 0 0 0-1.108-.301Zm6.604-.957v1.08a3.61 3.61 0 0 1 .56-.547c.228-.191.483-.351.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.383.2.688.51.916.929.228.411.342.93.342 1.559V244h-1.121l-.014-4.061c0-.592-.132-1.043-.397-1.353-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41-.355.265-.67.574-.943.93V244h-1.121v-6.836h1.121Zm9.967-.137c.501 0 .934.082 1.298.246.365.155.616.297.752.424v1.135a4.043 4.043 0 0 0-.875-.492c-.328-.146-.72-.219-1.175-.219-.483 0-.907.119-1.272.356a2.345 2.345 0 0 0-.848.916 2.66 2.66 0 0 0-.287 1.23c0 .438.096.848.287 1.231.201.373.484.679.848.916.365.227.789.341 1.272.341.455 0 .847-.068 1.175-.205a4.44 4.44 0 0 0 .875-.506v1.135c-.136.137-.387.283-.752.438-.364.155-.797.232-1.298.232-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.272-1.299 3.665 3.665 0 0 1-.451-1.791c0-.647.151-1.244.451-1.791a3.58 3.58 0 0 1 1.272-1.312c.538-.329 1.153-.493 1.846-.493Zm6.712 0c.702 0 1.286.146 1.75.438.465.292.812.688 1.04 1.189.237.502.355 1.067.355 1.696v.67h-5.25c.055.382.187.733.397 1.052.209.319.483.574.82.766.337.182.724.273 1.162.273a2.73 2.73 0 0 0 1.381-.369 5.205 5.205 0 0 0 1.08-.834l-.014 1.217a2.717 2.717 0 0 1-.574.492 3.58 3.58 0 0 1-.861.41 2.874 2.874 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.611 3.611 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.163-1.312a3.04 3.04 0 0 1 1.708-.493Zm0 1.094c-.565 0-1.029.191-1.394.574-.365.374-.592.83-.684 1.367h4.116c-.046-.446-.174-.811-.383-1.093a1.88 1.88 0 0 0-.738-.629 2.023 2.023 0 0 0-.917-.219Zm6.112-3.965V244h-1.121v-9.844h1.121Zm3.445 0V244h-1.121v-9.844h1.121Zm5.141 2.871c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.039 1.189c.237.502.355 1.067.355 1.696v.67h-5.25c.055.382.187.733.397 1.052.209.319.483.574.82.766.337.182.725.273 1.162.273.492 0 .953-.123 1.381-.369a5.205 5.205 0 0 0 1.08-.834l-.014 1.217a2.717 2.717 0 0 1-.574.492 3.58 3.58 0 0 1-.861.41 2.87 2.87 0 0 1-1.012.178c-.693 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.312a3.044 3.044 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.395.574-.364.374-.592.83-.683 1.367h4.115c-.046-.446-.173-.811-.383-1.093a1.873 1.873 0 0 0-.738-.629 2.022 2.022 0 0 0-.916-.219Zm11.17-3.965V244h-1.121v-1.162a3.37 3.37 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.044 3.044 0 0 1-1.6-.437 3.33 3.33 0 0 1-1.162-1.245c-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.1 3.1 0 0 1 1.19-1.257 3.203 3.203 0 0 1 1.681-.452c.392 0 .789.096 1.19.287.41.183.761.438 1.053.766v-3.924h1.121Zm-3.159 3.992c-.492 0-.911.123-1.257.37a2.404 2.404 0 0 0-.807.929 2.862 2.862 0 0 0-.273 1.244c0 .438.091.844.273 1.217.182.365.438.656.766.875.337.219.724.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.519.779-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.316 3.316 0 0 0-.916-.82 2.106 2.106 0 0 0-1.108-.288Z"}),u.createElement("path",{fill:"#D11525",d:"M513.779 184.635c.666 0 1.208.091 1.627.273.429.182.802.419 1.121.711v1.354c-.2-.146-.428-.306-.683-.479a3.961 3.961 0 0 0-.875-.451c-.328-.137-.725-.205-1.19-.205-.683 0-1.294.155-1.832.465a3.38 3.38 0 0 0-1.271 1.285c-.31.538-.465 1.148-.465 1.832 0 .684.155 1.294.465 1.832.31.538.734.966 1.271 1.285.538.31 1.149.465 1.832.465.702 0 1.299-.114 1.791-.342a6.738 6.738 0 0 0 1.231-.724v1.23c-.319.283-.739.529-1.258.738-.51.201-1.098.301-1.764.301a4.88 4.88 0 0 1-1.914-.369 4.95 4.95 0 0 1-1.531-1.039 4.787 4.787 0 0 1-1.025-1.518 4.89 4.89 0 0 1-.356-1.859c0-.656.119-1.272.356-1.846a4.745 4.745 0 0 1 2.556-2.556 4.714 4.714 0 0 1 1.914-.383Zm8.217 2.392c.465 0 .889.105 1.272.315.382.2.688.51.916.929.227.411.341.93.341 1.559V194h-1.121l-.013-4.061c0-.592-.133-1.043-.397-1.353-.255-.31-.652-.465-1.189-.465-.365 0-.729.137-1.094.41-.356.265-.67.574-.943.93V194h-1.122v-9.844h1.122v4.088c.145-.182.332-.364.56-.547.228-.191.483-.351.766-.478a2.22 2.22 0 0 1 .902-.192Zm7.465 0c.392 0 .788.096 1.189.287.411.183.761.438 1.053.766v-.916h1.121V194h-1.121v-1.162c-.237.364-.56.683-.971.957-.401.273-.861.41-1.38.41a3.041 3.041 0 0 1-1.6-.437 3.33 3.33 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.105 3.105 0 0 1 1.189-1.257 3.206 3.206 0 0 1 1.682-.452Zm.205 1.094c-.492 0-.911.123-1.258.369a2.494 2.494 0 0 0-.806.957 2.849 2.849 0 0 0-.274 1.244c0 .438.091.844.274 1.217.182.365.437.656.765.875.337.219.725.328 1.162.328.42 0 .793-.109 1.121-.328.329-.219.588-.519.78-.902.191-.392.282-.83.273-1.313l-.014-1.312a3.501 3.501 0 0 0-.916-.834 2.032 2.032 0 0 0-1.107-.301Zm6.604-.957v1.08c.145-.182.332-.364.56-.547.228-.191.483-.351.766-.478a2.22 2.22 0 0 1 .902-.192c.465 0 .889.105 1.272.315.382.2.688.51.916.929.227.411.341.93.341 1.559V194h-1.121l-.013-4.061c0-.592-.133-1.043-.397-1.353-.255-.31-.652-.465-1.189-.465-.365 0-.73.137-1.094.41-.356.265-.67.574-.943.93V194h-1.122v-6.836h1.122Zm9.693-.137c.392 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.121v6.699c0 .811-.164 1.486-.492 2.024a3.092 3.092 0 0 1-1.313 1.203 4.06 4.06 0 0 1-1.791.396c-.419 0-.779-.05-1.08-.15a2.745 2.745 0 0 1-.752-.356 11.684 11.684 0 0 1-.574-.396v-1.203c.137.1.315.228.533.383.228.164.497.31.807.437.319.128.675.192 1.066.192.447 0 .857-.082 1.231-.247a2.14 2.14 0 0 0 .902-.724c.228-.319.342-.702.342-1.149v-1.435c-.237.364-.56.683-.971.957-.401.273-.861.41-1.38.41a3.041 3.041 0 0 1-1.6-.437 3.322 3.322 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.099 3.099 0 0 1 1.189-1.257 3.206 3.206 0 0 1 1.682-.452Zm.205 1.108c-.492 0-.911.123-1.258.369a2.388 2.388 0 0 0-.806.943 2.849 2.849 0 0 0-.274 1.244c0 .438.091.839.274 1.204.182.364.437.656.765.875.337.218.725.328 1.162.328.42 0 .793-.11 1.121-.328.328-.219.588-.52.78-.903.191-.383.282-.816.273-1.299l-.014-1.312a3.288 3.288 0 0 0-.916-.82 2.032 2.032 0 0 0-1.107-.301Zm8.299-1.108c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.039 1.189c.237.502.355 1.067.355 1.696v.67h-5.25c.055.382.187.733.397 1.052.209.319.483.574.82.766.337.182.725.273 1.162.273.492 0 .953-.123 1.381-.369a5.179 5.179 0 0 0 1.08-.834l-.013 1.217c-.128.155-.32.319-.575.492a3.58 3.58 0 0 1-.861.41 2.87 2.87 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.312a3.044 3.044 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.395.574-.364.374-.592.83-.683 1.367h4.115c-.046-.446-.173-.811-.383-1.093a1.873 1.873 0 0 0-.738-.629 2.022 2.022 0 0 0-.916-.219Zm7.027-1.094c.401 0 .775.06 1.121.178.347.109.597.223.752.342v1.203a3.552 3.552 0 0 0-.779-.424 2.6 2.6 0 0 0-1.012-.205c-.428 0-.752.1-.971.301-.209.2-.314.41-.314.629 0 .173.059.351.178.533.127.173.346.314.656.424l1.148.41c.447.155.78.378.998.67.219.292.329.633.329 1.025 0 .383-.11.734-.329 1.053a2.222 2.222 0 0 1-.888.766c-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.109a5.106 5.106 0 0 1-.766-.233 3.626 3.626 0 0 1-.505-.259V192.4c.127.092.305.196.533.315.237.109.487.205.752.287.264.073.51.109.738.109.428 0 .766-.095 1.012-.287.255-.191.382-.428.382-.711a.61.61 0 0 0-.259-.519c-.164-.128-.406-.251-.725-.369l-1.012-.37c-.528-.2-.879-.451-1.052-.751a2.113 2.113 0 0 1-.26-1.053c0-.584.219-1.067.656-1.449.438-.383 1.021-.575 1.75-.575Zm11.006 0c.501 0 .934.082 1.299.246.364.155.615.297.752.424v1.135a4.067 4.067 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.271.356a2.33 2.33 0 0 0-.848.916 2.647 2.647 0 0 0-.287 1.23c0 .438.095.848.287 1.231.2.373.483.679.848.916.364.227.788.341 1.271.341.456 0 .848-.068 1.176-.205a4.47 4.47 0 0 0 .875-.506v1.135c-.137.137-.388.283-.752.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.62 3.62 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.734-.984 1.271-1.312.538-.329 1.153-.493 1.846-.493Zm6.713 0c.392 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.121V194h-1.121v-1.162c-.237.364-.56.683-.971.957-.401.273-.861.41-1.38.41a3.041 3.041 0 0 1-1.6-.437 3.322 3.322 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.099 3.099 0 0 1 1.189-1.257 3.206 3.206 0 0 1 1.682-.452Zm.205 1.094c-.492 0-.911.123-1.258.369a2.494 2.494 0 0 0-.806.957 2.849 2.849 0 0 0-.274 1.244c0 .438.091.844.274 1.217.182.365.437.656.765.875.337.219.725.328 1.162.328.42 0 .793-.109 1.121-.328.328-.219.588-.519.78-.902.191-.392.282-.83.273-1.313l-.014-1.312a3.501 3.501 0 0 0-.916-.834 2.032 2.032 0 0 0-1.107-.301Zm6.603-.957v1.08a3.62 3.62 0 0 1 .561-.547c.228-.191.483-.351.766-.478a2.22 2.22 0 0 1 .902-.192c.465 0 .889.105 1.271.315.383.2.689.51.917.929.227.411.341.93.341 1.559V194h-1.121l-.013-4.061c0-.592-.133-1.043-.397-1.353-.255-.31-.652-.465-1.189-.465-.365 0-.73.137-1.094.41-.356.265-.67.574-.944.93V194H584.9v-6.836h1.121Zm9.967-.137c.502 0 .935.082 1.299.246.365.155.615.297.752.424v1.135a4.067 4.067 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.271.356a2.337 2.337 0 0 0-.848.916 2.66 2.66 0 0 0-.287 1.23c0 .438.096.848.287 1.231.201.373.483.679.848.916.364.227.788.341 1.271.341.456 0 .848-.068 1.176-.205a4.47 4.47 0 0 0 .875-.506v1.135c-.137.137-.387.283-.752.438-.364.155-.797.232-1.299.232-.692 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.58 3.58 0 0 1 1.272-1.312c.537-.329 1.153-.493 1.845-.493Zm6.713 0c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.039 1.189c.237.502.356 1.067.356 1.696v.67h-5.25c.054.382.187.733.396 1.052.21.319.483.574.82.766.338.182.725.273 1.163.273.492 0 .952-.123 1.38-.369a5.186 5.186 0 0 0 1.081-.834l-.014 1.217a2.743 2.743 0 0 1-.574.492 3.588 3.588 0 0 1-.862.41 2.868 2.868 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.272-1.299 3.665 3.665 0 0 1-.451-1.791c0-.647.142-1.244.424-1.791a3.45 3.45 0 0 1 1.162-1.312 3.044 3.044 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.115c-.045-.446-.173-.811-.383-1.093a1.867 1.867 0 0 0-.738-.629 2.019 2.019 0 0 0-.916-.219Zm6.111-3.965V194h-1.121v-9.844h1.121Zm3.446 0V194h-1.121v-9.844h1.121Zm5.14 2.871c.702 0 1.286.146 1.75.438.465.292.812.688 1.04 1.189.236.502.355 1.067.355 1.696v.67h-5.25c.055.382.187.733.396 1.052.21.319.484.574.821.766.337.182.724.273 1.162.273a2.73 2.73 0 0 0 1.381-.369 5.205 5.205 0 0 0 1.08-.834l-.014 1.217a2.717 2.717 0 0 1-.574.492 3.58 3.58 0 0 1-.861.41 2.874 2.874 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.611 3.611 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791a3.45 3.45 0 0 1 1.162-1.312 3.046 3.046 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.116c-.046-.446-.174-.811-.383-1.093a1.876 1.876 0 0 0-.739-.629 2.019 2.019 0 0 0-.916-.219Zm11.17-3.965V194h-1.121v-1.162c-.237.364-.56.683-.97.957-.401.273-.862.41-1.381.41a3.041 3.041 0 0 1-1.6-.437 3.33 3.33 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.105 3.105 0 0 1 1.189-1.257 3.206 3.206 0 0 1 1.682-.452c.392 0 .788.096 1.19.287.41.183.761.438 1.052.766v-3.924h1.121Zm-3.158 3.992c-.492 0-.911.123-1.258.37a2.41 2.41 0 0 0-.806.929 2.849 2.849 0 0 0-.274 1.244c0 .438.091.844.274 1.217.182.365.437.656.765.875.338.219.725.328 1.162.328.42 0 .793-.109 1.122-.328.328-.219.587-.519.779-.902.191-.392.282-.83.273-1.313l-.013-1.312a3.316 3.316 0 0 0-.916-.82 2.108 2.108 0 0 0-1.108-.288Z"}),u.createElement("circle",{cx:259,cy:158,r:5,fill:"#6C65E5",stroke:"#F2F2F5",strokeWidth:2}),u.createElement("path",{stroke:"#6C65E5",strokeLinecap:"round",strokeWidth:1.5,d:"M259 157v-50"}),u.createElement("path",{fill:"#615BC2",d:"M205.775 64.813v5.564c0 .793-.168 1.477-.505 2.05a3.345 3.345 0 0 1-1.34 1.3c-.565.3-1.208.45-1.928.45-.711 0-1.354-.15-1.928-.45a3.43 3.43 0 0 1-1.353-1.3c-.328-.574-.492-1.257-.492-2.05v-5.564h1.23v5.523c0 .62.114 1.121.342 1.504a2.1 2.1 0 0 0 .929.834 3.26 3.26 0 0 0 1.272.246c.456-.01.875-.096 1.258-.26.392-.173.702-.447.929-.82.237-.383.356-.884.356-1.504v-5.523h1.23Zm4.567 2.214c.401 0 .775.06 1.121.178.346.11.597.223.752.342v1.203a3.572 3.572 0 0 0-.779-.424 2.613 2.613 0 0 0-1.012-.205c-.429 0-.752.1-.971.3-.21.201-.314.411-.314.63 0 .173.059.35.177.533.128.173.347.314.657.424l1.148.41c.447.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053a2.22 2.22 0 0 1-.889.766c-.373.182-.806.273-1.298.273-.265 0-.543-.036-.834-.11a5.073 5.073 0 0 1-.766-.232 3.571 3.571 0 0 1-.506-.26V72.4c.128.091.306.196.533.315.237.11.488.205.752.287.265.073.511.11.739.11.428 0 .765-.096 1.011-.288.256-.191.383-.428.383-.71a.61.61 0 0 0-.26-.52c-.164-.128-.405-.25-.724-.37l-1.012-.368c-.529-.201-.88-.452-1.053-.752a2.122 2.122 0 0 1-.259-1.053c0-.584.218-1.067.656-1.45.437-.382 1.021-.574 1.75-.574Zm6.631 0c.701 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.725.273 1.162.273.492 0 .953-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791a3.438 3.438 0 0 1 1.162-1.313 3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.882 1.882 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm6.111-.957v1.367c.264-.456.583-.82.957-1.094.374-.273.757-.41 1.148-.41.265 0 .502.046.711.137v1.299a1.698 1.698 0 0 0-.875-.26c-.464 0-.843.164-1.134.492-.283.328-.552.72-.807 1.176V74h-1.121v-6.836h1.121Zm9.447-3.281c.265 0 .483.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.849.849 0 0 1-.657.287.891.891 0 0 1-.67-.287.934.934 0 0 1-.259-.642c0-.247.086-.46.259-.643a.891.891 0 0 1 .67-.287Zm.698 3.281V74h-1.122v-5.783h-1.08v-1.053h2.202Zm4.457-.137c.401 0 .774.06 1.121.178.346.11.597.223.752.342v1.203a3.582 3.582 0 0 0-.78-.424 2.605 2.605 0 0 0-1.011-.205c-.429 0-.752.1-.971.3-.21.201-.315.411-.315.63 0 .173.06.35.178.533.128.173.347.314.656.424l1.149.41c.446.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.373.182-.806.273-1.299.273-.264 0-.542-.036-.834-.11a5.095 5.095 0 0 1-.765-.232 3.516 3.516 0 0 1-.506-.26V72.4c.128.091.305.196.533.315.237.11.488.205.752.287.264.073.51.11.738.11.429 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.405-.25-.724-.37l-1.012-.368c-.529-.201-.88-.452-1.053-.752-.173-.31-.26-.661-.26-1.053 0-.584.219-1.067.657-1.45.437-.382 1.02-.574 1.75-.574Zm9.953 0c.401 0 .774.06 1.121.178.346.11.597.223.752.342v1.203a3.558 3.558 0 0 0-.78-.424 2.605 2.605 0 0 0-1.011-.205c-.429 0-.752.1-.971.3-.21.201-.314.411-.314.63 0 .173.059.35.177.533.128.173.347.314.657.424l1.148.41c.447.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.373.182-.806.273-1.298.273-.265 0-.543-.036-.834-.11a5.073 5.073 0 0 1-.766-.232 3.516 3.516 0 0 1-.506-.26V72.4c.128.091.305.196.533.315.237.11.488.205.752.287.265.073.511.11.738.11.429 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.405-.25-.724-.37l-1.012-.368c-.529-.201-.88-.452-1.053-.752-.173-.31-.26-.661-.26-1.053 0-.584.219-1.067.657-1.45.437-.382 1.021-.574 1.75-.574Zm6.631 0c.701 0 1.285.146 1.75.438.464.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.885 2.885 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.163-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.566 0-1.03.192-1.395.574-.365.374-.592.83-.684 1.368h4.116c-.046-.447-.174-.812-.383-1.094a1.882 1.882 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm6.111-.957v1.08c.146-.182.333-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.383.2.688.51.916.93.228.41.342.93.342 1.558V74h-1.121l-.014-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V74h-1.121v-6.836h1.121Zm13.057-3.008V74h-1.122v-1.162c-.237.365-.56.684-.97.957-.401.273-.862.41-1.381.41a3.039 3.039 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.109 3.109 0 0 1 1.19-1.258 3.202 3.202 0 0 1 1.681-.45c.392 0 .789.095 1.19.286.41.183.761.438 1.052.766v-3.924h1.122Zm-3.159 3.992c-.492 0-.911.124-1.258.37a2.413 2.413 0 0 0-.806.93 2.86 2.86 0 0 0-.274 1.243c0 .438.092.843.274 1.217.182.365.437.656.765.875.338.219.725.328 1.163.328.419 0 .793-.109 1.121-.328.328-.219.588-.52.779-.902a2.82 2.82 0 0 0 .273-1.313l-.013-1.312a3.334 3.334 0 0 0-.916-.82 2.11 2.11 0 0 0-1.108-.288Zm6.576-4.265c.265 0 .484.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.847.847 0 0 1-.657.287.887.887 0 0 1-.669-.287.93.93 0 0 1-.26-.642.9.9 0 0 1 .26-.643.887.887 0 0 1 .669-.287Zm.698 3.281V74h-1.121v-5.783h-1.08v-1.053h2.201Zm3.541 0v1.08c.146-.182.332-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.383.2.688.51.916.93.228.41.342.93.342 1.558V74h-1.122l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V74h-1.121v-6.836h1.121Zm9.693-.137c.392 0 .789.096 1.19.287.41.183.761.438 1.052.766v-.916h1.121v6.7c0 .81-.164 1.485-.492 2.023a3.087 3.087 0 0 1-1.312 1.203 4.06 4.06 0 0 1-1.791.396c-.42 0-.78-.05-1.08-.15a2.726 2.726 0 0 1-.752-.355c-.21-.137-.401-.27-.575-.397v-1.203c.137.1.315.228.534.383.228.164.496.31.806.437.319.128.675.192 1.067.192a3.03 3.03 0 0 0 1.23-.246c.374-.165.675-.406.903-.725.227-.32.341-.702.341-1.149v-1.435c-.237.365-.56.684-.97.957-.401.273-.862.41-1.381.41a3.036 3.036 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.113 3.113 0 0 1 1.189-1.258 3.208 3.208 0 0 1 1.682-.45Zm.205 1.108c-.492 0-.911.123-1.258.369a2.39 2.39 0 0 0-.806.943 2.847 2.847 0 0 0-.274 1.244c0 .438.091.839.274 1.203.182.365.437.657.765.875a2.09 2.09 0 0 0 1.162.329c.42 0 .793-.11 1.122-.329.328-.218.587-.519.779-.902.191-.383.282-.816.273-1.299l-.013-1.312a3.334 3.334 0 0 0-.916-.82 2.04 2.04 0 0 0-1.108-.301Zm11.471-2.94v1.97h1.996v1.052h-1.996v4.006c0 .282.073.505.219.67.145.164.369.246.67.246.273 0 .501-.032.683-.096a3.38 3.38 0 0 0 .479-.233v.917c-.183.145-.379.26-.588.341-.201.091-.474.137-.821.137-.583 0-1.025-.173-1.326-.52-.291-.355-.437-.824-.437-1.408v-4.06h-1.313v-.328c.447-.2.821-.529 1.121-.985.301-.465.565-1.034.793-1.709h.52Zm7.383 1.832c.465 0 .888.105 1.271.315.383.2.688.51.916.93.228.41.342.93.342 1.558V74h-1.121l-.014-4.06c0-.593-.132-1.044-.396-1.354-.255-.31-.652-.465-1.19-.465-.364 0-.729.137-1.093.41-.356.265-.67.575-.944.93V74h-1.121v-9.844h1.121v4.088c.146-.182.333-.364.561-.547.228-.191.483-.35.765-.478.292-.128.593-.192.903-.192Zm7.465 0c.701 0 1.285.146 1.75.438.464.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.885 2.885 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.163-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.566 0-1.03.192-1.395.574-.365.374-.592.83-.684 1.368h4.116c-.046-.447-.174-.812-.383-1.094a1.882 1.882 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218ZM185.288 87.027c.501 0 .934.082 1.299.246.364.155.615.297.752.424v1.135a4.042 4.042 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.271.356a2.337 2.337 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.2.374.483.68.848.916.364.228.788.342 1.271.342.456 0 .848-.068 1.176-.205a4.49 4.49 0 0 0 .875-.506v1.135c-.137.137-.388.283-.752.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.59 3.59 0 0 1 1.271-1.313c.538-.328 1.153-.492 1.846-.492Zm7.246 0c.465 0 .889.105 1.272.315.382.2.688.51.916.93.228.41.341.93.341 1.558V94h-1.121l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V94h-1.121v-9.844h1.121v4.088c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192Zm7.465 0c.392 0 .788.096 1.189.287.411.183.762.438 1.053.766v-.916h1.121V94h-1.121v-1.162c-.237.365-.56.684-.97.957-.402.273-.862.41-1.381.41a3.036 3.036 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.113 3.113 0 0 1 1.189-1.258 3.208 3.208 0 0 1 1.682-.45Zm.205 1.094c-.492 0-.911.123-1.258.37a2.495 2.495 0 0 0-.806.956 2.847 2.847 0 0 0-.274 1.244c0 .438.091.843.274 1.217.182.365.437.656.765.875a2.09 2.09 0 0 0 1.162.328c.42 0 .793-.109 1.121-.328.329-.219.588-.52.78-.902.191-.392.282-.83.273-1.313l-.013-1.312a3.55 3.55 0 0 0-.916-.834 2.04 2.04 0 0 0-1.108-.3Zm6.604-.957v1.08c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192.465 0 .889.105 1.272.315.382.2.688.51.916.93.227.41.341.93.341 1.558V94h-1.121l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.652-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V94h-1.121v-6.836h1.121Zm9.693-.137c.392 0 .788.096 1.189.287a3.04 3.04 0 0 1 1.053.766v-.916h1.121v6.7c0 .81-.164 1.485-.492 2.023a3.092 3.092 0 0 1-1.312 1.203 4.06 4.06 0 0 1-1.791.396c-.42 0-.78-.05-1.081-.15a2.733 2.733 0 0 1-.751-.355c-.21-.137-.402-.27-.575-.397v-1.203c.137.1.315.228.534.383.227.164.496.31.806.437.319.128.675.192 1.067.192a3.03 3.03 0 0 0 1.23-.246c.374-.165.675-.406.902-.725.228-.32.342-.702.342-1.149v-1.435c-.237.365-.56.684-.971.957a2.39 2.39 0 0 1-1.38.41 3.036 3.036 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.113 3.113 0 0 1 1.189-1.258 3.208 3.208 0 0 1 1.682-.45Zm.205 1.108c-.492 0-.911.123-1.258.369a2.39 2.39 0 0 0-.806.943 2.847 2.847 0 0 0-.274 1.244c0 .438.091.839.274 1.203.182.365.437.657.765.875.337.22.725.329 1.162.329.42 0 .793-.11 1.121-.329.329-.218.588-.519.78-.902.191-.383.282-.816.273-1.299l-.014-1.312a3.305 3.305 0 0 0-.916-.82c-.319-.201-.688-.301-1.107-.301Zm8.299-1.108c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.21.32.483.575.82.766.337.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.735 2.735 0 0 1-.575.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm7.027-1.094c.401 0 .775.06 1.121.178.347.11.597.223.752.342v1.203a3.548 3.548 0 0 0-.779-.424 2.606 2.606 0 0 0-1.012-.205c-.428 0-.752.1-.97.3-.21.201-.315.411-.315.63 0 .173.059.35.178.533.127.173.346.314.656.424l1.149.41c.446.155.779.378.998.67.218.292.328.633.328 1.025 0 .383-.11.734-.328 1.053-.21.319-.506.574-.889.766-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.109 5.109 0 0 1-.766-.232 3.548 3.548 0 0 1-.505-.26V92.4c.127.091.305.196.533.315.237.11.487.205.752.287.264.073.51.11.738.11.428 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.406-.25-.725-.37l-1.012-.368c-.528-.201-.879-.452-1.052-.752-.173-.31-.26-.661-.26-1.053 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574Zm9.803-1.832v1.97h1.996v1.052h-1.996v4.006c0 .282.073.505.219.67.146.164.369.246.67.246.273 0 .501-.032.683-.096.183-.073.342-.15.479-.233v.917c-.183.145-.379.26-.588.341-.201.091-.474.137-.82.137-.584 0-1.026-.173-1.327-.52-.291-.355-.437-.824-.437-1.408v-4.06h-1.313v-.328c.447-.2.821-.529 1.121-.985.301-.465.566-1.034.793-1.709h.52Zm7.123 1.832c.693 0 1.308.164 1.846.492.537.329.957.766 1.258 1.313a3.58 3.58 0 0 1 .464 1.791 3.58 3.58 0 0 1-.464 1.791c-.301.538-.721.97-1.258 1.299-.538.328-1.153.492-1.846.492-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.59 3.59 0 0 1 1.271-1.313c.538-.328 1.153-.492 1.846-.492Zm0 1.094c-.483 0-.907.119-1.271.356a2.337 2.337 0 0 0-.848.916 2.652 2.652 0 0 0-.287 1.23c0 .438.095.848.287 1.23.2.374.483.68.848.916.364.228.788.342 1.271.342.492 0 .916-.114 1.271-.342.365-.236.643-.542.834-.916.201-.382.301-.792.301-1.23 0-.447-.1-.857-.301-1.23a2.239 2.239 0 0 0-.834-.916c-.355-.237-.779-.356-1.271-.356Zm12.879-1.094c.629 0 1.189.15 1.682.451.501.292.893.712 1.175 1.258.292.547.438 1.199.438 1.955 0 .693-.146 1.304-.438 1.832a3.217 3.217 0 0 1-1.148 1.245 2.991 2.991 0 0 1-1.6.437c-.519 0-.984-.137-1.394-.41a3.415 3.415 0 0 1-.957-.957V94h-1.121v-9.844h1.121v3.924a3.073 3.073 0 0 1 1.039-.766 2.83 2.83 0 0 1 1.203-.287Zm-.205 1.108c-.419 0-.789.1-1.108.3a3.611 3.611 0 0 0-.916.82l-.013 1.313c0 .483.091.916.273 1.3.192.382.451.683.779.901a2.02 2.02 0 0 0 1.122.329c.446 0 .834-.11 1.162-.329.328-.218.583-.51.765-.875.183-.364.274-.765.274-1.203 0-.446-.096-.86-.287-1.244a2.297 2.297 0 0 0-.793-.943c-.347-.246-.766-.37-1.258-.37Zm8.162-1.108c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.21.32.483.575.82.766.338.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.735 2.735 0 0 1-.575.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm10.213-.957v1.367c.264-.456.583-.82.957-1.094.374-.273.756-.41 1.148-.41.265 0 .502.046.711.137v1.299a1.698 1.698 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V94h-1.121v-6.836h1.121Zm7.068-.137c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.356 1.066.356 1.695v.67h-5.25c.054.382.187.733.396 1.052.21.32.483.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.38-.369a5.2 5.2 0 0 0 1.081-.834l-.014 1.217a2.752 2.752 0 0 1-.574.492 3.6 3.6 0 0 1-.862.41 2.88 2.88 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.617 3.617 0 0 1-1.272-1.299 3.664 3.664 0 0 1-.451-1.791c0-.647.142-1.244.424-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.394.574-.365.374-.593.83-.684 1.368h4.115c-.045-.447-.173-.812-.383-1.094a1.868 1.868 0 0 0-.738-.63 2.021 2.021 0 0 0-.916-.218Zm11.02-.957L294.882 94h-.697l-3.077-6.836h1.34l2.065 5.031 2.242-5.03h1.34Zm2.461-3.281c.264 0 .483.096.656.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.847.847 0 0 1-.656.287.888.888 0 0 1-.67-.287.935.935 0 0 1-.26-.642c0-.247.087-.46.26-.643a.888.888 0 0 1 .67-.287Zm.697 3.281V94h-1.121v-5.783h-1.08v-1.053h2.201Zm5.236-.137c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.356 1.066.356 1.695v.67h-5.25c.054.382.187.733.396 1.052.21.32.483.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.752 2.752 0 0 1-.574.492c-.246.164-.533.301-.862.41a2.88 2.88 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.606 3.606 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.452-1.791c0-.647.142-1.244.424-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.394.574-.365.374-.593.83-.684 1.368h4.115c-.045-.447-.173-.812-.382-1.094a1.878 1.878 0 0 0-.739-.63 2.021 2.021 0 0 0-.916-.218Zm13.959-.957L318.056 94h-.698l-1.873-4.826L313.612 94h-.697l-2.393-6.836h1.34l1.518 4.799 1.791-4.799h.629l1.791 4.799 1.517-4.799h1.34Zm4.184-.137c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.725.273 1.162.273.492 0 .953-.123 1.381-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.735 2.735 0 0 1-.575.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm11.17-3.965V94h-1.121v-1.162a3.355 3.355 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.041 3.041 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.282-.528-.423-1.139-.423-1.832 0-.756.141-1.408.423-1.955a3.115 3.115 0 0 1 1.19-1.258 3.204 3.204 0 0 1 1.681-.45c.392 0 .789.095 1.19.286.41.183.761.438 1.053.766v-3.924h1.121Zm-3.158 3.992c-.493 0-.912.124-1.258.37a2.416 2.416 0 0 0-.807.93 2.86 2.86 0 0 0-.273 1.243c0 .438.091.843.273 1.217.182.365.438.656.766.875.337.219.724.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.52.779-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.334 3.334 0 0 0-.916-.82 2.11 2.11 0 0 0-1.107-.288Z"}),u.createElement("defs",null,u.createElement("clipPath",{id:"a"},u.createElement("path",{fill:"#fff",d:"M531 117h18v18h-18z"})))),B0=()=>{const e=u.useRef(null),t=h1(),a=g1(t.breakpoints.down("md")),[r,o]=u.useState(!1);return l(G,{children:[n(x,{condition:!a,show:l(j,{variant:"body2",children:["Show change request process"," "]})}),n(z1,{title:"Change request process",ref:e,onClick:()=>o(!0),children:n(J3,{})}),n(lt,{open:r,anchorEl:e.current,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:()=>o(!1),children:l(A,{sx:{p:{xs:2,md:4},maxWidth:920},children:[n(j,{variant:"h3",children:"Change request process:"}),n(j,{variant:"body2",children:l("ol",{children:[n("li",{children:"When changes are detected they are added into a draft mode"}),n("li",{children:"The next step is for those changes to be sent for review"}),l("li",{children:["These changes can be seen by everyone but only who has ",n("strong",{children:"“Review change request”"})," ","permission can Approve them"]}),l("ul",{children:[l("li",{children:["If changes are Approved then someone who has"," ",n("strong",{children:"“Apply change request”"})," ","permission needs to apply these changes to be live on the feature toggles and request is Closed"]}),n("li",{children:"If changes are Cancelled by the author or admin then change request goes automatically to Cancelled and request is Closed."})]})]})}),n(A,{sx:{mt:3},children:n(A5,{style:{maxWidth:"calc(100vw - 4rem)"}})})]})})]})},b3=h(A)(({theme:e})=>({padding:e.spacing(1),display:"flex",justifyContent:"center","& .MuiInputBase-input":{fontSize:e.fontSizes.smallBody}})),E5=()=>{const{trackEvent:e}=R1(),[t,a]=u.useState({isOpen:!1,enableEnvironment:"",isEnabled:!1,requiredApprovals:1}),r=h1(),o=Y("projectId"),{data:i,loading:s,refetchChangeRequestConfig:c}=ma(o),{updateChangeRequestEnvironmentConfig:d}=p2(),{setToastData:p,setToastApiError:m}=u1(),v=(_,D,z)=>()=>{a({isOpen:!0,enableEnvironment:_,isEnabled:D,requiredApprovals:z})},g=async()=>{t.enableEnvironment&&await b(),a(_=>({..._,isOpen:!1}))};async function b(_){try{await d(_||{project:o,environment:t.enableEnvironment,enabled:!t.isEnabled,requiredApprovals:t.requiredApprovals}),p({type:"success",title:"Updated change request status",text:"Successfully updated change request status."}),await c()}catch(D){m(f1(D))}}const w=Array.from(Array(10).keys()).map(_=>String(_+1)).map(_=>({key:_,label:`${_} ${_==="1"?"approval":"approvals"}`,sx:{fontSize:r.fontSizes.smallBody}}));function S(_,D){b({project:o,environment:_.environment,enabled:_.changeRequestEnabled,requiredApprovals:Number(D)})}const Z=u.useMemo(()=>[{Header:"Environment",accessor:"environment",disableSortBy:!0},{Header:"Type",accessor:"type",disableGlobalFilter:!0,disableSortBy:!0},{Header:"Required approvals",Cell:({row:{original:_}})=>{const{hasAccess:D}=u.useContext(he);return n(x,{condition:_.changeRequestEnabled,show:n(b3,{"data-loading":!0,children:n(d0,{sx:{width:"140px",marginLeft:1},options:w,value:_.requiredApprovals||1,onChange:z=>{S(_,z)},disabled:!D(B2,o),IconComponent:u0,fullWidth:!0})})})},width:100,disableGlobalFilter:!0,disableSortBy:!0},{Header:"Status",accessor:"changeRequestEnabled",id:"changeRequestEnabled",align:"center",Cell:({value:_,row:{original:D}})=>n(b3,{"data-loading":!0,children:n(o2,{checked:_,projectId:o,permission:B2,inputProps:{"aria-label":D.environment},onClick:v(D.environment,D.changeRequestEnabled,D.requiredApprovals)})}),width:100,disableGlobalFilter:!0,disableSortBy:!0}],[]),{getTableProps:y,getTableBodyProps:P,headerGroups:H,rows:V,prepareRow:N}=r1.useTable({columns:Z,data:i,sortTypes:Re,autoResetGlobalFilter:!1,disableSortRemove:!0,defaultColumn:{Cell:i1}},r1.useGlobalFilter);return l(d1,{header:n(s1,{titleElement:"Change request configuration",actions:n(B0,{})}),isLoading:s,children:[n(U1,{severity:"info",sx:{mb:3},children:"If change request is enabled for an environment, then any change in that environment needs to be approved before it will be applied"}),l(nt,{...y(),children:[n(at,{headerGroups:H}),n(rt,{...P(),children:V.map(_=>(N(_),n(ot,{hover:!0,..._.getRowProps(),children:_.cells.map(D=>n(it,{...D.getCellProps(),children:D.render("Cell")}))})))})]}),l(Ae,{onClick:()=>{e("change_request",{props:{eventType:`change request ${t.isEnabled?"disabled":"enabled"}`}}),g()},open:t.isOpen,onClose:()=>a(_=>({..._,isOpen:!1})),primaryButtonText:t.isEnabled?"Disable":"Enable",secondaryButtonText:"Cancel",title:`${t.isEnabled?"Disable":"Enable"} change requests`,children:[l(j,{sx:{mb:1},children:["You are about to"," ",t.isEnabled?"disable":"enable"," “Change request”",n(x,{condition:Boolean(t.enableEnvironment),show:l(G,{children:[" ","for"," ",n("strong",{children:t.enableEnvironment})]})}),"."]}),n(x,{condition:!t.isEnabled,show:n(j,{variant:"body2",color:"text.secondary",children:"When enabling change request for an environment, you need to be sure that your Unleash Admin already have created the custom project roles in your Unleash instance so you can assign your project members from the project access page."})})]})]})},k5=()=>{const e=Y("projectId"),t=k1(e),{hasAccess:a}=u.useContext(he),{isOss:r,isPro:o}=p1();return S1(`Project change request configuration – ${t}`),r()||o()?n(d1,{header:n(s1,{titleElement:"Change request configuration",actions:n(B0,{})}),sx:{justifyContent:"center"},children:n(yt,{feature:"change-requests"})}):a(A1,e)?n(E5,{}):n(d1,{header:n(s1,{title:"Change request configuration"}),children:n(U1,{severity:"error",children:"You need project owner permissions to access this section."})})},V0=()=>{const{makeRequest:e,createRequest:t,errors:a,loading:r}=y2({propagateErrors:!0});return{deleteToken:async(s,c)=>{const d=`api/admin/projects/${c}/api-tokens/${s}`,p=t(d,{method:"DELETE"});try{return await e(p.caller,p.id)}catch(m){throw m}},createToken:async(s,c)=>{const d=`api/admin/projects/${c}/api-tokens`,p=t(d,{method:"POST",body:JSON.stringify(s)});try{return await e(p.caller,p.id)}catch(m){throw m}},errors:a,loading:r}},M0=(e,t={})=>{const a=G1(`api/admin/projects/${e}/api-tokens`),{data:r,error:o,mutate:i}=se(a,D5,t),s=u.useMemo(()=>r??[],[r]),c=u.useCallback(()=>{i().catch(console.warn)},[i]);return{tokens:s,error:o,loading:!o&&!r,refetch:c}},D5=async e=>(await(await fetch(e).then(K1("Project Api tokens"))).json()).tokens,C3="Create project API token",R5=()=>{const e=Y("projectId"),{setToastApiError:t}=u1(),{uiConfig:a}=p1(),r=$1(),[o,i]=u.useState(!1),[s,c]=u.useState(""),{getApiTokenPayload:d,username:p,type:m,environment:v,setUsername:g,setTokenType:b,setEnvironment:w,isValid:S,errors:Z,clearErrors:y}=Ga(e),{createToken:P,loading:H}=V0(),{refetch:V}=M0(e),{trackEvent:N}=R1();S1(C3);const _=`api/admin/project/${e}/api-tokens`;return l(l0,{loading:H,title:C3,modal:!0,description:"Unleash SDKs use API tokens to authenticate to the Unleash API. Client SDKs need a token with 'client privileges', which allows them to fetch feature toggle configurations and post usage metrics.",documentationLink:"https://docs.getunleash.io/reference/api-tokens-and-client-keys",documentationLinkLabel:"API tokens documentation",formatApiCode:()=>`curl --location --request POST '${a.unleashUrl}/${_}' \\
|
|
6
|
+
--data-raw '${JSON.stringify(z,void 0,2)}'`,O=f=>{if(f&&Boolean(f.rootRole))return"This group has an Admin or Editor role associated with it. Groups with a root role association cannot be assigned to projects, and users in this group already have the role applied globally."},K=(f,k,R)=>{let U,C;return k.type===q.GROUP?U=k.entity:C=k.entity,n(J1,{title:O(U),children:n("span",{children:l("li",{...f,children:[n(s2,{icon:n(la,{fontSize:"small"}),checkedIcon:n(da,{fontSize:"small"}),style:{marginRight:8},checked:R}),n(w,{condition:k.type===q.GROUP,show:n("span",{children:l(l5,{children:[n("span",{children:U==null?void 0:U.name}),l("span",{children:[U==null?void 0:U.userCount," users"]})]})}),elseShow:l(d5,{children:[n("span",{children:(C==null?void 0:C.name)||(C==null?void 0:C.username)}),n("span",{children:C!=null&&C.name&&(C!=null&&C.username)?C==null?void 0:C.username:C==null?void 0:C.email})]})})]})})})},Q=(f,k)=>n("li",{...f,children:l(u5,{children:[n("span",{children:k.name}),n("span",{children:k.description})]})}),M=B.length>0&&x;return n(ae,{open:!0,onClose:()=>Z(j1),label:`${T?"Edit":"Assign"} ${d} access`,children:n(l0,{loading:S,modal:!0,title:`${T?"Edit":"Assign"} ${d} access`,description:"Custom project roles allow you to fine-tune access rights and permissions within your projects.",documentationLink:"https://docs.getunleash.io/how-to/how-to-create-and-assign-custom-project-roles",documentationLinkLabel:"Project access documentation",formatApiCode:H,children:l(i5,{onSubmit:V,children:[l("div",{children:[l(f3,{"data-testid":oa,children:["Select the ",d]}),n(v3,{children:n(z2,{"data-testid":ia,size:"small",multiple:!0,openOnFocus:!0,limitTags:10,disableCloseOnSelect:!0,disabled:T,value:B,getOptionDisabled:f=>{if(f.type===q.GROUP){const k=f.entity;return Boolean(k.rootRole)}return!1},onChange:(f,k,R)=>{f.type==="keydown"&&f.key==="Backspace"&&R==="removeOption"||N(k)},options:L,groupBy:f=>f.type,renderOption:(f,k,{selected:R})=>K(f,k,R),getOptionLabel:f=>{if(f.type===q.USER||f.type===q.SERVICE_ACCOUNT){const k=f.entity;return k.email||k.name||k.username||""}else return f.entity.name},filterOptions:(f,{inputValue:k})=>f.filter(R=>{if(R.type===q.USER||R.type===q.SERVICE_ACCOUNT){const U=R.entity;return Ve(k,U.email)||Ve(k,U.name)||Ve(k,U.username)}return Ve(k,R.entity.name)}),isOptionEqualToValue:(f,k)=>f.type===k.type&&f.entity.id===k.entity.id,renderInput:f=>n(Kt,{...f,label:F1(d)})})}),n(f3,{children:"Select the role to assign for this project"}),n(v3,{children:n(z2,{"data-testid":sa,size:"small",openOnFocus:!0,value:x,onChange:(f,k)=>D(k),options:i,renderOption:Q,getOptionLabel:f=>f.name,renderInput:f=>n(Kt,{...f,label:"Role"})})}),n(w,{condition:Boolean(x==null?void 0:x.id),show:n($0,{roleId:x==null?void 0:x.id,projectId:p})})]}),l(s5,{children:[n(v1,{"data-testid":ca,type:"submit",variant:"contained",color:"primary",disabled:!M,children:T?"Save":`Assign ${d}`}),n(c5,{onClick:()=>Z(j1),children:"Cancel"})]})]})})})},P2=()=>{var r,o;const{data:e,error:t,mutate:a}=se(G1("api/admin/user-admin/access"),p5);return{users:(r=e==null?void 0:e.users)==null?void 0:r.filter(({accountType:i})=>!i||i==="User"),serviceAccounts:(o=e==null?void 0:e.users)==null?void 0:o.filter(({accountType:i})=>i==="Service Account"),groups:e==null?void 0:e.groups,loading:!t&&!e,refetch:()=>a(),error:t}},p5=e=>fetch(e).then(K1("Access")).then(t=>t.json()),h5=()=>{const e=Y("projectId"),{access:t}=ge(e),{users:a,serviceAccounts:r,groups:o}=P2();return!t||!a||!r||!o?null:n(Z2,{accesses:t.rows,users:a,serviceAccounts:r,groups:o,roles:t.roles})},m5=()=>{const e=Y("projectId"),t=Y("userId"),{access:a}=ge(e),{users:r,serviceAccounts:o,groups:i}=P2();if(!a||!r||!o||!i)return null;const s=a.rows.find(c=>c.entity.id===Number(t)&&c.type!==q.GROUP);return n(Z2,{accesses:a.rows,selected:s,users:r,serviceAccounts:o,groups:i,roles:a.roles})},g5=()=>{const e=Y("projectId"),t=Y("groupId"),{access:a}=ge(e),{users:r,serviceAccounts:o,groups:i}=P2();if(!a||!r||!o||!i)return null;const s=a.rows.find(c=>c.entity.id===Number(t)&&c.type===q.GROUP);return n(Z2,{accesses:a.rows,selected:s,users:r,serviceAccounts:o,groups:i,roles:a.roles})},f5=({roleId:e,projectId:t,value:a,emptyText:r})=>a?n(o1,{children:n(c0,{tooltip:n($0,{roleId:e,projectId:t,popover:!0}),tooltipProps:{maxWidth:500,maxHeight:600},children:a})}):n(o1,{children:r}),v5={id:"added"},{value:y3,setValue:y5}=ct("ProjectAccess:v1",v5),b5=h("div")(({theme:e})=>({display:"inline-flex",alignItems:"center",flexWrap:"wrap",marginLeft:e.spacing(1)})),C5=h(v2)(({theme:e})=>({marginRight:e.spacing(-3.5)})),_5=h(v2)(({theme:e})=>({outline:`${e.spacing(.25)} solid ${e.palette.background.paper}`})),x5=["imageUrl","role","added","lastLogin"],w5=["lastLogin","added"],S5=()=>{var U;const e=Y("projectId"),{uiConfig:t}=p1(),{flags:a}=t,r=a.UG?"user / group":"user",o=$1(),i=h1(),s=g1(i.breakpoints.down("md")),c=g1(i.breakpoints.down("lg")),{setToastData:d}=u1(),{access:p,refetchProjectAccess:m}=ge(e),{removeUserFromRole:v,removeGroupFromRole:g}=st(),[b,S]=u.useState(!1),[T,F]=u.useState(!1),[y,Z]=u.useState(),L=u.useMemo(()=>[{Header:"Avatar",accessor:"imageUrl",Cell:({row:{original:C}})=>{var X;return l(b5,{children:[n(w,{condition:C.type===q.GROUP,show:n(C5,{})}),n(_5,{user:C.entity,children:(X=C.entity.users)==null?void 0:X.length})]})},maxWidth:85,disableSortBy:!0},{id:"name",Header:"Name",accessor:C=>C.entity.name||"",Cell:({value:C,row:{original:X}})=>{var c1,i1,m1;return n(w,{condition:X.type===q.GROUP,show:n(U3,{onClick:()=>{Z(X),F(!0)},title:C,subtitle:`${(c1=X.entity.users)==null?void 0:c1.length} users`}),elseShow:n(Se,{value:C,subtitle:((i1=X.entity)==null?void 0:i1.username)||((m1=X.entity)==null?void 0:m1.email)})})},minWidth:100,searchable:!0},{id:"username",Header:"Username",accessor:C=>{if(C.type!==q.GROUP){const X=C.entity;return X.username||X.email}return""},Cell:Se,minWidth:100,searchable:!0},{id:"role",Header:"Role",accessor:C=>{var X;return(X=p==null?void 0:p.roles.find(({id:c1})=>c1===C.entity.roleId))==null?void 0:X.name},Cell:({value:C,row:{original:X}})=>n(f5,{roleId:X.entity.roleId,projectId:e,value:C}),maxWidth:125,filterName:"role"},{id:"added",Header:"Added",accessor:C=>C.entity.addedAt||"",Cell:({value:C})=>n(Je,{value:C,emptyText:"Never"}),sortType:"date",maxWidth:130},{id:"lastLogin",Header:"Last login",accessor:C=>C.type!==q.GROUP?C.entity.seenAt||"":C.entity.users.map(({seenAt:c1})=>c1).sort().reverse()[0],Cell:({value:C})=>n(Je,{value:C,emptyText:"Never"}),sortType:"date",maxWidth:130},{id:"actions",Header:"Actions",disableSortBy:!0,align:"center",maxWidth:150,Cell:({row:{original:C}})=>l(r2,{children:[n(N1,{"data-testid":ua,component:E1,permission:A1,projectId:e,to:`edit/${C.type===q.GROUP?"group":"user"}/${C.entity.id}`,disabled:(p==null?void 0:p.rows.length)===1,tooltipProps:{title:(p==null?void 0:p.rows.length)===1?"Cannot edit access. A project must have at least one owner":"Edit access"},children:n(g2,{})}),n(N1,{"data-testid":pa,permission:A1,projectId:e,onClick:()=>{Z(C),S(!0)},disabled:(p==null?void 0:p.rows.length)===1,tooltipProps:{title:(p==null?void 0:p.rows.length)===1?"Cannot remove access. A project must have at least one owner":"Remove access"},children:n(f2,{})})]})}],[p,e]),[B,N]=l2(),[x]=u.useState(()=>({sortBy:[{id:B.get("sort")||y3.id,desc:B.has("order")?B.get("order")==="desc":y3.desc}],globalFilter:B.get("search")||""})),[D,z]=u.useState(x.globalFilter),{data:V,getSearchText:H,getSearchContext:O}=mt(L,D,(p==null?void 0:p.rows)??[]),{headerGroups:K,rows:Q,prepareRow:M,setHiddenColumns:f,state:{sortBy:k}}=n1.useTable({columns:L,data:V,initialState:x,sortTypes:Re,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0,disableMultiSort:!0,defaultColumn:{Cell:o1}},n1.useSortBy,n1.useFlexLayout);ft([{condition:s,columns:x5},{condition:c,columns:w5}],f,L),u.useEffect(()=>{const C={};C.sort=k[0].id,k[0].desc&&(C.order="desc"),D&&(C.search=D),N(C,{replace:!0}),y5({id:k[0].id,desc:k[0].desc||!1})},[k,D,N]);const R=async C=>{if(!C)return;const{id:X,roleId:c1}=C.entity;let i1=C.entity.name;if(C.type!==q.GROUP){const m1=C.entity;i1=i1||m1.email||m1.username||""}try{C.type!==q.GROUP?await v(e,c1,X):await g(e,c1,X),m(),d({type:"success",title:`${i1||`The ${r}`} has been removed from project`})}catch(m1){d({type:"error",title:m1.message||`Server problems when removing ${r}.`})}S(!1)};return l(d1,{header:n(s1,{secondary:!0,title:`Access (${Q.length<V.length?`${Q.length} of ${V.length}`:V.length})`,actions:l(G,{children:[n(w,{condition:!s,show:l(G,{children:[n(w1,{initialValue:D,onChange:z,hasFilters:!0,getSearchContext:O}),n(s1.Divider,{})]})}),l(W3,{onClick:()=>o("create"),maxWidth:"700px",Icon:G3,permission:A1,projectId:e,"data-testid":ha,children:["Assign ",r]})]}),children:n(w,{condition:s,show:n(w1,{initialValue:D,onChange:z,hasFilters:!0,getSearchContext:O})})}),children:[n(ce,{value:H(D),children:n(gt,{rows:Q,headerGroups:K,prepareRow:M})}),n(w,{condition:Q.length===0,show:n(w,{condition:(D==null?void 0:D.length)>0,show:l(y1,{children:["No access found matching “",D,"”"]}),elseShow:l(y1,{children:["No access available. Get started by assigning a"," ",r,"."]})})}),l(Fe,{children:[n(t1,{path:"create",element:n(h5,{})}),n(t1,{path:"edit/group/:groupId",element:n(g5,{})}),n(t1,{path:"edit/user/:userId",element:n(m5,{})})]}),n(Ae,{open:b,onClick:()=>R(y),onClose:()=>{S(!1)},title:`Really remove ${r} from this project?`}),n(n5,{open:T,setOpen:F,group:y==null?void 0:y.entity,projectId:e,subtitle:`Role: ${(U=p==null?void 0:p.roles.find(({id:C})=>C===(y==null?void 0:y.entity.roleId)))==null?void 0:U.name}`,onEdit:()=>{o(`edit/group/${y==null?void 0:y.entity.id}`)},onRemove:()=>{F(!1),S(!0)}})]})},T5=()=>{const e=Y("projectId"),t=k1(e),{hasAccess:a}=u.useContext(he),{isOss:r}=p1();return S1(`Project access – ${t}`),r()?n(d1,{header:n(s1,{title:"Access"}),sx:{justifyContent:"center"},children:n(yt,{feature:"access"})}):a(A1,e)?n(S5,{}):n(d1,{header:n(s1,{title:"Access"}),children:n(U1,{severity:"error",children:"You need project owner permissions to access this section."})})},A5=e=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:860,height:298,fill:"none",...e},u.createElement("rect",{width:860,height:298,fill:"#F2F2F5",rx:12}),u.createElement("rect",{width:109,height:23,x:515.5,y:114.5,fill:"#F4FAEB",rx:3.5}),u.createElement("g",{clipPath:"url(#a)"},u.createElement("path",{fill:"#68A611",d:"m537.75 129.128-2.603-2.603a.747.747 0 1 0-1.057 1.058l3.135 3.135a.747.747 0 0 0 1.057 0l7.935-7.935a.747.747 0 1 0-1.057-1.058l-7.41 7.403Z"})),u.createElement("path",{fill:"#3B6600",d:"m557.639 122.09 3.656 7.91h-1.91l-.598-1.465h-3.105l-.598 1.465h-1.91l3.656-7.91h.809Zm-.399 2.66-.984 2.402h1.969l-.985-2.402Zm8.473-.82c.469 0 .902.121 1.301.363.406.234.73.582.972 1.043.25.453.375 1.008.375 1.664 0 .656-.125 1.223-.375 1.699a2.675 2.675 0 0 1-.996 1.102c-.414.25-.875.375-1.383.375-.328 0-.656-.078-.984-.235a2.799 2.799 0 0 1-.809-.609v3.48h-1.488v-8.73h1.488v.996c.172-.32.422-.59.75-.808a1.97 1.97 0 0 1 1.149-.34Zm-.375 1.488c-.266 0-.516.07-.75.211a1.557 1.557 0 0 0-.574.574c-.141.25-.207.551-.2.902v.856c.211.219.438.402.68.551.25.14.52.211.809.211.304 0 .57-.082.797-.246.226-.165.402-.375.527-.633.125-.266.187-.547.187-.844 0-.445-.136-.82-.41-1.125-.265-.305-.621-.457-1.066-.457Zm7.828-1.488c.469 0 .902.121 1.301.363.406.234.73.582.972 1.043.25.453.375 1.008.375 1.664 0 .656-.125 1.223-.375 1.699a2.675 2.675 0 0 1-.996 1.102c-.414.25-.875.375-1.382.375-.329 0-.657-.078-.985-.235a2.78 2.78 0 0 1-.808-.609v3.48h-1.489v-8.73h1.489v.996c.171-.32.421-.59.75-.808.328-.227.711-.34 1.148-.34Zm-.375 1.488c-.266 0-.516.07-.75.211a1.557 1.557 0 0 0-.574.574c-.141.25-.207.551-.199.902v.856c.211.219.437.402.679.551.25.14.52.211.809.211.305 0 .57-.082.797-.246.226-.165.402-.375.527-.633a1.96 1.96 0 0 0 .188-.844c0-.445-.137-.82-.411-1.125-.265-.305-.621-.457-1.066-.457Zm8.168.328a1.576 1.576 0 0 0-.785-.211 1.16 1.16 0 0 0-.856.34 3.196 3.196 0 0 0-.597.82V130h-1.489v-5.918h1.489v1.113c.203-.351.441-.644.715-.879.281-.234.597-.351.949-.351.211 0 .402.035.574.105v1.676Zm3.902-1.816c.578 0 1.106.14 1.582.422.477.273.86.648 1.149 1.125.297.468.445.996.445 1.582 0 .586-.148 1.113-.445 1.582a3.31 3.31 0 0 1-1.149 1.125 3.125 3.125 0 0 1-1.582.41 3.17 3.17 0 0 1-1.582-.41 3.315 3.315 0 0 1-1.148-1.125 2.954 2.954 0 0 1-.434-1.582c0-.586.145-1.114.434-1.582a3.165 3.165 0 0 1 1.148-1.125 3.09 3.09 0 0 1 1.582-.422Zm0 1.441c-.281 0-.543.067-.785.199a1.539 1.539 0 0 0-.586.575c-.14.25-.211.554-.211.914 0 .359.071.664.211.914.149.25.344.441.586.574.242.125.504.187.785.187.282 0 .543-.062.785-.187.243-.133.438-.324.586-.574.149-.25.223-.555.223-.914 0-.36-.074-.664-.223-.914a1.525 1.525 0 0 0-.586-.575 1.612 1.612 0 0 0-.785-.199Zm10.067-1.289L592.127 130h-.949l-2.766-5.918h1.734l1.489 3.668 1.558-3.668h1.735Zm3.328-.152c.578 0 1.074.125 1.488.375.422.25.742.597.961 1.043.227.437.34.945.34 1.523v.633h-4.289c.078.398.273.719.586.961.312.242.695.363 1.148.363.43 0 .821-.086 1.172-.258.352-.172.633-.347.844-.527l-.012 1.383c-.187.164-.469.332-.844.504a2.952 2.952 0 0 1-1.218.246 3.283 3.283 0 0 1-1.606-.399 3.14 3.14 0 0 1-1.148-1.089c-.282-.461-.422-.989-.422-1.583 0-.578.129-1.105.387-1.582a3.071 3.071 0 0 1 1.066-1.148 2.759 2.759 0 0 1 1.547-.445Zm-.035 1.3c-.367 0-.676.114-.926.34-.25.227-.422.532-.516.914h2.836c-.031-.422-.187-.734-.469-.937a1.506 1.506 0 0 0-.925-.317Zm9.808-3.668V130h-1.488v-.996c-.172.32-.422.598-.75.832-.328.226-.711.34-1.148.34-.477 0-.918-.121-1.325-.364-.398-.242-.718-.593-.961-1.054-.242-.461-.363-1.02-.363-1.676 0-.656.121-1.219.363-1.687.25-.469.582-.829.997-1.079a2.625 2.625 0 0 1 1.394-.386c.32 0 .645.074.973.222.328.149.601.348.82.598v-3.188h1.488Zm-2.976 3.833c-.313 0-.582.082-.809.246-.219.156-.39.363-.515.621-.125.25-.188.523-.188.82 0 .445.133.824.398 1.137.274.312.633.469 1.079.469.265 0 .511-.071.738-.211a1.56 1.56 0 0 0 .562-.586c.149-.258.223-.567.223-.926v-.844a2.44 2.44 0 0 0-.691-.527 1.63 1.63 0 0 0-.797-.199Z"}),u.createElement("rect",{width:109,height:23,x:515.5,y:114.5,stroke:"#B0D182",rx:3.5}),u.createElement("rect",{width:141,height:23,x:680.5,y:114.5,fill:"#F4FAEB",rx:3.5}),u.createElement("path",{fill:"#68A611",d:"m690.692 122.251 1.058-1.057 2.557 2.557-1.057 1.058-2.558-2.558Zm9.308 7.125v-2.625h-4.193l-4.057 4.058-1.057-1.058 4.499-4.5H700v-2.625l3.375 3.375-3.375 3.375Z"}),u.createElement("path",{fill:"#3B6600",d:"M715.097 121.304c.533 0 .995.076 1.384.228.389.144.728.343 1.016.597v1.777c-.204-.152-.415-.3-.635-.444a2.983 2.983 0 0 0-1.714-.495 2.67 2.67 0 0 0-1.384.368 2.735 2.735 0 0 0-1.358 2.412c0 .525.122.999.368 1.422.245.415.575.745.99.99a2.74 2.74 0 0 0 1.384.356c.567 0 1.041-.085 1.422-.254.389-.178.74-.394 1.054-.648v1.714a3.276 3.276 0 0 1-1.08.635 4.333 4.333 0 0 1-1.447.228 4.69 4.69 0 0 1-1.726-.317 4.617 4.617 0 0 1-1.435-.914 4.348 4.348 0 0 1-.978-1.409 4.47 4.47 0 0 1-.355-1.803c0-.66.119-1.261.355-1.803a4.2 4.2 0 0 1 .978-1.396 4.313 4.313 0 0 1 1.435-.914 4.54 4.54 0 0 1 1.726-.33Zm7.643 2.12c.651 0 1.197.22 1.637.66.441.44.661 1.1.661 1.98V130h-1.613l-.012-3.72c0-.431-.106-.753-.318-.965-.203-.211-.486-.317-.85-.317-.288 0-.559.093-.813.279a2.974 2.974 0 0 0-.635.661V130h-1.612v-9.141h1.612v3.644a3.32 3.32 0 0 1 .787-.736 2.016 2.016 0 0 1 1.156-.343Zm6.69 0c.347 0 .698.08 1.054.241.355.161.652.377.889.647v-.723h1.612V130h-1.612v-1.079a2.648 2.648 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.995-.131-1.435-.393-.431-.262-.778-.643-1.041-1.143-.262-.499-.393-1.104-.393-1.815 0-.711.131-1.32.393-1.828a2.95 2.95 0 0 1 1.079-1.168c.457-.28.961-.419 1.511-.419Zm.33 1.574c-.338 0-.63.089-.876.267a1.733 1.733 0 0 0-.558.673 2.027 2.027 0 0 0-.203.901c0 .482.143.893.431 1.231.296.339.686.508 1.168.508.288 0 .555-.076.8-.228a1.69 1.69 0 0 0 .609-.635c.161-.279.242-.614.242-1.003v-.914a2.864 2.864 0 0 0-.749-.584 1.77 1.77 0 0 0-.864-.216Zm6.818-1.409v.914a3.3 3.3 0 0 1 .787-.736 2.01 2.01 0 0 1 1.155-.343c.652 0 1.198.22 1.638.66.44.44.66 1.1.66 1.98V130h-1.612l-.013-3.72c0-.431-.106-.753-.318-.965-.203-.211-.486-.317-.85-.317-.288 0-.559.093-.813.279a2.947 2.947 0 0 0-.634.661V130h-1.613v-6.411h1.613Zm8.632-.165c.347 0 .699.08 1.054.241.356.161.652.377.889.647v-.723h1.612v6.246c0 .728-.161 1.341-.482 1.841a3.12 3.12 0 0 1-1.283 1.155 3.808 3.808 0 0 1-1.751.406c-.568 0-1.033-.084-1.397-.254a6.634 6.634 0 0 1-1.016-.584v-1.523c.195.118.398.245.61.381.22.135.465.25.736.343.279.093.601.139.965.139.381 0 .724-.072 1.028-.216.305-.143.542-.347.711-.609.178-.254.267-.546.267-.876v-1.117a2.638 2.638 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.041-1.143-.263-.499-.394-1.104-.394-1.815 0-.711.131-1.32.394-1.828.27-.508.63-.897 1.079-1.168.457-.28.96-.419 1.51-.419Zm.331 1.587c-.339 0-.631.089-.876.266a1.75 1.75 0 0 0-.559.673 1.965 1.965 0 0 0-.203.889c0 .482.144.893.431 1.231.297.33.686.495 1.168.495.288 0 .555-.072.8-.215a1.7 1.7 0 0 0 .61-.635c.16-.279.241-.614.241-1.003v-.914a2.62 2.62 0 0 0-.749-.571 1.766 1.766 0 0 0-.863-.216Zm8.01-1.587c.627 0 1.164.135 1.613.406.457.271.804.648 1.041 1.13.245.474.368 1.024.368 1.65v.686h-4.647c.085.432.296.779.635 1.041.339.262.753.393 1.244.393.466 0 .889-.093 1.27-.279.381-.186.685-.376.914-.571l-.013 1.498c-.203.178-.508.36-.914.546a3.197 3.197 0 0 1-1.32.266 3.557 3.557 0 0 1-1.74-.431 3.405 3.405 0 0 1-1.244-1.181c-.304-.499-.457-1.071-.457-1.714 0-.626.14-1.197.419-1.714.28-.516.665-.931 1.155-1.244a2.996 2.996 0 0 1 1.676-.482Zm-.038 1.409a1.44 1.44 0 0 0-1.003.368c-.271.246-.457.576-.558.99h3.072c-.034-.457-.203-.795-.508-1.015a1.633 1.633 0 0 0-1.003-.343Zm6.602-1.409c.398 0 .766.059 1.104.178.339.118.601.253.787.406v1.422a4.603 4.603 0 0 0-.749-.394 2.205 2.205 0 0 0-.901-.19c-.305 0-.546.067-.724.203-.177.135-.266.296-.266.482 0 .136.051.263.152.381.102.11.296.207.584.292l.724.241c.973.288 1.46.851 1.46 1.689 0 .398-.115.753-.343 1.066a2.27 2.27 0 0 1-.901.724 2.853 2.853 0 0 1-1.245.266c-.431 0-.85-.067-1.256-.203-.407-.135-.716-.283-.927-.444v-1.409c.161.11.355.216.584.317.228.102.465.186.711.254.245.059.469.089.673.089.321 0 .567-.055.736-.165a.563.563 0 0 0 .266-.495.431.431 0 0 0-.215-.381 2.91 2.91 0 0 0-.635-.279l-.787-.28c-.491-.16-.83-.389-1.016-.685-.186-.296-.279-.648-.279-1.054s.101-.757.305-1.054c.211-.304.503-.541.876-.711a2.95 2.95 0 0 1 1.282-.266Zm9.889 0c.347 0 .699.08 1.054.241.356.161.652.377.889.647v-.723h1.612V130h-1.612v-1.079a2.638 2.638 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.041-1.143-.263-.499-.394-1.104-.394-1.815 0-.711.131-1.32.394-1.828.27-.508.63-.897 1.079-1.168.457-.28.96-.419 1.51-.419Zm.33 1.574c-.338 0-.63.089-.876.267a1.742 1.742 0 0 0-.558.673 2.027 2.027 0 0 0-.203.901c0 .482.144.893.431 1.231.297.339.686.508 1.168.508.288 0 .555-.076.8-.228a1.7 1.7 0 0 0 .61-.635c.16-.279.241-.614.241-1.003v-.914a2.848 2.848 0 0 0-.749-.584 1.767 1.767 0 0 0-.864-.216Zm8.874-1.574c.508 0 .978.131 1.41.393.44.254.791.631 1.053 1.13.271.491.407 1.092.407 1.803 0 .711-.136 1.325-.407 1.841a2.897 2.897 0 0 1-1.079 1.193 2.84 2.84 0 0 1-1.498.406c-.355 0-.711-.084-1.066-.253a3.017 3.017 0 0 1-.876-.661v3.771h-1.612v-9.458h1.612v1.079a2.43 2.43 0 0 1 .812-.876 2.141 2.141 0 0 1 1.244-.368Zm-.406 1.612c-.288 0-.558.076-.812.229a1.68 1.68 0 0 0-.622.622c-.153.271-.225.596-.216.977v.927c.228.237.474.436.736.597.271.152.563.228.876.228.33 0 .618-.089.863-.266a1.81 1.81 0 0 0 .572-.686c.135-.288.203-.592.203-.914 0-.482-.148-.889-.444-1.219-.288-.33-.673-.495-1.156-.495Zm8.481-1.612c.508 0 .977.131 1.409.393.44.254.791.631 1.054 1.13.27.491.406 1.092.406 1.803 0 .711-.136 1.325-.406 1.841a2.903 2.903 0 0 1-1.079 1.193 2.843 2.843 0 0 1-1.499.406c-.355 0-.71-.084-1.066-.253a3.017 3.017 0 0 1-.876-.661v3.771h-1.612v-9.458h1.612v1.079c.186-.347.457-.639.813-.876.355-.245.77-.368 1.244-.368Zm-.407 1.612c-.287 0-.558.076-.812.229a1.686 1.686 0 0 0-.622.622c-.152.271-.224.596-.216.977v.927c.229.237.474.436.736.597.271.152.563.228.876.228.33 0 .618-.089.864-.266.245-.178.436-.407.571-.686.135-.288.203-.592.203-.914 0-.482-.148-.889-.444-1.219-.288-.33-.673-.495-1.156-.495Zm6.424-4.177V130h-1.612v-9.141h1.612Zm3.314-.609c.304 0 .567.11.787.33a1.048 1.048 0 0 1 0 1.524c-.22.22-.483.33-.787.33-.305 0-.567-.11-.787-.33a1.067 1.067 0 0 1-.318-.762c0-.296.106-.55.318-.762.22-.22.482-.33.787-.33Zm.939 3.339V130h-1.612v-5.04h-1.028v-1.371h2.64Zm4.837-.165c.626 0 1.164.135 1.612.406.457.271.804.648 1.041 1.13.246.474.369 1.024.369 1.65v.686h-4.647c.085.432.296.779.635 1.041.338.262.753.393 1.244.393.466 0 .889-.093 1.27-.279.38-.186.685-.376.914-.571l-.013 1.498c-.203.178-.508.36-.914.546a3.197 3.197 0 0 1-1.32.266 3.557 3.557 0 0 1-1.74-.431 3.405 3.405 0 0 1-1.244-1.181c-.305-.499-.457-1.071-.457-1.714 0-.626.14-1.197.419-1.714a3.328 3.328 0 0 1 1.155-1.244 2.996 2.996 0 0 1 1.676-.482Zm-.038 1.409a1.44 1.44 0 0 0-1.003.368c-.271.246-.457.576-.558.99h3.072c-.034-.457-.203-.795-.508-1.015a1.633 1.633 0 0 0-1.003-.343Zm10.626-3.974V130h-1.612v-1.079a2.638 2.638 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.042-1.143-.262-.499-.393-1.104-.393-1.815 0-.711.131-1.32.393-1.828a2.946 2.946 0 0 1 1.08-1.168c.457-.28.96-.419 1.51-.419.347 0 .699.08 1.054.241.356.161.652.377.889.647v-3.453h1.612Zm-3.225 4.152c-.338 0-.63.089-.876.266-.237.17-.423.394-.558.673a1.952 1.952 0 0 0-.203.889c0 .482.144.893.431 1.231.297.339.686.508 1.168.508.288 0 .555-.076.8-.228a1.7 1.7 0 0 0 .61-.635c.16-.279.241-.614.241-1.003v-.914a2.62 2.62 0 0 0-.749-.571 1.767 1.767 0 0 0-.864-.216Z"}),u.createElement("rect",{width:141,height:23,x:680.5,y:114.5,stroke:"#B0D182",rx:3.5}),u.createElement("rect",{width:141,height:23,x:680.5,y:177.5,fill:"#FFF2F3",rx:3.5}),u.createElement("path",{fill:"#D93644",d:"M725.724 184.283a.745.745 0 0 0-1.057 0l-3.668 3.66-3.667-3.668a.748.748 0 0 0-1.058 1.058l3.668 3.667-3.668 3.668a.747.747 0 1 0 1.058 1.057l3.667-3.667 3.668 3.667a.745.745 0 0 0 1.057 0 .745.745 0 0 0 0-1.057L722.057 189l3.667-3.667a.752.752 0 0 0 0-1.05Z"}),u.createElement("path",{fill:"#D11525",d:"M738.973 184.973c.492 0 .918.07 1.277.211.359.132.672.316.938.55v1.641a11.253 11.253 0 0 0-.586-.41 2.99 2.99 0 0 0-.692-.328 2.745 2.745 0 0 0-.89-.129c-.469 0-.895.113-1.278.34a2.558 2.558 0 0 0-.914.914c-.226.383-.34.82-.34 1.312 0 .485.114.922.34 1.313.227.383.531.687.914.914.383.219.809.328 1.278.328.523 0 .96-.078 1.312-.234.359-.165.684-.364.973-.598v1.582a3.048 3.048 0 0 1-.996.586c-.399.14-.844.211-1.336.211a4.347 4.347 0 0 1-1.594-.293 4.263 4.263 0 0 1-1.324-.844 4.01 4.01 0 0 1-.903-1.301 4.118 4.118 0 0 1-.328-1.664c0-.609.11-1.164.328-1.664.219-.5.52-.93.903-1.289a4.007 4.007 0 0 1 1.324-.844 4.195 4.195 0 0 1 1.594-.304Zm6.117 1.957c.32 0 .644.074.972.222.329.149.602.348.821.598v-.668h1.488V193h-1.488v-.996c-.172.32-.422.598-.75.832-.328.226-.711.34-1.149.34-.476 0-.918-.121-1.324-.364a2.627 2.627 0 0 1-.961-1.054c-.242-.461-.363-1.02-.363-1.676 0-.656.121-1.219.363-1.687a2.72 2.72 0 0 1 .996-1.079 2.631 2.631 0 0 1 1.395-.386Zm.305 1.453a1.34 1.34 0 0 0-.809.246 1.606 1.606 0 0 0-.516.621 1.882 1.882 0 0 0-.187.832c0 .445.133.824.398 1.137.274.312.633.469 1.078.469.266 0 .512-.071.739-.211a1.56 1.56 0 0 0 .562-.586c.149-.258.223-.567.223-.926v-.844a2.652 2.652 0 0 0-.692-.539 1.624 1.624 0 0 0-.796-.199Zm6.293-1.301v.844c.179-.242.421-.469.726-.68a1.862 1.862 0 0 1 1.066-.316c.602 0 1.106.203 1.512.609.406.406.61 1.016.61 1.828V193h-1.489l-.011-3.434c0-.398-.098-.695-.293-.89-.188-.196-.45-.293-.786-.293-.265 0-.515.086-.75.258a2.707 2.707 0 0 0-.585.609V193h-1.489v-5.918h1.489Zm8.32-.152c.437 0 .797.07 1.078.211.281.14.504.277.668.41v1.371a3.03 3.03 0 0 0-.692-.375c-.25-.102-.558-.152-.925-.152a1.641 1.641 0 0 0-1.43.82c-.148.25-.223.535-.223.855 0 .485.157.883.469 1.196.313.312.707.468 1.184.468.367 0 .675-.046.925-.14.258-.102.489-.227.692-.375v1.359a2.998 2.998 0 0 1-.668.41c-.281.125-.641.188-1.078.188-.602 0-1.137-.141-1.606-.422a3.257 3.257 0 0 1-1.101-1.137 3.12 3.12 0 0 1-.399-1.547c0-.414.075-.808.223-1.183.156-.375.375-.707.656-.996.281-.297.61-.532.985-.703a2.99 2.99 0 0 1 1.242-.258Zm5.66 0c.578 0 1.074.125 1.488.375.422.25.742.597.961 1.043.227.437.34.945.34 1.523v.633h-4.289c.078.398.273.719.586.961.312.242.695.363 1.148.363.43 0 .821-.086 1.172-.258.352-.172.633-.347.844-.527l-.012 1.383c-.187.164-.468.332-.844.504a2.952 2.952 0 0 1-1.218.246 3.283 3.283 0 0 1-1.606-.399 3.14 3.14 0 0 1-1.148-1.089c-.281-.461-.422-.989-.422-1.583 0-.578.129-1.105.387-1.582a3.071 3.071 0 0 1 1.066-1.148 2.759 2.759 0 0 1 1.547-.445Zm-.035 1.3c-.367 0-.676.114-.926.34-.25.227-.422.532-.516.914h2.836c-.031-.422-.187-.734-.468-.937a1.511 1.511 0 0 0-.926-.317Zm5.672-3.668V193h-1.489v-8.438h1.489Zm3.304 0V193h-1.488v-8.438h1.488Zm4.407 2.368c.578 0 1.074.125 1.488.375.422.25.742.597.961 1.043.226.437.34.945.34 1.523v.633h-4.289c.078.398.273.719.586.961.312.242.695.363 1.148.363.43 0 .82-.086 1.172-.258.351-.172.633-.347.844-.527l-.012 1.383c-.188.164-.469.332-.844.504a2.953 2.953 0 0 1-1.219.246 3.277 3.277 0 0 1-1.605-.399 3.132 3.132 0 0 1-1.148-1.089c-.282-.461-.422-.989-.422-1.583 0-.578.129-1.105.386-1.582a3.082 3.082 0 0 1 1.067-1.148 2.759 2.759 0 0 1 1.547-.445Zm-.036 1.3c-.367 0-.675.114-.925.34-.25.227-.422.532-.516.914h2.836c-.031-.422-.187-.734-.469-.937a1.51 1.51 0 0 0-.926-.317Zm9.809-3.668V193h-1.488v-.996c-.172.32-.422.598-.75.832-.328.226-.711.34-1.149.34-.476 0-.918-.121-1.324-.364a2.627 2.627 0 0 1-.961-1.054c-.242-.461-.363-1.02-.363-1.676 0-.656.121-1.219.363-1.687a2.72 2.72 0 0 1 .996-1.079 2.631 2.631 0 0 1 1.395-.386c.32 0 .644.074.972.222.329.149.602.348.821.598v-3.188h1.488Zm-2.977 3.833a1.34 1.34 0 0 0-.808.246 1.606 1.606 0 0 0-.516.621c-.125.25-.187.523-.187.82 0 .445.133.824.398 1.137.274.312.633.469 1.078.469.266 0 .512-.071.739-.211a1.56 1.56 0 0 0 .562-.586c.149-.258.223-.567.223-.926v-.844a2.443 2.443 0 0 0-.692-.527 1.625 1.625 0 0 0-.797-.199Z"}),u.createElement("rect",{width:141,height:23,x:680.5,y:177.5,stroke:"#FEB0B7",rx:3.5}),u.createElement("rect",{width:139,height:23,x:287.5,y:146.5,fill:"#F1F0FC",rx:3.5}),u.createElement("path",{fill:"#6C65E5",d:"M304 150.5a7.493 7.493 0 0 0-7.5 7.5c0 4.148 3.352 7.5 7.5 7.5s7.5-3.352 7.5-7.5-3.352-7.5-7.5-7.5Zm0 13.5c-3.307 0-6-2.693-6-6s2.693-6 6-6 6 2.693 6 6-2.693 6-6 6Z"}),u.createElement("path",{fill:"#615BC2",d:"M321.979 153.494c.398 0 .788.055 1.168.165.381.11.724.279 1.029.508.313.229.558.516.736.863.186.339.279.745.279 1.219 0 .499-.127.931-.38 1.295a2.56 2.56 0 0 1-.978.838 3.637 3.637 0 0 1-1.32.343l3.059 3.275h-2.323l-2.958-3.479V162h-1.765v-8.506h3.453Zm-1.688 1.651v2.145c.203.068.427.123.673.165.254.034.508.051.762.051.507 0 .909-.102 1.206-.305.304-.211.457-.508.457-.889 0-.414-.161-.71-.483-.888-.313-.186-.698-.279-1.155-.279h-1.46Zm9.052.279c.626 0 1.164.135 1.612.406.457.271.804.648 1.041 1.13.246.474.368 1.024.368 1.65v.686h-4.646c.084.432.296.779.635 1.041.338.262.753.393 1.244.393.465 0 .888-.093 1.269-.279.381-.186.686-.376.914-.571l-.012 1.498c-.204.178-.508.36-.914.546a3.198 3.198 0 0 1-1.321.266 3.553 3.553 0 0 1-1.739-.431 3.405 3.405 0 0 1-1.244-1.181c-.305-.499-.457-1.071-.457-1.714 0-.626.139-1.197.419-1.714a3.328 3.328 0 0 1 1.155-1.244 2.993 2.993 0 0 1 1.676-.482Zm-.038 1.409a1.44 1.44 0 0 0-1.003.368c-.271.246-.457.576-.559.99h3.072c-.033-.457-.203-.795-.507-1.015a1.633 1.633 0 0 0-1.003-.343Zm10.727-1.244L336.998 162h-1.028l-2.996-6.411h1.879l1.612 3.973 1.688-3.973h1.879Zm2.463-3.339c.305 0 .567.11.787.33a1.048 1.048 0 0 1 0 1.524c-.22.22-.482.33-.787.33-.305 0-.567-.11-.787-.33a1.066 1.066 0 0 1-.317-.762c0-.296.105-.55.317-.762.22-.22.482-.33.787-.33Zm.94 3.339V162h-1.613v-5.04h-1.028v-1.371h2.641Zm4.836-.165c.627 0 1.164.135 1.613.406.457.271.804.648 1.041 1.13.245.474.368 1.024.368 1.65v.686h-4.647c.085.432.297.779.635 1.041.339.262.754.393 1.244.393.466 0 .889-.093 1.27-.279.381-.186.685-.376.914-.571l-.013 1.498c-.203.178-.508.36-.914.546a3.197 3.197 0 0 1-1.32.266 3.55 3.55 0 0 1-1.739-.431 3.397 3.397 0 0 1-1.244-1.181c-.305-.499-.458-1.071-.458-1.714 0-.626.14-1.197.419-1.714.28-.516.665-.931 1.156-1.244a2.992 2.992 0 0 1 1.675-.482Zm-.038 1.409c-.397 0-.732.123-1.003.368-.27.246-.457.576-.558.99h3.072c-.034-.457-.203-.795-.508-1.015a1.63 1.63 0 0 0-1.003-.343Zm13.445-1.244L359.456 162h-1.168l-1.498-4.151-1.498 4.151h-1.181l-2.209-6.411h1.752l1.181 3.796 1.384-3.796h1.155l1.371 3.796 1.181-3.796h1.752Zm8.963 1.803a1.707 1.707 0 0 0-.851-.229 1.26 1.26 0 0 0-.927.368 3.44 3.44 0 0 0-.647.889V162h-1.612v-6.411h1.612v1.206a3.63 3.63 0 0 1 .774-.952 1.566 1.566 0 0 1 1.029-.381c.228 0 .435.038.622.114v1.816Zm4.049-1.968c.627 0 1.164.135 1.613.406.457.271.804.648 1.041 1.13.245.474.368 1.024.368 1.65v.686h-4.647c.085.432.297.779.635 1.041.339.262.753.393 1.244.393.466 0 .889-.093 1.27-.279.381-.186.685-.376.914-.571l-.013 1.498c-.203.178-.508.36-.914.546a3.197 3.197 0 0 1-1.32.266 3.55 3.55 0 0 1-1.739-.431 3.407 3.407 0 0 1-1.245-1.181c-.304-.499-.457-1.071-.457-1.714 0-.626.14-1.197.419-1.714.28-.516.665-.931 1.156-1.244a2.992 2.992 0 0 1 1.675-.482Zm-.038 1.409c-.397 0-.732.123-1.003.368-.27.246-.457.576-.558.99h3.072c-.034-.457-.203-.795-.508-1.015a1.63 1.63 0 0 0-1.003-.343Zm7.072-1.409c.347 0 .698.08 1.053.241.356.161.652.377.889.647v-.723h1.612v9.458h-1.612v-4.126a2.645 2.645 0 0 1-.812.901 2.135 2.135 0 0 1-1.245.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.041-1.143-.263-.499-.394-1.104-.394-1.815 0-.711.131-1.32.394-1.828.271-.508.63-.897 1.079-1.168.457-.28.961-.419 1.511-.419Zm.33 1.587c-.339 0-.631.089-.876.266-.237.17-.423.394-.559.673a1.965 1.965 0 0 0-.203.889c0 .482.144.893.432 1.231.296.33.685.495 1.168.495.287 0 .554-.072.799-.215a1.7 1.7 0 0 0 .61-.635c.161-.279.241-.614.241-1.003v-.914a2.606 2.606 0 0 0-.749-.571 1.763 1.763 0 0 0-.863-.216Zm10.867-1.422v3.821c0 .567-.127 1.058-.381 1.473a2.543 2.543 0 0 1-1.041.939 3.2 3.2 0 0 1-1.473.33c-.558 0-1.058-.11-1.498-.33a2.565 2.565 0 0 1-1.028-.939c-.245-.415-.368-.906-.368-1.473v-3.821h1.625l.013 3.529c0 .5.114.872.342 1.117.229.246.534.369.914.369.373 0 .673-.123.902-.369.237-.245.355-.617.355-1.117v-3.529h1.638Zm3.186-3.339c.305 0 .567.11.788.33a1.048 1.048 0 0 1 0 1.524c-.221.22-.483.33-.788.33-.304 0-.567-.11-.787-.33a1.07 1.07 0 0 1-.317-.762c0-.296.106-.55.317-.762.22-.22.483-.33.787-.33Zm.94 3.339V162h-1.612v-5.04h-1.029v-1.371h2.641Zm6.068 1.803a1.703 1.703 0 0 0-.85-.229c-.373 0-.682.123-.927.368a3.441 3.441 0 0 0-.648.889V162h-1.612v-6.411h1.612v1.206c.22-.381.479-.698.775-.952a1.564 1.564 0 0 1 1.028-.381c.229 0 .436.038.622.114v1.816Zm4.05-1.968c.626 0 1.164.135 1.612.406.457.271.804.648 1.041 1.13.246.474.369 1.024.369 1.65v.686h-4.647c.085.432.296.779.635 1.041.338.262.753.393 1.244.393a2.85 2.85 0 0 0 1.269-.279c.381-.186.686-.376.915-.571l-.013 1.498c-.203.178-.508.36-.914.546a3.198 3.198 0 0 1-1.321.266 3.556 3.556 0 0 1-1.739-.431 3.405 3.405 0 0 1-1.244-1.181c-.305-.499-.457-1.071-.457-1.714 0-.626.14-1.197.419-1.714a3.328 3.328 0 0 1 1.155-1.244 2.996 2.996 0 0 1 1.676-.482Zm-.038 1.409a1.44 1.44 0 0 0-1.003.368c-.271.246-.457.576-.559.99h3.073c-.034-.457-.203-.795-.508-1.015a1.633 1.633 0 0 0-1.003-.343Zm10.626-3.974V162h-1.612v-1.079a2.648 2.648 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.994-.131-1.435-.393-.431-.262-.778-.643-1.041-1.143-.262-.499-.393-1.104-.393-1.815 0-.711.131-1.32.393-1.828a2.946 2.946 0 0 1 1.08-1.168c.457-.28.96-.419 1.51-.419.347 0 .698.08 1.054.241.355.161.652.377.889.647v-3.453h1.612Zm-3.225 4.152c-.338 0-.63.089-.876.266-.237.17-.423.394-.558.673a1.952 1.952 0 0 0-.203.889c0 .482.144.893.431 1.231.296.339.686.508 1.168.508.288 0 .555-.076.8-.228a1.69 1.69 0 0 0 .609-.635c.161-.279.242-.614.242-1.003v-.914a2.633 2.633 0 0 0-.749-.571 1.77 1.77 0 0 0-.864-.216Z"}),u.createElement("rect",{width:139,height:23,x:287.5,y:146.5,stroke:"#BEBBF3",rx:3.5}),u.createElement("rect",{width:88,height:23,x:142.5,y:146.5,fill:"#FFF4E5",rx:3.5}),u.createElement("path",{fill:"#B35300",d:"M154.692 153.291c.897 0 1.684.182 2.361.546a3.9 3.9 0 0 1 1.574 1.523c.381.652.572 1.418.572 2.298 0 .838-.178 1.6-.533 2.285a4.056 4.056 0 0 1-1.524 1.613c-.66.397-1.447.596-2.361.596a17.819 17.819 0 0 1-3.39-.33v-8.201a41.433 41.433 0 0 1 1.612-.228 13.767 13.767 0 0 1 1.689-.102Zm.038 1.65a9.506 9.506 0 0 0-1.574.14v5.281c.254.051.516.089.787.115.279.016.542.025.787.025.559 0 1.037-.119 1.435-.356.397-.245.702-.579.914-1.002.211-.424.317-.898.317-1.422 0-.542-.106-1.02-.317-1.435a2.372 2.372 0 0 0-.914-.977c-.398-.246-.876-.369-1.435-.369Zm10.067 2.451a1.7 1.7 0 0 0-.85-.229c-.373 0-.682.123-.927.368a3.44 3.44 0 0 0-.647.889V162h-1.613v-6.411h1.613v1.206a3.63 3.63 0 0 1 .774-.952 1.564 1.564 0 0 1 1.028-.381c.229 0 .436.038.622.114v1.816Zm3.784-1.968c.347 0 .698.08 1.053.241.356.161.652.377.889.647v-.723h1.612V162h-1.612v-1.079a2.638 2.638 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.041-1.143-.263-.499-.394-1.104-.394-1.815 0-.711.131-1.32.394-1.828.271-.508.63-.897 1.079-1.168.457-.28.96-.419 1.511-.419Zm.33 1.574a1.45 1.45 0 0 0-.876.267 1.735 1.735 0 0 0-.559.673 2.04 2.04 0 0 0-.203.901c0 .482.144.893.432 1.231.296.339.685.508 1.168.508.287 0 .554-.076.799-.228a1.7 1.7 0 0 0 .61-.635c.161-.279.241-.614.241-1.003v-.914a2.848 2.848 0 0 0-.749-.584 1.763 1.763 0 0 0-.863-.216Zm8.963-1.409v1.346h-1.664V162h-1.612v-5.065h-.977v-1.346h.977v-.571c0-.491.102-.91.305-1.257.211-.356.486-.627.825-.813a2.283 2.283 0 0 1 1.117-.279c.271 0 .508.03.711.089.203.059.381.139.533.241v1.346a1.731 1.731 0 0 0-.964-.241.985.985 0 0 0-.648.253c-.178.153-.267.407-.267.762v.47h1.664Zm3.656-1.866v1.866h1.777v1.346h-1.777v2.767c0 .288.063.516.19.686.136.161.335.241.597.241.228 0 .423-.025.584-.076.169-.051.326-.123.47-.216v1.282a2.012 2.012 0 0 1-.61.406c-.237.11-.537.165-.901.165-.576 0-1.045-.182-1.409-.545-.356-.373-.534-.881-.534-1.524v-3.186h-1.155v-.826c.406-.144.779-.414 1.117-.812.347-.398.622-.923.826-1.574h.825Zm8.912 1.866v.812c.195-.245.427-.469.698-.672.279-.204.635-.305 1.067-.305.448 0 .854.106 1.218.317.364.203.648.512.851.927.254-.347.55-.639.889-.876a1.96 1.96 0 0 1 1.18-.368c.432 0 .825.101 1.181.305.355.194.639.486.85.875.221.39.331.876.331 1.46V162h-1.613l-.012-3.72c0-.431-.115-.753-.343-.965-.22-.211-.512-.317-.876-.317-.28 0-.521.089-.724.267a3.597 3.597 0 0 0-.571.609V162h-1.612l-.013-3.72c0-.431-.114-.753-.343-.965-.22-.211-.508-.317-.863-.317a1.13 1.13 0 0 0-.724.254 3.057 3.057 0 0 0-.571.571V162h-1.612v-6.411h1.612Zm13.089-.165a3.31 3.31 0 0 1 1.714.457c.516.296.931.702 1.244 1.219.321.507.482 1.079.482 1.713 0 .635-.161 1.207-.482 1.714a3.576 3.576 0 0 1-1.244 1.219 3.388 3.388 0 0 1-1.714.444 3.43 3.43 0 0 1-1.714-.444 3.576 3.576 0 0 1-1.244-1.219 3.198 3.198 0 0 1-.47-1.714c0-.634.157-1.206.47-1.713a3.428 3.428 0 0 1 1.244-1.219 3.351 3.351 0 0 1 1.714-.457Zm0 1.561c-.305 0-.588.072-.851.216a1.662 1.662 0 0 0-.635.622c-.152.271-.228.601-.228.99 0 .39.076.72.228.991.161.271.373.478.635.622.263.135.546.203.851.203.304 0 .588-.068.85-.203.263-.144.474-.351.635-.622.161-.271.241-.601.241-.991 0-.389-.08-.719-.241-.99a1.655 1.655 0 0 0-.635-.622 1.738 1.738 0 0 0-.85-.216Zm11.057-4.126V162h-1.612v-1.079a2.645 2.645 0 0 1-.812.901 2.135 2.135 0 0 1-1.245.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.041-1.143-.263-.499-.394-1.104-.394-1.815 0-.711.131-1.32.394-1.828.271-.508.63-.897 1.079-1.168.457-.28.961-.419 1.511-.419.347 0 .698.08 1.053.241.356.161.652.377.889.647v-3.453h1.612Zm-3.224 4.152c-.339 0-.631.089-.876.266-.237.17-.423.394-.559.673a1.965 1.965 0 0 0-.203.889c0 .482.144.893.432 1.231.296.339.685.508 1.168.508.287 0 .554-.076.799-.228.254-.153.458-.364.61-.635.161-.279.241-.614.241-1.003v-.914a2.606 2.606 0 0 0-.749-.571 1.763 1.763 0 0 0-.863-.216Zm8.011-1.587c.626 0 1.163.135 1.612.406.457.271.804.648 1.041 1.13.245.474.368 1.024.368 1.65v.686h-4.646c.084.432.296.779.634 1.041.339.262.754.393 1.244.393.466 0 .889-.093 1.27-.279.381-.186.685-.376.914-.571l-.013 1.498c-.203.178-.507.36-.914.546a3.197 3.197 0 0 1-1.32.266 3.55 3.55 0 0 1-1.739-.431 3.397 3.397 0 0 1-1.244-1.181c-.305-.499-.457-1.071-.457-1.714 0-.626.139-1.197.418-1.714.28-.516.665-.931 1.156-1.244a2.993 2.993 0 0 1 1.676-.482Zm-.039 1.409c-.397 0-.732.123-1.003.368-.27.246-.457.576-.558.99h3.072c-.034-.457-.203-.795-.508-1.015a1.63 1.63 0 0 0-1.003-.343Z"}),u.createElement("rect",{width:88,height:23,x:142.5,y:146.5,stroke:"#FFC46F",rx:3.5}),u.createElement("path",{fill:"#202021",d:"M243 157.25a.75.75 0 0 0 0 1.5v-1.5Zm32.53 1.28a.749.749 0 0 0 0-1.06l-4.773-4.773a.749.749 0 1 0-1.06 1.06l4.242 4.243-4.242 4.243a.749.749 0 1 0 1.06 1.06l4.773-4.773Zm-32.53.22h32v-1.5h-32v1.5ZM110 157.25a.75.75 0 0 0 0 1.5v-1.5Zm20.53 1.28a.749.749 0 0 0 0-1.06l-4.773-4.773a.749.749 0 1 0-1.06 1.06l4.242 4.243-4.242 4.243a.749.749 0 1 0 1.06 1.06l4.773-4.773Zm-20.53.22h20v-1.5h-20v1.5ZM636 125.25a.75.75 0 0 0 0 1.5v-1.5Zm32.53 1.28a.749.749 0 0 0 0-1.06l-4.773-4.773a.749.749 0 1 0-1.06 1.06l4.242 4.243-4.242 4.243a.749.749 0 1 0 1.06 1.06l4.773-4.773Zm-32.53.22h32v-1.5h-32v1.5ZM636 188.25a.75.75 0 0 0 0 1.5v-1.5Zm32.53 1.28a.749.749 0 0 0 0-1.06l-4.773-4.773a.749.749 0 1 0-1.06 1.06l4.242 4.243-4.242 4.243a.749.749 0 1 0 1.06 1.06l4.773-4.773Zm-32.53.22h32v-1.5h-32v1.5Z"}),u.createElement("path",{stroke:"#202021",strokeLinecap:"round",strokeWidth:1.5,d:"M439 158h30"}),u.createElement("path",{fill:"#202021",d:"m480.501 132.407-.643-.386.643.386Zm22.984-5.428a.75.75 0 0 0 .089-1.057l-4.361-5.153a.75.75 0 1 0-1.145.969l3.876 4.58-4.58 3.876a.75.75 0 1 0 .969 1.145l5.152-4.36ZM466 158.75c3.095 0 5.328-1.166 6.97-3.066 1.61-1.863 2.622-4.395 3.406-7.092.779-2.68 1.374-5.69 2.059-8.428.696-2.786 1.499-5.353 2.709-7.372l-1.286-.771c-1.332 2.221-2.177 4.972-2.879 7.78-.714 2.856-1.27 5.714-2.043 8.372-.768 2.643-1.709 4.919-3.101 6.53-1.36 1.574-3.18 2.547-5.835 2.547v1.5Zm15.144-25.958c1.006-1.676 2.803-2.906 5.046-3.789 2.235-.881 4.835-1.386 7.331-1.664 2.491-.277 4.849-.323 6.587-.3.868.012 1.579.04 2.071.066.247.013.438.026.567.034l.146.011a.637.637 0 0 1 .036.003h.009l.002.001.062-.748.062-.747h-.001l-.003-.001h-.011l-.042-.004-.157-.011a50.879 50.879 0 0 0-.591-.036 56.858 56.858 0 0 0-2.13-.068 55.836 55.836 0 0 0-6.773.309c-2.566.286-5.31.811-7.715 1.759-2.398.945-4.538 2.34-5.782 4.414l1.286.771Z"}),u.createElement("path",{fill:"#202021",d:"m480.502 183.5-.643.386.643-.386Zm22.984 5.428a.75.75 0 0 1 .088 1.057l-4.36 5.153a.75.75 0 0 1-1.145-.969l3.875-4.58-4.58-3.876a.75.75 0 0 1 .969-1.145l5.153 4.36ZM466 157.25c3.094 0 5.326 1.159 6.969 3.05 1.61 1.854 2.623 4.375 3.407 7.06.779 2.669 1.374 5.668 2.059 8.396.697 2.778 1.499 5.34 2.71 7.358l-1.286.772c-1.332-2.22-2.177-4.966-2.879-7.765-.714-2.847-1.271-5.694-2.044-8.34-.768-2.63-1.708-4.895-3.1-6.497-1.36-1.565-3.18-2.534-5.836-2.534v-1.5Zm15.145 25.864c1.005 1.677 2.803 2.907 5.045 3.79 2.235.881 4.835 1.386 7.332 1.663 2.491.277 4.849.324 6.587.301a53.867 53.867 0 0 0 2.638-.101l.146-.01.036-.003.008-.001h.002l.062.747.062.748h-.004l-.011.001a54.48 54.48 0 0 1-2.919.119c-1.779.023-4.202-.024-6.773-.31-2.566-.285-5.31-.811-7.716-1.758-2.398-.945-4.538-2.34-5.781-4.414l1.286-.772ZM47.633 143.635c.665 0 1.207.091 1.627.273.428.182.802.419 1.12.711v1.354c-.2-.146-.428-.306-.683-.479a3.959 3.959 0 0 0-.875-.451c-.328-.137-.724-.205-1.19-.205-.683 0-1.293.155-1.831.465-.538.31-.962.738-1.272 1.285-.31.538-.465 1.148-.465 1.832 0 .684.155 1.294.465 1.832.31.538.734.966 1.272 1.285.538.31 1.148.465 1.832.465.702 0 1.299-.114 1.79-.342a6.756 6.756 0 0 0 1.231-.724v1.23c-.319.283-.738.529-1.258.738-.51.201-1.098.301-1.763.301-.693 0-1.33-.123-1.914-.369a4.952 4.952 0 0 1-1.532-1.039 4.798 4.798 0 0 1-1.025-1.518 4.89 4.89 0 0 1-.355-1.859c0-.656.118-1.272.355-1.846a4.755 4.755 0 0 1 2.557-2.556 4.71 4.71 0 0 1 1.914-.383Zm8.217 2.392a2.6 2.6 0 0 1 1.271.315c.383.2.688.51.916.929.228.411.342.93.342 1.559V153h-1.121l-.014-4.061c0-.592-.132-1.043-.396-1.353-.256-.31-.652-.465-1.19-.465-.364 0-.729.137-1.093.41a4.8 4.8 0 0 0-.944.93V153H52.5v-9.844h1.121v4.088c.146-.182.333-.364.56-.547.229-.191.484-.351.766-.478.292-.128.593-.192.903-.192Zm7.465 0c.391 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.12V153h-1.12v-1.162c-.237.364-.56.683-.971.957-.401.273-.861.41-1.38.41a3.041 3.041 0 0 1-1.6-.437 3.326 3.326 0 0 1-1.163-1.245c-.282-.528-.423-1.139-.423-1.832 0-.756.14-1.408.423-1.955a3.102 3.102 0 0 1 1.19-1.257 3.204 3.204 0 0 1 1.681-.452Zm.205 1.094c-.493 0-.912.123-1.258.369a2.497 2.497 0 0 0-.807.957 2.858 2.858 0 0 0-.273 1.244c0 .438.09.844.273 1.217.182.365.438.656.766.875.337.219.724.328 1.162.328.42 0 .793-.109 1.12-.328.329-.219.589-.519.78-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.525 3.525 0 0 0-.916-.834 2.033 2.033 0 0 0-1.107-.301Zm6.603-.957v1.08c.146-.182.333-.364.56-.547.228-.191.484-.351.766-.478.292-.128.593-.192.903-.192a2.6 2.6 0 0 1 1.271.315c.383.2.688.51.916.929.228.411.342.93.342 1.559V153H73.76l-.014-4.061c0-.592-.132-1.043-.396-1.353-.256-.31-.652-.465-1.19-.465-.364 0-.729.137-1.094.41-.355.265-.67.574-.943.93V153h-1.121v-6.836h1.121Zm9.693-.137c.392 0 .789.096 1.19.287.41.183.76.438 1.053.766v-.916h1.12v6.699c0 .811-.163 1.486-.492 2.024a3.092 3.092 0 0 1-1.312 1.203 4.065 4.065 0 0 1-1.791.396c-.42 0-.78-.05-1.08-.15a2.73 2.73 0 0 1-.752-.356c-.21-.136-.401-.268-.574-.396v-1.203c.136.1.314.228.533.383.228.164.497.31.807.437a2.84 2.84 0 0 0 1.066.192c.447 0 .857-.082 1.23-.247.374-.164.675-.405.903-.724.228-.319.342-.702.342-1.149v-1.435c-.237.364-.561.683-.971.957-.401.273-.861.41-1.381.41a3.042 3.042 0 0 1-1.6-.437 3.327 3.327 0 0 1-1.162-1.245c-.282-.528-.423-1.139-.423-1.832 0-.756.14-1.408.423-1.955a3.102 3.102 0 0 1 1.19-1.257 3.204 3.204 0 0 1 1.681-.452Zm.206 1.108c-.493 0-.912.123-1.258.369a2.39 2.39 0 0 0-.807.943 2.858 2.858 0 0 0-.273 1.244c0 .438.09.839.273 1.204.182.364.438.656.766.875.337.218.724.328 1.162.328.419 0 .793-.11 1.12-.328a2.29 2.29 0 0 0 .78-.903c.192-.383.283-.816.274-1.299l-.014-1.312a3.307 3.307 0 0 0-.916-.82 2.033 2.033 0 0 0-1.108-.301Zm8.298-1.108c.702 0 1.286.146 1.75.438a2.69 2.69 0 0 1 1.04 1.189c.236.502.355 1.067.355 1.696v.67h-5.25c.054.382.187.733.396 1.052.21.319.483.574.82.766.338.182.725.273 1.163.273.492 0 .952-.123 1.38-.369a5.187 5.187 0 0 0 1.08-.834l-.013 1.217a2.73 2.73 0 0 1-.574.492 3.583 3.583 0 0 1-.861.41 2.87 2.87 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.656 3.656 0 0 1-.452-1.791c0-.647.142-1.244.424-1.791.283-.547.67-.984 1.162-1.312a3.045 3.045 0 0 1 1.71-.493Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.115c-.045-.446-.173-.811-.382-1.093a1.873 1.873 0 0 0-.739-.629 2.02 2.02 0 0 0-.916-.219Zm7.028-1.094c.4 0 .774.06 1.12.178.347.109.598.223.753.342v1.203a3.562 3.562 0 0 0-.78-.424 2.602 2.602 0 0 0-1.011-.205c-.429 0-.752.1-.971.301-.21.2-.315.41-.315.629 0 .173.06.351.178.533.128.173.347.314.656.424l1.149.41c.447.155.78.378.998.67.219.292.328.633.328 1.025 0 .383-.11.734-.328 1.053a2.23 2.23 0 0 1-.889.766c-.373.182-.806.273-1.299.273-.264 0-.542-.036-.834-.109a5.115 5.115 0 0 1-.765-.233 3.618 3.618 0 0 1-.506-.259V151.4c.128.092.305.196.533.315.237.109.488.205.752.287.264.073.51.109.739.109.428 0 .765-.095 1.011-.287.255-.191.383-.428.383-.711a.61.61 0 0 0-.26-.519c-.164-.128-.405-.251-.724-.369l-1.012-.37c-.529-.2-.88-.451-1.053-.751a2.122 2.122 0 0 1-.26-1.053c0-.584.22-1.067.657-1.449.437-.383 1.02-.575 1.75-.575Zm-49.26 17.129V173h-1.121v-1.162c-.237.364-.56.683-.97.957-.402.273-.862.41-1.382.41a3.042 3.042 0 0 1-1.6-.437 3.327 3.327 0 0 1-1.162-1.245c-.282-.528-.423-1.139-.423-1.832 0-.756.141-1.408.423-1.955a3.102 3.102 0 0 1 1.19-1.257 3.204 3.204 0 0 1 1.682-.452c.392 0 .788.096 1.19.287.41.183.76.438 1.052.766v-3.924h1.12Zm-3.158 3.992c-.492 0-.912.123-1.258.37a2.412 2.412 0 0 0-.807.929 2.858 2.858 0 0 0-.273 1.244c0 .438.09.844.273 1.217.182.365.438.656.766.875.337.219.724.328 1.162.328.42 0 .793-.109 1.121-.328.328-.219.588-.519.78-.902a2.83 2.83 0 0 0 .273-1.313l-.014-1.312a3.307 3.307 0 0 0-.916-.82 2.105 2.105 0 0 0-1.107-.288Zm8.298-1.121c.702 0 1.286.146 1.75.438a2.69 2.69 0 0 1 1.04 1.189c.237.502.355 1.067.355 1.696v.67h-5.25c.055.382.187.733.397 1.052.21.319.483.574.82.766.337.182.724.273 1.162.273.492 0 .952-.123 1.38-.369a5.187 5.187 0 0 0 1.08-.834l-.013 1.217a2.73 2.73 0 0 1-.574.492 3.583 3.583 0 0 1-.861.41 2.87 2.87 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.656 3.656 0 0 1-.451-1.791c0-.647.14-1.244.423-1.791.283-.547.67-.984 1.163-1.312a3.045 3.045 0 0 1 1.708-.493Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.116c-.046-.446-.174-.811-.383-1.093a1.873 1.873 0 0 0-.739-.629 2.02 2.02 0 0 0-.916-.219Zm6.877-2.926v1.969h1.997v1.053h-1.996v4.006c0 .282.072.506.218.67.146.164.37.246.67.246.274 0 .501-.032.684-.096.182-.073.342-.15.478-.232v.916a2.268 2.268 0 0 1-.588.341c-.2.092-.474.137-.82.137-.583 0-1.025-.173-1.326-.519-.292-.356-.438-.825-.438-1.409v-4.06h-1.312v-.328c.447-.201.82-.529 1.121-.985.3-.465.565-1.034.793-1.709h.52Zm6.85 1.832c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.04 1.189c.236.502.355 1.067.355 1.696v.67h-5.25c.054.382.186.733.396 1.052.21.319.483.574.82.766.338.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.187 5.187 0 0 0 1.08-.834l-.013 1.217a2.73 2.73 0 0 1-.574.492 3.582 3.582 0 0 1-.862.41 2.87 2.87 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.272-1.299 3.656 3.656 0 0 1-.45-1.791c0-.647.14-1.244.423-1.791.282-.547.67-.984 1.162-1.312a3.045 3.045 0 0 1 1.71-.493Zm0 1.094c-.565 0-1.03.191-1.395.574-.364.374-.592.83-.683 1.367h4.115c-.045-.446-.173-.811-.383-1.093a1.873 1.873 0 0 0-.738-.629 2.02 2.02 0 0 0-.916-.219Zm8.08-1.094c.502 0 .934.082 1.299.246.365.155.615.297.752.424v1.135a4.067 4.067 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219a2.28 2.28 0 0 0-1.271.356 2.336 2.336 0 0 0-.848.916 2.654 2.654 0 0 0-.287 1.23c0 .438.096.848.287 1.231.2.373.483.679.848.916.364.227.788.341 1.271.341.456 0 .848-.068 1.176-.205a4.47 4.47 0 0 0 .875-.506v1.135c-.137.137-.387.283-.752.438-.365.155-.797.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.656 3.656 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.58 3.58 0 0 1 1.271-1.312c.538-.329 1.153-.493 1.846-.493Zm5.783-1.832v1.969h1.996v1.053h-1.996v4.006c0 .282.073.506.22.67.145.164.368.246.669.246.274 0 .501-.032.684-.096.182-.073.341-.15.478-.232v.916a2.269 2.269 0 0 1-.588.341c-.2.092-.474.137-.82.137-.583 0-1.025-.173-1.326-.519-.292-.356-.438-.825-.438-1.409v-4.06h-1.312v-.328c.446-.201.82-.529 1.12-.985.302-.465.566-1.034.794-1.709h.52Zm6.85 1.832c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.039 1.189c.237.502.356 1.067.356 1.696v.67h-5.25c.054.382.186.733.396 1.052.21.319.483.574.82.766.338.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.184 5.184 0 0 0 1.08-.834l-.013 1.217a2.73 2.73 0 0 1-.575.492 3.584 3.584 0 0 1-.86.41 2.87 2.87 0 0 1-1.013.178c-.692 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.656 3.656 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.312a3.044 3.044 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.395.574-.364.374-.592.83-.683 1.367h4.115c-.046-.446-.173-.811-.383-1.093a1.873 1.873 0 0 0-.738-.629 2.02 2.02 0 0 0-.916-.219Zm11.17-3.965V173h-1.121v-1.162c-.237.364-.56.683-.97.957-.402.273-.862.41-1.382.41a3.042 3.042 0 0 1-1.6-.437 3.327 3.327 0 0 1-1.162-1.245c-.282-.528-.423-1.139-.423-1.832 0-.756.141-1.408.423-1.955a3.102 3.102 0 0 1 1.19-1.257 3.204 3.204 0 0 1 1.682-.452c.392 0 .788.096 1.19.287.41.183.76.438 1.052.766v-3.924h1.12Zm-3.158 3.992c-.493 0-.912.123-1.258.37a2.412 2.412 0 0 0-.807.929 2.858 2.858 0 0 0-.273 1.244c0 .438.09.844.273 1.217.183.365.438.656.766.875.337.219.725.328 1.162.328.42 0 .793-.109 1.121-.328.328-.219.588-.519.78-.902a2.83 2.83 0 0 0 .273-1.313l-.014-1.312a3.307 3.307 0 0 0-.916-.82 2.105 2.105 0 0 0-1.107-.288Z"}),u.createElement("circle",{cx:455,cy:158,r:5,fill:"#6C65E5",stroke:"#F2F2F5",strokeWidth:2}),u.createElement("path",{stroke:"#6C65E5",strokeLinecap:"round",strokeWidth:1.5,d:"M455 157v-50"}),u.createElement("path",{fill:"#615BC2",d:"M371.349 64.813v5.564c0 .793-.169 1.477-.506 2.05a3.34 3.34 0 0 1-1.34 1.3c-.565.3-1.208.45-1.928.45-.711 0-1.353-.15-1.928-.45a3.43 3.43 0 0 1-1.353-1.3c-.328-.574-.492-1.257-.492-2.05v-5.564h1.23v5.523c0 .62.114 1.121.342 1.504.237.383.547.66.93.834.392.164.815.246 1.271.246.456-.01.875-.096 1.258-.26.392-.173.702-.447.93-.82.237-.383.355-.884.355-1.504v-5.523h1.231Zm4.566 2.214c.401 0 .775.06 1.121.178.346.11.597.223.752.342v1.203a3.548 3.548 0 0 0-.779-.424 2.61 2.61 0 0 0-1.012-.205c-.428 0-.752.1-.971.3-.209.201-.314.411-.314.63 0 .173.059.35.178.533.127.173.346.314.656.424l1.148.41c.447.155.78.378.998.67.219.292.329.633.329 1.025 0 .383-.11.734-.329 1.053a2.217 2.217 0 0 1-.888.766c-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.073 5.073 0 0 1-.766-.232 3.571 3.571 0 0 1-.506-.26V72.4c.128.091.306.196.534.315.237.11.487.205.752.287.264.073.51.11.738.11.428 0 .765-.096 1.012-.288.255-.191.382-.428.382-.71a.611.611 0 0 0-.259-.52c-.164-.128-.406-.25-.725-.37l-1.012-.368c-.528-.201-.879-.452-1.052-.752-.174-.31-.26-.661-.26-1.053 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574Zm6.631 0c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.21.32.483.575.82.766.337.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.735 2.735 0 0 1-.575.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm6.111-.957v1.367a3.53 3.53 0 0 1 .957-1.094c.374-.273.757-.41 1.149-.41.264 0 .501.046.711.137v1.299a1.704 1.704 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.283.328-.552.72-.807 1.176V74h-1.121v-6.836h1.121Zm17.322 0L403.587 74h-.697l-1.873-4.826L399.144 74h-.698l-2.392-6.836h1.34l1.517 4.799 1.791-4.799h.629l1.791 4.799 1.518-4.799h1.339Zm2.461-3.281c.265 0 .484.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.847.847 0 0 1-.657.287.887.887 0 0 1-.669-.287.93.93 0 0 1-.26-.642.9.9 0 0 1 .26-.643.887.887 0 0 1 .669-.287Zm.698 3.281V74h-1.121v-5.783h-1.08v-1.053h2.201Zm4.306-1.969v1.97h1.996v1.052h-1.996v4.006c0 .282.073.505.219.67.146.164.369.246.67.246a2.1 2.1 0 0 0 .684-.096c.182-.073.341-.15.478-.233v.917c-.182.145-.378.26-.588.341-.2.091-.474.137-.82.137-.583 0-1.025-.173-1.326-.52-.292-.355-.438-.824-.438-1.408v-4.06h-1.312v-.328c.446-.2.82-.529 1.121-.985.301-.465.565-1.034.793-1.709h.519Zm7.383 1.832c.465 0 .889.105 1.272.315.382.2.688.51.916.93.228.41.341.93.341 1.558V74h-1.121l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V74h-1.121v-9.844h1.121v4.088c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192Zm12.223 0a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.292.51.437 1.112.437 1.805 0 .747-.145 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.391 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V67.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.315-.328.21-.588.5-.779.874-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383.347-.255.611-.583.793-.984.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.15 2.15 0 0 0-.766-.847c-.328-.21-.715-.315-1.162-.315Zm6.33-.957v1.367c.264-.456.583-.82.957-1.094.374-.273.757-.41 1.149-.41.264 0 .501.046.711.137v1.299a1.704 1.704 0 0 0-.875-.26c-.465 0-.844.164-1.135.492-.283.328-.552.72-.807 1.176V74h-1.121v-6.836h1.121Zm7.342-.137c.693 0 1.308.164 1.846.492.537.329.957.766 1.257 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.3.538-.72.97-1.257 1.299-.538.328-1.153.492-1.846.492-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.733-.984 1.271-1.313.538-.328 1.153-.492 1.846-.492Zm0 1.094c-.483 0-.907.119-1.272.356a2.342 2.342 0 0 0-.847.916 2.652 2.652 0 0 0-.287 1.23c0 .438.095.848.287 1.23.2.374.483.68.847.916.365.228.789.342 1.272.342.492 0 .916-.114 1.271-.342.365-.236.643-.542.834-.916.201-.382.301-.792.301-1.23 0-.447-.1-.857-.301-1.23a2.239 2.239 0 0 0-.834-.916c-.355-.237-.779-.356-1.271-.356Zm8.887-1.094a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.291.51.437 1.112.437 1.805 0 .747-.146 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.392 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V67.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.315-.328.21-.588.5-.779.874-.183.365-.274.793-.274 1.286l.014 1.312c.291.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.492 0 .912-.127 1.258-.383a2.47 2.47 0 0 0 .793-.984 2.98 2.98 0 0 0 .287-1.271 2.52 2.52 0 0 0-.273-1.19 2.157 2.157 0 0 0-.766-.847c-.328-.21-.715-.315-1.162-.315Zm8.025-1.094c.702 0 1.285.146 1.75.438.465.291.812.688 1.039 1.19.237.5.356 1.066.356 1.695v.67h-5.25c.055.382.187.733.396 1.052.21.32.483.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.752 2.752 0 0 1-.574.492c-.246.164-.533.301-.862.41a2.88 2.88 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.606 3.606 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.452-1.791c0-.647.142-1.244.424-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.394.574-.365.374-.593.83-.684 1.368h4.115c-.045-.447-.173-.812-.382-1.094a1.878 1.878 0 0 0-.739-.63 2.021 2.021 0 0 0-.916-.218Zm6.112-.957v1.367c.264-.456.583-.82.957-1.094.373-.273.756-.41 1.148-.41.264 0 .501.046.711.137v1.299a1.701 1.701 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V74h-1.121v-6.836h1.121Zm11.826-.137a2.99 2.99 0 0 1 1.599.438c.484.282.866.683 1.149 1.203.292.51.437 1.112.437 1.805 0 .747-.145 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.391 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V67.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.315-.328.21-.588.5-.779.874-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383.347-.255.611-.583.793-.984.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.15 2.15 0 0 0-.766-.847c-.328-.21-.715-.315-1.162-.315Zm8.025-1.094c.702 0 1.286.146 1.75.438a2.69 2.69 0 0 1 1.04 1.19c.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.396 1.052.21.32.484.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.885 2.885 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.029.192-1.394.574-.365.374-.593.83-.684 1.368h4.116c-.046-.447-.174-.812-.383-1.094a1.878 1.878 0 0 0-.739-.63 2.021 2.021 0 0 0-.916-.218Zm6.112-.957v1.367c.264-.456.583-.82.957-1.094.374-.273.756-.41 1.148-.41.265 0 .502.046.711.137v1.299a1.698 1.698 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V74h-1.121v-6.836h1.121Zm5.373 0v.875c.219-.246.497-.474.834-.683.346-.22.752-.329 1.217-.329.492 0 .952.119 1.38.356.429.228.757.574.985 1.039a5.844 5.844 0 0 1 1.039-.984c.374-.274.811-.41 1.312-.41.465 0 .898.104 1.299.314.41.2.739.51.985.93.255.41.382.93.382 1.558V74h-1.121l-.013-4.06c0-.593-.155-1.044-.465-1.354-.301-.31-.72-.465-1.258-.465-.392 0-.734.123-1.025.37-.292.245-.57.532-.834.86V74h-1.121l-.014-4.06c0-.593-.155-1.044-.465-1.354-.301-.31-.72-.465-1.258-.465-.373 0-.715.11-1.025.328a4.535 4.535 0 0 0-.834.793V74h-1.121v-6.836h1.121Zm12.646-3.281c.265 0 .483.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.849.849 0 0 1-.657.287.891.891 0 0 1-.67-.287.934.934 0 0 1-.259-.642c0-.247.086-.46.259-.643a.891.891 0 0 1 .67-.287Zm.698 3.281V74h-1.121v-5.783h-1.081v-1.053h2.202Zm4.457-.137c.401 0 .774.06 1.121.178.346.11.597.223.752.342v1.203a3.558 3.558 0 0 0-.78-.424 2.605 2.605 0 0 0-1.011-.205c-.429 0-.752.1-.971.3-.21.201-.314.411-.314.63 0 .173.059.35.177.533.128.173.347.314.656.424l1.149.41c.447.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.373.182-.806.273-1.299.273-.264 0-.542-.036-.834-.11a5.095 5.095 0 0 1-.765-.232 3.516 3.516 0 0 1-.506-.26V72.4c.128.091.305.196.533.315.237.11.488.205.752.287.264.073.511.11.738.11.429 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.405-.25-.724-.37l-1.012-.368c-.529-.201-.88-.452-1.053-.752-.173-.31-.26-.661-.26-1.053 0-.584.219-1.067.657-1.45.437-.382 1.02-.574 1.75-.574Zm5.851 0c.401 0 .775.06 1.121.178.347.11.597.223.752.342v1.203a3.548 3.548 0 0 0-.779-.424 2.606 2.606 0 0 0-1.012-.205c-.428 0-.752.1-.97.3-.21.201-.315.411-.315.63 0 .173.059.35.178.533.127.173.346.314.656.424l1.148.41c.447.155.78.378.999.67.218.292.328.633.328 1.025 0 .383-.11.734-.328 1.053-.21.319-.506.574-.889.766-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.109 5.109 0 0 1-.766-.232 3.548 3.548 0 0 1-.505-.26V72.4c.127.091.305.196.533.315.237.11.487.205.752.287.264.073.51.11.738.11.428 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.406-.25-.725-.37l-1.012-.368c-.528-.201-.879-.452-1.052-.752-.173-.31-.26-.661-.26-1.053 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574Zm4.908-3.144c.265 0 .483.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.849.849 0 0 1-.657.287.891.891 0 0 1-.67-.287.934.934 0 0 1-.259-.642c0-.247.086-.46.259-.643a.891.891 0 0 1 .67-.287Zm.698 3.281V74h-1.121v-5.783h-1.081v-1.053h2.202Zm5.509-.137c.693 0 1.308.164 1.846.492.538.329.957.766 1.258 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.97-1.258 1.299-.538.328-1.153.492-1.846.492-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.734-.984 1.272-1.313.537-.328 1.153-.492 1.845-.492Zm0 1.094a2.28 2.28 0 0 0-1.271.356 2.344 2.344 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.201.374.483.68.848.916.365.228.788.342 1.271.342.493 0 .916-.114 1.272-.342.364-.236.642-.542.834-.916.2-.382.301-.792.301-1.23 0-.447-.101-.857-.301-1.23a2.253 2.253 0 0 0-.834-.916c-.356-.237-.779-.356-1.272-.356Zm6.536-.957v1.08c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192.465 0 .889.105 1.272.315.382.2.688.51.916.93.227.41.341.93.341 1.558V74h-1.121l-.013-4.06c0-.593-.133-1.044-.397-1.354-.255-.31-.652-.465-1.189-.465-.365 0-.729.137-1.094.41-.356.265-.67.575-.943.93V74h-1.122v-6.836h1.122ZM384.877 87.027c.501 0 .934.082 1.299.246.364.155.615.297.752.424v1.135a4.042 4.042 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.272.356a2.342 2.342 0 0 0-.847.916 2.652 2.652 0 0 0-.287 1.23c0 .438.095.848.287 1.23.2.374.483.68.847.916.365.228.789.342 1.272.342.456 0 .848-.068 1.176-.205a4.49 4.49 0 0 0 .875-.506v1.135c-.137.137-.388.283-.752.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.733-.984 1.271-1.313.538-.328 1.153-.492 1.846-.492Zm6.713 0c.392 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.121V94h-1.121v-1.162a3.355 3.355 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.035 3.035 0 0 1-1.599-.437 3.32 3.32 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.106 3.106 0 0 1 1.189-1.258 3.208 3.208 0 0 1 1.682-.45Zm.205 1.094c-.492 0-.912.123-1.258.37a2.506 2.506 0 0 0-.807.956 2.86 2.86 0 0 0-.273 1.244c0 .438.091.843.273 1.217.183.365.438.656.766.875.337.219.725.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.52.78-.902.191-.392.282-.83.273-1.313l-.014-1.312a3.535 3.535 0 0 0-.916-.834c-.319-.2-.688-.3-1.107-.3Zm6.603-.957v1.08c.146-.182.333-.364.561-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192a2.6 2.6 0 0 1 1.271.315c.383.2.689.51.916.93.228.41.342.93.342 1.558V94h-1.121l-.014-4.06c0-.593-.132-1.044-.396-1.354-.255-.31-.652-.465-1.189-.465-.365 0-.73.137-1.094.41-.356.265-.67.575-.944.93V94h-1.121v-6.836h1.121Zm14.848-2.324 4.279 9.16h-1.476l-.957-2.188h-4.293L409.828 94h-1.476l4.279-9.16h.615Zm-.287 2.078-1.654 3.732h3.281l-1.627-3.732Zm9.338.11c.592 0 1.126.145 1.599.437.484.282.866.683 1.149 1.203.292.51.437 1.112.437 1.805 0 .747-.145 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.089 3.089 0 0 1-1.681.464c-.392 0-.793-.105-1.204-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V87.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.093c-.41 0-.784.105-1.121.315-.328.21-.588.5-.779.874-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383.347-.255.611-.583.793-.984.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.15 2.15 0 0 0-.766-.847c-.328-.21-.715-.315-1.162-.315Zm8.682-1.094a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.291.51.437 1.112.437 1.805 0 .747-.146 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.392 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V87.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.315-.328.21-.588.5-.779.874-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383a2.47 2.47 0 0 0 .793-.984c.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.157 2.157 0 0 0-.766-.847c-.328-.21-.715-.315-1.162-.315Zm6.33-.957v1.367c.264-.456.583-.82.957-1.094.374-.273.757-.41 1.149-.41.264 0 .501.046.711.137v1.299a1.704 1.704 0 0 0-.875-.26c-.465 0-.844.164-1.135.492-.283.328-.552.72-.807 1.176V94h-1.121v-6.836h1.121Zm7.342-.137c.693 0 1.308.164 1.846.492.537.329.957.766 1.257 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.3.538-.72.97-1.257 1.299-.538.328-1.153.492-1.846.492-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.733-.984 1.271-1.313.538-.328 1.153-.492 1.846-.492Zm0 1.094c-.483 0-.907.119-1.272.356a2.342 2.342 0 0 0-.847.916 2.652 2.652 0 0 0-.287 1.23c0 .438.095.848.287 1.23.2.374.483.68.847.916.365.228.789.342 1.272.342.492 0 .916-.114 1.271-.342.365-.236.643-.542.834-.916.201-.382.301-.792.301-1.23 0-.447-.1-.857-.301-1.23a2.239 2.239 0 0 0-.834-.916c-.355-.237-.779-.356-1.271-.356Zm11.17-.957L452.252 94h-.697l-3.076-6.836h1.339l2.065 5.031 2.242-5.03h1.34Zm4.047-.137c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.725.273 1.162.273.492 0 .953-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.882 1.882 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm12.181-1.094c.693 0 1.308.164 1.846.492.538.329.957.766 1.258 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.97-1.258 1.299-.538.328-1.153.492-1.846.492-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.734-.984 1.272-1.313.537-.328 1.153-.492 1.845-.492Zm0 1.094c-.483 0-.907.119-1.271.356a2.344 2.344 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.201.374.483.68.848.916.364.228.788.342 1.271.342.493 0 .916-.114 1.272-.342.364-.236.642-.542.834-.916.2-.382.301-.792.301-1.23 0-.447-.101-.857-.301-1.23a2.253 2.253 0 0 0-.834-.916c-.356-.237-.779-.356-1.272-.356Zm6.536-.957v1.367c.264-.456.583-.82.957-1.094.373-.273.756-.41 1.148-.41.264 0 .501.046.711.137v1.299a1.701 1.701 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V94h-1.122v-6.836h1.122Zm12.701-2.53c.665 0 1.207.092 1.627.274.428.183.802.42 1.121.711v1.354a26.966 26.966 0 0 0-.684-.479 3.94 3.94 0 0 0-.875-.451c-.328-.137-.724-.205-1.189-.205-.684 0-1.295.155-1.832.465-.538.31-.962.738-1.272 1.285-.31.538-.465 1.148-.465 1.832 0 .683.155 1.294.465 1.832.31.538.734.966 1.272 1.285.537.31 1.148.465 1.832.465.702 0 1.299-.114 1.791-.342a6.754 6.754 0 0 0 1.23-.724v1.23c-.319.283-.738.529-1.258.738-.51.2-1.098.301-1.763.301a4.872 4.872 0 0 1-1.914-.37 4.95 4.95 0 0 1-1.532-1.038 4.805 4.805 0 0 1-1.025-1.518 4.892 4.892 0 0 1-.355-1.86c0-.655.118-1.27.355-1.845a4.76 4.76 0 0 1 2.557-2.557 4.72 4.72 0 0 1 1.914-.382Zm7.683 2.393c.392 0 .789.096 1.19.287.41.183.761.438 1.052.766v-.916h1.122V94h-1.122v-1.162c-.237.365-.56.684-.97.957-.401.273-.862.41-1.381.41a3.039 3.039 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.109 3.109 0 0 1 1.19-1.258 3.202 3.202 0 0 1 1.681-.45Zm.205 1.094c-.492 0-.911.123-1.257.37a2.489 2.489 0 0 0-.807.956 2.86 2.86 0 0 0-.274 1.244c0 .438.092.843.274 1.217.182.365.437.656.766.875.337.219.724.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.52.779-.902a2.82 2.82 0 0 0 .273-1.313l-.013-1.312a3.55 3.55 0 0 0-.916-.834c-.319-.2-.688-.3-1.108-.3Zm6.604-.957v1.08c.146-.182.333-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.383.2.688.51.916.93.228.41.342.93.342 1.558V94h-1.121l-.014-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V94h-1.121v-6.836h1.121Zm9.967-.137c.501 0 .934.082 1.299.246.364.155.615.297.751.424v1.135a4.018 4.018 0 0 0-.875-.492c-.328-.146-.72-.219-1.175-.219-.483 0-.907.119-1.272.356a2.342 2.342 0 0 0-.847.916 2.652 2.652 0 0 0-.288 1.23c0 .438.096.848.288 1.23.2.374.483.68.847.916.365.228.789.342 1.272.342.455 0 .847-.068 1.175-.205a4.46 4.46 0 0 0 .875-.506v1.135c-.136.137-.387.283-.751.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.617 3.617 0 0 1-1.272-1.299 3.664 3.664 0 0 1-.451-1.791c0-.647.151-1.244.451-1.791.31-.547.734-.984 1.272-1.313.538-.328 1.153-.492 1.846-.492Zm6.713 0c.701 0 1.285.146 1.75.438.464.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.725.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.885 2.885 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.163-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.566 0-1.03.192-1.395.574-.365.374-.592.83-.684 1.368h4.116c-.046-.447-.174-.812-.383-1.094a1.882 1.882 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm6.111-3.965V94h-1.121v-9.844h1.121Z"}),u.createElement("circle",{cx:652,cy:126,r:5,fill:"#6C65E5",stroke:"#F2F2F5",strokeWidth:2}),u.createElement("path",{stroke:"#6C65E5",strokeLinecap:"round",strokeWidth:1.5,d:"M652 126V76"}),u.createElement("path",{fill:"#615BC2",d:"M568.349 33.813v5.564c0 .793-.169 1.476-.506 2.05a3.34 3.34 0 0 1-1.34 1.3c-.565.3-1.208.45-1.928.45-.711 0-1.353-.15-1.928-.45a3.43 3.43 0 0 1-1.353-1.3c-.328-.574-.492-1.257-.492-2.05v-5.565h1.23v5.524c0 .62.114 1.121.342 1.504.237.383.547.66.93.834.392.164.815.246 1.271.246.456-.01.875-.096 1.258-.26.392-.173.702-.446.93-.82.237-.383.355-.884.355-1.504v-5.523h1.231Zm4.566 2.214c.401 0 .775.06 1.121.178.346.11.597.223.752.342v1.203a3.548 3.548 0 0 0-.779-.424 2.61 2.61 0 0 0-1.012-.205c-.428 0-.752.1-.971.3-.209.201-.314.411-.314.63 0 .173.059.35.178.533.127.173.346.314.656.424l1.148.41c.447.155.78.378.998.67.219.292.329.633.329 1.025 0 .383-.11.734-.329 1.053a2.217 2.217 0 0 1-.888.766c-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.073 5.073 0 0 1-.766-.232 3.571 3.571 0 0 1-.506-.26V41.4c.128.092.306.196.534.315.237.11.487.205.752.287.264.073.51.11.738.11.428 0 .765-.096 1.012-.288.255-.191.382-.428.382-.71a.611.611 0 0 0-.259-.52c-.164-.128-.406-.25-.725-.37l-1.012-.368c-.528-.201-.879-.452-1.052-.753-.174-.31-.26-.66-.26-1.052 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574Zm6.631 0c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.21.32.483.575.82.766.337.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.735 2.735 0 0 1-.575.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.191-1.395.574-.364.374-.592.83-.683 1.367h4.115c-.046-.446-.173-.81-.383-1.093a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm6.111-.957v1.367a3.53 3.53 0 0 1 .957-1.093c.374-.274.757-.41 1.149-.41.264 0 .501.045.711.136v1.299a1.704 1.704 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.283.328-.552.72-.807 1.176V43h-1.121v-6.836h1.121Zm17.322 0L600.587 43h-.697l-1.873-4.826L596.144 43h-.698l-2.392-6.836h1.34l1.517 4.799 1.791-4.799h.629l1.791 4.799 1.518-4.799h1.339Zm2.461-3.281c.265 0 .484.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.847.847 0 0 1-.657.287.887.887 0 0 1-.669-.287.93.93 0 0 1-.26-.642.9.9 0 0 1 .26-.643.887.887 0 0 1 .669-.287Zm.698 3.281V43h-1.121v-5.783h-1.08v-1.053h2.201Zm4.306-1.969v1.97h1.996v1.052h-1.996v4.006c0 .282.073.505.219.67.146.164.369.246.67.246a2.1 2.1 0 0 0 .684-.096c.182-.073.341-.15.478-.233v.917c-.182.145-.378.26-.588.341-.2.092-.474.137-.82.137-.583 0-1.025-.173-1.326-.52-.292-.355-.438-.824-.438-1.408v-4.06h-1.312v-.328c.446-.2.82-.529 1.121-.985.301-.465.565-1.034.793-1.709h.519Zm7.383 1.832c.465 0 .889.105 1.272.315.382.2.688.51.916.93.228.41.341.93.341 1.558V43h-1.121l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V43h-1.121v-9.844h1.121v4.088c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192Zm12.223 0a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.292.51.437 1.112.437 1.805 0 .747-.145 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.391 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V36.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.314-.328.21-.588.502-.779.875-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383.347-.255.611-.583.793-.984.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.15 2.15 0 0 0-.766-.848c-.328-.21-.715-.314-1.162-.314Zm6.33-.957v1.367c.264-.456.583-.82.957-1.093.374-.274.757-.41 1.149-.41.264 0 .501.045.711.136v1.299a1.704 1.704 0 0 0-.875-.26c-.465 0-.844.164-1.135.492-.283.328-.552.72-.807 1.176V43h-1.121v-6.836h1.121Zm7.342-.137c.693 0 1.308.164 1.846.492.537.329.957.766 1.257 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.3.538-.72.97-1.257 1.299-.538.328-1.153.492-1.846.492-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.733-.984 1.271-1.313.538-.328 1.153-.492 1.846-.492Zm0 1.094c-.483 0-.907.119-1.272.356a2.342 2.342 0 0 0-.847.916 2.652 2.652 0 0 0-.287 1.23c0 .438.095.848.287 1.23.2.374.483.68.847.916.365.228.789.342 1.272.342.492 0 .916-.114 1.271-.341.365-.237.643-.543.834-.917.201-.382.301-.793.301-1.23 0-.447-.1-.857-.301-1.23a2.239 2.239 0 0 0-.834-.916c-.355-.237-.779-.356-1.271-.356Zm8.887-1.094a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.291.51.437 1.112.437 1.805 0 .747-.146 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.392 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V36.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.314-.328.21-.588.502-.779.875-.183.365-.274.793-.274 1.286l.014 1.312c.291.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.492 0 .912-.127 1.258-.383a2.47 2.47 0 0 0 .793-.984 2.98 2.98 0 0 0 .287-1.271 2.52 2.52 0 0 0-.273-1.19 2.157 2.157 0 0 0-.766-.848c-.328-.21-.715-.314-1.162-.314Zm8.025-1.094c.702 0 1.285.146 1.75.438.465.291.812.688 1.039 1.19.237.5.356 1.066.356 1.695v.67h-5.25c.055.382.187.733.396 1.052.21.32.483.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.752 2.752 0 0 1-.574.492c-.246.164-.533.301-.862.41a2.88 2.88 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.606 3.606 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.452-1.791c0-.647.142-1.244.424-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.115c-.045-.446-.173-.81-.382-1.093a1.878 1.878 0 0 0-.739-.63 2.021 2.021 0 0 0-.916-.218Zm6.112-.957v1.367c.264-.456.583-.82.957-1.093.373-.274.756-.41 1.148-.41.264 0 .501.045.711.136v1.299a1.701 1.701 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V43h-1.121v-6.836h1.121Zm11.826-.137a2.99 2.99 0 0 1 1.599.438c.484.282.866.683 1.149 1.203.292.51.437 1.112.437 1.805 0 .747-.145 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.391 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V36.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.314-.328.21-.588.502-.779.875-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383.347-.255.611-.583.793-.984.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.15 2.15 0 0 0-.766-.848c-.328-.21-.715-.314-1.162-.314Zm8.025-1.094c.702 0 1.286.146 1.75.438a2.69 2.69 0 0 1 1.04 1.19c.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.396 1.052.21.32.484.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.885 2.885 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.029.191-1.394.574-.365.374-.593.83-.684 1.367h4.116c-.046-.446-.174-.81-.383-1.093a1.878 1.878 0 0 0-.739-.63 2.021 2.021 0 0 0-.916-.218Zm6.112-.957v1.367c.264-.456.583-.82.957-1.093.374-.274.756-.41 1.148-.41.265 0 .502.045.711.136v1.299a1.698 1.698 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V43h-1.121v-6.836h1.121Zm5.373 0v.875c.219-.246.497-.474.834-.684.346-.218.752-.328 1.217-.328.492 0 .952.119 1.38.356.429.228.757.574.985 1.039a5.844 5.844 0 0 1 1.039-.984c.374-.274.811-.41 1.312-.41.465 0 .898.104 1.299.314.41.2.739.51.985.93.255.41.382.93.382 1.558V43h-1.121l-.013-4.06c0-.593-.155-1.044-.465-1.354-.301-.31-.72-.465-1.258-.465-.392 0-.734.123-1.025.37-.292.245-.57.532-.834.86V43h-1.121l-.014-4.06c0-.593-.155-1.044-.465-1.354-.301-.31-.72-.465-1.258-.465-.373 0-.715.11-1.025.328a4.535 4.535 0 0 0-.834.793V43h-1.121v-6.836h1.121Zm12.646-3.281c.265 0 .483.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.849.849 0 0 1-.657.287.891.891 0 0 1-.67-.287.934.934 0 0 1-.259-.642c0-.247.086-.46.259-.643a.891.891 0 0 1 .67-.287Zm.698 3.281V43h-1.121v-5.783h-1.081v-1.053h2.202Zm4.457-.137c.401 0 .774.06 1.121.178.346.11.597.223.752.342v1.203a3.558 3.558 0 0 0-.78-.424 2.605 2.605 0 0 0-1.011-.205c-.429 0-.752.1-.971.3-.21.201-.314.411-.314.63 0 .173.059.35.177.533.128.173.347.314.656.424l1.149.41c.447.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.373.182-.806.273-1.299.273-.264 0-.542-.036-.834-.11a5.095 5.095 0 0 1-.765-.232 3.516 3.516 0 0 1-.506-.26V41.4c.128.092.305.196.533.315.237.11.488.205.752.287.264.073.511.11.738.11.429 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.405-.25-.724-.37l-1.012-.368c-.529-.201-.88-.452-1.053-.753-.173-.31-.26-.66-.26-1.052 0-.584.219-1.067.657-1.45.437-.382 1.02-.574 1.75-.574Zm5.851 0c.401 0 .775.06 1.121.178.347.11.597.223.752.342v1.203a3.548 3.548 0 0 0-.779-.424 2.606 2.606 0 0 0-1.012-.205c-.428 0-.752.1-.97.3-.21.201-.315.411-.315.63 0 .173.059.35.178.533.127.173.346.314.656.424l1.148.41c.447.155.78.378.999.67.218.292.328.633.328 1.025 0 .383-.11.734-.328 1.053-.21.319-.506.574-.889.766-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.109 5.109 0 0 1-.766-.232 3.548 3.548 0 0 1-.505-.26V41.4c.127.092.305.196.533.315.237.11.487.205.752.287.264.073.51.11.738.11.428 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.406-.25-.725-.37l-1.012-.368c-.528-.201-.879-.452-1.052-.753-.173-.31-.26-.66-.26-1.052 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574Zm4.908-3.144c.265 0 .483.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.849.849 0 0 1-.657.287.891.891 0 0 1-.67-.287.934.934 0 0 1-.259-.642c0-.247.086-.46.259-.643a.891.891 0 0 1 .67-.287Zm.698 3.281V43h-1.121v-5.783h-1.081v-1.053h2.202Zm5.509-.137c.693 0 1.308.164 1.846.492.538.329.957.766 1.258 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.97-1.258 1.299-.538.328-1.153.492-1.846.492-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.734-.984 1.272-1.313.537-.328 1.153-.492 1.845-.492Zm0 1.094a2.28 2.28 0 0 0-1.271.356 2.344 2.344 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.201.374.483.68.848.916.365.228.788.342 1.271.342.493 0 .916-.114 1.272-.341.364-.237.642-.543.834-.917.2-.382.301-.793.301-1.23 0-.447-.101-.857-.301-1.23a2.253 2.253 0 0 0-.834-.916c-.356-.237-.779-.356-1.272-.356Zm6.536-.957v1.08c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192.465 0 .889.105 1.272.315.382.2.688.51.916.93.227.41.341.93.341 1.558V43h-1.121l-.013-4.06c0-.593-.133-1.044-.397-1.354-.255-.31-.652-.465-1.189-.465-.365 0-.729.137-1.094.41-.356.265-.67.575-.943.93V43h-1.122v-6.836h1.122ZM595.2 56.027c.501 0 .934.082 1.299.246.365.155.615.297.752.424v1.135a4.042 4.042 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.271.356a2.344 2.344 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.201.374.483.68.848.916.364.228.788.342 1.271.342.456 0 .848-.068 1.176-.205a4.49 4.49 0 0 0 .875-.506v1.135c-.137.137-.387.283-.752.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.59 3.59 0 0 1 1.271-1.313c.538-.328 1.153-.492 1.846-.492Zm6.713 0c.392 0 .788.096 1.19.288.41.182.761.437 1.052.765v-.916h1.121V63h-1.121v-1.162c-.237.364-.56.684-.97.957-.401.273-.862.41-1.381.41a3.036 3.036 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.113 3.113 0 0 1 1.189-1.258 3.208 3.208 0 0 1 1.682-.45Zm.205 1.094c-.492 0-.911.123-1.258.37a2.495 2.495 0 0 0-.806.956 2.847 2.847 0 0 0-.274 1.244c0 .438.091.843.274 1.217.182.365.437.657.765.875a2.09 2.09 0 0 0 1.162.328c.42 0 .793-.109 1.122-.328.328-.218.587-.52.779-.902.191-.392.282-.83.273-1.313l-.013-1.312a3.55 3.55 0 0 0-.916-.834 2.04 2.04 0 0 0-1.108-.3Zm6.604-.957v1.08c.146-.182.332-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.382.2.688.51.916.93.228.41.341.93.341 1.558V63h-1.121l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V63h-1.121v-6.836h1.121Zm13.795-.137c.392 0 .788.096 1.189.288.41.182.761.437 1.053.765v-.916h1.121V63h-1.121v-1.162a3.355 3.355 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.035 3.035 0 0 1-1.599-.437 3.32 3.32 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.106 3.106 0 0 1 1.189-1.258 3.205 3.205 0 0 1 1.682-.45Zm.205 1.094c-.493 0-.912.123-1.258.37a2.506 2.506 0 0 0-.807.956 2.86 2.86 0 0 0-.273 1.244c0 .438.091.843.273 1.217.183.365.438.657.766.875.337.219.724.328 1.162.328.419 0 .793-.109 1.121-.328.328-.218.588-.52.779-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.535 3.535 0 0 0-.916-.834c-.319-.2-.688-.3-1.107-.3Zm8.955-1.094a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.291.51.437 1.112.437 1.805 0 .747-.146 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.392 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V56.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.314-.328.21-.588.502-.779.875-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.492 0 .912-.127 1.258-.383a2.47 2.47 0 0 0 .793-.984 2.98 2.98 0 0 0 .287-1.271 2.52 2.52 0 0 0-.273-1.19 2.157 2.157 0 0 0-.766-.848c-.328-.21-.715-.314-1.162-.314Zm8.682-1.094a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.291.51.437 1.112.437 1.805 0 .747-.146 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.392 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V56.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.314-.328.21-.588.502-.779.875-.183.365-.274.793-.274 1.286l.014 1.312c.291.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.492 0 .912-.127 1.258-.383a2.47 2.47 0 0 0 .793-.984 2.98 2.98 0 0 0 .287-1.271 2.52 2.52 0 0 0-.273-1.19 2.157 2.157 0 0 0-.766-.848c-.328-.21-.715-.314-1.162-.314Zm6.33-3.965V63h-1.121v-9.844h1.121Zm2.707 3.008 2.393 5.031 2.324-5.03h1.34l-5.032 10.116h-1.298l1.955-3.691-3.022-6.426h1.34Zm14.615-.137c.502 0 .935.082 1.299.246.365.155.615.297.752.424v1.135a4.042 4.042 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.271.356a2.344 2.344 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.201.374.483.68.848.916.364.228.788.342 1.271.342.456 0 .848-.068 1.176-.205a4.49 4.49 0 0 0 .875-.506v1.135c-.137.137-.387.283-.752.438-.364.155-.797.232-1.299.232-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.734-.984 1.272-1.313.537-.328 1.153-.492 1.845-.492Zm7.246 0c.465 0 .889.105 1.272.315.383.2.688.51.916.93.228.41.342.93.342 1.558V63h-1.121l-.014-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V63h-1.121v-9.844h1.121v4.088c.146-.182.333-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192Zm7.465 0c.392 0 .789.096 1.19.288.41.182.761.437 1.052.765v-.916h1.121V63h-1.121v-1.162c-.237.364-.56.684-.97.957-.401.273-.862.41-1.381.41a3.039 3.039 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.109 3.109 0 0 1 1.19-1.258 3.202 3.202 0 0 1 1.681-.45Zm.205 1.094c-.492 0-.911.123-1.258.37a2.495 2.495 0 0 0-.806.956 2.86 2.86 0 0 0-.274 1.244c0 .438.092.843.274 1.217.182.365.437.657.765.875.338.219.725.328 1.163.328.419 0 .793-.109 1.121-.328.328-.218.588-.52.779-.902a2.82 2.82 0 0 0 .273-1.313l-.013-1.312a3.55 3.55 0 0 0-.916-.834c-.319-.2-.688-.3-1.108-.3Zm6.604-.957v1.08c.146-.182.332-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.383.2.688.51.916.93.228.41.342.93.342 1.558V63h-1.121l-.014-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V63h-1.121v-6.836h1.121Zm9.693-.137c.392 0 .789.096 1.19.288.41.182.761.437 1.052.765v-.916h1.121v6.7c0 .81-.164 1.485-.492 2.023a3.087 3.087 0 0 1-1.312 1.203 4.06 4.06 0 0 1-1.791.396c-.42 0-.78-.05-1.08-.15a2.726 2.726 0 0 1-.752-.355c-.21-.137-.401-.27-.575-.397v-1.203c.137.1.315.228.534.383.228.164.496.31.806.437.319.128.675.192 1.067.192.446 0 .857-.082 1.23-.246.374-.165.675-.406.903-.725.227-.32.341-.702.341-1.149v-1.435c-.237.364-.56.684-.97.957-.401.273-.862.41-1.381.41a3.036 3.036 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.109 3.109 0 0 1 1.19-1.258 3.202 3.202 0 0 1 1.681-.45Zm.205 1.108c-.492 0-.911.123-1.258.369a2.39 2.39 0 0 0-.806.943 2.847 2.847 0 0 0-.274 1.244c0 .438.091.839.274 1.203.182.365.437.657.765.876.338.218.725.328 1.163.328.419 0 .792-.11 1.121-.328.328-.22.588-.52.779-.903.191-.383.282-.816.273-1.299l-.013-1.312a3.334 3.334 0 0 0-.916-.82c-.319-.201-.688-.301-1.108-.301Zm8.299-1.108c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.356 1.066.356 1.695v.67h-5.25c.054.382.186.733.396 1.052.21.32.483.575.82.766a2.41 2.41 0 0 0 1.163.273c.492 0 .952-.123 1.38-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.752 2.752 0 0 1-.574.492c-.247.164-.534.301-.862.41a2.88 2.88 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.617 3.617 0 0 1-1.272-1.299 3.664 3.664 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.283-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.115c-.045-.446-.173-.81-.383-1.093a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm7.027-1.094c.401 0 .775.06 1.122.178.346.11.597.223.751.342v1.203a3.548 3.548 0 0 0-.779-.424 2.606 2.606 0 0 0-1.012-.205c-.428 0-.752.1-.97.3-.21.201-.315.411-.315.63 0 .173.06.35.178.533.128.173.346.314.656.424l1.149.41c.446.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.095 5.095 0 0 1-.765-.232 3.516 3.516 0 0 1-.506-.26V61.4c.127.092.305.196.533.315.237.11.488.205.752.287.264.073.51.11.738.11.429 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.406-.25-.725-.37l-1.011-.368c-.529-.201-.88-.452-1.053-.753-.173-.31-.26-.66-.26-1.052 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574ZM554.439 234.84l4.28 9.16h-1.477l-.957-2.188h-4.293l-.971 2.188h-1.476l4.279-9.16h.615Zm-.287 2.078-1.654 3.732h3.281l-1.627-3.732Zm11.457.246v4.047c0 .601-.127 1.121-.382 1.559a2.65 2.65 0 0 1-1.039 1.011c-.438.237-.93.356-1.477.356a3.052 3.052 0 0 1-1.477-.356 2.65 2.65 0 0 1-1.039-1.011c-.255-.438-.383-.958-.383-1.559v-4.047h1.163v4.047c0 .592.173 1.048.519 1.367a1.8 1.8 0 0 0 1.217.465c.456 0 .857-.155 1.203-.465.356-.319.533-.775.533-1.367v-4.047h1.162Zm4.006-1.969v1.969h1.996v1.053h-1.996v4.006c0 .282.073.506.219.67.146.164.369.246.67.246.273 0 .501-.032.684-.096.182-.073.341-.15.478-.232v.916a2.26 2.26 0 0 1-.588.341c-.2.092-.474.137-.82.137-.584 0-1.026-.173-1.326-.519-.292-.356-.438-.825-.438-1.409v-4.06h-1.312v-.328c.446-.201.82-.529 1.121-.985.301-.465.565-1.034.793-1.709h.519Zm7.123 1.832c.693 0 1.308.164 1.846.493.538.328.957.765 1.258 1.312a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.971-1.258 1.299-.538.328-1.153.492-1.846.492-.692 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.58 3.58 0 0 1 1.272-1.312c.537-.329 1.153-.493 1.845-.493Zm0 1.094c-.483 0-.907.119-1.271.356a2.337 2.337 0 0 0-.848.916 2.66 2.66 0 0 0-.287 1.23c0 .438.096.848.287 1.231.201.373.483.679.848.916.364.227.788.341 1.271.341.492 0 .916-.114 1.272-.341a2.38 2.38 0 0 0 .834-.916c.2-.383.301-.793.301-1.231 0-.447-.101-.857-.301-1.23a2.246 2.246 0 0 0-.834-.916c-.356-.237-.78-.356-1.272-.356Zm6.535-.957v.875c.219-.246.497-.474.834-.684.347-.218.752-.328 1.217-.328.492 0 .953.119 1.381.356.428.228.757.574.984 1.039a5.825 5.825 0 0 1 1.04-.984 2.157 2.157 0 0 1 1.312-.411c.465 0 .898.105 1.299.315.41.2.738.51.984.929.255.411.383.93.383 1.559V244h-1.121l-.014-4.061c0-.592-.155-1.043-.465-1.353-.3-.31-.72-.465-1.257-.465-.392 0-.734.123-1.026.369a6.287 6.287 0 0 0-.834.862V244h-1.121l-.014-4.061c0-.592-.154-1.043-.464-1.353-.301-.31-.72-.465-1.258-.465-.374 0-.716.109-1.026.328-.3.219-.578.483-.834.793V244h-1.121v-6.836h1.121Zm14.37-.137c.392 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.121V244h-1.121v-1.162a3.37 3.37 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.04 3.04 0 0 1-1.599-.437 3.332 3.332 0 0 1-1.163-1.245c-.282-.528-.423-1.139-.423-1.832 0-.756.141-1.408.423-1.955a3.107 3.107 0 0 1 1.19-1.257 3.204 3.204 0 0 1 1.682-.452Zm.205 1.094c-.493 0-.912.123-1.258.369a2.497 2.497 0 0 0-.807.957 2.862 2.862 0 0 0-.273 1.244c0 .438.091.844.273 1.217.182.365.438.656.766.875.337.219.724.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.519.779-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.517 3.517 0 0 0-.916-.834 2.032 2.032 0 0 0-1.107-.301Zm7.369-2.926v1.969h1.996v1.053h-1.996v4.006c0 .282.073.506.219.67.145.164.369.246.669.246.274 0 .502-.032.684-.096.182-.073.342-.15.479-.232v.916a2.293 2.293 0 0 1-.588.341c-.201.092-.474.137-.821.137-.583 0-1.025-.173-1.326-.519-.291-.356-.437-.825-.437-1.409v-4.06h-1.313v-.328c.447-.201.821-.529 1.121-.985.301-.465.565-1.034.793-1.709h.52Zm5.127-1.312c.264 0 .483.096.656.287a.879.879 0 0 1 .273.642.91.91 0 0 1-.273.643.848.848 0 0 1-.656.287.89.89 0 0 1-.67-.287.936.936 0 0 1-.26-.643c0-.246.087-.46.26-.642a.89.89 0 0 1 .67-.287Zm.697 3.281V244h-1.121v-5.783h-1.08v-1.053h2.201Zm5.51-.137c.501 0 .934.082 1.299.246.364.155.615.297.752.424v1.135a4.091 4.091 0 0 0-.875-.492c-.329-.146-.72-.219-1.176-.219-.483 0-.907.119-1.272.356a2.335 2.335 0 0 0-.847.916 2.647 2.647 0 0 0-.287 1.23c0 .438.095.848.287 1.231.2.373.483.679.847.916.365.227.789.341 1.272.341.456 0 .847-.068 1.176-.205a4.5 4.5 0 0 0 .875-.506v1.135c-.137.137-.388.283-.752.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.603 3.603 0 0 1-1.271-1.299 3.655 3.655 0 0 1-.452-1.791c0-.647.151-1.244.452-1.791a3.57 3.57 0 0 1 1.271-1.312c.538-.329 1.153-.493 1.846-.493Zm6.713 0c.392 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.121V244h-1.121v-1.162a3.37 3.37 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.04 3.04 0 0 1-1.599-.437 3.322 3.322 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.099 3.099 0 0 1 1.189-1.257 3.204 3.204 0 0 1 1.682-.452Zm.205 1.094c-.492 0-.912.123-1.258.369a2.505 2.505 0 0 0-.807.957 2.862 2.862 0 0 0-.273 1.244c0 .438.091.844.273 1.217.183.365.438.656.766.875.337.219.725.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.519.779-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.517 3.517 0 0 0-.916-.834 2.032 2.032 0 0 0-1.107-.301Zm6.603-3.965V244h-1.121v-9.844h1.121Zm3.446 0V244h-1.122v-9.844h1.122Zm2.707 3.008 2.392 5.031 2.324-5.031h1.34l-5.031 10.117h-1.299l1.955-3.691-3.021-6.426h1.34Zm14.341-.137c.392 0 .789.096 1.19.287.41.183.761.438 1.053.766v-.916h1.121v6.699c0 .811-.164 1.486-.492 2.024a3.098 3.098 0 0 1-1.313 1.203 4.066 4.066 0 0 1-1.791.396c-.419 0-.779-.05-1.08-.15a2.731 2.731 0 0 1-.752-.356c-.21-.136-.401-.268-.574-.396v-1.203c.136.1.314.228.533.383.228.164.497.31.807.437.319.128.674.192 1.066.192.447 0 .857-.082 1.23-.247.374-.164.675-.405.903-.724.228-.319.342-.702.342-1.149v-1.435a3.37 3.37 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.044 3.044 0 0 1-1.6-.437 3.33 3.33 0 0 1-1.162-1.245c-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.1 3.1 0 0 1 1.19-1.257 3.203 3.203 0 0 1 1.681-.452Zm.205 1.108c-.492 0-.911.123-1.257.369a2.382 2.382 0 0 0-.807.943 2.862 2.862 0 0 0-.273 1.244c0 .438.091.839.273 1.204.182.364.438.656.766.875.337.218.724.328 1.162.328.419 0 .793-.11 1.121-.328.328-.219.588-.52.779-.903.192-.383.283-.816.274-1.299l-.014-1.312a3.316 3.316 0 0 0-.916-.82 2.033 2.033 0 0 0-1.108-.301Zm8.573-1.108c.692 0 1.308.164 1.845.493.538.328.957.765 1.258 1.312a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.971-1.258 1.299-.537.328-1.153.492-1.845.492-.693 0-1.308-.164-1.846-.492a3.603 3.603 0 0 1-1.271-1.299 3.655 3.655 0 0 1-.452-1.791c0-.647.151-1.244.452-1.791a3.57 3.57 0 0 1 1.271-1.312c.538-.329 1.153-.493 1.846-.493Zm0 1.094c-.483 0-.907.119-1.272.356a2.335 2.335 0 0 0-.847.916 2.647 2.647 0 0 0-.287 1.23c0 .438.095.848.287 1.231.2.373.483.679.847.916.365.227.789.341 1.272.341.492 0 .916-.114 1.271-.341.365-.237.643-.543.834-.916.201-.383.301-.793.301-1.231 0-.447-.1-.857-.301-1.23a2.233 2.233 0 0 0-.834-.916c-.355-.237-.779-.356-1.271-.356Zm8.23-1.094c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.039 1.189c.237.502.356 1.067.356 1.696v.67h-5.25c.054.382.187.733.396 1.052.21.319.483.574.821.766.337.182.724.273 1.162.273a2.73 2.73 0 0 0 1.381-.369 5.205 5.205 0 0 0 1.08-.834l-.014 1.217a2.743 2.743 0 0 1-.574.492 3.57 3.57 0 0 1-.862.41 2.868 2.868 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.272-1.299 3.665 3.665 0 0 1-.451-1.791c0-.647.142-1.244.424-1.791a3.45 3.45 0 0 1 1.162-1.312 3.046 3.046 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.115c-.045-.446-.173-.811-.382-1.093a1.876 1.876 0 0 0-.739-.629 2.019 2.019 0 0 0-.916-.219Zm7.028-1.094c.401 0 .774.06 1.121.178.346.109.597.223.752.342v1.203a3.586 3.586 0 0 0-.78-.424 2.599 2.599 0 0 0-1.011-.205c-.429 0-.752.1-.971.301-.21.2-.315.41-.315.629 0 .173.06.351.178.533.128.173.347.314.656.424l1.149.41c.446.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.373.182-.806.273-1.299.273-.264 0-.542-.036-.834-.109a5.128 5.128 0 0 1-.765-.233 3.592 3.592 0 0 1-.506-.259V242.4c.128.092.305.196.533.315.237.109.488.205.752.287.264.073.511.109.738.109.429 0 .766-.095 1.012-.287.255-.191.383-.428.383-.711a.611.611 0 0 0-.26-.519c-.164-.128-.405-.251-.724-.369l-1.012-.37c-.529-.2-.88-.451-1.053-.751a2.124 2.124 0 0 1-.26-1.053c0-.584.219-1.067.657-1.449.437-.383 1.02-.575 1.75-.575Zm9.802-1.832v1.969h1.996v1.053h-1.996v4.006c0 .282.073.506.219.67.146.164.369.246.67.246.273 0 .501-.032.684-.096.182-.073.341-.15.478-.232v.916a2.26 2.26 0 0 1-.588.341c-.2.092-.474.137-.82.137-.583 0-1.026-.173-1.326-.519-.292-.356-.438-.825-.438-1.409v-4.06h-1.312v-.328c.446-.201.82-.529 1.121-.985.301-.465.565-1.034.793-1.709h.519Zm7.123 1.832c.693 0 1.308.164 1.846.493.538.328.957.765 1.258 1.312a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.971-1.258 1.299-.538.328-1.153.492-1.846.492-.692 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.58 3.58 0 0 1 1.272-1.312c.537-.329 1.153-.493 1.845-.493Zm0 1.094c-.483 0-.907.119-1.271.356a2.337 2.337 0 0 0-.848.916 2.66 2.66 0 0 0-.287 1.23c0 .438.096.848.287 1.231.201.373.483.679.848.916.364.227.788.341 1.271.341.493 0 .916-.114 1.272-.341a2.38 2.38 0 0 0 .834-.916c.2-.383.301-.793.301-1.231 0-.447-.101-.857-.301-1.23a2.246 2.246 0 0 0-.834-.916c-.356-.237-.779-.356-1.272-.356Zm13.864-3.486c.665 0 1.207.091 1.627.273a3.91 3.91 0 0 1 1.121.711v1.354a26.162 26.162 0 0 0-.684-.479 3.961 3.961 0 0 0-.875-.451c-.328-.137-.725-.205-1.189-.205-.684 0-1.295.155-1.832.465-.538.31-.962.738-1.272 1.285-.31.538-.465 1.148-.465 1.832 0 .684.155 1.294.465 1.832.31.538.734.966 1.272 1.285.537.31 1.148.465 1.832.465.701 0 1.298-.114 1.791-.342a6.76 6.76 0 0 0 1.23-.724v1.23c-.319.283-.738.529-1.258.738-.51.201-1.098.301-1.763.301a4.874 4.874 0 0 1-1.914-.369 4.954 4.954 0 0 1-1.532-1.039 4.804 4.804 0 0 1-1.025-1.518 4.89 4.89 0 0 1-.356-1.859c0-.656.119-1.272.356-1.846a4.749 4.749 0 0 1 2.557-2.556 4.708 4.708 0 0 1 1.914-.383Zm7.683 2.392c.392 0 .789.096 1.19.287.41.183.761.438 1.052.766v-.916h1.122V244h-1.122v-1.162c-.237.364-.56.683-.97.957-.401.273-.862.41-1.381.41a3.044 3.044 0 0 1-1.6-.437 3.33 3.33 0 0 1-1.162-1.245c-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.1 3.1 0 0 1 1.19-1.257 3.2 3.2 0 0 1 1.681-.452Zm.205 1.094c-.492 0-.911.123-1.258.369a2.494 2.494 0 0 0-.806.957 2.863 2.863 0 0 0-.274 1.244c0 .438.092.844.274 1.217.182.365.437.656.765.875a2.09 2.09 0 0 0 1.163.328c.419 0 .793-.109 1.121-.328.328-.219.588-.519.779-.902.191-.392.283-.83.273-1.313l-.013-1.312a3.533 3.533 0 0 0-.916-.834 2.033 2.033 0 0 0-1.108-.301Zm6.604-.957v1.08a3.61 3.61 0 0 1 .56-.547c.228-.191.483-.351.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.383.2.688.51.916.929.228.411.342.93.342 1.559V244h-1.121l-.014-4.061c0-.592-.132-1.043-.397-1.353-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41-.355.265-.67.574-.943.93V244h-1.121v-6.836h1.121Zm9.967-.137c.501 0 .934.082 1.298.246.365.155.616.297.752.424v1.135a4.043 4.043 0 0 0-.875-.492c-.328-.146-.72-.219-1.175-.219-.483 0-.907.119-1.272.356a2.345 2.345 0 0 0-.848.916 2.66 2.66 0 0 0-.287 1.23c0 .438.096.848.287 1.231.201.373.484.679.848.916.365.227.789.341 1.272.341.455 0 .847-.068 1.175-.205a4.44 4.44 0 0 0 .875-.506v1.135c-.136.137-.387.283-.752.438-.364.155-.797.232-1.298.232-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.272-1.299 3.665 3.665 0 0 1-.451-1.791c0-.647.151-1.244.451-1.791a3.58 3.58 0 0 1 1.272-1.312c.538-.329 1.153-.493 1.846-.493Zm6.712 0c.702 0 1.286.146 1.75.438.465.292.812.688 1.04 1.189.237.502.355 1.067.355 1.696v.67h-5.25c.055.382.187.733.397 1.052.209.319.483.574.82.766.337.182.724.273 1.162.273a2.73 2.73 0 0 0 1.381-.369 5.205 5.205 0 0 0 1.08-.834l-.014 1.217a2.717 2.717 0 0 1-.574.492 3.58 3.58 0 0 1-.861.41 2.874 2.874 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.611 3.611 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.163-1.312a3.04 3.04 0 0 1 1.708-.493Zm0 1.094c-.565 0-1.029.191-1.394.574-.365.374-.592.83-.684 1.367h4.116c-.046-.446-.174-.811-.383-1.093a1.88 1.88 0 0 0-.738-.629 2.023 2.023 0 0 0-.917-.219Zm6.112-3.965V244h-1.121v-9.844h1.121Zm3.445 0V244h-1.121v-9.844h1.121Zm5.141 2.871c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.039 1.189c.237.502.355 1.067.355 1.696v.67h-5.25c.055.382.187.733.397 1.052.209.319.483.574.82.766.337.182.725.273 1.162.273.492 0 .953-.123 1.381-.369a5.205 5.205 0 0 0 1.08-.834l-.014 1.217a2.717 2.717 0 0 1-.574.492 3.58 3.58 0 0 1-.861.41 2.87 2.87 0 0 1-1.012.178c-.693 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.312a3.044 3.044 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.395.574-.364.374-.592.83-.683 1.367h4.115c-.046-.446-.173-.811-.383-1.093a1.873 1.873 0 0 0-.738-.629 2.022 2.022 0 0 0-.916-.219Zm11.17-3.965V244h-1.121v-1.162a3.37 3.37 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.044 3.044 0 0 1-1.6-.437 3.33 3.33 0 0 1-1.162-1.245c-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.1 3.1 0 0 1 1.19-1.257 3.203 3.203 0 0 1 1.681-.452c.392 0 .789.096 1.19.287.41.183.761.438 1.053.766v-3.924h1.121Zm-3.159 3.992c-.492 0-.911.123-1.257.37a2.404 2.404 0 0 0-.807.929 2.862 2.862 0 0 0-.273 1.244c0 .438.091.844.273 1.217.182.365.438.656.766.875.337.219.724.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.519.779-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.316 3.316 0 0 0-.916-.82 2.106 2.106 0 0 0-1.108-.288Z"}),u.createElement("path",{fill:"#D11525",d:"M513.779 184.635c.666 0 1.208.091 1.627.273.429.182.802.419 1.121.711v1.354c-.2-.146-.428-.306-.683-.479a3.961 3.961 0 0 0-.875-.451c-.328-.137-.725-.205-1.19-.205-.683 0-1.294.155-1.832.465a3.38 3.38 0 0 0-1.271 1.285c-.31.538-.465 1.148-.465 1.832 0 .684.155 1.294.465 1.832.31.538.734.966 1.271 1.285.538.31 1.149.465 1.832.465.702 0 1.299-.114 1.791-.342a6.738 6.738 0 0 0 1.231-.724v1.23c-.319.283-.739.529-1.258.738-.51.201-1.098.301-1.764.301a4.88 4.88 0 0 1-1.914-.369 4.95 4.95 0 0 1-1.531-1.039 4.787 4.787 0 0 1-1.025-1.518 4.89 4.89 0 0 1-.356-1.859c0-.656.119-1.272.356-1.846a4.745 4.745 0 0 1 2.556-2.556 4.714 4.714 0 0 1 1.914-.383Zm8.217 2.392c.465 0 .889.105 1.272.315.382.2.688.51.916.929.227.411.341.93.341 1.559V194h-1.121l-.013-4.061c0-.592-.133-1.043-.397-1.353-.255-.31-.652-.465-1.189-.465-.365 0-.729.137-1.094.41-.356.265-.67.574-.943.93V194h-1.122v-9.844h1.122v4.088c.145-.182.332-.364.56-.547.228-.191.483-.351.766-.478a2.22 2.22 0 0 1 .902-.192Zm7.465 0c.392 0 .788.096 1.189.287.411.183.761.438 1.053.766v-.916h1.121V194h-1.121v-1.162c-.237.364-.56.683-.971.957-.401.273-.861.41-1.38.41a3.041 3.041 0 0 1-1.6-.437 3.33 3.33 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.105 3.105 0 0 1 1.189-1.257 3.206 3.206 0 0 1 1.682-.452Zm.205 1.094c-.492 0-.911.123-1.258.369a2.494 2.494 0 0 0-.806.957 2.849 2.849 0 0 0-.274 1.244c0 .438.091.844.274 1.217.182.365.437.656.765.875.337.219.725.328 1.162.328.42 0 .793-.109 1.121-.328.329-.219.588-.519.78-.902.191-.392.282-.83.273-1.313l-.014-1.312a3.501 3.501 0 0 0-.916-.834 2.032 2.032 0 0 0-1.107-.301Zm6.604-.957v1.08c.145-.182.332-.364.56-.547.228-.191.483-.351.766-.478a2.22 2.22 0 0 1 .902-.192c.465 0 .889.105 1.272.315.382.2.688.51.916.929.227.411.341.93.341 1.559V194h-1.121l-.013-4.061c0-.592-.133-1.043-.397-1.353-.255-.31-.652-.465-1.189-.465-.365 0-.73.137-1.094.41-.356.265-.67.574-.943.93V194h-1.122v-6.836h1.122Zm9.693-.137c.392 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.121v6.699c0 .811-.164 1.486-.492 2.024a3.092 3.092 0 0 1-1.313 1.203 4.06 4.06 0 0 1-1.791.396c-.419 0-.779-.05-1.08-.15a2.745 2.745 0 0 1-.752-.356 11.684 11.684 0 0 1-.574-.396v-1.203c.137.1.315.228.533.383.228.164.497.31.807.437.319.128.675.192 1.066.192.447 0 .857-.082 1.231-.247a2.14 2.14 0 0 0 .902-.724c.228-.319.342-.702.342-1.149v-1.435c-.237.364-.56.683-.971.957-.401.273-.861.41-1.38.41a3.041 3.041 0 0 1-1.6-.437 3.322 3.322 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.099 3.099 0 0 1 1.189-1.257 3.206 3.206 0 0 1 1.682-.452Zm.205 1.108c-.492 0-.911.123-1.258.369a2.388 2.388 0 0 0-.806.943 2.849 2.849 0 0 0-.274 1.244c0 .438.091.839.274 1.204.182.364.437.656.765.875.337.218.725.328 1.162.328.42 0 .793-.11 1.121-.328.328-.219.588-.52.78-.903.191-.383.282-.816.273-1.299l-.014-1.312a3.288 3.288 0 0 0-.916-.82 2.032 2.032 0 0 0-1.107-.301Zm8.299-1.108c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.039 1.189c.237.502.355 1.067.355 1.696v.67h-5.25c.055.382.187.733.397 1.052.209.319.483.574.82.766.337.182.725.273 1.162.273.492 0 .953-.123 1.381-.369a5.179 5.179 0 0 0 1.08-.834l-.013 1.217c-.128.155-.32.319-.575.492a3.58 3.58 0 0 1-.861.41 2.87 2.87 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.312a3.044 3.044 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.395.574-.364.374-.592.83-.683 1.367h4.115c-.046-.446-.173-.811-.383-1.093a1.873 1.873 0 0 0-.738-.629 2.022 2.022 0 0 0-.916-.219Zm7.027-1.094c.401 0 .775.06 1.121.178.347.109.597.223.752.342v1.203a3.552 3.552 0 0 0-.779-.424 2.6 2.6 0 0 0-1.012-.205c-.428 0-.752.1-.971.301-.209.2-.314.41-.314.629 0 .173.059.351.178.533.127.173.346.314.656.424l1.148.41c.447.155.78.378.998.67.219.292.329.633.329 1.025 0 .383-.11.734-.329 1.053a2.222 2.222 0 0 1-.888.766c-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.109a5.106 5.106 0 0 1-.766-.233 3.626 3.626 0 0 1-.505-.259V192.4c.127.092.305.196.533.315.237.109.487.205.752.287.264.073.51.109.738.109.428 0 .766-.095 1.012-.287.255-.191.382-.428.382-.711a.61.61 0 0 0-.259-.519c-.164-.128-.406-.251-.725-.369l-1.012-.37c-.528-.2-.879-.451-1.052-.751a2.113 2.113 0 0 1-.26-1.053c0-.584.219-1.067.656-1.449.438-.383 1.021-.575 1.75-.575Zm11.006 0c.501 0 .934.082 1.299.246.364.155.615.297.752.424v1.135a4.067 4.067 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.271.356a2.33 2.33 0 0 0-.848.916 2.647 2.647 0 0 0-.287 1.23c0 .438.095.848.287 1.231.2.373.483.679.848.916.364.227.788.341 1.271.341.456 0 .848-.068 1.176-.205a4.47 4.47 0 0 0 .875-.506v1.135c-.137.137-.388.283-.752.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.62 3.62 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.734-.984 1.271-1.312.538-.329 1.153-.493 1.846-.493Zm6.713 0c.392 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.121V194h-1.121v-1.162c-.237.364-.56.683-.971.957-.401.273-.861.41-1.38.41a3.041 3.041 0 0 1-1.6-.437 3.322 3.322 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.099 3.099 0 0 1 1.189-1.257 3.206 3.206 0 0 1 1.682-.452Zm.205 1.094c-.492 0-.911.123-1.258.369a2.494 2.494 0 0 0-.806.957 2.849 2.849 0 0 0-.274 1.244c0 .438.091.844.274 1.217.182.365.437.656.765.875.337.219.725.328 1.162.328.42 0 .793-.109 1.121-.328.328-.219.588-.519.78-.902.191-.392.282-.83.273-1.313l-.014-1.312a3.501 3.501 0 0 0-.916-.834 2.032 2.032 0 0 0-1.107-.301Zm6.603-.957v1.08a3.62 3.62 0 0 1 .561-.547c.228-.191.483-.351.766-.478a2.22 2.22 0 0 1 .902-.192c.465 0 .889.105 1.271.315.383.2.689.51.917.929.227.411.341.93.341 1.559V194h-1.121l-.013-4.061c0-.592-.133-1.043-.397-1.353-.255-.31-.652-.465-1.189-.465-.365 0-.73.137-1.094.41-.356.265-.67.574-.944.93V194H584.9v-6.836h1.121Zm9.967-.137c.502 0 .935.082 1.299.246.365.155.615.297.752.424v1.135a4.067 4.067 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.271.356a2.337 2.337 0 0 0-.848.916 2.66 2.66 0 0 0-.287 1.23c0 .438.096.848.287 1.231.201.373.483.679.848.916.364.227.788.341 1.271.341.456 0 .848-.068 1.176-.205a4.47 4.47 0 0 0 .875-.506v1.135c-.137.137-.387.283-.752.438-.364.155-.797.232-1.299.232-.692 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.58 3.58 0 0 1 1.272-1.312c.537-.329 1.153-.493 1.845-.493Zm6.713 0c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.039 1.189c.237.502.356 1.067.356 1.696v.67h-5.25c.054.382.187.733.396 1.052.21.319.483.574.82.766.338.182.725.273 1.163.273.492 0 .952-.123 1.38-.369a5.186 5.186 0 0 0 1.081-.834l-.014 1.217a2.743 2.743 0 0 1-.574.492 3.588 3.588 0 0 1-.862.41 2.868 2.868 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.272-1.299 3.665 3.665 0 0 1-.451-1.791c0-.647.142-1.244.424-1.791a3.45 3.45 0 0 1 1.162-1.312 3.044 3.044 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.115c-.045-.446-.173-.811-.383-1.093a1.867 1.867 0 0 0-.738-.629 2.019 2.019 0 0 0-.916-.219Zm6.111-3.965V194h-1.121v-9.844h1.121Zm3.446 0V194h-1.121v-9.844h1.121Zm5.14 2.871c.702 0 1.286.146 1.75.438.465.292.812.688 1.04 1.189.236.502.355 1.067.355 1.696v.67h-5.25c.055.382.187.733.396 1.052.21.319.484.574.821.766.337.182.724.273 1.162.273a2.73 2.73 0 0 0 1.381-.369 5.205 5.205 0 0 0 1.08-.834l-.014 1.217a2.717 2.717 0 0 1-.574.492 3.58 3.58 0 0 1-.861.41 2.874 2.874 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.611 3.611 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791a3.45 3.45 0 0 1 1.162-1.312 3.046 3.046 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.116c-.046-.446-.174-.811-.383-1.093a1.876 1.876 0 0 0-.739-.629 2.019 2.019 0 0 0-.916-.219Zm11.17-3.965V194h-1.121v-1.162c-.237.364-.56.683-.97.957-.401.273-.862.41-1.381.41a3.041 3.041 0 0 1-1.6-.437 3.33 3.33 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.105 3.105 0 0 1 1.189-1.257 3.206 3.206 0 0 1 1.682-.452c.392 0 .788.096 1.19.287.41.183.761.438 1.052.766v-3.924h1.121Zm-3.158 3.992c-.492 0-.911.123-1.258.37a2.41 2.41 0 0 0-.806.929 2.849 2.849 0 0 0-.274 1.244c0 .438.091.844.274 1.217.182.365.437.656.765.875.338.219.725.328 1.162.328.42 0 .793-.109 1.122-.328.328-.219.587-.519.779-.902.191-.392.282-.83.273-1.313l-.013-1.312a3.316 3.316 0 0 0-.916-.82 2.108 2.108 0 0 0-1.108-.288Z"}),u.createElement("circle",{cx:259,cy:158,r:5,fill:"#6C65E5",stroke:"#F2F2F5",strokeWidth:2}),u.createElement("path",{stroke:"#6C65E5",strokeLinecap:"round",strokeWidth:1.5,d:"M259 157v-50"}),u.createElement("path",{fill:"#615BC2",d:"M205.775 64.813v5.564c0 .793-.168 1.477-.505 2.05a3.345 3.345 0 0 1-1.34 1.3c-.565.3-1.208.45-1.928.45-.711 0-1.354-.15-1.928-.45a3.43 3.43 0 0 1-1.353-1.3c-.328-.574-.492-1.257-.492-2.05v-5.564h1.23v5.523c0 .62.114 1.121.342 1.504a2.1 2.1 0 0 0 .929.834 3.26 3.26 0 0 0 1.272.246c.456-.01.875-.096 1.258-.26.392-.173.702-.447.929-.82.237-.383.356-.884.356-1.504v-5.523h1.23Zm4.567 2.214c.401 0 .775.06 1.121.178.346.11.597.223.752.342v1.203a3.572 3.572 0 0 0-.779-.424 2.613 2.613 0 0 0-1.012-.205c-.429 0-.752.1-.971.3-.21.201-.314.411-.314.63 0 .173.059.35.177.533.128.173.347.314.657.424l1.148.41c.447.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053a2.22 2.22 0 0 1-.889.766c-.373.182-.806.273-1.298.273-.265 0-.543-.036-.834-.11a5.073 5.073 0 0 1-.766-.232 3.571 3.571 0 0 1-.506-.26V72.4c.128.091.306.196.533.315.237.11.488.205.752.287.265.073.511.11.739.11.428 0 .765-.096 1.011-.288.256-.191.383-.428.383-.71a.61.61 0 0 0-.26-.52c-.164-.128-.405-.25-.724-.37l-1.012-.368c-.529-.201-.88-.452-1.053-.752a2.122 2.122 0 0 1-.259-1.053c0-.584.218-1.067.656-1.45.437-.382 1.021-.574 1.75-.574Zm6.631 0c.701 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.725.273 1.162.273.492 0 .953-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791a3.438 3.438 0 0 1 1.162-1.313 3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.882 1.882 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm6.111-.957v1.367c.264-.456.583-.82.957-1.094.374-.273.757-.41 1.148-.41.265 0 .502.046.711.137v1.299a1.698 1.698 0 0 0-.875-.26c-.464 0-.843.164-1.134.492-.283.328-.552.72-.807 1.176V74h-1.121v-6.836h1.121Zm9.447-3.281c.265 0 .483.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.849.849 0 0 1-.657.287.891.891 0 0 1-.67-.287.934.934 0 0 1-.259-.642c0-.247.086-.46.259-.643a.891.891 0 0 1 .67-.287Zm.698 3.281V74h-1.122v-5.783h-1.08v-1.053h2.202Zm4.457-.137c.401 0 .774.06 1.121.178.346.11.597.223.752.342v1.203a3.582 3.582 0 0 0-.78-.424 2.605 2.605 0 0 0-1.011-.205c-.429 0-.752.1-.971.3-.21.201-.315.411-.315.63 0 .173.06.35.178.533.128.173.347.314.656.424l1.149.41c.446.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.373.182-.806.273-1.299.273-.264 0-.542-.036-.834-.11a5.095 5.095 0 0 1-.765-.232 3.516 3.516 0 0 1-.506-.26V72.4c.128.091.305.196.533.315.237.11.488.205.752.287.264.073.51.11.738.11.429 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.405-.25-.724-.37l-1.012-.368c-.529-.201-.88-.452-1.053-.752-.173-.31-.26-.661-.26-1.053 0-.584.219-1.067.657-1.45.437-.382 1.02-.574 1.75-.574Zm9.953 0c.401 0 .774.06 1.121.178.346.11.597.223.752.342v1.203a3.558 3.558 0 0 0-.78-.424 2.605 2.605 0 0 0-1.011-.205c-.429 0-.752.1-.971.3-.21.201-.314.411-.314.63 0 .173.059.35.177.533.128.173.347.314.657.424l1.148.41c.447.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.373.182-.806.273-1.298.273-.265 0-.543-.036-.834-.11a5.073 5.073 0 0 1-.766-.232 3.516 3.516 0 0 1-.506-.26V72.4c.128.091.305.196.533.315.237.11.488.205.752.287.265.073.511.11.738.11.429 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.405-.25-.724-.37l-1.012-.368c-.529-.201-.88-.452-1.053-.752-.173-.31-.26-.661-.26-1.053 0-.584.219-1.067.657-1.45.437-.382 1.021-.574 1.75-.574Zm6.631 0c.701 0 1.285.146 1.75.438.464.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.885 2.885 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.163-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.566 0-1.03.192-1.395.574-.365.374-.592.83-.684 1.368h4.116c-.046-.447-.174-.812-.383-1.094a1.882 1.882 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm6.111-.957v1.08c.146-.182.333-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.383.2.688.51.916.93.228.41.342.93.342 1.558V74h-1.121l-.014-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V74h-1.121v-6.836h1.121Zm13.057-3.008V74h-1.122v-1.162c-.237.365-.56.684-.97.957-.401.273-.862.41-1.381.41a3.039 3.039 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.109 3.109 0 0 1 1.19-1.258 3.202 3.202 0 0 1 1.681-.45c.392 0 .789.095 1.19.286.41.183.761.438 1.052.766v-3.924h1.122Zm-3.159 3.992c-.492 0-.911.124-1.258.37a2.413 2.413 0 0 0-.806.93 2.86 2.86 0 0 0-.274 1.243c0 .438.092.843.274 1.217.182.365.437.656.765.875.338.219.725.328 1.163.328.419 0 .793-.109 1.121-.328.328-.219.588-.52.779-.902a2.82 2.82 0 0 0 .273-1.313l-.013-1.312a3.334 3.334 0 0 0-.916-.82 2.11 2.11 0 0 0-1.108-.288Zm6.576-4.265c.265 0 .484.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.847.847 0 0 1-.657.287.887.887 0 0 1-.669-.287.93.93 0 0 1-.26-.642.9.9 0 0 1 .26-.643.887.887 0 0 1 .669-.287Zm.698 3.281V74h-1.121v-5.783h-1.08v-1.053h2.201Zm3.541 0v1.08c.146-.182.332-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.383.2.688.51.916.93.228.41.342.93.342 1.558V74h-1.122l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V74h-1.121v-6.836h1.121Zm9.693-.137c.392 0 .789.096 1.19.287.41.183.761.438 1.052.766v-.916h1.121v6.7c0 .81-.164 1.485-.492 2.023a3.087 3.087 0 0 1-1.312 1.203 4.06 4.06 0 0 1-1.791.396c-.42 0-.78-.05-1.08-.15a2.726 2.726 0 0 1-.752-.355c-.21-.137-.401-.27-.575-.397v-1.203c.137.1.315.228.534.383.228.164.496.31.806.437.319.128.675.192 1.067.192a3.03 3.03 0 0 0 1.23-.246c.374-.165.675-.406.903-.725.227-.32.341-.702.341-1.149v-1.435c-.237.365-.56.684-.97.957-.401.273-.862.41-1.381.41a3.036 3.036 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.113 3.113 0 0 1 1.189-1.258 3.208 3.208 0 0 1 1.682-.45Zm.205 1.108c-.492 0-.911.123-1.258.369a2.39 2.39 0 0 0-.806.943 2.847 2.847 0 0 0-.274 1.244c0 .438.091.839.274 1.203.182.365.437.657.765.875a2.09 2.09 0 0 0 1.162.329c.42 0 .793-.11 1.122-.329.328-.218.587-.519.779-.902.191-.383.282-.816.273-1.299l-.013-1.312a3.334 3.334 0 0 0-.916-.82 2.04 2.04 0 0 0-1.108-.301Zm11.471-2.94v1.97h1.996v1.052h-1.996v4.006c0 .282.073.505.219.67.145.164.369.246.67.246.273 0 .501-.032.683-.096a3.38 3.38 0 0 0 .479-.233v.917c-.183.145-.379.26-.588.341-.201.091-.474.137-.821.137-.583 0-1.025-.173-1.326-.52-.291-.355-.437-.824-.437-1.408v-4.06h-1.313v-.328c.447-.2.821-.529 1.121-.985.301-.465.565-1.034.793-1.709h.52Zm7.383 1.832c.465 0 .888.105 1.271.315.383.2.688.51.916.93.228.41.342.93.342 1.558V74h-1.121l-.014-4.06c0-.593-.132-1.044-.396-1.354-.255-.31-.652-.465-1.19-.465-.364 0-.729.137-1.093.41-.356.265-.67.575-.944.93V74h-1.121v-9.844h1.121v4.088c.146-.182.333-.364.561-.547.228-.191.483-.35.765-.478.292-.128.593-.192.903-.192Zm7.465 0c.701 0 1.285.146 1.75.438.464.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.885 2.885 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.163-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.566 0-1.03.192-1.395.574-.365.374-.592.83-.684 1.368h4.116c-.046-.447-.174-.812-.383-1.094a1.882 1.882 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218ZM185.288 87.027c.501 0 .934.082 1.299.246.364.155.615.297.752.424v1.135a4.042 4.042 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.271.356a2.337 2.337 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.2.374.483.68.848.916.364.228.788.342 1.271.342.456 0 .848-.068 1.176-.205a4.49 4.49 0 0 0 .875-.506v1.135c-.137.137-.388.283-.752.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.59 3.59 0 0 1 1.271-1.313c.538-.328 1.153-.492 1.846-.492Zm7.246 0c.465 0 .889.105 1.272.315.382.2.688.51.916.93.228.41.341.93.341 1.558V94h-1.121l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V94h-1.121v-9.844h1.121v4.088c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192Zm7.465 0c.392 0 .788.096 1.189.287.411.183.762.438 1.053.766v-.916h1.121V94h-1.121v-1.162c-.237.365-.56.684-.97.957-.402.273-.862.41-1.381.41a3.036 3.036 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.113 3.113 0 0 1 1.189-1.258 3.208 3.208 0 0 1 1.682-.45Zm.205 1.094c-.492 0-.911.123-1.258.37a2.495 2.495 0 0 0-.806.956 2.847 2.847 0 0 0-.274 1.244c0 .438.091.843.274 1.217.182.365.437.656.765.875a2.09 2.09 0 0 0 1.162.328c.42 0 .793-.109 1.121-.328.329-.219.588-.52.78-.902.191-.392.282-.83.273-1.313l-.013-1.312a3.55 3.55 0 0 0-.916-.834 2.04 2.04 0 0 0-1.108-.3Zm6.604-.957v1.08c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192.465 0 .889.105 1.272.315.382.2.688.51.916.93.227.41.341.93.341 1.558V94h-1.121l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.652-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V94h-1.121v-6.836h1.121Zm9.693-.137c.392 0 .788.096 1.189.287a3.04 3.04 0 0 1 1.053.766v-.916h1.121v6.7c0 .81-.164 1.485-.492 2.023a3.092 3.092 0 0 1-1.312 1.203 4.06 4.06 0 0 1-1.791.396c-.42 0-.78-.05-1.081-.15a2.733 2.733 0 0 1-.751-.355c-.21-.137-.402-.27-.575-.397v-1.203c.137.1.315.228.534.383.227.164.496.31.806.437.319.128.675.192 1.067.192a3.03 3.03 0 0 0 1.23-.246c.374-.165.675-.406.902-.725.228-.32.342-.702.342-1.149v-1.435c-.237.365-.56.684-.971.957a2.39 2.39 0 0 1-1.38.41 3.036 3.036 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.113 3.113 0 0 1 1.189-1.258 3.208 3.208 0 0 1 1.682-.45Zm.205 1.108c-.492 0-.911.123-1.258.369a2.39 2.39 0 0 0-.806.943 2.847 2.847 0 0 0-.274 1.244c0 .438.091.839.274 1.203.182.365.437.657.765.875.337.22.725.329 1.162.329.42 0 .793-.11 1.121-.329.329-.218.588-.519.78-.902.191-.383.282-.816.273-1.299l-.014-1.312a3.305 3.305 0 0 0-.916-.82c-.319-.201-.688-.301-1.107-.301Zm8.299-1.108c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.21.32.483.575.82.766.337.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.735 2.735 0 0 1-.575.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm7.027-1.094c.401 0 .775.06 1.121.178.347.11.597.223.752.342v1.203a3.548 3.548 0 0 0-.779-.424 2.606 2.606 0 0 0-1.012-.205c-.428 0-.752.1-.97.3-.21.201-.315.411-.315.63 0 .173.059.35.178.533.127.173.346.314.656.424l1.149.41c.446.155.779.378.998.67.218.292.328.633.328 1.025 0 .383-.11.734-.328 1.053-.21.319-.506.574-.889.766-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.109 5.109 0 0 1-.766-.232 3.548 3.548 0 0 1-.505-.26V92.4c.127.091.305.196.533.315.237.11.487.205.752.287.264.073.51.11.738.11.428 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.406-.25-.725-.37l-1.012-.368c-.528-.201-.879-.452-1.052-.752-.173-.31-.26-.661-.26-1.053 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574Zm9.803-1.832v1.97h1.996v1.052h-1.996v4.006c0 .282.073.505.219.67.146.164.369.246.67.246.273 0 .501-.032.683-.096.183-.073.342-.15.479-.233v.917c-.183.145-.379.26-.588.341-.201.091-.474.137-.82.137-.584 0-1.026-.173-1.327-.52-.291-.355-.437-.824-.437-1.408v-4.06h-1.313v-.328c.447-.2.821-.529 1.121-.985.301-.465.566-1.034.793-1.709h.52Zm7.123 1.832c.693 0 1.308.164 1.846.492.537.329.957.766 1.258 1.313a3.58 3.58 0 0 1 .464 1.791 3.58 3.58 0 0 1-.464 1.791c-.301.538-.721.97-1.258 1.299-.538.328-1.153.492-1.846.492-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.59 3.59 0 0 1 1.271-1.313c.538-.328 1.153-.492 1.846-.492Zm0 1.094c-.483 0-.907.119-1.271.356a2.337 2.337 0 0 0-.848.916 2.652 2.652 0 0 0-.287 1.23c0 .438.095.848.287 1.23.2.374.483.68.848.916.364.228.788.342 1.271.342.492 0 .916-.114 1.271-.342.365-.236.643-.542.834-.916.201-.382.301-.792.301-1.23 0-.447-.1-.857-.301-1.23a2.239 2.239 0 0 0-.834-.916c-.355-.237-.779-.356-1.271-.356Zm12.879-1.094c.629 0 1.189.15 1.682.451.501.292.893.712 1.175 1.258.292.547.438 1.199.438 1.955 0 .693-.146 1.304-.438 1.832a3.217 3.217 0 0 1-1.148 1.245 2.991 2.991 0 0 1-1.6.437c-.519 0-.984-.137-1.394-.41a3.415 3.415 0 0 1-.957-.957V94h-1.121v-9.844h1.121v3.924a3.073 3.073 0 0 1 1.039-.766 2.83 2.83 0 0 1 1.203-.287Zm-.205 1.108c-.419 0-.789.1-1.108.3a3.611 3.611 0 0 0-.916.82l-.013 1.313c0 .483.091.916.273 1.3.192.382.451.683.779.901a2.02 2.02 0 0 0 1.122.329c.446 0 .834-.11 1.162-.329.328-.218.583-.51.765-.875.183-.364.274-.765.274-1.203 0-.446-.096-.86-.287-1.244a2.297 2.297 0 0 0-.793-.943c-.347-.246-.766-.37-1.258-.37Zm8.162-1.108c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.21.32.483.575.82.766.338.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.735 2.735 0 0 1-.575.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm10.213-.957v1.367c.264-.456.583-.82.957-1.094.374-.273.756-.41 1.148-.41.265 0 .502.046.711.137v1.299a1.698 1.698 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V94h-1.121v-6.836h1.121Zm7.068-.137c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.356 1.066.356 1.695v.67h-5.25c.054.382.187.733.396 1.052.21.32.483.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.38-.369a5.2 5.2 0 0 0 1.081-.834l-.014 1.217a2.752 2.752 0 0 1-.574.492 3.6 3.6 0 0 1-.862.41 2.88 2.88 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.617 3.617 0 0 1-1.272-1.299 3.664 3.664 0 0 1-.451-1.791c0-.647.142-1.244.424-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.394.574-.365.374-.593.83-.684 1.368h4.115c-.045-.447-.173-.812-.383-1.094a1.868 1.868 0 0 0-.738-.63 2.021 2.021 0 0 0-.916-.218Zm11.02-.957L294.882 94h-.697l-3.077-6.836h1.34l2.065 5.031 2.242-5.03h1.34Zm2.461-3.281c.264 0 .483.096.656.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.847.847 0 0 1-.656.287.888.888 0 0 1-.67-.287.935.935 0 0 1-.26-.642c0-.247.087-.46.26-.643a.888.888 0 0 1 .67-.287Zm.697 3.281V94h-1.121v-5.783h-1.08v-1.053h2.201Zm5.236-.137c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.356 1.066.356 1.695v.67h-5.25c.054.382.187.733.396 1.052.21.32.483.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.752 2.752 0 0 1-.574.492c-.246.164-.533.301-.862.41a2.88 2.88 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.606 3.606 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.452-1.791c0-.647.142-1.244.424-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.394.574-.365.374-.593.83-.684 1.368h4.115c-.045-.447-.173-.812-.382-1.094a1.878 1.878 0 0 0-.739-.63 2.021 2.021 0 0 0-.916-.218Zm13.959-.957L318.056 94h-.698l-1.873-4.826L313.612 94h-.697l-2.393-6.836h1.34l1.518 4.799 1.791-4.799h.629l1.791 4.799 1.517-4.799h1.34Zm4.184-.137c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.725.273 1.162.273.492 0 .953-.123 1.381-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.735 2.735 0 0 1-.575.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm11.17-3.965V94h-1.121v-1.162a3.355 3.355 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.041 3.041 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.282-.528-.423-1.139-.423-1.832 0-.756.141-1.408.423-1.955a3.115 3.115 0 0 1 1.19-1.258 3.204 3.204 0 0 1 1.681-.45c.392 0 .789.095 1.19.286.41.183.761.438 1.053.766v-3.924h1.121Zm-3.158 3.992c-.493 0-.912.124-1.258.37a2.416 2.416 0 0 0-.807.93 2.86 2.86 0 0 0-.273 1.243c0 .438.091.843.273 1.217.182.365.438.656.766.875.337.219.724.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.52.779-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.334 3.334 0 0 0-.916-.82 2.11 2.11 0 0 0-1.107-.288Z"}),u.createElement("defs",null,u.createElement("clipPath",{id:"a"},u.createElement("path",{fill:"#fff",d:"M531 117h18v18h-18z"})))),B0=()=>{const e=u.useRef(null),t=h1(),a=g1(t.breakpoints.down("md")),[r,o]=u.useState(!1);return l(G,{children:[n(w,{condition:!a,show:l(j,{variant:"body2",children:["Show change request process"," "]})}),n(z1,{title:"Change request process",ref:e,onClick:()=>o(!0),children:n(J3,{})}),n(lt,{open:r,anchorEl:e.current,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:()=>o(!1),children:l(E,{sx:{p:{xs:2,md:4},maxWidth:920},children:[n(j,{variant:"h3",children:"Change request process:"}),n(j,{variant:"body2",children:l("ol",{children:[n("li",{children:"When changes are detected they are added into a draft mode"}),n("li",{children:"The next step is for those changes to be sent for review"}),l("li",{children:["These changes can be seen by everyone but only who has ",n("strong",{children:"“Review change request”"})," ","permission can Approve them"]}),l("ul",{children:[l("li",{children:["If changes are Approved then someone who has"," ",n("strong",{children:"“Apply change request”"})," ","permission needs to apply these changes to be live on the feature toggles and request is Closed"]}),n("li",{children:"If changes are Cancelled by the author or admin then change request goes automatically to Cancelled and request is Closed."})]})]})}),n(E,{sx:{mt:3},children:n(A5,{style:{maxWidth:"calc(100vw - 4rem)"}})})]})})]})},b3=h(E)(({theme:e})=>({padding:e.spacing(1),display:"flex",justifyContent:"center","& .MuiInputBase-input":{fontSize:e.fontSizes.smallBody}})),E5=()=>{const{trackEvent:e}=R1(),[t,a]=u.useState({isOpen:!1,enableEnvironment:"",isEnabled:!1,requiredApprovals:1}),r=h1(),o=Y("projectId"),{data:i,loading:s,refetchChangeRequestConfig:c}=ma(o),{updateChangeRequestEnvironmentConfig:d}=p2(),{setToastData:p,setToastApiError:m}=u1(),v=(x,D,z)=>()=>{a({isOpen:!0,enableEnvironment:x,isEnabled:D,requiredApprovals:z})},g=async()=>{t.enableEnvironment&&await b(),a(x=>({...x,isOpen:!1}))};async function b(x){try{await d(x||{project:o,environment:t.enableEnvironment,enabled:!t.isEnabled,requiredApprovals:t.requiredApprovals}),p({type:"success",title:"Updated change request status",text:"Successfully updated change request status."}),await c()}catch(D){m(f1(D))}}const S=Array.from(Array(10).keys()).map(x=>String(x+1)).map(x=>({key:x,label:`${x} ${x==="1"?"approval":"approvals"}`,sx:{fontSize:r.fontSizes.smallBody}}));function T(x,D){b({project:o,environment:x.environment,enabled:x.changeRequestEnabled,requiredApprovals:Number(D)})}const F=u.useMemo(()=>[{Header:"Environment",accessor:"environment",disableSortBy:!0},{Header:"Type",accessor:"type",disableGlobalFilter:!0,disableSortBy:!0},{Header:"Required approvals",Cell:({row:{original:x}})=>{const{hasAccess:D}=u.useContext(he);return n(w,{condition:x.changeRequestEnabled,show:n(b3,{"data-loading":!0,children:n(d0,{sx:{width:"140px",marginLeft:1},options:S,value:x.requiredApprovals||1,onChange:z=>{T(x,z)},disabled:!D(B2,o),IconComponent:u0,fullWidth:!0})})})},width:100,disableGlobalFilter:!0,disableSortBy:!0},{Header:"Status",accessor:"changeRequestEnabled",id:"changeRequestEnabled",align:"center",Cell:({value:x,row:{original:D}})=>n(b3,{"data-loading":!0,children:n(o2,{checked:x,projectId:o,permission:B2,inputProps:{"aria-label":D.environment},onClick:v(D.environment,D.changeRequestEnabled,D.requiredApprovals)})}),width:100,disableGlobalFilter:!0,disableSortBy:!0}],[]),{getTableProps:y,getTableBodyProps:Z,headerGroups:L,rows:B,prepareRow:N}=n1.useTable({columns:F,data:i,sortTypes:Re,autoResetGlobalFilter:!1,disableSortRemove:!0,defaultColumn:{Cell:o1}},n1.useGlobalFilter);return l(d1,{header:n(s1,{titleElement:"Change request configuration",actions:n(B0,{})}),isLoading:s,children:[n(U1,{severity:"info",sx:{mb:3},children:"If change request is enabled for an environment, then any change in that environment needs to be approved before it will be applied"}),l(nt,{...y(),children:[n(at,{headerGroups:L}),n(rt,{...Z(),children:B.map(x=>(N(x),n(ot,{hover:!0,...x.getRowProps(),children:x.cells.map(D=>n(it,{...D.getCellProps(),children:D.render("Cell")}))})))})]}),l(Ae,{onClick:()=>{e("change_request",{props:{eventType:`change request ${t.isEnabled?"disabled":"enabled"}`}}),g()},open:t.isOpen,onClose:()=>a(x=>({...x,isOpen:!1})),primaryButtonText:t.isEnabled?"Disable":"Enable",secondaryButtonText:"Cancel",title:`${t.isEnabled?"Disable":"Enable"} change requests`,children:[l(j,{sx:{mb:1},children:["You are about to"," ",t.isEnabled?"disable":"enable"," “Change request”",n(w,{condition:Boolean(t.enableEnvironment),show:l(G,{children:[" ","for"," ",n("strong",{children:t.enableEnvironment})]})}),"."]}),n(w,{condition:!t.isEnabled,show:n(j,{variant:"body2",color:"text.secondary",children:"When enabling change request for an environment, you need to be sure that your Unleash Admin already have created the custom project roles in your Unleash instance so you can assign your project members from the project access page."})})]})]})},k5=()=>{const e=Y("projectId"),t=k1(e),{hasAccess:a}=u.useContext(he),{isOss:r,isPro:o}=p1();return S1(`Project change request configuration – ${t}`),r()||o()?n(d1,{header:n(s1,{titleElement:"Change request configuration",actions:n(B0,{})}),sx:{justifyContent:"center"},children:n(yt,{feature:"change-requests"})}):a(A1,e)?n(E5,{}):n(d1,{header:n(s1,{title:"Change request configuration"}),children:n(U1,{severity:"error",children:"You need project owner permissions to access this section."})})},V0=()=>{const{makeRequest:e,createRequest:t,errors:a,loading:r}=y2({propagateErrors:!0});return{deleteToken:async(s,c)=>{const d=`api/admin/projects/${c}/api-tokens/${s}`,p=t(d,{method:"DELETE"});try{return await e(p.caller,p.id)}catch(m){throw m}},createToken:async(s,c)=>{const d=`api/admin/projects/${c}/api-tokens`,p=t(d,{method:"POST",body:JSON.stringify(s)});try{return await e(p.caller,p.id)}catch(m){throw m}},errors:a,loading:r}},M0=(e,t={})=>{const a=G1(`api/admin/projects/${e}/api-tokens`),{data:r,error:o,mutate:i}=se(a,D5,t),s=u.useMemo(()=>r??[],[r]),c=u.useCallback(()=>{i().catch(console.warn)},[i]);return{tokens:s,error:o,loading:!o&&!r,refetch:c}},D5=async e=>(await(await fetch(e).then(K1("Project Api tokens"))).json()).tokens,C3="Create project API token",R5=()=>{const e=Y("projectId"),{setToastApiError:t}=u1(),{uiConfig:a}=p1(),r=$1(),[o,i]=u.useState(!1),[s,c]=u.useState(""),{getApiTokenPayload:d,username:p,type:m,environment:v,setUsername:g,setTokenType:b,setEnvironment:S,isValid:T,errors:F,clearErrors:y}=Ga(e),{createToken:Z,loading:L}=V0(),{refetch:B}=M0(e),{trackEvent:N}=R1();S1(C3);const x=`api/admin/project/${e}/api-tokens`;return l(l0,{loading:L,title:C3,modal:!0,description:"Unleash SDKs use API tokens to authenticate to the Unleash API. Client SDKs need a token with 'client privileges', which allows them to fetch feature toggle configurations and post usage metrics.",documentationLink:"https://docs.getunleash.io/reference/api-tokens-and-client-keys",documentationLinkLabel:"API tokens documentation",formatApiCode:()=>`curl --location --request POST '${a.unleashUrl}/${x}' \\
|
|
7
7
|
--header 'Authorization: INSERT_API_KEY' \\
|
|
8
8
|
--header 'Content-Type: application/json' \\
|
|
9
|
-
--data-raw '${JSON.stringify(d(),void 0,2)}'`,children:[l(Ka,{handleSubmit:async K=>{if(K.preventDefault(),!!S())try{const Q=d();await P(Q,e).then(L=>L.json()).then(L=>{va(),c(L.secret),i(!0),N("project_api_tokens",{props:{eventType:"api_key_created"}}),V()})}catch(Q){t(f1(Q))}},handleCancel:()=>{r(j1)},mode:"Create",actions:n(ga,{name:"token",permission:fa,projectId:e}),children:[n(Ja,{username:p,setUsername:g,errors:Z,clearErrors:y}),n(Ya,{type:m,setType:b}),n(Qa,{type:m,environment:v,setEnvironment:w})]}),n(Xa,{open:o,closeConfirm:()=>{i(!1),r(j1)},token:s,type:m})]})},F5=()=>{const e=$1();return n(ae,{open:!0,onClose:()=>e(j1),label:"Create API token",children:n(R5,{})})},Z5=()=>{const e=Y("projectId"),t=k1(e),{hasAccess:a}=u.useContext(he),{tokens:r,loading:o,refetch:i}=M0(e),{trackEvent:s}=R1(),{deleteToken:c}=V0();S1(`Project api access – ${t}`);const{getTableProps:d,getTableBodyProps:p,headerGroups:m,rows:v,prepareRow:g,state:{globalFilter:b},setGlobalFilter:w,setHiddenColumns:S,columns:Z}=er(r,y=>l(r2,{children:[n(tr,{token:y.row.original,permission:V2,project:e,track:()=>s("project_api_tokens",{props:{eventType:"api_key_copied"}})}),n(nr,{token:y.row.original,permission:Ha,project:e,onRemove:async()=>{await c(y.row.original.secret,e),s("project_api_tokens",{props:{eventType:"api_key_deleted"}}),i()}})]}));return l("div",{style:{width:"100%",overflow:"hidden"},children:[n(d1,{header:n(s1,{title:`API access (${v.length})`,actions:l(G,{children:[n(w1,{initialValue:b,onChange:w}),n(s1.Divider,{}),n(ar,{permission:Wa,path:"create",project:e})]})}),children:n(x,{condition:!a(V2,e),show:n(U1,{severity:"warning",children:"You need to have the correct permissions to read API tokens"}),elseShow:n(rr,{compact:!0,loading:o,headerGroups:m,setHiddenColumns:S,prepareRow:g,getTableBodyProps:p,getTableProps:d,rows:v,columns:Z,globalFilter:b})})}),n(Fe,{children:n(n1,{path:"create",element:n(F5,{})})})]})},P5=()=>{const e=Y("projectId"),t=k1(e),{isOss:a}=p1(),r=$1();return S1(`Project segments – ${t}`),a()?n(d1,{header:n(s1,{titleElement:"Segments"}),sx:{justifyContent:"center"},children:n(yt,{feature:"segments"})}):l(Fe,{children:[n(n1,{path:"create",element:n(ae,{open:!0,onClose:()=>r(j1),label:"Create segment",children:n(ya,{modal:!0})})}),n(n1,{path:"edit/:segmentId",element:n(ae,{open:!0,onClose:()=>r(j1),label:"Edit segment",children:n(ba,{modal:!0})})}),n(n1,{path:"*",element:n(Ca,{})})]})},I5=()=>{var o;const e=p0(),t=$1(),a=[{id:"environments",label:"Environments"},{id:"access",label:"Access"},{id:"segments",label:"Segments"},{id:"change-requests",label:"Change request configuration"},{id:"api-access",label:"API access"}],r=i=>{t(i.id)};return n(_a,{tabs:a,value:((o=a.find(({id:i})=>{var s;return i&&((s=e.pathname)==null?void 0:s.includes(`/${i}`))}))==null?void 0:o.id)||a[0].id,onChange:r,children:l(Fe,{children:[n(n1,{path:"environments/*",element:n(v0,{})}),n(n1,{path:"access/*",element:n(T5,{})}),n(n1,{path:"segments/*",element:n(P5,{})}),n(n1,{path:"change-requests/*",element:n(k5,{})}),n(n1,{path:"api-access/*",element:n(Z5,{})}),n(n1,{path:"*",element:n(h0,{replace:!0,to:a[0].id})})]})})},j5=h(E0)(()=>({padding:0,margin:0,[`& .${D0.root}:before`]:{flex:0,padding:0}})),_3=h(S2,{shouldForwardProp:e=>e!=="active"})(({theme:e,active:t})=>({width:"1px",backgroundColor:t?e.palette.common.white:`${re(e.palette.common.white,.5)}`})),Vt=h(R0,{shouldForwardProp:e=>e!=="active"})(({theme:e,active:t})=>({color:t?e.palette.background.sidebar:`${re(e.palette.common.white,.8)}`,backgroundColor:t?e.palette.common.white:"initial",fontWeight:t?e.fontWeight.bold:"normal",borderColor:t?e.palette.common.white:`${re(e.palette.common.white,.8)}`,width:e.spacing(5),height:e.spacing(5),lineHeight:e.spacing(5),borderWidth:"1px",display:"flex",alignItems:"center",justifyContent:"center",margin:e.spacing(1,0)})),Mt=h(k0,{shouldForwardProp:e=>e!=="active"})(({theme:e,active:t})=>({padding:e.spacing(2,2,6,2),color:t?e.palette.common.white:`${re(e.palette.common.white,.8)}`})),Lt=h(A,{shouldForwardProp:e=>e!=="active"})(({theme:e,active:t})=>({fontWeight:t?e.fontWeight.bold:"normal",fontSize:e.fontSizes.bodySize})),Ht=h(A)(({theme:e})=>({fontSize:e.fontSizes.smallerBody})),O5=({stage:e})=>l(j5,{children:[l(qe,{children:[l(Ue,{children:[n(Vt,{variant:"outlined",active:e==="configure",children:"1"}),n(_3,{active:e==="configure"})]}),l(Mt,{active:e==="configure",children:[n(Lt,{active:e==="configure",children:"Import file"}),n(Ht,{children:"Import previously exported toggle configuration from another Unleash instance as a JSON file"})]})]}),l(qe,{children:[l(Ue,{children:[n(Vt,{variant:"outlined",active:e==="validate",children:"2"}),n(_3,{active:e==="validate"})]}),l(Mt,{active:e==="validate",children:[n(Lt,{active:e==="validate",children:"Validate configuration"}),n(Ht,{children:"Check the errors and warnings from the import process"})]})]}),l(qe,{children:[n(Ue,{children:n(Vt,{variant:"outlined",active:e==="import",children:"3"})}),l(Mt,{active:e==="import",children:[n(Lt,{active:e==="import",children:"Finish import"}),n(Ht,{children:"Feature toggle configuration will be imported to your new Unleash instance"})]})]})]});function fe(e,t,a,r){function o(i){return i instanceof a?i:new a(function(s){s(i)})}return new(a||(a=Promise))(function(i,s){function c(m){try{p(r.next(m))}catch(v){s(v)}}function d(m){try{p(r.throw(m))}catch(v){s(v)}}function p(m){m.done?i(m.value):o(m.value).then(c,d)}p((r=r.apply(e,t||[])).next())})}function ve(e,t){var a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(p){return function(m){return d([p,m])}}function d(p){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,p[0]&&(a=0)),a;)try{if(r=1,o&&(i=p[0]&2?o.return:p[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,p[1])).done)return i;switch(o=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return a.label++,{value:p[1],done:!1};case 5:a.label++,o=p[1],p=[0];continue;case 7:p=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){a=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){a.label=p[1];break}if(p[0]===6&&a.label<i[1]){a.label=i[1],i=p;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(p);break}i[2]&&a.ops.pop(),a.trys.pop();continue}p=t.call(e,a)}catch(m){p=[6,m],o=0}finally{r=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}function x3(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(c){s={error:c}}finally{try{o&&!o.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.error}}return i}function w3(e,t,a){if(a||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var z5=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Ie(e,t){var a=$5(e);if(typeof a.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(a,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return a}function $5(e){var t=e.name,a=t&&t.lastIndexOf(".")!==-1;if(a&&!e.type){var r=t.split(".").pop().toLowerCase(),o=z5.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var B5=[".DS_Store","Thumbs.db"];function V5(e){return fe(this,void 0,void 0,function(){return ve(this,function(t){return Xe(e)&&M5(e.dataTransfer)?[2,N5(e.dataTransfer,e.type)]:L5(e)?[2,H5(e)]:Array.isArray(e)&&e.every(function(a){return"getFile"in a&&typeof a.getFile=="function"})?[2,W5(e)]:[2,[]]})})}function M5(e){return Xe(e)}function L5(e){return Xe(e)&&Xe(e.target)}function Xe(e){return typeof e=="object"&&e!==null}function H5(e){return Xt(e.target.files).map(function(t){return Ie(t)})}function W5(e){return fe(this,void 0,void 0,function(){var t;return ve(this,function(a){switch(a.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=a.sent(),[2,t.map(function(r){return Ie(r)})]}})})}function N5(e,t){return fe(this,void 0,void 0,function(){var a,r;return ve(this,function(o){switch(o.label){case 0:return e.items?(a=Xt(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,a]:[4,Promise.all(a.map(q5))]):[3,2];case 1:return r=o.sent(),[2,S3(L0(r))];case 2:return[2,S3(Xt(e.files).map(function(i){return Ie(i)}))]}})})}function S3(e){return e.filter(function(t){return B5.indexOf(t.name)===-1})}function Xt(e){if(e===null)return[];for(var t=[],a=0;a<e.length;a++){var r=e[a];t.push(r)}return t}function q5(e){if(typeof e.webkitGetAsEntry!="function")return T3(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?H0(t):T3(e)}function L0(e){return e.reduce(function(t,a){return w3(w3([],x3(t),!1),x3(Array.isArray(a)?L0(a):[a]),!1)},[])}function T3(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var a=Ie(t);return Promise.resolve(a)}function U5(e){return fe(this,void 0,void 0,function(){return ve(this,function(t){return[2,e.isDirectory?H0(e):G5(e)]})})}function H0(e){var t=e.createReader();return new Promise(function(a,r){var o=[];function i(){var s=this;t.readEntries(function(c){return fe(s,void 0,void 0,function(){var d,p,m;return ve(this,function(v){switch(v.label){case 0:if(c.length)return[3,5];v.label=1;case 1:return v.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return d=v.sent(),a(d),[3,4];case 3:return p=v.sent(),r(p),[3,4];case 4:return[3,6];case 5:m=Promise.all(c.map(U5)),o.push(m),i(),v.label=6;case 6:return[2]}})})},function(c){r(c)})}i()})}function G5(e){return fe(this,void 0,void 0,function(){return ve(this,function(t){return[2,new Promise(function(a,r){e.file(function(o){var i=Ie(o,e.fullPath);a(i)},function(o){r(o)})})]})})}var K5=function(e,t){if(e&&t){var a=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return a.some(function(s){var c=s.trim().toLowerCase();return c.charAt(0)==="."?r.toLowerCase().endsWith(c):c.endsWith("/*")?i===c.replace(/\/.*$/,""):o===c})}return!0};function A3(e){return Q5(e)||Y5(e)||N0(e)||J5()}function J5(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
9
|
+
--data-raw '${JSON.stringify(d(),void 0,2)}'`,children:[l(Ka,{handleSubmit:async K=>{if(K.preventDefault(),!!T())try{const Q=d();await Z(Q,e).then(M=>M.json()).then(M=>{va(),c(M.secret),i(!0),N("project_api_tokens",{props:{eventType:"api_key_created"}}),B()})}catch(Q){t(f1(Q))}},handleCancel:()=>{r(j1)},mode:"Create",actions:n(ga,{name:"token",permission:fa,projectId:e}),children:[n(Ja,{username:p,setUsername:g,errors:F,clearErrors:y}),n(Ya,{type:m,setType:b}),n(Qa,{type:m,environment:v,setEnvironment:S})]}),n(Xa,{open:o,closeConfirm:()=>{i(!1),r(j1)},token:s,type:m})]})},F5=()=>{const e=$1();return n(ae,{open:!0,onClose:()=>e(j1),label:"Create API token",children:n(R5,{})})},Z5=()=>{const e=Y("projectId"),t=k1(e),{hasAccess:a}=u.useContext(he),{tokens:r,loading:o,refetch:i}=M0(e),{trackEvent:s}=R1(),{deleteToken:c}=V0();S1(`Project api access – ${t}`);const{getTableProps:d,getTableBodyProps:p,headerGroups:m,rows:v,prepareRow:g,state:{globalFilter:b},setGlobalFilter:S,setHiddenColumns:T,columns:F}=er(r,y=>l(r2,{children:[n(tr,{token:y.row.original,permission:V2,project:e,track:()=>s("project_api_tokens",{props:{eventType:"api_key_copied"}})}),n(nr,{token:y.row.original,permission:Ha,project:e,onRemove:async()=>{await c(y.row.original.secret,e),s("project_api_tokens",{props:{eventType:"api_key_deleted"}}),i()}})]}));return l("div",{style:{width:"100%",overflow:"hidden"},children:[n(d1,{header:n(s1,{title:`API access (${v.length})`,actions:l(G,{children:[n(w1,{initialValue:b,onChange:S}),n(s1.Divider,{}),n(ar,{permission:Wa,path:"create",project:e})]})}),children:n(w,{condition:!a(V2,e),show:n(U1,{severity:"warning",children:"You need to have the correct permissions to read API tokens"}),elseShow:n(rr,{compact:!0,loading:o,headerGroups:m,setHiddenColumns:T,prepareRow:g,getTableBodyProps:p,getTableProps:d,rows:v,columns:F,globalFilter:b})})}),n(Fe,{children:n(t1,{path:"create",element:n(F5,{})})})]})},P5=()=>{const e=Y("projectId"),t=k1(e),{isOss:a}=p1(),r=$1();return S1(`Project segments – ${t}`),a()?n(d1,{header:n(s1,{titleElement:"Segments"}),sx:{justifyContent:"center"},children:n(yt,{feature:"segments"})}):l(Fe,{children:[n(t1,{path:"create",element:n(ae,{open:!0,onClose:()=>r(j1),label:"Create segment",children:n(ya,{modal:!0})})}),n(t1,{path:"edit/:segmentId",element:n(ae,{open:!0,onClose:()=>r(j1),label:"Edit segment",children:n(ba,{modal:!0})})}),n(t1,{path:"*",element:n(Ca,{})})]})},I5=()=>{var o;const e=p0(),t=$1(),a=[{id:"environments",label:"Environments"},{id:"access",label:"Access"},{id:"segments",label:"Segments"},{id:"change-requests",label:"Change request configuration"},{id:"api-access",label:"API access"}],r=i=>{t(i.id)};return n(_a,{tabs:a,value:((o=a.find(({id:i})=>{var s;return i&&((s=e.pathname)==null?void 0:s.includes(`/${i}`))}))==null?void 0:o.id)||a[0].id,onChange:r,children:l(Fe,{children:[n(t1,{path:"environments/*",element:n(v0,{})}),n(t1,{path:"access/*",element:n(T5,{})}),n(t1,{path:"segments/*",element:n(P5,{})}),n(t1,{path:"change-requests/*",element:n(k5,{})}),n(t1,{path:"api-access/*",element:n(Z5,{})}),n(t1,{path:"*",element:n(h0,{replace:!0,to:a[0].id})})]})})},j5=h(E0)(()=>({padding:0,margin:0,[`& .${D0.root}:before`]:{flex:0,padding:0}})),_3=h(S2,{shouldForwardProp:e=>e!=="active"})(({theme:e,active:t})=>({width:"1px",backgroundColor:t?e.palette.common.white:`${re(e.palette.common.white,.5)}`})),Vt=h(R0,{shouldForwardProp:e=>e!=="active"})(({theme:e,active:t})=>({color:t?e.palette.background.sidebar:`${re(e.palette.common.white,.8)}`,backgroundColor:t?e.palette.common.white:"initial",fontWeight:t?e.fontWeight.bold:"normal",borderColor:t?e.palette.common.white:`${re(e.palette.common.white,.8)}`,width:e.spacing(5),height:e.spacing(5),lineHeight:e.spacing(5),borderWidth:"1px",display:"flex",alignItems:"center",justifyContent:"center",margin:e.spacing(1,0)})),Mt=h(k0,{shouldForwardProp:e=>e!=="active"})(({theme:e,active:t})=>({padding:e.spacing(2,2,6,2),color:t?e.palette.common.white:`${re(e.palette.common.white,.8)}`})),Lt=h(E,{shouldForwardProp:e=>e!=="active"})(({theme:e,active:t})=>({fontWeight:t?e.fontWeight.bold:"normal",fontSize:e.fontSizes.bodySize})),Ht=h(E)(({theme:e})=>({fontSize:e.fontSizes.smallerBody})),O5=({stage:e})=>l(j5,{children:[l(qe,{children:[l(Ue,{children:[n(Vt,{variant:"outlined",active:e==="configure",children:"1"}),n(_3,{active:e==="configure"})]}),l(Mt,{active:e==="configure",children:[n(Lt,{active:e==="configure",children:"Import file"}),n(Ht,{children:"Import previously exported toggle configuration from another Unleash instance as a JSON file"})]})]}),l(qe,{children:[l(Ue,{children:[n(Vt,{variant:"outlined",active:e==="validate",children:"2"}),n(_3,{active:e==="validate"})]}),l(Mt,{active:e==="validate",children:[n(Lt,{active:e==="validate",children:"Validate configuration"}),n(Ht,{children:"Check the errors and warnings from the import process"})]})]}),l(qe,{children:[n(Ue,{children:n(Vt,{variant:"outlined",active:e==="import",children:"3"})}),l(Mt,{active:e==="import",children:[n(Lt,{active:e==="import",children:"Finish import"}),n(Ht,{children:"Feature toggle configuration will be imported to your new Unleash instance"})]})]})]});function fe(e,t,a,r){function o(i){return i instanceof a?i:new a(function(s){s(i)})}return new(a||(a=Promise))(function(i,s){function c(m){try{p(r.next(m))}catch(v){s(v)}}function d(m){try{p(r.throw(m))}catch(v){s(v)}}function p(m){m.done?i(m.value):o(m.value).then(c,d)}p((r=r.apply(e,t||[])).next())})}function ve(e,t){var a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(p){return function(m){return d([p,m])}}function d(p){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,p[0]&&(a=0)),a;)try{if(r=1,o&&(i=p[0]&2?o.return:p[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,p[1])).done)return i;switch(o=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return a.label++,{value:p[1],done:!1};case 5:a.label++,o=p[1],p=[0];continue;case 7:p=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){a=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){a.label=p[1];break}if(p[0]===6&&a.label<i[1]){a.label=i[1],i=p;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(p);break}i[2]&&a.ops.pop(),a.trys.pop();continue}p=t.call(e,a)}catch(m){p=[6,m],o=0}finally{r=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}function x3(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(c){s={error:c}}finally{try{o&&!o.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.error}}return i}function w3(e,t,a){if(a||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var z5=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Ie(e,t){var a=$5(e);if(typeof a.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(a,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return a}function $5(e){var t=e.name,a=t&&t.lastIndexOf(".")!==-1;if(a&&!e.type){var r=t.split(".").pop().toLowerCase(),o=z5.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var B5=[".DS_Store","Thumbs.db"];function V5(e){return fe(this,void 0,void 0,function(){return ve(this,function(t){return Xe(e)&&M5(e.dataTransfer)?[2,N5(e.dataTransfer,e.type)]:L5(e)?[2,H5(e)]:Array.isArray(e)&&e.every(function(a){return"getFile"in a&&typeof a.getFile=="function"})?[2,W5(e)]:[2,[]]})})}function M5(e){return Xe(e)}function L5(e){return Xe(e)&&Xe(e.target)}function Xe(e){return typeof e=="object"&&e!==null}function H5(e){return Xt(e.target.files).map(function(t){return Ie(t)})}function W5(e){return fe(this,void 0,void 0,function(){var t;return ve(this,function(a){switch(a.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=a.sent(),[2,t.map(function(r){return Ie(r)})]}})})}function N5(e,t){return fe(this,void 0,void 0,function(){var a,r;return ve(this,function(o){switch(o.label){case 0:return e.items?(a=Xt(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,a]:[4,Promise.all(a.map(q5))]):[3,2];case 1:return r=o.sent(),[2,S3(L0(r))];case 2:return[2,S3(Xt(e.files).map(function(i){return Ie(i)}))]}})})}function S3(e){return e.filter(function(t){return B5.indexOf(t.name)===-1})}function Xt(e){if(e===null)return[];for(var t=[],a=0;a<e.length;a++){var r=e[a];t.push(r)}return t}function q5(e){if(typeof e.webkitGetAsEntry!="function")return T3(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?H0(t):T3(e)}function L0(e){return e.reduce(function(t,a){return w3(w3([],x3(t),!1),x3(Array.isArray(a)?L0(a):[a]),!1)},[])}function T3(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var a=Ie(t);return Promise.resolve(a)}function U5(e){return fe(this,void 0,void 0,function(){return ve(this,function(t){return[2,e.isDirectory?H0(e):G5(e)]})})}function H0(e){var t=e.createReader();return new Promise(function(a,r){var o=[];function i(){var s=this;t.readEntries(function(c){return fe(s,void 0,void 0,function(){var d,p,m;return ve(this,function(v){switch(v.label){case 0:if(c.length)return[3,5];v.label=1;case 1:return v.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return d=v.sent(),a(d),[3,4];case 3:return p=v.sent(),r(p),[3,4];case 4:return[3,6];case 5:m=Promise.all(c.map(U5)),o.push(m),i(),v.label=6;case 6:return[2]}})})},function(c){r(c)})}i()})}function G5(e){return fe(this,void 0,void 0,function(){return ve(this,function(t){return[2,new Promise(function(a,r){e.file(function(o){var i=Ie(o,e.fullPath);a(i)},function(o){r(o)})})]})})}var K5=function(e,t){if(e&&t){var a=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return a.some(function(s){var c=s.trim().toLowerCase();return c.charAt(0)==="."?r.toLowerCase().endsWith(c):c.endsWith("/*")?i===c.replace(/\/.*$/,""):o===c})}return!0};function A3(e){return Q5(e)||Y5(e)||N0(e)||J5()}function J5(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
10
10
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y5(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Q5(e){if(Array.isArray(e))return e2(e)}function E3(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),a.push.apply(a,r)}return a}function k3(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?E3(Object(a),!0).forEach(function(r){W0(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):E3(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}function W0(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Te(e,t){return tc(e)||ec(e,t)||N0(e,t)||X5()}function X5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N0(e,t){if(e){if(typeof e=="string")return e2(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return e2(e,t)}}function e2(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function ec(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r=[],o=!0,i=!1,s,c;try{for(a=a.call(e);!(o=(s=a.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(d){i=!0,c=d}finally{try{!o&&a.return!=null&&a.return()}finally{if(i)throw c}}return r}}function tc(e){if(Array.isArray(e))return e}var nc="file-invalid-type",ac="file-too-large",rc="file-too-small",oc="too-many-files",ic=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var a=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:nc,message:"File type must be ".concat(a)}},D3=function(t){return{code:ac,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},R3=function(t){return{code:rc,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},sc={code:oc,message:"Too many files"};function q0(e,t){var a=e.type==="application/x-moz-file"||K5(e,t);return[a,a?null:ic(t)]}function U0(e,t,a){if(H1(e.size))if(H1(t)&&H1(a)){if(e.size>a)return[!1,D3(a)];if(e.size<t)return[!1,R3(t)]}else{if(H1(t)&&e.size<t)return[!1,R3(t)];if(H1(a)&&e.size>a)return[!1,D3(a)]}return[!0,null]}function H1(e){return e!=null}function cc(e){var t=e.files,a=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles,c=e.validator;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(d){var p=q0(d,a),m=Te(p,1),v=m[0],g=U0(d,r,o),b=Te(g,1),
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N0(e,t){if(e){if(typeof e=="string")return e2(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return e2(e,t)}}function e2(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function ec(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r=[],o=!0,i=!1,s,c;try{for(a=a.call(e);!(o=(s=a.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(d){i=!0,c=d}finally{try{!o&&a.return!=null&&a.return()}finally{if(i)throw c}}return r}}function tc(e){if(Array.isArray(e))return e}var nc="file-invalid-type",ac="file-too-large",rc="file-too-small",oc="too-many-files",ic=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var a=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:nc,message:"File type must be ".concat(a)}},D3=function(t){return{code:ac,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},R3=function(t){return{code:rc,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},sc={code:oc,message:"Too many files"};function q0(e,t){var a=e.type==="application/x-moz-file"||K5(e,t);return[a,a?null:ic(t)]}function U0(e,t,a){if(H1(e.size))if(H1(t)&&H1(a)){if(e.size>a)return[!1,D3(a)];if(e.size<t)return[!1,R3(t)]}else{if(H1(t)&&e.size<t)return[!1,R3(t)];if(H1(a)&&e.size>a)return[!1,D3(a)]}return[!0,null]}function H1(e){return e!=null}function cc(e){var t=e.files,a=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles,c=e.validator;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(d){var p=q0(d,a),m=Te(p,1),v=m[0],g=U0(d,r,o),b=Te(g,1),S=b[0],T=c?c(d):null;return v&&S&&!T})}function et(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function We(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function F3(e){e.preventDefault()}function lc(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function dc(e){return e.indexOf("Edge/")!==-1}function uc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return lc(e)||dc(e)}function x1(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];return t.some(function(c){return!et(r)&&c&&c.apply(void 0,[r].concat(i)),et(r)})}}function pc(){return"showOpenFilePicker"in window}function hc(e){if(H1(e)){var t=Object.entries(e).filter(function(a){var r=Te(a,2),o=r[0],i=r[1],s=!0;return G0(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),s=!1),(!Array.isArray(i)||!i.every(K0))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(a,r){var o=Te(r,2),i=o[0],s=o[1];return k3(k3({},a),{},W0({},i,s))},{});return[{description:"Files",accept:t}]}return e}function mc(e){if(H1(e))return Object.entries(e).reduce(function(t,a){var r=Te(a,2),o=r[0],i=r[1];return[].concat(A3(t),[o],A3(i))},[]).filter(function(t){return G0(t)||K0(t)}).join(",")}function gc(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function fc(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function G0(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function K0(e){return/^.*\.[\w]+$/.test(e)}var vc=["children"],yc=["open"],bc=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Cc=["refKey","onChange","onClick"];function _c(e){return Sc(e)||wc(e)||J0(e)||xc()}function xc(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
12
12
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Sc(e){if(Array.isArray(e))return t2(e)}function Wt(e,t){return Ec(e)||Ac(e,t)||J0(e,t)||Tc()}function Tc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
13
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J0(e,t){if(e){if(typeof e=="string")return t2(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return t2(e,t)}}function t2(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function Ac(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r=[],o=!0,i=!1,s,c;try{for(a=a.call(e);!(o=(s=a.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(d){i=!0,c=d}finally{try{!o&&a.return!=null&&a.return()}finally{if(i)throw c}}return r}}function Ec(e){if(Array.isArray(e))return e}function Z3(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),a.push.apply(a,r)}return a}function t1(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Z3(Object(a),!0).forEach(function(r){n2(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Z3(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}function n2(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function tt(e,t){if(e==null)return{};var a=kc(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function kc(e,t){if(e==null)return{};var a={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(a[o]=e[o]);return a}var I2=u.forwardRef(function(e,t){var a=e.children,r=tt(e,vc),o=Q0(r),i=o.open,s=tt(o,yc);return u.useImperativeHandle(t,function(){return{open:i}},[i]),we.createElement(u.Fragment,null,a(t1(t1({},s),{},{open:i})))});I2.displayName="Dropzone";var Y0={disabled:!1,getFilesFromEvent:V5,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};I2.defaultProps=Y0;I2.propTypes={children:J.func,accept:J.objectOf(J.arrayOf(J.string)),multiple:J.bool,preventDropOnDocument:J.bool,noClick:J.bool,noKeyboard:J.bool,noDrag:J.bool,noDragEventsBubbling:J.bool,minSize:J.number,maxSize:J.number,maxFiles:J.number,disabled:J.bool,getFilesFromEvent:J.func,onFileDialogCancel:J.func,onFileDialogOpen:J.func,useFsAccessApi:J.bool,autoFocus:J.bool,onDragEnter:J.func,onDragLeave:J.func,onDragOver:J.func,onDrop:J.func,onDropAccepted:J.func,onDropRejected:J.func,onError:J.func,validator:J.func};var a2={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Q0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=t1(t1({},Y0),e),a=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,c=t.multiple,d=t.maxFiles,p=t.onDragEnter,m=t.onDragLeave,v=t.onDragOver,g=t.onDrop,b=t.onDropAccepted,w=t.onDropRejected,S=t.onFileDialogCancel,Z=t.onFileDialogOpen,y=t.useFsAccessApi,P=t.autoFocus,H=t.preventDropOnDocument,V=t.noClick,N=t.noKeyboard,_=t.noDrag,D=t.noDragEventsBubbling,z=t.onError,M=t.validator,W=u.useMemo(function(){return mc(a)},[a]),O=u.useMemo(function(){return hc(a)},[a]),K=u.useMemo(function(){return typeof Z=="function"?Z:P3},[Z]),Q=u.useMemo(function(){return typeof S=="function"?S:P3},[S]),L=u.useRef(null),f=u.useRef(null),k=u.useReducer(Dc,a2),R=Wt(k,2),U=R[0],C=R[1],X=U.isFocused,c1=U.isFileDialogActive,a1=u.useRef(typeof window<"u"&&window.isSecureContext&&y&&pc()),m1=function(){!a1.current&&c1&&setTimeout(function(){if(f.current){var I=f.current.files;I.length||(C({type:"closeDialog"}),Q())}},300)};u.useEffect(function(){return window.addEventListener("focus",m1,!1),function(){window.removeEventListener("focus",m1,!1)}},[f,c1,Q,a1]);var Z1=u.useRef([]),je=function(I){L.current&&L.current.contains(I.target)||(I.preventDefault(),Z1.current=[])};u.useEffect(function(){return H&&(document.addEventListener("dragover",F3,!1),document.addEventListener("drop",je,!1)),function(){H&&(document.removeEventListener("dragover",F3),document.removeEventListener("drop",je))}},[L,H]),u.useEffect(function(){return!r&&P&&L.current&&L.current.focus(),function(){}},[L,P,r]);var C1=u.useCallback(function(T){z?z(T):console.error(T)},[z]),l1=u.useCallback(function(T){T.preventDefault(),T.persist(),_1(T),Z1.current=[].concat(_c(Z1.current),[T.target]),We(T)&&Promise.resolve(o(T)).then(function(I){if(!(et(T)&&!D)){var F=I.length,E=F>0&&cc({files:I,accept:W,minSize:s,maxSize:i,multiple:c,maxFiles:d,validator:M}),$=F>0&&!E;C({isDragAccept:E,isDragReject:$,isDragActive:!0,type:"setDraggedFiles"}),p&&p(T)}}).catch(function(I){return C1(I)})},[o,p,C1,D,W,s,i,c,d,M]),ye=u.useCallback(function(T){T.preventDefault(),T.persist(),_1(T);var I=We(T);if(I&&T.dataTransfer)try{T.dataTransfer.dropEffect="copy"}catch{}return I&&v&&v(T),!1},[v,D]),Oe=u.useCallback(function(T){T.preventDefault(),T.persist(),_1(T);var I=Z1.current.filter(function(E){return L.current&&L.current.contains(E)}),F=I.indexOf(T.target);F!==-1&&I.splice(F,1),Z1.current=I,!(I.length>0)&&(C({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),We(T)&&m&&m(T))},[L,m,D]),V1=u.useCallback(function(T,I){var F=[],E=[];T.forEach(function($){var B=q0($,W),e1=Wt(B,2),I1=e1[0],St=e1[1],Tt=U0($,s,i),Be=Wt(Tt,2),At=Be[0],Et=Be[1],kt=M?M($):null;if(I1&&At&&!kt)F.push($);else{var Dt=[St,Et];kt&&(Dt=Dt.concat(kt)),E.push({file:$,errors:Dt.filter(function(en){return en})})}}),(!c&&F.length>1||c&&d>=1&&F.length>d)&&(F.forEach(function($){E.push({file:$,errors:[sc]})}),F.splice(0)),C({acceptedFiles:F,fileRejections:E,type:"setFiles"}),g&&g(F,E,I),E.length>0&&w&&w(E,I),F.length>0&&b&&b(F,I)},[C,c,W,s,i,d,g,b,w,M]),Q1=u.useCallback(function(T){T.preventDefault(),T.persist(),_1(T),Z1.current=[],We(T)&&Promise.resolve(o(T)).then(function(I){et(T)&&!D||V1(I,T)}).catch(function(I){return C1(I)}),C({type:"reset"})},[o,V1,C1,D]),T1=u.useCallback(function(){if(a1.current){C({type:"openDialog"}),K();var T={multiple:c,types:O};window.showOpenFilePicker(T).then(function(I){return o(I)}).then(function(I){V1(I,null),C({type:"closeDialog"})}).catch(function(I){gc(I)?(Q(I),C({type:"closeDialog"})):fc(I)?(a1.current=!1,f.current?(f.current.value=null,f.current.click()):C1(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):C1(I)});return}f.current&&(C({type:"openDialog"}),K(),f.current.value=null,f.current.click())},[C,K,Q,y,V1,C1,O,c]),be=u.useCallback(function(T){!L.current||!L.current.isEqualNode(T.target)||(T.key===" "||T.key==="Enter"||T.keyCode===32||T.keyCode===13)&&(T.preventDefault(),T1())},[L,T1]),ze=u.useCallback(function(){C({type:"focus"})},[]),$e=u.useCallback(function(){C({type:"blur"})},[]),Ce=u.useCallback(function(){V||(uc()?setTimeout(T1,0):T1())},[V,T1]),P1=function(I){return r?null:I},M1=function(I){return N?null:P1(I)},L1=function(I){return _?null:P1(I)},_1=function(I){D&&I.stopPropagation()},X1=u.useMemo(function(){return function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=T.refKey,F=I===void 0?"ref":I,E=T.role,$=T.onKeyDown,B=T.onFocus,e1=T.onBlur,I1=T.onClick,St=T.onDragEnter,Tt=T.onDragOver,Be=T.onDragLeave,At=T.onDrop,Et=tt(T,bc);return t1(t1(n2({onKeyDown:M1(x1($,be)),onFocus:M1(x1(B,ze)),onBlur:M1(x1(e1,$e)),onClick:P1(x1(I1,Ce)),onDragEnter:L1(x1(St,l1)),onDragOver:L1(x1(Tt,ye)),onDragLeave:L1(x1(Be,Oe)),onDrop:L1(x1(At,Q1)),role:typeof E=="string"&&E!==""?E:"presentation"},F,L),!r&&!N?{tabIndex:0}:{}),Et)}},[L,be,ze,$e,Ce,l1,ye,Oe,Q1,N,_,r]),xt=u.useCallback(function(T){T.stopPropagation()},[]),wt=u.useMemo(function(){return function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=T.refKey,F=I===void 0?"ref":I,E=T.onChange,$=T.onClick,B=tt(T,Cc),e1=n2({accept:W,multiple:c,type:"file",style:{display:"none"},onChange:P1(x1(E,Q1)),onClick:P1(x1($,xt)),tabIndex:-1},F,f);return t1(t1({},e1),B)}},[f,a,c,Q1,r]);return t1(t1({},U),{},{isFocused:X&&!r,getRootProps:X1,getInputProps:wt,rootRef:L,inputRef:f,open:P1(T1)})}function Dc(e,t){switch(t.type){case"focus":return t1(t1({},e),{},{isFocused:!0});case"blur":return t1(t1({},e),{},{isFocused:!1});case"openDialog":return t1(t1({},a2),{},{isFileDialogActive:!0});case"closeDialog":return t1(t1({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return t1(t1({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return t1(t1({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return t1({},a2);default:return e}}function P3(){}const Rc=e=>JSON.stringify(JSON.parse(e),null,4),Fc=({onSuccess:e,onError:t})=>a=>{var o;const r=(o=a==null?void 0:a.target)==null?void 0:o.result;if(typeof r=="string")try{const i=Rc(r);e(i)}catch{t("Cannot format as valid JSON")}else t("Unsupported format")},Zc=({onSuccess:e,onError:t,children:a,onDragStatusChange:r,...o})=>{const i=u.useCallback(([p])=>{const m=new FileReader;m.onload=Fc({onSuccess:e,onError:t}),m.readAsText(p)},[]),{getRootProps:s,getInputProps:c,isDragActive:d}=Q0({onDrop:i,accept:{"application/json":[".json"]},maxFiles:1});return u.useEffect(()=>{r(d)},[d]),l(A,{...s(),...o,children:[n("input",{...c()}),a]})},Pc=h(Zc)(({theme:e})=>({padding:e.spacing(4,2,2,2),border:`1px dashed ${e.palette.secondary.border}`,borderRadius:e.shape.borderRadiusLarge,display:"flex",flexDirection:"column",alignItems:"center"})),X0=h(vt,{shouldForwardProp:e=>e!=="active"})(({theme:e,active:t})=>({transition:"background-color 0.5s ease",color:e.palette.common.white,backgroundColor:t?e.palette.primary.main:e.palette.divider,"@keyframes pulse":{"0%":{boxShadow:`0 0 0 0px ${re(e.palette.primary.main,.7)}`},"100%":{boxShadow:`0 0 0 20px ${re(e.palette.primary.main,0)}`}},animation:t?"pulse 2s infinite":""})),Ic=h(A)(({theme:e})=>({backgroundColor:e.palette.background.elevation2,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(3)})),Nt=h(j)(({theme:e})=>({marginBottom:e.spacing(.5)})),qt=h(A)(({theme:e})=>({marginBottom:e.spacing(3),color:e.palette.text.secondary,fontSize:e.fontSizes.smallBody})),jc=()=>l(Ic,{children:[n(Nt,{children:"What is being imported?"}),l(qt,{children:["Feature toggles will be imported with full configuration:",l("ul",{children:[n("li",{children:"strategies"}),n("li",{children:"context fields"}),n("li",{children:"variants"}),n("li",{children:"tags"}),n("li",{children:"feature toggle status"})]})]}),n(Nt,{children:"Exceptions?"}),n(qt,{children:"If the feature toggle already exists in the new instance, it will be overwritten"}),n(Nt,{children:"What is not imported?"}),n(qt,{sx:{marginBottom:0},children:"If we detect segments or custom strategies in your imported file, we will stop the import. You need to create them first in the new instance and run the import again"})]}),j2=h("div")(({theme:e})=>({backgroundColor:e.palette.background.paper,padding:e.spacing(5,8,3,8),display:"flex",flexDirection:"column",gap:e.spacing(3),flexBasis:"70%"})),O2=h(A)(({theme:e})=>({width:"100%",borderTop:`1px solid ${e.palette.divider}`,marginTop:"auto",paddingTop:e.spacing(3),display:"flex",justifyContent:"flex-end"})),Oc=h(Kt)(({theme:e})=>({width:"100%"})),zc=h(j)(({theme:e})=>({marginTop:e.spacing(4),fontSize:e.fontSizes.mainHeader})),$c=h(j)(({theme:e})=>({marginTop:e.spacing(2),marginBottom:e.spacing(1.5),color:e.palette.text.secondary})),Bc=h(j)(({theme:e})=>({marginTop:e.spacing(4),color:e.palette.text.secondary})),Vc=({activeTab:e,setActiveTab:t})=>n(A,{sx:{borderBottom:1,borderColor:"divider"},children:l(m2,{value:e,children:[n(Ke,{label:"Upload file",value:"file",onClick:()=>t("file")}),n(Ke,{label:"Code editor",value:"code","data-testid":xa,onClick:()=>t("code")})]})}),Mc=({activeTab:e,setActiveTab:t,importPayload:a,setImportPayload:r})=>{const[o,i]=u.useState(!1),{setToastData:s}=u1();return n(x,{condition:e==="file",show:l(Pc,{onSuccess:c=>{r(c),t("code"),s({type:"success",title:"File uploaded"})},onError:c=>{r(""),s({type:"error",title:c})},onDragStatusChange:i,children:[n(X0,{sx:{width:80,height:80},active:o,children:n(ir,{fontSize:"large"})}),n(zc,{children:o?"Drop your file to upload":"Drop your file here"}),n($c,{children:"or select a file from your device"}),n(v1,{variant:"outlined",children:"Select file"}),n(Bc,{children:"JSON format: max 500 kB"})]}),elseShow:n(Oc,{label:"Exported toggles",variant:"outlined",onChange:c=>r(c.target.value),value:a,"data-testid":wa,multiline:!0,minRows:13,maxRows:13})})},Lc=({onSubmit:e,onClose:t,disabled:a})=>l(O2,{children:[n(v1,{sx:{position:"static"},variant:"contained",type:"submit",onClick:e,"data-testid":Sa,disabled:a,children:"Validate"}),n(v1,{sx:{position:"static",ml:2},variant:"outlined",type:"submit",onClick:t,children:"Cancel import"})]}),Hc=({tabs:e,importOptions:t,importArea:a,actions:r})=>l(j2,{children:[e,t,a,n(jc,{}),r]}),Wc=()=>{const{makeRequest:e,createRequest:t,errors:a,loading:r}=y2({propagateErrors:!0});return{loading:r,errors:a,validateImport:async i=>{const c=t("api/admin/features-batch/validate",{method:"POST",body:JSON.stringify(i)});try{return(await e(c.caller,c.id)).json()}catch(d){throw d}}}},Nc=h(A)(({theme:e})=>({backgroundColor:e.palette.background.elevation2,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(3)})),I3=h("span")(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.text.secondary})),j3=h("span")(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.text.primary,fontWeight:e.fontWeight.bold})),O3=h(A)(({theme:e})=>({border:`1px solid ${e.palette.error.border}`,borderRadius:e.shape.borderRadiusLarge,paddingBottom:e.spacing(2)})),qc=h(A)(({theme:e})=>({border:`1px solid ${e.palette.warning.border}`,borderRadius:e.shape.borderRadiusLarge,paddingBottom:e.spacing(2)})),z3=h(A)(({theme:e})=>({color:e.palette.error.dark,backgroundColor:e.palette.error.light,fontSize:e.fontSizes.smallBody,borderBottom:`1px solid ${e.palette.error.border}`,borderTopLeftRadius:e.shape.borderRadiusLarge,borderTopRightRadius:e.shape.borderRadiusLarge,padding:e.spacing(2)})),Uc=h(A)(({theme:e})=>({color:e.palette.warning.dark,backgroundColor:e.palette.warning.light,fontSize:e.fontSizes.smallBody,borderBottom:`1px solid ${e.palette.warning.border}`,borderTopLeftRadius:e.shape.borderRadiusLarge,borderTopRightRadius:e.shape.borderRadiusLarge,padding:e.spacing(2)})),$3=h(A)(({theme:e})=>({color:e.palette.error.dark,fontSize:e.fontSizes.smallBody})),Gc=h(A)(({theme:e})=>({color:e.palette.warning.dark,fontSize:e.fontSizes.smallBody})),Ut=h("ul")(({theme:e})=>({marginTop:e.spacing(1),marginBottom:e.spacing(0),paddingLeft:e.spacing(3),paddingBottom:e.spacing(3),borderBottom:`1px dashed ${e.palette.neutral.border}`})),Gt=h("li")(({theme:e})=>({fontSize:e.fontSizes.smallBody})),Kc=({environment:e,project:t,payload:a,onClose:r,onBack:o,onSubmit:i})=>{const{validateImport:s}=Wc(),{setToastData:c}=u1(),{trackEvent:d}=R1(),[p,m]=u.useState({errors:[],warnings:[],permissions:[]}),[v,g]=u.useState(!0),b=w=>{w.errors.length>0||w.permissions.length>0?d("export_import",{props:{eventType:"validation fail"}}):d("export_import",{props:{eventType:"validation success"}}),m(w)};return u.useEffect(()=>{s({environment:e,project:t,data:JSON.parse(a)}).then(b).catch(w=>{g(!1),c({type:"error",title:f1(w)})})},[]),l(j2,{children:[l(Nc,{children:[n(j,{sx:{mb:1.5},children:"You are importing this configuration in:"}),l(A,{sx:{display:"flex",gap:3},children:[l("span",{children:[n(I3,{children:"Environment: "}),n(j3,{children:e})]}),l("span",{children:[n(I3,{children:"Project: "}),n(j3,{children:t})]})]})]}),n(x,{condition:p.permissions.length>0,show:l(O3,{children:[l(z3,{children:[n("strong",{children:"Missing permissions!"})," There are some permissions that you need to be granted before importing this configuration"]}),p.permissions.map(w=>l(A,{sx:{p:2},children:[n($3,{children:w.message}),n(Ut,{children:w.affectedItems.map(S=>n(Gt,{children:S},S))})]},w.message))]})}),n(x,{condition:p.errors.length>0,show:l(O3,{children:[l(z3,{children:[n("strong",{children:"Conflict!"})," There are some errors that need to be fixed before the import."]}),p.errors.map(w=>l(A,{sx:{p:2},children:[n($3,{children:w.message}),n(Ut,{children:w.affectedItems.map(S=>n(Gt,{children:S},S))})]},w.message))]})}),n(x,{condition:p.warnings.length>0,show:l(qc,{children:[l(Uc,{children:[n("strong",{children:"Warning!"})," It is recommended to verify the following information before importing."]}),p.warnings.map(w=>l(A,{sx:{p:2},children:[n(Gc,{children:w.message}),n(Ut,{children:w.affectedItems.map(S=>n(Gt,{children:S},S))})]},w.message))]})}),l(O2,{children:[n(v1,{sx:{position:"static",mr:"auto"},variant:"outlined",type:"submit",onClick:o,children:"Back"}),n(h2,{permission:i2,projectId:t,sx:{position:"static"},variant:"contained",type:"submit",onClick:i,"data-testid":Ta,disabled:p.errors.length>0||p.permissions.length>0||!v,children:"Import configuration"}),n(v1,{sx:{position:"static",ml:2},variant:"outlined",type:"submit",onClick:r,children:"Cancel import"})]})]})},Jc=()=>{const{makeRequest:e,createRequest:t,errors:a,loading:r}=y2({propagateErrors:!0}),{trackEvent:o}=R1();return{loading:r,errors:a,createImport:async s=>{const d=t("api/admin/features-batch/import",{method:"POST",body:JSON.stringify(s)});try{const p=await e(d.caller,d.id);return o("export_import",{props:{eventType:"features imported"}}),p}catch(p){throw p}}}},Yc=h(f0)(({theme:e})=>({padding:e.spacing(4,2,2,2),display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(8)})),Qc=h(j)(({theme:e})=>({fontSize:e.fontSizes.mainHeader})),Xc=h(vt)(({theme:e})=>({backgroundColor:e.palette.primary.main})),e6=h(vt)(({theme:e})=>({backgroundColor:e.palette.error.main})),t6=h(f0)(({theme:e})=>({border:`1px solid ${e.palette.info.border}`,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(2),color:e.palette.info.dark,backgroundColor:e.palette.info.light,fontSize:e.fontSizes.smallBody})),n6=(e,t)=>e?{status:"loading"}:Object.keys(t).length>0?{status:"error",errors:t}:{status:"success"},a6=({environment:e,project:t,payload:a,onClose:r})=>{const{createImport:o,loading:i,errors:s}=Jc(),{refetch:c}=D1(t),{refetch:d}=u2(t),{setToastData:p}=u1(),{isChangeRequestConfigured:m}=pt(t);u.useEffect(()=>{o({environment:e,project:t,data:JSON.parse(a)}).then(()=>{c(),d()}).catch(b=>{p({type:"error",title:f1(b)})})},[]);const v=n6(i,s),g=m(e)&&v.status==="success";return l(j2,{children:[l(Yc,{children:[n(x,{condition:v.status==="loading",show:n(X0,{sx:{width:80,height:80},active:!0,children:n(dr,{fontSize:"large"})})}),n(x,{condition:v.status==="success",show:n(Xc,{sx:{width:80,height:80},children:n(e0,{fontSize:"large"})})}),n(x,{condition:v.status==="error",show:n(e6,{sx:{width:80,height:80},children:n(or,{fontSize:"large"})})}),l(Qc,{children:[n(x,{condition:v.status==="loading",show:"Importing..."}),n(x,{condition:v.status==="success",show:"Import completed"}),n(x,{condition:v.status==="error",show:"Import failed"})]})]}),n(x,{condition:g,show:l(t6,{children:["For this environment ",n("strong",{children:"Change request"})," is enabled. This means that the import has generated a change request which needs to be approved before the configuration will be visible in the instance."]})}),n(O2,{children:n(v1,{sx:{position:"static"},variant:"contained",type:"submit",onClick:r,children:"Close"})})]})},r6=h(A)(({theme:e})=>({backgroundColor:e.palette.background.elevation2,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(3)})),o6=h(j)(({theme:e})=>({marginBottom:e.spacing(3),fontWeight:e.fontWeight.bold})),i6=h(j)(({theme:e})=>({marginBottom:e.spacing(1.5)})),s6=({project:e,environment:t,onChange:a})=>{const{project:r}=D1(e),o=r.environments.map(i=>({key:i,label:i,title:i}));return u.useEffect(()=>{t===""&&o[0]&&a(o[0].key)},[JSON.stringify(o)]),l(r6,{children:[n(o6,{children:"Import options"}),n(i6,{children:"Choose the environment to import the configuration for"}),n(d0,{sx:{width:"180px"},options:o,onChange:a,label:"Environment",value:t,"data-testid":Aa,IconComponent:u0,fullWidth:!0})]})},c6=h("div")(({theme:e})=>({minHeight:"100vh",display:"flex"})),l6=h("div")(({theme:e})=>({backgroundColor:e.palette.background.sidebar,padding:e.spacing(8),flexBasis:"30%"})),d6=h("div")(({theme:e})=>({textTransform:"uppercase",fontSize:e.fontSizes.smallBody,color:e.palette.common.white,fontWeight:e.typography.fontWeightBold,marginBottom:e.spacing(3)})),u6=e=>{try{return JSON.parse(e),!0}catch{return!1}},p6=({open:e,setOpen:t,project:a})=>{const[r,o]=u.useState("configure"),[i,s]=u.useState(""),[c,d]=u.useState(""),[p,m]=u.useState("file"),v=()=>{t(!1)};u.useEffect(()=>{e===!0&&g()},[e]);const g=()=>{o("configure"),s(""),d(""),m("file")};return n(ae,{open:e,onClose:v,label:"Import toggles",children:l(c6,{children:[l(l6,{children:[n(d6,{children:"Process"}),n(O5,{stage:r})]}),n(x,{condition:r==="configure",show:n(Hc,{tabs:n(Vc,{activeTab:p,setActiveTab:m}),importOptions:n(s6,{project:a,environment:i,onChange:s}),importArea:n(Mc,{activeTab:p,setActiveTab:m,importPayload:c,setImportPayload:d}),actions:n(Lc,{disabled:!u6(c),onSubmit:()=>o("validate"),onClose:v})})}),n(x,{condition:r==="validate",show:n(Kc,{project:a,environment:i,payload:c,onBack:()=>o("configure"),onSubmit:()=>o("import"),onClose:v})}),n(x,{condition:r==="import",show:n(a6,{project:a,environment:i,payload:c,onClose:v})})]})})},h6="NAVIGATE_TO_EDIT_PROJECT",b6=()=>{var _;const e=Y("projectId"),t=Ea(),{project:a,loading:r,refetch:o}=D1(e),i=K3(r),{setToastData:s}=u1(),[c,d]=u.useState(!1),p=$1(),{pathname:m}=p0(),{isOss:v,uiConfig:g}=p1(),b=`/projects/${e}`,w=(a==null?void 0:a.name)||e,{favorite:S,unfavorite:Z}=ka(),[y,P]=u.useState(!1),H=[{title:"Overview",path:b,name:"overview"},{title:"Health",path:`${b}/health`,name:"health"},{title:"Archive",path:`${b}/archive`,name:"archive"},{title:"Change requests",path:`${b}/change-requests`,name:"change-request"},{title:"Project settings",path:`${b}/settings`,name:"settings"},{title:"Event log",path:`${b}/logs`,name:"logs"}],V=[...H].reverse().find(D=>m.startsWith(D.path));return u.useEffect(()=>{const D=t.get("created"),z=t.get("edited");(D||z)&&s({type:"success",title:D?"Project created":"Project updated"})},[]),l("div",{ref:i,children:[l(yr,{children:[n(br,{children:l(mr,{children:[l(M2,{children:[n(vr,{onClick:async()=>{a!=null&&a.favorite?await Z(e):await S(e),o()},isFavorite:a==null?void 0:a.favorite}),n(Cr,{children:n(gr,{"data-loading":!0,children:w})})]}),l(M2,{children:[n(x,{condition:Boolean((_=g==null?void 0:g.flags)==null?void 0:_.featuresExportImport),show:n(N1,{permission:ut,projectId:e,onClick:()=>d(!0),tooltipProps:{title:"Import"},"data-testid":Da,"data-loading":!0,children:n(lr,{})})}),n(x,{condition:!v(),show:n(N1,{permission:A1,projectId:e,onClick:()=>p(`/projects/${e}/edit`),tooltipProps:{title:"Edit project"},"data-loading":!0,"data-testid":h6,children:n(g2,{})})}),n(x,{condition:!v(),show:n(N1,{permission:Ra,projectId:e,onClick:()=>{P(!0)},tooltipProps:{title:"Delete project"},"data-loading":!0,children:n(f2,{})})})]})]})}),n(_r,{}),n(xr,{children:n(m2,{value:V==null?void 0:V.path,indicatorColor:"primary",textColor:"primary",variant:"scrollable",allowScrollButtonsMobile:!0,children:H.map(D=>n(wr,{label:D.title,value:D.path,onClick:()=>p(D.path),"data-testid":`TAB_${D.title}`},D.title))})})]}),n(Fa,{project:e,open:y,onClose:()=>{P(!1)},onSuccess:()=>{p("/projects")}}),l(Fe,{children:[n(n1,{path:"health",element:n(y4,{})}),n(n1,{path:"access/*",element:n(h0,{replace:!0,to:`/projects/${e}/settings/access`})}),n(n1,{path:"environments",element:n(v0,{})}),n(n1,{path:"archive",element:n($r,{})}),n(n1,{path:"logs",element:n(C4,{})}),n(n1,{path:"change-requests",element:n(Ys,{})}),n(n1,{path:"change-requests/:id",element:n(js,{})}),n(n1,{path:"settings/*",element:n(I5,{})}),n(n1,{path:"*",element:n(Qo,{})})]}),n(p6,{open:c,setOpen:d,project:e})]})};export{b6 as default};
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J0(e,t){if(e){if(typeof e=="string")return t2(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return t2(e,t)}}function t2(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function Ac(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r=[],o=!0,i=!1,s,c;try{for(a=a.call(e);!(o=(s=a.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(d){i=!0,c=d}finally{try{!o&&a.return!=null&&a.return()}finally{if(i)throw c}}return r}}function Ec(e){if(Array.isArray(e))return e}function Z3(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),a.push.apply(a,r)}return a}function e1(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Z3(Object(a),!0).forEach(function(r){n2(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Z3(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}function n2(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function tt(e,t){if(e==null)return{};var a=kc(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function kc(e,t){if(e==null)return{};var a={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(a[o]=e[o]);return a}var I2=u.forwardRef(function(e,t){var a=e.children,r=tt(e,vc),o=Q0(r),i=o.open,s=tt(o,yc);return u.useImperativeHandle(t,function(){return{open:i}},[i]),we.createElement(u.Fragment,null,a(e1(e1({},s),{},{open:i})))});I2.displayName="Dropzone";var Y0={disabled:!1,getFilesFromEvent:V5,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};I2.defaultProps=Y0;I2.propTypes={children:J.func,accept:J.objectOf(J.arrayOf(J.string)),multiple:J.bool,preventDropOnDocument:J.bool,noClick:J.bool,noKeyboard:J.bool,noDrag:J.bool,noDragEventsBubbling:J.bool,minSize:J.number,maxSize:J.number,maxFiles:J.number,disabled:J.bool,getFilesFromEvent:J.func,onFileDialogCancel:J.func,onFileDialogOpen:J.func,useFsAccessApi:J.bool,autoFocus:J.bool,onDragEnter:J.func,onDragLeave:J.func,onDragOver:J.func,onDrop:J.func,onDropAccepted:J.func,onDropRejected:J.func,onError:J.func,validator:J.func};var a2={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Q0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e1(e1({},Y0),e),a=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,c=t.multiple,d=t.maxFiles,p=t.onDragEnter,m=t.onDragLeave,v=t.onDragOver,g=t.onDrop,b=t.onDropAccepted,S=t.onDropRejected,T=t.onFileDialogCancel,F=t.onFileDialogOpen,y=t.useFsAccessApi,Z=t.autoFocus,L=t.preventDropOnDocument,B=t.noClick,N=t.noKeyboard,x=t.noDrag,D=t.noDragEventsBubbling,z=t.onError,V=t.validator,H=u.useMemo(function(){return mc(a)},[a]),O=u.useMemo(function(){return hc(a)},[a]),K=u.useMemo(function(){return typeof F=="function"?F:P3},[F]),Q=u.useMemo(function(){return typeof T=="function"?T:P3},[T]),M=u.useRef(null),f=u.useRef(null),k=u.useReducer(Dc,a2),R=Wt(k,2),U=R[0],C=R[1],X=U.isFocused,c1=U.isFileDialogActive,i1=u.useRef(typeof window<"u"&&window.isSecureContext&&y&&pc()),m1=function(){!i1.current&&c1&&setTimeout(function(){if(f.current){var I=f.current.files;I.length||(C({type:"closeDialog"}),Q())}},300)};u.useEffect(function(){return window.addEventListener("focus",m1,!1),function(){window.removeEventListener("focus",m1,!1)}},[f,c1,Q,i1]);var Z1=u.useRef([]),je=function(I){M.current&&M.current.contains(I.target)||(I.preventDefault(),Z1.current=[])};u.useEffect(function(){return L&&(document.addEventListener("dragover",F3,!1),document.addEventListener("drop",je,!1)),function(){L&&(document.removeEventListener("dragover",F3),document.removeEventListener("drop",je))}},[M,L]),u.useEffect(function(){return!r&&Z&&M.current&&M.current.focus(),function(){}},[M,Z,r]);var C1=u.useCallback(function(A){z?z(A):console.error(A)},[z]),l1=u.useCallback(function(A){A.preventDefault(),A.persist(),_1(A),Z1.current=[].concat(_c(Z1.current),[A.target]),We(A)&&Promise.resolve(o(A)).then(function(I){if(!(et(A)&&!D)){var _=I.length,P=_>0&&cc({files:I,accept:H,minSize:s,maxSize:i,multiple:c,maxFiles:d,validator:V}),$=_>0&&!P;C({isDragAccept:P,isDragReject:$,isDragActive:!0,type:"setDraggedFiles"}),p&&p(A)}}).catch(function(I){return C1(I)})},[o,p,C1,D,H,s,i,c,d,V]),ye=u.useCallback(function(A){A.preventDefault(),A.persist(),_1(A);var I=We(A);if(I&&A.dataTransfer)try{A.dataTransfer.dropEffect="copy"}catch{}return I&&v&&v(A),!1},[v,D]),Oe=u.useCallback(function(A){A.preventDefault(),A.persist(),_1(A);var I=Z1.current.filter(function(P){return M.current&&M.current.contains(P)}),_=I.indexOf(A.target);_!==-1&&I.splice(_,1),Z1.current=I,!(I.length>0)&&(C({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),We(A)&&m&&m(A))},[M,m,D]),V1=u.useCallback(function(A,I){var _=[],P=[];A.forEach(function($){var W=q0($,H),a1=Wt(W,2),I1=a1[0],St=a1[1],Tt=U0($,s,i),Be=Wt(Tt,2),At=Be[0],Et=Be[1],kt=V?V($):null;if(I1&&At&&!kt)_.push($);else{var Dt=[St,Et];kt&&(Dt=Dt.concat(kt)),P.push({file:$,errors:Dt.filter(function(en){return en})})}}),(!c&&_.length>1||c&&d>=1&&_.length>d)&&(_.forEach(function($){P.push({file:$,errors:[sc]})}),_.splice(0)),C({acceptedFiles:_,fileRejections:P,type:"setFiles"}),g&&g(_,P,I),P.length>0&&S&&S(P,I),_.length>0&&b&&b(_,I)},[C,c,H,s,i,d,g,b,S,V]),Q1=u.useCallback(function(A){A.preventDefault(),A.persist(),_1(A),Z1.current=[],We(A)&&Promise.resolve(o(A)).then(function(I){et(A)&&!D||V1(I,A)}).catch(function(I){return C1(I)}),C({type:"reset"})},[o,V1,C1,D]),T1=u.useCallback(function(){if(i1.current){C({type:"openDialog"}),K();var A={multiple:c,types:O};window.showOpenFilePicker(A).then(function(I){return o(I)}).then(function(I){V1(I,null),C({type:"closeDialog"})}).catch(function(I){gc(I)?(Q(I),C({type:"closeDialog"})):fc(I)?(i1.current=!1,f.current?(f.current.value=null,f.current.click()):C1(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):C1(I)});return}f.current&&(C({type:"openDialog"}),K(),f.current.value=null,f.current.click())},[C,K,Q,y,V1,C1,O,c]),be=u.useCallback(function(A){!M.current||!M.current.isEqualNode(A.target)||(A.key===" "||A.key==="Enter"||A.keyCode===32||A.keyCode===13)&&(A.preventDefault(),T1())},[M,T1]),ze=u.useCallback(function(){C({type:"focus"})},[]),$e=u.useCallback(function(){C({type:"blur"})},[]),Ce=u.useCallback(function(){B||(uc()?setTimeout(T1,0):T1())},[B,T1]),P1=function(I){return r?null:I},M1=function(I){return N?null:P1(I)},L1=function(I){return x?null:P1(I)},_1=function(I){D&&I.stopPropagation()},X1=u.useMemo(function(){return function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=A.refKey,_=I===void 0?"ref":I,P=A.role,$=A.onKeyDown,W=A.onFocus,a1=A.onBlur,I1=A.onClick,St=A.onDragEnter,Tt=A.onDragOver,Be=A.onDragLeave,At=A.onDrop,Et=tt(A,bc);return e1(e1(n2({onKeyDown:M1(x1($,be)),onFocus:M1(x1(W,ze)),onBlur:M1(x1(a1,$e)),onClick:P1(x1(I1,Ce)),onDragEnter:L1(x1(St,l1)),onDragOver:L1(x1(Tt,ye)),onDragLeave:L1(x1(Be,Oe)),onDrop:L1(x1(At,Q1)),role:typeof P=="string"&&P!==""?P:"presentation"},_,M),!r&&!N?{tabIndex:0}:{}),Et)}},[M,be,ze,$e,Ce,l1,ye,Oe,Q1,N,x,r]),xt=u.useCallback(function(A){A.stopPropagation()},[]),wt=u.useMemo(function(){return function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=A.refKey,_=I===void 0?"ref":I,P=A.onChange,$=A.onClick,W=tt(A,Cc),a1=n2({accept:H,multiple:c,type:"file",style:{display:"none"},onChange:P1(x1(P,Q1)),onClick:P1(x1($,xt)),tabIndex:-1},_,f);return e1(e1({},a1),W)}},[f,a,c,Q1,r]);return e1(e1({},U),{},{isFocused:X&&!r,getRootProps:X1,getInputProps:wt,rootRef:M,inputRef:f,open:P1(T1)})}function Dc(e,t){switch(t.type){case"focus":return e1(e1({},e),{},{isFocused:!0});case"blur":return e1(e1({},e),{},{isFocused:!1});case"openDialog":return e1(e1({},a2),{},{isFileDialogActive:!0});case"closeDialog":return e1(e1({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return e1(e1({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return e1(e1({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return e1({},a2);default:return e}}function P3(){}const Rc=e=>JSON.stringify(JSON.parse(e),null,4),Fc=({onSuccess:e,onError:t})=>a=>{var o;const r=(o=a==null?void 0:a.target)==null?void 0:o.result;if(typeof r=="string")try{const i=Rc(r);e(i)}catch{t("Cannot format as valid JSON")}else t("Unsupported format")},Zc=({onSuccess:e,onError:t,children:a,onDragStatusChange:r,...o})=>{const i=u.useCallback(([p])=>{const m=new FileReader;m.onload=Fc({onSuccess:e,onError:t}),m.readAsText(p)},[]),{getRootProps:s,getInputProps:c,isDragActive:d}=Q0({onDrop:i,accept:{"application/json":[".json"]},maxFiles:1});return u.useEffect(()=>{r(d)},[d]),l(E,{...s(),...o,children:[n("input",{...c()}),a]})},Pc=h(Zc)(({theme:e})=>({padding:e.spacing(4,2,2,2),border:`1px dashed ${e.palette.secondary.border}`,borderRadius:e.shape.borderRadiusLarge,display:"flex",flexDirection:"column",alignItems:"center"})),X0=h(vt,{shouldForwardProp:e=>e!=="active"})(({theme:e,active:t})=>({transition:"background-color 0.5s ease",color:e.palette.common.white,backgroundColor:t?e.palette.primary.main:e.palette.divider,"@keyframes pulse":{"0%":{boxShadow:`0 0 0 0px ${re(e.palette.primary.main,.7)}`},"100%":{boxShadow:`0 0 0 20px ${re(e.palette.primary.main,0)}`}},animation:t?"pulse 2s infinite":""})),Ic=h(E)(({theme:e})=>({backgroundColor:e.palette.background.elevation2,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(3)})),Nt=h(j)(({theme:e})=>({marginBottom:e.spacing(.5)})),qt=h(E)(({theme:e})=>({marginBottom:e.spacing(3),color:e.palette.text.secondary,fontSize:e.fontSizes.smallBody})),jc=()=>l(Ic,{children:[n(Nt,{children:"What is being imported?"}),l(qt,{children:["Feature toggles will be imported with full configuration:",l("ul",{children:[n("li",{children:"strategies"}),n("li",{children:"context fields"}),n("li",{children:"variants"}),n("li",{children:"tags"}),n("li",{children:"feature toggle status"})]})]}),n(Nt,{children:"Exceptions?"}),n(qt,{children:"If the feature toggle already exists in the new instance, it will be overwritten"}),n(Nt,{children:"What is not imported?"}),n(qt,{sx:{marginBottom:0},children:"If we detect segments or custom strategies in your imported file, we will stop the import. You need to create them first in the new instance and run the import again"})]}),j2=h("div")(({theme:e})=>({backgroundColor:e.palette.background.paper,padding:e.spacing(5,8,3,8),display:"flex",flexDirection:"column",gap:e.spacing(3),flexBasis:"70%"})),O2=h(E)(({theme:e})=>({width:"100%",borderTop:`1px solid ${e.palette.divider}`,marginTop:"auto",paddingTop:e.spacing(3),display:"flex",justifyContent:"flex-end"})),Oc=h(Kt)(({theme:e})=>({width:"100%"})),zc=h(j)(({theme:e})=>({marginTop:e.spacing(4),fontSize:e.fontSizes.mainHeader})),$c=h(j)(({theme:e})=>({marginTop:e.spacing(2),marginBottom:e.spacing(1.5),color:e.palette.text.secondary})),Bc=h(j)(({theme:e})=>({marginTop:e.spacing(4),color:e.palette.text.secondary})),Vc=({activeTab:e,setActiveTab:t})=>n(E,{sx:{borderBottom:1,borderColor:"divider"},children:l(m2,{value:e,children:[n(Ke,{label:"Upload file",value:"file",onClick:()=>t("file")}),n(Ke,{label:"Code editor",value:"code","data-testid":xa,onClick:()=>t("code")})]})}),Mc=({activeTab:e,setActiveTab:t,importPayload:a,setImportPayload:r})=>{const[o,i]=u.useState(!1),{setToastData:s}=u1();return n(w,{condition:e==="file",show:l(Pc,{onSuccess:c=>{r(c),t("code"),s({type:"success",title:"File uploaded"})},onError:c=>{r(""),s({type:"error",title:c})},onDragStatusChange:i,children:[n(X0,{sx:{width:80,height:80},active:o,children:n(ir,{fontSize:"large"})}),n(zc,{children:o?"Drop your file to upload":"Drop your file here"}),n($c,{children:"or select a file from your device"}),n(v1,{variant:"outlined",children:"Select file"}),n(Bc,{children:"JSON format: max 500 kB"})]}),elseShow:n(Oc,{label:"Exported toggles",variant:"outlined",onChange:c=>r(c.target.value),value:a,"data-testid":wa,multiline:!0,minRows:13,maxRows:13})})},Lc=({onSubmit:e,onClose:t,disabled:a})=>l(O2,{children:[n(v1,{sx:{position:"static"},variant:"contained",type:"submit",onClick:e,"data-testid":Sa,disabled:a,children:"Validate"}),n(v1,{sx:{position:"static",ml:2},variant:"outlined",type:"submit",onClick:t,children:"Cancel import"})]}),Hc=({tabs:e,importOptions:t,importArea:a,actions:r})=>l(j2,{children:[e,t,a,n(jc,{}),r]}),Wc=()=>{const{makeRequest:e,createRequest:t,errors:a,loading:r}=y2({propagateErrors:!0});return{loading:r,errors:a,validateImport:async i=>{const c=t("api/admin/features-batch/validate",{method:"POST",body:JSON.stringify(i)});try{return(await e(c.caller,c.id)).json()}catch(d){throw d}}}},Nc=h(E)(({theme:e})=>({backgroundColor:e.palette.background.elevation2,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(3)})),I3=h("span")(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.text.secondary})),j3=h("span")(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.text.primary,fontWeight:e.fontWeight.bold})),O3=h(E)(({theme:e})=>({border:`1px solid ${e.palette.error.border}`,borderRadius:e.shape.borderRadiusLarge,paddingBottom:e.spacing(2)})),qc=h(E)(({theme:e})=>({border:`1px solid ${e.palette.warning.border}`,borderRadius:e.shape.borderRadiusLarge,paddingBottom:e.spacing(2)})),z3=h(E)(({theme:e})=>({color:e.palette.error.dark,backgroundColor:e.palette.error.light,fontSize:e.fontSizes.smallBody,borderBottom:`1px solid ${e.palette.error.border}`,borderTopLeftRadius:e.shape.borderRadiusLarge,borderTopRightRadius:e.shape.borderRadiusLarge,padding:e.spacing(2)})),Uc=h(E)(({theme:e})=>({color:e.palette.warning.dark,backgroundColor:e.palette.warning.light,fontSize:e.fontSizes.smallBody,borderBottom:`1px solid ${e.palette.warning.border}`,borderTopLeftRadius:e.shape.borderRadiusLarge,borderTopRightRadius:e.shape.borderRadiusLarge,padding:e.spacing(2)})),$3=h(E)(({theme:e})=>({color:e.palette.error.dark,fontSize:e.fontSizes.smallBody})),Gc=h(E)(({theme:e})=>({color:e.palette.warning.dark,fontSize:e.fontSizes.smallBody})),Ut=h("ul")(({theme:e})=>({marginTop:e.spacing(1),marginBottom:e.spacing(0),paddingLeft:e.spacing(3),paddingBottom:e.spacing(3),borderBottom:`1px dashed ${e.palette.neutral.border}`})),Gt=h("li")(({theme:e})=>({fontSize:e.fontSizes.smallBody})),Kc=({environment:e,project:t,payload:a,onClose:r,onBack:o,onSubmit:i})=>{const{validateImport:s}=Wc(),{setToastData:c}=u1(),{trackEvent:d}=R1(),[p,m]=u.useState({errors:[],warnings:[],permissions:[]}),[v,g]=u.useState(!0),b=S=>{S.errors.length>0||S.permissions.length>0?d("export_import",{props:{eventType:"validation fail"}}):d("export_import",{props:{eventType:"validation success"}}),m(S)};return u.useEffect(()=>{s({environment:e,project:t,data:JSON.parse(a)}).then(b).catch(S=>{g(!1),c({type:"error",title:f1(S)})})},[]),l(j2,{children:[l(Nc,{children:[n(j,{sx:{mb:1.5},children:"You are importing this configuration in:"}),l(E,{sx:{display:"flex",gap:3},children:[l("span",{children:[n(I3,{children:"Environment: "}),n(j3,{children:e})]}),l("span",{children:[n(I3,{children:"Project: "}),n(j3,{children:t})]})]})]}),n(w,{condition:p.permissions.length>0,show:l(O3,{children:[l(z3,{children:[n("strong",{children:"Missing permissions!"})," There are some permissions that you need to be granted before importing this configuration"]}),p.permissions.map(S=>l(E,{sx:{p:2},children:[n($3,{children:S.message}),n(Ut,{children:S.affectedItems.map(T=>n(Gt,{children:T},T))})]},S.message))]})}),n(w,{condition:p.errors.length>0,show:l(O3,{children:[l(z3,{children:[n("strong",{children:"Conflict!"})," There are some errors that need to be fixed before the import."]}),p.errors.map(S=>l(E,{sx:{p:2},children:[n($3,{children:S.message}),n(Ut,{children:S.affectedItems.map(T=>n(Gt,{children:T},T))})]},S.message))]})}),n(w,{condition:p.warnings.length>0,show:l(qc,{children:[l(Uc,{children:[n("strong",{children:"Warning!"})," It is recommended to verify the following information before importing."]}),p.warnings.map(S=>l(E,{sx:{p:2},children:[n(Gc,{children:S.message}),n(Ut,{children:S.affectedItems.map(T=>n(Gt,{children:T},T))})]},S.message))]})}),l(O2,{children:[n(v1,{sx:{position:"static",mr:"auto"},variant:"outlined",type:"submit",onClick:o,children:"Back"}),n(h2,{permission:i2,projectId:t,sx:{position:"static"},variant:"contained",type:"submit",onClick:i,"data-testid":Ta,disabled:p.errors.length>0||p.permissions.length>0||!v,children:"Import configuration"}),n(v1,{sx:{position:"static",ml:2},variant:"outlined",type:"submit",onClick:r,children:"Cancel import"})]})]})},Jc=()=>{const{makeRequest:e,createRequest:t,errors:a,loading:r}=y2({propagateErrors:!0}),{trackEvent:o}=R1();return{loading:r,errors:a,createImport:async s=>{const d=t("api/admin/features-batch/import",{method:"POST",body:JSON.stringify(s)});try{const p=await e(d.caller,d.id);return o("export_import",{props:{eventType:"features imported"}}),p}catch(p){throw p}}}},Yc=h(f0)(({theme:e})=>({padding:e.spacing(4,2,2,2),display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(8)})),Qc=h(j)(({theme:e})=>({fontSize:e.fontSizes.mainHeader})),Xc=h(vt)(({theme:e})=>({backgroundColor:e.palette.primary.main})),e6=h(vt)(({theme:e})=>({backgroundColor:e.palette.error.main})),t6=h(f0)(({theme:e})=>({border:`1px solid ${e.palette.info.border}`,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(2),color:e.palette.info.dark,backgroundColor:e.palette.info.light,fontSize:e.fontSizes.smallBody})),n6=(e,t)=>e?{status:"loading"}:Object.keys(t).length>0?{status:"error",errors:t}:{status:"success"},a6=({environment:e,project:t,payload:a,onClose:r})=>{const{createImport:o,loading:i,errors:s}=Jc(),{refetch:c}=D1(t),{refetch:d}=u2(t),{setToastData:p}=u1(),{isChangeRequestConfigured:m}=pt(t);u.useEffect(()=>{o({environment:e,project:t,data:JSON.parse(a)}).then(()=>{c(),d()}).catch(b=>{p({type:"error",title:f1(b)})})},[]);const v=n6(i,s),g=m(e)&&v.status==="success";return l(j2,{children:[l(Yc,{children:[n(w,{condition:v.status==="loading",show:n(X0,{sx:{width:80,height:80},active:!0,children:n(dr,{fontSize:"large"})})}),n(w,{condition:v.status==="success",show:n(Xc,{sx:{width:80,height:80},children:n(e0,{fontSize:"large"})})}),n(w,{condition:v.status==="error",show:n(e6,{sx:{width:80,height:80},children:n(or,{fontSize:"large"})})}),l(Qc,{children:[n(w,{condition:v.status==="loading",show:"Importing..."}),n(w,{condition:v.status==="success",show:"Import completed"}),n(w,{condition:v.status==="error",show:"Import failed"})]})]}),n(w,{condition:g,show:l(t6,{children:["For this environment ",n("strong",{children:"Change request"})," is enabled. This means that the import has generated a change request which needs to be approved before the configuration will be visible in the instance."]})}),n(O2,{children:n(v1,{sx:{position:"static"},variant:"contained",type:"submit",onClick:r,children:"Close"})})]})},r6=h(E)(({theme:e})=>({backgroundColor:e.palette.background.elevation2,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(3)})),o6=h(j)(({theme:e})=>({marginBottom:e.spacing(3),fontWeight:e.fontWeight.bold})),i6=h(j)(({theme:e})=>({marginBottom:e.spacing(1.5)})),s6=({project:e,environment:t,onChange:a})=>{const{project:r}=D1(e),o=r.environments.map(i=>({key:i,label:i,title:i}));return u.useEffect(()=>{t===""&&o[0]&&a(o[0].key)},[JSON.stringify(o)]),l(r6,{children:[n(o6,{children:"Import options"}),n(i6,{children:"Choose the environment to import the configuration for"}),n(d0,{sx:{width:"180px"},options:o,onChange:a,label:"Environment",value:t,"data-testid":Aa,IconComponent:u0,fullWidth:!0})]})},c6=h("div")(({theme:e})=>({minHeight:"100vh",display:"flex"})),l6=h("div")(({theme:e})=>({backgroundColor:e.palette.background.sidebar,padding:e.spacing(8),flexBasis:"30%"})),d6=h("div")(({theme:e})=>({textTransform:"uppercase",fontSize:e.fontSizes.smallBody,color:e.palette.common.white,fontWeight:e.typography.fontWeightBold,marginBottom:e.spacing(3)})),u6=e=>{try{return JSON.parse(e),!0}catch{return!1}},p6=({open:e,setOpen:t,project:a})=>{const[r,o]=u.useState("configure"),[i,s]=u.useState(""),[c,d]=u.useState(""),[p,m]=u.useState("file"),v=()=>{t(!1)};u.useEffect(()=>{e===!0&&g()},[e]);const g=()=>{o("configure"),s(""),d(""),m("file")};return n(ae,{open:e,onClose:v,label:"Import toggles",children:l(c6,{children:[l(l6,{children:[n(d6,{children:"Process"}),n(O5,{stage:r})]}),n(w,{condition:r==="configure",show:n(Hc,{tabs:n(Vc,{activeTab:p,setActiveTab:m}),importOptions:n(s6,{project:a,environment:i,onChange:s}),importArea:n(Mc,{activeTab:p,setActiveTab:m,importPayload:c,setImportPayload:d}),actions:n(Lc,{disabled:!u6(c),onSubmit:()=>o("validate"),onClose:v})})}),n(w,{condition:r==="validate",show:n(Kc,{project:a,environment:i,payload:c,onBack:()=>o("configure"),onSubmit:()=>o("import"),onClose:v})}),n(w,{condition:r==="import",show:n(a6,{project:a,environment:i,payload:c,onClose:v})})]})})},h6="NAVIGATE_TO_EDIT_PROJECT",b6=()=>{var x;const e=Y("projectId"),t=Ea(),{project:a,loading:r,refetch:o}=D1(e),i=K3(r),{setToastData:s}=u1(),[c,d]=u.useState(!1),p=$1(),{pathname:m}=p0(),{isOss:v,uiConfig:g}=p1(),b=`/projects/${e}`,S=(a==null?void 0:a.name)||e,{favorite:T,unfavorite:F}=ka(),[y,Z]=u.useState(!1),L=[{title:"Overview",path:b,name:"overview"},{title:"Health",path:`${b}/health`,name:"health"},{title:"Archive",path:`${b}/archive`,name:"archive"},{title:"Change requests",path:`${b}/change-requests`,name:"change-request"},{title:"Project settings",path:`${b}/settings`,name:"settings"},{title:"Event log",path:`${b}/logs`,name:"logs"}],B=[...L].reverse().find(D=>m.startsWith(D.path));return u.useEffect(()=>{const D=t.get("created"),z=t.get("edited");(D||z)&&s({type:"success",title:D?"Project created":"Project updated"})},[]),l("div",{ref:i,children:[l(yr,{children:[n(br,{children:l(mr,{children:[l(M2,{children:[n(vr,{onClick:async()=>{a!=null&&a.favorite?await F(e):await T(e),o()},isFavorite:a==null?void 0:a.favorite}),n(Cr,{children:n(gr,{"data-loading":!0,children:S})})]}),l(M2,{children:[n(w,{condition:Boolean((x=g==null?void 0:g.flags)==null?void 0:x.featuresExportImport),show:n(N1,{permission:ut,projectId:e,onClick:()=>d(!0),tooltipProps:{title:"Import"},"data-testid":Da,"data-loading":!0,children:n(lr,{})})}),n(w,{condition:!v(),show:n(N1,{permission:A1,projectId:e,onClick:()=>p(`/projects/${e}/edit`),tooltipProps:{title:"Edit project"},"data-loading":!0,"data-testid":h6,children:n(g2,{})})}),n(w,{condition:!v(),show:n(N1,{permission:Ra,projectId:e,onClick:()=>{Z(!0)},tooltipProps:{title:"Delete project"},"data-loading":!0,children:n(f2,{})})})]})]})}),n(_r,{}),n(xr,{children:n(m2,{value:B==null?void 0:B.path,indicatorColor:"primary",textColor:"primary",variant:"scrollable",allowScrollButtonsMobile:!0,children:L.map(D=>n(wr,{label:D.title,value:D.path,onClick:()=>p(D.path),"data-testid":`TAB_${D.title}`},D.title))})})]}),n(Fa,{project:e,open:y,onClose:()=>{Z(!1)},onSuccess:()=>{p("/projects")}}),l(Fe,{children:[n(t1,{path:"health",element:n(y4,{})}),n(t1,{path:"access/*",element:n(h0,{replace:!0,to:`/projects/${e}/settings/access`})}),n(t1,{path:"environments",element:n(v0,{})}),n(t1,{path:"archive",element:n($r,{})}),n(t1,{path:"logs",element:n(C4,{})}),n(t1,{path:"change-requests",element:n(Ys,{})}),n(t1,{path:"change-requests/:id",element:n(js,{})}),n(t1,{path:"settings/*",element:n(I5,{})}),n(t1,{path:"*",element:n(Qo,{})})]}),n(p6,{open:c,setOpen:d,project:e})]})};export{b6 as default};
|