performance.mark("js-parse-end:marketplace-react-73c8ed2e9bfbd818.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["92611"],{69538(e,t,a){a.d(t,{A:()=>r});let r={"marketplace-list-grid":"marketplace-common-module__marketplace-list-grid__XsXII","marketplace-item":"marketplace-common-module__marketplace-item__b3MER","marketplace-item-link":"marketplace-common-module__marketplace-item-link__arvWs","marketplace-logo":"marketplace-common-module__marketplace-logo__K_mTs","marketplace-model-avatar-icon":"marketplace-common-module__marketplace-model-avatar-icon__ukj9h","marketplace-logo--jamba-div":"marketplace-common-module__marketplace-logo--jamba-div__ifp2G","marketplace-logo--jamba-logo":"marketplace-common-module__marketplace-logo--jamba-logo__VHD9d","marketplace-logo--dialog":"marketplace-common-module__marketplace-logo--dialog__ToLnl","marketplace-logo-img":"marketplace-common-module__marketplace-logo-img__Iw1Vy","marketplace-logo-svg":"marketplace-common-module__marketplace-logo-svg__rGJ6G","marketplace-featured-grid":"marketplace-common-module__marketplace-featured-grid__Ta9H2"}},91385(e,t,a){a.d(t,{Xq:()=>s,ai:()=>i,fN:()=>n,qA:()=>o});var r=-1/0,i=1/0;function l(e,t,a,i){for(var l=e.length,n=t.length,s=e.toLowerCase(),o=t.toLowerCase(),c=function(e){for(var t=e.length,a=Array(t),r="/",i=0;i1024)return r;var s=Array(a),o=Array(a);return l(e,t,s,o),o[a-1][n-1]}function s(e,t){var a=e.length,i=t.length,n=Array(a);if(!a||!i)return n;if(a===i){for(var s=0;s1024)return n;var o=Array(a),c=Array(a);l(e,t,o,c);for(var d=!1,s=a-1,m=i-1;s>=0;s--)for(;m>=0;m--)if(o[s][m]!==r&&(d||o[s][m]===c[s][m])){d=s&&m&&c[s][m]===o[s-1][m-1]+1,n[s]=m--;break}return n}function o(e,t){e=e.toLowerCase(),t=t.toLowerCase();for(var a=e.length,r=0,i=0;rh});var r=a(74848),i=a(16522),l=a(19129),n=a(38621),s=a(26108),o=a(80117),c=a(55717),d=a(96540),m=a(34164),u=a(15582),p=a(933);function h(e){let t,a,h,f,g,x,y,j,b,v,_,N,w,k,A=(0,i.c)(33);A[0]!==e?({icon:x,size:y,onCopy:g,textToCopy:b,tooltipProps:v,variant:j,ariaLabel:t,className:a,disabled:h,...f}=e,A[0]=e,A[1]=t,A[2]=a,A[3]=h,A[4]=f,A[5]=g,A[6]=x,A[7]=y,A[8]=j,A[9]=b,A[10]=v):(t=A[1],a=A[2],h=A[3],f=A[4],g=A[5],x=A[6],y=A[7],j=A[8],b=A[9],v=A[10]);let S=void 0===x?n.CopyIcon:x,I=void 0===y?"medium":y,C=void 0===j?"invisible":j,[P,L]=d.useState(!1),$=(0,l.A)();A[11]!==$||A[12]!==g||A[13]!==b?(_=()=>{L(!0),(0,u.D)(b),g?.(),setTimeout(()=>$()&&L(!1),2e3)},A[11]=$,A[12]=g,A[13]=b,A[14]=_):_=A[14];let F=_,B=t??`Copy "${b}" to clipboard`,T=P?"Copied!":B,U=P?n.CheckIcon:S,O=P?"color-fg-success":void 0;A[15]!==a||A[16]!==O?(N=(0,m.$)(O,a),A[15]=a,A[16]=O,A[17]=N):N=A[17],A[18]!==f||A[19]!==F||A[20]!==I||A[21]!==U||A[22]!==N||A[23]!==C?(w={size:I,variant:C,onClick:F,icon:U,className:N,...f},A[18]=f,A[19]=F,A[20]=I,A[21]=U,A[22]=N,A[23]=C,A[24]=w):w=A[24];let M=w,R=(0,d.useId)();return A[25]!==P||A[26]!==h||A[27]!==B||A[28]!==M||A[29]!==R||A[30]!==v||A[31]!==T?(k=h?(0,r.jsx)(s.K,{...M,"aria-label":B,disabled:!0}):(0,r.jsxs)(r.Fragment,{children:[P&&(0,r.jsx)(o.s,{children:(0,r.jsx)(p.e,{children:"Copied!"})}),(0,r.jsx)(c.m,{text:T,"aria-label":B,type:"label",id:R,"aria-hidden":!0,...v,className:(0,m.$)("CopyToClipboardButton-module__tooltip__BhMvU",v?.className),children:(0,r.jsx)(s.K,{...M,"aria-labelledby":R})})]}),A[25]=P,A[26]=h,A[27]=B,A[28]=M,A[29]=R,A[30]=v,A[31]=T,A[32]=k):k=A[32],k}h.displayName="CopyToClipboardButton"},15582(e,t,a){a.d(t,{D:()=>r});function r(e){let t;if("clipboard"in navigator)return navigator.clipboard.writeText(e);let a=document.body;if(!a)return Promise.reject(Error());let r=((t=document.createElement("pre")).style.width="1px",t.style.height="1px",t.style.position="fixed",t.style.top="5px",t.textContent=e,t);return a.appendChild(r),!function(e){if("clipboard"in navigator)return navigator.clipboard.writeText(e.textContent||"");let t=getSelection();if(null==t)return Promise.reject(Error());t.removeAllRanges();let a=document.createRange();a.selectNodeContents(e),t.addRange(a),document.execCommand("copy"),t.removeAllRanges(),Promise.resolve()}(r),a.removeChild(r),Promise.resolve()}},69464(e,t,a){a.d(t,{A:()=>d});var r=a(74848),i=a(69538),l=a(33542),n=a(46249),s=a(4925),o=a(53181),c=a(74073);function d({model:e,isFeatured:t,href:a}){let m=a||(0,o.LH)(e),u="AI21 Labs"===e.publisher,p=e.publisherDisplayName??e.publisher,h=u?i.A["marketplace-logo--jamba-div"]:"",f=u?i.A["marketplace-logo--jamba-logo"]:"";return(0,r.jsxs)("div",{className:`position-relative border rounded-2 d-flex flex-1 ${i.A["marketplace-item"]} ${t?"flex-column flex-items-center tmp-p-4":"gap-3 tmp-p-3"}`,...(0,l.G)("marketplace-item"),children:[(0,r.jsx)("div",{className:`flex-shrink-0 rounded-3 overflow-hidden ${i.A["marketplace-logo"]} ${h}`,...(0,l.G)("logo"),children:(0,r.jsx)(c.K,{logoUrl:e.logo_url,darkModeIcon:e.dark_mode_icon,publisher:e.publisher,size:36,className:`${i.A["marketplace-model-avatar-icon"]} ${f} box-shadow-none color-fg-default`,...(0,l.G)("logo-image")})}),t?(0,r.jsxs)("div",{className:"d-flex flex-column flex-items-center height-full width-full text-center",...(0,l.G)("featured-item"),children:[(0,r.jsx)(n.A,{as:"h3",className:"tmp-mt-3 d-flex f4 lh-condensed",children:(0,r.jsx)("a",{href:m,className:`fgColor-default line-clamp-1 ${i.A["marketplace-item-link"]}`,tabIndex:0,children:e.friendly_name})}),(0,r.jsxs)("p",{className:"mt-2 mb-auto text-small fgColor-muted line-clamp-2",children:["by ",p]}),e.summary&&(0,r.jsx)("p",{className:"mt-2 text-small fgColor-muted line-clamp-2",children:e.summary}),(0,r.jsx)(s.A,{variant:"secondary",size:"large",className:"ModelItem-module__modelItemLabel__wcvYm",...(0,l.G)("listing-type-label"),children:"Model"})]}):(0,r.jsxs)("div",{className:"flex-1",...(0,l.G)("non-featured-item"),children:[(0,r.jsxs)("div",{className:"d-flex flex-justify-between flex-items-start gap-3",children:[(0,r.jsx)("h3",{className:"d-flex f4 lh-condensed",children:(0,r.jsx)("a",{href:m,className:`${i.A["marketplace-item-link"]} line-clamp-1`,children:e.friendly_name})}),(0,r.jsx)(s.A,{variant:"secondary",children:"Model"})]}),e.summary&&(0,r.jsx)("p",{className:"mt-1 mb-0 text-small fgColor-muted line-clamp-2",children:e.summary}),!e.summary&&(0,r.jsx)("p",{className:"mt-1 mb-0 text-small fgColor-muted line-clamp-2",children:p})]})]})}d.displayName="ModelItem"},58084(e,t,a){let r,i;function l(){if("u"s,mM:()=>l,rx:()=>n});let s="Alt+ArrowUp"},95126(e,t,a){a.d(t,{yY:()=>c});var r=a(16522),i=a(23666),l=a(19519),n=a(58084);let s=Object.freeze({});function o(e){return(0,n.rx)()?{...e,"aria-keyshortcuts":n.IX}:e}function c(){let e,t,a=(0,r.c)(4),{isServer:c}=(0,l.V)();a[0]!==c?(e=c||!(0,n.mM)(),a[0]=c,a[1]=e):e=a[1];let d=e;return a[2]!==d?(t=(e,t)=>{if(d)return s;let a=function(e,t){if("string"==typeof t.url&&t.url)return t.url;switch(e){case"user":if("userId"in t&&null!=t.userId)return(0,i.GrN)({userId:t.userId});if("login"in t&&t.login)return(0,i.dCN)({owner:t.login});return null;case"organization":if("login"in t&&t.login)return(0,i.qsO)({owner:t.login});return null;case"team":if("owner"in t&&t.owner&&"team"in t&&t.team)return(0,i.Pmq)({owner:t.owner,team:t.team});return null;case"issue":if("owner"in t&&t.owner&&"repo"in t&&t.repo&&"issueNumber"in t&&null!=t.issueNumber)return(0,i.Nbg)({owner:t.owner,repo:t.repo,issueNumber:t.issueNumber});return null;case"pull_request":if("owner"in t&&t.owner&&"repo"in t&&t.repo&&"pullRequestNumber"in t&&null!=t.pullRequestNumber)return(0,i.i9S)({owner:t.owner,repo:t.repo,pullRequestNumber:t.pullRequestNumber});return null;case"commit":if("owner"in t&&t.owner&&"repo"in t&&t.repo&&"commitish"in t&&t.commitish)return(0,i.fQd)({owner:t.owner,repo:t.repo,commitish:t.commitish});return null;case"copilot":if("botSlug"in t&&t.botSlug)return(0,i._nf)({bot_slug:t.botSlug});return null;case"repository":if("owner"in t&&t.owner&&"repo"in t&&t.repo)return(0,i.SHX)({owner:t.owner,repo:t.repo,action:"hovercard"});return null;case"discussion":if("owner"in t&&t.owner&&"repo"in t&&t.repo&&"discussionNumber"in t&&null!=t.discussionNumber)return(0,i.yIS)({owner:t.owner,repo:t.repo,discussionNumber:t.discussionNumber});return null;case"advisory":if("ghsaId"in t&&t.ghsaId)return(0,i.lEN)({ghsaId:t.ghsaId});return null;case"cwe":if("id"in t&&t.id)return(0,i.dQ4)({id:t.id});return null;case"sponsors_listing":if("login"in t&&t.login)return(0,i.xyp)({login:t.login});return null;case"achievement":if("login"in t&&t.login&&"slug"in t&&t.slug)return(0,i.HgL)({login:t.login,slug:t.slug});return null;case"tracked_in":if("owner"in t&&t.owner&&"repo"in t&&t.repo&&"issueNumber"in t&&null!=t.issueNumber)return(0,i.fJg)({owner:t.owner,repo:t.repo,issueNumber:t.issueNumber});return null;case"tracking":if("owner"in t&&t.owner&&"repo"in t&&t.repo&&"issueNumber"in t&&null!=t.issueNumber&&"id"in t&&null!=t.id)return(0,i.Z1d)({owner:t.owner,repo:t.repo,issueNumber:t.issueNumber,id:t.id});return null;case"security_alert":if("owner"in t&&t.owner&&"repo"in t&&t.repo&&"alertNumber"in t&&null!=t.alertNumber)return(0,i.Ofx)({owner:t.owner,repo:t.repo,alertNumber:t.alertNumber});return null;case"dependabot_alert":if("owner"in t&&t.owner&&"repo"in t&&t.repo&&"alertNumber"in t&&null!=t.alertNumber)return(0,i.iRo)({owner:t.owner,repo:t.repo,alertNumber:t.alertNumber});return null;case"dependency_graph_package":if("owner"in t&&t.owner&&"repo"in t&&t.repo&&"id"in t&&t.id&&"name"in t&&t.name)return(0,i.ZBO)({owner:t.owner,repo:t.repo,id:t.id,name:t.name});return null;case"project":if("projectId"in t&&null!=t.projectId)return(0,i.L$n)({projectId:t.projectId});return null;case"integration":if("id"in t&&null!=t.id)return(0,i.Ss0)({id:t.id});return null;case"profile_highlight":if("login"in t&&t.login&&"highlightType"in t&&t.highlightType)return(0,i.Hpm)({login:t.login,highlightType:t.highlightType});return null;default:return null}}(e,t);return a?function(e,t,a=!0,r){let i=function(e,t,a=!0){let r={"data-hovercard-url":e,"data-hovercard-type":t};return a?o({...r,"octo-click":"hovercard-link-click","octo-dimensions":"link_type:self"}):o(r)}(e,t,a);if(0===Object.keys(i).length)return s;if(!r)return i;let l={...i};return r.fixedPositioning&&(l["data-hovercard-fixed-positioning"]=""),void 0!==r.zIndexOverride&&(l["data-hovercard-z-index-override"]=String(r.zIndexOverride)),r.cache&&(l["data-hovercard-cache"]=r.cache),l}(a,e,t.tracking??!0,{fixedPositioning:t.fixedPositioning,zIndexOverride:t.zIndexOverride,cache:t.cache}):s},a[2]=d,a[3]=t):t=a[3],t}},26933(e,t,a){a.d(t,{X:()=>o});var r=a(74848),i=a(16522),l=a(4925),n=a(56861),s=a(24278);let o=e=>{let t,a,o,c=(0,i.c)(8),{children:d,feedbackUrl:m,className:u}=e,p=void 0===d?"Preview":d;return c[0]!==p?(t=(0,r.jsx)(l.A,{variant:"success",children:p}),c[0]=p,c[1]=t):t=c[1],c[2]!==m?(a=m?(0,r.jsx)(n.A,{feedbackUrl:m}):void 0,c[2]=m,c[3]=a):a=c[3],c[4]!==u||c[5]!==t||c[6]!==a?(o=(0,r.jsx)(s.V,{className:u,label:t,link:a}),c[4]=u,c[5]=t,c[6]=a,c[7]=o):o=c[7],o};o.displayName="BetaLabel"},56861(e,t,a){a.d(t,{A:()=>n});var r=a(74848),i=a(16522),l=a(83223);let n=e=>{let t,a=(0,i.c)(2),{feedbackUrl:n}=e;return a[0]!==n?(t=(0,r.jsx)(l.A,{className:"FeedbackLink-module__link__agJbw",href:n,inline:!0,children:"Give feedback"}),a[0]=n,a[1]=t):t=a[1],t};n.displayName="FeedbackLink"},24278(e,t,a){a.d(t,{V:()=>n});var r=a(74848),i=a(16522),l=a(46251);let n=e=>{let t,a=(0,i.c)(9),{label:n,link:s,className:o}=e;if(s){let e;return a[0]!==o||a[1]!==n||a[2]!==s?(e=(0,r.jsxs)(l.B,{direction:"horizontal",gap:"condensed",align:"baseline",className:o,children:[n," ",s]}),a[0]=o,a[1]=n,a[2]=s,a[3]=e):e=a[3],e}if(o){let e;return a[4]!==o||a[5]!==n?(e=(0,r.jsx)("span",{className:o,children:n}),a[4]=o,a[5]=n,a[6]=e):e=a[6],e}return a[7]!==n?(t=(0,r.jsx)(r.Fragment,{children:n}),a[7]=n,a[8]=t):t=a[8],t};n.displayName="LabelWithLink"},37624(e,t,a){a.d(t,{A:()=>d});var r=a(74848),i=a(16522),l=a(36007),n=a(83223),s=a(7771),o=a(46251);let c="SidebarHeading-module__Heading__qBx7v";function d(e){let t,a=(0,i.c)(5),{title:d,count:m,link:u,htmlTag:p}=e,h=void 0===p?"h3":p;return a[0]!==m||a[1]!==h||a[2]!==u||a[3]!==d?(t=(0,r.jsx)(r.Fragment,{children:u?(0,r.jsx)(l.A,{as:h,weight:"semibold",className:c,children:(0,r.jsxs)(n.A,{href:u,className:"Link--primary no-underline d-flex flex-items-center",children:[d,m?(0,r.jsx)(s.A,{className:"ml-1",children:m}):null]})}):(0,r.jsxs)(o.B,{gap:"none",align:"center",direction:"horizontal",children:[(0,r.jsx)(l.A,{as:h,weight:"semibold",className:c,children:d}),m?(0,r.jsx)(s.A,{className:"ml-1",children:m}):null]})}),a[0]=m,a[1]=h,a[2]=u,a[3]=d,a[4]=t):t=a[4],t}d.displayName="SidebarHeading"},8113(e,t,a){var r=a(74848),i=a(16522);function l(e){let t,a=(0,i.c)(2);return a[0]!==e.children?(t=(0,r.jsx)(r.Fragment,{children:e.children}),a[0]=e.children,a[1]=t):t=a[1],t}l.displayName="App";var n=a(65594),s=a(67554);let o={header:"marketplace-header-module__header__tkIOj",gradient:"marketplace-header-module__gradient__kaQeJ","gradient-left":"marketplace-header-module__gradient-left__kHpNA","gradient-right":"marketplace-header-module__gradient-right__diy64","image-wrapper":"marketplace-header-module__image-wrapper__XXvLB",copilot:"marketplace-header-module__copilot__rU5D8","header-content":"marketplace-header-module__header-content__ABtMw",arrow:"marketplace-header-module__arrow__lBhk0",donut:"marketplace-header-module__donut__N3B4p",models:"marketplace-header-module__models__RF2lM",spin:"marketplace-header-module__spin__tphSh",semicircles:"marketplace-header-module__semicircles__TpICO",sparklelarge:"marketplace-header-module__sparklelarge__rgD2t",sparkle:"marketplace-header-module__sparkle__oeXeM",sparklesmall:"marketplace-header-module__sparklesmall__qrfsa",workflow:"marketplace-header-module__workflow__jsTHl","image-container-mobile":"marketplace-header-module__image-container-mobile__IVat8"};var c=a(58846),d=a(96540),m=a(88015);let u="Free trial";function p(e,t){if(!t)return[];let a=t.filter(t=>Array.isArray(t)&&t[0]===e),r=[];for(let e of a){let[,t]=e;Array.isArray(t)?r=r.concat(t):r.push(t)}return r}function h(e){return RegExp(`${e}:("([^"]+)"|\\S+)\\s?`)}function f(e,t){let a=t.includes(" ")?`"${t}"`:t;return`${e}:${a}`}function g(e,t){if(!e)return;let a=t.map(e=>e.toLowerCase()).indexOf(e.toLowerCase());if(a>=0)return t[a]}function x(e,t){if(!t)return"";if(t.trim().length<1)return t;let a=h(e),r=t,i=r.match(a);for(;i;){let e=i.index;i=(r=r.slice(0,e)+r.slice(e+i[0].length)).match(a)}return r.trim()}function y(e,t,a){for(let r of p(e,t)){let e=g(r,a);if(e)return e}}let j=[{id:"all",name:"All"},{id:"chat-completion",name:"Chat/completion"},{id:"embeddings",name:"Embeddings"}],b={"name-asc":"Alphabetical","created-desc":"Recently added","output-tokens-desc":"Output token limit","input-tokens-desc":"Input token limit",popularity:"Popularity"};function v(e){if("string"!=typeof e)return"All";let t=e.trim();return t.length<1?"All":"rag"===t.toLocaleLowerCase()?"RAG":t.charAt(0).toUpperCase()+t.slice(1)}let _="created-desc",N=(0,d.createContext)(void 0);function w(){let e=(0,d.use)(N);if(!e)throw Error("useSearchResults must be used within a SearchResultsProvider");return e}function k(e){let t,a,l=(0,i.c)(5),{children:s}=e,{searchResults:o}=(0,n.B)(),[c,m]=(0,d.useState)(o);l[0]!==c?(t={searchResults:c,setSearchResults:m},l[0]=c,l[1]=t):t=l[1];let u=t;return l[2]!==s||l[3]!==u?(a=(0,r.jsx)(N,{value:u,children:s}),l[2]=s,l[3]=u,l[4]=a):a=l[4],a}N.displayName="SearchResultsContext",k.displayName="SearchResultsProvider";let A="popularity-desc",S=(0,d.createContext)(void 0);function I(){let e=(0,d.use)(S);if(!e)throw Error("useSort must be used within a SortProvider");return e}function C({children:e}){let[t]=(0,m.ok)(),{searchResults:{parsedQuery:a}}=w(),i=(0,d.useMemo)(()=>{let e,r=t.get("query");if(r){let t=r.match(h("sort"));e=t?t[1]:void 0}if("models"===t.get("type")){var i;let t,r;return i=e,(r=y("sort",a,t=Object.keys(b)))||g(i,t)||_}switch(e){case"created-desc":return"created-desc";case"match-desc":return"match-desc";default:return A}},[]),[l,n]=(0,d.useState)(i),s="models"===t.get("type")?_:A,o=(0,d.useCallback)(()=>n(s),[s]),c=(0,d.useMemo)(()=>({sort:l,isDefaultSort:l===s,resetSort:o,setSort:n}),[s,l,o,n]);return(0,r.jsx)(S,{value:c,children:e})}S.displayName="SortContext",C.displayName="SortProvider";let P=(0,d.createContext)(void 0);function L(){let e=(0,d.use)(P);if(!e)throw Error("useCreators must be used within a CreatorsProvider");return e}function $({children:e}){let[t]=(0,m.ok)(),a=(0,d.useMemo)(()=>t.has("verification")&&"verified_creator"===t.get("verification")?"Verified creators":"All creators",[]),[i,l]=(0,d.useState)(a),n=(0,d.useMemo)(()=>({creators:i,setCreators:l}),[i,l]);return(0,r.jsx)(P,{value:n,children:e})}P.displayName="CreatorsContext",$.displayName="CreatorsProvider";var F=a(78597),B=a(97286);let T=["agents","conversation","large context","low latency","multilingual","multimodal","multipurpose","rag","reasoning","understanding"],U=[{name:"cohere",displayName:"Cohere"},{name:"core42",displayName:"Core42"},{name:"deepseek",displayName:"DeepSeek"},{name:"meta",displayName:"Meta"},{name:"microsoft",displayName:"Microsoft"},{name:"mistral-ai",displayName:"Mistral"},{name:"ai21labs",displayName:"AI21 Labs"},{name:"openai",displayName:"Azure OpenAI Service"},{name:"xai",displayName:"xAI"}];function O(){let e,t,a=(0,i.c)(4),[r]=(0,m.ok)();if(a[0]===Symbol.for("react.memo_cache_sentinel")?(e=["github-models","search-filters"],a[0]=e):e=a[0],a[1]!==r){let i;a[3]===Symbol.for("react.memo_cache_sentinel")?(i={categories:T,publishers:U},a[3]=i):i=a[3],t={queryKey:e,async queryFn(){let e=await (0,F.lS)("/models/search-filters");return e.ok?await e.json():{categories:T,publishers:U}},initialData:i,enabled:"models"===r.get("type")},a[1]=r,a[2]=t}else t=a[2];return(0,B.I)(t)}let M=(0,d.createContext)(void 0);function R(){let e=(0,d.use)(M);if(!e)throw Error("useCategory must be used within a CategoryProvider");return e}function z({children:e}){let[t]=(0,m.ok)(),{searchResults:a}=w(),{data:{categories:i}}=O(),l=(0,d.useMemo)(()=>{if("models"===t.get("type")){var e=a.parsedQuery;if(i.includes(t.get("category")||""))return t.get("category");let r=y("category",e,i);return r||null}return t.has("type")?t.get("category"):null},[i]),[n,s]=(0,d.useState)(l),o=(0,d.useMemo)(()=>({category:n,setCategory:s}),[n,s]);return(0,d.useEffect)(()=>{"All"!==n&&n||"All"===l||s(l)},[l,n]),(0,r.jsx)(M,{value:o,children:e})}M.displayName="CategoryContext",z.displayName="CategoryProvider";let D=(0,d.createContext)(void 0);function V(){let e=(0,d.use)(D);if(!e)throw Error("useSearchType must be used within a SearchTypeProvider");return e}function E(e){let t,a,l,n=(0,i.c)(7),{children:s}=e,[o]=(0,m.ok)();n[0]!==o?(t=()=>o.get("type"),n[0]=o,n[1]=t):t=n[1];let[c,u]=(0,d.useState)(t);n[2]!==c?(a={type:c,setType:u},n[2]=c,n[3]=a):a=n[3];let p=a;return n[4]!==s||n[5]!==p?(l=(0,r.jsx)(D,{value:p,children:s}),n[4]=s,n[5]=p,n[6]=l):l=n[6],l}D.displayName="SearchTypeContext",E.displayName="SearchTypeProvider";var H=a(6877);let G=(0,d.createContext)(void 0);function q(){let e=(0,d.use)(G);if(!e)throw Error("useCopilotApp must be used within a CopilotAppProvider");return e}function W(e){let t,a,l,n,s=(0,i.c)(11),{children:o}=e,c=(0,H.u)("copilot_extensions_removal_on_marketplace"),[u]=(0,m.ok)();s[0]!==c||s[1]!==u?(t=()=>c?null:u.get("copilot_app"),s[0]=c,s[1]=u,s[2]=t):t=s[2];let[p,h]=(0,d.useState)(t),f=c?null:p;s[3]!==c?(a=e=>h(c?null:e),s[3]=c,s[4]=a):a=s[4],s[5]!==f||s[6]!==a?(l={copilotApp:f,setCopilotApp:a},s[5]=f,s[6]=a,s[7]=l):l=s[7];let g=l;return s[8]!==o||s[9]!==g?(n=(0,r.jsx)(G,{value:g,children:o}),s[8]=o,s[9]=g,s[10]=n):n=s[10],n}G.displayName="CopilotAppContext",W.displayName="CopilotAppProvider";let Q=(0,d.createContext)(void 0);function Y(){let e=(0,d.use)(Q);if(!e)throw Error("useModelsTask must be used within a ModelsTaskProvider");return e}function X({children:e}){let[t]=(0,m.ok)(),{searchResults:a}=w(),i=(0,d.useMemo)(()=>{if("models"===t.get("type")){var e;let r,i;return e=a.parsedQuery,r=t.get("task")||"",(i=j.map(({id:e})=>e)).includes(r.toLowerCase())?r:y("task",e,i)??"all"}return null},[]),[l,n]=(0,d.useState)(i),s=(0,d.useMemo)(()=>({task:l,setTask:n}),[l,n]);return(0,r.jsx)(Q,{value:s,children:e})}Q.displayName="ModelsTaskContext",X.displayName="ModelsTaskProvider";let K=(0,d.createContext)(void 0);function J(){let e=(0,d.use)(K);if(!e)throw Error("useModelsPublisher must be used within a ModelsPublisherProvider");return e}function Z({children:e}){let[t]=(0,m.ok)(),{searchResults:a}=w(),{data:{publishers:i}}=O(),l=(0,d.useMemo)(()=>"models"===t.get("type")?function(e,t,a){let r=e.get("publisher")||"";for(let e of a)if(e.toLowerCase()===r.toLowerCase())return e;for(let e of p("publisher",t)){let t=a.find(t=>e.toLowerCase()===t.toLowerCase());if(t)return t}return"All"}(t,a.parsedQuery,i.map(e=>e.name)):null,[i]),[n,s]=(0,d.useState)(l),o=(0,d.useMemo)(()=>{if("All"===n||!n)return"All";let e=i.find(e=>e.name.toLowerCase()===n.toLowerCase());return e?e.displayName:n},[n,i]),c=(0,d.useMemo)(()=>({publisher:n,publisherDisplayName:o,publishers:i,setPublisher:s}),[n,o,i,s]);return(0,d.useEffect)(()=>{"All"===n&&"All"!==l&&s(l)},[l,n]),(0,r.jsx)(K,{value:c,children:e})}K.displayName="ModelsPublisherContext",Z.displayName="ModelsPublisherProvider";let ee=(0,d.createContext)(void 0);function et(){let e=(0,d.use)(ee);if(!e)throw Error("usePage must be used within a PageProvider");return e}function ea({children:e}){let[t]=(0,m.ok)(),a=(0,d.useMemo)(()=>t.has("page")?Number(t.get("page")):1,[]),[i,l]=(0,d.useState)(a),n=(0,d.useMemo)(()=>({page:i,setPage:l}),[i,l]);return(0,r.jsx)(ee,{value:n,children:e})}ee.displayName="PageContext",ea.displayName="PageProvider";let er=(0,d.createContext)(void 0);function ei(){let e=(0,d.use)(er);if(!e)throw Error("useQuery must be used within a QueryProvider");return e}function el(e){let t,a,l,n=(0,i.c)(7),{children:s}=e,[o]=(0,m.ok)();if(n[0]!==o){let e=o.get("query");t=e?e.replace(/sort:([^ ]*)/,"").trim():"",n[0]=o,n[1]=t}else t=n[1];let c=t,[u,p]=(0,d.useState)(c||"");n[2]!==u?(a={query:u,setQuery:p},n[2]=u,n[3]=a):a=n[3];let h=a;return n[4]!==s||n[5]!==h?(l=(0,r.jsx)(er,{value:h,children:s}),n[4]=s,n[5]=h,n[6]=l):l=n[6],l}er.displayName="QueryContext",el.displayName="QueryProvider";var en=a(56341);function es(e){return e.name}let eo=(0,d.createContext)(void 0);function ec(){let e=(0,d.use)(eo);if(!e)throw Error("useFeaturedListings must be used within a FeaturedListingsProvider");return e}function ed(e){let t,a,l=(0,i.c)(5),{children:s}=e,{featured:o}=(0,n.B)(),[c,m]=(0,d.useState)(o);l[0]!==c?(t={featured:c,setFeatured:m},l[0]=c,l[1]=t):t=l[1];let u=t;return l[2]!==s||l[3]!==u?(a=(0,r.jsx)(eo,{value:u,children:s}),l[2]=s,l[3]=u,l[4]=a):a=l[4],a}eo.displayName="FeaturedListingsContext",ed.displayName="FeaturedListingsProvider";let em=(0,d.createContext)(void 0);function eu(){let e=(0,d.use)(em);if(!e)throw Error("useRecommendedListings must be used within a RecommendedListingsProvider");return e}function ep(e){let t,a,l=(0,i.c)(5),{children:s}=e,{recommended:o}=(0,n.B)(),[c,m]=(0,d.useState)(o);l[0]!==c?(t={recommended:c,setRecommended:m},l[0]=c,l[1]=t):t=l[1];let u=t;return l[2]!==s||l[3]!==u?(a=(0,r.jsx)(em,{value:u,children:s}),l[2]=s,l[3]=u,l[4]=a):a=l[4],a}em.displayName="RecommendedListingsContext",ep.displayName="RecommendedListingsProvider";var eh=a(49481);let ef=(0,d.createContext)({loading:!1,legacyOnQueryChange:()=>void 0,onQueryChange:()=>void 0,filter:"All",setFilter:()=>void 0,isSearching:!1});function eg(){return(0,d.use)(ef)}function ex({children:e}){let t=(0,d.useRef)(!0),{resetSort:a,sort:l,isDefaultSort:n}=I(),{creators:s,setCreators:o}=L(),[c]=(0,m.ok)(),{query:p,setQuery:h}=ei(),{page:f,setPage:g}=et(),x=(0,d.useMemo)(()=>c.has("filter")&&"free_trial"===c.get("filter")?u:"All",[]),[v,_]=(0,d.useState)(x),{type:N,setType:k}=V(),{category:A,setCategory:S}=R(),{task:C,setTask:P}=Y(),{publisher:$,setPublisher:B}=J(),{copilotApp:T,setCopilotApp:U}=q(),M=function(){let e,t=(0,i.c)(3),{setPublisher:a}=J(),{setTask:r}=Y();return t[0]!==a||t[1]!==r?(e=()=>{r("all"),a("All")},t[0]=a,t[1]=r,t[2]=e):e=t[2],e}(),{fetchSearchResults:z,isSearching:D,loading:E}=function(){let e,t,a,r=(0,i.c)(14),{searchResults:l,setSearchResults:n}=w(),{setFeatured:s}=ec(),{setRecommended:o}=eu(),{query:c}=ei(),{category:m}=R(),{type:u}=V(),{copilotApp:p}=q(),h=!!(c||m||u||p),[f,g]=(0,d.useState)(h),x=function(){let e,t=(0,i.c)(3),{type:a}=V(),r=function(){let e,t=(0,i.c)(7),{setCategory:a}=R(),{setTask:r}=Y(),{setPublisher:l}=J(),{setSort:n}=I(),{data:s}=O(),{categories:o,publishers:c}=s;return t[0]!==o||t[1]!==c||t[2]!==a||t[3]!==l||t[4]!==n||t[5]!==r?(e=e=>{let t=y("category",e,o);t&&a(t);let i=y("task",e,j.map(e=>e.id));i&&r(i);let s=y("publisher",e,c.map(es));s&&l(s);let d=y("sort",e,Object.keys(b));d&&n(d)},t[0]=o,t[1]=c,t[2]=a,t[3]=l,t[4]=n,t[5]=r,t[6]=e):e=t[6],e}();return t[0]!==r||t[1]!==a?(e=e=>{"models"===a&&r(e)},t[0]=r,t[1]=a,t[2]=e):e=t[2],e}();r[0]!==l.parsedQuery?(e=l.parsedQuery?JSON.stringify(l.parsedQuery):"",r[0]=l.parsedQuery,r[1]=e):e=r[1];let v=e,[_,N]=(0,d.useState)(!1),[k,A]=(0,d.useState)(void 0);r[2]!==k||r[3]!==x||r[4]!==v||r[5]!==s||r[6]!==o||r[7]!==n||r[8]!==h?(t=async e=>{let t;if(e===k)return;N(!0);let a=await (0,F.lS)(e),r=await a.json();if(h){var i;t=r.parsedQuery,n(r),0===(i=r.total)?(0,eh.i)("No results. Try searching by different keywords."):(0,eh.i)(`${i} ${1===i?"result":"results."}`)}else{s(r.featured),o(r.recommended);let e=r.searchResults??r.results;t=e?.parsedQuery,n(e)}t&&v!==JSON.stringify(t)&&x(t),g(h),N(!1),A(e)},r[2]=k,r[3]=x,r[4]=v,r[5]=s,r[6]=o,r[7]=n,r[8]=h,r[9]=t):t=r[9];let S=t;return r[10]!==S||r[11]!==f||r[12]!==_?(a={fetchSearchResults:S,isSearching:f,loading:_},r[10]=S,r[11]=f,r[12]=_,r[13]=a):a=r[13],a}(),H=(0,d.useCallback)(e=>{g(1),_("All"),o("All creators"),"models"===N?M():k(null),a(),S(null),U(null),h(e.trim())},[M,a,S,U,o,g,h,k,N]),G=(0,d.useCallback)((e,t)=>{g(1),_("All"),o("All creators"),"models"===t&&M(),a(),h(e.trim())},[M,a,o,g,h]);(0,d.useEffect)(()=>{if(E)return;if(t.current){t.current=!1;return}let e=new URLSearchParams;(p||!n)&&(n?e.set("query",p):e.set("query",`${p} sort:${l}`.trim())),v===u&&e.set("filter","free_trial"),"Verified creators"===s&&e.set("verification","verified_creator"),1!==f&&e.set("page",f.toString()),A&&e.set("category",A),$&&"All"!==$&&e.set("publisher",$),C&&"all"!==C&&e.set("task",C),N&&e.set("type",N),T&&e.set("copilot_app",T);let a=e.toString()?`/marketplace?${e.toString()}`:"/marketplace";(0,en.bj)(a),z(a)},[z,n,p,v,E,s,l,f,A,N,$,C,T]);let W=(0,d.useMemo)(()=>({loading:E,legacyOnQueryChange:H,onQueryChange:G,filter:v,setFilter:_,task:C,setTask:P,publisher:$,setPublisher:B,type:N,setType:k,isSearching:D}),[E,H,G,v,_,C,P,$,B,N,k,D]);return(0,r.jsx)(ef,{value:W,children:e})}ef.displayName="FilterContext",ex.displayName="FilterProvider";var ey=a(9141),ej=a(18310),eb=a(38621);function ev(e){return new ej.uy({key:"category",displayName:"Category",icon:eb.TagIcon,priority:1,description:"Filter by category or tag",aliases:["tag"]},e.map((e,t)=>({value:e.slug,displayName:e.name,priority:t+1})),{filterTypes:{exclusive:!1,multiKey:!1,multiValue:!1,valueless:!1}})}let e_=new ej.uy({key:"input-modality",displayName:"Input modality",priority:1,icon:eb.InboxIcon,description:"Filter by supported input modality",aliases:[]},["audio","image","text"].map((e,t)=>({value:e,displayName:e,priority:t+1})),{filterTypes:{exclusive:!1}}),eN=new ej.uy({key:"language",displayName:"Supported language",priority:1,icon:eb.TypographyIcon,description:"Filter by supported language",aliases:[]},[{id:"af",name:"Afrikaans"},{id:"ar",name:"Arabic"},{id:"bn",name:"Bengali"},{id:"zh",name:"Chinese"},{id:"zh-cn",name:"Chinese (Simplified)"},{id:"cs",name:"Czech"},{id:"da",name:"Danish"},{id:"nl",name:"Dutch"},{id:"en",name:"English"},{id:"eo",name:"Esperanto"},{id:"et",name:"Estonian"},{id:"fi",name:"Finnish"},{id:"fr",name:"French"},{id:"de",name:"German"},{id:"el",name:"Greek"},{id:"gu",name:"Gujarati"},{id:"ha",name:"Hausa"},{id:"he",name:"Hebrew"},{id:"hi",name:"Hindi"},{id:"hu",name:"Hungarian"},{id:"is",name:"Icelandic"},{id:"id",name:"Indonesian"},{id:"it",name:"Italian"},{id:"ja",name:"Japanese"},{id:"jv",name:"Javanese"},{id:"kn",name:"Kannada"},{id:"ko",name:"Korean"},{id:"lv",name:"Latvian"},{id:"ml",name:"Malayalam"},{id:"mr",name:"Marathi"},{id:"ne",name:"Nepali"},{id:"no",name:"Norwegian"},{id:"or",name:"Odia"},{id:"ps",name:"Pashto"},{id:"fa",name:"Persian"},{id:"pl",name:"Polish"},{id:"pt-br",name:"Portuguese (Brazil)"},{id:"pt",name:"Portuguese"},{id:"pa",name:"Punjabi"},{id:"ro",name:"Romanian"},{id:"ru",name:"Russian"},{id:"es",name:"Spanish"},{id:"sw",name:"Swahili"},{id:"sv",name:"Swedish"},{id:"tl",name:"Tagalog"},{id:"ta",name:"Tamil"},{id:"te",name:"Telugu"},{id:"th",name:"Thai"},{id:"tr",name:"Turkish"},{id:"uk",name:"Ukrainian"},{id:"ur",name:"Urdu"},{id:"vi",name:"Vietnamese"},{id:"cy",name:"Welsh"},{id:"yo",name:"Yoruba"}].map(({id:e,name:t},a)=>({value:e,displayName:t,priority:a+1})),{filterTypes:{exclusive:!1}}),ew=new ej.uy({key:"license",displayName:"License",priority:1,icon:eb.LawIcon,description:"Filter by license type",aliases:[]},[{id:"custom",name:"Custom"},{id:"mit",name:"MIT"}].map(({id:e,name:t},a)=>({value:e,displayName:t,priority:a+1})),{filterTypes:{exclusive:!1,multiValue:!1}}),ek=new ej.uy({key:"output-modality",displayName:"Output modality",priority:1,icon:eb.SignOutIcon,description:"Filter by supported output modality",aliases:[]},["embeddings","text"].map((e,t)=>({value:e,displayName:e,priority:t+1})),{filterTypes:{exclusive:!1}}),eA=new ej.uy({key:"task",displayName:"Capability",priority:1,icon:eb.RocketIcon,description:"Filter by model capability",aliases:[]},j.filter(e=>"all"!==e.id).map(({id:e,name:t},a)=>({value:e,priority:a+1,displayName:t})),{filterTypes:{exclusive:!1,multiValue:!1}});var eS=a(73537),eI=a(71383);let eC=[e_,eN,ew,ek,eA];function eP(){var e;let t,a,l,s,o,c,m,u,p,g,y,j,b=(0,i.c)(32),{onQueryChange:v}=eg(),{query:_}=ei(),{copilotApp:N,setCopilotApp:w}=q(),{type:k,setType:A}=V(),{category:S,setCategory:I}=R(),C=(0,eS.G7)("copilot_extensions_removal_on_marketplace"),P=(e=_,g=[],(p=C?k:N?"copilot":k)&&g.push(f("type",p)),S&&g.push(f("category",S)),(y=e?.split(" ").pop())&&y.includes(":")&&(e+=" "),`${g.join(" ")} ${e??""}`.trimStart()),[L,$]=(0,d.useState)(P),{data:F}=O(),{categories:B,publishers:T}=F,U=function(){let e,t,a=(0,i.c)(4),{categories:r}=(0,n.B)(),{apps:l}=r;a[0]!==l?(e=ev(l),a[0]=l,a[1]=e):e=a[1];let s=e;return a[2]!==s?(t=[s],a[2]=s,a[3]=t):t=a[3],t}(),M=function(){let e,t,a=(0,i.c)(4),{categories:r}=(0,n.B)(),{actions:l}=r;a[0]!==l?(e=ev(l),a[0]=l,a[1]=e):e=a[1];let s=e;return a[2]!==s?(t=[s],a[2]=s,a[3]=t):t=a[3],t}(),z=new ej.uy({key:"type",displayName:"Listing type",icon:eb.AppsIcon,priority:1,description:"Filter by listing type"},(j=[{value:"models",description:"Models only",priority:C?1:2,icon:eb.AiModelIcon,displayName:"Models"},{value:"apps",description:"Apps only",priority:C?2:3,icon:eb.AppsIcon,displayName:"Apps"},{value:"actions",description:"Actions only",priority:C?3:4,icon:eb.PlayIcon,displayName:"Actions"}],!C?[{value:"copilot",description:"Copilot extensions only",priority:1,icon:eb.CopilotIcon,displayName:"Copilot extensions"},...j]:j),{filterTypes:{exclusive:!1,multiValue:!1,multiKey:!1,valueless:!1}});b[0]!==z?(t=[z],b[0]=z,b[1]=t):t=b[1];let D=t;if(b[2]!==M||b[3]!==U||b[4]!==D||b[5]!==B||b[6]!==T||b[7]!==k){switch(a=[...D],k){case"actions":a=a.concat(M);break;case"apps":a=a.concat(U);break;case"models":{let e,t,r=a=a.concat(eC);b[9]!==T?(e=new ej.uy({key:"publisher",displayName:"Publisher",priority:1,icon:eb.CpuIcon,description:"Filter by publisher",aliases:[]},T.map((e,t)=>({value:e.name,displayName:e.name,priority:t+1})),{filterTypes:{exclusive:!1,multiValue:!1}}),b[9]=T,b[10]=e):e=b[10],r.push(e);let i=a;b[11]!==B?(t=new ej.uy({key:"category",displayName:"Category",priority:1,icon:eb.TagIcon,description:"Filter by category or tag",aliases:["tag"]},B.map((e,t)=>({value:e,displayName:e,priority:t+1})),{filterTypes:{exclusive:!1,multiKey:!1}}),b[11]=B,b[12]=t):t=b[12],i.push(t)}}b[2]=M,b[3]=U,b[4]=D,b[5]=B,b[6]=T,b[7]=k,b[8]=a}else a=b[8];let E=a;b[13]!==C||b[14]!==v||b[15]!==I||b[16]!==w||b[17]!==A?(l=e=>{let{type:t,copilotApp:a,query:r,category:i}=function(e,t){let a=e.match(h("type")),r={type:a?.[1]||null,copilotApp:null,query:e,category:null};if(r.type){r.query=x("type",r.query);let a=e.match(h("category"));"copilot"===r.type?(t||(r.copilotApp="true"),r.type="apps",t&&(r.query=x("copilot",r.query))):a&&(r.category=a[1]||null,r.query=x("category",r.query))}return r}(e,C);A(t),w(C?null:a),I(i),v(r||"",t)},b[13]=C,b[14]=v,b[15]=I,b[16]=w,b[17]=A,b[18]=l):l=b[18];let H=l;b[19]!==$?(s=e=>{$(e)},b[19]=$,b[20]=s):s=b[20];let G=s;b[21]!==H?(o=e=>{H(e.raw)},b[21]=H,b[22]=o):o=b[22];let W=o,Q=C?"Search for apps, actions, and models":"Search for Copilot extensions, apps, actions, and models";b[23]!==Q?(c={regular:Q},b[23]=Q,b[24]=c):c=b[24];let Y=(0,ey.tv)(c,"Search in GitHub Marketplace");return b[25]===Symbol.for("react.memo_cache_sentinel")?(m={disableAdvancedTextFilter:!0,groupAndKeywordSupport:!1},b[25]=m):m=b[25],b[26]!==G||b[27]!==W||b[28]!==Y||b[29]!==L||b[30]!==E?(u=(0,r.jsx)(eI.dJ,{id:"marketplace-search-filter","data-testid":"marketplace-search-filter",providers:E,label:"Search Marketplace",variant:"input",filterValue:L,placeholder:Y,className:"marketplace-search-field-module__search-input__aj9qR",settings:m,onChange:G,onSubmit:W}),b[26]=G,b[27]=W,b[28]=Y,b[29]=L,b[30]=E,b[31]=u):u=b[31],u}function eL(){let e,t,a,l,n,s,d,m,u,p,h,f,g=(0,i.c)(20);g[0]===Symbol.for("react.memo_cache_sentinel")?(e=["models","sparklesmall","sparklelarge"],g[0]=e):e=g[0];let x=e;g[1]===Symbol.for("react.memo_cache_sentinel")?(t=["arrow","donut","semicircles","workflow"],g[1]=t):t=g[1];let y=t,j=a="night"===(0,c.A)().colorMode?"dark":"light";g[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,r.jsx)("div",{className:`${o.gradient} ${o["gradient-left"]}`}),n=(0,r.jsx)("div",{className:`${o.gradient} ${o["gradient-right"]}`}),g[2]=l,g[3]=n):(l=g[2],n=g[3]),g[4]!==j?(s=(0,r.jsxs)("div",{className:"position-absolute top-0 left-0 right-0 bottom-0 overflow-hidden",children:[l,n,(0,r.jsx)("div",{className:`${o["image-container-mobile"]} md-container-xl position-relative height-full`,children:y.map(e=>(0,r.jsx)("img",{src:`/images/modules/marketplace/header/${j}/${e}.png`,srcSet:`/images/modules/marketplace/header/${j}/${e}@2x.png 2x`,className:`position-absolute ${o[e]}`,alt:""},e))})]}),g[4]=j,g[5]=s):s=g[5],g[6]!==j?(d=x.map(e=>(0,r.jsx)("img",{src:`/images/modules/marketplace/header/${j}/${e}.png`,srcSet:`/images/modules/marketplace/header/${j}/${e}@2x.png 2x`,className:`position-absolute ${o[e]}`,alt:""},e)),g[6]=j,g[7]=d):d=g[7];let b=`/images/modules/marketplace/header/${j}/copilot.png`,v=`/images/modules/marketplace/header/${j}/copilot@2x.png 2x`;return g[8]!==b||g[9]!==v?(m=(0,r.jsx)("img",{src:b,srcSet:v,className:`tmp-m-lg-4 ${o.copilot}`,alt:""}),g[8]=b,g[9]=v,g[10]=m):m=g[10],g[11]!==d||g[12]!==m?(u=(0,r.jsxs)("div",{className:`position-relative tmp-mb-4 tmp-mb-lg-0 user-select-none ${o["image-wrapper"]}`,children:[d,m]}),g[11]=d,g[12]=m,g[13]=u):u=g[13],g[14]===Symbol.for("react.memo_cache_sentinel")?(p=(0,r.jsxs)("div",{className:`text-center text-lg-left ${o["header-content"]}`,children:[(0,r.jsx)("h1",{className:"lh-condensed text-wrap-balance",children:"Enhance your workflow with extensions"}),(0,r.jsx)("p",{className:"fgColor-muted f3",children:"Tools from the community and partners to simplify tasks and automate processes"}),(0,r.jsx)(eP,{})]}),g[14]=p):p=g[14],g[15]!==u?(h=(0,r.jsxs)("div",{className:"container-xl m-auto width-full d-flex flex-items-center flex-column flex-lg-row-reverse flex-justify-between gap-4 tmp-px-3 tmp-pl-lg-4 tmp-pr-lg-5 tmp-pl-xl-3",children:[u,p]}),g[15]=u,g[16]=h):h=g[16],g[17]!==h||g[18]!==s?(f=(0,r.jsxs)("header",{className:`mb-2 border-bottom borderColor-default d-flex flex-items-start tmp-py-5 tmp-py-lg-4 position-relative ${o.header}`,children:[s,h]}),g[17]=h,g[18]=s,g[19]=f):f=g[19],f}eP.displayName="MarketplaceSearchField",eL.displayName="MarketplaceHeader";var e$=a(32694),eF=a(21373),eB=a(61398);function eT(e){let t,a,l,n,s,o,c,d,m,u,p,h,f,g,x,y,j,b,v,_,N,w,k,A,S,I,C,P=(0,i.c)(55),{categories:L}=e,{copilotApp:$}=q(),{type:F}=V(),{category:B}=R();P[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,eS.G7)("copilot_extensions_removal_on_marketplace"),P[0]=t):t=P[0];let T=t;e:{if(F||B||$){if("apps"===F&&"true"===$){a=T?"":"copilot";break e}else if(B){a=B||"";break e}}else{a="featured";break e}a=""}let U=a;t:{if(F&&(T||!$)){if("apps"===F){l="apps";break t}else if("actions"===F){l="actions";break t}else if("models"===F){l="models";break t}}l=""}let O=l;P[1]!==U?(n="featured"===U?{"aria-current":"page"}:{},P[1]=U,P[2]=n):n=P[2],P[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,r.jsx)(e$.c.LeadingVisual,{children:(0,r.jsx)(eb.FlameIcon,{})}),P[3]=s):s=P[3],P[4]!==n?(o=(0,r.jsxs)(e$.c.Item,{href:"/marketplace",...n,children:[s,"Featured"]}),P[4]=n,P[5]=o):o=P[5],P[6]!==U?(c=T?null:(0,r.jsxs)(e$.c.Item,{href:"/marketplace?type=apps&copilot_app=true",..."copilot"===U?{"aria-current":"page"}:{},children:[(0,r.jsx)(e$.c.LeadingVisual,{children:(0,r.jsx)(eb.CopilotIcon,{})}),"Copilot"]}),P[6]=U,P[7]=c):c=P[7];let M="models"===O;P[8]===Symbol.for("react.memo_cache_sentinel")?(d=(0,r.jsx)(e$.c.LeadingVisual,{children:(0,r.jsx)(eb.AiModelIcon,{})}),P[8]=d):d=P[8];let z="models"===O?"page":void 0;P[9]===Symbol.for("react.memo_cache_sentinel")?(m=(0,r.jsx)(e$.c.LeadingVisual,{children:(0,r.jsx)(eb.ListUnorderedIcon,{})}),P[9]=m):m=P[9],P[10]!==z?(u=(0,r.jsxs)(e$.c.Item,{href:"/marketplace?type=models","aria-current":z,children:[m,"Catalog"]}),P[10]=z,P[11]=u):u=P[11],P[12]===Symbol.for("react.memo_cache_sentinel")?(p=(0,r.jsx)(e$.c.LeadingVisual,{children:(0,r.jsx)(eb.CommandPaletteIcon,{})}),P[12]=p):p=P[12],P[13]===Symbol.for("react.memo_cache_sentinel")?(h=(0,r.jsxs)(e$.c.Item,{href:"/marketplace/models",children:[p,"Playground",(0,r.jsx)(e$.c.TrailingVisual,{children:(0,r.jsx)(eb.ArrowUpRightIcon,{})})]}),P[13]=h):h=P[13],P[14]!==u?(f=(0,r.jsxs)(e$.c.SubNav,{children:[u,h]}),P[14]=u,P[15]=f):f=P[15],P[16]!==f||P[17]!==M?(g=(0,r.jsxs)(e$.c.Item,{defaultOpen:M,children:[d,"Models",f]}),P[16]=f,P[17]=M,P[18]=g):g=P[18];let D="apps"===O;P[19]===Symbol.for("react.memo_cache_sentinel")?(x=(0,r.jsx)(e$.c.LeadingVisual,{children:(0,r.jsx)(eb.AppsIcon,{})}),P[19]=x):x=P[19],P[20]!==U||P[21]!==O?(y=(0,r.jsx)(e$.c.Item,{href:"/marketplace?type=apps",..."apps"===O&&""===U?{"aria-current":"page"}:{},children:"All apps"}),P[20]=U,P[21]=O,P[22]=y):y=P[22],P[23]!==L?.apps||P[24]!==U||P[25]!==O?(j=L?.apps?.map(e=>(0,r.jsx)(e$.c.Item,{href:`/marketplace?type=apps&category=${e.slug}`,..."apps"===O&&U===e.slug?{"aria-current":"page"}:{},children:e.name},`apps-category-${e.slug}`)),P[23]=L?.apps,P[24]=U,P[25]=O,P[26]=j):j=P[26],P[27]!==y||P[28]!==j?(b=(0,r.jsxs)(e$.c.SubNav,{children:[y,j]}),P[27]=y,P[28]=j,P[29]=b):b=P[29],P[30]!==D||P[31]!==b?(v=(0,r.jsxs)(e$.c.Item,{defaultOpen:D,children:[x,"Apps",b]}),P[30]=D,P[31]=b,P[32]=v):v=P[32];let E="actions"===O;return P[33]===Symbol.for("react.memo_cache_sentinel")?(_=(0,r.jsx)(e$.c.LeadingVisual,{children:(0,r.jsx)(eb.PlayIcon,{})}),P[33]=_):_=P[33],P[34]!==U||P[35]!==O?(N=(0,r.jsx)(e$.c.Item,{href:"/marketplace?type=actions",..."actions"===O&&""===U?{"aria-current":"page"}:{},children:"All actions"}),P[34]=U,P[35]=O,P[36]=N):N=P[36],P[37]!==L?.actions||P[38]!==U||P[39]!==O?(w=L?.actions?.map(e=>(0,r.jsx)(e$.c.Item,{href:`/marketplace?type=actions&category=${e.slug}`,..."actions"===O&&U===e.slug?{"aria-current":"page"}:{},children:e.name},`actions-category-${e.slug}`)),P[37]=L?.actions,P[38]=U,P[39]=O,P[40]=w):w=P[40],P[41]!==N||P[42]!==w?(k=(0,r.jsxs)(e$.c.SubNav,{children:[N,w]}),P[41]=N,P[42]=w,P[43]=k):k=P[43],P[44]!==E||P[45]!==k?(A=(0,r.jsxs)(e$.c.Item,{defaultOpen:E,children:[_,"Actions",k]}),P[44]=E,P[45]=k,P[46]=A):A=P[46],P[47]===Symbol.for("react.memo_cache_sentinel")?(S=(0,r.jsx)(e$.c.Divider,{}),P[47]=S):S=P[47],P[48]===Symbol.for("react.memo_cache_sentinel")?(I=(0,r.jsxs)(e$.c.Item,{href:"/marketplace/new",children:[(0,r.jsx)(e$.c.LeadingVisual,{children:(0,r.jsx)(eb.PlusIcon,{})}),"Create a new extension"]}),P[48]=I):I=P[48],P[49]!==g||P[50]!==v||P[51]!==A||P[52]!==o||P[53]!==c?(C=(0,r.jsxs)(e$.c,{children:[o,c,g,v,A,S,I]}),P[49]=g,P[50]=v,P[51]=A,P[52]=o,P[53]=c,P[54]=C):C=P[54],C}function eU(e){let t,a,l,n,s,o=(0,i.c)(10),{categories:c}=e,[m,u]=(0,d.useState)(!1);o[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>u(!1),o[0]=t):t=o[0];let p=t;return o[1]!==c?(a=(0,r.jsx)("div",{className:"hide-sm hide-md overflow-hidden",children:(0,r.jsx)(eT,{categories:c})}),o[1]=c,o[2]=a):a=o[2],o[3]===Symbol.for("react.memo_cache_sentinel")?(l=(0,r.jsx)(eF.Q,{block:!0,className:"hide-lg hide-xl",onClick:()=>u(!0),children:"Menu"}),o[3]=l):l=o[3],o[4]!==c||o[5]!==m?(n=m&&(0,r.jsx)(eB.l,{title:"Menu",onClose:p,position:{narrow:"bottom"},children:(0,r.jsx)("div",{className:"marketplace-navigation-module__negative-margin__jlSoQ",children:(0,r.jsx)(eT,{categories:c})})}),o[4]=c,o[5]=m,o[6]=n):n=o[6],o[7]!==a||o[8]!==n?(s=(0,r.jsxs)(r.Fragment,{children:[a,l,n]}),o[7]=a,o[8]=n,o[9]=s):s=o[9],s}function eO(e){let t,a=(0,i.c)(2),{children:l}=e;return a[0]!==l?(t=(0,r.jsx)(k,{children:(0,r.jsx)(C,{children:(0,r.jsx)(ed,{children:(0,r.jsx)(ep,{children:(0,r.jsx)($,{children:(0,r.jsx)(z,{children:(0,r.jsx)(E,{children:(0,r.jsx)(W,{children:(0,r.jsx)(X,{children:(0,r.jsx)(Z,{children:(0,r.jsx)(ea,{children:(0,r.jsx)(el,{children:(0,r.jsx)(ex,{children:l})})})})})})})})})})})})}),a[0]=l,a[1]=t):t=a[1],t}eT.displayName="Menu",eU.displayName="MarketplaceNavigation",eO.displayName="SearchAndFilterProviderStack";var eM=a(69538),eR=a(46249),ez=a(1761),eD=a(4925),eV=a(66743),eE=a(16497),eH=a(74073);function eG(e){let t,a,l,n=(0,i.c)(16),{listing:s,additionalDivClasses:o,additionalLogoClasses:c}=e,d=void 0===c?"":c,m="ffffff";"marketplace_listing"===s.type?m=s.bgColor:"repository_action"===s.type&&(m=s.color);let u=`flex-shrink-0 rounded-3 overflow-hidden ${eM.A["marketplace-logo"]} ${void 0===o?"":o}`,p=`#${m}`,h="ffffff"===m?"var(--fgColor-black)":"var(--fgColor-white)";return n[0]!==p||n[1]!==h?(t={backgroundColor:p,color:h},n[0]=p,n[1]=h,n[2]=t):t=n[2],n[3]!==d||n[4]!==s.dark_mode_icon||n[5]!==s.iconSvg||n[6]!==s.listingLogoUrl||n[7]!==s.logo_url||n[8]!==s.name||n[9]!==s.publisher||n[10]!==s.type?(a="marketplace_listing"===s.type?(0,r.jsx)("img",{src:s.listingLogoUrl,alt:`${s.name} logo`,className:`${eM.A["marketplace-logo-img"]} ${d}`}):"model"===s.type?(0,r.jsx)(eH.K,{logoUrl:s.logo_url,darkModeIcon:s.dark_mode_icon,publisher:s.publisher,size:24,className:`${eM.A["marketplace-model-avatar-icon"]} box-shadow-none ${d}`}):s.iconSvg?(0,r.jsx)(eE.vb,{html:s.iconSvg,className:`${eM.A["marketplace-logo-svg"]} ${d}`}):(0,r.jsx)(eb.PlayIcon,{className:`${eM.A["marketplace-logo-svg"]} ${d}`}),n[3]=d,n[4]=s.dark_mode_icon,n[5]=s.iconSvg,n[6]=s.listingLogoUrl,n[7]=s.logo_url,n[8]=s.name,n[9]=s.publisher,n[10]=s.type,n[11]=a):a=n[11],n[12]!==u||n[13]!==t||n[14]!==a?(l=(0,r.jsx)("div",{"data-testid":"logo",className:u,style:t,children:a}),n[12]=u,n[13]=t,n[14]=a,n[15]=l):l=n[15],l}eG.displayName="ListingLogo";let eq="MarketplaceItem-module__VerifiedIcon__kD7Uy";function eW(e){let t,a,l,n,s,o,c,d,u=(0,i.c)(36),{listing:p,isFeatured:h}=e,f=null;u[0]!==p.description||u[1]!==p.isVerifiedOwner||u[2]!==p.model_url||u[3]!==p.publisher||u[4]!==p.shortDescription||u[5]!==p.slug||u[6]!==p.summary||u[7]!==p.type?(n="",t=!1,a="",l="","marketplace_listing"===p.type?(f=p.shortDescription,n=`/marketplace/${p.slug}`,t=p.isVerifiedOwner):"repository_action"===p.type?(f=p.description,n=`/marketplace/actions/${p.slug}`,t=p.isVerifiedOwner):"model"===p.type&&(f=p.summary,n=p.model_url,t=!1,"AI21 Labs"===p.publisher&&(a=eM.A["marketplace-logo--jamba-div"]||"",l=eM.A["marketplace-logo--jamba-logo"]||"")),u[0]=p.description,u[1]=p.isVerifiedOwner,u[2]=p.model_url,u[3]=p.publisher,u[4]=p.shortDescription,u[5]=p.slug,u[6]=p.summary,u[7]=p.type,u[8]=t,u[9]=a,u[10]=l,u[11]=n,u[12]=f):(t=u[8],a=u[9],l=u[10],n=u[11],f=u[12]);let g="repository_action"===p.type?"Action":"model"===p.type?"Model":p.copilotApp?"Copilot":"App",x=(0,m.zy)();u[13]!==p.id||u[14]!==p.type||u[15]!==n||u[16]!==x?(s=()=>{"marketplace_listing"===p.type&&(0,eV.BI)("marketplace_listing_click",{marketplace_listing_id:p.id,source_url:x.pathname,destination_url:n})},u[13]=p.id,u[14]=p.type,u[15]=n,u[16]=x,u[17]=s):s=u[17];let y=s,j=`position-relative border rounded-2 d-flex ${eM.A["marketplace-item"]} ${h?"flex-column flex-items-center tmp-p-4":"gap-3 tmp-p-3"}`;return u[18]!==a||u[19]!==l||u[20]!==p?(o=(0,r.jsx)(eG,{listing:p,additionalDivClasses:a,additionalLogoClasses:l}),u[18]=a,u[19]=l,u[20]=p,u[21]=o):o=u[21],u[22]!==f||u[23]!==h||u[24]!==t||u[25]!==p.friendly_name||u[26]!==p.name||u[27]!==p.type||u[28]!==g||u[29]!==n||u[30]!==y?(c=h?(0,r.jsxs)("div",{className:"d-flex flex-column flex-items-center height-full width-full text-center","data-testid":"featured-item",children:[(0,r.jsxs)(eR.A,{as:"h3",className:"tmp-mt-3 d-flex f4 lh-condensed",children:[(0,r.jsx)("a",{href:n,className:`fgColor-default line-clamp-1 ${eM.A["marketplace-item-link"]}`,onClick:y,children:"model"===p.type?p.friendly_name:p.name}),t&&(0,r.jsx)(eb.VerifiedIcon,{className:eq})]}),(0,r.jsx)("p",{className:"mt-2 mb-auto height-full text-small fgColor-muted line-clamp-2",children:f}),(0,r.jsx)(eD.A,{variant:"secondary",size:"large","data-testid":"listing-type-label",className:"MarketplaceItem-module__Label__mahEy",children:g})]}):(0,r.jsxs)("div",{className:"flex-1","data-testid":"non-featured-item",style:{minWidth:0},children:[(0,r.jsxs)("div",{className:"d-flex flex-justify-between flex-items-start gap-3",children:[(0,r.jsxs)(eR.A,{as:"h3",className:"d-flex f4 lh-condensed",children:[(0,r.jsx)("a",{href:n,className:`${eM.A["marketplace-item-link"]} line-clamp-1`,onClick:y,children:"model"===p.type?p.friendly_name:p.name}),t&&(0,r.jsx)(eb.VerifiedIcon,{className:eq})]}),(0,r.jsx)(eD.A,{variant:"secondary","data-testid":"listing-type-label",children:g})]}),(0,r.jsx)("p",{className:"mt-1 mb-0 text-small fgColor-muted line-clamp-2",children:f})]}),u[22]=f,u[23]=h,u[24]=t,u[25]=p.friendly_name,u[26]=p.name,u[27]=p.type,u[28]=g,u[29]=n,u[30]=y,u[31]=c):c=u[31],u[32]!==j||u[33]!==o||u[34]!==c?(d=(0,r.jsxs)("div",{className:j,"data-testid":"marketplace-item",children:[o,c]}),u[32]=j,u[33]=o,u[34]=c,u[35]=d):d=u[35],d}eW.displayName="FeaturedItem";let eQ="marketplace-module__marketplace-content-container__NsQ4h",eY="marketplace-module__marketplace-content-container--less-padding__yAXoP";var eX=a(22216),eK=a(70944),eJ=a(67323),eZ=a(18990);function e0(){let{sort:e,setSort:t}=I();return(0,r.jsxs)(eJ.W,{children:[(0,r.jsxs)(eJ.W.Button,{children:[(0,r.jsx)("span",{className:"fgColor-muted",children:"Sort: "}),b[e]??e]}),(0,r.jsx)(eJ.W.Overlay,{width:"small",children:(0,r.jsx)(eZ.l,{selectionVariant:"single","data-testid":"creator-menu",children:Object.entries(b).map(([a,i])=>(0,r.jsx)(eZ.l.Item,{selected:a===e,onSelect:()=>t(a),children:i},a))})})]})}e0.displayName="ModelsSortMenu";var e1=a(33542);function e2(){let e,t,{publisher:a,publisherDisplayName:i,publishers:l,setPublisher:n}=J(),{task:s,setTask:o}=Y(),{category:c,setCategory:d}=R(),{setPage:m}=et(),{data:{categories:u}}=O(),p=e=>{m(1),n(e)},h=e=>{m(1),d(e)},f=v(u.find(e=>e===c));return(0,r.jsxs)("div",{className:"d-flex gap-2 flex-wrap",children:[(0,r.jsxs)(eJ.W,{children:[(0,r.jsxs)(eJ.W.Button,{...(0,e1.G)("family-button"),children:[(0,r.jsx)("span",{className:"fgColor-muted",children:"Publisher:"})," ",i??a]}),(0,r.jsx)(eJ.W.Overlay,{width:"small",children:(0,r.jsxs)(eZ.l,{selectionVariant:"single",children:[(0,r.jsx)(eZ.l.Item,{selected:"All"===a||!a,onSelect:()=>p("All"),children:"All"},"All"),l.map(({displayName:e,name:t})=>(0,r.jsx)(eZ.l.Item,{selected:t.toLowerCase()===a?.toLowerCase(),onSelect:()=>p(t),children:e??t},t))]})})]}),(0,r.jsxs)(eJ.W,{children:[(0,r.jsxs)(eJ.W.Button,{"data-testid":"task-button",children:[(0,r.jsx)("span",{className:"fgColor-muted",children:"Capability:"})," ",(e=s?.toLowerCase()??"all",t=j.find(t=>t.id===e),t?.name??s)]}),(0,r.jsx)(eJ.W.Overlay,{width:"small",children:(0,r.jsx)(eZ.l,{selectionVariant:"single",children:j.map(({id:e,name:t})=>(0,r.jsx)(eZ.l.Item,{selected:e===s,onSelect:()=>{m(1),o(e)},children:t},e))})})]}),(0,r.jsxs)(eJ.W,{children:[(0,r.jsxs)(eJ.W.Button,{"data-testid":"category-button",children:[(0,r.jsx)("span",{className:"fgColor-muted",children:"Category:"})," ",f]}),(0,r.jsx)(eJ.W.Overlay,{width:"small",children:(0,r.jsxs)(eZ.l,{selectionVariant:"single",children:[(0,r.jsx)(eZ.l.Item,{selected:"All"===c||!c,onSelect:()=>h("All"),children:"All"},"All"),u.map(e=>(0,r.jsx)(eZ.l.Item,{selected:e===c||"All"===e&&!c,onSelect:()=>h(e),children:v(e)},e))]})})]}),(0,r.jsx)(e0,{})]})}function e3(){let e,t,a,l,n,s,o,c,d,m,u,p,h,f,g,x,y,j,b,v,_,N,w=(0,i.c)(45);w[0]===Symbol.for("react.memo_cache_sentinel")?(e={all:"All",free_trial:"Free trial"},w[0]=e):e=w[0];let k=e,{filter:A,setFilter:S}=eg(),{setPage:C}=et(),{type:P}=V(),{creators:$,setCreators:F}=L(),{sort:B,setSort:T}=I();w[1]===Symbol.for("react.memo_cache_sentinel")?(t=["All creators","Verified creators"],w[1]=t):t=w[1];let U=t;w[2]===Symbol.for("react.memo_cache_sentinel")?(a={"popularity-desc":"Popularity","created-desc":"Recently added","match-desc":"Best match"},w[2]=a):a=w[2];let O=a;switch(B){case"popularity-desc":l=O["popularity-desc"];break;case"created-desc":l=O["created-desc"];break;case"match-desc":l=O["match-desc"];break;default:l=""}let M=l;w[3]!==F||w[4]!==C?(n=e=>{C(1),F(e)},w[3]=F,w[4]=C,w[5]=n):n=w[5];let R=n;w[6]!==S||w[7]!==C?(s=e=>{C(1),S(e)},w[6]=S,w[7]=C,w[8]=s):s=w[8];let z=s;w[9]!==T?(o=e=>{T(e)},w[9]=T,w[10]=o):o=w[10];let D=o;if("models"===P){let e;return w[11]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(e2,{}),w[11]=e):e=w[11],e}return w[12]===Symbol.for("react.memo_cache_sentinel")?(c=(0,r.jsx)("span",{className:"fgColor-muted",children:"Filter:"}),w[12]=c):c=w[12],w[13]!==A?(d=(0,r.jsxs)(eJ.W.Button,{"data-testid":"filter-button",children:[c," ",A]}),w[13]=A,w[14]=d):d=w[14],w[15]===Symbol.for("react.memo_cache_sentinel")?(m=Object.entries(k),w[15]=m):m=w[15],w[16]!==A||w[17]!==z?(u=(0,r.jsx)(eJ.W.Overlay,{width:"small",children:(0,r.jsx)(eZ.l,{selectionVariant:"single","data-testid":"filter-menu",children:m.map(e=>{let[t,a]=e;return(0,r.jsx)(eZ.l.Item,{selected:a===A,onSelect:()=>z(a),children:a},t)})})}),w[16]=A,w[17]=z,w[18]=u):u=w[18],w[19]!==u||w[20]!==d?(p=(0,r.jsxs)(eJ.W,{children:[d,u]}),w[19]=u,w[20]=d,w[21]=p):p=w[21],w[22]===Symbol.for("react.memo_cache_sentinel")?(h=(0,r.jsx)("span",{className:"fgColor-muted",children:"By:"}),w[22]=h):h=w[22],w[23]!==$?(f=(0,r.jsxs)(eJ.W.Button,{"data-testid":"creator-button",children:[h," ",$]}),w[23]=$,w[24]=f):f=w[24],w[25]!==$||w[26]!==R?(g=(0,r.jsx)(eJ.W.Overlay,{width:"small",children:(0,r.jsx)(eZ.l,{selectionVariant:"single","data-testid":"creator-menu",children:U.map(e=>(0,r.jsx)(eZ.l.Item,{selected:e===$,onSelect:()=>R(e),children:e},e))})}),w[25]=$,w[26]=R,w[27]=g):g=w[27],w[28]!==f||w[29]!==g?(x=(0,r.jsxs)(eJ.W,{children:[f,g]}),w[28]=f,w[29]=g,w[30]=x):x=w[30],w[31]===Symbol.for("react.memo_cache_sentinel")?(y=(0,r.jsx)("span",{className:"fgColor-muted",children:"Sort:"}),w[31]=y):y=w[31],w[32]!==M?(j=(0,r.jsxs)(eJ.W.Button,{"data-testid":"sort-button",children:[y," ",M]}),w[32]=M,w[33]=j):j=w[33],w[34]===Symbol.for("react.memo_cache_sentinel")?(b=Object.entries(O),w[34]=b):b=w[34],w[35]!==D||w[36]!==B?(v=(0,r.jsx)(eJ.W.Overlay,{width:"small",children:(0,r.jsx)(eZ.l,{selectionVariant:"single","data-testid":"sort-menu",children:b.map(e=>{let[t,a]=e;return(0,r.jsx)(eZ.l.Item,{selected:t===B,onSelect:()=>D(t),children:a},t)})})}),w[35]=D,w[36]=B,w[37]=v):v=w[37],w[38]!==j||w[39]!==v?(_=(0,r.jsxs)(eJ.W,{children:[j,v]}),w[38]=j,w[39]=v,w[40]=_):_=w[40],w[41]!==p||w[42]!==x||w[43]!==_?(N=(0,r.jsxs)("div",{className:"d-flex gap-2 flex-wrap",children:[p,x,_]}),w[41]=p,w[42]=x,w[43]=_,w[44]=N):N=w[44],N}e2.displayName="ModelsFilters",e3.displayName="Filters";var e4=a(83223),e5=a(73077),e6=a(26933),e7=a(69464),e8=a(53181);let e9="https://gh.io/models-feedback";function te(){let[e,t]=(0,d.useState)("recent"),a=(0,eS.G7)("lifecycle_label_name_updates"),{query:i}=ei(),{searchResults:l}=w(),{recentModels:s,popularModels:o}=(0,n.B)(),c=(0,d.useMemo)(()=>"popular"===e?o:s,[e,o,s]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"tmp-mb-4 d-flex flex-column flex-sm-row flex-justify-between flex-wrap gap-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"f2 lh-condensed",...(0,e1.G)("heading-text"),children:i?`Search results for \u{201C}${i}\u{201D}`:"Models"}),(0,r.jsx)("span",{className:"fgColor-muted",...(0,e1.G)("detail-text"),children:i?`${l.total} ${1===l.total?"result":"results"}`:(0,r.jsx)("span",{children:"Create applications with GitHub powered by AI Models. Free to use, quick personal setup, and seamless model switching to help you build AI products using the latest models."})})]}),a?(0,r.jsx)(e6.X,{feedbackUrl:e9}):(0,r.jsxs)("div",{className:"d-flex flex-items-center gap-2",children:[(0,r.jsx)(eD.A,{variant:"success",children:"Beta"}),(0,r.jsx)(e4.A,{href:e9,tabIndex:0,children:"Give feedback"})]})]}),(0,r.jsxs)("div",{className:"tmp-mb-4 d-flex flex-items-center justify-center ResultListHeader-module__nav__DIt15",children:[(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsxs)(ez.O,{"aria-label":"Featured models sort order",variant:"flush",children:[(0,r.jsx)(ez.O.Item,{as:"button","aria-current":"recent"===e?"page":void 0,onSelect:()=>t("recent"),children:"Recently added"}),(0,r.jsx)(ez.O.Item,{as:"button",type:"button","aria-current":"popular"===e?"page":void 0,onSelect:()=>t("popular"),children:"Most popular"})]})}),(0,r.jsx)(e5.z,{href:(0,e8.RS)(),variant:"primary",leadingVisual:(0,r.jsx)(eb.CommandPaletteIcon,{}),tabIndex:0,children:"Try models in playground"})]}),(0,r.jsx)("div",{className:`tmp-mb-4 ${eM.A["marketplace-featured-grid"]} width-fit`,children:c.map(e=>(0,r.jsx)(e7.A,{model:e,isFeatured:!0},e.id))})]})}function tt(e){let t,a,l,n,s,o,c,d=(0,i.c)(20),{categories:m}=e,{category:u}=R(),{query:p}=ei(),{copilotApp:h}=q(),{type:f}=V(),{searchResults:g}=w();if(d[0]!==m.actions||d[1]!==m.apps){for(let e of(t=new Map,[...m.apps,...m.actions]))t.set(e.slug,e);d[0]=m.actions,d[1]=m.apps,d[2]=t}else t=d[2];let x=t;e:{if(p){a=`Search results for \u{201C}${p}\u{201D}`;break e}if(h){a="Copilot Extensions";break e}if(u){let e;d[3]!==x||d[4]!==u?(e=u?x.get(u):void 0,d[3]=x,d[4]=u,d[5]=e):e=d[5];let t=e;a=t?`${t.name} ${"actions"===f?"actions":"apps"}`:"Apps";break e}else if("actions"===f){a="Actions";break e}else if("apps"===f){a="Apps";break e}a="Search results"}let y=a;t:{if(p){l=`${g.total} ${1===g.total?"result":"results"}`;break t}if(h){l="Extend Copilot capabilities using third party tools, services, and data";break t}if(u){let e,t;d[6]!==x||d[7]!==u?(e=u?x.get(u):void 0,d[6]=x,d[7]=u,d[8]=e):e=d[8];let a=e;d[9]!==a?(t=a?(0,r.jsx)(eE.vb,{html:a.description_html}):"",d[9]=a,d[10]=t):t=d[10],l=t;break t}else if("actions"===f){l="Automate your workflow from idea to production";break t}else if("apps"===f){l="Build on your workflow with apps that integrate with GitHub";break t}l=void 0}let j=l;if("models"===f){let e;return d[11]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(te,{}),d[11]=e):e=d[11],e}return d[12]===Symbol.for("react.memo_cache_sentinel")?(n=(0,e1.G)("heading-text"),d[12]=n):n=d[12],d[13]!==y?(s=(0,r.jsx)("h2",{className:"f2 lh-condensed",...n,children:y}),d[13]=y,d[14]=s):s=d[14],d[15]!==j?(o=j&&(0,r.jsx)("span",{className:"fgColor-muted",...(0,e1.G)("detail-text"),children:j}),d[15]=j,d[16]=o):o=d[16],d[17]!==s||d[18]!==o?(c=(0,r.jsx)("div",{className:"d-flex flex-column flex-sm-row flex-justify-between flex-wrap gap-2",children:(0,r.jsxs)("div",{children:[s,o]})}),d[17]=s,d[18]=o,d[19]=c):c=d[19],c}function ta(e){let t,a,l,n,s,o=(0,i.c)(13),{categories:c}=e,{searchResults:d}=w(),{page:m,setPage:u}=et();o[0]!==u?(t=(e,t)=>{e.preventDefault(),u(t)},o[0]=u,o[1]=t):t=o[1];let p=t;return o[2]!==c?(a=(0,r.jsx)(tt,{categories:c}),o[2]=c,o[3]=a):a=o[3],o[4]===Symbol.for("react.memo_cache_sentinel")?(l=(0,r.jsx)("div",{className:"tmp-mt-3",children:(0,r.jsx)(e3,{})}),o[4]=l):l=o[4],o[5]!==p||o[6]!==m||o[7]!==d.results||o[8]!==d.totalPages?(n=d.results.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:`tmp-mt-4 ${1===d.results.length?"marketplace-module__marketplace-list-grid-one__dYNBw":eM.A["marketplace-list-grid"]}`,"data-testid":"search-results",children:d.results.map(tr)}),(d.totalPages??1)>1&&(0,r.jsx)(eX.A,{pageCount:d.totalPages??1,currentPage:m,onPageChange:p,showPages:{narrow:!1}})]}):(0,r.jsx)("div",{className:"tmp-mt-4",children:(0,r.jsxs)(eK.E,{border:!0,children:[(0,r.jsx)(eK.E.Visual,{children:(0,r.jsx)(eb.SearchIcon,{size:"medium"})}),(0,r.jsx)(eK.E.Heading,{children:"No results"}),(0,r.jsx)(eK.E.Description,{children:"Try searching by different keywords."})]})}),o[5]=p,o[6]=m,o[7]=d.results,o[8]=d.totalPages,o[9]=n):n=o[9],o[10]!==a||o[11]!==n?(s=(0,r.jsxs)(r.Fragment,{children:[a,l,n]}),o[10]=a,o[11]=n,o[12]=s):s=o[12],s}function tr(e){return(0,r.jsx)(eW,{listing:e,isFeatured:!1},`${e.type}-${e.id}`)}function ti(e){let t,a,l,s,o,c=(0,i.c)(12),{payload:m}=e,{featuredModels:u}=(0,n.B)(),{isSearching:p}=eg(),{featured:h}=ec(),{recommended:f}=eu(),[g,x]=(0,d.useState)("recommended");c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,eS.G7)("copilot_extensions_removal_on_marketplace"),c[0]=t):t=c[0];let y=t;c[1]===Symbol.for("react.memo_cache_sentinel")?(a=[],c[1]=a):a=c[1];let[j,b]=(0,d.useState)(a);return c[2]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{!async function(){try{let e=await (0,F.DI)("/marketplace/recently-added");b(await e.json())}catch{b([])}}()},s=[],c[2]=l,c[3]=s):(l=c[2],s=c[3]),(0,d.useEffect)(l,s),c[4]!==g||c[5]!==h||c[6]!==u||c[7]!==p||c[8]!==m||c[9]!==j||c[10]!==f?(o=(0,r.jsx)(r.Fragment,{children:p?(0,r.jsx)(ta,{categories:m.categories}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eR.A,{as:"h2",className:"f2",children:"Models for your every use case"}),(0,r.jsx)("span",{className:"fgColor-muted",children:"Try, test, and deploy from a wide range of model types, sizes, and specializations."}),(0,r.jsx)("div",{className:`tmp-mt-4 ${eM.A["marketplace-featured-grid"]} width-fit`,children:u.map(to)}),!y&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eR.A,{as:"h2",className:"tmp-mt-4 f2",children:"Discover apps with Copilot extensions"}),(0,r.jsx)("span",{className:"fgColor-muted",children:"Your favorite tools now work with GitHub Copilot."})]}),(0,r.jsx)("div",{className:`tmp-mt-4 ${eM.A["marketplace-featured-grid"]} width-fit`,children:h.map(ts)}),(0,r.jsx)("div",{className:"IndexAndSearchContent-module__UnderlineNavContainer__ldWQc",children:(0,r.jsxs)(ez.O,{"aria-label":"View recommended or recent marketplace listings",children:[(0,r.jsx)(ez.O.Item,{as:"button","aria-current":"recommended"===g?"page":void 0,onSelect:e=>{e?.preventDefault(),x("recommended")},children:"Recommended"}),(0,r.jsx)(ez.O.Item,{as:"button","aria-current":"recentlyAdded"===g?"page":void 0,onSelect:e=>{e?.preventDefault(),x("recentlyAdded")},children:"Recently added"})]})}),"recommended"===g&&(0,r.jsx)("div",{className:`tmp-mt-4 ${eM.A["marketplace-list-grid"]}`,children:f.map(tn)}),"recentlyAdded"===g&&(0,r.jsx)("div",{className:`tmp-mt-4 ${eM.A["marketplace-list-grid"]}`,children:j.map(tl)})]})}),c[4]=g,c[5]=h,c[6]=u,c[7]=p,c[8]=m,c[9]=j,c[10]=f,c[11]=o):o=c[11],o}function tl(e){return(0,r.jsx)(eW,{listing:e,isFeatured:!1},`${e.type}-${e.id}`)}function tn(e){return(0,r.jsx)(eW,{listing:e,isFeatured:!1},`${e.type}-${e.id}`)}function ts(e){return(0,r.jsx)(eW,{listing:e,isFeatured:!0},`${e.type}-${e.id}`)}function to(e){return(0,r.jsx)(e7.A,{model:e,isFeatured:!0},e.id)}function tc(){let e,t,a,l,o=(0,i.c)(8),c=(0,n.B)();return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(eL,{}),o[0]=e):e=o[0],o[1]!==c.categories?(t=(0,r.jsx)(s.M.Pane,{position:"start",children:(0,r.jsx)(eU,{categories:c.categories})}),o[1]=c.categories,o[2]=t):t=o[2],o[3]!==c?(a=(0,r.jsx)(s.M.Content,{as:"div",children:(0,r.jsx)(ti,{payload:c})}),o[3]=c,o[4]=a):a=o[4],o[5]!==t||o[6]!==a?(l=(0,r.jsxs)(eO,{children:[e,(0,r.jsx)("div",{"data-hpc":!0,children:(0,r.jsxs)(s.M,{children:[t,a]})})]}),o[5]=t,o[6]=a,o[7]=l):l=o[7],l}te.displayName="ResultListHeader",tt.displayName="ResultListHeader",ta.displayName="ResultList",ti.displayName="IndexAndSearchContent",tc.displayName="Index";var td=a(46251);let tm=e=>{let t,a,l,n,o,c,d,m=(0,i.c)(14),{header:u,body:p,sidebar:h}=e;return m[0]!==u?(t=(0,r.jsx)(s.M.Header,{children:u}),m[0]=u,m[1]=t):t=m[1],m[2]===Symbol.for("react.memo_cache_sentinel")?(a={narrow:"vertical",regular:"horizontal"},m[2]=a):a=m[2],m[3]!==p?(l=(0,r.jsx)(s.M.Content,{as:"div",children:p}),m[3]=p,m[4]=l):l=m[4],m[5]===Symbol.for("react.memo_cache_sentinel")?(n={narrow:!0,regular:!1},m[5]=n):n=m[5],m[6]!==h?(o=(0,r.jsx)(s.M.Pane,{hidden:n,className:"marketplace-module__marketplace-sidebar__pane__NuXTT",children:(0,r.jsx)(td.B,{gap:"spacious",className:"marketplace-module__marketplace-sidebar__content-wrapper__UVYo3",children:h})}),m[6]=h,m[7]=o):o=m[7],m[8]!==l||m[9]!==o?(c=(0,r.jsxs)(td.B,{justify:"end",direction:a,gap:"none",className:"width-full",children:[l,o]}),m[8]=l,m[9]=o,m[10]=c):c=m[10],m[11]!==t||m[12]!==c?(d=(0,r.jsx)("div",{className:"d-flex flex-column","data-testid":"marketplace-listing","data-hpc":!0,children:(0,r.jsxs)(s.M,{columnGap:"normal",children:[t,c]})}),m[11]=t,m[12]=c,m[13]=d):d=m[13],d};tm.displayName="ListingLayout";var tu=a(30022);function tp(e){let t,a,l,n,s,o=(0,i.c)(11),{listing:c}=e,d="";"model"===c.type?d="Models":"marketplace_listing"===c.type?d="Apps":"repository_action"===c.type&&(d="Actions"),o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)(tu.A.Item,{href:"/marketplace",children:"Marketplace"}),o[0]=t):t=o[0],o[1]!==d?(a=d.toLowerCase(),o[1]=d,o[2]=a):a=o[2];let m=`/marketplace?type=${a}`;return o[3]!==m||o[4]!==d?(l=(0,r.jsx)(tu.A.Item,{href:m,children:d}),o[3]=m,o[4]=d,o[5]=l):l=o[5],o[6]!==c.name?(n=(0,r.jsx)(tu.A.Item,{className:"ws-normal",href:"#",selected:!0,children:c.name}),o[6]=c.name,o[7]=n):n=o[7],o[8]!==l||o[9]!==n?(s=(0,r.jsxs)(tu.A,{"data-testid":"breadcrumbs",children:[t,l,n]}),o[8]=l,o[9]=n,o[10]=s):s=o[10],s}function th(e){let t,a,l,n,s,o,c,d,m,u,p,h,f,g,x=(0,i.c)(37);x[0]===Symbol.for("react.memo_cache_sentinel")?(t={narrow:!0},x[0]=t):t=x[0];let y=(0,ey.tv)(t,!1),{listing:j,banner:b,listingDetails:v,loggedIn:_,additionalDetails:N,callToAction:w}=e,{name:k}=j,A="",S=!1;"repository_action"===j.type?(A="Actions",S=j.isVerifiedOwner):"marketplace_listing"===j.type&&(A=j.copilotApp?"Copilot":"App",S=j.isVerifiedOwner),x[1]!==j||x[2]!==_?(a=!_&&(0,r.jsx)(tp,{listing:j}),x[1]=j,x[2]=_,x[3]=a):a=x[3],x[4]!==b?(l=(0,r.jsx)("div",{className:"marketplace-module__marketplace-banner-container__IhyJV",children:b}),x[4]=b,x[5]=l):l=x[5],x[6]!==j?(n=(0,r.jsx)(eG,{listing:j}),x[6]=j,x[7]=n):n=x[7],x[8]!==S?(s=S&&(0,r.jsx)("div",{className:"marketplace-module__marketplace-logo__verified-icon-wrapper__FfDyh",children:(0,r.jsx)(eb.VerifiedIcon,{size:16,className:"fgColor-accent","aria-label":"Manually verified"})}),x[8]=S,x[9]=s):s=x[9],x[10]!==n||x[11]!==s?(o=(0,r.jsxs)("div",{className:"marketplace-module__marketplace-logo-wrapper__AS0lp",children:[n,s]}),x[10]=n,x[11]=s,x[12]=o):o=x[12];let I=y?"h4":"h3";return x[13]!==k||x[14]!==I?(c=(0,r.jsx)("h1",{className:I,children:k}),x[13]=k,x[14]=I,x[15]=c):c=x[15],x[16]!==A?(d=A&&(0,r.jsx)(eD.A,{variant:"secondary",className:"d-none d-md-flex","data-testid":"type-label",children:A}),x[16]=A,x[17]=d):d=x[17],x[18]!==c||x[19]!==d?(m=(0,r.jsxs)(td.B,{align:"center",direction:"horizontal",gap:"condensed",children:[c,d]}),x[18]=c,x[19]=d,x[20]=m):m=x[20],x[21]!==o||x[22]!==m?(u=(0,r.jsxs)(td.B,{align:"center",direction:"horizontal",children:[o,m]}),x[21]=o,x[22]=m,x[23]=u):u=x[23],x[24]!==v?(p=(0,r.jsx)(td.B,{className:"d-md-none",children:v}),x[24]=v,x[25]=p):p=x[25],x[26]!==N?(h=(0,r.jsx)(td.B,{className:"d-md-none width-full",children:N}),x[26]=N,x[27]=h):h=x[27],x[28]!==w||x[29]!==u||x[30]!==p||x[31]!==h?(f=(0,r.jsxs)(td.B,{justify:"space-between",className:"flex-column flex-md-row",children:[u,p,w,h]}),x[28]=w,x[29]=u,x[30]=p,x[31]=h,x[32]=f):f=x[32],x[33]!==a||x[34]!==f||x[35]!==l?(g=(0,r.jsxs)(td.B,{"data-testid":"overview-header",children:[a,l,f]}),x[33]=a,x[34]=f,x[35]=l,x[36]=g):g=x[36],g}tp.displayName="ListingBreadcrumbs",th.displayName="OverviewHeader";var tf=a(37624),tg=a(95126),tx=a(23666);function ty(e){let t,a,l,n,s,o,c,d,m,u,p=(0,i.c)(26),{app:h,sidebar:f}=e,{shortDescription:g,ownerLogin:x,ownerType:y}=h,j="Organization"===y,b="User"===y,v=(0,tg.yY)();p[0]!==f?(t=f&&(0,r.jsx)(tf.A,{title:"About",htmlTag:"h2"}),p[0]=f,p[1]=t):t=p[1],p[2]!==g?(a=g&&(0,r.jsx)("span",{children:g}),p[2]=g,p[3]=a):a=p[3],p[4]!==v||p[5]!==j||p[6]!==b||p[7]!==x?(l=x&&(0,r.jsx)("div",{className:"color-fg-muted pr-1",children:(0,r.jsxs)(r.Fragment,{children:["By ",j||b?(0,r.jsx)(e4.A,{href:(0,tx.p3r)({owner:x}),...v(j?"organization":"user",{login:x}),children:x}):(0,r.jsx)(e4.A,{href:(0,tx.p3r)({owner:x}),children:x})]})}),p[4]=v,p[5]=j,p[6]=b,p[7]=x,p[8]=l):l=p[8],p[9]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsx)(eb.DownloadIcon,{className:"mr-1 fgColor-muted"}),p[9]=n):n=p[9],p[10]!==h.installationCount?(s=h.installationCount.toLocaleString(),p[10]=h.installationCount,p[11]=s):s=p[11],p[12]!==s?(o=(0,r.jsxs)("span",{className:"text-bold",children:[s,"\xa0"]}),p[12]=s,p[13]=o):o=p[13];let _=1===h.installationCount?"":"s";return p[14]!==_?(c=(0,r.jsxs)("span",{className:"fgColor-muted",children:["install",_]}),p[14]=_,p[15]=c):c=p[15],p[16]!==o||p[17]!==c?(d=(0,r.jsxs)("div",{children:[n,o,c]}),p[16]=o,p[17]=c,p[18]=d):d=p[18],p[19]!==l||p[20]!==d?(m=(0,r.jsxs)(td.B,{wrap:"wrap",direction:"horizontal",gap:"condensed",children:[l,d]}),p[19]=l,p[20]=d,p[21]=m):m=p[21],p[22]!==t||p[23]!==a||p[24]!==m?(u=(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"about",children:[t,a,m]}),p[22]=t,p[23]=a,p[24]=m,p[25]=u):u=p[25],u}function tj(e){return e.isRegularEmuUser?{canInstall:!1,reason:"Only enterprise administrators and organization admins can purchase applications from the marketplace."}:e.emuOwnerButNotAdmin?{canInstall:!1,reason:"Only enterprise admins are able to install paid Marketplace plans."}:{canInstall:!0,reason:null}}function tb(e,t){let a,r,l,n=(0,i.c)(8);n[0]===Symbol.for("react.memo_cache_sentinel")?(a={narrow:!0},n[0]=a):a=n[0];let s=(0,ey.tv)(a,!1);n[1]!==e||n[2]!==t?(r=!tj(e).canInstall||t.disabled,n[1]=e,n[2]=t,n[3]=r):r=n[3];let o=!!r,c=o?"install-unavailable-reason":void 0,d=s?"medium":"large";return n[4]!==o||n[5]!==c||n[6]!==d?(l={disabled:o,"aria-describedby":c,size:d},n[4]=o,n[5]=c,n[6]=d,n[7]=l):l=n[7],l}function tv(e){let t,a,l,n,s,o,c=(0,i.c)(13);c[0]!==e?({planInfo:a,...t}=e,c[0]=e,c[1]=t,c[2]=a):(t=c[1],a=c[2]);let d=tb(a,t);c[3]!==d?({disabled:l,size:n,...s}=d,c[3]=d,c[4]=l,c[5]=n,c[6]=s):(l=c[4],n=c[5],s=c[6]);let m=`width-full ${t.className?t.className:""}`,u=s["aria-describedby"];return c[7]!==t||c[8]!==l||c[9]!==n||c[10]!==m||c[11]!==u?(o=(0,r.jsx)(eF.Q,{as:"button",variant:"primary",className:m,"aria-disabled":l,"aria-describedby":u,size:n,...t,disabled:l}),c[7]=t,c[8]=l,c[9]=n,c[10]=m,c[11]=u,c[12]=o):o=c[12],o}function t_(e){let t,a,l,n,s,o,c=(0,i.c)(13);c[0]!==e?({planInfo:a,...t}=e,c[0]=e,c[1]=t,c[2]=a):(t=c[1],a=c[2]);let d=tb(a,t);c[3]!==d?({disabled:l,size:n,...s}=d,c[3]=d,c[4]=l,c[5]=n,c[6]=s):(l=c[4],n=c[5],s=c[6]);let m=`width-full ${t.className?t.className:""}`,u=s["aria-describedby"];return c[7]!==l||c[8]!==t||c[9]!==n||c[10]!==m||c[11]!==u?(o=(0,r.jsx)(e5.z,{as:"a",variant:"primary",className:m,"aria-describedby":u,size:n,"data-testid":"header-link-button",...t,disabled:l}),c[7]=l,c[8]=t,c[9]=n,c[10]=m,c[11]=u,c[12]=o):o=c[12],o}ty.displayName="About",tv.displayName="HeaderButton",t_.displayName="HeaderLinkButton";var tN=a(26316),tw=a(19519);function tk(e,t,a,r){let i,l,n=!!r&&(r===e.currentUser?.displayLogin?e.installedForViewer:e.organizations.find(e=>e.displayLogin===r)?.installedForOrg),s=r&&e.planIdByLogin[r]===t.id;return s&&n?(i=!0,l="Already installed"):s&&!n?(i=!1,l="Install"):t.directBilling?(i=!e.isBuyable,l=`Set up with ${a.name}`):t.isPaid&&t.hasFreeTrial&&(e.subscriptionItem.onFreeTrial||e.anyAccountEligibleForFreeTrial)?(i=!e.isBuyable,l=e.isBuyable||e.organizations.length>0?`Try free for ${e.freeTrialLength}`:e.viewerFreeTrialDaysLeft&&e.viewerFreeTrialDaysLeft>0?`${e.viewerFreeTrialDaysLeft} ${1===e.viewerFreeTrialDaysLeft?"day":"days"} left of free trial`:`Try free for ${e.freeTrialLength}`):t.isPaid?(i=!e.isBuyable,l="Buy with GitHub"):(i=!e.isBuyable&&!0,l="Install it for free"),{isDisabled:i,buttonText:l}}function tA(e){let t,a,l,n=(0,i.c)(17),{planInfo:s,plan:o,listing:c,account:d}=e;n[0]!==d||n[1]!==c||n[2]!==o||n[3]!==s?(t=tk(s,o,c,d),n[0]=d,n[1]=c,n[2]=o,n[3]=s,n[4]=t):t=n[4];let{isDisabled:m,buttonText:u}=t,{isBrowser:p}=(0,tw.V)();n[5]!==p?(a=p?(0,tx.pMt)({returnTo:tN.fV?.href}):void 0,n[5]=p,n[6]=a):a=n[6];let h=a;if(!s.isLoggedIn){let e;return n[7]!==u||n[8]!==m||n[9]!==h||n[10]!==s?(e=(0,r.jsx)(t_,{href:h,planInfo:s,disabled:m,children:u}),n[7]=u,n[8]=m,n[9]=h,n[10]=s,n[11]=e):e=n[11],e}let f=`marketplace_listing_id:${c.id}`;return n[12]!==u||n[13]!==m||n[14]!==s||n[15]!==f?(l=(0,r.jsx)(tv,{type:"submit",form:"plan-form",planInfo:s,disabled:m,"data-testid":"direct-install-button","data-octo-click":"marketplace-listing_order_click","data-octo-dimensions":f,children:u}),n[12]=u,n[13]=m,n[14]=s,n[15]=f,n[16]=l):l=n[16],l}function tS(e){let t,a,l=(0,i.c)(9),{planInfo:n,plan:s,listing:o,account:c}=e;l[0]!==c||l[1]!==o||l[2]!==s||l[3]!==n?(t=tk(n,s,o,c),l[0]=c,l[1]=o,l[2]=s,l[3]=n,l[4]=t):t=l[4];let{isDisabled:d,buttonText:m}=t,u=`marketplace_listing_id:${o.id}`;return l[5]!==m||l[6]!==d||l[7]!==u?(a=(0,r.jsx)(eF.Q,{variant:"primary",size:"large",form:"plan-form",disabled:d,type:"submit","data-octo-click":"marketplace-listing_order_click","data-octo-dimensions":u,children:m}),l[5]=m,l[6]=d,l[7]=u,l[8]=a):a=l[8],a}function tI(e){let t=(0,i.c)(6),{planInfo:a,plan:l,listing:n}=e;if(a.freeTrialsUsed){let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)("div",{children:"You\u2019ve already used a free trial for this app"}),t[0]=e):e=t[0],e}if(a.installationUrlRequirementMet)if(a.isBuyable){let e,a=l.isPaid&&" and payment information";return t[3]!==a?(e=(0,r.jsxs)("p",{className:"mt-2 mb-0 f6",children:["Next: Confirm your installation location",a]}),t[3]=a,t[4]=e):e=t[4],e}else{let e;return t[5]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)("p",{className:"mt-2 mb-0 f6",children:"You\u2019ve already purchased this on all of your GitHub accounts"}),t[5]=e):e=t[5],e}if(!a.userCanEditListing)return null;{let e,a=`/marketplace/${n.slug}/edit/description#naming_and_links`;return t[1]!==a?(e=(0,r.jsxs)("div",{children:["This app is not installable because it is missing"," ",(0,r.jsx)("a",{href:a,children:"an installation URL"}),"."]}),t[1]=a,t[2]=e):e=t[2],e}}tA.displayName="HeaderInstallButton",tS.displayName="InstallButton",tI.displayName="InstallHelpText";var tC=a(29207);let tP=(0,d.createContext)(null);function tL(){let e=(0,d.use)(tP);if(!e)throw Error("usePlanForm must be used within the PlanForm component");return e}function t$(e){let t,a,l,n,s=(0,i.c)(10);s[0]!==e?({children:t,...a}=e,s[0]=e,s[1]=t,s[2]=a):(t=s[1],a=s[2]);let[o,c]=(0,d.useState)(a.planInfo.orderPreview?.quantity||1),m=(0,tC.H)(`/marketplace/${a.listing.slug}/order/${a.plan.id}${a.canReinstall?"/upgrade":""}`,"post");s[3]!==m||s[4]!==a||s[5]!==o?(l={seatQuantity:o,setSeatQuantity:c,authToken:m,...a},s[3]=m,s[4]=a,s[5]=o,s[6]=l):l=s[6];let u=l;return s[7]!==t||s[8]!==u?(n=(0,r.jsx)(tP,{value:u,children:t}),s[7]=t,s[8]=u,s[9]=n):n=s[9],n}function tF(){let e,t,a,l,n=(0,i.c)(12),{planInfo:s,listing:o,canReinstall:c,skipOrderReview:d,authToken:m}=tL();return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)("input",{type:"hidden",name:"quantity",id:"quantity",value:"1","data-testid":"quantity"}),n[0]=e):e=n[0],n[1]!==m||n[2]!==c||n[3]!==d?(t=(d||c)&&(0,r.jsx)("input",{type:"hidden",name:"authenticity_token",value:m,"data-testid":"csrf-token"}),n[1]=m,n[2]=c,n[3]=d,n[4]=t):t=n[4],n[5]!==o||n[6]!==s||n[7]!==d?(a=d&&(0,r.jsx)(r.Fragment,{children:s.canSignEndUserAgreement&&s.endUserAgreement&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("input",{type:"hidden",name:"marketplace_listing_id",id:"marketplace_listing_id",value:o.id,"data-testid":"marketplace-listing-id"}),(0,r.jsx)("input",{type:"hidden",name:"marketplace_agreement_id",id:"marketplace_agreement_id",value:s.endUserAgreement.id,"data-testid":"marketplace-agreement-id"})]})}),n[5]=o,n[6]=s,n[7]=d,n[8]=a):a=n[8],n[9]!==t||n[10]!==a?(l=(0,r.jsxs)(r.Fragment,{children:[e,t,a]}),n[9]=t,n[10]=a,n[11]=l):l=n[11],l}tP.displayName="PlanFormContext",t$.displayName="PlanFormProvider",tF.displayName="PlanFormHiddenFields";var tB=a(7624),tT=a(38750);function tU(){let e,t,a,l,n,s,o,c=(0,i.c)(21),{planInfo:d,plan:m,seatQuantity:u,setSeatQuantity:p}=tL();if(!m.isPaid)return null;c[0]!==m.perUnit||c[1]!==m.unitName||c[2]!==u||c[3]!==p?(e=m.perUnit&&(0,r.jsxs)(tB.A,{id:"quantity",children:[(0,r.jsx)(tB.A.Label,{htmlFor:"quantity",className:"text-normal",as:"label",children:`Number of ${m.unitName}s`}),(0,r.jsx)(tT.A,{type:"number",value:u,name:"quantity",min:"0",max:"100000",onChange:e=>p(parseInt(e.target.value)),"data-testid":"seat-quantity-input",className:"PlanFormSeatsField-module__TextInput__jS9YM"})]}),c[0]=m.perUnit,c[1]=m.unitName,c[2]=u,c[3]=p,c[4]=e):e=c[4],c[5]!==m.price?(t=(0,r.jsx)("span",{className:"f2 mr-2","data-testid":"plan-form-price",children:m.price}),c[5]=m.price,c[6]=t):t=c[6],c[7]!==m.perUnit||c[8]!==m.unitName?(a=m.perUnit&&(0,r.jsxs)("span",{children:[" ",`/ ${m.unitName}`]}),c[7]=m.perUnit,c[8]=m.unitName,c[9]=a):a=c[9];let h=d.isUserBilledMonthly?" / month":" / year";return c[10]!==h?(l=(0,r.jsx)("span",{children:h}),c[10]=h,c[11]=l):l=c[11],c[12]!==a||c[13]!==l?(n=(0,r.jsxs)("span",{className:"text color-fg-muted",children:[a,l]}),c[12]=a,c[13]=l,c[14]=n):n=c[14],c[15]!==t||c[16]!==n?(s=(0,r.jsx)("div",{className:"border-bottom border-top py-2 d-flex flex-items-baseline flex-justify-between",children:(0,r.jsxs)("div",{className:"d-flex flex-items-baseline",children:[t,n]})}),c[15]=t,c[16]=n,c[17]=s):s=c[17],c[18]!==e||c[19]!==s?(o=(0,r.jsxs)(r.Fragment,{children:[e,s]}),c[18]=e,c[19]=s,c[20]=o):o=c[20],o}tU.displayName="PlanFormSeatsField";var tO=a(206),tM=a(39775);function tR(e){let t=(0,i.c)(9),{planInfo:a,account:l}=e;if(a.currentUser&&l===a.currentUser.displayLogin&&a.currentUser.image){let e;return t[0]!==a.currentUser.image?(e=(0,r.jsx)(tO.r,{square:!0,src:a.currentUser.image,"data-testid":"user-account-avatar"}),t[0]=a.currentUser.image,t[1]=e):e=t[1],e}{let e;if(t[2]!==l||t[3]!==a.organizations){let r;t[5]!==l?(r=e=>l===e.displayLogin&&e.image,t[5]=l,t[6]=r):r=t[6],e=a.organizations.find(r),t[2]=l,t[3]=a.organizations,t[4]=e}else e=t[4];let i=e;if(i&&i.image){let e;return t[7]!==i.image?(e=(0,r.jsx)(tO.r,{square:!0,src:i.image,"data-testid":"org-account-avatar"}),t[7]=i.image,t[8]=e):e=t[8],e}}return null}function tz(){let e,t,a=(0,i.c)(13),{listing:l,planInfo:n,selectedAccount:s,setSelectedAccount:o}=tL();if(a[0]!==n.currentUser||a[1]!==n.organizations){if(e=[],n.currentUser){let t;a[3]!==n.currentUser.displayLogin||a[4]!==n.currentUser.hasExtensibilityAccess||a[5]!==n.currentUser.image?(t={displayLogin:n.currentUser.displayLogin,hasExtensibilityAccess:n.currentUser.hasExtensibilityAccess,image:n.currentUser.image,label:"Personal account"},a[3]=n.currentUser.displayLogin,a[4]=n.currentUser.hasExtensibilityAccess,a[5]=n.currentUser.image,a[6]=t):t=a[6],e.push(t)}for(let t of n.organizations)e.push({displayLogin:t.displayLogin,hasExtensibilityAccess:t.hasExtensibilityAccess,image:t.image,label:t.isEnterpriseOwned?"Enterprise owned organization":"Organization"});a[0]=n.currentUser,a[1]=n.organizations,a[2]=e}else e=a[2];return a[7]!==e||a[8]!==l||a[9]!==n||a[10]!==s||a[11]!==o?(t=s&&(0,r.jsx)(r.Fragment,{children:0===n.organizations.length?(0,r.jsx)("input",{type:"hidden",name:"account",id:"account",value:s}):(0,r.jsxs)(td.B,{direction:"horizontal",gap:"condensed",align:"center",children:[(0,r.jsx)("div",{className:"text-bold",children:"Account:"}),(0,r.jsxs)(eJ.W,{children:[(0,r.jsx)(eJ.W.Button,{"aria-label":`Account: ${s}`,leadingVisual:(0,r.jsx)(tR,{planInfo:n,account:s}),children:s||"Select account"}),(0,r.jsx)(eJ.W.Overlay,{maxHeight:"large",width:"medium",className:"overflow-auto",children:(0,r.jsx)(eZ.l,{children:e.map(e=>(0,r.jsxs)(eZ.l.Item,{onSelect:()=>o(e.displayLogin),children:[(0,r.jsx)(eZ.l.LeadingVisual,{children:e.image&&(0,r.jsx)(tO.r,{square:!0,src:e.image})}),(0,r.jsxs)(td.B,{gap:"condensed",direction:"horizontal",align:"center",children:[(0,r.jsx)("div",{className:"text-bold flex-shrink-0",children:e.displayLogin}),(0,r.jsx)(tM.A,{inline:!0,title:e.label,className:"width-fit fgColor-muted text-normal text-small",children:e.label})]}),l.copilotApp&&e.hasExtensibilityAccess&&(0,r.jsx)(eZ.l.Description,{variant:"block",className:"fgColor-attention",children:"Supports Copilot extensions"})]},e.displayLogin))})})]}),s&&(0,r.jsx)("input",{type:"hidden",name:"account",id:"account",value:s})]})}),a[7]=e,a[8]=l,a[9]=n,a[10]=s,a[11]=o,a[12]=t):t=a[12],t}function tD(e){let t,a,l,n,s,o,c,d=(0,i.c)(27),{planInfo:m,listing:u,plan:p,children:h,selectedAccount:f,onAccountSelect:g}=e;e:{if(u.copilotApp&&!p.isPaid){t=!0;break e}t=p.directBilling}let x=t;d[0]!==m.currentUser?.displayLogin||d[1]!==m.installedForViewer||d[2]!==m.organizations||d[3]!==f?(a=()=>!!f&&(f===m.currentUser?.displayLogin?m.installedForViewer:m.organizations.find(e=>e.displayLogin===f)?.installedForOrg),d[0]=m.currentUser?.displayLogin,d[1]=m.installedForViewer,d[2]=m.organizations,d[3]=f,d[4]=a):a=d[4],m.currentUser?.displayLogin,d[5]!==a?(l=a(),d[5]=a,d[6]=l):l=d[6];let y=l,j=!!f&&m.planIdByLogin[f]===p.id&&!y,b=x&&f&&m.planIdByLogin[f],v=x||j?"POST":"GET",_=`/marketplace/${u.slug}/order/${p.id}${b||j?"/upgrade":""}`;return d[7]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsx)(tF,{}),d[7]=n):n=d[7],d[8]!==h||d[9]!==u||d[10]!==p||d[11]!==m||d[12]!==f?(s=h||(0,r.jsxs)(td.B,{gap:"normal",className:p.isPaid&&!p.perUnit?"":"tmp-pt-3",children:[(0,r.jsx)(tU,{}),(0,r.jsx)(tz,{}),(0,r.jsxs)("div",{children:[(0,r.jsx)(tS,{planInfo:m,plan:p,listing:u,account:f}),(0,r.jsx)(tI,{planInfo:m,plan:p,listing:u})]})]}),d[8]=h,d[9]=u,d[10]=p,d[11]=m,d[12]=f,d[13]=s):s=d[13],d[14]!==v||d[15]!==_||d[16]!==s?(o=(0,r.jsxs)("form",{method:v,action:_,"data-testid":"plan-form",className:"width-full",id:"plan-form",children:[n,s]}),d[14]=v,d[15]=_,d[16]=s,d[17]=o):o=d[17],d[18]!==u||d[19]!==g||d[20]!==p||d[21]!==m||d[22]!==j||d[23]!==f||d[24]!==x||d[25]!==o?(c=(0,r.jsx)(t$,{planInfo:m,listing:u,plan:p,selectedAccount:f,setSelectedAccount:g,canReinstall:j,skipOrderReview:x,children:o}),d[18]=u,d[19]=g,d[20]=p,d[21]=m,d[22]=j,d[23]=f,d[24]=x,d[25]=o,d[26]=c):c=d[26],c}tR.displayName="AccountButtonAvatar",tz.displayName="PlanFormAccountSelector",tD.displayName="PlanForm";var tV=a(45438),tE=a(36007);function tH(e){let t,a,l=(0,i.c)(12),{planInfo:n,onPlanChange:s,selectedPlanId:o}=e;if(l[0]!==s||l[1]!==n.isUserBilledMonthly||l[2]!==n.plans||l[3]!==o){let e;l[5]!==s||l[6]!==n.isUserBilledMonthly||l[7]!==n.plans.length||l[8]!==o?(e=(e,t)=>(0,r.jsxs)(td.B,{gap:"condensed",direction:"horizontal",className:t===n.plans.length-1?"tmp-pb-3":"",children:[(0,r.jsx)(tV.A,{"aria-describedby":"price-yearly",name:"plan",value:e.id,id:e.id,checked:o===e.id,onChange:()=>s(e.id)}),(0,r.jsxs)(td.B,{gap:"condensed",direction:"vertical",className:"width-full",children:[(0,r.jsx)(td.B,{gap:"condensed",direction:"horizontal",children:(0,r.jsxs)(td.B,{gap:{narrow:"none",regular:"condensed",wide:"condensed"},direction:{narrow:"vertical",regular:"horizontal",wide:"horizontal"},justify:"space-between",className:"width-full",children:[(0,r.jsxs)(td.B,{gap:"none",direction:"vertical",className:"width-full",children:[(0,r.jsxs)("label",{htmlFor:e.id,className:"text-bold",children:[e.name," ",e.isPaid&&e.hasFreeTrial&&(0,r.jsx)(eD.A,{className:"ml-1",children:"Free trial available"})]}),(0,r.jsx)(tE.A,{size:"small",className:"color-fg-muted mt-1",children:e.description})]}),(0,r.jsxs)("span",{className:"color-fg-muted flex-shrink-0","data-testid":"plan-price-info",children:[e.isPaid&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:e.price}),e.perUnit&&(0,r.jsxs)("span",{children:[" ",`/ ${e.unitName}`]}),(0,r.jsx)("span",{children:n.isUserBilledMonthly?" / month":" / year"})]}),!e.isPaid&&!e.directBilling&&(0,r.jsx)("span",{children:"$0"})]})]})}),o===e.id&&(e.forOrganizationsOnly||e.forUsersOnly||e.bullets.length>0)&&(0,r.jsxs)(td.B,{gap:"condensed",children:[e.forOrganizationsOnly&&(0,r.jsx)("div",{children:"For organizations only"}),e.forUsersOnly&&(0,r.jsx)("div",{children:"For users only"}),e.bullets.length>0&&(0,r.jsx)("ul",{className:"list-style-none d-flex flex-column gap-1",children:e.bullets.map(tG)})]})]})]},e.id),l[5]=s,l[6]=n.isUserBilledMonthly,l[7]=n.plans.length,l[8]=o,l[9]=e):e=l[9],t=n.plans.map(e),l[0]=s,l[1]=n.isUserBilledMonthly,l[2]=n.plans,l[3]=o,l[4]=t}else t=l[4];return l[10]!==t?(a=(0,r.jsx)(td.B,{gap:"normal",className:"border-bottom color-border-muted","data-testid":"plans-radio-group",children:t}),l[10]=t,l[11]=a):a=l[11],a}function tG(e){return(0,r.jsxs)("li",{className:"d-flex gap-2",children:[(0,r.jsx)(eb.CheckIcon,{className:"PlansRadioGroup-module__CheckIcon__XZ51p"}),(0,r.jsx)(tE.A,{as:"span",size:"small",children:e})]},e)}function tq(e){let t,a,l,n,s,o,c,m,u,p,h=(0,i.c)(34),{planInfo:f,app:g,open:x,onClose:y,selectedAccount:j,setSelectedAccount:b}=e,[v,_]=(0,d.useState)(f.selectedPlanId);h[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{_(e)},h[0]=t):t=h[0];let N=t;if(h[1]!==f.plans||h[2]!==v){let e;h[4]!==v?(e=e=>e.id===v,h[4]=v,h[5]=e):e=h[5],a=f.plans.find(e),h[1]=f.plans,h[2]=v,h[3]=a}else a=h[3];let w=a,k=f.plans.length;if(!x||!w)return null;h[6]!==g||h[7]!==f||h[8]!==j||h[9]!==w?(l=()=>(0,r.jsx)(eB.l.Footer,{children:(0,r.jsx)(tS,{planInfo:f,plan:w,listing:g,account:j})}),h[6]=g,h[7]=f,h[8]=j,h[9]=w,h[10]=l):l=h[10];let A=k>5?"fullscreen":"bottom";h[11]!==A?(n={narrow:A,regular:"center"},h[11]=A,h[12]=n):n=h[12],h[13]!==k||h[14]!==f||h[15]!==v?(s=k>1&&(0,r.jsx)(tH,{planInfo:f,onPlanChange:N,selectedPlanId:v}),h[13]=k,h[14]=f,h[15]=v,h[16]=s):s=h[16];let S=w.isPaid&&!w.perUnit?"":"tmp-pt-3";return h[17]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsx)(tU,{}),c=(0,r.jsx)(tz,{}),h[17]=o,h[18]=c):(o=h[17],c=h[18]),h[19]!==S?(m=(0,r.jsxs)(td.B,{gap:"normal",className:S,children:[o,c]}),h[19]=S,h[20]=m):m=h[20],h[21]!==g||h[22]!==f||h[23]!==j||h[24]!==w||h[25]!==b||h[26]!==m?(u=(0,r.jsx)(tD,{planInfo:f,listing:g,plan:w,selectedAccount:j,onAccountSelect:b,children:m}),h[21]=g,h[22]=f,h[23]=j,h[24]=w,h[25]=b,h[26]=m,h[27]=u):u=h[27],h[28]!==y||h[29]!==u||h[30]!==l||h[31]!==n||h[32]!==s?(p=(0,r.jsxs)(eB.l,{title:"Configure your installation",onClose:y,renderFooter:l,position:n,children:[s,u]}),h[28]=y,h[29]=u,h[30]=l,h[31]=n,h[32]=s,h[33]=p):p=h[33],p}function tW(e){return e.viewerHasPurchased||e.anyOrgsPurchased?"Add":e.plans.some(e=>e.hasFreeTrial)?"Set up a free trial":"Add"}function tQ(e){let t,a,l,n,s,o,c=(0,i.c)(16),{planInfo:m,app:u,selectedAccount:p,setSelectedAccount:h}=e,[f,g]=(0,d.useState)(!1);return c[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>g(!0),c[0]=t):t=c[0],c[1]!==m?(a=tW(m),c[1]=m,c[2]=a):a=c[2],c[3]!==m||c[4]!==a?(l=(0,r.jsx)(tv,{planInfo:m,"data-testid":"dialog-button",onClick:t,children:a}),c[3]=m,c[4]=a,c[5]=l):l=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(n=()=>g(!1),c[6]=n):n=c[6],c[7]!==u||c[8]!==m||c[9]!==p||c[10]!==h||c[11]!==f?(s=(0,r.jsx)(tq,{planInfo:m,app:u,open:f,selectedAccount:p,setSelectedAccount:h,onClose:n}),c[7]=u,c[8]=m,c[9]=p,c[10]=h,c[11]=f,c[12]=s):s=c[12],c[13]!==l||c[14]!==s?(o=(0,r.jsxs)(r.Fragment,{children:[l,s]}),c[13]=l,c[14]=s,c[15]=o):o=c[15],o}function tY(e){let t,a,l,n,s=(0,i.c)(26),{planInfo:o,app:c}=e,m=o.viewerHasPurchased&&o.viewerHasPurchasedForAllOrganizations&&o.installedForViewer,[u,p]=(0,d.useState)(o.selectedAccount||o.currentUser?.displayLogin);if(m)return null;if(!c.copilotApp){let e,t;return s[0]!==o?(e=tW(o),s[0]=o,s[1]=e):e=s[1],s[2]!==o||s[3]!==e?(t=(0,r.jsx)(t_,{planInfo:o,href:"#pricing-and-setup",className:"js-smoothscroll-anchor","data-testid":"setup-button",children:e}),s[2]=o,s[3]=e,s[4]=t):t=s[4],t}let h=o.organizations.length>0,f=o.plans.length>1;if(s[5]!==o.plans||s[6]!==o.selectedPlanId){let e;s[8]!==o.selectedPlanId?(e=e=>e.id===o.selectedPlanId,s[8]=o.selectedPlanId,s[9]=e):e=s[9],t=o.plans.find(e),s[5]=o.plans,s[6]=o.selectedPlanId,s[7]=t}else t=s[7];let g=t,x=g.isPaid;if(h||f||x){let e;return s[10]!==c||s[11]!==o||s[12]!==u?(e=(0,r.jsx)(tQ,{planInfo:o,app:c,selectedAccount:u,setSelectedAccount:p}),s[10]=c,s[11]=o,s[12]=u,s[13]=e):e=s[13],e}return s[14]===Symbol.for("react.memo_cache_sentinel")?(a=(0,r.jsx)(tz,{}),s[14]=a):a=s[14],s[15]!==c||s[16]!==o||s[17]!==u||s[18]!==g?(l=(0,r.jsx)(tA,{planInfo:o,plan:g,listing:c,account:u}),s[15]=c,s[16]=o,s[17]=u,s[18]=g,s[19]=l):l=s[19],s[20]!==c||s[21]!==o||s[22]!==u||s[23]!==g||s[24]!==l?(n=(0,r.jsxs)(tD,{planInfo:o,listing:c,plan:g,selectedAccount:u,onAccountSelect:p,children:[a,l]}),s[20]=c,s[21]=o,s[22]=u,s[23]=g,s[24]=l,s[25]=n):n=s[25],n}tH.displayName="PlansRadioGroup",tq.displayName="InstallDialog",tQ.displayName="DialogButton",tY.displayName="CallToAction";var tX=a(26108);function tK(e){let t,a,l=(0,i.c)(12),{app:n,planInfo:s,userCanEdit:o}=e,c=s.viewerHasPurchased||s.anyOrgsPurchased||s.installedForViewer||o,d=s.viewerHasPurchased||s.anyOrgsPurchased;l[0]===Symbol.for("react.memo_cache_sentinel")?(t={narrow:!0},l[0]=t):t=l[0];let m=(0,ey.tv)(t,!1);return l[1]!==d||l[2]!==n||l[3]!==m||l[4]!==s.currentUser||l[5]!==s.installedForViewer||l[6]!==s.planIdByLogin||l[7]!==s.viewerBilledOrganizations||l[8]!==s.viewerHasPurchased||l[9]!==c||l[10]!==o?(a=c&&(0,r.jsx)("div",{"data-testid":"listing-actions",children:(0,r.jsxs)(eJ.W,{children:[(0,r.jsx)(eJ.W.Anchor,{children:(0,r.jsx)(tX.K,{icon:eb.KebabHorizontalIcon,"aria-label":"More actions","data-testid":"listing-actions-button",size:m?"medium":"large"})}),(0,r.jsx)(eJ.W.Overlay,{width:"small",align:"end",children:(0,r.jsxs)(eZ.l,{children:[d&&(0,r.jsxs)(eZ.l.Group,{children:[(0,r.jsx)(eZ.l.GroupHeading,{children:"Edit current plan"}),s.viewerHasPurchased&&s.currentUser&&(0,r.jsx)(eZ.l.LinkItem,{href:`/marketplace/${n.slug}/order/${s.planIdByLogin[s.currentUser.displayLogin]}?account=${s.currentUser.displayLogin}`,children:s.currentUser.displayLogin}),s.viewerBilledOrganizations.map(e=>(0,r.jsx)(eZ.l.LinkItem,{href:`/marketplace/${n.slug}/order/${s.planIdByLogin[e]}?account=${e}`,children:e},e))]}),d&&(s.installedForViewer||o)&&(0,r.jsx)(eZ.l.Divider,{}),s.installedForViewer&&(0,r.jsxs)(eZ.l.LinkItem,{href:"/settings/installations",children:[(0,r.jsx)(eZ.l.LeadingVisual,{children:(0,r.jsx)(eb.GearIcon,{})}),"Configure account access"]}),o&&(0,r.jsxs)(eZ.l.LinkItem,{href:`/marketplace/${n.slug}/edit`,children:[(0,r.jsx)(eZ.l.LeadingVisual,{children:(0,r.jsx)(eb.PencilIcon,{})}),"Manage app listing"]})]})})]})}),l[1]=d,l[2]=n,l[3]=m,l[4]=s.currentUser,l[5]=s.installedForViewer,l[6]=s.planIdByLogin,l[7]=s.viewerBilledOrganizations,l[8]=s.viewerHasPurchased,l[9]=c,l[10]=o,l[11]=a):a=l[11],a}function tJ(e){let t,a,l,n=(0,i.c)(9),{isVerifiedOwner:s,pageType:o}=e;n[0]!==o?(t="apps"===o?{verifiedOwnerText:"GitHub has verified the publisher's identity, ownership of their domain, and compliance with ",verifiedOwnerLink:"https://docs.github.com/en/apps/github-marketplace/github-marketplace-overview/about-marketplace-badges",verifiedOwnerLinkText:"other requirements"}:"actions"===o?{verifiedOwnerText:"GitHub has manually verified the creator of the action as an official partner organization. For more info see ",verifiedOwnerLink:"https://docs.github.com/en/actions/sharing-automations/creating-actions/publishing-actions-in-github-marketplace#about-badges-in-github-marketplace",verifiedOwnerLinkText:"About badges in GitHub Marketplace"}:{verifiedOwnerText:"",verifiedOwnerLink:"",verifiedOwnerLinkText:""},n[0]=o,n[1]=t):t=n[1];let{verifiedOwnerText:c,verifiedOwnerLink:d,verifiedOwnerLinkText:m}=t;return n[2]!==s||n[3]!==d||n[4]!==m||n[5]!==c?(a=s&&(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"verified-owner",children:[(0,r.jsxs)("div",{className:"d-flex flex-items-center gap-2",children:[(0,r.jsx)(tf.A,{title:"Verified",htmlTag:"h2"}),(0,r.jsx)(eb.VerifiedIcon,{size:16,className:"fgColor-accent","aria-label":"Manually verified"})]}),(0,r.jsxs)("span",{children:[c,(0,r.jsx)(e4.A,{inline:!0,href:d,children:m}),"."]})]}),n[2]=s,n[3]=d,n[4]=m,n[5]=c,n[6]=a):a=n[6],n[7]!==a?(l=(0,r.jsx)(r.Fragment,{children:a}),n[7]=a,n[8]=l):l=n[8],l}function tZ(e){let t,a=(0,i.c)(2),{isCopilotApp:l}=e;return a[0]!==l?(t=l&&(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"apps-works-with",children:[(0,r.jsx)(tf.A,{title:"Works with",htmlTag:"h2"}),(0,r.jsx)("span",{children:"Copilot Chat, Copilot in the IDE"})]}),a[0]=l,a[1]=t):t=a[1],t}function t0(e){return e.length<2?e[0]||"":2===e.length?`${e[0]} and ${e[1]}`:`${e.slice(0,-1).join(", ")}, and ${e[e.length-1]}`}function t1(e){return"string"!=typeof e||0===e.length?e:e.charAt(0).toUpperCase()+e.slice(1)}function t2(e){let t,a,l,n,s,o=(0,i.c)(10),{planInfo:c,isCopilotApp:d}=e;if(o[0]!==c.plans?(t=t1(t0(c.plans.map(t3))),o[0]=c.plans,o[1]=t):t=o[1],o[2]!==c.plans.length)a=1!==c.plans.length?"plans":"plan",o[2]=c.plans.length,o[3]=a;else a=o[3];let m=`${t} ${a} available.`;return o[4]===Symbol.for("react.memo_cache_sentinel")?(l=(0,r.jsx)(tf.A,{title:"Pricing",htmlTag:"h2"}),o[4]=l):l=o[4],o[5]!==d?(n=d&&(0,r.jsxs)("span",{children:[" Requires a ",(0,r.jsx)(e4.A,{href:"https://github.com/features/copilot/plans",inline:!0,children:"GitHub Copilot license"}),"."]}),o[5]=d,o[6]=n):n=o[6],o[7]!==m||o[8]!==n?(s=(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"apps-planinfo",children:[l,(0,r.jsxs)("span",{children:[m,n]})]}),o[7]=m,o[8]=n,o[9]=s):s=o[9],s}function t3(e){return e.name}function t4(e){let t,a,l=(0,i.c)(5),{tags:n,type:s}=e;return l[0]!==n||l[1]!==s?(t=n&&n.length>0&&(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"tags",children:[(0,r.jsx)(tf.A,{title:"Tags",count:n.length,htmlTag:"h2"}),(0,r.jsx)(td.B,{direction:"horizontal",wrap:"wrap",children:n.map(e=>(0,r.jsx)("a",{href:`/marketplace?type=${s}&category=${e.slug}`,className:"topic-tag topic-tag-link",children:e.name.toLowerCase().trim().replace(/\s+/g,"-")},e.slug))})]}),l[0]=n,l[1]=s,l[2]=t):t=l[2],l[3]!==t?(a=(0,r.jsx)(r.Fragment,{children:t}),l[3]=t,l[4]=a):a=l[4],a}tK.displayName="HeaderActionMenu",tJ.displayName="VerifiedOwner",tZ.displayName="WorksWith",t2.displayName="PlanInfo",t4.displayName="Tags";var t5=a(41431);function t6(e){let t,a,l=(0,i.c)(4),{planInfo:n}=e;l[0]!==n?(t=tj(n),l[0]=n,l[1]=t):t=l[1];let{canInstall:s,reason:o}=t,c=n.viewerHasPurchased&&n.viewerHasPurchasedForAllOrganizations;return s||c?null:(l[2]!==o?(a=(0,r.jsx)(t5.l,{variant:"info",title:"Install unavailable",hideTitle:!0,children:(0,r.jsx)(t5.l.Description,{children:(0,r.jsx)("span",{id:"install-unavailable-reason",children:o})})}),l[2]=o,l[3]=a):a=l[3],a)}function t7(e){let t,a,l,n,s,o,c,d,m,u,p,h,f,g=(0,i.c)(39),{app:x,planInfo:y,userCanEdit:j}=e;g[0]===Symbol.for("react.memo_cache_sentinel")?(t={narrow:!0},g[0]=t):t=g[0];let b=(0,ey.tv)(t,!1),v=x.copilotApp&&b;return g[1]!==x?(a=(0,r.jsx)(ty,{app:x}),g[1]=x,g[2]=a):a=g[2],g[3]!==x.categories?(l=(0,r.jsx)(t4,{tags:x.categories,type:"apps"}),g[3]=x.categories,g[4]=l):l=g[4],g[5]!==x.isVerifiedOwner?(n=(0,r.jsx)(tJ,{isVerifiedOwner:x.isVerifiedOwner,pageType:"apps"}),g[5]=x.isVerifiedOwner,g[6]=n):n=g[6],g[7]!==x.copilotApp?(s=(0,r.jsx)(tZ,{isCopilotApp:x.copilotApp}),g[7]=x.copilotApp,g[8]=s):s=g[8],g[9]!==x.copilotApp||g[10]!==y?(o=(0,r.jsx)(t2,{planInfo:y,isCopilotApp:x.copilotApp}),g[9]=x.copilotApp,g[10]=y,g[11]=o):o=g[11],g[12]!==l||g[13]!==n||g[14]!==s||g[15]!==o?(c=(0,r.jsxs)(r.Fragment,{children:[l,n,s,o]}),g[12]=l,g[13]=n,g[14]=s,g[15]=o,g[16]=c):c=g[16],g[17]!==y||g[18]!==v?(d=v&&(0,r.jsx)(t6,{planInfo:y}),g[17]=y,g[18]=v,g[19]=d):d=g[19],g[20]!==x||g[21]!==y?(m=(0,r.jsx)(tY,{planInfo:y,app:x}),g[20]=x,g[21]=y,g[22]=m):m=g[22],g[23]!==x||g[24]!==y||g[25]!==j?(u=(0,r.jsx)(tK,{app:x,planInfo:y,userCanEdit:j}),g[23]=x,g[24]=y,g[25]=j,g[26]=u):u=g[26],g[27]!==m||g[28]!==u?(p=(0,r.jsxs)(td.B,{gap:"condensed",direction:"horizontal",className:"width-full width-md-auto marketplace-module__marketplace-cta-buttons-container__Xi4h8",children:[m,u]}),g[27]=m,g[28]=u,g[29]=p):p=g[29],g[30]!==p||g[31]!==d?(h=(0,r.jsxs)(r.Fragment,{children:[d,p]}),g[30]=p,g[31]=d,g[32]=h):h=g[32],g[33]!==x||g[34]!==y.isLoggedIn||g[35]!==a||g[36]!==h||g[37]!==c?(f=(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(th,{listing:x,loggedIn:y.isLoggedIn,listingDetails:a,additionalDetails:c,callToAction:h})}),g[33]=x,g[34]=y.isLoggedIn,g[35]=a,g[36]=h,g[37]=c,g[38]=f):f=g[38],f}function t8(e){let t,a,l=(0,i.c)(5),{screenshots:n}=e,[s,o]=(0,d.useState)(n[0]?.id);return l[0]!==s||l[1]!==n?(t=n.length>0&&(0,r.jsxs)("div",{className:"ScreenshotCarousel","data-testid":"screenshot-carousel",children:[n.map(e=>(0,r.jsxs)("div",{role:"tabpanel",className:"ScreenshotCarousel-screenshot anim-fade-in",hidden:s!==e.id,"data-testid":`screenshot-container-${e.id}`,children:[(0,r.jsx)("img",{src:e.src,width:670,alt:e.altText,className:"img-responsive","data-testid":`screenshot-${e.id}`}),e.caption&&(0,r.jsx)("div",{className:"pt-2",children:e.caption})]},e.id)),n.length>1&&(0,r.jsx)("div",{role:"tablist",className:"ScreenshotCarousel-nav",children:n.map(e=>(0,r.jsx)(t9,{screenshot:e,activeScreenshotId:s,setActiveScreenshotId:o},e.id))})]}),l[0]=s,l[1]=n,l[2]=t):t=l[2],l[3]!==t?(a=(0,r.jsx)(r.Fragment,{children:t}),l[3]=t,l[4]=a):a=l[4],a}t6.displayName="InstallUnavailableBanner",t7.displayName="Header",t8.displayName="Screenshots";let t9=e=>{let t,a,l,n,s=(0,i.c)(16),{screenshot:o,activeScreenshotId:c,setActiveScreenshotId:d}=e;s[0]!==o.id||s[1]!==d?(t=()=>{d(o.id)},s[0]=o.id,s[1]=d,s[2]=t):t=s[2];let m=t;s[3]!==o.id||s[4]!==d?(a=e=>{"Enter"===e.key&&d(o.id)},s[3]=o.id,s[4]=d,s[5]=a):a=s[5];let u=a,p=c===o.id,h=`screenshot-thumbnail-${o.id}`;return s[6]!==o.altText||s[7]!==o.src?(l=(0,r.jsx)("img",{src:o.src,width:670,alt:o.altText,className:"img-responsive"}),s[6]=o.altText,s[7]=o.src,s[8]=l):l=s[8],s[9]!==m||s[10]!==u||s[11]!==o.id||s[12]!==p||s[13]!==h||s[14]!==l?(n=(0,r.jsx)("div",{className:"ScreenshotCarousel-navitem",role:"tab",tabIndex:0,"aria-selected":p,onClick:m,onKeyDown:u,"data-testid":h,children:l},o.id),s[9]=m,s[10]=u,s[11]=o.id,s[12]=p,s[13]=h,s[14]=l,s[15]=n):n=s[15],n};t9.displayName="ScreenshotThumbnail";function ae(e){let t,a,l,n,s,o,c=(0,i.c)(11);return c[0]!==e?({title:l,children:t,...a}=e,c[0]=e,c[1]=t,c[2]=a,c[3]=l):(t=c[1],a=c[2],l=c[3]),c[4]===Symbol.for("react.memo_cache_sentinel")?(n={narrow:"condensed",regular:"normal"},c[4]=n):n=c[4],c[5]!==l?(s=(0,r.jsx)("h3",{className:"ListingBodySection-module__section-title___Exu6",children:l}),c[5]=l,c[6]=s):s=c[6],c[7]!==t||c[8]!==a||c[9]!==s?(o=(0,r.jsxs)(td.B,{gap:n,...a,children:[s,t]}),c[7]=t,c[8]=a,c[9]=s,c[10]=o):o=c[10],o}ae.displayName="ListingBodySection";let at=()=>{let e,t=(0,i.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(ae,{title:"Requirements",children:(0,r.jsx)("div",{className:`${eQ} ${eY}`,children:(0,r.jsxs)("p",{className:"m-0","data-testid":"copilot-listing-requirement",children:["Copilot Extensions require an active"," ",(0,r.jsx)(e4.A,{inline:!0,href:"https://github.com/features/copilot/plans",children:"GitHub Copilot license"}),"."]})})}),t[0]=e):e=t[0],e};function aa(e){let t,a,l=(0,i.c)(11),{planInfo:n,listing:s,selectedPlan:o}=e,[c,m]=(0,d.useState)(n.selectedAccount||n.currentUser?.displayLogin);e:{let e;l[0]!==n?(e=tj(n),l[0]=n,l[1]=e):e=l[1];let{canInstall:a,reason:i}=e;if(a){if(o){let e;l[4]!==s||l[5]!==n||l[6]!==c||l[7]!==o?(e=(0,r.jsx)(tD,{planInfo:n,listing:s,plan:o,selectedAccount:c,onAccountSelect:m}),l[4]=s,l[5]=n,l[6]=c,l[7]=o,l[8]=e):e=l[8],t=e;break e}}else{let e;l[2]!==i?(e=(0,r.jsx)("div",{className:"tmp-pt-3",children:i}),l[2]=i,l[3]=e):e=l[3],t=e;break e}t=void 0}let u=t;return l[9]!==u?(a=u&&(0,r.jsx)("div",{"data-testid":"install-section",children:u}),l[9]=u,l[10]=a):a=l[10],a}at.displayName="CopilotListingRequirement",aa.displayName="InstallSection";var ar=a(62935),ai=a(49305);function al(e){let t,a=(0,i.c)(12),{planInfo:l,plan:n,listing:s}=e,o=l.endUserAgreement,[c,m]=(0,d.useState)(!1),u=`Set up with ${s.name}`;return a[0]!==o||a[1]!==c||a[2]!==u||a[3]!==s.name||a[4]!==s.privacyPolicyUrl||a[5]!==s.supportEmail||a[6]!==s.supportUrl||a[7]!==s.tosUrl||a[8]!==n||a[9]!==l.isLoggedIn||a[10]!==l.listingByGithub?(t=(0,r.jsx)(r.Fragment,{children:n&&n.directBilling&&l.isLoggedIn&&o?(0,r.jsxs)("p",{className:"text-center text-wrap-balance f6 fgColor-muted","data-testid":"terms-of-service",children:[s.tosUrl?(0,r.jsxs)(r.Fragment,{children:["By clicking \u201C",u,",\u201D you are agreeing to"," ",!o.userSignedAt&&(0,r.jsxs)(r.Fragment,{children:["the"," ",(0,r.jsx)(e4.A,{as:"button",inline:!0,onClick:()=>m(!0),children:o.name}),","]}),s.name,"\u2019s"," ",(0,r.jsx)(e4.A,{target:"_blank",rel:"noopener noreferrer",href:s.tosUrl,inline:!0,children:"Terms of Service"})," ","and the"," ",(0,r.jsx)(e4.A,{target:"_blank",rel:"noopener noreferrer",href:s.privacyPolicyUrl,inline:!0,children:"Privacy Policy"}),"."]}):(0,r.jsxs)(r.Fragment,{children:["By clicking ",u,", you agree to"," ",!o.userSignedAt&&(0,r.jsxs)(r.Fragment,{children:["the"," ",(0,r.jsx)(e4.A,{as:"button",inline:!0,onClick:()=>m(!0),children:o.name}),", and"," "]}),s.name,"\u2019s"," ",(0,r.jsx)(e4.A,{target:"_blank",rel:"noopener noreferrer",href:s.privacyPolicyUrl,inline:!0,children:"Privacy Policy"}),"."]}),o.userSignedAt&&(0,r.jsxs)(r.Fragment,{children:[" ","You previously agreed to the"," ",(0,r.jsx)(e4.A,{as:"button",inline:!0,onClick:()=>m(!0),children:o.name}),"."]}),(0,r.jsx)(ai.A,{isOpen:c,onDismiss:()=>m(!1),"aria-labelledby":"header",children:(0,r.jsxs)("div",{"data-testid":"inner",children:[(0,r.jsx)(ai.A.Header,{id:"header",children:`GitHub ${o.name} ${o.version}`}),(0,r.jsx)(eE.vb,{html:o.html,className:"tmp-p-3"}),o.userSignedAt&&(0,r.jsxs)("div",{className:"tmp-p-3 border-top",children:["You agreed to these terms ",(0,r.jsx)(ar.A,{date:new Date(o.userSignedAt)})]})]})})]}):(0,r.jsx)(r.Fragment,{children:l.listingByGithub?(0,r.jsxs)("p",{className:"text-center text-wrap-balance f6 fgColor-muted",children:[s.name," is owned and operated by GitHub"," ",s.tosUrl?(0,r.jsxs)(r.Fragment,{children:["with separate"," ",(0,r.jsx)(e4.A,{href:s.tosUrl,inline:!0,children:"terms of service"}),", ",(0,r.jsx)(e4.A,{href:s.privacyPolicyUrl,inline:!0,children:"privacy policy"}),","]}):(0,r.jsxs)(r.Fragment,{children:["with separate"," ",(0,r.jsx)(e4.A,{href:s.privacyPolicyUrl,inline:!0,children:"privacy policy"})]})," ","and"," ",s.supportEmail?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e4.A,{href:`mailto:${s.supportEmail}`,inline:!0,children:"support contact"}),"."]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e4.A,{href:s.supportUrl,inline:!0,children:"support documentation"}),"."]})]}):(0,r.jsxs)("p",{className:"text-center text-wrap-balance f6 fgColor-muted",children:[s.name," is provided by a third-party and is governed by"," ",s.tosUrl?(0,r.jsxs)(r.Fragment,{children:["separate"," ",(0,r.jsx)(e4.A,{href:s.tosUrl,inline:!0,children:"terms of service"}),", ",(0,r.jsx)(e4.A,{href:s.privacyPolicyUrl,inline:!0,children:"privacy policy"}),","]}):(0,r.jsxs)(r.Fragment,{children:["separate"," ",(0,r.jsx)(e4.A,{href:s.privacyPolicyUrl,inline:!0,children:"privacy policy"})]})," ","and"," ",s.supportEmail?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e4.A,{href:`mailto:${s.supportEmail}`,inline:!0,children:"support contact"}),"."]}):(0,r.jsx)(e4.A,{href:s.supportUrl,inline:!0,children:"support documentation"})]})})}),a[0]=o,a[1]=c,a[2]=u,a[3]=s.name,a[4]=s.privacyPolicyUrl,a[5]=s.supportEmail,a[6]=s.supportUrl,a[7]=s.tosUrl,a[8]=n,a[9]=l.isLoggedIn,a[10]=l.listingByGithub,a[11]=t):t=a[11],t}function an(e){let t,a,l,n,s,o,c,m=(0,i.c)(23),{planInfo:u,listing:p}=e,[h,f]=(0,d.useState)(u.selectedPlanId);m[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{f(e)},m[0]=t):t=m[0];let g=t;if(m[1]!==u.plans||m[2]!==h){let e;m[4]!==h?(e=e=>e.id===h,m[4]=h,m[5]=e):e=m[5],a=u.plans.find(e),m[1]=u.plans,m[2]=h,m[3]=a}else a=m[3];let x=a;return m[6]!==u||m[7]!==h?(l=(0,r.jsx)(tH,{planInfo:u,onPlanChange:g,selectedPlanId:h}),m[6]=u,m[7]=h,m[8]=l):l=m[8],m[9]!==p||m[10]!==u||m[11]!==x?(n=(0,r.jsx)(aa,{planInfo:u,listing:p,selectedPlan:x}),m[9]=p,m[10]=u,m[11]=x,m[12]=n):n=m[12],m[13]!==l||m[14]!==n?(s=(0,r.jsxs)("div",{className:`${eQ} ${eY}`,children:[l,n]}),m[13]=l,m[14]=n,m[15]=s):s=m[15],m[16]!==p||m[17]!==u||m[18]!==x?(o=(0,r.jsx)(al,{planInfo:u,plan:x,listing:p}),m[16]=p,m[17]=u,m[18]=x,m[19]=o):o=m[19],m[20]!==s||m[21]!==o?(c=(0,r.jsxs)(ae,{title:"Plans and pricing","data-testid":"pricing",id:"pricing-and-setup",children:[s,o]}),m[20]=s,m[21]=o,m[22]=c):c=m[22],c}function as(e){let t,a,l,n,s,o,c=(0,i.c)(16),{title:m,defaultOpen:u,children:p}=e,[h,f]=(0,d.useState)(u),g=(0,d.useRef)(null);c[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{f(!!g.current?.open)},c[0]=t):t=c[0];let x=t;return c[1]!==h?(a=h?(0,r.jsx)(eb.ChevronDownIcon,{size:12,className:"fgColor-muted"}):(0,r.jsx)(eb.ChevronRightIcon,{size:12,className:"fgColor-muted"}),c[1]=h,c[2]=a):a=c[2],c[3]!==m?(l=(0,r.jsx)(eR.A,{variant:"small",as:"h3",children:m}),c[3]=m,c[4]=l):l=c[4],c[5]!==a||c[6]!==l?(n=(0,r.jsxs)(td.B,{as:"summary",gap:"condensed",direction:"horizontal",align:"center",className:"cursor-pointer tmp-my-3",children:[a,l]}),c[5]=a,c[6]=l,c[7]=n):n=c[7],c[8]!==p||c[9]!==h?(s=h&&(0,r.jsx)("div",{className:"tmp-mb-3",children:p}),c[8]=p,c[9]=h,c[10]=s):s=c[10],c[11]!==h||c[12]!==n||c[13]!==s||c[14]!==m?(o=(0,r.jsxs)("details",{open:h,ref:g,onToggle:x,className:"border-top color-border-default pl-2 marketplace-module__marketplace-revealer__K7ZuG",children:[n,s]},m),c[11]=h,c[12]=n,c[13]=s,c[14]=m,c[15]=o):o=c[15],o}al.displayName="TermsOfService",an.displayName="Plans",as.displayName="Revealer";function ao(e){let t,a,l=(0,i.c)(4),{items:n}=e;return l[0]!==n?(t=n.map(ac),l[0]=n,l[1]=t):t=l[1],l[2]!==t?(a=(0,r.jsx)("dl",{className:"transparency-module__transparencyDataTable__Uaks8",children:t}),l[2]=t,l[3]=a):a=l[3],a}function ac(e){return e.value&&(0,r.jsxs)(d.Fragment,{children:[(0,r.jsx)("dt",{children:(0,r.jsx)(tE.A,{size:"small",weight:"semibold",children:e.label})}),(0,r.jsx)("dd",{children:(0,r.jsx)(tE.A,{size:"small",children:e.value})})]},e.label)}function ad(e){let t,a,l,n,s,o,c,d,m,u,p,h,f,g,x,y,j,b,v,_,N,w,k,A,S=(0,i.c)(60),{app:I}=e,{ownerSafeProfileName:C,ownerImage:P,ownerType:L,traderAddress:$,businessId:F,euTrader:B,statusUrl:T,tosUrl:U,privacyPolicyUrl:O,supportUrl:M,supportEmail:R,publisher2faRequired:z,verifiedProfileDomains:D}=I;S[0]!==P||S[1]!==C||S[2]!==L?(t=C&&(0,r.jsxs)("div",{className:"d-flex flex-items-center gap-2",children:[P&&(0,r.jsx)(tO.r,{src:P,alt:C,size:16,square:"User"!==L}),C]}),S[0]=P,S[1]=C,S[2]=L,S[3]=t):t=S[3],S[4]!==t?(a={label:"Developer",value:t},S[4]=t,S[5]=a):a=S[5],S[6]!==D?(l=D.length>0&&(0,r.jsx)(r.Fragment,{children:D.map(am)}),S[6]=D,S[7]=l):l=S[7],S[8]!==l?(n={label:"Company domain",value:l},S[8]=l,S[9]=n):n=S[9],S[10]!==$?(s=$&&(0,r.jsx)(r.Fragment,{children:$}),S[10]=$,S[11]=s):s=S[11],S[12]!==s?(o={label:"Business address",value:s},S[12]=s,S[13]=o):o=S[13],S[14]!==F?(c=F&&(0,r.jsx)(r.Fragment,{children:F}),S[14]=F,S[15]=c):c=S[15],S[16]!==c?(d={label:"Business ID",value:c},S[16]=c,S[17]=d):d=S[17],S[18]!==B?(m=B&&(0,r.jsx)(r.Fragment,{children:B}),S[18]=B,S[19]=m):m=S[19],S[20]!==m?(u={label:"EU Trader",value:m},S[20]=m,S[21]=u):u=S[21],S[22]!==T?(p=T&&(0,r.jsx)(e4.A,{href:T,rel:"nofollow",children:T}),S[22]=T,S[23]=p):p=S[23],S[24]!==p?(h={label:"Status page",value:p},S[24]=p,S[25]=h):h=S[25],S[26]!==U?(f=U&&(0,r.jsx)(e4.A,{href:U,rel:"nofollow",children:U}),S[26]=U,S[27]=f):f=S[27],S[28]!==f?(g={label:"Terms of service",value:f},S[28]=f,S[29]=g):g=S[29],S[30]!==O?(x=O&&(0,r.jsx)(e4.A,{href:O,rel:"nofollow",children:O}),S[30]=O,S[31]=x):x=S[31],S[32]!==x?(y={label:"Privacy policy",value:x},S[32]=x,S[33]=y):y=S[33],S[34]!==M?(j=M&&(0,r.jsx)(e4.A,{href:M,rel:"nofollow",children:M}),S[34]=M,S[35]=j):j=S[35],S[36]!==j?(b={label:"Support URL",value:j},S[36]=j,S[37]=b):b=S[37],S[38]!==R?(v=R&&(0,r.jsx)(e4.A,{href:`mailto:${R}`,children:R}),S[38]=R,S[39]=v):v=S[39],S[40]!==v?(_={label:"Support email",value:v},S[40]=v,S[41]=_):_=S[41],S[42]!==z?(N=z&&(0,r.jsx)(r.Fragment,{children:z}),S[42]=z,S[43]=N):N=S[43],S[44]!==N?(w={label:"Publisher 2FA Required",value:N},S[44]=N,S[45]=w):w=S[45],S[46]!==u||S[47]!==h||S[48]!==g||S[49]!==y||S[50]!==b||S[51]!==a||S[52]!==_||S[53]!==w||S[54]!==n||S[55]!==o||S[56]!==d?(k=[a,n,o,d,u,h,g,y,b,_,w],S[46]=u,S[47]=h,S[48]=g,S[49]=y,S[50]=b,S[51]=a,S[52]=_,S[53]=w,S[54]=n,S[55]=o,S[56]=d,S[57]=k):k=S[57];let V=k;return S[58]!==V?(A=(0,r.jsx)("div",{"data-testid":"publisher-info",children:(0,r.jsx)(ao,{items:V})}),S[58]=V,S[59]=A):A=S[59],A}function am(e){return(0,r.jsx)(e4.A,{href:`https://${e}`,rel:"nofollow",className:"d-block",children:e},e)}ao.displayName="TransparencyDataTable",ad.displayName="PublisherInfo";var au=a(3803);function ap(e){let t,a,l,n,s,o,c=(0,i.c)(13),{permissionsData:d}=e;c[0]!==d?(t=d.some(ag),c[0]=d,c[1]=t):t=c[1];let m=t;if(c[2]!==d){let e;for(let e of(a=[],d)){let{scope:t,permissionLevel:r,values:i}=e;a.push({scope:t,permissionLevel:r,values:i,id:`${t}-${r}`})}c[4]===Symbol.for("react.memo_cache_sentinel")?(e={scope:"user",permissionLevel:"read",values:["public repositories","public organization information","public user profile data"],id:"public-read"},c[4]=e):e=c[4],a.push(e),c[2]=d,c[3]=a}else a=c[3];return c[5]===Symbol.for("react.memo_cache_sentinel")?(l=[{header:"Scope",id:"scope",renderCell:af},{header:"Description",id:"description",renderCell:ah}],c[5]=l):l=c[5],c[6]!==a?(n=(0,r.jsx)(au.b,{data:a,columns:l}),c[6]=a,c[7]=n):n=c[7],c[8]!==m?(s=m&&(0,r.jsx)(tE.A,{size:"small",className:"fgColor-muted",children:"Repository permissions can be granted for all or selected repositories owned by the installing account."}),c[8]=m,c[9]=s):s=c[9],c[10]!==n||c[11]!==s?(o=(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"permissions-info",children:[n,s]}),c[10]=n,c[11]=s,c[12]=o):o=c[12],o}function ah(e){return(0,r.jsxs)(r.Fragment,{children:["read"===e.permissionLevel?(0,r.jsx)(tE.A,{weight:"semibold",children:"Read"}):"write"===e.permissionLevel?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(tE.A,{weight:"semibold",children:"Read"}),"\xa0and\xa0",(0,r.jsx)(tE.A,{weight:"semibold",children:"write"})]}):(0,r.jsx)(tE.A,{weight:"semibold",children:"Admin"}),"single file"===e.scope?(0,r.jsxs)(r.Fragment,{children:["\xa0access to files located at\xa0",e.values.map((t,a)=>(0,r.jsxs)(d.Fragment,{children:[(0,r.jsx)("code",{children:t}),a{s("An error occurred while exporting the CSV."),l(!0)},c=async t=>{t.preventDefault(),a(!0);try{let t=await (0,F.DI)(`/marketplace/${e.slug}/transparency_report_exports`,{method:"POST",headers:{Accept:"text/csv"}});if(t.ok){let a=await t.blob(),r=document.createElement("a"),i=URL.createObjectURL(a);r.href=i,r.download=`${e.slug}-transparency-report.csv`,r.click(),r.remove(),URL.revokeObjectURL(i)}else o()}catch{o()}finally{a(!1)}};return(0,r.jsxs)(r.Fragment,{children:[i&&(0,r.jsx)(ab,{message:n,variant:"critical",onDismiss:()=>l(!1)}),(0,r.jsx)("form",{onSubmit:c,children:(0,r.jsx)(eF.Q,{loading:t,disabled:t,type:"submit",leadingVisual:eb.FileIcon,children:"Export CSV"})})]})}function a_(e){let t,a,l,n,s,o,c,d,m,u,p,h,f,g=(0,i.c)(33),{app:x,permissionsData:y}=e,{isAiHighRisk:j,llmsInUse:b,thirdPartyServices:v,repositoryVisibility:_,repositoryUrl:N,transparencyDisclosure:w,copilotApp:k}=x;g[0]!==k||g[1]!==j||g[2]!==b||g[3]!==N||g[4]!==_||g[5]!==v||g[6]!==w?(t={isAiHighRisk:j,llmsInUse:b,thirdPartyServices:v,repositoryVisibility:_,repositoryUrl:N,transparencyDisclosure:w,copilotApp:k},g[0]=k,g[1]=j,g[2]=b,g[3]=N,g[4]=_,g[5]=v,g[6]=w,g[7]=t):t=g[7];let A=t,S=Object.values(A).some(aw);g[8]!==x?(a={title:"1. Publisher",content:(0,r.jsx)(ad,{app:x}),defaultOpen:!0},g[8]=x,g[9]=a):a=g[9],g[10]!==x.listableType||g[11]!==y?(l={title:"2. Permissions",content:"Integration"===x.listableType?(0,r.jsx)(ap,{permissionsData:y}):(0,r.jsx)(ax,{}),defaultOpen:!1},g[10]=x.listableType,g[11]=y,g[12]=l):l=g[12],g[13]!==A||g[14]!==S?(n=S&&(0,r.jsx)(ay,{...A}),g[13]=A,g[14]=S,g[15]=n):n=g[15],g[16]!==n?(s={title:"3. Security & Compliance",content:n,defaultOpen:!1},g[16]=n,g[17]=s):s=g[17],g[18]!==a||g[19]!==l||g[20]!==s?(o=[a,l,s],g[18]=a,g[19]=l,g[20]=s,g[21]=o):o=g[21];let I=o;return g[22]===Symbol.for("react.memo_cache_sentinel")?(c={narrow:"vertical",regular:"horizontal"},d={narrow:"start",regular:"center"},g[22]=c,g[23]=d):(c=g[22],d=g[23]),g[24]===Symbol.for("react.memo_cache_sentinel")?(m=(0,r.jsx)(eR.A,{as:"h2",variant:"medium",children:"Transparency and security"}),g[24]=m):m=g[24],g[25]!==x?(u=(0,r.jsxs)(td.B,{className:"tmp-pb-3",gap:"condensed",direction:c,align:d,justify:"space-between",children:[m,(0,r.jsx)(av,{app:x})]}),g[25]=x,g[26]=u):u=g[26],g[27]!==I?(p=I.map(aN),g[27]=I,g[28]=p):p=g[28],g[29]===Symbol.for("react.memo_cache_sentinel")?(h=(0,r.jsx)("div",{className:"border-top color-border-muted tmp-pt-3",children:(0,r.jsxs)(tE.A,{size:"small",className:"fgColor-muted",children:["For more information on the terms of service on the GitHub Marketplace, please visit the"," ",(0,r.jsx)(e4.A,{inline:!0,href:"https://docs.github.com/en/site-policy/github-terms/github-marketplace-developer-agreement",children:"Marketplace Developer Agreement"}),"."]})}),g[29]=h):h=g[29],g[30]!==u||g[31]!==p?(f=(0,r.jsxs)("div",{"data-testid":"transparency-section",children:[u,p,h]}),g[30]=u,g[31]=p,g[32]=f):f=g[32],f}function aN(e){return e.content&&(0,r.jsx)(as,{title:e.title,defaultOpen:e.defaultOpen,children:e.content},e.title)}function aw(e){return e}function ak(e){let t,a,l,n,s=(0,i.c)(8),{linkItems:o,dangerItems:c}=e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(t={marginLeft:"-6px"},s[0]=t):t=s[0],s[1]!==o?(a=o.map(aS),s[1]=o,s[2]=a):a=s[2],s[3]!==c?(l=c&&c.map(aA),s[3]=c,s[4]=l):l=s[4],s[5]!==a||s[6]!==l?(n=(0,r.jsxs)(eZ.l,{variant:"full",style:t,children:[a,l]}),s[5]=a,s[6]=l,s[7]=n):n=s[7],n}function aA(e){let t=e.component;return e.onSelect&&(0,r.jsxs)(eZ.l.Item,{onSelect:e.onSelect,variant:"danger",children:[(0,r.jsx)(eZ.l.LeadingVisual,{children:(0,r.jsx)(t,{size:16})}),e.text]},e.text)}function aS(e){let t=e.component;return e.url&&(0,r.jsxs)(eZ.l.LinkItem,{href:e.url,children:[(0,r.jsx)(eZ.l.LeadingVisual,{children:(0,r.jsx)(t,{size:16})}),e.text,(0,r.jsx)(eZ.l.TrailingVisual,{children:e.trailingVisual})]},e.text)}function aI(e){let t,a,l,n,s,o,c,d,m,u,p,h,f=(0,i.c)(30),{app:g}=e,{isBrowser:x}=(0,tw.V)();e:{let e;if(!x){t=void 0;break e}let a=tN.fV?.origin;if(!a){t=void 0;break e}let r=`${a}/marketplace/${g.slug}`,i=`${r} (Marketplace Listing)`;f[0]!==i?(e=(0,tx.YPg)({report:i}),f[0]=i,f[1]=e):e=f[1],t=e}let y=t,j=g.supportUrl||g.supportEmail&&`mailto:${g.supportEmail}`;f[2]!==j?(a={url:j,component:eb.CommentDiscussionIcon,text:"Support"},f[2]=j,f[3]=a):a=f[3],f[4]!==g.pricingUrl?(l={url:g.pricingUrl,component:eb.TagIcon,text:"Pricing"},f[4]=g.pricingUrl,f[5]=l):l=f[5],f[6]!==g.repositoryUrl?(n={url:g.repositoryUrl,component:eb.RepoIcon,text:"Repository"},f[6]=g.repositoryUrl,f[7]=n):n=f[7],f[8]!==g.documentationUrl?(s={url:g.documentationUrl,component:eb.BookIcon,text:"Documentation"},f[8]=g.documentationUrl,f[9]=s):s=f[9],f[10]!==g.privacyPolicyUrl?(o={url:g.privacyPolicyUrl,component:eb.LawIcon,text:"Privacy Policy"},f[10]=g.privacyPolicyUrl,f[11]=o):o=f[11],f[12]!==g.tosUrl?(c={url:g.tosUrl,component:eb.LawIcon,text:"Terms of Service"},f[12]=g.tosUrl,f[13]=c):c=f[13],f[14]!==g.statusUrl?(d={url:g.statusUrl,component:eb.PulseIcon,text:"Status"},f[14]=g.statusUrl,f[15]=d):d=f[15],f[16]!==y?(m={url:y,component:eb.ReportIcon,text:"Report abuse"},f[16]=y,f[17]=m):m=f[17],f[18]!==m||f[19]!==a||f[20]!==l||f[21]!==n||f[22]!==s||f[23]!==o||f[24]!==c||f[25]!==d?(u=[a,l,n,s,o,c,d,m],f[18]=m,f[19]=a,f[20]=l,f[21]=n,f[22]=s,f[23]=o,f[24]=c,f[25]=d,f[26]=u):u=f[26];let b=u;return f[27]===Symbol.for("react.memo_cache_sentinel")?(p=(0,r.jsx)(tf.A,{title:"Resources",htmlTag:"h2"}),f[27]=p):p=f[27],f[28]!==b?(h=(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"apps-resources",children:[p,(0,r.jsx)(ak,{linkItems:b})]}),f[28]=b,f[29]=h):h=f[29],h}function aC(e){let t,a=(0,i.c)(2),{supportedLanguages:l}=e;return a[0]!==l?(t=l.length?(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"languages",children:[(0,r.jsx)(tf.A,{title:"Supported languages",htmlTag:"h2",count:l?.length}),(0,r.jsx)("span",{children:t0(l)})]}):null,a[0]=l,a[1]=t):t=a[1],t}function aP(e){let t,a,l,n,s,o,c,d,u,p,h,f,g,x,y,j,b,v,_,N=(0,i.c)(53),{app:w,screenshots:k,planInfo:A,supportedLanguages:S,permissionsData:I}=e;N[0]===Symbol.for("react.memo_cache_sentinel")?(t={regular:!0},N[0]=t):t=N[0];let C=(0,ey.tv)(t,!1),P=w.copilotApp&&C;if(N[1]!==A.plans||N[2]!==A.selectedPlanId){let e;N[4]!==A.selectedPlanId?(e=e=>e.id===A.selectedPlanId,N[4]=A.selectedPlanId,N[5]=e):e=N[5],a=A.plans.find(e),N[1]=A.plans,N[2]=A.selectedPlanId,N[3]=a}else a=N[3];let L=a,[$]=(0,m.ok)(),F="transparency"===$.get("tab")?"transparency":"readme";N[6]!==w.fullDescription?(l=w.fullDescription&&(0,r.jsx)(eE.vb,{className:"markdown-body",html:w.fullDescription}),N[6]=w.fullDescription,N[7]=l):l=N[7],N[8]!==w.extendedDescription?(n=w.extendedDescription&&(0,r.jsx)(eE.vb,{className:"markdown-body",html:w.extendedDescription}),N[8]=w.extendedDescription,N[9]=n):n=N[9],N[10]!==k?(s=(0,r.jsx)(t8,{screenshots:k}),N[10]=k,N[11]=s):s=N[11],N[12]!==l||N[13]!==n||N[14]!==s?(o=(0,r.jsxs)(td.B,{gap:"normal","data-testid":"readme-content",children:[l,n,s]}),N[12]=l,N[13]=n,N[14]=s,N[15]=o):o=N[15];let B=o;if("transparency"===F){let e;N[16]!==w||N[17]!==I?(e=(0,r.jsx)(a_,{app:w,permissionsData:I}),N[16]=w,N[17]=I,N[18]=e):e=N[18],c=e}else c=B;N[19]!==A||N[20]!==P?(d=P&&(0,r.jsx)(t6,{planInfo:A}),N[19]=A,N[20]=P,N[21]=d):d=N[21];let T="readme"===F?"page":void 0;N[22]!==T?(u=(0,r.jsx)(ez.O.Item,{icon:eb.BookIcon,as:m.N_,to:"?tab=readme","aria-current":T,children:"README"}),N[22]=T,N[23]=u):u=N[23];let U="transparency"===F?"page":void 0;return N[24]!==U?(p=(0,r.jsx)(ez.O.Item,{icon:eb.LogIcon,as:m.N_,to:"?tab=transparency","aria-current":U,children:"Transparency"}),N[24]=U,N[25]=p):p=N[25],N[26]!==p||N[27]!==u?(h=(0,r.jsxs)(ez.O,{"aria-label":"Select a tab",children:[u,p]}),N[26]=p,N[27]=u,N[28]=h):h=N[28],N[29]!==c?(f=(0,r.jsx)("div",{className:"marketplace-module__marketplace-content-container__content__YCmsM",children:c}),N[29]=c,N[30]=f):f=N[30],N[31]!==h||N[32]!==f?(g=(0,r.jsxs)("div",{className:`${eQ} marketplace-module__marketplace-content-container--no-padding__FUT9W`,children:[h,f]}),N[31]=h,N[32]=f,N[33]=g):g=N[33],N[34]!==w.copilotApp?(x=w.copilotApp&&(0,r.jsx)(at,{}),N[34]=w.copilotApp,N[35]=x):x=N[35],N[36]!==S?(y=(0,r.jsx)(aC,{supportedLanguages:S}),N[36]=S,N[37]=y):y=N[37],N[38]!==w?(j=(0,r.jsx)(aI,{app:w}),N[38]=w,N[39]=j):j=N[39],N[40]!==y||N[41]!==j?(b=(0,r.jsxs)(td.B,{className:"d-md-none",children:[y,j]}),N[40]=y,N[41]=j,N[42]=b):b=N[42],N[43]!==w||N[44]!==A||N[45]!==L?(v=w.copilotApp?(0,r.jsx)(al,{planInfo:A,plan:L,listing:w}):(0,r.jsx)(an,{listing:w,planInfo:A}),N[43]=w,N[44]=A,N[45]=L,N[46]=v):v=N[46],N[47]!==g||N[48]!==x||N[49]!==b||N[50]!==v||N[51]!==d?(_=(0,r.jsxs)(td.B,{gap:"spacious",children:[d,g,x,b,v]}),N[47]=g,N[48]=x,N[49]=b,N[50]=v,N[51]=d,N[52]=_):_=N[52],_}function aL(e){let t,a,l,n,s,o,c,d,m=(0,i.c)(23),{app:u,supportedLanguages:p,planInfo:h}=e;return m[0]!==u?(t=(0,r.jsx)(ty,{app:u,sidebar:!0}),m[0]=u,m[1]=t):t=m[1],m[2]!==u.isVerifiedOwner?(a=(0,r.jsx)(tJ,{isVerifiedOwner:u.isVerifiedOwner,pageType:"apps"}),m[2]=u.isVerifiedOwner,m[3]=a):a=m[3],m[4]!==u.categories?(l=(0,r.jsx)(t4,{tags:u.categories,type:"apps"}),m[4]=u.categories,m[5]=l):l=m[5],m[6]!==u.copilotApp||m[7]!==h?(n=(0,r.jsx)(t2,{planInfo:h,isCopilotApp:u.copilotApp}),m[6]=u.copilotApp,m[7]=h,m[8]=n):n=m[8],m[9]!==u.copilotApp?(s=(0,r.jsx)(tZ,{isCopilotApp:u.copilotApp}),m[9]=u.copilotApp,m[10]=s):s=m[10],m[11]!==p?(o=(0,r.jsx)(aC,{supportedLanguages:p}),m[11]=p,m[12]=o):o=m[12],m[13]!==u?(c=(0,r.jsx)(aI,{app:u}),m[13]=u,m[14]=c):c=m[14],m[15]!==t||m[16]!==a||m[17]!==l||m[18]!==n||m[19]!==s||m[20]!==o||m[21]!==c?(d=(0,r.jsxs)(r.Fragment,{children:[t,a,l,n,s,o,c]}),m[15]=t,m[16]=a,m[17]=l,m[18]=n,m[19]=s,m[20]=o,m[21]=c,m[22]=d):d=m[22],d}function a$(){let e,t,a,l,s=(0,i.c)(18),{listing:o,planInfo:c,userCanEdit:d,screenshots:m,supportedLanguages:u,permissionsData:p}=(0,n.B)();return s[0]!==o||s[1]!==c||s[2]!==d?(e=(0,r.jsx)(t7,{app:o,planInfo:c,userCanEdit:d}),s[0]=o,s[1]=c,s[2]=d,s[3]=e):e=s[3],s[4]!==o||s[5]!==p||s[6]!==c||s[7]!==m||s[8]!==u?(t=(0,r.jsx)(aP,{app:o,screenshots:m,planInfo:c,supportedLanguages:u,permissionsData:p}),s[4]=o,s[5]=p,s[6]=c,s[7]=m,s[8]=u,s[9]=t):t=s[9],s[10]!==o||s[11]!==c||s[12]!==u?(a=(0,r.jsx)(aL,{app:o,planInfo:c,supportedLanguages:u}),s[10]=o,s[11]=c,s[12]=u,s[13]=a):a=s[13],s[14]!==e||s[15]!==t||s[16]!==a?(l=(0,r.jsx)(tm,{header:e,body:t,sidebar:a}),s[14]=e,s[15]=t,s[16]=a,s[17]=l):l=s[17],l}function aF(e){let t,a,l,n,s,o,c,d,m,u,p,h,f=(0,i.c)(34),{action:g,repository:x,sidebar:y,releaseData:j}=e,{description:b,isVerifiedOwner:v}=g,{isOrganization:_,owner:N}=x,w=(0,tg.yY)(),{selectedRelease:k,latestRelease:A}=j,S=k||A;return f[0]!==y?(t=y&&(0,r.jsx)(tf.A,{title:"About",htmlTag:"h2"}),f[0]=y,f[1]=t):t=f[1],f[2]!==b?(a=b&&(0,r.jsx)("span",{children:b}),f[2]=b,f[3]=a):a=f[3],f[4]===Symbol.for("react.memo_cache_sentinel")?(l=(0,r.jsx)(eb.TagIcon,{className:"marketplace-module__marketplace-version-icon__NTluI"}),f[4]=l):l=f[4],f[5]!==S.tagName?(n=(0,r.jsx)("span",{children:S.tagName}),f[5]=S.tagName,f[6]=n):n=f[6],f[7]!==S.tagName||f[8]!==n?(s=(0,r.jsx)(tM.A,{inline:!0,title:S.tagName,maxWidth:"none",children:n}),f[7]=S.tagName,f[8]=n,f[9]=s):s=f[9],f[10]!==A.tagName||f[11]!==S.tagName?(o=S.tagName===A.tagName&&(0,r.jsx)(eD.A,{variant:"success",className:"flex-shrink-0",children:"Latest"}),f[10]=A.tagName,f[11]=S.tagName,f[12]=o):o=f[12],f[13]!==S.isPrerelease?(c=S.isPrerelease&&(0,r.jsx)(eD.A,{variant:"severe",className:"flex-shrink-0",children:"Pre-release"}),f[13]=S.isPrerelease,f[14]=c):c=f[14],f[15]!==s||f[16]!==o||f[17]!==c?(d=(0,r.jsxs)(td.B,{gap:"condensed",direction:"horizontal",children:[l,(0,r.jsx)("div",{className:"min-width-0",children:(0,r.jsxs)(td.B,{gap:"condensed",direction:"horizontal",children:[s,o,c]})})]}),f[15]=s,f[16]=o,f[17]=c,f[18]=d):d=f[18],f[19]!==w||f[20]!==_||f[21]!==N?(m=N&&(0,r.jsx)("div",{className:"color-fg-muted pr-1",children:(0,r.jsxs)(r.Fragment,{children:["By ",(0,r.jsx)(e4.A,{href:(0,tx.p3r)({owner:N}),...w(_?"organization":"user",{login:N}),children:N})]})}),f[19]=w,f[20]=_,f[21]=N,f[22]=m):m=f[22],f[23]!==v||f[24]!==y?(u=v&&!y&&(0,r.jsxs)("div",{children:[(0,r.jsx)(eb.VerifiedIcon,{size:16,className:"fgColor-accent","aria-label":"Manually verified"}),(0,r.jsx)("span",{className:"ml-2",children:"Verified creator"})]}),f[23]=v,f[24]=y,f[25]=u):u=f[25],f[26]!==m||f[27]!==u?(p=(0,r.jsxs)(td.B,{wrap:"wrap",direction:"horizontal",gap:"condensed",children:[m,u]}),f[26]=m,f[27]=u,f[28]=p):p=f[28],f[29]!==t||f[30]!==a||f[31]!==p||f[32]!==d?(h=(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"about",children:[t,a,d,p]}),f[29]=t,f[30]=a,f[31]=p,f[32]=d,f[33]=h):h=f[33],h}function aB(e){let t,a,l=(0,i.c)(5),{action:n,selectedRelease:s,latestRelease:o}=e,{slug:c}=n,d=s&&s.tagName!==o.tagName;return l[0]!==d||l[1]!==c?(t=d&&c&&(0,r.jsx)(t5.l,{variant:"warning",hideTitle:!0,title:"Warning",description:(0,r.jsxs)(r.Fragment,{children:["You're viewing an older version of this GitHub Action. Do you want to see the"," ",(0,r.jsx)(e4.A,{href:(0,tx.xwZ)({slug:c}),inline:!0,children:"latest version"})," ","instead?"]})}),l[0]=d,l[1]=c,l[2]=t):t=l[2],l[3]!==t?(a=(0,r.jsx)(r.Fragment,{children:t}),l[3]=t,l[4]=a):a=l[4],a}ab.displayName="BannerPortal",av.displayName="ExportButton",a_.displayName="TransparencySection",ak.displayName="ResourceList",aI.displayName="Resources",aC.displayName="Languages",aP.displayName="Body",aL.displayName="Sidebar",a$.displayName="ShowApp",aF.displayName="About",aB.displayName="ReleaseBanner";var aT=a(47819),aU=a(45360);function aO(e){let t,a,l=(0,i.c)(9),{action:n,repository:s,isOpen:o,onClose:c,selectedRelease:d,latestRelease:m}=e,{externalUsesPathPrefix:u}=n,p=d?d.tagName:m.tagName,h=`${u}${p}`,f=`- name: ${n.name} uses: ${h}`;return l[0]!==n||l[1]!==o||l[2]!==c||l[3]!==s||l[4]!==f||l[5]!==h?(t=o&&(0,r.jsxs)(eB.l,{onClose:c,title:(0,r.jsxs)(td.B,{direction:"horizontal",align:"center",children:[(0,r.jsx)(eG,{listing:n,additionalDivClasses:eM.A["marketplace-logo--dialog"]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(eR.A,{as:"h3",variant:"small",className:"lh-condensed",children:n.name}),n.description&&(0,r.jsx)(tE.A,{as:"p",size:"medium",weight:"normal",className:"color-fg-muted m-0 lh-condensed",children:n.description})]})]}),children:[(0,r.jsx)(eR.A,{as:"h2",className:"h6","data-testid":"code-snippet-dialog",children:"Installation"}),(0,r.jsxs)("p",{className:"text-small color-fg-muted",children:["Copy and paste the following snippet into your ",(0,r.jsx)("span",{className:"text-mono",children:".yml"})," file."]}),(0,r.jsxs)("div",{className:"copyable-terminal mb-2",children:[(0,r.jsx)("div",{className:"copyable-terminal-button",children:(0,r.jsx)(aU.T,{textToCopy:f,ariaLabel:"Copy to clipboard"})}),(0,r.jsxs)("pre",{className:"marketplace-module__copyable-code-snippet__XAoKG",children:[(0,r.jsxs)("p",{children:["- name: ",n.name]}),(0,r.jsxs)("p",{children:["\xa0\xa0uses: ",h]})]})]}),s.owner&&s.name&&(0,r.jsxs)(e4.A,{href:(0,tx.SHX)({owner:s.owner,repo:s.name}),className:"text-small",children:["Learn more about this action in"," ",(0,r.jsxs)("strong",{children:[s.owner,"/",s.name]})]})]}),l[0]=n,l[1]=o,l[2]=c,l[3]=s,l[4]=f,l[5]=h,l[6]=t):t=l[6],l[7]!==t?(a=(0,r.jsx)(r.Fragment,{children:t}),l[7]=t,l[8]=a):a=l[8],a}aO.displayName="CodeSnippet";var aM=a(77236);function aR(e){let t,a,l=(0,i.c)(8),{action:n,selectedRelease:s,releases:o,isOpen:c,onClose:d}=e;return l[0]!==n||l[1]!==c||l[2]!==d||l[3]!==o||l[4]!==s?(t=c&&(0,r.jsx)(eB.l,{title:"Choose a version",width:"large",onClose:d,children:(0,r.jsx)(eZ.l,{showDividers:!0,variant:"full","data-testid":"version-picker-dialog",children:o.map(e=>{let t=s&&e.tagName===s.tagName;return(0,r.jsxs)(eZ.l.LinkItem,{as:aM.N,to:`${(0,tx.xwZ)({slug:n.slug||""})}?version=${e.tagName}`,active:t,"data-testid":t?"selected-version":"",onClick:d,children:[(0,r.jsx)("span",{className:"text-semibold",children:e.tagName}),e.name&&e.name!==e.tagName&&(0,r.jsx)(eZ.l.Description,{variant:"block",children:e.name})]},e.tagName)})})}),l[0]=n,l[1]=c,l[2]=d,l[3]=o,l[4]=s,l[5]=t):t=l[5],l[6]!==t?(a=(0,r.jsx)(r.Fragment,{children:t}),l[6]=t,l[7]=a):a=l[7],a}function az(e){let t,a,l,n,s,o,c,m,u,p=(0,i.c)(28),{releaseData:h,action:f,repository:g}=e,{selectedRelease:x,latestRelease:y,releases:j}=h,[b,v]=(0,d.useState)(!1);p[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>v(!1),p[0]=t):t=p[0];let _=t,[N,w]=(0,d.useState)(!1);p[1]===Symbol.for("react.memo_cache_sentinel")?(a=()=>w(!1),p[1]=a):a=p[1];let k=a;p[2]!==f.globalRelayId||p[3]!==b?(l=()=>{v(!b),(0,eV.BI)("marketplace.action.click",{repository_action_id:f.globalRelayId,source_url:`${window.location}`,location:"actions#show"})},p[2]=f.globalRelayId,p[3]=b,p[4]=l):l=p[4];let A=x?x.tagName:"latest version";return p[5]!==l||p[6]!==A?(n=(0,r.jsxs)(eF.Q,{variant:"primary",onClick:l,block:!0,children:["Use ",A]}),p[5]=l,p[6]=A,p[7]=n):n=p[7],p[8]!==N?(s=(0,r.jsx)(tX.K,{variant:"primary",onClick:()=>w(!N),"aria-label":"Choose a version",icon:eb.TriangleDownIcon}),p[8]=N,p[9]=s):s=p[9],p[10]!==n||p[11]!==s?(o=(0,r.jsxs)(aT.A,{className:"marketplace-module__ButtonGroup__d0YGv",children:[n,s]}),p[10]=n,p[11]=s,p[12]=o):o=p[12],p[13]!==f||p[14]!==b||p[15]!==y||p[16]!==g||p[17]!==x?(c=(0,r.jsx)(aO,{action:f,repository:g,isOpen:b,onClose:_,selectedRelease:x,latestRelease:y}),p[13]=f,p[14]=b,p[15]=y,p[16]=g,p[17]=x,p[18]=c):c=p[18],p[19]!==f||p[20]!==N||p[21]!==j||p[22]!==x?(m=(0,r.jsx)(aR,{action:f,selectedRelease:x,releases:j,isOpen:N,onClose:k}),p[19]=f,p[20]=N,p[21]=j,p[22]=x,p[23]=m):m=p[23],p[24]!==o||p[25]!==c||p[26]!==m?(u=(0,r.jsxs)(r.Fragment,{children:[o,c,m]}),p[24]=o,p[25]=c,p[26]=m,p[27]=u):u=p[27],u}aR.displayName="VersionPicker",az.displayName="VersionButton";var aD=a(7771),aV=a(55717);function aE(e){let t,a,l,n,s,o,c,m,u,p,h=(0,i.c)(32);h[0]!==e?({repository:n,action:t,loggedIn:l,starData:s,...a}=e,h[0]=e,h[1]=t,h[2]=a,h[3]=l,h[4]=n,h[5]=s):(t=h[1],a=h[2],l=h[3],n=h[4],s=h[5]);let{starredByCurrentUser:f,currentUserAbleToStar:g,currentUserEnterpriseName:x}=s,y=x?`You cannot star repositories outside of your enterprise ${x}`:"You can't star at this time",[j,b]=(0,d.useState)(t.stars),[v,_]=(0,d.useState)(f);h[6]!==n.name||h[7]!==n.owner?(o=()=>(0,F.DI)(`${(0,tx.SHX)({owner:n.owner||"",repo:n.name||""})}/star`,{method:"POST"}),h[6]=n.name,h[7]=n.owner,h[8]=o):o=h[8];let N=o;h[9]!==n.name||h[10]!==n.owner?(c=()=>(0,F.DI)(`${(0,tx.SHX)({owner:n.owner||"",repo:n.name||""})}/unstar`,{method:"POST"}),h[9]=n.name,h[10]=n.owner,h[11]=c):c=h[11];let w=c;e:{let e;if(j>=1e3){let e;h[12]!==j?(e=new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:"short",maximumFractionDigits:1}).format(j),h[12]=j,h[13]=e):e=h[13],m=e;break e}h[14]!==j?(e=j.toString(),h[14]=j,h[15]=e):e=h[15],m=e}let k=m;h[16]!==j||h[17]!==v||h[18]!==n.id||h[19]!==N||h[20]!==w?(u=async()=>{let e=v?"UNSTAR_BUTTON":"STAR_BUTTON";(0,eV.BI)("repository.click",{target:e,repository_id:n.id});let t=v?w:N;(_(!v),(await t()).ok)?v?b(j-1):b(j+1):_(v)},h[16]=j,h[17]=v,h[18]=n.id,h[19]=N,h[20]=w,h[21]=u):u=h[21];let A=u;return n.owner&&n.name&&t.slug?(h[22]!==t.slug||h[23]!==a||h[24]!==g||h[25]!==v||h[26]!==k||h[27]!==A||h[28]!==l||h[29]!==n.id||h[30]!==y?(p=l&&(g||v)?(0,r.jsxs)(eF.Q,{onClick:A,leadingVisual:v?(0,r.jsx)(eb.StarFillIcon,{className:v?"marketplace-module__starred-button-icon__eCsvE":""}):eb.StarIcon,"aria-label":v?`Unstar this repository (${k})`:`Star this repository (${k})`,"data-testid":"star-button",...a,children:[v?"Starred":"Star",(0,r.jsx)(aD.A,{className:"ml-2",children:k})]}):l?(0,r.jsx)(aV.m,{text:y,children:(0,r.jsxs)(eF.Q,{inactive:!0,leadingVisual:eb.StarIcon,"data-testid":"star-button",...a,children:["Star",(0,r.jsx)(aD.A,{className:"ml-2",children:k})]})}):(0,r.jsx)(aV.m,{text:"You must be signed in to star a repository",children:(0,r.jsxs)(eF.Q,{as:"a",leadingVisual:eb.StarIcon,href:`/login?return_to=${encodeURIComponent((0,tx.xwZ)({slug:t.slug||""}))}`,onClick:()=>(0,eV.BI)("authentication.click",{location_in_page:"star button",repository_id:n.id,auth_type:"LOG_IN"}),"data-testid":"star-button",...a,children:["Star",(0,r.jsx)(aD.A,{className:"ml-2",children:k})]})}),h[22]=t.slug,h[23]=a,h[24]=g,h[25]=v,h[26]=k,h[27]=A,h[28]=l,h[29]=n.id,h[30]=y,h[31]=p):p=h[31],p):null}function aH(e){let t,a,l,n,s,o,c,d,m,u,p=(0,i.c)(35),{action:h,repository:f,releaseData:g,loggedIn:x,starData:y}=e,{selectedRelease:j,latestRelease:b}=g,{isVerifiedOwner:v}=h;return p[0]!==h||p[1]!==b||p[2]!==j?(t=(0,r.jsx)(aB,{selectedRelease:j,latestRelease:b,action:h}),p[0]=h,p[1]=b,p[2]=j,p[3]=t):t=p[3],p[4]!==h||p[5]!==g||p[6]!==f?(a=(0,r.jsx)(aF,{action:h,repository:f,releaseData:g}),p[4]=h,p[5]=g,p[6]=f,p[7]=a):a=p[7],p[8]!==h.categories?(l=(0,r.jsx)(t4,{tags:h.categories,type:"actions"}),p[8]=h.categories,p[9]=l):l=p[9],p[10]!==v?(n=(0,r.jsx)(tJ,{isVerifiedOwner:v,pageType:"actions"}),p[10]=v,p[11]=n):n=p[11],p[12]!==l||p[13]!==n?(s=(0,r.jsxs)(r.Fragment,{children:[l,n]}),p[12]=l,p[13]=n,p[14]=s):s=p[14],p[15]===Symbol.for("react.memo_cache_sentinel")?(o={narrow:"vertical",regular:"horizontal"},p[15]=o):o=p[15],p[16]!==h||p[17]!==x||p[18]!==f||p[19]!==y?(c=(0,r.jsx)(aE,{repository:f,action:h,loggedIn:x,starData:y}),p[16]=h,p[17]=x,p[18]=f,p[19]=y,p[20]=c):c=p[20],p[21]!==h||p[22]!==g||p[23]!==f?(d=(0,r.jsx)(az,{releaseData:g,action:h,repository:f}),p[21]=h,p[22]=g,p[23]=f,p[24]=d):d=p[24],p[25]!==c||p[26]!==d?(m=(0,r.jsxs)(td.B,{gap:"condensed",direction:o,className:"width-full width-md-auto",children:[c,d]}),p[25]=c,p[26]=d,p[27]=m):m=p[27],p[28]!==h||p[29]!==x||p[30]!==t||p[31]!==a||p[32]!==s||p[33]!==m?(u=(0,r.jsx)(th,{listing:h,loggedIn:x,banner:t,listingDetails:a,additionalDetails:s,callToAction:m}),p[28]=h,p[29]=x,p[30]=t,p[31]=a,p[32]=s,p[33]=m,p[34]=u):u=p[34],u}function aG(e){let t,a,l=(0,i.c)(9),{repository:n}=e,{contributorsCount:s,topContributorsData:o,owner:c,name:d}=n,m=s-o.length,u=(0,tg.yY)();return l[0]!==s||l[1]!==u||l[2]!==d||l[3]!==c||l[4]!==m||l[5]!==o?(t=s>0&&c&&d&&(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"contributors",children:[(0,r.jsx)(tf.A,{title:"Contributors",count:s,htmlTag:"h2",link:(0,tx.e87)({ownerLogin:c,name:d})}),(0,r.jsx)(td.B,{direction:"horizontal",gap:"condensed",wrap:"wrap",children:o.map(e=>(0,r.jsx)(e4.A,{href:(0,tx.p3r)({owner:e.displayLogin}),...u("user",{login:e.displayLogin}),children:(0,r.jsx)(tO.r,{src:e.src,alt:e.alt,size:32})},e.alt))}),m>0&&(0,r.jsxs)(e4.A,{href:(0,tx.e87)({ownerLogin:c,name:d}),children:["+ ",m," contributors"]})]}),l[0]=s,l[1]=u,l[2]=d,l[3]=c,l[4]=m,l[5]=o,l[6]=t):t=l[6],l[7]!==t?(a=(0,r.jsx)(r.Fragment,{children:t}),l[7]=t,l[8]=a):a=l[8],a}aE.displayName="StarButton",aH.displayName="Header",aG.displayName="Contributors";var aq=a(72685);function aW(e){let t,a,l,n=(0,i.c)(11),{action:s,repoAdminableByViewer:o,isDialogOpen:c,onDialogClose:m}=e,u=s.slug??"";n[0]!==u?(t=(0,tx.xwZ)({slug:u}),n[0]=u,n[1]=t):t=n[1];let p=(0,tC.H)(t,"delete"),h=(0,d.useRef)(null);n[2]!==s.globalRelayId?(a=()=>{h.current&&((0,eV.BI)("marketplace.action.delist",{repository_action_id:s.globalRelayId,source_url:`${window.location}`,location:"actions#show"}),h.current.submit())},n[2]=s.globalRelayId,n[3]=a):a=n[3];let f=a;return n[4]!==s.slug||n[5]!==p||n[6]!==c||n[7]!==m||n[8]!==f||n[9]!==o?(l=o&&s.slug&&(0,r.jsxs)("form",{ref:h,"data-turbo":"false",action:(0,tx.xwZ)({slug:s.slug}),method:"post","data-testid":"delist-form",className:"d-none",children:[(0,r.jsx)("input",{type:"hidden",name:"_method",value:"delete",autoComplete:"off","data-testid":"hidden-delete"}),(0,r.jsx)("input",{type:"hidden",name:"authenticity_token",value:p,"data-testid":"hidden-authenticity-token"}),c&&(0,r.jsx)(aq.K,{title:"Delist action?",onClose:e=>"confirm"===e?f():m(),confirmButtonContent:"Delist action",confirmButtonType:"danger",children:"Are you sure you want to delist this action from the Marketplace? Note: It will still be installable as long as the repository is public."})]}),n[4]=s.slug,n[5]=p,n[6]=c,n[7]=m,n[8]=f,n[9]=o,n[10]=l):l=n[10],l}function aQ(e){let t,a,l,n,s,o,c,m,u,p,h,f,g,x,y,j,b,v,_,N,w,k,A,S=(0,i.c)(63),{repository:I,action:C,repoAdminableByViewer:P}=e,{name:L,owner:$,hasSecurityPolicy:F,isDiscussionsActive:B,hasIssues:T,openIssuesCount:U,openPullRequestsCount:O}=I,[M,R]=(0,d.useState)(!1);S[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{R(!0)},S[0]=t):t=S[0];let z=t;S[1]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{R(!1)},S[1]=a):a=S[1];let D=a;S[2]!==B||S[3]!==L||S[4]!==$?(l=B&&$&&L?(0,tx.p01)({owner:$,repo:L}):void 0,S[2]=B,S[3]=L,S[4]=$,S[5]=l):l=S[5],S[6]!==l?(n={url:l,component:eb.CommentDiscussionIcon,text:"Start a discussion"},S[6]=l,S[7]=n):n=S[7],S[8]!==T||S[9]!==L||S[10]!==$?(s=T&&$&&L?(0,tx.YQF)($,L):void 0,S[8]=T,S[9]=L,S[10]=$,S[11]=s):s=S[11],S[12]!==U?(o=(0,r.jsx)(aD.A,{children:U}),S[12]=U,S[13]=o):o=S[13],S[14]!==s||S[15]!==o?(c={url:s,component:eb.IssueOpenedIcon,text:"Open an issue",trailingVisual:o},S[14]=s,S[15]=o,S[16]=c):c=S[16],S[17]!==L||S[18]!==$?(m=$&&L?(0,tx.Blz)($,L):void 0,S[17]=L,S[18]=$,S[19]=m):m=S[19],S[20]!==O?(u=(0,r.jsx)(aD.A,{children:O}),S[20]=O,S[21]=u):u=S[21],S[22]!==m||S[23]!==u?(p={url:m,component:eb.GitPullRequestIcon,text:"Pull requests",trailingVisual:u},S[22]=m,S[23]=u,S[24]=p):p=S[24],S[25]!==L||S[26]!==$?(h=$&&L?(0,tx.SHX)({owner:$,repo:L}):void 0,S[25]=L,S[26]=$,S[27]=h):h=S[27],S[28]!==h?(f={url:h,component:eb.RepoIcon,text:"View source code"},S[28]=h,S[29]=f):f=S[29],S[30]!==F||S[31]!==L||S[32]!==$?(g=F&&$&&L?`${(0,tx.SHX)({owner:$,repo:L})}#security-ov-file`:void 0,S[30]=F,S[31]=L,S[32]=$,S[33]=g):g=S[33],S[34]!==g?(x={url:g,component:eb.LawIcon,text:"Security policy"},S[34]=g,S[35]=x):x=S[35];let V=`${C.name} (GitHub Action)`;S[36]!==V?(y=(0,tx.YPg)({report:V}),S[36]=V,S[37]=y):y=S[37],S[38]!==y?(j={url:y,component:eb.ReportIcon,text:"Report abuse"},S[38]=y,S[39]=j):j=S[39],S[40]!==f||S[41]!==x||S[42]!==j||S[43]!==n||S[44]!==c||S[45]!==p?(b=[n,c,p,f,x,j],S[40]=f,S[41]=x,S[42]=j,S[43]=n,S[44]=c,S[45]=p,S[46]=b):b=S[46];let E=b;S[47]!==C.slug||S[48]!==P?(v=P&&C.slug?()=>z():void 0,S[47]=C.slug,S[48]=P,S[49]=v):v=S[49],S[50]!==v?(_=[{onSelect:v,component:eb.EyeClosedIcon,text:"Delist action"}],S[50]=v,S[51]=_):_=S[51];let H=_;return S[52]===Symbol.for("react.memo_cache_sentinel")?(N=(0,r.jsx)(tf.A,{title:"Resources",htmlTag:"h2"}),S[52]=N):N=S[52],S[53]!==H||S[54]!==E?(w=(0,r.jsx)(ak,{linkItems:E,dangerItems:H}),S[53]=H,S[54]=E,S[55]=w):w=S[55],S[56]!==C||S[57]!==M||S[58]!==P?(k=(0,r.jsx)(aW,{action:C,repoAdminableByViewer:P,isDialogOpen:M,onDialogClose:D}),S[56]=C,S[57]=M,S[58]=P,S[59]=k):k=S[59],S[60]!==w||S[61]!==k?(A=(0,r.jsxs)(td.B,{gap:"condensed","data-testid":"resources",children:[N,w,k]}),S[60]=w,S[61]=k,S[62]=A):A=S[62],A}function aY(e){let t,a,l=(0,i.c)(5),{isThirdParty:n,name:s}=e;return l[0]!==n||l[1]!==s?(t=n&&s&&(0,r.jsxs)("p",{className:"note m-0","data-testid":"third-party-statement",children:[(0,r.jsx)("strong",{children:s})," is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation."]}),l[0]=n,l[1]=s,l[2]=t):t=l[2],l[3]!==t?(a=(0,r.jsx)(r.Fragment,{children:t}),l[3]=t,l[4]=a):a=l[4],a}function aX(e){let t,a,l,n,s,o,c=(0,i.c)(19),{readmeHtml:d,helpUrl:m,repository:u,action:p,repoAdminableByViewer:h}=e;return c[0]!==m||c[1]!==d?(t=d?(0,r.jsx)("div",{"data-testid":"markdown-body",className:eQ,children:(0,r.jsx)(eE.vb,{html:d,className:"markdown-body"})}):(0,r.jsxs)(eK.E,{spacious:!0,children:[(0,r.jsx)(eK.E.Heading,{children:"No description"}),(0,r.jsxs)(eK.E.Description,{children:["This GitHub Action has no README in the repository. If"," ",(0,r.jsx)("a",{className:"Link--inTextBlock",href:m,children:"one is added"}),", it will appear here."]})]}),c[0]=m,c[1]=d,c[2]=t):t=c[2],c[3]!==u?(a=(0,r.jsx)(aG,{repository:u}),c[3]=u,c[4]=a):a=c[4],c[5]!==p||c[6]!==h||c[7]!==u?(l=(0,r.jsx)(aQ,{repository:u,action:p,repoAdminableByViewer:h}),c[5]=p,c[6]=h,c[7]=u,c[8]=l):l=c[8],c[9]!==p.name||c[10]!==u.isThirdParty?(n=(0,r.jsx)("div",{className:"border-top color-border-muted tmp-pt-3",children:(0,r.jsx)(aY,{isThirdParty:u.isThirdParty,name:p.name})}),c[9]=p.name,c[10]=u.isThirdParty,c[11]=n):n=c[11],c[12]!==a||c[13]!==l||c[14]!==n?(s=(0,r.jsxs)(td.B,{className:"d-md-none",children:[a,l,n]}),c[12]=a,c[13]=l,c[14]=n,c[15]=s):s=c[15],c[16]!==t||c[17]!==s?(o=(0,r.jsxs)(td.B,{gap:"normal",children:[t,s]}),c[16]=t,c[17]=s,c[18]=o):o=c[18],o}function aK(e){let t,a,l,n,s,o,c,d=(0,i.c)(24),{action:m,repository:u,releaseData:p,repoAdminableByViewer:h}=e,{isVerifiedOwner:f,categories:g}=m,{isThirdParty:x}=u;return d[0]!==m||d[1]!==p||d[2]!==u?(t=(0,r.jsx)(aF,{action:m,repository:u,releaseData:p,sidebar:!0}),d[0]=m,d[1]=p,d[2]=u,d[3]=t):t=d[3],d[4]!==f?(a=(0,r.jsx)(tJ,{isVerifiedOwner:f,pageType:"actions"}),d[4]=f,d[5]=a):a=d[5],d[6]!==g?(l=(0,r.jsx)(t4,{tags:g,type:"actions"}),d[6]=g,d[7]=l):l=d[7],d[8]!==u?(n=(0,r.jsx)(aG,{repository:u}),d[8]=u,d[9]=n):n=d[9],d[10]!==m||d[11]!==h||d[12]!==u?(s=(0,r.jsx)(aQ,{repository:u,action:m,repoAdminableByViewer:h}),d[10]=m,d[11]=h,d[12]=u,d[13]=s):s=d[13],d[14]!==m.name||d[15]!==x?(o=(0,r.jsx)("div",{className:"border-top color-border-muted tmp-pt-4",children:(0,r.jsx)(aY,{isThirdParty:x,name:m.name})}),d[14]=m.name,d[15]=x,d[16]=o):o=d[16],d[17]!==t||d[18]!==a||d[19]!==l||d[20]!==n||d[21]!==s||d[22]!==o?(c=(0,r.jsxs)(r.Fragment,{children:[t,a,l,n,s,o]}),d[17]=t,d[18]=a,d[19]=l,d[20]=n,d[21]=s,d[22]=o,d[23]=c):c=d[23],c}function aJ(){let e,t,a,l,s=(0,i.c)(21),{action:o,readmeHtml:c,helpUrl:d,repository:m,releaseData:u,repoAdminableByViewer:p,loggedIn:h,starData:f}=(0,n.B)();return s[0]!==o||s[1]!==h||s[2]!==u||s[3]!==m||s[4]!==f?(e=(0,r.jsx)(aH,{action:o,repository:m,releaseData:u,loggedIn:h,starData:f}),s[0]=o,s[1]=h,s[2]=u,s[3]=m,s[4]=f,s[5]=e):e=s[5],s[6]!==o||s[7]!==d||s[8]!==c||s[9]!==p||s[10]!==m?(t=(0,r.jsx)(aX,{readmeHtml:c,helpUrl:d,repository:m,action:o,repoAdminableByViewer:p}),s[6]=o,s[7]=d,s[8]=c,s[9]=p,s[10]=m,s[11]=t):t=s[11],s[12]!==o||s[13]!==u||s[14]!==p||s[15]!==m?(a=(0,r.jsx)(aK,{action:o,repository:m,releaseData:u,repoAdminableByViewer:p}),s[12]=o,s[13]=u,s[14]=p,s[15]=m,s[16]=a):a=s[16],s[17]!==e||s[18]!==t||s[19]!==a?(l=(0,r.jsx)(tm,{header:e,body:t,sidebar:a}),s[17]=e,s[18]=t,s[19]=a,s[20]=l):l=s[20],l}aW.displayName="DelistForm",aQ.displayName="Resources",aY.displayName="ThirdPartyStatement",aX.displayName="Body",aK.displayName="Sidebar",aJ.displayName="ShowAction";var aZ=a(27527),a0=a(31199);(0,aZ.o)("marketplace-react",()=>({App:l,routes:[(0,a0.a)({path:"/marketplace",Component:tc}),(0,a0.a)({path:"/marketplace.html",Component:tc}),(0,a0.a)({path:"/marketplace/:slug",Component:a$}),(0,a0.a)({path:"/marketplace/actions/:slug",Component:aJ}),(0,a0.a)({path:"/marketplace/models/catalog",Component:tc})]}))},19503(e,t,a){a.d(t,{BC:()=>o,JU:()=>d,Pk:()=>s});var r=a(74848),i=a(16522),l=a(12653),n=a(94709);let s=m(n.az),o=m(n.EY),c=e=>{let t,a,l,n=(0,i.c)(6);return n[0]!==e?({ref:a,...t}=e,n[0]=e,n[1]=t,n[2]=a):(t=n[1],a=n[2]),n[3]!==t||n[4]!==a?(l=(0,r.jsx)("div",{...t,ref:a}),n[3]=t,n[4]=a,n[5]=l):l=n[5],l};c.displayName="Div";let d=m(c);function m(e){let t=t=>{let a,n,s,o=(0,i.c)(7);o[0]!==t?(a=function(e){let{html:t,domPurifyConfig:a,...r}=e,i={...a,RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1};return{sanitizedHTML:(0,l.a)(t,i),props:r}}(t),o[0]=t,o[1]=a):a=o[1];let{sanitizedHTML:c,props:d}=a;return o[2]!==c?(n={__html:c},o[2]=c,o[3]=n):n=o[3],o[4]!==d||o[5]!==n?(s=(0,r.jsx)(e,{...d,dangerouslySetInnerHTML:n}),o[4]=d,o[5]=n,o[6]=s):s=o[6],s};return t.displayName=`UnsafeHTML${e.displayName||e.name}`,t}},16497(e,t,a){a.d(t,{$6:()=>c,JR:()=>s,Jg:()=>m,vb:()=>n});var r=a(74848),i=a(16522),l=a(94709);let n=u(l.az),s=u(l.EY),o=e=>{let t,a,l,n=(0,i.c)(6);return n[0]!==e?({ref:a,...t}=e,n[0]=e,n[1]=t,n[2]=a):(t=n[1],a=n[2]),n[3]!==t||n[4]!==a?(l=(0,r.jsx)("div",{...t,ref:a}),n[3]=t,n[4]=a,n[5]=l):l=n[5],l};o.displayName="Div";let c=u(o),d=e=>{let t,a,l,n=(0,i.c)(6);return n[0]!==e?({ref:a,...t}=e,n[0]=e,n[1]=t,n[2]=a):(t=n[1],a=n[2]),n[3]!==t||n[4]!==a?(l=(0,r.jsx)("bdi",{...t,ref:a}),n[3]=t,n[4]=a,n[5]=l):l=n[5],l};d.displayName="Bdi";let m=u(d);function u(e){let t=t=>{let a,l,n,s,o=(0,i.c)(8);o[0]!==t?({html:a,...l}=t,o[0]=t,o[1]=a,o[2]=l):(a=o[1],l=o[2]);let c=l;return o[3]!==a?(n=a?{__html:a}:void 0,o[3]=a,o[4]=n):n=o[4],o[5]!==c||o[6]!==n?(s=(0,r.jsx)(e,{...c,dangerouslySetInnerHTML:n}),o[5]=c,o[6]=n,o[7]=s):s=o[7],s};return t.displayName=`SafeHTML${e.displayName||e.name}`,t}},12653(e,t,a){a.d(t,{a:()=>i,createPurifier:()=>l,sanitizeWithPurifier:()=>n});var r=a(99418);function i(e,t){return r.A.sanitize(e,t)}function l(e){let t=(0,r.A)();return e&&e(t),t}function n(e,t,a){return t.sanitize(e,a)}},19519(e,t,a){a.d(t,{V:()=>c});var r=a(96540);let i={type:"browser",isBrowser:!0,isServer:!1},l={type:"server",isBrowser:!1,isServer:!0};function n(){return()=>{}}function s(){return i}function o(){return l}function c(){return(0,r.useSyncExternalStore)(n,s,o)}},29207(e,t,a){a.d(t,{H:()=>i});var r=a(65594);function i(e,t){let{csrf_tokens:a}=(0,r.B)();return a?.[e]?.[t]}},19129(e,t,a){a.d(t,{A:()=>l});var r=a(16522),i=a(96540);function l(){let e,t,a,l=(0,r.c)(3),n=(0,i.useRef)(!1);l[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>n.current,l[0]=e):e=l[0];let s=e;return l[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>(n.current=!0,()=>{n.current=!1}),a=[],l[1]=t,l[2]=a):(t=l[1],a=l[2]),(0,i.useLayoutEffect)(t,a),s}},28141(e,t,a){a.d(t,{o:()=>l,s:()=>n});var r=a(16522),i=a(96540);function l(e){let t,a,l=(0,r.c)(6);l[0]!==e?(t=void 0===e?{}:e,l[0]=e,l[1]=t):t=l[1];let{max:n,min:s}=t,o=(0,i.useId)();return l[2]!==o||l[3]!==n||l[4]!==s?(a=function({max:e,min:t,id:a}){let r=function(e){let t=0;for(let a of e)t=(31*t+a.charCodeAt(0))%100;return t%40+40}(a);return t&&r{if(a<=0)return 0;let r=5381;for(let a of`${e}:${t}`)r=(r<<5)+r+a.charCodeAt(0)|0;return(r>>>0)%a}}},28926(e,t,a){a.d(t,{a:()=>n});let r=new Set(["children","localName","ref","style","className"]),i=new WeakMap,l=(e,t,a,r,l)=>{let n,s,o=null==l?void 0:l[t];void 0===o||a===r?null==a&&t in HTMLElement.prototype?e.removeAttribute(t):e[t]=a:(void 0===(n=i.get(e))&&i.set(e,n=new Map),s=n.get(o),void 0!==a?void 0===s?(n.set(o,s={handleEvent:a}),e.addEventListener(o,s)):s.handleEvent=a:void 0!==s&&(n.delete(o),e.removeEventListener(o,s)))};function n(e=window.React,t,a,i,s){let o,c,d;void 0===t?({tagName:c,elementClass:d,events:i,displayName:s}=e,o=e.react):(o=e,d=a,c=t);let m=o.Component,u=o.createElement,p=new Set(Object.keys(null!=i?i:{}));class h extends m{constructor(){super(...arguments),this.o=null}t(e){if(null!==this.o)for(let t in this.i)l(this.o,t,this.props[t],e?e[t]:void 0,i)}componentDidMount(){var e;this.t(),null==(e=this.o)||e.removeAttribute("defer-hydration")}componentDidUpdate(e){this.t(e)}render(){let{_$Gl:e,...t}=this.props;this.h!==e&&(this.u=t=>{null!==e&&("function"==typeof e?e(t):e.current=t),this.o=t,this.h=e}),this.i={};let a={ref:this.u};for(let[e,i]of Object.entries(t))r.has(e)?a["className"===e?"class":e]=i:p.has(e)||e in d.prototype?this.i[e]=i:a[e]=i;return a.suppressHydrationWarning=!0,u(c,a)}}h.displayName=null!=s?s:d.name;let f=o.forwardRef((e,t)=>u(h,{...e,_$Gl:t},null==e?void 0:e.children));return f.displayName=h.displayName,f}},31993(e,t,a){a.d(t,{j:()=>r});function r(e){return e}},97286(e,t,a){a.d(t,{I:()=>l});var r=a(1651),i=a(15985);function l(e,t){return(0,i.t)(e,r.$,t)}},241(e,t,a){a.d(t,{A:()=>r});let r=a(41917).A.Symbol},18348(e,t,a){a.d(t,{A:()=>m});var r=a(241),i=Object.prototype,l=i.hasOwnProperty,n=i.toString,s=r.A?r.A.toStringTag:void 0;let o=function(e){var t=l.call(e,s),a=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=n.call(e);return r&&(t?e[s]=a:delete e[s]),i};var c=Object.prototype.toString,d=r.A?r.A.toStringTag:void 0;let m=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":d&&d in Object(e)?o(e):c.call(e)}},72136(e,t,a){a.d(t,{A:()=>r});let r="object"==typeof global&&global&&global.Object===Object&&global},25353(e,t,a){a.d(t,{A:()=>i});var r=/^(?:0|[1-9]\d*)$/;let i=function(e,t){var a=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==a||"symbol"!=a&&r.test(e))&&e>-1&&e%1==0&&el});var r=a(72136),i="object"==typeof self&&self&&self.Object===Object&&self;let l=r.A||i||Function("return this")()},66984(e,t,a){a.d(t,{A:()=>r});let r=function(e,t){return e===t||e!=e&&t!=t}},38446(e,t,a){a.d(t,{A:()=>l});var r=a(89610),i=a(5254);let l=function(e){return null!=e&&(0,i.A)(e.length)&&!(0,r.A)(e)}},89610(e,t,a){a.d(t,{A:()=>l});var r=a(18348),i=a(23149);let l=function(e){if(!(0,i.A)(e))return!1;var t=(0,r.A)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5254(e,t,a){a.d(t,{A:()=>r});let r=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},23149(e,t,a){a.d(t,{A:()=>r});let r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},53098(e,t,a){a.d(t,{A:()=>r});let r=function(e){return null!=e&&"object"==typeof e}},46632(e,t,a){a.d(t,{A:()=>l});var r=a(51046);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var a=function(){var r=arguments,i=t?t.apply(this,r):r[0],l=a.cache;if(l.has(i))return l.get(i);var n=e.apply(this,r);return a.cache=l.set(i,n)||l,n};return a.cache=new(i.Cache||r.A),a}i.Cache=r.A;let l=i}},function(e){e.O(0,["13579","13726","15272","15484","17383","28819","28839","2966","32769","32984","34646","38040","41013","46287","49095","50938","59299","60481","63991","68751","7053","7463","7542","83465","85924","90225","93796","98131"],function(){return e(e.s=8113)}),e.O()}]); //# sourceMappingURL=marketplace-react-73c8ed2e9bfbd818-1b761eaa5e7d636a.js.map